global.html 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Global</title>
  6. <script src="scripts/prettify/prettify.js"> </script>
  7. <script src="scripts/prettify/lang-css.js"> </script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
  13. </head>
  14. <body>
  15. <div id="main">
  16. <h1 class="page-title">Global</h1>
  17. <section>
  18. <header>
  19. <h2></h2>
  20. </header>
  21. <article>
  22. <div class="container-overview">
  23. <dl class="details">
  24. </dl>
  25. </div>
  26. <h3 class="subsection-title">Members</h3>
  27. <h4 class="name" id="callError"><span class="type-signature"></span>callError<span class="type-signature"></span></h4>
  28. <div class="description">
  29. Call error name to code number mapping
  30. </div>
  31. <dl class="details">
  32. <dt class="tag-source">Source:</dt>
  33. <dd class="tag-source"><ul class="dummy"><li>
  34. <a href="index.js.html">index.js</a>, <a href="index.js.html#line221">line 221</a>
  35. </li></ul></dd>
  36. </dl>
  37. <h4 class="name" id="credentials"><span class="type-signature"></span>credentials<span class="type-signature"></span></h4>
  38. <div class="description">
  39. Credentials factories
  40. </div>
  41. <dl class="details">
  42. <dt class="tag-source">Source:</dt>
  43. <dd class="tag-source"><ul class="dummy"><li>
  44. <a href="index.js.html">index.js</a>, <a href="index.js.html#line236">line 236</a>
  45. </li></ul></dd>
  46. </dl>
  47. <h4 class="name" id="getClientChannel"><span class="type-signature"></span>getClientChannel<span class="type-signature"></span></h4>
  48. <dl class="details">
  49. <dt class="tag-source">Source:</dt>
  50. <dd class="tag-source"><ul class="dummy"><li>
  51. <a href="index.js.html">index.js</a>, <a href="index.js.html#line251">line 251</a>
  52. </li></ul></dd>
  53. <dt class="tag-see">See:</dt>
  54. <dd class="tag-see">
  55. <ul>
  56. <li><a href="module-src_client.html#.getClientChannel">module:src/client.getClientChannel</a></li>
  57. </ul>
  58. </dd>
  59. </dl>
  60. <h4 class="name" id="logVerbosity"><span class="type-signature"></span>logVerbosity<span class="type-signature"></span></h4>
  61. <div class="description">
  62. Log verbosity setting name to code number mapping
  63. </div>
  64. <dl class="details">
  65. <dt class="tag-source">Source:</dt>
  66. <dd class="tag-source"><ul class="dummy"><li>
  67. <a href="index.js.html">index.js</a>, <a href="index.js.html#line231">line 231</a>
  68. </li></ul></dd>
  69. </dl>
  70. <h4 class="name" id="makeGenericClientConstructor"><span class="type-signature"></span>makeGenericClientConstructor<span class="type-signature"></span></h4>
  71. <dl class="details">
  72. <dt class="tag-source">Source:</dt>
  73. <dd class="tag-source"><ul class="dummy"><li>
  74. <a href="index.js.html">index.js</a>, <a href="index.js.html#line246">line 246</a>
  75. </li></ul></dd>
  76. <dt class="tag-see">See:</dt>
  77. <dd class="tag-see">
  78. <ul>
  79. <li><a href="module-src_client.html#.makeClientConstructor">module:src/client.makeClientConstructor</a></li>
  80. </ul>
  81. </dd>
  82. </dl>
  83. <h4 class="name" id="Metadata"><span class="type-signature"></span>Metadata<span class="type-signature"></span></h4>
  84. <dl class="details">
  85. <dt class="tag-source">Source:</dt>
  86. <dd class="tag-source"><ul class="dummy"><li>
  87. <a href="index.js.html">index.js</a>, <a href="index.js.html#line206">line 206</a>
  88. </li></ul></dd>
  89. <dt class="tag-see">See:</dt>
  90. <dd class="tag-see">
  91. <ul>
  92. <li><a href="module-src_metadata.html">module:src/metadata</a></li>
  93. </ul>
  94. </dd>
  95. </dl>
  96. <h4 class="name" id="propagate"><span class="type-signature"></span>propagate<span class="type-signature"></span></h4>
  97. <div class="description">
  98. Propagate flag name to number mapping
  99. </div>
  100. <dl class="details">
  101. <dt class="tag-source">Source:</dt>
  102. <dd class="tag-source"><ul class="dummy"><li>
  103. <a href="index.js.html">index.js</a>, <a href="index.js.html#line216">line 216</a>
  104. </li></ul></dd>
  105. </dl>
  106. <h4 class="name" id="Server"><span class="type-signature"></span>Server<span class="type-signature"></span></h4>
  107. <dl class="details">
  108. <dt class="tag-source">Source:</dt>
  109. <dd class="tag-source"><ul class="dummy"><li>
  110. <a href="index.js.html">index.js</a>, <a href="index.js.html#line201">line 201</a>
  111. </li></ul></dd>
  112. <dt class="tag-see">See:</dt>
  113. <dd class="tag-see">
  114. <ul>
  115. <li><a href="module-src_server.html#.Server">module:src/server.Server</a></li>
  116. </ul>
  117. </dd>
  118. </dl>
  119. <h4 class="name" id="ServerCredentials"><span class="type-signature"></span>ServerCredentials<span class="type-signature"></span></h4>
  120. <div class="description">
  121. ServerCredentials factories
  122. </div>
  123. <dl class="details">
  124. <dt class="tag-source">Source:</dt>
  125. <dd class="tag-source"><ul class="dummy"><li>
  126. <a href="index.js.html">index.js</a>, <a href="index.js.html#line241">line 241</a>
  127. </li></ul></dd>
  128. </dl>
  129. <h4 class="name" id="status"><span class="type-signature"></span>status<span class="type-signature"></span></h4>
  130. <div class="description">
  131. Status name to code number mapping
  132. </div>
  133. <dl class="details">
  134. <dt class="tag-source">Source:</dt>
  135. <dd class="tag-source"><ul class="dummy"><li>
  136. <a href="index.js.html">index.js</a>, <a href="index.js.html#line211">line 211</a>
  137. </li></ul></dd>
  138. </dl>
  139. <h4 class="name" id="waitForClientReady"><span class="type-signature"></span>waitForClientReady<span class="type-signature"></span></h4>
  140. <dl class="details">
  141. <dt class="tag-source">Source:</dt>
  142. <dd class="tag-source"><ul class="dummy"><li>
  143. <a href="index.js.html">index.js</a>, <a href="index.js.html#line256">line 256</a>
  144. </li></ul></dd>
  145. <dt class="tag-see">See:</dt>
  146. <dd class="tag-see">
  147. <ul>
  148. <li><a href="module-src_client.html#.waitForClientReady">module:src/client.waitForClientReady</a></li>
  149. </ul>
  150. </dd>
  151. </dl>
  152. <h4 class="name" id="writeFlags"><span class="type-signature"></span>writeFlags<span class="type-signature"></span></h4>
  153. <div class="description">
  154. Write flag name to code number mapping
  155. </div>
  156. <dl class="details">
  157. <dt class="tag-source">Source:</dt>
  158. <dd class="tag-source"><ul class="dummy"><li>
  159. <a href="index.js.html">index.js</a>, <a href="index.js.html#line226">line 226</a>
  160. </li></ul></dd>
  161. </dl>
  162. <h3 class="subsection-title">Methods</h3>
  163. <h4 class="name" id="deserializeCls"><span class="type-signature"></span>deserializeCls<span class="signature">(cls, binaryAsBase64<span class="signature-attributes">opt</span>, longsAsStrings<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {function}</span></h4>
  164. <div class="description">
  165. Get a function that deserializes a specific type of protobuf.
  166. </div>
  167. <h5>Parameters:</h5>
  168. <table class="params">
  169. <thead>
  170. <tr>
  171. <th>Name</th>
  172. <th>Type</th>
  173. <th>Attributes</th>
  174. <th class="last">Description</th>
  175. </tr>
  176. </thead>
  177. <tbody>
  178. <tr>
  179. <td class="name"><code>cls</code></td>
  180. <td class="type">
  181. <span class="param-type">function</span>
  182. </td>
  183. <td class="attributes">
  184. </td>
  185. <td class="description last">The constructor of the message type to deserialize</td>
  186. </tr>
  187. <tr>
  188. <td class="name"><code>binaryAsBase64</code></td>
  189. <td class="type">
  190. <span class="param-type">bool</span>
  191. </td>
  192. <td class="attributes">
  193. &lt;optional><br>
  194. </td>
  195. <td class="description last">Deserialize bytes fields as base64 strings
  196. instead of Buffers. Defaults to false</td>
  197. </tr>
  198. <tr>
  199. <td class="name"><code>longsAsStrings</code></td>
  200. <td class="type">
  201. <span class="param-type">bool</span>
  202. </td>
  203. <td class="attributes">
  204. &lt;optional><br>
  205. </td>
  206. <td class="description last">Deserialize long values as strings instead of
  207. objects. Defaults to true</td>
  208. </tr>
  209. </tbody>
  210. </table>
  211. <dl class="details">
  212. <dt class="tag-source">Source:</dt>
  213. <dd class="tag-source"><ul class="dummy"><li>
  214. <a href="src_protobuf_js_5_common.js.html">src/protobuf_js_5_common.js</a>, <a href="src_protobuf_js_5_common.js.html#line48">line 48</a>
  215. </li></ul></dd>
  216. </dl>
  217. <h5>Returns:</h5>
  218. <div class="param-desc">
  219. The deserialization function
  220. </div>
  221. <dl>
  222. <dt>
  223. Type
  224. </dt>
  225. <dd>
  226. <span class="param-type">function</span>
  227. </dd>
  228. </dl>
  229. <h4 class="name" id="deserializeCls"><span class="type-signature"></span>deserializeCls<span class="signature">(cls, binaryAsBase64<span class="signature-attributes">opt</span>, longsAsStrings<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {function}</span></h4>
  230. <div class="description">
  231. Get a function that deserializes a specific type of protobuf.
  232. </div>
  233. <h5>Parameters:</h5>
  234. <table class="params">
  235. <thead>
  236. <tr>
  237. <th>Name</th>
  238. <th>Type</th>
  239. <th>Attributes</th>
  240. <th class="last">Description</th>
  241. </tr>
  242. </thead>
  243. <tbody>
  244. <tr>
  245. <td class="name"><code>cls</code></td>
  246. <td class="type">
  247. <span class="param-type">function</span>
  248. </td>
  249. <td class="attributes">
  250. </td>
  251. <td class="description last">The constructor of the message type to deserialize</td>
  252. </tr>
  253. <tr>
  254. <td class="name"><code>binaryAsBase64</code></td>
  255. <td class="type">
  256. <span class="param-type">bool</span>
  257. </td>
  258. <td class="attributes">
  259. &lt;optional><br>
  260. </td>
  261. <td class="description last">Deserialize bytes fields as base64 strings
  262. instead of Buffers. Defaults to false</td>
  263. </tr>
  264. <tr>
  265. <td class="name"><code>longsAsStrings</code></td>
  266. <td class="type">
  267. <span class="param-type">bool</span>
  268. </td>
  269. <td class="attributes">
  270. &lt;optional><br>
  271. </td>
  272. <td class="description last">Deserialize long values as strings instead of
  273. objects. Defaults to true</td>
  274. </tr>
  275. </tbody>
  276. </table>
  277. <dl class="details">
  278. <dt class="tag-source">Source:</dt>
  279. <dd class="tag-source"><ul class="dummy"><li>
  280. <a href="src_protobuf_js_6_common.js.html">src/protobuf_js_6_common.js</a>, <a href="src_protobuf_js_6_common.js.html#line48">line 48</a>
  281. </li></ul></dd>
  282. </dl>
  283. <h5>Returns:</h5>
  284. <div class="param-desc">
  285. The deserialization function
  286. </div>
  287. <dl>
  288. <dt>
  289. Type
  290. </dt>
  291. <dd>
  292. <span class="param-type">function</span>
  293. </dd>
  294. </dl>
  295. <h4 class="name" id="fullyQualifiedName"><span class="type-signature"></span>fullyQualifiedName<span class="signature">(value)</span><span class="type-signature"> &rarr; {string}</span></h4>
  296. <div class="description">
  297. Get the fully qualified (dotted) name of a ProtoBuf.Reflect value.
  298. </div>
  299. <h5>Parameters:</h5>
  300. <table class="params">
  301. <thead>
  302. <tr>
  303. <th>Name</th>
  304. <th>Type</th>
  305. <th class="last">Description</th>
  306. </tr>
  307. </thead>
  308. <tbody>
  309. <tr>
  310. <td class="name"><code>value</code></td>
  311. <td class="type">
  312. <span class="param-type">ProtoBuf.ReflectionObject</span>
  313. </td>
  314. <td class="description last">The value to get the name of</td>
  315. </tr>
  316. </tbody>
  317. </table>
  318. <dl class="details">
  319. <dt class="tag-source">Source:</dt>
  320. <dd class="tag-source"><ul class="dummy"><li>
  321. <a href="src_protobuf_js_6_common.js.html">src/protobuf_js_6_common.js</a>, <a href="src_protobuf_js_6_common.js.html#line92">line 92</a>
  322. </li></ul></dd>
  323. </dl>
  324. <h5>Returns:</h5>
  325. <div class="param-desc">
  326. The fully qualified name of the value
  327. </div>
  328. <dl>
  329. <dt>
  330. Type
  331. </dt>
  332. <dd>
  333. <span class="param-type">string</span>
  334. </dd>
  335. </dl>
  336. <h4 class="name" id="fullyQualifiedName"><span class="type-signature"></span>fullyQualifiedName<span class="signature">(value)</span><span class="type-signature"> &rarr; {string}</span></h4>
  337. <div class="description">
  338. Get the fully qualified (dotted) name of a ProtoBuf.Reflect value.
  339. </div>
  340. <h5>Parameters:</h5>
  341. <table class="params">
  342. <thead>
  343. <tr>
  344. <th>Name</th>
  345. <th>Type</th>
  346. <th class="last">Description</th>
  347. </tr>
  348. </thead>
  349. <tbody>
  350. <tr>
  351. <td class="name"><code>value</code></td>
  352. <td class="type">
  353. <span class="param-type">ProtoBuf.Reflect.Namespace</span>
  354. </td>
  355. <td class="description last">The value to get the name of</td>
  356. </tr>
  357. </tbody>
  358. </table>
  359. <dl class="details">
  360. <dt class="tag-source">Source:</dt>
  361. <dd class="tag-source"><ul class="dummy"><li>
  362. <a href="src_protobuf_js_5_common.js.html">src/protobuf_js_5_common.js</a>, <a href="src_protobuf_js_5_common.js.html#line87">line 87</a>
  363. </li></ul></dd>
  364. </dl>
  365. <h5>Returns:</h5>
  366. <div class="param-desc">
  367. The fully qualified name of the value
  368. </div>
  369. <dl>
  370. <dt>
  371. Type
  372. </dt>
  373. <dd>
  374. <span class="param-type">string</span>
  375. </dd>
  376. </dl>
  377. <h4 class="name" id="getProtobufServiceAttrs"><span class="type-signature"></span>getProtobufServiceAttrs<span class="signature">(service, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Object}</span></h4>
  378. <div class="description">
  379. Return a map from method names to method attributes for the service.
  380. </div>
  381. <h5>Parameters:</h5>
  382. <table class="params">
  383. <thead>
  384. <tr>
  385. <th>Name</th>
  386. <th>Type</th>
  387. <th>Attributes</th>
  388. <th class="last">Description</th>
  389. </tr>
  390. </thead>
  391. <tbody>
  392. <tr>
  393. <td class="name"><code>service</code></td>
  394. <td class="type">
  395. <span class="param-type">ProtoBuf.Service</span>
  396. </td>
  397. <td class="attributes">
  398. </td>
  399. <td class="description last">The service to get attributes for</td>
  400. </tr>
  401. <tr>
  402. <td class="name"><code>options</code></td>
  403. <td class="type">
  404. <span class="param-type">Object</span>
  405. </td>
  406. <td class="attributes">
  407. &lt;optional><br>
  408. </td>
  409. <td class="description last">Options to apply to these attributes</td>
  410. </tr>
  411. </tbody>
  412. </table>
  413. <dl class="details">
  414. <dt class="tag-source">Source:</dt>
  415. <dd class="tag-source"><ul class="dummy"><li>
  416. <a href="src_protobuf_js_6_common.js.html">src/protobuf_js_6_common.js</a>, <a href="src_protobuf_js_6_common.js.html#line112">line 112</a>
  417. </li></ul></dd>
  418. </dl>
  419. <h5>Returns:</h5>
  420. <div class="param-desc">
  421. The attributes map
  422. </div>
  423. <dl>
  424. <dt>
  425. Type
  426. </dt>
  427. <dd>
  428. <span class="param-type">Object</span>
  429. </dd>
  430. </dl>
  431. <h4 class="name" id="getProtobufServiceAttrs"><span class="type-signature"></span>getProtobufServiceAttrs<span class="signature">(service, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Object}</span></h4>
  432. <div class="description">
  433. Return a map from method names to method attributes for the service.
  434. </div>
  435. <h5>Parameters:</h5>
  436. <table class="params">
  437. <thead>
  438. <tr>
  439. <th>Name</th>
  440. <th>Type</th>
  441. <th>Attributes</th>
  442. <th class="last">Description</th>
  443. </tr>
  444. </thead>
  445. <tbody>
  446. <tr>
  447. <td class="name"><code>service</code></td>
  448. <td class="type">
  449. <span class="param-type">ProtoBuf.Reflect.Service</span>
  450. </td>
  451. <td class="attributes">
  452. </td>
  453. <td class="description last">The service to get attributes for</td>
  454. </tr>
  455. <tr>
  456. <td class="name"><code>options</code></td>
  457. <td class="type">
  458. <span class="param-type">Object</span>
  459. </td>
  460. <td class="attributes">
  461. &lt;optional><br>
  462. </td>
  463. <td class="description last">Options to apply to these attributes</td>
  464. </tr>
  465. </tbody>
  466. </table>
  467. <dl class="details">
  468. <dt class="tag-source">Source:</dt>
  469. <dd class="tag-source"><ul class="dummy"><li>
  470. <a href="src_protobuf_js_5_common.js.html">src/protobuf_js_5_common.js</a>, <a href="src_protobuf_js_5_common.js.html#line107">line 107</a>
  471. </li></ul></dd>
  472. </dl>
  473. <h5>Returns:</h5>
  474. <div class="param-desc">
  475. The attributes map
  476. </div>
  477. <dl>
  478. <dt>
  479. Type
  480. </dt>
  481. <dd>
  482. <span class="param-type">Object</span>
  483. </dd>
  484. </dl>
  485. <h4 class="name" id="isProbablyProtobufJs5"><span class="type-signature"></span>isProbablyProtobufJs5<span class="signature">(obj)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  486. <div class="description">
  487. The primary purpose of this method is to distinguish between reflection
  488. objects from different versions of ProtoBuf.js. This is just a heuristic,
  489. checking for properties that are (currently) specific to this version of
  490. ProtoBuf.js
  491. </div>
  492. <h5>Parameters:</h5>
  493. <table class="params">
  494. <thead>
  495. <tr>
  496. <th>Name</th>
  497. <th>Type</th>
  498. <th class="last">Description</th>
  499. </tr>
  500. </thead>
  501. <tbody>
  502. <tr>
  503. <td class="name"><code>obj</code></td>
  504. <td class="type">
  505. <span class="param-type">Object</span>
  506. </td>
  507. <td class="description last">The object to check</td>
  508. </tr>
  509. </tbody>
  510. </table>
  511. <dl class="details">
  512. <dt class="tag-source">Source:</dt>
  513. <dd class="tag-source"><ul class="dummy"><li>
  514. <a href="src_protobuf_js_5_common.js.html">src/protobuf_js_5_common.js</a>, <a href="src_protobuf_js_5_common.js.html#line179">line 179</a>
  515. </li></ul></dd>
  516. </dl>
  517. <h5>Returns:</h5>
  518. <div class="param-desc">
  519. Whether the object appears to be a Protobuf.js 5
  520. ReflectionObject
  521. </div>
  522. <dl>
  523. <dt>
  524. Type
  525. </dt>
  526. <dd>
  527. <span class="param-type">boolean</span>
  528. </dd>
  529. </dl>
  530. <h4 class="name" id="isProbablyProtobufJs6"><span class="type-signature"></span>isProbablyProtobufJs6<span class="signature">(obj)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  531. <div class="description">
  532. The primary purpose of this method is to distinguish between reflection
  533. objects from different versions of ProtoBuf.js. This is just a heuristic,
  534. checking for properties that are (currently) specific to this version of
  535. ProtoBuf.js
  536. </div>
  537. <h5>Parameters:</h5>
  538. <table class="params">
  539. <thead>
  540. <tr>
  541. <th>Name</th>
  542. <th>Type</th>
  543. <th class="last">Description</th>
  544. </tr>
  545. </thead>
  546. <tbody>
  547. <tr>
  548. <td class="name"><code>obj</code></td>
  549. <td class="type">
  550. <span class="param-type">Object</span>
  551. </td>
  552. <td class="description last">The object to check</td>
  553. </tr>
  554. </tbody>
  555. </table>
  556. <dl class="details">
  557. <dt class="tag-source">Source:</dt>
  558. <dd class="tag-source"><ul class="dummy"><li>
  559. <a href="src_protobuf_js_6_common.js.html">src/protobuf_js_6_common.js</a>, <a href="src_protobuf_js_6_common.js.html#line168">line 168</a>
  560. </li></ul></dd>
  561. </dl>
  562. <h5>Returns:</h5>
  563. <div class="param-desc">
  564. Whether the object appears to be a Protobuf.js 6
  565. ReflectionObject
  566. </div>
  567. <dl>
  568. <dt>
  569. Type
  570. </dt>
  571. <dd>
  572. <span class="param-type">boolean</span>
  573. </dd>
  574. </dl>
  575. <h4 class="name" id="load"><span class="type-signature"></span>load<span class="signature">(filename, format<span class="signature-attributes">opt</span>, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Object.&lt;string, *>}</span></h4>
  576. <div class="description">
  577. Load a gRPC object from a .proto file. The options object can provide the
  578. following options:
  579. - convertFieldsToCamelCase: Load this file with field names in camel case
  580. instead of their original case
  581. - binaryAsBase64: deserialize bytes values as base64 strings instead of
  582. Buffers. Defaults to false
  583. - longsAsStrings: deserialize long values as strings instead of objects.
  584. Defaults to true
  585. - enumsAsStrings: deserialize enum values as strings instead of numbers.
  586. Defaults to true
  587. - deprecatedArgumentOrder: Use the beta method argument order for client
  588. methods, with optional arguments after the callback. Defaults to false.
  589. This option is only a temporary stopgap measure to smooth an API breakage.
  590. It is deprecated, and new code should not use it.
  591. </div>
  592. <h5>Parameters:</h5>
  593. <table class="params">
  594. <thead>
  595. <tr>
  596. <th>Name</th>
  597. <th>Type</th>
  598. <th>Attributes</th>
  599. <th class="last">Description</th>
  600. </tr>
  601. </thead>
  602. <tbody>
  603. <tr>
  604. <td class="name"><code>filename</code></td>
  605. <td class="type">
  606. <span class="param-type">string</span>
  607. |
  608. <span class="param-type">Object</span>
  609. </td>
  610. <td class="attributes">
  611. </td>
  612. <td class="description last">The file to load</td>
  613. </tr>
  614. <tr>
  615. <td class="name"><code>format</code></td>
  616. <td class="type">
  617. <span class="param-type">string</span>
  618. </td>
  619. <td class="attributes">
  620. &lt;optional><br>
  621. </td>
  622. <td class="description last">The file format to expect. Must be either 'proto' or
  623. 'json'. Defaults to 'proto'</td>
  624. </tr>
  625. <tr>
  626. <td class="name"><code>options</code></td>
  627. <td class="type">
  628. <span class="param-type">Object</span>
  629. </td>
  630. <td class="attributes">
  631. &lt;optional><br>
  632. </td>
  633. <td class="description last">Options to apply to the loaded file</td>
  634. </tr>
  635. </tbody>
  636. </table>
  637. <dl class="details">
  638. <dt class="tag-source">Source:</dt>
  639. <dd class="tag-source"><ul class="dummy"><li>
  640. <a href="index.js.html">index.js</a>, <a href="index.js.html#line148">line 148</a>
  641. </li></ul></dd>
  642. </dl>
  643. <h5>Returns:</h5>
  644. <div class="param-desc">
  645. The resulting gRPC object
  646. </div>
  647. <dl>
  648. <dt>
  649. Type
  650. </dt>
  651. <dd>
  652. <span class="param-type">Object.&lt;string, *></span>
  653. </dd>
  654. </dl>
  655. <h4 class="name" id="loadObject"><span class="type-signature"></span>loadObject<span class="signature">(value, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Object.&lt;string, *>}</span></h4>
  656. <div class="description">
  657. Load a gRPC object from an existing ProtoBuf.Reflect object.
  658. </div>
  659. <h5>Parameters:</h5>
  660. <table class="params">
  661. <thead>
  662. <tr>
  663. <th>Name</th>
  664. <th>Type</th>
  665. <th>Attributes</th>
  666. <th class="last">Description</th>
  667. </tr>
  668. </thead>
  669. <tbody>
  670. <tr>
  671. <td class="name"><code>value</code></td>
  672. <td class="type">
  673. <span class="param-type">ProtoBuf.Reflect.Namespace</span>
  674. </td>
  675. <td class="attributes">
  676. </td>
  677. <td class="description last">The ProtoBuf object to load.</td>
  678. </tr>
  679. <tr>
  680. <td class="name"><code>options</code></td>
  681. <td class="type">
  682. <span class="param-type">Object</span>
  683. </td>
  684. <td class="attributes">
  685. &lt;optional><br>
  686. </td>
  687. <td class="description last">Options to apply to the loaded object</td>
  688. </tr>
  689. </tbody>
  690. </table>
  691. <dl class="details">
  692. <dt class="tag-source">Source:</dt>
  693. <dd class="tag-source"><ul class="dummy"><li>
  694. <a href="src_protobuf_js_5_common.js.html">src/protobuf_js_5_common.js</a>, <a href="src_protobuf_js_5_common.js.html#line147">line 147</a>
  695. </li></ul></dd>
  696. </dl>
  697. <h5>Returns:</h5>
  698. <div class="param-desc">
  699. The resulting gRPC object
  700. </div>
  701. <dl>
  702. <dt>
  703. Type
  704. </dt>
  705. <dd>
  706. <span class="param-type">Object.&lt;string, *></span>
  707. </dd>
  708. </dl>
  709. <h4 class="name" id="loadObject"><span class="type-signature"></span>loadObject<span class="signature">(value, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Object.&lt;string, *>}</span></h4>
  710. <div class="description">
  711. Load a ProtoBuf.js object as a gRPC object. The options object can provide
  712. the following options:
  713. - binaryAsBase64: deserialize bytes values as base64 strings instead of
  714. Buffers. Defaults to false
  715. - longsAsStrings: deserialize long values as strings instead of objects.
  716. Defaults to true
  717. - enumsAsStrings: deserialize enum values as strings instead of numbers.
  718. Defaults to true
  719. - deprecatedArgumentOrder: Use the beta method argument order for client
  720. methods, with optional arguments after the callback. Defaults to false.
  721. This option is only a temporary stopgap measure to smooth an API breakage.
  722. It is deprecated, and new code should not use it.
  723. - protobufjsVersion: Available values are 5, 6, and 'detect'. 5 and 6
  724. respectively indicate that an object from the corresponding version of
  725. ProtoBuf.js is provided in the value argument. If the option is 'detect',
  726. gRPC will guess what the version is based on the structure of the value.
  727. Defaults to 'detect'.
  728. </div>
  729. <h5>Parameters:</h5>
  730. <table class="params">
  731. <thead>
  732. <tr>
  733. <th>Name</th>
  734. <th>Type</th>
  735. <th>Attributes</th>
  736. <th class="last">Description</th>
  737. </tr>
  738. </thead>
  739. <tbody>
  740. <tr>
  741. <td class="name"><code>value</code></td>
  742. <td class="type">
  743. <span class="param-type">Object</span>
  744. </td>
  745. <td class="attributes">
  746. </td>
  747. <td class="description last">The ProtoBuf.js reflection object to load</td>
  748. </tr>
  749. <tr>
  750. <td class="name"><code>options</code></td>
  751. <td class="type">
  752. <span class="param-type">Object</span>
  753. </td>
  754. <td class="attributes">
  755. &lt;optional><br>
  756. </td>
  757. <td class="description last">Options to apply to the loaded file</td>
  758. </tr>
  759. </tbody>
  760. </table>
  761. <dl class="details">
  762. <dt class="tag-source">Source:</dt>
  763. <dd class="tag-source"><ul class="dummy"><li>
  764. <a href="index.js.html">index.js</a>, <a href="index.js.html#line82">line 82</a>
  765. </li></ul></dd>
  766. </dl>
  767. <h5>Returns:</h5>
  768. <div class="param-desc">
  769. The resulting gRPC object
  770. </div>
  771. <dl>
  772. <dt>
  773. Type
  774. </dt>
  775. <dd>
  776. <span class="param-type">Object.&lt;string, *></span>
  777. </dd>
  778. </dl>
  779. <h4 class="name" id="serializeCls"><span class="type-signature"></span>serializeCls<span class="signature">(Cls)</span><span class="type-signature"> &rarr; {function}</span></h4>
  780. <div class="description">
  781. Get a function that serializes objects to a buffer by protobuf class.
  782. </div>
  783. <h5>Parameters:</h5>
  784. <table class="params">
  785. <thead>
  786. <tr>
  787. <th>Name</th>
  788. <th>Type</th>
  789. <th class="last">Description</th>
  790. </tr>
  791. </thead>
  792. <tbody>
  793. <tr>
  794. <td class="name"><code>Cls</code></td>
  795. <td class="type">
  796. <span class="param-type">function</span>
  797. </td>
  798. <td class="description last">The constructor of the message type to serialize</td>
  799. </tr>
  800. </tbody>
  801. </table>
  802. <dl class="details">
  803. <dt class="tag-source">Source:</dt>
  804. <dd class="tag-source"><ul class="dummy"><li>
  805. <a href="src_protobuf_js_5_common.js.html">src/protobuf_js_5_common.js</a>, <a href="src_protobuf_js_5_common.js.html#line69">line 69</a>
  806. </li></ul></dd>
  807. </dl>
  808. <h5>Returns:</h5>
  809. <div class="param-desc">
  810. The serialization function
  811. </div>
  812. <dl>
  813. <dt>
  814. Type
  815. </dt>
  816. <dd>
  817. <span class="param-type">function</span>
  818. </dd>
  819. </dl>
  820. <h4 class="name" id="serializeCls"><span class="type-signature"></span>serializeCls<span class="signature">(Cls)</span><span class="type-signature"> &rarr; {function}</span></h4>
  821. <div class="description">
  822. Get a function that serializes objects to a buffer by protobuf class.
  823. </div>
  824. <h5>Parameters:</h5>
  825. <table class="params">
  826. <thead>
  827. <tr>
  828. <th>Name</th>
  829. <th>Type</th>
  830. <th class="last">Description</th>
  831. </tr>
  832. </thead>
  833. <tbody>
  834. <tr>
  835. <td class="name"><code>Cls</code></td>
  836. <td class="type">
  837. <span class="param-type">function</span>
  838. </td>
  839. <td class="description last">The constructor of the message type to serialize</td>
  840. </tr>
  841. </tbody>
  842. </table>
  843. <dl class="details">
  844. <dt class="tag-source">Source:</dt>
  845. <dd class="tag-source"><ul class="dummy"><li>
  846. <a href="src_protobuf_js_6_common.js.html">src/protobuf_js_6_common.js</a>, <a href="src_protobuf_js_6_common.js.html#line73">line 73</a>
  847. </li></ul></dd>
  848. </dl>
  849. <h5>Returns:</h5>
  850. <div class="param-desc">
  851. The serialization function
  852. </div>
  853. <dl>
  854. <dt>
  855. Type
  856. </dt>
  857. <dd>
  858. <span class="param-type">function</span>
  859. </dd>
  860. </dl>
  861. <h4 class="name" id="setLogger"><span class="type-signature"></span>setLogger<span class="signature">(logger)</span><span class="type-signature"></span></h4>
  862. <div class="description">
  863. Sets the logger function for the gRPC module. For debugging purposes, the C
  864. core will log synchronously directly to stdout unless this function is
  865. called. Note: the output format here is intended to be informational, and
  866. is not guaranteed to stay the same in the future.
  867. Logs will be directed to logger.error.
  868. </div>
  869. <h5>Parameters:</h5>
  870. <table class="params">
  871. <thead>
  872. <tr>
  873. <th>Name</th>
  874. <th>Type</th>
  875. <th class="last">Description</th>
  876. </tr>
  877. </thead>
  878. <tbody>
  879. <tr>
  880. <td class="name"><code>logger</code></td>
  881. <td class="type">
  882. <span class="param-type">Console</span>
  883. </td>
  884. <td class="description last">A Console-like object.</td>
  885. </tr>
  886. </tbody>
  887. </table>
  888. <dl class="details">
  889. <dt class="tag-source">Source:</dt>
  890. <dd class="tag-source"><ul class="dummy"><li>
  891. <a href="index.js.html">index.js</a>, <a href="index.js.html#line174">line 174</a>
  892. </li></ul></dd>
  893. </dl>
  894. <h4 class="name" id="setLogVerbosity"><span class="type-signature"></span>setLogVerbosity<span class="signature">(verbosity)</span><span class="type-signature"></span></h4>
  895. <div class="description">
  896. Sets the logger verbosity for gRPC module logging. The options are members
  897. of the grpc.logVerbosity map.
  898. </div>
  899. <h5>Parameters:</h5>
  900. <table class="params">
  901. <thead>
  902. <tr>
  903. <th>Name</th>
  904. <th>Type</th>
  905. <th class="last">Description</th>
  906. </tr>
  907. </thead>
  908. <tbody>
  909. <tr>
  910. <td class="name"><code>verbosity</code></td>
  911. <td class="type">
  912. <span class="param-type">Number</span>
  913. </td>
  914. <td class="description last">The minimum severity to log</td>
  915. </tr>
  916. </tbody>
  917. </table>
  918. <dl class="details">
  919. <dt class="tag-source">Source:</dt>
  920. <dd class="tag-source"><ul class="dummy"><li>
  921. <a href="index.js.html">index.js</a>, <a href="index.js.html#line193">line 193</a>
  922. </li></ul></dd>
  923. </dl>
  924. </article>
  925. </section>
  926. </div>
  927. <nav>
  928. <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-src_client.html">src/client</a></li><li><a href="module-src_common.html">src/common</a></li><li><a href="module-src_credentials.html">src/credentials</a></li><li><a href="module-src_metadata.html">src/metadata</a></li><li><a href="module-src_server.html">src/server</a></li></ul><h3>Classes</h3><ul><li><a href="module-src_client.makeClientConstructor-Client.html">Client</a></li><li><a href="module-src_client-ClientDuplexStream.html">ClientDuplexStream</a></li><li><a href="module-src_client-ClientReadableStream.html">ClientReadableStream</a></li><li><a href="module-src_client-ClientWritableStream.html">ClientWritableStream</a></li><li><a href="module-src_metadata-Metadata.html">Metadata</a></li><li><a href="module-src_server-Server.html">Server</a></li><li><a href="module-src_server-ServerDuplexStream.html">ServerDuplexStream</a></li><li><a href="module-src_server-ServerReadableStream.html">ServerReadableStream</a></li><li><a href="module-src_server-ServerWritableStream.html">ServerWritableStream</a></li></ul><h3>Global</h3><ul><li><a href="global.html#callError">callError</a></li><li><a href="global.html#credentials">credentials</a></li><li><a href="global.html#deserializeCls">deserializeCls</a></li><li><a href="global.html#fullyQualifiedName">fullyQualifiedName</a></li><li><a href="global.html#getClientChannel">getClientChannel</a></li><li><a href="global.html#getProtobufServiceAttrs">getProtobufServiceAttrs</a></li><li><a href="global.html#isProbablyProtobufJs5">isProbablyProtobufJs5</a></li><li><a href="global.html#isProbablyProtobufJs6">isProbablyProtobufJs6</a></li><li><a href="global.html#load">load</a></li><li><a href="global.html#loadObject">loadObject</a></li><li><a href="global.html#logVerbosity">logVerbosity</a></li><li><a href="global.html#makeGenericClientConstructor">makeGenericClientConstructor</a></li><li><a href="global.html#Metadata">Metadata</a></li><li><a href="global.html#propagate">propagate</a></li><li><a href="global.html#serializeCls">serializeCls</a></li><li><a href="global.html#Server">Server</a></li><li><a href="global.html#ServerCredentials">ServerCredentials</a></li><li><a href="global.html#setLogger">setLogger</a></li><li><a href="global.html#setLogVerbosity">setLogVerbosity</a></li><li><a href="global.html#status">status</a></li><li><a href="global.html#waitForClientReady">waitForClientReady</a></li><li><a href="global.html#writeFlags">writeFlags</a></li></ul>
  929. </nav>
  930. <br class="clear">
  931. <footer>
  932. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Apr 27 2017 17:35:39 GMT-0700 (PDT)
  933. </footer>
  934. <script> prettyPrint(); </script>
  935. <script src="scripts/linenumber.js"> </script>
  936. </body>
  937. </html>