| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756 | 
<!DOCTYPE html><!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--><!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--><head>  <meta charset="utf-8">    <meta name="viewport" content="width=device-width, initial-scale=1.0">    <title>grpc.framework.interfaces.face package — grpcio 1.0.4 documentation</title>                          <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />              <link rel="index" title="Index"              href="genindex.html"/>        <link rel="search" title="Search" href="search.html"/>    <link rel="top" title="grpcio 1.0.4 documentation" href="index.html"/>        <link rel="up" title="grpc.framework.interfaces package" href="grpc.framework.interfaces.html"/>        <link rel="prev" title="grpc.framework.interfaces.base package" href="grpc.framework.interfaces.base.html"/>     <script src="_static/js/modernizr.min.js"></script></head><body class="wy-body-for-nav" role="document">     <div class="wy-grid-for-nav">        <nav data-toggle="wy-nav-shift" class="wy-nav-side">      <div class="wy-side-scroll">        <div class="wy-side-nav-search">                                <a href="index.html" class="icon icon-home"> grpcio                              </a>                                                <div class="version">                1.0.4              </div>                                <div role="search">  <form id="rtd-search-form" class="wy-form" action="search.html" method="get">    <input type="text" name="q" placeholder="Search docs" />    <input type="hidden" name="check_keywords" value="yes" />    <input type="hidden" name="area" value="default" />  </form></div>                  </div>        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">                                                  <p class="caption"><span class="caption-text">Contents:</span></p><ul class="current"><li class="toctree-l1 current"><a class="reference internal" href="grpc.html">grpc package</a><ul class="current"><li class="toctree-l2 current"><a class="reference internal" href="grpc.html#subpackages">Subpackages</a><ul class="current"><li class="toctree-l3"><a class="reference internal" href="grpc.beta.html">grpc.beta package</a></li><li class="toctree-l3 current"><a class="reference internal" href="grpc.framework.html">grpc.framework package</a><ul class="current"><li class="toctree-l4 current"><a class="reference internal" href="grpc.framework.html#subpackages">Subpackages</a></li><li class="toctree-l4"><a class="reference internal" href="grpc.framework.html#module-grpc.framework">Module contents</a></li></ul></li></ul></li><li class="toctree-l2"><a class="reference internal" href="grpc.html#module-grpc">Module contents</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="grpc.html#glossary">Glossary</a></li></ul>                              </div>      </div>    </nav>    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">            <nav class="wy-nav-top" role="navigation" aria-label="top navigation">        <i data-toggle="wy-nav-top" class="fa fa-bars"></i>        <a href="index.html">grpcio</a>      </nav>            <div class="wy-nav-content">        <div class="rst-content">           <div role="navigation" aria-label="breadcrumbs navigation">  <ul class="wy-breadcrumbs">    <li><a href="index.html">Docs</a> »</li>              <li><a href="grpc.html">grpc package</a> »</li>              <li><a href="grpc.framework.html">grpc.framework package</a> »</li>              <li><a href="grpc.framework.interfaces.html">grpc.framework.interfaces package</a> »</li>          <li>grpc.framework.interfaces.face package</li>    <li class="wy-breadcrumbs-aside">                          <a href="_sources/grpc.framework.interfaces.face.rst.txt" rel="nofollow"> View page source</a>                  </li>  </ul>  <hr/></div>          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">           <div itemprop="articleBody">              <div class="section" id="grpc-framework-interfaces-face-package"><h1>grpc.framework.interfaces.face package<a class="headerlink" href="#grpc-framework-interfaces-face-package" title="Permalink to this headline">¶</a></h1><div class="section" id="submodules"><h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2></div><div class="section" id="module-grpc.framework.interfaces.face.face"><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><p>Interfaces defining the Face layer of RPC Framework.</p><dl class="class"><dt id="grpc.framework.interfaces.face.face.Abortion"><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><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><p>A value describing RPC abortion.</p><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.Abortion.kind"><code class="descname">kind</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.Abortion.kind" title="Permalink to this definition">¶</a></dt><dd><p>A Kind value identifying how the RPC failed.</p></dd></dl><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.Abortion.initial_metadata"><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><dd><p>The initial metadata from the other side of the RPC orNone if no initial metadata value was received.</p></dd></dl><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.Abortion.terminal_metadata"><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><dd><p>The terminal metadata from the other side of the RPC orNone if no terminal metadata value was received.</p></dd></dl><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.Abortion.code"><code class="descname">code</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.Abortion.code" title="Permalink to this definition">¶</a></dt><dd><p>The code value from the other side of the RPC or None if no code valuewas received.</p></dd></dl><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.Abortion.details"><code class="descname">details</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.Abortion.details" title="Permalink to this definition">¶</a></dt><dd><p>The details value from the other side of the RPC or None if nodetails value was received.</p></dd></dl><dl class="class"><dt id="grpc.framework.interfaces.face.face.Abortion.Kind"><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><dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">enum.Enum</span></code></p><p>Types of RPC abortion.</p></dd></dl></dd></dl><dl class="exception"><dt id="grpc.framework.interfaces.face.face.AbortionError"><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><dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">Exception</span></code></p><p>Common super type for exceptions indicating RPC abortion.</p><dl class="docutils"><dt>initial_metadata: The initial metadata from the other side of the RPC or</dt><dd>None if no initial metadata value was received.</dd><dt>terminal_metadata: The terminal metadata from the other side of the RPC or</dt><dd>None if no terminal metadata value was received.</dd><dt>code: The code value from the other side of the RPC or None if no code value</dt><dd>was received.</dd><dt>details: The details value from the other side of the RPC or None if no</dt><dd>details value was received.</dd></dl></dd></dl><dl class="class"><dt id="grpc.framework.interfaces.face.face.Call"><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><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><p>Invocation-side utility object for an RPC.</p><dl class="method"><dt id="grpc.framework.interfaces.face.face.Call.code"><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><dd><p>Accesses the code emitted by the service-side of the RPC.</p><p>This method blocks until the value is available or is known not to have beenemitted from the service-side of the RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><dl class="docutils"><dt>The code object emitted by the service-side of the RPC, or None if there</dt><dd>was no such value.</dd></dl></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.Call.details"><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><dd><p>Accesses the details value emitted by the service-side of the RPC.</p><p>This method blocks until the value is available or is known not to have beenemitted from the service-side of the RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><dl class="docutils"><dt>The details value emitted by the service-side of the RPC, or None if there</dt><dd>was no such value.</dd></dl></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.Call.initial_metadata"><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><dd><p>Accesses the initial metadata from the service-side of the RPC.</p><p>This method blocks until the value is available or is known not to have beenemitted from the service-side of the RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><dl class="docutils"><dt>The initial metadata object emitted by the service-side of the RPC, or</dt><dd>None if there was no such value.</dd></dl></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.Call.terminal_metadata"><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><dd><p>Accesses the terminal metadata from the service-side of the RPC.</p><p>This method blocks until the value is available or is known not to have beenemitted from the service-side of the RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><dl class="docutils"><dt>The terminal metadata object emitted by the service-side of the RPC, or</dt><dd>None if there was no such value.</dd></dl></td></tr></tbody></table></dd></dl></dd></dl><dl class="exception"><dt id="grpc.framework.interfaces.face.face.CancellationError"><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><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><p>Indicates that an RPC has been cancelled.</p></dd></dl><dl class="class"><dt id="grpc.framework.interfaces.face.face.DynamicStub"><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><dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p><p>Affords RPC invocation via attributes corresponding to afforded methods.</p><p>Instances of this type may be scoped to a single group so that attributeaccess is unambiguous.</p><p>Instances of this type respond to attribute access as follows: if therequested attribute is the name of a unary-unary method, the value of theattribute will be a UnaryUnaryMultiCallable with which to invoke an RPC; ifthe requested attribute is the name of a unary-stream method, the value of theattribute will be a UnaryStreamMultiCallable with which to invoke an RPC; ifthe requested attribute is the name of a stream-unary method, the value of theattribute will be a StreamUnaryMultiCallable with which to invoke an RPC; andif the requested attribute is the name of a stream-stream method, the value ofthe attribute will be a StreamStreamMultiCallable with which to invoke an RPC.</p></dd></dl><dl class="exception"><dt id="grpc.framework.interfaces.face.face.ExpirationError"><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><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><p>Indicates that an RPC has expired (“timed out”).</p></dd></dl><dl class="class"><dt id="grpc.framework.interfaces.face.face.GenericStub"><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><dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p><p>Affords RPC invocation via generic methods.</p><dl class="method"><dt id="grpc.framework.interfaces.face.face.GenericStub.blocking_stream_unary"><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><dd><p>Invokes a stream-request-unary-response method.</p><p>This method blocks until either returning the response value of the RPC(in the event of RPC completion) or raising an exception (in the event ofRPC abortion).</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>group</strong> – The group identifier of the RPC.</li><li><strong>method</strong> – The method identifier of the RPC.</li><li><strong>request_iterator</strong> – An iterator that yields request values for the RPC.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side of the RPC.</li><li><strong>with_call</strong> – Whether or not to include return a Call for the RPC in additionto the response.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><dl class="docutils"><dt>The response value for the RPC, and a Call for the RPC if with_call was</dt><dd><p class="first last">set to True at invocation.</p></dd></dl></p></td></tr><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> – Indicating that the RPC was aborted.</p></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.GenericStub.blocking_unary_unary"><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><dd><p>Invokes a unary-request-unary-response method.</p><p>This method blocks until either returning the response value of the RPC(in the event of RPC completion) or raising an exception (in the event ofRPC abortion).</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>group</strong> – The group identifier of the RPC.</li><li><strong>method</strong> – The method identifier of the RPC.</li><li><strong>request</strong> – The request value for the RPC.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side of the RPC.</li><li><strong>with_call</strong> – Whether or not to include return a Call for the RPC in additionto the response.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><dl class="docutils"><dt>The response value for the RPC, and a Call for the RPC if with_call was</dt><dd><p class="first last">set to True at invocation.</p></dd></dl></p></td></tr><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> – Indicating that the RPC was aborted.</p></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.GenericStub.event_stream_stream"><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><dd><p>Event-driven invocation of a unary-request-stream-response method.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>group</strong> – The group identifier of the RPC.</li><li><strong>method</strong> – The method identifier of the RPC.</li><li><strong>receiver</strong> – A ResponseReceiver to be passed the response data of the RPC.</li><li><strong>abortion_callback</strong> – A callback to be called and passed an Abortion valuein the event of RPC abortion.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side of the RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils"><dt>A pair of a Call object for the RPC and a stream.Consumer to which the</dt><dd><p class="first last">request values of the RPC should be passed.</p></dd></dl></p></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.GenericStub.event_stream_unary"><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><dd><p>Event-driven invocation of a unary-request-unary-response method.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>group</strong> – The group identifier of the RPC.</li><li><strong>method</strong> – The method identifier of the RPC.</li><li><strong>receiver</strong> – A ResponseReceiver to be passed the response data of the RPC.</li><li><strong>abortion_callback</strong> – A callback to be called and passed an Abortion valuein the event of RPC abortion.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side of the RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils"><dt>A pair of a Call object for the RPC and a stream.Consumer to which the</dt><dd><p class="first last">request values of the RPC should be passed.</p></dd></dl></p></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.GenericStub.event_unary_stream"><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><dd><p>Event-driven invocation of a unary-request-stream-response method.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>group</strong> – The group identifier of the RPC.</li><li><strong>method</strong> – The method identifier of the RPC.</li><li><strong>request</strong> – The request value for the RPC.</li><li><strong>receiver</strong> – A ResponseReceiver to be passed the response data of the RPC.</li><li><strong>abortion_callback</strong> – A callback to be called and passed an Abortion valuein the event of RPC abortion.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side of the RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><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></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.GenericStub.event_unary_unary"><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><dd><p>Event-driven invocation of a unary-request-unary-response method.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>group</strong> – The group identifier of the RPC.</li><li><strong>method</strong> – The method identifier of the RPC.</li><li><strong>request</strong> – The request value for the RPC.</li><li><strong>receiver</strong> – A ResponseReceiver to be passed the response data of the RPC.</li><li><strong>abortion_callback</strong> – A callback to be called and passed an Abortion valuein the event of RPC abortion.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side of the RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><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></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.GenericStub.future_stream_unary"><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><dd><p>Invokes a stream-request-unary-response method.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>group</strong> – The group identifier of the RPC.</li><li><strong>method</strong> – The method identifier of the RPC.</li><li><strong>request_iterator</strong> – An iterator that yields request values for the RPC.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side of the RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils"><dt>An object that is both a Call for the RPC and a future.Future. In the</dt><dd><p class="first last">event of RPC completion, the return Future’s result value will be theresponse value of the RPC. In the event of RPC abortion, the returnedFuture’s exception value will be an AbortionError.</p></dd></dl></p></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.GenericStub.future_unary_unary"><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><dd><p>Invokes a unary-request-unary-response method.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>group</strong> – The group identifier of the RPC.</li><li><strong>method</strong> – The method identifier of the RPC.</li><li><strong>request</strong> – The request value for the RPC.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side of the RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils"><dt>An object that is both a Call for the RPC and a future.Future. In the</dt><dd><p class="first last">event of RPC completion, the return Future’s result value will be theresponse value of the RPC. In the event of RPC abortion, the returnedFuture’s exception value will be an AbortionError.</p></dd></dl></p></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.GenericStub.inline_stream_stream"><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><dd><p>Invokes a stream-request-stream-response method.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>group</strong> – The group identifier of the RPC.</li><li><strong>method</strong> – The method identifier of the RPC.</li><li><strong>request_iterator</strong> – An iterator that yields request values for the RPC.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side of the RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils"><dt>An object that is both a Call for the RPC and an iterator of response</dt><dd><p class="first last">values. Drawing response values from the returned iterator may raiseAbortionError indicating abortion of the RPC.</p></dd></dl></p></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.GenericStub.inline_unary_stream"><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><dd><p>Invokes a unary-request-stream-response method.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>group</strong> – The group identifier of the RPC.</li><li><strong>method</strong> – The method identifier of the RPC.</li><li><strong>request</strong> – The request value for the RPC.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side of the RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils"><dt>An object that is both a Call for the RPC and an iterator of response</dt><dd><p class="first last">values. Drawing response values from the returned iterator may raiseAbortionError indicating abortion of the RPC.</p></dd></dl></p></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.GenericStub.stream_stream"><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><dd><p>Creates a StreamStreamMultiCallable for a stream-stream method.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>group</strong> – The group identifier of the RPC.</li><li><strong>method</strong> – The method identifier of the RPC.</li></ul></td></tr><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></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.GenericStub.stream_unary"><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><dd><p>Creates a StreamUnaryMultiCallable for a stream-unary method.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>group</strong> – The group identifier of the RPC.</li><li><strong>method</strong> – The method identifier of the RPC.</li></ul></td></tr><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></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.GenericStub.unary_stream"><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><dd><p>Creates a UnaryStreamMultiCallable for a unary-stream method.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>group</strong> – The group identifier of the RPC.</li><li><strong>method</strong> – The method identifier of the RPC.</li></ul></td></tr><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></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.GenericStub.unary_unary"><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><dd><p>Creates a UnaryUnaryMultiCallable for a unary-unary method.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>group</strong> – The group identifier of the RPC.</li><li><strong>method</strong> – The method identifier of the RPC.</li></ul></td></tr><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></td></tr></tbody></table></dd></dl></dd></dl><dl class="exception"><dt id="grpc.framework.interfaces.face.face.LocalError"><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><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><p>Indicates that an RPC has terminated due to a local defect.</p></dd></dl><dl class="exception"><dt id="grpc.framework.interfaces.face.face.LocalShutdownError"><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><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><p>Indicates that an RPC has terminated due to local shutdown of RPCs.</p></dd></dl><dl class="class"><dt id="grpc.framework.interfaces.face.face.MethodImplementation"><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><dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p><p>A sum type that describes a method implementation.</p><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.MethodImplementation.cardinality"><code class="descname">cardinality</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.MethodImplementation.cardinality" title="Permalink to this definition">¶</a></dt><dd><p>A cardinality.Cardinality value.</p></dd></dl><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.MethodImplementation.style"><code class="descname">style</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.MethodImplementation.style" title="Permalink to this definition">¶</a></dt><dd><p>A style.Service value.</p></dd></dl><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.MethodImplementation.unary_unary_inline"><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><dd><p>The implementation of the method as a callable valuethat takes a request value and a ServicerContext object and returns aresponse value. Only non-None if cardinality iscardinality.Cardinality.UNARY_UNARY and style is style.Service.INLINE.</p></dd></dl><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.MethodImplementation.unary_stream_inline"><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><dd><p>The implementation of the method as a callable valuethat takes a request value and a ServicerContext object and returns aniterator of response values. Only non-None if cardinality iscardinality.Cardinality.UNARY_STREAM and style is style.Service.INLINE.</p></dd></dl><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.MethodImplementation.stream_unary_inline"><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><dd><p>The implementation of the method as a callable valuethat takes an iterator of request values and a ServicerContext object andreturns a response value. Only non-None if cardinality iscardinality.Cardinality.STREAM_UNARY and style is style.Service.INLINE.</p></dd></dl><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.MethodImplementation.stream_stream_inline"><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><dd><p>The implementation of the method as a callable valuethat takes an iterator of request values and a ServicerContext object andreturns an iterator of response values. Only non-None if cardinality iscardinality.Cardinality.STREAM_STREAM and style is style.Service.INLINE.</p></dd></dl><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.MethodImplementation.unary_unary_event"><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><dd><p>The implementation of the method as a callable value thattakes a request value, a response callback to which to pass the responsevalue of the RPC, and a ServicerContext. Only non-None if cardinality iscardinality.Cardinality.UNARY_UNARY and style is style.Service.EVENT.</p></dd></dl><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.MethodImplementation.unary_stream_event"><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><dd><p>The implementation of the method as a callable valuethat takes a request value, a stream.Consumer to which to pass theresponse values of the RPC, and a ServicerContext. Only non-None ifcardinality is cardinality.Cardinality.UNARY_STREAM and style isstyle.Service.EVENT.</p></dd></dl><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.MethodImplementation.stream_unary_event"><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><dd><p>The implementation of the method as a callable valuethat takes a response callback to which to pass the response value of theRPC and a ServicerContext and returns a stream.Consumer to which therequest values of the RPC should be passed. Only non-None if cardinalityis cardinality.Cardinality.STREAM_UNARY and style is style.Service.EVENT.</p></dd></dl><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.MethodImplementation.stream_stream_event"><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><dd><p>The implementation of the method as a callable valuethat takes a stream.Consumer to which to pass the response values of theRPC and a ServicerContext and returns a stream.Consumer to which therequest values of the RPC should be passed. Only non-None if cardinalityis cardinality.Cardinality.STREAM_STREAM and style isstyle.Service.EVENT.</p></dd></dl></dd></dl><dl class="class"><dt id="grpc.framework.interfaces.face.face.MultiMethodImplementation"><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><dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p><p>A general type able to service many methods.</p><dl class="method"><dt id="grpc.framework.interfaces.face.face.MultiMethodImplementation.service"><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><dd><p>Services an RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>group</strong> – The group identifier of the RPC.</li><li><strong>method</strong> – The method identifier of the RPC.</li><li><strong>response_consumer</strong> – A stream.Consumer to be called to accept the responsevalues of the RPC.</li><li><strong>context</strong> – a ServicerContext object.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><dl class="docutils"><dt>A stream.Consumer with which to accept the request values of the RPC. The</dt><dd><p class="first last">consumer returned from this method may or may not be invoked tocompletion: in the case of RPC abortion, RPC Framework will simply stoppassing values to this object. Implementations must not assume that thisobject will be called to completion of the request stream or even calledat all.</p></dd></dl></p></td></tr><tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple"><li><code class="xref py py-exc docutils literal"><span class="pre">abandonment.Abandoned</span></code> – May or may not be raised when the RPC has beenaborted.</li><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> – If this MultiMethod does not recognize the given groupand name for the RPC and is not able to service the RPC.</li></ul></td></tr></tbody></table></dd></dl></dd></dl><dl class="exception"><dt id="grpc.framework.interfaces.face.face.NetworkError"><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><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><p>Indicates that some error occurred on the network.</p></dd></dl><dl class="exception"><dt id="grpc.framework.interfaces.face.face.NoSuchMethodError"><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><dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">Exception</span></code></p><p>Raised by customer code to indicate an unrecognized method.</p><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.NoSuchMethodError.group"><code class="descname">group</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.NoSuchMethodError.group" title="Permalink to this definition">¶</a></dt><dd><p>The group of the unrecognized method.</p></dd></dl><dl class="attribute"><dt id="grpc.framework.interfaces.face.face.NoSuchMethodError.name"><code class="descname">name</code><a class="headerlink" href="#grpc.framework.interfaces.face.face.NoSuchMethodError.name" title="Permalink to this definition">¶</a></dt><dd><p>The name of the unrecognized method.</p></dd></dl></dd></dl><dl class="exception"><dt id="grpc.framework.interfaces.face.face.RemoteError"><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><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><p>Indicates that an RPC has terminated due to a remote defect.</p></dd></dl><dl class="exception"><dt id="grpc.framework.interfaces.face.face.RemoteShutdownError"><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><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><p>Indicates that an RPC has terminated due to remote shutdown of RPCs.</p></dd></dl><dl class="class"><dt id="grpc.framework.interfaces.face.face.ResponseReceiver"><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><dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p><p>Invocation-side object used to accept the output of an RPC.</p><dl class="method"><dt id="grpc.framework.interfaces.face.face.ResponseReceiver.complete"><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><dd><p>Receives the completion values emitted from the service-side of the RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"><li><strong>terminal_metadata</strong> – The terminal metadata object emitted from theservice-side of the RPC.</li><li><strong>code</strong> – The code object emitted from the service-side of the RPC.</li><li><strong>details</strong> – The details object emitted from the service-side of the RPC.</li></ul></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.ResponseReceiver.initial_metadata"><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><dd><p>Receives the initial metadata from the service-side of the RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>initial_metadata</strong> – The initial metadata object emitted from theservice-side of the RPC.</td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.ResponseReceiver.response"><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><dd><p>Receives a response from the service-side of the RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>response</strong> – A response object emitted from the service-side of the RPC.</td></tr></tbody></table></dd></dl></dd></dl><dl class="class"><dt id="grpc.framework.interfaces.face.face.RpcContext"><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><dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p><p>Provides RPC-related information and action.</p><dl class="method"><dt id="grpc.framework.interfaces.face.face.RpcContext.add_abortion_callback"><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><dd><p>Registers a callback to be called if the RPC is aborted.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>abortion_callback</strong> – A callable to be called and passed an Abortion valuein the event of RPC abortion.</td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.RpcContext.cancel"><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><dd><p>Cancels the RPC.</p><p>Idempotent and has no effect if the RPC has already terminated.</p></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.RpcContext.is_active"><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><dd><p>Describes whether the RPC is active or has terminated.</p></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.RpcContext.protocol_context"><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><dd><p>Accesses a custom object specified by an implementation provider.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><dl class="docutils"><dt>A value specified by the provider of a Face interface implementation</dt><dd>affording custom state and behavior.</dd></dl></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.RpcContext.time_remaining"><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><dd><p>Describes the length of allowed time remaining for the RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><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 secondsremaining for the RPC to complete before it is considered to have timedout.</td></tr></tbody></table></dd></dl></dd></dl><dl class="class"><dt id="grpc.framework.interfaces.face.face.ServicerContext"><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><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><p>A context object passed to method implementations.</p><dl class="method"><dt id="grpc.framework.interfaces.face.face.ServicerContext.code"><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><dd><p>Accepts the service-side code of the RPC.</p><p>This method need not be called by method implementations if they have nocode to transmit.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>code</strong> – The code of the RPC to be transmitted to the invocation side of theRPC.</td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.ServicerContext.details"><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><dd><p>Accepts the service-side details of the RPC.</p><p>This method need not be called by method implementations if they have noservice-side details to transmit.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>details</strong> – The service-side details value of the RPC to be transmitted tothe invocation side of the RPC.</td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.ServicerContext.initial_metadata"><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><dd><p>Accepts the service-side initial metadata value of the RPC.</p><p>This method need not be called by method implementations if they have noservice-side initial metadata to transmit.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>initial_metadata</strong> – The service-side initial metadata value of the RPC tobe transmitted to the invocation side of the RPC.</td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.ServicerContext.invocation_metadata"><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><dd><p>Accesses the metadata from the invocation-side of the RPC.</p><p>This method blocks until the value is available or is known not to have beenemitted from the invocation-side of the RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><dl class="docutils"><dt>The metadata object emitted by the invocation-side of the RPC, or None if</dt><dd>there was no such value.</dd></dl></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.ServicerContext.terminal_metadata"><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><dd><p>Accepts the service-side terminal metadata value of the RPC.</p><p>This method need not be called by method implementations if they have noservice-side terminal metadata to transmit.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>terminal_metadata</strong> – The service-side terminal metadata value of the RPC tobe transmitted to the invocation side of the RPC.</td></tr></tbody></table></dd></dl></dd></dl><dl class="class"><dt id="grpc.framework.interfaces.face.face.StreamStreamMultiCallable"><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><dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p><p>Affords invoking a stream-stream RPC in any call style.</p><dl class="method"><dt id="grpc.framework.interfaces.face.face.StreamStreamMultiCallable.__call__"><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><dd><p>Invokes the underlying RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>request_iterator</strong> – An iterator that yields request values for the RPC.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side ofthe RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils"><dt>An object that is both a Call for the RPC and an iterator of response</dt><dd><p class="first last">values. Drawing response values from the returned iterator may raiseAbortionError indicating abortion of the RPC.</p></dd></dl></p></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.StreamStreamMultiCallable.event"><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><dd><p>Asynchronously invokes the underlying RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>receiver</strong> – A ResponseReceiver to be passed the response data of the RPC.</li><li><strong>abortion_callback</strong> – A callback to be called and passed an Abortion valuein the event of RPC abortion.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side ofthe RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils"><dt>A single object that is both a Call object for the RPC and a</dt><dd><p class="first last">stream.Consumer to which the request values of the RPC should be passed.</p></dd></dl></p></td></tr></tbody></table></dd></dl></dd></dl><dl class="class"><dt id="grpc.framework.interfaces.face.face.StreamUnaryMultiCallable"><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><dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p><p>Affords invoking a stream-unary RPC in any call style.</p><dl class="method"><dt id="grpc.framework.interfaces.face.face.StreamUnaryMultiCallable.__call__"><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><dd><p>Synchronously invokes the underlying RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>request_iterator</strong> – An iterator that yields request values for the RPC.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side ofthe RPC.</li><li><strong>with_call</strong> – Whether or not to include return a Call for the RPC in additionto the response.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><dl class="docutils"><dt>The response value for the RPC, and a Call for the RPC if with_call was</dt><dd><p class="first last">set to True at invocation.</p></dd></dl></p></td></tr><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> – Indicating that the RPC was aborted.</p></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.StreamUnaryMultiCallable.event"><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><dd><p>Asynchronously invokes the underlying RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>receiver</strong> – A ResponseReceiver to be passed the response data of the RPC.</li><li><strong>abortion_callback</strong> – A callback to be called and passed an Abortion valuein the event of RPC abortion.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side ofthe RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils"><dt>A single object that is both a Call object for the RPC and a</dt><dd><p class="first last">stream.Consumer to which the request values of the RPC should be passed.</p></dd></dl></p></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.StreamUnaryMultiCallable.future"><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><dd><p>Asynchronously invokes the underlying RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>request_iterator</strong> – An iterator that yields request values for the RPC.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side ofthe RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils"><dt>An object that is both a Call for the RPC and a future.Future. In the</dt><dd><p class="first last">event of RPC completion, the return Future’s result value will be theresponse value of the RPC. In the event of RPC abortion, the returnedFuture’s exception value will be an AbortionError.</p></dd></dl></p></td></tr></tbody></table></dd></dl></dd></dl><dl class="class"><dt id="grpc.framework.interfaces.face.face.UnaryStreamMultiCallable"><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><dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p><p>Affords invoking a unary-stream RPC in any call style.</p><dl class="method"><dt id="grpc.framework.interfaces.face.face.UnaryStreamMultiCallable.__call__"><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><dd><p>Invokes the underlying RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>request</strong> – The request value for the RPC.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side ofthe RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils"><dt>An object that is both a Call for the RPC and an iterator of response</dt><dd><p class="first last">values. Drawing response values from the returned iterator may raiseAbortionError indicating abortion of the RPC.</p></dd></dl></p></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.UnaryStreamMultiCallable.event"><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><dd><p>Asynchronously invokes the underlying RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>request</strong> – The request value for the RPC.</li><li><strong>receiver</strong> – A ResponseReceiver to be passed the response data of the RPC.</li><li><strong>abortion_callback</strong> – A callback to be called and passed an Abortion valuein the event of RPC abortion.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side ofthe RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><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></td></tr></tbody></table></dd></dl></dd></dl><dl class="class"><dt id="grpc.framework.interfaces.face.face.UnaryUnaryMultiCallable"><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><dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p><p>Affords invoking a unary-unary RPC in any call style.</p><dl class="method"><dt id="grpc.framework.interfaces.face.face.UnaryUnaryMultiCallable.__call__"><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><dd><p>Synchronously invokes the underlying RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>request</strong> – The request value for the RPC.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side ofthe RPC.</li><li><strong>with_call</strong> – Whether or not to include return a Call for the RPC in additionto the response.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><dl class="docutils"><dt>The response value for the RPC, and a Call for the RPC if with_call was</dt><dd><p class="first last">set to True at invocation.</p></dd></dl></p></td></tr><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> – Indicating that the RPC was aborted.</p></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.UnaryUnaryMultiCallable.event"><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><dd><p>Asynchronously invokes the underlying RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>request</strong> – The request value for the RPC.</li><li><strong>receiver</strong> – A ResponseReceiver to be passed the response data of the RPC.</li><li><strong>abortion_callback</strong> – A callback to be called and passed an Abortion valuein the event of RPC abortion.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side ofthe RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><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></td></tr></tbody></table></dd></dl><dl class="method"><dt id="grpc.framework.interfaces.face.face.UnaryUnaryMultiCallable.future"><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><dd><p>Asynchronously invokes the underlying RPC.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>request</strong> – The request value for the RPC.</li><li><strong>timeout</strong> – A duration of time in seconds to allow for the RPC.</li><li><strong>metadata</strong> – A metadata value to be passed to the service-side ofthe RPC.</li><li><strong>protocol_options</strong> – A value specified by the provider of a Face interfaceimplementation affording custom state and behavior.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"><dl class="docutils"><dt>An object that is both a Call for the RPC and a future.Future. In the</dt><dd><p class="first last">event of RPC completion, the return Future’s result value will be theresponse value of the RPC. In the event of RPC abortion, the returnedFuture’s exception value will be an AbortionError.</p></dd></dl></p></td></tr></tbody></table></dd></dl></dd></dl></div><div class="section" id="module-grpc.framework.interfaces.face.utilities"><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><p>Utilities for RPC Framework’s Face interface.</p><dl class="function"><dt id="grpc.framework.interfaces.face.utilities.stream_stream_event"><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><dd><p>Creates an face.MethodImplementation for the given behavior.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> – The implementation of a stream-stream RPC method as a callablevalue that takes a stream.Consumer to which to pass the response valuesof the RPC and an face.ServicerContext and returns a stream.Consumer towhich the request values of the RPC should be passed.</td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td></tr></tbody></table></dd></dl><dl class="function"><dt id="grpc.framework.interfaces.face.utilities.stream_stream_inline"><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><dd><p>Creates an face.MethodImplementation for the given behavior.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> – The implementation of a stream-stream RPC method as a callablevalue that takes an iterator of request values and anface.ServicerContext object and returns an iterator of response values.</td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td></tr></tbody></table></dd></dl><dl class="function"><dt id="grpc.framework.interfaces.face.utilities.stream_unary_event"><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><dd><p>Creates an face.MethodImplementation for the given behavior.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> – The implementation of a stream-unary RPC method as a callablevalue that takes a response callback to which to pass the response valueof the RPC and an face.ServicerContext and returns a stream.Consumer towhich the request values of the RPC should be passed.</td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td></tr></tbody></table></dd></dl><dl class="function"><dt id="grpc.framework.interfaces.face.utilities.stream_unary_inline"><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><dd><p>Creates an face.MethodImplementation for the given behavior.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> – The implementation of a stream-unary RPC method as a callablevalue that takes an iterator of request values and anface.ServicerContext object and returns a response value.</td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td></tr></tbody></table></dd></dl><dl class="function"><dt id="grpc.framework.interfaces.face.utilities.unary_stream_event"><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><dd><p>Creates an face.MethodImplementation for the given behavior.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> – The implementation of a unary-stream RPC method as a callablevalue that takes a request value, a stream.Consumer to which to pass thethe response values of the RPC, and an face.ServicerContext.</td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td></tr></tbody></table></dd></dl><dl class="function"><dt id="grpc.framework.interfaces.face.utilities.unary_stream_inline"><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><dd><p>Creates an face.MethodImplementation for the given behavior.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> – The implementation of a unary-stream RPC method as a callablevalue that takes a request value and an face.ServicerContext object andreturns an iterator of response values.</td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td></tr></tbody></table></dd></dl><dl class="function"><dt id="grpc.framework.interfaces.face.utilities.unary_unary_event"><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><dd><p>Creates an face.MethodImplementation for the given behavior.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> – The implementation of a unary-unary RPC method as a callablevalue that takes a request value, a response callback to which to passthe response value of the RPC, and an face.ServicerContext.</td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td></tr></tbody></table></dd></dl><dl class="function"><dt id="grpc.framework.interfaces.face.utilities.unary_unary_inline"><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><dd><p>Creates an face.MethodImplementation for the given behavior.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>behavior</strong> – The implementation of a unary-unary RPC method as a callable valuethat takes a request value and an face.ServicerContext object andreturns a response value.</td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">An face.MethodImplementation derived from the given behavior.</td></tr></tbody></table></dd></dl></div><div class="section" id="module-grpc.framework.interfaces.face"><span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-grpc.framework.interfaces.face" title="Permalink to this headline">¶</a></h2></div></div>           </div>          </div>          <footer>      <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">                    <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>          </div>    <hr/>  <div role="contentinfo">    <p>        © Copyright 2016, Author.    </p>  </div>  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>. </footer>        </div>      </div>    </section>  </div>        <script type="text/javascript">        var DOCUMENTATION_OPTIONS = {            URL_ROOT:'./',            VERSION:'1.0.4',            COLLAPSE_INDEX:false,            FILE_SUFFIX:'.html',            HAS_SOURCE:  true        };    </script>      <script type="text/javascript" src="_static/jquery.js"></script>      <script type="text/javascript" src="_static/underscore.js"></script>      <script type="text/javascript" src="_static/doctools.js"></script>          <script type="text/javascript" src="_static/js/theme.js"></script>        <script type="text/javascript">      jQuery(function () {          SphinxRtdTheme.StickyNav.enable();      });  </script>   </body></html>
 |