Source: proto/spine/options_pb.js

  1. // source: spine/options.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. var google_protobuf_descriptor_pb = require('../google/protobuf/descriptor_pb.js');
  14. goog.object.extend(proto, google_protobuf_descriptor_pb);
  15. goog.exportSymbol('proto.EntityOption', null, global);
  16. goog.exportSymbol('proto.EntityOption.Kind', null, global);
  17. goog.exportSymbol('proto.EntityOption.Visibility', null, global);
  18. goog.exportSymbol('proto.GoesOption', null, global);
  19. goog.exportSymbol('proto.IfInvalidOption', null, global);
  20. goog.exportSymbol('proto.IfMissingOption', null, global);
  21. goog.exportSymbol('proto.IsOption', null, global);
  22. goog.exportSymbol('proto.MaxOption', null, global);
  23. goog.exportSymbol('proto.MinOption', null, global);
  24. goog.exportSymbol('proto.PatternOption', null, global);
  25. goog.exportSymbol('proto.PatternOption.Modifier', null, global);
  26. goog.exportSymbol('proto.beta', null, global);
  27. goog.exportSymbol('proto.betaAll', null, global);
  28. goog.exportSymbol('proto.betaType', null, global);
  29. goog.exportSymbol('proto.column', null, global);
  30. goog.exportSymbol('proto.constraintFor', null, global);
  31. goog.exportSymbol('proto.defaultMessage', null, global);
  32. goog.exportSymbol('proto.distinct', null, global);
  33. goog.exportSymbol('proto.entity', null, global);
  34. goog.exportSymbol('proto.everyIs', null, global);
  35. goog.exportSymbol('proto.experimental', null, global);
  36. goog.exportSymbol('proto.experimentalAll', null, global);
  37. goog.exportSymbol('proto.experimentalType', null, global);
  38. goog.exportSymbol('proto.goes', null, global);
  39. goog.exportSymbol('proto.ifInvalid', null, global);
  40. goog.exportSymbol('proto.ifMissing', null, global);
  41. goog.exportSymbol('proto.internal', null, global);
  42. goog.exportSymbol('proto.internalAll', null, global);
  43. goog.exportSymbol('proto.internalType', null, global);
  44. goog.exportSymbol('proto.is', null, global);
  45. goog.exportSymbol('proto.isRequired', null, global);
  46. goog.exportSymbol('proto.max', null, global);
  47. goog.exportSymbol('proto.min', null, global);
  48. goog.exportSymbol('proto.pattern', null, global);
  49. goog.exportSymbol('proto.range', null, global);
  50. goog.exportSymbol('proto.required', null, global);
  51. goog.exportSymbol('proto.requiredField', null, global);
  52. goog.exportSymbol('proto.setOnce', null, global);
  53. goog.exportSymbol('proto.spiAll', null, global);
  54. goog.exportSymbol('proto.spiService', null, global);
  55. goog.exportSymbol('proto.spiType', null, global);
  56. goog.exportSymbol('proto.typeUrlPrefix', null, global);
  57. goog.exportSymbol('proto.validate', null, global);
  58. /**
  59. * Generated by JsPbCodeGenerator.
  60. * @param {Array=} opt_data Optional initial data array, typically from a
  61. * server response, or constructed directly in Javascript. The array is used
  62. * in place and becomes part of the constructed object. It is not cloned.
  63. * If no data is provided, the constructed object will be empty, but still
  64. * valid.
  65. * @extends {jspb.Message}
  66. * @constructor
  67. */
  68. proto.IfMissingOption = function(opt_data) {
  69. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  70. };
  71. goog.inherits(proto.IfMissingOption, jspb.Message);
  72. if (goog.DEBUG && !COMPILED) {
  73. /**
  74. * @public
  75. * @override
  76. */
  77. proto.IfMissingOption.displayName = 'proto.IfMissingOption';
  78. }
  79. /**
  80. * Generated by JsPbCodeGenerator.
  81. * @param {Array=} opt_data Optional initial data array, typically from a
  82. * server response, or constructed directly in Javascript. The array is used
  83. * in place and becomes part of the constructed object. It is not cloned.
  84. * If no data is provided, the constructed object will be empty, but still
  85. * valid.
  86. * @extends {jspb.Message}
  87. * @constructor
  88. */
  89. proto.MinOption = function(opt_data) {
  90. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  91. };
  92. goog.inherits(proto.MinOption, jspb.Message);
  93. if (goog.DEBUG && !COMPILED) {
  94. /**
  95. * @public
  96. * @override
  97. */
  98. proto.MinOption.displayName = 'proto.MinOption';
  99. }
  100. /**
  101. * Generated by JsPbCodeGenerator.
  102. * @param {Array=} opt_data Optional initial data array, typically from a
  103. * server response, or constructed directly in Javascript. The array is used
  104. * in place and becomes part of the constructed object. It is not cloned.
  105. * If no data is provided, the constructed object will be empty, but still
  106. * valid.
  107. * @extends {jspb.Message}
  108. * @constructor
  109. */
  110. proto.MaxOption = function(opt_data) {
  111. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  112. };
  113. goog.inherits(proto.MaxOption, jspb.Message);
  114. if (goog.DEBUG && !COMPILED) {
  115. /**
  116. * @public
  117. * @override
  118. */
  119. proto.MaxOption.displayName = 'proto.MaxOption';
  120. }
  121. /**
  122. * Generated by JsPbCodeGenerator.
  123. * @param {Array=} opt_data Optional initial data array, typically from a
  124. * server response, or constructed directly in Javascript. The array is used
  125. * in place and becomes part of the constructed object. It is not cloned.
  126. * If no data is provided, the constructed object will be empty, but still
  127. * valid.
  128. * @extends {jspb.Message}
  129. * @constructor
  130. */
  131. proto.PatternOption = function(opt_data) {
  132. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  133. };
  134. goog.inherits(proto.PatternOption, jspb.Message);
  135. if (goog.DEBUG && !COMPILED) {
  136. /**
  137. * @public
  138. * @override
  139. */
  140. proto.PatternOption.displayName = 'proto.PatternOption';
  141. }
  142. /**
  143. * Generated by JsPbCodeGenerator.
  144. * @param {Array=} opt_data Optional initial data array, typically from a
  145. * server response, or constructed directly in Javascript. The array is used
  146. * in place and becomes part of the constructed object. It is not cloned.
  147. * If no data is provided, the constructed object will be empty, but still
  148. * valid.
  149. * @extends {jspb.Message}
  150. * @constructor
  151. */
  152. proto.PatternOption.Modifier = function(opt_data) {
  153. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  154. };
  155. goog.inherits(proto.PatternOption.Modifier, jspb.Message);
  156. if (goog.DEBUG && !COMPILED) {
  157. /**
  158. * @public
  159. * @override
  160. */
  161. proto.PatternOption.Modifier.displayName = 'proto.PatternOption.Modifier';
  162. }
  163. /**
  164. * Generated by JsPbCodeGenerator.
  165. * @param {Array=} opt_data Optional initial data array, typically from a
  166. * server response, or constructed directly in Javascript. The array is used
  167. * in place and becomes part of the constructed object. It is not cloned.
  168. * If no data is provided, the constructed object will be empty, but still
  169. * valid.
  170. * @extends {jspb.Message}
  171. * @constructor
  172. */
  173. proto.IfInvalidOption = function(opt_data) {
  174. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  175. };
  176. goog.inherits(proto.IfInvalidOption, jspb.Message);
  177. if (goog.DEBUG && !COMPILED) {
  178. /**
  179. * @public
  180. * @override
  181. */
  182. proto.IfInvalidOption.displayName = 'proto.IfInvalidOption';
  183. }
  184. /**
  185. * Generated by JsPbCodeGenerator.
  186. * @param {Array=} opt_data Optional initial data array, typically from a
  187. * server response, or constructed directly in Javascript. The array is used
  188. * in place and becomes part of the constructed object. It is not cloned.
  189. * If no data is provided, the constructed object will be empty, but still
  190. * valid.
  191. * @extends {jspb.Message}
  192. * @constructor
  193. */
  194. proto.GoesOption = function(opt_data) {
  195. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  196. };
  197. goog.inherits(proto.GoesOption, jspb.Message);
  198. if (goog.DEBUG && !COMPILED) {
  199. /**
  200. * @public
  201. * @override
  202. */
  203. proto.GoesOption.displayName = 'proto.GoesOption';
  204. }
  205. /**
  206. * Generated by JsPbCodeGenerator.
  207. * @param {Array=} opt_data Optional initial data array, typically from a
  208. * server response, or constructed directly in Javascript. The array is used
  209. * in place and becomes part of the constructed object. It is not cloned.
  210. * If no data is provided, the constructed object will be empty, but still
  211. * valid.
  212. * @extends {jspb.Message}
  213. * @constructor
  214. */
  215. proto.EntityOption = function(opt_data) {
  216. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  217. };
  218. goog.inherits(proto.EntityOption, jspb.Message);
  219. if (goog.DEBUG && !COMPILED) {
  220. /**
  221. * @public
  222. * @override
  223. */
  224. proto.EntityOption.displayName = 'proto.EntityOption';
  225. }
  226. /**
  227. * Generated by JsPbCodeGenerator.
  228. * @param {Array=} opt_data Optional initial data array, typically from a
  229. * server response, or constructed directly in Javascript. The array is used
  230. * in place and becomes part of the constructed object. It is not cloned.
  231. * If no data is provided, the constructed object will be empty, but still
  232. * valid.
  233. * @extends {jspb.Message}
  234. * @constructor
  235. */
  236. proto.IsOption = function(opt_data) {
  237. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  238. };
  239. goog.inherits(proto.IsOption, jspb.Message);
  240. if (goog.DEBUG && !COMPILED) {
  241. /**
  242. * @public
  243. * @override
  244. */
  245. proto.IsOption.displayName = 'proto.IsOption';
  246. }
  247. if (jspb.Message.GENERATE_TO_OBJECT) {
  248. /**
  249. * Creates an object representation of this proto.
  250. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  251. * Optional fields that are not set will be set to undefined.
  252. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  253. * For the list of reserved names please see:
  254. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  255. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  256. * JSPB instance for transitional soy proto support:
  257. * http://goto/soy-param-migration
  258. * @return {!Object}
  259. */
  260. proto.IfMissingOption.prototype.toObject = function(opt_includeInstance) {
  261. return proto.IfMissingOption.toObject(opt_includeInstance, this);
  262. };
  263. /**
  264. * Static version of the {@see toObject} method.
  265. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  266. * the JSPB instance for transitional soy proto support:
  267. * http://goto/soy-param-migration
  268. * @param {!proto.IfMissingOption} msg The msg instance to transform.
  269. * @return {!Object}
  270. * @suppress {unusedLocalVariables} f is only used for nested messages
  271. */
  272. proto.IfMissingOption.toObject = function(includeInstance, msg) {
  273. var f, obj = {
  274. msgFormat: jspb.Message.getFieldWithDefault(msg, 1, "")
  275. };
  276. if (includeInstance) {
  277. obj.$jspbMessageInstance = msg;
  278. }
  279. return obj;
  280. };
  281. }
  282. /**
  283. * Deserializes binary data (in protobuf wire format).
  284. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  285. * @return {!proto.IfMissingOption}
  286. */
  287. proto.IfMissingOption.deserializeBinary = function(bytes) {
  288. var reader = new jspb.BinaryReader(bytes);
  289. var msg = new proto.IfMissingOption;
  290. return proto.IfMissingOption.deserializeBinaryFromReader(msg, reader);
  291. };
  292. /**
  293. * Deserializes binary data (in protobuf wire format) from the
  294. * given reader into the given message object.
  295. * @param {!proto.IfMissingOption} msg The message object to deserialize into.
  296. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  297. * @return {!proto.IfMissingOption}
  298. */
  299. proto.IfMissingOption.deserializeBinaryFromReader = function(msg, reader) {
  300. while (reader.nextField()) {
  301. if (reader.isEndGroup()) {
  302. break;
  303. }
  304. var field = reader.getFieldNumber();
  305. switch (field) {
  306. case 1:
  307. var value = /** @type {string} */ (reader.readString());
  308. msg.setMsgFormat(value);
  309. break;
  310. default:
  311. reader.skipField();
  312. break;
  313. }
  314. }
  315. return msg;
  316. };
  317. /**
  318. * Serializes the message to binary data (in protobuf wire format).
  319. * @return {!Uint8Array}
  320. */
  321. proto.IfMissingOption.prototype.serializeBinary = function() {
  322. var writer = new jspb.BinaryWriter();
  323. proto.IfMissingOption.serializeBinaryToWriter(this, writer);
  324. return writer.getResultBuffer();
  325. };
  326. /**
  327. * Serializes the given message to binary data (in protobuf wire
  328. * format), writing to the given BinaryWriter.
  329. * @param {!proto.IfMissingOption} message
  330. * @param {!jspb.BinaryWriter} writer
  331. * @suppress {unusedLocalVariables} f is only used for nested messages
  332. */
  333. proto.IfMissingOption.serializeBinaryToWriter = function(message, writer) {
  334. var f = undefined;
  335. f = message.getMsgFormat();
  336. if (f.length > 0) {
  337. writer.writeString(
  338. 1,
  339. f
  340. );
  341. }
  342. };
  343. /**
  344. * optional string msg_format = 1;
  345. * @return {string}
  346. */
  347. proto.IfMissingOption.prototype.getMsgFormat = function() {
  348. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  349. };
  350. /**
  351. * @param {string} value
  352. * @return {!proto.IfMissingOption} returns this
  353. */
  354. proto.IfMissingOption.prototype.setMsgFormat = function(value) {
  355. return jspb.Message.setProto3StringField(this, 1, value);
  356. };
  357. if (jspb.Message.GENERATE_TO_OBJECT) {
  358. /**
  359. * Creates an object representation of this proto.
  360. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  361. * Optional fields that are not set will be set to undefined.
  362. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  363. * For the list of reserved names please see:
  364. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  365. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  366. * JSPB instance for transitional soy proto support:
  367. * http://goto/soy-param-migration
  368. * @return {!Object}
  369. */
  370. proto.MinOption.prototype.toObject = function(opt_includeInstance) {
  371. return proto.MinOption.toObject(opt_includeInstance, this);
  372. };
  373. /**
  374. * Static version of the {@see toObject} method.
  375. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  376. * the JSPB instance for transitional soy proto support:
  377. * http://goto/soy-param-migration
  378. * @param {!proto.MinOption} msg The msg instance to transform.
  379. * @return {!Object}
  380. * @suppress {unusedLocalVariables} f is only used for nested messages
  381. */
  382. proto.MinOption.toObject = function(includeInstance, msg) {
  383. var f, obj = {
  384. value: jspb.Message.getFieldWithDefault(msg, 1, ""),
  385. exclusive: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
  386. msgFormat: jspb.Message.getFieldWithDefault(msg, 3, "")
  387. };
  388. if (includeInstance) {
  389. obj.$jspbMessageInstance = msg;
  390. }
  391. return obj;
  392. };
  393. }
  394. /**
  395. * Deserializes binary data (in protobuf wire format).
  396. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  397. * @return {!proto.MinOption}
  398. */
  399. proto.MinOption.deserializeBinary = function(bytes) {
  400. var reader = new jspb.BinaryReader(bytes);
  401. var msg = new proto.MinOption;
  402. return proto.MinOption.deserializeBinaryFromReader(msg, reader);
  403. };
  404. /**
  405. * Deserializes binary data (in protobuf wire format) from the
  406. * given reader into the given message object.
  407. * @param {!proto.MinOption} msg The message object to deserialize into.
  408. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  409. * @return {!proto.MinOption}
  410. */
  411. proto.MinOption.deserializeBinaryFromReader = function(msg, reader) {
  412. while (reader.nextField()) {
  413. if (reader.isEndGroup()) {
  414. break;
  415. }
  416. var field = reader.getFieldNumber();
  417. switch (field) {
  418. case 1:
  419. var value = /** @type {string} */ (reader.readString());
  420. msg.setValue(value);
  421. break;
  422. case 2:
  423. var value = /** @type {boolean} */ (reader.readBool());
  424. msg.setExclusive(value);
  425. break;
  426. case 3:
  427. var value = /** @type {string} */ (reader.readString());
  428. msg.setMsgFormat(value);
  429. break;
  430. default:
  431. reader.skipField();
  432. break;
  433. }
  434. }
  435. return msg;
  436. };
  437. /**
  438. * Serializes the message to binary data (in protobuf wire format).
  439. * @return {!Uint8Array}
  440. */
  441. proto.MinOption.prototype.serializeBinary = function() {
  442. var writer = new jspb.BinaryWriter();
  443. proto.MinOption.serializeBinaryToWriter(this, writer);
  444. return writer.getResultBuffer();
  445. };
  446. /**
  447. * Serializes the given message to binary data (in protobuf wire
  448. * format), writing to the given BinaryWriter.
  449. * @param {!proto.MinOption} message
  450. * @param {!jspb.BinaryWriter} writer
  451. * @suppress {unusedLocalVariables} f is only used for nested messages
  452. */
  453. proto.MinOption.serializeBinaryToWriter = function(message, writer) {
  454. var f = undefined;
  455. f = message.getValue();
  456. if (f.length > 0) {
  457. writer.writeString(
  458. 1,
  459. f
  460. );
  461. }
  462. f = message.getExclusive();
  463. if (f) {
  464. writer.writeBool(
  465. 2,
  466. f
  467. );
  468. }
  469. f = message.getMsgFormat();
  470. if (f.length > 0) {
  471. writer.writeString(
  472. 3,
  473. f
  474. );
  475. }
  476. };
  477. /**
  478. * optional string value = 1;
  479. * @return {string}
  480. */
  481. proto.MinOption.prototype.getValue = function() {
  482. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  483. };
  484. /**
  485. * @param {string} value
  486. * @return {!proto.MinOption} returns this
  487. */
  488. proto.MinOption.prototype.setValue = function(value) {
  489. return jspb.Message.setProto3StringField(this, 1, value);
  490. };
  491. /**
  492. * optional bool exclusive = 2;
  493. * @return {boolean}
  494. */
  495. proto.MinOption.prototype.getExclusive = function() {
  496. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
  497. };
  498. /**
  499. * @param {boolean} value
  500. * @return {!proto.MinOption} returns this
  501. */
  502. proto.MinOption.prototype.setExclusive = function(value) {
  503. return jspb.Message.setProto3BooleanField(this, 2, value);
  504. };
  505. /**
  506. * optional string msg_format = 3;
  507. * @return {string}
  508. */
  509. proto.MinOption.prototype.getMsgFormat = function() {
  510. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  511. };
  512. /**
  513. * @param {string} value
  514. * @return {!proto.MinOption} returns this
  515. */
  516. proto.MinOption.prototype.setMsgFormat = function(value) {
  517. return jspb.Message.setProto3StringField(this, 3, value);
  518. };
  519. if (jspb.Message.GENERATE_TO_OBJECT) {
  520. /**
  521. * Creates an object representation of this proto.
  522. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  523. * Optional fields that are not set will be set to undefined.
  524. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  525. * For the list of reserved names please see:
  526. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  527. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  528. * JSPB instance for transitional soy proto support:
  529. * http://goto/soy-param-migration
  530. * @return {!Object}
  531. */
  532. proto.MaxOption.prototype.toObject = function(opt_includeInstance) {
  533. return proto.MaxOption.toObject(opt_includeInstance, this);
  534. };
  535. /**
  536. * Static version of the {@see toObject} method.
  537. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  538. * the JSPB instance for transitional soy proto support:
  539. * http://goto/soy-param-migration
  540. * @param {!proto.MaxOption} msg The msg instance to transform.
  541. * @return {!Object}
  542. * @suppress {unusedLocalVariables} f is only used for nested messages
  543. */
  544. proto.MaxOption.toObject = function(includeInstance, msg) {
  545. var f, obj = {
  546. value: jspb.Message.getFieldWithDefault(msg, 1, ""),
  547. exclusive: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
  548. msgFormat: jspb.Message.getFieldWithDefault(msg, 3, "")
  549. };
  550. if (includeInstance) {
  551. obj.$jspbMessageInstance = msg;
  552. }
  553. return obj;
  554. };
  555. }
  556. /**
  557. * Deserializes binary data (in protobuf wire format).
  558. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  559. * @return {!proto.MaxOption}
  560. */
  561. proto.MaxOption.deserializeBinary = function(bytes) {
  562. var reader = new jspb.BinaryReader(bytes);
  563. var msg = new proto.MaxOption;
  564. return proto.MaxOption.deserializeBinaryFromReader(msg, reader);
  565. };
  566. /**
  567. * Deserializes binary data (in protobuf wire format) from the
  568. * given reader into the given message object.
  569. * @param {!proto.MaxOption} msg The message object to deserialize into.
  570. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  571. * @return {!proto.MaxOption}
  572. */
  573. proto.MaxOption.deserializeBinaryFromReader = function(msg, reader) {
  574. while (reader.nextField()) {
  575. if (reader.isEndGroup()) {
  576. break;
  577. }
  578. var field = reader.getFieldNumber();
  579. switch (field) {
  580. case 1:
  581. var value = /** @type {string} */ (reader.readString());
  582. msg.setValue(value);
  583. break;
  584. case 2:
  585. var value = /** @type {boolean} */ (reader.readBool());
  586. msg.setExclusive(value);
  587. break;
  588. case 3:
  589. var value = /** @type {string} */ (reader.readString());
  590. msg.setMsgFormat(value);
  591. break;
  592. default:
  593. reader.skipField();
  594. break;
  595. }
  596. }
  597. return msg;
  598. };
  599. /**
  600. * Serializes the message to binary data (in protobuf wire format).
  601. * @return {!Uint8Array}
  602. */
  603. proto.MaxOption.prototype.serializeBinary = function() {
  604. var writer = new jspb.BinaryWriter();
  605. proto.MaxOption.serializeBinaryToWriter(this, writer);
  606. return writer.getResultBuffer();
  607. };
  608. /**
  609. * Serializes the given message to binary data (in protobuf wire
  610. * format), writing to the given BinaryWriter.
  611. * @param {!proto.MaxOption} message
  612. * @param {!jspb.BinaryWriter} writer
  613. * @suppress {unusedLocalVariables} f is only used for nested messages
  614. */
  615. proto.MaxOption.serializeBinaryToWriter = function(message, writer) {
  616. var f = undefined;
  617. f = message.getValue();
  618. if (f.length > 0) {
  619. writer.writeString(
  620. 1,
  621. f
  622. );
  623. }
  624. f = message.getExclusive();
  625. if (f) {
  626. writer.writeBool(
  627. 2,
  628. f
  629. );
  630. }
  631. f = message.getMsgFormat();
  632. if (f.length > 0) {
  633. writer.writeString(
  634. 3,
  635. f
  636. );
  637. }
  638. };
  639. /**
  640. * optional string value = 1;
  641. * @return {string}
  642. */
  643. proto.MaxOption.prototype.getValue = function() {
  644. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  645. };
  646. /**
  647. * @param {string} value
  648. * @return {!proto.MaxOption} returns this
  649. */
  650. proto.MaxOption.prototype.setValue = function(value) {
  651. return jspb.Message.setProto3StringField(this, 1, value);
  652. };
  653. /**
  654. * optional bool exclusive = 2;
  655. * @return {boolean}
  656. */
  657. proto.MaxOption.prototype.getExclusive = function() {
  658. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
  659. };
  660. /**
  661. * @param {boolean} value
  662. * @return {!proto.MaxOption} returns this
  663. */
  664. proto.MaxOption.prototype.setExclusive = function(value) {
  665. return jspb.Message.setProto3BooleanField(this, 2, value);
  666. };
  667. /**
  668. * optional string msg_format = 3;
  669. * @return {string}
  670. */
  671. proto.MaxOption.prototype.getMsgFormat = function() {
  672. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  673. };
  674. /**
  675. * @param {string} value
  676. * @return {!proto.MaxOption} returns this
  677. */
  678. proto.MaxOption.prototype.setMsgFormat = function(value) {
  679. return jspb.Message.setProto3StringField(this, 3, value);
  680. };
  681. if (jspb.Message.GENERATE_TO_OBJECT) {
  682. /**
  683. * Creates an object representation of this proto.
  684. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  685. * Optional fields that are not set will be set to undefined.
  686. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  687. * For the list of reserved names please see:
  688. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  689. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  690. * JSPB instance for transitional soy proto support:
  691. * http://goto/soy-param-migration
  692. * @return {!Object}
  693. */
  694. proto.PatternOption.prototype.toObject = function(opt_includeInstance) {
  695. return proto.PatternOption.toObject(opt_includeInstance, this);
  696. };
  697. /**
  698. * Static version of the {@see toObject} method.
  699. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  700. * the JSPB instance for transitional soy proto support:
  701. * http://goto/soy-param-migration
  702. * @param {!proto.PatternOption} msg The msg instance to transform.
  703. * @return {!Object}
  704. * @suppress {unusedLocalVariables} f is only used for nested messages
  705. */
  706. proto.PatternOption.toObject = function(includeInstance, msg) {
  707. var f, obj = {
  708. regex: jspb.Message.getFieldWithDefault(msg, 1, ""),
  709. flag: jspb.Message.getFieldWithDefault(msg, 2, 0),
  710. modifier: (f = msg.getModifier()) && proto.PatternOption.Modifier.toObject(includeInstance, f),
  711. msgFormat: jspb.Message.getFieldWithDefault(msg, 3, "")
  712. };
  713. if (includeInstance) {
  714. obj.$jspbMessageInstance = msg;
  715. }
  716. return obj;
  717. };
  718. }
  719. /**
  720. * Deserializes binary data (in protobuf wire format).
  721. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  722. * @return {!proto.PatternOption}
  723. */
  724. proto.PatternOption.deserializeBinary = function(bytes) {
  725. var reader = new jspb.BinaryReader(bytes);
  726. var msg = new proto.PatternOption;
  727. return proto.PatternOption.deserializeBinaryFromReader(msg, reader);
  728. };
  729. /**
  730. * Deserializes binary data (in protobuf wire format) from the
  731. * given reader into the given message object.
  732. * @param {!proto.PatternOption} msg The message object to deserialize into.
  733. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  734. * @return {!proto.PatternOption}
  735. */
  736. proto.PatternOption.deserializeBinaryFromReader = function(msg, reader) {
  737. while (reader.nextField()) {
  738. if (reader.isEndGroup()) {
  739. break;
  740. }
  741. var field = reader.getFieldNumber();
  742. switch (field) {
  743. case 1:
  744. var value = /** @type {string} */ (reader.readString());
  745. msg.setRegex(value);
  746. break;
  747. case 2:
  748. var value = /** @type {number} */ (reader.readInt32());
  749. msg.setFlag(value);
  750. break;
  751. case 4:
  752. var value = new proto.PatternOption.Modifier;
  753. reader.readMessage(value,proto.PatternOption.Modifier.deserializeBinaryFromReader);
  754. msg.setModifier(value);
  755. break;
  756. case 3:
  757. var value = /** @type {string} */ (reader.readString());
  758. msg.setMsgFormat(value);
  759. break;
  760. default:
  761. reader.skipField();
  762. break;
  763. }
  764. }
  765. return msg;
  766. };
  767. /**
  768. * Serializes the message to binary data (in protobuf wire format).
  769. * @return {!Uint8Array}
  770. */
  771. proto.PatternOption.prototype.serializeBinary = function() {
  772. var writer = new jspb.BinaryWriter();
  773. proto.PatternOption.serializeBinaryToWriter(this, writer);
  774. return writer.getResultBuffer();
  775. };
  776. /**
  777. * Serializes the given message to binary data (in protobuf wire
  778. * format), writing to the given BinaryWriter.
  779. * @param {!proto.PatternOption} message
  780. * @param {!jspb.BinaryWriter} writer
  781. * @suppress {unusedLocalVariables} f is only used for nested messages
  782. */
  783. proto.PatternOption.serializeBinaryToWriter = function(message, writer) {
  784. var f = undefined;
  785. f = message.getRegex();
  786. if (f.length > 0) {
  787. writer.writeString(
  788. 1,
  789. f
  790. );
  791. }
  792. f = message.getFlag();
  793. if (f !== 0) {
  794. writer.writeInt32(
  795. 2,
  796. f
  797. );
  798. }
  799. f = message.getModifier();
  800. if (f != null) {
  801. writer.writeMessage(
  802. 4,
  803. f,
  804. proto.PatternOption.Modifier.serializeBinaryToWriter
  805. );
  806. }
  807. f = message.getMsgFormat();
  808. if (f.length > 0) {
  809. writer.writeString(
  810. 3,
  811. f
  812. );
  813. }
  814. };
  815. if (jspb.Message.GENERATE_TO_OBJECT) {
  816. /**
  817. * Creates an object representation of this proto.
  818. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  819. * Optional fields that are not set will be set to undefined.
  820. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  821. * For the list of reserved names please see:
  822. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  823. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  824. * JSPB instance for transitional soy proto support:
  825. * http://goto/soy-param-migration
  826. * @return {!Object}
  827. */
  828. proto.PatternOption.Modifier.prototype.toObject = function(opt_includeInstance) {
  829. return proto.PatternOption.Modifier.toObject(opt_includeInstance, this);
  830. };
  831. /**
  832. * Static version of the {@see toObject} method.
  833. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  834. * the JSPB instance for transitional soy proto support:
  835. * http://goto/soy-param-migration
  836. * @param {!proto.PatternOption.Modifier} msg The msg instance to transform.
  837. * @return {!Object}
  838. * @suppress {unusedLocalVariables} f is only used for nested messages
  839. */
  840. proto.PatternOption.Modifier.toObject = function(includeInstance, msg) {
  841. var f, obj = {
  842. dotAll: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
  843. caseInsensitive: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
  844. multiline: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
  845. unicode: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
  846. partialMatch: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
  847. };
  848. if (includeInstance) {
  849. obj.$jspbMessageInstance = msg;
  850. }
  851. return obj;
  852. };
  853. }
  854. /**
  855. * Deserializes binary data (in protobuf wire format).
  856. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  857. * @return {!proto.PatternOption.Modifier}
  858. */
  859. proto.PatternOption.Modifier.deserializeBinary = function(bytes) {
  860. var reader = new jspb.BinaryReader(bytes);
  861. var msg = new proto.PatternOption.Modifier;
  862. return proto.PatternOption.Modifier.deserializeBinaryFromReader(msg, reader);
  863. };
  864. /**
  865. * Deserializes binary data (in protobuf wire format) from the
  866. * given reader into the given message object.
  867. * @param {!proto.PatternOption.Modifier} msg The message object to deserialize into.
  868. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  869. * @return {!proto.PatternOption.Modifier}
  870. */
  871. proto.PatternOption.Modifier.deserializeBinaryFromReader = function(msg, reader) {
  872. while (reader.nextField()) {
  873. if (reader.isEndGroup()) {
  874. break;
  875. }
  876. var field = reader.getFieldNumber();
  877. switch (field) {
  878. case 1:
  879. var value = /** @type {boolean} */ (reader.readBool());
  880. msg.setDotAll(value);
  881. break;
  882. case 2:
  883. var value = /** @type {boolean} */ (reader.readBool());
  884. msg.setCaseInsensitive(value);
  885. break;
  886. case 3:
  887. var value = /** @type {boolean} */ (reader.readBool());
  888. msg.setMultiline(value);
  889. break;
  890. case 4:
  891. var value = /** @type {boolean} */ (reader.readBool());
  892. msg.setUnicode(value);
  893. break;
  894. case 5:
  895. var value = /** @type {boolean} */ (reader.readBool());
  896. msg.setPartialMatch(value);
  897. break;
  898. default:
  899. reader.skipField();
  900. break;
  901. }
  902. }
  903. return msg;
  904. };
  905. /**
  906. * Serializes the message to binary data (in protobuf wire format).
  907. * @return {!Uint8Array}
  908. */
  909. proto.PatternOption.Modifier.prototype.serializeBinary = function() {
  910. var writer = new jspb.BinaryWriter();
  911. proto.PatternOption.Modifier.serializeBinaryToWriter(this, writer);
  912. return writer.getResultBuffer();
  913. };
  914. /**
  915. * Serializes the given message to binary data (in protobuf wire
  916. * format), writing to the given BinaryWriter.
  917. * @param {!proto.PatternOption.Modifier} message
  918. * @param {!jspb.BinaryWriter} writer
  919. * @suppress {unusedLocalVariables} f is only used for nested messages
  920. */
  921. proto.PatternOption.Modifier.serializeBinaryToWriter = function(message, writer) {
  922. var f = undefined;
  923. f = message.getDotAll();
  924. if (f) {
  925. writer.writeBool(
  926. 1,
  927. f
  928. );
  929. }
  930. f = message.getCaseInsensitive();
  931. if (f) {
  932. writer.writeBool(
  933. 2,
  934. f
  935. );
  936. }
  937. f = message.getMultiline();
  938. if (f) {
  939. writer.writeBool(
  940. 3,
  941. f
  942. );
  943. }
  944. f = message.getUnicode();
  945. if (f) {
  946. writer.writeBool(
  947. 4,
  948. f
  949. );
  950. }
  951. f = message.getPartialMatch();
  952. if (f) {
  953. writer.writeBool(
  954. 5,
  955. f
  956. );
  957. }
  958. };
  959. /**
  960. * optional bool dot_all = 1;
  961. * @return {boolean}
  962. */
  963. proto.PatternOption.Modifier.prototype.getDotAll = function() {
  964. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
  965. };
  966. /**
  967. * @param {boolean} value
  968. * @return {!proto.PatternOption.Modifier} returns this
  969. */
  970. proto.PatternOption.Modifier.prototype.setDotAll = function(value) {
  971. return jspb.Message.setProto3BooleanField(this, 1, value);
  972. };
  973. /**
  974. * optional bool case_insensitive = 2;
  975. * @return {boolean}
  976. */
  977. proto.PatternOption.Modifier.prototype.getCaseInsensitive = function() {
  978. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
  979. };
  980. /**
  981. * @param {boolean} value
  982. * @return {!proto.PatternOption.Modifier} returns this
  983. */
  984. proto.PatternOption.Modifier.prototype.setCaseInsensitive = function(value) {
  985. return jspb.Message.setProto3BooleanField(this, 2, value);
  986. };
  987. /**
  988. * optional bool multiline = 3;
  989. * @return {boolean}
  990. */
  991. proto.PatternOption.Modifier.prototype.getMultiline = function() {
  992. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
  993. };
  994. /**
  995. * @param {boolean} value
  996. * @return {!proto.PatternOption.Modifier} returns this
  997. */
  998. proto.PatternOption.Modifier.prototype.setMultiline = function(value) {
  999. return jspb.Message.setProto3BooleanField(this, 3, value);
  1000. };
  1001. /**
  1002. * optional bool unicode = 4;
  1003. * @return {boolean}
  1004. */
  1005. proto.PatternOption.Modifier.prototype.getUnicode = function() {
  1006. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
  1007. };
  1008. /**
  1009. * @param {boolean} value
  1010. * @return {!proto.PatternOption.Modifier} returns this
  1011. */
  1012. proto.PatternOption.Modifier.prototype.setUnicode = function(value) {
  1013. return jspb.Message.setProto3BooleanField(this, 4, value);
  1014. };
  1015. /**
  1016. * optional bool partial_match = 5;
  1017. * @return {boolean}
  1018. */
  1019. proto.PatternOption.Modifier.prototype.getPartialMatch = function() {
  1020. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
  1021. };
  1022. /**
  1023. * @param {boolean} value
  1024. * @return {!proto.PatternOption.Modifier} returns this
  1025. */
  1026. proto.PatternOption.Modifier.prototype.setPartialMatch = function(value) {
  1027. return jspb.Message.setProto3BooleanField(this, 5, value);
  1028. };
  1029. /**
  1030. * optional string regex = 1;
  1031. * @return {string}
  1032. */
  1033. proto.PatternOption.prototype.getRegex = function() {
  1034. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1035. };
  1036. /**
  1037. * @param {string} value
  1038. * @return {!proto.PatternOption} returns this
  1039. */
  1040. proto.PatternOption.prototype.setRegex = function(value) {
  1041. return jspb.Message.setProto3StringField(this, 1, value);
  1042. };
  1043. /**
  1044. * optional int32 flag = 2;
  1045. * @return {number}
  1046. */
  1047. proto.PatternOption.prototype.getFlag = function() {
  1048. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  1049. };
  1050. /**
  1051. * @param {number} value
  1052. * @return {!proto.PatternOption} returns this
  1053. */
  1054. proto.PatternOption.prototype.setFlag = function(value) {
  1055. return jspb.Message.setProto3IntField(this, 2, value);
  1056. };
  1057. /**
  1058. * optional Modifier modifier = 4;
  1059. * @return {?proto.PatternOption.Modifier}
  1060. */
  1061. proto.PatternOption.prototype.getModifier = function() {
  1062. return /** @type{?proto.PatternOption.Modifier} */ (
  1063. jspb.Message.getWrapperField(this, proto.PatternOption.Modifier, 4));
  1064. };
  1065. /**
  1066. * @param {?proto.PatternOption.Modifier|undefined} value
  1067. * @return {!proto.PatternOption} returns this
  1068. */
  1069. proto.PatternOption.prototype.setModifier = function(value) {
  1070. return jspb.Message.setWrapperField(this, 4, value);
  1071. };
  1072. /**
  1073. * Clears the message field making it undefined.
  1074. * @return {!proto.PatternOption} returns this
  1075. */
  1076. proto.PatternOption.prototype.clearModifier = function() {
  1077. return this.setModifier(undefined);
  1078. };
  1079. /**
  1080. * Returns whether this field is set.
  1081. * @return {boolean}
  1082. */
  1083. proto.PatternOption.prototype.hasModifier = function() {
  1084. return jspb.Message.getField(this, 4) != null;
  1085. };
  1086. /**
  1087. * optional string msg_format = 3;
  1088. * @return {string}
  1089. */
  1090. proto.PatternOption.prototype.getMsgFormat = function() {
  1091. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  1092. };
  1093. /**
  1094. * @param {string} value
  1095. * @return {!proto.PatternOption} returns this
  1096. */
  1097. proto.PatternOption.prototype.setMsgFormat = function(value) {
  1098. return jspb.Message.setProto3StringField(this, 3, value);
  1099. };
  1100. if (jspb.Message.GENERATE_TO_OBJECT) {
  1101. /**
  1102. * Creates an object representation of this proto.
  1103. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1104. * Optional fields that are not set will be set to undefined.
  1105. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1106. * For the list of reserved names please see:
  1107. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1108. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1109. * JSPB instance for transitional soy proto support:
  1110. * http://goto/soy-param-migration
  1111. * @return {!Object}
  1112. */
  1113. proto.IfInvalidOption.prototype.toObject = function(opt_includeInstance) {
  1114. return proto.IfInvalidOption.toObject(opt_includeInstance, this);
  1115. };
  1116. /**
  1117. * Static version of the {@see toObject} method.
  1118. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1119. * the JSPB instance for transitional soy proto support:
  1120. * http://goto/soy-param-migration
  1121. * @param {!proto.IfInvalidOption} msg The msg instance to transform.
  1122. * @return {!Object}
  1123. * @suppress {unusedLocalVariables} f is only used for nested messages
  1124. */
  1125. proto.IfInvalidOption.toObject = function(includeInstance, msg) {
  1126. var f, obj = {
  1127. msgFormat: jspb.Message.getFieldWithDefault(msg, 1, "")
  1128. };
  1129. if (includeInstance) {
  1130. obj.$jspbMessageInstance = msg;
  1131. }
  1132. return obj;
  1133. };
  1134. }
  1135. /**
  1136. * Deserializes binary data (in protobuf wire format).
  1137. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1138. * @return {!proto.IfInvalidOption}
  1139. */
  1140. proto.IfInvalidOption.deserializeBinary = function(bytes) {
  1141. var reader = new jspb.BinaryReader(bytes);
  1142. var msg = new proto.IfInvalidOption;
  1143. return proto.IfInvalidOption.deserializeBinaryFromReader(msg, reader);
  1144. };
  1145. /**
  1146. * Deserializes binary data (in protobuf wire format) from the
  1147. * given reader into the given message object.
  1148. * @param {!proto.IfInvalidOption} msg The message object to deserialize into.
  1149. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1150. * @return {!proto.IfInvalidOption}
  1151. */
  1152. proto.IfInvalidOption.deserializeBinaryFromReader = function(msg, reader) {
  1153. while (reader.nextField()) {
  1154. if (reader.isEndGroup()) {
  1155. break;
  1156. }
  1157. var field = reader.getFieldNumber();
  1158. switch (field) {
  1159. case 1:
  1160. var value = /** @type {string} */ (reader.readString());
  1161. msg.setMsgFormat(value);
  1162. break;
  1163. default:
  1164. reader.skipField();
  1165. break;
  1166. }
  1167. }
  1168. return msg;
  1169. };
  1170. /**
  1171. * Serializes the message to binary data (in protobuf wire format).
  1172. * @return {!Uint8Array}
  1173. */
  1174. proto.IfInvalidOption.prototype.serializeBinary = function() {
  1175. var writer = new jspb.BinaryWriter();
  1176. proto.IfInvalidOption.serializeBinaryToWriter(this, writer);
  1177. return writer.getResultBuffer();
  1178. };
  1179. /**
  1180. * Serializes the given message to binary data (in protobuf wire
  1181. * format), writing to the given BinaryWriter.
  1182. * @param {!proto.IfInvalidOption} message
  1183. * @param {!jspb.BinaryWriter} writer
  1184. * @suppress {unusedLocalVariables} f is only used for nested messages
  1185. */
  1186. proto.IfInvalidOption.serializeBinaryToWriter = function(message, writer) {
  1187. var f = undefined;
  1188. f = message.getMsgFormat();
  1189. if (f.length > 0) {
  1190. writer.writeString(
  1191. 1,
  1192. f
  1193. );
  1194. }
  1195. };
  1196. /**
  1197. * optional string msg_format = 1;
  1198. * @return {string}
  1199. */
  1200. proto.IfInvalidOption.prototype.getMsgFormat = function() {
  1201. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1202. };
  1203. /**
  1204. * @param {string} value
  1205. * @return {!proto.IfInvalidOption} returns this
  1206. */
  1207. proto.IfInvalidOption.prototype.setMsgFormat = function(value) {
  1208. return jspb.Message.setProto3StringField(this, 1, value);
  1209. };
  1210. if (jspb.Message.GENERATE_TO_OBJECT) {
  1211. /**
  1212. * Creates an object representation of this proto.
  1213. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1214. * Optional fields that are not set will be set to undefined.
  1215. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1216. * For the list of reserved names please see:
  1217. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1218. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1219. * JSPB instance for transitional soy proto support:
  1220. * http://goto/soy-param-migration
  1221. * @return {!Object}
  1222. */
  1223. proto.GoesOption.prototype.toObject = function(opt_includeInstance) {
  1224. return proto.GoesOption.toObject(opt_includeInstance, this);
  1225. };
  1226. /**
  1227. * Static version of the {@see toObject} method.
  1228. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1229. * the JSPB instance for transitional soy proto support:
  1230. * http://goto/soy-param-migration
  1231. * @param {!proto.GoesOption} msg The msg instance to transform.
  1232. * @return {!Object}
  1233. * @suppress {unusedLocalVariables} f is only used for nested messages
  1234. */
  1235. proto.GoesOption.toObject = function(includeInstance, msg) {
  1236. var f, obj = {
  1237. pb_with: jspb.Message.getFieldWithDefault(msg, 1, ""),
  1238. msgFormat: jspb.Message.getFieldWithDefault(msg, 2, "")
  1239. };
  1240. if (includeInstance) {
  1241. obj.$jspbMessageInstance = msg;
  1242. }
  1243. return obj;
  1244. };
  1245. }
  1246. /**
  1247. * Deserializes binary data (in protobuf wire format).
  1248. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1249. * @return {!proto.GoesOption}
  1250. */
  1251. proto.GoesOption.deserializeBinary = function(bytes) {
  1252. var reader = new jspb.BinaryReader(bytes);
  1253. var msg = new proto.GoesOption;
  1254. return proto.GoesOption.deserializeBinaryFromReader(msg, reader);
  1255. };
  1256. /**
  1257. * Deserializes binary data (in protobuf wire format) from the
  1258. * given reader into the given message object.
  1259. * @param {!proto.GoesOption} msg The message object to deserialize into.
  1260. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1261. * @return {!proto.GoesOption}
  1262. */
  1263. proto.GoesOption.deserializeBinaryFromReader = function(msg, reader) {
  1264. while (reader.nextField()) {
  1265. if (reader.isEndGroup()) {
  1266. break;
  1267. }
  1268. var field = reader.getFieldNumber();
  1269. switch (field) {
  1270. case 1:
  1271. var value = /** @type {string} */ (reader.readString());
  1272. msg.setWith(value);
  1273. break;
  1274. case 2:
  1275. var value = /** @type {string} */ (reader.readString());
  1276. msg.setMsgFormat(value);
  1277. break;
  1278. default:
  1279. reader.skipField();
  1280. break;
  1281. }
  1282. }
  1283. return msg;
  1284. };
  1285. /**
  1286. * Serializes the message to binary data (in protobuf wire format).
  1287. * @return {!Uint8Array}
  1288. */
  1289. proto.GoesOption.prototype.serializeBinary = function() {
  1290. var writer = new jspb.BinaryWriter();
  1291. proto.GoesOption.serializeBinaryToWriter(this, writer);
  1292. return writer.getResultBuffer();
  1293. };
  1294. /**
  1295. * Serializes the given message to binary data (in protobuf wire
  1296. * format), writing to the given BinaryWriter.
  1297. * @param {!proto.GoesOption} message
  1298. * @param {!jspb.BinaryWriter} writer
  1299. * @suppress {unusedLocalVariables} f is only used for nested messages
  1300. */
  1301. proto.GoesOption.serializeBinaryToWriter = function(message, writer) {
  1302. var f = undefined;
  1303. f = message.getWith();
  1304. if (f.length > 0) {
  1305. writer.writeString(
  1306. 1,
  1307. f
  1308. );
  1309. }
  1310. f = message.getMsgFormat();
  1311. if (f.length > 0) {
  1312. writer.writeString(
  1313. 2,
  1314. f
  1315. );
  1316. }
  1317. };
  1318. /**
  1319. * optional string with = 1;
  1320. * @return {string}
  1321. */
  1322. proto.GoesOption.prototype.getWith = function() {
  1323. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1324. };
  1325. /**
  1326. * @param {string} value
  1327. * @return {!proto.GoesOption} returns this
  1328. */
  1329. proto.GoesOption.prototype.setWith = function(value) {
  1330. return jspb.Message.setProto3StringField(this, 1, value);
  1331. };
  1332. /**
  1333. * optional string msg_format = 2;
  1334. * @return {string}
  1335. */
  1336. proto.GoesOption.prototype.getMsgFormat = function() {
  1337. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1338. };
  1339. /**
  1340. * @param {string} value
  1341. * @return {!proto.GoesOption} returns this
  1342. */
  1343. proto.GoesOption.prototype.setMsgFormat = function(value) {
  1344. return jspb.Message.setProto3StringField(this, 2, value);
  1345. };
  1346. if (jspb.Message.GENERATE_TO_OBJECT) {
  1347. /**
  1348. * Creates an object representation of this proto.
  1349. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1350. * Optional fields that are not set will be set to undefined.
  1351. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1352. * For the list of reserved names please see:
  1353. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1354. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1355. * JSPB instance for transitional soy proto support:
  1356. * http://goto/soy-param-migration
  1357. * @return {!Object}
  1358. */
  1359. proto.EntityOption.prototype.toObject = function(opt_includeInstance) {
  1360. return proto.EntityOption.toObject(opt_includeInstance, this);
  1361. };
  1362. /**
  1363. * Static version of the {@see toObject} method.
  1364. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1365. * the JSPB instance for transitional soy proto support:
  1366. * http://goto/soy-param-migration
  1367. * @param {!proto.EntityOption} msg The msg instance to transform.
  1368. * @return {!Object}
  1369. * @suppress {unusedLocalVariables} f is only used for nested messages
  1370. */
  1371. proto.EntityOption.toObject = function(includeInstance, msg) {
  1372. var f, obj = {
  1373. kind: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1374. visibility: jspb.Message.getFieldWithDefault(msg, 2, 0)
  1375. };
  1376. if (includeInstance) {
  1377. obj.$jspbMessageInstance = msg;
  1378. }
  1379. return obj;
  1380. };
  1381. }
  1382. /**
  1383. * Deserializes binary data (in protobuf wire format).
  1384. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1385. * @return {!proto.EntityOption}
  1386. */
  1387. proto.EntityOption.deserializeBinary = function(bytes) {
  1388. var reader = new jspb.BinaryReader(bytes);
  1389. var msg = new proto.EntityOption;
  1390. return proto.EntityOption.deserializeBinaryFromReader(msg, reader);
  1391. };
  1392. /**
  1393. * Deserializes binary data (in protobuf wire format) from the
  1394. * given reader into the given message object.
  1395. * @param {!proto.EntityOption} msg The message object to deserialize into.
  1396. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1397. * @return {!proto.EntityOption}
  1398. */
  1399. proto.EntityOption.deserializeBinaryFromReader = function(msg, reader) {
  1400. while (reader.nextField()) {
  1401. if (reader.isEndGroup()) {
  1402. break;
  1403. }
  1404. var field = reader.getFieldNumber();
  1405. switch (field) {
  1406. case 1:
  1407. var value = /** @type {!proto.EntityOption.Kind} */ (reader.readEnum());
  1408. msg.setKind(value);
  1409. break;
  1410. case 2:
  1411. var value = /** @type {!proto.EntityOption.Visibility} */ (reader.readEnum());
  1412. msg.setVisibility(value);
  1413. break;
  1414. default:
  1415. reader.skipField();
  1416. break;
  1417. }
  1418. }
  1419. return msg;
  1420. };
  1421. /**
  1422. * Serializes the message to binary data (in protobuf wire format).
  1423. * @return {!Uint8Array}
  1424. */
  1425. proto.EntityOption.prototype.serializeBinary = function() {
  1426. var writer = new jspb.BinaryWriter();
  1427. proto.EntityOption.serializeBinaryToWriter(this, writer);
  1428. return writer.getResultBuffer();
  1429. };
  1430. /**
  1431. * Serializes the given message to binary data (in protobuf wire
  1432. * format), writing to the given BinaryWriter.
  1433. * @param {!proto.EntityOption} message
  1434. * @param {!jspb.BinaryWriter} writer
  1435. * @suppress {unusedLocalVariables} f is only used for nested messages
  1436. */
  1437. proto.EntityOption.serializeBinaryToWriter = function(message, writer) {
  1438. var f = undefined;
  1439. f = message.getKind();
  1440. if (f !== 0.0) {
  1441. writer.writeEnum(
  1442. 1,
  1443. f
  1444. );
  1445. }
  1446. f = message.getVisibility();
  1447. if (f !== 0.0) {
  1448. writer.writeEnum(
  1449. 2,
  1450. f
  1451. );
  1452. }
  1453. };
  1454. /**
  1455. * @enum {number}
  1456. */
  1457. proto.EntityOption.Kind = {
  1458. KIND_UNKNOWN: 0,
  1459. AGGREGATE: 1,
  1460. PROJECTION: 2,
  1461. PROCESS_MANAGER: 3,
  1462. ENTITY: 4
  1463. };
  1464. /**
  1465. * @enum {number}
  1466. */
  1467. proto.EntityOption.Visibility = {
  1468. DEFAULT: 0,
  1469. NONE: 1,
  1470. SUBSCRIBE: 2,
  1471. QUERY: 3,
  1472. FULL: 4
  1473. };
  1474. /**
  1475. * optional Kind kind = 1;
  1476. * @return {!proto.EntityOption.Kind}
  1477. */
  1478. proto.EntityOption.prototype.getKind = function() {
  1479. return /** @type {!proto.EntityOption.Kind} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1480. };
  1481. /**
  1482. * @param {!proto.EntityOption.Kind} value
  1483. * @return {!proto.EntityOption} returns this
  1484. */
  1485. proto.EntityOption.prototype.setKind = function(value) {
  1486. return jspb.Message.setProto3EnumField(this, 1, value);
  1487. };
  1488. /**
  1489. * optional Visibility visibility = 2;
  1490. * @return {!proto.EntityOption.Visibility}
  1491. */
  1492. proto.EntityOption.prototype.getVisibility = function() {
  1493. return /** @type {!proto.EntityOption.Visibility} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  1494. };
  1495. /**
  1496. * @param {!proto.EntityOption.Visibility} value
  1497. * @return {!proto.EntityOption} returns this
  1498. */
  1499. proto.EntityOption.prototype.setVisibility = function(value) {
  1500. return jspb.Message.setProto3EnumField(this, 2, value);
  1501. };
  1502. if (jspb.Message.GENERATE_TO_OBJECT) {
  1503. /**
  1504. * Creates an object representation of this proto.
  1505. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1506. * Optional fields that are not set will be set to undefined.
  1507. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1508. * For the list of reserved names please see:
  1509. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1510. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1511. * JSPB instance for transitional soy proto support:
  1512. * http://goto/soy-param-migration
  1513. * @return {!Object}
  1514. */
  1515. proto.IsOption.prototype.toObject = function(opt_includeInstance) {
  1516. return proto.IsOption.toObject(opt_includeInstance, this);
  1517. };
  1518. /**
  1519. * Static version of the {@see toObject} method.
  1520. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1521. * the JSPB instance for transitional soy proto support:
  1522. * http://goto/soy-param-migration
  1523. * @param {!proto.IsOption} msg The msg instance to transform.
  1524. * @return {!Object}
  1525. * @suppress {unusedLocalVariables} f is only used for nested messages
  1526. */
  1527. proto.IsOption.toObject = function(includeInstance, msg) {
  1528. var f, obj = {
  1529. generate: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
  1530. javaType: jspb.Message.getFieldWithDefault(msg, 2, "")
  1531. };
  1532. if (includeInstance) {
  1533. obj.$jspbMessageInstance = msg;
  1534. }
  1535. return obj;
  1536. };
  1537. }
  1538. /**
  1539. * Deserializes binary data (in protobuf wire format).
  1540. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1541. * @return {!proto.IsOption}
  1542. */
  1543. proto.IsOption.deserializeBinary = function(bytes) {
  1544. var reader = new jspb.BinaryReader(bytes);
  1545. var msg = new proto.IsOption;
  1546. return proto.IsOption.deserializeBinaryFromReader(msg, reader);
  1547. };
  1548. /**
  1549. * Deserializes binary data (in protobuf wire format) from the
  1550. * given reader into the given message object.
  1551. * @param {!proto.IsOption} msg The message object to deserialize into.
  1552. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1553. * @return {!proto.IsOption}
  1554. */
  1555. proto.IsOption.deserializeBinaryFromReader = function(msg, reader) {
  1556. while (reader.nextField()) {
  1557. if (reader.isEndGroup()) {
  1558. break;
  1559. }
  1560. var field = reader.getFieldNumber();
  1561. switch (field) {
  1562. case 1:
  1563. var value = /** @type {boolean} */ (reader.readBool());
  1564. msg.setGenerate(value);
  1565. break;
  1566. case 2:
  1567. var value = /** @type {string} */ (reader.readString());
  1568. msg.setJavaType(value);
  1569. break;
  1570. default:
  1571. reader.skipField();
  1572. break;
  1573. }
  1574. }
  1575. return msg;
  1576. };
  1577. /**
  1578. * Serializes the message to binary data (in protobuf wire format).
  1579. * @return {!Uint8Array}
  1580. */
  1581. proto.IsOption.prototype.serializeBinary = function() {
  1582. var writer = new jspb.BinaryWriter();
  1583. proto.IsOption.serializeBinaryToWriter(this, writer);
  1584. return writer.getResultBuffer();
  1585. };
  1586. /**
  1587. * Serializes the given message to binary data (in protobuf wire
  1588. * format), writing to the given BinaryWriter.
  1589. * @param {!proto.IsOption} message
  1590. * @param {!jspb.BinaryWriter} writer
  1591. * @suppress {unusedLocalVariables} f is only used for nested messages
  1592. */
  1593. proto.IsOption.serializeBinaryToWriter = function(message, writer) {
  1594. var f = undefined;
  1595. f = message.getGenerate();
  1596. if (f) {
  1597. writer.writeBool(
  1598. 1,
  1599. f
  1600. );
  1601. }
  1602. f = message.getJavaType();
  1603. if (f.length > 0) {
  1604. writer.writeString(
  1605. 2,
  1606. f
  1607. );
  1608. }
  1609. };
  1610. /**
  1611. * optional bool generate = 1;
  1612. * @return {boolean}
  1613. */
  1614. proto.IsOption.prototype.getGenerate = function() {
  1615. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
  1616. };
  1617. /**
  1618. * @param {boolean} value
  1619. * @return {!proto.IsOption} returns this
  1620. */
  1621. proto.IsOption.prototype.setGenerate = function(value) {
  1622. return jspb.Message.setProto3BooleanField(this, 1, value);
  1623. };
  1624. /**
  1625. * optional string java_type = 2;
  1626. * @return {string}
  1627. */
  1628. proto.IsOption.prototype.getJavaType = function() {
  1629. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1630. };
  1631. /**
  1632. * @param {string} value
  1633. * @return {!proto.IsOption} returns this
  1634. */
  1635. proto.IsOption.prototype.setJavaType = function(value) {
  1636. return jspb.Message.setProto3StringField(this, 2, value);
  1637. };
  1638. /**
  1639. * A tuple of {field number, class constructor} for the extension
  1640. * field named `required`.
  1641. * @type {!jspb.ExtensionFieldInfo<boolean>}
  1642. */
  1643. proto.required = new jspb.ExtensionFieldInfo(
  1644. 73812,
  1645. {required: 0},
  1646. null,
  1647. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1648. null),
  1649. 0);
  1650. google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[73812] = new jspb.ExtensionFieldBinaryInfo(
  1651. proto.required,
  1652. jspb.BinaryReader.prototype.readBool,
  1653. jspb.BinaryWriter.prototype.writeBool,
  1654. undefined,
  1655. undefined,
  1656. false);
  1657. // This registers the extension field with the extended class, so that
  1658. // toObject() will function correctly.
  1659. google_protobuf_descriptor_pb.FieldOptions.extensions[73812] = proto.required;
  1660. /**
  1661. * A tuple of {field number, class constructor} for the extension
  1662. * field named `ifMissing`.
  1663. * @type {!jspb.ExtensionFieldInfo<!proto.IfMissingOption>}
  1664. */
  1665. proto.ifMissing = new jspb.ExtensionFieldInfo(
  1666. 73813,
  1667. {ifMissing: 0},
  1668. proto.IfMissingOption,
  1669. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1670. proto.IfMissingOption.toObject),
  1671. 0);
  1672. google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[73813] = new jspb.ExtensionFieldBinaryInfo(
  1673. proto.ifMissing,
  1674. jspb.BinaryReader.prototype.readMessage,
  1675. jspb.BinaryWriter.prototype.writeMessage,
  1676. proto.IfMissingOption.serializeBinaryToWriter,
  1677. proto.IfMissingOption.deserializeBinaryFromReader,
  1678. false);
  1679. // This registers the extension field with the extended class, so that
  1680. // toObject() will function correctly.
  1681. google_protobuf_descriptor_pb.FieldOptions.extensions[73813] = proto.ifMissing;
  1682. /**
  1683. * A tuple of {field number, class constructor} for the extension
  1684. * field named `max`.
  1685. * @type {!jspb.ExtensionFieldInfo<!proto.MaxOption>}
  1686. */
  1687. proto.max = new jspb.ExtensionFieldInfo(
  1688. 73816,
  1689. {max: 0},
  1690. proto.MaxOption,
  1691. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1692. proto.MaxOption.toObject),
  1693. 0);
  1694. google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[73816] = new jspb.ExtensionFieldBinaryInfo(
  1695. proto.max,
  1696. jspb.BinaryReader.prototype.readMessage,
  1697. jspb.BinaryWriter.prototype.writeMessage,
  1698. proto.MaxOption.serializeBinaryToWriter,
  1699. proto.MaxOption.deserializeBinaryFromReader,
  1700. false);
  1701. // This registers the extension field with the extended class, so that
  1702. // toObject() will function correctly.
  1703. google_protobuf_descriptor_pb.FieldOptions.extensions[73816] = proto.max;
  1704. /**
  1705. * A tuple of {field number, class constructor} for the extension
  1706. * field named `min`.
  1707. * @type {!jspb.ExtensionFieldInfo<!proto.MinOption>}
  1708. */
  1709. proto.min = new jspb.ExtensionFieldInfo(
  1710. 73817,
  1711. {min: 0},
  1712. proto.MinOption,
  1713. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1714. proto.MinOption.toObject),
  1715. 0);
  1716. google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[73817] = new jspb.ExtensionFieldBinaryInfo(
  1717. proto.min,
  1718. jspb.BinaryReader.prototype.readMessage,
  1719. jspb.BinaryWriter.prototype.writeMessage,
  1720. proto.MinOption.serializeBinaryToWriter,
  1721. proto.MinOption.deserializeBinaryFromReader,
  1722. false);
  1723. // This registers the extension field with the extended class, so that
  1724. // toObject() will function correctly.
  1725. google_protobuf_descriptor_pb.FieldOptions.extensions[73817] = proto.min;
  1726. /**
  1727. * A tuple of {field number, class constructor} for the extension
  1728. * field named `pattern`.
  1729. * @type {!jspb.ExtensionFieldInfo<!proto.PatternOption>}
  1730. */
  1731. proto.pattern = new jspb.ExtensionFieldInfo(
  1732. 73820,
  1733. {pattern: 0},
  1734. proto.PatternOption,
  1735. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1736. proto.PatternOption.toObject),
  1737. 0);
  1738. google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[73820] = new jspb.ExtensionFieldBinaryInfo(
  1739. proto.pattern,
  1740. jspb.BinaryReader.prototype.readMessage,
  1741. jspb.BinaryWriter.prototype.writeMessage,
  1742. proto.PatternOption.serializeBinaryToWriter,
  1743. proto.PatternOption.deserializeBinaryFromReader,
  1744. false);
  1745. // This registers the extension field with the extended class, so that
  1746. // toObject() will function correctly.
  1747. google_protobuf_descriptor_pb.FieldOptions.extensions[73820] = proto.pattern;
  1748. /**
  1749. * A tuple of {field number, class constructor} for the extension
  1750. * field named `validate`.
  1751. * @type {!jspb.ExtensionFieldInfo<boolean>}
  1752. */
  1753. proto.validate = new jspb.ExtensionFieldInfo(
  1754. 73821,
  1755. {validate: 0},
  1756. null,
  1757. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1758. null),
  1759. 0);
  1760. google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[73821] = new jspb.ExtensionFieldBinaryInfo(
  1761. proto.validate,
  1762. jspb.BinaryReader.prototype.readBool,
  1763. jspb.BinaryWriter.prototype.writeBool,
  1764. undefined,
  1765. undefined,
  1766. false);
  1767. // This registers the extension field with the extended class, so that
  1768. // toObject() will function correctly.
  1769. google_protobuf_descriptor_pb.FieldOptions.extensions[73821] = proto.validate;
  1770. /**
  1771. * A tuple of {field number, class constructor} for the extension
  1772. * field named `ifInvalid`.
  1773. * @type {!jspb.ExtensionFieldInfo<!proto.IfInvalidOption>}
  1774. */
  1775. proto.ifInvalid = new jspb.ExtensionFieldInfo(
  1776. 73822,
  1777. {ifInvalid: 0},
  1778. proto.IfInvalidOption,
  1779. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1780. proto.IfInvalidOption.toObject),
  1781. 0);
  1782. google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[73822] = new jspb.ExtensionFieldBinaryInfo(
  1783. proto.ifInvalid,
  1784. jspb.BinaryReader.prototype.readMessage,
  1785. jspb.BinaryWriter.prototype.writeMessage,
  1786. proto.IfInvalidOption.serializeBinaryToWriter,
  1787. proto.IfInvalidOption.deserializeBinaryFromReader,
  1788. false);
  1789. // This registers the extension field with the extended class, so that
  1790. // toObject() will function correctly.
  1791. google_protobuf_descriptor_pb.FieldOptions.extensions[73822] = proto.ifInvalid;
  1792. /**
  1793. * A tuple of {field number, class constructor} for the extension
  1794. * field named `goes`.
  1795. * @type {!jspb.ExtensionFieldInfo<!proto.GoesOption>}
  1796. */
  1797. proto.goes = new jspb.ExtensionFieldInfo(
  1798. 73823,
  1799. {goes: 0},
  1800. proto.GoesOption,
  1801. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1802. proto.GoesOption.toObject),
  1803. 0);
  1804. google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[73823] = new jspb.ExtensionFieldBinaryInfo(
  1805. proto.goes,
  1806. jspb.BinaryReader.prototype.readMessage,
  1807. jspb.BinaryWriter.prototype.writeMessage,
  1808. proto.GoesOption.serializeBinaryToWriter,
  1809. proto.GoesOption.deserializeBinaryFromReader,
  1810. false);
  1811. // This registers the extension field with the extended class, so that
  1812. // toObject() will function correctly.
  1813. google_protobuf_descriptor_pb.FieldOptions.extensions[73823] = proto.goes;
  1814. /**
  1815. * A tuple of {field number, class constructor} for the extension
  1816. * field named `setOnce`.
  1817. * @type {!jspb.ExtensionFieldInfo<boolean>}
  1818. */
  1819. proto.setOnce = new jspb.ExtensionFieldInfo(
  1820. 73824,
  1821. {setOnce: 0},
  1822. null,
  1823. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1824. null),
  1825. 0);
  1826. google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[73824] = new jspb.ExtensionFieldBinaryInfo(
  1827. proto.setOnce,
  1828. jspb.BinaryReader.prototype.readBool,
  1829. jspb.BinaryWriter.prototype.writeBool,
  1830. undefined,
  1831. undefined,
  1832. false);
  1833. // This registers the extension field with the extended class, so that
  1834. // toObject() will function correctly.
  1835. google_protobuf_descriptor_pb.FieldOptions.extensions[73824] = proto.setOnce;
  1836. /**
  1837. * A tuple of {field number, class constructor} for the extension
  1838. * field named `distinct`.
  1839. * @type {!jspb.ExtensionFieldInfo<boolean>}
  1840. */
  1841. proto.distinct = new jspb.ExtensionFieldInfo(
  1842. 73825,
  1843. {distinct: 0},
  1844. null,
  1845. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1846. null),
  1847. 0);
  1848. google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[73825] = new jspb.ExtensionFieldBinaryInfo(
  1849. proto.distinct,
  1850. jspb.BinaryReader.prototype.readBool,
  1851. jspb.BinaryWriter.prototype.writeBool,
  1852. undefined,
  1853. undefined,
  1854. false);
  1855. // This registers the extension field with the extended class, so that
  1856. // toObject() will function correctly.
  1857. google_protobuf_descriptor_pb.FieldOptions.extensions[73825] = proto.distinct;
  1858. /**
  1859. * A tuple of {field number, class constructor} for the extension
  1860. * field named `range`.
  1861. * @type {!jspb.ExtensionFieldInfo<string>}
  1862. */
  1863. proto.range = new jspb.ExtensionFieldInfo(
  1864. 73826,
  1865. {range: 0},
  1866. null,
  1867. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1868. null),
  1869. 0);
  1870. google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[73826] = new jspb.ExtensionFieldBinaryInfo(
  1871. proto.range,
  1872. jspb.BinaryReader.prototype.readString,
  1873. jspb.BinaryWriter.prototype.writeString,
  1874. undefined,
  1875. undefined,
  1876. false);
  1877. // This registers the extension field with the extended class, so that
  1878. // toObject() will function correctly.
  1879. google_protobuf_descriptor_pb.FieldOptions.extensions[73826] = proto.range;
  1880. /**
  1881. * A tuple of {field number, class constructor} for the extension
  1882. * field named `internal`.
  1883. * @type {!jspb.ExtensionFieldInfo<boolean>}
  1884. */
  1885. proto.internal = new jspb.ExtensionFieldInfo(
  1886. 73850,
  1887. {internal: 0},
  1888. null,
  1889. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1890. null),
  1891. 0);
  1892. google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[73850] = new jspb.ExtensionFieldBinaryInfo(
  1893. proto.internal,
  1894. jspb.BinaryReader.prototype.readBool,
  1895. jspb.BinaryWriter.prototype.writeBool,
  1896. undefined,
  1897. undefined,
  1898. false);
  1899. // This registers the extension field with the extended class, so that
  1900. // toObject() will function correctly.
  1901. google_protobuf_descriptor_pb.FieldOptions.extensions[73850] = proto.internal;
  1902. /**
  1903. * A tuple of {field number, class constructor} for the extension
  1904. * field named `experimental`.
  1905. * @type {!jspb.ExtensionFieldInfo<boolean>}
  1906. */
  1907. proto.experimental = new jspb.ExtensionFieldInfo(
  1908. 73852,
  1909. {experimental: 0},
  1910. null,
  1911. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1912. null),
  1913. 0);
  1914. google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[73852] = new jspb.ExtensionFieldBinaryInfo(
  1915. proto.experimental,
  1916. jspb.BinaryReader.prototype.readBool,
  1917. jspb.BinaryWriter.prototype.writeBool,
  1918. undefined,
  1919. undefined,
  1920. false);
  1921. // This registers the extension field with the extended class, so that
  1922. // toObject() will function correctly.
  1923. google_protobuf_descriptor_pb.FieldOptions.extensions[73852] = proto.experimental;
  1924. /**
  1925. * A tuple of {field number, class constructor} for the extension
  1926. * field named `beta`.
  1927. * @type {!jspb.ExtensionFieldInfo<boolean>}
  1928. */
  1929. proto.beta = new jspb.ExtensionFieldInfo(
  1930. 73853,
  1931. {beta: 0},
  1932. null,
  1933. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1934. null),
  1935. 0);
  1936. google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[73853] = new jspb.ExtensionFieldBinaryInfo(
  1937. proto.beta,
  1938. jspb.BinaryReader.prototype.readBool,
  1939. jspb.BinaryWriter.prototype.writeBool,
  1940. undefined,
  1941. undefined,
  1942. false);
  1943. // This registers the extension field with the extended class, so that
  1944. // toObject() will function correctly.
  1945. google_protobuf_descriptor_pb.FieldOptions.extensions[73853] = proto.beta;
  1946. /**
  1947. * A tuple of {field number, class constructor} for the extension
  1948. * field named `column`.
  1949. * @type {!jspb.ExtensionFieldInfo<boolean>}
  1950. */
  1951. proto.column = new jspb.ExtensionFieldInfo(
  1952. 73854,
  1953. {column: 0},
  1954. null,
  1955. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1956. null),
  1957. 0);
  1958. google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[73854] = new jspb.ExtensionFieldBinaryInfo(
  1959. proto.column,
  1960. jspb.BinaryReader.prototype.readBool,
  1961. jspb.BinaryWriter.prototype.writeBool,
  1962. undefined,
  1963. undefined,
  1964. false);
  1965. // This registers the extension field with the extended class, so that
  1966. // toObject() will function correctly.
  1967. google_protobuf_descriptor_pb.FieldOptions.extensions[73854] = proto.column;
  1968. /**
  1969. * A tuple of {field number, class constructor} for the extension
  1970. * field named `isRequired`.
  1971. * @type {!jspb.ExtensionFieldInfo<boolean>}
  1972. */
  1973. proto.isRequired = new jspb.ExtensionFieldInfo(
  1974. 73891,
  1975. {isRequired: 0},
  1976. null,
  1977. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  1978. null),
  1979. 0);
  1980. google_protobuf_descriptor_pb.OneofOptions.extensionsBinary[73891] = new jspb.ExtensionFieldBinaryInfo(
  1981. proto.isRequired,
  1982. jspb.BinaryReader.prototype.readBool,
  1983. jspb.BinaryWriter.prototype.writeBool,
  1984. undefined,
  1985. undefined,
  1986. false);
  1987. // This registers the extension field with the extended class, so that
  1988. // toObject() will function correctly.
  1989. google_protobuf_descriptor_pb.OneofOptions.extensions[73891] = proto.isRequired;
  1990. /**
  1991. * A tuple of {field number, class constructor} for the extension
  1992. * field named `defaultMessage`.
  1993. * @type {!jspb.ExtensionFieldInfo<string>}
  1994. */
  1995. proto.defaultMessage = new jspb.ExtensionFieldInfo(
  1996. 73901,
  1997. {defaultMessage: 0},
  1998. null,
  1999. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2000. null),
  2001. 0);
  2002. google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[73901] = new jspb.ExtensionFieldBinaryInfo(
  2003. proto.defaultMessage,
  2004. jspb.BinaryReader.prototype.readString,
  2005. jspb.BinaryWriter.prototype.writeString,
  2006. undefined,
  2007. undefined,
  2008. false);
  2009. // This registers the extension field with the extended class, so that
  2010. // toObject() will function correctly.
  2011. google_protobuf_descriptor_pb.MessageOptions.extensions[73901] = proto.defaultMessage;
  2012. /**
  2013. * A tuple of {field number, class constructor} for the extension
  2014. * field named `requiredField`.
  2015. * @type {!jspb.ExtensionFieldInfo<string>}
  2016. */
  2017. proto.requiredField = new jspb.ExtensionFieldInfo(
  2018. 73902,
  2019. {requiredField: 0},
  2020. null,
  2021. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2022. null),
  2023. 0);
  2024. google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[73902] = new jspb.ExtensionFieldBinaryInfo(
  2025. proto.requiredField,
  2026. jspb.BinaryReader.prototype.readString,
  2027. jspb.BinaryWriter.prototype.writeString,
  2028. undefined,
  2029. undefined,
  2030. false);
  2031. // This registers the extension field with the extended class, so that
  2032. // toObject() will function correctly.
  2033. google_protobuf_descriptor_pb.MessageOptions.extensions[73902] = proto.requiredField;
  2034. /**
  2035. * A tuple of {field number, class constructor} for the extension
  2036. * field named `entity`.
  2037. * @type {!jspb.ExtensionFieldInfo<!proto.EntityOption>}
  2038. */
  2039. proto.entity = new jspb.ExtensionFieldInfo(
  2040. 73903,
  2041. {entity: 0},
  2042. proto.EntityOption,
  2043. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2044. proto.EntityOption.toObject),
  2045. 0);
  2046. google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[73903] = new jspb.ExtensionFieldBinaryInfo(
  2047. proto.entity,
  2048. jspb.BinaryReader.prototype.readMessage,
  2049. jspb.BinaryWriter.prototype.writeMessage,
  2050. proto.EntityOption.serializeBinaryToWriter,
  2051. proto.EntityOption.deserializeBinaryFromReader,
  2052. false);
  2053. // This registers the extension field with the extended class, so that
  2054. // toObject() will function correctly.
  2055. google_protobuf_descriptor_pb.MessageOptions.extensions[73903] = proto.entity;
  2056. /**
  2057. * A tuple of {field number, class constructor} for the extension
  2058. * field named `constraintFor`.
  2059. * @type {!jspb.ExtensionFieldInfo<string>}
  2060. */
  2061. proto.constraintFor = new jspb.ExtensionFieldInfo(
  2062. 73904,
  2063. {constraintFor: 0},
  2064. null,
  2065. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2066. null),
  2067. 0);
  2068. google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[73904] = new jspb.ExtensionFieldBinaryInfo(
  2069. proto.constraintFor,
  2070. jspb.BinaryReader.prototype.readString,
  2071. jspb.BinaryWriter.prototype.writeString,
  2072. undefined,
  2073. undefined,
  2074. false);
  2075. // This registers the extension field with the extended class, so that
  2076. // toObject() will function correctly.
  2077. google_protobuf_descriptor_pb.MessageOptions.extensions[73904] = proto.constraintFor;
  2078. /**
  2079. * A tuple of {field number, class constructor} for the extension
  2080. * field named `internalType`.
  2081. * @type {!jspb.ExtensionFieldInfo<boolean>}
  2082. */
  2083. proto.internalType = new jspb.ExtensionFieldInfo(
  2084. 73911,
  2085. {internalType: 0},
  2086. null,
  2087. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2088. null),
  2089. 0);
  2090. google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[73911] = new jspb.ExtensionFieldBinaryInfo(
  2091. proto.internalType,
  2092. jspb.BinaryReader.prototype.readBool,
  2093. jspb.BinaryWriter.prototype.writeBool,
  2094. undefined,
  2095. undefined,
  2096. false);
  2097. // This registers the extension field with the extended class, so that
  2098. // toObject() will function correctly.
  2099. google_protobuf_descriptor_pb.MessageOptions.extensions[73911] = proto.internalType;
  2100. /**
  2101. * A tuple of {field number, class constructor} for the extension
  2102. * field named `spiType`.
  2103. * @type {!jspb.ExtensionFieldInfo<boolean>}
  2104. */
  2105. proto.spiType = new jspb.ExtensionFieldInfo(
  2106. 73912,
  2107. {spiType: 0},
  2108. null,
  2109. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2110. null),
  2111. 0);
  2112. google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[73912] = new jspb.ExtensionFieldBinaryInfo(
  2113. proto.spiType,
  2114. jspb.BinaryReader.prototype.readBool,
  2115. jspb.BinaryWriter.prototype.writeBool,
  2116. undefined,
  2117. undefined,
  2118. false);
  2119. // This registers the extension field with the extended class, so that
  2120. // toObject() will function correctly.
  2121. google_protobuf_descriptor_pb.MessageOptions.extensions[73912] = proto.spiType;
  2122. /**
  2123. * A tuple of {field number, class constructor} for the extension
  2124. * field named `experimentalType`.
  2125. * @type {!jspb.ExtensionFieldInfo<boolean>}
  2126. */
  2127. proto.experimentalType = new jspb.ExtensionFieldInfo(
  2128. 73913,
  2129. {experimentalType: 0},
  2130. null,
  2131. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2132. null),
  2133. 0);
  2134. google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[73913] = new jspb.ExtensionFieldBinaryInfo(
  2135. proto.experimentalType,
  2136. jspb.BinaryReader.prototype.readBool,
  2137. jspb.BinaryWriter.prototype.writeBool,
  2138. undefined,
  2139. undefined,
  2140. false);
  2141. // This registers the extension field with the extended class, so that
  2142. // toObject() will function correctly.
  2143. google_protobuf_descriptor_pb.MessageOptions.extensions[73913] = proto.experimentalType;
  2144. /**
  2145. * A tuple of {field number, class constructor} for the extension
  2146. * field named `betaType`.
  2147. * @type {!jspb.ExtensionFieldInfo<boolean>}
  2148. */
  2149. proto.betaType = new jspb.ExtensionFieldInfo(
  2150. 73914,
  2151. {betaType: 0},
  2152. null,
  2153. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2154. null),
  2155. 0);
  2156. google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[73914] = new jspb.ExtensionFieldBinaryInfo(
  2157. proto.betaType,
  2158. jspb.BinaryReader.prototype.readBool,
  2159. jspb.BinaryWriter.prototype.writeBool,
  2160. undefined,
  2161. undefined,
  2162. false);
  2163. // This registers the extension field with the extended class, so that
  2164. // toObject() will function correctly.
  2165. google_protobuf_descriptor_pb.MessageOptions.extensions[73914] = proto.betaType;
  2166. /**
  2167. * A tuple of {field number, class constructor} for the extension
  2168. * field named `is`.
  2169. * @type {!jspb.ExtensionFieldInfo<!proto.IsOption>}
  2170. */
  2171. proto.is = new jspb.ExtensionFieldInfo(
  2172. 73915,
  2173. {is: 0},
  2174. proto.IsOption,
  2175. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2176. proto.IsOption.toObject),
  2177. 0);
  2178. google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[73915] = new jspb.ExtensionFieldBinaryInfo(
  2179. proto.is,
  2180. jspb.BinaryReader.prototype.readMessage,
  2181. jspb.BinaryWriter.prototype.writeMessage,
  2182. proto.IsOption.serializeBinaryToWriter,
  2183. proto.IsOption.deserializeBinaryFromReader,
  2184. false);
  2185. // This registers the extension field with the extended class, so that
  2186. // toObject() will function correctly.
  2187. google_protobuf_descriptor_pb.MessageOptions.extensions[73915] = proto.is;
  2188. /**
  2189. * A tuple of {field number, class constructor} for the extension
  2190. * field named `typeUrlPrefix`.
  2191. * @type {!jspb.ExtensionFieldInfo<string>}
  2192. */
  2193. proto.typeUrlPrefix = new jspb.ExtensionFieldInfo(
  2194. 73941,
  2195. {typeUrlPrefix: 0},
  2196. null,
  2197. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2198. null),
  2199. 0);
  2200. google_protobuf_descriptor_pb.FileOptions.extensionsBinary[73941] = new jspb.ExtensionFieldBinaryInfo(
  2201. proto.typeUrlPrefix,
  2202. jspb.BinaryReader.prototype.readString,
  2203. jspb.BinaryWriter.prototype.writeString,
  2204. undefined,
  2205. undefined,
  2206. false);
  2207. // This registers the extension field with the extended class, so that
  2208. // toObject() will function correctly.
  2209. google_protobuf_descriptor_pb.FileOptions.extensions[73941] = proto.typeUrlPrefix;
  2210. /**
  2211. * A tuple of {field number, class constructor} for the extension
  2212. * field named `internalAll`.
  2213. * @type {!jspb.ExtensionFieldInfo<boolean>}
  2214. */
  2215. proto.internalAll = new jspb.ExtensionFieldInfo(
  2216. 73942,
  2217. {internalAll: 0},
  2218. null,
  2219. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2220. null),
  2221. 0);
  2222. google_protobuf_descriptor_pb.FileOptions.extensionsBinary[73942] = new jspb.ExtensionFieldBinaryInfo(
  2223. proto.internalAll,
  2224. jspb.BinaryReader.prototype.readBool,
  2225. jspb.BinaryWriter.prototype.writeBool,
  2226. undefined,
  2227. undefined,
  2228. false);
  2229. // This registers the extension field with the extended class, so that
  2230. // toObject() will function correctly.
  2231. google_protobuf_descriptor_pb.FileOptions.extensions[73942] = proto.internalAll;
  2232. /**
  2233. * A tuple of {field number, class constructor} for the extension
  2234. * field named `spiAll`.
  2235. * @type {!jspb.ExtensionFieldInfo<boolean>}
  2236. */
  2237. proto.spiAll = new jspb.ExtensionFieldInfo(
  2238. 73943,
  2239. {spiAll: 0},
  2240. null,
  2241. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2242. null),
  2243. 0);
  2244. google_protobuf_descriptor_pb.FileOptions.extensionsBinary[73943] = new jspb.ExtensionFieldBinaryInfo(
  2245. proto.spiAll,
  2246. jspb.BinaryReader.prototype.readBool,
  2247. jspb.BinaryWriter.prototype.writeBool,
  2248. undefined,
  2249. undefined,
  2250. false);
  2251. // This registers the extension field with the extended class, so that
  2252. // toObject() will function correctly.
  2253. google_protobuf_descriptor_pb.FileOptions.extensions[73943] = proto.spiAll;
  2254. /**
  2255. * A tuple of {field number, class constructor} for the extension
  2256. * field named `experimentalAll`.
  2257. * @type {!jspb.ExtensionFieldInfo<boolean>}
  2258. */
  2259. proto.experimentalAll = new jspb.ExtensionFieldInfo(
  2260. 73944,
  2261. {experimentalAll: 0},
  2262. null,
  2263. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2264. null),
  2265. 0);
  2266. google_protobuf_descriptor_pb.FileOptions.extensionsBinary[73944] = new jspb.ExtensionFieldBinaryInfo(
  2267. proto.experimentalAll,
  2268. jspb.BinaryReader.prototype.readBool,
  2269. jspb.BinaryWriter.prototype.writeBool,
  2270. undefined,
  2271. undefined,
  2272. false);
  2273. // This registers the extension field with the extended class, so that
  2274. // toObject() will function correctly.
  2275. google_protobuf_descriptor_pb.FileOptions.extensions[73944] = proto.experimentalAll;
  2276. /**
  2277. * A tuple of {field number, class constructor} for the extension
  2278. * field named `betaAll`.
  2279. * @type {!jspb.ExtensionFieldInfo<boolean>}
  2280. */
  2281. proto.betaAll = new jspb.ExtensionFieldInfo(
  2282. 73945,
  2283. {betaAll: 0},
  2284. null,
  2285. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2286. null),
  2287. 0);
  2288. google_protobuf_descriptor_pb.FileOptions.extensionsBinary[73945] = new jspb.ExtensionFieldBinaryInfo(
  2289. proto.betaAll,
  2290. jspb.BinaryReader.prototype.readBool,
  2291. jspb.BinaryWriter.prototype.writeBool,
  2292. undefined,
  2293. undefined,
  2294. false);
  2295. // This registers the extension field with the extended class, so that
  2296. // toObject() will function correctly.
  2297. google_protobuf_descriptor_pb.FileOptions.extensions[73945] = proto.betaAll;
  2298. /**
  2299. * A tuple of {field number, class constructor} for the extension
  2300. * field named `everyIs`.
  2301. * @type {!jspb.ExtensionFieldInfo<!proto.IsOption>}
  2302. */
  2303. proto.everyIs = new jspb.ExtensionFieldInfo(
  2304. 73946,
  2305. {everyIs: 0},
  2306. proto.IsOption,
  2307. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2308. proto.IsOption.toObject),
  2309. 0);
  2310. google_protobuf_descriptor_pb.FileOptions.extensionsBinary[73946] = new jspb.ExtensionFieldBinaryInfo(
  2311. proto.everyIs,
  2312. jspb.BinaryReader.prototype.readMessage,
  2313. jspb.BinaryWriter.prototype.writeMessage,
  2314. proto.IsOption.serializeBinaryToWriter,
  2315. proto.IsOption.deserializeBinaryFromReader,
  2316. false);
  2317. // This registers the extension field with the extended class, so that
  2318. // toObject() will function correctly.
  2319. google_protobuf_descriptor_pb.FileOptions.extensions[73946] = proto.everyIs;
  2320. /**
  2321. * A tuple of {field number, class constructor} for the extension
  2322. * field named `spiService`.
  2323. * @type {!jspb.ExtensionFieldInfo<boolean>}
  2324. */
  2325. proto.spiService = new jspb.ExtensionFieldInfo(
  2326. 73971,
  2327. {spiService: 0},
  2328. null,
  2329. /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  2330. null),
  2331. 0);
  2332. google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[73971] = new jspb.ExtensionFieldBinaryInfo(
  2333. proto.spiService,
  2334. jspb.BinaryReader.prototype.readBool,
  2335. jspb.BinaryWriter.prototype.writeBool,
  2336. undefined,
  2337. undefined,
  2338. false);
  2339. // This registers the extension field with the extended class, so that
  2340. // toObject() will function correctly.
  2341. google_protobuf_descriptor_pb.ServiceOptions.extensions[73971] = proto.spiService;
  2342. goog.object.extend(exports, proto);
  2343. // Generated by Spine ProtoJs Plugin
  2344. let ObjectParser = require('../../client/parser/object-parser.js').default;
  2345. let TypeParsers = require('../../client/parser/type-parsers.js').default;
  2346. proto.IfInvalidOption.Parser = function() {
  2347. ObjectParser.call(this);
  2348. };
  2349. proto.IfInvalidOption.Parser.prototype = Object.create(ObjectParser.prototype);
  2350. proto.IfInvalidOption.Parser.prototype.constructor = proto.IfInvalidOption.Parser;
  2351. proto.IfInvalidOption.Parser.prototype.fromObject = function(obj) {
  2352. if (obj === null) {
  2353. return null;
  2354. }
  2355. let msg = new proto.IfInvalidOption();
  2356. if (obj.msgFormat !== undefined) {
  2357. if (obj.msgFormat !== null) {
  2358. let value = obj.msgFormat;
  2359. msg.setMsgFormat(value);
  2360. }
  2361. }
  2362. return msg;
  2363. };
  2364. proto.GoesOption.Parser = function() {
  2365. ObjectParser.call(this);
  2366. };
  2367. proto.GoesOption.Parser.prototype = Object.create(ObjectParser.prototype);
  2368. proto.GoesOption.Parser.prototype.constructor = proto.GoesOption.Parser;
  2369. proto.GoesOption.Parser.prototype.fromObject = function(obj) {
  2370. if (obj === null) {
  2371. return null;
  2372. }
  2373. let msg = new proto.GoesOption();
  2374. if (obj.with !== undefined) {
  2375. if (obj.with !== null) {
  2376. let value = obj.with;
  2377. msg.setWith(value);
  2378. }
  2379. }
  2380. if (obj.msgFormat !== undefined) {
  2381. if (obj.msgFormat !== null) {
  2382. let value = obj.msgFormat;
  2383. msg.setMsgFormat(value);
  2384. }
  2385. }
  2386. return msg;
  2387. };
  2388. proto.PatternOption.Parser = function() {
  2389. ObjectParser.call(this);
  2390. };
  2391. proto.PatternOption.Parser.prototype = Object.create(ObjectParser.prototype);
  2392. proto.PatternOption.Parser.prototype.constructor = proto.PatternOption.Parser;
  2393. proto.PatternOption.Parser.prototype.fromObject = function(obj) {
  2394. if (obj === null) {
  2395. return null;
  2396. }
  2397. let msg = new proto.PatternOption();
  2398. if (obj.regex !== undefined) {
  2399. if (obj.regex !== null) {
  2400. let value = obj.regex;
  2401. msg.setRegex(value);
  2402. }
  2403. }
  2404. if (obj.flag !== undefined) {
  2405. if (obj.flag !== null) {
  2406. let value = obj.flag;
  2407. msg.setFlag(value);
  2408. }
  2409. }
  2410. if (obj.modifier !== undefined) {
  2411. if (obj.modifier === null) {
  2412. msg.setModifier(null);
  2413. } else {
  2414. let value = TypeParsers.parserFor('type.spine.io/PatternOption.Modifier').fromObject(obj.modifier);
  2415. msg.setModifier(value);
  2416. }
  2417. }
  2418. if (obj.msgFormat !== undefined) {
  2419. if (obj.msgFormat !== null) {
  2420. let value = obj.msgFormat;
  2421. msg.setMsgFormat(value);
  2422. }
  2423. }
  2424. return msg;
  2425. };
  2426. proto.MaxOption.Parser = function() {
  2427. ObjectParser.call(this);
  2428. };
  2429. proto.MaxOption.Parser.prototype = Object.create(ObjectParser.prototype);
  2430. proto.MaxOption.Parser.prototype.constructor = proto.MaxOption.Parser;
  2431. proto.MaxOption.Parser.prototype.fromObject = function(obj) {
  2432. if (obj === null) {
  2433. return null;
  2434. }
  2435. let msg = new proto.MaxOption();
  2436. if (obj.value !== undefined) {
  2437. if (obj.value !== null) {
  2438. let value = obj.value;
  2439. msg.setValue(value);
  2440. }
  2441. }
  2442. if (obj.exclusive !== undefined) {
  2443. if (obj.exclusive !== null) {
  2444. let value = obj.exclusive;
  2445. msg.setExclusive(value);
  2446. }
  2447. }
  2448. if (obj.msgFormat !== undefined) {
  2449. if (obj.msgFormat !== null) {
  2450. let value = obj.msgFormat;
  2451. msg.setMsgFormat(value);
  2452. }
  2453. }
  2454. return msg;
  2455. };
  2456. proto.MinOption.Parser = function() {
  2457. ObjectParser.call(this);
  2458. };
  2459. proto.MinOption.Parser.prototype = Object.create(ObjectParser.prototype);
  2460. proto.MinOption.Parser.prototype.constructor = proto.MinOption.Parser;
  2461. proto.MinOption.Parser.prototype.fromObject = function(obj) {
  2462. if (obj === null) {
  2463. return null;
  2464. }
  2465. let msg = new proto.MinOption();
  2466. if (obj.value !== undefined) {
  2467. if (obj.value !== null) {
  2468. let value = obj.value;
  2469. msg.setValue(value);
  2470. }
  2471. }
  2472. if (obj.exclusive !== undefined) {
  2473. if (obj.exclusive !== null) {
  2474. let value = obj.exclusive;
  2475. msg.setExclusive(value);
  2476. }
  2477. }
  2478. if (obj.msgFormat !== undefined) {
  2479. if (obj.msgFormat !== null) {
  2480. let value = obj.msgFormat;
  2481. msg.setMsgFormat(value);
  2482. }
  2483. }
  2484. return msg;
  2485. };
  2486. proto.IfMissingOption.Parser = function() {
  2487. ObjectParser.call(this);
  2488. };
  2489. proto.IfMissingOption.Parser.prototype = Object.create(ObjectParser.prototype);
  2490. proto.IfMissingOption.Parser.prototype.constructor = proto.IfMissingOption.Parser;
  2491. proto.IfMissingOption.Parser.prototype.fromObject = function(obj) {
  2492. if (obj === null) {
  2493. return null;
  2494. }
  2495. let msg = new proto.IfMissingOption();
  2496. if (obj.msgFormat !== undefined) {
  2497. if (obj.msgFormat !== null) {
  2498. let value = obj.msgFormat;
  2499. msg.setMsgFormat(value);
  2500. }
  2501. }
  2502. return msg;
  2503. };
  2504. proto.PatternOption.Modifier.Parser = function() {
  2505. ObjectParser.call(this);
  2506. };
  2507. proto.PatternOption.Modifier.Parser.prototype = Object.create(ObjectParser.prototype);
  2508. proto.PatternOption.Modifier.Parser.prototype.constructor = proto.PatternOption.Modifier.Parser;
  2509. proto.PatternOption.Modifier.Parser.prototype.fromObject = function(obj) {
  2510. if (obj === null) {
  2511. return null;
  2512. }
  2513. let msg = new proto.PatternOption.Modifier();
  2514. if (obj.dotAll !== undefined) {
  2515. if (obj.dotAll !== null) {
  2516. let value = obj.dotAll;
  2517. msg.setDotAll(value);
  2518. }
  2519. }
  2520. if (obj.caseInsensitive !== undefined) {
  2521. if (obj.caseInsensitive !== null) {
  2522. let value = obj.caseInsensitive;
  2523. msg.setCaseInsensitive(value);
  2524. }
  2525. }
  2526. if (obj.multiline !== undefined) {
  2527. if (obj.multiline !== null) {
  2528. let value = obj.multiline;
  2529. msg.setMultiline(value);
  2530. }
  2531. }
  2532. if (obj.unicode !== undefined) {
  2533. if (obj.unicode !== null) {
  2534. let value = obj.unicode;
  2535. msg.setUnicode(value);
  2536. }
  2537. }
  2538. if (obj.partialMatch !== undefined) {
  2539. if (obj.partialMatch !== null) {
  2540. let value = obj.partialMatch;
  2541. msg.setPartialMatch(value);
  2542. }
  2543. }
  2544. return msg;
  2545. };
  2546. proto.EntityOption.Parser = function() {
  2547. ObjectParser.call(this);
  2548. };
  2549. proto.EntityOption.Parser.prototype = Object.create(ObjectParser.prototype);
  2550. proto.EntityOption.Parser.prototype.constructor = proto.EntityOption.Parser;
  2551. proto.EntityOption.Parser.prototype.fromObject = function(obj) {
  2552. if (obj === null) {
  2553. return null;
  2554. }
  2555. let msg = new proto.EntityOption();
  2556. if (obj.kind !== undefined) {
  2557. if (obj.kind !== null) {
  2558. let value = proto.EntityOption.Kind[obj.kind];
  2559. msg.setKind(value);
  2560. }
  2561. }
  2562. if (obj.visibility !== undefined) {
  2563. if (obj.visibility !== null) {
  2564. let value = proto.EntityOption.Visibility[obj.visibility];
  2565. msg.setVisibility(value);
  2566. }
  2567. }
  2568. return msg;
  2569. };
  2570. proto.IsOption.Parser = function() {
  2571. ObjectParser.call(this);
  2572. };
  2573. proto.IsOption.Parser.prototype = Object.create(ObjectParser.prototype);
  2574. proto.IsOption.Parser.prototype.constructor = proto.IsOption.Parser;
  2575. proto.IsOption.Parser.prototype.fromObject = function(obj) {
  2576. if (obj === null) {
  2577. return null;
  2578. }
  2579. let msg = new proto.IsOption();
  2580. if (obj.generate !== undefined) {
  2581. if (obj.generate !== null) {
  2582. let value = obj.generate;
  2583. msg.setGenerate(value);
  2584. }
  2585. }
  2586. if (obj.javaType !== undefined) {
  2587. if (obj.javaType !== null) {
  2588. let value = obj.javaType;
  2589. msg.setJavaType(value);
  2590. }
  2591. }
  2592. return msg;
  2593. };
  2594. // Generated by Spine ProtoJs Plugin
  2595. proto.IfInvalidOption.typeUrl = function() {
  2596. return 'type.spine.io/IfInvalidOption';
  2597. };
  2598. // Generated by Spine ProtoJs Plugin
  2599. proto.GoesOption.typeUrl = function() {
  2600. return 'type.spine.io/GoesOption';
  2601. };
  2602. // Generated by Spine ProtoJs Plugin
  2603. proto.PatternOption.typeUrl = function() {
  2604. return 'type.spine.io/PatternOption';
  2605. };
  2606. // Generated by Spine ProtoJs Plugin
  2607. proto.MaxOption.typeUrl = function() {
  2608. return 'type.spine.io/MaxOption';
  2609. };
  2610. // Generated by Spine ProtoJs Plugin
  2611. proto.MinOption.typeUrl = function() {
  2612. return 'type.spine.io/MinOption';
  2613. };
  2614. // Generated by Spine ProtoJs Plugin
  2615. proto.IfMissingOption.typeUrl = function() {
  2616. return 'type.spine.io/IfMissingOption';
  2617. };
  2618. // Generated by Spine ProtoJs Plugin
  2619. proto.PatternOption.Modifier.typeUrl = function() {
  2620. return 'type.spine.io/PatternOption.Modifier';
  2621. };
  2622. // Generated by Spine ProtoJs Plugin
  2623. proto.EntityOption.typeUrl = function() {
  2624. return 'type.spine.io/EntityOption';
  2625. };
  2626. // Generated by Spine ProtoJs Plugin
  2627. proto.IsOption.typeUrl = function() {
  2628. return 'type.spine.io/IsOption';
  2629. };
  2630. // Generated by Spine ProtoJs Plugin
  2631. proto.EntityOption.Visibility.typeUrl = function() {
  2632. return 'type.spine.io/EntityOption.Visibility';
  2633. };
  2634. // Generated by Spine ProtoJs Plugin
  2635. proto.EntityOption.Kind.typeUrl = function() {
  2636. return 'type.spine.io/EntityOption.Kind';
  2637. };