@vertexvis/viewer 1.0.1-canary.8 → 1.0.1-testing.0

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 (122) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{multiElementInteractionHandler-CV_R_zWs.js → multiElementInteractionHandler-DFzC3VJQ.js} +14 -11
  3. package/dist/cjs/multiElementInteractionHandler-DFzC3VJQ.js.map +1 -0
  4. package/dist/cjs/vertex-scene-tree-notification-banner_4.cjs.entry.js +20 -11
  5. package/dist/cjs/vertex-scene-tree-notification-banner_4.cjs.entry.js.map +1 -1
  6. package/dist/cjs/vertex-scene-tree.cjs.entry.js +18 -5
  7. package/dist/cjs/vertex-scene-tree.cjs.entry.js.map +1 -1
  8. package/dist/cjs/vertex-viewer-dom-element_2.cjs.entry.js +1 -1
  9. package/dist/cjs/vertex-viewer-pin-group.cjs.entry.js +7 -5
  10. package/dist/cjs/vertex-viewer-pin-group.cjs.entry.js.map +1 -1
  11. package/dist/cjs/vertex-viewer-pin-label_2.cjs.entry.js +6 -6
  12. package/dist/cjs/vertex-viewer-pin-label_2.cjs.entry.js.map +1 -1
  13. package/dist/cjs/vertex-viewer-transform-widget.cjs.entry.js +5 -5
  14. package/dist/cjs/vertex-viewer-transform-widget.cjs.entry.js.map +1 -1
  15. package/dist/cjs/vertex-viewer.cjs.entry.js +18 -12
  16. package/dist/cjs/vertex-viewer.cjs.entry.js.map +1 -1
  17. package/dist/cjs/viewer.cjs.js +1 -1
  18. package/dist/collection/components/scene-tree/scene-tree.js +18 -5
  19. package/dist/collection/components/scene-tree/scene-tree.js.map +1 -1
  20. package/dist/collection/components/scene-tree-table-layout/scene-tree-table-layout.js +20 -11
  21. package/dist/collection/components/scene-tree-table-layout/scene-tree-table-layout.js.map +1 -1
  22. package/dist/collection/components/viewer-pin-group/viewer-pin-group.js +8 -6
  23. package/dist/collection/components/viewer-pin-group/viewer-pin-group.js.map +1 -1
  24. package/dist/collection/components/viewer-pin-label/viewer-pin-label.js +7 -7
  25. package/dist/collection/components/viewer-pin-label/viewer-pin-label.js.map +1 -1
  26. package/dist/collection/components/viewer-transform-widget/viewer-transform-widget.js +6 -7
  27. package/dist/collection/components/viewer-transform-widget/viewer-transform-widget.js.map +1 -1
  28. package/dist/collection/lib/interactions/baseInteractionHandler.js +12 -9
  29. package/dist/collection/lib/interactions/baseInteractionHandler.js.map +1 -1
  30. package/dist/collection/lib/interactions/mouseInteractions.js +17 -11
  31. package/dist/collection/lib/interactions/mouseInteractions.js.map +1 -1
  32. package/dist/components/index.js +1 -1
  33. package/dist/components/{p-COS1Inc5.js → p-BQV-PVa_.js} +2 -2
  34. package/dist/components/p-BQV-PVa_.js.map +1 -0
  35. package/dist/components/p-CAQf9dsL.js +5 -0
  36. package/dist/components/p-CAQf9dsL.js.map +1 -0
  37. package/dist/components/{p-CEXF82El.js → p-CKQId0I1.js} +2 -2
  38. package/dist/components/p-CKQId0I1.js.map +1 -0
  39. package/dist/components/{p-CEHeeaoZ.js → p-CUGGgEIf.js} +2 -2
  40. package/dist/components/{p-CWieLCfP.js → p-CoCastpC.js} +2 -2
  41. package/dist/components/{p-BNHniQXm.js → p-ae0Zapzr.js} +2 -2
  42. package/dist/components/p-ae0Zapzr.js.map +1 -0
  43. package/dist/components/vertex-scene-tree-table-layout.js +1 -1
  44. package/dist/components/vertex-scene-tree.js +1 -1
  45. package/dist/components/vertex-scene-tree.js.map +1 -1
  46. package/dist/components/vertex-viewer-dom-renderer.js +1 -1
  47. package/dist/components/vertex-viewer-pin-group.js +1 -1
  48. package/dist/components/vertex-viewer-pin-label.js +1 -1
  49. package/dist/components/vertex-viewer-pin-tool.js +1 -1
  50. package/dist/components/vertex-viewer-transform-widget.js +1 -1
  51. package/dist/components/vertex-viewer-transform-widget.js.map +1 -1
  52. package/dist/components/vertex-viewer-view-cube.js +1 -1
  53. package/dist/components/vertex-viewer.js +1 -1
  54. package/dist/components/vertex-viewer.js.map +1 -1
  55. package/dist/esm/{controller-zACO6f4n.js → controller-DCFz4xj6.js} +3 -3
  56. package/dist/esm/{controller-zACO6f4n.js.map → controller-DCFz4xj6.js.map} +1 -1
  57. package/dist/esm/index.js +1 -1
  58. package/dist/esm/index.mjs +1 -1
  59. package/dist/esm/loader.js +1 -1
  60. package/dist/esm/loader.mjs +1 -1
  61. package/dist/esm/{multiElementInteractionHandler-CJhrgviV.js → multiElementInteractionHandler-DjlrKVbu.js} +14 -11
  62. package/dist/esm/multiElementInteractionHandler-DjlrKVbu.js.map +1 -0
  63. package/dist/esm/vertex-scene-tree-notification-banner_4.entry.js +20 -11
  64. package/dist/esm/vertex-scene-tree-notification-banner_4.entry.js.map +1 -1
  65. package/dist/esm/vertex-scene-tree.entry.js +19 -6
  66. package/dist/esm/vertex-scene-tree.entry.js.map +1 -1
  67. package/dist/esm/vertex-viewer-dom-element_2.entry.js +1 -1
  68. package/dist/esm/vertex-viewer-pin-group.entry.js +8 -6
  69. package/dist/esm/vertex-viewer-pin-group.entry.js.map +1 -1
  70. package/dist/esm/vertex-viewer-pin-label_2.entry.js +6 -6
  71. package/dist/esm/vertex-viewer-pin-label_2.entry.js.map +1 -1
  72. package/dist/esm/vertex-viewer-transform-widget.entry.js +5 -5
  73. package/dist/esm/vertex-viewer-transform-widget.entry.js.map +1 -1
  74. package/dist/esm/vertex-viewer.entry.js +18 -12
  75. package/dist/esm/vertex-viewer.entry.js.map +1 -1
  76. package/dist/esm/viewer.js +1 -1
  77. package/dist/types/components/scene-tree/scene-tree.d.ts +2 -0
  78. package/dist/types/components/scene-tree-table-layout/scene-tree-table-layout.d.ts +2 -0
  79. package/dist/types/components/viewer-pin-group/viewer-pin-group.d.ts +1 -0
  80. package/dist/types/components/viewer-transform-widget/viewer-transform-widget.d.ts +1 -1
  81. package/dist/types/lib/interactions/baseInteractionHandler.d.ts +1 -1
  82. package/dist/types/lib/interactions/mouseInteractions.d.ts +8 -2
  83. package/dist/viewer/index.esm.js +1 -1
  84. package/dist/viewer/p-07214ba9.entry.js +5 -0
  85. package/dist/viewer/p-07214ba9.entry.js.map +1 -0
  86. package/dist/viewer/p-1a463ace.entry.js +5 -0
  87. package/dist/viewer/p-1a463ace.entry.js.map +1 -0
  88. package/dist/viewer/p-9c18d87a.entry.js +5 -0
  89. package/dist/viewer/p-9c18d87a.entry.js.map +1 -0
  90. package/dist/viewer/{p-D4lmv56q.js → p-Dg5Yw3qK.js} +2 -2
  91. package/dist/viewer/{p-D4lmv56q.js.map → p-Dg5Yw3qK.js.map} +1 -1
  92. package/dist/viewer/{p-DkLznn4v.js → p-DwjktKp5.js} +2 -2
  93. package/dist/viewer/p-DwjktKp5.js.map +1 -0
  94. package/dist/viewer/{p-dcaf1cb9.entry.js → p-b8d8d308.entry.js} +2 -2
  95. package/dist/viewer/p-d26d4b99.entry.js +5 -0
  96. package/dist/viewer/{p-76cf5c2a.entry.js.map → p-d26d4b99.entry.js.map} +1 -1
  97. package/dist/viewer/{p-d4d044fc.entry.js → p-daecf887.entry.js} +2 -2
  98. package/dist/viewer/p-daecf887.entry.js.map +1 -0
  99. package/dist/viewer/{p-0cbadaa8.entry.js → p-fe2fdc83.entry.js} +2 -2
  100. package/dist/viewer/p-fe2fdc83.entry.js.map +1 -0
  101. package/dist/viewer/viewer.esm.js +1 -1
  102. package/package.json +7 -7
  103. package/dist/cjs/multiElementInteractionHandler-CV_R_zWs.js.map +0 -1
  104. package/dist/components/p-BNHniQXm.js.map +0 -1
  105. package/dist/components/p-BzhmEGZ5.js +0 -5
  106. package/dist/components/p-BzhmEGZ5.js.map +0 -1
  107. package/dist/components/p-CEXF82El.js.map +0 -1
  108. package/dist/components/p-COS1Inc5.js.map +0 -1
  109. package/dist/esm/multiElementInteractionHandler-CJhrgviV.js.map +0 -1
  110. package/dist/viewer/p-0cbadaa8.entry.js.map +0 -1
  111. package/dist/viewer/p-19c5eeaf.entry.js +0 -5
  112. package/dist/viewer/p-19c5eeaf.entry.js.map +0 -1
  113. package/dist/viewer/p-1a82245e.entry.js +0 -5
  114. package/dist/viewer/p-1a82245e.entry.js.map +0 -1
  115. package/dist/viewer/p-5ccf054e.entry.js +0 -5
  116. package/dist/viewer/p-5ccf054e.entry.js.map +0 -1
  117. package/dist/viewer/p-76cf5c2a.entry.js +0 -5
  118. package/dist/viewer/p-DkLznn4v.js.map +0 -1
  119. package/dist/viewer/p-d4d044fc.entry.js.map +0 -1
  120. /package/dist/components/{p-CEHeeaoZ.js.map → p-CUGGgEIf.js.map} +0 -0
  121. /package/dist/components/{p-CWieLCfP.js.map → p-CoCastpC.js.map} +0 -0
  122. /package/dist/viewer/{p-dcaf1cb9.entry.js.map → p-b8d8d308.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
3
3
  */
4
- import{a as t,b as r,r as e,g as o}from"./p-ux1ckSDN.js";import{r as n,f as i,C as s,u,p as a}from"./p--8q6LyIm.js";import{E as c}from"./p-BuOEMGyM.js";import{i as p,f}from"./p-CiSHWNC4.js";var h={};var l;function v(){if(l)return h;l=1;(function(e){var o=t();var i=o;var s=Function("return this")();var u=n();i.object.extend(proto,u);var a=r();i.object.extend(proto,a);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.IndexingStatus",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Node",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Range",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase",null,s);proto.vertexvis.protobuf.scenetree.v1alpha1.Node=function(t){o.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Node.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Node"}proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange=function(t){o.Message.initialize(this,t,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange"}proto.vertexvis.protobuf.scenetree.v1alpha1.Range=function(t){o.Message.initialize(this,t,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Range.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Range"}proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange=function(t){o.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange"}proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive=function(t){o.Message.initialize(this,t,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive"}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange=function(t){o.Message.initialize(this,t,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange"}proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType=function(t){o.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType"}proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey=function(t){o.Message.initialize(this,t,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey"}proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_=[10];if(o.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(t,r){var e,n={id:(e=r.getId())&&u.Uuid.toObject(t,e),depth:o.Message.getFieldWithDefault(r,2,0),name:o.Message.getFieldWithDefault(r,3,""),visible:o.Message.getBooleanFieldWithDefault(r,4,false),selected:o.Message.getBooleanFieldWithDefault(r,5,false),expanded:o.Message.getBooleanFieldWithDefault(r,6,false),isLeaf:o.Message.getBooleanFieldWithDefault(r,7,false),suppliedId:(e=r.getSuppliedId())&&a.StringValue.toObject(t,e),partiallyVisible:o.Message.getBooleanFieldWithDefault(r,9,false),columnsList:(e=o.Message.getRepeatedField(r,10))==null?undefined:e,filterHit:o.Message.getBooleanFieldWithDefault(r,11,false),phantom:o.Message.getBooleanFieldWithDefault(r,12,false),endItem:o.Message.getBooleanFieldWithDefault(r,13,false),hasGeometry:o.Message.getBooleanFieldWithDefault(r,14,false)};if(t){n.$jspbMessageInstance=r}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Node;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new u.Uuid;r.readMessage(o,u.Uuid.deserializeBinaryFromReader);t.setId(o);break;case 2:var o=r.readUint32();t.setDepth(o);break;case 3:var o=r.readString();t.setName(o);break;case 4:var o=r.readBool();t.setVisible(o);break;case 5:var o=r.readBool();t.setSelected(o);break;case 6:var o=r.readBool();t.setExpanded(o);break;case 7:var o=r.readBool();t.setIsLeaf(o);break;case 8:var o=new a.StringValue;r.readMessage(o,a.StringValue.deserializeBinaryFromReader);t.setSuppliedId(o);break;case 9:var o=r.readBool();t.setPartiallyVisible(o);break;case 10:var o=r.readString();t.addColumns(o);break;case 11:var o=r.readBool();t.setFilterHit(o);break;case 12:var o=r.readBool();t.setPhantom(o);break;case 13:var o=r.readBool();t.setEndItem(o);break;case 14:var o=r.readBool();t.setHasGeometry(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getId();if(e!=null){r.writeMessage(1,e,u.Uuid.serializeBinaryToWriter)}e=t.getDepth();if(e!==0){r.writeUint32(2,e)}e=t.getName();if(e.length>0){r.writeString(3,e)}e=t.getVisible();if(e){r.writeBool(4,e)}e=t.getSelected();if(e){r.writeBool(5,e)}e=t.getExpanded();if(e){r.writeBool(6,e)}e=t.getIsLeaf();if(e){r.writeBool(7,e)}e=t.getSuppliedId();if(e!=null){r.writeMessage(8,e,a.StringValue.serializeBinaryToWriter)}e=t.getPartiallyVisible();if(e){r.writeBool(9,e)}e=t.getColumnsList();if(e.length>0){r.writeRepeatedString(10,e)}e=t.getFilterHit();if(e){r.writeBool(11,e)}e=t.getPhantom();if(e){r.writeBool(12,e)}e=t.getEndItem();if(e){r.writeBool(13,e)}e=t.getHasGeometry();if(e){r.writeBool(14,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getId=function(){return o.Message.getWrapperField(this,u.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setId=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearId=function(){return this.setId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasId=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getDepth=function(){return o.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setDepth=function(t){return o.Message.setProto3IntField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getName=function(){return o.Message.getFieldWithDefault(this,3,"")};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setName=function(t){return o.Message.setProto3StringField(this,3,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getVisible=function(){return o.Message.getBooleanFieldWithDefault(this,4,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setVisible=function(t){return o.Message.setProto3BooleanField(this,4,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSelected=function(){return o.Message.getBooleanFieldWithDefault(this,5,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSelected=function(t){return o.Message.setProto3BooleanField(this,5,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getExpanded=function(){return o.Message.getBooleanFieldWithDefault(this,6,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setExpanded=function(t){return o.Message.setProto3BooleanField(this,6,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getIsLeaf=function(){return o.Message.getBooleanFieldWithDefault(this,7,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setIsLeaf=function(t){return o.Message.setProto3BooleanField(this,7,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSuppliedId=function(){return o.Message.getWrapperField(this,a.StringValue,8)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSuppliedId=function(t){return o.Message.setWrapperField(this,8,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearSuppliedId=function(){return this.setSuppliedId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasSuppliedId=function(){return o.Message.getField(this,8)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPartiallyVisible=function(){return o.Message.getBooleanFieldWithDefault(this,9,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPartiallyVisible=function(t){return o.Message.setProto3BooleanField(this,9,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getColumnsList=function(){return o.Message.getRepeatedField(this,10)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setColumnsList=function(t){return o.Message.setField(this,10,t||[])};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.addColumns=function(t,r){return o.Message.addToRepeatedField(this,10,t,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearColumnsList=function(){return this.setColumnsList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getFilterHit=function(){return o.Message.getBooleanFieldWithDefault(this,11,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setFilterHit=function(t){return o.Message.setProto3BooleanField(this,11,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPhantom=function(){return o.Message.getBooleanFieldWithDefault(this,12,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPhantom=function(t){return o.Message.setProto3BooleanField(this,12,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getEndItem=function(){return o.Message.getBooleanFieldWithDefault(this,13,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setEndItem=function(t){return o.Message.setProto3BooleanField(this,13,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getHasGeometry=function(){return o.Message.getBooleanFieldWithDefault(this,14,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setHasGeometry=function(t){return o.Message.setProto3BooleanField(this,14,t)};if(o.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,r){var e={start:o.Message.getFieldWithDefault(r,1,0)};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=r.readInt32();t.setStart(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getStart();if(e!==0){r.writeInt32(1,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.getStart=function(){return o.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.setStart=function(t){return o.Message.setProto3IntField(this,1,t)};if(o.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,r){var e={start:o.Message.getFieldWithDefault(r,1,0),end:o.Message.getFieldWithDefault(r,2,0)};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=r.readInt32();t.setStart(o);break;case 2:var o=r.readInt32();t.setEnd(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getStart();if(e!==0){r.writeInt32(1,e)}e=t.getEnd();if(e!==0){r.writeInt32(2,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getStart=function(){return o.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setStart=function(t){return o.Message.setProto3IntField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getEnd=function(){return o.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setEnd=function(t){return o.Message.setProto3IntField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_=[1,2,3,4,5];if(o.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,r){var e={hiddenList:o.Message.toObjectList(r.getHiddenList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),shownList:o.Message.toObjectList(r.getShownList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),selectedList:o.Message.toObjectList(r.getSelectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),deselectedList:o.Message.toObjectList(r.getDeselectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),partiallyVisibleList:o.Message.toObjectList(r.getPartiallyVisibleList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t)};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addHidden(o);break;case 2:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addShown(o);break;case 3:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addSelected(o);break;case 4:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addDeselected(o);break;case 5:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addPartiallyVisible(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getHiddenList();if(e.length>0){r.writeRepeatedMessage(1,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getShownList();if(e.length>0){r.writeRepeatedMessage(2,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getSelectedList();if(e.length>0){r.writeRepeatedMessage(3,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getDeselectedList();if(e.length>0){r.writeRepeatedMessage(4,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getPartiallyVisibleList();if(e.length>0){r.writeRepeatedMessage(5,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getHiddenList=function(){return o.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setHiddenList=function(t){return o.Message.setRepeatedWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addHidden=function(t,r){return o.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearHiddenList=function(){return this.setHiddenList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getShownList=function(){return o.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setShownList=function(t){return o.Message.setRepeatedWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addShown=function(t,r){return o.Message.addToRepeatedWrapperField(this,2,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearShownList=function(){return this.setShownList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getSelectedList=function(){return o.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setSelectedList=function(t){return o.Message.setRepeatedWrapperField(this,3,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addSelected=function(t,r){return o.Message.addToRepeatedWrapperField(this,3,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearSelectedList=function(){return this.setSelectedList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getDeselectedList=function(){return o.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,4)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setDeselectedList=function(t){return o.Message.setRepeatedWrapperField(this,4,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addDeselected=function(t,r){return o.Message.addToRepeatedWrapperField(this,4,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearDeselectedList=function(){return this.setDeselectedList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getPartiallyVisibleList=function(){return o.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,5)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setPartiallyVisibleList=function(t){return o.Message.setRepeatedWrapperField(this,5,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addPartiallyVisible=function(t,r){return o.Message.addToRepeatedWrapperField(this,5,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearPartiallyVisibleList=function(){return this.setPartiallyVisibleList([])};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter=function(t,r){};if(o.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.toObject=function(t,r){var e={numberOfResults:o.Message.getFieldWithDefault(r,1,0)};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=r.readInt32();t.setNumberOfResults(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getNumberOfResults();if(e!==0){r.writeInt32(1,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.getNumberOfResults=function(){return o.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.setNumberOfResults=function(t){return o.Message.setProto3IntField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_=[[1,2,3,4]];proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase={SEALED_VALUE_NOT_SET:0,LIST_CHANGE:1,RANGES:2,KEEP_ALIVE:3,FILTER_CHANGE:4};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getSealedValueCase=function(){return o.Message.computeOneofCase(this,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0])};if(o.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,r){var e,o={listChange:(e=r.getListChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,e),ranges:(e=r.getRanges())&&proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,e),keepAlive:(e=r.getKeepAlive())&&proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,e),filterChange:(e=r.getFilterChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.toObject(t,e)};if(t){o.$jspbMessageInstance=r}return o}}proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader);t.setListChange(o);break;case 2:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader);t.setRanges(o);break;case 3:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader);t.setKeepAlive(o);break;case 4:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinaryFromReader);t.setFilterChange(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getListChange();if(e!=null){r.writeMessage(1,e,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter)}e=t.getRanges();if(e!=null){r.writeMessage(2,e,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter)}e=t.getKeepAlive();if(e!=null){r.writeMessage(3,e,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter)}e=t.getFilterChange();if(e!=null){r.writeMessage(4,e,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getListChange=function(){return o.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setListChange=function(t){return o.Message.setOneofWrapperField(this,1,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearListChange=function(){return this.setListChange(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasListChange=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getRanges=function(){return o.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setRanges=function(t){return o.Message.setOneofWrapperField(this,2,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearRanges=function(){return this.setRanges(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasRanges=function(){return o.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getKeepAlive=function(){return o.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setKeepAlive=function(t){return o.Message.setOneofWrapperField(this,3,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearKeepAlive=function(){return this.setKeepAlive(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasKeepAlive=function(){return o.Message.getField(this,3)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getFilterChange=function(){return o.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange,4)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setFilterChange=function(t){return o.Message.setOneofWrapperField(this,4,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearFilterChange=function(){return this.setFilterChange(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasFilterChange=function(){return o.Message.getField(this,4)!=null};if(o.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,r){var e={value:o.Message.getFieldWithDefault(r,1,"")};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=r.readString();t.setValue(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getValue();if(e.length>0){r.writeString(1,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.getValue=function(){return o.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.setValue=function(t){return o.Message.setProto3StringField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.IndexingStatus={INDEXING_STATUS_INVALID:0,INDEXING_STATUS_INDEXING:1,INDEXING_STATUS_READY:2};i.object.extend(e,proto.vertexvis.protobuf.scenetree.v1alpha1)})(h);return h}var d=v();var w={};var b;function k(){if(b)return w;b=1;(function(e){var o=t();var s=o;var u=Function("return this")();var a=i();s.object.extend(proto,a);var c=n();s.object.extend(proto,c);var p=r();s.object.extend(proto,p);var f=v();s.object.extend(proto,f);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse",null,u);proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest=function(t){o.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse=function(t){o.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake"}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest=function(t){o.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse=function(t){o.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse=function(t){o.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_=[3];if(o.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,r){var e,n={viewId:(e=r.getViewId())&&c.Uuid.toObject(t,e),pager:(e=r.getPager())&&a.OffsetPager.toObject(t,e),additionalColumnKeysList:(e=o.Message.getRepeatedField(r,3))==null?undefined:e};if(t){n.$jspbMessageInstance=r}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setViewId(o);break;case 2:var o=new a.OffsetPager;r.readMessage(o,a.OffsetPager.deserializeBinaryFromReader);t.setPager(o);break;case 3:var o=r.readString();t.addAdditionalColumnKeys(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getViewId();if(e!=null){r.writeMessage(1,e,c.Uuid.serializeBinaryToWriter)}e=t.getPager();if(e!=null){r.writeMessage(2,e,a.OffsetPager.serializeBinaryToWriter)}e=t.getAdditionalColumnKeysList();if(e.length>0){r.writeRepeatedString(3,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getViewId=function(){return o.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setViewId=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearViewId=function(){return this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasViewId=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getPager=function(){return o.Message.getWrapperField(this,a.OffsetPager,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setPager=function(t){return o.Message.setWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearPager=function(){return this.setPager(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasPager=function(){return o.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getAdditionalColumnKeysList=function(){return o.Message.getRepeatedField(this,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setAdditionalColumnKeysList=function(t){return o.Message.setField(this,3,t||[])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.addAdditionalColumnKeys=function(t,r){return o.Message.addToRepeatedField(this,3,t,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearAdditionalColumnKeysList=function(){return this.setAdditionalColumnKeysList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_=[1];if(o.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,r){var e,n={itemsList:o.Message.toObjectList(r.getItemsList(),f.Node.toObject,t),totalVisible:o.Message.getFieldWithDefault(r,2,0),cursor:(e=r.getCursor())&&a.OffsetCursor.toObject(t,e)};if(t){n.$jspbMessageInstance=r}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new f.Node;r.readMessage(o,f.Node.deserializeBinaryFromReader);t.addItems(o);break;case 2:var o=r.readUint32();t.setTotalVisible(o);break;case 3:var o=new a.OffsetCursor;r.readMessage(o,a.OffsetCursor.deserializeBinaryFromReader);t.setCursor(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getItemsList();if(e.length>0){r.writeRepeatedMessage(1,e,f.Node.serializeBinaryToWriter)}e=t.getTotalVisible();if(e!==0){r.writeUint32(2,e)}e=t.getCursor();if(e!=null){r.writeMessage(3,e,a.OffsetCursor.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getItemsList=function(){return o.Message.getRepeatedWrapperField(this,f.Node,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setItemsList=function(t){return o.Message.setRepeatedWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.addItems=function(t,r){return o.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearItemsList=function(){return this.setItemsList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getTotalVisible=function(){return o.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setTotalVisible=function(t){return o.Message.setProto3IntField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getCursor=function(){return o.Message.getWrapperField(this,a.OffsetCursor,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setCursor=function(t){return o.Message.setWrapperField(this,3,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearCursor=function(){return this.setCursor(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.hasCursor=function(){return o.Message.getField(this,3)!=null};if(o.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,r){var e,o={viewId:(e=r.getViewId())&&c.Uuid.toObject(t,e),nodeId:(e=r.getNodeId())&&c.Uuid.toObject(t,e)};if(t){o.$jspbMessageInstance=r}return o}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setViewId(o);break;case 2:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setNodeId(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getViewId();if(e!=null){r.writeMessage(1,e,c.Uuid.serializeBinaryToWriter)}e=t.getNodeId();if(e!=null){r.writeMessage(2,e,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return o.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setViewId=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearViewId=function(){return this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasViewId=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getNodeId=function(){return o.Message.getWrapperField(this,c.Uuid,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setNodeId=function(t){return o.Message.setWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearNodeId=function(){return this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasNodeId=function(){return o.Message.getField(this,2)!=null};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter=function(t,r){};if(o.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,r){var e,o={viewId:(e=r.getViewId())&&c.Uuid.toObject(t,e),nodeId:(e=r.getNodeId())&&c.Uuid.toObject(t,e)};if(t){o.$jspbMessageInstance=r}return o}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setViewId(o);break;case 2:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setNodeId(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getViewId();if(e!=null){r.writeMessage(1,e,c.Uuid.serializeBinaryToWriter)}e=t.getNodeId();if(e!=null){r.writeMessage(2,e,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return o.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setViewId=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearViewId=function(){return this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasViewId=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getNodeId=function(){return o.Message.getWrapperField(this,c.Uuid,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setNodeId=function(t){return o.Message.setWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearNodeId=function(){return this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasNodeId=function(){return o.Message.getField(this,2)!=null};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter=function(t,r){};if(o.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,r){var e,o={viewId:(e=r.getViewId())&&c.Uuid.toObject(t,e)};if(t){o.$jspbMessageInstance=r}return o}}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setViewId(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getViewId();if(e!=null){r.writeMessage(1,e,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return o.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.setViewId=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.clearViewId=function(){return this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.hasViewId=function(){return o.Message.getField(this,1)!=null};if(o.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,r){var e,o={change:(e=r.getChange())&&f.TreeChangeType.toObject(t,e),handshake:(e=r.getHandshake())&&proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,e)};if(t){o.$jspbMessageInstance=r}return o}}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new f.TreeChangeType;r.readMessage(o,f.TreeChangeType.deserializeBinaryFromReader);t.setChange(o);break;case 2:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader);t.setHandshake(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getChange();if(e!=null){r.writeMessage(1,e,f.TreeChangeType.serializeBinaryToWriter)}e=t.getHandshake();if(e!=null){r.writeMessage(2,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getChange=function(){return o.Message.getWrapperField(this,f.TreeChangeType,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setChange=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearChange=function(){return this.setChange(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasChange=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getHandshake=function(){return o.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setHandshake=function(t){return o.Message.setWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearHandshake=function(){return this.setHandshake(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasHandshake=function(){return o.Message.getField(this,2)!=null};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter=function(t,r){};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_=[3];if(o.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,r){var e,n={filter:o.Message.getFieldWithDefault(r,1,""),fullTree:o.Message.getBooleanFieldWithDefault(r,2,false),columnsKeysList:(e=o.Message.getRepeatedField(r,3))==null?undefined:e,exactMatch:o.Message.getBooleanFieldWithDefault(r,4,false),removeHiddenItems:o.Message.getBooleanFieldWithDefault(r,5,false)};if(t){n.$jspbMessageInstance=r}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=r.readString();t.setFilter(o);break;case 2:var o=r.readBool();t.setFullTree(o);break;case 3:var o=r.readString();t.addColumnsKeys(o);break;case 4:var o=r.readBool();t.setExactMatch(o);break;case 5:var o=r.readBool();t.setRemoveHiddenItems(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getFilter();if(e.length>0){r.writeString(1,e)}e=t.getFullTree();if(e){r.writeBool(2,e)}e=t.getColumnsKeysList();if(e.length>0){r.writeRepeatedString(3,e)}e=t.getExactMatch();if(e){r.writeBool(4,e)}e=t.getRemoveHiddenItems();if(e){r.writeBool(5,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFilter=function(){return o.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFilter=function(t){return o.Message.setProto3StringField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFullTree=function(){return o.Message.getBooleanFieldWithDefault(this,2,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFullTree=function(t){return o.Message.setProto3BooleanField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getColumnsKeysList=function(){return o.Message.getRepeatedField(this,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setColumnsKeysList=function(t){return o.Message.setField(this,3,t||[])};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.addColumnsKeys=function(t,r){return o.Message.addToRepeatedField(this,3,t,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.clearColumnsKeysList=function(){return this.setColumnsKeysList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getExactMatch=function(){return o.Message.getBooleanFieldWithDefault(this,4,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setExactMatch=function(t){return o.Message.setProto3BooleanField(this,4,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getRemoveHiddenItems=function(){return o.Message.getBooleanFieldWithDefault(this,5,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setRemoveHiddenItems=function(t){return o.Message.setProto3BooleanField(this,5,t)};if(o.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,r){var e={numberOfResults:o.Message.getFieldWithDefault(r,1,0),indexingStatus:o.Message.getFieldWithDefault(r,2,0)};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=r.readUint32();t.setNumberOfResults(o);break;case 2:var o=r.readEnum();t.setIndexingStatus(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getNumberOfResults();if(e!==0){r.writeUint32(1,e)}e=t.getIndexingStatus();if(e!==0){r.writeEnum(2,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.getNumberOfResults=function(){return o.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.setNumberOfResults=function(t){return o.Message.setProto3IntField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.getIndexingStatus=function(){return o.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.setIndexingStatus=function(t){return o.Message.setProto3EnumField(this,2,t)};if(o.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,r){var e,o={nodeId:(e=r.getNodeId())&&c.Uuid.toObject(t,e)};if(t){o.$jspbMessageInstance=r}return o}}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 2:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setNodeId(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getNodeId();if(e!=null){r.writeMessage(2,e,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return o.Message.getWrapperField(this,c.Uuid,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.setNodeId=function(t){return o.Message.setWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.clearNodeId=function(){return this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.hasNodeId=function(){return o.Message.getField(this,2)!=null};if(o.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(t,r){var e,n={locatedIndex:(e=r.getLocatedIndex())&&p.UInt64Value.toObject(t,e),requiresReload:o.Message.getBooleanFieldWithDefault(r,2,false)};if(t){n.$jspbMessageInstance=r}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new p.UInt64Value;r.readMessage(o,p.UInt64Value.deserializeBinaryFromReader);t.setLocatedIndex(o);break;case 2:var o=r.readBool();t.setRequiresReload(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getLocatedIndex();if(e!=null){r.writeMessage(1,e,p.UInt64Value.serializeBinaryToWriter)}e=t.getRequiresReload();if(e){r.writeBool(2,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getLocatedIndex=function(){return o.Message.getWrapperField(this,p.UInt64Value,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setLocatedIndex=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.clearLocatedIndex=function(){return this.setLocatedIndex(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.hasLocatedIndex=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getRequiresReload=function(){return o.Message.getBooleanFieldWithDefault(this,2,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setRequiresReload=function(t){return o.Message.setProto3BooleanField(this,2,t)};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter=function(t,r){};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter=function(t,r){};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter=function(t,r){};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter=function(t,r){};if(o.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,r){var e,o={nodeId:(e=r.getNodeId())&&c.Uuid.toObject(t,e)};if(t){o.$jspbMessageInstance=r}return o}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setNodeId(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getNodeId();if(e!=null){r.writeMessage(1,e,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return o.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.setNodeId=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.clearNodeId=function(){return this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.hasNodeId=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_=[1];if(o.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,r){var e={itemsList:o.Message.toObjectList(r.getItemsList(),f.Node.toObject,t)};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new f.Node;r.readMessage(o,f.Node.deserializeBinaryFromReader);t.addItems(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getItemsList();if(e.length>0){r.writeRepeatedMessage(1,e,f.Node.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.getItemsList=function(){return o.Message.getRepeatedWrapperField(this,f.Node,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.setItemsList=function(t){return o.Message.setRepeatedWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.addItems=function(t,r){return o.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.clearItemsList=function(){return this.setItemsList([])};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter=function(t,r){};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_=[1];if(o.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,r){var e={keysList:o.Message.toObjectList(r.getKeysList(),f.ColumnKey.toObject,t),indexingStatus:o.Message.getFieldWithDefault(r,2,0)};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new f.ColumnKey;r.readMessage(o,f.ColumnKey.deserializeBinaryFromReader);t.addKeys(o);break;case 2:var o=r.readEnum();t.setIndexingStatus(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getKeysList();if(e.length>0){r.writeRepeatedMessage(1,e,f.ColumnKey.serializeBinaryToWriter)}e=t.getIndexingStatus();if(e!==0){r.writeEnum(2,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getKeysList=function(){return o.Message.getRepeatedWrapperField(this,f.ColumnKey,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setKeysList=function(t){return o.Message.setRepeatedWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.addKeys=function(t,r){return o.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.clearKeysList=function(){return this.setKeysList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getIndexingStatus=function(){return o.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setIndexingStatus=function(t){return o.Message.setProto3EnumField(this,2,t)};s.object.extend(e,proto.vertexvis.protobuf.scenetree.v1alpha1)})(w);return w}var m=k();var g;(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"})(g||(g={}));class E{constructor(t,r,e){this.name=t;this.code=r;this.link=e;this.message=R(r)}}function R(t){switch(t){case g.UNKNOWN:return"An unknown error occurred.";case g.SCENE_TREE_DISABLED:return"The tree for this scene is not enabled. Enable the tree for this scene to interact with the tree.";case g.MISSING_VIEWER:return"Could not find reference to the viewer.";case g.DISCONNECTED:return"Disconnected from server.";case g.SUBSCRIPTION_FAILURE:return"The tree was not able to receive subscription events.";case g.UNAUTHORIZED:return"The tree was unauthorized to connect to the server. The associated Viewer may not be connected.";case g.ABORTED:return"Unable to load the tree for this scene."}}class y extends s{constructor(t,r){super(t,r);Object.setPrototypeOf(this,y.prototype)}}class I extends y{constructor(t,r){super(t,r);Object.setPrototypeOf(this,I.prototype)}}class x extends y{constructor(t,r){super(t,r);Object.setPrototypeOf(this,x.prototype)}}class S extends y{constructor(t,r){super(t,r);Object.setPrototypeOf(this,S.prototype)}}var C={};var T;function L(){if(T)return C;T=1;var t=k();var r=e().grpc;var o=function(){function t(){}t.serviceName="vertexvis.protobuf.scenetree.v1alpha1.SceneTreeAPI";return t}();o.GetTree={methodName:"GetTree",service:o,requestStream:false,responseStream:false,requestType:t.GetTreeRequest,responseType:t.GetTreeResponse};o.ExpandNode={methodName:"ExpandNode",service:o,requestStream:false,responseStream:false,requestType:t.ExpandNodeRequest,responseType:t.ExpandNodeResponse};o.CollapseNode={methodName:"CollapseNode",service:o,requestStream:false,responseStream:false,requestType:t.CollapseNodeRequest,responseType:t.CollapseNodeResponse};o.Subscribe={methodName:"Subscribe",service:o,requestStream:false,responseStream:true,requestType:t.SubscribeRequest,responseType:t.SubscribeResponse};o.Filter={methodName:"Filter",service:o,requestStream:false,responseStream:false,requestType:t.FilterRequest,responseType:t.FilterResponse};o.LocateItem={methodName:"LocateItem",service:o,requestStream:false,responseStream:false,requestType:t.LocateItemRequest,responseType:t.LocateItemResponse};o.ExpandAll={methodName:"ExpandAll",service:o,requestStream:false,responseStream:false,requestType:t.ExpandAllRequest,responseType:t.ExpandAllResponse};o.CollapseAll={methodName:"CollapseAll",service:o,requestStream:false,responseStream:false,requestType:t.CollapseAllRequest,responseType:t.CollapseAllResponse};o.GetNodeAncestors={methodName:"GetNodeAncestors",service:o,requestStream:false,responseStream:false,requestType:t.GetNodeAncestorsRequest,responseType:t.GetNodeAncestorsResponse};o.GetAvailableColumns={methodName:"GetAvailableColumns",service:o,requestStream:false,responseStream:false,requestType:t.GetAvailableColumnsRequest,responseType:t.GetAvailableColumnsResponse};C.SceneTreeAPI=o;function n(t,r){this.serviceHost=t;this.options=r||{}}n.prototype.getTree=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.GetTree,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.expandNode=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.ExpandNode,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.collapseNode=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.CollapseNode,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.subscribe=function t(e,n){var i={data:[],end:[],status:[]};var s=r.invoke(o.Subscribe,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onMessage:function(t){i.data.forEach((function(r){r(t)}))},onEnd:function(t,r,e){i.status.forEach((function(o){o({code:t,details:r,metadata:e})}));i.end.forEach((function(o){o({code:t,details:r,metadata:e})}));i=null}});return{on:function(t,r){i[t].push(r);return this},cancel:function(){i=null;s.close()}}};n.prototype.filter=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.Filter,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.locateItem=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.LocateItem,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.expandAll=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.ExpandAll,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.collapseAll=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.CollapseAll,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.getNodeAncestors=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.GetNodeAncestors,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.getAvailableColumns=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.GetAvailableColumns,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};C.SceneTreeAPIClient=n;return C}var N=L();function P(t){return typeof t.code==="number"&&t.hasOwnProperty("metadata")}function q(t){if(t.methodDefinition.methodName===N.SceneTreeAPI.Subscribe.methodName){return o.grpc.WebsocketTransport()(t)}else{return o.grpc.CrossBrowserHttpTransport({withCredentials:false})(t)}}function A(t){this.message=t}A.prototype=new Error,A.prototype.name="InvalidCharacterError";var O="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var r=String(t).replace(/=+$/,"");if(r.length%4==1)throw new A("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,o,n=0,i=0,s="";o=r.charAt(i++);~o&&(e=n%4?64*e+o:o,n++%4)?s+=String.fromCharCode(255&e>>(-2*n&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s};function M(t){var r=t.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(O(t).replace(/(.)/g,(function(t,r){var e=r.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(r)}catch(t){return O(r)}}function D(t){this.message=t}function G(t,r){if("string"!=typeof t)throw new D("Invalid token specified");var e=true===(r=r||{}).header?0:1;try{return JSON.parse(M(t.split(".")[e]))}catch(t){throw new D("Invalid token specified: "+t.message)}}D.prototype=new Error,D.prototype.name="InvalidTokenError";function F(t){return G(t)}class U{get fetchedPageCount(){return this.pages.size}get isConnected(){return this.state.connection.type==="connected"}constructor(t,r,e={spinnerDelay:2e3,subscriptionHandshakeGracePeriodInMs:5e3}){this.client=t;this.rowLimit=r;this.connectOptions=e;this.nextPageId=0;this.pages=new Map;this.activeRowRange=[0,0];this.metadataKeys=[];this.debugLogs=false;this.onStateChange=new c;this.state={totalRows:0,isSearching:false,rows:[],connection:{type:"disconnected"}}}stateChanged(t){return this.onStateChange.on(t)}setDebugLogs(t){this.debugLogs=t}async handleSubscriptionHandshakeTimeout(t,r){var e;const o=this.getState().connection;if(this.isConnectedState(o)&&((e=o.subscriptionStatusState)===null||e===void 0?void 0:e.attempt)!=null&&o.subscriptionStatusState.attempt<U.MAX_SUBSCRIPTION_RETRY_COUNT){const e=o.subscriptionStatusState.attempt+1;console.warn(`Failed to subscribe within the allotted timeout. Retry attempt={${e}}`);o.subscriptionStatusState.stream.cancel();this.clearHandshakeTimer();const n=await this.subscribe();this.invalidateAfterOffset(0);this.fetchUnloadedPagesInActiveRows();this.updateState({...this.state,connection:{...o,type:"connected",subscription:{dispose:()=>n.cancel()},subscriptionStatusState:{attempt:e,stream:n}}});this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,r)}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}else{this.updateState({...this.state,connection:{type:"failure",jwtProvider:t,sceneViewId:r,details:new E("SUBSCRIPTION_FAILURE",g.SUBSCRIPTION_FAILURE)}})}}async connect(t){const{connection:r}=this.state;const e=t();if(e==null){throw new I("Cannot connect scene tree. JWT is undefined")}const{view:o}=F(e);if(r.sceneViewId!==o){this.disconnect(true)}else{this.disconnect(false)}const n={type:"connecting",jwtProvider:t,sceneViewId:o};this.updateState({...this.state,connection:n});try{this.log("Scene tree controller connecting.");this.restartLoadingTimer();const r=await this.subscribe();await this.fetchPage(0);if(this.state.connection.type!=="cancelled"){this.updateState({...this.state,connection:{jwtProvider:t,sceneViewId:o,type:"connected",subscription:{dispose:()=>r.cancel()},subscriptionStatusState:{attempt:0,stream:r}}});this.restartHandshakeTimer(t,o)}}catch(r){this.ifErrorIsFatal(r,(()=>{this.updateState({...this.state,connection:{type:"failure",jwtProvider:t,sceneViewId:o,details:this.getConnectionError(r)}});this.clearHandshakeTimer();throw r}))}this.startIdleReconnectTimer()}clearReconnectTimer(){if(this.reconnectTimer!=null){window.clearTimeout(this.reconnectTimer)}}restartHandshakeTimer(t,r){this.clearHandshakeTimer();if(!this.state.handshakeReceived){this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,r);this.subscriptionHandshakeTimer=undefined}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}}clearHandshakeTimer(){if(this.subscriptionHandshakeTimer!=null){window.clearTimeout(this.subscriptionHandshakeTimer);this.subscriptionHandshakeTimer=undefined}}startIdleReconnectTimer(){this.startReconnectTimer(this.connectOptions.idleReconnectInSeconds||U.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||U.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 r=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)}))}}else{this.log("Scene tree controller was unable to find JWT.")}};const e=()=>{this.log("Scene tree controller received scene ready");r()};r();t.addEventListener("sceneReady",e);return{dispose:()=>{t.removeEventListener("sceneReady",e);this.disconnect()}}}disconnect(t=false){this.log(`Scene tree controller disconnecting [reset=${t}]`);this.clearHandshakeTimer();this.clearReconnectTimer();this.clearLoadingTimer();if(t){this.pages.clear();this.activeRowRange=[]}const{connection:r}=this.state;if(r.type==="connected"){r.subscription.dispose()}this.updateState({connection:{type:"disconnected",jwtProvider:r.jwtProvider,sceneViewId:r.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.clearLoadingTimer();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 r=>{const e=new u.Uuid;e.setHex(t);const o=new m.CollapseNodeRequest;o.setNodeId(e);await this.requestUnary(r,((t,r)=>this.client.collapseNode(o,t,r)))}))}async expandNode(t){return this.ifConnectionHasJwt((async r=>{const e=new u.Uuid;e.setHex(t);const o=new m.ExpandNodeRequest;o.setNodeId(e);await this.requestUnary(r,((t,r)=>this.client.expandNode(o,t,r)))}))}async collapseAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,r)=>this.client.collapseAll(new m.CollapseAllRequest,t,r)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,r)=>this.client.expandAll(new m.ExpandAllRequest,t,r)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async r=>{const e=new u.Uuid;e.setHex(t);const o=new m.LocateItemRequest;o.setNodeId(e);const n=await this.requestUnary(r,((t,r)=>this.client.locateItem(o,t,r)));const{requiresReload:i,locatedIndex:s}=n.toObject();if(i){this.invalidateAfterOffset(0);await this.fetchUnloadedPagesInActiveRows()}if(s==null){throw new S("Cannot locate node. Location index is undefined.")}return s.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async r=>{const e=new u.Uuid;e.setHex(t);const o=new m.GetNodeAncestorsRequest;o.setNodeId(e);const n=await this.requestUnary(r,((t,r)=>this.client.getNodeAncestors(o,t,r)));return n.toObject().itemsList}))}async fetchPage(t){return this.ifConnectionHasJwt((async r=>{if(t<0||t>this.maxPages-1){return}if(!this.pages.has(t)){const e=t*this.rowLimit;this.log("Scene tree fetching page",t,e);const o=this.fetchTree(e,this.rowLimit,r);const n=this.nextPageId++;const i={id:n,res:o,index:t,metadataKeys:this.metadataKeys};this.pages.set(t,i);i.done=this.handlePageResult(i)}const e=this.pages.get(t);const[o]=await Promise.allSettled([e===null||e===void 0?void 0:e.res,e===null||e===void 0?void 0:e.done]);if((o===null||o===void 0?void 0:o.status)==="rejected"){throw o.reason}}))}fetchPageAtOffset(t){const r=Math.floor(t/this.rowLimit);return this.fetchPage(r)}async fetchRange(t,r){const e=Math.floor(t/this.rowLimit);const o=Math.floor(r/this.rowLimit);const[n,i]=this.constrainPageRange(e,o);const s=i-n+1;await Promise.all(Array.from({length:s}).map(((t,r)=>this.fetchPage(r))))}async fetchMetadataKeys(){return this.ifConnectionHasJwt((async t=>{const r=await this.requestUnary(t,((t,r)=>{const e=new m.GetAvailableColumnsRequest;this.client.getAvailableColumns(e,t,r)}));const e=r.getIndexingStatus();this.updateState({...this.state,isPartialKeysResponse:e===d.IndexingStatus.INDEXING_STATUS_INDEXING});return r.getKeysList().map((t=>t.getValue()))}))}async refreshFilter(){var t;return this.filter((t=this.state.filterTerm)!==null&&t!==void 0?t:"",this.state.filterOptions)}async filter(t,r={}){return this.ifConnectionHasJwt((async e=>{var o;this.updateState({...this.state,isSearching:true,filterTerm:t!==""?t:undefined,filterOptions:r});(o=this.pendingFilterGrpcRes)===null||o===void 0?void 0:o.cancel();this.pendingFilterGrpcRes=undefined;if(this.state.filterTerm===t||t===""){try{const o=await this.requestUnary(e,((e,o)=>{var n;const i=new m.FilterRequest;i.setFilter(t);i.setFullTree((n=r.includeCollapsed)!==null&&n!==void 0?n:true);i.setExactMatch(!!r.exactMatch);i.setRemoveHiddenItems(!!r.removeHiddenItems);if(r.columns)i.setColumnsKeysList(r.columns);this.pendingFilterGrpcRes=this.client.filter(i,e,o)}));const{numberOfResults:n,indexingStatus:i}=o.toObject();this.updateState({...this.state,totalFilteredRows:n,isSearching:false,isPartialFilterResponse:i===d.IndexingStatus.INDEXING_STATUS_INDEXING})}catch(t){console.error("Failed to filter search ",t);this.updateState({...this.state,isSearching:false})}}}))}isPageLoaded(t){return this.pages.has(t)}getNonLoadedPageIndexes(t,r){const[e,o]=this.constrainPageRange(t,r);const n=o-e+1;return Array.from({length:n}).map(((t,r)=>e+r)).filter((t=>!this.isPageLoaded(t)))}getActiveRowRange(){return this.activeRowRange}getPage(t){return this.pages.get(t)}invalidatePagesOutsideRange(t,r,e=0){const[o,n]=this.constrainPageRange(t,r);const i=Math.max(n-o,e);if(this.fetchedPageCount>i){const t=Array.from(this.pages.keys()).map((t=>{const r=t<o?o-t:t-n;return{index:t,distance:r}}));const r=t.sort(((t,r)=>r.distance-t.distance));r.slice(0,t.length-e).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,r]=this.activeRowRange;this.invalidateAfterOffset(0);return this.updateActiveRowRange(t,r)}else{return Promise.resolve()}}async updateActiveRowRange(t,r){this.activeRowRange=this.constrainRowOffsets(t,r);this.tryClearLoadingState();await this.fetchUnloadedPagesInActiveRows()}subscribe(){return this.ifConnectionHasJwt((t=>{const r=this.requestServerStream(t,(t=>{const r=this.client.subscribe(new m.SubscribeRequest,t);return r}));r.on("data",(t=>{if(t.hasHandshake()){this.clearHandshakeTimer();this.updateState({...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:r}=t.toObject();if((r===null||r===void 0?void 0:r.filterChange)!=null){this.updateState({...this.state,totalFilteredRows:r.filterChange.numberOfResults})}if((r===null||r===void 0?void 0:r.listChange)!=null){this.log("Received list change",r.listChange.start);this.invalidateAfterOffset(r.listChange.start);this.fetchUnloadedPagesInActiveRows()}const{hiddenList:e=[],shownList:o=[],partiallyVisibleList:n=[],deselectedList:i=[],selectedList:s=[]}=(r===null||r===void 0?void 0:r.ranges)||{};if(n.length>0){this.log("Received partial visibility list change",n);n.forEach((({start:t,end:r})=>this.patchNodesInRange(t,r,(()=>({partiallyVisible:true})))))}if(e.length>0){this.log("Received hidden list change",e);e.forEach((({start:t,end:r})=>this.patchNodesInRange(t,r,(()=>({visible:false,partiallyVisible:false})))))}if(o.length>0){this.log("Received shown list change",o);o.forEach((({start:t,end:r})=>this.patchNodesInRange(t,r,(()=>({visible:true,partiallyVisible:false})))))}if(i.length>0){this.log("Received deselected list change",i);i.forEach((({start:t,end:r})=>this.patchNodesInRange(t,r,(()=>({selected:false})))))}if(s.length>0){this.log("Received selected list change",s);s.forEach((({start:t,end:r})=>this.patchNodesInRange(t,r,(()=>({selected:true})))))}}));r.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)}}));r.on("end",(()=>{this.invalidateAfterOffset(0);if(this.state.connection.type==="connected"){this.startConnectionLostReconnectTimer()}}));return r}))}async fetchUnloadedPagesInActiveRows(){var t,r;const[e,o]=this.getPageIndexesForRange((t=this.activeRowRange[0])!==null&&t!==void 0?t:0,(r=this.activeRowRange[1])!==null&&r!==void 0?r:0);const n=this.getNonLoadedPageIndexes(e-1,o+1);await Promise.all(n.map((t=>this.fetchPage(t))))}patchNodesInRange(t,r,e){const o=this.state.rows.slice(t,r+1).map((t=>p(t)?{...t,node:{...t.node,...e(t.node)}}:t));const n=this.state.rows.slice(0,t);const i=this.state.rows.slice(r+1);const s=[...n,...o,...i];this.updateState({...this.state,rows:s})}async handlePageResult(t){var r;try{const e=await t.res;const o=this.getPage(t.index);if((o===null||o===void 0?void 0:o.id)===t.id){const n=e.getCursor();const i=e.getItemsList();const s=(r=n===null||n===void 0?void 0:n.getTotal())!==null&&r!==void 0?r:0;const u=t.index*this.rowLimit;const a=f(u,i,o.metadataKeys);const c=this.state.rows.slice(0,u);const p=this.state.rows.slice(c.length+a.length,s);const h=new Array(Math.max(0,s-c.length-a.length-p.length));const l=[...c,...a,...p,...h];if(this.isViewLoading(l)&&this.loadingTimer==null){this.restartLoadingTimer();this.updateState({...this.state,totalRows:s,rows:l,shouldShowEmptyResults:this.state.filterTerm!=null&&(l.length===0||this.state.totalFilteredRows===0)})}else{this.updateState({...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(r){const e=r instanceof Error?r.toString():"Unknown";console.error(`Request error fetching page at index ${t.index} (${e})`);const o=this.getPage(t.index);if((o===null||o===void 0?void 0:o.id)===t.id){this.invalidatePage(t.index)}}}invalidatePage(t){if(this.isPageLoaded(t)){this.pages.delete(t)}}invalidateAfterOffset(t){const r=Math.floor(t/this.rowLimit);for(const t of this.pages.keys()){if(t>=r){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({...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({...this.state,shouldShowLoading:false})}}tryClearLoadingTimer(t){const r=this.state.shouldShowLoading||this.loadingTimer!=null;const e=r&&!this.isViewLoading(t.rows);if(e){this.clearLoadingTimer();return true}return false}updateState(t){const r=this.tryClearLoadingTimer(t);this.state={...t,shouldShowLoading:r?false:t.shouldShowLoading};this.onStateChange.emit(this.state)}getPageForOffset(t){const r=Math.floor(t/this.rowLimit);return this.constrainPageIndex(r)}getPageIndexesForRange(t,r){const e=this.getPageForOffset(t);const o=this.getPageForOffset(r);return[e,o]}async fetchTree(t,r,e){return this.requestUnary(e,((e,o)=>{const n=new a.OffsetPager;n.setOffset(t);n.setLimit(r);const i=new m.GetTreeRequest;i.setPager(n);i.setAdditionalColumnKeysList(this.metadataKeys);this.client.getTree(i,e,o)}))}requestUnary(t,r){return new Promise(((e,o)=>{const n=this.createJwtMetadata(t);r(n,((t,r)=>{if(t!=null){o(t)}else if(r!=null){e(r)}else{o(new y("Invalid response. Both error and result are null"))}}))}))}requestServerStream(t,r){const e=this.createJwtMetadata(t);return r(e)}createJwtMetadata(t){return new o.grpc.Metadata({"jwt-context":JSON.stringify({jwt:t})})}async ifConnectionHasJwt(t){const{connection:r}=this.state;if(r.type==="connecting"||r.type==="connected"){const e=await r.jwtProvider();if(e!=null){return t(e)}else{throw new I("SceneTreeController cannot perform request. Viewer JWT is undefined.")}}else if(r.type==="cancelled"){throw new x(`Request attempted, but controller was cancelled`)}else{throw new y("SceneTreeController is not in connected state")}}ifErrorIsFatal(t,r){if(!(t instanceof x)){r()}}getConnectionError(t){if(P(t)){if(t.code===o.grpc.Code.FailedPrecondition){return new E("SCENE_TREE_DISABLED",g.SCENE_TREE_DISABLED)}else if(t.code===o.grpc.Code.Unauthenticated){return new E("UNAUTHORIZED",g.UNAUTHORIZED)}else if(t.code===o.grpc.Code.Aborted){return new E("ABORTED",g.ABORTED)}else{return new E("UNKNOWN",g.UNKNOWN)}}else if(t instanceof I){return new E("UNAUTHORIZED",g.UNAUTHORIZED)}else{return new E("UNKNOWN",g.UNKNOWN)}}constrainPageRange(t,r){return[Math.max(0,t),Math.min(this.maxPages-1,r)]}constrainPageIndex(t){return Math.max(0,Math.min(t,this.maxPages-1))}constrainRowOffsets(t,r){const e=!Number.isNaN(t)?Math.max(0,t):0;const o=!Number.isNaN(r)?Math.min(this.state.totalRows-1,r):this.state.totalRows-1;return[e,o]}get maxPages(){return Math.max(1,Math.ceil(this.state.totalRows/this.rowLimit))}log(t,...r){if(this.debugLogs){console.debug(t,r)}}isConnectedState(t){return t.type==="connected"}}U.IDLE_RECONNECT_IN_SECONDS=4*60;U.LOST_CONNECTION_RECONNECT_IN_SECONDS=2;U.MAX_SUBSCRIPTION_RETRY_COUNT=2;export{U as S,E as a,g as b,N as s,q as w};
5
- //# sourceMappingURL=p-D4lmv56q.js.map
4
+ import{a as t,b as r,r as e,g as o}from"./p-ux1ckSDN.js";import{r as n,f as i,C as s,u,p as a}from"./p--8q6LyIm.js";import{E as c}from"./p-BuOEMGyM.js";import{i as p,f}from"./p-CiSHWNC4.js";var h={};var l;function v(){if(l)return h;l=1;(function(e){var o=t();var i=o;var s=Function("return this")();var u=n();i.object.extend(proto,u);var a=r();i.object.extend(proto,a);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.IndexingStatus",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Node",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Range",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase",null,s);proto.vertexvis.protobuf.scenetree.v1alpha1.Node=function(t){o.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Node.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Node"}proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange=function(t){o.Message.initialize(this,t,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange"}proto.vertexvis.protobuf.scenetree.v1alpha1.Range=function(t){o.Message.initialize(this,t,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Range.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Range"}proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange=function(t){o.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange"}proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive=function(t){o.Message.initialize(this,t,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive"}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange=function(t){o.Message.initialize(this,t,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange"}proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType=function(t){o.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType"}proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey=function(t){o.Message.initialize(this,t,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,o.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey"}proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_=[10];if(o.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(t,r){var e,n={id:(e=r.getId())&&u.Uuid.toObject(t,e),depth:o.Message.getFieldWithDefault(r,2,0),name:o.Message.getFieldWithDefault(r,3,""),visible:o.Message.getBooleanFieldWithDefault(r,4,false),selected:o.Message.getBooleanFieldWithDefault(r,5,false),expanded:o.Message.getBooleanFieldWithDefault(r,6,false),isLeaf:o.Message.getBooleanFieldWithDefault(r,7,false),suppliedId:(e=r.getSuppliedId())&&a.StringValue.toObject(t,e),partiallyVisible:o.Message.getBooleanFieldWithDefault(r,9,false),columnsList:(e=o.Message.getRepeatedField(r,10))==null?undefined:e,filterHit:o.Message.getBooleanFieldWithDefault(r,11,false),phantom:o.Message.getBooleanFieldWithDefault(r,12,false),endItem:o.Message.getBooleanFieldWithDefault(r,13,false),hasGeometry:o.Message.getBooleanFieldWithDefault(r,14,false)};if(t){n.$jspbMessageInstance=r}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Node;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new u.Uuid;r.readMessage(o,u.Uuid.deserializeBinaryFromReader);t.setId(o);break;case 2:var o=r.readUint32();t.setDepth(o);break;case 3:var o=r.readString();t.setName(o);break;case 4:var o=r.readBool();t.setVisible(o);break;case 5:var o=r.readBool();t.setSelected(o);break;case 6:var o=r.readBool();t.setExpanded(o);break;case 7:var o=r.readBool();t.setIsLeaf(o);break;case 8:var o=new a.StringValue;r.readMessage(o,a.StringValue.deserializeBinaryFromReader);t.setSuppliedId(o);break;case 9:var o=r.readBool();t.setPartiallyVisible(o);break;case 10:var o=r.readString();t.addColumns(o);break;case 11:var o=r.readBool();t.setFilterHit(o);break;case 12:var o=r.readBool();t.setPhantom(o);break;case 13:var o=r.readBool();t.setEndItem(o);break;case 14:var o=r.readBool();t.setHasGeometry(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getId();if(e!=null){r.writeMessage(1,e,u.Uuid.serializeBinaryToWriter)}e=t.getDepth();if(e!==0){r.writeUint32(2,e)}e=t.getName();if(e.length>0){r.writeString(3,e)}e=t.getVisible();if(e){r.writeBool(4,e)}e=t.getSelected();if(e){r.writeBool(5,e)}e=t.getExpanded();if(e){r.writeBool(6,e)}e=t.getIsLeaf();if(e){r.writeBool(7,e)}e=t.getSuppliedId();if(e!=null){r.writeMessage(8,e,a.StringValue.serializeBinaryToWriter)}e=t.getPartiallyVisible();if(e){r.writeBool(9,e)}e=t.getColumnsList();if(e.length>0){r.writeRepeatedString(10,e)}e=t.getFilterHit();if(e){r.writeBool(11,e)}e=t.getPhantom();if(e){r.writeBool(12,e)}e=t.getEndItem();if(e){r.writeBool(13,e)}e=t.getHasGeometry();if(e){r.writeBool(14,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getId=function(){return o.Message.getWrapperField(this,u.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setId=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearId=function(){return this.setId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasId=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getDepth=function(){return o.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setDepth=function(t){return o.Message.setProto3IntField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getName=function(){return o.Message.getFieldWithDefault(this,3,"")};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setName=function(t){return o.Message.setProto3StringField(this,3,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getVisible=function(){return o.Message.getBooleanFieldWithDefault(this,4,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setVisible=function(t){return o.Message.setProto3BooleanField(this,4,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSelected=function(){return o.Message.getBooleanFieldWithDefault(this,5,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSelected=function(t){return o.Message.setProto3BooleanField(this,5,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getExpanded=function(){return o.Message.getBooleanFieldWithDefault(this,6,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setExpanded=function(t){return o.Message.setProto3BooleanField(this,6,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getIsLeaf=function(){return o.Message.getBooleanFieldWithDefault(this,7,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setIsLeaf=function(t){return o.Message.setProto3BooleanField(this,7,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSuppliedId=function(){return o.Message.getWrapperField(this,a.StringValue,8)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSuppliedId=function(t){return o.Message.setWrapperField(this,8,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearSuppliedId=function(){return this.setSuppliedId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasSuppliedId=function(){return o.Message.getField(this,8)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPartiallyVisible=function(){return o.Message.getBooleanFieldWithDefault(this,9,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPartiallyVisible=function(t){return o.Message.setProto3BooleanField(this,9,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getColumnsList=function(){return o.Message.getRepeatedField(this,10)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setColumnsList=function(t){return o.Message.setField(this,10,t||[])};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.addColumns=function(t,r){return o.Message.addToRepeatedField(this,10,t,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearColumnsList=function(){return this.setColumnsList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getFilterHit=function(){return o.Message.getBooleanFieldWithDefault(this,11,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setFilterHit=function(t){return o.Message.setProto3BooleanField(this,11,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPhantom=function(){return o.Message.getBooleanFieldWithDefault(this,12,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPhantom=function(t){return o.Message.setProto3BooleanField(this,12,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getEndItem=function(){return o.Message.getBooleanFieldWithDefault(this,13,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setEndItem=function(t){return o.Message.setProto3BooleanField(this,13,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getHasGeometry=function(){return o.Message.getBooleanFieldWithDefault(this,14,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setHasGeometry=function(t){return o.Message.setProto3BooleanField(this,14,t)};if(o.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,r){var e={start:o.Message.getFieldWithDefault(r,1,0)};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=r.readInt32();t.setStart(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getStart();if(e!==0){r.writeInt32(1,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.getStart=function(){return o.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.setStart=function(t){return o.Message.setProto3IntField(this,1,t)};if(o.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,r){var e={start:o.Message.getFieldWithDefault(r,1,0),end:o.Message.getFieldWithDefault(r,2,0)};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=r.readInt32();t.setStart(o);break;case 2:var o=r.readInt32();t.setEnd(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getStart();if(e!==0){r.writeInt32(1,e)}e=t.getEnd();if(e!==0){r.writeInt32(2,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getStart=function(){return o.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setStart=function(t){return o.Message.setProto3IntField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getEnd=function(){return o.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setEnd=function(t){return o.Message.setProto3IntField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_=[1,2,3,4,5];if(o.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,r){var e={hiddenList:o.Message.toObjectList(r.getHiddenList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),shownList:o.Message.toObjectList(r.getShownList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),selectedList:o.Message.toObjectList(r.getSelectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),deselectedList:o.Message.toObjectList(r.getDeselectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),partiallyVisibleList:o.Message.toObjectList(r.getPartiallyVisibleList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t)};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addHidden(o);break;case 2:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addShown(o);break;case 3:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addSelected(o);break;case 4:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addDeselected(o);break;case 5:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addPartiallyVisible(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getHiddenList();if(e.length>0){r.writeRepeatedMessage(1,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getShownList();if(e.length>0){r.writeRepeatedMessage(2,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getSelectedList();if(e.length>0){r.writeRepeatedMessage(3,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getDeselectedList();if(e.length>0){r.writeRepeatedMessage(4,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getPartiallyVisibleList();if(e.length>0){r.writeRepeatedMessage(5,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getHiddenList=function(){return o.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setHiddenList=function(t){return o.Message.setRepeatedWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addHidden=function(t,r){return o.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearHiddenList=function(){return this.setHiddenList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getShownList=function(){return o.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setShownList=function(t){return o.Message.setRepeatedWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addShown=function(t,r){return o.Message.addToRepeatedWrapperField(this,2,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearShownList=function(){return this.setShownList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getSelectedList=function(){return o.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setSelectedList=function(t){return o.Message.setRepeatedWrapperField(this,3,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addSelected=function(t,r){return o.Message.addToRepeatedWrapperField(this,3,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearSelectedList=function(){return this.setSelectedList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getDeselectedList=function(){return o.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,4)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setDeselectedList=function(t){return o.Message.setRepeatedWrapperField(this,4,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addDeselected=function(t,r){return o.Message.addToRepeatedWrapperField(this,4,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearDeselectedList=function(){return this.setDeselectedList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getPartiallyVisibleList=function(){return o.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,5)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setPartiallyVisibleList=function(t){return o.Message.setRepeatedWrapperField(this,5,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addPartiallyVisible=function(t,r){return o.Message.addToRepeatedWrapperField(this,5,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearPartiallyVisibleList=function(){return this.setPartiallyVisibleList([])};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter=function(t,r){};if(o.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.toObject=function(t,r){var e={numberOfResults:o.Message.getFieldWithDefault(r,1,0)};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=r.readInt32();t.setNumberOfResults(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getNumberOfResults();if(e!==0){r.writeInt32(1,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.getNumberOfResults=function(){return o.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.setNumberOfResults=function(t){return o.Message.setProto3IntField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_=[[1,2,3,4]];proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase={SEALED_VALUE_NOT_SET:0,LIST_CHANGE:1,RANGES:2,KEEP_ALIVE:3,FILTER_CHANGE:4};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getSealedValueCase=function(){return o.Message.computeOneofCase(this,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0])};if(o.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,r){var e,o={listChange:(e=r.getListChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,e),ranges:(e=r.getRanges())&&proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,e),keepAlive:(e=r.getKeepAlive())&&proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,e),filterChange:(e=r.getFilterChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.toObject(t,e)};if(t){o.$jspbMessageInstance=r}return o}}proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader);t.setListChange(o);break;case 2:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader);t.setRanges(o);break;case 3:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader);t.setKeepAlive(o);break;case 4:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinaryFromReader);t.setFilterChange(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getListChange();if(e!=null){r.writeMessage(1,e,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter)}e=t.getRanges();if(e!=null){r.writeMessage(2,e,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter)}e=t.getKeepAlive();if(e!=null){r.writeMessage(3,e,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter)}e=t.getFilterChange();if(e!=null){r.writeMessage(4,e,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getListChange=function(){return o.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setListChange=function(t){return o.Message.setOneofWrapperField(this,1,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearListChange=function(){return this.setListChange(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasListChange=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getRanges=function(){return o.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setRanges=function(t){return o.Message.setOneofWrapperField(this,2,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearRanges=function(){return this.setRanges(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasRanges=function(){return o.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getKeepAlive=function(){return o.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setKeepAlive=function(t){return o.Message.setOneofWrapperField(this,3,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearKeepAlive=function(){return this.setKeepAlive(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasKeepAlive=function(){return o.Message.getField(this,3)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getFilterChange=function(){return o.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange,4)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setFilterChange=function(t){return o.Message.setOneofWrapperField(this,4,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearFilterChange=function(){return this.setFilterChange(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasFilterChange=function(){return o.Message.getField(this,4)!=null};if(o.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,r){var e={value:o.Message.getFieldWithDefault(r,1,"")};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=r.readString();t.setValue(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getValue();if(e.length>0){r.writeString(1,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.getValue=function(){return o.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.setValue=function(t){return o.Message.setProto3StringField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.IndexingStatus={INDEXING_STATUS_INVALID:0,INDEXING_STATUS_INDEXING:1,INDEXING_STATUS_READY:2};i.object.extend(e,proto.vertexvis.protobuf.scenetree.v1alpha1)})(h);return h}var d=v();var w={};var b;function k(){if(b)return w;b=1;(function(e){var o=t();var s=o;var u=Function("return this")();var a=i();s.object.extend(proto,a);var c=n();s.object.extend(proto,c);var p=r();s.object.extend(proto,p);var f=v();s.object.extend(proto,f);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse",null,u);proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest=function(t){o.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse=function(t){o.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake"}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest=function(t){o.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse=function(t){o.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse=function(t){o.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse,o.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_=[3];if(o.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,r){var e,n={viewId:(e=r.getViewId())&&c.Uuid.toObject(t,e),pager:(e=r.getPager())&&a.OffsetPager.toObject(t,e),additionalColumnKeysList:(e=o.Message.getRepeatedField(r,3))==null?undefined:e};if(t){n.$jspbMessageInstance=r}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setViewId(o);break;case 2:var o=new a.OffsetPager;r.readMessage(o,a.OffsetPager.deserializeBinaryFromReader);t.setPager(o);break;case 3:var o=r.readString();t.addAdditionalColumnKeys(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getViewId();if(e!=null){r.writeMessage(1,e,c.Uuid.serializeBinaryToWriter)}e=t.getPager();if(e!=null){r.writeMessage(2,e,a.OffsetPager.serializeBinaryToWriter)}e=t.getAdditionalColumnKeysList();if(e.length>0){r.writeRepeatedString(3,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getViewId=function(){return o.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setViewId=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearViewId=function(){return this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasViewId=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getPager=function(){return o.Message.getWrapperField(this,a.OffsetPager,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setPager=function(t){return o.Message.setWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearPager=function(){return this.setPager(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasPager=function(){return o.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getAdditionalColumnKeysList=function(){return o.Message.getRepeatedField(this,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setAdditionalColumnKeysList=function(t){return o.Message.setField(this,3,t||[])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.addAdditionalColumnKeys=function(t,r){return o.Message.addToRepeatedField(this,3,t,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearAdditionalColumnKeysList=function(){return this.setAdditionalColumnKeysList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_=[1];if(o.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,r){var e,n={itemsList:o.Message.toObjectList(r.getItemsList(),f.Node.toObject,t),totalVisible:o.Message.getFieldWithDefault(r,2,0),cursor:(e=r.getCursor())&&a.OffsetCursor.toObject(t,e)};if(t){n.$jspbMessageInstance=r}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new f.Node;r.readMessage(o,f.Node.deserializeBinaryFromReader);t.addItems(o);break;case 2:var o=r.readUint32();t.setTotalVisible(o);break;case 3:var o=new a.OffsetCursor;r.readMessage(o,a.OffsetCursor.deserializeBinaryFromReader);t.setCursor(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getItemsList();if(e.length>0){r.writeRepeatedMessage(1,e,f.Node.serializeBinaryToWriter)}e=t.getTotalVisible();if(e!==0){r.writeUint32(2,e)}e=t.getCursor();if(e!=null){r.writeMessage(3,e,a.OffsetCursor.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getItemsList=function(){return o.Message.getRepeatedWrapperField(this,f.Node,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setItemsList=function(t){return o.Message.setRepeatedWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.addItems=function(t,r){return o.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearItemsList=function(){return this.setItemsList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getTotalVisible=function(){return o.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setTotalVisible=function(t){return o.Message.setProto3IntField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getCursor=function(){return o.Message.getWrapperField(this,a.OffsetCursor,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setCursor=function(t){return o.Message.setWrapperField(this,3,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearCursor=function(){return this.setCursor(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.hasCursor=function(){return o.Message.getField(this,3)!=null};if(o.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,r){var e,o={viewId:(e=r.getViewId())&&c.Uuid.toObject(t,e),nodeId:(e=r.getNodeId())&&c.Uuid.toObject(t,e)};if(t){o.$jspbMessageInstance=r}return o}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setViewId(o);break;case 2:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setNodeId(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getViewId();if(e!=null){r.writeMessage(1,e,c.Uuid.serializeBinaryToWriter)}e=t.getNodeId();if(e!=null){r.writeMessage(2,e,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return o.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setViewId=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearViewId=function(){return this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasViewId=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getNodeId=function(){return o.Message.getWrapperField(this,c.Uuid,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setNodeId=function(t){return o.Message.setWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearNodeId=function(){return this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasNodeId=function(){return o.Message.getField(this,2)!=null};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter=function(t,r){};if(o.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,r){var e,o={viewId:(e=r.getViewId())&&c.Uuid.toObject(t,e),nodeId:(e=r.getNodeId())&&c.Uuid.toObject(t,e)};if(t){o.$jspbMessageInstance=r}return o}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setViewId(o);break;case 2:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setNodeId(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getViewId();if(e!=null){r.writeMessage(1,e,c.Uuid.serializeBinaryToWriter)}e=t.getNodeId();if(e!=null){r.writeMessage(2,e,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return o.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setViewId=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearViewId=function(){return this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasViewId=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getNodeId=function(){return o.Message.getWrapperField(this,c.Uuid,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setNodeId=function(t){return o.Message.setWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearNodeId=function(){return this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasNodeId=function(){return o.Message.getField(this,2)!=null};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter=function(t,r){};if(o.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,r){var e,o={viewId:(e=r.getViewId())&&c.Uuid.toObject(t,e)};if(t){o.$jspbMessageInstance=r}return o}}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setViewId(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getViewId();if(e!=null){r.writeMessage(1,e,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return o.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.setViewId=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.clearViewId=function(){return this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.hasViewId=function(){return o.Message.getField(this,1)!=null};if(o.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,r){var e,o={change:(e=r.getChange())&&f.TreeChangeType.toObject(t,e),handshake:(e=r.getHandshake())&&proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,e)};if(t){o.$jspbMessageInstance=r}return o}}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new f.TreeChangeType;r.readMessage(o,f.TreeChangeType.deserializeBinaryFromReader);t.setChange(o);break;case 2:var o=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;r.readMessage(o,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader);t.setHandshake(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getChange();if(e!=null){r.writeMessage(1,e,f.TreeChangeType.serializeBinaryToWriter)}e=t.getHandshake();if(e!=null){r.writeMessage(2,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getChange=function(){return o.Message.getWrapperField(this,f.TreeChangeType,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setChange=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearChange=function(){return this.setChange(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasChange=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getHandshake=function(){return o.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setHandshake=function(t){return o.Message.setWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearHandshake=function(){return this.setHandshake(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasHandshake=function(){return o.Message.getField(this,2)!=null};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter=function(t,r){};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_=[3];if(o.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,r){var e,n={filter:o.Message.getFieldWithDefault(r,1,""),fullTree:o.Message.getBooleanFieldWithDefault(r,2,false),columnsKeysList:(e=o.Message.getRepeatedField(r,3))==null?undefined:e,exactMatch:o.Message.getBooleanFieldWithDefault(r,4,false),removeHiddenItems:o.Message.getBooleanFieldWithDefault(r,5,false)};if(t){n.$jspbMessageInstance=r}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=r.readString();t.setFilter(o);break;case 2:var o=r.readBool();t.setFullTree(o);break;case 3:var o=r.readString();t.addColumnsKeys(o);break;case 4:var o=r.readBool();t.setExactMatch(o);break;case 5:var o=r.readBool();t.setRemoveHiddenItems(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getFilter();if(e.length>0){r.writeString(1,e)}e=t.getFullTree();if(e){r.writeBool(2,e)}e=t.getColumnsKeysList();if(e.length>0){r.writeRepeatedString(3,e)}e=t.getExactMatch();if(e){r.writeBool(4,e)}e=t.getRemoveHiddenItems();if(e){r.writeBool(5,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFilter=function(){return o.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFilter=function(t){return o.Message.setProto3StringField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFullTree=function(){return o.Message.getBooleanFieldWithDefault(this,2,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFullTree=function(t){return o.Message.setProto3BooleanField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getColumnsKeysList=function(){return o.Message.getRepeatedField(this,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setColumnsKeysList=function(t){return o.Message.setField(this,3,t||[])};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.addColumnsKeys=function(t,r){return o.Message.addToRepeatedField(this,3,t,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.clearColumnsKeysList=function(){return this.setColumnsKeysList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getExactMatch=function(){return o.Message.getBooleanFieldWithDefault(this,4,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setExactMatch=function(t){return o.Message.setProto3BooleanField(this,4,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getRemoveHiddenItems=function(){return o.Message.getBooleanFieldWithDefault(this,5,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setRemoveHiddenItems=function(t){return o.Message.setProto3BooleanField(this,5,t)};if(o.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,r){var e={numberOfResults:o.Message.getFieldWithDefault(r,1,0),indexingStatus:o.Message.getFieldWithDefault(r,2,0)};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=r.readUint32();t.setNumberOfResults(o);break;case 2:var o=r.readEnum();t.setIndexingStatus(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getNumberOfResults();if(e!==0){r.writeUint32(1,e)}e=t.getIndexingStatus();if(e!==0){r.writeEnum(2,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.getNumberOfResults=function(){return o.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.setNumberOfResults=function(t){return o.Message.setProto3IntField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.getIndexingStatus=function(){return o.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.setIndexingStatus=function(t){return o.Message.setProto3EnumField(this,2,t)};if(o.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,r){var e,o={nodeId:(e=r.getNodeId())&&c.Uuid.toObject(t,e)};if(t){o.$jspbMessageInstance=r}return o}}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 2:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setNodeId(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getNodeId();if(e!=null){r.writeMessage(2,e,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return o.Message.getWrapperField(this,c.Uuid,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.setNodeId=function(t){return o.Message.setWrapperField(this,2,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.clearNodeId=function(){return this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.hasNodeId=function(){return o.Message.getField(this,2)!=null};if(o.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(t,r){var e,n={locatedIndex:(e=r.getLocatedIndex())&&p.UInt64Value.toObject(t,e),requiresReload:o.Message.getBooleanFieldWithDefault(r,2,false)};if(t){n.$jspbMessageInstance=r}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new p.UInt64Value;r.readMessage(o,p.UInt64Value.deserializeBinaryFromReader);t.setLocatedIndex(o);break;case 2:var o=r.readBool();t.setRequiresReload(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getLocatedIndex();if(e!=null){r.writeMessage(1,e,p.UInt64Value.serializeBinaryToWriter)}e=t.getRequiresReload();if(e){r.writeBool(2,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getLocatedIndex=function(){return o.Message.getWrapperField(this,p.UInt64Value,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setLocatedIndex=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.clearLocatedIndex=function(){return this.setLocatedIndex(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.hasLocatedIndex=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getRequiresReload=function(){return o.Message.getBooleanFieldWithDefault(this,2,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setRequiresReload=function(t){return o.Message.setProto3BooleanField(this,2,t)};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter=function(t,r){};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter=function(t,r){};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter=function(t,r){};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter=function(t,r){};if(o.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,r){var e,o={nodeId:(e=r.getNodeId())&&c.Uuid.toObject(t,e)};if(t){o.$jspbMessageInstance=r}return o}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new c.Uuid;r.readMessage(o,c.Uuid.deserializeBinaryFromReader);t.setNodeId(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getNodeId();if(e!=null){r.writeMessage(1,e,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return o.Message.getWrapperField(this,c.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.setNodeId=function(t){return o.Message.setWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.clearNodeId=function(){return this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.hasNodeId=function(){return o.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_=[1];if(o.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,r){var e={itemsList:o.Message.toObjectList(r.getItemsList(),f.Node.toObject,t)};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new f.Node;r.readMessage(o,f.Node.deserializeBinaryFromReader);t.addItems(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getItemsList();if(e.length>0){r.writeRepeatedMessage(1,e,f.Node.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.getItemsList=function(){return o.Message.getRepeatedWrapperField(this,f.Node,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.setItemsList=function(t){return o.Message.setRepeatedWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.addItems=function(t,r){return o.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.clearItemsList=function(){return this.setItemsList([])};if(o.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,r){var e={};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter=function(t,r){};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_=[1];if(o.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,r){var e={keysList:o.Message.toObjectList(r.getKeysList(),f.ColumnKey.toObject,t),indexingStatus:o.Message.getFieldWithDefault(r,2,0)};if(t){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var o=new f.ColumnKey;r.readMessage(o,f.ColumnKey.deserializeBinaryFromReader);t.addKeys(o);break;case 2:var o=r.readEnum();t.setIndexingStatus(o);break;default:r.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter(this,t);return t.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter=function(t,r){var e=undefined;e=t.getKeysList();if(e.length>0){r.writeRepeatedMessage(1,e,f.ColumnKey.serializeBinaryToWriter)}e=t.getIndexingStatus();if(e!==0){r.writeEnum(2,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getKeysList=function(){return o.Message.getRepeatedWrapperField(this,f.ColumnKey,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setKeysList=function(t){return o.Message.setRepeatedWrapperField(this,1,t)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.addKeys=function(t,r){return o.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.clearKeysList=function(){return this.setKeysList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getIndexingStatus=function(){return o.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setIndexingStatus=function(t){return o.Message.setProto3EnumField(this,2,t)};s.object.extend(e,proto.vertexvis.protobuf.scenetree.v1alpha1)})(w);return w}var m=k();var g;(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"})(g||(g={}));class E{constructor(t,r,e){this.name=t;this.code=r;this.link=e;this.message=R(r)}}function R(t){switch(t){case g.UNKNOWN:return"An unknown error occurred.";case g.SCENE_TREE_DISABLED:return"The tree for this scene is not enabled. Enable the tree for this scene to interact with the tree.";case g.MISSING_VIEWER:return"Could not find reference to the viewer.";case g.DISCONNECTED:return"Disconnected from server.";case g.SUBSCRIPTION_FAILURE:return"The tree was not able to receive subscription events.";case g.UNAUTHORIZED:return"The tree was unauthorized to connect to the server. The associated Viewer may not be connected.";case g.ABORTED:return"Unable to load the tree for this scene."}}class y extends s{constructor(t,r){super(t,r);Object.setPrototypeOf(this,y.prototype)}}class I extends y{constructor(t,r){super(t,r);Object.setPrototypeOf(this,I.prototype)}}class x extends y{constructor(t,r){super(t,r);Object.setPrototypeOf(this,x.prototype)}}class S extends y{constructor(t,r){super(t,r);Object.setPrototypeOf(this,S.prototype)}}var C={};var T;function L(){if(T)return C;T=1;var t=k();var r=e().grpc;var o=function(){function t(){}t.serviceName="vertexvis.protobuf.scenetree.v1alpha1.SceneTreeAPI";return t}();o.GetTree={methodName:"GetTree",service:o,requestStream:false,responseStream:false,requestType:t.GetTreeRequest,responseType:t.GetTreeResponse};o.ExpandNode={methodName:"ExpandNode",service:o,requestStream:false,responseStream:false,requestType:t.ExpandNodeRequest,responseType:t.ExpandNodeResponse};o.CollapseNode={methodName:"CollapseNode",service:o,requestStream:false,responseStream:false,requestType:t.CollapseNodeRequest,responseType:t.CollapseNodeResponse};o.Subscribe={methodName:"Subscribe",service:o,requestStream:false,responseStream:true,requestType:t.SubscribeRequest,responseType:t.SubscribeResponse};o.Filter={methodName:"Filter",service:o,requestStream:false,responseStream:false,requestType:t.FilterRequest,responseType:t.FilterResponse};o.LocateItem={methodName:"LocateItem",service:o,requestStream:false,responseStream:false,requestType:t.LocateItemRequest,responseType:t.LocateItemResponse};o.ExpandAll={methodName:"ExpandAll",service:o,requestStream:false,responseStream:false,requestType:t.ExpandAllRequest,responseType:t.ExpandAllResponse};o.CollapseAll={methodName:"CollapseAll",service:o,requestStream:false,responseStream:false,requestType:t.CollapseAllRequest,responseType:t.CollapseAllResponse};o.GetNodeAncestors={methodName:"GetNodeAncestors",service:o,requestStream:false,responseStream:false,requestType:t.GetNodeAncestorsRequest,responseType:t.GetNodeAncestorsResponse};o.GetAvailableColumns={methodName:"GetAvailableColumns",service:o,requestStream:false,responseStream:false,requestType:t.GetAvailableColumnsRequest,responseType:t.GetAvailableColumnsResponse};C.SceneTreeAPI=o;function n(t,r){this.serviceHost=t;this.options=r||{}}n.prototype.getTree=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.GetTree,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.expandNode=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.ExpandNode,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.collapseNode=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.CollapseNode,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.subscribe=function t(e,n){var i={data:[],end:[],status:[]};var s=r.invoke(o.Subscribe,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onMessage:function(t){i.data.forEach((function(r){r(t)}))},onEnd:function(t,r,e){i.status.forEach((function(o){o({code:t,details:r,metadata:e})}));i.end.forEach((function(o){o({code:t,details:r,metadata:e})}));i=null}});return{on:function(t,r){i[t].push(r);return this},cancel:function(){i=null;s.close()}}};n.prototype.filter=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.Filter,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.locateItem=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.LocateItem,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.expandAll=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.ExpandAll,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.collapseAll=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.CollapseAll,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.getNodeAncestors=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.GetNodeAncestors,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};n.prototype.getAvailableColumns=function t(e,n,i){if(arguments.length===2){i=arguments[1]}var s=r.unary(o.GetAvailableColumns,{request:e,host:this.serviceHost,metadata:n,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(i){if(t.status!==r.Code.OK){var e=new Error(t.statusMessage);e.code=t.status;e.metadata=t.trailers;i(e,null)}else{i(null,t.message)}}}});return{cancel:function(){i=null;s.close()}}};C.SceneTreeAPIClient=n;return C}var N=L();function P(t){return typeof t.code==="number"&&t.hasOwnProperty("metadata")}function q(t){if(t.methodDefinition.methodName===N.SceneTreeAPI.Subscribe.methodName){return o.grpc.WebsocketTransport()(t)}else{return o.grpc.CrossBrowserHttpTransport({withCredentials:false})(t)}}function A(t){this.message=t}A.prototype=new Error,A.prototype.name="InvalidCharacterError";var O="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var r=String(t).replace(/=+$/,"");if(r.length%4==1)throw new A("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,o,n=0,i=0,s="";o=r.charAt(i++);~o&&(e=n%4?64*e+o:o,n++%4)?s+=String.fromCharCode(255&e>>(-2*n&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s};function M(t){var r=t.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(O(t).replace(/(.)/g,(function(t,r){var e=r.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(r)}catch(t){return O(r)}}function D(t){this.message=t}function G(t,r){if("string"!=typeof t)throw new D("Invalid token specified");var e=true===(r=r||{}).header?0:1;try{return JSON.parse(M(t.split(".")[e]))}catch(t){throw new D("Invalid token specified: "+t.message)}}D.prototype=new Error,D.prototype.name="InvalidTokenError";function F(t){return G(t)}class U{get fetchedPageCount(){return this.pages.size}get isConnected(){return this.state.connection.type==="connected"}constructor(t,r,e={spinnerDelay:2e3,subscriptionHandshakeGracePeriodInMs:5e3}){this.client=t;this.rowLimit=r;this.connectOptions=e;this.nextPageId=0;this.pages=new Map;this.activeRowRange=[0,0];this.metadataKeys=[];this.debugLogs=false;this.onStateChange=new c;this.state={totalRows:0,isSearching:false,rows:[],connection:{type:"disconnected"}}}stateChanged(t){return this.onStateChange.on(t)}setDebugLogs(t){this.debugLogs=t}async handleSubscriptionHandshakeTimeout(t,r){var e;const o=this.getState().connection;if(this.isConnectedState(o)&&((e=o.subscriptionStatusState)===null||e===void 0?void 0:e.attempt)!=null&&o.subscriptionStatusState.attempt<U.MAX_SUBSCRIPTION_RETRY_COUNT){const e=o.subscriptionStatusState.attempt+1;console.warn(`Failed to subscribe within the allotted timeout. Retry attempt={${e}}`);o.subscriptionStatusState.stream.cancel();this.clearHandshakeTimer();const n=await this.subscribe();this.invalidateAfterOffset(0);this.fetchUnloadedPagesInActiveRows();this.updateState({...this.state,connection:{...o,type:"connected",subscription:{dispose:()=>n.cancel()},subscriptionStatusState:{attempt:e,stream:n}}});this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,r)}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}else{this.updateState({...this.state,connection:{type:"failure",jwtProvider:t,sceneViewId:r,details:new E("SUBSCRIPTION_FAILURE",g.SUBSCRIPTION_FAILURE)}})}}async connect(t){const{connection:r}=this.state;const e=t();if(e==null){throw new I("Cannot connect scene tree. JWT is undefined")}const{view:o}=F(e);if(r.sceneViewId!==o){this.disconnect(true)}else{this.disconnect(false)}const n={type:"connecting",jwtProvider:t,sceneViewId:o};this.updateState({...this.state,connection:n});try{this.log("Scene tree controller connecting.");this.restartLoadingTimer();const r=await this.subscribe();await this.fetchPage(0);if(this.state.connection.type!=="cancelled"){this.updateState({...this.state,connection:{jwtProvider:t,sceneViewId:o,type:"connected",subscription:{dispose:()=>r.cancel()},subscriptionStatusState:{attempt:0,stream:r}}});this.restartHandshakeTimer(t,o)}}catch(r){this.ifErrorIsFatal(r,(()=>{this.updateState({...this.state,connection:{type:"failure",jwtProvider:t,sceneViewId:o,details:this.getConnectionError(r)}});this.clearHandshakeTimer();throw r}))}this.startIdleReconnectTimer()}clearReconnectTimer(){if(this.reconnectTimer!=null){window.clearTimeout(this.reconnectTimer)}}restartHandshakeTimer(t,r){this.clearHandshakeTimer();if(!this.state.handshakeReceived){this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,r);this.subscriptionHandshakeTimer=undefined}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}}clearHandshakeTimer(){if(this.subscriptionHandshakeTimer!=null){window.clearTimeout(this.subscriptionHandshakeTimer);this.subscriptionHandshakeTimer=undefined}}startIdleReconnectTimer(){this.startReconnectTimer(this.connectOptions.idleReconnectInSeconds||U.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||U.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 r=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)}))}}else{this.log("Scene tree controller was unable to find JWT.")}};const e=()=>{this.log("Scene tree controller received scene ready");r()};r();t.addEventListener("sceneReady",e);return{dispose:()=>{t.removeEventListener("sceneReady",e);this.disconnect()}}}disconnect(t=false){this.log(`Scene tree controller disconnecting [reset=${t}]`);this.clearHandshakeTimer();this.clearReconnectTimer();this.clearLoadingTimer();if(t){this.pages.clear();this.activeRowRange=[]}const{connection:r}=this.state;if(r.type==="connected"){r.subscription.dispose()}this.updateState({connection:{type:"disconnected",jwtProvider:r.jwtProvider,sceneViewId:r.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.clearLoadingTimer();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 r=>{const e=new u.Uuid;e.setHex(t);const o=new m.CollapseNodeRequest;o.setNodeId(e);await this.requestUnary(r,((t,r)=>this.client.collapseNode(o,t,r)))}))}async expandNode(t){return this.ifConnectionHasJwt((async r=>{const e=new u.Uuid;e.setHex(t);const o=new m.ExpandNodeRequest;o.setNodeId(e);await this.requestUnary(r,((t,r)=>this.client.expandNode(o,t,r)))}))}async collapseAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,r)=>this.client.collapseAll(new m.CollapseAllRequest,t,r)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,r)=>this.client.expandAll(new m.ExpandAllRequest,t,r)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async r=>{const e=new u.Uuid;e.setHex(t);const o=new m.LocateItemRequest;o.setNodeId(e);const n=await this.requestUnary(r,((t,r)=>this.client.locateItem(o,t,r)));const{requiresReload:i,locatedIndex:s}=n.toObject();if(i){this.invalidateAfterOffset(0);await this.fetchUnloadedPagesInActiveRows()}if(s==null){throw new S("Cannot locate node. Location index is undefined.")}return s.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async r=>{const e=new u.Uuid;e.setHex(t);const o=new m.GetNodeAncestorsRequest;o.setNodeId(e);const n=await this.requestUnary(r,((t,r)=>this.client.getNodeAncestors(o,t,r)));return n.toObject().itemsList}))}async fetchPage(t){return this.ifConnectionHasJwt((async r=>{if(t<0||t>this.maxPages-1){return}if(!this.pages.has(t)){const e=t*this.rowLimit;this.log("Scene tree fetching page",t,e);const o=this.fetchTree(e,this.rowLimit,r);const n=this.nextPageId++;const i={id:n,res:o,index:t,metadataKeys:this.metadataKeys};this.pages.set(t,i);i.done=this.handlePageResult(i)}const e=this.pages.get(t);const[o]=await Promise.allSettled([e===null||e===void 0?void 0:e.res,e===null||e===void 0?void 0:e.done]);if((o===null||o===void 0?void 0:o.status)==="rejected"){throw o.reason}}))}fetchPageAtOffset(t){const r=Math.floor(t/this.rowLimit);return this.fetchPage(r)}async fetchRange(t,r){const e=Math.floor(t/this.rowLimit);const o=Math.floor(r/this.rowLimit);const[n,i]=this.constrainPageRange(e,o);const s=i-n+1;await Promise.all(Array.from({length:s}).map(((t,r)=>this.fetchPage(r))))}async fetchMetadataKeys(){return this.ifConnectionHasJwt((async t=>{const r=await this.requestUnary(t,((t,r)=>{const e=new m.GetAvailableColumnsRequest;this.client.getAvailableColumns(e,t,r)}));const e=r.getIndexingStatus();this.updateState({...this.state,isPartialKeysResponse:e===d.IndexingStatus.INDEXING_STATUS_INDEXING});return r.getKeysList().map((t=>t.getValue()))}))}async refreshFilter(){var t;return this.filter((t=this.state.filterTerm)!==null&&t!==void 0?t:"",this.state.filterOptions)}async filter(t,r={}){return this.ifConnectionHasJwt((async e=>{var o;this.updateState({...this.state,isSearching:true,filterTerm:t!==""?t:undefined,filterOptions:r});(o=this.pendingFilterGrpcRes)===null||o===void 0?void 0:o.cancel();this.pendingFilterGrpcRes=undefined;if(this.state.filterTerm===t||t===""){try{const o=await this.requestUnary(e,((e,o)=>{var n;const i=new m.FilterRequest;i.setFilter(t);i.setFullTree((n=r.includeCollapsed)!==null&&n!==void 0?n:true);i.setExactMatch(!!r.exactMatch);i.setRemoveHiddenItems(!!r.removeHiddenItems);if(r.columns)i.setColumnsKeysList(r.columns);this.pendingFilterGrpcRes=this.client.filter(i,e,o)}));const{numberOfResults:n,indexingStatus:i}=o.toObject();this.updateState({...this.state,totalFilteredRows:n,isSearching:false,isPartialFilterResponse:i===d.IndexingStatus.INDEXING_STATUS_INDEXING})}catch(t){console.error("Failed to filter search ",t);this.updateState({...this.state,isSearching:false})}}}))}isPageLoaded(t){return this.pages.has(t)}getNonLoadedPageIndexes(t,r){const[e,o]=this.constrainPageRange(t,r);const n=o-e+1;return Array.from({length:n}).map(((t,r)=>e+r)).filter((t=>!this.isPageLoaded(t)))}getActiveRowRange(){return this.activeRowRange}getPage(t){return this.pages.get(t)}invalidatePagesOutsideRange(t,r,e=0){const[o,n]=this.constrainPageRange(t,r);const i=Math.max(n-o,e);if(this.fetchedPageCount>i){const t=Array.from(this.pages.keys()).map((t=>{const r=t<o?o-t:t-n;return{index:t,distance:r}}));const r=t.sort(((t,r)=>r.distance-t.distance));r.slice(0,t.length-e).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,r]=this.activeRowRange;this.invalidateAfterOffset(0);return this.updateActiveRowRange(t,r)}else{return Promise.resolve()}}async updateActiveRowRange(t,r){this.activeRowRange=this.constrainRowOffsets(t,r);this.tryClearLoadingState();await this.fetchUnloadedPagesInActiveRows()}subscribe(){return this.ifConnectionHasJwt((t=>{const r=this.requestServerStream(t,(t=>{const r=this.client.subscribe(new m.SubscribeRequest,t);return r}));r.on("data",(t=>{if(t.hasHandshake()){this.clearHandshakeTimer();this.updateState({...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:r}=t.toObject();if((r===null||r===void 0?void 0:r.filterChange)!=null){this.updateState({...this.state,totalFilteredRows:r.filterChange.numberOfResults})}if((r===null||r===void 0?void 0:r.listChange)!=null){this.log("Received list change",r.listChange.start);this.invalidateAfterOffset(r.listChange.start);this.fetchUnloadedPagesInActiveRows()}const{hiddenList:e=[],shownList:o=[],partiallyVisibleList:n=[],deselectedList:i=[],selectedList:s=[]}=(r===null||r===void 0?void 0:r.ranges)||{};if(n.length>0){this.log("Received partial visibility list change",n);n.forEach((({start:t,end:r})=>this.patchNodesInRange(t,r,(()=>({partiallyVisible:true})))))}if(e.length>0){this.log("Received hidden list change",e);e.forEach((({start:t,end:r})=>this.patchNodesInRange(t,r,(()=>({visible:false,partiallyVisible:false})))))}if(o.length>0){this.log("Received shown list change",o);o.forEach((({start:t,end:r})=>this.patchNodesInRange(t,r,(()=>({visible:true,partiallyVisible:false})))))}if(i.length>0){this.log("Received deselected list change",i);i.forEach((({start:t,end:r})=>this.patchNodesInRange(t,r,(()=>({selected:false})))))}if(s.length>0){this.log("Received selected list change",s);s.forEach((({start:t,end:r})=>this.patchNodesInRange(t,r,(()=>({selected:true})))))}}));r.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)}}));r.on("end",(()=>{this.invalidateAfterOffset(0);if(this.state.connection.type==="connected"){this.startConnectionLostReconnectTimer()}}));return r}))}async fetchUnloadedPagesInActiveRows(){var t,r;const[e,o]=this.getPageIndexesForRange((t=this.activeRowRange[0])!==null&&t!==void 0?t:0,(r=this.activeRowRange[1])!==null&&r!==void 0?r:0);const n=this.getNonLoadedPageIndexes(e-1,o+1);await Promise.all(n.map((t=>this.fetchPage(t))))}patchNodesInRange(t,r,e){const o=this.state.rows.slice(t,r+1).map((t=>p(t)?{...t,node:{...t.node,...e(t.node)}}:t));const n=this.state.rows.slice(0,t);const i=this.state.rows.slice(r+1);const s=[...n,...o,...i];this.updateState({...this.state,rows:s})}async handlePageResult(t){var r;try{const e=await t.res;const o=this.getPage(t.index);if((o===null||o===void 0?void 0:o.id)===t.id){const n=e.getCursor();const i=e.getItemsList();const s=(r=n===null||n===void 0?void 0:n.getTotal())!==null&&r!==void 0?r:0;const u=t.index*this.rowLimit;const a=f(u,i,o.metadataKeys);const c=this.state.rows.slice(0,u);const p=this.state.rows.slice(c.length+a.length,s);const h=new Array(Math.max(0,s-c.length-a.length-p.length));const l=[...c,...a,...p,...h];if(this.isViewLoading(l)&&this.loadingTimer==null){this.restartLoadingTimer();this.updateState({...this.state,totalRows:s,rows:l,shouldShowEmptyResults:this.state.filterTerm!=null&&(l.length===0||this.state.totalFilteredRows===0)})}else{this.updateState({...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(r){const e=r instanceof Error?r.toString():"Unknown";console.error(`Request error fetching page at index ${t.index} (${e})`);const o=this.getPage(t.index);if((o===null||o===void 0?void 0:o.id)===t.id){this.invalidatePage(t.index)}}}invalidatePage(t){if(this.isPageLoaded(t)){this.pages.delete(t)}}invalidateAfterOffset(t){const r=Math.floor(t/this.rowLimit);for(const t of this.pages.keys()){if(t>=r){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({...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({...this.state,shouldShowLoading:false})}}tryClearLoadingTimer(t){const r=this.state.shouldShowLoading||this.loadingTimer!=null;const e=r&&!this.isViewLoading(t.rows);if(e){this.clearLoadingTimer();return true}return false}updateState(t){const r=this.tryClearLoadingTimer(t);this.state={...t,shouldShowLoading:r?false:t.shouldShowLoading};this.onStateChange.emit(this.state)}getPageForOffset(t){const r=Math.floor(t/this.rowLimit);return this.constrainPageIndex(r)}getPageIndexesForRange(t,r){const e=this.getPageForOffset(t);const o=this.getPageForOffset(r);return[e,o]}async fetchTree(t,r,e){return this.requestUnary(e,((e,o)=>{const n=new a.OffsetPager;n.setOffset(t);n.setLimit(r);const i=new m.GetTreeRequest;i.setPager(n);i.setAdditionalColumnKeysList(this.metadataKeys);this.client.getTree(i,e,o)}))}requestUnary(t,r){return new Promise(((e,o)=>{const n=this.createJwtMetadata(t);r(n,((t,r)=>{if(t!=null){o(t)}else if(r!=null){e(r)}else{o(new y("Invalid response. Both error and result are null"))}}))}))}requestServerStream(t,r){const e=this.createJwtMetadata(t);return r(e)}createJwtMetadata(t){return new o.grpc.Metadata({"jwt-context":JSON.stringify({jwt:t})})}async ifConnectionHasJwt(t){const{connection:r}=this.state;if(r.type==="connecting"||r.type==="connected"){const e=await r.jwtProvider();if(e!=null){return t(e)}else{throw new I("SceneTreeController cannot perform request. Viewer JWT is undefined.")}}else if(r.type==="cancelled"){throw new x(`Request attempted, but controller was cancelled`)}else{throw new y("SceneTreeController is not in connected state")}}ifErrorIsFatal(t,r){if(!(t instanceof x)){r()}}getConnectionError(t){if(P(t)){if(t.code===o.grpc.Code.FailedPrecondition){return new E("SCENE_TREE_DISABLED",g.SCENE_TREE_DISABLED)}else if(t.code===o.grpc.Code.Unauthenticated){return new E("UNAUTHORIZED",g.UNAUTHORIZED)}else if(t.code===o.grpc.Code.Aborted){return new E("ABORTED",g.ABORTED)}else{return new E("UNKNOWN",g.UNKNOWN)}}else if(t instanceof I){return new E("UNAUTHORIZED",g.UNAUTHORIZED)}else{return new E("UNKNOWN",g.UNKNOWN)}}constrainPageRange(t,r){return[Math.max(0,t),Math.min(this.maxPages-1,r)]}constrainPageIndex(t){return Math.max(0,Math.min(t,this.maxPages-1))}constrainRowOffsets(t,r){const e=!Number.isNaN(t)?Math.max(0,t):0;const o=!Number.isNaN(r)?Math.min(this.state.totalRows-1,r):this.state.totalRows-1;return[e,o]}get maxPages(){return Math.max(1,Math.ceil(this.state.totalRows/this.rowLimit))}log(t,...r){if(this.debugLogs){console.debug(t,r)}}isConnectedState(t){return t.type==="connected"}}U.IDLE_RECONNECT_IN_SECONDS=4*60;U.LOST_CONNECTION_RECONNECT_IN_SECONDS=2;U.MAX_SUBSCRIPTION_RETRY_COUNT=2;export{U as S,g as a,E as b,N as s,q as w};
5
+ //# sourceMappingURL=p-Dg5Yw3qK.js.map