grpc.framework.interfaces.face.html 112 KB

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