grpc.framework.interfaces.face.html 109 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756
  1. <!DOCTYPE html>
  2. <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
  3. <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>grpc.framework.interfaces.face package &mdash; grpcio 1.0.4 documentation</title>
  8. <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  9. <link rel="index" title="Index"
  10. href="genindex.html"/>
  11. <link rel="search" title="Search" href="search.html"/>
  12. <link rel="top" title="grpcio 1.0.4 documentation" href="index.html"/>
  13. <link rel="up" title="grpc.framework.interfaces package" href="grpc.framework.interfaces.html"/>
  14. <link rel="prev" title="grpc.framework.interfaces.base package" href="grpc.framework.interfaces.base.html"/>
  15. <script src="_static/js/modernizr.min.js"></script>
  16. </head>
  17. <body class="wy-body-for-nav" role="document">
  18. <div class="wy-grid-for-nav">
  19. <nav data-toggle="wy-nav-shift" class="wy-nav-side">
  20. <div class="wy-side-scroll">
  21. <div class="wy-side-nav-search">
  22. <a href="index.html" class="icon icon-home"> grpcio
  23. </a>
  24. <div class="version">
  25. 1.0.4
  26. </div>
  27. <div role="search">
  28. <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
  29. <input type="text" name="q" placeholder="Search docs" />
  30. <input type="hidden" name="check_keywords" value="yes" />
  31. <input type="hidden" name="area" value="default" />
  32. </form>
  33. </div>
  34. </div>
  35. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  36. <p class="caption"><span class="caption-text">Contents:</span></p>
  37. <ul class="current">
  38. <li class="toctree-l1 current"><a class="reference internal" href="grpc.html">grpc package</a><ul class="current">
  39. <li class="toctree-l2 current"><a class="reference internal" href="grpc.html#subpackages">Subpackages</a><ul class="current">
  40. <li class="toctree-l3"><a class="reference internal" href="grpc.beta.html">grpc.beta package</a></li>
  41. <li class="toctree-l3 current"><a class="reference internal" href="grpc.framework.html">grpc.framework package</a><ul class="current">
  42. <li class="toctree-l4 current"><a class="reference internal" href="grpc.framework.html#subpackages">Subpackages</a></li>
  43. <li class="toctree-l4"><a class="reference internal" href="grpc.framework.html#module-grpc.framework">Module contents</a></li>
  44. </ul>
  45. </li>
  46. </ul>
  47. </li>
  48. <li class="toctree-l2"><a class="reference internal" href="grpc.html#module-grpc">Module contents</a></li>
  49. </ul>
  50. </li>
  51. <li class="toctree-l1"><a class="reference internal" href="grpc.html#glossary">Glossary</a></li>
  52. </ul>
  53. </div>
  54. </div>
  55. </nav>
  56. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  57. <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
  58. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  59. <a href="index.html">grpcio</a>
  60. </nav>
  61. <div class="wy-nav-content">
  62. <div class="rst-content">
  63. <div role="navigation" aria-label="breadcrumbs navigation">
  64. <ul class="wy-breadcrumbs">
  65. <li><a href="index.html">Docs</a> &raquo;</li>
  66. <li><a href="grpc.html">grpc package</a> &raquo;</li>
  67. <li><a href="grpc.framework.html">grpc.framework package</a> &raquo;</li>
  68. <li><a href="grpc.framework.interfaces.html">grpc.framework.interfaces package</a> &raquo;</li>
  69. <li>grpc.framework.interfaces.face package</li>
  70. <li class="wy-breadcrumbs-aside">
  71. <a href="_sources/grpc.framework.interfaces.face.rst.txt" rel="nofollow"> View page source</a>
  72. </li>
  73. </ul>
  74. <hr/>
  75. </div>
  76. <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
  77. <div itemprop="articleBody">
  78. <div class="section" id="grpc-framework-interfaces-face-package">
  79. <h1>grpc.framework.interfaces.face package<a class="headerlink" href="#grpc-framework-interfaces-face-package" title="Permalink to this headline">¶</a></h1>
  80. <div class="section" id="submodules">
  81. <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2>
  82. </div>
  83. <div class="section" id="module-grpc.framework.interfaces.face.face">
  84. <span id="grpc-framework-interfaces-face-face-module"></span><h2>grpc.framework.interfaces.face.face module<a class="headerlink" href="#module-grpc.framework.interfaces.face.face" title="Permalink to this headline">¶</a></h2>
  85. <p>Interfaces defining the Face layer of RPC Framework.</p>
  86. <dl class="class">
  87. <dt id="grpc.framework.interfaces.face.face.Abortion">
  88. <em class="property">class </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">Abortion</code><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#Abortion"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.Abortion" title="Permalink to this definition">¶</a></dt>
  89. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.interfaces.face.face.Abortion" title="grpc.framework.interfaces.face.face.Abortion"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.interfaces.face.face.Abortion</span></code></a></p>
  90. <p>A value describing RPC abortion.</p>
  91. <dl class="attribute">
  92. <dt id="grpc.framework.interfaces.face.face.Abortion.kind">
  93. <code class="descname">kind</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.Abortion.kind" title="Permalink to this definition">¶</a></dt>
  94. <dd><p>A Kind value identifying how the RPC failed.</p>
  95. </dd></dl>
  96. <dl class="attribute">
  97. <dt id="grpc.framework.interfaces.face.face.Abortion.initial_metadata">
  98. <code class="descname">initial_metadata</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.Abortion.initial_metadata" title="Permalink to this definition">¶</a></dt>
  99. <dd><p>The initial metadata from the other side of the RPC or
  100. None if no initial metadata value was received.</p>
  101. </dd></dl>
  102. <dl class="attribute">
  103. <dt id="grpc.framework.interfaces.face.face.Abortion.terminal_metadata">
  104. <code class="descname">terminal_metadata</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.Abortion.terminal_metadata" title="Permalink to this definition">¶</a></dt>
  105. <dd><p>The terminal metadata from the other side of the RPC or
  106. None if no terminal metadata value was received.</p>
  107. </dd></dl>
  108. <dl class="attribute">
  109. <dt id="grpc.framework.interfaces.face.face.Abortion.code">
  110. <code class="descname">code</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.Abortion.code" title="Permalink to this definition">¶</a></dt>
  111. <dd><p>The code value from the other side of the RPC or None if no code value
  112. was received.</p>
  113. </dd></dl>
  114. <dl class="attribute">
  115. <dt id="grpc.framework.interfaces.face.face.Abortion.details">
  116. <code class="descname">details</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.Abortion.details" title="Permalink to this definition">¶</a></dt>
  117. <dd><p>The details value from the other side of the RPC or None if no
  118. details value was received.</p>
  119. </dd></dl>
  120. <dl class="class">
  121. <dt id="grpc.framework.interfaces.face.face.Abortion.Kind">
  122. <em class="property">class </em><code class="descname">Kind</code><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#Abortion.Kind"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.Abortion.Kind" title="Permalink to this definition">¶</a></dt>
  123. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">enum.Enum</span></code></p>
  124. <p>Types of RPC abortion.</p>
  125. </dd></dl>
  126. </dd></dl>
  127. <dl class="exception">
  128. <dt id="grpc.framework.interfaces.face.face.AbortionError">
  129. <em class="property">exception </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">AbortionError</code><span class="sig-paren">(</span><em>initial_metadata</em>, <em>terminal_metadata</em>, <em>code</em>, <em>details</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#AbortionError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.AbortionError" title="Permalink to this definition">¶</a></dt>
  130. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">Exception</span></code></p>
  131. <p>Common super type for exceptions indicating RPC abortion.</p>
  132. <dl class="docutils">
  133. <dt>initial_metadata: The initial metadata from the other side of the RPC or</dt>
  134. <dd>None if no initial metadata value was received.</dd>
  135. <dt>terminal_metadata: The terminal metadata from the other side of the RPC or</dt>
  136. <dd>None if no terminal metadata value was received.</dd>
  137. <dt>code: The code value from the other side of the RPC or None if no code value</dt>
  138. <dd>was received.</dd>
  139. <dt>details: The details value from the other side of the RPC or None if no</dt>
  140. <dd>details value was received.</dd>
  141. </dl>
  142. </dd></dl>
  143. <dl class="class">
  144. <dt id="grpc.framework.interfaces.face.face.Call">
  145. <em class="property">class </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">Call</code><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#Call"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.Call" title="Permalink to this definition">¶</a></dt>
  146. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.interfaces.face.face.RpcContext" title="grpc.framework.interfaces.face.face.RpcContext"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.interfaces.face.face.RpcContext</span></code></a></p>
  147. <p>Invocation-side utility object for an RPC.</p>
  148. <dl class="method">
  149. <dt id="grpc.framework.interfaces.face.face.Call.code">
  150. <code class="descname">code</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#Call.code"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.Call.code" title="Permalink to this definition">¶</a></dt>
  151. <dd><p>Accesses the code emitted by the service-side of the RPC.</p>
  152. <p>This method blocks until the value is available or is known not to have been
  153. emitted from the service-side of the RPC.</p>
  154. <table class="docutils field-list" frame="void" rules="none">
  155. <col class="field-name" />
  156. <col class="field-body" />
  157. <tbody valign="top">
  158. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><dl class="docutils">
  159. <dt>The code object emitted by the service-side of the RPC, or None if there</dt>
  160. <dd>was no such value.</dd>
  161. </dl>
  162. </td>
  163. </tr>
  164. </tbody>
  165. </table>
  166. </dd></dl>
  167. <dl class="method">
  168. <dt id="grpc.framework.interfaces.face.face.Call.details">
  169. <code class="descname">details</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#Call.details"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.Call.details" title="Permalink to this definition">¶</a></dt>
  170. <dd><p>Accesses the details value emitted by the service-side of the RPC.</p>
  171. <p>This method blocks until the value is available or is known not to have been
  172. emitted from the service-side of the RPC.</p>
  173. <table class="docutils field-list" frame="void" rules="none">
  174. <col class="field-name" />
  175. <col class="field-body" />
  176. <tbody valign="top">
  177. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><dl class="docutils">
  178. <dt>The details value emitted by the service-side of the RPC, or None if there</dt>
  179. <dd>was no such value.</dd>
  180. </dl>
  181. </td>
  182. </tr>
  183. </tbody>
  184. </table>
  185. </dd></dl>
  186. <dl class="method">
  187. <dt id="grpc.framework.interfaces.face.face.Call.initial_metadata">
  188. <code class="descname">initial_metadata</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#Call.initial_metadata"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.Call.initial_metadata" title="Permalink to this definition">¶</a></dt>
  189. <dd><p>Accesses the initial metadata from the service-side of the RPC.</p>
  190. <p>This method blocks until the value is available or is known not to have been
  191. emitted from the service-side of the RPC.</p>
  192. <table class="docutils field-list" frame="void" rules="none">
  193. <col class="field-name" />
  194. <col class="field-body" />
  195. <tbody valign="top">
  196. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><dl class="docutils">
  197. <dt>The initial metadata object emitted by the service-side of the RPC, or</dt>
  198. <dd>None if there was no such value.</dd>
  199. </dl>
  200. </td>
  201. </tr>
  202. </tbody>
  203. </table>
  204. </dd></dl>
  205. <dl class="method">
  206. <dt id="grpc.framework.interfaces.face.face.Call.terminal_metadata">
  207. <code class="descname">terminal_metadata</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#Call.terminal_metadata"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.Call.terminal_metadata" title="Permalink to this definition">¶</a></dt>
  208. <dd><p>Accesses the terminal metadata from the service-side of the RPC.</p>
  209. <p>This method blocks until the value is available or is known not to have been
  210. emitted from the service-side of the RPC.</p>
  211. <table class="docutils field-list" frame="void" rules="none">
  212. <col class="field-name" />
  213. <col class="field-body" />
  214. <tbody valign="top">
  215. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><dl class="docutils">
  216. <dt>The terminal metadata object emitted by the service-side of the RPC, or</dt>
  217. <dd>None if there was no such value.</dd>
  218. </dl>
  219. </td>
  220. </tr>
  221. </tbody>
  222. </table>
  223. </dd></dl>
  224. </dd></dl>
  225. <dl class="exception">
  226. <dt id="grpc.framework.interfaces.face.face.CancellationError">
  227. <em class="property">exception </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">CancellationError</code><span class="sig-paren">(</span><em>initial_metadata</em>, <em>terminal_metadata</em>, <em>code</em>, <em>details</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#CancellationError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.CancellationError" title="Permalink to this definition">¶</a></dt>
  228. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.interfaces.face.face.AbortionError" title="grpc.framework.interfaces.face.face.AbortionError"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.interfaces.face.face.AbortionError</span></code></a></p>
  229. <p>Indicates that an RPC has been cancelled.</p>
  230. </dd></dl>
  231. <dl class="class">
  232. <dt id="grpc.framework.interfaces.face.face.DynamicStub">
  233. <em class="property">class </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">DynamicStub</code><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#DynamicStub"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.DynamicStub" title="Permalink to this definition">¶</a></dt>
  234. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  235. <p>Affords RPC invocation via attributes corresponding to afforded methods.</p>
  236. <p>Instances of this type may be scoped to a single group so that attribute
  237. access is unambiguous.</p>
  238. <p>Instances of this type respond to attribute access as follows: if the
  239. requested attribute is the name of a unary-unary method, the value of the
  240. attribute will be a UnaryUnaryMultiCallable with which to invoke an RPC; if
  241. the requested attribute is the name of a unary-stream method, the value of the
  242. attribute will be a UnaryStreamMultiCallable with which to invoke an RPC; if
  243. the requested attribute is the name of a stream-unary method, the value of the
  244. attribute will be a StreamUnaryMultiCallable with which to invoke an RPC; and
  245. if the requested attribute is the name of a stream-stream method, the value of
  246. the attribute will be a StreamStreamMultiCallable with which to invoke an RPC.</p>
  247. </dd></dl>
  248. <dl class="exception">
  249. <dt id="grpc.framework.interfaces.face.face.ExpirationError">
  250. <em class="property">exception </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">ExpirationError</code><span class="sig-paren">(</span><em>initial_metadata</em>, <em>terminal_metadata</em>, <em>code</em>, <em>details</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#ExpirationError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.ExpirationError" title="Permalink to this definition">¶</a></dt>
  251. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.interfaces.face.face.AbortionError" title="grpc.framework.interfaces.face.face.AbortionError"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.interfaces.face.face.AbortionError</span></code></a></p>
  252. <p>Indicates that an RPC has expired (&#8220;timed out&#8221;).</p>
  253. </dd></dl>
  254. <dl class="class">
  255. <dt id="grpc.framework.interfaces.face.face.GenericStub">
  256. <em class="property">class </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">GenericStub</code><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#GenericStub"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.GenericStub" title="Permalink to this definition">¶</a></dt>
  257. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  258. <p>Affords RPC invocation via generic methods.</p>
  259. <dl class="method">
  260. <dt id="grpc.framework.interfaces.face.face.GenericStub.blocking_stream_unary">
  261. <code class="descname">blocking_stream_unary</code><span class="sig-paren">(</span><em>group</em>, <em>method</em>, <em>request_iterator</em>, <em>timeout</em>, <em>metadata=None</em>, <em>with_call=False</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#GenericStub.blocking_stream_unary"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.GenericStub.blocking_stream_unary" title="Permalink to this definition">¶</a></dt>
  262. <dd><p>Invokes a stream-request-unary-response method.</p>
  263. <p>This method blocks until either returning the response value of the RPC
  264. (in the event of RPC completion) or raising an exception (in the event of
  265. RPC abortion).</p>
  266. <table class="docutils field-list" frame="void" rules="none">
  267. <col class="field-name" />
  268. <col class="field-body" />
  269. <tbody valign="top">
  270. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  271. <li><strong>group</strong> &#8211; The group identifier of the RPC.</li>
  272. <li><strong>method</strong> &#8211; The method identifier of the RPC.</li>
  273. <li><strong>request_iterator</strong> &#8211; An iterator that yields request values for the RPC.</li>
  274. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  275. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of the RPC.</li>
  276. <li><strong>with_call</strong> &#8211; Whether or not to include return a Call for the RPC in addition
  277. to the response.</li>
  278. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  279. implementation affording custom state and behavior.</li>
  280. </ul>
  281. </td>
  282. </tr>
  283. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><dl class="docutils">
  284. <dt>The response value for the RPC, and a Call for the RPC if with_call was</dt>
  285. <dd><p class="first last">set to True at invocation.</p>
  286. </dd>
  287. </dl>
  288. </p>
  289. </td>
  290. </tr>
  291. <tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"><p class="first last"><a class="reference internal" href="#grpc.framework.interfaces.face.face.AbortionError" title="grpc.framework.interfaces.face.face.AbortionError"><code class="xref py py-exc docutils literal"><span class="pre">AbortionError</span></code></a> &#8211; Indicating that the RPC was aborted.</p>
  292. </td>
  293. </tr>
  294. </tbody>
  295. </table>
  296. </dd></dl>
  297. <dl class="method">
  298. <dt id="grpc.framework.interfaces.face.face.GenericStub.blocking_unary_unary">
  299. <code class="descname">blocking_unary_unary</code><span class="sig-paren">(</span><em>group</em>, <em>method</em>, <em>request</em>, <em>timeout</em>, <em>metadata=None</em>, <em>with_call=False</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#GenericStub.blocking_unary_unary"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.GenericStub.blocking_unary_unary" title="Permalink to this definition">¶</a></dt>
  300. <dd><p>Invokes a unary-request-unary-response method.</p>
  301. <p>This method blocks until either returning the response value of the RPC
  302. (in the event of RPC completion) or raising an exception (in the event of
  303. RPC abortion).</p>
  304. <table class="docutils field-list" frame="void" rules="none">
  305. <col class="field-name" />
  306. <col class="field-body" />
  307. <tbody valign="top">
  308. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  309. <li><strong>group</strong> &#8211; The group identifier of the RPC.</li>
  310. <li><strong>method</strong> &#8211; The method identifier of the RPC.</li>
  311. <li><strong>request</strong> &#8211; The request value for the RPC.</li>
  312. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  313. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of the RPC.</li>
  314. <li><strong>with_call</strong> &#8211; Whether or not to include return a Call for the RPC in addition
  315. to the response.</li>
  316. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  317. implementation affording custom state and behavior.</li>
  318. </ul>
  319. </td>
  320. </tr>
  321. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><dl class="docutils">
  322. <dt>The response value for the RPC, and a Call for the RPC if with_call was</dt>
  323. <dd><p class="first last">set to True at invocation.</p>
  324. </dd>
  325. </dl>
  326. </p>
  327. </td>
  328. </tr>
  329. <tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"><p class="first last"><a class="reference internal" href="#grpc.framework.interfaces.face.face.AbortionError" title="grpc.framework.interfaces.face.face.AbortionError"><code class="xref py py-exc docutils literal"><span class="pre">AbortionError</span></code></a> &#8211; Indicating that the RPC was aborted.</p>
  330. </td>
  331. </tr>
  332. </tbody>
  333. </table>
  334. </dd></dl>
  335. <dl class="method">
  336. <dt id="grpc.framework.interfaces.face.face.GenericStub.event_stream_stream">
  337. <code class="descname">event_stream_stream</code><span class="sig-paren">(</span><em>group</em>, <em>method</em>, <em>receiver</em>, <em>abortion_callback</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#GenericStub.event_stream_stream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.GenericStub.event_stream_stream" title="Permalink to this definition">¶</a></dt>
  338. <dd><p>Event-driven invocation of a unary-request-stream-response method.</p>
  339. <table class="docutils field-list" frame="void" rules="none">
  340. <col class="field-name" />
  341. <col class="field-body" />
  342. <tbody valign="top">
  343. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  344. <li><strong>group</strong> &#8211; The group identifier of the RPC.</li>
  345. <li><strong>method</strong> &#8211; The method identifier of the RPC.</li>
  346. <li><strong>receiver</strong> &#8211; A ResponseReceiver to be passed the response data of the RPC.</li>
  347. <li><strong>abortion_callback</strong> &#8211; A callback to be called and passed an Abortion value
  348. in the event of RPC abortion.</li>
  349. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  350. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of the RPC.</li>
  351. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  352. implementation affording custom state and behavior.</li>
  353. </ul>
  354. </td>
  355. </tr>
  356. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils">
  357. <dt>A pair of a Call object for the RPC and a stream.Consumer to which the</dt>
  358. <dd><p class="first last">request values of the RPC should be passed.</p>
  359. </dd>
  360. </dl>
  361. </p>
  362. </td>
  363. </tr>
  364. </tbody>
  365. </table>
  366. </dd></dl>
  367. <dl class="method">
  368. <dt id="grpc.framework.interfaces.face.face.GenericStub.event_stream_unary">
  369. <code class="descname">event_stream_unary</code><span class="sig-paren">(</span><em>group</em>, <em>method</em>, <em>receiver</em>, <em>abortion_callback</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#GenericStub.event_stream_unary"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.GenericStub.event_stream_unary" title="Permalink to this definition">¶</a></dt>
  370. <dd><p>Event-driven invocation of a unary-request-unary-response method.</p>
  371. <table class="docutils field-list" frame="void" rules="none">
  372. <col class="field-name" />
  373. <col class="field-body" />
  374. <tbody valign="top">
  375. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  376. <li><strong>group</strong> &#8211; The group identifier of the RPC.</li>
  377. <li><strong>method</strong> &#8211; The method identifier of the RPC.</li>
  378. <li><strong>receiver</strong> &#8211; A ResponseReceiver to be passed the response data of the RPC.</li>
  379. <li><strong>abortion_callback</strong> &#8211; A callback to be called and passed an Abortion value
  380. in the event of RPC abortion.</li>
  381. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  382. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of the RPC.</li>
  383. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  384. implementation affording custom state and behavior.</li>
  385. </ul>
  386. </td>
  387. </tr>
  388. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils">
  389. <dt>A pair of a Call object for the RPC and a stream.Consumer to which the</dt>
  390. <dd><p class="first last">request values of the RPC should be passed.</p>
  391. </dd>
  392. </dl>
  393. </p>
  394. </td>
  395. </tr>
  396. </tbody>
  397. </table>
  398. </dd></dl>
  399. <dl class="method">
  400. <dt id="grpc.framework.interfaces.face.face.GenericStub.event_unary_stream">
  401. <code class="descname">event_unary_stream</code><span class="sig-paren">(</span><em>group</em>, <em>method</em>, <em>request</em>, <em>receiver</em>, <em>abortion_callback</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#GenericStub.event_unary_stream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.GenericStub.event_unary_stream" title="Permalink to this definition">¶</a></dt>
  402. <dd><p>Event-driven invocation of a unary-request-stream-response method.</p>
  403. <table class="docutils field-list" frame="void" rules="none">
  404. <col class="field-name" />
  405. <col class="field-body" />
  406. <tbody valign="top">
  407. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  408. <li><strong>group</strong> &#8211; The group identifier of the RPC.</li>
  409. <li><strong>method</strong> &#8211; The method identifier of the RPC.</li>
  410. <li><strong>request</strong> &#8211; The request value for the RPC.</li>
  411. <li><strong>receiver</strong> &#8211; A ResponseReceiver to be passed the response data of the RPC.</li>
  412. <li><strong>abortion_callback</strong> &#8211; A callback to be called and passed an Abortion value
  413. in the event of RPC abortion.</li>
  414. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  415. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of the RPC.</li>
  416. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  417. implementation affording custom state and behavior.</li>
  418. </ul>
  419. </td>
  420. </tr>
  421. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A Call for the RPC.</p>
  422. </td>
  423. </tr>
  424. </tbody>
  425. </table>
  426. </dd></dl>
  427. <dl class="method">
  428. <dt id="grpc.framework.interfaces.face.face.GenericStub.event_unary_unary">
  429. <code class="descname">event_unary_unary</code><span class="sig-paren">(</span><em>group</em>, <em>method</em>, <em>request</em>, <em>receiver</em>, <em>abortion_callback</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#GenericStub.event_unary_unary"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.GenericStub.event_unary_unary" title="Permalink to this definition">¶</a></dt>
  430. <dd><p>Event-driven invocation of a unary-request-unary-response method.</p>
  431. <table class="docutils field-list" frame="void" rules="none">
  432. <col class="field-name" />
  433. <col class="field-body" />
  434. <tbody valign="top">
  435. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  436. <li><strong>group</strong> &#8211; The group identifier of the RPC.</li>
  437. <li><strong>method</strong> &#8211; The method identifier of the RPC.</li>
  438. <li><strong>request</strong> &#8211; The request value for the RPC.</li>
  439. <li><strong>receiver</strong> &#8211; A ResponseReceiver to be passed the response data of the RPC.</li>
  440. <li><strong>abortion_callback</strong> &#8211; A callback to be called and passed an Abortion value
  441. in the event of RPC abortion.</li>
  442. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  443. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of the RPC.</li>
  444. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  445. implementation affording custom state and behavior.</li>
  446. </ul>
  447. </td>
  448. </tr>
  449. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A Call for the RPC.</p>
  450. </td>
  451. </tr>
  452. </tbody>
  453. </table>
  454. </dd></dl>
  455. <dl class="method">
  456. <dt id="grpc.framework.interfaces.face.face.GenericStub.future_stream_unary">
  457. <code class="descname">future_stream_unary</code><span class="sig-paren">(</span><em>group</em>, <em>method</em>, <em>request_iterator</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#GenericStub.future_stream_unary"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.GenericStub.future_stream_unary" title="Permalink to this definition">¶</a></dt>
  458. <dd><p>Invokes a stream-request-unary-response method.</p>
  459. <table class="docutils field-list" frame="void" rules="none">
  460. <col class="field-name" />
  461. <col class="field-body" />
  462. <tbody valign="top">
  463. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  464. <li><strong>group</strong> &#8211; The group identifier of the RPC.</li>
  465. <li><strong>method</strong> &#8211; The method identifier of the RPC.</li>
  466. <li><strong>request_iterator</strong> &#8211; An iterator that yields request values for the RPC.</li>
  467. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  468. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of the RPC.</li>
  469. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  470. implementation affording custom state and behavior.</li>
  471. </ul>
  472. </td>
  473. </tr>
  474. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils">
  475. <dt>An object that is both a Call for the RPC and a future.Future. In the</dt>
  476. <dd><p class="first last">event of RPC completion, the return Future&#8217;s result value will be the
  477. response value of the RPC. In the event of RPC abortion, the returned
  478. Future&#8217;s exception value will be an AbortionError.</p>
  479. </dd>
  480. </dl>
  481. </p>
  482. </td>
  483. </tr>
  484. </tbody>
  485. </table>
  486. </dd></dl>
  487. <dl class="method">
  488. <dt id="grpc.framework.interfaces.face.face.GenericStub.future_unary_unary">
  489. <code class="descname">future_unary_unary</code><span class="sig-paren">(</span><em>group</em>, <em>method</em>, <em>request</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#GenericStub.future_unary_unary"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.GenericStub.future_unary_unary" title="Permalink to this definition">¶</a></dt>
  490. <dd><p>Invokes a unary-request-unary-response method.</p>
  491. <table class="docutils field-list" frame="void" rules="none">
  492. <col class="field-name" />
  493. <col class="field-body" />
  494. <tbody valign="top">
  495. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  496. <li><strong>group</strong> &#8211; The group identifier of the RPC.</li>
  497. <li><strong>method</strong> &#8211; The method identifier of the RPC.</li>
  498. <li><strong>request</strong> &#8211; The request value for the RPC.</li>
  499. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  500. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of the RPC.</li>
  501. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  502. implementation affording custom state and behavior.</li>
  503. </ul>
  504. </td>
  505. </tr>
  506. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils">
  507. <dt>An object that is both a Call for the RPC and a future.Future. In the</dt>
  508. <dd><p class="first last">event of RPC completion, the return Future&#8217;s result value will be the
  509. response value of the RPC. In the event of RPC abortion, the returned
  510. Future&#8217;s exception value will be an AbortionError.</p>
  511. </dd>
  512. </dl>
  513. </p>
  514. </td>
  515. </tr>
  516. </tbody>
  517. </table>
  518. </dd></dl>
  519. <dl class="method">
  520. <dt id="grpc.framework.interfaces.face.face.GenericStub.inline_stream_stream">
  521. <code class="descname">inline_stream_stream</code><span class="sig-paren">(</span><em>group</em>, <em>method</em>, <em>request_iterator</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#GenericStub.inline_stream_stream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.GenericStub.inline_stream_stream" title="Permalink to this definition">¶</a></dt>
  522. <dd><p>Invokes a stream-request-stream-response method.</p>
  523. <table class="docutils field-list" frame="void" rules="none">
  524. <col class="field-name" />
  525. <col class="field-body" />
  526. <tbody valign="top">
  527. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  528. <li><strong>group</strong> &#8211; The group identifier of the RPC.</li>
  529. <li><strong>method</strong> &#8211; The method identifier of the RPC.</li>
  530. <li><strong>request_iterator</strong> &#8211; An iterator that yields request values for the RPC.</li>
  531. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  532. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of the RPC.</li>
  533. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  534. implementation affording custom state and behavior.</li>
  535. </ul>
  536. </td>
  537. </tr>
  538. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils">
  539. <dt>An object that is both a Call for the RPC and an iterator of response</dt>
  540. <dd><p class="first last">values. Drawing response values from the returned iterator may raise
  541. AbortionError indicating abortion of the RPC.</p>
  542. </dd>
  543. </dl>
  544. </p>
  545. </td>
  546. </tr>
  547. </tbody>
  548. </table>
  549. </dd></dl>
  550. <dl class="method">
  551. <dt id="grpc.framework.interfaces.face.face.GenericStub.inline_unary_stream">
  552. <code class="descname">inline_unary_stream</code><span class="sig-paren">(</span><em>group</em>, <em>method</em>, <em>request</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#GenericStub.inline_unary_stream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.GenericStub.inline_unary_stream" title="Permalink to this definition">¶</a></dt>
  553. <dd><p>Invokes a unary-request-stream-response method.</p>
  554. <table class="docutils field-list" frame="void" rules="none">
  555. <col class="field-name" />
  556. <col class="field-body" />
  557. <tbody valign="top">
  558. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  559. <li><strong>group</strong> &#8211; The group identifier of the RPC.</li>
  560. <li><strong>method</strong> &#8211; The method identifier of the RPC.</li>
  561. <li><strong>request</strong> &#8211; The request value for the RPC.</li>
  562. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  563. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of the RPC.</li>
  564. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  565. implementation affording custom state and behavior.</li>
  566. </ul>
  567. </td>
  568. </tr>
  569. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils">
  570. <dt>An object that is both a Call for the RPC and an iterator of response</dt>
  571. <dd><p class="first last">values. Drawing response values from the returned iterator may raise
  572. AbortionError indicating abortion of the RPC.</p>
  573. </dd>
  574. </dl>
  575. </p>
  576. </td>
  577. </tr>
  578. </tbody>
  579. </table>
  580. </dd></dl>
  581. <dl class="method">
  582. <dt id="grpc.framework.interfaces.face.face.GenericStub.stream_stream">
  583. <code class="descname">stream_stream</code><span class="sig-paren">(</span><em>group</em>, <em>method</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#GenericStub.stream_stream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.GenericStub.stream_stream" title="Permalink to this definition">¶</a></dt>
  584. <dd><p>Creates a StreamStreamMultiCallable for a stream-stream method.</p>
  585. <table class="docutils field-list" frame="void" rules="none">
  586. <col class="field-name" />
  587. <col class="field-body" />
  588. <tbody valign="top">
  589. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  590. <li><strong>group</strong> &#8211; The group identifier of the RPC.</li>
  591. <li><strong>method</strong> &#8211; The method identifier of the RPC.</li>
  592. </ul>
  593. </td>
  594. </tr>
  595. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A StreamStreamMultiCallable value for the named stream-stream method.</p>
  596. </td>
  597. </tr>
  598. </tbody>
  599. </table>
  600. </dd></dl>
  601. <dl class="method">
  602. <dt id="grpc.framework.interfaces.face.face.GenericStub.stream_unary">
  603. <code class="descname">stream_unary</code><span class="sig-paren">(</span><em>group</em>, <em>method</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#GenericStub.stream_unary"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.GenericStub.stream_unary" title="Permalink to this definition">¶</a></dt>
  604. <dd><p>Creates a StreamUnaryMultiCallable for a stream-unary method.</p>
  605. <table class="docutils field-list" frame="void" rules="none">
  606. <col class="field-name" />
  607. <col class="field-body" />
  608. <tbody valign="top">
  609. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  610. <li><strong>group</strong> &#8211; The group identifier of the RPC.</li>
  611. <li><strong>method</strong> &#8211; The method identifier of the RPC.</li>
  612. </ul>
  613. </td>
  614. </tr>
  615. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A StreamUnaryMultiCallable value for the named stream-unary method.</p>
  616. </td>
  617. </tr>
  618. </tbody>
  619. </table>
  620. </dd></dl>
  621. <dl class="method">
  622. <dt id="grpc.framework.interfaces.face.face.GenericStub.unary_stream">
  623. <code class="descname">unary_stream</code><span class="sig-paren">(</span><em>group</em>, <em>method</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#GenericStub.unary_stream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.GenericStub.unary_stream" title="Permalink to this definition">¶</a></dt>
  624. <dd><p>Creates a UnaryStreamMultiCallable for a unary-stream method.</p>
  625. <table class="docutils field-list" frame="void" rules="none">
  626. <col class="field-name" />
  627. <col class="field-body" />
  628. <tbody valign="top">
  629. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  630. <li><strong>group</strong> &#8211; The group identifier of the RPC.</li>
  631. <li><strong>method</strong> &#8211; The method identifier of the RPC.</li>
  632. </ul>
  633. </td>
  634. </tr>
  635. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A UnaryStreamMultiCallable value for the name unary-stream method.</p>
  636. </td>
  637. </tr>
  638. </tbody>
  639. </table>
  640. </dd></dl>
  641. <dl class="method">
  642. <dt id="grpc.framework.interfaces.face.face.GenericStub.unary_unary">
  643. <code class="descname">unary_unary</code><span class="sig-paren">(</span><em>group</em>, <em>method</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#GenericStub.unary_unary"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.GenericStub.unary_unary" title="Permalink to this definition">¶</a></dt>
  644. <dd><p>Creates a UnaryUnaryMultiCallable for a unary-unary method.</p>
  645. <table class="docutils field-list" frame="void" rules="none">
  646. <col class="field-name" />
  647. <col class="field-body" />
  648. <tbody valign="top">
  649. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  650. <li><strong>group</strong> &#8211; The group identifier of the RPC.</li>
  651. <li><strong>method</strong> &#8211; The method identifier of the RPC.</li>
  652. </ul>
  653. </td>
  654. </tr>
  655. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A UnaryUnaryMultiCallable value for the named unary-unary method.</p>
  656. </td>
  657. </tr>
  658. </tbody>
  659. </table>
  660. </dd></dl>
  661. </dd></dl>
  662. <dl class="exception">
  663. <dt id="grpc.framework.interfaces.face.face.LocalError">
  664. <em class="property">exception </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">LocalError</code><span class="sig-paren">(</span><em>initial_metadata</em>, <em>terminal_metadata</em>, <em>code</em>, <em>details</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#LocalError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.LocalError" title="Permalink to this definition">¶</a></dt>
  665. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.interfaces.face.face.AbortionError" title="grpc.framework.interfaces.face.face.AbortionError"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.interfaces.face.face.AbortionError</span></code></a></p>
  666. <p>Indicates that an RPC has terminated due to a local defect.</p>
  667. </dd></dl>
  668. <dl class="exception">
  669. <dt id="grpc.framework.interfaces.face.face.LocalShutdownError">
  670. <em class="property">exception </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">LocalShutdownError</code><span class="sig-paren">(</span><em>initial_metadata</em>, <em>terminal_metadata</em>, <em>code</em>, <em>details</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#LocalShutdownError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.LocalShutdownError" title="Permalink to this definition">¶</a></dt>
  671. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.interfaces.face.face.AbortionError" title="grpc.framework.interfaces.face.face.AbortionError"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.interfaces.face.face.AbortionError</span></code></a></p>
  672. <p>Indicates that an RPC has terminated due to local shutdown of RPCs.</p>
  673. </dd></dl>
  674. <dl class="class">
  675. <dt id="grpc.framework.interfaces.face.face.MethodImplementation">
  676. <em class="property">class </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">MethodImplementation</code><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#MethodImplementation"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.MethodImplementation" title="Permalink to this definition">¶</a></dt>
  677. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  678. <p>A sum type that describes a method implementation.</p>
  679. <dl class="attribute">
  680. <dt id="grpc.framework.interfaces.face.face.MethodImplementation.cardinality">
  681. <code class="descname">cardinality</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.MethodImplementation.cardinality" title="Permalink to this definition">¶</a></dt>
  682. <dd><p>A cardinality.Cardinality value.</p>
  683. </dd></dl>
  684. <dl class="attribute">
  685. <dt id="grpc.framework.interfaces.face.face.MethodImplementation.style">
  686. <code class="descname">style</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.MethodImplementation.style" title="Permalink to this definition">¶</a></dt>
  687. <dd><p>A style.Service value.</p>
  688. </dd></dl>
  689. <dl class="attribute">
  690. <dt id="grpc.framework.interfaces.face.face.MethodImplementation.unary_unary_inline">
  691. <code class="descname">unary_unary_inline</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.MethodImplementation.unary_unary_inline" title="Permalink to this definition">¶</a></dt>
  692. <dd><p>The implementation of the method as a callable value
  693. that takes a request value and a ServicerContext object and returns a
  694. response value. Only non-None if cardinality is
  695. cardinality.Cardinality.UNARY_UNARY and style is style.Service.INLINE.</p>
  696. </dd></dl>
  697. <dl class="attribute">
  698. <dt id="grpc.framework.interfaces.face.face.MethodImplementation.unary_stream_inline">
  699. <code class="descname">unary_stream_inline</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.MethodImplementation.unary_stream_inline" title="Permalink to this definition">¶</a></dt>
  700. <dd><p>The implementation of the method as a callable value
  701. that takes a request value and a ServicerContext object and returns an
  702. iterator of response values. Only non-None if cardinality is
  703. cardinality.Cardinality.UNARY_STREAM and style is style.Service.INLINE.</p>
  704. </dd></dl>
  705. <dl class="attribute">
  706. <dt id="grpc.framework.interfaces.face.face.MethodImplementation.stream_unary_inline">
  707. <code class="descname">stream_unary_inline</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.MethodImplementation.stream_unary_inline" title="Permalink to this definition">¶</a></dt>
  708. <dd><p>The implementation of the method as a callable value
  709. that takes an iterator of request values and a ServicerContext object and
  710. returns a response value. Only non-None if cardinality is
  711. cardinality.Cardinality.STREAM_UNARY and style is style.Service.INLINE.</p>
  712. </dd></dl>
  713. <dl class="attribute">
  714. <dt id="grpc.framework.interfaces.face.face.MethodImplementation.stream_stream_inline">
  715. <code class="descname">stream_stream_inline</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.MethodImplementation.stream_stream_inline" title="Permalink to this definition">¶</a></dt>
  716. <dd><p>The implementation of the method as a callable value
  717. that takes an iterator of request values and a ServicerContext object and
  718. returns an iterator of response values. Only non-None if cardinality is
  719. cardinality.Cardinality.STREAM_STREAM and style is style.Service.INLINE.</p>
  720. </dd></dl>
  721. <dl class="attribute">
  722. <dt id="grpc.framework.interfaces.face.face.MethodImplementation.unary_unary_event">
  723. <code class="descname">unary_unary_event</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.MethodImplementation.unary_unary_event" title="Permalink to this definition">¶</a></dt>
  724. <dd><p>The implementation of the method as a callable value that
  725. takes a request value, a response callback to which to pass the response
  726. value of the RPC, and a ServicerContext. Only non-None if cardinality is
  727. cardinality.Cardinality.UNARY_UNARY and style is style.Service.EVENT.</p>
  728. </dd></dl>
  729. <dl class="attribute">
  730. <dt id="grpc.framework.interfaces.face.face.MethodImplementation.unary_stream_event">
  731. <code class="descname">unary_stream_event</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.MethodImplementation.unary_stream_event" title="Permalink to this definition">¶</a></dt>
  732. <dd><p>The implementation of the method as a callable value
  733. that takes a request value, a stream.Consumer to which to pass the
  734. response values of the RPC, and a ServicerContext. Only non-None if
  735. cardinality is cardinality.Cardinality.UNARY_STREAM and style is
  736. style.Service.EVENT.</p>
  737. </dd></dl>
  738. <dl class="attribute">
  739. <dt id="grpc.framework.interfaces.face.face.MethodImplementation.stream_unary_event">
  740. <code class="descname">stream_unary_event</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.MethodImplementation.stream_unary_event" title="Permalink to this definition">¶</a></dt>
  741. <dd><p>The implementation of the method as a callable value
  742. that takes a response callback to which to pass the response value of the
  743. RPC and a ServicerContext and returns a stream.Consumer to which the
  744. request values of the RPC should be passed. Only non-None if cardinality
  745. is cardinality.Cardinality.STREAM_UNARY and style is style.Service.EVENT.</p>
  746. </dd></dl>
  747. <dl class="attribute">
  748. <dt id="grpc.framework.interfaces.face.face.MethodImplementation.stream_stream_event">
  749. <code class="descname">stream_stream_event</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.MethodImplementation.stream_stream_event" title="Permalink to this definition">¶</a></dt>
  750. <dd><p>The implementation of the method as a callable value
  751. that takes a stream.Consumer to which to pass the response values of the
  752. RPC and a ServicerContext and returns a stream.Consumer to which the
  753. request values of the RPC should be passed. Only non-None if cardinality
  754. is cardinality.Cardinality.STREAM_STREAM and style is
  755. style.Service.EVENT.</p>
  756. </dd></dl>
  757. </dd></dl>
  758. <dl class="class">
  759. <dt id="grpc.framework.interfaces.face.face.MultiMethodImplementation">
  760. <em class="property">class </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">MultiMethodImplementation</code><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#MultiMethodImplementation"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.MultiMethodImplementation" title="Permalink to this definition">¶</a></dt>
  761. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  762. <p>A general type able to service many methods.</p>
  763. <dl class="method">
  764. <dt id="grpc.framework.interfaces.face.face.MultiMethodImplementation.service">
  765. <code class="descname">service</code><span class="sig-paren">(</span><em>group</em>, <em>method</em>, <em>response_consumer</em>, <em>context</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#MultiMethodImplementation.service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.MultiMethodImplementation.service" title="Permalink to this definition">¶</a></dt>
  766. <dd><p>Services an RPC.</p>
  767. <table class="docutils field-list" frame="void" rules="none">
  768. <col class="field-name" />
  769. <col class="field-body" />
  770. <tbody valign="top">
  771. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  772. <li><strong>group</strong> &#8211; The group identifier of the RPC.</li>
  773. <li><strong>method</strong> &#8211; The method identifier of the RPC.</li>
  774. <li><strong>response_consumer</strong> &#8211; A stream.Consumer to be called to accept the response
  775. values of the RPC.</li>
  776. <li><strong>context</strong> &#8211; a ServicerContext object.</li>
  777. </ul>
  778. </td>
  779. </tr>
  780. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><dl class="docutils">
  781. <dt>A stream.Consumer with which to accept the request values of the RPC. The</dt>
  782. <dd><p class="first last">consumer returned from this method may or may not be invoked to
  783. completion: in the case of RPC abortion, RPC Framework will simply stop
  784. passing values to this object. Implementations must not assume that this
  785. object will be called to completion of the request stream or even called
  786. at all.</p>
  787. </dd>
  788. </dl>
  789. </p>
  790. </td>
  791. </tr>
  792. <tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
  793. <li><code class="xref py py-exc docutils literal"><span class="pre">abandonment.Abandoned</span></code> &#8211; May or may not be raised when the RPC has been
  794. aborted.</li>
  795. <li><a class="reference internal" href="#grpc.framework.interfaces.face.face.NoSuchMethodError" title="grpc.framework.interfaces.face.face.NoSuchMethodError"><code class="xref py py-exc docutils literal"><span class="pre">NoSuchMethodError</span></code></a> &#8211; If this MultiMethod does not recognize the given group
  796. and name for the RPC and is not able to service the RPC.</li>
  797. </ul>
  798. </td>
  799. </tr>
  800. </tbody>
  801. </table>
  802. </dd></dl>
  803. </dd></dl>
  804. <dl class="exception">
  805. <dt id="grpc.framework.interfaces.face.face.NetworkError">
  806. <em class="property">exception </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">NetworkError</code><span class="sig-paren">(</span><em>initial_metadata</em>, <em>terminal_metadata</em>, <em>code</em>, <em>details</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#NetworkError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.NetworkError" title="Permalink to this definition">¶</a></dt>
  807. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.interfaces.face.face.AbortionError" title="grpc.framework.interfaces.face.face.AbortionError"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.interfaces.face.face.AbortionError</span></code></a></p>
  808. <p>Indicates that some error occurred on the network.</p>
  809. </dd></dl>
  810. <dl class="exception">
  811. <dt id="grpc.framework.interfaces.face.face.NoSuchMethodError">
  812. <em class="property">exception </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">NoSuchMethodError</code><span class="sig-paren">(</span><em>group</em>, <em>method</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#NoSuchMethodError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.NoSuchMethodError" title="Permalink to this definition">¶</a></dt>
  813. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">Exception</span></code></p>
  814. <p>Raised by customer code to indicate an unrecognized method.</p>
  815. <dl class="attribute">
  816. <dt id="grpc.framework.interfaces.face.face.NoSuchMethodError.group">
  817. <code class="descname">group</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.NoSuchMethodError.group" title="Permalink to this definition">¶</a></dt>
  818. <dd><p>The group of the unrecognized method.</p>
  819. </dd></dl>
  820. <dl class="attribute">
  821. <dt id="grpc.framework.interfaces.face.face.NoSuchMethodError.name">
  822. <code class="descname">name</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.NoSuchMethodError.name" title="Permalink to this definition">¶</a></dt>
  823. <dd><p>The name of the unrecognized method.</p>
  824. </dd></dl>
  825. </dd></dl>
  826. <dl class="exception">
  827. <dt id="grpc.framework.interfaces.face.face.RemoteError">
  828. <em class="property">exception </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">RemoteError</code><span class="sig-paren">(</span><em>initial_metadata</em>, <em>terminal_metadata</em>, <em>code</em>, <em>details</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#RemoteError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.RemoteError" title="Permalink to this definition">¶</a></dt>
  829. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.interfaces.face.face.AbortionError" title="grpc.framework.interfaces.face.face.AbortionError"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.interfaces.face.face.AbortionError</span></code></a></p>
  830. <p>Indicates that an RPC has terminated due to a remote defect.</p>
  831. </dd></dl>
  832. <dl class="exception">
  833. <dt id="grpc.framework.interfaces.face.face.RemoteShutdownError">
  834. <em class="property">exception </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">RemoteShutdownError</code><span class="sig-paren">(</span><em>initial_metadata</em>, <em>terminal_metadata</em>, <em>code</em>, <em>details</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#RemoteShutdownError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.RemoteShutdownError" title="Permalink to this definition">¶</a></dt>
  835. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.interfaces.face.face.AbortionError" title="grpc.framework.interfaces.face.face.AbortionError"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.interfaces.face.face.AbortionError</span></code></a></p>
  836. <p>Indicates that an RPC has terminated due to remote shutdown of RPCs.</p>
  837. </dd></dl>
  838. <dl class="class">
  839. <dt id="grpc.framework.interfaces.face.face.ResponseReceiver">
  840. <em class="property">class </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">ResponseReceiver</code><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#ResponseReceiver"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.ResponseReceiver" title="Permalink to this definition">¶</a></dt>
  841. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  842. <p>Invocation-side object used to accept the output of an RPC.</p>
  843. <dl class="method">
  844. <dt id="grpc.framework.interfaces.face.face.ResponseReceiver.complete">
  845. <code class="descname">complete</code><span class="sig-paren">(</span><em>terminal_metadata</em>, <em>code</em>, <em>details</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#ResponseReceiver.complete"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.ResponseReceiver.complete" title="Permalink to this definition">¶</a></dt>
  846. <dd><p>Receives the completion values emitted from the service-side of the RPC.</p>
  847. <table class="docutils field-list" frame="void" rules="none">
  848. <col class="field-name" />
  849. <col class="field-body" />
  850. <tbody valign="top">
  851. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
  852. <li><strong>terminal_metadata</strong> &#8211; The terminal metadata object emitted from the
  853. service-side of the RPC.</li>
  854. <li><strong>code</strong> &#8211; The code object emitted from the service-side of the RPC.</li>
  855. <li><strong>details</strong> &#8211; The details object emitted from the service-side of the RPC.</li>
  856. </ul>
  857. </td>
  858. </tr>
  859. </tbody>
  860. </table>
  861. </dd></dl>
  862. <dl class="method">
  863. <dt id="grpc.framework.interfaces.face.face.ResponseReceiver.initial_metadata">
  864. <code class="descname">initial_metadata</code><span class="sig-paren">(</span><em>initial_metadata</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#ResponseReceiver.initial_metadata"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.ResponseReceiver.initial_metadata" title="Permalink to this definition">¶</a></dt>
  865. <dd><p>Receives the initial metadata from the service-side of the RPC.</p>
  866. <table class="docutils field-list" frame="void" rules="none">
  867. <col class="field-name" />
  868. <col class="field-body" />
  869. <tbody valign="top">
  870. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>initial_metadata</strong> &#8211; The initial metadata object emitted from the
  871. service-side of the RPC.</td>
  872. </tr>
  873. </tbody>
  874. </table>
  875. </dd></dl>
  876. <dl class="method">
  877. <dt id="grpc.framework.interfaces.face.face.ResponseReceiver.response">
  878. <code class="descname">response</code><span class="sig-paren">(</span><em>response</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#ResponseReceiver.response"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.ResponseReceiver.response" title="Permalink to this definition">¶</a></dt>
  879. <dd><p>Receives a response from the service-side of the RPC.</p>
  880. <table class="docutils field-list" frame="void" rules="none">
  881. <col class="field-name" />
  882. <col class="field-body" />
  883. <tbody valign="top">
  884. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>response</strong> &#8211; A response object emitted from the service-side of the RPC.</td>
  885. </tr>
  886. </tbody>
  887. </table>
  888. </dd></dl>
  889. </dd></dl>
  890. <dl class="class">
  891. <dt id="grpc.framework.interfaces.face.face.RpcContext">
  892. <em class="property">class </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">RpcContext</code><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#RpcContext"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.RpcContext" title="Permalink to this definition">¶</a></dt>
  893. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  894. <p>Provides RPC-related information and action.</p>
  895. <dl class="method">
  896. <dt id="grpc.framework.interfaces.face.face.RpcContext.add_abortion_callback">
  897. <code class="descname">add_abortion_callback</code><span class="sig-paren">(</span><em>abortion_callback</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#RpcContext.add_abortion_callback"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.RpcContext.add_abortion_callback" title="Permalink to this definition">¶</a></dt>
  898. <dd><p>Registers a callback to be called if the RPC is aborted.</p>
  899. <table class="docutils field-list" frame="void" rules="none">
  900. <col class="field-name" />
  901. <col class="field-body" />
  902. <tbody valign="top">
  903. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>abortion_callback</strong> &#8211; A callable to be called and passed an Abortion value
  904. in the event of RPC abortion.</td>
  905. </tr>
  906. </tbody>
  907. </table>
  908. </dd></dl>
  909. <dl class="method">
  910. <dt id="grpc.framework.interfaces.face.face.RpcContext.cancel">
  911. <code class="descname">cancel</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#RpcContext.cancel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.RpcContext.cancel" title="Permalink to this definition">¶</a></dt>
  912. <dd><p>Cancels the RPC.</p>
  913. <p>Idempotent and has no effect if the RPC has already terminated.</p>
  914. </dd></dl>
  915. <dl class="method">
  916. <dt id="grpc.framework.interfaces.face.face.RpcContext.is_active">
  917. <code class="descname">is_active</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#RpcContext.is_active"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.RpcContext.is_active" title="Permalink to this definition">¶</a></dt>
  918. <dd><p>Describes whether the RPC is active or has terminated.</p>
  919. </dd></dl>
  920. <dl class="method">
  921. <dt id="grpc.framework.interfaces.face.face.RpcContext.protocol_context">
  922. <code class="descname">protocol_context</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#RpcContext.protocol_context"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.RpcContext.protocol_context" title="Permalink to this definition">¶</a></dt>
  923. <dd><p>Accesses a custom object specified by an implementation provider.</p>
  924. <table class="docutils field-list" frame="void" rules="none">
  925. <col class="field-name" />
  926. <col class="field-body" />
  927. <tbody valign="top">
  928. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><dl class="docutils">
  929. <dt>A value specified by the provider of a Face interface implementation</dt>
  930. <dd>affording custom state and behavior.</dd>
  931. </dl>
  932. </td>
  933. </tr>
  934. </tbody>
  935. </table>
  936. </dd></dl>
  937. <dl class="method">
  938. <dt id="grpc.framework.interfaces.face.face.RpcContext.time_remaining">
  939. <code class="descname">time_remaining</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#RpcContext.time_remaining"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.RpcContext.time_remaining" title="Permalink to this definition">¶</a></dt>
  940. <dd><p>Describes the length of allowed time remaining for the RPC.</p>
  941. <table class="docutils field-list" frame="void" rules="none">
  942. <col class="field-name" />
  943. <col class="field-body" />
  944. <tbody valign="top">
  945. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">A nonnegative float indicating the length of allowed time in seconds
  946. remaining for the RPC to complete before it is considered to have timed
  947. out.</td>
  948. </tr>
  949. </tbody>
  950. </table>
  951. </dd></dl>
  952. </dd></dl>
  953. <dl class="class">
  954. <dt id="grpc.framework.interfaces.face.face.ServicerContext">
  955. <em class="property">class </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">ServicerContext</code><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#ServicerContext"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.ServicerContext" title="Permalink to this definition">¶</a></dt>
  956. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.interfaces.face.face.RpcContext" title="grpc.framework.interfaces.face.face.RpcContext"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.interfaces.face.face.RpcContext</span></code></a></p>
  957. <p>A context object passed to method implementations.</p>
  958. <dl class="method">
  959. <dt id="grpc.framework.interfaces.face.face.ServicerContext.code">
  960. <code class="descname">code</code><span class="sig-paren">(</span><em>code</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#ServicerContext.code"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.ServicerContext.code" title="Permalink to this definition">¶</a></dt>
  961. <dd><p>Accepts the service-side code of the RPC.</p>
  962. <p>This method need not be called by method implementations if they have no
  963. code to transmit.</p>
  964. <table class="docutils field-list" frame="void" rules="none">
  965. <col class="field-name" />
  966. <col class="field-body" />
  967. <tbody valign="top">
  968. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>code</strong> &#8211; The code of the RPC to be transmitted to the invocation side of the
  969. RPC.</td>
  970. </tr>
  971. </tbody>
  972. </table>
  973. </dd></dl>
  974. <dl class="method">
  975. <dt id="grpc.framework.interfaces.face.face.ServicerContext.details">
  976. <code class="descname">details</code><span class="sig-paren">(</span><em>details</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#ServicerContext.details"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.ServicerContext.details" title="Permalink to this definition">¶</a></dt>
  977. <dd><p>Accepts the service-side details of the RPC.</p>
  978. <p>This method need not be called by method implementations if they have no
  979. service-side details to transmit.</p>
  980. <table class="docutils field-list" frame="void" rules="none">
  981. <col class="field-name" />
  982. <col class="field-body" />
  983. <tbody valign="top">
  984. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>details</strong> &#8211; The service-side details value of the RPC to be transmitted to
  985. the invocation side of the RPC.</td>
  986. </tr>
  987. </tbody>
  988. </table>
  989. </dd></dl>
  990. <dl class="method">
  991. <dt id="grpc.framework.interfaces.face.face.ServicerContext.initial_metadata">
  992. <code class="descname">initial_metadata</code><span class="sig-paren">(</span><em>initial_metadata</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#ServicerContext.initial_metadata"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.ServicerContext.initial_metadata" title="Permalink to this definition">¶</a></dt>
  993. <dd><p>Accepts the service-side initial metadata value of the RPC.</p>
  994. <p>This method need not be called by method implementations if they have no
  995. service-side initial metadata to transmit.</p>
  996. <table class="docutils field-list" frame="void" rules="none">
  997. <col class="field-name" />
  998. <col class="field-body" />
  999. <tbody valign="top">
  1000. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>initial_metadata</strong> &#8211; The service-side initial metadata value of the RPC to
  1001. be transmitted to the invocation side of the RPC.</td>
  1002. </tr>
  1003. </tbody>
  1004. </table>
  1005. </dd></dl>
  1006. <dl class="method">
  1007. <dt id="grpc.framework.interfaces.face.face.ServicerContext.invocation_metadata">
  1008. <code class="descname">invocation_metadata</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#ServicerContext.invocation_metadata"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.ServicerContext.invocation_metadata" title="Permalink to this definition">¶</a></dt>
  1009. <dd><p>Accesses the metadata from the invocation-side of the RPC.</p>
  1010. <p>This method blocks until the value is available or is known not to have been
  1011. emitted from the invocation-side of the RPC.</p>
  1012. <table class="docutils field-list" frame="void" rules="none">
  1013. <col class="field-name" />
  1014. <col class="field-body" />
  1015. <tbody valign="top">
  1016. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><dl class="docutils">
  1017. <dt>The metadata object emitted by the invocation-side of the RPC, or None if</dt>
  1018. <dd>there was no such value.</dd>
  1019. </dl>
  1020. </td>
  1021. </tr>
  1022. </tbody>
  1023. </table>
  1024. </dd></dl>
  1025. <dl class="method">
  1026. <dt id="grpc.framework.interfaces.face.face.ServicerContext.terminal_metadata">
  1027. <code class="descname">terminal_metadata</code><span class="sig-paren">(</span><em>terminal_metadata</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#ServicerContext.terminal_metadata"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.ServicerContext.terminal_metadata" title="Permalink to this definition">¶</a></dt>
  1028. <dd><p>Accepts the service-side terminal metadata value of the RPC.</p>
  1029. <p>This method need not be called by method implementations if they have no
  1030. service-side terminal metadata to transmit.</p>
  1031. <table class="docutils field-list" frame="void" rules="none">
  1032. <col class="field-name" />
  1033. <col class="field-body" />
  1034. <tbody valign="top">
  1035. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>terminal_metadata</strong> &#8211; The service-side terminal metadata value of the RPC to
  1036. be transmitted to the invocation side of the RPC.</td>
  1037. </tr>
  1038. </tbody>
  1039. </table>
  1040. </dd></dl>
  1041. </dd></dl>
  1042. <dl class="class">
  1043. <dt id="grpc.framework.interfaces.face.face.StreamStreamMultiCallable">
  1044. <em class="property">class </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">StreamStreamMultiCallable</code><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#StreamStreamMultiCallable"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.StreamStreamMultiCallable" title="Permalink to this definition">¶</a></dt>
  1045. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  1046. <p>Affords invoking a stream-stream RPC in any call style.</p>
  1047. <dl class="method">
  1048. <dt id="grpc.framework.interfaces.face.face.StreamStreamMultiCallable.__call__">
  1049. <code class="descname">__call__</code><span class="sig-paren">(</span><em>request_iterator</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#StreamStreamMultiCallable.__call__"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.StreamStreamMultiCallable.__call__" title="Permalink to this definition">¶</a></dt>
  1050. <dd><p>Invokes the underlying RPC.</p>
  1051. <table class="docutils field-list" frame="void" rules="none">
  1052. <col class="field-name" />
  1053. <col class="field-body" />
  1054. <tbody valign="top">
  1055. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1056. <li><strong>request_iterator</strong> &#8211; An iterator that yields request values for the RPC.</li>
  1057. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  1058. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of
  1059. the RPC.</li>
  1060. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  1061. implementation affording custom state and behavior.</li>
  1062. </ul>
  1063. </td>
  1064. </tr>
  1065. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils">
  1066. <dt>An object that is both a Call for the RPC and an iterator of response</dt>
  1067. <dd><p class="first last">values. Drawing response values from the returned iterator may raise
  1068. AbortionError indicating abortion of the RPC.</p>
  1069. </dd>
  1070. </dl>
  1071. </p>
  1072. </td>
  1073. </tr>
  1074. </tbody>
  1075. </table>
  1076. </dd></dl>
  1077. <dl class="method">
  1078. <dt id="grpc.framework.interfaces.face.face.StreamStreamMultiCallable.event">
  1079. <code class="descname">event</code><span class="sig-paren">(</span><em>receiver</em>, <em>abortion_callback</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#StreamStreamMultiCallable.event"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.StreamStreamMultiCallable.event" title="Permalink to this definition">¶</a></dt>
  1080. <dd><p>Asynchronously invokes the underlying RPC.</p>
  1081. <table class="docutils field-list" frame="void" rules="none">
  1082. <col class="field-name" />
  1083. <col class="field-body" />
  1084. <tbody valign="top">
  1085. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1086. <li><strong>receiver</strong> &#8211; A ResponseReceiver to be passed the response data of the RPC.</li>
  1087. <li><strong>abortion_callback</strong> &#8211; A callback to be called and passed an Abortion value
  1088. in the event of RPC abortion.</li>
  1089. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  1090. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of
  1091. the RPC.</li>
  1092. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  1093. implementation affording custom state and behavior.</li>
  1094. </ul>
  1095. </td>
  1096. </tr>
  1097. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils">
  1098. <dt>A single object that is both a Call object for the RPC and a</dt>
  1099. <dd><p class="first last">stream.Consumer to which the request values of the RPC should be passed.</p>
  1100. </dd>
  1101. </dl>
  1102. </p>
  1103. </td>
  1104. </tr>
  1105. </tbody>
  1106. </table>
  1107. </dd></dl>
  1108. </dd></dl>
  1109. <dl class="class">
  1110. <dt id="grpc.framework.interfaces.face.face.StreamUnaryMultiCallable">
  1111. <em class="property">class </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">StreamUnaryMultiCallable</code><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#StreamUnaryMultiCallable"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.StreamUnaryMultiCallable" title="Permalink to this definition">¶</a></dt>
  1112. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  1113. <p>Affords invoking a stream-unary RPC in any call style.</p>
  1114. <dl class="method">
  1115. <dt id="grpc.framework.interfaces.face.face.StreamUnaryMultiCallable.__call__">
  1116. <code class="descname">__call__</code><span class="sig-paren">(</span><em>request_iterator</em>, <em>timeout</em>, <em>metadata=None</em>, <em>with_call=False</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#StreamUnaryMultiCallable.__call__"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.StreamUnaryMultiCallable.__call__" title="Permalink to this definition">¶</a></dt>
  1117. <dd><p>Synchronously invokes the underlying RPC.</p>
  1118. <table class="docutils field-list" frame="void" rules="none">
  1119. <col class="field-name" />
  1120. <col class="field-body" />
  1121. <tbody valign="top">
  1122. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1123. <li><strong>request_iterator</strong> &#8211; An iterator that yields request values for the RPC.</li>
  1124. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  1125. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of
  1126. the RPC.</li>
  1127. <li><strong>with_call</strong> &#8211; Whether or not to include return a Call for the RPC in addition
  1128. to the response.</li>
  1129. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  1130. implementation affording custom state and behavior.</li>
  1131. </ul>
  1132. </td>
  1133. </tr>
  1134. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><dl class="docutils">
  1135. <dt>The response value for the RPC, and a Call for the RPC if with_call was</dt>
  1136. <dd><p class="first last">set to True at invocation.</p>
  1137. </dd>
  1138. </dl>
  1139. </p>
  1140. </td>
  1141. </tr>
  1142. <tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"><p class="first last"><a class="reference internal" href="#grpc.framework.interfaces.face.face.AbortionError" title="grpc.framework.interfaces.face.face.AbortionError"><code class="xref py py-exc docutils literal"><span class="pre">AbortionError</span></code></a> &#8211; Indicating that the RPC was aborted.</p>
  1143. </td>
  1144. </tr>
  1145. </tbody>
  1146. </table>
  1147. </dd></dl>
  1148. <dl class="method">
  1149. <dt id="grpc.framework.interfaces.face.face.StreamUnaryMultiCallable.event">
  1150. <code class="descname">event</code><span class="sig-paren">(</span><em>receiver</em>, <em>abortion_callback</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#StreamUnaryMultiCallable.event"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.StreamUnaryMultiCallable.event" title="Permalink to this definition">¶</a></dt>
  1151. <dd><p>Asynchronously invokes the underlying RPC.</p>
  1152. <table class="docutils field-list" frame="void" rules="none">
  1153. <col class="field-name" />
  1154. <col class="field-body" />
  1155. <tbody valign="top">
  1156. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1157. <li><strong>receiver</strong> &#8211; A ResponseReceiver to be passed the response data of the RPC.</li>
  1158. <li><strong>abortion_callback</strong> &#8211; A callback to be called and passed an Abortion value
  1159. in the event of RPC abortion.</li>
  1160. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  1161. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of
  1162. the RPC.</li>
  1163. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  1164. implementation affording custom state and behavior.</li>
  1165. </ul>
  1166. </td>
  1167. </tr>
  1168. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils">
  1169. <dt>A single object that is both a Call object for the RPC and a</dt>
  1170. <dd><p class="first last">stream.Consumer to which the request values of the RPC should be passed.</p>
  1171. </dd>
  1172. </dl>
  1173. </p>
  1174. </td>
  1175. </tr>
  1176. </tbody>
  1177. </table>
  1178. </dd></dl>
  1179. <dl class="method">
  1180. <dt id="grpc.framework.interfaces.face.face.StreamUnaryMultiCallable.future">
  1181. <code class="descname">future</code><span class="sig-paren">(</span><em>request_iterator</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#StreamUnaryMultiCallable.future"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.StreamUnaryMultiCallable.future" title="Permalink to this definition">¶</a></dt>
  1182. <dd><p>Asynchronously invokes the underlying RPC.</p>
  1183. <table class="docutils field-list" frame="void" rules="none">
  1184. <col class="field-name" />
  1185. <col class="field-body" />
  1186. <tbody valign="top">
  1187. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1188. <li><strong>request_iterator</strong> &#8211; An iterator that yields request values for the RPC.</li>
  1189. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  1190. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of
  1191. the RPC.</li>
  1192. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  1193. implementation affording custom state and behavior.</li>
  1194. </ul>
  1195. </td>
  1196. </tr>
  1197. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils">
  1198. <dt>An object that is both a Call for the RPC and a future.Future. In the</dt>
  1199. <dd><p class="first last">event of RPC completion, the return Future&#8217;s result value will be the
  1200. response value of the RPC. In the event of RPC abortion, the returned
  1201. Future&#8217;s exception value will be an AbortionError.</p>
  1202. </dd>
  1203. </dl>
  1204. </p>
  1205. </td>
  1206. </tr>
  1207. </tbody>
  1208. </table>
  1209. </dd></dl>
  1210. </dd></dl>
  1211. <dl class="class">
  1212. <dt id="grpc.framework.interfaces.face.face.UnaryStreamMultiCallable">
  1213. <em class="property">class </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">UnaryStreamMultiCallable</code><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#UnaryStreamMultiCallable"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.UnaryStreamMultiCallable" title="Permalink to this definition">¶</a></dt>
  1214. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  1215. <p>Affords invoking a unary-stream RPC in any call style.</p>
  1216. <dl class="method">
  1217. <dt id="grpc.framework.interfaces.face.face.UnaryStreamMultiCallable.__call__">
  1218. <code class="descname">__call__</code><span class="sig-paren">(</span><em>request</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#UnaryStreamMultiCallable.__call__"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.UnaryStreamMultiCallable.__call__" title="Permalink to this definition">¶</a></dt>
  1219. <dd><p>Invokes the underlying RPC.</p>
  1220. <table class="docutils field-list" frame="void" rules="none">
  1221. <col class="field-name" />
  1222. <col class="field-body" />
  1223. <tbody valign="top">
  1224. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1225. <li><strong>request</strong> &#8211; The request value for the RPC.</li>
  1226. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  1227. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of
  1228. the RPC.</li>
  1229. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  1230. implementation affording custom state and behavior.</li>
  1231. </ul>
  1232. </td>
  1233. </tr>
  1234. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils">
  1235. <dt>An object that is both a Call for the RPC and an iterator of response</dt>
  1236. <dd><p class="first last">values. Drawing response values from the returned iterator may raise
  1237. AbortionError indicating abortion of the RPC.</p>
  1238. </dd>
  1239. </dl>
  1240. </p>
  1241. </td>
  1242. </tr>
  1243. </tbody>
  1244. </table>
  1245. </dd></dl>
  1246. <dl class="method">
  1247. <dt id="grpc.framework.interfaces.face.face.UnaryStreamMultiCallable.event">
  1248. <code class="descname">event</code><span class="sig-paren">(</span><em>request</em>, <em>receiver</em>, <em>abortion_callback</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#UnaryStreamMultiCallable.event"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.UnaryStreamMultiCallable.event" title="Permalink to this definition">¶</a></dt>
  1249. <dd><p>Asynchronously invokes the underlying RPC.</p>
  1250. <table class="docutils field-list" frame="void" rules="none">
  1251. <col class="field-name" />
  1252. <col class="field-body" />
  1253. <tbody valign="top">
  1254. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1255. <li><strong>request</strong> &#8211; The request value for the RPC.</li>
  1256. <li><strong>receiver</strong> &#8211; A ResponseReceiver to be passed the response data of the RPC.</li>
  1257. <li><strong>abortion_callback</strong> &#8211; A callback to be called and passed an Abortion value
  1258. in the event of RPC abortion.</li>
  1259. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  1260. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of
  1261. the RPC.</li>
  1262. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  1263. implementation affording custom state and behavior.</li>
  1264. </ul>
  1265. </td>
  1266. </tr>
  1267. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A Call object for the RPC.</p>
  1268. </td>
  1269. </tr>
  1270. </tbody>
  1271. </table>
  1272. </dd></dl>
  1273. </dd></dl>
  1274. <dl class="class">
  1275. <dt id="grpc.framework.interfaces.face.face.UnaryUnaryMultiCallable">
  1276. <em class="property">class </em><code class="descclassname">grpc.framework.interfaces.face.face.</code><code class="descname">UnaryUnaryMultiCallable</code><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#UnaryUnaryMultiCallable"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.UnaryUnaryMultiCallable" title="Permalink to this definition">¶</a></dt>
  1277. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  1278. <p>Affords invoking a unary-unary RPC in any call style.</p>
  1279. <dl class="method">
  1280. <dt id="grpc.framework.interfaces.face.face.UnaryUnaryMultiCallable.__call__">
  1281. <code class="descname">__call__</code><span class="sig-paren">(</span><em>request</em>, <em>timeout</em>, <em>metadata=None</em>, <em>with_call=False</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#UnaryUnaryMultiCallable.__call__"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.UnaryUnaryMultiCallable.__call__" title="Permalink to this definition">¶</a></dt>
  1282. <dd><p>Synchronously invokes the underlying RPC.</p>
  1283. <table class="docutils field-list" frame="void" rules="none">
  1284. <col class="field-name" />
  1285. <col class="field-body" />
  1286. <tbody valign="top">
  1287. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1288. <li><strong>request</strong> &#8211; The request value for the RPC.</li>
  1289. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  1290. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of
  1291. the RPC.</li>
  1292. <li><strong>with_call</strong> &#8211; Whether or not to include return a Call for the RPC in addition
  1293. to the response.</li>
  1294. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  1295. implementation affording custom state and behavior.</li>
  1296. </ul>
  1297. </td>
  1298. </tr>
  1299. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><dl class="docutils">
  1300. <dt>The response value for the RPC, and a Call for the RPC if with_call was</dt>
  1301. <dd><p class="first last">set to True at invocation.</p>
  1302. </dd>
  1303. </dl>
  1304. </p>
  1305. </td>
  1306. </tr>
  1307. <tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"><p class="first last"><a class="reference internal" href="#grpc.framework.interfaces.face.face.AbortionError" title="grpc.framework.interfaces.face.face.AbortionError"><code class="xref py py-exc docutils literal"><span class="pre">AbortionError</span></code></a> &#8211; Indicating that the RPC was aborted.</p>
  1308. </td>
  1309. </tr>
  1310. </tbody>
  1311. </table>
  1312. </dd></dl>
  1313. <dl class="method">
  1314. <dt id="grpc.framework.interfaces.face.face.UnaryUnaryMultiCallable.event">
  1315. <code class="descname">event</code><span class="sig-paren">(</span><em>request</em>, <em>receiver</em>, <em>abortion_callback</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#UnaryUnaryMultiCallable.event"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.UnaryUnaryMultiCallable.event" title="Permalink to this definition">¶</a></dt>
  1316. <dd><p>Asynchronously invokes the underlying RPC.</p>
  1317. <table class="docutils field-list" frame="void" rules="none">
  1318. <col class="field-name" />
  1319. <col class="field-body" />
  1320. <tbody valign="top">
  1321. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1322. <li><strong>request</strong> &#8211; The request value for the RPC.</li>
  1323. <li><strong>receiver</strong> &#8211; A ResponseReceiver to be passed the response data of the RPC.</li>
  1324. <li><strong>abortion_callback</strong> &#8211; A callback to be called and passed an Abortion value
  1325. in the event of RPC abortion.</li>
  1326. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  1327. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of
  1328. the RPC.</li>
  1329. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  1330. implementation affording custom state and behavior.</li>
  1331. </ul>
  1332. </td>
  1333. </tr>
  1334. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A Call for the RPC.</p>
  1335. </td>
  1336. </tr>
  1337. </tbody>
  1338. </table>
  1339. </dd></dl>
  1340. <dl class="method">
  1341. <dt id="grpc.framework.interfaces.face.face.UnaryUnaryMultiCallable.future">
  1342. <code class="descname">future</code><span class="sig-paren">(</span><em>request</em>, <em>timeout</em>, <em>metadata=None</em>, <em>protocol_options=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/face.html#UnaryUnaryMultiCallable.future"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.face.UnaryUnaryMultiCallable.future" title="Permalink to this definition">¶</a></dt>
  1343. <dd><p>Asynchronously invokes the underlying RPC.</p>
  1344. <table class="docutils field-list" frame="void" rules="none">
  1345. <col class="field-name" />
  1346. <col class="field-body" />
  1347. <tbody valign="top">
  1348. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1349. <li><strong>request</strong> &#8211; The request value for the RPC.</li>
  1350. <li><strong>timeout</strong> &#8211; A duration of time in seconds to allow for the RPC.</li>
  1351. <li><strong>metadata</strong> &#8211; A metadata value to be passed to the service-side of
  1352. the RPC.</li>
  1353. <li><strong>protocol_options</strong> &#8211; A value specified by the provider of a Face interface
  1354. implementation affording custom state and behavior.</li>
  1355. </ul>
  1356. </td>
  1357. </tr>
  1358. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils">
  1359. <dt>An object that is both a Call for the RPC and a future.Future. In the</dt>
  1360. <dd><p class="first last">event of RPC completion, the return Future&#8217;s result value will be the
  1361. response value of the RPC. In the event of RPC abortion, the returned
  1362. Future&#8217;s exception value will be an AbortionError.</p>
  1363. </dd>
  1364. </dl>
  1365. </p>
  1366. </td>
  1367. </tr>
  1368. </tbody>
  1369. </table>
  1370. </dd></dl>
  1371. </dd></dl>
  1372. </div>
  1373. <div class="section" id="module-grpc.framework.interfaces.face.utilities">
  1374. <span id="grpc-framework-interfaces-face-utilities-module"></span><h2>grpc.framework.interfaces.face.utilities module<a class="headerlink" href="#module-grpc.framework.interfaces.face.utilities" title="Permalink to this headline">¶</a></h2>
  1375. <p>Utilities for RPC Framework&#8217;s Face interface.</p>
  1376. <dl class="function">
  1377. <dt id="grpc.framework.interfaces.face.utilities.stream_stream_event">
  1378. <code class="descclassname">grpc.framework.interfaces.face.utilities.</code><code class="descname">stream_stream_event</code><span class="sig-paren">(</span><em>behavior</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/utilities.html#stream_stream_event"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.utilities.stream_stream_event" title="Permalink to this definition">¶</a></dt>
  1379. <dd><p>Creates an face.MethodImplementation for the given behavior.</p>
  1380. <table class="docutils field-list" frame="void" rules="none">
  1381. <col class="field-name" />
  1382. <col class="field-body" />
  1383. <tbody valign="top">
  1384. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> &#8211; The implementation of a stream-stream RPC method as a callable
  1385. value that takes a stream.Consumer to which to pass the response values
  1386. of the RPC and an face.ServicerContext and returns a stream.Consumer to
  1387. which the request values of the RPC should be passed.</td>
  1388. </tr>
  1389. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td>
  1390. </tr>
  1391. </tbody>
  1392. </table>
  1393. </dd></dl>
  1394. <dl class="function">
  1395. <dt id="grpc.framework.interfaces.face.utilities.stream_stream_inline">
  1396. <code class="descclassname">grpc.framework.interfaces.face.utilities.</code><code class="descname">stream_stream_inline</code><span class="sig-paren">(</span><em>behavior</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/utilities.html#stream_stream_inline"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.utilities.stream_stream_inline" title="Permalink to this definition">¶</a></dt>
  1397. <dd><p>Creates an face.MethodImplementation for the given behavior.</p>
  1398. <table class="docutils field-list" frame="void" rules="none">
  1399. <col class="field-name" />
  1400. <col class="field-body" />
  1401. <tbody valign="top">
  1402. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> &#8211; The implementation of a stream-stream RPC method as a callable
  1403. value that takes an iterator of request values and an
  1404. face.ServicerContext object and returns an iterator of response values.</td>
  1405. </tr>
  1406. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td>
  1407. </tr>
  1408. </tbody>
  1409. </table>
  1410. </dd></dl>
  1411. <dl class="function">
  1412. <dt id="grpc.framework.interfaces.face.utilities.stream_unary_event">
  1413. <code class="descclassname">grpc.framework.interfaces.face.utilities.</code><code class="descname">stream_unary_event</code><span class="sig-paren">(</span><em>behavior</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/utilities.html#stream_unary_event"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.utilities.stream_unary_event" title="Permalink to this definition">¶</a></dt>
  1414. <dd><p>Creates an face.MethodImplementation for the given behavior.</p>
  1415. <table class="docutils field-list" frame="void" rules="none">
  1416. <col class="field-name" />
  1417. <col class="field-body" />
  1418. <tbody valign="top">
  1419. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> &#8211; The implementation of a stream-unary RPC method as a callable
  1420. value that takes a response callback to which to pass the response value
  1421. of the RPC and an face.ServicerContext and returns a stream.Consumer to
  1422. which the request values of the RPC should be passed.</td>
  1423. </tr>
  1424. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td>
  1425. </tr>
  1426. </tbody>
  1427. </table>
  1428. </dd></dl>
  1429. <dl class="function">
  1430. <dt id="grpc.framework.interfaces.face.utilities.stream_unary_inline">
  1431. <code class="descclassname">grpc.framework.interfaces.face.utilities.</code><code class="descname">stream_unary_inline</code><span class="sig-paren">(</span><em>behavior</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/utilities.html#stream_unary_inline"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.utilities.stream_unary_inline" title="Permalink to this definition">¶</a></dt>
  1432. <dd><p>Creates an face.MethodImplementation for the given behavior.</p>
  1433. <table class="docutils field-list" frame="void" rules="none">
  1434. <col class="field-name" />
  1435. <col class="field-body" />
  1436. <tbody valign="top">
  1437. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> &#8211; The implementation of a stream-unary RPC method as a callable
  1438. value that takes an iterator of request values and an
  1439. face.ServicerContext object and returns a response value.</td>
  1440. </tr>
  1441. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td>
  1442. </tr>
  1443. </tbody>
  1444. </table>
  1445. </dd></dl>
  1446. <dl class="function">
  1447. <dt id="grpc.framework.interfaces.face.utilities.unary_stream_event">
  1448. <code class="descclassname">grpc.framework.interfaces.face.utilities.</code><code class="descname">unary_stream_event</code><span class="sig-paren">(</span><em>behavior</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/utilities.html#unary_stream_event"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.utilities.unary_stream_event" title="Permalink to this definition">¶</a></dt>
  1449. <dd><p>Creates an face.MethodImplementation for the given behavior.</p>
  1450. <table class="docutils field-list" frame="void" rules="none">
  1451. <col class="field-name" />
  1452. <col class="field-body" />
  1453. <tbody valign="top">
  1454. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> &#8211; The implementation of a unary-stream RPC method as a callable
  1455. value that takes a request value, a stream.Consumer to which to pass the
  1456. the response values of the RPC, and an face.ServicerContext.</td>
  1457. </tr>
  1458. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td>
  1459. </tr>
  1460. </tbody>
  1461. </table>
  1462. </dd></dl>
  1463. <dl class="function">
  1464. <dt id="grpc.framework.interfaces.face.utilities.unary_stream_inline">
  1465. <code class="descclassname">grpc.framework.interfaces.face.utilities.</code><code class="descname">unary_stream_inline</code><span class="sig-paren">(</span><em>behavior</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/utilities.html#unary_stream_inline"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.utilities.unary_stream_inline" title="Permalink to this definition">¶</a></dt>
  1466. <dd><p>Creates an face.MethodImplementation for the given behavior.</p>
  1467. <table class="docutils field-list" frame="void" rules="none">
  1468. <col class="field-name" />
  1469. <col class="field-body" />
  1470. <tbody valign="top">
  1471. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> &#8211; The implementation of a unary-stream RPC method as a callable
  1472. value that takes a request value and an face.ServicerContext object and
  1473. returns an iterator of response values.</td>
  1474. </tr>
  1475. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td>
  1476. </tr>
  1477. </tbody>
  1478. </table>
  1479. </dd></dl>
  1480. <dl class="function">
  1481. <dt id="grpc.framework.interfaces.face.utilities.unary_unary_event">
  1482. <code class="descclassname">grpc.framework.interfaces.face.utilities.</code><code class="descname">unary_unary_event</code><span class="sig-paren">(</span><em>behavior</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/utilities.html#unary_unary_event"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.utilities.unary_unary_event" title="Permalink to this definition">¶</a></dt>
  1483. <dd><p>Creates an face.MethodImplementation for the given behavior.</p>
  1484. <table class="docutils field-list" frame="void" rules="none">
  1485. <col class="field-name" />
  1486. <col class="field-body" />
  1487. <tbody valign="top">
  1488. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> &#8211; The implementation of a unary-unary RPC method as a callable
  1489. value that takes a request value, a response callback to which to pass
  1490. the response value of the RPC, and an face.ServicerContext.</td>
  1491. </tr>
  1492. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td>
  1493. </tr>
  1494. </tbody>
  1495. </table>
  1496. </dd></dl>
  1497. <dl class="function">
  1498. <dt id="grpc.framework.interfaces.face.utilities.unary_unary_inline">
  1499. <code class="descclassname">grpc.framework.interfaces.face.utilities.</code><code class="descname">unary_unary_inline</code><span class="sig-paren">(</span><em>behavior</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/interfaces/face/utilities.html#unary_unary_inline"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.interfaces.face.utilities.unary_unary_inline" title="Permalink to this definition">¶</a></dt>
  1500. <dd><p>Creates an face.MethodImplementation for the given behavior.</p>
  1501. <table class="docutils field-list" frame="void" rules="none">
  1502. <col class="field-name" />
  1503. <col class="field-body" />
  1504. <tbody valign="top">
  1505. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> &#8211; The implementation of a unary-unary RPC method as a callable value
  1506. that takes a request value and an face.ServicerContext object and
  1507. returns a response value.</td>
  1508. </tr>
  1509. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td>
  1510. </tr>
  1511. </tbody>
  1512. </table>
  1513. </dd></dl>
  1514. </div>
  1515. <div class="section" id="module-grpc.framework.interfaces.face">
  1516. <span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-grpc.framework.interfaces.face" title="Permalink to this headline">¶</a></h2>
  1517. </div>
  1518. </div>
  1519. </div>
  1520. </div>
  1521. <footer>
  1522. <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
  1523. <a href="grpc.framework.interfaces.base.html" class="btn btn-neutral" title="grpc.framework.interfaces.base package" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
  1524. </div>
  1525. <hr/>
  1526. <div role="contentinfo">
  1527. <p>
  1528. &copy; Copyright 2016, Author.
  1529. </p>
  1530. </div>
  1531. Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
  1532. </footer>
  1533. </div>
  1534. </div>
  1535. </section>
  1536. </div>
  1537. <script type="text/javascript">
  1538. var DOCUMENTATION_OPTIONS = {
  1539. URL_ROOT:'./',
  1540. VERSION:'1.0.4',
  1541. COLLAPSE_INDEX:false,
  1542. FILE_SUFFIX:'.html',
  1543. HAS_SOURCE: true
  1544. };
  1545. </script>
  1546. <script type="text/javascript" src="_static/jquery.js"></script>
  1547. <script type="text/javascript" src="_static/underscore.js"></script>
  1548. <script type="text/javascript" src="_static/doctools.js"></script>
  1549. <script type="text/javascript" src="_static/js/theme.js"></script>
  1550. <script type="text/javascript">
  1551. jQuery(function () {
  1552. SphinxRtdTheme.StickyNav.enable();
  1553. });
  1554. </script>
  1555. </body>
  1556. </html>