@vertexvis/viewer 0.24.4-canary.8 → 0.24.4
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.
- package/README.template.md +6 -0
- package/dist/cjs/{controller-f032798e.js → controller-4996f10d.js} +2 -2
- package/dist/cjs/{controller-f032798e.js.map → controller-4996f10d.js.map} +1 -1
- package/dist/cjs/{cursors-2dfb0ef3.js → cursors-17ad74ac.js} +2 -2
- package/dist/cjs/{cursors-2dfb0ef3.js.map → cursors-17ad74ac.js.map} +1 -1
- package/dist/cjs/dom-fc408b4c.js.map +1 -1
- package/dist/cjs/{errors-04aa7cf2.js → errors-78196ad4.js} +9 -1
- package/dist/cjs/errors-78196ad4.js.map +1 -0
- package/dist/cjs/{index-5fa5a527.js → index-0abd8b0b.js} +2 -2
- package/dist/cjs/index-0abd8b0b.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/{queries-68cd2664.js → queries-4580caa5.js} +9 -3
- package/dist/cjs/queries-4580caa5.js.map +1 -0
- package/dist/cjs/{shadow-css-8962c4a9.js → shadow-css-37297ac8.js} +1 -1
- package/dist/cjs/shadow-css-37297ac8.js.map +1 -0
- package/dist/cjs/{stencil-a3f4e15b.js → stencil-40ef9119.js} +2 -2
- package/dist/cjs/{stencil-a3f4e15b.js.map → stencil-40ef9119.js.map} +1 -1
- package/dist/cjs/vertex-scene-tree-notification-banner_4.cjs.entry.js +8 -2
- package/dist/cjs/vertex-scene-tree-notification-banner_4.cjs.entry.js.map +1 -1
- package/dist/cjs/vertex-scene-tree-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree-table-column.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree-table-header.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree-table-resize-divider.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree-toolbar-group.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree.cjs.entry.js +3 -3
- package/dist/cjs/vertex-scene-tree.cjs.entry.js.map +1 -1
- package/dist/cjs/vertex-viewer-annotation-callout.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-box-query-tool.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-button_3.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-default-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-dom-element_2.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-dom-group.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-hit-result-indicator.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-icon.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-layer.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-markup-arrow_3.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-markup-tool.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-markup.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-measurement-details.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-measurement-distance.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-measurement-line_2.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-measurement-precise.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-pin-group.cjs.entry.js +5 -5
- package/dist/cjs/vertex-viewer-pin-group.cjs.entry.js.map +1 -1
- package/dist/cjs/vertex-viewer-pin-label_2.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-pin-tool.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-spinner.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-teleport-tool.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-transform-widget.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-view-cube.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-walk-mode-tool.cjs.entry.js +4 -4
- package/dist/cjs/vertex-viewer-walk-mode-tool.cjs.entry.js.map +1 -1
- package/dist/cjs/vertex-viewer.cjs.entry.js +31 -15
- package/dist/cjs/vertex-viewer.cjs.entry.js.map +1 -1
- package/dist/cjs/viewer.cjs.js +1 -1
- package/dist/cjs/viewer.cjs.js.map +1 -1
- package/dist/collection/components/scene-tree/scene-tree.js +1 -1
- package/dist/collection/components/scene-tree/scene-tree.js.map +1 -1
- package/dist/collection/components/scene-tree-search/scene-tree-search.js +21 -1
- package/dist/collection/components/scene-tree-search/scene-tree-search.js.map +1 -1
- package/dist/collection/components/viewer/viewer.js +23 -13
- package/dist/collection/components/viewer/viewer.js.map +1 -1
- package/dist/collection/components/viewer-pin-group/viewer-pin-group.css +5 -0
- package/dist/collection/components/viewer-walk-mode-tool/viewer-walk-mode-tool.js +3 -3
- package/dist/collection/components/viewer-walk-mode-tool/viewer-walk-mode-tool.js.map +1 -1
- package/dist/collection/lib/cursors.js +1 -1
- package/dist/collection/lib/cursors.js.map +1 -1
- package/dist/collection/lib/model-views/controller.js +7 -1
- package/dist/collection/lib/model-views/controller.js.map +1 -1
- package/dist/collection/lib/stream/stream.js +6 -5
- package/dist/collection/lib/stream/stream.js.map +1 -1
- package/dist/collection/testing/viewer.js +2 -2
- package/dist/collection/testing/viewer.js.map +1 -1
- package/dist/components/cursors.js +1 -1
- package/dist/components/cursors.js.map +1 -1
- package/dist/components/errors.js +8 -1
- package/dist/components/errors.js.map +1 -1
- package/dist/components/queries.js +7 -1
- package/dist/components/queries.js.map +1 -1
- package/dist/components/scene-tree-search.js +6 -0
- package/dist/components/scene-tree-search.js.map +1 -1
- package/dist/components/vertex-scene-tree.js.map +1 -1
- package/dist/components/vertex-viewer-walk-mode-tool.js +3 -3
- package/dist/components/vertex-viewer-walk-mode-tool.js.map +1 -1
- package/dist/components/vertex-viewer.js +27 -11
- package/dist/components/vertex-viewer.js.map +1 -1
- package/dist/components/viewer-pin-group.js +1 -1
- package/dist/components/viewer-pin-group.js.map +1 -1
- package/dist/esm/{controller-00b61632.js → controller-8cfb590e.js} +2 -2
- package/dist/esm/{controller-00b61632.js.map → controller-8cfb590e.js.map} +1 -1
- package/dist/esm/{cursors-9e349d61.js → cursors-3806bc04.js} +2 -2
- package/dist/esm/{cursors-9e349d61.js.map → cursors-3806bc04.js.map} +1 -1
- package/dist/esm/dom-dba69343.js.map +1 -1
- package/dist/esm/{errors-0cbe2f60.js → errors-3fccf79a.js} +9 -2
- package/dist/{cjs/errors-04aa7cf2.js.map → esm/errors-3fccf79a.js.map} +1 -1
- package/dist/esm/{index-f3e96c9e.js → index-c12dc0cd.js} +2 -2
- package/dist/esm/index-c12dc0cd.js.map +1 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/loader.mjs +1 -1
- package/dist/esm/{queries-794dddcf.js → queries-948a88f9.js} +9 -3
- package/dist/esm/queries-948a88f9.js.map +1 -0
- package/dist/esm/{shadow-css-9363884b.js → shadow-css-d5069bdf.js} +1 -1
- package/dist/esm/shadow-css-d5069bdf.js.map +1 -0
- package/dist/esm/{stencil-9d9f090f.js → stencil-38b2fc28.js} +2 -2
- package/dist/esm/{stencil-9d9f090f.js.map → stencil-38b2fc28.js.map} +1 -1
- package/dist/esm/vertex-scene-tree-notification-banner_4.entry.js +8 -2
- package/dist/esm/vertex-scene-tree-notification-banner_4.entry.js.map +1 -1
- package/dist/esm/vertex-scene-tree-table-cell.entry.js +1 -1
- package/dist/esm/vertex-scene-tree-table-column.entry.js +1 -1
- package/dist/esm/vertex-scene-tree-table-header.entry.js +1 -1
- package/dist/esm/vertex-scene-tree-table-resize-divider.entry.js +1 -1
- package/dist/esm/vertex-scene-tree-toolbar-group.entry.js +1 -1
- package/dist/esm/vertex-scene-tree.entry.js +3 -3
- package/dist/esm/vertex-scene-tree.entry.js.map +1 -1
- package/dist/esm/vertex-viewer-annotation-callout.entry.js +1 -1
- package/dist/esm/vertex-viewer-box-query-tool.entry.js +2 -2
- package/dist/esm/vertex-viewer-button_3.entry.js +1 -1
- package/dist/esm/vertex-viewer-default-toolbar.entry.js +1 -1
- package/dist/esm/vertex-viewer-dom-element_2.entry.js +1 -1
- package/dist/esm/vertex-viewer-dom-group.entry.js +1 -1
- package/dist/esm/vertex-viewer-hit-result-indicator.entry.js +2 -2
- package/dist/esm/vertex-viewer-icon.entry.js +1 -1
- package/dist/esm/vertex-viewer-layer.entry.js +1 -1
- package/dist/esm/vertex-viewer-markup-arrow_3.entry.js +1 -1
- package/dist/esm/vertex-viewer-markup-tool.entry.js +1 -1
- package/dist/esm/vertex-viewer-markup.entry.js +1 -1
- package/dist/esm/vertex-viewer-measurement-details.entry.js +1 -1
- package/dist/esm/vertex-viewer-measurement-distance.entry.js +2 -2
- package/dist/esm/vertex-viewer-measurement-line_2.entry.js +1 -1
- package/dist/esm/vertex-viewer-measurement-precise.entry.js +2 -2
- package/dist/esm/vertex-viewer-pin-group.entry.js +5 -5
- package/dist/esm/vertex-viewer-pin-group.entry.js.map +1 -1
- package/dist/esm/vertex-viewer-pin-label_2.entry.js +2 -2
- package/dist/esm/vertex-viewer-pin-tool.entry.js +2 -2
- package/dist/esm/vertex-viewer-spinner.entry.js +1 -1
- package/dist/esm/vertex-viewer-teleport-tool.entry.js +1 -1
- package/dist/esm/vertex-viewer-transform-widget.entry.js +2 -2
- package/dist/esm/vertex-viewer-view-cube.entry.js +2 -2
- package/dist/esm/vertex-viewer-walk-mode-tool.entry.js +4 -4
- package/dist/esm/vertex-viewer-walk-mode-tool.entry.js.map +1 -1
- package/dist/esm/vertex-viewer.entry.js +31 -15
- package/dist/esm/vertex-viewer.entry.js.map +1 -1
- package/dist/esm/viewer.js +1 -1
- package/dist/esm/viewer.js.map +1 -1
- package/dist/types/components/scene-tree/scene-tree.d.ts +1 -1
- package/dist/types/components/scene-tree-search/scene-tree-search.d.ts +5 -1
- package/dist/types/components/viewer/viewer.d.ts +3 -2
- package/dist/types/components.d.ts +11 -7
- package/dist/types/lib/stream/stream.d.ts +1 -1
- package/dist/types/testing/viewer.d.ts +2 -2
- package/dist/viewer/index.esm.js +1 -1
- package/dist/viewer/{p-0e0973f0.entry.js → p-03efd0d6.entry.js} +2 -2
- package/dist/viewer/{p-7f0eeb06.entry.js → p-0988832f.entry.js} +2 -2
- package/dist/viewer/{p-78a1be4e.entry.js → p-0aa04328.entry.js} +2 -2
- package/dist/viewer/p-18ce3f3b.entry.js +5 -0
- package/dist/viewer/{p-93960b4f.entry.js.map → p-18ce3f3b.entry.js.map} +1 -1
- package/dist/viewer/{p-2ecdcd5d.entry.js → p-23f0bb30.entry.js} +2 -2
- package/dist/viewer/{p-06b8bca7.entry.js → p-296311d3.entry.js} +2 -2
- package/dist/viewer/{p-2172230d.entry.js → p-2fd66679.entry.js} +2 -2
- package/dist/viewer/{p-5540add8.entry.js → p-362f3e12.entry.js} +2 -2
- package/dist/viewer/{p-110f66c6.js → p-388f809e.js} +2 -2
- package/dist/viewer/p-388f809e.js.map +1 -0
- package/dist/viewer/{p-48b63c5f.entry.js → p-45044ff2.entry.js} +2 -2
- package/dist/viewer/{p-9fc2e56e.entry.js → p-45b5b5ed.entry.js} +2 -2
- package/dist/viewer/{p-f79933ae.entry.js → p-4bd1ea70.entry.js} +2 -2
- package/dist/viewer/{p-842cc51b.entry.js → p-4bf16450.entry.js} +2 -2
- package/dist/viewer/{p-a057d7f2.entry.js → p-56fa8168.entry.js} +2 -2
- package/dist/viewer/{p-8c367e87.entry.js → p-59f204e7.entry.js} +2 -2
- package/dist/viewer/p-59f204e7.entry.js.map +1 -0
- package/dist/viewer/{p-33033b58.entry.js → p-6cf6eb8a.entry.js} +2 -2
- package/dist/viewer/p-715255e1.entry.js +5 -0
- package/dist/viewer/p-715255e1.entry.js.map +1 -0
- package/dist/viewer/{p-5f9352c0.entry.js → p-75f5ae33.entry.js} +2 -2
- package/dist/viewer/{p-7eea3fb3.entry.js → p-7a87ae97.entry.js} +2 -2
- package/dist/viewer/{p-b974c985.entry.js → p-86e1ee86.entry.js} +2 -2
- package/dist/viewer/p-86e1ee86.entry.js.map +1 -0
- package/dist/viewer/p-89d93218.entry.js +5 -0
- package/dist/viewer/p-89d93218.entry.js.map +1 -0
- package/dist/viewer/{p-07325d65.entry.js → p-8c53ed63.entry.js} +2 -2
- package/dist/viewer/p-991f7bac.js.map +1 -1
- package/dist/viewer/{p-983db3dd.entry.js → p-a009c6d9.entry.js} +2 -2
- package/dist/viewer/{p-dcb64250.entry.js → p-a3bc0b79.entry.js} +2 -2
- package/dist/viewer/{p-29318a17.entry.js → p-aece4279.entry.js} +2 -2
- package/dist/viewer/{p-be257155.js → p-b8c0f6ff.js} +1 -1
- package/dist/viewer/p-b8c0f6ff.js.map +1 -0
- package/dist/viewer/{p-2507658c.js → p-ba120f65.js} +2 -2
- package/dist/viewer/p-ba120f65.js.map +1 -0
- package/dist/viewer/p-bab8266e.js +5 -0
- package/dist/viewer/p-bab8266e.js.map +1 -0
- package/dist/viewer/{p-05562c21.entry.js → p-bcddbdb2.entry.js} +2 -2
- package/dist/viewer/{p-40e8a5ea.entry.js → p-c3b071a3.entry.js} +2 -2
- package/dist/viewer/{p-fbfa1e82.entry.js → p-cd3f0870.entry.js} +2 -2
- package/dist/viewer/{p-d2677c13.entry.js → p-d9e75269.entry.js} +2 -2
- package/dist/viewer/p-e1eaedd8.js +5 -0
- package/dist/viewer/{p-a27a9775.entry.js → p-e70e2c04.entry.js} +2 -2
- package/dist/viewer/{p-ffa8a2dd.entry.js → p-ebea8f56.entry.js} +2 -2
- package/dist/viewer/{p-342dac8b.js → p-eda9f5d4.js} +2 -2
- package/dist/viewer/{p-342dac8b.js.map → p-eda9f5d4.js.map} +1 -1
- package/dist/viewer/{p-9d54d593.entry.js → p-f292e8ae.entry.js} +2 -2
- package/dist/viewer/{p-6f1b22f0.js → p-f8951894.js} +2 -2
- package/dist/viewer/{p-d024c250.entry.js → p-f8a9c4d2.entry.js} +2 -2
- package/dist/viewer/viewer.esm.js +1 -1
- package/dist/viewer/viewer.esm.js.map +1 -1
- package/package.json +7 -7
- package/readme.md +10 -4
- package/dist/cjs/index-5fa5a527.js.map +0 -1
- package/dist/cjs/queries-68cd2664.js.map +0 -1
- package/dist/cjs/shadow-css-8962c4a9.js.map +0 -1
- package/dist/esm/errors-0cbe2f60.js.map +0 -1
- package/dist/esm/index-f3e96c9e.js.map +0 -1
- package/dist/esm/queries-794dddcf.js.map +0 -1
- package/dist/esm/shadow-css-9363884b.js.map +0 -1
- package/dist/viewer/p-04bf6b89.js +0 -5
- package/dist/viewer/p-110f66c6.js.map +0 -1
- package/dist/viewer/p-2507658c.js.map +0 -1
- package/dist/viewer/p-2ce9b8f7.entry.js +0 -5
- package/dist/viewer/p-2ce9b8f7.entry.js.map +0 -1
- package/dist/viewer/p-629a5ae7.entry.js +0 -5
- package/dist/viewer/p-629a5ae7.entry.js.map +0 -1
- package/dist/viewer/p-8c367e87.entry.js.map +0 -1
- package/dist/viewer/p-93960b4f.entry.js +0 -5
- package/dist/viewer/p-b974c985.entry.js.map +0 -1
- package/dist/viewer/p-be257155.js.map +0 -1
- package/dist/viewer/p-d9093da4.js +0 -5
- package/dist/viewer/p-d9093da4.js.map +0 -1
- /package/dist/viewer/{p-0e0973f0.entry.js.map → p-03efd0d6.entry.js.map} +0 -0
- /package/dist/viewer/{p-7f0eeb06.entry.js.map → p-0988832f.entry.js.map} +0 -0
- /package/dist/viewer/{p-78a1be4e.entry.js.map → p-0aa04328.entry.js.map} +0 -0
- /package/dist/viewer/{p-2ecdcd5d.entry.js.map → p-23f0bb30.entry.js.map} +0 -0
- /package/dist/viewer/{p-06b8bca7.entry.js.map → p-296311d3.entry.js.map} +0 -0
- /package/dist/viewer/{p-2172230d.entry.js.map → p-2fd66679.entry.js.map} +0 -0
- /package/dist/viewer/{p-5540add8.entry.js.map → p-362f3e12.entry.js.map} +0 -0
- /package/dist/viewer/{p-48b63c5f.entry.js.map → p-45044ff2.entry.js.map} +0 -0
- /package/dist/viewer/{p-9fc2e56e.entry.js.map → p-45b5b5ed.entry.js.map} +0 -0
- /package/dist/viewer/{p-f79933ae.entry.js.map → p-4bd1ea70.entry.js.map} +0 -0
- /package/dist/viewer/{p-842cc51b.entry.js.map → p-4bf16450.entry.js.map} +0 -0
- /package/dist/viewer/{p-a057d7f2.entry.js.map → p-56fa8168.entry.js.map} +0 -0
- /package/dist/viewer/{p-33033b58.entry.js.map → p-6cf6eb8a.entry.js.map} +0 -0
- /package/dist/viewer/{p-5f9352c0.entry.js.map → p-75f5ae33.entry.js.map} +0 -0
- /package/dist/viewer/{p-7eea3fb3.entry.js.map → p-7a87ae97.entry.js.map} +0 -0
- /package/dist/viewer/{p-07325d65.entry.js.map → p-8c53ed63.entry.js.map} +0 -0
- /package/dist/viewer/{p-983db3dd.entry.js.map → p-a009c6d9.entry.js.map} +0 -0
- /package/dist/viewer/{p-dcb64250.entry.js.map → p-a3bc0b79.entry.js.map} +0 -0
- /package/dist/viewer/{p-29318a17.entry.js.map → p-aece4279.entry.js.map} +0 -0
- /package/dist/viewer/{p-05562c21.entry.js.map → p-bcddbdb2.entry.js.map} +0 -0
- /package/dist/viewer/{p-40e8a5ea.entry.js.map → p-c3b071a3.entry.js.map} +0 -0
- /package/dist/viewer/{p-fbfa1e82.entry.js.map → p-cd3f0870.entry.js.map} +0 -0
- /package/dist/viewer/{p-d2677c13.entry.js.map → p-d9e75269.entry.js.map} +0 -0
- /package/dist/viewer/{p-04bf6b89.js.map → p-e1eaedd8.js.map} +0 -0
- /package/dist/viewer/{p-a27a9775.entry.js.map → p-e70e2c04.entry.js.map} +0 -0
- /package/dist/viewer/{p-ffa8a2dd.entry.js.map → p-ebea8f56.entry.js.map} +0 -0
- /package/dist/viewer/{p-9d54d593.entry.js.map → p-f292e8ae.entry.js.map} +0 -0
- /package/dist/viewer/{p-6f1b22f0.js.map → p-f8951894.js.map} +0 -0
- /package/dist/viewer/{p-d024c250.entry.js.map → p-f8a9c4d2.entry.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright (c) 2026 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
import{g as t,w as o,a as e}from"./p-5ca72d4a.js";import{u as r,p as n,C as i}from"./p-2507658c.js";import{c as s}from"./p-e5cc48b6.js";import{E as u}from"./p-6b00f7cd.js";import{i as a,f as c}from"./p-e4f95584.js";var p=s((function(e,n){var i=t;var s=Function("return this")();i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.IndexingStatus",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Node",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Range",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType",null,s);proto.vertexvis.protobuf.scenetree.v1alpha1.Node=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Node,t.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Node.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Node"}proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_=[10];if(t.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(e,n){var i,s={id:(i=n.getId())&&r.Uuid.toObject(e,i),depth:t.Message.getFieldWithDefault(n,2,0),name:t.Message.getFieldWithDefault(n,3,""),visible:t.Message.getFieldWithDefault(n,4,false),selected:t.Message.getFieldWithDefault(n,5,false),expanded:t.Message.getFieldWithDefault(n,6,false),isLeaf:t.Message.getFieldWithDefault(n,7,false),suppliedId:(i=n.getSuppliedId())&&o.StringValue.toObject(e,i),partiallyVisible:t.Message.getFieldWithDefault(n,9,false),columnsList:t.Message.getRepeatedField(n,10),filterHit:t.Message.getFieldWithDefault(n,11,false),phantom:t.Message.getFieldWithDefault(n,12,false),endItem:t.Message.getFieldWithDefault(n,13,false)};if(e){s.$jspbMessageInstance=n}return s}}proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Node;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader=function(t,e){while(e.nextField()){if(e.isEndGroup()){break}var n=e.getFieldNumber();switch(n){case 1:var i=new r.Uuid;e.readMessage(i,r.Uuid.deserializeBinaryFromReader);t.setId(i);break;case 2:var i=e.readUint32();t.setDepth(i);break;case 3:var i=e.readString();t.setName(i);break;case 4:var i=e.readBool();t.setVisible(i);break;case 5:var i=e.readBool();t.setSelected(i);break;case 6:var i=e.readBool();t.setExpanded(i);break;case 7:var i=e.readBool();t.setIsLeaf(i);break;case 8:var i=new o.StringValue;e.readMessage(i,o.StringValue.deserializeBinaryFromReader);t.setSuppliedId(i);break;case 9:var i=e.readBool();t.setPartiallyVisible(i);break;case 10:var i=e.readString();t.addColumns(i);break;case 11:var i=e.readBool();t.setFilterHit(i);break;case 12:var i=e.readBool();t.setPhantom(i);break;case 13:var i=e.readBool();t.setEndItem(i);break;default:e.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter=function(t,e){var n=undefined;n=t.getId();if(n!=null){e.writeMessage(1,n,r.Uuid.serializeBinaryToWriter)}n=t.getDepth();if(n!==0){e.writeUint32(2,n)}n=t.getName();if(n.length>0){e.writeString(3,n)}n=t.getVisible();if(n){e.writeBool(4,n)}n=t.getSelected();if(n){e.writeBool(5,n)}n=t.getExpanded();if(n){e.writeBool(6,n)}n=t.getIsLeaf();if(n){e.writeBool(7,n)}n=t.getSuppliedId();if(n!=null){e.writeMessage(8,n,o.StringValue.serializeBinaryToWriter)}n=t.getPartiallyVisible();if(n){e.writeBool(9,n)}n=t.getColumnsList();if(n.length>0){e.writeRepeatedString(10,n)}n=t.getFilterHit();if(n){e.writeBool(11,n)}n=t.getPhantom();if(n){e.writeBool(12,n)}n=t.getEndItem();if(n){e.writeBool(13,n)}};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getId=function(){return t.Message.getWrapperField(this,r.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setId=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearId=function(){this.setId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasId=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getDepth=function(){return t.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setDepth=function(o){t.Message.setProto3IntField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getName=function(){return t.Message.getFieldWithDefault(this,3,"")};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setName=function(o){t.Message.setProto3StringField(this,3,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getVisible=function(){return t.Message.getFieldWithDefault(this,4,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setVisible=function(o){t.Message.setProto3BooleanField(this,4,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSelected=function(){return t.Message.getFieldWithDefault(this,5,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSelected=function(o){t.Message.setProto3BooleanField(this,5,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getExpanded=function(){return t.Message.getFieldWithDefault(this,6,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setExpanded=function(o){t.Message.setProto3BooleanField(this,6,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getIsLeaf=function(){return t.Message.getFieldWithDefault(this,7,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setIsLeaf=function(o){t.Message.setProto3BooleanField(this,7,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSuppliedId=function(){return t.Message.getWrapperField(this,o.StringValue,8)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSuppliedId=function(o){t.Message.setWrapperField(this,8,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearSuppliedId=function(){this.setSuppliedId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasSuppliedId=function(){return t.Message.getField(this,8)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPartiallyVisible=function(){return t.Message.getFieldWithDefault(this,9,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPartiallyVisible=function(o){t.Message.setProto3BooleanField(this,9,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getColumnsList=function(){return t.Message.getRepeatedField(this,10)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setColumnsList=function(o){t.Message.setField(this,10,o||[])};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.addColumns=function(o,e){t.Message.addToRepeatedField(this,10,o,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearColumnsList=function(){this.setColumnsList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getFilterHit=function(){return t.Message.getFieldWithDefault(this,11,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setFilterHit=function(o){t.Message.setProto3BooleanField(this,11,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPhantom=function(){return t.Message.getFieldWithDefault(this,12,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPhantom=function(o){t.Message.setProto3BooleanField(this,12,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getEndItem=function(){return t.Message.getFieldWithDefault(this,13,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setEndItem=function(o){t.Message.setProto3BooleanField(this,13,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange=function(o){t.Message.initialize(this,o,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,t.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange"}if(t.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(o,e){var r={start:t.Message.getFieldWithDefault(e,1,0)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=o.readInt32();t.setStart(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getStart();if(e!==0){o.writeInt32(1,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.getStart=function(){return t.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.setStart=function(o){t.Message.setProto3IntField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range=function(o){t.Message.initialize(this,o,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Range,t.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Range.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Range"}if(t.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(o,e){var r={start:t.Message.getFieldWithDefault(e,1,0),end:t.Message.getFieldWithDefault(e,2,0)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=o.readInt32();t.setStart(r);break;case 2:var r=o.readInt32();t.setEnd(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getStart();if(e!==0){o.writeInt32(1,e)}e=t.getEnd();if(e!==0){o.writeInt32(2,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getStart=function(){return t.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setStart=function(o){t.Message.setProto3IntField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getEnd=function(){return t.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setEnd=function(o){t.Message.setProto3IntField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,t.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange"}proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_=[1,2,3,4,5];if(t.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(o,e){var r={hiddenList:t.Message.toObjectList(e.getHiddenList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),shownList:t.Message.toObjectList(e.getShownList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),selectedList:t.Message.toObjectList(e.getSelectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),deselectedList:t.Message.toObjectList(e.getDeselectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),partiallyVisibleList:t.Message.toObjectList(e.getPartiallyVisibleList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){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:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addShown(r);break;case 3:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addSelected(r);break;case 4:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addDeselected(r);break;case 5:var 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();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getHiddenList();if(e.length>0){o.writeRepeatedMessage(1,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getShownList();if(e.length>0){o.writeRepeatedMessage(2,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getSelectedList();if(e.length>0){o.writeRepeatedMessage(3,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getDeselectedList();if(e.length>0){o.writeRepeatedMessage(4,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getPartiallyVisibleList();if(e.length>0){o.writeRepeatedMessage(5,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getHiddenList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setHiddenList=function(o){t.Message.setRepeatedWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addHidden=function(o,e){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearHiddenList=function(){this.setHiddenList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getShownList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setShownList=function(o){t.Message.setRepeatedWrapperField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addShown=function(o,e){return t.Message.addToRepeatedWrapperField(this,2,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearShownList=function(){this.setShownList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getSelectedList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setSelectedList=function(o){t.Message.setRepeatedWrapperField(this,3,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addSelected=function(o,e){return t.Message.addToRepeatedWrapperField(this,3,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearSelectedList=function(){this.setSelectedList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getDeselectedList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,4)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setDeselectedList=function(o){t.Message.setRepeatedWrapperField(this,4,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addDeselected=function(o,e){return t.Message.addToRepeatedWrapperField(this,4,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearDeselectedList=function(){this.setDeselectedList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getPartiallyVisibleList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,5)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setPartiallyVisibleList=function(o){t.Message.setRepeatedWrapperField(this,5,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addPartiallyVisible=function(o,e){return t.Message.addToRepeatedWrapperField(this,5,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearPartiallyVisibleList=function(){this.setPartiallyVisibleList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive=function(o){t.Message.initialize(this,o,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,t.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange=function(o){t.Message.initialize(this,o,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange,t.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange"}if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.toObject=function(o,e){var r={numberOfResults:t.Message.getFieldWithDefault(e,1,0)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=o.readInt32();t.setNumberOfResults(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getNumberOfResults();if(e!==0){o.writeInt32(1,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.getNumberOfResults=function(){return t.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.setNumberOfResults=function(o){t.Message.setProto3IntField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType=function(o){t.Message.initialize(this,o,0,-1,null,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType,t.Message);if(i.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,4]];proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase={SEALED_VALUE_NOT_SET:0,LIST_CHANGE:1,RANGES:2,KEEP_ALIVE:3,FILTER_CHANGE:4};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getSealedValueCase=function(){return t.Message.computeOneofCase(this,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0])};if(t.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 e,r={listChange:(e=o.getListChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,e),ranges:(e=o.getRanges())&&proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,e),keepAlive:(e=o.getKeepAlive())&&proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,e),filterChange:(e=o.getFilterChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.toObject(t,e)};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){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:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader);t.setRanges(r);break;case 3:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader);t.setKeepAlive(r);break;case 4:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinaryFromReader);t.setFilterChange(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getListChange();if(e!=null){o.writeMessage(1,e,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter)}e=t.getRanges();if(e!=null){o.writeMessage(2,e,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter)}e=t.getKeepAlive();if(e!=null){o.writeMessage(3,e,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter)}e=t.getFilterChange();if(e!=null){o.writeMessage(4,e,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getListChange=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setListChange=function(o){t.Message.setOneofWrapperField(this,1,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],o)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearListChange=function(){this.setListChange(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasListChange=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getRanges=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setRanges=function(o){t.Message.setOneofWrapperField(this,2,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],o)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearRanges=function(){this.setRanges(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasRanges=function(){return t.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getKeepAlive=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setKeepAlive=function(o){t.Message.setOneofWrapperField(this,3,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],o)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearKeepAlive=function(){this.setKeepAlive(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasKeepAlive=function(){return t.Message.getField(this,3)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getFilterChange=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange,4)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setFilterChange=function(o){t.Message.setOneofWrapperField(this,4,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],o)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearFilterChange=function(){this.setFilterChange(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasFilterChange=function(){return t.Message.getField(this,4)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey=function(o){t.Message.initialize(this,o,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,t.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey"}if(t.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(o,e){var r={value:t.Message.getFieldWithDefault(e,1,"")};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=o.readString();t.setValue(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getValue();if(e.length>0){o.writeString(1,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.getValue=function(){return t.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.setValue=function(o){t.Message.setProto3StringField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.IndexingStatus={INDEXING_STATUS_INVALID:0,INDEXING_STATUS_INDEXING:1,INDEXING_STATUS_READY:2};i.object.extend(n,proto.vertexvis.protobuf.scenetree.v1alpha1)}));var f=s((function(e,i){var s=t;var u=Function("return this")();s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse",null,u);proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_=[3];if(t.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(o,e){var i,s={viewId:(i=e.getViewId())&&r.Uuid.toObject(o,i),pager:(i=e.getPager())&&n.OffsetPager.toObject(o,i),additionalColumnKeysList:t.Message.getRepeatedField(e,3)};if(o){s.$jspbMessageInstance=e}return s}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var i=new r.Uuid;o.readMessage(i,r.Uuid.deserializeBinaryFromReader);t.setViewId(i);break;case 2:var i=new n.OffsetPager;o.readMessage(i,n.OffsetPager.deserializeBinaryFromReader);t.setPager(i);break;case 3:var i=o.readString();t.addAdditionalColumnKeys(i);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getViewId();if(e!=null){o.writeMessage(1,e,r.Uuid.serializeBinaryToWriter)}e=t.getPager();if(e!=null){o.writeMessage(2,e,n.OffsetPager.serializeBinaryToWriter)}e=t.getAdditionalColumnKeysList();if(e.length>0){o.writeRepeatedString(3,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,r.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setViewId=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearViewId=function(){this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasViewId=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getPager=function(){return t.Message.getWrapperField(this,n.OffsetPager,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setPager=function(o){t.Message.setWrapperField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearPager=function(){this.setPager(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasPager=function(){return t.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getAdditionalColumnKeysList=function(){return t.Message.getRepeatedField(this,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setAdditionalColumnKeysList=function(o){t.Message.setField(this,3,o||[])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.addAdditionalColumnKeys=function(o,e){t.Message.addToRepeatedField(this,3,o,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearAdditionalColumnKeysList=function(){this.setAdditionalColumnKeysList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_=[1];if(t.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(o,e){var r,i={itemsList:t.Message.toObjectList(e.getItemsList(),p.Node.toObject,o),totalVisible:t.Message.getFieldWithDefault(e,2,0),cursor:(r=e.getCursor())&&n.OffsetCursor.toObject(o,r)};if(o){i.$jspbMessageInstance=e}return i}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=new p.Node;o.readMessage(r,p.Node.deserializeBinaryFromReader);t.addItems(r);break;case 2:var r=o.readUint32();t.setTotalVisible(r);break;case 3:var r=new n.OffsetCursor;o.readMessage(r,n.OffsetCursor.deserializeBinaryFromReader);t.setCursor(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getItemsList();if(e.length>0){o.writeRepeatedMessage(1,e,p.Node.serializeBinaryToWriter)}e=t.getTotalVisible();if(e!==0){o.writeUint32(2,e)}e=t.getCursor();if(e!=null){o.writeMessage(3,e,n.OffsetCursor.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getItemsList=function(){return t.Message.getRepeatedWrapperField(this,p.Node,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setItemsList=function(o){t.Message.setRepeatedWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.addItems=function(o,e){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearItemsList=function(){this.setItemsList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getTotalVisible=function(){return t.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setTotalVisible=function(o){t.Message.setProto3IntField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getCursor=function(){return t.Message.getWrapperField(this,n.OffsetCursor,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setCursor=function(o){t.Message.setWrapperField(this,3,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearCursor=function(){this.setCursor(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.hasCursor=function(){return t.Message.getField(this,3)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest"}if(t.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 e,n={viewId:(e=o.getViewId())&&r.Uuid.toObject(t,e),nodeId:(e=o.getNodeId())&&r.Uuid.toObject(t,e)};if(t){n.$jspbMessageInstance=o}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var n=new r.Uuid;o.readMessage(n,r.Uuid.deserializeBinaryFromReader);t.setViewId(n);break;case 2:var n=new r.Uuid;o.readMessage(n,r.Uuid.deserializeBinaryFromReader);t.setNodeId(n);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getViewId();if(e!=null){o.writeMessage(1,e,r.Uuid.serializeBinaryToWriter)}e=t.getNodeId();if(e!=null){o.writeMessage(2,e,r.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,r.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setViewId=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearViewId=function(){this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasViewId=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,r.Uuid,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setNodeId=function(o){t.Message.setWrapperField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearNodeId=function(){this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasNodeId=function(){return t.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest"}if(t.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 e,n={viewId:(e=o.getViewId())&&r.Uuid.toObject(t,e),nodeId:(e=o.getNodeId())&&r.Uuid.toObject(t,e)};if(t){n.$jspbMessageInstance=o}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var n=new r.Uuid;o.readMessage(n,r.Uuid.deserializeBinaryFromReader);t.setViewId(n);break;case 2:var n=new r.Uuid;o.readMessage(n,r.Uuid.deserializeBinaryFromReader);t.setNodeId(n);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getViewId();if(e!=null){o.writeMessage(1,e,r.Uuid.serializeBinaryToWriter)}e=t.getNodeId();if(e!=null){o.writeMessage(2,e,r.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,r.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setViewId=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearViewId=function(){this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasViewId=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,r.Uuid,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setNodeId=function(o){t.Message.setWrapperField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearNodeId=function(){this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasNodeId=function(){return t.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest"}if(t.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 e,n={viewId:(e=o.getViewId())&&r.Uuid.toObject(t,e)};if(t){n.$jspbMessageInstance=o}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var n=new r.Uuid;o.readMessage(n,r.Uuid.deserializeBinaryFromReader);t.setViewId(n);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getViewId();if(e!=null){o.writeMessage(1,e,r.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,r.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.setViewId=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.clearViewId=function(){this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.hasViewId=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse"}if(t.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 e,r={change:(e=o.getChange())&&p.TreeChangeType.toObject(t,e),handshake:(e=o.getHandshake())&&proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,e)};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=new p.TreeChangeType;o.readMessage(r,p.TreeChangeType.deserializeBinaryFromReader);t.setChange(r);break;case 2:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader);t.setHandshake(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getChange();if(e!=null){o.writeMessage(1,e,p.TreeChangeType.serializeBinaryToWriter)}e=t.getHandshake();if(e!=null){o.writeMessage(2,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getChange=function(){return t.Message.getWrapperField(this,p.TreeChangeType,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setChange=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearChange=function(){this.setChange(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasChange=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getHandshake=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setHandshake=function(o){t.Message.setWrapperField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearHandshake=function(){this.setHandshake(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasHandshake=function(){return t.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake"}if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject=function(t,o){var e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_=[3];if(t.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(o,e){var r={filter:t.Message.getFieldWithDefault(e,1,""),fullTree:t.Message.getFieldWithDefault(e,2,false),columnsKeysList:t.Message.getRepeatedField(e,3),exactMatch:t.Message.getFieldWithDefault(e,4,false),removeHiddenItems:t.Message.getFieldWithDefault(e,5,false)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=o.readString();t.setFilter(r);break;case 2:var r=o.readBool();t.setFullTree(r);break;case 3:var r=o.readString();t.addColumnsKeys(r);break;case 4:var r=o.readBool();t.setExactMatch(r);break;case 5:var r=o.readBool();t.setRemoveHiddenItems(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getFilter();if(e.length>0){o.writeString(1,e)}e=t.getFullTree();if(e){o.writeBool(2,e)}e=t.getColumnsKeysList();if(e.length>0){o.writeRepeatedString(3,e)}e=t.getExactMatch();if(e){o.writeBool(4,e)}e=t.getRemoveHiddenItems();if(e){o.writeBool(5,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFilter=function(){return t.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFilter=function(o){t.Message.setProto3StringField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFullTree=function(){return t.Message.getFieldWithDefault(this,2,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFullTree=function(o){t.Message.setProto3BooleanField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getColumnsKeysList=function(){return t.Message.getRepeatedField(this,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setColumnsKeysList=function(o){t.Message.setField(this,3,o||[])};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.addColumnsKeys=function(o,e){t.Message.addToRepeatedField(this,3,o,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.clearColumnsKeysList=function(){this.setColumnsKeysList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getExactMatch=function(){return t.Message.getFieldWithDefault(this,4,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setExactMatch=function(o){t.Message.setProto3BooleanField(this,4,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getRemoveHiddenItems=function(){return t.Message.getFieldWithDefault(this,5,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setRemoveHiddenItems=function(o){t.Message.setProto3BooleanField(this,5,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse"}if(t.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(o,e){var r={numberOfResults:t.Message.getFieldWithDefault(e,1,0),indexingStatus:t.Message.getFieldWithDefault(e,2,0)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=o.readUint32();t.setNumberOfResults(r);break;case 2:var r=o.readEnum();t.setIndexingStatus(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getNumberOfResults();if(e!==0){o.writeUint32(1,e)}e=t.getIndexingStatus();if(e!==0){o.writeEnum(2,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.getNumberOfResults=function(){return t.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.setNumberOfResults=function(o){t.Message.setProto3IntField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.getIndexingStatus=function(){return t.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.setIndexingStatus=function(o){t.Message.setProto3EnumField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest"}if(t.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 e,n={nodeId:(e=o.getNodeId())&&r.Uuid.toObject(t,e)};if(t){n.$jspbMessageInstance=o}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 2:var n=new r.Uuid;o.readMessage(n,r.Uuid.deserializeBinaryFromReader);t.setNodeId(n);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getNodeId();if(e!=null){o.writeMessage(2,e,r.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,r.Uuid,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.setNodeId=function(o){t.Message.setWrapperField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.clearNodeId=function(){this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.hasNodeId=function(){return t.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse"}if(t.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(e,r){var n,i={locatedIndex:(n=r.getLocatedIndex())&&o.UInt64Value.toObject(e,n),requiresReload:t.Message.getFieldWithDefault(r,2,false)};if(e){i.$jspbMessageInstance=r}return i}}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader=function(t,e){while(e.nextField()){if(e.isEndGroup()){break}var r=e.getFieldNumber();switch(r){case 1:var n=new o.UInt64Value;e.readMessage(n,o.UInt64Value.deserializeBinaryFromReader);t.setLocatedIndex(n);break;case 2:var n=e.readBool();t.setRequiresReload(n);break;default:e.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter=function(t,e){var r=undefined;r=t.getLocatedIndex();if(r!=null){e.writeMessage(1,r,o.UInt64Value.serializeBinaryToWriter)}r=t.getRequiresReload();if(r){e.writeBool(2,r)}};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getLocatedIndex=function(){return t.Message.getWrapperField(this,o.UInt64Value,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setLocatedIndex=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.clearLocatedIndex=function(){this.setLocatedIndex(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.hasLocatedIndex=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getRequiresReload=function(){return t.Message.getFieldWithDefault(this,2,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setRequiresReload=function(o){t.Message.setProto3BooleanField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest"}if(t.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 e,n={nodeId:(e=o.getNodeId())&&r.Uuid.toObject(t,e)};if(t){n.$jspbMessageInstance=o}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var n=new r.Uuid;o.readMessage(n,r.Uuid.deserializeBinaryFromReader);t.setNodeId(n);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getNodeId();if(e!=null){o.writeMessage(1,e,r.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,r.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.setNodeId=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.clearNodeId=function(){this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.hasNodeId=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_=[1];if(t.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(o,e){var r={itemsList:t.Message.toObjectList(e.getItemsList(),p.Node.toObject,o)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=new p.Node;o.readMessage(r,p.Node.deserializeBinaryFromReader);t.addItems(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getItemsList();if(e.length>0){o.writeRepeatedMessage(1,e,p.Node.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.getItemsList=function(){return t.Message.getRepeatedWrapperField(this,p.Node,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.setItemsList=function(o){t.Message.setRepeatedWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.addItems=function(o,e){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.clearItemsList=function(){this.setItemsList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_=[1];if(t.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(o,e){var r={keysList:t.Message.toObjectList(e.getKeysList(),p.ColumnKey.toObject,o),indexingStatus:t.Message.getFieldWithDefault(e,2,0)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=new p.ColumnKey;o.readMessage(r,p.ColumnKey.deserializeBinaryFromReader);t.addKeys(r);break;case 2:var r=o.readEnum();t.setIndexingStatus(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getKeysList();if(e.length>0){o.writeRepeatedMessage(1,e,p.ColumnKey.serializeBinaryToWriter)}e=t.getIndexingStatus();if(e!==0){o.writeEnum(2,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getKeysList=function(){return t.Message.getRepeatedWrapperField(this,p.ColumnKey,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setKeysList=function(o){t.Message.setRepeatedWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.addKeys=function(o,e){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.clearKeysList=function(){this.setKeysList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getIndexingStatus=function(){return t.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setIndexingStatus=function(o){t.Message.setProto3EnumField(this,2,o)};s.object.extend(i,proto.vertexvis.protobuf.scenetree.v1alpha1)}));var h;(function(t){t[t["UNKNOWN"]=0]="UNKNOWN";t[t["SCENE_TREE_DISABLED"]=1]="SCENE_TREE_DISABLED";t[t["MISSING_VIEWER"]=2]="MISSING_VIEWER";t[t["DISCONNECTED"]=3]="DISCONNECTED";t[t["SUBSCRIPTION_FAILURE"]=4]="SUBSCRIPTION_FAILURE";t[t["UNAUTHORIZED"]=5]="UNAUTHORIZED";t[t["ABORTED"]=6]="ABORTED"})(h||(h={}));class l{constructor(t,o,e){this.name=t;this.code=o;this.link=e;this.message=v(o)}}function v(t){switch(t){case h.UNKNOWN:return"An unknown error occurred.";case h.SCENE_TREE_DISABLED:return"The tree for this scene is not enabled. Enable the tree for this scene to interact with the tree.";case h.MISSING_VIEWER:return"Could not find reference to the viewer.";case h.DISCONNECTED:return"Disconnected from server.";case h.SUBSCRIPTION_FAILURE:return"The tree was not able to receive subscription events.";case h.UNAUTHORIZED:return"The tree was unauthorized to connect to the server. The associated Viewer may not be connected.";case h.ABORTED:return"Unable to load the tree for this scene."}}class d extends i{constructor(t,o){super(t,o);Object.setPrototypeOf(this,d.prototype)}}class w extends d{constructor(t,o){super(t,o);Object.setPrototypeOf(this,w.prototype)}}class b extends d{constructor(t,o){super(t,o);Object.setPrototypeOf(this,b.prototype)}}class k extends d{constructor(t,o){super(t,o);Object.setPrototypeOf(this,k.prototype)}}var m=e.grpc;var g=function(){function t(){}t.serviceName="vertexvis.protobuf.scenetree.v1alpha1.SceneTreeAPI";return t}();g.GetTree={methodName:"GetTree",service:g,requestStream:false,responseStream:false,requestType:f.GetTreeRequest,responseType:f.GetTreeResponse};g.ExpandNode={methodName:"ExpandNode",service:g,requestStream:false,responseStream:false,requestType:f.ExpandNodeRequest,responseType:f.ExpandNodeResponse};g.CollapseNode={methodName:"CollapseNode",service:g,requestStream:false,responseStream:false,requestType:f.CollapseNodeRequest,responseType:f.CollapseNodeResponse};g.Subscribe={methodName:"Subscribe",service:g,requestStream:false,responseStream:true,requestType:f.SubscribeRequest,responseType:f.SubscribeResponse};g.Filter={methodName:"Filter",service:g,requestStream:false,responseStream:false,requestType:f.FilterRequest,responseType:f.FilterResponse};g.LocateItem={methodName:"LocateItem",service:g,requestStream:false,responseStream:false,requestType:f.LocateItemRequest,responseType:f.LocateItemResponse};g.ExpandAll={methodName:"ExpandAll",service:g,requestStream:false,responseStream:false,requestType:f.ExpandAllRequest,responseType:f.ExpandAllResponse};g.CollapseAll={methodName:"CollapseAll",service:g,requestStream:false,responseStream:false,requestType:f.CollapseAllRequest,responseType:f.CollapseAllResponse};g.GetNodeAncestors={methodName:"GetNodeAncestors",service:g,requestStream:false,responseStream:false,requestType:f.GetNodeAncestorsRequest,responseType:f.GetNodeAncestorsResponse};g.GetAvailableColumns={methodName:"GetAvailableColumns",service:g,requestStream:false,responseStream:false,requestType:f.GetAvailableColumnsRequest,responseType:f.GetAvailableColumnsResponse};var E=g;function R(t,o){this.serviceHost=t;this.options=o||{}}R.prototype.getTree=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.GetTree,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.expandNode=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.ExpandNode,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.collapseNode=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.CollapseNode,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.subscribe=function t(o,e){var r={data:[],end:[],status:[]};var n=m.invoke(g.Subscribe,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onMessage:function(t){r.data.forEach((function(o){o(t)}))},onEnd:function(t,o,e){r.status.forEach((function(r){r({code:t,details:o,metadata:e})}));r.end.forEach((function(r){r({code:t,details:o,metadata:e})}));r=null}});return{on:function(t,o){r[t].push(o);return this},cancel:function(){r=null;n.close()}}};R.prototype.filter=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.Filter,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.locateItem=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.LocateItem,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.expandAll=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.ExpandAll,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.collapseAll=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.CollapseAll,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.getNodeAncestors=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.GetNodeAncestors,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.getAvailableColumns=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.GetAvailableColumns,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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 y=R;function I(t){return typeof t.code==="number"&&t.hasOwnProperty("metadata")}function x(t){if(t.methodDefinition.methodName===E.Subscribe.methodName){return e.grpc.WebsocketTransport()(t)}else{return e.grpc.CrossBrowserHttpTransport({withCredentials:false})(t)}}function O(t){this.message=t}O.prototype=new Error,O.prototype.name="InvalidCharacterError";var S="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var o=String(t).replace(/=+$/,"");if(o.length%4==1)throw new O("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,r,n=0,i=0,s="";r=o.charAt(i++);~r&&(e=n%4?64*e+r:r,n++%4)?s+=String.fromCharCode(255&e>>(-2*n&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return s};function C(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(S(t).replace(/(.)/g,(function(t,o){var e=o.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(o)}catch(t){return S(o)}}function T(t){this.message=t}function L(t,o){if("string"!=typeof t)throw new T("Invalid token specified");var e=!0===(o=o||{}).header?0:1;try{return JSON.parse(C(t.split(".")[e]))}catch(t){throw new T("Invalid token specified: "+t.message)}}T.prototype=new Error,T.prototype.name="InvalidTokenError";function N(t){return L(t)}class P{constructor(t,o,e={spinnerDelay:2e3,subscriptionHandshakeGracePeriodInMs:5e3}){this.client=t;this.rowLimit=o;this.connectOptions=e;this.nextPageId=0;this.pages=new Map;this.activeRowRange=[0,0];this.metadataKeys=[];this.debugLogs=false;this.onStateChange=new u;this.state={totalRows:0,isSearching:false,rows:[],connection:{type:"disconnected"}}}get fetchedPageCount(){return this.pages.size}get isConnected(){return this.state.connection.type==="connected"}stateChanged(t){return this.onStateChange.on(t)}setDebugLogs(t){this.debugLogs=t}async handleSubscriptionHandshakeTimeout(t,o){var e;const r=this.getState().connection;if(this.isConnectedState(r)&&((e=r.subscriptionStatusState)===null||e===void 0?void 0:e.attempt)!=null&&r.subscriptionStatusState.attempt<P.MAX_SUBSCRIPTION_RETRY_COUNT){const e=r.subscriptionStatusState.attempt+1;console.warn(`Failed to subscribe within the allotted timeout. Retry attempt={${e}}`);r.subscriptionStatusState.stream.cancel();this.clearHandshakeTimer();const n=await this.subscribe();this.invalidateAfterOffset(0);this.fetchUnloadedPagesInActiveRows();this.updateState(Object.assign(Object.assign({},this.state),{connection:Object.assign(Object.assign({},r),{type:"connected",subscription:{dispose:()=>n.cancel()},subscriptionStatusState:{attempt:e,stream:n}})}));this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,o)}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}else{this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:o,details:new l("SUBSCRIPTION_FAILURE",h.SUBSCRIPTION_FAILURE)}}))}}async connect(t){const{connection:o}=this.state;const e=t();if(e==null){throw new w("Cannot connect scene tree. JWT is undefined")}const{view:r}=N(e);if(o.sceneViewId!==r){this.disconnect(true)}else{this.disconnect(false)}const n={type:"connecting",jwtProvider:t,sceneViewId:r};this.updateState(Object.assign(Object.assign({},this.state),{connection:n}));try{this.log("Scene tree controller connecting.");this.restartLoadingTimer();const o=await this.subscribe();await this.fetchPage(0);if(this.state.connection.type!=="cancelled"){this.updateState(Object.assign(Object.assign({},this.state),{connection:{jwtProvider:t,sceneViewId:r,type:"connected",subscription:{dispose:()=>o.cancel()},subscriptionStatusState:{attempt:0,stream:o}}}));this.restartHandshakeTimer(t,r)}}catch(o){this.ifErrorIsFatal(o,(()=>{this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:r,details:this.getConnectionError(o)}}));this.clearHandshakeTimer();throw o}))}this.startIdleReconnectTimer()}clearReconnectTimer(){if(this.reconnectTimer!=null){window.clearTimeout(this.reconnectTimer)}}restartHandshakeTimer(t,o){this.clearHandshakeTimer();if(!this.state.handshakeReceived){this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,o);this.subscriptionHandshakeTimer=undefined}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}}clearHandshakeTimer(){if(this.subscriptionHandshakeTimer!=null){window.clearTimeout(this.subscriptionHandshakeTimer);this.subscriptionHandshakeTimer=undefined}}startIdleReconnectTimer(){this.startReconnectTimer(this.connectOptions.idleReconnectInSeconds||P.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||P.LOST_CONNECTION_RECONNECT_IN_SECONDS)}startReconnectTimer(t){this.clearReconnectTimer();this.reconnectTimer=window.setTimeout((()=>{if(this.state.connection.type==="connected"){this.connect(this.state.connection.jwtProvider)}}),t*1e3)}connectToViewer(t){const o=async()=>{if(t.token!=null){this.log("Scene tree controller found viewer JWT. Attempting connection.");try{await this.connect((()=>t.token))}catch(t){this.ifErrorIsFatal(t,(()=>{console.error("Scene tree controller errored connecting.",t)}))}}else{this.log("Scene tree controller was unable to find JWT.")}};const e=()=>{this.log("Scene tree controller received scene ready");o()};o();t.addEventListener("sceneReady",e);return{dispose:()=>{t.removeEventListener("sceneReady",e);this.disconnect()}}}disconnect(t=false){this.log(`Scene tree controller disconnecting [reset=${t}]`);this.clearHandshakeTimer();this.clearReconnectTimer();if(t){this.pages.clear();this.activeRowRange=[]}const{connection:o}=this.state;if(o.type==="connected"){o.subscription.dispose()}this.updateState({connection:{type:"disconnected",jwtProvider:o.jwtProvider,sceneViewId:o.sceneViewId},isSearching:false,totalRows:t?0:this.state.totalRows,rows:t?[]:this.state.rows,filterTerm:t?undefined:this.state.filterTerm,totalFilteredRows:t?undefined:this.state.totalFilteredRows,shouldShowEmptyResults:t?undefined:this.state.shouldShowEmptyResults,handshakeReceived:t?undefined:this.state.handshakeReceived,firstFetchComplete:t?undefined:this.state.firstFetchComplete})}cancel(){this.log(`Scene tree controller cancelled`);this.clearHandshakeTimer();this.clearReconnectTimer();this.pages.clear();this.activeRowRange=[];const{connection:t}=this.state;if(t.type==="connected"){t.subscription.dispose()}this.updateState({connection:{type:"cancelled",jwtProvider:t.jwtProvider,sceneViewId:t.sceneViewId},isSearching:false,totalRows:0,rows:[]})}async collapseNode(t){return this.ifConnectionHasJwt((async o=>{const e=new r.Uuid;e.setHex(t);const n=new f.CollapseNodeRequest;n.setNodeId(e);await this.requestUnary(o,((t,o)=>this.client.collapseNode(n,t,o)))}))}async expandNode(t){return this.ifConnectionHasJwt((async o=>{const e=new r.Uuid;e.setHex(t);const n=new f.ExpandNodeRequest;n.setNodeId(e);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 f.CollapseAllRequest,t,o)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.expandAll(new f.ExpandAllRequest,t,o)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async o=>{const e=new r.Uuid;e.setHex(t);const n=new f.LocateItemRequest;n.setNodeId(e);const i=await this.requestUnary(o,((t,o)=>this.client.locateItem(n,t,o)));const{requiresReload:s,locatedIndex:u}=i.toObject();if(s){this.invalidateAfterOffset(0);await this.fetchUnloadedPagesInActiveRows()}if(u==null){throw new k("Cannot locate node. Location index is undefined.")}return u.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async o=>{const e=new r.Uuid;e.setHex(t);const n=new f.GetNodeAncestorsRequest;n.setNodeId(e);const i=await this.requestUnary(o,((t,o)=>this.client.getNodeAncestors(n,t,o)));return i.toObject().itemsList}))}async fetchPage(t){return this.ifConnectionHasJwt((async o=>{var e;if(t<0||t>this.maxPages-1){return}if(!this.pages.has(t)){const e=t*this.rowLimit;this.log("Scene tree fetching page",t,e);const r=this.fetchTree(e,this.rowLimit,o);const n=this.nextPageId++;const i={id:n,res:r,index:t,metadataKeys:this.metadataKeys};this.pages.set(t,i);this.handlePageResult(i)}await((e=this.pages.get(t))===null||e===void 0?void 0:e.res)}))}fetchPageAtOffset(t){const o=Math.floor(t/this.rowLimit);return this.fetchPage(o)}async fetchRange(t,o){const e=Math.floor(t/this.rowLimit);const r=Math.floor(o/this.rowLimit);const[n,i]=this.constrainPageRange(e,r);const s=i-n+1;await Promise.all(Array.from({length:s}).map(((t,o)=>this.fetchPage(o))))}async fetchMetadataKeys(){return this.ifConnectionHasJwt((async t=>{const o=await this.requestUnary(t,((t,o)=>{const e=new f.GetAvailableColumnsRequest;this.client.getAvailableColumns(e,t,o)}));const e=o.getIndexingStatus();this.updateState(Object.assign(Object.assign({},this.state),{isPartialKeysResponse:e===p.IndexingStatus.INDEXING_STATUS_INDEXING}));return o.getKeysList().map((t=>t.getValue()))}))}async refreshFilter(){var t;return this.filter((t=this.state.filterTerm)!==null&&t!==void 0?t:"",this.state.filterOptions)}async filter(t,o={}){return this.ifConnectionHasJwt((async e=>{var r;this.updateState(Object.assign(Object.assign({},this.state),{isSearching:true,filterTerm:t!==""?t:undefined,filterOptions:o}));(r=this.pendingFilterGrpcRes)===null||r===void 0?void 0:r.cancel();this.pendingFilterGrpcRes=undefined;if(this.state.filterTerm===t||t===""){try{const r=await this.requestUnary(e,((e,r)=>{var n;const i=new f.FilterRequest;i.setFilter(t);i.setFullTree((n=o.includeCollapsed)!==null&&n!==void 0?n:true);i.setExactMatch(!!o.exactMatch);i.setRemoveHiddenItems(!!o.removeHiddenItems);if(o.columns)i.setColumnsKeysList(o.columns);this.pendingFilterGrpcRes=this.client.filter(i,e,r)}));const{numberOfResults:n,indexingStatus:i}=r.toObject();this.updateState(Object.assign(Object.assign({},this.state),{totalFilteredRows:n,isSearching:false,isPartialFilterResponse:i===p.IndexingStatus.INDEXING_STATUS_INDEXING}))}catch(t){console.error("Failed to filter search ",t);this.updateState(Object.assign(Object.assign({},this.state),{isSearching:false}))}}}))}isPageLoaded(t){return this.pages.has(t)}getNonLoadedPageIndexes(t,o){const[e,r]=this.constrainPageRange(t,o);const n=r-e+1;return Array.from({length:n}).map(((t,o)=>e+o)).filter((t=>!this.isPageLoaded(t)))}getActiveRowRange(){return this.activeRowRange}getPage(t){return this.pages.get(t)}invalidatePagesOutsideRange(t,o,e=0){const[r,n]=this.constrainPageRange(t,o);const i=Math.max(n-r,e);if(this.fetchedPageCount>i){const t=Array.from(this.pages.keys()).map((t=>{const o=t<r?r-t:t-n;return{index:t,distance:o}}));const o=t.sort(((t,o)=>o.distance-t.distance));o.slice(0,t.length-e).forEach((({index:t})=>this.invalidatePage(t)));this.log(`Scene tree dropped ${t.length-this.fetchedPageCount} pages`,this.pages)}}setMetadataKeys(t){this.metadataKeys=t;if(this.state.connection.type==="connected"){const[t,o]=this.activeRowRange;this.invalidateAfterOffset(0);return this.updateActiveRowRange(t,o)}else{return Promise.resolve()}}async updateActiveRowRange(t,o){this.activeRowRange=this.constrainRowOffsets(t,o);this.tryClearLoadingState();await this.fetchUnloadedPagesInActiveRows()}subscribe(){return this.ifConnectionHasJwt((t=>{const o=this.requestServerStream(t,(t=>{const o=this.client.subscribe(new f.SubscribeRequest,t);return o}));o.on("data",(t=>{if(t.hasHandshake()){this.clearHandshakeTimer();this.updateState(Object.assign(Object.assign({},this.state),{handshakeReceived:true}));if(this.state.firstFetchComplete){this.log("Scene tree first fetch completed before handshake received, invalidating current pages");this.invalidateAfterOffset(0);this.fetchUnloadedPagesInActiveRows()}}this.startIdleReconnectTimer();const{change:o}=t.toObject();if((o===null||o===void 0?void 0:o.filterChange)!=null){this.updateState(Object.assign(Object.assign({},this.state),{totalFilteredRows:o.filterChange.numberOfResults}))}if((o===null||o===void 0?void 0:o.listChange)!=null){this.log("Received list change",o.listChange.start);this.invalidateAfterOffset(o.listChange.start);this.fetchUnloadedPagesInActiveRows()}const{hiddenList:e=[],shownList:r=[],partiallyVisibleList:n=[],deselectedList:i=[],selectedList:s=[]}=(o===null||o===void 0?void 0:o.ranges)||{};if(n.length>0){this.log("Received partial visibility list change",n);n.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({partiallyVisible:true})))))}if(e.length>0){this.log("Received hidden list change",e);e.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:false,partiallyVisible:false})))))}if(r.length>0){this.log("Received shown list change",r);r.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:true,partiallyVisible:false})))))}if(i.length>0){this.log("Received deselected list change",i);i.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:false})))))}if(s.length>0){this.log("Received selected list change",s);s.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:true})))))}}));o.on("status",(t=>{if(t.code!==0){console.error(`Failed to subscribe to scene tree with code=${t.code}, details=${t.details}`);this.invalidateAfterOffset(0)}}));o.on("end",(()=>{this.invalidateAfterOffset(0);if(this.state.connection.type==="connected"){this.startConnectionLostReconnectTimer()}}));return o}))}async fetchUnloadedPagesInActiveRows(){var t,o;const[e,r]=this.getPageIndexesForRange((t=this.activeRowRange[0])!==null&&t!==void 0?t:0,(o=this.activeRowRange[1])!==null&&o!==void 0?o:0);const n=this.getNonLoadedPageIndexes(e-1,r+1);await Promise.all(n.map((t=>this.fetchPage(t))))}patchNodesInRange(t,o,e){const r=this.state.rows.slice(t,o+1).map((t=>a(t)?Object.assign(Object.assign({},t),{node:Object.assign(Object.assign({},t.node),e(t.node))}):t));const n=this.state.rows.slice(0,t);const i=this.state.rows.slice(o+1);const s=[...n,...r,...i];this.updateState(Object.assign(Object.assign({},this.state),{rows:s}))}async handlePageResult(t){var o;try{const e=await t.res;const r=this.getPage(t.index);if((r===null||r===void 0?void 0:r.id)===t.id){const n=e.getCursor();const i=e.getItemsList();const s=(o=n===null||n===void 0?void 0:n.getTotal())!==null&&o!==void 0?o:0;const u=t.index*this.rowLimit;const a=c(u,i,r.metadataKeys);const p=this.state.rows.slice(0,u);const f=this.state.rows.slice(p.length+a.length,s);const h=new Array(Math.max(0,s-p.length-a.length-f.length));const l=[...p,...a,...f,...h];if(this.isViewLoading(l)&&this.loadingTimer==null){this.restartLoadingTimer();this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:l,shouldShowEmptyResults:this.state.filterTerm!=null&&(l.length===0||this.state.totalFilteredRows===0)}))}else{this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:l,shouldShowLoading:l.length===0&&this.state.shouldShowLoading,shouldShowEmptyResults:this.state.filterTerm!=null&&(l.length===0||this.state.totalFilteredRows===0),firstFetchComplete:true}))}}}catch(o){const e=o instanceof Error?o.toString():"Unknown";console.error(`Request error fetching page at index ${t.index} (${e})`);const r=this.getPage(t.index);if((r===null||r===void 0?void 0:r.id)===t.id){this.invalidatePage(t.index)}}}invalidatePage(t){if(this.isPageLoaded(t)){this.pages.delete(t)}}invalidateAfterOffset(t){const o=Math.floor(t/this.rowLimit);for(const t of this.pages.keys()){if(t>=o){this.invalidatePage(t)}}}getState(){return this.state}isViewLoading(t){return this.state.filterTerm==null&&t[this.activeRowRange[0]]==null&&t[this.activeRowRange[1]]==null}restartLoadingTimer(){if(this.loadingTimer!=null){this.clearLoadingTimer()}this.loadingTimer=window.setTimeout((()=>{this.loadingTimer=undefined;this.updateState(Object.assign(Object.assign({},this.getState()),{shouldShowLoading:true}))}),this.connectOptions.spinnerDelay)}clearLoadingTimer(){if(this.loadingTimer!=null){clearTimeout(this.loadingTimer);this.loadingTimer=undefined}}tryClearLoadingState(){const t=this.tryClearLoadingTimer(this.state);if(t){this.updateState(Object.assign(Object.assign({},this.state),{shouldShowLoading:false}))}}tryClearLoadingTimer(t){const o=this.state.shouldShowLoading||this.loadingTimer!=null;const e=o&&!this.isViewLoading(t.rows);if(e){this.clearLoadingTimer();return true}return false}updateState(t){const o=this.tryClearLoadingTimer(t);this.state=Object.assign(Object.assign({},t),{shouldShowLoading:o?false:t.shouldShowLoading});this.onStateChange.emit(this.state)}getPageForOffset(t){const o=Math.floor(t/this.rowLimit);return this.constrainPageIndex(o)}getPageIndexesForRange(t,o){const e=this.getPageForOffset(t);const r=this.getPageForOffset(o);return[e,r]}async fetchTree(t,o,e){return this.requestUnary(e,((e,r)=>{const i=new n.OffsetPager;i.setOffset(t);i.setLimit(o);const s=new f.GetTreeRequest;s.setPager(i);s.setAdditionalColumnKeysList(this.metadataKeys);this.client.getTree(s,e,r)}))}requestUnary(t,o){return new Promise(((e,r)=>{const n=this.createJwtMetadata(t);o(n,((t,o)=>{if(t!=null){r(t)}else if(o!=null){e(o)}else{r(new d("Invalid response. Both error and result are null"))}}))}))}requestServerStream(t,o){const e=this.createJwtMetadata(t);return o(e)}createJwtMetadata(t){return new e.grpc.Metadata({"jwt-context":JSON.stringify({jwt:t})})}async ifConnectionHasJwt(t){const{connection:o}=this.state;if(o.type==="connecting"||o.type==="connected"){const e=await o.jwtProvider();if(e!=null){return t(e)}else{throw new w("SceneTreeController cannot perform request. Viewer JWT is undefined.")}}else if(o.type==="cancelled"){throw new b(`Request attempted, but controller was cancelled`)}else{throw new d("SceneTreeController is not in connected state")}}ifErrorIsFatal(t,o){if(!(t instanceof b)){o()}}getConnectionError(t){if(I(t)){if(t.code===e.grpc.Code.FailedPrecondition){return new l("SCENE_TREE_DISABLED",h.SCENE_TREE_DISABLED)}else if(t.code===e.grpc.Code.Unauthenticated){return new l("UNAUTHORIZED",h.UNAUTHORIZED)}else if(t.code===e.grpc.Code.Aborted){return new l("ABORTED",h.ABORTED)}else{return new l("UNKNOWN",h.UNKNOWN)}}else if(t instanceof w){return new l("UNAUTHORIZED",h.UNAUTHORIZED)}else{return new l("UNKNOWN",h.UNKNOWN)}}constrainPageRange(t,o){return[Math.max(0,t),Math.min(this.maxPages-1,o)]}constrainPageIndex(t){return Math.max(0,Math.min(t,this.maxPages-1))}constrainRowOffsets(t,o){const e=!Number.isNaN(t)?Math.max(0,t):0;const r=!Number.isNaN(o)?Math.min(this.state.totalRows-1,o):this.state.totalRows-1;return[e,r]}get maxPages(){return Math.max(1,Math.ceil(this.state.totalRows/this.rowLimit))}log(t,...o){if(this.debugLogs){console.debug(t,o)}}isConnectedState(t){return t.type==="connected"}}P.IDLE_RECONNECT_IN_SECONDS=4*60;P.LOST_CONNECTION_RECONNECT_IN_SECONDS=2;P.MAX_SUBSCRIPTION_RETRY_COUNT=2;export{P as S,y as a,l as b,h as c,x as w};
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
import{g as t,w as o,a as e}from"./p-5ca72d4a.js";import{u as r,p as n,C as i}from"./p-ba120f65.js";import{c as s}from"./p-e5cc48b6.js";import{E as u}from"./p-6b00f7cd.js";import{i as a,f as c}from"./p-e4f95584.js";var p=s((function(e,n){var i=t;var s=Function("return this")();i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.IndexingStatus",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Node",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Range",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange",null,s);i.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType",null,s);proto.vertexvis.protobuf.scenetree.v1alpha1.Node=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Node,t.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Node.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Node"}proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_=[10];if(t.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(e,n){var i,s={id:(i=n.getId())&&r.Uuid.toObject(e,i),depth:t.Message.getFieldWithDefault(n,2,0),name:t.Message.getFieldWithDefault(n,3,""),visible:t.Message.getFieldWithDefault(n,4,false),selected:t.Message.getFieldWithDefault(n,5,false),expanded:t.Message.getFieldWithDefault(n,6,false),isLeaf:t.Message.getFieldWithDefault(n,7,false),suppliedId:(i=n.getSuppliedId())&&o.StringValue.toObject(e,i),partiallyVisible:t.Message.getFieldWithDefault(n,9,false),columnsList:t.Message.getRepeatedField(n,10),filterHit:t.Message.getFieldWithDefault(n,11,false),phantom:t.Message.getFieldWithDefault(n,12,false),endItem:t.Message.getFieldWithDefault(n,13,false)};if(e){s.$jspbMessageInstance=n}return s}}proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Node;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader=function(t,e){while(e.nextField()){if(e.isEndGroup()){break}var n=e.getFieldNumber();switch(n){case 1:var i=new r.Uuid;e.readMessage(i,r.Uuid.deserializeBinaryFromReader);t.setId(i);break;case 2:var i=e.readUint32();t.setDepth(i);break;case 3:var i=e.readString();t.setName(i);break;case 4:var i=e.readBool();t.setVisible(i);break;case 5:var i=e.readBool();t.setSelected(i);break;case 6:var i=e.readBool();t.setExpanded(i);break;case 7:var i=e.readBool();t.setIsLeaf(i);break;case 8:var i=new o.StringValue;e.readMessage(i,o.StringValue.deserializeBinaryFromReader);t.setSuppliedId(i);break;case 9:var i=e.readBool();t.setPartiallyVisible(i);break;case 10:var i=e.readString();t.addColumns(i);break;case 11:var i=e.readBool();t.setFilterHit(i);break;case 12:var i=e.readBool();t.setPhantom(i);break;case 13:var i=e.readBool();t.setEndItem(i);break;default:e.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter=function(t,e){var n=undefined;n=t.getId();if(n!=null){e.writeMessage(1,n,r.Uuid.serializeBinaryToWriter)}n=t.getDepth();if(n!==0){e.writeUint32(2,n)}n=t.getName();if(n.length>0){e.writeString(3,n)}n=t.getVisible();if(n){e.writeBool(4,n)}n=t.getSelected();if(n){e.writeBool(5,n)}n=t.getExpanded();if(n){e.writeBool(6,n)}n=t.getIsLeaf();if(n){e.writeBool(7,n)}n=t.getSuppliedId();if(n!=null){e.writeMessage(8,n,o.StringValue.serializeBinaryToWriter)}n=t.getPartiallyVisible();if(n){e.writeBool(9,n)}n=t.getColumnsList();if(n.length>0){e.writeRepeatedString(10,n)}n=t.getFilterHit();if(n){e.writeBool(11,n)}n=t.getPhantom();if(n){e.writeBool(12,n)}n=t.getEndItem();if(n){e.writeBool(13,n)}};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getId=function(){return t.Message.getWrapperField(this,r.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setId=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearId=function(){this.setId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasId=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getDepth=function(){return t.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setDepth=function(o){t.Message.setProto3IntField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getName=function(){return t.Message.getFieldWithDefault(this,3,"")};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setName=function(o){t.Message.setProto3StringField(this,3,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getVisible=function(){return t.Message.getFieldWithDefault(this,4,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setVisible=function(o){t.Message.setProto3BooleanField(this,4,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSelected=function(){return t.Message.getFieldWithDefault(this,5,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSelected=function(o){t.Message.setProto3BooleanField(this,5,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getExpanded=function(){return t.Message.getFieldWithDefault(this,6,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setExpanded=function(o){t.Message.setProto3BooleanField(this,6,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getIsLeaf=function(){return t.Message.getFieldWithDefault(this,7,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setIsLeaf=function(o){t.Message.setProto3BooleanField(this,7,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSuppliedId=function(){return t.Message.getWrapperField(this,o.StringValue,8)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSuppliedId=function(o){t.Message.setWrapperField(this,8,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearSuppliedId=function(){this.setSuppliedId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasSuppliedId=function(){return t.Message.getField(this,8)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPartiallyVisible=function(){return t.Message.getFieldWithDefault(this,9,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPartiallyVisible=function(o){t.Message.setProto3BooleanField(this,9,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getColumnsList=function(){return t.Message.getRepeatedField(this,10)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setColumnsList=function(o){t.Message.setField(this,10,o||[])};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.addColumns=function(o,e){t.Message.addToRepeatedField(this,10,o,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearColumnsList=function(){this.setColumnsList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getFilterHit=function(){return t.Message.getFieldWithDefault(this,11,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setFilterHit=function(o){t.Message.setProto3BooleanField(this,11,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPhantom=function(){return t.Message.getFieldWithDefault(this,12,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPhantom=function(o){t.Message.setProto3BooleanField(this,12,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getEndItem=function(){return t.Message.getFieldWithDefault(this,13,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setEndItem=function(o){t.Message.setProto3BooleanField(this,13,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange=function(o){t.Message.initialize(this,o,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,t.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange"}if(t.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(o,e){var r={start:t.Message.getFieldWithDefault(e,1,0)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=o.readInt32();t.setStart(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getStart();if(e!==0){o.writeInt32(1,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.getStart=function(){return t.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.setStart=function(o){t.Message.setProto3IntField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range=function(o){t.Message.initialize(this,o,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Range,t.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Range.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Range"}if(t.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(o,e){var r={start:t.Message.getFieldWithDefault(e,1,0),end:t.Message.getFieldWithDefault(e,2,0)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=o.readInt32();t.setStart(r);break;case 2:var r=o.readInt32();t.setEnd(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getStart();if(e!==0){o.writeInt32(1,e)}e=t.getEnd();if(e!==0){o.writeInt32(2,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getStart=function(){return t.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setStart=function(o){t.Message.setProto3IntField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getEnd=function(){return t.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setEnd=function(o){t.Message.setProto3IntField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,t.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange"}proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_=[1,2,3,4,5];if(t.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(o,e){var r={hiddenList:t.Message.toObjectList(e.getHiddenList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),shownList:t.Message.toObjectList(e.getShownList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),selectedList:t.Message.toObjectList(e.getSelectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),deselectedList:t.Message.toObjectList(e.getDeselectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),partiallyVisibleList:t.Message.toObjectList(e.getPartiallyVisibleList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){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:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addShown(r);break;case 3:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addSelected(r);break;case 4:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addDeselected(r);break;case 5:var 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();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getHiddenList();if(e.length>0){o.writeRepeatedMessage(1,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getShownList();if(e.length>0){o.writeRepeatedMessage(2,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getSelectedList();if(e.length>0){o.writeRepeatedMessage(3,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getDeselectedList();if(e.length>0){o.writeRepeatedMessage(4,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}e=t.getPartiallyVisibleList();if(e.length>0){o.writeRepeatedMessage(5,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getHiddenList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setHiddenList=function(o){t.Message.setRepeatedWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addHidden=function(o,e){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearHiddenList=function(){this.setHiddenList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getShownList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setShownList=function(o){t.Message.setRepeatedWrapperField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addShown=function(o,e){return t.Message.addToRepeatedWrapperField(this,2,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearShownList=function(){this.setShownList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getSelectedList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setSelectedList=function(o){t.Message.setRepeatedWrapperField(this,3,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addSelected=function(o,e){return t.Message.addToRepeatedWrapperField(this,3,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearSelectedList=function(){this.setSelectedList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getDeselectedList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,4)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setDeselectedList=function(o){t.Message.setRepeatedWrapperField(this,4,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addDeselected=function(o,e){return t.Message.addToRepeatedWrapperField(this,4,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearDeselectedList=function(){this.setDeselectedList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getPartiallyVisibleList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,5)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setPartiallyVisibleList=function(o){t.Message.setRepeatedWrapperField(this,5,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addPartiallyVisible=function(o,e){return t.Message.addToRepeatedWrapperField(this,5,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearPartiallyVisibleList=function(){this.setPartiallyVisibleList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive=function(o){t.Message.initialize(this,o,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,t.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange=function(o){t.Message.initialize(this,o,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange,t.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange"}if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.toObject=function(o,e){var r={numberOfResults:t.Message.getFieldWithDefault(e,1,0)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=o.readInt32();t.setNumberOfResults(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getNumberOfResults();if(e!==0){o.writeInt32(1,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.getNumberOfResults=function(){return t.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.prototype.setNumberOfResults=function(o){t.Message.setProto3IntField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType=function(o){t.Message.initialize(this,o,0,-1,null,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType,t.Message);if(i.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,4]];proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase={SEALED_VALUE_NOT_SET:0,LIST_CHANGE:1,RANGES:2,KEEP_ALIVE:3,FILTER_CHANGE:4};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getSealedValueCase=function(){return t.Message.computeOneofCase(this,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0])};if(t.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 e,r={listChange:(e=o.getListChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,e),ranges:(e=o.getRanges())&&proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,e),keepAlive:(e=o.getKeepAlive())&&proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,e),filterChange:(e=o.getFilterChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.toObject(t,e)};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){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:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader);t.setRanges(r);break;case 3:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader);t.setKeepAlive(r);break;case 4:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.deserializeBinaryFromReader);t.setFilterChange(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getListChange();if(e!=null){o.writeMessage(1,e,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter)}e=t.getRanges();if(e!=null){o.writeMessage(2,e,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter)}e=t.getKeepAlive();if(e!=null){o.writeMessage(3,e,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter)}e=t.getFilterChange();if(e!=null){o.writeMessage(4,e,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getListChange=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setListChange=function(o){t.Message.setOneofWrapperField(this,1,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],o)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearListChange=function(){this.setListChange(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasListChange=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getRanges=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setRanges=function(o){t.Message.setOneofWrapperField(this,2,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],o)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearRanges=function(){this.setRanges(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasRanges=function(){return t.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getKeepAlive=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setKeepAlive=function(o){t.Message.setOneofWrapperField(this,3,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],o)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearKeepAlive=function(){this.setKeepAlive(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasKeepAlive=function(){return t.Message.getField(this,3)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getFilterChange=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterChange,4)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setFilterChange=function(o){t.Message.setOneofWrapperField(this,4,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],o)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearFilterChange=function(){this.setFilterChange(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasFilterChange=function(){return t.Message.getField(this,4)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey=function(o){t.Message.initialize(this,o,0,-1,null,null)};i.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,t.Message);if(i.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey"}if(t.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(o,e){var r={value:t.Message.getFieldWithDefault(e,1,"")};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=o.readString();t.setValue(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getValue();if(e.length>0){o.writeString(1,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.getValue=function(){return t.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.setValue=function(o){t.Message.setProto3StringField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.IndexingStatus={INDEXING_STATUS_INVALID:0,INDEXING_STATUS_INDEXING:1,INDEXING_STATUS_READY:2};i.object.extend(n,proto.vertexvis.protobuf.scenetree.v1alpha1)}));var f=s((function(e,i){var s=t;var u=Function("return this")();s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest",null,u);s.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse",null,u);proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_=[3];if(t.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(o,e){var i,s={viewId:(i=e.getViewId())&&r.Uuid.toObject(o,i),pager:(i=e.getPager())&&n.OffsetPager.toObject(o,i),additionalColumnKeysList:t.Message.getRepeatedField(e,3)};if(o){s.$jspbMessageInstance=e}return s}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var i=new r.Uuid;o.readMessage(i,r.Uuid.deserializeBinaryFromReader);t.setViewId(i);break;case 2:var i=new n.OffsetPager;o.readMessage(i,n.OffsetPager.deserializeBinaryFromReader);t.setPager(i);break;case 3:var i=o.readString();t.addAdditionalColumnKeys(i);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getViewId();if(e!=null){o.writeMessage(1,e,r.Uuid.serializeBinaryToWriter)}e=t.getPager();if(e!=null){o.writeMessage(2,e,n.OffsetPager.serializeBinaryToWriter)}e=t.getAdditionalColumnKeysList();if(e.length>0){o.writeRepeatedString(3,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,r.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setViewId=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearViewId=function(){this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasViewId=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getPager=function(){return t.Message.getWrapperField(this,n.OffsetPager,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setPager=function(o){t.Message.setWrapperField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearPager=function(){this.setPager(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasPager=function(){return t.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getAdditionalColumnKeysList=function(){return t.Message.getRepeatedField(this,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setAdditionalColumnKeysList=function(o){t.Message.setField(this,3,o||[])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.addAdditionalColumnKeys=function(o,e){t.Message.addToRepeatedField(this,3,o,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearAdditionalColumnKeysList=function(){this.setAdditionalColumnKeysList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_=[1];if(t.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(o,e){var r,i={itemsList:t.Message.toObjectList(e.getItemsList(),p.Node.toObject,o),totalVisible:t.Message.getFieldWithDefault(e,2,0),cursor:(r=e.getCursor())&&n.OffsetCursor.toObject(o,r)};if(o){i.$jspbMessageInstance=e}return i}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=new p.Node;o.readMessage(r,p.Node.deserializeBinaryFromReader);t.addItems(r);break;case 2:var r=o.readUint32();t.setTotalVisible(r);break;case 3:var r=new n.OffsetCursor;o.readMessage(r,n.OffsetCursor.deserializeBinaryFromReader);t.setCursor(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getItemsList();if(e.length>0){o.writeRepeatedMessage(1,e,p.Node.serializeBinaryToWriter)}e=t.getTotalVisible();if(e!==0){o.writeUint32(2,e)}e=t.getCursor();if(e!=null){o.writeMessage(3,e,n.OffsetCursor.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getItemsList=function(){return t.Message.getRepeatedWrapperField(this,p.Node,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setItemsList=function(o){t.Message.setRepeatedWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.addItems=function(o,e){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearItemsList=function(){this.setItemsList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getTotalVisible=function(){return t.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setTotalVisible=function(o){t.Message.setProto3IntField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getCursor=function(){return t.Message.getWrapperField(this,n.OffsetCursor,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setCursor=function(o){t.Message.setWrapperField(this,3,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearCursor=function(){this.setCursor(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.hasCursor=function(){return t.Message.getField(this,3)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest"}if(t.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 e,n={viewId:(e=o.getViewId())&&r.Uuid.toObject(t,e),nodeId:(e=o.getNodeId())&&r.Uuid.toObject(t,e)};if(t){n.$jspbMessageInstance=o}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var n=new r.Uuid;o.readMessage(n,r.Uuid.deserializeBinaryFromReader);t.setViewId(n);break;case 2:var n=new r.Uuid;o.readMessage(n,r.Uuid.deserializeBinaryFromReader);t.setNodeId(n);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getViewId();if(e!=null){o.writeMessage(1,e,r.Uuid.serializeBinaryToWriter)}e=t.getNodeId();if(e!=null){o.writeMessage(2,e,r.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,r.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setViewId=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearViewId=function(){this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasViewId=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,r.Uuid,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setNodeId=function(o){t.Message.setWrapperField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearNodeId=function(){this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasNodeId=function(){return t.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest"}if(t.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 e,n={viewId:(e=o.getViewId())&&r.Uuid.toObject(t,e),nodeId:(e=o.getNodeId())&&r.Uuid.toObject(t,e)};if(t){n.$jspbMessageInstance=o}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var n=new r.Uuid;o.readMessage(n,r.Uuid.deserializeBinaryFromReader);t.setViewId(n);break;case 2:var n=new r.Uuid;o.readMessage(n,r.Uuid.deserializeBinaryFromReader);t.setNodeId(n);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getViewId();if(e!=null){o.writeMessage(1,e,r.Uuid.serializeBinaryToWriter)}e=t.getNodeId();if(e!=null){o.writeMessage(2,e,r.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,r.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setViewId=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearViewId=function(){this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasViewId=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,r.Uuid,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setNodeId=function(o){t.Message.setWrapperField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearNodeId=function(){this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasNodeId=function(){return t.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest"}if(t.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 e,n={viewId:(e=o.getViewId())&&r.Uuid.toObject(t,e)};if(t){n.$jspbMessageInstance=o}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var n=new r.Uuid;o.readMessage(n,r.Uuid.deserializeBinaryFromReader);t.setViewId(n);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getViewId();if(e!=null){o.writeMessage(1,e,r.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,r.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.setViewId=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.clearViewId=function(){this.setViewId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.hasViewId=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse"}if(t.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 e,r={change:(e=o.getChange())&&p.TreeChangeType.toObject(t,e),handshake:(e=o.getHandshake())&&proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,e)};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=new p.TreeChangeType;o.readMessage(r,p.TreeChangeType.deserializeBinaryFromReader);t.setChange(r);break;case 2:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader);t.setHandshake(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getChange();if(e!=null){o.writeMessage(1,e,p.TreeChangeType.serializeBinaryToWriter)}e=t.getHandshake();if(e!=null){o.writeMessage(2,e,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getChange=function(){return t.Message.getWrapperField(this,p.TreeChangeType,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setChange=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearChange=function(){this.setChange(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasChange=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getHandshake=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setHandshake=function(o){t.Message.setWrapperField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearHandshake=function(){this.setHandshake(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasHandshake=function(){return t.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake"}if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,this)};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject=function(t,o){var e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_=[3];if(t.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(o,e){var r={filter:t.Message.getFieldWithDefault(e,1,""),fullTree:t.Message.getFieldWithDefault(e,2,false),columnsKeysList:t.Message.getRepeatedField(e,3),exactMatch:t.Message.getFieldWithDefault(e,4,false),removeHiddenItems:t.Message.getFieldWithDefault(e,5,false)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=o.readString();t.setFilter(r);break;case 2:var r=o.readBool();t.setFullTree(r);break;case 3:var r=o.readString();t.addColumnsKeys(r);break;case 4:var r=o.readBool();t.setExactMatch(r);break;case 5:var r=o.readBool();t.setRemoveHiddenItems(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getFilter();if(e.length>0){o.writeString(1,e)}e=t.getFullTree();if(e){o.writeBool(2,e)}e=t.getColumnsKeysList();if(e.length>0){o.writeRepeatedString(3,e)}e=t.getExactMatch();if(e){o.writeBool(4,e)}e=t.getRemoveHiddenItems();if(e){o.writeBool(5,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFilter=function(){return t.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFilter=function(o){t.Message.setProto3StringField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFullTree=function(){return t.Message.getFieldWithDefault(this,2,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFullTree=function(o){t.Message.setProto3BooleanField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getColumnsKeysList=function(){return t.Message.getRepeatedField(this,3)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setColumnsKeysList=function(o){t.Message.setField(this,3,o||[])};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.addColumnsKeys=function(o,e){t.Message.addToRepeatedField(this,3,o,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.clearColumnsKeysList=function(){this.setColumnsKeysList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getExactMatch=function(){return t.Message.getFieldWithDefault(this,4,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setExactMatch=function(o){t.Message.setProto3BooleanField(this,4,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getRemoveHiddenItems=function(){return t.Message.getFieldWithDefault(this,5,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setRemoveHiddenItems=function(o){t.Message.setProto3BooleanField(this,5,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse"}if(t.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(o,e){var r={numberOfResults:t.Message.getFieldWithDefault(e,1,0),indexingStatus:t.Message.getFieldWithDefault(e,2,0)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=o.readUint32();t.setNumberOfResults(r);break;case 2:var r=o.readEnum();t.setIndexingStatus(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getNumberOfResults();if(e!==0){o.writeUint32(1,e)}e=t.getIndexingStatus();if(e!==0){o.writeEnum(2,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.getNumberOfResults=function(){return t.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.setNumberOfResults=function(o){t.Message.setProto3IntField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.getIndexingStatus=function(){return t.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.setIndexingStatus=function(o){t.Message.setProto3EnumField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest"}if(t.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 e,n={nodeId:(e=o.getNodeId())&&r.Uuid.toObject(t,e)};if(t){n.$jspbMessageInstance=o}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 2:var n=new r.Uuid;o.readMessage(n,r.Uuid.deserializeBinaryFromReader);t.setNodeId(n);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getNodeId();if(e!=null){o.writeMessage(2,e,r.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,r.Uuid,2)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.setNodeId=function(o){t.Message.setWrapperField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.clearNodeId=function(){this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.hasNodeId=function(){return t.Message.getField(this,2)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse"}if(t.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(e,r){var n,i={locatedIndex:(n=r.getLocatedIndex())&&o.UInt64Value.toObject(e,n),requiresReload:t.Message.getFieldWithDefault(r,2,false)};if(e){i.$jspbMessageInstance=r}return i}}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader=function(t,e){while(e.nextField()){if(e.isEndGroup()){break}var r=e.getFieldNumber();switch(r){case 1:var n=new o.UInt64Value;e.readMessage(n,o.UInt64Value.deserializeBinaryFromReader);t.setLocatedIndex(n);break;case 2:var n=e.readBool();t.setRequiresReload(n);break;default:e.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter=function(t,e){var r=undefined;r=t.getLocatedIndex();if(r!=null){e.writeMessage(1,r,o.UInt64Value.serializeBinaryToWriter)}r=t.getRequiresReload();if(r){e.writeBool(2,r)}};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getLocatedIndex=function(){return t.Message.getWrapperField(this,o.UInt64Value,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setLocatedIndex=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.clearLocatedIndex=function(){this.setLocatedIndex(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.hasLocatedIndex=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getRequiresReload=function(){return t.Message.getFieldWithDefault(this,2,false)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setRequiresReload=function(o){t.Message.setProto3BooleanField(this,2,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest"}if(t.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 e,n={nodeId:(e=o.getNodeId())&&r.Uuid.toObject(t,e)};if(t){n.$jspbMessageInstance=o}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var n=new r.Uuid;o.readMessage(n,r.Uuid.deserializeBinaryFromReader);t.setNodeId(n);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getNodeId();if(e!=null){o.writeMessage(1,e,r.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,r.Uuid,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.setNodeId=function(o){t.Message.setWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.clearNodeId=function(){this.setNodeId(undefined)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.hasNodeId=function(){return t.Message.getField(this,1)!=null};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_=[1];if(t.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(o,e){var r={itemsList:t.Message.toObjectList(e.getItemsList(),p.Node.toObject,o)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=new p.Node;o.readMessage(r,p.Node.deserializeBinaryFromReader);t.addItems(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getItemsList();if(e.length>0){o.writeRepeatedMessage(1,e,p.Node.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.getItemsList=function(){return t.Message.getRepeatedWrapperField(this,p.Node,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.setItemsList=function(o){t.Message.setRepeatedWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.addItems=function(o,e){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.clearItemsList=function(){this.setItemsList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest"}if(t.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 e={};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter=function(t,o){};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_,null)};s.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse,t.Message);if(s.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_=[1];if(t.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(o,e){var r={keysList:t.Message.toObjectList(e.getKeysList(),p.ColumnKey.toObject,o),indexingStatus:t.Message.getFieldWithDefault(e,2,0)};if(o){r.$jspbMessageInstance=e}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinary=function(o){var e=new t.BinaryReader(o);var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader(r,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var e=o.getFieldNumber();switch(e){case 1:var r=new p.ColumnKey;o.readMessage(r,p.ColumnKey.deserializeBinaryFromReader);t.addKeys(r);break;case 2:var r=o.readEnum();t.setIndexingStatus(r);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter=function(t,o){var e=undefined;e=t.getKeysList();if(e.length>0){o.writeRepeatedMessage(1,e,p.ColumnKey.serializeBinaryToWriter)}e=t.getIndexingStatus();if(e!==0){o.writeEnum(2,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getKeysList=function(){return t.Message.getRepeatedWrapperField(this,p.ColumnKey,1)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setKeysList=function(o){t.Message.setRepeatedWrapperField(this,1,o)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.addKeys=function(o,e){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,e)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.clearKeysList=function(){this.setKeysList([])};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getIndexingStatus=function(){return t.Message.getFieldWithDefault(this,2,0)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setIndexingStatus=function(o){t.Message.setProto3EnumField(this,2,o)};s.object.extend(i,proto.vertexvis.protobuf.scenetree.v1alpha1)}));var h;(function(t){t[t["UNKNOWN"]=0]="UNKNOWN";t[t["SCENE_TREE_DISABLED"]=1]="SCENE_TREE_DISABLED";t[t["MISSING_VIEWER"]=2]="MISSING_VIEWER";t[t["DISCONNECTED"]=3]="DISCONNECTED";t[t["SUBSCRIPTION_FAILURE"]=4]="SUBSCRIPTION_FAILURE";t[t["UNAUTHORIZED"]=5]="UNAUTHORIZED";t[t["ABORTED"]=6]="ABORTED"})(h||(h={}));class l{constructor(t,o,e){this.name=t;this.code=o;this.link=e;this.message=v(o)}}function v(t){switch(t){case h.UNKNOWN:return"An unknown error occurred.";case h.SCENE_TREE_DISABLED:return"The tree for this scene is not enabled. Enable the tree for this scene to interact with the tree.";case h.MISSING_VIEWER:return"Could not find reference to the viewer.";case h.DISCONNECTED:return"Disconnected from server.";case h.SUBSCRIPTION_FAILURE:return"The tree was not able to receive subscription events.";case h.UNAUTHORIZED:return"The tree was unauthorized to connect to the server. The associated Viewer may not be connected.";case h.ABORTED:return"Unable to load the tree for this scene."}}class d extends i{constructor(t,o){super(t,o);Object.setPrototypeOf(this,d.prototype)}}class w extends d{constructor(t,o){super(t,o);Object.setPrototypeOf(this,w.prototype)}}class b extends d{constructor(t,o){super(t,o);Object.setPrototypeOf(this,b.prototype)}}class k extends d{constructor(t,o){super(t,o);Object.setPrototypeOf(this,k.prototype)}}var m=e.grpc;var g=function(){function t(){}t.serviceName="vertexvis.protobuf.scenetree.v1alpha1.SceneTreeAPI";return t}();g.GetTree={methodName:"GetTree",service:g,requestStream:false,responseStream:false,requestType:f.GetTreeRequest,responseType:f.GetTreeResponse};g.ExpandNode={methodName:"ExpandNode",service:g,requestStream:false,responseStream:false,requestType:f.ExpandNodeRequest,responseType:f.ExpandNodeResponse};g.CollapseNode={methodName:"CollapseNode",service:g,requestStream:false,responseStream:false,requestType:f.CollapseNodeRequest,responseType:f.CollapseNodeResponse};g.Subscribe={methodName:"Subscribe",service:g,requestStream:false,responseStream:true,requestType:f.SubscribeRequest,responseType:f.SubscribeResponse};g.Filter={methodName:"Filter",service:g,requestStream:false,responseStream:false,requestType:f.FilterRequest,responseType:f.FilterResponse};g.LocateItem={methodName:"LocateItem",service:g,requestStream:false,responseStream:false,requestType:f.LocateItemRequest,responseType:f.LocateItemResponse};g.ExpandAll={methodName:"ExpandAll",service:g,requestStream:false,responseStream:false,requestType:f.ExpandAllRequest,responseType:f.ExpandAllResponse};g.CollapseAll={methodName:"CollapseAll",service:g,requestStream:false,responseStream:false,requestType:f.CollapseAllRequest,responseType:f.CollapseAllResponse};g.GetNodeAncestors={methodName:"GetNodeAncestors",service:g,requestStream:false,responseStream:false,requestType:f.GetNodeAncestorsRequest,responseType:f.GetNodeAncestorsResponse};g.GetAvailableColumns={methodName:"GetAvailableColumns",service:g,requestStream:false,responseStream:false,requestType:f.GetAvailableColumnsRequest,responseType:f.GetAvailableColumnsResponse};var E=g;function R(t,o){this.serviceHost=t;this.options=o||{}}R.prototype.getTree=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.GetTree,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.expandNode=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.ExpandNode,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.collapseNode=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.CollapseNode,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.subscribe=function t(o,e){var r={data:[],end:[],status:[]};var n=m.invoke(g.Subscribe,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onMessage:function(t){r.data.forEach((function(o){o(t)}))},onEnd:function(t,o,e){r.status.forEach((function(r){r({code:t,details:o,metadata:e})}));r.end.forEach((function(r){r({code:t,details:o,metadata:e})}));r=null}});return{on:function(t,o){r[t].push(o);return this},cancel:function(){r=null;n.close()}}};R.prototype.filter=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.Filter,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.locateItem=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.LocateItem,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.expandAll=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.ExpandAll,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.collapseAll=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.CollapseAll,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.getNodeAncestors=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.GetNodeAncestors,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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()}}};R.prototype.getAvailableColumns=function t(o,e,r){if(arguments.length===2){r=arguments[1]}var n=m.unary(g.GetAvailableColumns,{request:o,host:this.serviceHost,metadata:e,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r){if(t.status!==m.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 y=R;function I(t){return typeof t.code==="number"&&t.hasOwnProperty("metadata")}function x(t){if(t.methodDefinition.methodName===E.Subscribe.methodName){return e.grpc.WebsocketTransport()(t)}else{return e.grpc.CrossBrowserHttpTransport({withCredentials:false})(t)}}function O(t){this.message=t}O.prototype=new Error,O.prototype.name="InvalidCharacterError";var S="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var o=String(t).replace(/=+$/,"");if(o.length%4==1)throw new O("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,r,n=0,i=0,s="";r=o.charAt(i++);~r&&(e=n%4?64*e+r:r,n++%4)?s+=String.fromCharCode(255&e>>(-2*n&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return s};function C(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(S(t).replace(/(.)/g,(function(t,o){var e=o.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(o)}catch(t){return S(o)}}function T(t){this.message=t}function L(t,o){if("string"!=typeof t)throw new T("Invalid token specified");var e=!0===(o=o||{}).header?0:1;try{return JSON.parse(C(t.split(".")[e]))}catch(t){throw new T("Invalid token specified: "+t.message)}}T.prototype=new Error,T.prototype.name="InvalidTokenError";function N(t){return L(t)}class P{constructor(t,o,e={spinnerDelay:2e3,subscriptionHandshakeGracePeriodInMs:5e3}){this.client=t;this.rowLimit=o;this.connectOptions=e;this.nextPageId=0;this.pages=new Map;this.activeRowRange=[0,0];this.metadataKeys=[];this.debugLogs=false;this.onStateChange=new u;this.state={totalRows:0,isSearching:false,rows:[],connection:{type:"disconnected"}}}get fetchedPageCount(){return this.pages.size}get isConnected(){return this.state.connection.type==="connected"}stateChanged(t){return this.onStateChange.on(t)}setDebugLogs(t){this.debugLogs=t}async handleSubscriptionHandshakeTimeout(t,o){var e;const r=this.getState().connection;if(this.isConnectedState(r)&&((e=r.subscriptionStatusState)===null||e===void 0?void 0:e.attempt)!=null&&r.subscriptionStatusState.attempt<P.MAX_SUBSCRIPTION_RETRY_COUNT){const e=r.subscriptionStatusState.attempt+1;console.warn(`Failed to subscribe within the allotted timeout. Retry attempt={${e}}`);r.subscriptionStatusState.stream.cancel();this.clearHandshakeTimer();const n=await this.subscribe();this.invalidateAfterOffset(0);this.fetchUnloadedPagesInActiveRows();this.updateState(Object.assign(Object.assign({},this.state),{connection:Object.assign(Object.assign({},r),{type:"connected",subscription:{dispose:()=>n.cancel()},subscriptionStatusState:{attempt:e,stream:n}})}));this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,o)}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}else{this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:o,details:new l("SUBSCRIPTION_FAILURE",h.SUBSCRIPTION_FAILURE)}}))}}async connect(t){const{connection:o}=this.state;const e=t();if(e==null){throw new w("Cannot connect scene tree. JWT is undefined")}const{view:r}=N(e);if(o.sceneViewId!==r){this.disconnect(true)}else{this.disconnect(false)}const n={type:"connecting",jwtProvider:t,sceneViewId:r};this.updateState(Object.assign(Object.assign({},this.state),{connection:n}));try{this.log("Scene tree controller connecting.");this.restartLoadingTimer();const o=await this.subscribe();await this.fetchPage(0);if(this.state.connection.type!=="cancelled"){this.updateState(Object.assign(Object.assign({},this.state),{connection:{jwtProvider:t,sceneViewId:r,type:"connected",subscription:{dispose:()=>o.cancel()},subscriptionStatusState:{attempt:0,stream:o}}}));this.restartHandshakeTimer(t,r)}}catch(o){this.ifErrorIsFatal(o,(()=>{this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:r,details:this.getConnectionError(o)}}));this.clearHandshakeTimer();throw o}))}this.startIdleReconnectTimer()}clearReconnectTimer(){if(this.reconnectTimer!=null){window.clearTimeout(this.reconnectTimer)}}restartHandshakeTimer(t,o){this.clearHandshakeTimer();if(!this.state.handshakeReceived){this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,o);this.subscriptionHandshakeTimer=undefined}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}}clearHandshakeTimer(){if(this.subscriptionHandshakeTimer!=null){window.clearTimeout(this.subscriptionHandshakeTimer);this.subscriptionHandshakeTimer=undefined}}startIdleReconnectTimer(){this.startReconnectTimer(this.connectOptions.idleReconnectInSeconds||P.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||P.LOST_CONNECTION_RECONNECT_IN_SECONDS)}startReconnectTimer(t){this.clearReconnectTimer();this.reconnectTimer=window.setTimeout((()=>{if(this.state.connection.type==="connected"){this.connect(this.state.connection.jwtProvider)}}),t*1e3)}connectToViewer(t){const o=async()=>{if(t.token!=null){this.log("Scene tree controller found viewer JWT. Attempting connection.");try{await this.connect((()=>t.token))}catch(t){this.ifErrorIsFatal(t,(()=>{console.error("Scene tree controller errored connecting.",t)}))}}else{this.log("Scene tree controller was unable to find JWT.")}};const e=()=>{this.log("Scene tree controller received scene ready");o()};o();t.addEventListener("sceneReady",e);return{dispose:()=>{t.removeEventListener("sceneReady",e);this.disconnect()}}}disconnect(t=false){this.log(`Scene tree controller disconnecting [reset=${t}]`);this.clearHandshakeTimer();this.clearReconnectTimer();if(t){this.pages.clear();this.activeRowRange=[]}const{connection:o}=this.state;if(o.type==="connected"){o.subscription.dispose()}this.updateState({connection:{type:"disconnected",jwtProvider:o.jwtProvider,sceneViewId:o.sceneViewId},isSearching:false,totalRows:t?0:this.state.totalRows,rows:t?[]:this.state.rows,filterTerm:t?undefined:this.state.filterTerm,totalFilteredRows:t?undefined:this.state.totalFilteredRows,shouldShowEmptyResults:t?undefined:this.state.shouldShowEmptyResults,handshakeReceived:t?undefined:this.state.handshakeReceived,firstFetchComplete:t?undefined:this.state.firstFetchComplete})}cancel(){this.log(`Scene tree controller cancelled`);this.clearHandshakeTimer();this.clearReconnectTimer();this.pages.clear();this.activeRowRange=[];const{connection:t}=this.state;if(t.type==="connected"){t.subscription.dispose()}this.updateState({connection:{type:"cancelled",jwtProvider:t.jwtProvider,sceneViewId:t.sceneViewId},isSearching:false,totalRows:0,rows:[]})}async collapseNode(t){return this.ifConnectionHasJwt((async o=>{const e=new r.Uuid;e.setHex(t);const n=new f.CollapseNodeRequest;n.setNodeId(e);await this.requestUnary(o,((t,o)=>this.client.collapseNode(n,t,o)))}))}async expandNode(t){return this.ifConnectionHasJwt((async o=>{const e=new r.Uuid;e.setHex(t);const n=new f.ExpandNodeRequest;n.setNodeId(e);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 f.CollapseAllRequest,t,o)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.expandAll(new f.ExpandAllRequest,t,o)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async o=>{const e=new r.Uuid;e.setHex(t);const n=new f.LocateItemRequest;n.setNodeId(e);const i=await this.requestUnary(o,((t,o)=>this.client.locateItem(n,t,o)));const{requiresReload:s,locatedIndex:u}=i.toObject();if(s){this.invalidateAfterOffset(0);await this.fetchUnloadedPagesInActiveRows()}if(u==null){throw new k("Cannot locate node. Location index is undefined.")}return u.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async o=>{const e=new r.Uuid;e.setHex(t);const n=new f.GetNodeAncestorsRequest;n.setNodeId(e);const i=await this.requestUnary(o,((t,o)=>this.client.getNodeAncestors(n,t,o)));return i.toObject().itemsList}))}async fetchPage(t){return this.ifConnectionHasJwt((async o=>{var e;if(t<0||t>this.maxPages-1){return}if(!this.pages.has(t)){const e=t*this.rowLimit;this.log("Scene tree fetching page",t,e);const r=this.fetchTree(e,this.rowLimit,o);const n=this.nextPageId++;const i={id:n,res:r,index:t,metadataKeys:this.metadataKeys};this.pages.set(t,i);this.handlePageResult(i)}await((e=this.pages.get(t))===null||e===void 0?void 0:e.res)}))}fetchPageAtOffset(t){const o=Math.floor(t/this.rowLimit);return this.fetchPage(o)}async fetchRange(t,o){const e=Math.floor(t/this.rowLimit);const r=Math.floor(o/this.rowLimit);const[n,i]=this.constrainPageRange(e,r);const s=i-n+1;await Promise.all(Array.from({length:s}).map(((t,o)=>this.fetchPage(o))))}async fetchMetadataKeys(){return this.ifConnectionHasJwt((async t=>{const o=await this.requestUnary(t,((t,o)=>{const e=new f.GetAvailableColumnsRequest;this.client.getAvailableColumns(e,t,o)}));const e=o.getIndexingStatus();this.updateState(Object.assign(Object.assign({},this.state),{isPartialKeysResponse:e===p.IndexingStatus.INDEXING_STATUS_INDEXING}));return o.getKeysList().map((t=>t.getValue()))}))}async refreshFilter(){var t;return this.filter((t=this.state.filterTerm)!==null&&t!==void 0?t:"",this.state.filterOptions)}async filter(t,o={}){return this.ifConnectionHasJwt((async e=>{var r;this.updateState(Object.assign(Object.assign({},this.state),{isSearching:true,filterTerm:t!==""?t:undefined,filterOptions:o}));(r=this.pendingFilterGrpcRes)===null||r===void 0?void 0:r.cancel();this.pendingFilterGrpcRes=undefined;if(this.state.filterTerm===t||t===""){try{const r=await this.requestUnary(e,((e,r)=>{var n;const i=new f.FilterRequest;i.setFilter(t);i.setFullTree((n=o.includeCollapsed)!==null&&n!==void 0?n:true);i.setExactMatch(!!o.exactMatch);i.setRemoveHiddenItems(!!o.removeHiddenItems);if(o.columns)i.setColumnsKeysList(o.columns);this.pendingFilterGrpcRes=this.client.filter(i,e,r)}));const{numberOfResults:n,indexingStatus:i}=r.toObject();this.updateState(Object.assign(Object.assign({},this.state),{totalFilteredRows:n,isSearching:false,isPartialFilterResponse:i===p.IndexingStatus.INDEXING_STATUS_INDEXING}))}catch(t){console.error("Failed to filter search ",t);this.updateState(Object.assign(Object.assign({},this.state),{isSearching:false}))}}}))}isPageLoaded(t){return this.pages.has(t)}getNonLoadedPageIndexes(t,o){const[e,r]=this.constrainPageRange(t,o);const n=r-e+1;return Array.from({length:n}).map(((t,o)=>e+o)).filter((t=>!this.isPageLoaded(t)))}getActiveRowRange(){return this.activeRowRange}getPage(t){return this.pages.get(t)}invalidatePagesOutsideRange(t,o,e=0){const[r,n]=this.constrainPageRange(t,o);const i=Math.max(n-r,e);if(this.fetchedPageCount>i){const t=Array.from(this.pages.keys()).map((t=>{const o=t<r?r-t:t-n;return{index:t,distance:o}}));const o=t.sort(((t,o)=>o.distance-t.distance));o.slice(0,t.length-e).forEach((({index:t})=>this.invalidatePage(t)));this.log(`Scene tree dropped ${t.length-this.fetchedPageCount} pages`,this.pages)}}setMetadataKeys(t){this.metadataKeys=t;if(this.state.connection.type==="connected"){const[t,o]=this.activeRowRange;this.invalidateAfterOffset(0);return this.updateActiveRowRange(t,o)}else{return Promise.resolve()}}async updateActiveRowRange(t,o){this.activeRowRange=this.constrainRowOffsets(t,o);this.tryClearLoadingState();await this.fetchUnloadedPagesInActiveRows()}subscribe(){return this.ifConnectionHasJwt((t=>{const o=this.requestServerStream(t,(t=>{const o=this.client.subscribe(new f.SubscribeRequest,t);return o}));o.on("data",(t=>{if(t.hasHandshake()){this.clearHandshakeTimer();this.updateState(Object.assign(Object.assign({},this.state),{handshakeReceived:true}));if(this.state.firstFetchComplete){this.log("Scene tree first fetch completed before handshake received, invalidating current pages");this.invalidateAfterOffset(0);this.fetchUnloadedPagesInActiveRows()}}this.startIdleReconnectTimer();const{change:o}=t.toObject();if((o===null||o===void 0?void 0:o.filterChange)!=null){this.updateState(Object.assign(Object.assign({},this.state),{totalFilteredRows:o.filterChange.numberOfResults}))}if((o===null||o===void 0?void 0:o.listChange)!=null){this.log("Received list change",o.listChange.start);this.invalidateAfterOffset(o.listChange.start);this.fetchUnloadedPagesInActiveRows()}const{hiddenList:e=[],shownList:r=[],partiallyVisibleList:n=[],deselectedList:i=[],selectedList:s=[]}=(o===null||o===void 0?void 0:o.ranges)||{};if(n.length>0){this.log("Received partial visibility list change",n);n.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({partiallyVisible:true})))))}if(e.length>0){this.log("Received hidden list change",e);e.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:false,partiallyVisible:false})))))}if(r.length>0){this.log("Received shown list change",r);r.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:true,partiallyVisible:false})))))}if(i.length>0){this.log("Received deselected list change",i);i.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:false})))))}if(s.length>0){this.log("Received selected list change",s);s.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:true})))))}}));o.on("status",(t=>{if(t.code!==0){console.error(`Failed to subscribe to scene tree with code=${t.code}, details=${t.details}`);this.invalidateAfterOffset(0)}}));o.on("end",(()=>{this.invalidateAfterOffset(0);if(this.state.connection.type==="connected"){this.startConnectionLostReconnectTimer()}}));return o}))}async fetchUnloadedPagesInActiveRows(){var t,o;const[e,r]=this.getPageIndexesForRange((t=this.activeRowRange[0])!==null&&t!==void 0?t:0,(o=this.activeRowRange[1])!==null&&o!==void 0?o:0);const n=this.getNonLoadedPageIndexes(e-1,r+1);await Promise.all(n.map((t=>this.fetchPage(t))))}patchNodesInRange(t,o,e){const r=this.state.rows.slice(t,o+1).map((t=>a(t)?Object.assign(Object.assign({},t),{node:Object.assign(Object.assign({},t.node),e(t.node))}):t));const n=this.state.rows.slice(0,t);const i=this.state.rows.slice(o+1);const s=[...n,...r,...i];this.updateState(Object.assign(Object.assign({},this.state),{rows:s}))}async handlePageResult(t){var o;try{const e=await t.res;const r=this.getPage(t.index);if((r===null||r===void 0?void 0:r.id)===t.id){const n=e.getCursor();const i=e.getItemsList();const s=(o=n===null||n===void 0?void 0:n.getTotal())!==null&&o!==void 0?o:0;const u=t.index*this.rowLimit;const a=c(u,i,r.metadataKeys);const p=this.state.rows.slice(0,u);const f=this.state.rows.slice(p.length+a.length,s);const h=new Array(Math.max(0,s-p.length-a.length-f.length));const l=[...p,...a,...f,...h];if(this.isViewLoading(l)&&this.loadingTimer==null){this.restartLoadingTimer();this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:l,shouldShowEmptyResults:this.state.filterTerm!=null&&(l.length===0||this.state.totalFilteredRows===0)}))}else{this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:l,shouldShowLoading:l.length===0&&this.state.shouldShowLoading,shouldShowEmptyResults:this.state.filterTerm!=null&&(l.length===0||this.state.totalFilteredRows===0),firstFetchComplete:true}))}}}catch(o){const e=o instanceof Error?o.toString():"Unknown";console.error(`Request error fetching page at index ${t.index} (${e})`);const r=this.getPage(t.index);if((r===null||r===void 0?void 0:r.id)===t.id){this.invalidatePage(t.index)}}}invalidatePage(t){if(this.isPageLoaded(t)){this.pages.delete(t)}}invalidateAfterOffset(t){const o=Math.floor(t/this.rowLimit);for(const t of this.pages.keys()){if(t>=o){this.invalidatePage(t)}}}getState(){return this.state}isViewLoading(t){return this.state.filterTerm==null&&t[this.activeRowRange[0]]==null&&t[this.activeRowRange[1]]==null}restartLoadingTimer(){if(this.loadingTimer!=null){this.clearLoadingTimer()}this.loadingTimer=window.setTimeout((()=>{this.loadingTimer=undefined;this.updateState(Object.assign(Object.assign({},this.getState()),{shouldShowLoading:true}))}),this.connectOptions.spinnerDelay)}clearLoadingTimer(){if(this.loadingTimer!=null){clearTimeout(this.loadingTimer);this.loadingTimer=undefined}}tryClearLoadingState(){const t=this.tryClearLoadingTimer(this.state);if(t){this.updateState(Object.assign(Object.assign({},this.state),{shouldShowLoading:false}))}}tryClearLoadingTimer(t){const o=this.state.shouldShowLoading||this.loadingTimer!=null;const e=o&&!this.isViewLoading(t.rows);if(e){this.clearLoadingTimer();return true}return false}updateState(t){const o=this.tryClearLoadingTimer(t);this.state=Object.assign(Object.assign({},t),{shouldShowLoading:o?false:t.shouldShowLoading});this.onStateChange.emit(this.state)}getPageForOffset(t){const o=Math.floor(t/this.rowLimit);return this.constrainPageIndex(o)}getPageIndexesForRange(t,o){const e=this.getPageForOffset(t);const r=this.getPageForOffset(o);return[e,r]}async fetchTree(t,o,e){return this.requestUnary(e,((e,r)=>{const i=new n.OffsetPager;i.setOffset(t);i.setLimit(o);const s=new f.GetTreeRequest;s.setPager(i);s.setAdditionalColumnKeysList(this.metadataKeys);this.client.getTree(s,e,r)}))}requestUnary(t,o){return new Promise(((e,r)=>{const n=this.createJwtMetadata(t);o(n,((t,o)=>{if(t!=null){r(t)}else if(o!=null){e(o)}else{r(new d("Invalid response. Both error and result are null"))}}))}))}requestServerStream(t,o){const e=this.createJwtMetadata(t);return o(e)}createJwtMetadata(t){return new e.grpc.Metadata({"jwt-context":JSON.stringify({jwt:t})})}async ifConnectionHasJwt(t){const{connection:o}=this.state;if(o.type==="connecting"||o.type==="connected"){const e=await o.jwtProvider();if(e!=null){return t(e)}else{throw new w("SceneTreeController cannot perform request. Viewer JWT is undefined.")}}else if(o.type==="cancelled"){throw new b(`Request attempted, but controller was cancelled`)}else{throw new d("SceneTreeController is not in connected state")}}ifErrorIsFatal(t,o){if(!(t instanceof b)){o()}}getConnectionError(t){if(I(t)){if(t.code===e.grpc.Code.FailedPrecondition){return new l("SCENE_TREE_DISABLED",h.SCENE_TREE_DISABLED)}else if(t.code===e.grpc.Code.Unauthenticated){return new l("UNAUTHORIZED",h.UNAUTHORIZED)}else if(t.code===e.grpc.Code.Aborted){return new l("ABORTED",h.ABORTED)}else{return new l("UNKNOWN",h.UNKNOWN)}}else if(t instanceof w){return new l("UNAUTHORIZED",h.UNAUTHORIZED)}else{return new l("UNKNOWN",h.UNKNOWN)}}constrainPageRange(t,o){return[Math.max(0,t),Math.min(this.maxPages-1,o)]}constrainPageIndex(t){return Math.max(0,Math.min(t,this.maxPages-1))}constrainRowOffsets(t,o){const e=!Number.isNaN(t)?Math.max(0,t):0;const r=!Number.isNaN(o)?Math.min(this.state.totalRows-1,o):this.state.totalRows-1;return[e,r]}get maxPages(){return Math.max(1,Math.ceil(this.state.totalRows/this.rowLimit))}log(t,...o){if(this.debugLogs){console.debug(t,o)}}isConnectedState(t){return t.type==="connected"}}P.IDLE_RECONNECT_IN_SECONDS=4*60;P.LOST_CONNECTION_RECONNECT_IN_SECONDS=2;P.MAX_SUBSCRIPTION_RETRY_COUNT=2;export{P as S,y as a,l as b,h as c,x as w};
|
|
5
|
+
//# sourceMappingURL=p-f8951894.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright (c) 2026 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
import{r as i,c as t,h as e,H as s,g as n}from"./p-
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
import{r as i,c as t,h as e,H as s,g as n}from"./p-388f809e.js";import{d as o}from"./p-f49b5881.js";import"./p-e656bd4c.js";import"./p-0d971ad6.js";import{b as l}from"./p-992ec5f0.js";import"./p-9d26f24e.js";import"./p-3060996e.js";import"./p-6b00f7cd.js";import"./p-e5cc48b6.js";const r="button{border:none;background:transparent;cursor:pointer;margin:0;padding:0}:host{display:flex;align-items:center;box-sizing:border-box;--scene-tree-cell-background-hover:var(--blue-200);--scene-tree-cell-background-selected:var(--blue-300);--scene-tree-cell-text-positioning:left;--scene-tree-cell-padding:0.25rem 0;font-size:var(--scene-tree-default-font-size, unset);font-family:var(--scene-tree-default-font-family, unset);color:var(--scene-tree-default-font-color, #444444)}:host([is-hovered]){background:var(--scene-tree-cell-background-hover)}:host([is-selected]){background:var(--scene-tree-cell-background-selected)}.wrapper{display:flex;align-items:center;box-sizing:border-box;width:100%;height:100%;padding:var(--scene-tree-cell-padding)}.content{width:100%;text-align:var(--scene-tree-cell-text-positioning);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.column-spacer{width:var(--scene-tree-table-column-gap)}.expand-btn{cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:24px;min-height:24px}:host([is-leaf]) .expand-btn,:host([is-end-item]) .expand-btn{visibility:hidden;cursor:default}.no-shrink{flex-shrink:0}.end-item-btn{cursor:default;display:flex;align-items:center;justify-content:center;min-width:24px;min-height:24px}:host(:not([is-end-item])) .end-item-btn{visibility:hidden;cursor:default}.end-item-icon{width:14px;height:14px;fill:var(--scene-tree-secondary-font-color, var(--neutral-600))}.visibility-btn,.isolate-btn{cursor:pointer;display:flex;align-items:center;justify-content:center;width:20px;height:20px}.icon{width:14px;height:14px;fill:var(--scene-tree-default-font-color, currentColor)}";const h=class{constructor(e){i(this,e);this.expandToggled=t(this,"expandToggled",7);this.visibilityToggled=t(this,"visibilityToggled",7);this.selectionToggled=t(this,"selectionToggled",7);this.isolatePressed=t(this,"isolatePressed",7);this.cellLoaded=t(this,"cellLoaded",7);this.placeholder="--";this.alwaysShowIcons=false;this.hovered=false;this.displayValue=()=>{const i=this.value==null||this.value.trim()===""?this.placeholder:this.value;return i};this.handleCellPointerEnter=()=>{var i,t,e;(i=this.hoverController)===null||i===void 0?void 0:i.setHovered((e=(t=this.node)===null||t===void 0?void 0:t.id)===null||e===void 0?void 0:e.hex)};this.handleCellPointerLeave=()=>{var i;(i=this.hoverController)===null||i===void 0?void 0:i.setHovered(undefined)};this.handleCellPointerUp=i=>{if(!this.isScrolling&&this.node!=null&&this.tree!=null&&this.longPressTimer!=null){if(this.selectionHandler!=null){this.selectionHandler(i,this.node,this.tree)}else{this.performDefaultSelectionOperation(i)}this.selectionToggled.emit({node:this.node,originalEvent:i})}this.clearLongPressTimer()};this.handleCellPointerDown=i=>{this.restartLongPressTimer()};this.createActionPointerUpHandler=i=>t=>{t.preventDefault();t.stopPropagation();l(this.hostEl);i(t)};this.toggleExpansion=async i=>{if(this.tree!=null&&this.node!=null){if(this.expansionHandler!=null){this.expansionHandler(i,this.node,this.tree)}else{await this.performDefaultExpansionOperation(this.node,this.tree)}this.expandToggled.emit({node:this.node,originalEvent:i})}};this.toggleVisibility=async i=>{if(this.tree!=null&&this.node!=null){if(this.visibilityHandler!=null){this.visibilityHandler(i,this.node,this.tree)}else{await this.performDefaultVisibilityOperation(this.node,this.tree)}this.visibilityToggled.emit({node:this.node,originalEvent:i})}};this.isolate=async i=>{if(this.tree!=null&&this.node!=null){if(this.isolateHandler!=null){this.isolateHandler(i,this.node,this.tree)}else{await this.performDefaultIsolateOperation(this.node,this.tree)}this.isolatePressed.emit({node:this.node,originalEvent:i})}};this.performDefaultSelectionOperation=i=>{var t,e,s,n,o,l;if(!i.defaultPrevented&&i.button===0){if((i.ctrlKey||i.metaKey)&&((t=this.node)===null||t===void 0?void 0:t.selected)){(e=this.tree)===null||e===void 0?void 0:e.deselectItem(this.node)}else if((s=this.node)===null||s===void 0?void 0:s.selected){(n=this.tree)===null||n===void 0?void 0:n.selectItem(this.node,{recurseParent:true})}else if(!((o=this.node)===null||o===void 0?void 0:o.selected)){(l=this.tree)===null||l===void 0?void 0:l.selectItem(this.node,{append:i.ctrlKey||i.metaKey,range:i.shiftKey})}}};this.performDefaultVisibilityOperation=async(i,t)=>{await t.toggleItemVisibility(i)};this.performDefaultIsolateOperation=async(i,t)=>{await t.isolateItem(i)};this.performDefaultExpansionOperation=async(i,t)=>{await t.toggleExpandItem(i)}}componentDidLoad(){var i;this.hoverListener=(i=this.hoverController)===null||i===void 0?void 0:i.stateChanged((i=>{var t,e;this.hovered=i===((e=(t=this.node)===null||t===void 0?void 0:t.id)===null||e===void 0?void 0:e.hex)}));this.cellLoaded.emit();this.clearLongPressTimer()}disconnectedCallback(){var i;(i=this.hoverListener)===null||i===void 0?void 0:i.dispose();this.clearLongPressTimer()}componentWillRender(){var i,t,e,s,n,o;this.toggleAttribute("is-hovered",this.hovered);this.toggleAttribute("is-hidden",!((i=this.node)===null||i===void 0?void 0:i.visible));this.toggleAttribute("is-selected",!!((t=this.node)===null||t===void 0?void 0:t.selected));this.toggleAttribute("is-partial",!!((e=this.node)===null||e===void 0?void 0:e.partiallyVisible));this.toggleAttribute("is-leaf",!!((s=this.node)===null||s===void 0?void 0:s.isLeaf));this.toggleAttribute("is-end-item",!!((n=this.node)===null||n===void 0?void 0:n.endItem));this.toggleAttribute("is-filter-hit",!!((o=this.node)===null||o===void 0?void 0:o.filterHit))}render(){var i,t,n,o;const l=this.node==null?{visibility:"hidden"}:undefined;const r=this.getBackgroundColorStyle();const h=this.getEndItemIcon();const d=this.getExpansionIcon();const a=this.getIsolateIcon();const c=this.getVisibilityIcon();const v=this.expandToggle&&!h;const u=h&&!v;return e(s,{onPointerEnter:this.handleCellPointerEnter,onPointerLeave:this.handleCellPointerLeave,onPointerUp:this.handleCellPointerUp,onPointerDown:this.handleCellPointerDown,style:Object.assign(Object.assign({},l),{"background-color":r})},e("div",{class:"wrapper"},e("div",{class:"no-shrink"},e("slot",{name:"left-gutter"})),v&&e("button",{class:"expand-btn no-shrink","data-test-id":"expand-"+((i=this.node)===null||i===void 0?void 0:i.name),onPointerUp:this.createActionPointerUpHandler(this.toggleExpansion)},d&&e("vertex-viewer-icon",{class:"icon",name:d,size:"sm"})),u&&e("button",{class:"end-item-btn no-shrink","data-test-id":"end-item-"+((t=this.node)===null||t===void 0?void 0:t.name)},h&&e("vertex-viewer-icon",{class:"end-item-icon",name:h,size:"sm"})),e("div",{class:"content"},this.value!=null&&this.value.trim()!==""?e("slot",null,this.displayValue()):e("slot",{name:"placeholder"},this.placeholder)),this.isolateButton&&e("button",{class:"isolate-btn no-shrink","data-test-id":"isolate-btn-"+((n=this.node)===null||n===void 0?void 0:n.name),onPointerUp:this.createActionPointerUpHandler(this.isolate)},a&&e("vertex-viewer-icon",{class:"icon",name:"locate",size:"sm"})),this.visibilityToggle&&e("button",{class:"visibility-btn no-shrink","data-test-id":"visibility-btn-"+((o=this.node)===null||o===void 0?void 0:o.name),onPointerUp:this.createActionPointerUpHandler(this.toggleVisibility)},c&&e("vertex-viewer-icon",{class:"icon",name:c,size:"sm"})),e("div",{class:"no-shrink"},e("slot",{name:"right-gutter"})),!this.visibilityToggle&&!this.isolateButton&&e("div",{class:"column-spacer"})))}toggleAttribute(i,t){if(t){this.hostEl.setAttribute(i,"")}else{this.hostEl.removeAttribute(i)}}clearLongPressTimer(){if(this.longPressTimer!=null){window.clearTimeout(this.longPressTimer)}this.longPressTimer=undefined}restartLongPressTimer(){this.clearLongPressTimer();this.longPressTimer=window.setTimeout((()=>{this.clearLongPressTimer()}),o.longPressThreshold)}getBackgroundColorStyle(){var i,t;const e=this.getCssVariableWithFallbacks(`--scene-tree-row-background-color-depth-${(i=this.node)===null||i===void 0?void 0:i.depth}`,"--scene-tree-row-background-color");const s=this.getCssVariableWithFallbacks("--scene-tree-selected-row-background-color","--scene-tree-cell-background-selected");const n=this.getCssVariableWithFallbacks("--scene-tree-hovered-row-background-color","--scene-tree-cell-background-hover");if(!!((t=this.node)===null||t===void 0?void 0:t.selected)){return s}else if(this.hovered){return n}return e}getCssVariableWithFallbacks(i,...t){const e=[...t].reverse();return[...e,i].reduce(((i,t)=>`var(${t}, ${i})`),"unset")}getIsolateIcon(){if(this.hovered||this.alwaysShowIcons){return"locate"}return undefined}getExpansionIcon(){var i,t,e;if(!((i=this.node)===null||i===void 0?void 0:i.isLeaf)&&!((t=this.node)===null||t===void 0?void 0:t.endItem)){return((e=this.node)===null||e===void 0?void 0:e.expanded)?"chevron-down":"chevron-right"}return undefined}getEndItemIcon(){var i,t,e;if(this.endItemIndicator&&((i=this.node)===null||i===void 0?void 0:i.endItem)&&(!((t=this.node)===null||t===void 0?void 0:t.isLeaf)||((e=this.node)===null||e===void 0?void 0:e.filterHit))){return"lock"}return undefined}getVisibilityIcon(){var i,t,e,s,n;if((this.hovered||this.alwaysShowIcons)&&!((i=this.node)===null||i===void 0?void 0:i.partiallyVisible)&&((t=this.node)===null||t===void 0?void 0:t.visible)){return"eye-open"}else if(!((e=this.node)===null||e===void 0?void 0:e.partiallyVisible)&&!((s=this.node)===null||s===void 0?void 0:s.visible)){return"eye-half"}else if((n=this.node)===null||n===void 0?void 0:n.partiallyVisible){return"eye-half-dotted"}return undefined}get hostEl(){return n(this)}};h.style=r;export{h as vertex_scene_tree_table_cell};
|
|
5
|
+
//# sourceMappingURL=p-f8a9c4d2.entry.js.map
|