grpc.framework.interfaces.face.html 112 KB

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