@vertexvis/viewer 0.21.0-testing.2 → 0.21.0-testing.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/cjs/{controller-9e5744ec.js → controller-004b9f2c.js} +197 -4
  2. package/dist/cjs/controller-004b9f2c.js.map +1 -0
  3. package/dist/cjs/index.cjs.js +2 -2
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{queries-b9bf26dd.js → queries-731d8cf1.js} +40 -12
  6. package/dist/cjs/queries-731d8cf1.js.map +1 -0
  7. package/dist/cjs/vertex-scene-tree.cjs.entry.js +24 -11
  8. package/dist/cjs/vertex-scene-tree.cjs.entry.js.map +1 -1
  9. package/dist/cjs/vertex-viewer-measurement-distance.cjs.entry.js +6 -0
  10. package/dist/cjs/vertex-viewer-measurement-distance.cjs.entry.js.map +1 -1
  11. package/dist/cjs/vertex-viewer-pin-group.cjs.entry.js +1 -1
  12. package/dist/cjs/vertex-viewer.cjs.entry.js +1 -1
  13. package/dist/cjs/viewer.cjs.js +1 -1
  14. package/dist/collection/components/scene-tree/lib/controller.js +5 -0
  15. package/dist/collection/components/scene-tree/lib/controller.js.map +1 -1
  16. package/dist/collection/components/scene-tree/lib/viewer-ops.js +4 -2
  17. package/dist/collection/components/scene-tree/lib/viewer-ops.js.map +1 -1
  18. package/dist/collection/components/scene-tree/scene-tree.js +50 -12
  19. package/dist/collection/components/scene-tree/scene-tree.js.map +1 -1
  20. package/dist/collection/components/scene-tree/types.js.map +1 -1
  21. package/dist/collection/components/viewer-measurement-distance/viewer-measurement-distance.js +6 -0
  22. package/dist/collection/components/viewer-measurement-distance/viewer-measurement-distance.js.map +1 -1
  23. package/dist/collection/lib/scenes/mapper.js +34 -8
  24. package/dist/collection/lib/scenes/mapper.js.map +1 -1
  25. package/dist/collection/lib/scenes/queries.js +5 -3
  26. package/dist/collection/lib/scenes/queries.js.map +1 -1
  27. package/dist/components/controller.js +196 -3
  28. package/dist/components/controller.js.map +1 -1
  29. package/dist/components/queries.js +39 -11
  30. package/dist/components/queries.js.map +1 -1
  31. package/dist/components/vertex-scene-tree.js +24 -10
  32. package/dist/components/vertex-scene-tree.js.map +1 -1
  33. package/dist/components/vertex-viewer-measurement-distance.js +6 -0
  34. package/dist/components/vertex-viewer-measurement-distance.js.map +1 -1
  35. package/dist/esm/{controller-f2beee15.js → controller-6d2fbb9b.js} +197 -4
  36. package/dist/esm/controller-6d2fbb9b.js.map +1 -0
  37. package/dist/esm/index.js +2 -2
  38. package/dist/esm/index.mjs +2 -2
  39. package/dist/esm/loader.js +1 -1
  40. package/dist/esm/loader.mjs +1 -1
  41. package/dist/esm/{queries-78f566c5.js → queries-3bd4cfe1.js} +40 -12
  42. package/dist/esm/queries-3bd4cfe1.js.map +1 -0
  43. package/dist/esm/vertex-scene-tree.entry.js +24 -11
  44. package/dist/esm/vertex-scene-tree.entry.js.map +1 -1
  45. package/dist/esm/vertex-viewer-measurement-distance.entry.js +6 -0
  46. package/dist/esm/vertex-viewer-measurement-distance.entry.js.map +1 -1
  47. package/dist/esm/vertex-viewer-pin-group.entry.js +1 -1
  48. package/dist/esm/vertex-viewer.entry.js +1 -1
  49. package/dist/esm/viewer.js +1 -1
  50. package/dist/types/components/scene-tree/lib/controller.d.ts +4 -0
  51. package/dist/types/components/scene-tree/lib/viewer-ops.d.ts +1 -1
  52. package/dist/types/components/scene-tree/scene-tree.d.ts +7 -1
  53. package/dist/types/components/scene-tree/types.d.ts +5 -0
  54. package/dist/types/components.d.ts +13 -5
  55. package/dist/types/lib/scenes/queries.d.ts +4 -2
  56. package/dist/viewer/index.esm.js +1 -1
  57. package/dist/viewer/p-0f4f3757.js +5 -0
  58. package/dist/viewer/p-0f4f3757.js.map +1 -0
  59. package/dist/viewer/{p-1486ba3d.entry.js → p-70d29252.entry.js} +2 -2
  60. package/dist/viewer/{p-33627452.entry.js → p-be1fd8a7.entry.js} +2 -2
  61. package/dist/viewer/p-ccb5ff47.js +5 -0
  62. package/dist/viewer/p-ccb5ff47.js.map +1 -0
  63. package/dist/viewer/p-d41913d2.entry.js +5 -0
  64. package/dist/viewer/p-d41913d2.entry.js.map +1 -0
  65. package/dist/viewer/{p-f8c3e667.entry.js → p-d8626aa7.entry.js} +2 -2
  66. package/dist/viewer/p-d8626aa7.entry.js.map +1 -0
  67. package/dist/viewer/viewer.esm.js +1 -1
  68. package/dist/viewer/viewer.esm.js.map +1 -1
  69. package/package.json +8 -8
  70. package/dist/cjs/controller-9e5744ec.js.map +0 -1
  71. package/dist/cjs/queries-b9bf26dd.js.map +0 -1
  72. package/dist/esm/controller-f2beee15.js.map +0 -1
  73. package/dist/esm/queries-78f566c5.js.map +0 -1
  74. package/dist/viewer/p-07b05774.entry.js +0 -5
  75. package/dist/viewer/p-07b05774.entry.js.map +0 -1
  76. package/dist/viewer/p-564f9027.js +0 -5
  77. package/dist/viewer/p-564f9027.js.map +0 -1
  78. package/dist/viewer/p-949afb47.js +0 -5
  79. package/dist/viewer/p-949afb47.js.map +0 -1
  80. package/dist/viewer/p-f8c3e667.entry.js.map +0 -1
  81. /package/dist/viewer/{p-1486ba3d.entry.js.map → p-70d29252.entry.js.map} +0 -0
  82. /package/dist/viewer/{p-33627452.entry.js.map → p-be1fd8a7.entry.js.map} +0 -0
@@ -1,5 +0,0 @@
1
- /*!
2
- * Copyright (c) 2024 Vertex Software LLC. All rights reserved.
3
- */
4
- import{w as t,g as o}from"./p-c93bea57.js";import{c as r}from"./p-88c19f38.js";import{g as e}from"./p-96daf338.js";import{E as n}from"./p-fbf81eb8.js";import{C as i}from"./p-9c3e35fd.js";import{i as s,f as u}from"./p-67acaae6.js";var a=r((function(t,o){var r=e;var n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Cursor",null,n);r.exportSymbol("proto.vertexvis.protobuf.core.OffsetCursor",null,n);r.exportSymbol("proto.vertexvis.protobuf.core.OffsetPager",null,n);r.exportSymbol("proto.vertexvis.protobuf.core.Pager",null,n);proto.vertexvis.protobuf.core.Pager=function(t){e.Message.initialize(this,t,0,-1,null,null)};r.inherits(proto.vertexvis.protobuf.core.Pager,e.Message);if(r.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.Pager.displayName="proto.vertexvis.protobuf.core.Pager"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.Pager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Pager.toObject(t,this)};proto.vertexvis.protobuf.core.Pager.toObject=function(t,o){var r={limit:e.Message.getFieldWithDefault(o,1,0),cursor:e.Message.getFieldWithDefault(o,2,"")};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.core.Pager.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.core.Pager;return proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readUint32();t.setLimit(e);break;case 2:var e=o.readString();t.setCursor(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.Pager.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getLimit();if(r!==0){o.writeUint32(1,r)}r=t.getCursor();if(r.length>0){o.writeString(2,r)}};proto.vertexvis.protobuf.core.Pager.prototype.getLimit=function(){return e.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.core.Pager.prototype.setLimit=function(t){e.Message.setProto3IntField(this,1,t)};proto.vertexvis.protobuf.core.Pager.prototype.getCursor=function(){return e.Message.getFieldWithDefault(this,2,"")};proto.vertexvis.protobuf.core.Pager.prototype.setCursor=function(t){e.Message.setProto3StringField(this,2,t)};proto.vertexvis.protobuf.core.OffsetPager=function(t){e.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_)};r.inherits(proto.vertexvis.protobuf.core.OffsetPager,e.Message);if(r.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.OffsetPager.displayName="proto.vertexvis.protobuf.core.OffsetPager"}proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_=[[2,3]];proto.vertexvis.protobuf.core.OffsetPager.PagerCase={PAGER_NOT_SET:0,CURSOR:2,OFFSET:3};proto.vertexvis.protobuf.core.OffsetPager.prototype.getPagerCase=function(){return e.Message.computeOneofCase(this,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0])};if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.OffsetPager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetPager.toObject(t,this)};proto.vertexvis.protobuf.core.OffsetPager.toObject=function(t,o){var r={limit:e.Message.getFieldWithDefault(o,1,0),cursor:e.Message.getFieldWithDefault(o,2,""),offset:e.Message.getFieldWithDefault(o,3,0)};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.core.OffsetPager.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.core.OffsetPager;return proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readUint32();t.setLimit(e);break;case 2:var e=o.readString();t.setCursor(e);break;case 3:var e=o.readUint32();t.setOffset(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.OffsetPager.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getLimit();if(r!==0){o.writeUint32(1,r)}r=e.Message.getField(t,2);if(r!=null){o.writeString(2,r)}r=e.Message.getField(t,3);if(r!=null){o.writeUint32(3,r)}};proto.vertexvis.protobuf.core.OffsetPager.prototype.getLimit=function(){return e.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.core.OffsetPager.prototype.setLimit=function(t){e.Message.setProto3IntField(this,1,t)};proto.vertexvis.protobuf.core.OffsetPager.prototype.getCursor=function(){return e.Message.getFieldWithDefault(this,2,"")};proto.vertexvis.protobuf.core.OffsetPager.prototype.setCursor=function(t){e.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)};proto.vertexvis.protobuf.core.OffsetPager.prototype.clearCursor=function(){e.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],undefined)};proto.vertexvis.protobuf.core.OffsetPager.prototype.hasCursor=function(){return e.Message.getField(this,2)!=null};proto.vertexvis.protobuf.core.OffsetPager.prototype.getOffset=function(){return e.Message.getFieldWithDefault(this,3,0)};proto.vertexvis.protobuf.core.OffsetPager.prototype.setOffset=function(t){e.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)};proto.vertexvis.protobuf.core.OffsetPager.prototype.clearOffset=function(){e.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],undefined)};proto.vertexvis.protobuf.core.OffsetPager.prototype.hasOffset=function(){return e.Message.getField(this,3)!=null};proto.vertexvis.protobuf.core.Cursor=function(t){e.Message.initialize(this,t,0,-1,null,null)};r.inherits(proto.vertexvis.protobuf.core.Cursor,e.Message);if(r.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.Cursor.displayName="proto.vertexvis.protobuf.core.Cursor"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.Cursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Cursor.toObject(t,this)};proto.vertexvis.protobuf.core.Cursor.toObject=function(t,o){var r={next:e.Message.getFieldWithDefault(o,1,"")};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.core.Cursor.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.core.Cursor;return proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readString();t.setNext(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.Cursor.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getNext();if(r.length>0){o.writeString(1,r)}};proto.vertexvis.protobuf.core.Cursor.prototype.getNext=function(){return e.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.core.Cursor.prototype.setNext=function(t){e.Message.setProto3StringField(this,1,t)};proto.vertexvis.protobuf.core.OffsetCursor=function(t){e.Message.initialize(this,t,0,-1,null,null)};r.inherits(proto.vertexvis.protobuf.core.OffsetCursor,e.Message);if(r.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.OffsetCursor.displayName="proto.vertexvis.protobuf.core.OffsetCursor"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.OffsetCursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetCursor.toObject(t,this)};proto.vertexvis.protobuf.core.OffsetCursor.toObject=function(t,o){var r={total:e.Message.getFieldWithDefault(o,1,0),next:e.Message.getFieldWithDefault(o,2,"")};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.core.OffsetCursor;return proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readUint32();t.setTotal(e);break;case 2:var e=o.readString();t.setNext(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.OffsetCursor.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getTotal();if(r!==0){o.writeUint32(1,r)}r=t.getNext();if(r.length>0){o.writeString(2,r)}};proto.vertexvis.protobuf.core.OffsetCursor.prototype.getTotal=function(){return e.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.core.OffsetCursor.prototype.setTotal=function(t){e.Message.setProto3IntField(this,1,t)};proto.vertexvis.protobuf.core.OffsetCursor.prototype.getNext=function(){return e.Message.getFieldWithDefault(this,2,"")};proto.vertexvis.protobuf.core.OffsetCursor.prototype.setNext=function(t){e.Message.setProto3StringField(this,2,t)};r.object.extend(o,proto.vertexvis.protobuf.core)}));var c=r((function(t,o){var r=e;var n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Uuid",null,n);r.exportSymbol("proto.vertexvis.protobuf.core.Uuid2l",null,n);proto.vertexvis.protobuf.core.Uuid=function(t){e.Message.initialize(this,t,0,-1,null,null)};r.inherits(proto.vertexvis.protobuf.core.Uuid,e.Message);if(r.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.Uuid.displayName="proto.vertexvis.protobuf.core.Uuid"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.Uuid.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid.toObject(t,this)};proto.vertexvis.protobuf.core.Uuid.toObject=function(t,o){var r={hex:e.Message.getFieldWithDefault(o,1,"")};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.core.Uuid.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.core.Uuid;return proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readString();t.setHex(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.Uuid.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getHex();if(r.length>0){o.writeString(1,r)}};proto.vertexvis.protobuf.core.Uuid.prototype.getHex=function(){return e.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.core.Uuid.prototype.setHex=function(t){e.Message.setProto3StringField(this,1,t)};proto.vertexvis.protobuf.core.Uuid2l=function(t){e.Message.initialize(this,t,0,-1,null,null)};r.inherits(proto.vertexvis.protobuf.core.Uuid2l,e.Message);if(r.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.Uuid2l.displayName="proto.vertexvis.protobuf.core.Uuid2l"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.Uuid2l.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid2l.toObject(t,this)};proto.vertexvis.protobuf.core.Uuid2l.toObject=function(t,o){var r={msb:e.Message.getFieldWithDefault(o,1,"0"),lsb:e.Message.getFieldWithDefault(o,2,"0")};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.core.Uuid2l.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.core.Uuid2l;return proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readSfixed64String();t.setMsb(e);break;case 2:var e=o.readSfixed64String();t.setLsb(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.Uuid2l.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getMsb();if(parseInt(r,10)!==0){o.writeSfixed64String(1,r)}r=t.getLsb();if(parseInt(r,10)!==0){o.writeSfixed64String(2,r)}};proto.vertexvis.protobuf.core.Uuid2l.prototype.getMsb=function(){return e.Message.getFieldWithDefault(this,1,"0")};proto.vertexvis.protobuf.core.Uuid2l.prototype.setMsb=function(t){e.Message.setProto3StringIntField(this,1,t)};proto.vertexvis.protobuf.core.Uuid2l.prototype.getLsb=function(){return e.Message.getFieldWithDefault(this,2,"0")};proto.vertexvis.protobuf.core.Uuid2l.prototype.setLsb=function(t){e.Message.setProto3StringIntField(this,2,t)};r.object.extend(o,proto.vertexvis.protobuf.core)}));var p=r((function(o,r){var n=e;var i=Function("return this")();n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Node",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Range",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType",null,i);proto.vertexvis.protobuf.scenetree.v1alpha1.Node=function(t){e.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Node,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Node.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Node"}proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_=[10];if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.toObject=function(o,r){var n,i={id:(n=r.getId())&&c.Uuid.toObject(o,n),depth:e.Message.getFieldWithDefault(r,2,0),name:e.Message.getFieldWithDefault(r,3,""),visible:e.Message.getFieldWithDefault(r,4,false),selected:e.Message.getFieldWithDefault(r,5,false),expanded:e.Message.getFieldWithDefault(r,6,false),isLeaf:e.Message.getFieldWithDefault(r,7,false),suppliedId:(n=r.getSuppliedId())&&t.StringValue.toObject(o,n),partiallyVisible:e.Message.getFieldWithDefault(r,9,false),columnsList:e.Message.getRepeatedField(r,10),filterHit:e.Message.getFieldWithDefault(r,11,false),phantom:e.Message.getFieldWithDefault(r,12,false),endItem:e.Message.getFieldWithDefault(r,13,false)};if(o){i.$jspbMessageInstance=r}return i}}proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Node;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader=function(o,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var n=new c.Uuid;r.readMessage(n,c.Uuid.deserializeBinaryFromReader);o.setId(n);break;case 2:var n=r.readUint32();o.setDepth(n);break;case 3:var n=r.readString();o.setName(n);break;case 4:var n=r.readBool();o.setVisible(n);break;case 5:var n=r.readBool();o.setSelected(n);break;case 6:var n=r.readBool();o.setExpanded(n);break;case 7:var n=r.readBool();o.setIsLeaf(n);break;case 8:var n=new t.StringValue;r.readMessage(n,t.StringValue.deserializeBinaryFromReader);o.setSuppliedId(n);break;case 9:var n=r.readBool();o.setPartiallyVisible(n);break;case 10:var n=r.readString();o.addColumns(n);break;case 11:var n=r.readBool();o.setFilterHit(n);break;case 12:var n=r.readBool();o.setPhantom(n);break;case 13:var n=r.readBool();o.setEndItem(n);break;default:r.skipField();break}}return o};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter=function(o,r){var e=undefined;e=o.getId();if(e!=null){r.writeMessage(1,e,c.Uuid.serializeBinaryToWriter)}e=o.getDepth();if(e!==0){r.writeUint32(2,e)}e=o.getName();if(e.length>0){r.writeString(3,e)}e=o.getVisible();if(e){r.writeBool(4,e)}e=o.getSelected();if(e){r.writeBool(5,e)}e=o.getExpanded();if(e){r.writeBool(6,e)}e=o.getIsLeaf();if(e){r.writeBool(7,e)}e=o.getSuppliedId();if(e!=null){r.writeMessage(8,e,t.StringValue.serializeBinaryToWriter)}e=o.getPartiallyVisible();if(e){r.writeBool(9,e)}e=o.getColumnsList();if(e.length>0){r.writeRepeatedString(10,e)}e=o.getFilterHit();if(e){r.writeBool(11,e)}e=o.getPhantom();if(e){r.writeBool(12,e)}e=o.getEndItem();if(e){r.writeBool(13,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getId=function(){return e.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setId=function(t){e.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearId=function(){this.setId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasId=function(){return e.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getDepth=function(){return e.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setDepth=function(t){e.Message.setProto3IntField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getName=function(){return e.Message.getFieldWithDefault(this,3,"")};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setName=function(t){e.Message.setProto3StringField(this,3,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getVisible=function(){return e.Message.getFieldWithDefault(this,4,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setVisible=function(t){e.Message.setProto3BooleanField(this,4,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSelected=function(){return e.Message.getFieldWithDefault(this,5,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSelected=function(t){e.Message.setProto3BooleanField(this,5,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getExpanded=function(){return e.Message.getFieldWithDefault(this,6,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setExpanded=function(t){e.Message.setProto3BooleanField(this,6,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getIsLeaf=function(){return e.Message.getFieldWithDefault(this,7,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setIsLeaf=function(t){e.Message.setProto3BooleanField(this,7,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSuppliedId=function(){return e.Message.getWrapperField(this,t.StringValue,8)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSuppliedId=function(t){e.Message.setWrapperField(this,8,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearSuppliedId=function(){this.setSuppliedId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasSuppliedId=function(){return e.Message.getField(this,8)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPartiallyVisible=function(){return e.Message.getFieldWithDefault(this,9,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPartiallyVisible=function(t){e.Message.setProto3BooleanField(this,9,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getColumnsList=function(){return e.Message.getRepeatedField(this,10)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setColumnsList=function(t){e.Message.setField(this,10,t||[])};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.addColumns=function(t,o){e.Message.addToRepeatedField(this,10,t,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearColumnsList=function(){this.setColumnsList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getFilterHit=function(){return e.Message.getFieldWithDefault(this,11,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setFilterHit=function(t){e.Message.setProto3BooleanField(this,11,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPhantom=function(){return e.Message.getFieldWithDefault(this,12,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPhantom=function(t){e.Message.setProto3BooleanField(this,12,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getEndItem=function(){return e.Message.getFieldWithDefault(this,13,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setEndItem=function(t){e.Message.setProto3BooleanField(this,13,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject=function(t,o){var r={start:e.Message.getFieldWithDefault(o,1,0)};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readInt32();t.setStart(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getStart();if(r!==0){o.writeInt32(1,r)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.getStart=function(){return e.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.setStart=function(t){e.Message.setProto3IntField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Range,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Range.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Range"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject=function(t,o){var r={start:e.Message.getFieldWithDefault(o,1,0),end:e.Message.getFieldWithDefault(o,2,0)};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readInt32();t.setStart(e);break;case 2:var e=o.readInt32();t.setEnd(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getStart();if(r!==0){o.writeInt32(1,r)}r=t.getEnd();if(r!==0){o.writeInt32(2,r)}};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getStart=function(){return e.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setStart=function(t){e.Message.setProto3IntField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getEnd=function(){return e.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setEnd=function(t){e.Message.setProto3IntField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange=function(t){e.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange"}proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_=[1,2,3,4,5];if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject=function(t,o){var r={hiddenList:e.Message.toObjectList(o.getHiddenList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),shownList:e.Message.toObjectList(o.getShownList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),selectedList:e.Message.toObjectList(o.getSelectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),deselectedList:e.Message.toObjectList(o.getDeselectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),partiallyVisibleList:e.Message.toObjectList(o.getPartiallyVisibleList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t)};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addHidden(e);break;case 2:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addShown(e);break;case 3:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addSelected(e);break;case 4:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addDeselected(e);break;case 5:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addPartiallyVisible(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getHiddenList();if(r.length>0){o.writeRepeatedMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}r=t.getShownList();if(r.length>0){o.writeRepeatedMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}r=t.getSelectedList();if(r.length>0){o.writeRepeatedMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}r=t.getDeselectedList();if(r.length>0){o.writeRepeatedMessage(4,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}r=t.getPartiallyVisibleList();if(r.length>0){o.writeRepeatedMessage(5,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getHiddenList=function(){return e.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setHiddenList=function(t){e.Message.setRepeatedWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addHidden=function(t,o){return e.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearHiddenList=function(){this.setHiddenList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getShownList=function(){return e.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setShownList=function(t){e.Message.setRepeatedWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addShown=function(t,o){return e.Message.addToRepeatedWrapperField(this,2,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearShownList=function(){this.setShownList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getSelectedList=function(){return e.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setSelectedList=function(t){e.Message.setRepeatedWrapperField(this,3,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addSelected=function(t,o){return e.Message.addToRepeatedWrapperField(this,3,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearSelectedList=function(){this.setSelectedList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getDeselectedList=function(){return e.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,4)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setDeselectedList=function(t){e.Message.setRepeatedWrapperField(this,4,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addDeselected=function(t,o){return e.Message.addToRepeatedWrapperField(this,4,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearDeselectedList=function(){this.setDeselectedList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getPartiallyVisibleList=function(){return e.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,5)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setPartiallyVisibleList=function(t){e.Message.setRepeatedWrapperField(this,5,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addPartiallyVisible=function(t,o){return e.Message.addToRepeatedWrapperField(this,5,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearPartiallyVisibleList=function(){this.setPartiallyVisibleList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject=function(t,o){var r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType=function(t){e.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType"}proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_=[[1,2,3]];proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase={SEALED_VALUE_NOT_SET:0,LIST_CHANGE:1,RANGES:2,KEEP_ALIVE:3};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getSealedValueCase=function(){return e.Message.computeOneofCase(this,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0])};if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject=function(t,o){var r,e={listChange:(r=o.getListChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,r),ranges:(r=o.getRanges())&&proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,r),keepAlive:(r=o.getKeepAlive())&&proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader);t.setListChange(e);break;case 2:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader);t.setRanges(e);break;case 3:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader);t.setKeepAlive(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getListChange();if(r!=null){o.writeMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter)}r=t.getRanges();if(r!=null){o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter)}r=t.getKeepAlive();if(r!=null){o.writeMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getListChange=function(){return e.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setListChange=function(t){e.Message.setOneofWrapperField(this,1,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearListChange=function(){this.setListChange(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasListChange=function(){return e.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getRanges=function(){return e.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setRanges=function(t){e.Message.setOneofWrapperField(this,2,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearRanges=function(){this.setRanges(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasRanges=function(){return e.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getKeepAlive=function(){return e.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setKeepAlive=function(t){e.Message.setOneofWrapperField(this,3,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearKeepAlive=function(){this.setKeepAlive(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasKeepAlive=function(){return e.Message.getField(this,3)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject=function(t,o){var r={value:e.Message.getFieldWithDefault(o,1,"")};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readString();t.setValue(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getValue();if(r.length>0){o.writeString(1,r)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.getValue=function(){return e.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.setValue=function(t){e.Message.setProto3StringField(this,1,t)};n.object.extend(r,proto.vertexvis.protobuf.scenetree.v1alpha1)}));var f=r((function(o,r){var n=e;var i=Function("return this")();n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse",null,i);proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest=function(t){e.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_=[3];if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&c.Uuid.toObject(t,r),pager:(r=o.getPager())&&a.OffsetPager.toObject(t,r),additionalColumnKeysList:e.Message.getRepeatedField(o,3)};if(t){n.$jspbMessageInstance=o}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setViewId(e);break;case 2:var e=new a.OffsetPager;o.readMessage(e,a.OffsetPager.deserializeBinaryFromReader);t.setPager(e);break;case 3:var e=o.readString();t.addAdditionalColumnKeys(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getViewId();if(r!=null){o.writeMessage(1,r,c.Uuid.serializeBinaryToWriter)}r=t.getPager();if(r!=null){o.writeMessage(2,r,a.OffsetPager.serializeBinaryToWriter)}r=t.getAdditionalColumnKeysList();if(r.length>0){o.writeRepeatedString(3,r)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getViewId=function(){return e.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setViewId=function(t){e.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearViewId=function(){this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasViewId=function(){return e.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getPager=function(){return e.Message.getWrapperField(this,a.OffsetPager,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setPager=function(t){e.Message.setWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearPager=function(){this.setPager(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasPager=function(){return e.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getAdditionalColumnKeysList=function(){return e.Message.getRepeatedField(this,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setAdditionalColumnKeysList=function(t){e.Message.setField(this,3,t||[])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.addAdditionalColumnKeys=function(t,o){e.Message.addToRepeatedField(this,3,t,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearAdditionalColumnKeysList=function(){this.setAdditionalColumnKeysList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse=function(t){e.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_=[1];if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject=function(t,o){var r,n={itemsList:e.Message.toObjectList(o.getItemsList(),p.Node.toObject,t),totalVisible:e.Message.getFieldWithDefault(o,2,0),cursor:(r=o.getCursor())&&a.OffsetCursor.toObject(t,r)};if(t){n.$jspbMessageInstance=o}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new p.Node;o.readMessage(e,p.Node.deserializeBinaryFromReader);t.addItems(e);break;case 2:var e=o.readUint32();t.setTotalVisible(e);break;case 3:var e=new a.OffsetCursor;o.readMessage(e,a.OffsetCursor.deserializeBinaryFromReader);t.setCursor(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getItemsList();if(r.length>0){o.writeRepeatedMessage(1,r,p.Node.serializeBinaryToWriter)}r=t.getTotalVisible();if(r!==0){o.writeUint32(2,r)}r=t.getCursor();if(r!=null){o.writeMessage(3,r,a.OffsetCursor.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getItemsList=function(){return e.Message.getRepeatedWrapperField(this,p.Node,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setItemsList=function(t){e.Message.setRepeatedWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.addItems=function(t,o){return e.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearItemsList=function(){this.setItemsList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getTotalVisible=function(){return e.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setTotalVisible=function(t){e.Message.setProto3IntField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getCursor=function(){return e.Message.getWrapperField(this,a.OffsetCursor,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setCursor=function(t){e.Message.setWrapperField(this,3,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearCursor=function(){this.setCursor(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.hasCursor=function(){return e.Message.getField(this,3)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject=function(t,o){var r,e={viewId:(r=o.getViewId())&&c.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&c.Uuid.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setViewId(e);break;case 2:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setNodeId(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getViewId();if(r!=null){o.writeMessage(1,r,c.Uuid.serializeBinaryToWriter)}r=t.getNodeId();if(r!=null){o.writeMessage(2,r,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return e.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setViewId=function(t){e.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearViewId=function(){this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasViewId=function(){return e.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getNodeId=function(){return e.Message.getWrapperField(this,c.Uuid,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setNodeId=function(t){e.Message.setWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearNodeId=function(){this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasNodeId=function(){return e.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject=function(t,o){var r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject=function(t,o){var r,e={viewId:(r=o.getViewId())&&c.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&c.Uuid.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setViewId(e);break;case 2:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setNodeId(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getViewId();if(r!=null){o.writeMessage(1,r,c.Uuid.serializeBinaryToWriter)}r=t.getNodeId();if(r!=null){o.writeMessage(2,r,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return e.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setViewId=function(t){e.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearViewId=function(){this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasViewId=function(){return e.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getNodeId=function(){return e.Message.getWrapperField(this,c.Uuid,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setNodeId=function(t){e.Message.setWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearNodeId=function(){this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasNodeId=function(){return e.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject=function(t,o){var r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject=function(t,o){var r,e={viewId:(r=o.getViewId())&&c.Uuid.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setViewId(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getViewId();if(r!=null){o.writeMessage(1,r,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return e.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.setViewId=function(t){e.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.clearViewId=function(){this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.hasViewId=function(){return e.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject=function(t,o){var r,e={change:(r=o.getChange())&&p.TreeChangeType.toObject(t,r),handshake:(r=o.getHandshake())&&proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new p.TreeChangeType;o.readMessage(e,p.TreeChangeType.deserializeBinaryFromReader);t.setChange(e);break;case 2:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader);t.setHandshake(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getChange();if(r!=null){o.writeMessage(1,r,p.TreeChangeType.serializeBinaryToWriter)}r=t.getHandshake();if(r!=null){o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getChange=function(){return e.Message.getWrapperField(this,p.TreeChangeType,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setChange=function(t){e.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearChange=function(){this.setChange(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasChange=function(){return e.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getHandshake=function(){return e.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setHandshake=function(t){e.Message.setWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearHandshake=function(){this.setHandshake(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasHandshake=function(){return e.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject=function(t,o){var r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest=function(t){e.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_=[3];if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject=function(t,o){var r={filter:e.Message.getFieldWithDefault(o,1,""),fullTree:e.Message.getFieldWithDefault(o,2,false),columnsKeysList:e.Message.getRepeatedField(o,3),exactMatch:e.Message.getFieldWithDefault(o,4,false),removeHiddenItems:e.Message.getFieldWithDefault(o,5,false)};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readString();t.setFilter(e);break;case 2:var e=o.readBool();t.setFullTree(e);break;case 3:var e=o.readString();t.addColumnsKeys(e);break;case 4:var e=o.readBool();t.setExactMatch(e);break;case 5:var e=o.readBool();t.setRemoveHiddenItems(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getFilter();if(r.length>0){o.writeString(1,r)}r=t.getFullTree();if(r){o.writeBool(2,r)}r=t.getColumnsKeysList();if(r.length>0){o.writeRepeatedString(3,r)}r=t.getExactMatch();if(r){o.writeBool(4,r)}r=t.getRemoveHiddenItems();if(r){o.writeBool(5,r)}};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFilter=function(){return e.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFilter=function(t){e.Message.setProto3StringField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFullTree=function(){return e.Message.getFieldWithDefault(this,2,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFullTree=function(t){e.Message.setProto3BooleanField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getColumnsKeysList=function(){return e.Message.getRepeatedField(this,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setColumnsKeysList=function(t){e.Message.setField(this,3,t||[])};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.addColumnsKeys=function(t,o){e.Message.addToRepeatedField(this,3,t,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.clearColumnsKeysList=function(){this.setColumnsKeysList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getExactMatch=function(){return e.Message.getFieldWithDefault(this,4,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setExactMatch=function(t){e.Message.setProto3BooleanField(this,4,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getRemoveHiddenItems=function(){return e.Message.getFieldWithDefault(this,5,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setRemoveHiddenItems=function(t){e.Message.setProto3BooleanField(this,5,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject=function(t,o){var r={numberOfResults:e.Message.getFieldWithDefault(o,1,0)};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readUint32();t.setNumberOfResults(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getNumberOfResults();if(r!==0){o.writeUint32(1,r)}};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.getNumberOfResults=function(){return e.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.setNumberOfResults=function(t){e.Message.setProto3IntField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject=function(t,o){var r,e={nodeId:(r=o.getNodeId())&&c.Uuid.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 2:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setNodeId(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getNodeId();if(r!=null){o.writeMessage(2,r,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return e.Message.getWrapperField(this,c.Uuid,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.setNodeId=function(t){e.Message.setWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.clearNodeId=function(){this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.hasNodeId=function(){return e.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.toObject=function(o,r){var n,i={locatedIndex:(n=r.getLocatedIndex())&&t.UInt64Value.toObject(o,n),requiresReload:e.Message.getFieldWithDefault(r,2,false)};if(o){i.$jspbMessageInstance=r}return i}}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader=function(o,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var n=new t.UInt64Value;r.readMessage(n,t.UInt64Value.deserializeBinaryFromReader);o.setLocatedIndex(n);break;case 2:var n=r.readBool();o.setRequiresReload(n);break;default:r.skipField();break}}return o};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter=function(o,r){var e=undefined;e=o.getLocatedIndex();if(e!=null){r.writeMessage(1,e,t.UInt64Value.serializeBinaryToWriter)}e=o.getRequiresReload();if(e){r.writeBool(2,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getLocatedIndex=function(){return e.Message.getWrapperField(this,t.UInt64Value,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setLocatedIndex=function(t){e.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.clearLocatedIndex=function(){this.setLocatedIndex(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.hasLocatedIndex=function(){return e.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getRequiresReload=function(){return e.Message.getFieldWithDefault(this,2,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setRequiresReload=function(t){e.Message.setProto3BooleanField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject=function(t,o){var r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject=function(t,o){var r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject=function(t,o){var r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject=function(t,o){var r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject=function(t,o){var r,e={nodeId:(r=o.getNodeId())&&c.Uuid.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setNodeId(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getNodeId();if(r!=null){o.writeMessage(1,r,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return e.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.setNodeId=function(t){e.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.clearNodeId=function(){this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.hasNodeId=function(){return e.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse=function(t){e.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_=[1];if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject=function(t,o){var r={itemsList:e.Message.toObjectList(o.getItemsList(),p.Node.toObject,t)};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new p.Node;o.readMessage(e,p.Node.deserializeBinaryFromReader);t.addItems(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getItemsList();if(r.length>0){o.writeRepeatedMessage(1,r,p.Node.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.getItemsList=function(){return e.Message.getRepeatedWrapperField(this,p.Node,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.setItemsList=function(t){e.Message.setRepeatedWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.addItems=function(t,o){return e.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.clearItemsList=function(){this.setItemsList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest=function(t){e.Message.initialize(this,t,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest"}if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject=function(t,o){var r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse=function(t){e.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse,e.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_=[1];if(e.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject=function(t,o){var r={keysList:e.Message.toObjectList(o.getKeysList(),p.ColumnKey.toObject,t)};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinary=function(t){var o=new e.BinaryReader(t);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader(r,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new p.ColumnKey;o.readMessage(e,p.ColumnKey.deserializeBinaryFromReader);t.addKeys(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.serializeBinary=function(){var t=new e.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getKeysList();if(r.length>0){o.writeRepeatedMessage(1,r,p.ColumnKey.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getKeysList=function(){return e.Message.getRepeatedWrapperField(this,p.ColumnKey,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setKeysList=function(t){e.Message.setRepeatedWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.addKeys=function(t,o){return e.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.clearKeysList=function(){this.setKeysList([])};n.object.extend(r,proto.vertexvis.protobuf.scenetree.v1alpha1)}));var h;(function(t){t[t["UNKNOWN"]=0]="UNKNOWN";t[t["SCENE_TREE_DISABLED"]=1]="SCENE_TREE_DISABLED";t[t["MISSING_VIEWER"]=2]="MISSING_VIEWER";t[t["DISCONNECTED"]=3]="DISCONNECTED";t[t["SUBSCRIPTION_FAILURE"]=4]="SUBSCRIPTION_FAILURE";t[t["UNAUTHORIZED"]=5]="UNAUTHORIZED";t[t["ABORTED"]=6]="ABORTED"})(h||(h={}));class l{constructor(t,o,r){this.name=t;this.code=o;this.link=r;this.message=v(o)}}function v(t){switch(t){case h.UNKNOWN:return"An unknown error occurred.";case h.SCENE_TREE_DISABLED:return"The tree for this scene is not enabled. Enable the tree for this scene to interact with the tree.";case h.MISSING_VIEWER:return"Could not find reference to the viewer.";case h.DISCONNECTED:return"Disconnected from server.";case h.SUBSCRIPTION_FAILURE:return"The tree was not able to receive subscription events.";case h.UNAUTHORIZED:return"The tree was unauthorized to connect to the server. The associated Viewer may not be connected.";case h.ABORTED:return"Unable to load the tree for this scene."}}class d extends i{constructor(t,o){super(t,o);Object.setPrototypeOf(this,d.prototype)}}class w extends d{constructor(t,o){super(t,o);Object.setPrototypeOf(this,w.prototype)}}class b extends d{constructor(t,o){super(t,o);Object.setPrototypeOf(this,b.prototype)}}class k extends d{constructor(t,o){super(t,o);Object.setPrototypeOf(this,k.prototype)}}var m=o.grpc;var g=function(){function t(){}t.serviceName="vertexvis.protobuf.scenetree.v1alpha1.SceneTreeAPI";return t}();g.GetTree={methodName:"GetTree",service:g,requestStream:false,responseStream:false,requestType:f.GetTreeRequest,responseType:f.GetTreeResponse};g.ExpandNode={methodName:"ExpandNode",service:g,requestStream:false,responseStream:false,requestType:f.ExpandNodeRequest,responseType:f.ExpandNodeResponse};g.CollapseNode={methodName:"CollapseNode",service:g,requestStream:false,responseStream:false,requestType:f.CollapseNodeRequest,responseType:f.CollapseNodeResponse};g.Subscribe={methodName:"Subscribe",service:g,requestStream:false,responseStream:true,requestType:f.SubscribeRequest,responseType:f.SubscribeResponse};g.Filter={methodName:"Filter",service:g,requestStream:false,responseStream:false,requestType:f.FilterRequest,responseType:f.FilterResponse};g.LocateItem={methodName:"LocateItem",service:g,requestStream:false,responseStream:false,requestType:f.LocateItemRequest,responseType:f.LocateItemResponse};g.ExpandAll={methodName:"ExpandAll",service:g,requestStream:false,responseStream:false,requestType:f.ExpandAllRequest,responseType:f.ExpandAllResponse};g.CollapseAll={methodName:"CollapseAll",service:g,requestStream:false,responseStream:false,requestType:f.CollapseAllRequest,responseType:f.CollapseAllResponse};g.GetNodeAncestors={methodName:"GetNodeAncestors",service:g,requestStream:false,responseStream:false,requestType:f.GetNodeAncestorsRequest,responseType:f.GetNodeAncestorsResponse};g.GetAvailableColumns={methodName:"GetAvailableColumns",service:g,requestStream:false,responseStream:false,requestType:f.GetAvailableColumnsRequest,responseType:f.GetAvailableColumnsResponse};var E=g;function x(t,o){this.serviceHost=t;this.options=o||{}}x.prototype.getTree=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(g.GetTree,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};x.prototype.expandNode=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(g.ExpandNode,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};x.prototype.collapseNode=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(g.CollapseNode,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};x.prototype.subscribe=function t(o,r){var e={data:[],end:[],status:[]};var n=m.invoke(g.Subscribe,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onMessage:function(t){e.data.forEach((function(o){o(t)}))},onEnd:function(t,o,r){e.status.forEach((function(e){e({code:t,details:o,metadata:r})}));e.end.forEach((function(e){e({code:t,details:o,metadata:r})}));e=null}});return{on:function(t,o){e[t].push(o);return this},cancel:function(){e=null;n.close()}}};x.prototype.filter=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(g.Filter,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};x.prototype.locateItem=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(g.LocateItem,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};x.prototype.expandAll=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(g.ExpandAll,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};x.prototype.collapseAll=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(g.CollapseAll,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};x.prototype.getNodeAncestors=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(g.GetNodeAncestors,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};x.prototype.getAvailableColumns=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(g.GetAvailableColumns,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};var O=x;function R(t){return typeof t.code==="number"&&t.hasOwnProperty("metadata")}function y(t){if(t.methodDefinition.methodName===E.Subscribe.methodName){return o.grpc.WebsocketTransport()(t)}else{return o.grpc.CrossBrowserHttpTransport({withCredentials:false})(t)}}function I(t){this.message=t}I.prototype=new Error,I.prototype.name="InvalidCharacterError";var C="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var o=String(t).replace(/=+$/,"");if(o.length%4==1)throw new I("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,e,n=0,i=0,s="";e=o.charAt(i++);~e&&(r=n%4?64*r+e:e,n++%4)?s+=String.fromCharCode(255&r>>(-2*n&6)):0)e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);return s};function S(t){var o=t.replace(/-/g,"+").replace(/_/g,"/");switch(o.length%4){case 0:break;case 2:o+="==";break;case 3:o+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(C(t).replace(/(.)/g,(function(t,o){var r=o.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(o)}catch(t){return C(o)}}function L(t){this.message=t}function T(t,o){if("string"!=typeof t)throw new L("Invalid token specified");var r=!0===(o=o||{}).header?0:1;try{return JSON.parse(S(t.split(".")[r]))}catch(t){throw new L("Invalid token specified: "+t.message)}}L.prototype=new Error,L.prototype.name="InvalidTokenError";function P(t){return T(t)}class N{constructor(t,o,r={spinnerDelay:2e3,subscriptionHandshakeGracePeriodInMs:5e3}){this.client=t;this.rowLimit=o;this.connectOptions=r;this.nextPageId=0;this.pages=new Map;this.activeRowRange=[0,0];this.metadataKeys=[];this.debugLogs=false;this.onStateChange=new n;this.state={totalRows:0,isSearching:false,rows:[],connection:{type:"disconnected"}}}get fetchedPageCount(){return this.pages.size}get isConnected(){return this.state.connection.type==="connected"}stateChanged(t){return this.onStateChange.on(t)}setDebugLogs(t){this.debugLogs=t}async handleSubscriptionHandshakeTimeout(t,o){var r;const e=this.getState().connection;if(this.isConnectedState(e)&&((r=e.subscriptionStatusState)===null||r===void 0?void 0:r.attempt)!=null&&e.subscriptionStatusState.attempt<N.MAX_SUBSCRIPTION_RETRY_COUNT){const r=e.subscriptionStatusState.attempt+1;console.warn(`Failed to subscribe within the allotted timeout. Retry attempt={${r}}`);e.subscriptionStatusState.stream.cancel();this.clearHandshakeTimer();const n=await this.subscribe();this.invalidateAfterOffset(0);this.fetchUnloadedPagesInActiveRows();this.updateState(Object.assign(Object.assign({},this.state),{connection:Object.assign(Object.assign({},e),{type:"connected",subscription:{dispose:()=>n.cancel()},subscriptionStatusState:{attempt:r,stream:n}})}));this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,o)}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}else{this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:o,details:new l("SUBSCRIPTION_FAILURE",h.SUBSCRIPTION_FAILURE)}}))}}async connect(t){const{connection:o}=this.state;const r=t();if(r==null){throw new w("Cannot connect scene tree. JWT is undefined")}const{view:e}=P(r);if(o.sceneViewId!==e){this.disconnect(true)}else{this.disconnect(false)}const n={type:"connecting",jwtProvider:t,sceneViewId:e};this.updateState(Object.assign(Object.assign({},this.state),{connection:n}));try{this.log("Scene tree controller connecting.");this.restartLoadingTimer();const o=await this.subscribe();await this.fetchPage(0);if(this.state.connection.type!=="cancelled"){this.updateState(Object.assign(Object.assign({},this.state),{connection:{jwtProvider:t,sceneViewId:e,type:"connected",subscription:{dispose:()=>o.cancel()},subscriptionStatusState:{attempt:0,stream:o}}}));this.restartHandshakeTimer(t,e)}}catch(o){this.ifErrorIsFatal(o,(()=>{this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:e,details:this.getConnectionError(o)}}));this.clearHandshakeTimer();throw o}))}this.startIdleReconnectTimer()}clearReconnectTimer(){if(this.reconnectTimer!=null){window.clearTimeout(this.reconnectTimer)}}restartHandshakeTimer(t,o){this.clearHandshakeTimer();if(!this.state.handshakeReceived){this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,o);this.subscriptionHandshakeTimer=undefined}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}}clearHandshakeTimer(){if(this.subscriptionHandshakeTimer!=null){window.clearTimeout(this.subscriptionHandshakeTimer);this.subscriptionHandshakeTimer=undefined}}startIdleReconnectTimer(){this.startReconnectTimer(this.connectOptions.idleReconnectInSeconds||N.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||N.LOST_CONNECTION_RECONNECT_IN_SECONDS)}startReconnectTimer(t){this.clearReconnectTimer();this.reconnectTimer=window.setTimeout((()=>{if(this.state.connection.type==="connected"){this.connect(this.state.connection.jwtProvider)}}),t*1e3)}connectToViewer(t){const o=async()=>{if(t.token!=null){this.log("Scene tree controller found viewer JWT. Attempting connection.");try{await this.connect((()=>t.token))}catch(t){this.ifErrorIsFatal(t,(()=>{console.error("Scene tree controller errored connecting.",t)}))}}};const r=()=>{this.log("Scene tree controller received scene ready");o()};o();t.addEventListener("sceneReady",r);return{dispose:()=>{t.removeEventListener("sceneReady",r);this.disconnect()}}}disconnect(t=false){this.log(`Scene tree controller disconnecting [reset=${t}]`);this.clearHandshakeTimer();this.clearReconnectTimer();if(t){this.pages.clear();this.activeRowRange=[]}const{connection:o}=this.state;if(o.type==="connected"){o.subscription.dispose()}this.updateState({connection:{type:"disconnected",jwtProvider:o.jwtProvider,sceneViewId:o.sceneViewId},isSearching:false,totalRows:t?0:this.state.totalRows,rows:t?[]:this.state.rows,filterTerm:t?undefined:this.state.filterTerm,totalFilteredRows:t?undefined:this.state.totalFilteredRows,shouldShowEmptyResults:t?undefined:this.state.shouldShowEmptyResults,handshakeReceived:t?undefined:this.state.handshakeReceived,firstFetchComplete:t?undefined:this.state.firstFetchComplete})}cancel(){this.log(`Scene tree controller cancelled`);this.clearHandshakeTimer();this.clearReconnectTimer();this.pages.clear();this.activeRowRange=[];const{connection:t}=this.state;if(t.type==="connected"){t.subscription.dispose()}this.updateState({connection:{type:"cancelled",jwtProvider:t.jwtProvider,sceneViewId:t.sceneViewId},isSearching:false,totalRows:0,rows:[]})}async collapseNode(t){return this.ifConnectionHasJwt((async o=>{const r=new c.Uuid;r.setHex(t);const e=new f.CollapseNodeRequest;e.setNodeId(r);await this.requestUnary(o,((t,o)=>this.client.collapseNode(e,t,o)))}))}async expandNode(t){return this.ifConnectionHasJwt((async o=>{const r=new c.Uuid;r.setHex(t);const e=new f.ExpandNodeRequest;e.setNodeId(r);await this.requestUnary(o,((t,o)=>this.client.expandNode(e,t,o)))}))}async collapseAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.collapseAll(new f.CollapseAllRequest,t,o)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.expandAll(new f.ExpandAllRequest,t,o)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async o=>{const r=new c.Uuid;r.setHex(t);const e=new f.LocateItemRequest;e.setNodeId(r);const n=await this.requestUnary(o,((t,o)=>this.client.locateItem(e,t,o)));const{requiresReload:i,locatedIndex:s}=n.toObject();if(i){this.invalidateAfterOffset(0);await this.fetchUnloadedPagesInActiveRows()}if(s==null){throw new k("Cannot locate node. Location index is undefined.")}return s.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async o=>{const r=new c.Uuid;r.setHex(t);const e=new f.GetNodeAncestorsRequest;e.setNodeId(r);const n=await this.requestUnary(o,((t,o)=>this.client.getNodeAncestors(e,t,o)));return n.toObject().itemsList}))}async fetchPage(t){return this.ifConnectionHasJwt((async o=>{var r;if(t<0||t>this.maxPages-1){return}if(!this.pages.has(t)){const r=t*this.rowLimit;this.log("Scene tree fetching page",t,r);const e=this.fetchTree(r,this.rowLimit,o);const n=this.nextPageId++;const i={id:n,res:e,index:t,metadataKeys:this.metadataKeys};this.pages.set(t,i);this.handlePageResult(i)}await((r=this.pages.get(t))===null||r===void 0?void 0:r.res)}))}fetchPageAtOffset(t){const o=Math.floor(t/this.rowLimit);return this.fetchPage(o)}async fetchRange(t,o){const r=Math.floor(t/this.rowLimit);const e=Math.floor(o/this.rowLimit);const[n,i]=this.constrainPageRange(r,e);const s=i-n+1;await Promise.all(Array.from({length:s}).map(((t,o)=>this.fetchPage(o))))}async fetchMetadataKeys(){return this.ifConnectionHasJwt((async t=>{const o=await this.requestUnary(t,((t,o)=>{const r=new f.GetAvailableColumnsRequest;this.client.getAvailableColumns(r,t,o)}));return o.getKeysList().map((t=>t.getValue()))}))}async filter(t,o={}){return this.ifConnectionHasJwt((async r=>{var e;this.updateState(Object.assign(Object.assign({},this.state),{isSearching:true,filterTerm:t!==""?t:undefined}));(e=this.pendingFilterGrpcRes)===null||e===void 0?void 0:e.cancel();this.pendingFilterGrpcRes=undefined;if(this.state.filterTerm===t||t===""){try{const e=await this.requestUnary(r,((r,e)=>{var n;const i=new f.FilterRequest;i.setFilter(t);i.setFullTree((n=o.includeCollapsed)!==null&&n!==void 0?n:true);i.setExactMatch(!!o.exactMatch);if(o.columns)i.setColumnsKeysList(o.columns);this.pendingFilterGrpcRes=this.client.filter(i,r,e)}));const{numberOfResults:n}=e.toObject();this.updateState(Object.assign(Object.assign({},this.state),{totalFilteredRows:n,isSearching:false}))}catch(t){console.error("Failed to filter search ",t);this.updateState(Object.assign(Object.assign({},this.state),{isSearching:false}))}}}))}isPageLoaded(t){return this.pages.has(t)}getNonLoadedPageIndexes(t,o){const[r,e]=this.constrainPageRange(t,o);const n=e-r+1;return Array.from({length:n}).map(((t,o)=>r+o)).filter((t=>!this.isPageLoaded(t)))}getPage(t){return this.pages.get(t)}invalidatePagesOutsideRange(t,o,r=0){const[e,n]=this.constrainPageRange(t,o);const i=Math.max(n-e,r);if(this.fetchedPageCount>i){const t=Array.from(this.pages.keys()).map((t=>{const o=t<e?e-t:t-n;return{index:t,distance:o}}));const o=t.sort(((t,o)=>o.distance-t.distance));o.slice(0,t.length-r).forEach((({index:t})=>this.invalidatePage(t)));this.log(`Scene tree dropped ${t.length-this.fetchedPageCount} pages`,this.pages)}}setMetadataKeys(t){this.metadataKeys=t;if(this.state.connection.type==="connected"){const[t,o]=this.activeRowRange;this.invalidateAfterOffset(0);return this.updateActiveRowRange(t,o)}else{return Promise.resolve()}}async updateActiveRowRange(t,o){this.activeRowRange=this.constrainRowOffsets(t,o);this.tryClearLoadingState();await this.fetchUnloadedPagesInActiveRows()}subscribe(){return this.ifConnectionHasJwt((t=>{const o=this.requestServerStream(t,(t=>{const o=this.client.subscribe(new f.SubscribeRequest,t);return o}));o.on("data",(t=>{if(t.hasHandshake()){this.clearHandshakeTimer();this.updateState(Object.assign(Object.assign({},this.state),{handshakeReceived:true}));if(this.state.firstFetchComplete){this.log("Scene tree first fetch completed before handshake received, invalidating current pages");this.invalidateAfterOffset(0);this.fetchUnloadedPagesInActiveRows()}}this.startIdleReconnectTimer();const{change:o}=t.toObject();if((o===null||o===void 0?void 0:o.listChange)!=null){this.log("Received list change",o.listChange.start);this.invalidateAfterOffset(o.listChange.start);this.fetchUnloadedPagesInActiveRows()}const{hiddenList:r=[],shownList:e=[],partiallyVisibleList:n=[],deselectedList:i=[],selectedList:s=[]}=(o===null||o===void 0?void 0:o.ranges)||{};if(n.length>0){this.log("Received partial visibility list change",n);n.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({partiallyVisible:true})))))}if(r.length>0){this.log("Received hidden list change",r);r.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:false,partiallyVisible:false})))))}if(e.length>0){this.log("Received shown list change",e);e.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:true,partiallyVisible:false})))))}if(i.length>0){this.log("Received deselected list change",i);i.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:false})))))}if(s.length>0){this.log("Received selected list change",s);s.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:true})))))}}));o.on("status",(t=>{if(t.code!==0){console.error(`Failed to subscribe to scene tree with code=${t.code}, details=${t.details}`);this.invalidateAfterOffset(0)}}));o.on("end",(()=>{this.invalidateAfterOffset(0);if(this.state.connection.type==="connected"){this.startConnectionLostReconnectTimer()}}));return o}))}async fetchUnloadedPagesInActiveRows(){var t,o;const[r,e]=this.getPageIndexesForRange((t=this.activeRowRange[0])!==null&&t!==void 0?t:0,(o=this.activeRowRange[1])!==null&&o!==void 0?o:0);const n=this.getNonLoadedPageIndexes(r-1,e+1);await Promise.all(n.map((t=>this.fetchPage(t))))}patchNodesInRange(t,o,r){const e=this.state.rows.slice(t,o+1).map((t=>s(t)?Object.assign(Object.assign({},t),{node:Object.assign(Object.assign({},t.node),r(t.node))}):t));const n=this.state.rows.slice(0,t);const i=this.state.rows.slice(o+1);const u=[...n,...e,...i];this.updateState(Object.assign(Object.assign({},this.state),{rows:u}))}async handlePageResult(t){var o;try{const r=await t.res;const e=this.getPage(t.index);if((e===null||e===void 0?void 0:e.id)===t.id){const n=r.getCursor();const i=r.getItemsList();const s=(o=n===null||n===void 0?void 0:n.getTotal())!==null&&o!==void 0?o:0;const a=t.index*this.rowLimit;const c=u(a,i,e.metadataKeys);const p=this.state.rows.slice(0,a);const f=this.state.rows.slice(p.length+c.length,s);const h=new Array(Math.max(0,s-p.length-c.length-f.length));const l=[...p,...c,...f,...h];if(this.isViewLoading(l)&&this.loadingTimer==null){this.restartLoadingTimer();this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:l,shouldShowEmptyResults:this.state.filterTerm!=null&&(l.length===0||this.state.totalFilteredRows===0)}))}else{this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:l,shouldShowLoading:l.length===0&&this.state.shouldShowLoading,shouldShowEmptyResults:this.state.filterTerm!=null&&(l.length===0||this.state.totalFilteredRows===0),firstFetchComplete:true}))}}}catch(o){const r=o instanceof Error?o.toString():"Unknown";console.error(`Request error fetching page at index ${t.index} (${r})`);const e=this.getPage(t.index);if((e===null||e===void 0?void 0:e.id)===t.id){this.invalidatePage(t.index)}}}invalidatePage(t){if(this.isPageLoaded(t)){this.pages.delete(t)}}invalidateAfterOffset(t){const o=Math.floor(t/this.rowLimit);for(const t of this.pages.keys()){if(t>=o){this.invalidatePage(t)}}}getState(){return this.state}isViewLoading(t){return this.state.filterTerm==null&&t[this.activeRowRange[0]]==null&&t[this.activeRowRange[1]]==null}restartLoadingTimer(){if(this.loadingTimer!=null){this.clearLoadingTimer()}this.loadingTimer=window.setTimeout((()=>{this.loadingTimer=undefined;this.updateState(Object.assign(Object.assign({},this.getState()),{shouldShowLoading:true}))}),this.connectOptions.spinnerDelay)}clearLoadingTimer(){if(this.loadingTimer!=null){clearTimeout(this.loadingTimer);this.loadingTimer=undefined}}tryClearLoadingState(){const t=this.tryClearLoadingTimer(this.state);if(t){this.updateState(Object.assign(Object.assign({},this.state),{shouldShowLoading:false}))}}tryClearLoadingTimer(t){const o=this.state.shouldShowLoading||this.loadingTimer!=null;const r=o&&!this.isViewLoading(t.rows);if(r){this.clearLoadingTimer();return true}return false}updateState(t){const o=this.tryClearLoadingTimer(t);this.state=Object.assign(Object.assign({},t),{shouldShowLoading:o?false:t.shouldShowLoading});this.onStateChange.emit(this.state)}getPageForOffset(t){const o=Math.floor(t/this.rowLimit);return this.constrainPageIndex(o)}getPageIndexesForRange(t,o){const r=this.getPageForOffset(t);const e=this.getPageForOffset(o);return[r,e]}async fetchTree(t,o,r){return this.requestUnary(r,((r,e)=>{const n=new a.OffsetPager;n.setOffset(t);n.setLimit(o);const i=new f.GetTreeRequest;i.setPager(n);i.setAdditionalColumnKeysList(this.metadataKeys);this.client.getTree(i,r,e)}))}requestUnary(t,o){return new Promise(((r,e)=>{const n=this.createJwtMetadata(t);o(n,((t,o)=>{if(t!=null){e(t)}else if(o!=null){r(o)}else{e(new d("Invalid response. Both error and result are null"))}}))}))}requestServerStream(t,o){const r=this.createJwtMetadata(t);return o(r)}createJwtMetadata(t){return new o.grpc.Metadata({"jwt-context":JSON.stringify({jwt:t})})}async ifConnectionHasJwt(t){const{connection:o}=this.state;if(o.type==="connecting"||o.type==="connected"){const r=await o.jwtProvider();if(r!=null){return t(r)}else{throw new w("SceneTreeController cannot perform request. Viewer JWT is undefined.")}}else if(o.type==="cancelled"){throw new b(`Request attempted, but controller was cancelled`)}else{throw new d("SceneTreeController is not in connected state")}}ifErrorIsFatal(t,o){if(!(t instanceof b)){o()}}getConnectionError(t){if(R(t)){if(t.code===o.grpc.Code.FailedPrecondition){return new l("SCENE_TREE_DISABLED",h.SCENE_TREE_DISABLED)}else if(t.code===o.grpc.Code.Unauthenticated){return new l("UNAUTHORIZED",h.UNAUTHORIZED)}else if(t.code===o.grpc.Code.Aborted){return new l("ABORTED",h.ABORTED)}else{return new l("UNKNOWN",h.UNKNOWN)}}else if(t instanceof w){return new l("UNAUTHORIZED",h.UNAUTHORIZED)}else{return new l("UNKNOWN",h.UNKNOWN)}}constrainPageRange(t,o){return[Math.max(0,t),Math.min(this.maxPages-1,o)]}constrainPageIndex(t){return Math.max(0,Math.min(t,this.maxPages-1))}constrainRowOffsets(t,o){return[Math.max(0,t),Math.min(this.state.totalRows-1,o)]}get maxPages(){return Math.max(1,Math.ceil(this.state.totalRows/this.rowLimit))}log(t,...o){if(this.debugLogs){console.debug(t,o)}}isConnectedState(t){return t.type==="connected"}}N.IDLE_RECONNECT_IN_SECONDS=4*60;N.LOST_CONNECTION_RECONNECT_IN_SECONDS=2;N.MAX_SUBSCRIPTION_RETRY_COUNT=2;export{N as S,O as a,l as b,h as c,y as w};
5
- //# sourceMappingURL=p-564f9027.js.map