Source: proto/spine/client/filters_pb.js

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