@vertexvis/viewer 0.13.1 → 0.13.2-canary.2

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 (167) hide show
  1. package/dist/cjs/{browser.esm-31b03292.js → browser.esm-c51162f8.js} +1 -1
  2. package/dist/cjs/{bundle.esm-dc0a8361.js → bundle.esm-1b8b1f36.js} +34 -0
  3. package/dist/cjs/{config-90ee43d5.js → config-91efd353.js} +2 -2
  4. package/dist/cjs/{cursors-ad2fd395.js → cursors-14827f58.js} +1 -1
  5. package/dist/cjs/{dom-dd265f48.js → dom-c697cf99.js} +1 -1
  6. package/dist/cjs/{entities-aa59890e.js → entities-0829b4a4.js} +3 -3
  7. package/dist/cjs/index.cjs.js +13 -12
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{mapper-f6e6cafe.js → mapper-67af470b.js} +2 -2
  10. package/dist/cjs/{markup-fb1553b1.js → markup-835f2e83.js} +2 -2
  11. package/dist/cjs/{measurement-aba1e0e8.js → measurement-8e0ce89a.js} +2 -2
  12. package/dist/cjs/{model-4ec0c36e.js → model-78241d4f.js} +1 -1
  13. package/dist/cjs/{overlays-40c6cbc7.js → overlays-06786e52.js} +2 -2
  14. package/dist/cjs/{png-decoder-27d25eed.js → png-decoder-01b76242.js} +1 -1
  15. package/dist/cjs/{results-bc325974.js → results-7a694238.js} +1 -1
  16. package/dist/cjs/{scene-d420fd26.js → scene-23535fc0.js} +176 -85
  17. package/dist/cjs/{streamAttributes-d6236448.js → streamAttributes-f13c1a96.js} +1431 -41
  18. package/dist/cjs/{utils-f80be307.js → utils-4a02e54b.js} +1 -1
  19. package/dist/cjs/{utils-545b1865.js → utils-5cc32a26.js} +1 -1
  20. package/dist/cjs/vertex-scene-tree-search_3.cjs.entry.js +1 -1
  21. package/dist/cjs/vertex-scene-tree.cjs.entry.js +4 -4
  22. package/dist/cjs/vertex-viewer-dom-element_3.cjs.entry.js +4 -4
  23. package/dist/cjs/vertex-viewer-markup-arrow_3.cjs.entry.js +3 -3
  24. package/dist/cjs/vertex-viewer-markup-tool.cjs.entry.js +4 -4
  25. package/dist/cjs/vertex-viewer-markup.cjs.entry.js +4 -4
  26. package/dist/cjs/vertex-viewer-measurement-details.cjs.entry.js +3 -3
  27. package/dist/cjs/vertex-viewer-measurement-distance.cjs.entry.js +11 -11
  28. package/dist/cjs/vertex-viewer-measurement-line_2.cjs.entry.js +6 -6
  29. package/dist/cjs/vertex-viewer-measurement-precise.cjs.entry.js +10 -10
  30. package/dist/cjs/vertex-viewer-measurement-tool.cjs.entry.js +5 -5
  31. package/dist/cjs/vertex-viewer-measurements.cjs.entry.js +8 -8
  32. package/dist/cjs/vertex-viewer-view-cube.cjs.entry.js +3 -3
  33. package/dist/cjs/vertex-viewer.cjs.entry.js +198 -79
  34. package/dist/cjs/viewer.cjs.js +1 -1
  35. package/dist/cjs/{viewport-8c39089f.js → viewport-052809c7.js} +1 -1
  36. package/dist/collection/components/viewer/viewer.js +68 -4
  37. package/dist/collection/components/viewer-dom-renderer/renderer2d.js +1 -1
  38. package/dist/collection/components/viewer-dom-renderer/renderer3d.js +1 -1
  39. package/dist/collection/components/viewer-dom-renderer/viewer-dom-renderer.js +3 -3
  40. package/dist/collection/components/viewer-measurement-distance/viewer-measurement-distance.js +3 -3
  41. package/dist/collection/components/viewer-measurement-overlays/viewer-measurement-overlays.js +3 -3
  42. package/dist/collection/index.js +2 -2
  43. package/dist/collection/lib/errors.js +8 -1
  44. package/dist/collection/lib/interactions/index.js +3 -1
  45. package/dist/collection/lib/interactions/interactionApi.js +4 -25
  46. package/dist/collection/lib/interactions/interactionApiOrthographic.js +50 -0
  47. package/dist/collection/lib/interactions/interactionApiPerspective.js +50 -0
  48. package/dist/collection/lib/mappers/frameStreaming.js +27 -5
  49. package/dist/collection/lib/rendering/matrices.js +13 -4
  50. package/dist/collection/lib/scenes/__mocks__/mocks.js +2 -2
  51. package/dist/collection/lib/scenes/camera.js +149 -77
  52. package/dist/collection/lib/scenes/mapper.js +3 -2
  53. package/dist/collection/lib/scenes/scene.js +23 -9
  54. package/dist/collection/lib/types/clippingPlanes.js +54 -17
  55. package/dist/collection/lib/types/depthBuffer.js +1 -1
  56. package/dist/collection/lib/types/frame.js +88 -23
  57. package/dist/collection/lib/types/frameCamera.js +81 -6
  58. package/dist/collection/lib/types/viewport.js +1 -1
  59. package/dist/collection/testing/fixtures.js +23 -10
  60. package/dist/collection/testing/viewer.js +5 -3
  61. package/dist/custom-elements/index.js +1821 -194
  62. package/dist/esm/{browser.esm-59e914f6.js → browser.esm-48f051a3.js} +1 -1
  63. package/dist/esm/{bundle.esm-d899b2d5.js → bundle.esm-df3a8a42.js} +35 -1
  64. package/dist/esm/{config-604c644e.js → config-3a5d3ea3.js} +2 -2
  65. package/dist/esm/{cursors-a7ec4adb.js → cursors-45f23dfe.js} +1 -1
  66. package/dist/esm/{dom-780d25be.js → dom-18d9ac79.js} +1 -1
  67. package/dist/esm/{entities-759d97cd.js → entities-60dfd79d.js} +3 -3
  68. package/dist/esm/index.js +12 -12
  69. package/dist/esm/index.mjs +12 -12
  70. package/dist/esm/loader.js +1 -1
  71. package/dist/esm/loader.mjs +1 -1
  72. package/dist/esm/{mapper-4b815e31.js → mapper-adf23dc4.js} +2 -2
  73. package/dist/esm/{markup-1d177b4a.js → markup-accb6b5c.js} +2 -2
  74. package/dist/esm/{measurement-12cdbf5c.js → measurement-6cd457a6.js} +2 -2
  75. package/dist/esm/{model-e5a4f00f.js → model-4982c15d.js} +1 -1
  76. package/dist/esm/{overlays-1919b192.js → overlays-1783a61a.js} +2 -2
  77. package/dist/esm/{png-decoder-3f1fa486.js → png-decoder-f35def4c.js} +1 -1
  78. package/dist/esm/{results-994bdb50.js → results-93d45acc.js} +1 -1
  79. package/dist/esm/{scene-2c2460d5.js → scene-2d8bdccc.js} +176 -85
  80. package/dist/esm/{streamAttributes-d623bb60.js → streamAttributes-87a3605c.js} +1426 -43
  81. package/dist/esm/{utils-5e57bf24.js → utils-9f4b25ec.js} +1 -1
  82. package/dist/esm/{utils-83a19677.js → utils-ed2346c0.js} +1 -1
  83. package/dist/esm/vertex-scene-tree-search_3.entry.js +1 -1
  84. package/dist/esm/vertex-scene-tree.entry.js +4 -4
  85. package/dist/esm/vertex-viewer-dom-element_3.entry.js +4 -4
  86. package/dist/esm/vertex-viewer-markup-arrow_3.entry.js +3 -3
  87. package/dist/esm/vertex-viewer-markup-tool.entry.js +4 -4
  88. package/dist/esm/vertex-viewer-markup.entry.js +4 -4
  89. package/dist/esm/vertex-viewer-measurement-details.entry.js +3 -3
  90. package/dist/esm/vertex-viewer-measurement-distance.entry.js +11 -11
  91. package/dist/esm/vertex-viewer-measurement-line_2.entry.js +6 -6
  92. package/dist/esm/vertex-viewer-measurement-precise.entry.js +10 -10
  93. package/dist/esm/vertex-viewer-measurement-tool.entry.js +5 -5
  94. package/dist/esm/vertex-viewer-measurements.entry.js +8 -8
  95. package/dist/esm/vertex-viewer-view-cube.entry.js +3 -3
  96. package/dist/esm/vertex-viewer.entry.js +198 -79
  97. package/dist/esm/viewer.js +1 -1
  98. package/dist/esm/{viewport-01c886ea.js → viewport-6d4c0af0.js} +1 -1
  99. package/dist/types/components/viewer/viewer.d.ts +8 -0
  100. package/dist/types/components/viewer-dom-renderer/renderer2d.d.ts +2 -2
  101. package/dist/types/components/viewer-dom-renderer/renderer3d.d.ts +3 -3
  102. package/dist/types/components/viewer-dom-renderer/viewer-dom-renderer.d.ts +2 -2
  103. package/dist/types/components/viewer-measurement-distance/utils.d.ts +2 -2
  104. package/dist/types/components/viewer-measurement-distance/viewer-measurement-distance.d.ts +2 -2
  105. package/dist/types/components/viewer-measurement-overlays/viewer-measurement-overlays-components.d.ts +2 -2
  106. package/dist/types/components/viewer-measurement-overlays/viewer-measurement-overlays.d.ts +2 -2
  107. package/dist/types/components.d.ts +15 -7
  108. package/dist/types/index.d.ts +1 -1
  109. package/dist/types/lib/errors.d.ts +3 -0
  110. package/dist/types/lib/interactions/index.d.ts +2 -0
  111. package/dist/types/lib/interactions/interactionApi.d.ts +20 -21
  112. package/dist/types/lib/interactions/interactionApiOrthographic.d.ts +21 -0
  113. package/dist/types/lib/interactions/interactionApiPerspective.d.ts +21 -0
  114. package/dist/types/lib/mappers/frameStreaming.d.ts +2 -0
  115. package/dist/types/lib/scenes/__mocks__/mocks.d.ts +2 -2
  116. package/dist/types/lib/scenes/camera.d.ts +100 -37
  117. package/dist/types/lib/scenes/scene.d.ts +1 -1
  118. package/dist/types/lib/types/clippingPlanes.d.ts +3 -1
  119. package/dist/types/lib/types/depthBuffer.d.ts +4 -4
  120. package/dist/types/lib/types/frame.d.ts +54 -11
  121. package/dist/types/lib/types/frameCamera.d.ts +21 -2
  122. package/dist/types/lib/types/viewport.d.ts +2 -3
  123. package/dist/types/testing/fixtures.d.ts +4 -2
  124. package/dist/viewer/index.esm.js +1 -1
  125. package/dist/viewer/{p-3f6ac74f.js → p-014561cd.js} +1 -1
  126. package/dist/viewer/p-121f2b40.js +18 -0
  127. package/dist/viewer/p-18ec4fed.js +4 -0
  128. package/dist/viewer/{p-e2297df2.entry.js → p-1acd0e56.entry.js} +1 -1
  129. package/dist/viewer/{p-da2f4a56.js → p-25dfee48.js} +1 -1
  130. package/dist/viewer/p-2e75198d.js +4 -0
  131. package/dist/viewer/p-38c06c25.js +4 -0
  132. package/dist/viewer/{p-67446e35.js → p-463151e0.js} +1 -1
  133. package/dist/viewer/{p-301660cf.js → p-546ae240.js} +1 -1
  134. package/dist/viewer/{p-d00e9203.js → p-6120a219.js} +1 -1
  135. package/dist/viewer/p-61db972b.js +4 -0
  136. package/dist/viewer/{p-a0df0e0c.js → p-6d9d3553.js} +1 -1
  137. package/dist/viewer/{p-f8d01b8a.entry.js → p-7c5bee8e.entry.js} +1 -1
  138. package/dist/viewer/{p-8decee06.entry.js → p-8de749a5.entry.js} +1 -1
  139. package/dist/viewer/{p-081e6873.js → p-8df35eee.js} +1 -1
  140. package/dist/viewer/{p-671c113c.entry.js → p-923b616f.entry.js} +1 -1
  141. package/dist/viewer/p-9b1ecc71.js +4 -0
  142. package/dist/viewer/{p-3810c24d.js → p-9fd5fc8e.js} +1 -1
  143. package/dist/viewer/p-b2d4c0cf.entry.js +4 -0
  144. package/dist/viewer/{p-364ce21c.js → p-b8bc15ec.js} +1 -1
  145. package/dist/viewer/{p-439220c6.js → p-b8f027eb.js} +1 -1
  146. package/dist/viewer/p-bc7f0ad6.entry.js +4 -0
  147. package/dist/viewer/{p-2cefb1b0.js → p-ce0fe8be.js} +1 -1
  148. package/dist/viewer/p-d939ecd3.entry.js +4 -0
  149. package/dist/viewer/{p-25eaab00.entry.js → p-de7eecce.entry.js} +1 -1
  150. package/dist/viewer/{p-4985fad5.js → p-e3fff448.js} +1 -1
  151. package/dist/viewer/{p-6e80f8b0.entry.js → p-e4934f47.entry.js} +1 -1
  152. package/dist/viewer/{p-df292b56.entry.js → p-e8f6cba6.entry.js} +1 -1
  153. package/dist/viewer/{p-353cfc7a.entry.js → p-ee86bed2.entry.js} +1 -1
  154. package/dist/viewer/{p-c62cb926.entry.js → p-f359a9ac.entry.js} +1 -1
  155. package/dist/viewer/{p-e07377fa.entry.js → p-fa7f2d0c.entry.js} +1 -1
  156. package/dist/viewer/{p-915d95ad.entry.js → p-ffde162f.entry.js} +1 -1
  157. package/dist/viewer/viewer.esm.js +1 -1
  158. package/package.json +8 -8
  159. package/dist/viewer/p-085e908a.js +0 -4
  160. package/dist/viewer/p-0aba71fd.js +0 -18
  161. package/dist/viewer/p-423410be.js +0 -4
  162. package/dist/viewer/p-432267bc.entry.js +0 -4
  163. package/dist/viewer/p-7cad9bf4.js +0 -4
  164. package/dist/viewer/p-d90f2f6d.entry.js +0 -4
  165. package/dist/viewer/p-f755af5a.entry.js +0 -4
  166. package/dist/viewer/p-f7cb7e59.js +0 -4
  167. package/dist/viewer/p-fe11d694.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /**!
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
- import{h as t,F as o,r,c as n,f as e,H as i,g as s}from"./p-cafa57a6.js";import{n as u}from"./p-0aba71fd.js";import{c as a}from"./p-112455b1.js";import{a as c,w as p,g as l}from"./p-3a20a038.js";import{p as h}from"./p-a0df0e0c.js";import{E as f}from"./p-301660cf.js";import{g as v}from"./p-76c414a4.js";import"./p-fe11d694.js";window.requestIdleCallback=window.requestIdleCallback||function(t){var o=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-o))}})}),1)},window.cancelIdleCallback=window.cancelIdleCallback||function(t){clearTimeout(t)};var d=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Cursor",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.OffsetCursor",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.OffsetPager",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.Pager",null,n),proto.vertexvis.protobuf.core.Pager=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Pager,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Pager.displayName="proto.vertexvis.protobuf.core.Pager"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Pager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Pager.toObject(t,this)},proto.vertexvis.protobuf.core.Pager.toObject=function(t,o){var r={limit:c.Message.getFieldWithDefault(o,1,0),cursor:c.Message.getFieldWithDefault(o,2,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Pager.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Pager;return proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setLimit(r);break;case 2:r=o.readString(),t.setCursor(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Pager.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getLimit())&&o.writeUint32(1,r),(r=t.getCursor()).length>0&&o.writeString(2,r)},proto.vertexvis.protobuf.core.Pager.prototype.getLimit=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Pager.prototype.setLimit=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.Pager.prototype.getCursor=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.Pager.prototype.setCursor=function(t){c.Message.setProto3StringField(this,2,t)},proto.vertexvis.protobuf.core.OffsetPager=function(t){c.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_)},r.inherits(proto.vertexvis.protobuf.core.OffsetPager,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.OffsetPager.displayName="proto.vertexvis.protobuf.core.OffsetPager"),proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_=[[2,3]],proto.vertexvis.protobuf.core.OffsetPager.PagerCase={PAGER_NOT_SET:0,CURSOR:2,OFFSET:3},proto.vertexvis.protobuf.core.OffsetPager.prototype.getPagerCase=function(){return c.Message.computeOneofCase(this,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0])},c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.OffsetPager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetPager.toObject(t,this)},proto.vertexvis.protobuf.core.OffsetPager.toObject=function(t,o){var r={limit:c.Message.getFieldWithDefault(o,1,0),cursor:c.Message.getFieldWithDefault(o,2,""),offset:c.Message.getFieldWithDefault(o,3,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.OffsetPager.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.OffsetPager;return proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setLimit(r);break;case 2:r=o.readString(),t.setCursor(r);break;case 3:r=o.readUint32(),t.setOffset(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.OffsetPager.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getLimit())&&o.writeUint32(1,r),null!=(r=c.Message.getField(t,2))&&o.writeString(2,r),null!=(r=c.Message.getField(t,3))&&o.writeUint32(3,r)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getLimit=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setLimit=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getCursor=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetPager.prototype.setCursor=function(t){c.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearCursor=function(){c.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasCursor=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getOffset=function(){return c.Message.getFieldWithDefault(this,3,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setOffset=function(t){c.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearOffset=function(){c.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasOffset=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.core.Cursor=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Cursor,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Cursor.displayName="proto.vertexvis.protobuf.core.Cursor"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Cursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Cursor.toObject(t,this)},proto.vertexvis.protobuf.core.Cursor.toObject=function(t,o){var r={next:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Cursor.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Cursor;return proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setNext(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Cursor.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter=function(t,o){var r;(r=t.getNext()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.core.Cursor.prototype.getNext=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Cursor.prototype.setNext=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.core.OffsetCursor=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.OffsetCursor,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.OffsetCursor.displayName="proto.vertexvis.protobuf.core.OffsetCursor"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.OffsetCursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetCursor.toObject(t,this)},proto.vertexvis.protobuf.core.OffsetCursor.toObject=function(t,o){var r={total:c.Message.getFieldWithDefault(o,1,0),next:c.Message.getFieldWithDefault(o,2,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.OffsetCursor;return proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setTotal(r);break;case 2:r=o.readString(),t.setNext(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.OffsetCursor.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getTotal())&&o.writeUint32(1,r),(r=t.getNext()).length>0&&o.writeString(2,r)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.getTotal=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setTotal=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.getNext=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setNext=function(t){c.Message.setProto3StringField(this,2,t)},r.object.extend(o,proto.vertexvis.protobuf.core)})),w=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Uuid",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.Uuid2l",null,n),proto.vertexvis.protobuf.core.Uuid=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Uuid,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid.displayName="proto.vertexvis.protobuf.core.Uuid"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Uuid.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid.toObject(t,this)},proto.vertexvis.protobuf.core.Uuid.toObject=function(t,o){var r={hex:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Uuid.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Uuid;return proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setHex(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Uuid.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter=function(t,o){var r;(r=t.getHex()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.core.Uuid.prototype.getHex=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Uuid.prototype.setHex=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.core.Uuid2l=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Uuid2l,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid2l.displayName="proto.vertexvis.protobuf.core.Uuid2l"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Uuid2l.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid2l.toObject(t,this)},proto.vertexvis.protobuf.core.Uuid2l.toObject=function(t,o){var r={msb:c.Message.getFieldWithDefault(o,1,"0"),lsb:c.Message.getFieldWithDefault(o,2,"0")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Uuid2l.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Uuid2l;return proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readSfixed64String();t.setMsb(r);break;case 2:r=o.readSfixed64String(),t.setLsb(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Uuid2l.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMsb(),0!==parseInt(r,10)&&o.writeSfixed64String(1,r),r=t.getLsb(),0!==parseInt(r,10)&&o.writeSfixed64String(2,r)},proto.vertexvis.protobuf.core.Uuid2l.prototype.getMsb=function(){return c.Message.getFieldWithDefault(this,1,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setMsb=function(t){c.Message.setProto3StringIntField(this,1,t)},proto.vertexvis.protobuf.core.Uuid2l.prototype.getLsb=function(){return c.Message.getFieldWithDefault(this,2,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setLsb=function(t){c.Message.setProto3StringIntField(this,2,t)},r.object.extend(o,proto.vertexvis.protobuf.core)})),b=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Node",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Range",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType",null,n),proto.vertexvis.protobuf.scenetree.v1alpha1.Node=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Node,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Node.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Node"),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_=[10],c.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,o){var r,n={id:(r=o.getId())&&w.Uuid.toObject(t,r),depth:c.Message.getFieldWithDefault(o,2,0),name:c.Message.getFieldWithDefault(o,3,""),visible:c.Message.getFieldWithDefault(o,4,!1),selected:c.Message.getFieldWithDefault(o,5,!1),expanded:c.Message.getFieldWithDefault(o,6,!1),isLeaf:c.Message.getFieldWithDefault(o,7,!1),suppliedId:(r=o.getSuppliedId())&&p.StringValue.toObject(t,r),partiallyVisible:c.Message.getFieldWithDefault(o,9,!1),columnsList:c.Message.getRepeatedField(o,10),filterHit:c.Message.getFieldWithDefault(o,11,!1)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Node;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setId(r);break;case 2:r=o.readUint32(),t.setDepth(r);break;case 3:r=o.readString(),t.setName(r);break;case 4:r=o.readBool(),t.setVisible(r);break;case 5:r=o.readBool(),t.setSelected(r);break;case 6:r=o.readBool(),t.setExpanded(r);break;case 7:r=o.readBool(),t.setIsLeaf(r);break;case 8:r=new p.StringValue,o.readMessage(r,p.StringValue.deserializeBinaryFromReader),t.setSuppliedId(r);break;case 9:r=o.readBool(),t.setPartiallyVisible(r);break;case 10:r=o.readString(),t.addColumns(r);break;case 11:r=o.readBool(),t.setFilterHit(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),0!==(r=t.getDepth())&&o.writeUint32(2,r),(r=t.getName()).length>0&&o.writeString(3,r),(r=t.getVisible())&&o.writeBool(4,r),(r=t.getSelected())&&o.writeBool(5,r),(r=t.getExpanded())&&o.writeBool(6,r),(r=t.getIsLeaf())&&o.writeBool(7,r),null!=(r=t.getSuppliedId())&&o.writeMessage(8,r,p.StringValue.serializeBinaryToWriter),(r=t.getPartiallyVisible())&&o.writeBool(9,r),(r=t.getColumnsList()).length>0&&o.writeRepeatedString(10,r),(r=t.getFilterHit())&&o.writeBool(11,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearId=function(){this.setId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getDepth=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setDepth=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getName=function(){return c.Message.getFieldWithDefault(this,3,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setName=function(t){c.Message.setProto3StringField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getVisible=function(){return c.Message.getFieldWithDefault(this,4,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setVisible=function(t){c.Message.setProto3BooleanField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSelected=function(){return c.Message.getFieldWithDefault(this,5,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSelected=function(t){c.Message.setProto3BooleanField(this,5,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getExpanded=function(){return c.Message.getFieldWithDefault(this,6,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setExpanded=function(t){c.Message.setProto3BooleanField(this,6,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getIsLeaf=function(){return c.Message.getFieldWithDefault(this,7,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setIsLeaf=function(t){c.Message.setProto3BooleanField(this,7,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSuppliedId=function(){return c.Message.getWrapperField(this,p.StringValue,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSuppliedId=function(t){c.Message.setWrapperField(this,8,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearSuppliedId=function(){this.setSuppliedId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasSuppliedId=function(){return null!=c.Message.getField(this,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPartiallyVisible=function(){return c.Message.getFieldWithDefault(this,9,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPartiallyVisible=function(t){c.Message.setProto3BooleanField(this,9,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getColumnsList=function(){return c.Message.getRepeatedField(this,10)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setColumnsList=function(t){c.Message.setField(this,10,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.addColumns=function(t,o){c.Message.addToRepeatedField(this,10,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearColumnsList=function(){this.setColumnsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getFilterHit=function(){return c.Message.getFieldWithDefault(this,11,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setFilterHit=function(t){c.Message.setProto3BooleanField(this,11,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject=function(t,o){var r={start:c.Message.getFieldWithDefault(o,1,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readInt32();t.setStart(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter=function(t,o){var r;0!==(r=t.getStart())&&o.writeInt32(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.getStart=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.setStart=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Range,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Range.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Range"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject=function(t,o){var r={start:c.Message.getFieldWithDefault(o,1,0),end:c.Message.getFieldWithDefault(o,2,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readInt32();t.setStart(r);break;case 2:r=o.readInt32(),t.setEnd(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getStart())&&o.writeInt32(1,r),0!==(r=t.getEnd())&&o.writeInt32(2,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getStart=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setStart=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getEnd=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setEnd=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange"),proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_=[1,2,3,4,5],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject=function(t,o){var r={hiddenList:c.Message.toObjectList(o.getHiddenList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),shownList:c.Message.toObjectList(o.getShownList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),selectedList:c.Message.toObjectList(o.getSelectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),deselectedList:c.Message.toObjectList(o.getDeselectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),partiallyVisibleList:c.Message.toObjectList(o.getPartiallyVisibleList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addHidden(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addShown(r);break;case 3:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addSelected(r);break;case 4:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addDeselected(r);break;case 5:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addPartiallyVisible(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getHiddenList()).length>0&&o.writeRepeatedMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getShownList()).length>0&&o.writeRepeatedMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getSelectedList()).length>0&&o.writeRepeatedMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getDeselectedList()).length>0&&o.writeRepeatedMessage(4,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getPartiallyVisibleList()).length>0&&o.writeRepeatedMessage(5,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getHiddenList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setHiddenList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addHidden=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearHiddenList=function(){this.setHiddenList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getShownList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setShownList=function(t){c.Message.setRepeatedWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addShown=function(t,o){return c.Message.addToRepeatedWrapperField(this,2,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearShownList=function(){this.setShownList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getSelectedList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setSelectedList=function(t){c.Message.setRepeatedWrapperField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addSelected=function(t,o){return c.Message.addToRepeatedWrapperField(this,3,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearSelectedList=function(){this.setSelectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getDeselectedList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,4)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setDeselectedList=function(t){c.Message.setRepeatedWrapperField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addDeselected=function(t,o){return c.Message.addToRepeatedWrapperField(this,4,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearDeselectedList=function(){this.setDeselectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getPartiallyVisibleList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,5)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setPartiallyVisibleList=function(t){c.Message.setRepeatedWrapperField(this,5,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addPartiallyVisible=function(t,o){return c.Message.addToRepeatedWrapperField(this,5,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearPartiallyVisibleList=function(){this.setPartiallyVisibleList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType=function(t){c.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType"),proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_=[[1,2,3]],proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase={SEALED_VALUE_NOT_SET:0,LIST_CHANGE:1,RANGES:2,KEEP_ALIVE:3},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getSealedValueCase=function(){return c.Message.computeOneofCase(this,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0])},c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject=function(t,o){var r,n={listChange:(r=o.getListChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,r),ranges:(r=o.getRanges())&&proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,r),keepAlive:(r=o.getKeepAlive())&&proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader),t.setListChange(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader),t.setRanges(r);break;case 3:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader),t.setKeepAlive(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getListChange())&&o.writeMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter),null!=(r=t.getRanges())&&o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter),null!=(r=t.getKeepAlive())&&o.writeMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getListChange=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setListChange=function(t){c.Message.setOneofWrapperField(this,1,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearListChange=function(){this.setListChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasListChange=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getRanges=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setRanges=function(t){c.Message.setOneofWrapperField(this,2,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearRanges=function(){this.setRanges(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasRanges=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getKeepAlive=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setKeepAlive=function(t){c.Message.setOneofWrapperField(this,3,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearKeepAlive=function(){this.setKeepAlive(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasKeepAlive=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject=function(t,o){var r={value:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setValue(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter=function(t,o){var r;(r=t.getValue()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.getValue=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.setValue=function(t){c.Message.setProto3StringField(this,1,t)},r.object.extend(o,proto.vertexvis.protobuf.scenetree.v1alpha1)})),m=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse",null,n),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_=[3],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r),pager:(r=o.getPager())&&d.OffsetPager.toObject(t,r),additionalColumnKeysList:c.Message.getRepeatedField(o,3)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new d.OffsetPager,o.readMessage(r,d.OffsetPager.deserializeBinaryFromReader),t.setPager(r);break;case 3:r=o.readString(),t.addAdditionalColumnKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),null!=(r=t.getPager())&&o.writeMessage(2,r,d.OffsetPager.serializeBinaryToWriter),(r=t.getAdditionalColumnKeysList()).length>0&&o.writeRepeatedString(3,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getPager=function(){return c.Message.getWrapperField(this,d.OffsetPager,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setPager=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearPager=function(){this.setPager(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasPager=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getAdditionalColumnKeysList=function(){return c.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setAdditionalColumnKeysList=function(t){c.Message.setField(this,3,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.addAdditionalColumnKeys=function(t,o){c.Message.addToRepeatedField(this,3,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearAdditionalColumnKeysList=function(){this.setAdditionalColumnKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject=function(t,o){var r,n={itemsList:c.Message.toObjectList(o.getItemsList(),b.Node.toObject,t),totalVisible:c.Message.getFieldWithDefault(o,2,0),cursor:(r=o.getCursor())&&d.OffsetCursor.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.Node;o.readMessage(r,b.Node.deserializeBinaryFromReader),t.addItems(r);break;case 2:r=o.readUint32(),t.setTotalVisible(r);break;case 3:r=new d.OffsetCursor,o.readMessage(r,d.OffsetCursor.deserializeBinaryFromReader),t.setCursor(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,b.Node.serializeBinaryToWriter),0!==(r=t.getTotalVisible())&&o.writeUint32(2,r),null!=(r=t.getCursor())&&o.writeMessage(3,r,d.OffsetCursor.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getItemsList=function(){return c.Message.getRepeatedWrapperField(this,b.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setItemsList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.addItems=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getTotalVisible=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setTotalVisible=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getCursor=function(){return c.Message.getWrapperField(this,d.OffsetCursor,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setCursor=function(t){c.Message.setWrapperField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearCursor=function(){this.setCursor(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.hasCursor=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new w.Uuid,o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new w.Uuid,o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject=function(t,o){var r,n={change:(r=o.getChange())&&b.TreeChangeType.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.TreeChangeType;o.readMessage(r,b.TreeChangeType.deserializeBinaryFromReader),t.setChange(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getChange())&&o.writeMessage(1,r,b.TreeChangeType.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getChange=function(){return c.Message.getWrapperField(this,b.TreeChangeType,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setChange=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearChange=function(){this.setChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasChange=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_=[3],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject=function(t,o){var r={filter:c.Message.getFieldWithDefault(o,1,""),fullTree:c.Message.getFieldWithDefault(o,2,!1),columnsKeysList:c.Message.getRepeatedField(o,3)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setFilter(r);break;case 2:r=o.readBool(),t.setFullTree(r);break;case 3:r=o.readString(),t.addColumnsKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getFilter()).length>0&&o.writeString(1,r),(r=t.getFullTree())&&o.writeBool(2,r),(r=t.getColumnsKeysList()).length>0&&o.writeRepeatedString(3,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFilter=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFilter=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFullTree=function(){return c.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFullTree=function(t){c.Message.setProto3BooleanField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getColumnsKeysList=function(){return c.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setColumnsKeysList=function(t){c.Message.setField(this,3,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.addColumnsKeys=function(t,o){c.Message.addToRepeatedField(this,3,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.clearColumnsKeysList=function(){this.setColumnsKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject=function(t,o){var r,n={nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 2:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(2,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse"),c.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,o){var r,n={locatedIndex:(r=o.getLocatedIndex())&&p.UInt64Value.toObject(t,r),requiresReload:c.Message.getFieldWithDefault(o,2,!1)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new p.UInt64Value;o.readMessage(r,p.UInt64Value.deserializeBinaryFromReader),t.setLocatedIndex(r);break;case 2:r=o.readBool(),t.setRequiresReload(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getLocatedIndex())&&o.writeMessage(1,r,p.UInt64Value.serializeBinaryToWriter),(r=t.getRequiresReload())&&o.writeBool(2,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getLocatedIndex=function(){return c.Message.getWrapperField(this,p.UInt64Value,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setLocatedIndex=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.clearLocatedIndex=function(){this.setLocatedIndex(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.hasLocatedIndex=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getRequiresReload=function(){return c.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setRequiresReload=function(t){c.Message.setProto3BooleanField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject=function(t,o){var r,n={nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject=function(t,o){var r={itemsList:c.Message.toObjectList(o.getItemsList(),b.Node.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.Node;o.readMessage(r,b.Node.deserializeBinaryFromReader),t.addItems(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,b.Node.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.getItemsList=function(){return c.Message.getRepeatedWrapperField(this,b.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.setItemsList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.addItems=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject=function(t,o){var r={keysList:c.Message.toObjectList(o.getKeysList(),b.ColumnKey.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.ColumnKey;o.readMessage(r,b.ColumnKey.deserializeBinaryFromReader),t.addKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getKeysList()).length>0&&o.writeRepeatedMessage(1,r,b.ColumnKey.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getKeysList=function(){return c.Message.getRepeatedWrapperField(this,b.ColumnKey,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setKeysList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.addKeys=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.clearKeysList=function(){this.setKeysList([])},r.object.extend(o,proto.vertexvis.protobuf.scenetree.v1alpha1)})),y=l.grpc,g=function(){function t(){}return t.serviceName="vertexvis.protobuf.scenetree.v1alpha1.SceneTreeAPI",t}();function x(t,o){this.serviceHost=t,this.options=o||{}}g.GetTree={methodName:"GetTree",service:g,requestStream:!1,responseStream:!1,requestType:m.GetTreeRequest,responseType:m.GetTreeResponse},g.ExpandNode={methodName:"ExpandNode",service:g,requestStream:!1,responseStream:!1,requestType:m.ExpandNodeRequest,responseType:m.ExpandNodeResponse},g.CollapseNode={methodName:"CollapseNode",service:g,requestStream:!1,responseStream:!1,requestType:m.CollapseNodeRequest,responseType:m.CollapseNodeResponse},g.Subscribe={methodName:"Subscribe",service:g,requestStream:!1,responseStream:!0,requestType:m.SubscribeRequest,responseType:m.SubscribeResponse},g.Filter={methodName:"Filter",service:g,requestStream:!1,responseStream:!1,requestType:m.FilterRequest,responseType:m.FilterResponse},g.LocateItem={methodName:"LocateItem",service:g,requestStream:!1,responseStream:!1,requestType:m.LocateItemRequest,responseType:m.LocateItemResponse},g.ExpandAll={methodName:"ExpandAll",service:g,requestStream:!1,responseStream:!1,requestType:m.ExpandAllRequest,responseType:m.ExpandAllResponse},g.CollapseAll={methodName:"CollapseAll",service:g,requestStream:!1,responseStream:!1,requestType:m.CollapseAllRequest,responseType:m.CollapseAllResponse},g.GetNodeAncestors={methodName:"GetNodeAncestors",service:g,requestStream:!1,responseStream:!1,requestType:m.GetNodeAncestorsRequest,responseType:m.GetNodeAncestorsResponse},g.GetAvailableColumns={methodName:"GetAvailableColumns",service:g,requestStream:!1,responseStream:!1,requestType:m.GetAvailableColumnsRequest,responseType:m.GetAvailableColumnsResponse},x.prototype.getTree=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.GetTree,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.expandNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.ExpandNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.collapseNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.CollapseNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.subscribe=function(t,o){var r={data:[],end:[],status:[]},n=y.invoke(g.Subscribe,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onMessage:function(t){r.data.forEach((function(o){o(t)}))},onEnd:function(t,o,n){r.status.forEach((function(r){r({code:t,details:o,metadata:n})})),r.end.forEach((function(r){r({code:t,details:o,metadata:n})})),r=null}});return{on:function(t,o){return r[t].push(o),this},cancel:function(){r=null,n.close()}}},x.prototype.filter=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.Filter,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.locateItem=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.LocateItem,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.expandAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.ExpandAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.collapseAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.CollapseAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.getNodeAncestors=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.GetNodeAncestors,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.getAvailableColumns=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.GetAvailableColumns,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}};var E=x;const C=({details:r},n)=>t("div",{class:"error"},t("div",{class:"error-section error-message"},t("span",null,r.message),r.link&&t(o,null,t("span",null," See our "),t("a",{href:r.link,target:"_blank"},"documentation")," ",t("span",null," for more information."))),t("div",{class:"error-section"},n));var R;!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.SCENE_TREE_DISABLED=1]="SCENE_TREE_DISABLED"}(R||(R={}));class I{constructor(t,o){this.code=t,this.link=o,this.message=function(t){switch(t){case R.UNKNOWN:return"An unknown error occurred.";case R.SCENE_TREE_DISABLED:return"The tree for this scene is not enabled. Enable the tree for this scene to interact with the tree."}}(t)}}function L(t){this.message=t}(L.prototype=new Error).name="InvalidCharacterError";var k="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var o=String(t).replace(/=+$/,"");if(o.length%4==1)throw new L("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,e=0,i=0,s="";n=o.charAt(i++);~n&&(r=e%4?64*r+n:n,e++%4)?s+=String.fromCharCode(255&r>>(-2*e&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return s};function O(t){var o=t.replace(/-/g,"+").replace(/_/g,"/");switch(o.length%4){case 0:break;case 2:o+="==";break;case 3:o+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(k(t).replace(/(.)/g,(function(t,o){var r=o.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(o)}catch(t){return k(o)}}function P(t){this.message=t}function M(t,o,r){if(Array.isArray(o))return o.map(((o,n)=>M(t+n,o,r)));{const i=o.toObject();return{index:t,node:i,metadata:(n=r,e=i.columnsList,n.reduce(((t,o,r)=>(t[o]=e[r],t)),{})),data:{}}}var n,e}(P.prototype=new Error).name="InvalidTokenError";class T{constructor(t,o,r={}){this.client=t,this.rowLimit=o,this.connectOptions=r,this.nextPageId=0,this.pages=new Map,this.activeRowRange=[0,0],this.metadataKeys=[],this.onStateChange=new f,this.state={totalRows:0,rows:[],connection:{type:"disconnected"}}}get fetchedPageCount(){return this.pages.size}get isConnected(){return"connected"===this.state.connection.type}async connect(t){const{connection:o}=this.state,r=t();if(null==r)throw new Error("Cannot connect scene tree. JWT is undefined");const{view:n}=function(t){return function(t,o){if("string"!=typeof t)throw new P("Invalid token specified");var r=!0===(o=o||{}).header?0:1;try{return JSON.parse(O(t.split(".")[r]))}catch(t){throw new P("Invalid token specified: "+t.message)}}(t)}(r);this.disconnect(o.sceneViewId!==n);const e={type:"connecting",jwtProvider:t,sceneViewId:n};this.updateState(Object.assign(Object.assign({},this.state),{connection:e}));try{console.debug("Scene tree controller connecting."),await this.fetchPage(0);const t=await this.subscribe();t.on("end",(()=>this.startConnectionLostReconnectTimer())),this.updateState(Object.assign(Object.assign({},this.state),{connection:Object.assign(Object.assign({},e),{type:"connected",subscription:{dispose:()=>t.cancel()}})}))}catch(o){throw this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:n,details:this.getConnectionError(o)}})),o}this.startIdleReconnectTimer(),this.metadataKeys.length>0&&this.setMetadataKeys(this.metadataKeys)}clearReconnectTimer(){null!=this.reconnectTimer&&window.clearTimeout(this.reconnectTimer)}startIdleReconnectTimer(){this.startReconnectTimer(this.connectOptions.idleReconnectInSeconds||T.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||T.LOST_CONNECTION_RECONNECT_IN_SECONDS)}startReconnectTimer(t){this.clearReconnectTimer(),this.reconnectTimer=window.setTimeout((()=>{"connected"===this.state.connection.type&&this.connect(this.state.connection.jwtProvider)}),1e3*t)}connectToViewer(t){const o=async()=>{if(null!=t.token){console.debug("Scene tree controller found viewer JWT. Attempting connection.");try{await this.connect((()=>t.token))}catch(t){console.error("Scene tree controller erred connecting.",t)}}},r=()=>{console.debug("Scene tree controller received scene ready"),o()};return o(),t.addEventListener("sceneReady",r),{dispose:()=>{t.removeEventListener("sceneReady",r),this.disconnect()}}}disconnect(t=!1){console.debug(`Scene tree controller disconnecting [reset=${t}]`),this.clearReconnectTimer(),t&&(this.pages.clear(),this.activeRowRange=[]);const{connection:o}=this.state;"connected"===o.type&&o.subscription.dispose(),this.updateState({connection:{type:"disconnected",jwtProvider:o.jwtProvider,sceneViewId:o.sceneViewId},totalRows:t?0:this.state.totalRows,rows:t?[]:this.state.rows})}async collapseNode(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.CollapseNodeRequest;n.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.collapseNode(n,t,o)))}))}async expandNode(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.ExpandNodeRequest;n.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.expandNode(n,t,o)))}))}async collapseAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.collapseAll(new m.CollapseAllRequest,t,o)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.expandAll(new m.ExpandAllRequest,t,o)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.LocateItemRequest;n.setNodeId(r);const e=await this.requestUnary(o,((t,o)=>this.client.locateItem(n,t,o))),{requiresReload:i,locatedIndex:s}=e.toObject();if(i&&(this.invalidateAfterOffset(0),await this.fetchUnloadedPagesInActiveRows()),null==s)throw new Error("Cannot locate node. Location index is undefined.");return s.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.GetNodeAncestorsRequest;return n.setNodeId(r),(await this.requestUnary(o,((t,o)=>this.client.getNodeAncestors(n,t,o)))).toObject().itemsList}))}async fetchPage(t){return this.ifConnectionHasJwt((async o=>{var r;if(!(t<0||t>this.maxPages-1)){if(!this.pages.has(t)){const r=t*this.rowLimit;console.debug("Scene tree fetching page",t,r);const n=this.fetchTree(r,this.rowLimit,o),e={id:this.nextPageId++,res:n,index:t,metadataKeys:this.metadataKeys};this.pages.set(t,e),this.handlePageResult(e)}await(null===(r=this.pages.get(t))||void 0===r?void 0:r.res)}}))}fetchPageAtOffset(t){const o=Math.floor(t/this.rowLimit);return this.fetchPage(o)}async fetchRange(t,o){const r=Math.floor(t/this.rowLimit),n=Math.floor(o/this.rowLimit),[e,i]=this.constrainPageRange(r,n),s=i-e+1;await Promise.all(Array.from({length:s}).map(((t,o)=>this.fetchPage(o))))}async fetchMetadataKeys(){return this.ifConnectionHasJwt((async t=>(await this.requestUnary(t,((t,o)=>{const r=new m.GetAvailableColumnsRequest;this.client.getAvailableColumns(r,t,o)}))).getKeysList().map((t=>t.getValue()))))}async filter(t,o={}){await this.ifConnectionHasJwt((r=>this.requestUnary(r,((r,n)=>{var e;const i=new m.FilterRequest;i.setFilter(t),i.setFullTree(!0===(null===(e=o.includeCollapsed)||void 0===e||e)),o.columns&&i.setColumnsKeysList(o.columns),this.client.filter(i,r,n)}))))}isPageLoaded(t){return this.pages.has(t)}getNonLoadedPageIndexes(t,o){const[r,n]=this.constrainPageRange(t,o);return Array.from({length:n-r+1}).map(((t,o)=>r+o)).filter((t=>!this.isPageLoaded(t)))}getPage(t){return this.pages.get(t)}invalidatePagesOutsideRange(t,o,r=0){const[n,e]=this.constrainPageRange(t,o),i=Math.max(e-n,r);if(this.fetchedPageCount>i){const t=Array.from(this.pages.keys()).map((t=>({index:t,distance:t<n?n-t:t-e})));t.sort(((t,o)=>o.distance-t.distance)).slice(0,t.length-r).forEach((({index:t})=>this.invalidatePage(t))),console.debug(`Scene tree dropped ${t.length-this.fetchedPageCount} pages`,this.pages)}}setMetadataKeys(t){if(this.metadataKeys=t,"connected"===this.state.connection.type){const[t,o]=this.activeRowRange;return this.invalidateAfterOffset(0),this.updateActiveRowRange(t,o)}return Promise.resolve()}async updateActiveRowRange(t,o){this.activeRowRange=this.constrainRowOffsets(t,o),await this.fetchUnloadedPagesInActiveRows()}subscribe(){return this.ifConnectionHasJwt((t=>{const o=this.requestServerStream(t,(t=>this.client.subscribe(new m.SubscribeRequest,t)));return o.on("data",(t=>{this.startIdleReconnectTimer();const{change:o}=t.toObject();null!=(null==o?void 0:o.listChange)&&(console.debug("Received list change",o.listChange.start),this.invalidateAfterOffset(o.listChange.start),this.fetchUnloadedPagesInActiveRows());const{hiddenList:r=[],shownList:n=[],partiallyVisibleList:e=[],deselectedList:i=[],selectedList:s=[]}=(null==o?void 0:o.ranges)||{};e.length>0&&(console.debug("Received partial visibility list change",e),e.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({partiallyVisible:!0})))))),r.length>0&&(console.debug("Received hidden list change",r),r.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:!1,partiallyVisible:!1})))))),n.length>0&&(console.debug("Received shown list change",n),n.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:!0,partiallyVisible:!1})))))),i.length>0&&(console.debug("Received deselected list change",i),i.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:!1})))))),s.length>0&&(console.debug("Received selected list change",s),s.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:!0}))))))})),o}))}async fetchUnloadedPagesInActiveRows(){const[t,o]=this.getPageIndexesForRange(this.activeRowRange[0],this.activeRowRange[1]),r=this.getNonLoadedPageIndexes(t-1,o+1);await Promise.all(r.map((t=>this.fetchPage(t))))}patchNodesInRange(t,o,r){const n=this.state.rows.slice(t,o+1).map((t=>null!=t?Object.assign(Object.assign({},t),{node:Object.assign(Object.assign({},t.node),r(t.node))}):t)),e=[...this.state.rows.slice(0,t),...n,...this.state.rows.slice(o+1)];this.updateState(Object.assign(Object.assign({},this.state),{rows:e}))}async handlePageResult(t){var o;try{const r=await t.res,n=this.getPage(t.index);if((null==n?void 0:n.id)===t.id){const e=r.getCursor(),i=r.getItemsList(),s=null!==(o=null==e?void 0:e.getTotal())&&void 0!==o?o:0,u=t.index*this.rowLimit,a=M(u,i,n.metadataKeys),c=this.state.rows.slice(0,u),p=this.state.rows.slice(c.length+a.length,s),l=new Array(Math.max(0,s-c.length-a.length-p.length)),h=[...c,...a,...p,...l];this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:h}))}}catch(o){const r=o instanceof Error?o.toString():"Unknown";console.error(`Request error fetching page at index ${t.index} (${r})`);const n=this.getPage(t.index);(null==n?void 0:n.id)===t.id&&this.invalidatePage(t.index)}}invalidatePage(t){this.isPageLoaded(t)&&this.pages.delete(t)}invalidateAfterOffset(t){const o=Math.floor(t/this.rowLimit);for(const t of this.pages.keys())t>=o&&this.invalidatePage(t)}updateState(t){this.state=t,this.onStateChange.emit(this.state)}getPageForOffset(t){const o=Math.floor(t/this.rowLimit);return this.constrainPageIndex(o)}getPageIndexesForRange(t,o){return[this.getPageForOffset(t),this.getPageForOffset(o)]}async fetchTree(t,o,r){return this.requestUnary(r,((r,n)=>{const e=new d.OffsetPager;e.setOffset(t),e.setLimit(o);const i=new m.GetTreeRequest;i.setPager(e),i.setAdditionalColumnKeysList(this.metadataKeys),this.client.getTree(i,r,n)}))}requestUnary(t,o){return new Promise(((r,n)=>{const e=this.createJwtMetadata(t);o(e,((t,o)=>{null!=t?n(t):null!=o?r(o):n(new Error("Invalid response. Both error and result are null"))}))}))}requestServerStream(t,o){return o(this.createJwtMetadata(t))}createJwtMetadata(t){return new l.grpc.Metadata({"jwt-context":JSON.stringify({jwt:t})})}async ifConnectionHasJwt(t){const{connection:o}=this.state;if("connecting"===o.type||"connected"===o.type){const r=await o.jwtProvider();if(null!=r)return t(r);throw new Error("SceneTreeController cannot perform request. Viewer JWT is undefined.")}throw new Error("SceneTreeController is not in connected state")}getConnectionError(t){return"number"==typeof(o=t).code&&o.hasOwnProperty("metadata")?new I(t.code===l.grpc.Code.FailedPrecondition?R.SCENE_TREE_DISABLED:R.UNKNOWN):new I(R.UNKNOWN);var o}constrainPageRange(t,o){return[Math.max(0,t),Math.min(this.maxPages-1,o)]}constrainPageIndex(t){return Math.max(0,Math.min(t,this.maxPages-1))}constrainRowOffsets(t,o){return[Math.max(0,t),Math.min(this.state.totalRows-1,o)]}get maxPages(){return Math.max(1,Math.ceil(this.state.totalRows/this.rowLimit))}}async function S(t,o){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).show())).execute()}async function q(t,o){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).hide())).execute()}T.IDLE_RECONNECT_IN_SECONDS=240,T.LOST_CONNECTION_RECONNECT_IN_SECONDS=2;let A=class{constructor(t){r(this,t),this.connectionError=n(this,"connectionError",7),this.overScanCount=25,this.configEnv="platprod",this.filterOnMetadata=!1,this.metadataKeys=[],this.rows=[],this.totalRows=0,this.stateMap={componentLoaded:!1},this.attemptingRetry=!1}async invalidateRows(){e(this.getLayoutElement())}async scrollToIndex(t,o={}){const{animate:r,position:n="middle"}=o,e=Math.max(0,Math.min(t,this.totalRows)),i=this.getScrollToPosition(e,n);this.getLayoutElement().scrollToPosition(i,{behavior:r?"smooth":void 0})}async scrollToItem(t,o={}){var r;const n=this.totalRows,e=await(null===(r=this.controller)||void 0===r?void 0:r.expandParentNodes(t));if(null!=e&&n!==this.totalRows)return new Promise((t=>{const r=this.getLayoutElement(),n=async()=>{r.removeEventListener("layoutRendered",n),await this.scrollToIndex(e,o),t()};r.addEventListener("layoutRendered",n)}));null!=e&&await this.scrollToIndex(e,o)}async expandAll(){var t;await(null===(t=this.controller)||void 0===t?void 0:t.expandAll())}async collapseAll(){var t;await(null===(t=this.controller)||void 0===t?void 0:t.collapseAll())}async expandItem(t){await this.performRowOperation(t,(async({id:t,node:o})=>{var r;o.expanded||await(null===(r=this.controller)||void 0===r?void 0:r.expandNode(t))}))}async collapseItem(t){await this.performRowOperation(t,(async({id:t,node:o})=>{var r;o.expanded&&await(null===(r=this.controller)||void 0===r?void 0:r.collapseNode(t))}))}async toggleExpandItem(t){await this.performRowOperation(t,(async({node:t})=>{t.expanded?await this.collapseItem(t):await this.expandItem(t)}))}async toggleItemVisibility(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible?await q(t,o):await S(t,o)}))}async hideItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible&&await q(t,o)}))}async showItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible||await S(t,o)}))}async selectItem(t,o={}){var{recurseParent:r}=o,n=u(o,["recurseParent"]);await this.performRowOperation(t,(async({viewer:t,id:o})=>{var e,i,s,u;const a=await(null===(e=this.controller)||void 0===e?void 0:e.fetchNodeAncestors(o))||[],c=null===(i=this.stateMap.selectionPath)||void 0===i?void 0:i.includes(o);if(r&&c){const t=a.find((({selected:t})=>!t));null!=t&&(await this.selectItem(t,n),this.lastSelectedItemId=o)}else if(n.range&&null!=this.lastSelectedItemId){const r=await(null===(s=this.controller)||void 0===s?void 0:s.expandParentNodes(o)),e=await(null===(u=this.controller)||void 0===u?void 0:u.expandParentNodes(this.lastSelectedItemId));if(e&&r){const o=Math.min(e,r),i=Math.max(e,r);await async function(t,o,r,{material:n,append:e=!0}){return(await t.scene()).items((t=>[...e?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withSceneTreeRange({start:o,end:r}))).select(n)])).execute()}(t,o,i,n)}}else await async function(t,o,{material:r,append:n=!1}){return(await t.scene()).items((t=>[...n?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withItemId(o))).select(r)])).execute()}(t,o,n),this.lastSelectedItemId=o;this.stateMap.selectionPath=[...a.map((({id:t})=>(null==t?void 0:t.hex)||"")),o]}))}async deselectItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.selected&&(this.lastSelectedItemId=void 0,await async function(t,o){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).deselect())).execute()}(t,o))}))}async getRowAtIndex(t){return this.rows[t]}async getRowForEvent(t){const{clientY:o,target:r}=t;return null!=r&&null==this.connectionErrorDetails&&v(this.el,r)&&null!=(n=r)&&"VERTEX-SCENE-TREE-TABLE-CELL"===n.nodeName?this.getRowAtClientY(o):void 0;var n}getRowAtClientY(t){const o=this.getLayoutElement(),r=Math.floor((t-o.layoutOffset+o.scrollOffset)/o.rowHeight);return this.getRowAtIndex(r)}async filterItems(t,o={}){var r;return null===(r=this.controller)||void 0===r?void 0:r.filter(t,o)}async fetchMetadataKeys(){var t,o;return null!==(o=null===(t=this.controller)||void 0===t?void 0:t.fetchMetadataKeys())&&void 0!==o?o:[]}disconnectedCallback(){var t;null===(t=this.stateMap.viewerDisposable)||void 0===t||t.dispose()}componentWillLoad(){if(null!=this.viewerSelector&&(this.viewer=document.querySelector(this.viewerSelector)),null==this.controller){const{sceneTreeHost:t}=this.getConfig().network,o=new E(t);this.controller=new T(o,100)}this.stateMap.onStateChangeDisposable=this.controller.onStateChange.on((t=>this.handleControllerStateChange(t))),this.connectToViewer()}async componentDidLoad(){var t;this.ensureLayoutDefined();const o=this.getLayoutElement(),r=new ResizeObserver((()=>{this.invalidateRows()}));r.observe(o),this.stateMap.resizeObserver=r,this.stateMap.componentLoaded=!0,null===(t=this.controller)||void 0===t||t.setMetadataKeys(this.metadataKeys)}render(){return t(i,null,t("div",{class:"header"},t("slot",{name:"header"},t("vertex-scene-tree-toolbar",{class:"search-toolbar"},t("vertex-scene-tree-search",null)))),null!=this.connectionErrorDetails&&this.renderError(this.connectionErrorDetails),null==this.connectionErrorDetails&&t("div",{class:"rows-scroll"},t("slot",null)),t("div",{class:"footer"},t("slot",{name:"footer"})))}renderError(o){return o.code===R.UNKNOWN?t(C,{details:o},t("button",{class:"button button-secondary",onClick:()=>this.retryConnectToViewer(),disabled:this.attemptingRetry},"Retry")):t(C,{details:o})}handleViewerChanged(t,o){this.stateMap.componentLoaded&&this.connectToViewer()}handleControllerChanged(t){var o;this.stateMap.componentLoaded&&(null===(o=this.stateMap.onStateChangeDisposable)||void 0===o||o.dispose(),this.stateMap.onStateChangeDisposable=t.onStateChange.on((t=>this.handleControllerStateChange(t))),t.setMetadataKeys(this.metadataKeys))}handleMetadataKeysChanged(){var t;null===(t=this.controller)||void 0===t||t.setMetadataKeys(this.metadataKeys)}retryConnectToViewer(){this.attemptingRetry=!0,this.connectToViewer()}connectToViewer(){var t,o;null===(t=this.stateMap.viewerDisposable)||void 0===t||t.dispose(),null!=this.viewer&&(this.stateMap.viewerDisposable=null===(o=this.controller)||void 0===o?void 0:o.connectToViewer(this.viewer))}scheduleClearUnusedData(){null!=this.stateMap.idleCallbackId&&window.cancelIdleCallback(this.stateMap.idleCallbackId),this.stateMap.idleCallbackId=window.requestIdleCallback((t=>{var o,r,n;const e=null===(o=t.timeRemaining)||void 0===o?void 0:o.call(t);if(null==e||e>=25){const t=this.getLayoutElement(),o=t.viewportStartIndex,e=t.viewportEndIndex,[i,s]=(null===(r=this.controller)||void 0===r?void 0:r.getPageIndexesForRange(o,e))||[];null!=i&&null!=s&&(null===(n=this.controller)||void 0===n||n.invalidatePagesOutsideRange(i,s,50))}else this.scheduleClearUnusedData()}))}handleControllerStateChange(t){this.rows=t.rows,this.totalRows=t.totalRows,this.updateLayoutElement(),"failure"===t.connection.type?(this.connectionErrorDetails=t.connection.details,this.connectionError.emit(t.connection.details)):this.connectionErrorDetails=void 0,"connected"!==t.connection.type&&"failure"!==t.connection.type||(this.attemptingRetry=!1)}async performRowOperation(t,o){const r="number"==typeof t?this.rows[t]:t;if(null==r)throw new Error("Cannot perform scene tree operation. Row not found.");const n=null!=(e=r)&&e.hasOwnProperty("node")?r.node:r;var e;if(null==n.id)throw new Error("Cannot perform scene tree operation. ID is undefined.");if(null==this.viewer)throw new Error("Cannot perform scene tree operation. Cannot get reference to viewer.");await o({viewer:this.viewer,id:n.id.hex,node:n})}handleSearch(t){this.filterItems(t.detail,{columns:this.filterOnMetadata?this.metadataKeys:void 0})}getScrollToPosition(t,o){var r;const n=this.getLayoutElement(),e=Math.max(0,Math.min(t,this.totalRows-1)),i=null!==(r=n.layoutHeight)&&void 0!==r?r:0,s=n.rowHeight;return"start"===o?e*s:"middle"===o?e*s+s/2-i/2:e*s+s-i}getConfig(){return h(this.configEnv,this.config)}ensureLayoutDefined(){let t=this.el.querySelector("vertex-scene-tree-table-layout");null==t&&(t=document.createElement("vertex-scene-tree-table-layout"),t.innerHTML='\n <vertex-scene-tree-table-column>\n <template>\n <vertex-scene-tree-table-cell prop:value="{{row.node.name}}" expand-toggle visibility-toggle></vertex-scene-tree-table-cell>\n </template>\n </vertex-scene-tree-table-column>\n ',this.el.appendChild(t)),this.stateMap.layoutEl=t}updateLayoutElement(){const t=this.stateMap.layoutEl;null!=t&&(t.rows=this.rows,t.tree=this.el,t.totalRows=this.totalRows,t.controller=this.controller,t.rowData=this.rowData)}getLayoutElement(){if(null!=this.stateMap.layoutEl)return this.stateMap.layoutEl;throw new Error("Layout element is undefined")}get el(){return s(this)}static get watchers(){return{viewer:["handleViewerChanged"],controller:["handleControllerChanged"],metadataKeys:["handleMetadataKeysChanged"]}}};A.style="button{border:none;background:transparent;cursor:pointer;margin:0;padding:0}.button{padding:0.5rem;border-radius:0.25rem}.button-secondary{color:var(--neutral-800);background-color:var(--neutral-300)}.button-secondary:hover{color:var(--neutral-900)}.button-secondary:hover:enabled{box-shadow:0 2px 2px rgb(0 0 0 / 20%)}.button-secondary:disabled{opacity:0.8}.button-secondary:hover:disabled{cursor:not-allowed}:host{--scene-tree-toolbar-separator:1px solid var(--neutral-300);width:300px;height:100%;user-select:none;-webkit-user-select:none;cursor:default;display:flex;flex-direction:column}.rows-scroll{position:relative;height:var(--scene-tree-row-height, 0);flex-grow:1}.rows{position:relative}.row{position:absolute;display:flex;align-items:center;width:100%;height:var(--scene-tree-row-height);padding:var(--scene-tree-row-padding);box-sizing:border-box}.row:hover{background-color:var(--scene-tree-row-hover-color)}.row.is-selected{background-color:var(--scene-tree-row-selected-color)}.expand-toggle{cursor:pointer;width:16px}.row-text{margin-left:0.25rem;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.visibility-btn{display:flex;align-items:center;visibility:hidden;padding:4px}.visibility-btn.is-hidden{visibility:visible}.row:hover .visibility-btn{visibility:visible}.error{display:flex;flex-direction:column;align-items:center;font-size:0.875rem;width:100%;height:100%;padding:1rem;box-sizing:border-box;justify-content:center}.error-section{margin-top:1rem}.error-message{text-align:center}.search-toolbar,slot[name='header']::slotted(*){border-bottom:var(--scene-tree-toolbar-separator)}slot[name='footer']::slotted(:not(:last-child)){border-top:var(--scene-tree-toolbar-separator)}.header{display:flex;flex-direction:column}.footer{display:flex;flex-direction:column}";export{A as vertex_scene_tree}
4
+ import{h as t,F as o,r,c as n,f as e,H as i,g as s}from"./p-cafa57a6.js";import{n as u}from"./p-121f2b40.js";import{c as a}from"./p-112455b1.js";import{a as c,w as p,g as l}from"./p-3a20a038.js";import{p as h}from"./p-6d9d3553.js";import{E as f}from"./p-546ae240.js";import{g as v}from"./p-76c414a4.js";import"./p-18ec4fed.js";window.requestIdleCallback=window.requestIdleCallback||function(t){var o=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-o))}})}),1)},window.cancelIdleCallback=window.cancelIdleCallback||function(t){clearTimeout(t)};var d=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Cursor",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.OffsetCursor",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.OffsetPager",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.Pager",null,n),proto.vertexvis.protobuf.core.Pager=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Pager,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Pager.displayName="proto.vertexvis.protobuf.core.Pager"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Pager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Pager.toObject(t,this)},proto.vertexvis.protobuf.core.Pager.toObject=function(t,o){var r={limit:c.Message.getFieldWithDefault(o,1,0),cursor:c.Message.getFieldWithDefault(o,2,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Pager.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Pager;return proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setLimit(r);break;case 2:r=o.readString(),t.setCursor(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Pager.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getLimit())&&o.writeUint32(1,r),(r=t.getCursor()).length>0&&o.writeString(2,r)},proto.vertexvis.protobuf.core.Pager.prototype.getLimit=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Pager.prototype.setLimit=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.Pager.prototype.getCursor=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.Pager.prototype.setCursor=function(t){c.Message.setProto3StringField(this,2,t)},proto.vertexvis.protobuf.core.OffsetPager=function(t){c.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_)},r.inherits(proto.vertexvis.protobuf.core.OffsetPager,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.OffsetPager.displayName="proto.vertexvis.protobuf.core.OffsetPager"),proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_=[[2,3]],proto.vertexvis.protobuf.core.OffsetPager.PagerCase={PAGER_NOT_SET:0,CURSOR:2,OFFSET:3},proto.vertexvis.protobuf.core.OffsetPager.prototype.getPagerCase=function(){return c.Message.computeOneofCase(this,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0])},c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.OffsetPager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetPager.toObject(t,this)},proto.vertexvis.protobuf.core.OffsetPager.toObject=function(t,o){var r={limit:c.Message.getFieldWithDefault(o,1,0),cursor:c.Message.getFieldWithDefault(o,2,""),offset:c.Message.getFieldWithDefault(o,3,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.OffsetPager.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.OffsetPager;return proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setLimit(r);break;case 2:r=o.readString(),t.setCursor(r);break;case 3:r=o.readUint32(),t.setOffset(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.OffsetPager.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getLimit())&&o.writeUint32(1,r),null!=(r=c.Message.getField(t,2))&&o.writeString(2,r),null!=(r=c.Message.getField(t,3))&&o.writeUint32(3,r)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getLimit=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setLimit=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getCursor=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetPager.prototype.setCursor=function(t){c.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearCursor=function(){c.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasCursor=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getOffset=function(){return c.Message.getFieldWithDefault(this,3,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setOffset=function(t){c.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearOffset=function(){c.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasOffset=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.core.Cursor=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Cursor,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Cursor.displayName="proto.vertexvis.protobuf.core.Cursor"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Cursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Cursor.toObject(t,this)},proto.vertexvis.protobuf.core.Cursor.toObject=function(t,o){var r={next:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Cursor.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Cursor;return proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setNext(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Cursor.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter=function(t,o){var r;(r=t.getNext()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.core.Cursor.prototype.getNext=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Cursor.prototype.setNext=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.core.OffsetCursor=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.OffsetCursor,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.OffsetCursor.displayName="proto.vertexvis.protobuf.core.OffsetCursor"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.OffsetCursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetCursor.toObject(t,this)},proto.vertexvis.protobuf.core.OffsetCursor.toObject=function(t,o){var r={total:c.Message.getFieldWithDefault(o,1,0),next:c.Message.getFieldWithDefault(o,2,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.OffsetCursor;return proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setTotal(r);break;case 2:r=o.readString(),t.setNext(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.OffsetCursor.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getTotal())&&o.writeUint32(1,r),(r=t.getNext()).length>0&&o.writeString(2,r)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.getTotal=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setTotal=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.getNext=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setNext=function(t){c.Message.setProto3StringField(this,2,t)},r.object.extend(o,proto.vertexvis.protobuf.core)})),w=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Uuid",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.Uuid2l",null,n),proto.vertexvis.protobuf.core.Uuid=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Uuid,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid.displayName="proto.vertexvis.protobuf.core.Uuid"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Uuid.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid.toObject(t,this)},proto.vertexvis.protobuf.core.Uuid.toObject=function(t,o){var r={hex:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Uuid.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Uuid;return proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setHex(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Uuid.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter=function(t,o){var r;(r=t.getHex()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.core.Uuid.prototype.getHex=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Uuid.prototype.setHex=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.core.Uuid2l=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Uuid2l,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid2l.displayName="proto.vertexvis.protobuf.core.Uuid2l"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Uuid2l.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid2l.toObject(t,this)},proto.vertexvis.protobuf.core.Uuid2l.toObject=function(t,o){var r={msb:c.Message.getFieldWithDefault(o,1,"0"),lsb:c.Message.getFieldWithDefault(o,2,"0")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Uuid2l.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Uuid2l;return proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readSfixed64String();t.setMsb(r);break;case 2:r=o.readSfixed64String(),t.setLsb(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Uuid2l.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMsb(),0!==parseInt(r,10)&&o.writeSfixed64String(1,r),r=t.getLsb(),0!==parseInt(r,10)&&o.writeSfixed64String(2,r)},proto.vertexvis.protobuf.core.Uuid2l.prototype.getMsb=function(){return c.Message.getFieldWithDefault(this,1,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setMsb=function(t){c.Message.setProto3StringIntField(this,1,t)},proto.vertexvis.protobuf.core.Uuid2l.prototype.getLsb=function(){return c.Message.getFieldWithDefault(this,2,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setLsb=function(t){c.Message.setProto3StringIntField(this,2,t)},r.object.extend(o,proto.vertexvis.protobuf.core)})),b=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Node",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Range",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType",null,n),proto.vertexvis.protobuf.scenetree.v1alpha1.Node=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Node,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Node.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Node"),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_=[10],c.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,o){var r,n={id:(r=o.getId())&&w.Uuid.toObject(t,r),depth:c.Message.getFieldWithDefault(o,2,0),name:c.Message.getFieldWithDefault(o,3,""),visible:c.Message.getFieldWithDefault(o,4,!1),selected:c.Message.getFieldWithDefault(o,5,!1),expanded:c.Message.getFieldWithDefault(o,6,!1),isLeaf:c.Message.getFieldWithDefault(o,7,!1),suppliedId:(r=o.getSuppliedId())&&p.StringValue.toObject(t,r),partiallyVisible:c.Message.getFieldWithDefault(o,9,!1),columnsList:c.Message.getRepeatedField(o,10),filterHit:c.Message.getFieldWithDefault(o,11,!1)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Node;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setId(r);break;case 2:r=o.readUint32(),t.setDepth(r);break;case 3:r=o.readString(),t.setName(r);break;case 4:r=o.readBool(),t.setVisible(r);break;case 5:r=o.readBool(),t.setSelected(r);break;case 6:r=o.readBool(),t.setExpanded(r);break;case 7:r=o.readBool(),t.setIsLeaf(r);break;case 8:r=new p.StringValue,o.readMessage(r,p.StringValue.deserializeBinaryFromReader),t.setSuppliedId(r);break;case 9:r=o.readBool(),t.setPartiallyVisible(r);break;case 10:r=o.readString(),t.addColumns(r);break;case 11:r=o.readBool(),t.setFilterHit(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),0!==(r=t.getDepth())&&o.writeUint32(2,r),(r=t.getName()).length>0&&o.writeString(3,r),(r=t.getVisible())&&o.writeBool(4,r),(r=t.getSelected())&&o.writeBool(5,r),(r=t.getExpanded())&&o.writeBool(6,r),(r=t.getIsLeaf())&&o.writeBool(7,r),null!=(r=t.getSuppliedId())&&o.writeMessage(8,r,p.StringValue.serializeBinaryToWriter),(r=t.getPartiallyVisible())&&o.writeBool(9,r),(r=t.getColumnsList()).length>0&&o.writeRepeatedString(10,r),(r=t.getFilterHit())&&o.writeBool(11,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearId=function(){this.setId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getDepth=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setDepth=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getName=function(){return c.Message.getFieldWithDefault(this,3,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setName=function(t){c.Message.setProto3StringField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getVisible=function(){return c.Message.getFieldWithDefault(this,4,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setVisible=function(t){c.Message.setProto3BooleanField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSelected=function(){return c.Message.getFieldWithDefault(this,5,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSelected=function(t){c.Message.setProto3BooleanField(this,5,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getExpanded=function(){return c.Message.getFieldWithDefault(this,6,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setExpanded=function(t){c.Message.setProto3BooleanField(this,6,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getIsLeaf=function(){return c.Message.getFieldWithDefault(this,7,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setIsLeaf=function(t){c.Message.setProto3BooleanField(this,7,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSuppliedId=function(){return c.Message.getWrapperField(this,p.StringValue,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSuppliedId=function(t){c.Message.setWrapperField(this,8,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearSuppliedId=function(){this.setSuppliedId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasSuppliedId=function(){return null!=c.Message.getField(this,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPartiallyVisible=function(){return c.Message.getFieldWithDefault(this,9,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPartiallyVisible=function(t){c.Message.setProto3BooleanField(this,9,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getColumnsList=function(){return c.Message.getRepeatedField(this,10)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setColumnsList=function(t){c.Message.setField(this,10,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.addColumns=function(t,o){c.Message.addToRepeatedField(this,10,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearColumnsList=function(){this.setColumnsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getFilterHit=function(){return c.Message.getFieldWithDefault(this,11,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setFilterHit=function(t){c.Message.setProto3BooleanField(this,11,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject=function(t,o){var r={start:c.Message.getFieldWithDefault(o,1,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readInt32();t.setStart(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter=function(t,o){var r;0!==(r=t.getStart())&&o.writeInt32(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.getStart=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.setStart=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Range,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Range.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Range"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject=function(t,o){var r={start:c.Message.getFieldWithDefault(o,1,0),end:c.Message.getFieldWithDefault(o,2,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readInt32();t.setStart(r);break;case 2:r=o.readInt32(),t.setEnd(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getStart())&&o.writeInt32(1,r),0!==(r=t.getEnd())&&o.writeInt32(2,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getStart=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setStart=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getEnd=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setEnd=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange"),proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_=[1,2,3,4,5],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject=function(t,o){var r={hiddenList:c.Message.toObjectList(o.getHiddenList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),shownList:c.Message.toObjectList(o.getShownList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),selectedList:c.Message.toObjectList(o.getSelectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),deselectedList:c.Message.toObjectList(o.getDeselectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),partiallyVisibleList:c.Message.toObjectList(o.getPartiallyVisibleList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addHidden(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addShown(r);break;case 3:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addSelected(r);break;case 4:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addDeselected(r);break;case 5:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addPartiallyVisible(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getHiddenList()).length>0&&o.writeRepeatedMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getShownList()).length>0&&o.writeRepeatedMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getSelectedList()).length>0&&o.writeRepeatedMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getDeselectedList()).length>0&&o.writeRepeatedMessage(4,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getPartiallyVisibleList()).length>0&&o.writeRepeatedMessage(5,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getHiddenList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setHiddenList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addHidden=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearHiddenList=function(){this.setHiddenList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getShownList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setShownList=function(t){c.Message.setRepeatedWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addShown=function(t,o){return c.Message.addToRepeatedWrapperField(this,2,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearShownList=function(){this.setShownList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getSelectedList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setSelectedList=function(t){c.Message.setRepeatedWrapperField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addSelected=function(t,o){return c.Message.addToRepeatedWrapperField(this,3,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearSelectedList=function(){this.setSelectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getDeselectedList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,4)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setDeselectedList=function(t){c.Message.setRepeatedWrapperField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addDeselected=function(t,o){return c.Message.addToRepeatedWrapperField(this,4,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearDeselectedList=function(){this.setDeselectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getPartiallyVisibleList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,5)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setPartiallyVisibleList=function(t){c.Message.setRepeatedWrapperField(this,5,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addPartiallyVisible=function(t,o){return c.Message.addToRepeatedWrapperField(this,5,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearPartiallyVisibleList=function(){this.setPartiallyVisibleList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType=function(t){c.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType"),proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_=[[1,2,3]],proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase={SEALED_VALUE_NOT_SET:0,LIST_CHANGE:1,RANGES:2,KEEP_ALIVE:3},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getSealedValueCase=function(){return c.Message.computeOneofCase(this,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0])},c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject=function(t,o){var r,n={listChange:(r=o.getListChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,r),ranges:(r=o.getRanges())&&proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,r),keepAlive:(r=o.getKeepAlive())&&proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader),t.setListChange(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader),t.setRanges(r);break;case 3:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader),t.setKeepAlive(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getListChange())&&o.writeMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter),null!=(r=t.getRanges())&&o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter),null!=(r=t.getKeepAlive())&&o.writeMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getListChange=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setListChange=function(t){c.Message.setOneofWrapperField(this,1,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearListChange=function(){this.setListChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasListChange=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getRanges=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setRanges=function(t){c.Message.setOneofWrapperField(this,2,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearRanges=function(){this.setRanges(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasRanges=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getKeepAlive=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setKeepAlive=function(t){c.Message.setOneofWrapperField(this,3,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearKeepAlive=function(){this.setKeepAlive(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasKeepAlive=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject=function(t,o){var r={value:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setValue(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter=function(t,o){var r;(r=t.getValue()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.getValue=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.setValue=function(t){c.Message.setProto3StringField(this,1,t)},r.object.extend(o,proto.vertexvis.protobuf.scenetree.v1alpha1)})),m=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse",null,n),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_=[3],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r),pager:(r=o.getPager())&&d.OffsetPager.toObject(t,r),additionalColumnKeysList:c.Message.getRepeatedField(o,3)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new d.OffsetPager,o.readMessage(r,d.OffsetPager.deserializeBinaryFromReader),t.setPager(r);break;case 3:r=o.readString(),t.addAdditionalColumnKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),null!=(r=t.getPager())&&o.writeMessage(2,r,d.OffsetPager.serializeBinaryToWriter),(r=t.getAdditionalColumnKeysList()).length>0&&o.writeRepeatedString(3,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getPager=function(){return c.Message.getWrapperField(this,d.OffsetPager,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setPager=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearPager=function(){this.setPager(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasPager=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getAdditionalColumnKeysList=function(){return c.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setAdditionalColumnKeysList=function(t){c.Message.setField(this,3,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.addAdditionalColumnKeys=function(t,o){c.Message.addToRepeatedField(this,3,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearAdditionalColumnKeysList=function(){this.setAdditionalColumnKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject=function(t,o){var r,n={itemsList:c.Message.toObjectList(o.getItemsList(),b.Node.toObject,t),totalVisible:c.Message.getFieldWithDefault(o,2,0),cursor:(r=o.getCursor())&&d.OffsetCursor.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.Node;o.readMessage(r,b.Node.deserializeBinaryFromReader),t.addItems(r);break;case 2:r=o.readUint32(),t.setTotalVisible(r);break;case 3:r=new d.OffsetCursor,o.readMessage(r,d.OffsetCursor.deserializeBinaryFromReader),t.setCursor(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,b.Node.serializeBinaryToWriter),0!==(r=t.getTotalVisible())&&o.writeUint32(2,r),null!=(r=t.getCursor())&&o.writeMessage(3,r,d.OffsetCursor.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getItemsList=function(){return c.Message.getRepeatedWrapperField(this,b.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setItemsList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.addItems=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getTotalVisible=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setTotalVisible=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getCursor=function(){return c.Message.getWrapperField(this,d.OffsetCursor,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setCursor=function(t){c.Message.setWrapperField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearCursor=function(){this.setCursor(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.hasCursor=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new w.Uuid,o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new w.Uuid,o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject=function(t,o){var r,n={change:(r=o.getChange())&&b.TreeChangeType.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.TreeChangeType;o.readMessage(r,b.TreeChangeType.deserializeBinaryFromReader),t.setChange(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getChange())&&o.writeMessage(1,r,b.TreeChangeType.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getChange=function(){return c.Message.getWrapperField(this,b.TreeChangeType,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setChange=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearChange=function(){this.setChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasChange=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_=[3],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject=function(t,o){var r={filter:c.Message.getFieldWithDefault(o,1,""),fullTree:c.Message.getFieldWithDefault(o,2,!1),columnsKeysList:c.Message.getRepeatedField(o,3)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setFilter(r);break;case 2:r=o.readBool(),t.setFullTree(r);break;case 3:r=o.readString(),t.addColumnsKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getFilter()).length>0&&o.writeString(1,r),(r=t.getFullTree())&&o.writeBool(2,r),(r=t.getColumnsKeysList()).length>0&&o.writeRepeatedString(3,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFilter=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFilter=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFullTree=function(){return c.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFullTree=function(t){c.Message.setProto3BooleanField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getColumnsKeysList=function(){return c.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setColumnsKeysList=function(t){c.Message.setField(this,3,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.addColumnsKeys=function(t,o){c.Message.addToRepeatedField(this,3,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.clearColumnsKeysList=function(){this.setColumnsKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject=function(t,o){var r,n={nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 2:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(2,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse"),c.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,o){var r,n={locatedIndex:(r=o.getLocatedIndex())&&p.UInt64Value.toObject(t,r),requiresReload:c.Message.getFieldWithDefault(o,2,!1)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new p.UInt64Value;o.readMessage(r,p.UInt64Value.deserializeBinaryFromReader),t.setLocatedIndex(r);break;case 2:r=o.readBool(),t.setRequiresReload(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getLocatedIndex())&&o.writeMessage(1,r,p.UInt64Value.serializeBinaryToWriter),(r=t.getRequiresReload())&&o.writeBool(2,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getLocatedIndex=function(){return c.Message.getWrapperField(this,p.UInt64Value,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setLocatedIndex=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.clearLocatedIndex=function(){this.setLocatedIndex(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.hasLocatedIndex=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getRequiresReload=function(){return c.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setRequiresReload=function(t){c.Message.setProto3BooleanField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject=function(t,o){var r,n={nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject=function(t,o){var r={itemsList:c.Message.toObjectList(o.getItemsList(),b.Node.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.Node;o.readMessage(r,b.Node.deserializeBinaryFromReader),t.addItems(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,b.Node.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.getItemsList=function(){return c.Message.getRepeatedWrapperField(this,b.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.setItemsList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.addItems=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject=function(t,o){var r={keysList:c.Message.toObjectList(o.getKeysList(),b.ColumnKey.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.ColumnKey;o.readMessage(r,b.ColumnKey.deserializeBinaryFromReader),t.addKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getKeysList()).length>0&&o.writeRepeatedMessage(1,r,b.ColumnKey.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getKeysList=function(){return c.Message.getRepeatedWrapperField(this,b.ColumnKey,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setKeysList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.addKeys=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.clearKeysList=function(){this.setKeysList([])},r.object.extend(o,proto.vertexvis.protobuf.scenetree.v1alpha1)})),y=l.grpc,g=function(){function t(){}return t.serviceName="vertexvis.protobuf.scenetree.v1alpha1.SceneTreeAPI",t}();function x(t,o){this.serviceHost=t,this.options=o||{}}g.GetTree={methodName:"GetTree",service:g,requestStream:!1,responseStream:!1,requestType:m.GetTreeRequest,responseType:m.GetTreeResponse},g.ExpandNode={methodName:"ExpandNode",service:g,requestStream:!1,responseStream:!1,requestType:m.ExpandNodeRequest,responseType:m.ExpandNodeResponse},g.CollapseNode={methodName:"CollapseNode",service:g,requestStream:!1,responseStream:!1,requestType:m.CollapseNodeRequest,responseType:m.CollapseNodeResponse},g.Subscribe={methodName:"Subscribe",service:g,requestStream:!1,responseStream:!0,requestType:m.SubscribeRequest,responseType:m.SubscribeResponse},g.Filter={methodName:"Filter",service:g,requestStream:!1,responseStream:!1,requestType:m.FilterRequest,responseType:m.FilterResponse},g.LocateItem={methodName:"LocateItem",service:g,requestStream:!1,responseStream:!1,requestType:m.LocateItemRequest,responseType:m.LocateItemResponse},g.ExpandAll={methodName:"ExpandAll",service:g,requestStream:!1,responseStream:!1,requestType:m.ExpandAllRequest,responseType:m.ExpandAllResponse},g.CollapseAll={methodName:"CollapseAll",service:g,requestStream:!1,responseStream:!1,requestType:m.CollapseAllRequest,responseType:m.CollapseAllResponse},g.GetNodeAncestors={methodName:"GetNodeAncestors",service:g,requestStream:!1,responseStream:!1,requestType:m.GetNodeAncestorsRequest,responseType:m.GetNodeAncestorsResponse},g.GetAvailableColumns={methodName:"GetAvailableColumns",service:g,requestStream:!1,responseStream:!1,requestType:m.GetAvailableColumnsRequest,responseType:m.GetAvailableColumnsResponse},x.prototype.getTree=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.GetTree,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.expandNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.ExpandNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.collapseNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.CollapseNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.subscribe=function(t,o){var r={data:[],end:[],status:[]},n=y.invoke(g.Subscribe,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onMessage:function(t){r.data.forEach((function(o){o(t)}))},onEnd:function(t,o,n){r.status.forEach((function(r){r({code:t,details:o,metadata:n})})),r.end.forEach((function(r){r({code:t,details:o,metadata:n})})),r=null}});return{on:function(t,o){return r[t].push(o),this},cancel:function(){r=null,n.close()}}},x.prototype.filter=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.Filter,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.locateItem=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.LocateItem,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.expandAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.ExpandAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.collapseAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.CollapseAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.getNodeAncestors=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.GetNodeAncestors,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.getAvailableColumns=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.GetAvailableColumns,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}};var E=x;const C=({details:r},n)=>t("div",{class:"error"},t("div",{class:"error-section error-message"},t("span",null,r.message),r.link&&t(o,null,t("span",null," See our "),t("a",{href:r.link,target:"_blank"},"documentation")," ",t("span",null," for more information."))),t("div",{class:"error-section"},n));var R;!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.SCENE_TREE_DISABLED=1]="SCENE_TREE_DISABLED"}(R||(R={}));class I{constructor(t,o){this.code=t,this.link=o,this.message=function(t){switch(t){case R.UNKNOWN:return"An unknown error occurred.";case R.SCENE_TREE_DISABLED:return"The tree for this scene is not enabled. Enable the tree for this scene to interact with the tree."}}(t)}}function L(t){this.message=t}(L.prototype=new Error).name="InvalidCharacterError";var k="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var o=String(t).replace(/=+$/,"");if(o.length%4==1)throw new L("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,e=0,i=0,s="";n=o.charAt(i++);~n&&(r=e%4?64*r+n:n,e++%4)?s+=String.fromCharCode(255&r>>(-2*e&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return s};function O(t){var o=t.replace(/-/g,"+").replace(/_/g,"/");switch(o.length%4){case 0:break;case 2:o+="==";break;case 3:o+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(k(t).replace(/(.)/g,(function(t,o){var r=o.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(o)}catch(t){return k(o)}}function P(t){this.message=t}function M(t,o,r){if(Array.isArray(o))return o.map(((o,n)=>M(t+n,o,r)));{const i=o.toObject();return{index:t,node:i,metadata:(n=r,e=i.columnsList,n.reduce(((t,o,r)=>(t[o]=e[r],t)),{})),data:{}}}var n,e}(P.prototype=new Error).name="InvalidTokenError";class T{constructor(t,o,r={}){this.client=t,this.rowLimit=o,this.connectOptions=r,this.nextPageId=0,this.pages=new Map,this.activeRowRange=[0,0],this.metadataKeys=[],this.onStateChange=new f,this.state={totalRows:0,rows:[],connection:{type:"disconnected"}}}get fetchedPageCount(){return this.pages.size}get isConnected(){return"connected"===this.state.connection.type}async connect(t){const{connection:o}=this.state,r=t();if(null==r)throw new Error("Cannot connect scene tree. JWT is undefined");const{view:n}=function(t){return function(t,o){if("string"!=typeof t)throw new P("Invalid token specified");var r=!0===(o=o||{}).header?0:1;try{return JSON.parse(O(t.split(".")[r]))}catch(t){throw new P("Invalid token specified: "+t.message)}}(t)}(r);this.disconnect(o.sceneViewId!==n);const e={type:"connecting",jwtProvider:t,sceneViewId:n};this.updateState(Object.assign(Object.assign({},this.state),{connection:e}));try{console.debug("Scene tree controller connecting."),await this.fetchPage(0);const t=await this.subscribe();t.on("end",(()=>this.startConnectionLostReconnectTimer())),this.updateState(Object.assign(Object.assign({},this.state),{connection:Object.assign(Object.assign({},e),{type:"connected",subscription:{dispose:()=>t.cancel()}})}))}catch(o){throw this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:n,details:this.getConnectionError(o)}})),o}this.startIdleReconnectTimer(),this.metadataKeys.length>0&&this.setMetadataKeys(this.metadataKeys)}clearReconnectTimer(){null!=this.reconnectTimer&&window.clearTimeout(this.reconnectTimer)}startIdleReconnectTimer(){this.startReconnectTimer(this.connectOptions.idleReconnectInSeconds||T.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||T.LOST_CONNECTION_RECONNECT_IN_SECONDS)}startReconnectTimer(t){this.clearReconnectTimer(),this.reconnectTimer=window.setTimeout((()=>{"connected"===this.state.connection.type&&this.connect(this.state.connection.jwtProvider)}),1e3*t)}connectToViewer(t){const o=async()=>{if(null!=t.token){console.debug("Scene tree controller found viewer JWT. Attempting connection.");try{await this.connect((()=>t.token))}catch(t){console.error("Scene tree controller erred connecting.",t)}}},r=()=>{console.debug("Scene tree controller received scene ready"),o()};return o(),t.addEventListener("sceneReady",r),{dispose:()=>{t.removeEventListener("sceneReady",r),this.disconnect()}}}disconnect(t=!1){console.debug(`Scene tree controller disconnecting [reset=${t}]`),this.clearReconnectTimer(),t&&(this.pages.clear(),this.activeRowRange=[]);const{connection:o}=this.state;"connected"===o.type&&o.subscription.dispose(),this.updateState({connection:{type:"disconnected",jwtProvider:o.jwtProvider,sceneViewId:o.sceneViewId},totalRows:t?0:this.state.totalRows,rows:t?[]:this.state.rows})}async collapseNode(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.CollapseNodeRequest;n.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.collapseNode(n,t,o)))}))}async expandNode(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.ExpandNodeRequest;n.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.expandNode(n,t,o)))}))}async collapseAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.collapseAll(new m.CollapseAllRequest,t,o)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.expandAll(new m.ExpandAllRequest,t,o)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.LocateItemRequest;n.setNodeId(r);const e=await this.requestUnary(o,((t,o)=>this.client.locateItem(n,t,o))),{requiresReload:i,locatedIndex:s}=e.toObject();if(i&&(this.invalidateAfterOffset(0),await this.fetchUnloadedPagesInActiveRows()),null==s)throw new Error("Cannot locate node. Location index is undefined.");return s.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.GetNodeAncestorsRequest;return n.setNodeId(r),(await this.requestUnary(o,((t,o)=>this.client.getNodeAncestors(n,t,o)))).toObject().itemsList}))}async fetchPage(t){return this.ifConnectionHasJwt((async o=>{var r;if(!(t<0||t>this.maxPages-1)){if(!this.pages.has(t)){const r=t*this.rowLimit;console.debug("Scene tree fetching page",t,r);const n=this.fetchTree(r,this.rowLimit,o),e={id:this.nextPageId++,res:n,index:t,metadataKeys:this.metadataKeys};this.pages.set(t,e),this.handlePageResult(e)}await(null===(r=this.pages.get(t))||void 0===r?void 0:r.res)}}))}fetchPageAtOffset(t){const o=Math.floor(t/this.rowLimit);return this.fetchPage(o)}async fetchRange(t,o){const r=Math.floor(t/this.rowLimit),n=Math.floor(o/this.rowLimit),[e,i]=this.constrainPageRange(r,n),s=i-e+1;await Promise.all(Array.from({length:s}).map(((t,o)=>this.fetchPage(o))))}async fetchMetadataKeys(){return this.ifConnectionHasJwt((async t=>(await this.requestUnary(t,((t,o)=>{const r=new m.GetAvailableColumnsRequest;this.client.getAvailableColumns(r,t,o)}))).getKeysList().map((t=>t.getValue()))))}async filter(t,o={}){await this.ifConnectionHasJwt((r=>this.requestUnary(r,((r,n)=>{var e;const i=new m.FilterRequest;i.setFilter(t),i.setFullTree(!0===(null===(e=o.includeCollapsed)||void 0===e||e)),o.columns&&i.setColumnsKeysList(o.columns),this.client.filter(i,r,n)}))))}isPageLoaded(t){return this.pages.has(t)}getNonLoadedPageIndexes(t,o){const[r,n]=this.constrainPageRange(t,o);return Array.from({length:n-r+1}).map(((t,o)=>r+o)).filter((t=>!this.isPageLoaded(t)))}getPage(t){return this.pages.get(t)}invalidatePagesOutsideRange(t,o,r=0){const[n,e]=this.constrainPageRange(t,o),i=Math.max(e-n,r);if(this.fetchedPageCount>i){const t=Array.from(this.pages.keys()).map((t=>({index:t,distance:t<n?n-t:t-e})));t.sort(((t,o)=>o.distance-t.distance)).slice(0,t.length-r).forEach((({index:t})=>this.invalidatePage(t))),console.debug(`Scene tree dropped ${t.length-this.fetchedPageCount} pages`,this.pages)}}setMetadataKeys(t){if(this.metadataKeys=t,"connected"===this.state.connection.type){const[t,o]=this.activeRowRange;return this.invalidateAfterOffset(0),this.updateActiveRowRange(t,o)}return Promise.resolve()}async updateActiveRowRange(t,o){this.activeRowRange=this.constrainRowOffsets(t,o),await this.fetchUnloadedPagesInActiveRows()}subscribe(){return this.ifConnectionHasJwt((t=>{const o=this.requestServerStream(t,(t=>this.client.subscribe(new m.SubscribeRequest,t)));return o.on("data",(t=>{this.startIdleReconnectTimer();const{change:o}=t.toObject();null!=(null==o?void 0:o.listChange)&&(console.debug("Received list change",o.listChange.start),this.invalidateAfterOffset(o.listChange.start),this.fetchUnloadedPagesInActiveRows());const{hiddenList:r=[],shownList:n=[],partiallyVisibleList:e=[],deselectedList:i=[],selectedList:s=[]}=(null==o?void 0:o.ranges)||{};e.length>0&&(console.debug("Received partial visibility list change",e),e.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({partiallyVisible:!0})))))),r.length>0&&(console.debug("Received hidden list change",r),r.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:!1,partiallyVisible:!1})))))),n.length>0&&(console.debug("Received shown list change",n),n.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:!0,partiallyVisible:!1})))))),i.length>0&&(console.debug("Received deselected list change",i),i.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:!1})))))),s.length>0&&(console.debug("Received selected list change",s),s.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:!0}))))))})),o}))}async fetchUnloadedPagesInActiveRows(){const[t,o]=this.getPageIndexesForRange(this.activeRowRange[0],this.activeRowRange[1]),r=this.getNonLoadedPageIndexes(t-1,o+1);await Promise.all(r.map((t=>this.fetchPage(t))))}patchNodesInRange(t,o,r){const n=this.state.rows.slice(t,o+1).map((t=>null!=t?Object.assign(Object.assign({},t),{node:Object.assign(Object.assign({},t.node),r(t.node))}):t)),e=[...this.state.rows.slice(0,t),...n,...this.state.rows.slice(o+1)];this.updateState(Object.assign(Object.assign({},this.state),{rows:e}))}async handlePageResult(t){var o;try{const r=await t.res,n=this.getPage(t.index);if((null==n?void 0:n.id)===t.id){const e=r.getCursor(),i=r.getItemsList(),s=null!==(o=null==e?void 0:e.getTotal())&&void 0!==o?o:0,u=t.index*this.rowLimit,a=M(u,i,n.metadataKeys),c=this.state.rows.slice(0,u),p=this.state.rows.slice(c.length+a.length,s),l=new Array(Math.max(0,s-c.length-a.length-p.length)),h=[...c,...a,...p,...l];this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:h}))}}catch(o){const r=o instanceof Error?o.toString():"Unknown";console.error(`Request error fetching page at index ${t.index} (${r})`);const n=this.getPage(t.index);(null==n?void 0:n.id)===t.id&&this.invalidatePage(t.index)}}invalidatePage(t){this.isPageLoaded(t)&&this.pages.delete(t)}invalidateAfterOffset(t){const o=Math.floor(t/this.rowLimit);for(const t of this.pages.keys())t>=o&&this.invalidatePage(t)}updateState(t){this.state=t,this.onStateChange.emit(this.state)}getPageForOffset(t){const o=Math.floor(t/this.rowLimit);return this.constrainPageIndex(o)}getPageIndexesForRange(t,o){return[this.getPageForOffset(t),this.getPageForOffset(o)]}async fetchTree(t,o,r){return this.requestUnary(r,((r,n)=>{const e=new d.OffsetPager;e.setOffset(t),e.setLimit(o);const i=new m.GetTreeRequest;i.setPager(e),i.setAdditionalColumnKeysList(this.metadataKeys),this.client.getTree(i,r,n)}))}requestUnary(t,o){return new Promise(((r,n)=>{const e=this.createJwtMetadata(t);o(e,((t,o)=>{null!=t?n(t):null!=o?r(o):n(new Error("Invalid response. Both error and result are null"))}))}))}requestServerStream(t,o){return o(this.createJwtMetadata(t))}createJwtMetadata(t){return new l.grpc.Metadata({"jwt-context":JSON.stringify({jwt:t})})}async ifConnectionHasJwt(t){const{connection:o}=this.state;if("connecting"===o.type||"connected"===o.type){const r=await o.jwtProvider();if(null!=r)return t(r);throw new Error("SceneTreeController cannot perform request. Viewer JWT is undefined.")}throw new Error("SceneTreeController is not in connected state")}getConnectionError(t){return"number"==typeof(o=t).code&&o.hasOwnProperty("metadata")?new I(t.code===l.grpc.Code.FailedPrecondition?R.SCENE_TREE_DISABLED:R.UNKNOWN):new I(R.UNKNOWN);var o}constrainPageRange(t,o){return[Math.max(0,t),Math.min(this.maxPages-1,o)]}constrainPageIndex(t){return Math.max(0,Math.min(t,this.maxPages-1))}constrainRowOffsets(t,o){return[Math.max(0,t),Math.min(this.state.totalRows-1,o)]}get maxPages(){return Math.max(1,Math.ceil(this.state.totalRows/this.rowLimit))}}async function S(t,o){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).show())).execute()}async function q(t,o){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).hide())).execute()}T.IDLE_RECONNECT_IN_SECONDS=240,T.LOST_CONNECTION_RECONNECT_IN_SECONDS=2;let A=class{constructor(t){r(this,t),this.connectionError=n(this,"connectionError",7),this.overScanCount=25,this.configEnv="platprod",this.filterOnMetadata=!1,this.metadataKeys=[],this.rows=[],this.totalRows=0,this.stateMap={componentLoaded:!1},this.attemptingRetry=!1}async invalidateRows(){e(this.getLayoutElement())}async scrollToIndex(t,o={}){const{animate:r,position:n="middle"}=o,e=Math.max(0,Math.min(t,this.totalRows)),i=this.getScrollToPosition(e,n);this.getLayoutElement().scrollToPosition(i,{behavior:r?"smooth":void 0})}async scrollToItem(t,o={}){var r;const n=this.totalRows,e=await(null===(r=this.controller)||void 0===r?void 0:r.expandParentNodes(t));if(null!=e&&n!==this.totalRows)return new Promise((t=>{const r=this.getLayoutElement(),n=async()=>{r.removeEventListener("layoutRendered",n),await this.scrollToIndex(e,o),t()};r.addEventListener("layoutRendered",n)}));null!=e&&await this.scrollToIndex(e,o)}async expandAll(){var t;await(null===(t=this.controller)||void 0===t?void 0:t.expandAll())}async collapseAll(){var t;await(null===(t=this.controller)||void 0===t?void 0:t.collapseAll())}async expandItem(t){await this.performRowOperation(t,(async({id:t,node:o})=>{var r;o.expanded||await(null===(r=this.controller)||void 0===r?void 0:r.expandNode(t))}))}async collapseItem(t){await this.performRowOperation(t,(async({id:t,node:o})=>{var r;o.expanded&&await(null===(r=this.controller)||void 0===r?void 0:r.collapseNode(t))}))}async toggleExpandItem(t){await this.performRowOperation(t,(async({node:t})=>{t.expanded?await this.collapseItem(t):await this.expandItem(t)}))}async toggleItemVisibility(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible?await q(t,o):await S(t,o)}))}async hideItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible&&await q(t,o)}))}async showItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible||await S(t,o)}))}async selectItem(t,o={}){var{recurseParent:r}=o,n=u(o,["recurseParent"]);await this.performRowOperation(t,(async({viewer:t,id:o})=>{var e,i,s,u;const a=await(null===(e=this.controller)||void 0===e?void 0:e.fetchNodeAncestors(o))||[],c=null===(i=this.stateMap.selectionPath)||void 0===i?void 0:i.includes(o);if(r&&c){const t=a.find((({selected:t})=>!t));null!=t&&(await this.selectItem(t,n),this.lastSelectedItemId=o)}else if(n.range&&null!=this.lastSelectedItemId){const r=await(null===(s=this.controller)||void 0===s?void 0:s.expandParentNodes(o)),e=await(null===(u=this.controller)||void 0===u?void 0:u.expandParentNodes(this.lastSelectedItemId));if(e&&r){const o=Math.min(e,r),i=Math.max(e,r);await async function(t,o,r,{material:n,append:e=!0}){return(await t.scene()).items((t=>[...e?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withSceneTreeRange({start:o,end:r}))).select(n)])).execute()}(t,o,i,n)}}else await async function(t,o,{material:r,append:n=!1}){return(await t.scene()).items((t=>[...n?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withItemId(o))).select(r)])).execute()}(t,o,n),this.lastSelectedItemId=o;this.stateMap.selectionPath=[...a.map((({id:t})=>(null==t?void 0:t.hex)||"")),o]}))}async deselectItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.selected&&(this.lastSelectedItemId=void 0,await async function(t,o){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).deselect())).execute()}(t,o))}))}async getRowAtIndex(t){return this.rows[t]}async getRowForEvent(t){const{clientY:o,target:r}=t;return null!=r&&null==this.connectionErrorDetails&&v(this.el,r)&&null!=(n=r)&&"VERTEX-SCENE-TREE-TABLE-CELL"===n.nodeName?this.getRowAtClientY(o):void 0;var n}getRowAtClientY(t){const o=this.getLayoutElement(),r=Math.floor((t-o.layoutOffset+o.scrollOffset)/o.rowHeight);return this.getRowAtIndex(r)}async filterItems(t,o={}){var r;return null===(r=this.controller)||void 0===r?void 0:r.filter(t,o)}async fetchMetadataKeys(){var t,o;return null!==(o=null===(t=this.controller)||void 0===t?void 0:t.fetchMetadataKeys())&&void 0!==o?o:[]}disconnectedCallback(){var t;null===(t=this.stateMap.viewerDisposable)||void 0===t||t.dispose()}componentWillLoad(){if(null!=this.viewerSelector&&(this.viewer=document.querySelector(this.viewerSelector)),null==this.controller){const{sceneTreeHost:t}=this.getConfig().network,o=new E(t);this.controller=new T(o,100)}this.stateMap.onStateChangeDisposable=this.controller.onStateChange.on((t=>this.handleControllerStateChange(t))),this.connectToViewer()}async componentDidLoad(){var t;this.ensureLayoutDefined();const o=this.getLayoutElement(),r=new ResizeObserver((()=>{this.invalidateRows()}));r.observe(o),this.stateMap.resizeObserver=r,this.stateMap.componentLoaded=!0,null===(t=this.controller)||void 0===t||t.setMetadataKeys(this.metadataKeys)}render(){return t(i,null,t("div",{class:"header"},t("slot",{name:"header"},t("vertex-scene-tree-toolbar",{class:"search-toolbar"},t("vertex-scene-tree-search",null)))),null!=this.connectionErrorDetails&&this.renderError(this.connectionErrorDetails),null==this.connectionErrorDetails&&t("div",{class:"rows-scroll"},t("slot",null)),t("div",{class:"footer"},t("slot",{name:"footer"})))}renderError(o){return o.code===R.UNKNOWN?t(C,{details:o},t("button",{class:"button button-secondary",onClick:()=>this.retryConnectToViewer(),disabled:this.attemptingRetry},"Retry")):t(C,{details:o})}handleViewerChanged(t,o){this.stateMap.componentLoaded&&this.connectToViewer()}handleControllerChanged(t){var o;this.stateMap.componentLoaded&&(null===(o=this.stateMap.onStateChangeDisposable)||void 0===o||o.dispose(),this.stateMap.onStateChangeDisposable=t.onStateChange.on((t=>this.handleControllerStateChange(t))),t.setMetadataKeys(this.metadataKeys))}handleMetadataKeysChanged(){var t;null===(t=this.controller)||void 0===t||t.setMetadataKeys(this.metadataKeys)}retryConnectToViewer(){this.attemptingRetry=!0,this.connectToViewer()}connectToViewer(){var t,o;null===(t=this.stateMap.viewerDisposable)||void 0===t||t.dispose(),null!=this.viewer&&(this.stateMap.viewerDisposable=null===(o=this.controller)||void 0===o?void 0:o.connectToViewer(this.viewer))}scheduleClearUnusedData(){null!=this.stateMap.idleCallbackId&&window.cancelIdleCallback(this.stateMap.idleCallbackId),this.stateMap.idleCallbackId=window.requestIdleCallback((t=>{var o,r,n;const e=null===(o=t.timeRemaining)||void 0===o?void 0:o.call(t);if(null==e||e>=25){const t=this.getLayoutElement(),o=t.viewportStartIndex,e=t.viewportEndIndex,[i,s]=(null===(r=this.controller)||void 0===r?void 0:r.getPageIndexesForRange(o,e))||[];null!=i&&null!=s&&(null===(n=this.controller)||void 0===n||n.invalidatePagesOutsideRange(i,s,50))}else this.scheduleClearUnusedData()}))}handleControllerStateChange(t){this.rows=t.rows,this.totalRows=t.totalRows,this.updateLayoutElement(),"failure"===t.connection.type?(this.connectionErrorDetails=t.connection.details,this.connectionError.emit(t.connection.details)):this.connectionErrorDetails=void 0,"connected"!==t.connection.type&&"failure"!==t.connection.type||(this.attemptingRetry=!1)}async performRowOperation(t,o){const r="number"==typeof t?this.rows[t]:t;if(null==r)throw new Error("Cannot perform scene tree operation. Row not found.");const n=null!=(e=r)&&e.hasOwnProperty("node")?r.node:r;var e;if(null==n.id)throw new Error("Cannot perform scene tree operation. ID is undefined.");if(null==this.viewer)throw new Error("Cannot perform scene tree operation. Cannot get reference to viewer.");await o({viewer:this.viewer,id:n.id.hex,node:n})}handleSearch(t){this.filterItems(t.detail,{columns:this.filterOnMetadata?this.metadataKeys:void 0})}getScrollToPosition(t,o){var r;const n=this.getLayoutElement(),e=Math.max(0,Math.min(t,this.totalRows-1)),i=null!==(r=n.layoutHeight)&&void 0!==r?r:0,s=n.rowHeight;return"start"===o?e*s:"middle"===o?e*s+s/2-i/2:e*s+s-i}getConfig(){return h(this.configEnv,this.config)}ensureLayoutDefined(){let t=this.el.querySelector("vertex-scene-tree-table-layout");null==t&&(t=document.createElement("vertex-scene-tree-table-layout"),t.innerHTML='\n <vertex-scene-tree-table-column>\n <template>\n <vertex-scene-tree-table-cell prop:value="{{row.node.name}}" expand-toggle visibility-toggle></vertex-scene-tree-table-cell>\n </template>\n </vertex-scene-tree-table-column>\n ',this.el.appendChild(t)),this.stateMap.layoutEl=t}updateLayoutElement(){const t=this.stateMap.layoutEl;null!=t&&(t.rows=this.rows,t.tree=this.el,t.totalRows=this.totalRows,t.controller=this.controller,t.rowData=this.rowData)}getLayoutElement(){if(null!=this.stateMap.layoutEl)return this.stateMap.layoutEl;throw new Error("Layout element is undefined")}get el(){return s(this)}static get watchers(){return{viewer:["handleViewerChanged"],controller:["handleControllerChanged"],metadataKeys:["handleMetadataKeysChanged"]}}};A.style="button{border:none;background:transparent;cursor:pointer;margin:0;padding:0}.button{padding:0.5rem;border-radius:0.25rem}.button-secondary{color:var(--neutral-800);background-color:var(--neutral-300)}.button-secondary:hover{color:var(--neutral-900)}.button-secondary:hover:enabled{box-shadow:0 2px 2px rgb(0 0 0 / 20%)}.button-secondary:disabled{opacity:0.8}.button-secondary:hover:disabled{cursor:not-allowed}:host{--scene-tree-toolbar-separator:1px solid var(--neutral-300);width:300px;height:100%;user-select:none;-webkit-user-select:none;cursor:default;display:flex;flex-direction:column}.rows-scroll{position:relative;height:var(--scene-tree-row-height, 0);flex-grow:1}.rows{position:relative}.row{position:absolute;display:flex;align-items:center;width:100%;height:var(--scene-tree-row-height);padding:var(--scene-tree-row-padding);box-sizing:border-box}.row:hover{background-color:var(--scene-tree-row-hover-color)}.row.is-selected{background-color:var(--scene-tree-row-selected-color)}.expand-toggle{cursor:pointer;width:16px}.row-text{margin-left:0.25rem;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.visibility-btn{display:flex;align-items:center;visibility:hidden;padding:4px}.visibility-btn.is-hidden{visibility:visible}.row:hover .visibility-btn{visibility:visible}.error{display:flex;flex-direction:column;align-items:center;font-size:0.875rem;width:100%;height:100%;padding:1rem;box-sizing:border-box;justify-content:center}.error-section{margin-top:1rem}.error-message{text-align:center}.search-toolbar,slot[name='header']::slotted(*){border-bottom:var(--scene-tree-toolbar-separator)}slot[name='footer']::slotted(:not(:last-child)){border-top:var(--scene-tree-toolbar-separator)}.header{display:flex;flex-direction:column}.footer{display:flex;flex-direction:column}";export{A as vertex_scene_tree}