Source: proto/spine/net/url_pb.js

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