grpc.Metadata.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746
  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 Class: Metadata</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">Class: Metadata</h1>
  81. <section>
  82. <header>
  83. <h2>
  84. <span class="ancestors"><a href="grpc.html">grpc</a>.</span>
  85. Metadata
  86. </h2>
  87. </header>
  88. <article>
  89. <div class="container-overview">
  90. <hr>
  91. <dt>
  92. <h4 class="name" id="Metadata"><span class="type-signature"></span>new Metadata( [options])</h4>
  93. </dt>
  94. <dd>
  95. <div class="description">
  96. <p>Class for storing metadata. Keys are normalized to lowercase ASCII.</p>
  97. </div>
  98. <h5>Parameters:</h5>
  99. <table class="params table table-striped">
  100. <thead>
  101. <tr>
  102. <th>Name</th>
  103. <th>Type</th>
  104. <th>Argument</th>
  105. <th class="last">Description</th>
  106. </tr>
  107. </thead>
  108. <tbody>
  109. <tr>
  110. <td class="name"><code>options</code></td>
  111. <td class="type">
  112. <span class="param-type">Object</span>
  113. </td>
  114. <td class="attributes">
  115. &lt;optional><br>
  116. </td>
  117. <td class="description last"><p>Boolean options for the beginning of the call.
  118. These options only have any effect when passed at the beginning of
  119. a client request.</p>
  120. <h6 class="method-params-label method-subparams-label">Properties</h6>
  121. <table class="params table table-striped">
  122. <thead>
  123. <tr>
  124. <th>Name</th>
  125. <th>Type</th>
  126. <th>Argument</th>
  127. <th>Default</th>
  128. <th class="last">Description</th>
  129. </tr>
  130. </thead>
  131. <tbody>
  132. <tr>
  133. <td class="name"><code>idempotentRequest</code></td>
  134. <td class="type">
  135. <span class="param-type">boolean</span>
  136. </td>
  137. <td class="attributes">
  138. &lt;optional><br>
  139. </td>
  140. <td class="default">
  141. false
  142. </td>
  143. <td class="description last"><p>Signal that the request
  144. is idempotent</p></td>
  145. </tr>
  146. <tr>
  147. <td class="name"><code>waitForReady</code></td>
  148. <td class="type">
  149. <span class="param-type">boolean</span>
  150. </td>
  151. <td class="attributes">
  152. &lt;optional><br>
  153. </td>
  154. <td class="default">
  155. true
  156. </td>
  157. <td class="description last"><p>Signal that the call should
  158. not return UNAVAILABLE before it has started.</p></td>
  159. </tr>
  160. <tr>
  161. <td class="name"><code>cacheableRequest</code></td>
  162. <td class="type">
  163. <span class="param-type">boolean</span>
  164. </td>
  165. <td class="attributes">
  166. &lt;optional><br>
  167. </td>
  168. <td class="default">
  169. false
  170. </td>
  171. <td class="description last"><p>Signal that the call is
  172. cacheable. GRPC is free to use GET verb.</p></td>
  173. </tr>
  174. <tr>
  175. <td class="name"><code>corked</code></td>
  176. <td class="type">
  177. <span class="param-type">boolean</span>
  178. </td>
  179. <td class="attributes">
  180. &lt;optional><br>
  181. </td>
  182. <td class="default">
  183. false
  184. </td>
  185. <td class="description last"><p>Signal that the initial metadata
  186. should be corked.</p></td>
  187. </tr>
  188. </tbody>
  189. </table>
  190. </td>
  191. </tr>
  192. </tbody>
  193. </table>
  194. <dl class="details">
  195. </dl>
  196. <h5>Example</h5>
  197. <pre class="sunlight-highlight-javascript">var metadata = new metadata_module.Metadata();
  198. metadata.set(&#x27;key1&#x27;, &#x27;value1&#x27;);
  199. metadata.add(&#x27;key1&#x27;, &#x27;value2&#x27;);
  200. metadata.get(&#x27;key1&#x27;) // returns [&#x27;value1&#x27;, &#x27;value2&#x27;]</pre>
  201. </dd>
  202. </div>
  203. <h3 class="subsection-title">Methods</h3>
  204. <dl>
  205. <hr>
  206. <dt>
  207. <h4 class="name" id="add"><span class="type-signature"></span>add(key, value)</h4>
  208. </dt>
  209. <dd>
  210. <div class="description">
  211. <p>Adds the given value for the given key. Normalizes the key.</p>
  212. </div>
  213. <h5>Parameters:</h5>
  214. <table class="params table table-striped">
  215. <thead>
  216. <tr>
  217. <th>Name</th>
  218. <th>Type</th>
  219. <th class="last">Description</th>
  220. </tr>
  221. </thead>
  222. <tbody>
  223. <tr>
  224. <td class="name"><code>key</code></td>
  225. <td class="type">
  226. <span class="param-type">String</span>
  227. </td>
  228. <td class="description last"><p>The key to add to.</p></td>
  229. </tr>
  230. <tr>
  231. <td class="name"><code>value</code></td>
  232. <td class="type">
  233. <span class="param-type">String</span>
  234. |
  235. <span class="param-type">Buffer</span>
  236. </td>
  237. <td class="description last"><p>The value to add. Must be a buffer if and only
  238. if the normalized key ends with '-bin'</p></td>
  239. </tr>
  240. </tbody>
  241. </table>
  242. <dl class="details">
  243. </dl>
  244. </dd>
  245. <hr>
  246. <dt>
  247. <h4 class="name" id="clone"><span class="type-signature"></span>clone()</h4>
  248. </dt>
  249. <dd>
  250. <div class="description">
  251. <p>Clone the metadata object.</p>
  252. </div>
  253. <dl class="details">
  254. </dl>
  255. <h5>Returns:</h5>
  256. <div class="param-desc">
  257. <p>The new cloned object</p>
  258. </div>
  259. <dl>
  260. <dt>
  261. Type
  262. </dt>
  263. <dd>
  264. <span class="param-type"><a href="grpc.Metadata.html">grpc.Metadata</a></span>
  265. </dd>
  266. </dl>
  267. </dd>
  268. <hr>
  269. <dt>
  270. <h4 class="name" id="get"><span class="type-signature"></span>get(key)</h4>
  271. </dt>
  272. <dd>
  273. <div class="description">
  274. <p>Gets a list of all values associated with the key. Normalizes the key.</p>
  275. </div>
  276. <h5>Parameters:</h5>
  277. <table class="params table table-striped">
  278. <thead>
  279. <tr>
  280. <th>Name</th>
  281. <th>Type</th>
  282. <th class="last">Description</th>
  283. </tr>
  284. </thead>
  285. <tbody>
  286. <tr>
  287. <td class="name"><code>key</code></td>
  288. <td class="type">
  289. <span class="param-type">String</span>
  290. </td>
  291. <td class="description last"><p>The key to get</p></td>
  292. </tr>
  293. </tbody>
  294. </table>
  295. <dl class="details">
  296. </dl>
  297. <h5>Returns:</h5>
  298. <div class="param-desc">
  299. <p>The values associated with that key</p>
  300. </div>
  301. <dl>
  302. <dt>
  303. Type
  304. </dt>
  305. <dd>
  306. <span class="param-type">Array.&lt;(String|Buffer)></span>
  307. </dd>
  308. </dl>
  309. </dd>
  310. <hr>
  311. <dt>
  312. <h4 class="name" id="getMap"><span class="type-signature"></span>getMap()</h4>
  313. </dt>
  314. <dd>
  315. <div class="description">
  316. <p>Get a map of each key to a single associated value. This reflects the most
  317. common way that people will want to see metadata.</p>
  318. </div>
  319. <dl class="details">
  320. </dl>
  321. <h5>Returns:</h5>
  322. <div class="param-desc">
  323. <p>A key/value mapping of the metadata</p>
  324. </div>
  325. <dl>
  326. <dt>
  327. Type
  328. </dt>
  329. <dd>
  330. <span class="param-type">Object.&lt;String, (String|Buffer)></span>
  331. </dd>
  332. </dl>
  333. </dd>
  334. <hr>
  335. <dt>
  336. <h4 class="name" id="remove"><span class="type-signature"></span>remove(key)</h4>
  337. </dt>
  338. <dd>
  339. <div class="description">
  340. <p>Remove the given key and any associated values. Normalizes the key.</p>
  341. </div>
  342. <h5>Parameters:</h5>
  343. <table class="params table table-striped">
  344. <thead>
  345. <tr>
  346. <th>Name</th>
  347. <th>Type</th>
  348. <th class="last">Description</th>
  349. </tr>
  350. </thead>
  351. <tbody>
  352. <tr>
  353. <td class="name"><code>key</code></td>
  354. <td class="type">
  355. <span class="param-type">String</span>
  356. </td>
  357. <td class="description last"><p>The key to remove</p></td>
  358. </tr>
  359. </tbody>
  360. </table>
  361. <dl class="details">
  362. </dl>
  363. </dd>
  364. <hr>
  365. <dt>
  366. <h4 class="name" id="set"><span class="type-signature"></span>set(key, value)</h4>
  367. </dt>
  368. <dd>
  369. <div class="description">
  370. <p>Sets the given value for the given key, replacing any other values associated
  371. with that key. Normalizes the key.</p>
  372. </div>
  373. <h5>Parameters:</h5>
  374. <table class="params table table-striped">
  375. <thead>
  376. <tr>
  377. <th>Name</th>
  378. <th>Type</th>
  379. <th class="last">Description</th>
  380. </tr>
  381. </thead>
  382. <tbody>
  383. <tr>
  384. <td class="name"><code>key</code></td>
  385. <td class="type">
  386. <span class="param-type">String</span>
  387. </td>
  388. <td class="description last"><p>The key to set</p></td>
  389. </tr>
  390. <tr>
  391. <td class="name"><code>value</code></td>
  392. <td class="type">
  393. <span class="param-type">String</span>
  394. |
  395. <span class="param-type">Buffer</span>
  396. </td>
  397. <td class="description last"><p>The value to set. Must be a buffer if and only
  398. if the normalized key ends with '-bin'</p></td>
  399. </tr>
  400. </tbody>
  401. </table>
  402. <dl class="details">
  403. </dl>
  404. </dd>
  405. <hr>
  406. <dt>
  407. <h4 class="name" id="setOptions"><span class="type-signature"></span>setOptions(options)</h4>
  408. </dt>
  409. <dd>
  410. <div class="description">
  411. <p>Set options on the metadata object</p>
  412. </div>
  413. <h5>Parameters:</h5>
  414. <table class="params table table-striped">
  415. <thead>
  416. <tr>
  417. <th>Name</th>
  418. <th>Type</th>
  419. <th class="last">Description</th>
  420. </tr>
  421. </thead>
  422. <tbody>
  423. <tr>
  424. <td class="name"><code>options</code></td>
  425. <td class="type">
  426. <span class="param-type">Object</span>
  427. </td>
  428. <td class="description last"><p>Boolean options for the beginning of the call.
  429. These options only have any effect when passed at the beginning of
  430. a client request.</p>
  431. <h6 class="method-params-label method-subparams-label">Properties</h6>
  432. <table class="params table table-striped">
  433. <thead>
  434. <tr>
  435. <th>Name</th>
  436. <th>Type</th>
  437. <th>Argument</th>
  438. <th>Default</th>
  439. <th class="last">Description</th>
  440. </tr>
  441. </thead>
  442. <tbody>
  443. <tr>
  444. <td class="name"><code>idempotentRequest</code></td>
  445. <td class="type">
  446. <span class="param-type">boolean</span>
  447. </td>
  448. <td class="attributes">
  449. &lt;optional><br>
  450. </td>
  451. <td class="default">
  452. false
  453. </td>
  454. <td class="description last"><p>Signal that the request
  455. is idempotent</p></td>
  456. </tr>
  457. <tr>
  458. <td class="name"><code>waitForReady</code></td>
  459. <td class="type">
  460. <span class="param-type">boolean</span>
  461. </td>
  462. <td class="attributes">
  463. &lt;optional><br>
  464. </td>
  465. <td class="default">
  466. true
  467. </td>
  468. <td class="description last"><p>Signal that the call should
  469. not return UNAVAILABLE before it has started.</p></td>
  470. </tr>
  471. <tr>
  472. <td class="name"><code>cacheableRequest</code></td>
  473. <td class="type">
  474. <span class="param-type">boolean</span>
  475. </td>
  476. <td class="attributes">
  477. &lt;optional><br>
  478. </td>
  479. <td class="default">
  480. false
  481. </td>
  482. <td class="description last"><p>Signal that the call is
  483. cacheable. GRPC is free to use GET verb.</p></td>
  484. </tr>
  485. <tr>
  486. <td class="name"><code>corked</code></td>
  487. <td class="type">
  488. <span class="param-type">boolean</span>
  489. </td>
  490. <td class="attributes">
  491. &lt;optional><br>
  492. </td>
  493. <td class="default">
  494. false
  495. </td>
  496. <td class="description last"><p>Signal that the initial metadata
  497. should be corked.</p></td>
  498. </tr>
  499. </tbody>
  500. </table>
  501. </td>
  502. </tr>
  503. </tbody>
  504. </table>
  505. <dl class="details">
  506. </dl>
  507. </dd>
  508. </dl>
  509. </article>
  510. </section>
  511. </div>
  512. </div>
  513. <div class="clearfix"></div>
  514. <div class="col-md-3">
  515. <div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
  516. </div>
  517. </div>
  518. </div>
  519. <div class="modal fade" id="searchResults">
  520. <div class="modal-dialog">
  521. <div class="modal-content">
  522. <div class="modal-header">
  523. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  524. <h4 class="modal-title">Search results</h4>
  525. </div>
  526. <div class="modal-body"></div>
  527. <div class="modal-footer">
  528. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  529. </div>
  530. </div><!-- /.modal-content -->
  531. </div><!-- /.modal-dialog -->
  532. </div>
  533. <footer>
  534. <span class="jsdoc-message">
  535. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
  536. on 2019-07-15T16:38:16-07:00
  537. using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
  538. </span>
  539. </footer>
  540. <script src="scripts/docstrap.lib.js"></script>
  541. <script src="scripts/toc.js"></script>
  542. <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
  543. <script>
  544. $( function () {
  545. $( "[id*='$']" ).each( function () {
  546. var $this = $( this );
  547. $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
  548. } );
  549. $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
  550. var $this = $( this );
  551. var example = $this.find( "code" );
  552. exampleText = example.html();
  553. var lang = /{@lang (.*?)}/.exec( exampleText );
  554. if ( lang && lang[1] ) {
  555. exampleText = exampleText.replace( lang[0], "" );
  556. example.html( exampleText );
  557. lang = lang[1];
  558. } else {
  559. var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
  560. lang = langClassMatch ? langClassMatch[1] : "javascript";
  561. }
  562. if ( lang ) {
  563. $this
  564. .addClass( "sunlight-highlight-" + lang )
  565. .addClass( "linenums" )
  566. .html( example.html() );
  567. }
  568. } );
  569. Sunlight.highlightAll( {
  570. lineNumbers : false,
  571. showMenu : true,
  572. enableDoclinks : true
  573. } );
  574. $.catchAnchorLinks( {
  575. navbarOffset: 10
  576. } );
  577. $( "#toc" ).toc( {
  578. anchorName : function ( i, heading, prefix ) {
  579. return $( heading ).attr( "id" ) || ( prefix + i );
  580. },
  581. selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
  582. showAndHide : false,
  583. smoothScrolling: true
  584. } );
  585. $( "#main span[id^='toc']" ).addClass( "toc-shim" );
  586. $( '.dropdown-toggle' ).dropdown();
  587. $( "table" ).each( function () {
  588. var $this = $( this );
  589. $this.addClass('table');
  590. } );
  591. } );
  592. </script>
  593. <!--Navigation and Symbol Display-->
  594. <!--Google Analytics-->
  595. <script type="text/javascript">
  596. $(document).ready(function() {
  597. SearcherDisplay.init();
  598. });
  599. </script>
  600. </body>
  601. </html>