test_message.js 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769
  1. /**
  2. * @fileoverview Kernel wrapper message.
  3. */
  4. goog.module('protobuf.testing.binary.TestMessage');
  5. const ByteString = goog.require('protobuf.ByteString');
  6. const Int64 = goog.require('protobuf.Int64');
  7. const InternalMessage = goog.require('protobuf.binary.InternalMessage');
  8. const Kernel = goog.require('protobuf.runtime.Kernel');
  9. /**
  10. * A protobuf message implemented as a Kernel wrapper.
  11. * @implements {InternalMessage}
  12. */
  13. class TestMessage {
  14. /**
  15. * @return {!TestMessage}
  16. */
  17. static createEmpty() {
  18. return TestMessage.instanceCreator(Kernel.createEmpty());
  19. }
  20. /**
  21. * @param {!Kernel} kernel
  22. * @return {!TestMessage}
  23. */
  24. static instanceCreator(kernel) {
  25. return new TestMessage(kernel);
  26. }
  27. /**
  28. * @param {!Kernel} kernel
  29. */
  30. constructor(kernel) {
  31. /** @private @const {!Kernel} */
  32. this.kernel_ = kernel;
  33. }
  34. /**
  35. * @override
  36. * @return {!Kernel}
  37. */
  38. internalGetKernel() {
  39. return this.kernel_;
  40. }
  41. /**
  42. * @return {!ArrayBuffer}
  43. */
  44. serialize() {
  45. return this.kernel_.serialize();
  46. }
  47. /**
  48. * @param {number} fieldNumber
  49. * @param {boolean=} defaultValue
  50. * @return {boolean}
  51. */
  52. getBoolWithDefault(fieldNumber, defaultValue = false) {
  53. return this.kernel_.getBoolWithDefault(fieldNumber, defaultValue);
  54. }
  55. /**
  56. * @param {number} fieldNumber
  57. * @param {!ByteString=} defaultValue
  58. * @return {!ByteString}
  59. */
  60. getBytesWithDefault(fieldNumber, defaultValue = ByteString.EMPTY) {
  61. return this.kernel_.getBytesWithDefault(fieldNumber, defaultValue);
  62. }
  63. /**
  64. * @param {number} fieldNumber
  65. * @param {number=} defaultValue
  66. * @return {number}
  67. */
  68. getDoubleWithDefault(fieldNumber, defaultValue = 0) {
  69. return this.kernel_.getDoubleWithDefault(fieldNumber, defaultValue);
  70. }
  71. /**
  72. * @param {number} fieldNumber
  73. * @param {number=} defaultValue
  74. * @return {number}
  75. */
  76. getFixed32WithDefault(fieldNumber, defaultValue = 0) {
  77. return this.kernel_.getFixed32WithDefault(fieldNumber, defaultValue);
  78. }
  79. /**
  80. * @param {number} fieldNumber
  81. * @param {!Int64=} defaultValue
  82. * @return {!Int64}
  83. */
  84. getFixed64WithDefault(fieldNumber, defaultValue = Int64.getZero()) {
  85. return this.kernel_.getFixed64WithDefault(fieldNumber, defaultValue);
  86. }
  87. /**
  88. * @param {number} fieldNumber
  89. * @param {number=} defaultValue
  90. * @return {number}
  91. */
  92. getFloatWithDefault(fieldNumber, defaultValue = 0) {
  93. return this.kernel_.getFloatWithDefault(fieldNumber, defaultValue);
  94. }
  95. /**
  96. * @param {number} fieldNumber
  97. * @param {number=} defaultValue
  98. * @return {number}
  99. */
  100. getInt32WithDefault(fieldNumber, defaultValue = 0) {
  101. return this.kernel_.getInt32WithDefault(fieldNumber, defaultValue);
  102. }
  103. /**
  104. * @param {number} fieldNumber
  105. * @param {!Int64=} defaultValue
  106. * @return {!Int64}
  107. */
  108. getInt64WithDefault(fieldNumber, defaultValue = Int64.getZero()) {
  109. return this.kernel_.getInt64WithDefault(fieldNumber, defaultValue);
  110. }
  111. /**
  112. * @param {number} fieldNumber
  113. * @param {number=} defaultValue
  114. * @return {number}
  115. */
  116. getSfixed32WithDefault(fieldNumber, defaultValue = 0) {
  117. return this.kernel_.getSfixed32WithDefault(fieldNumber, defaultValue);
  118. }
  119. /**
  120. * @param {number} fieldNumber
  121. * @param {!Int64=} defaultValue
  122. * @return {!Int64}
  123. */
  124. getSfixed64WithDefault(fieldNumber, defaultValue = Int64.getZero()) {
  125. return this.kernel_.getSfixed64WithDefault(fieldNumber, defaultValue);
  126. }
  127. /**
  128. * @param {number} fieldNumber
  129. * @param {number=} defaultValue
  130. * @return {number}
  131. */
  132. getSint32WithDefault(fieldNumber, defaultValue = 0) {
  133. return this.kernel_.getSint32WithDefault(fieldNumber, defaultValue);
  134. }
  135. /**
  136. * @param {number} fieldNumber
  137. * @param {!Int64=} defaultValue
  138. * @return {!Int64}
  139. */
  140. getSint64WithDefault(fieldNumber, defaultValue = Int64.getZero()) {
  141. return this.kernel_.getSint64WithDefault(fieldNumber, defaultValue);
  142. }
  143. /**
  144. * @param {number} fieldNumber
  145. * @param {string=} defaultValue
  146. * @return {string}
  147. */
  148. getStringWithDefault(fieldNumber, defaultValue = '') {
  149. return this.kernel_.getStringWithDefault(fieldNumber, defaultValue);
  150. }
  151. /**
  152. * @param {number} fieldNumber
  153. * @param {number=} defaultValue
  154. * @return {number}
  155. */
  156. getUint32WithDefault(fieldNumber, defaultValue = 0) {
  157. return this.kernel_.getUint32WithDefault(fieldNumber, defaultValue);
  158. }
  159. /**
  160. * @param {number} fieldNumber
  161. * @param {!Int64=} defaultValue
  162. * @return {!Int64}
  163. */
  164. getUint64WithDefault(fieldNumber, defaultValue = Int64.getZero()) {
  165. return this.kernel_.getUint64WithDefault(fieldNumber, defaultValue);
  166. }
  167. /**
  168. * @param {number} fieldNumber
  169. * @param {function(!Kernel):T} instanceCreator
  170. * @return {?T}
  171. * @template T
  172. */
  173. getMessageOrNull(fieldNumber, instanceCreator) {
  174. return this.kernel_.getMessageOrNull(fieldNumber, instanceCreator);
  175. }
  176. /**
  177. * @param {number} fieldNumber
  178. * @param {function(!Kernel):T} instanceCreator
  179. * @return {T}
  180. * @template T
  181. */
  182. getMessageAttach(fieldNumber, instanceCreator) {
  183. return this.kernel_.getMessageAttach(fieldNumber, instanceCreator);
  184. }
  185. /**
  186. * @param {number} fieldNumber
  187. * @param {function(!Kernel):T} instanceCreator
  188. * @return {T}
  189. * @template T
  190. */
  191. getMessage(fieldNumber, instanceCreator) {
  192. return this.kernel_.getMessage(fieldNumber, instanceCreator);
  193. }
  194. /**
  195. * @param {number} fieldNumber
  196. * @return {?Kernel}
  197. * @template T
  198. */
  199. getMessageAccessorOrNull(fieldNumber) {
  200. return this.kernel_.getMessageAccessorOrNull(fieldNumber);
  201. }
  202. /**
  203. * @param {number} fieldNumber
  204. * @param {number} index
  205. * @return {boolean}
  206. */
  207. getRepeatedBoolElement(fieldNumber, index) {
  208. return this.kernel_.getRepeatedBoolElement(fieldNumber, index);
  209. }
  210. /**
  211. * @param {number} fieldNumber
  212. * @return {!Iterable<boolean>}
  213. */
  214. getRepeatedBoolIterable(fieldNumber) {
  215. return this.kernel_.getRepeatedBoolIterable(fieldNumber);
  216. }
  217. /**
  218. * @param {number} fieldNumber
  219. * @return {number}
  220. */
  221. getRepeatedBoolSize(fieldNumber) {
  222. return this.kernel_.getRepeatedBoolSize(fieldNumber);
  223. }
  224. /**
  225. * @param {number} fieldNumber
  226. * @param {number} index
  227. * @return {number}
  228. */
  229. getRepeatedDoubleElement(fieldNumber, index) {
  230. return this.kernel_.getRepeatedDoubleElement(fieldNumber, index);
  231. }
  232. /**
  233. * @param {number} fieldNumber
  234. * @return {!Iterable<number>}
  235. */
  236. getRepeatedDoubleIterable(fieldNumber) {
  237. return this.kernel_.getRepeatedDoubleIterable(fieldNumber);
  238. }
  239. /**
  240. * @param {number} fieldNumber
  241. * @return {number}
  242. */
  243. getRepeatedDoubleSize(fieldNumber) {
  244. return this.kernel_.getRepeatedDoubleSize(fieldNumber);
  245. }
  246. /**
  247. * @param {number} fieldNumber
  248. * @param {number} index
  249. * @return {number}
  250. */
  251. getRepeatedFixed32Element(fieldNumber, index) {
  252. return this.kernel_.getRepeatedFixed32Element(fieldNumber, index);
  253. }
  254. /**
  255. * @param {number} fieldNumber
  256. * @return {!Iterable<number>}
  257. */
  258. getRepeatedFixed32Iterable(fieldNumber) {
  259. return this.kernel_.getRepeatedFixed32Iterable(fieldNumber);
  260. }
  261. /**
  262. * @param {number} fieldNumber
  263. * @return {number}
  264. */
  265. getRepeatedFixed32Size(fieldNumber) {
  266. return this.kernel_.getRepeatedFixed32Size(fieldNumber);
  267. }
  268. /**
  269. * @param {number} fieldNumber
  270. * @param {number} index
  271. * @return {!Int64}
  272. */
  273. getRepeatedFixed64Element(fieldNumber, index) {
  274. return this.kernel_.getRepeatedFixed64Element(fieldNumber, index);
  275. }
  276. /**
  277. * @param {number} fieldNumber
  278. * @return {!Iterable<!Int64>}
  279. */
  280. getRepeatedFixed64Iterable(fieldNumber) {
  281. return this.kernel_.getRepeatedFixed64Iterable(fieldNumber);
  282. }
  283. /**
  284. * @param {number} fieldNumber
  285. * @return {number}
  286. */
  287. getRepeatedFixed64Size(fieldNumber) {
  288. return this.kernel_.getRepeatedFixed64Size(fieldNumber);
  289. }
  290. /**
  291. * @param {number} fieldNumber
  292. * @param {number} index
  293. * @return {number}
  294. */
  295. getRepeatedFloatElement(fieldNumber, index) {
  296. return this.kernel_.getRepeatedFloatElement(fieldNumber, index);
  297. }
  298. /**
  299. * @param {number} fieldNumber
  300. * @return {!Iterable<number>}
  301. */
  302. getRepeatedFloatIterable(fieldNumber) {
  303. return this.kernel_.getRepeatedFloatIterable(fieldNumber);
  304. }
  305. /**
  306. * @param {number} fieldNumber
  307. * @return {number}
  308. */
  309. getRepeatedFloatSize(fieldNumber) {
  310. return this.kernel_.getRepeatedFloatSize(fieldNumber);
  311. }
  312. /**
  313. * @param {number} fieldNumber
  314. * @param {number} index
  315. * @return {number}
  316. */
  317. getRepeatedInt32Element(fieldNumber, index) {
  318. return this.kernel_.getRepeatedInt32Element(fieldNumber, index);
  319. }
  320. /**
  321. * @param {number} fieldNumber
  322. * @return {!Iterable<number>}
  323. */
  324. getRepeatedInt32Iterable(fieldNumber) {
  325. return this.kernel_.getRepeatedInt32Iterable(fieldNumber);
  326. }
  327. /**
  328. * @param {number} fieldNumber
  329. * @return {number}
  330. */
  331. getRepeatedInt32Size(fieldNumber) {
  332. return this.kernel_.getRepeatedInt32Size(fieldNumber);
  333. }
  334. /**
  335. * @param {number} fieldNumber
  336. * @param {number} index
  337. * @return {!Int64}
  338. */
  339. getRepeatedInt64Element(fieldNumber, index) {
  340. return this.kernel_.getRepeatedInt64Element(fieldNumber, index);
  341. }
  342. /**
  343. * @param {number} fieldNumber
  344. * @return {!Iterable<!Int64>}
  345. */
  346. getRepeatedInt64Iterable(fieldNumber) {
  347. return this.kernel_.getRepeatedInt64Iterable(fieldNumber);
  348. }
  349. /**
  350. * @param {number} fieldNumber
  351. * @return {number}
  352. */
  353. getRepeatedInt64Size(fieldNumber) {
  354. return this.kernel_.getRepeatedInt64Size(fieldNumber);
  355. }
  356. /**
  357. * @param {number} fieldNumber
  358. * @param {number} index
  359. * @return {number}
  360. */
  361. getRepeatedSfixed32Element(fieldNumber, index) {
  362. return this.kernel_.getRepeatedSfixed32Element(fieldNumber, index);
  363. }
  364. /**
  365. * @param {number} fieldNumber
  366. * @return {!Iterable<number>}
  367. */
  368. getRepeatedSfixed32Iterable(fieldNumber) {
  369. return this.kernel_.getRepeatedSfixed32Iterable(fieldNumber);
  370. }
  371. /**
  372. * @param {number} fieldNumber
  373. * @return {number}
  374. */
  375. getRepeatedSfixed32Size(fieldNumber) {
  376. return this.kernel_.getRepeatedSfixed32Size(fieldNumber);
  377. }
  378. /**
  379. * @param {number} fieldNumber
  380. * @param {number} index
  381. * @return {!Int64}
  382. */
  383. getRepeatedSfixed64Element(fieldNumber, index) {
  384. return this.kernel_.getRepeatedSfixed64Element(fieldNumber, index);
  385. }
  386. /**
  387. * @param {number} fieldNumber
  388. * @return {!Iterable<!Int64>}
  389. */
  390. getRepeatedSfixed64Iterable(fieldNumber) {
  391. return this.kernel_.getRepeatedSfixed64Iterable(fieldNumber);
  392. }
  393. /**
  394. * @param {number} fieldNumber
  395. * @return {number}
  396. */
  397. getRepeatedSfixed64Size(fieldNumber) {
  398. return this.kernel_.getRepeatedSfixed64Size(fieldNumber);
  399. }
  400. /**
  401. * @param {number} fieldNumber
  402. * @param {number} index
  403. * @return {number}
  404. */
  405. getRepeatedSint32Element(fieldNumber, index) {
  406. return this.kernel_.getRepeatedSint32Element(fieldNumber, index);
  407. }
  408. /**
  409. * @param {number} fieldNumber
  410. * @return {!Iterable<number>}
  411. */
  412. getRepeatedSint32Iterable(fieldNumber) {
  413. return this.kernel_.getRepeatedSint32Iterable(fieldNumber);
  414. }
  415. /**
  416. * @param {number} fieldNumber
  417. * @return {number}
  418. */
  419. getRepeatedSint32Size(fieldNumber) {
  420. return this.kernel_.getRepeatedSint32Size(fieldNumber);
  421. }
  422. /**
  423. * @param {number} fieldNumber
  424. * @param {number} index
  425. * @return {!Int64}
  426. */
  427. getRepeatedSint64Element(fieldNumber, index) {
  428. return this.kernel_.getRepeatedSint64Element(fieldNumber, index);
  429. }
  430. /**
  431. * @param {number} fieldNumber
  432. * @return {!Iterable<!Int64>}
  433. */
  434. getRepeatedSint64Iterable(fieldNumber) {
  435. return this.kernel_.getRepeatedSint64Iterable(fieldNumber);
  436. }
  437. /**
  438. * @param {number} fieldNumber
  439. * @return {number}
  440. */
  441. getRepeatedSint64Size(fieldNumber) {
  442. return this.kernel_.getRepeatedSint64Size(fieldNumber);
  443. }
  444. /**
  445. * @param {number} fieldNumber
  446. * @param {number} index
  447. * @return {number}
  448. */
  449. getRepeatedUint32Element(fieldNumber, index) {
  450. return this.kernel_.getRepeatedUint32Element(fieldNumber, index);
  451. }
  452. /**
  453. * @param {number} fieldNumber
  454. * @return {!Iterable<number>}
  455. */
  456. getRepeatedUint32Iterable(fieldNumber) {
  457. return this.kernel_.getRepeatedUint32Iterable(fieldNumber);
  458. }
  459. /**
  460. * @param {number} fieldNumber
  461. * @return {number}
  462. */
  463. getRepeatedUint32Size(fieldNumber) {
  464. return this.kernel_.getRepeatedUint32Size(fieldNumber);
  465. }
  466. /**
  467. * @param {number} fieldNumber
  468. * @param {number} index
  469. * @return {!Int64}
  470. */
  471. getRepeatedUint64Element(fieldNumber, index) {
  472. return this.kernel_.getRepeatedUint64Element(fieldNumber, index);
  473. }
  474. /**
  475. * @param {number} fieldNumber
  476. * @return {!Iterable<!Int64>}
  477. */
  478. getRepeatedUint64Iterable(fieldNumber) {
  479. return this.kernel_.getRepeatedUint64Iterable(fieldNumber);
  480. }
  481. /**
  482. * @param {number} fieldNumber
  483. * @return {number}
  484. */
  485. getRepeatedUint64Size(fieldNumber) {
  486. return this.kernel_.getRepeatedUint64Size(fieldNumber);
  487. }
  488. /**
  489. * @param {number} fieldNumber
  490. * @param {number} index
  491. * @return {!ByteString}
  492. */
  493. getRepeatedBytesElement(fieldNumber, index) {
  494. return this.kernel_.getRepeatedBytesElement(fieldNumber, index);
  495. }
  496. /**
  497. * @param {number} fieldNumber
  498. * @return {!Iterable<!ByteString>}
  499. */
  500. getRepeatedBytesIterable(fieldNumber) {
  501. return this.kernel_.getRepeatedBytesIterable(fieldNumber);
  502. }
  503. /**
  504. * @param {number} fieldNumber
  505. * @return {number}
  506. */
  507. getRepeatedBytesSize(fieldNumber) {
  508. return this.kernel_.getRepeatedBytesSize(fieldNumber);
  509. }
  510. /**
  511. * @param {number} fieldNumber
  512. * @param {number} index
  513. * @return {string}
  514. */
  515. getRepeatedStringElement(fieldNumber, index) {
  516. return this.kernel_.getRepeatedStringElement(fieldNumber, index);
  517. }
  518. /**
  519. * @param {number} fieldNumber
  520. * @return {!Iterable<string>}
  521. */
  522. getRepeatedStringIterable(fieldNumber) {
  523. return this.kernel_.getRepeatedStringIterable(fieldNumber);
  524. }
  525. /**
  526. * @param {number} fieldNumber
  527. * @return {number}
  528. */
  529. getRepeatedStringSize(fieldNumber) {
  530. return this.kernel_.getRepeatedStringSize(fieldNumber);
  531. }
  532. /**
  533. * @param {number} fieldNumber
  534. * @param {function(!Kernel):T} instanceCreator
  535. * @param {number} index
  536. * @return {T}
  537. * @template T
  538. */
  539. getRepeatedMessageElement(fieldNumber, instanceCreator, index) {
  540. return this.kernel_.getRepeatedMessageElement(
  541. fieldNumber, instanceCreator, index);
  542. }
  543. /**
  544. * @param {number} fieldNumber
  545. * @param {function(!Kernel):T} instanceCreator
  546. * @return {!Iterable<T>}
  547. * @template T
  548. */
  549. getRepeatedMessageIterable(fieldNumber, instanceCreator) {
  550. return this.kernel_.getRepeatedMessageIterable(
  551. fieldNumber, instanceCreator);
  552. }
  553. /**
  554. * @param {number} fieldNumber
  555. * @return {!Iterable<!Kernel>}
  556. * @template T
  557. */
  558. getRepeatedMessageAccessorIterable(fieldNumber) {
  559. return this.kernel_.getRepeatedMessageAccessorIterable(fieldNumber);
  560. }
  561. /**
  562. * @param {number} fieldNumber
  563. * @param {function(!Kernel):T} instanceCreator
  564. * @return {number}
  565. * @template T
  566. */
  567. getRepeatedMessageSize(fieldNumber, instanceCreator) {
  568. return this.kernel_.getRepeatedMessageSize(fieldNumber, instanceCreator);
  569. }
  570. /**
  571. * @param {number} fieldNumber
  572. * @param {boolean} value
  573. */
  574. setBool(fieldNumber, value) {
  575. this.kernel_.setBool(fieldNumber, value);
  576. }
  577. /**
  578. * @param {number} fieldNumber
  579. * @param {!ByteString} value
  580. */
  581. setBytes(fieldNumber, value) {
  582. this.kernel_.setBytes(fieldNumber, value);
  583. }
  584. /**
  585. * @param {number} fieldNumber
  586. * @param {number} value
  587. */
  588. setDouble(fieldNumber, value) {
  589. this.kernel_.setDouble(fieldNumber, value);
  590. }
  591. /**
  592. * @param {number} fieldNumber
  593. * @param {number} value
  594. */
  595. setFixed32(fieldNumber, value) {
  596. this.kernel_.setFixed32(fieldNumber, value);
  597. }
  598. /**
  599. * @param {number} fieldNumber
  600. * @param {!Int64} value
  601. */
  602. setFixed64(fieldNumber, value) {
  603. this.kernel_.setFixed64(fieldNumber, value);
  604. }
  605. /**
  606. * @param {number} fieldNumber
  607. * @param {number} value
  608. */
  609. setFloat(fieldNumber, value) {
  610. this.kernel_.setFloat(fieldNumber, value);
  611. }
  612. /**
  613. * @param {number} fieldNumber
  614. * @param {number} value
  615. */
  616. setInt32(fieldNumber, value) {
  617. this.kernel_.setInt32(fieldNumber, value);
  618. }
  619. /**
  620. * @param {number} fieldNumber
  621. * @param {!Int64} value
  622. */
  623. setInt64(fieldNumber, value) {
  624. this.kernel_.setInt64(fieldNumber, value);
  625. }
  626. /**
  627. * @param {number} fieldNumber
  628. * @param {number} value
  629. */
  630. setSfixed32(fieldNumber, value) {
  631. this.kernel_.setSfixed32(fieldNumber, value);
  632. }
  633. /**
  634. * @param {number} fieldNumber
  635. * @param {!Int64} value
  636. */
  637. setSfixed64(fieldNumber, value) {
  638. this.kernel_.setSfixed64(fieldNumber, value);
  639. }
  640. /**
  641. * @param {number} fieldNumber
  642. * @param {number} value
  643. */
  644. setSint32(fieldNumber, value) {
  645. this.kernel_.setSint32(fieldNumber, value);
  646. }
  647. /**
  648. * @param {number} fieldNumber
  649. * @param {!Int64} value
  650. */
  651. setSint64(fieldNumber, value) {
  652. this.kernel_.setSint64(fieldNumber, value);
  653. }
  654. /**
  655. * @param {number} fieldNumber
  656. * @param {string} value
  657. */
  658. setString(fieldNumber, value) {
  659. this.kernel_.setString(fieldNumber, value);
  660. }
  661. /**
  662. * @param {number} fieldNumber
  663. * @param {number} value
  664. */
  665. setUint32(fieldNumber, value) {
  666. this.kernel_.setUint32(fieldNumber, value);
  667. }
  668. /**
  669. * @param {number} fieldNumber
  670. * @param {!Int64} value
  671. */
  672. setUint64(fieldNumber, value) {
  673. this.kernel_.setUint64(fieldNumber, value);
  674. }
  675. /**
  676. * @param {number} fieldNumber
  677. * @param {T} value
  678. * @template T
  679. */
  680. setMessage(fieldNumber, value) {
  681. this.kernel_.setMessage(fieldNumber, value);
  682. }
  683. /**
  684. * @param {number} fieldNumber
  685. * @param {boolean} value
  686. */
  687. addPackedBoolElement(fieldNumber, value) {
  688. this.kernel_.addPackedBoolElement(fieldNumber, value);
  689. }
  690. /**
  691. * @param {number} fieldNumber
  692. * @param {!Iterable<boolean>} values
  693. */
  694. addPackedBoolIterable(fieldNumber, values) {
  695. this.kernel_.addPackedBoolIterable(fieldNumber, values);
  696. }
  697. /**
  698. * @param {number} fieldNumber
  699. * @param {boolean} value
  700. */
  701. addUnpackedBoolElement(fieldNumber, value) {
  702. this.kernel_.addUnpackedBoolElement(fieldNumber, value);
  703. }
  704. /**
  705. * @param {number} fieldNumber
  706. * @param {!Iterable<boolean>} values
  707. */
  708. addUnpackedBoolIterable(fieldNumber, values) {
  709. this.kernel_.addUnpackedBoolIterable(fieldNumber, values);
  710. }
  711. /**
  712. * @param {number} fieldNumber
  713. * @param {number} index
  714. * @param {boolean} value
  715. * @throws {!Error} if index is out of range when check mode is critical
  716. */
  717. setPackedBoolElement(fieldNumber, index, value) {
  718. this.kernel_.setPackedBoolElement(fieldNumber, index, value);
  719. }
  720. /**
  721. * @param {number} fieldNumber
  722. * @param {!Iterable<boolean>} values
  723. */
  724. setPackedBoolIterable(fieldNumber, values) {
  725. this.kernel_.setPackedBoolIterable(fieldNumber, values);
  726. }
  727. /**
  728. * @param {number} fieldNumber
  729. * @param {number} index
  730. * @param {boolean} value
  731. * @throws {!Error} if index is out of range when check mode is critical
  732. */
  733. setUnpackedBoolElement(fieldNumber, index, value) {
  734. this.kernel_.setUnpackedBoolElement(fieldNumber, index, value);
  735. }
  736. /**
  737. * @param {number} fieldNumber
  738. * @param {!Iterable<boolean>} values
  739. */
  740. setUnpackedBoolIterable(fieldNumber, values) {
  741. this.kernel_.setUnpackedBoolIterable(fieldNumber, values);
  742. }
  743. /**
  744. * @param {number} fieldNumber
  745. * @param {number} value
  746. */
  747. addPackedDoubleElement(fieldNumber, value) {
  748. this.kernel_.addPackedDoubleElement(fieldNumber, value);
  749. }
  750. /**
  751. * @param {number} fieldNumber
  752. * @param {!Iterable<number>} values
  753. */
  754. addPackedDoubleIterable(fieldNumber, values) {
  755. this.kernel_.addPackedDoubleIterable(fieldNumber, values);
  756. }
  757. /**
  758. * @param {number} fieldNumber
  759. * @param {number} value
  760. */
  761. addUnpackedDoubleElement(fieldNumber, value) {
  762. this.kernel_.addUnpackedDoubleElement(fieldNumber, value);
  763. }
  764. /**
  765. * @param {number} fieldNumber
  766. * @param {!Iterable<number>} values
  767. */
  768. addUnpackedDoubleIterable(fieldNumber, values) {
  769. this.kernel_.addUnpackedDoubleIterable(fieldNumber, values);
  770. }
  771. /**
  772. * @param {number} fieldNumber
  773. * @param {number} index
  774. * @param {number} value
  775. * @throws {!Error} if index is out of range when check mode is critical
  776. */
  777. setPackedDoubleElement(fieldNumber, index, value) {
  778. this.kernel_.setPackedDoubleElement(fieldNumber, index, value);
  779. }
  780. /**
  781. * @param {number} fieldNumber
  782. * @param {!Iterable<number>} values
  783. */
  784. setPackedDoubleIterable(fieldNumber, values) {
  785. this.kernel_.setPackedDoubleIterable(fieldNumber, values);
  786. }
  787. /**
  788. * @param {number} fieldNumber
  789. * @param {number} index
  790. * @param {number} value
  791. * @throws {!Error} if index is out of range when check mode is critical
  792. */
  793. setUnpackedDoubleElement(fieldNumber, index, value) {
  794. this.kernel_.setUnpackedDoubleElement(fieldNumber, index, value);
  795. }
  796. /**
  797. * @param {number} fieldNumber
  798. * @param {!Iterable<number>} values
  799. */
  800. setUnpackedDoubleIterable(fieldNumber, values) {
  801. this.kernel_.setUnpackedDoubleIterable(fieldNumber, values);
  802. }
  803. /**
  804. * @param {number} fieldNumber
  805. * @param {number} value
  806. */
  807. addPackedFixed32Element(fieldNumber, value) {
  808. this.kernel_.addPackedFixed32Element(fieldNumber, value);
  809. }
  810. /**
  811. * @param {number} fieldNumber
  812. * @param {!Iterable<number>} values
  813. */
  814. addPackedFixed32Iterable(fieldNumber, values) {
  815. this.kernel_.addPackedFixed32Iterable(fieldNumber, values);
  816. }
  817. /**
  818. * @param {number} fieldNumber
  819. * @param {number} value
  820. */
  821. addUnpackedFixed32Element(fieldNumber, value) {
  822. this.kernel_.addUnpackedFixed32Element(fieldNumber, value);
  823. }
  824. /**
  825. * @param {number} fieldNumber
  826. * @param {!Iterable<number>} values
  827. */
  828. addUnpackedFixed32Iterable(fieldNumber, values) {
  829. this.kernel_.addUnpackedFixed32Iterable(fieldNumber, values);
  830. }
  831. /**
  832. * @param {number} fieldNumber
  833. * @param {number} index
  834. * @param {number} value
  835. * @throws {!Error} if index is out of range when check mode is critical
  836. */
  837. setPackedFixed32Element(fieldNumber, index, value) {
  838. this.kernel_.setPackedFixed32Element(fieldNumber, index, value);
  839. }
  840. /**
  841. * @param {number} fieldNumber
  842. * @param {!Iterable<number>} values
  843. */
  844. setPackedFixed32Iterable(fieldNumber, values) {
  845. this.kernel_.setPackedFixed32Iterable(fieldNumber, values);
  846. }
  847. /**
  848. * @param {number} fieldNumber
  849. * @param {number} index
  850. * @param {number} value
  851. * @throws {!Error} if index is out of range when check mode is critical
  852. */
  853. setUnpackedFixed32Element(fieldNumber, index, value) {
  854. this.kernel_.setUnpackedFixed32Element(fieldNumber, index, value);
  855. }
  856. /**
  857. * @param {number} fieldNumber
  858. * @param {!Iterable<number>} values
  859. */
  860. setUnpackedFixed32Iterable(fieldNumber, values) {
  861. this.kernel_.setUnpackedFixed32Iterable(fieldNumber, values);
  862. }
  863. /**
  864. * @param {number} fieldNumber
  865. * @param {!Int64} value
  866. */
  867. addPackedFixed64Element(fieldNumber, value) {
  868. this.kernel_.addPackedFixed64Element(fieldNumber, value);
  869. }
  870. /**
  871. * @param {number} fieldNumber
  872. * @param {!Iterable<!Int64>} values
  873. */
  874. addPackedFixed64Iterable(fieldNumber, values) {
  875. this.kernel_.addPackedFixed64Iterable(fieldNumber, values);
  876. }
  877. /**
  878. * @param {number} fieldNumber
  879. * @param {!Int64} value
  880. */
  881. addUnpackedFixed64Element(fieldNumber, value) {
  882. this.kernel_.addUnpackedFixed64Element(fieldNumber, value);
  883. }
  884. /**
  885. * @param {number} fieldNumber
  886. * @param {!Iterable<!Int64>} values
  887. */
  888. addUnpackedFixed64Iterable(fieldNumber, values) {
  889. this.kernel_.addUnpackedFixed64Iterable(fieldNumber, values);
  890. }
  891. /**
  892. * @param {number} fieldNumber
  893. * @param {number} index
  894. * @param {!Int64} value
  895. * @throws {!Error} if index is out of range when check mode is critical
  896. */
  897. setPackedFixed64Element(fieldNumber, index, value) {
  898. this.kernel_.setPackedFixed64Element(fieldNumber, index, value);
  899. }
  900. /**
  901. * @param {number} fieldNumber
  902. * @param {!Iterable<!Int64>} values
  903. */
  904. setPackedFixed64Iterable(fieldNumber, values) {
  905. this.kernel_.setPackedFixed64Iterable(fieldNumber, values);
  906. }
  907. /**
  908. * @param {number} fieldNumber
  909. * @param {number} index
  910. * @param {!Int64} value
  911. * @throws {!Error} if index is out of range when check mode is critical
  912. */
  913. setUnpackedFixed64Element(fieldNumber, index, value) {
  914. this.kernel_.setUnpackedFixed64Element(fieldNumber, index, value);
  915. }
  916. /**
  917. * @param {number} fieldNumber
  918. * @param {!Iterable<!Int64>} values
  919. */
  920. setUnpackedFixed64Iterable(fieldNumber, values) {
  921. this.kernel_.setUnpackedFixed64Iterable(fieldNumber, values);
  922. }
  923. /**
  924. * @param {number} fieldNumber
  925. * @param {number} value
  926. */
  927. addPackedFloatElement(fieldNumber, value) {
  928. this.kernel_.addPackedFloatElement(fieldNumber, value);
  929. }
  930. /**
  931. * @param {number} fieldNumber
  932. * @param {!Iterable<number>} values
  933. */
  934. addPackedFloatIterable(fieldNumber, values) {
  935. this.kernel_.addPackedFloatIterable(fieldNumber, values);
  936. }
  937. /**
  938. * @param {number} fieldNumber
  939. * @param {number} value
  940. */
  941. addUnpackedFloatElement(fieldNumber, value) {
  942. this.kernel_.addUnpackedFloatElement(fieldNumber, value);
  943. }
  944. /**
  945. * @param {number} fieldNumber
  946. * @param {!Iterable<number>} values
  947. */
  948. addUnpackedFloatIterable(fieldNumber, values) {
  949. this.kernel_.addUnpackedFloatIterable(fieldNumber, values);
  950. }
  951. /**
  952. * @param {number} fieldNumber
  953. * @param {number} index
  954. * @param {number} value
  955. * @throws {!Error} if index is out of range when check mode is critical
  956. */
  957. setPackedFloatElement(fieldNumber, index, value) {
  958. this.kernel_.setPackedFloatElement(fieldNumber, index, value);
  959. }
  960. /**
  961. * @param {number} fieldNumber
  962. * @param {!Iterable<number>} values
  963. */
  964. setPackedFloatIterable(fieldNumber, values) {
  965. this.kernel_.setPackedFloatIterable(fieldNumber, values);
  966. }
  967. /**
  968. * @param {number} fieldNumber
  969. * @param {number} index
  970. * @param {number} value
  971. * @throws {!Error} if index is out of range when check mode is critical
  972. */
  973. setUnpackedFloatElement(fieldNumber, index, value) {
  974. this.kernel_.setUnpackedFloatElement(fieldNumber, index, value);
  975. }
  976. /**
  977. * @param {number} fieldNumber
  978. * @param {!Iterable<number>} values
  979. */
  980. setUnpackedFloatIterable(fieldNumber, values) {
  981. this.kernel_.setUnpackedFloatIterable(fieldNumber, values);
  982. }
  983. /**
  984. * @param {number} fieldNumber
  985. * @param {number} value
  986. */
  987. addPackedInt32Element(fieldNumber, value) {
  988. this.kernel_.addPackedInt32Element(fieldNumber, value);
  989. }
  990. /**
  991. * @param {number} fieldNumber
  992. * @param {!Iterable<number>} values
  993. */
  994. addPackedInt32Iterable(fieldNumber, values) {
  995. this.kernel_.addPackedInt32Iterable(fieldNumber, values);
  996. }
  997. /**
  998. * @param {number} fieldNumber
  999. * @param {number} value
  1000. */
  1001. addUnpackedInt32Element(fieldNumber, value) {
  1002. this.kernel_.addUnpackedInt32Element(fieldNumber, value);
  1003. }
  1004. /**
  1005. * @param {number} fieldNumber
  1006. * @param {!Iterable<number>} values
  1007. */
  1008. addUnpackedInt32Iterable(fieldNumber, values) {
  1009. this.kernel_.addUnpackedInt32Iterable(fieldNumber, values);
  1010. }
  1011. /**
  1012. * @param {number} fieldNumber
  1013. * @param {number} index
  1014. * @param {number} value
  1015. * @throws {!Error} if index is out of range when check mode is critical
  1016. */
  1017. setPackedInt32Element(fieldNumber, index, value) {
  1018. this.kernel_.setPackedInt32Element(fieldNumber, index, value);
  1019. }
  1020. /**
  1021. * @param {number} fieldNumber
  1022. * @param {!Iterable<number>} values
  1023. */
  1024. setPackedInt32Iterable(fieldNumber, values) {
  1025. this.kernel_.setPackedInt32Iterable(fieldNumber, values);
  1026. }
  1027. /**
  1028. * @param {number} fieldNumber
  1029. * @param {number} index
  1030. * @param {number} value
  1031. * @throws {!Error} if index is out of range when check mode is critical
  1032. */
  1033. setUnpackedInt32Element(fieldNumber, index, value) {
  1034. this.kernel_.setUnpackedInt32Element(fieldNumber, index, value);
  1035. }
  1036. /**
  1037. * @param {number} fieldNumber
  1038. * @param {!Iterable<number>} values
  1039. */
  1040. setUnpackedInt32Iterable(fieldNumber, values) {
  1041. this.kernel_.setUnpackedInt32Iterable(fieldNumber, values);
  1042. }
  1043. /**
  1044. * @param {number} fieldNumber
  1045. * @param {!Int64} value
  1046. */
  1047. addPackedInt64Element(fieldNumber, value) {
  1048. this.kernel_.addPackedInt64Element(fieldNumber, value);
  1049. }
  1050. /**
  1051. * @param {number} fieldNumber
  1052. * @param {!Iterable<!Int64>} values
  1053. */
  1054. addPackedInt64Iterable(fieldNumber, values) {
  1055. this.kernel_.addPackedInt64Iterable(fieldNumber, values);
  1056. }
  1057. /**
  1058. * @param {number} fieldNumber
  1059. * @param {!Int64} value
  1060. */
  1061. addUnpackedInt64Element(fieldNumber, value) {
  1062. this.kernel_.addUnpackedInt64Element(fieldNumber, value);
  1063. }
  1064. /**
  1065. * @param {number} fieldNumber
  1066. * @param {!Iterable<!Int64>} values
  1067. */
  1068. addUnpackedInt64Iterable(fieldNumber, values) {
  1069. this.kernel_.addUnpackedInt64Iterable(fieldNumber, values);
  1070. }
  1071. /**
  1072. * @param {number} fieldNumber
  1073. * @param {number} index
  1074. * @param {!Int64} value
  1075. * @throws {!Error} if index is out of range when check mode is critical
  1076. */
  1077. setPackedInt64Element(fieldNumber, index, value) {
  1078. this.kernel_.setPackedInt64Element(fieldNumber, index, value);
  1079. }
  1080. /**
  1081. * @param {number} fieldNumber
  1082. * @param {!Iterable<!Int64>} values
  1083. */
  1084. setPackedInt64Iterable(fieldNumber, values) {
  1085. this.kernel_.setPackedInt64Iterable(fieldNumber, values);
  1086. }
  1087. /**
  1088. * @param {number} fieldNumber
  1089. * @param {number} index
  1090. * @param {!Int64} value
  1091. * @throws {!Error} if index is out of range when check mode is critical
  1092. */
  1093. setUnpackedInt64Element(fieldNumber, index, value) {
  1094. this.kernel_.setUnpackedInt64Element(fieldNumber, index, value);
  1095. }
  1096. /**
  1097. * @param {number} fieldNumber
  1098. * @param {!Iterable<!Int64>} values
  1099. */
  1100. setUnpackedInt64Iterable(fieldNumber, values) {
  1101. this.kernel_.setUnpackedInt64Iterable(fieldNumber, values);
  1102. }
  1103. /**
  1104. * @param {number} fieldNumber
  1105. * @param {number} value
  1106. */
  1107. addPackedSfixed32Element(fieldNumber, value) {
  1108. this.kernel_.addPackedSfixed32Element(fieldNumber, value);
  1109. }
  1110. /**
  1111. * @param {number} fieldNumber
  1112. * @param {!Iterable<number>} values
  1113. */
  1114. addPackedSfixed32Iterable(fieldNumber, values) {
  1115. this.kernel_.addPackedSfixed32Iterable(fieldNumber, values);
  1116. }
  1117. /**
  1118. * @param {number} fieldNumber
  1119. * @param {number} value
  1120. */
  1121. addUnpackedSfixed32Element(fieldNumber, value) {
  1122. this.kernel_.addUnpackedSfixed32Element(fieldNumber, value);
  1123. }
  1124. /**
  1125. * @param {number} fieldNumber
  1126. * @param {!Iterable<number>} values
  1127. */
  1128. addUnpackedSfixed32Iterable(fieldNumber, values) {
  1129. this.kernel_.addUnpackedSfixed32Iterable(fieldNumber, values);
  1130. }
  1131. /**
  1132. * @param {number} fieldNumber
  1133. * @param {number} index
  1134. * @param {number} value
  1135. * @throws {!Error} if index is out of range when check mode is critical
  1136. */
  1137. setPackedSfixed32Element(fieldNumber, index, value) {
  1138. this.kernel_.setPackedSfixed32Element(fieldNumber, index, value);
  1139. }
  1140. /**
  1141. * @param {number} fieldNumber
  1142. * @param {!Iterable<number>} values
  1143. */
  1144. setPackedSfixed32Iterable(fieldNumber, values) {
  1145. this.kernel_.setPackedSfixed32Iterable(fieldNumber, values);
  1146. }
  1147. /**
  1148. * @param {number} fieldNumber
  1149. * @param {number} index
  1150. * @param {number} value
  1151. * @throws {!Error} if index is out of range when check mode is critical
  1152. */
  1153. setUnpackedSfixed32Element(fieldNumber, index, value) {
  1154. this.kernel_.setUnpackedSfixed32Element(fieldNumber, index, value);
  1155. }
  1156. /**
  1157. * @param {number} fieldNumber
  1158. * @param {!Iterable<number>} values
  1159. */
  1160. setUnpackedSfixed32Iterable(fieldNumber, values) {
  1161. this.kernel_.setUnpackedSfixed32Iterable(fieldNumber, values);
  1162. }
  1163. /**
  1164. * @param {number} fieldNumber
  1165. * @param {!Int64} value
  1166. */
  1167. addPackedSfixed64Element(fieldNumber, value) {
  1168. this.kernel_.addPackedSfixed64Element(fieldNumber, value);
  1169. }
  1170. /**
  1171. * @param {number} fieldNumber
  1172. * @param {!Iterable<!Int64>} values
  1173. */
  1174. addPackedSfixed64Iterable(fieldNumber, values) {
  1175. this.kernel_.addPackedSfixed64Iterable(fieldNumber, values);
  1176. }
  1177. /**
  1178. * @param {number} fieldNumber
  1179. * @param {!Int64} value
  1180. */
  1181. addUnpackedSfixed64Element(fieldNumber, value) {
  1182. this.kernel_.addUnpackedSfixed64Element(fieldNumber, value);
  1183. }
  1184. /**
  1185. * @param {number} fieldNumber
  1186. * @param {!Iterable<!Int64>} values
  1187. */
  1188. addUnpackedSfixed64Iterable(fieldNumber, values) {
  1189. this.kernel_.addUnpackedSfixed64Iterable(fieldNumber, values);
  1190. }
  1191. /**
  1192. * @param {number} fieldNumber
  1193. * @param {number} index
  1194. * @param {!Int64} value
  1195. * @throws {!Error} if index is out of range when check mode is critical
  1196. */
  1197. setPackedSfixed64Element(fieldNumber, index, value) {
  1198. this.kernel_.setPackedSfixed64Element(fieldNumber, index, value);
  1199. }
  1200. /**
  1201. * @param {number} fieldNumber
  1202. * @param {!Iterable<!Int64>} values
  1203. */
  1204. setPackedSfixed64Iterable(fieldNumber, values) {
  1205. this.kernel_.setPackedSfixed64Iterable(fieldNumber, values);
  1206. }
  1207. /**
  1208. * @param {number} fieldNumber
  1209. * @param {number} index
  1210. * @param {!Int64} value
  1211. * @throws {!Error} if index is out of range when check mode is critical
  1212. */
  1213. setUnpackedSfixed64Element(fieldNumber, index, value) {
  1214. this.kernel_.setUnpackedSfixed64Element(fieldNumber, index, value);
  1215. }
  1216. /**
  1217. * @param {number} fieldNumber
  1218. * @param {!Iterable<!Int64>} values
  1219. */
  1220. setUnpackedSfixed64Iterable(fieldNumber, values) {
  1221. this.kernel_.setUnpackedSfixed64Iterable(fieldNumber, values);
  1222. }
  1223. /**
  1224. * @param {number} fieldNumber
  1225. * @param {number} value
  1226. */
  1227. addPackedSint32Element(fieldNumber, value) {
  1228. this.kernel_.addPackedSint32Element(fieldNumber, value);
  1229. }
  1230. /**
  1231. * @param {number} fieldNumber
  1232. * @param {!Iterable<number>} values
  1233. */
  1234. addPackedSint32Iterable(fieldNumber, values) {
  1235. this.kernel_.addPackedSint32Iterable(fieldNumber, values);
  1236. }
  1237. /**
  1238. * @param {number} fieldNumber
  1239. * @param {number} value
  1240. */
  1241. addUnpackedSint32Element(fieldNumber, value) {
  1242. this.kernel_.addUnpackedSint32Element(fieldNumber, value);
  1243. }
  1244. /**
  1245. * @param {number} fieldNumber
  1246. * @param {!Iterable<number>} values
  1247. */
  1248. addUnpackedSint32Iterable(fieldNumber, values) {
  1249. this.kernel_.addUnpackedSint32Iterable(fieldNumber, values);
  1250. }
  1251. /**
  1252. * @param {number} fieldNumber
  1253. * @param {number} index
  1254. * @param {number} value
  1255. * @throws {!Error} if index is out of range when check mode is critical
  1256. */
  1257. setPackedSint32Element(fieldNumber, index, value) {
  1258. this.kernel_.setPackedSint32Element(fieldNumber, index, value);
  1259. }
  1260. /**
  1261. * @param {number} fieldNumber
  1262. * @param {!Iterable<number>} values
  1263. */
  1264. setPackedSint32Iterable(fieldNumber, values) {
  1265. this.kernel_.setPackedSint32Iterable(fieldNumber, values);
  1266. }
  1267. /**
  1268. * @param {number} fieldNumber
  1269. * @param {number} index
  1270. * @param {number} value
  1271. * @throws {!Error} if index is out of range when check mode is critical
  1272. */
  1273. setUnpackedSint32Element(fieldNumber, index, value) {
  1274. this.kernel_.setUnpackedSint32Element(fieldNumber, index, value);
  1275. }
  1276. /**
  1277. * @param {number} fieldNumber
  1278. * @param {!Iterable<number>} values
  1279. */
  1280. setUnpackedSint32Iterable(fieldNumber, values) {
  1281. this.kernel_.setUnpackedSint32Iterable(fieldNumber, values);
  1282. }
  1283. /**
  1284. * @param {number} fieldNumber
  1285. * @param {!Int64} value
  1286. */
  1287. addPackedSint64Element(fieldNumber, value) {
  1288. this.kernel_.addPackedSint64Element(fieldNumber, value);
  1289. }
  1290. /**
  1291. * @param {number} fieldNumber
  1292. * @param {!Iterable<!Int64>} values
  1293. */
  1294. addPackedSint64Iterable(fieldNumber, values) {
  1295. this.kernel_.addPackedSint64Iterable(fieldNumber, values);
  1296. }
  1297. /**
  1298. * @param {number} fieldNumber
  1299. * @param {!Int64} value
  1300. */
  1301. addUnpackedSint64Element(fieldNumber, value) {
  1302. this.kernel_.addUnpackedSint64Element(fieldNumber, value);
  1303. }
  1304. /**
  1305. * @param {number} fieldNumber
  1306. * @param {!Iterable<!Int64>} values
  1307. */
  1308. addUnpackedSint64Iterable(fieldNumber, values) {
  1309. this.kernel_.addUnpackedSint64Iterable(fieldNumber, values);
  1310. }
  1311. /**
  1312. * @param {number} fieldNumber
  1313. * @param {number} index
  1314. * @param {!Int64} value
  1315. * @throws {!Error} if index is out of range when check mode is critical
  1316. */
  1317. setPackedSint64Element(fieldNumber, index, value) {
  1318. this.kernel_.setPackedSint64Element(fieldNumber, index, value);
  1319. }
  1320. /**
  1321. * @param {number} fieldNumber
  1322. * @param {!Iterable<!Int64>} values
  1323. */
  1324. setPackedSint64Iterable(fieldNumber, values) {
  1325. this.kernel_.setPackedSint64Iterable(fieldNumber, values);
  1326. }
  1327. /**
  1328. * @param {number} fieldNumber
  1329. * @param {number} index
  1330. * @param {!Int64} value
  1331. * @throws {!Error} if index is out of range when check mode is critical
  1332. */
  1333. setUnpackedSint64Element(fieldNumber, index, value) {
  1334. this.kernel_.setUnpackedSint64Element(fieldNumber, index, value);
  1335. }
  1336. /**
  1337. * @param {number} fieldNumber
  1338. * @param {!Iterable<!Int64>} values
  1339. */
  1340. setUnpackedSint64Iterable(fieldNumber, values) {
  1341. this.kernel_.setUnpackedSint64Iterable(fieldNumber, values);
  1342. }
  1343. /**
  1344. * @param {number} fieldNumber
  1345. * @param {number} value
  1346. */
  1347. addPackedUint32Element(fieldNumber, value) {
  1348. this.kernel_.addPackedUint32Element(fieldNumber, value);
  1349. }
  1350. /**
  1351. * @param {number} fieldNumber
  1352. * @param {!Iterable<number>} values
  1353. */
  1354. addPackedUint32Iterable(fieldNumber, values) {
  1355. this.kernel_.addPackedUint32Iterable(fieldNumber, values);
  1356. }
  1357. /**
  1358. * @param {number} fieldNumber
  1359. * @param {number} value
  1360. */
  1361. addUnpackedUint32Element(fieldNumber, value) {
  1362. this.kernel_.addUnpackedUint32Element(fieldNumber, value);
  1363. }
  1364. /**
  1365. * @param {number} fieldNumber
  1366. * @param {!Iterable<number>} values
  1367. */
  1368. addUnpackedUint32Iterable(fieldNumber, values) {
  1369. this.kernel_.addUnpackedUint32Iterable(fieldNumber, values);
  1370. }
  1371. /**
  1372. * @param {number} fieldNumber
  1373. * @param {number} index
  1374. * @param {number} value
  1375. * @throws {!Error} if index is out of range when check mode is critical
  1376. */
  1377. setPackedUint32Element(fieldNumber, index, value) {
  1378. this.kernel_.setPackedUint32Element(fieldNumber, index, value);
  1379. }
  1380. /**
  1381. * @param {number} fieldNumber
  1382. * @param {!Iterable<number>} values
  1383. */
  1384. setPackedUint32Iterable(fieldNumber, values) {
  1385. this.kernel_.setPackedUint32Iterable(fieldNumber, values);
  1386. }
  1387. /**
  1388. * @param {number} fieldNumber
  1389. * @param {number} index
  1390. * @param {number} value
  1391. * @throws {!Error} if index is out of range when check mode is critical
  1392. */
  1393. setUnpackedUint32Element(fieldNumber, index, value) {
  1394. this.kernel_.setUnpackedUint32Element(fieldNumber, index, value);
  1395. }
  1396. /**
  1397. * @param {number} fieldNumber
  1398. * @param {!Iterable<number>} values
  1399. */
  1400. setUnpackedUint32Iterable(fieldNumber, values) {
  1401. this.kernel_.setUnpackedUint32Iterable(fieldNumber, values);
  1402. }
  1403. /**
  1404. * @param {number} fieldNumber
  1405. * @param {!Int64} value
  1406. */
  1407. addPackedUint64Element(fieldNumber, value) {
  1408. this.kernel_.addPackedUint64Element(fieldNumber, value);
  1409. }
  1410. /**
  1411. * @param {number} fieldNumber
  1412. * @param {!Iterable<!Int64>} values
  1413. */
  1414. addPackedUint64Iterable(fieldNumber, values) {
  1415. this.kernel_.addPackedUint64Iterable(fieldNumber, values);
  1416. }
  1417. /**
  1418. * @param {number} fieldNumber
  1419. * @param {!Int64} value
  1420. */
  1421. addUnpackedUint64Element(fieldNumber, value) {
  1422. this.kernel_.addUnpackedUint64Element(fieldNumber, value);
  1423. }
  1424. /**
  1425. * @param {number} fieldNumber
  1426. * @param {!Iterable<!Int64>} values
  1427. */
  1428. addUnpackedUint64Iterable(fieldNumber, values) {
  1429. this.kernel_.addUnpackedUint64Iterable(fieldNumber, values);
  1430. }
  1431. /**
  1432. * @param {number} fieldNumber
  1433. * @param {number} index
  1434. * @param {!Int64} value
  1435. * @throws {!Error} if index is out of range when check mode is critical
  1436. */
  1437. setPackedUint64Element(fieldNumber, index, value) {
  1438. this.kernel_.setPackedUint64Element(fieldNumber, index, value);
  1439. }
  1440. /**
  1441. * @param {number} fieldNumber
  1442. * @param {!Iterable<!Int64>} values
  1443. */
  1444. setPackedUint64Iterable(fieldNumber, values) {
  1445. this.kernel_.setPackedUint64Iterable(fieldNumber, values);
  1446. }
  1447. /**
  1448. * @param {number} fieldNumber
  1449. * @param {number} index
  1450. * @param {!Int64} value
  1451. * @throws {!Error} if index is out of range when check mode is critical
  1452. */
  1453. setUnpackedUint64Element(fieldNumber, index, value) {
  1454. this.kernel_.setUnpackedUint64Element(fieldNumber, index, value);
  1455. }
  1456. /**
  1457. * @param {number} fieldNumber
  1458. * @param {!Iterable<!Int64>} values
  1459. */
  1460. setUnpackedUint64Iterable(fieldNumber, values) {
  1461. this.kernel_.setUnpackedUint64Iterable(fieldNumber, values);
  1462. }
  1463. /**
  1464. * @param {number} fieldNumber
  1465. * @param {!Iterable<!ByteString>} values
  1466. */
  1467. setRepeatedBytesIterable(fieldNumber, values) {
  1468. this.kernel_.setRepeatedBytesIterable(fieldNumber, values);
  1469. }
  1470. /**
  1471. * @param {number} fieldNumber
  1472. * @param {!Iterable<!ByteString>} values
  1473. */
  1474. addRepeatedBytesIterable(fieldNumber, values) {
  1475. this.kernel_.addRepeatedBytesIterable(fieldNumber, values);
  1476. }
  1477. /**
  1478. * @param {number} fieldNumber
  1479. * @param {number} index
  1480. * @param {!ByteString} value
  1481. * @throws {!Error} if index is out of range when check mode is critical
  1482. */
  1483. setRepeatedBytesElement(fieldNumber, index, value) {
  1484. this.kernel_.setRepeatedBytesElement(fieldNumber, index, value);
  1485. }
  1486. /**
  1487. * @param {number} fieldNumber
  1488. * @param {!ByteString} value
  1489. */
  1490. addRepeatedBytesElement(fieldNumber, value) {
  1491. this.kernel_.addRepeatedBytesElement(fieldNumber, value);
  1492. }
  1493. /**
  1494. * @param {number} fieldNumber
  1495. * @param {!Iterable<string>} values
  1496. */
  1497. setRepeatedStringIterable(fieldNumber, values) {
  1498. this.kernel_.setRepeatedStringIterable(fieldNumber, values);
  1499. }
  1500. /**
  1501. * @param {number} fieldNumber
  1502. * @param {!Iterable<string>} values
  1503. */
  1504. addRepeatedStringIterable(fieldNumber, values) {
  1505. this.kernel_.addRepeatedStringIterable(fieldNumber, values);
  1506. }
  1507. /**
  1508. * @param {number} fieldNumber
  1509. * @param {number} index
  1510. * @param {string} value
  1511. * @throws {!Error} if index is out of range when check mode is critical
  1512. */
  1513. setRepeatedStringElement(fieldNumber, index, value) {
  1514. this.kernel_.setRepeatedStringElement(fieldNumber, index, value);
  1515. }
  1516. /**
  1517. * @param {number} fieldNumber
  1518. * @param {string} value
  1519. */
  1520. addRepeatedStringElement(fieldNumber, value) {
  1521. this.kernel_.addRepeatedStringElement(fieldNumber, value);
  1522. }
  1523. /**
  1524. * @param {number} fieldNumber
  1525. * @param {!Iterable<T>} values
  1526. * @template T
  1527. */
  1528. setRepeatedMessageIterable(fieldNumber, values) {
  1529. this.kernel_.setRepeatedMessageIterable(fieldNumber, values);
  1530. }
  1531. /**
  1532. * @param {number} fieldNumber
  1533. * @param {!Iterable<T>} values
  1534. * @param {function(!Kernel):T} instanceCreator
  1535. * @template T
  1536. */
  1537. addRepeatedMessageIterable(fieldNumber, values, instanceCreator) {
  1538. this.kernel_.addRepeatedMessageIterable(
  1539. fieldNumber, values, instanceCreator);
  1540. }
  1541. /**
  1542. * @param {number} fieldNumber
  1543. * @param {T} value
  1544. * @param {function(!Kernel):T} instanceCreator
  1545. * @param {number} index
  1546. * @throws {!Error} if index is out of range when check mode is critical
  1547. * @template T
  1548. */
  1549. setRepeatedMessageElement(fieldNumber, value, instanceCreator, index) {
  1550. this.kernel_.setRepeatedMessageElement(
  1551. fieldNumber, value, instanceCreator, index);
  1552. }
  1553. /**
  1554. * @param {number} fieldNumber
  1555. * @param {T} value
  1556. * @param {function(!Kernel):T} instanceCreator
  1557. * @template T
  1558. */
  1559. addRepeatedMessageElement(fieldNumber, value, instanceCreator) {
  1560. this.kernel_.addRepeatedMessageElement(fieldNumber, value, instanceCreator);
  1561. }
  1562. }
  1563. exports = TestMessage;