grpc.framework.interfaces.face.html 108 KB

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