grpc.html 81 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>Documentation Namespace: grpc</title>
  7. <!--[if lt IE 9]>
  8. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  9. <![endif]-->
  10. <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
  11. <link type="text/css" rel="stylesheet" href="styles/site.simplex.css">
  12. </head>
  13. <body>
  14. <div class="navbar navbar-default navbar-fixed-top ">
  15. <div class="container">
  16. <div class="navbar-header">
  17. <a class="navbar-brand" href="index.html">Documentation</a>
  18. <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
  19. <span class="icon-bar"></span>
  20. <span class="icon-bar"></span>
  21. <span class="icon-bar"></span>
  22. </button>
  23. </div>
  24. <div class="navbar-collapse collapse" id="topNavigation">
  25. <ul class="nav navbar-nav">
  26. <li class="dropdown">
  27. <a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b class="caret"></b></a>
  28. <ul class="dropdown-menu ">
  29. <li><a href="grpc.html">grpc</a></li><li><a href="grpc.credentials.html">grpc.credentials</a></li>
  30. </ul>
  31. </li>
  32. <li class="dropdown">
  33. <a href="modules.list.html" class="dropdown-toggle" data-toggle="dropdown">Modules<b class="caret"></b></a>
  34. <ul class="dropdown-menu ">
  35. <li><a href="module-src_client_interceptors.html">src/client_interceptors</a></li>
  36. </ul>
  37. </li>
  38. <li class="dropdown">
  39. <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
  40. <ul class="dropdown-menu ">
  41. <li><a href="grpc.Channel.html">grpc.Channel</a></li><li><a href="grpc.Client.html">grpc.Client</a></li><li><a href="grpc.credentials-CallCredentials.html">grpc.credentials~CallCredentials</a></li><li><a href="grpc.credentials-ChannelCredentials.html">grpc.credentials~ChannelCredentials</a></li><li><a href="grpc.Metadata.html">grpc.Metadata</a></li><li><a href="grpc.Server.html">grpc.Server</a></li><li><a href="grpc.ServerCredentials.html">grpc.ServerCredentials</a></li><li><a href="grpc-Call.html">grpc~Call</a></li><li><a href="grpc-ClientDuplexStream.html">grpc~ClientDuplexStream</a></li><li><a href="grpc-ClientReadableStream.html">grpc~ClientReadableStream</a></li><li><a href="grpc-ClientUnaryCall.html">grpc~ClientUnaryCall</a></li><li><a href="grpc-ClientWritableStream.html">grpc~ClientWritableStream</a></li><li><a href="grpc-ServerDuplexStream.html">grpc~ServerDuplexStream</a></li><li><a href="grpc-ServerReadableStream.html">grpc~ServerReadableStream</a></li><li><a href="grpc-ServerUnaryCall.html">grpc~ServerUnaryCall</a></li><li><a href="grpc-ServerWritableStream.html">grpc~ServerWritableStream</a></li><li><a href="module-src_client_interceptors-EndListener.html">src/client_interceptors~EndListener</a></li><li><a href="module-src_client_interceptors-InterceptingCall.html">src/client_interceptors~InterceptingCall</a></li><li><a href="module-src_client_interceptors-InterceptingListener.html">src/client_interceptors~InterceptingListener</a></li><li><a href="module-src_client_interceptors-InterceptorConfigurationError.html">src/client_interceptors~InterceptorConfigurationError</a></li><li><a href="module-src_client_interceptors-ListenerBuilder.html">src/client_interceptors~ListenerBuilder</a></li><li><a href="module-src_client_interceptors-RequesterBuilder.html">src/client_interceptors~RequesterBuilder</a></li><li><a href="module-src_client_interceptors-StatusBuilder.html">src/client_interceptors~StatusBuilder</a></li>
  42. </ul>
  43. </li>
  44. <li class="dropdown">
  45. <a href="events.list.html" class="dropdown-toggle" data-toggle="dropdown">Events<b class="caret"></b></a>
  46. <ul class="dropdown-menu ">
  47. <li><a href="grpc-ClientDuplexStream.html#event:metadata">grpc~ClientDuplexStream#metadata</a></li><li><a href="grpc-ClientDuplexStream.html#event:status">grpc~ClientDuplexStream#status</a></li><li><a href="grpc-ClientReadableStream.html#event:metadata">grpc~ClientReadableStream#metadata</a></li><li><a href="grpc-ClientReadableStream.html#event:status">grpc~ClientReadableStream#status</a></li><li><a href="grpc-ClientUnaryCall.html#event:metadata">grpc~ClientUnaryCall#event:metadata</a></li><li><a href="grpc-ClientUnaryCall.html#event:status">grpc~ClientUnaryCall#event:status</a></li><li><a href="grpc-ClientWritableStream.html#event:metadata">grpc~ClientWritableStream#metadata</a></li><li><a href="grpc-ClientWritableStream.html#event:status">grpc~ClientWritableStream#status</a></li><li><a href="grpc-ServerDuplexStream.html#~event:cancelled">grpc~ServerDuplexStream~event:cancelled</a></li><li><a href="grpc-ServerReadableStream.html#~event:cancelled">grpc~ServerReadableStream~event:cancelled</a></li><li><a href="grpc-ServerUnaryCall.html#~event:cancelled">grpc~ServerUnaryCall~event:cancelled</a></li><li><a href="grpc-ServerWritableStream.html#~event:cancelled">grpc~ServerWritableStream~event:cancelled</a></li>
  48. </ul>
  49. </li>
  50. <li class="dropdown">
  51. <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
  52. <ul class="dropdown-menu ">
  53. <li><a href="global.html#CancelRequester">CancelRequester</a></li><li><a href="global.html#CloseRequester">CloseRequester</a></li><li><a href="global.html#createStatusError">createStatusError</a></li><li><a href="global.html#getClientInterceptors">getClientInterceptors</a></li><li><a href="global.html#getMethodType">getMethodType</a></li><li><a href="global.html#GetPeerRequester">GetPeerRequester</a></li><li><a href="global.html#Interceptor">Interceptor</a></li><li><a href="global.html#InterceptorProvider">InterceptorProvider</a></li><li><a href="global.html#loadPackageDefinition">loadPackageDefinition</a></li><li><a href="global.html#MessageListener">MessageListener</a></li><li><a href="global.html#MessageRequester">MessageRequester</a></li><li><a href="global.html#MetadataListener">MetadataListener</a></li><li><a href="global.html#MetadataRequester">MetadataRequester</a></li><li><a href="global.html#NextCall">NextCall</a></li><li><a href="global.html#StatusListener">StatusListener</a></li>
  54. </ul>
  55. </li>
  56. <li class="dropdown">
  57. <a href="externals.list.html" class="dropdown-toggle" data-toggle="dropdown">Externals<b class="caret"></b></a>
  58. <ul class="dropdown-menu ">
  59. <li><a href="external-Duplex.html">Duplex</a></li><li><a href="external-EventEmitter.html">EventEmitter</a></li><li><a href="external-GoogleCredential.html">GoogleCredential</a></li><li><a href="external-Readable.html">Readable</a></li><li><a href="external-Writable.html">Writable</a></li>
  60. </ul>
  61. </li>
  62. </ul>
  63. <div class="col-sm-3 col-md-3">
  64. <form class="navbar-form" role="search">
  65. <div class="input-group">
  66. <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
  67. <div class="input-group-btn">
  68. <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
  69. </div>
  70. </div>
  71. </form>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="container" id="toc-content">
  77. <div class="row">
  78. <div class="col-md-8">
  79. <div id="main">
  80. <h1 class="page-title">Namespace: grpc</h1>
  81. <section>
  82. <header>
  83. <h2>
  84. grpc
  85. </h2>
  86. </header>
  87. <article>
  88. <div class="container-overview">
  89. <dl class="details">
  90. </dl>
  91. </div>
  92. <h3 class="subsection-title">Classes</h3>
  93. <dl>
  94. <dt><a href="grpc.Channel.html">Channel</a></dt>
  95. <dd></dd>
  96. <dt><a href="grpc.Client.html">Client</a></dt>
  97. <dd></dd>
  98. <dt><a href="grpc.Metadata.html">Metadata</a></dt>
  99. <dd></dd>
  100. <dt><a href="grpc.Server.html">Server</a></dt>
  101. <dd></dd>
  102. <dt><a href="grpc.ServerCredentials.html">ServerCredentials</a></dt>
  103. <dd></dd>
  104. <dt><a href="grpc-Call.html">Call</a></dt>
  105. <dd></dd>
  106. <dt><a href="grpc-ClientDuplexStream.html">ClientDuplexStream</a></dt>
  107. <dd></dd>
  108. <dt><a href="grpc-ClientReadableStream.html">ClientReadableStream</a></dt>
  109. <dd></dd>
  110. <dt><a href="grpc-ClientUnaryCall.html">ClientUnaryCall</a></dt>
  111. <dd></dd>
  112. <dt><a href="grpc-ClientWritableStream.html">ClientWritableStream</a></dt>
  113. <dd></dd>
  114. <dt><a href="grpc-ServerDuplexStream.html">ServerDuplexStream</a></dt>
  115. <dd></dd>
  116. <dt><a href="grpc-ServerReadableStream.html">ServerReadableStream</a></dt>
  117. <dd></dd>
  118. <dt><a href="grpc-ServerUnaryCall.html">ServerUnaryCall</a></dt>
  119. <dd></dd>
  120. <dt><a href="grpc-ServerWritableStream.html">ServerWritableStream</a></dt>
  121. <dd></dd>
  122. </dl>
  123. <h3 class="subsection-title">Namespaces</h3>
  124. <dl>
  125. <dt><a href="namespaces.html#grpc.credentials"><a href="grpc.credentials.html">credentials</a></a></dt>
  126. <dd></dd>
  127. </dl>
  128. <h3 class="subsection-title">Members</h3>
  129. <dl>
  130. <hr>
  131. <dt class="name" id=".callError">
  132. <h4 id=".callError"><span class="type-signature">&lt;static, constant> </span>callError<span class="type-signature"> :number</span></h4>
  133. </dt>
  134. <dd>
  135. <div class="description">
  136. <p>Call error constants. Call errors almost always indicate bugs in the gRPC
  137. library, and these error codes are mainly useful for finding those bugs.</p>
  138. </div>
  139. <h5>Type:</h5>
  140. <ul>
  141. <li>
  142. <span class="param-type">number</span>
  143. </li>
  144. </ul>
  145. <dl class="details">
  146. <h5 class="subsection-title">Properties:</h5>
  147. <dl>
  148. <table class="props table table-striped">
  149. <thead>
  150. <tr>
  151. <th>Name</th>
  152. <th>Type</th>
  153. <th>Default</th>
  154. <th class="last">Description</th>
  155. </tr>
  156. </thead>
  157. <tbody>
  158. <tr>
  159. <td class="name"><code>OK</code></td>
  160. <td class="type">
  161. <span class="param-type">number</span>
  162. </td>
  163. <td class="default">
  164. 0
  165. </td>
  166. <td class="description last"></td>
  167. </tr>
  168. <tr>
  169. <td class="name"><code>ERROR</code></td>
  170. <td class="type">
  171. <span class="param-type">number</span>
  172. </td>
  173. <td class="default">
  174. 1
  175. </td>
  176. <td class="description last"></td>
  177. </tr>
  178. <tr>
  179. <td class="name"><code>NOT_ON_SERVER</code></td>
  180. <td class="type">
  181. <span class="param-type">number</span>
  182. </td>
  183. <td class="default">
  184. 2
  185. </td>
  186. <td class="description last"></td>
  187. </tr>
  188. <tr>
  189. <td class="name"><code>NOT_ON_CLIENT</code></td>
  190. <td class="type">
  191. <span class="param-type">number</span>
  192. </td>
  193. <td class="default">
  194. 3
  195. </td>
  196. <td class="description last"></td>
  197. </tr>
  198. <tr>
  199. <td class="name"><code>ALREADY_INVOKED</code></td>
  200. <td class="type">
  201. <span class="param-type">number</span>
  202. </td>
  203. <td class="default">
  204. 5
  205. </td>
  206. <td class="description last"></td>
  207. </tr>
  208. <tr>
  209. <td class="name"><code>NOT_INVOKED</code></td>
  210. <td class="type">
  211. <span class="param-type">number</span>
  212. </td>
  213. <td class="default">
  214. 6
  215. </td>
  216. <td class="description last"></td>
  217. </tr>
  218. <tr>
  219. <td class="name"><code>ALREADY_FINISHED</code></td>
  220. <td class="type">
  221. <span class="param-type">number</span>
  222. </td>
  223. <td class="default">
  224. 7
  225. </td>
  226. <td class="description last"></td>
  227. </tr>
  228. <tr>
  229. <td class="name"><code>TOO_MANY_OPERATIONS</code></td>
  230. <td class="type">
  231. <span class="param-type">number</span>
  232. </td>
  233. <td class="default">
  234. 8
  235. </td>
  236. <td class="description last"></td>
  237. </tr>
  238. <tr>
  239. <td class="name"><code>INVALID_FLAGS</code></td>
  240. <td class="type">
  241. <span class="param-type">number</span>
  242. </td>
  243. <td class="default">
  244. 9
  245. </td>
  246. <td class="description last"></td>
  247. </tr>
  248. <tr>
  249. <td class="name"><code>INVALID_METADATA</code></td>
  250. <td class="type">
  251. <span class="param-type">number</span>
  252. </td>
  253. <td class="default">
  254. 10
  255. </td>
  256. <td class="description last"></td>
  257. </tr>
  258. <tr>
  259. <td class="name"><code>INVALID_MESSAGE</code></td>
  260. <td class="type">
  261. <span class="param-type">number</span>
  262. </td>
  263. <td class="default">
  264. 11
  265. </td>
  266. <td class="description last"></td>
  267. </tr>
  268. <tr>
  269. <td class="name"><code>NOT_SERVER_COMPLETION_QUEUE</code></td>
  270. <td class="type">
  271. <span class="param-type">number</span>
  272. </td>
  273. <td class="default">
  274. 12
  275. </td>
  276. <td class="description last"></td>
  277. </tr>
  278. <tr>
  279. <td class="name"><code>BATCH_TOO_BIG</code></td>
  280. <td class="type">
  281. <span class="param-type">number</span>
  282. </td>
  283. <td class="default">
  284. 13
  285. </td>
  286. <td class="description last"></td>
  287. </tr>
  288. <tr>
  289. <td class="name"><code>PAYLOAD_TYPE_MISMATCH</code></td>
  290. <td class="type">
  291. <span class="param-type">number</span>
  292. </td>
  293. <td class="default">
  294. 14
  295. </td>
  296. <td class="description last"></td>
  297. </tr>
  298. </tbody>
  299. </table>
  300. </dl>
  301. </dl>
  302. </dd>
  303. <hr>
  304. <dt class="name" id=".connectivityState">
  305. <h4 id=".connectivityState"><span class="type-signature">&lt;static, readonly> </span>connectivityState<span class="type-signature"> :number</span></h4>
  306. </dt>
  307. <dd>
  308. <div class="description">
  309. <p>Connectivity state values</p>
  310. </div>
  311. <h5>Type:</h5>
  312. <ul>
  313. <li>
  314. <span class="param-type">number</span>
  315. </li>
  316. </ul>
  317. <dl class="details">
  318. <h5 class="subsection-title">Properties:</h5>
  319. <dl>
  320. <table class="props table table-striped">
  321. <thead>
  322. <tr>
  323. <th>Name</th>
  324. <th>Type</th>
  325. <th>Default</th>
  326. <th class="last">Description</th>
  327. </tr>
  328. </thead>
  329. <tbody>
  330. <tr>
  331. <td class="name"><code>IDLE</code></td>
  332. <td class="type">
  333. <span class="param-type">number</span>
  334. </td>
  335. <td class="default">
  336. 0
  337. </td>
  338. <td class="description last"></td>
  339. </tr>
  340. <tr>
  341. <td class="name"><code>CONNECTING</code></td>
  342. <td class="type">
  343. <span class="param-type">number</span>
  344. </td>
  345. <td class="default">
  346. 1
  347. </td>
  348. <td class="description last"></td>
  349. </tr>
  350. <tr>
  351. <td class="name"><code>READY</code></td>
  352. <td class="type">
  353. <span class="param-type">number</span>
  354. </td>
  355. <td class="default">
  356. 2
  357. </td>
  358. <td class="description last"></td>
  359. </tr>
  360. <tr>
  361. <td class="name"><code>TRANSIENT_FAILURE</code></td>
  362. <td class="type">
  363. <span class="param-type">number</span>
  364. </td>
  365. <td class="default">
  366. 3
  367. </td>
  368. <td class="description last"></td>
  369. </tr>
  370. <tr>
  371. <td class="name"><code>SHUTDOWN</code></td>
  372. <td class="type">
  373. <span class="param-type">number</span>
  374. </td>
  375. <td class="default">
  376. 4
  377. </td>
  378. <td class="description last"></td>
  379. </tr>
  380. </tbody>
  381. </table>
  382. </dl>
  383. </dl>
  384. </dd>
  385. <hr>
  386. <dt class="name" id=".load">
  387. <h4 id=".load"><span class="type-signature">&lt;static> </span>load<span class="type-signature"></span></h4>
  388. </dt>
  389. <dd>
  390. <div class="description">
  391. <p>Load a gRPC object from a .proto file.</p>
  392. </div>
  393. <dl class="details">
  394. </dl>
  395. </dd>
  396. <hr>
  397. <dt class="name" id=".logVerbosity">
  398. <h4 id=".logVerbosity"><span class="type-signature">&lt;static, readonly> </span>logVerbosity<span class="type-signature"> :number</span></h4>
  399. </dt>
  400. <dd>
  401. <h5>Type:</h5>
  402. <ul>
  403. <li>
  404. <span class="param-type">number</span>
  405. </li>
  406. </ul>
  407. <dl class="details">
  408. <h5 class="subsection-title">Properties:</h5>
  409. <dl>
  410. <table class="props table table-striped">
  411. <thead>
  412. <tr>
  413. <th>Name</th>
  414. <th>Type</th>
  415. <th>Default</th>
  416. <th class="last">Description</th>
  417. </tr>
  418. </thead>
  419. <tbody>
  420. <tr>
  421. <td class="name"><code>DEBUG</code></td>
  422. <td class="type">
  423. <span class="param-type">number</span>
  424. </td>
  425. <td class="default">
  426. 0
  427. </td>
  428. <td class="description last"></td>
  429. </tr>
  430. <tr>
  431. <td class="name"><code>INFO</code></td>
  432. <td class="type">
  433. <span class="param-type">number</span>
  434. </td>
  435. <td class="default">
  436. 1
  437. </td>
  438. <td class="description last"></td>
  439. </tr>
  440. <tr>
  441. <td class="name"><code>ERROR</code></td>
  442. <td class="type">
  443. <span class="param-type">number</span>
  444. </td>
  445. <td class="default">
  446. 2
  447. </td>
  448. <td class="description last"></td>
  449. </tr>
  450. </tbody>
  451. </table>
  452. </dl>
  453. </dl>
  454. </dd>
  455. <hr>
  456. <dt class="name" id=".methodTypes">
  457. <h4 id=".methodTypes"><span class="type-signature">&lt;static, readonly> </span>methodTypes<span class="type-signature"> :number</span></h4>
  458. </dt>
  459. <dd>
  460. <div class="description">
  461. <p>Method types: the supported RPC types</p>
  462. </div>
  463. <h5>Type:</h5>
  464. <ul>
  465. <li>
  466. <span class="param-type">number</span>
  467. </li>
  468. </ul>
  469. <dl class="details">
  470. <h5 class="subsection-title">Properties:</h5>
  471. <dl>
  472. <table class="props table table-striped">
  473. <thead>
  474. <tr>
  475. <th>Name</th>
  476. <th>Type</th>
  477. <th>Default</th>
  478. <th class="last">Description</th>
  479. </tr>
  480. </thead>
  481. <tbody>
  482. <tr>
  483. <td class="name"><code>UNARY</code></td>
  484. <td class="type">
  485. <span class="param-type">number</span>
  486. </td>
  487. <td class="default">
  488. 0
  489. </td>
  490. <td class="description last"></td>
  491. </tr>
  492. <tr>
  493. <td class="name"><code>CLIENT_STREAMING</code></td>
  494. <td class="type">
  495. <span class="param-type">number</span>
  496. </td>
  497. <td class="default">
  498. 1
  499. </td>
  500. <td class="description last"></td>
  501. </tr>
  502. <tr>
  503. <td class="name"><code>SERVER_STREAMING</code></td>
  504. <td class="type">
  505. <span class="param-type">number</span>
  506. </td>
  507. <td class="default">
  508. 2
  509. </td>
  510. <td class="description last"></td>
  511. </tr>
  512. <tr>
  513. <td class="name"><code>BIDI_STREAMING</code></td>
  514. <td class="type">
  515. <span class="param-type">number</span>
  516. </td>
  517. <td class="default">
  518. 3
  519. </td>
  520. <td class="description last"></td>
  521. </tr>
  522. </tbody>
  523. </table>
  524. </dl>
  525. </dl>
  526. </dd>
  527. <hr>
  528. <dt class="name" id=".propagate">
  529. <h4 id=".propagate"><span class="type-signature">&lt;static> </span>propagate<span class="type-signature"> :number</span></h4>
  530. </dt>
  531. <dd>
  532. <div class="description">
  533. <p>Propagation flags: these can be bitwise or-ed to form the propagation option
  534. for calls.</p>
  535. <p>Users are encouraged to write propagation masks as deltas from the default.
  536. i.e. write <code>grpc.propagate.DEFAULTS &amp; ~grpc.propagate.DEADLINE</code> to disable
  537. deadline propagation.</p>
  538. </div>
  539. <h5>Type:</h5>
  540. <ul>
  541. <li>
  542. <span class="param-type">number</span>
  543. </li>
  544. </ul>
  545. <dl class="details">
  546. <h5 class="subsection-title">Properties:</h5>
  547. <dl>
  548. <table class="props table table-striped">
  549. <thead>
  550. <tr>
  551. <th>Name</th>
  552. <th>Type</th>
  553. <th>Default</th>
  554. <th class="last">Description</th>
  555. </tr>
  556. </thead>
  557. <tbody>
  558. <tr>
  559. <td class="name"><code>DEADLINE</code></td>
  560. <td class="type">
  561. <span class="param-type">number</span>
  562. </td>
  563. <td class="default">
  564. 1
  565. </td>
  566. <td class="description last"></td>
  567. </tr>
  568. <tr>
  569. <td class="name"><code>CENSUS_STATS_CONTEXT</code></td>
  570. <td class="type">
  571. <span class="param-type">number</span>
  572. </td>
  573. <td class="default">
  574. 2
  575. </td>
  576. <td class="description last"></td>
  577. </tr>
  578. <tr>
  579. <td class="name"><code>CENSUS_TRACING_CONTEXT</code></td>
  580. <td class="type">
  581. <span class="param-type">number</span>
  582. </td>
  583. <td class="default">
  584. 4
  585. </td>
  586. <td class="description last"></td>
  587. </tr>
  588. <tr>
  589. <td class="name"><code>CANCELLATION</code></td>
  590. <td class="type">
  591. <span class="param-type">number</span>
  592. </td>
  593. <td class="default">
  594. 8
  595. </td>
  596. <td class="description last"></td>
  597. </tr>
  598. <tr>
  599. <td class="name"><code>DEFAULTS</code></td>
  600. <td class="type">
  601. <span class="param-type">number</span>
  602. </td>
  603. <td class="default">
  604. 65535
  605. </td>
  606. <td class="description last"></td>
  607. </tr>
  608. </tbody>
  609. </table>
  610. </dl>
  611. </dl>
  612. </dd>
  613. <hr>
  614. <dt class="name" id=".status">
  615. <h4 id=".status"><span class="type-signature">&lt;static, readonly> </span>status<span class="type-signature"> :number</span></h4>
  616. </dt>
  617. <dd>
  618. <div class="description">
  619. <p>Enum of status codes that gRPC can return</p>
  620. </div>
  621. <h5>Type:</h5>
  622. <ul>
  623. <li>
  624. <span class="param-type">number</span>
  625. </li>
  626. </ul>
  627. <dl class="details">
  628. <h5 class="subsection-title">Properties:</h5>
  629. <dl>
  630. <table class="props table table-striped">
  631. <thead>
  632. <tr>
  633. <th>Name</th>
  634. <th>Type</th>
  635. <th>Default</th>
  636. <th class="last">Description</th>
  637. </tr>
  638. </thead>
  639. <tbody>
  640. <tr>
  641. <td class="name"><code>OK</code></td>
  642. <td class="type">
  643. <span class="param-type">number</span>
  644. </td>
  645. <td class="default">
  646. 0
  647. </td>
  648. <td class="description last"><p>Not an error; returned on success</p></td>
  649. </tr>
  650. <tr>
  651. <td class="name"><code>CANCELLED</code></td>
  652. <td class="type">
  653. <span class="param-type">number</span>
  654. </td>
  655. <td class="default">
  656. 1
  657. </td>
  658. <td class="description last"><p>The operation was cancelled (typically by the caller).</p></td>
  659. </tr>
  660. <tr>
  661. <td class="name"><code>UNKNOWN</code></td>
  662. <td class="type">
  663. <span class="param-type">number</span>
  664. </td>
  665. <td class="default">
  666. 2
  667. </td>
  668. <td class="description last"><p>Unknown error. An example of where this error may be returned is
  669. if a status value received from another address space belongs to
  670. an error-space that is not known in this address space. Also
  671. errors raised by APIs that do not return enough error information
  672. may be converted to this error.</p></td>
  673. </tr>
  674. <tr>
  675. <td class="name"><code>INVALID_ARGUMENT</code></td>
  676. <td class="type">
  677. <span class="param-type">number</span>
  678. </td>
  679. <td class="default">
  680. 3
  681. </td>
  682. <td class="description last"><p>Client specified an invalid argument. Note that this differs
  683. from FAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments
  684. that are problematic regardless of the state of the system
  685. (e.g., a malformed file name).</p></td>
  686. </tr>
  687. <tr>
  688. <td class="name"><code>DEADLINE_EXCEEDED</code></td>
  689. <td class="type">
  690. <span class="param-type">number</span>
  691. </td>
  692. <td class="default">
  693. 4
  694. </td>
  695. <td class="description last"><p>Deadline expired before operation could complete. For operations
  696. that change the state of the system, this error may be returned
  697. even if the operation has completed successfully. For example, a
  698. successful response from a server could have been delayed long
  699. enough for the deadline to expire.</p></td>
  700. </tr>
  701. <tr>
  702. <td class="name"><code>NOT_FOUND</code></td>
  703. <td class="type">
  704. <span class="param-type">number</span>
  705. </td>
  706. <td class="default">
  707. 5
  708. </td>
  709. <td class="description last"><p>Some requested entity (e.g., file or directory) was not found.</p></td>
  710. </tr>
  711. <tr>
  712. <td class="name"><code>ALREADY_EXISTS</code></td>
  713. <td class="type">
  714. <span class="param-type">number</span>
  715. </td>
  716. <td class="default">
  717. 6
  718. </td>
  719. <td class="description last"><p>Some entity that we attempted to create (e.g., file or directory)
  720. already exists.</p></td>
  721. </tr>
  722. <tr>
  723. <td class="name"><code>PERMISSION_DENIED</code></td>
  724. <td class="type">
  725. <span class="param-type">number</span>
  726. </td>
  727. <td class="default">
  728. 7
  729. </td>
  730. <td class="description last"><p>The caller does not have permission to execute the specified
  731. operation. PERMISSION_DENIED must not be used for rejections
  732. caused by exhausting some resource (use RESOURCE_EXHAUSTED
  733. instead for those errors). PERMISSION_DENIED must not be
  734. used if the caller can not be identified (use UNAUTHENTICATED
  735. instead for those errors).</p></td>
  736. </tr>
  737. <tr>
  738. <td class="name"><code>RESOURCE_EXHAUSTED</code></td>
  739. <td class="type">
  740. <span class="param-type">number</span>
  741. </td>
  742. <td class="default">
  743. 8
  744. </td>
  745. <td class="description last"><p>Some resource has been exhausted, perhaps a per-user quota, or
  746. perhaps the entire file system is out of space.</p></td>
  747. </tr>
  748. <tr>
  749. <td class="name"><code>FAILED_PRECONDITION</code></td>
  750. <td class="type">
  751. <span class="param-type">number</span>
  752. </td>
  753. <td class="default">
  754. 9
  755. </td>
  756. <td class="description last"><p>Operation was rejected because the system is not in a state
  757. required for the operation's execution. For example, directory
  758. to be deleted may be non-empty, an rmdir operation is applied to
  759. a non-directory, etc.</p>
  760. <p>A litmus test that may help a service implementor in deciding
  761. between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE:</p>
  762. <ul>
  763. <li>Use UNAVAILABLE if the client can retry just the failing call.</li>
  764. <li>Use ABORTED if the client should retry at a higher-level
  765. (e.g., restarting a read-modify-write sequence).</li>
  766. <li>Use FAILED_PRECONDITION if the client should not retry until
  767. the system state has been explicitly fixed. E.g., if an &quot;rmdir&quot;
  768. fails because the directory is non-empty, FAILED_PRECONDITION
  769. should be returned since the client should not retry unless
  770. they have first fixed up the directory by deleting files from it.</li>
  771. <li>Use FAILED_PRECONDITION if the client performs conditional
  772. REST Get/Update/Delete on a resource and the resource on the
  773. server does not match the condition. E.g., conflicting
  774. read-modify-write on the same resource.</li>
  775. </ul></td>
  776. </tr>
  777. <tr>
  778. <td class="name"><code>ABORTED</code></td>
  779. <td class="type">
  780. <span class="param-type">number</span>
  781. </td>
  782. <td class="default">
  783. 10
  784. </td>
  785. <td class="description last"><p>The operation was aborted, typically due to a concurrency issue
  786. like sequencer check failures, transaction aborts, etc.</p>
  787. <p>See litmus test above for deciding between FAILED_PRECONDITION,
  788. ABORTED, and UNAVAILABLE.</p></td>
  789. </tr>
  790. <tr>
  791. <td class="name"><code>OUT_OF_RANGE</code></td>
  792. <td class="type">
  793. <span class="param-type">number</span>
  794. </td>
  795. <td class="default">
  796. 11
  797. </td>
  798. <td class="description last"><p>Operation was attempted past the valid range. E.g., seeking or
  799. reading past end of file.</p>
  800. <p>Unlike INVALID_ARGUMENT, this error indicates a problem that may
  801. be fixed if the system state changes. For example, a 32-bit file
  802. system will generate INVALID_ARGUMENT if asked to read at an
  803. offset that is not in the range [0,2^32-1], but it will generate
  804. OUT_OF_RANGE if asked to read from an offset past the current
  805. file size.</p>
  806. <p>There is a fair bit of overlap between FAILED_PRECONDITION and
  807. OUT_OF_RANGE. We recommend using OUT_OF_RANGE (the more specific
  808. error) when it applies so that callers who are iterating through
  809. a space can easily look for an OUT_OF_RANGE error to detect when
  810. they are done.</p></td>
  811. </tr>
  812. <tr>
  813. <td class="name"><code>UNIMPLEMENTED</code></td>
  814. <td class="type">
  815. <span class="param-type">number</span>
  816. </td>
  817. <td class="default">
  818. 12
  819. </td>
  820. <td class="description last"><p>Operation is not implemented or not supported/enabled in this service.</p></td>
  821. </tr>
  822. <tr>
  823. <td class="name"><code>INTERNAL</code></td>
  824. <td class="type">
  825. <span class="param-type">number</span>
  826. </td>
  827. <td class="default">
  828. 13
  829. </td>
  830. <td class="description last"><p>Internal errors. Means some invariants expected by underlying
  831. system has been broken. If you see one of these errors,
  832. something is very broken.</p></td>
  833. </tr>
  834. <tr>
  835. <td class="name"><code>UNAVAILABLE</code></td>
  836. <td class="type">
  837. <span class="param-type">number</span>
  838. </td>
  839. <td class="default">
  840. 14
  841. </td>
  842. <td class="description last"><p>The service is currently unavailable. This is a most likely a
  843. transient condition and may be corrected by retrying with
  844. a backoff.</p>
  845. <p>See litmus test above for deciding between FAILED_PRECONDITION,
  846. ABORTED, and UNAVAILABLE.</p></td>
  847. </tr>
  848. <tr>
  849. <td class="name"><code>DATA_LOSS</code></td>
  850. <td class="type">
  851. <span class="param-type">number</span>
  852. </td>
  853. <td class="default">
  854. 15
  855. </td>
  856. <td class="description last"><p>Unrecoverable data loss or corruption.</p></td>
  857. </tr>
  858. <tr>
  859. <td class="name"><code>UNAUTHENTICATED</code></td>
  860. <td class="type">
  861. <span class="param-type">number</span>
  862. </td>
  863. <td class="default">
  864. 16
  865. </td>
  866. <td class="description last"><p>The request does not have valid authentication credentials for the
  867. operation.</p></td>
  868. </tr>
  869. </tbody>
  870. </table>
  871. </dl>
  872. </dl>
  873. </dd>
  874. <hr>
  875. <dt class="name" id=".writeFlags">
  876. <h4 id=".writeFlags"><span class="type-signature">&lt;static, readonly> </span>writeFlags<span class="type-signature"> :number</span></h4>
  877. </dt>
  878. <dd>
  879. <div class="description">
  880. <p>Write flags: these can be bitwise or-ed to form write options that modify
  881. how data is written.</p>
  882. </div>
  883. <h5>Type:</h5>
  884. <ul>
  885. <li>
  886. <span class="param-type">number</span>
  887. </li>
  888. </ul>
  889. <dl class="details">
  890. <h5 class="subsection-title">Properties:</h5>
  891. <dl>
  892. <table class="props table table-striped">
  893. <thead>
  894. <tr>
  895. <th>Name</th>
  896. <th>Type</th>
  897. <th>Default</th>
  898. <th class="last">Description</th>
  899. </tr>
  900. </thead>
  901. <tbody>
  902. <tr>
  903. <td class="name"><code>BUFFER_HINT</code></td>
  904. <td class="type">
  905. <span class="param-type">number</span>
  906. </td>
  907. <td class="default">
  908. 1
  909. </td>
  910. <td class="description last"><p>Hint that the write may be buffered and need not go out on the wire
  911. immediately. GRPC is free to buffer the message until the next non-buffered
  912. write, or until writes_done, but it need not buffer completely or at all.</p></td>
  913. </tr>
  914. <tr>
  915. <td class="name"><code>NO_COMPRESS</code></td>
  916. <td class="type">
  917. <span class="param-type">number</span>
  918. </td>
  919. <td class="default">
  920. 2
  921. </td>
  922. <td class="description last"><p>Force compression to be disabled for a particular write</p></td>
  923. </tr>
  924. </tbody>
  925. </table>
  926. </dl>
  927. </dl>
  928. </dd>
  929. <hr>
  930. <dt class="name" id="~defaultLoadOptions">
  931. <h4 id="~defaultLoadOptions"><span class="type-signature">&lt;inner> </span>defaultLoadOptions<span class="type-signature"></span></h4>
  932. </dt>
  933. <dd>
  934. <div class="description">
  935. <p>Default options for loading proto files into gRPC</p>
  936. </div>
  937. <dl class="details">
  938. </dl>
  939. </dd>
  940. </dl>
  941. <h3 class="subsection-title">Methods</h3>
  942. <dl>
  943. <hr>
  944. <dt>
  945. <h4 class="name" id=".closeClient"><span class="type-signature">&lt;static> </span>closeClient(client_obj)</h4>
  946. </dt>
  947. <dd>
  948. <h5>Parameters:</h5>
  949. <table class="params table table-striped">
  950. <thead>
  951. <tr>
  952. <th>Name</th>
  953. <th>Type</th>
  954. <th class="last">Description</th>
  955. </tr>
  956. </thead>
  957. <tbody>
  958. <tr>
  959. <td class="name"><code>client_obj</code></td>
  960. <td class="type">
  961. <span class="param-type"><a href="grpc.Client.html">grpc.Client</a></span>
  962. </td>
  963. <td class="description last"><p>The client to close</p></td>
  964. </tr>
  965. </tbody>
  966. </table>
  967. <dl class="details">
  968. </dl>
  969. </dd>
  970. <hr>
  971. <dt>
  972. <h4 class="name" id=".loadObject"><span class="type-signature">&lt;static> </span>loadObject(value [, options])</h4>
  973. </dt>
  974. <dd>
  975. <div class="description">
  976. <p>Load a ProtoBuf.js object as a gRPC object.</p>
  977. </div>
  978. <h5>Parameters:</h5>
  979. <table class="params table table-striped">
  980. <thead>
  981. <tr>
  982. <th>Name</th>
  983. <th>Type</th>
  984. <th>Argument</th>
  985. <th class="last">Description</th>
  986. </tr>
  987. </thead>
  988. <tbody>
  989. <tr>
  990. <td class="name"><code>value</code></td>
  991. <td class="type">
  992. <span class="param-type">Object</span>
  993. </td>
  994. <td class="attributes">
  995. </td>
  996. <td class="description last"><p>The ProtoBuf.js reflection object to load</p></td>
  997. </tr>
  998. <tr>
  999. <td class="name"><code>options</code></td>
  1000. <td class="type">
  1001. <span class="param-type">Object</span>
  1002. </td>
  1003. <td class="attributes">
  1004. &lt;optional><br>
  1005. </td>
  1006. <td class="description last"><p>Options to apply to the loaded file</p>
  1007. <h6 class="method-params-label method-subparams-label">Properties</h6>
  1008. <table class="params table table-striped">
  1009. <thead>
  1010. <tr>
  1011. <th>Name</th>
  1012. <th>Type</th>
  1013. <th>Argument</th>
  1014. <th>Default</th>
  1015. <th class="last">Description</th>
  1016. </tr>
  1017. </thead>
  1018. <tbody>
  1019. <tr>
  1020. <td class="name"><code>binaryAsBase64</code></td>
  1021. <td class="type">
  1022. <span class="param-type">bool</span>
  1023. </td>
  1024. <td class="attributes">
  1025. &lt;optional><br>
  1026. </td>
  1027. <td class="default">
  1028. false
  1029. </td>
  1030. <td class="description last"><p>deserialize bytes values as
  1031. base64 strings instead of Buffers</p></td>
  1032. </tr>
  1033. <tr>
  1034. <td class="name"><code>longsAsStrings</code></td>
  1035. <td class="type">
  1036. <span class="param-type">bool</span>
  1037. </td>
  1038. <td class="attributes">
  1039. &lt;optional><br>
  1040. </td>
  1041. <td class="default">
  1042. true
  1043. </td>
  1044. <td class="description last"><p>deserialize long values as
  1045. strings instead of objects</p></td>
  1046. </tr>
  1047. <tr>
  1048. <td class="name"><code>enumsAsStrings</code></td>
  1049. <td class="type">
  1050. <span class="param-type">bool</span>
  1051. </td>
  1052. <td class="attributes">
  1053. &lt;optional><br>
  1054. </td>
  1055. <td class="default">
  1056. true
  1057. </td>
  1058. <td class="description last"><p>deserialize enum values as
  1059. strings instead of numbers. Only works with Protobuf.js 6 values.</p></td>
  1060. </tr>
  1061. <tr>
  1062. <td class="name"><code>deprecatedArgumentOrder</code></td>
  1063. <td class="type">
  1064. <span class="param-type">bool</span>
  1065. </td>
  1066. <td class="attributes">
  1067. &lt;optional><br>
  1068. </td>
  1069. <td class="default">
  1070. false
  1071. </td>
  1072. <td class="description last"><p>use the beta method
  1073. argument order for client methods, with optional arguments after the
  1074. callback. This option is only a temporary stopgap measure to smooth an
  1075. API breakage. It is deprecated, and new code should not use it.</p></td>
  1076. </tr>
  1077. <tr>
  1078. <td class="name"><code>protobufjsVersion</code></td>
  1079. <td class="type">
  1080. <span class="param-type">number</span>
  1081. |
  1082. <span class="param-type">string</span>
  1083. </td>
  1084. <td class="attributes">
  1085. &lt;optional><br>
  1086. </td>
  1087. <td class="default">
  1088. 'detect'
  1089. </td>
  1090. <td class="description last"><p>5 and 6
  1091. respectively indicate that an object from the corresponding version of
  1092. Protobuf.js is provided in the value argument. If the option is 'detect',
  1093. gRPC will guess what the version is based on the structure of the value.</p></td>
  1094. </tr>
  1095. </tbody>
  1096. </table>
  1097. </td>
  1098. </tr>
  1099. </tbody>
  1100. </table>
  1101. <dl class="details">
  1102. </dl>
  1103. <h5>Returns:</h5>
  1104. <div class="param-desc">
  1105. <p>The resulting gRPC object.</p>
  1106. </div>
  1107. <dl>
  1108. <dt>
  1109. Type
  1110. </dt>
  1111. <dd>
  1112. <span class="param-type">Object.&lt;string, *></span>
  1113. </dd>
  1114. </dl>
  1115. </dd>
  1116. <hr>
  1117. <dt>
  1118. <h4 class="name" id=".setLogger"><span class="type-signature">&lt;static> </span>setLogger(logger)</h4>
  1119. </dt>
  1120. <dd>
  1121. <div class="description">
  1122. <p>Sets the logger function for the gRPC module. For debugging purposes, the C
  1123. core will log synchronously directly to stdout unless this function is
  1124. called. Note: the output format here is intended to be informational, and
  1125. is not guaranteed to stay the same in the future.
  1126. Logs will be directed to logger.error.</p>
  1127. </div>
  1128. <h5>Parameters:</h5>
  1129. <table class="params table table-striped">
  1130. <thead>
  1131. <tr>
  1132. <th>Name</th>
  1133. <th>Type</th>
  1134. <th class="last">Description</th>
  1135. </tr>
  1136. </thead>
  1137. <tbody>
  1138. <tr>
  1139. <td class="name"><code>logger</code></td>
  1140. <td class="type">
  1141. <span class="param-type">Console</span>
  1142. </td>
  1143. <td class="description last"><p>A Console-like object.</p></td>
  1144. </tr>
  1145. </tbody>
  1146. </table>
  1147. <dl class="details">
  1148. </dl>
  1149. </dd>
  1150. <hr>
  1151. <dt>
  1152. <h4 class="name" id=".setLogVerbosity"><span class="type-signature">&lt;static> </span>setLogVerbosity(verbosity)</h4>
  1153. </dt>
  1154. <dd>
  1155. <div class="description">
  1156. <p>Sets the logger verbosity for gRPC module logging. The options are members
  1157. of the grpc.logVerbosity map.</p>
  1158. </div>
  1159. <h5>Parameters:</h5>
  1160. <table class="params table table-striped">
  1161. <thead>
  1162. <tr>
  1163. <th>Name</th>
  1164. <th>Type</th>
  1165. <th class="last">Description</th>
  1166. </tr>
  1167. </thead>
  1168. <tbody>
  1169. <tr>
  1170. <td class="name"><code>verbosity</code></td>
  1171. <td class="type">
  1172. <span class="param-type">Number</span>
  1173. </td>
  1174. <td class="description last"><p>The minimum severity to log</p></td>
  1175. </tr>
  1176. </tbody>
  1177. </table>
  1178. <dl class="details">
  1179. </dl>
  1180. </dd>
  1181. <hr>
  1182. <dt>
  1183. <h4 class="name" id="~getClientChannel"><span class="type-signature">&lt;inner> </span>getClientChannel(client)</h4>
  1184. </dt>
  1185. <dd>
  1186. <div class="description">
  1187. <p>Return the underlying channel object for the specified client</p>
  1188. </div>
  1189. <h5>Parameters:</h5>
  1190. <table class="params table table-striped">
  1191. <thead>
  1192. <tr>
  1193. <th>Name</th>
  1194. <th>Type</th>
  1195. <th class="last">Description</th>
  1196. </tr>
  1197. </thead>
  1198. <tbody>
  1199. <tr>
  1200. <td class="name"><code>client</code></td>
  1201. <td class="type">
  1202. <span class="param-type"><a href="grpc.Client.html">grpc.Client</a></span>
  1203. </td>
  1204. <td class="description last"><p>The client</p></td>
  1205. </tr>
  1206. </tbody>
  1207. </table>
  1208. <dl class="details">
  1209. <dt class="tag-see method-doc-label method-doc-details-label">See:</dt>
  1210. <dd class="tag-see">
  1211. <ul>
  1212. <li><a href="grpc.Client.html#getChannel">grpc.Client#getChannel</a></li>
  1213. </ul>
  1214. </dd>
  1215. </dl>
  1216. <h5>Returns:</h5>
  1217. <div class="param-desc">
  1218. <p>The channel</p>
  1219. </div>
  1220. <dl>
  1221. <dt>
  1222. Type
  1223. </dt>
  1224. <dd>
  1225. <span class="param-type">Channel</span>
  1226. </dd>
  1227. </dl>
  1228. </dd>
  1229. <hr>
  1230. <dt>
  1231. <h4 class="name" id="~makeGenericClientConstructor"><span class="type-signature">&lt;inner> </span>makeGenericClientConstructor(methods, serviceName, class_options)</h4>
  1232. </dt>
  1233. <dd>
  1234. <div class="description">
  1235. <p>Creates a constructor for a client with the given methods, as specified in
  1236. the methods argument. The resulting class will have an instance method for
  1237. each method in the service, which is a partial application of one of the
  1238. <a href="grpc.Client.html">Client</a> request methods, depending on <code>requestSerialize</code>
  1239. and <code>responseSerialize</code>, with the <code>method</code>, <code>serialize</code>, and <code>deserialize</code>
  1240. arguments predefined.</p>
  1241. </div>
  1242. <h5>Parameters:</h5>
  1243. <table class="params table table-striped">
  1244. <thead>
  1245. <tr>
  1246. <th>Name</th>
  1247. <th>Type</th>
  1248. <th class="last">Description</th>
  1249. </tr>
  1250. </thead>
  1251. <tbody>
  1252. <tr>
  1253. <td class="name"><code>methods</code></td>
  1254. <td class="type">
  1255. <span class="param-type"><a href="grpc.html#~ServiceDefinition">grpc~ServiceDefinition</a></span>
  1256. </td>
  1257. <td class="description last"><p>An object mapping method names to
  1258. method attributes</p></td>
  1259. </tr>
  1260. <tr>
  1261. <td class="name"><code>serviceName</code></td>
  1262. <td class="type">
  1263. <span class="param-type">string</span>
  1264. </td>
  1265. <td class="description last"><p>The fully qualified name of the service</p></td>
  1266. </tr>
  1267. <tr>
  1268. <td class="name"><code>class_options</code></td>
  1269. <td class="type">
  1270. <span class="param-type">Object</span>
  1271. </td>
  1272. <td class="description last"><p>An options object.</p>
  1273. <h6 class="method-params-label method-subparams-label">Properties</h6>
  1274. <table class="params table table-striped">
  1275. <thead>
  1276. <tr>
  1277. <th>Name</th>
  1278. <th>Type</th>
  1279. <th>Argument</th>
  1280. <th>Default</th>
  1281. <th class="last">Description</th>
  1282. </tr>
  1283. </thead>
  1284. <tbody>
  1285. <tr>
  1286. <td class="name"><code>deprecatedArgumentOrder</code></td>
  1287. <td class="type">
  1288. <span class="param-type">boolean</span>
  1289. </td>
  1290. <td class="attributes">
  1291. &lt;optional><br>
  1292. </td>
  1293. <td class="default">
  1294. false
  1295. </td>
  1296. <td class="description last"><p>Indicates
  1297. that the old argument order should be used for methods, with optional
  1298. arguments at the end instead of the callback at the end. This option
  1299. is only a temporary stopgap measure to smooth an API breakage.
  1300. It is deprecated, and new code should not use it.</p></td>
  1301. </tr>
  1302. </tbody>
  1303. </table>
  1304. </td>
  1305. </tr>
  1306. </tbody>
  1307. </table>
  1308. <dl class="details">
  1309. </dl>
  1310. <h5>Returns:</h5>
  1311. <div class="param-desc">
  1312. <p>New client constructor, which is a subclass of
  1313. <a href="grpc.Client.html">grpc.Client</a>, and has the same arguments as that constructor.</p>
  1314. </div>
  1315. <dl>
  1316. <dt>
  1317. Type
  1318. </dt>
  1319. <dd>
  1320. <span class="param-type">function</span>
  1321. </dd>
  1322. </dl>
  1323. </dd>
  1324. <hr>
  1325. <dt>
  1326. <h4 class="name" id="~waitForClientReady"><span class="type-signature">&lt;inner> </span>waitForClientReady(client, deadline, callback)</h4>
  1327. </dt>
  1328. <dd>
  1329. <div class="description">
  1330. <p>Wait for the client to be ready. The callback will be called when the
  1331. client has successfully connected to the server, and it will be called
  1332. with an error if the attempt to connect to the server has unrecoverablly
  1333. failed or if the deadline expires. This function will make the channel
  1334. start connecting if it has not already done so.</p>
  1335. </div>
  1336. <h5>Parameters:</h5>
  1337. <table class="params table table-striped">
  1338. <thead>
  1339. <tr>
  1340. <th>Name</th>
  1341. <th>Type</th>
  1342. <th class="last">Description</th>
  1343. </tr>
  1344. </thead>
  1345. <tbody>
  1346. <tr>
  1347. <td class="name"><code>client</code></td>
  1348. <td class="type">
  1349. <span class="param-type"><a href="grpc.Client.html">grpc.Client</a></span>
  1350. </td>
  1351. <td class="description last"><p>The client to wait on</p></td>
  1352. </tr>
  1353. <tr>
  1354. <td class="name"><code>deadline</code></td>
  1355. <td class="type">
  1356. <span class="param-type"><a href="grpc.html#~Deadline">grpc~Deadline</a></span>
  1357. </td>
  1358. <td class="description last"><p>When to stop waiting for a connection. Pass
  1359. Infinity to wait forever.</p></td>
  1360. </tr>
  1361. <tr>
  1362. <td class="name"><code>callback</code></td>
  1363. <td class="type">
  1364. <span class="param-type">function</span>
  1365. </td>
  1366. <td class="description last"><p>The callback to call when done attempting
  1367. to connect.</p></td>
  1368. </tr>
  1369. </tbody>
  1370. </table>
  1371. <dl class="details">
  1372. <dt class="tag-see method-doc-label method-doc-details-label">See:</dt>
  1373. <dd class="tag-see">
  1374. <ul>
  1375. <li><a href="grpc.Client.html#waitForReady">grpc.Client#waitForReady</a></li>
  1376. </ul>
  1377. </dd>
  1378. </dl>
  1379. </dd>
  1380. </dl>
  1381. <h3 class="subsection-title">Type Definitions</h3>
  1382. <dl>
  1383. <hr>
  1384. <dt class="name" id="~ChannelOptions">
  1385. <h4 id="~ChannelOptions">ChannelOptions</h4>
  1386. </dt>
  1387. <dd>
  1388. <h5>Type:</h5>
  1389. <ul>
  1390. <li>
  1391. <span class="param-type">Object.&lt;string, (string|number)></span>
  1392. </li>
  1393. </ul>
  1394. <dl class="details">
  1395. </dl>
  1396. </dd>
  1397. <hr>
  1398. <dt class="name" id="~Deadline">
  1399. <h4 id="~Deadline">Deadline</h4>
  1400. </dt>
  1401. <dd>
  1402. <div class="description">
  1403. <p>The deadline of an operation. If it is a date, the deadline is reached at
  1404. the date and time specified. If it is a finite number, it is treated as
  1405. a number of milliseconds since the Unix Epoch. If it is Infinity, the
  1406. deadline will never be reached. If it is -Infinity, the deadline has already
  1407. passed.</p>
  1408. </div>
  1409. <h5>Type:</h5>
  1410. <ul>
  1411. <li>
  1412. <span class="param-type">number</span>
  1413. |
  1414. <span class="param-type">Date</span>
  1415. </li>
  1416. </ul>
  1417. <dl class="details">
  1418. </dl>
  1419. </dd>
  1420. <hr>
  1421. <dt>
  1422. <h4 class="name" id="~deserialize"><span class="type-signature"></span>deserialize(data)</h4>
  1423. </dt>
  1424. <dd>
  1425. <div class="description">
  1426. <p>A deserialization function</p>
  1427. </div>
  1428. <h5>Parameters:</h5>
  1429. <table class="params table table-striped">
  1430. <thead>
  1431. <tr>
  1432. <th>Name</th>
  1433. <th>Type</th>
  1434. <th class="last">Description</th>
  1435. </tr>
  1436. </thead>
  1437. <tbody>
  1438. <tr>
  1439. <td class="name"><code>data</code></td>
  1440. <td class="type">
  1441. <span class="param-type">Buffer</span>
  1442. </td>
  1443. <td class="description last"><p>The byte sequence to deserialize</p></td>
  1444. </tr>
  1445. </tbody>
  1446. </table>
  1447. <dl class="details">
  1448. </dl>
  1449. <h5>Returns:</h5>
  1450. <div class="param-desc">
  1451. <p>The data deserialized as a value</p>
  1452. </div>
  1453. <dl>
  1454. <dt>
  1455. Type
  1456. </dt>
  1457. <dd>
  1458. <span class="param-type">*</span>
  1459. </dd>
  1460. </dl>
  1461. </dd>
  1462. <hr>
  1463. <dt class="name" id="~Listener">
  1464. <h4 id="~Listener">Listener</h4>
  1465. </dt>
  1466. <dd>
  1467. <div class="description">
  1468. <p>A set of interceptor functions triggered by responses</p>
  1469. </div>
  1470. <h5>Type:</h5>
  1471. <ul>
  1472. <li>
  1473. <span class="param-type">object</span>
  1474. </li>
  1475. </ul>
  1476. <dl class="details">
  1477. <h5 class="subsection-title">Properties:</h5>
  1478. <dl>
  1479. <table class="props table table-striped">
  1480. <thead>
  1481. <tr>
  1482. <th>Name</th>
  1483. <th>Type</th>
  1484. <th>Argument</th>
  1485. <th class="last">Description</th>
  1486. </tr>
  1487. </thead>
  1488. <tbody>
  1489. <tr>
  1490. <td class="name"><code>onReceiveMetadata</code></td>
  1491. <td class="type">
  1492. <span class="param-type"><a href="global.html#MetadataListener">MetadataListener</a></span>
  1493. </td>
  1494. <td class="attributes">
  1495. &lt;optional><br>
  1496. </td>
  1497. <td class="description last"><p>A function triggered by
  1498. response metadata.</p></td>
  1499. </tr>
  1500. <tr>
  1501. <td class="name"><code>onReceiveMessage</code></td>
  1502. <td class="type">
  1503. <span class="param-type"><a href="global.html#MessageListener">MessageListener</a></span>
  1504. </td>
  1505. <td class="attributes">
  1506. &lt;optional><br>
  1507. </td>
  1508. <td class="description last"><p>A function triggered by a
  1509. response message.</p></td>
  1510. </tr>
  1511. <tr>
  1512. <td class="name"><code>onReceiveStatus</code></td>
  1513. <td class="type">
  1514. <span class="param-type"><a href="global.html#StatusListener">StatusListener</a></span>
  1515. </td>
  1516. <td class="attributes">
  1517. &lt;optional><br>
  1518. </td>
  1519. <td class="description last"><p>A function triggered by a
  1520. response status.</p></td>
  1521. </tr>
  1522. </tbody>
  1523. </table>
  1524. </dl>
  1525. </dl>
  1526. </dd>
  1527. <hr>
  1528. <dt class="name" id="~MethodDefinition">
  1529. <h4 id="~MethodDefinition">MethodDefinition</h4>
  1530. </dt>
  1531. <dd>
  1532. <div class="description">
  1533. <p>An object that completely defines a service method signature.</p>
  1534. </div>
  1535. <h5>Type:</h5>
  1536. <ul>
  1537. <li>
  1538. <span class="param-type">Object</span>
  1539. </li>
  1540. </ul>
  1541. <dl class="details">
  1542. <h5 class="subsection-title">Properties:</h5>
  1543. <dl>
  1544. <table class="props table table-striped">
  1545. <thead>
  1546. <tr>
  1547. <th>Name</th>
  1548. <th>Type</th>
  1549. <th class="last">Description</th>
  1550. </tr>
  1551. </thead>
  1552. <tbody>
  1553. <tr>
  1554. <td class="name"><code>path</code></td>
  1555. <td class="type">
  1556. <span class="param-type">string</span>
  1557. </td>
  1558. <td class="description last"><p>The method's URL path</p></td>
  1559. </tr>
  1560. <tr>
  1561. <td class="name"><code>requestStream</code></td>
  1562. <td class="type">
  1563. <span class="param-type">boolean</span>
  1564. </td>
  1565. <td class="description last"><p>Indicates whether the method accepts
  1566. a stream of requests</p></td>
  1567. </tr>
  1568. <tr>
  1569. <td class="name"><code>responseStream</code></td>
  1570. <td class="type">
  1571. <span class="param-type">boolean</span>
  1572. </td>
  1573. <td class="description last"><p>Indicates whether the method returns
  1574. a stream of responses</p></td>
  1575. </tr>
  1576. <tr>
  1577. <td class="name"><code>requestSerialize</code></td>
  1578. <td class="type">
  1579. <span class="param-type"><a href="grpc.html#~serialize">grpc~serialize</a></span>
  1580. </td>
  1581. <td class="description last"><p>Serialization
  1582. function for request values</p></td>
  1583. </tr>
  1584. <tr>
  1585. <td class="name"><code>responseSerialize</code></td>
  1586. <td class="type">
  1587. <span class="param-type"><a href="grpc.html#~serialize">grpc~serialize</a></span>
  1588. </td>
  1589. <td class="description last"><p>Serialization
  1590. function for response values</p></td>
  1591. </tr>
  1592. <tr>
  1593. <td class="name"><code>requestDeserialize</code></td>
  1594. <td class="type">
  1595. <span class="param-type"><a href="grpc.html#~deserialize">grpc~deserialize</a></span>
  1596. </td>
  1597. <td class="description last"><p>Deserialization
  1598. function for request data</p></td>
  1599. </tr>
  1600. <tr>
  1601. <td class="name"><code>responseDeserialize</code></td>
  1602. <td class="type">
  1603. <span class="param-type"><a href="grpc.html#~deserialize">grpc~deserialize</a></span>
  1604. </td>
  1605. <td class="description last"><p>Deserialization
  1606. function for repsonse data</p></td>
  1607. </tr>
  1608. </tbody>
  1609. </table>
  1610. </dl>
  1611. </dl>
  1612. </dd>
  1613. <hr>
  1614. <dt class="name" id="~PackageDefinition">
  1615. <h4 id="~PackageDefinition">PackageDefinition</h4>
  1616. </dt>
  1617. <dd>
  1618. <div class="description">
  1619. <p>An object that defines a package hierarchy with multiple services</p>
  1620. </div>
  1621. <h5>Type:</h5>
  1622. <ul>
  1623. <li>
  1624. <span class="param-type">Object.&lt;string, <a href="grpc.html#~ServiceDefinition">grpc~ServiceDefinition</a>></span>
  1625. </li>
  1626. </ul>
  1627. <dl class="details">
  1628. </dl>
  1629. </dd>
  1630. <hr>
  1631. <dt class="name" id="~Requester">
  1632. <h4 id="~Requester">Requester</h4>
  1633. </dt>
  1634. <dd>
  1635. <h5>Type:</h5>
  1636. <ul>
  1637. <li>
  1638. <span class="param-type">object</span>
  1639. </li>
  1640. </ul>
  1641. <dl class="details">
  1642. </dl>
  1643. </dd>
  1644. <hr>
  1645. <dt>
  1646. <h4 class="name" id="~serialize"><span class="type-signature"></span>serialize(value)</h4>
  1647. </dt>
  1648. <dd>
  1649. <div class="description">
  1650. <p>A serialization function</p>
  1651. </div>
  1652. <h5>Parameters:</h5>
  1653. <table class="params table table-striped">
  1654. <thead>
  1655. <tr>
  1656. <th>Name</th>
  1657. <th>Type</th>
  1658. <th class="last">Description</th>
  1659. </tr>
  1660. </thead>
  1661. <tbody>
  1662. <tr>
  1663. <td class="name"><code>value</code></td>
  1664. <td class="type">
  1665. <span class="param-type">*</span>
  1666. </td>
  1667. <td class="description last"><p>The value to serialize</p></td>
  1668. </tr>
  1669. </tbody>
  1670. </table>
  1671. <dl class="details">
  1672. </dl>
  1673. <h5>Returns:</h5>
  1674. <div class="param-desc">
  1675. <p>The value serialized as a byte sequence</p>
  1676. </div>
  1677. <dl>
  1678. <dt>
  1679. Type
  1680. </dt>
  1681. <dd>
  1682. <span class="param-type">Buffer</span>
  1683. </dd>
  1684. </dl>
  1685. </dd>
  1686. <hr>
  1687. <dt class="name" id="~ServiceDefinition">
  1688. <h4 id="~ServiceDefinition">ServiceDefinition</h4>
  1689. </dt>
  1690. <dd>
  1691. <div class="description">
  1692. <p>An object that completely defines a service.</p>
  1693. </div>
  1694. <h5>Type:</h5>
  1695. <ul>
  1696. <li>
  1697. <span class="param-type">Object.&lt;string, <a href="grpc.html#~MethodDefinition">grpc~MethodDefinition</a>></span>
  1698. </li>
  1699. </ul>
  1700. <dl class="details">
  1701. </dl>
  1702. </dd>
  1703. <hr>
  1704. <dt class="name" id="~ServiceError">
  1705. <h4 id="~ServiceError">ServiceError</h4>
  1706. </dt>
  1707. <dd>
  1708. <div class="description">
  1709. <p>Describes how a request has failed. The member <code>message</code> will be the same as
  1710. <code>details</code> in <a href="grpc.html#~StatusObject">grpc~StatusObject</a>, and <code>code</code> and <code>metadata</code> are the
  1711. same as in that object.</p>
  1712. </div>
  1713. <h5>Type:</h5>
  1714. <ul>
  1715. <li>
  1716. <span class="param-type">Error</span>
  1717. </li>
  1718. </ul>
  1719. <dl class="details">
  1720. <h5 class="subsection-title">Properties:</h5>
  1721. <dl>
  1722. <table class="props table table-striped">
  1723. <thead>
  1724. <tr>
  1725. <th>Name</th>
  1726. <th>Type</th>
  1727. <th class="last">Description</th>
  1728. </tr>
  1729. </thead>
  1730. <tbody>
  1731. <tr>
  1732. <td class="name"><code>code</code></td>
  1733. <td class="type">
  1734. <span class="param-type">number</span>
  1735. </td>
  1736. <td class="description last"><p>The error code, a key of <a href="grpc.html#.status">grpc.status</a> that is
  1737. not <code>grpc.status.OK</code></p></td>
  1738. </tr>
  1739. <tr>
  1740. <td class="name"><code>metadata</code></td>
  1741. <td class="type">
  1742. <span class="param-type"><a href="grpc.Metadata.html">grpc.Metadata</a></span>
  1743. </td>
  1744. <td class="description last"><p>Trailing metadata sent with the status,
  1745. if applicable</p></td>
  1746. </tr>
  1747. </tbody>
  1748. </table>
  1749. </dl>
  1750. </dl>
  1751. </dd>
  1752. <hr>
  1753. <dt class="name" id="~StatusObject">
  1754. <h4 id="~StatusObject">StatusObject</h4>
  1755. </dt>
  1756. <dd>
  1757. <div class="description">
  1758. <p>Represents the status of a completed request. If <code>code</code> is
  1759. <a href="grpc.html#.status">grpc.status</a>.OK, then the request has completed successfully.
  1760. Otherwise, the request has failed, <code>details</code> will contain a description of
  1761. the error. Either way, <code>metadata</code> contains the trailing response metadata
  1762. sent by the server when it finishes processing the call.</p>
  1763. </div>
  1764. <h5>Type:</h5>
  1765. <ul>
  1766. <li>
  1767. <span class="param-type">object</span>
  1768. </li>
  1769. </ul>
  1770. <dl class="details">
  1771. <h5 class="subsection-title">Properties:</h5>
  1772. <dl>
  1773. <table class="props table table-striped">
  1774. <thead>
  1775. <tr>
  1776. <th>Name</th>
  1777. <th>Type</th>
  1778. <th class="last">Description</th>
  1779. </tr>
  1780. </thead>
  1781. <tbody>
  1782. <tr>
  1783. <td class="name"><code>code</code></td>
  1784. <td class="type">
  1785. <span class="param-type">number</span>
  1786. </td>
  1787. <td class="description last"><p>The error code, a key of <a href="grpc.html#.status">grpc.status</a></p></td>
  1788. </tr>
  1789. <tr>
  1790. <td class="name"><code>details</code></td>
  1791. <td class="type">
  1792. <span class="param-type">string</span>
  1793. </td>
  1794. <td class="description last"><p>Human-readable description of the status</p></td>
  1795. </tr>
  1796. <tr>
  1797. <td class="name"><code>metadata</code></td>
  1798. <td class="type">
  1799. <span class="param-type"><a href="grpc.Metadata.html">grpc.Metadata</a></span>
  1800. </td>
  1801. <td class="description last"><p>Trailing metadata sent with the status,
  1802. if applicable</p></td>
  1803. </tr>
  1804. </tbody>
  1805. </table>
  1806. </dl>
  1807. </dl>
  1808. </dd>
  1809. </dl>
  1810. </article>
  1811. </section>
  1812. </div>
  1813. </div>
  1814. <div class="clearfix"></div>
  1815. <div class="col-md-3">
  1816. <div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
  1817. </div>
  1818. </div>
  1819. </div>
  1820. <div class="modal fade" id="searchResults">
  1821. <div class="modal-dialog">
  1822. <div class="modal-content">
  1823. <div class="modal-header">
  1824. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  1825. <h4 class="modal-title">Search results</h4>
  1826. </div>
  1827. <div class="modal-body"></div>
  1828. <div class="modal-footer">
  1829. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  1830. </div>
  1831. </div><!-- /.modal-content -->
  1832. </div><!-- /.modal-dialog -->
  1833. </div>
  1834. <footer>
  1835. <span class="jsdoc-message">
  1836. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
  1837. on 2018-08-10T10:27:03-07:00
  1838. using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
  1839. </span>
  1840. </footer>
  1841. <script src="scripts/docstrap.lib.js"></script>
  1842. <script src="scripts/toc.js"></script>
  1843. <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
  1844. <script>
  1845. $( function () {
  1846. $( "[id*='$']" ).each( function () {
  1847. var $this = $( this );
  1848. $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
  1849. } );
  1850. $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
  1851. var $this = $( this );
  1852. var example = $this.find( "code" );
  1853. exampleText = example.html();
  1854. var lang = /{@lang (.*?)}/.exec( exampleText );
  1855. if ( lang && lang[1] ) {
  1856. exampleText = exampleText.replace( lang[0], "" );
  1857. example.html( exampleText );
  1858. lang = lang[1];
  1859. } else {
  1860. var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
  1861. lang = langClassMatch ? langClassMatch[1] : "javascript";
  1862. }
  1863. if ( lang ) {
  1864. $this
  1865. .addClass( "sunlight-highlight-" + lang )
  1866. .addClass( "linenums" )
  1867. .html( example.html() );
  1868. }
  1869. } );
  1870. Sunlight.highlightAll( {
  1871. lineNumbers : false,
  1872. showMenu : true,
  1873. enableDoclinks : true
  1874. } );
  1875. $.catchAnchorLinks( {
  1876. navbarOffset: 10
  1877. } );
  1878. $( "#toc" ).toc( {
  1879. anchorName : function ( i, heading, prefix ) {
  1880. return $( heading ).attr( "id" ) || ( prefix + i );
  1881. },
  1882. selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
  1883. showAndHide : false,
  1884. smoothScrolling: true
  1885. } );
  1886. $( "#main span[id^='toc']" ).addClass( "toc-shim" );
  1887. $( '.dropdown-toggle' ).dropdown();
  1888. $( "table" ).each( function () {
  1889. var $this = $( this );
  1890. $this.addClass('table');
  1891. } );
  1892. } );
  1893. </script>
  1894. <!--Navigation and Symbol Display-->
  1895. <!--Google Analytics-->
  1896. <script type="text/javascript">
  1897. $(document).ready(function() {
  1898. SearcherDisplay.init();
  1899. });
  1900. </script>
  1901. </body>
  1902. </html>