Source: proto/google/protobuf/wrappers_pb.js

  1. // source: google/protobuf/wrappers.proto
  2. /**
  3. * @fileoverview
  4. * @enhanceable
  5. * @suppress {messageConventions} JS Compiler reports an error if a variable or
  6. * field starts with 'MSG_' and isn't a translatable message.
  7. * @public
  8. */
  9. // GENERATED CODE -- DO NOT EDIT!
  10. var jspb = require('google-protobuf');
  11. var goog = jspb;
  12. var global = Function('return this')();
  13. goog.exportSymbol('proto.google.protobuf.BoolValue', null, global);
  14. goog.exportSymbol('proto.google.protobuf.BytesValue', null, global);
  15. goog.exportSymbol('proto.google.protobuf.DoubleValue', null, global);
  16. goog.exportSymbol('proto.google.protobuf.FloatValue', null, global);
  17. goog.exportSymbol('proto.google.protobuf.Int32Value', null, global);
  18. goog.exportSymbol('proto.google.protobuf.Int64Value', null, global);
  19. goog.exportSymbol('proto.google.protobuf.StringValue', null, global);
  20. goog.exportSymbol('proto.google.protobuf.UInt32Value', null, global);
  21. goog.exportSymbol('proto.google.protobuf.UInt64Value', null, global);
  22. /**
  23. * Generated by JsPbCodeGenerator.
  24. * @param {Array=} opt_data Optional initial data array, typically from a
  25. * server response, or constructed directly in Javascript. The array is used
  26. * in place and becomes part of the constructed object. It is not cloned.
  27. * If no data is provided, the constructed object will be empty, but still
  28. * valid.
  29. * @extends {jspb.Message}
  30. * @constructor
  31. */
  32. proto.google.protobuf.DoubleValue = function(opt_data) {
  33. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  34. };
  35. goog.inherits(proto.google.protobuf.DoubleValue, jspb.Message);
  36. if (goog.DEBUG && !COMPILED) {
  37. /**
  38. * @public
  39. * @override
  40. */
  41. proto.google.protobuf.DoubleValue.displayName = 'proto.google.protobuf.DoubleValue';
  42. }
  43. /**
  44. * Generated by JsPbCodeGenerator.
  45. * @param {Array=} opt_data Optional initial data array, typically from a
  46. * server response, or constructed directly in Javascript. The array is used
  47. * in place and becomes part of the constructed object. It is not cloned.
  48. * If no data is provided, the constructed object will be empty, but still
  49. * valid.
  50. * @extends {jspb.Message}
  51. * @constructor
  52. */
  53. proto.google.protobuf.FloatValue = function(opt_data) {
  54. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  55. };
  56. goog.inherits(proto.google.protobuf.FloatValue, jspb.Message);
  57. if (goog.DEBUG && !COMPILED) {
  58. /**
  59. * @public
  60. * @override
  61. */
  62. proto.google.protobuf.FloatValue.displayName = 'proto.google.protobuf.FloatValue';
  63. }
  64. /**
  65. * Generated by JsPbCodeGenerator.
  66. * @param {Array=} opt_data Optional initial data array, typically from a
  67. * server response, or constructed directly in Javascript. The array is used
  68. * in place and becomes part of the constructed object. It is not cloned.
  69. * If no data is provided, the constructed object will be empty, but still
  70. * valid.
  71. * @extends {jspb.Message}
  72. * @constructor
  73. */
  74. proto.google.protobuf.Int64Value = function(opt_data) {
  75. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  76. };
  77. goog.inherits(proto.google.protobuf.Int64Value, jspb.Message);
  78. if (goog.DEBUG && !COMPILED) {
  79. /**
  80. * @public
  81. * @override
  82. */
  83. proto.google.protobuf.Int64Value.displayName = 'proto.google.protobuf.Int64Value';
  84. }
  85. /**
  86. * Generated by JsPbCodeGenerator.
  87. * @param {Array=} opt_data Optional initial data array, typically from a
  88. * server response, or constructed directly in Javascript. The array is used
  89. * in place and becomes part of the constructed object. It is not cloned.
  90. * If no data is provided, the constructed object will be empty, but still
  91. * valid.
  92. * @extends {jspb.Message}
  93. * @constructor
  94. */
  95. proto.google.protobuf.UInt64Value = function(opt_data) {
  96. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  97. };
  98. goog.inherits(proto.google.protobuf.UInt64Value, jspb.Message);
  99. if (goog.DEBUG && !COMPILED) {
  100. /**
  101. * @public
  102. * @override
  103. */
  104. proto.google.protobuf.UInt64Value.displayName = 'proto.google.protobuf.UInt64Value';
  105. }
  106. /**
  107. * Generated by JsPbCodeGenerator.
  108. * @param {Array=} opt_data Optional initial data array, typically from a
  109. * server response, or constructed directly in Javascript. The array is used
  110. * in place and becomes part of the constructed object. It is not cloned.
  111. * If no data is provided, the constructed object will be empty, but still
  112. * valid.
  113. * @extends {jspb.Message}
  114. * @constructor
  115. */
  116. proto.google.protobuf.Int32Value = function(opt_data) {
  117. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  118. };
  119. goog.inherits(proto.google.protobuf.Int32Value, jspb.Message);
  120. if (goog.DEBUG && !COMPILED) {
  121. /**
  122. * @public
  123. * @override
  124. */
  125. proto.google.protobuf.Int32Value.displayName = 'proto.google.protobuf.Int32Value';
  126. }
  127. /**
  128. * Generated by JsPbCodeGenerator.
  129. * @param {Array=} opt_data Optional initial data array, typically from a
  130. * server response, or constructed directly in Javascript. The array is used
  131. * in place and becomes part of the constructed object. It is not cloned.
  132. * If no data is provided, the constructed object will be empty, but still
  133. * valid.
  134. * @extends {jspb.Message}
  135. * @constructor
  136. */
  137. proto.google.protobuf.UInt32Value = function(opt_data) {
  138. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  139. };
  140. goog.inherits(proto.google.protobuf.UInt32Value, jspb.Message);
  141. if (goog.DEBUG && !COMPILED) {
  142. /**
  143. * @public
  144. * @override
  145. */
  146. proto.google.protobuf.UInt32Value.displayName = 'proto.google.protobuf.UInt32Value';
  147. }
  148. /**
  149. * Generated by JsPbCodeGenerator.
  150. * @param {Array=} opt_data Optional initial data array, typically from a
  151. * server response, or constructed directly in Javascript. The array is used
  152. * in place and becomes part of the constructed object. It is not cloned.
  153. * If no data is provided, the constructed object will be empty, but still
  154. * valid.
  155. * @extends {jspb.Message}
  156. * @constructor
  157. */
  158. proto.google.protobuf.BoolValue = function(opt_data) {
  159. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  160. };
  161. goog.inherits(proto.google.protobuf.BoolValue, jspb.Message);
  162. if (goog.DEBUG && !COMPILED) {
  163. /**
  164. * @public
  165. * @override
  166. */
  167. proto.google.protobuf.BoolValue.displayName = 'proto.google.protobuf.BoolValue';
  168. }
  169. /**
  170. * Generated by JsPbCodeGenerator.
  171. * @param {Array=} opt_data Optional initial data array, typically from a
  172. * server response, or constructed directly in Javascript. The array is used
  173. * in place and becomes part of the constructed object. It is not cloned.
  174. * If no data is provided, the constructed object will be empty, but still
  175. * valid.
  176. * @extends {jspb.Message}
  177. * @constructor
  178. */
  179. proto.google.protobuf.StringValue = function(opt_data) {
  180. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  181. };
  182. goog.inherits(proto.google.protobuf.StringValue, jspb.Message);
  183. if (goog.DEBUG && !COMPILED) {
  184. /**
  185. * @public
  186. * @override
  187. */
  188. proto.google.protobuf.StringValue.displayName = 'proto.google.protobuf.StringValue';
  189. }
  190. /**
  191. * Generated by JsPbCodeGenerator.
  192. * @param {Array=} opt_data Optional initial data array, typically from a
  193. * server response, or constructed directly in Javascript. The array is used
  194. * in place and becomes part of the constructed object. It is not cloned.
  195. * If no data is provided, the constructed object will be empty, but still
  196. * valid.
  197. * @extends {jspb.Message}
  198. * @constructor
  199. */
  200. proto.google.protobuf.BytesValue = function(opt_data) {
  201. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  202. };
  203. goog.inherits(proto.google.protobuf.BytesValue, jspb.Message);
  204. if (goog.DEBUG && !COMPILED) {
  205. /**
  206. * @public
  207. * @override
  208. */
  209. proto.google.protobuf.BytesValue.displayName = 'proto.google.protobuf.BytesValue';
  210. }
  211. if (jspb.Message.GENERATE_TO_OBJECT) {
  212. /**
  213. * Creates an object representation of this proto.
  214. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  215. * Optional fields that are not set will be set to undefined.
  216. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  217. * For the list of reserved names please see:
  218. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  219. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  220. * JSPB instance for transitional soy proto support:
  221. * http://goto/soy-param-migration
  222. * @return {!Object}
  223. */
  224. proto.google.protobuf.DoubleValue.prototype.toObject = function(opt_includeInstance) {
  225. return proto.google.protobuf.DoubleValue.toObject(opt_includeInstance, this);
  226. };
  227. /**
  228. * Static version of the {@see toObject} method.
  229. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  230. * the JSPB instance for transitional soy proto support:
  231. * http://goto/soy-param-migration
  232. * @param {!proto.google.protobuf.DoubleValue} msg The msg instance to transform.
  233. * @return {!Object}
  234. * @suppress {unusedLocalVariables} f is only used for nested messages
  235. */
  236. proto.google.protobuf.DoubleValue.toObject = function(includeInstance, msg) {
  237. var f, obj = {
  238. value: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0)
  239. };
  240. if (includeInstance) {
  241. obj.$jspbMessageInstance = msg;
  242. }
  243. return obj;
  244. };
  245. }
  246. /**
  247. * Deserializes binary data (in protobuf wire format).
  248. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  249. * @return {!proto.google.protobuf.DoubleValue}
  250. */
  251. proto.google.protobuf.DoubleValue.deserializeBinary = function(bytes) {
  252. var reader = new jspb.BinaryReader(bytes);
  253. var msg = new proto.google.protobuf.DoubleValue;
  254. return proto.google.protobuf.DoubleValue.deserializeBinaryFromReader(msg, reader);
  255. };
  256. /**
  257. * Deserializes binary data (in protobuf wire format) from the
  258. * given reader into the given message object.
  259. * @param {!proto.google.protobuf.DoubleValue} msg The message object to deserialize into.
  260. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  261. * @return {!proto.google.protobuf.DoubleValue}
  262. */
  263. proto.google.protobuf.DoubleValue.deserializeBinaryFromReader = function(msg, reader) {
  264. while (reader.nextField()) {
  265. if (reader.isEndGroup()) {
  266. break;
  267. }
  268. var field = reader.getFieldNumber();
  269. switch (field) {
  270. case 1:
  271. var value = /** @type {number} */ (reader.readDouble());
  272. msg.setValue(value);
  273. break;
  274. default:
  275. reader.skipField();
  276. break;
  277. }
  278. }
  279. return msg;
  280. };
  281. /**
  282. * Serializes the message to binary data (in protobuf wire format).
  283. * @return {!Uint8Array}
  284. */
  285. proto.google.protobuf.DoubleValue.prototype.serializeBinary = function() {
  286. var writer = new jspb.BinaryWriter();
  287. proto.google.protobuf.DoubleValue.serializeBinaryToWriter(this, writer);
  288. return writer.getResultBuffer();
  289. };
  290. /**
  291. * Serializes the given message to binary data (in protobuf wire
  292. * format), writing to the given BinaryWriter.
  293. * @param {!proto.google.protobuf.DoubleValue} message
  294. * @param {!jspb.BinaryWriter} writer
  295. * @suppress {unusedLocalVariables} f is only used for nested messages
  296. */
  297. proto.google.protobuf.DoubleValue.serializeBinaryToWriter = function(message, writer) {
  298. var f = undefined;
  299. f = message.getValue();
  300. if (f !== 0.0) {
  301. writer.writeDouble(
  302. 1,
  303. f
  304. );
  305. }
  306. };
  307. /**
  308. * optional double value = 1;
  309. * @return {number}
  310. */
  311. proto.google.protobuf.DoubleValue.prototype.getValue = function() {
  312. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
  313. };
  314. /**
  315. * @param {number} value
  316. * @return {!proto.google.protobuf.DoubleValue} returns this
  317. */
  318. proto.google.protobuf.DoubleValue.prototype.setValue = function(value) {
  319. return jspb.Message.setProto3FloatField(this, 1, value);
  320. };
  321. if (jspb.Message.GENERATE_TO_OBJECT) {
  322. /**
  323. * Creates an object representation of this proto.
  324. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  325. * Optional fields that are not set will be set to undefined.
  326. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  327. * For the list of reserved names please see:
  328. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  329. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  330. * JSPB instance for transitional soy proto support:
  331. * http://goto/soy-param-migration
  332. * @return {!Object}
  333. */
  334. proto.google.protobuf.FloatValue.prototype.toObject = function(opt_includeInstance) {
  335. return proto.google.protobuf.FloatValue.toObject(opt_includeInstance, this);
  336. };
  337. /**
  338. * Static version of the {@see toObject} method.
  339. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  340. * the JSPB instance for transitional soy proto support:
  341. * http://goto/soy-param-migration
  342. * @param {!proto.google.protobuf.FloatValue} msg The msg instance to transform.
  343. * @return {!Object}
  344. * @suppress {unusedLocalVariables} f is only used for nested messages
  345. */
  346. proto.google.protobuf.FloatValue.toObject = function(includeInstance, msg) {
  347. var f, obj = {
  348. value: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0)
  349. };
  350. if (includeInstance) {
  351. obj.$jspbMessageInstance = msg;
  352. }
  353. return obj;
  354. };
  355. }
  356. /**
  357. * Deserializes binary data (in protobuf wire format).
  358. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  359. * @return {!proto.google.protobuf.FloatValue}
  360. */
  361. proto.google.protobuf.FloatValue.deserializeBinary = function(bytes) {
  362. var reader = new jspb.BinaryReader(bytes);
  363. var msg = new proto.google.protobuf.FloatValue;
  364. return proto.google.protobuf.FloatValue.deserializeBinaryFromReader(msg, reader);
  365. };
  366. /**
  367. * Deserializes binary data (in protobuf wire format) from the
  368. * given reader into the given message object.
  369. * @param {!proto.google.protobuf.FloatValue} msg The message object to deserialize into.
  370. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  371. * @return {!proto.google.protobuf.FloatValue}
  372. */
  373. proto.google.protobuf.FloatValue.deserializeBinaryFromReader = function(msg, reader) {
  374. while (reader.nextField()) {
  375. if (reader.isEndGroup()) {
  376. break;
  377. }
  378. var field = reader.getFieldNumber();
  379. switch (field) {
  380. case 1:
  381. var value = /** @type {number} */ (reader.readFloat());
  382. msg.setValue(value);
  383. break;
  384. default:
  385. reader.skipField();
  386. break;
  387. }
  388. }
  389. return msg;
  390. };
  391. /**
  392. * Serializes the message to binary data (in protobuf wire format).
  393. * @return {!Uint8Array}
  394. */
  395. proto.google.protobuf.FloatValue.prototype.serializeBinary = function() {
  396. var writer = new jspb.BinaryWriter();
  397. proto.google.protobuf.FloatValue.serializeBinaryToWriter(this, writer);
  398. return writer.getResultBuffer();
  399. };
  400. /**
  401. * Serializes the given message to binary data (in protobuf wire
  402. * format), writing to the given BinaryWriter.
  403. * @param {!proto.google.protobuf.FloatValue} message
  404. * @param {!jspb.BinaryWriter} writer
  405. * @suppress {unusedLocalVariables} f is only used for nested messages
  406. */
  407. proto.google.protobuf.FloatValue.serializeBinaryToWriter = function(message, writer) {
  408. var f = undefined;
  409. f = message.getValue();
  410. if (f !== 0.0) {
  411. writer.writeFloat(
  412. 1,
  413. f
  414. );
  415. }
  416. };
  417. /**
  418. * optional float value = 1;
  419. * @return {number}
  420. */
  421. proto.google.protobuf.FloatValue.prototype.getValue = function() {
  422. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
  423. };
  424. /**
  425. * @param {number} value
  426. * @return {!proto.google.protobuf.FloatValue} returns this
  427. */
  428. proto.google.protobuf.FloatValue.prototype.setValue = function(value) {
  429. return jspb.Message.setProto3FloatField(this, 1, value);
  430. };
  431. if (jspb.Message.GENERATE_TO_OBJECT) {
  432. /**
  433. * Creates an object representation of this proto.
  434. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  435. * Optional fields that are not set will be set to undefined.
  436. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  437. * For the list of reserved names please see:
  438. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  439. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  440. * JSPB instance for transitional soy proto support:
  441. * http://goto/soy-param-migration
  442. * @return {!Object}
  443. */
  444. proto.google.protobuf.Int64Value.prototype.toObject = function(opt_includeInstance) {
  445. return proto.google.protobuf.Int64Value.toObject(opt_includeInstance, this);
  446. };
  447. /**
  448. * Static version of the {@see toObject} method.
  449. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  450. * the JSPB instance for transitional soy proto support:
  451. * http://goto/soy-param-migration
  452. * @param {!proto.google.protobuf.Int64Value} msg The msg instance to transform.
  453. * @return {!Object}
  454. * @suppress {unusedLocalVariables} f is only used for nested messages
  455. */
  456. proto.google.protobuf.Int64Value.toObject = function(includeInstance, msg) {
  457. var f, obj = {
  458. value: jspb.Message.getFieldWithDefault(msg, 1, 0)
  459. };
  460. if (includeInstance) {
  461. obj.$jspbMessageInstance = msg;
  462. }
  463. return obj;
  464. };
  465. }
  466. /**
  467. * Deserializes binary data (in protobuf wire format).
  468. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  469. * @return {!proto.google.protobuf.Int64Value}
  470. */
  471. proto.google.protobuf.Int64Value.deserializeBinary = function(bytes) {
  472. var reader = new jspb.BinaryReader(bytes);
  473. var msg = new proto.google.protobuf.Int64Value;
  474. return proto.google.protobuf.Int64Value.deserializeBinaryFromReader(msg, reader);
  475. };
  476. /**
  477. * Deserializes binary data (in protobuf wire format) from the
  478. * given reader into the given message object.
  479. * @param {!proto.google.protobuf.Int64Value} msg The message object to deserialize into.
  480. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  481. * @return {!proto.google.protobuf.Int64Value}
  482. */
  483. proto.google.protobuf.Int64Value.deserializeBinaryFromReader = function(msg, reader) {
  484. while (reader.nextField()) {
  485. if (reader.isEndGroup()) {
  486. break;
  487. }
  488. var field = reader.getFieldNumber();
  489. switch (field) {
  490. case 1:
  491. var value = /** @type {number} */ (reader.readInt64());
  492. msg.setValue(value);
  493. break;
  494. default:
  495. reader.skipField();
  496. break;
  497. }
  498. }
  499. return msg;
  500. };
  501. /**
  502. * Serializes the message to binary data (in protobuf wire format).
  503. * @return {!Uint8Array}
  504. */
  505. proto.google.protobuf.Int64Value.prototype.serializeBinary = function() {
  506. var writer = new jspb.BinaryWriter();
  507. proto.google.protobuf.Int64Value.serializeBinaryToWriter(this, writer);
  508. return writer.getResultBuffer();
  509. };
  510. /**
  511. * Serializes the given message to binary data (in protobuf wire
  512. * format), writing to the given BinaryWriter.
  513. * @param {!proto.google.protobuf.Int64Value} message
  514. * @param {!jspb.BinaryWriter} writer
  515. * @suppress {unusedLocalVariables} f is only used for nested messages
  516. */
  517. proto.google.protobuf.Int64Value.serializeBinaryToWriter = function(message, writer) {
  518. var f = undefined;
  519. f = message.getValue();
  520. if (f !== 0) {
  521. writer.writeInt64(
  522. 1,
  523. f
  524. );
  525. }
  526. };
  527. /**
  528. * optional int64 value = 1;
  529. * @return {number}
  530. */
  531. proto.google.protobuf.Int64Value.prototype.getValue = function() {
  532. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  533. };
  534. /**
  535. * @param {number} value
  536. * @return {!proto.google.protobuf.Int64Value} returns this
  537. */
  538. proto.google.protobuf.Int64Value.prototype.setValue = function(value) {
  539. return jspb.Message.setProto3IntField(this, 1, value);
  540. };
  541. if (jspb.Message.GENERATE_TO_OBJECT) {
  542. /**
  543. * Creates an object representation of this proto.
  544. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  545. * Optional fields that are not set will be set to undefined.
  546. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  547. * For the list of reserved names please see:
  548. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  549. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  550. * JSPB instance for transitional soy proto support:
  551. * http://goto/soy-param-migration
  552. * @return {!Object}
  553. */
  554. proto.google.protobuf.UInt64Value.prototype.toObject = function(opt_includeInstance) {
  555. return proto.google.protobuf.UInt64Value.toObject(opt_includeInstance, this);
  556. };
  557. /**
  558. * Static version of the {@see toObject} method.
  559. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  560. * the JSPB instance for transitional soy proto support:
  561. * http://goto/soy-param-migration
  562. * @param {!proto.google.protobuf.UInt64Value} msg The msg instance to transform.
  563. * @return {!Object}
  564. * @suppress {unusedLocalVariables} f is only used for nested messages
  565. */
  566. proto.google.protobuf.UInt64Value.toObject = function(includeInstance, msg) {
  567. var f, obj = {
  568. value: jspb.Message.getFieldWithDefault(msg, 1, 0)
  569. };
  570. if (includeInstance) {
  571. obj.$jspbMessageInstance = msg;
  572. }
  573. return obj;
  574. };
  575. }
  576. /**
  577. * Deserializes binary data (in protobuf wire format).
  578. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  579. * @return {!proto.google.protobuf.UInt64Value}
  580. */
  581. proto.google.protobuf.UInt64Value.deserializeBinary = function(bytes) {
  582. var reader = new jspb.BinaryReader(bytes);
  583. var msg = new proto.google.protobuf.UInt64Value;
  584. return proto.google.protobuf.UInt64Value.deserializeBinaryFromReader(msg, reader);
  585. };
  586. /**
  587. * Deserializes binary data (in protobuf wire format) from the
  588. * given reader into the given message object.
  589. * @param {!proto.google.protobuf.UInt64Value} msg The message object to deserialize into.
  590. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  591. * @return {!proto.google.protobuf.UInt64Value}
  592. */
  593. proto.google.protobuf.UInt64Value.deserializeBinaryFromReader = function(msg, reader) {
  594. while (reader.nextField()) {
  595. if (reader.isEndGroup()) {
  596. break;
  597. }
  598. var field = reader.getFieldNumber();
  599. switch (field) {
  600. case 1:
  601. var value = /** @type {number} */ (reader.readUint64());
  602. msg.setValue(value);
  603. break;
  604. default:
  605. reader.skipField();
  606. break;
  607. }
  608. }
  609. return msg;
  610. };
  611. /**
  612. * Serializes the message to binary data (in protobuf wire format).
  613. * @return {!Uint8Array}
  614. */
  615. proto.google.protobuf.UInt64Value.prototype.serializeBinary = function() {
  616. var writer = new jspb.BinaryWriter();
  617. proto.google.protobuf.UInt64Value.serializeBinaryToWriter(this, writer);
  618. return writer.getResultBuffer();
  619. };
  620. /**
  621. * Serializes the given message to binary data (in protobuf wire
  622. * format), writing to the given BinaryWriter.
  623. * @param {!proto.google.protobuf.UInt64Value} message
  624. * @param {!jspb.BinaryWriter} writer
  625. * @suppress {unusedLocalVariables} f is only used for nested messages
  626. */
  627. proto.google.protobuf.UInt64Value.serializeBinaryToWriter = function(message, writer) {
  628. var f = undefined;
  629. f = message.getValue();
  630. if (f !== 0) {
  631. writer.writeUint64(
  632. 1,
  633. f
  634. );
  635. }
  636. };
  637. /**
  638. * optional uint64 value = 1;
  639. * @return {number}
  640. */
  641. proto.google.protobuf.UInt64Value.prototype.getValue = function() {
  642. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  643. };
  644. /**
  645. * @param {number} value
  646. * @return {!proto.google.protobuf.UInt64Value} returns this
  647. */
  648. proto.google.protobuf.UInt64Value.prototype.setValue = function(value) {
  649. return jspb.Message.setProto3IntField(this, 1, value);
  650. };
  651. if (jspb.Message.GENERATE_TO_OBJECT) {
  652. /**
  653. * Creates an object representation of this proto.
  654. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  655. * Optional fields that are not set will be set to undefined.
  656. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  657. * For the list of reserved names please see:
  658. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  659. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  660. * JSPB instance for transitional soy proto support:
  661. * http://goto/soy-param-migration
  662. * @return {!Object}
  663. */
  664. proto.google.protobuf.Int32Value.prototype.toObject = function(opt_includeInstance) {
  665. return proto.google.protobuf.Int32Value.toObject(opt_includeInstance, this);
  666. };
  667. /**
  668. * Static version of the {@see toObject} method.
  669. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  670. * the JSPB instance for transitional soy proto support:
  671. * http://goto/soy-param-migration
  672. * @param {!proto.google.protobuf.Int32Value} msg The msg instance to transform.
  673. * @return {!Object}
  674. * @suppress {unusedLocalVariables} f is only used for nested messages
  675. */
  676. proto.google.protobuf.Int32Value.toObject = function(includeInstance, msg) {
  677. var f, obj = {
  678. value: jspb.Message.getFieldWithDefault(msg, 1, 0)
  679. };
  680. if (includeInstance) {
  681. obj.$jspbMessageInstance = msg;
  682. }
  683. return obj;
  684. };
  685. }
  686. /**
  687. * Deserializes binary data (in protobuf wire format).
  688. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  689. * @return {!proto.google.protobuf.Int32Value}
  690. */
  691. proto.google.protobuf.Int32Value.deserializeBinary = function(bytes) {
  692. var reader = new jspb.BinaryReader(bytes);
  693. var msg = new proto.google.protobuf.Int32Value;
  694. return proto.google.protobuf.Int32Value.deserializeBinaryFromReader(msg, reader);
  695. };
  696. /**
  697. * Deserializes binary data (in protobuf wire format) from the
  698. * given reader into the given message object.
  699. * @param {!proto.google.protobuf.Int32Value} msg The message object to deserialize into.
  700. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  701. * @return {!proto.google.protobuf.Int32Value}
  702. */
  703. proto.google.protobuf.Int32Value.deserializeBinaryFromReader = function(msg, reader) {
  704. while (reader.nextField()) {
  705. if (reader.isEndGroup()) {
  706. break;
  707. }
  708. var field = reader.getFieldNumber();
  709. switch (field) {
  710. case 1:
  711. var value = /** @type {number} */ (reader.readInt32());
  712. msg.setValue(value);
  713. break;
  714. default:
  715. reader.skipField();
  716. break;
  717. }
  718. }
  719. return msg;
  720. };
  721. /**
  722. * Serializes the message to binary data (in protobuf wire format).
  723. * @return {!Uint8Array}
  724. */
  725. proto.google.protobuf.Int32Value.prototype.serializeBinary = function() {
  726. var writer = new jspb.BinaryWriter();
  727. proto.google.protobuf.Int32Value.serializeBinaryToWriter(this, writer);
  728. return writer.getResultBuffer();
  729. };
  730. /**
  731. * Serializes the given message to binary data (in protobuf wire
  732. * format), writing to the given BinaryWriter.
  733. * @param {!proto.google.protobuf.Int32Value} message
  734. * @param {!jspb.BinaryWriter} writer
  735. * @suppress {unusedLocalVariables} f is only used for nested messages
  736. */
  737. proto.google.protobuf.Int32Value.serializeBinaryToWriter = function(message, writer) {
  738. var f = undefined;
  739. f = message.getValue();
  740. if (f !== 0) {
  741. writer.writeInt32(
  742. 1,
  743. f
  744. );
  745. }
  746. };
  747. /**
  748. * optional int32 value = 1;
  749. * @return {number}
  750. */
  751. proto.google.protobuf.Int32Value.prototype.getValue = function() {
  752. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  753. };
  754. /**
  755. * @param {number} value
  756. * @return {!proto.google.protobuf.Int32Value} returns this
  757. */
  758. proto.google.protobuf.Int32Value.prototype.setValue = function(value) {
  759. return jspb.Message.setProto3IntField(this, 1, value);
  760. };
  761. if (jspb.Message.GENERATE_TO_OBJECT) {
  762. /**
  763. * Creates an object representation of this proto.
  764. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  765. * Optional fields that are not set will be set to undefined.
  766. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  767. * For the list of reserved names please see:
  768. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  769. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  770. * JSPB instance for transitional soy proto support:
  771. * http://goto/soy-param-migration
  772. * @return {!Object}
  773. */
  774. proto.google.protobuf.UInt32Value.prototype.toObject = function(opt_includeInstance) {
  775. return proto.google.protobuf.UInt32Value.toObject(opt_includeInstance, this);
  776. };
  777. /**
  778. * Static version of the {@see toObject} method.
  779. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  780. * the JSPB instance for transitional soy proto support:
  781. * http://goto/soy-param-migration
  782. * @param {!proto.google.protobuf.UInt32Value} msg The msg instance to transform.
  783. * @return {!Object}
  784. * @suppress {unusedLocalVariables} f is only used for nested messages
  785. */
  786. proto.google.protobuf.UInt32Value.toObject = function(includeInstance, msg) {
  787. var f, obj = {
  788. value: jspb.Message.getFieldWithDefault(msg, 1, 0)
  789. };
  790. if (includeInstance) {
  791. obj.$jspbMessageInstance = msg;
  792. }
  793. return obj;
  794. };
  795. }
  796. /**
  797. * Deserializes binary data (in protobuf wire format).
  798. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  799. * @return {!proto.google.protobuf.UInt32Value}
  800. */
  801. proto.google.protobuf.UInt32Value.deserializeBinary = function(bytes) {
  802. var reader = new jspb.BinaryReader(bytes);
  803. var msg = new proto.google.protobuf.UInt32Value;
  804. return proto.google.protobuf.UInt32Value.deserializeBinaryFromReader(msg, reader);
  805. };
  806. /**
  807. * Deserializes binary data (in protobuf wire format) from the
  808. * given reader into the given message object.
  809. * @param {!proto.google.protobuf.UInt32Value} msg The message object to deserialize into.
  810. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  811. * @return {!proto.google.protobuf.UInt32Value}
  812. */
  813. proto.google.protobuf.UInt32Value.deserializeBinaryFromReader = function(msg, reader) {
  814. while (reader.nextField()) {
  815. if (reader.isEndGroup()) {
  816. break;
  817. }
  818. var field = reader.getFieldNumber();
  819. switch (field) {
  820. case 1:
  821. var value = /** @type {number} */ (reader.readUint32());
  822. msg.setValue(value);
  823. break;
  824. default:
  825. reader.skipField();
  826. break;
  827. }
  828. }
  829. return msg;
  830. };
  831. /**
  832. * Serializes the message to binary data (in protobuf wire format).
  833. * @return {!Uint8Array}
  834. */
  835. proto.google.protobuf.UInt32Value.prototype.serializeBinary = function() {
  836. var writer = new jspb.BinaryWriter();
  837. proto.google.protobuf.UInt32Value.serializeBinaryToWriter(this, writer);
  838. return writer.getResultBuffer();
  839. };
  840. /**
  841. * Serializes the given message to binary data (in protobuf wire
  842. * format), writing to the given BinaryWriter.
  843. * @param {!proto.google.protobuf.UInt32Value} message
  844. * @param {!jspb.BinaryWriter} writer
  845. * @suppress {unusedLocalVariables} f is only used for nested messages
  846. */
  847. proto.google.protobuf.UInt32Value.serializeBinaryToWriter = function(message, writer) {
  848. var f = undefined;
  849. f = message.getValue();
  850. if (f !== 0) {
  851. writer.writeUint32(
  852. 1,
  853. f
  854. );
  855. }
  856. };
  857. /**
  858. * optional uint32 value = 1;
  859. * @return {number}
  860. */
  861. proto.google.protobuf.UInt32Value.prototype.getValue = function() {
  862. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  863. };
  864. /**
  865. * @param {number} value
  866. * @return {!proto.google.protobuf.UInt32Value} returns this
  867. */
  868. proto.google.protobuf.UInt32Value.prototype.setValue = function(value) {
  869. return jspb.Message.setProto3IntField(this, 1, value);
  870. };
  871. if (jspb.Message.GENERATE_TO_OBJECT) {
  872. /**
  873. * Creates an object representation of this proto.
  874. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  875. * Optional fields that are not set will be set to undefined.
  876. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  877. * For the list of reserved names please see:
  878. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  879. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  880. * JSPB instance for transitional soy proto support:
  881. * http://goto/soy-param-migration
  882. * @return {!Object}
  883. */
  884. proto.google.protobuf.BoolValue.prototype.toObject = function(opt_includeInstance) {
  885. return proto.google.protobuf.BoolValue.toObject(opt_includeInstance, this);
  886. };
  887. /**
  888. * Static version of the {@see toObject} method.
  889. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  890. * the JSPB instance for transitional soy proto support:
  891. * http://goto/soy-param-migration
  892. * @param {!proto.google.protobuf.BoolValue} msg The msg instance to transform.
  893. * @return {!Object}
  894. * @suppress {unusedLocalVariables} f is only used for nested messages
  895. */
  896. proto.google.protobuf.BoolValue.toObject = function(includeInstance, msg) {
  897. var f, obj = {
  898. value: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
  899. };
  900. if (includeInstance) {
  901. obj.$jspbMessageInstance = msg;
  902. }
  903. return obj;
  904. };
  905. }
  906. /**
  907. * Deserializes binary data (in protobuf wire format).
  908. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  909. * @return {!proto.google.protobuf.BoolValue}
  910. */
  911. proto.google.protobuf.BoolValue.deserializeBinary = function(bytes) {
  912. var reader = new jspb.BinaryReader(bytes);
  913. var msg = new proto.google.protobuf.BoolValue;
  914. return proto.google.protobuf.BoolValue.deserializeBinaryFromReader(msg, reader);
  915. };
  916. /**
  917. * Deserializes binary data (in protobuf wire format) from the
  918. * given reader into the given message object.
  919. * @param {!proto.google.protobuf.BoolValue} msg The message object to deserialize into.
  920. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  921. * @return {!proto.google.protobuf.BoolValue}
  922. */
  923. proto.google.protobuf.BoolValue.deserializeBinaryFromReader = function(msg, reader) {
  924. while (reader.nextField()) {
  925. if (reader.isEndGroup()) {
  926. break;
  927. }
  928. var field = reader.getFieldNumber();
  929. switch (field) {
  930. case 1:
  931. var value = /** @type {boolean} */ (reader.readBool());
  932. msg.setValue(value);
  933. break;
  934. default:
  935. reader.skipField();
  936. break;
  937. }
  938. }
  939. return msg;
  940. };
  941. /**
  942. * Serializes the message to binary data (in protobuf wire format).
  943. * @return {!Uint8Array}
  944. */
  945. proto.google.protobuf.BoolValue.prototype.serializeBinary = function() {
  946. var writer = new jspb.BinaryWriter();
  947. proto.google.protobuf.BoolValue.serializeBinaryToWriter(this, writer);
  948. return writer.getResultBuffer();
  949. };
  950. /**
  951. * Serializes the given message to binary data (in protobuf wire
  952. * format), writing to the given BinaryWriter.
  953. * @param {!proto.google.protobuf.BoolValue} message
  954. * @param {!jspb.BinaryWriter} writer
  955. * @suppress {unusedLocalVariables} f is only used for nested messages
  956. */
  957. proto.google.protobuf.BoolValue.serializeBinaryToWriter = function(message, writer) {
  958. var f = undefined;
  959. f = message.getValue();
  960. if (f) {
  961. writer.writeBool(
  962. 1,
  963. f
  964. );
  965. }
  966. };
  967. /**
  968. * optional bool value = 1;
  969. * @return {boolean}
  970. */
  971. proto.google.protobuf.BoolValue.prototype.getValue = function() {
  972. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
  973. };
  974. /**
  975. * @param {boolean} value
  976. * @return {!proto.google.protobuf.BoolValue} returns this
  977. */
  978. proto.google.protobuf.BoolValue.prototype.setValue = function(value) {
  979. return jspb.Message.setProto3BooleanField(this, 1, value);
  980. };
  981. if (jspb.Message.GENERATE_TO_OBJECT) {
  982. /**
  983. * Creates an object representation of this proto.
  984. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  985. * Optional fields that are not set will be set to undefined.
  986. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  987. * For the list of reserved names please see:
  988. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  989. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  990. * JSPB instance for transitional soy proto support:
  991. * http://goto/soy-param-migration
  992. * @return {!Object}
  993. */
  994. proto.google.protobuf.StringValue.prototype.toObject = function(opt_includeInstance) {
  995. return proto.google.protobuf.StringValue.toObject(opt_includeInstance, this);
  996. };
  997. /**
  998. * Static version of the {@see toObject} method.
  999. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1000. * the JSPB instance for transitional soy proto support:
  1001. * http://goto/soy-param-migration
  1002. * @param {!proto.google.protobuf.StringValue} msg The msg instance to transform.
  1003. * @return {!Object}
  1004. * @suppress {unusedLocalVariables} f is only used for nested messages
  1005. */
  1006. proto.google.protobuf.StringValue.toObject = function(includeInstance, msg) {
  1007. var f, obj = {
  1008. value: jspb.Message.getFieldWithDefault(msg, 1, "")
  1009. };
  1010. if (includeInstance) {
  1011. obj.$jspbMessageInstance = msg;
  1012. }
  1013. return obj;
  1014. };
  1015. }
  1016. /**
  1017. * Deserializes binary data (in protobuf wire format).
  1018. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1019. * @return {!proto.google.protobuf.StringValue}
  1020. */
  1021. proto.google.protobuf.StringValue.deserializeBinary = function(bytes) {
  1022. var reader = new jspb.BinaryReader(bytes);
  1023. var msg = new proto.google.protobuf.StringValue;
  1024. return proto.google.protobuf.StringValue.deserializeBinaryFromReader(msg, reader);
  1025. };
  1026. /**
  1027. * Deserializes binary data (in protobuf wire format) from the
  1028. * given reader into the given message object.
  1029. * @param {!proto.google.protobuf.StringValue} msg The message object to deserialize into.
  1030. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1031. * @return {!proto.google.protobuf.StringValue}
  1032. */
  1033. proto.google.protobuf.StringValue.deserializeBinaryFromReader = function(msg, reader) {
  1034. while (reader.nextField()) {
  1035. if (reader.isEndGroup()) {
  1036. break;
  1037. }
  1038. var field = reader.getFieldNumber();
  1039. switch (field) {
  1040. case 1:
  1041. var value = /** @type {string} */ (reader.readString());
  1042. msg.setValue(value);
  1043. break;
  1044. default:
  1045. reader.skipField();
  1046. break;
  1047. }
  1048. }
  1049. return msg;
  1050. };
  1051. /**
  1052. * Serializes the message to binary data (in protobuf wire format).
  1053. * @return {!Uint8Array}
  1054. */
  1055. proto.google.protobuf.StringValue.prototype.serializeBinary = function() {
  1056. var writer = new jspb.BinaryWriter();
  1057. proto.google.protobuf.StringValue.serializeBinaryToWriter(this, writer);
  1058. return writer.getResultBuffer();
  1059. };
  1060. /**
  1061. * Serializes the given message to binary data (in protobuf wire
  1062. * format), writing to the given BinaryWriter.
  1063. * @param {!proto.google.protobuf.StringValue} message
  1064. * @param {!jspb.BinaryWriter} writer
  1065. * @suppress {unusedLocalVariables} f is only used for nested messages
  1066. */
  1067. proto.google.protobuf.StringValue.serializeBinaryToWriter = function(message, writer) {
  1068. var f = undefined;
  1069. f = message.getValue();
  1070. if (f.length > 0) {
  1071. writer.writeString(
  1072. 1,
  1073. f
  1074. );
  1075. }
  1076. };
  1077. /**
  1078. * optional string value = 1;
  1079. * @return {string}
  1080. */
  1081. proto.google.protobuf.StringValue.prototype.getValue = function() {
  1082. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1083. };
  1084. /**
  1085. * @param {string} value
  1086. * @return {!proto.google.protobuf.StringValue} returns this
  1087. */
  1088. proto.google.protobuf.StringValue.prototype.setValue = function(value) {
  1089. return jspb.Message.setProto3StringField(this, 1, value);
  1090. };
  1091. if (jspb.Message.GENERATE_TO_OBJECT) {
  1092. /**
  1093. * Creates an object representation of this proto.
  1094. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1095. * Optional fields that are not set will be set to undefined.
  1096. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1097. * For the list of reserved names please see:
  1098. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1099. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1100. * JSPB instance for transitional soy proto support:
  1101. * http://goto/soy-param-migration
  1102. * @return {!Object}
  1103. */
  1104. proto.google.protobuf.BytesValue.prototype.toObject = function(opt_includeInstance) {
  1105. return proto.google.protobuf.BytesValue.toObject(opt_includeInstance, this);
  1106. };
  1107. /**
  1108. * Static version of the {@see toObject} method.
  1109. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1110. * the JSPB instance for transitional soy proto support:
  1111. * http://goto/soy-param-migration
  1112. * @param {!proto.google.protobuf.BytesValue} msg The msg instance to transform.
  1113. * @return {!Object}
  1114. * @suppress {unusedLocalVariables} f is only used for nested messages
  1115. */
  1116. proto.google.protobuf.BytesValue.toObject = function(includeInstance, msg) {
  1117. var f, obj = {
  1118. value: msg.getValue_asB64()
  1119. };
  1120. if (includeInstance) {
  1121. obj.$jspbMessageInstance = msg;
  1122. }
  1123. return obj;
  1124. };
  1125. }
  1126. /**
  1127. * Deserializes binary data (in protobuf wire format).
  1128. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1129. * @return {!proto.google.protobuf.BytesValue}
  1130. */
  1131. proto.google.protobuf.BytesValue.deserializeBinary = function(bytes) {
  1132. var reader = new jspb.BinaryReader(bytes);
  1133. var msg = new proto.google.protobuf.BytesValue;
  1134. return proto.google.protobuf.BytesValue.deserializeBinaryFromReader(msg, reader);
  1135. };
  1136. /**
  1137. * Deserializes binary data (in protobuf wire format) from the
  1138. * given reader into the given message object.
  1139. * @param {!proto.google.protobuf.BytesValue} msg The message object to deserialize into.
  1140. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1141. * @return {!proto.google.protobuf.BytesValue}
  1142. */
  1143. proto.google.protobuf.BytesValue.deserializeBinaryFromReader = function(msg, reader) {
  1144. while (reader.nextField()) {
  1145. if (reader.isEndGroup()) {
  1146. break;
  1147. }
  1148. var field = reader.getFieldNumber();
  1149. switch (field) {
  1150. case 1:
  1151. var value = /** @type {!Uint8Array} */ (reader.readBytes());
  1152. msg.setValue(value);
  1153. break;
  1154. default:
  1155. reader.skipField();
  1156. break;
  1157. }
  1158. }
  1159. return msg;
  1160. };
  1161. /**
  1162. * Serializes the message to binary data (in protobuf wire format).
  1163. * @return {!Uint8Array}
  1164. */
  1165. proto.google.protobuf.BytesValue.prototype.serializeBinary = function() {
  1166. var writer = new jspb.BinaryWriter();
  1167. proto.google.protobuf.BytesValue.serializeBinaryToWriter(this, writer);
  1168. return writer.getResultBuffer();
  1169. };
  1170. /**
  1171. * Serializes the given message to binary data (in protobuf wire
  1172. * format), writing to the given BinaryWriter.
  1173. * @param {!proto.google.protobuf.BytesValue} message
  1174. * @param {!jspb.BinaryWriter} writer
  1175. * @suppress {unusedLocalVariables} f is only used for nested messages
  1176. */
  1177. proto.google.protobuf.BytesValue.serializeBinaryToWriter = function(message, writer) {
  1178. var f = undefined;
  1179. f = message.getValue_asU8();
  1180. if (f.length > 0) {
  1181. writer.writeBytes(
  1182. 1,
  1183. f
  1184. );
  1185. }
  1186. };
  1187. /**
  1188. * optional bytes value = 1;
  1189. * @return {string}
  1190. */
  1191. proto.google.protobuf.BytesValue.prototype.getValue = function() {
  1192. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1193. };
  1194. /**
  1195. * optional bytes value = 1;
  1196. * This is a type-conversion wrapper around `getValue()`
  1197. * @return {string}
  1198. */
  1199. proto.google.protobuf.BytesValue.prototype.getValue_asB64 = function() {
  1200. return /** @type {string} */ (jspb.Message.bytesAsB64(
  1201. this.getValue()));
  1202. };
  1203. /**
  1204. * optional bytes value = 1;
  1205. * Note that Uint8Array is not supported on all browsers.
  1206. * @see http://caniuse.com/Uint8Array
  1207. * This is a type-conversion wrapper around `getValue()`
  1208. * @return {!Uint8Array}
  1209. */
  1210. proto.google.protobuf.BytesValue.prototype.getValue_asU8 = function() {
  1211. return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  1212. this.getValue()));
  1213. };
  1214. /**
  1215. * @param {!(string|Uint8Array)} value
  1216. * @return {!proto.google.protobuf.BytesValue} returns this
  1217. */
  1218. proto.google.protobuf.BytesValue.prototype.setValue = function(value) {
  1219. return jspb.Message.setProto3BytesField(this, 1, value);
  1220. };
  1221. goog.object.extend(exports, proto.google.protobuf);
  1222. // Generated by Spine ProtoJs Plugin
  1223. proto.google.protobuf.Int64Value.typeUrl = function() {
  1224. return 'type.googleapis.com/google.protobuf.Int64Value';
  1225. };
  1226. // Generated by Spine ProtoJs Plugin
  1227. proto.google.protobuf.Int32Value.typeUrl = function() {
  1228. return 'type.googleapis.com/google.protobuf.Int32Value';
  1229. };
  1230. // Generated by Spine ProtoJs Plugin
  1231. proto.google.protobuf.FloatValue.typeUrl = function() {
  1232. return 'type.googleapis.com/google.protobuf.FloatValue';
  1233. };
  1234. // Generated by Spine ProtoJs Plugin
  1235. proto.google.protobuf.UInt64Value.typeUrl = function() {
  1236. return 'type.googleapis.com/google.protobuf.UInt64Value';
  1237. };
  1238. // Generated by Spine ProtoJs Plugin
  1239. proto.google.protobuf.StringValue.typeUrl = function() {
  1240. return 'type.googleapis.com/google.protobuf.StringValue';
  1241. };
  1242. // Generated by Spine ProtoJs Plugin
  1243. proto.google.protobuf.BytesValue.typeUrl = function() {
  1244. return 'type.googleapis.com/google.protobuf.BytesValue';
  1245. };
  1246. // Generated by Spine ProtoJs Plugin
  1247. proto.google.protobuf.BoolValue.typeUrl = function() {
  1248. return 'type.googleapis.com/google.protobuf.BoolValue';
  1249. };
  1250. // Generated by Spine ProtoJs Plugin
  1251. proto.google.protobuf.UInt32Value.typeUrl = function() {
  1252. return 'type.googleapis.com/google.protobuf.UInt32Value';
  1253. };
  1254. // Generated by Spine ProtoJs Plugin
  1255. proto.google.protobuf.DoubleValue.typeUrl = function() {
  1256. return 'type.googleapis.com/google.protobuf.DoubleValue';
  1257. };