PhpImplementationTest.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598
  1. <?php
  2. require_once('test_base.php');
  3. require_once('test_util.php');
  4. use Foo\TestEnum;
  5. use Foo\TestMessage;
  6. use Foo\TestMessage\Sub;
  7. use Foo\TestPackedMessage;
  8. use Google\Protobuf\Internal\CodedInputStream;
  9. use Google\Protobuf\Internal\FileDescriptorSet;
  10. use Google\Protobuf\Internal\GPBLabel;
  11. use Google\Protobuf\Internal\GPBType;
  12. use Google\Protobuf\Internal\GPBWire;
  13. use Google\Protobuf\Internal\CodedOutputStream;
  14. /**
  15. * Please note, this test is only intended to be run without the protobuf C
  16. * extension.
  17. */
  18. class ImplementationTest extends TestBase
  19. {
  20. public function setUp()
  21. {
  22. if (extension_loaded('protobuf')) {
  23. $this->markTestSkipped();
  24. }
  25. }
  26. public function testReadInt32()
  27. {
  28. $value = null;
  29. // Positive number.
  30. $input = new CodedInputStream(hex2bin("01"));
  31. GPBWire::readInt32($input, $value);
  32. $this->assertSame(1, $value);
  33. // Negative number.
  34. $input = new CodedInputStream(hex2bin("ffffffff0f"));
  35. GPBWire::readInt32($input, $value);
  36. $this->assertSame(-1, $value);
  37. // Discard overflow bits.
  38. $input = new CodedInputStream(hex2bin("ffffffff7f"));
  39. GPBWire::readInt32($input, $value);
  40. $this->assertSame(-1, $value);
  41. }
  42. public function testReadUint32()
  43. {
  44. $value = null;
  45. // Positive number.
  46. $input = new CodedInputStream(hex2bin("01"));
  47. GPBWire::readUint32($input, $value);
  48. $this->assertSame(1, $value);
  49. // Max uint32.
  50. $input = new CodedInputStream(hex2bin("ffffffff0f"));
  51. GPBWire::readUint32($input, $value);
  52. $this->assertSame(-1, $value);
  53. // Discard overflow bits.
  54. $input = new CodedInputStream(hex2bin("ffffffff7f"));
  55. GPBWire::readUint32($input, $value);
  56. $this->assertSame(-1, $value);
  57. }
  58. public function testReadInt64()
  59. {
  60. $value = null;
  61. // Positive number.
  62. $input = new CodedInputStream(hex2bin("01"));
  63. GPBWire::readInt64($input, $value);
  64. $this->assertEquals(1, $value);
  65. // Negative number.
  66. $input = new CodedInputStream(hex2bin("ffffffffffffffffff01"));
  67. GPBWire::readInt64($input, $value);
  68. $this->assertEquals(-1, $value);
  69. // Discard overflow bits.
  70. $input = new CodedInputStream(hex2bin("ffffffffffffffffff0f"));
  71. GPBWire::readInt64($input, $value);
  72. $this->assertEquals(-1, $value);
  73. }
  74. public function testReadUint64()
  75. {
  76. $value = null;
  77. // Positive number.
  78. $input = new CodedInputStream(hex2bin("01"));
  79. GPBWire::readUint64($input, $value);
  80. $this->assertEquals(1, $value);
  81. // Negative number.
  82. $input = new CodedInputStream(hex2bin("FFFFFFFFFFFFFFFFFF01"));
  83. GPBWire::readUint64($input, $value);
  84. $this->assertEquals(-1, $value);
  85. // Discard overflow bits.
  86. $input = new CodedInputStream(hex2bin("FFFFFFFFFFFFFFFFFF0F"));
  87. GPBWire::readUint64($input, $value);
  88. $this->assertEquals(-1, $value);
  89. }
  90. public function testReadSint32()
  91. {
  92. $value = null;
  93. $input = new CodedInputStream(hex2bin("00"));
  94. GPBWire::readSint32($input, $value);
  95. $this->assertSame(0, $value);
  96. $input = new CodedInputStream(hex2bin("01"));
  97. GPBWire::readSint32($input, $value);
  98. $this->assertSame(-1, $value);
  99. $input = new CodedInputStream(hex2bin("02"));
  100. GPBWire::readSint32($input, $value);
  101. $this->assertSame(1, $value);
  102. }
  103. public function testReadSint64()
  104. {
  105. $value = null;
  106. $input = new CodedInputStream(hex2bin("00"));
  107. GPBWire::readSint64($input, $value);
  108. $this->assertEquals(0, $value);
  109. $input = new CodedInputStream(hex2bin("01"));
  110. GPBWire::readSint64($input, $value);
  111. $this->assertEquals(-1, $value);
  112. $input = new CodedInputStream(hex2bin("02"));
  113. GPBWire::readSint64($input, $value);
  114. $this->assertEquals(1, $value);
  115. }
  116. public function testReadFixed32()
  117. {
  118. $value = null;
  119. $input = new CodedInputStream(hex2bin("12345678"));
  120. GPBWire::readFixed32($input, $value);
  121. $this->assertSame(0x78563412, $value);
  122. }
  123. public function testReadFixed64()
  124. {
  125. $value = null;
  126. $input = new CodedInputStream(hex2bin("1234567812345678"));
  127. GPBWire::readFixed64($input, $value);
  128. if (PHP_INT_SIZE == 4) {
  129. $this->assertSame("8671175386481439762", $value);
  130. } else {
  131. $this->assertSame(0x7856341278563412, $value);
  132. }
  133. }
  134. public function testReadSfixed32()
  135. {
  136. $value = null;
  137. $input = new CodedInputStream(hex2bin("12345678"));
  138. GPBWire::readSfixed32($input, $value);
  139. $this->assertSame(0x78563412, $value);
  140. }
  141. public function testReadFloat()
  142. {
  143. $value = null;
  144. $input = new CodedInputStream(hex2bin("0000803F"));
  145. GPBWire::readFloat($input, $value);
  146. $this->assertSame(1.0, $value);
  147. }
  148. public function testReadBool()
  149. {
  150. $value = null;
  151. $input = new CodedInputStream(hex2bin("00"));
  152. GPBWire::readBool($input, $value);
  153. $this->assertSame(false, $value);
  154. $input = new CodedInputStream(hex2bin("01"));
  155. GPBWire::readBool($input, $value);
  156. $this->assertSame(true, $value);
  157. }
  158. public function testReadDouble()
  159. {
  160. $value = null;
  161. $input = new CodedInputStream(hex2bin("000000000000F03F"));
  162. GPBWire::readDouble($input, $value);
  163. $this->assertSame(1.0, $value);
  164. }
  165. public function testReadSfixed64()
  166. {
  167. $value = null;
  168. $input = new CodedInputStream(hex2bin("1234567812345678"));
  169. GPBWire::readSfixed64($input, $value);
  170. if (PHP_INT_SIZE == 4) {
  171. $this->assertSame("8671175386481439762", $value);
  172. } else {
  173. $this->assertSame(0x7856341278563412, $value);
  174. }
  175. }
  176. public function testZigZagEncodeDecode()
  177. {
  178. $this->assertSame(0, GPBWire::zigZagEncode32(0));
  179. $this->assertSame(1, GPBWire::zigZagEncode32(-1));
  180. $this->assertSame(2, GPBWire::zigZagEncode32(1));
  181. $this->assertSame(3, GPBWire::zigZagEncode32(-2));
  182. $this->assertSame(0x7FFFFFFE, GPBWire::zigZagEncode32(0x3FFFFFFF));
  183. $this->assertSame(0x7FFFFFFF, GPBWire::zigZagEncode32(0xC0000000));
  184. $this->assertSame(0x7FFFFFFF, GPBWire::zigZagEncode32(-1073741824));
  185. $this->assertSame(0, GPBWire::zigZagDecode32(0));
  186. $this->assertSame(-1, GPBWire::zigZagDecode32(1));
  187. $this->assertSame(1, GPBWire::zigZagDecode32(2));
  188. $this->assertSame(-2, GPBWire::zigZagDecode32(3));
  189. $this->assertSame(0x3FFFFFFF, GPBWire::zigZagDecode32(0x7FFFFFFE));
  190. $this->assertSame(-1073741824, GPBWire::zigZagDecode32(0x7FFFFFFF));
  191. $this->assertSame(0x7FFFFFFF, GPBWire::zigZagDecode32(0xFFFFFFFE));
  192. $this->assertSame((int)-2147483648,GPBWire::zigZagDecode32(0xFFFFFFFF));
  193. if (PHP_INT_SIZE == 4) {
  194. $this->assertSame(-2, GPBWire::zigZagEncode32(0x7FFFFFFF));
  195. $this->assertSame(-1, GPBWire::zigZagEncode32(0x80000000));
  196. $this->assertSame('0', GPBWire::zigZagEncode64(0));
  197. $this->assertSame('1', GPBWire::zigZagEncode64(-1));
  198. $this->assertSame('2', GPBWire::zigZagEncode64(1));
  199. $this->assertSame('3', GPBWire::zigZagEncode64(-2));
  200. $this->assertSame(
  201. '2147483646', // 0x7FFFFFE
  202. GPBWire::zigZagEncode64(0x3FFFFFFF));
  203. $this->assertSame(
  204. '2147483647', // 0x7FFFFFF
  205. GPBWire::zigZagEncode64(-1073741824)); // 0xFFFFFFFFC0000000
  206. $this->assertSame(
  207. '4294967294', // 0xFFFFFFFE
  208. GPBWire::zigZagEncode64(2147483647)); // 0x7FFFFFFF
  209. $this->assertSame(
  210. '4294967295', // 0xFFFFFFFF
  211. GPBWire::zigZagEncode64(-2147483648)); // 0xFFFFFFFF80000000
  212. $this->assertSame(
  213. '18446744073709551614', // 0xFFFFFFFFFFFFFFFE
  214. // 0x7FFFFFFFFFFFFFFF
  215. GPBWire::zigZagEncode64("9223372036854775807"));
  216. $this->assertSame(
  217. '18446744073709551615', // 0xFFFFFFFFFFFFFFFF
  218. // 0x8000000000000000
  219. GPBWire::zigZagEncode64("-9223372036854775808"));
  220. $this->assertSame('0', GPBWire::zigZagDecode64(0));
  221. $this->assertSame('-1', GPBWire::zigZagDecode64(1));
  222. $this->assertSame('1', GPBWire::zigZagDecode64(2));
  223. $this->assertSame('-2', GPBWire::zigZagDecode64(3));
  224. } else {
  225. $this->assertSame(4294967294, GPBWire::zigZagEncode32(0x7FFFFFFF));
  226. $this->assertSame(4294967295, GPBWire::zigZagEncode32(0x80000000));
  227. $this->assertSame(0, GPBWire::zigZagEncode64(0));
  228. $this->assertSame(1, GPBWire::zigZagEncode64(-1));
  229. $this->assertSame(2, GPBWire::zigZagEncode64(1));
  230. $this->assertSame(3, GPBWire::zigZagEncode64(-2));
  231. $this->assertSame(0x7FFFFFFE, GPBWire::zigZagEncode64(0x3FFFFFFF));
  232. $this->assertSame(
  233. 0x7FFFFFFF,
  234. GPBWire::zigZagEncode64(0xFFFFFFFFC0000000));
  235. $this->assertSame(
  236. 0xFFFFFFFE,
  237. GPBWire::zigZagEncode64(0x7FFFFFFF));
  238. $this->assertSame(
  239. 0xFFFFFFFF,
  240. GPBWire::zigZagEncode64(0xFFFFFFFF80000000));
  241. $this->assertSame(
  242. -2, // 0xFFFFFFFFFFFFFFFE
  243. GPBWire::zigZagEncode64(0x7FFFFFFFFFFFFFFF));
  244. $this->assertSame(
  245. -1, // 0xFFFFFFFFFFFFFFFF
  246. GPBWire::zigZagEncode64(0x8000000000000000));
  247. $this->assertSame(0, GPBWire::zigZagDecode64(0));
  248. $this->assertSame(-1, GPBWire::zigZagDecode64(1));
  249. $this->assertSame(1, GPBWire::zigZagDecode64(2));
  250. $this->assertSame(-2, GPBWire::zigZagDecode64(3));
  251. }
  252. // Round trip
  253. $this->assertSame(0, GPBWire::zigZagDecode32(GPBWire::zigZagEncode32(0)));
  254. $this->assertSame(1, GPBWire::zigZagDecode32(GPBWire::zigZagEncode32(1)));
  255. $this->assertSame(-1, GPBWire::zigZagDecode32(GPBWire::zigZagEncode32(-1)));
  256. $this->assertSame(14927,
  257. GPBWire::zigZagDecode32(GPBWire::zigZagEncode32(14927)));
  258. $this->assertSame(-3612,
  259. GPBWire::zigZagDecode32(GPBWire::zigZagEncode32(-3612)));
  260. }
  261. public function testDecode()
  262. {
  263. $m = new TestMessage();
  264. $m->mergeFromString(TestUtil::getGoldenTestMessage());
  265. TestUtil::assertTestMessage($m);
  266. }
  267. public function testDescriptorDecode()
  268. {
  269. $file_desc_set = new FileDescriptorSet();
  270. $file_desc_set->mergeFromString(hex2bin(
  271. "0a3b0a12746573745f696e636c7564652e70726f746f120362617222180a" .
  272. "0b54657374496e636c75646512090a0161180120012805620670726f746f33"));
  273. $this->assertSame(1, sizeof($file_desc_set->getFile()));
  274. $file_desc = $file_desc_set->getFile()[0];
  275. $this->assertSame("test_include.proto", $file_desc->getName());
  276. $this->assertSame("bar", $file_desc->getPackage());
  277. $this->assertSame(0, sizeof($file_desc->getDependency()));
  278. $this->assertSame(1, sizeof($file_desc->getMessageType()));
  279. $this->assertSame(0, sizeof($file_desc->getEnumType()));
  280. $this->assertSame("proto3", $file_desc->getSyntax());
  281. $desc = $file_desc->getMessageType()[0];
  282. $this->assertSame("TestInclude", $desc->getName());
  283. $this->assertSame(1, sizeof($desc->getField()));
  284. $this->assertSame(0, sizeof($desc->getNestedType()));
  285. $this->assertSame(0, sizeof($desc->getEnumType()));
  286. $this->assertSame(0, sizeof($desc->getOneofDecl()));
  287. $field = $desc->getField()[0];
  288. $this->assertSame("a", $field->getName());
  289. $this->assertSame(1, $field->getNumber());
  290. $this->assertSame(GPBLabel::OPTIONAL, $field->getLabel());
  291. $this->assertSame(GPBType::INT32, $field->getType());
  292. }
  293. public function testReadVarint64()
  294. {
  295. $var = 0;
  296. // Empty buffer.
  297. $input = new CodedInputStream(hex2bin(''));
  298. $this->assertFalse($input->readVarint64($var));
  299. // The largest varint is 10 bytes long.
  300. $input = new CodedInputStream(hex2bin('8080808080808080808001'));
  301. $this->assertFalse($input->readVarint64($var));
  302. // Corrupted varint.
  303. $input = new CodedInputStream(hex2bin('808080'));
  304. $this->assertFalse($input->readVarint64($var));
  305. // Normal case.
  306. $input = new CodedInputStream(hex2bin('808001'));
  307. $this->assertTrue($input->readVarint64($var));
  308. if (PHP_INT_SIZE == 4) {
  309. $this->assertSame('16384', $var);
  310. } else {
  311. $this->assertSame(16384, $var);
  312. }
  313. $this->assertFalse($input->readVarint64($var));
  314. // Read two varint.
  315. $input = new CodedInputStream(hex2bin('808001808002'));
  316. $this->assertTrue($input->readVarint64($var));
  317. if (PHP_INT_SIZE == 4) {
  318. $this->assertSame('16384', $var);
  319. } else {
  320. $this->assertSame(16384, $var);
  321. }
  322. $this->assertTrue($input->readVarint64($var));
  323. if (PHP_INT_SIZE == 4) {
  324. $this->assertSame('32768', $var);
  325. } else {
  326. $this->assertSame(32768, $var);
  327. }
  328. $this->assertFalse($input->readVarint64($var));
  329. // Read 64 testing
  330. $testVals = array(
  331. '10' => '0a000000000000000000',
  332. '100' => '64000000000000000000',
  333. '800' => 'a0060000000000000000',
  334. '6400' => '80320000000000000000',
  335. '70400' => '80a60400000000000000',
  336. '774400' => '80a22f00000000000000',
  337. '9292800' => '8098b704000000000000',
  338. '74342400' => '80c0b923000000000000',
  339. '743424000' => '8080bfe2020000000000',
  340. '8177664000' => '8080b5bb1e0000000000',
  341. '65421312000' => '8080a8dbf30100000000',
  342. '785055744000' => '8080e0c7ec1600000000',
  343. '9420668928000' => '808080dd969202000000',
  344. '103627358208000' => '808080fff9c717000000',
  345. '1139900940288000' => '808080f5bd9783020000',
  346. '13678811283456000' => '808080fce699a6180000',
  347. '109430490267648000' => '808080e0b7ceb1c20100',
  348. '984874412408832000' => '808080e0f5c1bed50d00',
  349. );
  350. foreach ($testVals as $original => $encoded) {
  351. $input = new CodedInputStream(hex2bin($encoded));
  352. $this->assertTrue($input->readVarint64($var));
  353. $this->assertEquals($original, $var);
  354. }
  355. }
  356. public function testReadVarint32()
  357. {
  358. $var = 0;
  359. // Empty buffer.
  360. $input = new CodedInputStream(hex2bin(''));
  361. $this->assertFalse($input->readVarint32($var));
  362. // The largest varint is 10 bytes long.
  363. $input = new CodedInputStream(hex2bin('8080808080808080808001'));
  364. $this->assertFalse($input->readVarint32($var));
  365. // Corrupted varint.
  366. $input = new CodedInputStream(hex2bin('808080'));
  367. $this->assertFalse($input->readVarint32($var));
  368. // Normal case.
  369. $input = new CodedInputStream(hex2bin('808001'));
  370. $this->assertTrue($input->readVarint32($var));
  371. $this->assertSame(16384, $var);
  372. $this->assertFalse($input->readVarint32($var));
  373. // Read two varint.
  374. $input = new CodedInputStream(hex2bin('808001808002'));
  375. $this->assertTrue($input->readVarint32($var));
  376. $this->assertSame(16384, $var);
  377. $this->assertTrue($input->readVarint32($var));
  378. $this->assertSame(32768, $var);
  379. $this->assertFalse($input->readVarint32($var));
  380. // Read a 64-bit integer. High-order bits should be discarded.
  381. $input = new CodedInputStream(hex2bin('808081808001'));
  382. $this->assertTrue($input->readVarint32($var));
  383. $this->assertSame(16384, $var);
  384. $this->assertFalse($input->readVarint32($var));
  385. }
  386. public function testReadTag()
  387. {
  388. $input = new CodedInputStream(hex2bin('808001'));
  389. $tag = $input->readTag();
  390. $this->assertSame(16384, $tag);
  391. $tag = $input->readTag();
  392. $this->assertSame(0, $tag);
  393. }
  394. public function testPushPopLimit()
  395. {
  396. $input = new CodedInputStream(hex2bin('808001'));
  397. $old_limit = $input->pushLimit(0);
  398. $tag = $input->readTag();
  399. $this->assertSame(0, $tag);
  400. $input->popLimit($old_limit);
  401. $tag = $input->readTag();
  402. $this->assertSame(16384, $tag);
  403. }
  404. public function testReadRaw()
  405. {
  406. $input = new CodedInputStream(hex2bin('808001'));
  407. $buffer = null;
  408. $this->assertTrue($input->readRaw(3, $buffer));
  409. $this->assertSame(hex2bin('808001'), $buffer);
  410. $this->assertFalse($input->readRaw(1, $buffer));
  411. }
  412. public function testWriteVarint32()
  413. {
  414. $output = new CodedOutputStream(3);
  415. $output->writeVarint32(16384, true);
  416. $this->assertSame(hex2bin('808001'), $output->getData());
  417. // Negative numbers are padded to be compatible with int64.
  418. $output = new CodedOutputStream(10);
  419. $output->writeVarint32(-43, false);
  420. $this->assertSame(hex2bin('D5FFFFFFFFFFFFFFFF01'), $output->getData());
  421. }
  422. public function testWriteVarint64()
  423. {
  424. $output = new CodedOutputStream(10);
  425. $output->writeVarint64(-43);
  426. $this->assertSame(hex2bin('D5FFFFFFFFFFFFFFFF01'), $output->getData());
  427. }
  428. public function testWriteLittleEndian32()
  429. {
  430. $output = new CodedOutputStream(4);
  431. $output->writeLittleEndian32(46);
  432. $this->assertSame(hex2bin('2E000000'), $output->getData());
  433. }
  434. public function testWriteLittleEndian64()
  435. {
  436. $output = new CodedOutputStream(8);
  437. $output->writeLittleEndian64(47);
  438. $this->assertSame(hex2bin('2F00000000000000'), $output->getData());
  439. }
  440. public function testByteSize()
  441. {
  442. $m = new TestMessage();
  443. TestUtil::setTestMessage($m);
  444. $this->assertSame(504, $m->byteSize());
  445. }
  446. public function testPackedByteSize()
  447. {
  448. $m = new TestPackedMessage();
  449. TestUtil::setTestPackedMessage($m);
  450. $this->assertSame(166, $m->byteSize());
  451. }
  452. /**
  453. * @expectedException UnexpectedValueException
  454. * @expectedExceptionMessage Invalid message property: optionalInt32
  455. */
  456. public function testArrayConstructorJsonCaseThrowsException()
  457. {
  458. $m = new TestMessage([
  459. 'optionalInt32' => -42,
  460. ]);
  461. }
  462. /**
  463. * @expectedException Exception
  464. * @expectedExceptionMessage Expect Foo\TestMessage\Sub.
  465. */
  466. public function testArraysForMessagesThrowsException()
  467. {
  468. $m = new TestMessage([
  469. 'optional_message' => [
  470. 'a' => 33
  471. ]
  472. ]);
  473. }
  474. public function testArrayConstructorWithNullValues()
  475. {
  476. $requestData = [
  477. 'optional_bool' => null,
  478. 'optional_string' => null,
  479. 'optional_bytes' => null,
  480. 'optional_message' => null,
  481. ];
  482. $m = new TestMessage($requestData);
  483. $this->assertSame(false, $m->getOptionalBool());
  484. $this->assertSame('', $m->getOptionalString());
  485. $this->assertSame('', $m->getOptionalBytes());
  486. $this->assertSame(null, $m->getOptionalMessage());
  487. }
  488. /**
  489. * @dataProvider provideArrayConstructorWithNullValuesThrowsException
  490. * @expectedException Exception
  491. */
  492. public function testArrayConstructorWithNullValuesThrowsException($requestData)
  493. {
  494. $m = new TestMessage($requestData);
  495. }
  496. public function provideArrayConstructorWithNullValuesThrowsException()
  497. {
  498. return [
  499. [['optional_int32' => null]],
  500. [['optional_int64' => null]],
  501. [['optional_uint32' => null]],
  502. [['optional_uint64' => null]],
  503. [['optional_sint32' => null]],
  504. [['optional_sint64' => null]],
  505. [['optional_fixed32' => null]],
  506. [['optional_fixed64' => null]],
  507. [['optional_sfixed32' => null]],
  508. [['optional_sfixed64' => null]],
  509. [['optional_float' => null]],
  510. [['optional_double' => null]],
  511. [['optional_enum' => null]],
  512. [['repeated_int32' => null]],
  513. [['map_int32_int32' => null]],
  514. ];
  515. }
  516. }