@vertexvis/viewer 0.17.5-testing.4 → 0.17.5-testing.5
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/dist/cjs/{controller-4e9ef328.js → controller-c7c4f333.js} +6 -6
- package/dist/cjs/controller-c7c4f333.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/vertex-scene-tree.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-pin-group.cjs.entry.js +1 -1
- package/dist/collection/components/scene-tree/lib/controller.js +5 -5
- package/dist/collection/components/scene-tree/lib/controller.js.map +1 -1
- package/dist/custom-elements/index.js +5 -5
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/{controller-53f803d9.js → controller-bbcc1700.js} +6 -6
- package/dist/esm/controller-bbcc1700.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/vertex-scene-tree.entry.js +1 -1
- package/dist/esm/vertex-viewer-pin-group.entry.js +1 -1
- package/dist/viewer/index.esm.js +1 -1
- package/dist/viewer/{p-921ec41b.js → p-3d19b37e.js} +2 -2
- package/dist/viewer/p-3d19b37e.js.map +1 -0
- package/dist/viewer/{p-1815d19b.entry.js → p-6114701c.entry.js} +2 -2
- package/dist/viewer/{p-9b8dae4a.entry.js → p-d256624d.entry.js} +2 -2
- package/dist/viewer/viewer.esm.js +1 -1
- package/package.json +7 -7
- package/dist/cjs/controller-4e9ef328.js.map +0 -1
- package/dist/esm/controller-53f803d9.js.map +0 -1
- package/dist/viewer/p-921ec41b.js.map +0 -1
- /package/dist/viewer/{p-1815d19b.entry.js.map → p-6114701c.entry.js.map} +0 -0
- /package/dist/viewer/{p-9b8dae4a.entry.js.map → p-d256624d.entry.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright (c) 2023 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
import{g as t,w as o,a as r}from"./p-6320532c.js";import{c as e}from"./p-9acf99ad.js";import{E as n}from"./p-7f54de9d.js";import{C as i}from"./p-d45df0c0.js";import{i as s,f as u}from"./p-c5381b4a.js";var a=e((function(o,r){var e=t;var n=Function("return this")();e.exportSymbol("proto.vertexvis.protobuf.core.Cursor",null,n);e.exportSymbol("proto.vertexvis.protobuf.core.OffsetCursor",null,n);e.exportSymbol("proto.vertexvis.protobuf.core.OffsetPager",null,n);e.exportSymbol("proto.vertexvis.protobuf.core.Pager",null,n);proto.vertexvis.protobuf.core.Pager=function(o){t.Message.initialize(this,o,0,-1,null,null)};e.inherits(proto.vertexvis.protobuf.core.Pager,t.Message);if(e.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.Pager.displayName="proto.vertexvis.protobuf.core.Pager"}if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.Pager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Pager.toObject(t,this)};proto.vertexvis.protobuf.core.Pager.toObject=function(o,r){var e={limit:t.Message.getFieldWithDefault(r,1,0),cursor:t.Message.getFieldWithDefault(r,2,"")};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.core.Pager.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.core.Pager;return proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readUint32();t.setLimit(e);break;case 2:var e=o.readString();t.setCursor(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.Pager.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getLimit();if(r!==0){o.writeUint32(1,r)}r=t.getCursor();if(r.length>0){o.writeString(2,r)}};proto.vertexvis.protobuf.core.Pager.prototype.getLimit=function(){return t.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.core.Pager.prototype.setLimit=function(o){t.Message.setProto3IntField(this,1,o)};proto.vertexvis.protobuf.core.Pager.prototype.getCursor=function(){return t.Message.getFieldWithDefault(this,2,"")};proto.vertexvis.protobuf.core.Pager.prototype.setCursor=function(o){t.Message.setProto3StringField(this,2,o)};proto.vertexvis.protobuf.core.OffsetPager=function(o){t.Message.initialize(this,o,0,-1,null,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_)};e.inherits(proto.vertexvis.protobuf.core.OffsetPager,t.Message);if(e.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.OffsetPager.displayName="proto.vertexvis.protobuf.core.OffsetPager"}proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_=[[2,3]];proto.vertexvis.protobuf.core.OffsetPager.PagerCase={PAGER_NOT_SET:0,CURSOR:2,OFFSET:3};proto.vertexvis.protobuf.core.OffsetPager.prototype.getPagerCase=function(){return t.Message.computeOneofCase(this,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0])};if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.OffsetPager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetPager.toObject(t,this)};proto.vertexvis.protobuf.core.OffsetPager.toObject=function(o,r){var e={limit:t.Message.getFieldWithDefault(r,1,0),cursor:t.Message.getFieldWithDefault(r,2,""),offset:t.Message.getFieldWithDefault(r,3,0)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.core.OffsetPager.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.core.OffsetPager;return proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readUint32();t.setLimit(e);break;case 2:var e=o.readString();t.setCursor(e);break;case 3:var e=o.readUint32();t.setOffset(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.OffsetPager.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter=function(o,r){var e=undefined;e=o.getLimit();if(e!==0){r.writeUint32(1,e)}e=t.Message.getField(o,2);if(e!=null){r.writeString(2,e)}e=t.Message.getField(o,3);if(e!=null){r.writeUint32(3,e)}};proto.vertexvis.protobuf.core.OffsetPager.prototype.getLimit=function(){return t.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.core.OffsetPager.prototype.setLimit=function(o){t.Message.setProto3IntField(this,1,o)};proto.vertexvis.protobuf.core.OffsetPager.prototype.getCursor=function(){return t.Message.getFieldWithDefault(this,2,"")};proto.vertexvis.protobuf.core.OffsetPager.prototype.setCursor=function(o){t.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],o)};proto.vertexvis.protobuf.core.OffsetPager.prototype.clearCursor=function(){t.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],undefined)};proto.vertexvis.protobuf.core.OffsetPager.prototype.hasCursor=function(){return t.Message.getField(this,2)!=null};proto.vertexvis.protobuf.core.OffsetPager.prototype.getOffset=function(){return t.Message.getFieldWithDefault(this,3,0)};proto.vertexvis.protobuf.core.OffsetPager.prototype.setOffset=function(o){t.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],o)};proto.vertexvis.protobuf.core.OffsetPager.prototype.clearOffset=function(){t.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],undefined)};proto.vertexvis.protobuf.core.OffsetPager.prototype.hasOffset=function(){return t.Message.getField(this,3)!=null};proto.vertexvis.protobuf.core.Cursor=function(o){t.Message.initialize(this,o,0,-1,null,null)};e.inherits(proto.vertexvis.protobuf.core.Cursor,t.Message);if(e.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.Cursor.displayName="proto.vertexvis.protobuf.core.Cursor"}if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.Cursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Cursor.toObject(t,this)};proto.vertexvis.protobuf.core.Cursor.toObject=function(o,r){var e={next:t.Message.getFieldWithDefault(r,1,"")};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.core.Cursor.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.core.Cursor;return proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readString();t.setNext(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.Cursor.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getNext();if(r.length>0){o.writeString(1,r)}};proto.vertexvis.protobuf.core.Cursor.prototype.getNext=function(){return t.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.core.Cursor.prototype.setNext=function(o){t.Message.setProto3StringField(this,1,o)};proto.vertexvis.protobuf.core.OffsetCursor=function(o){t.Message.initialize(this,o,0,-1,null,null)};e.inherits(proto.vertexvis.protobuf.core.OffsetCursor,t.Message);if(e.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.OffsetCursor.displayName="proto.vertexvis.protobuf.core.OffsetCursor"}if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.OffsetCursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetCursor.toObject(t,this)};proto.vertexvis.protobuf.core.OffsetCursor.toObject=function(o,r){var e={total:t.Message.getFieldWithDefault(r,1,0),next:t.Message.getFieldWithDefault(r,2,"")};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.core.OffsetCursor;return proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readUint32();t.setTotal(e);break;case 2:var e=o.readString();t.setNext(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.OffsetCursor.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getTotal();if(r!==0){o.writeUint32(1,r)}r=t.getNext();if(r.length>0){o.writeString(2,r)}};proto.vertexvis.protobuf.core.OffsetCursor.prototype.getTotal=function(){return t.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.core.OffsetCursor.prototype.setTotal=function(o){t.Message.setProto3IntField(this,1,o)};proto.vertexvis.protobuf.core.OffsetCursor.prototype.getNext=function(){return t.Message.getFieldWithDefault(this,2,"")};proto.vertexvis.protobuf.core.OffsetCursor.prototype.setNext=function(o){t.Message.setProto3StringField(this,2,o)};e.object.extend(r,proto.vertexvis.protobuf.core)}));var c=e((function(o,r){var e=t;var n=Function("return this")();e.exportSymbol("proto.vertexvis.protobuf.core.Uuid",null,n);e.exportSymbol("proto.vertexvis.protobuf.core.Uuid2l",null,n);proto.vertexvis.protobuf.core.Uuid=function(o){t.Message.initialize(this,o,0,-1,null,null)};e.inherits(proto.vertexvis.protobuf.core.Uuid,t.Message);if(e.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.Uuid.displayName="proto.vertexvis.protobuf.core.Uuid"}if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.Uuid.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid.toObject(t,this)};proto.vertexvis.protobuf.core.Uuid.toObject=function(o,r){var e={hex:t.Message.getFieldWithDefault(r,1,"")};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.core.Uuid.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.core.Uuid;return proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readString();t.setHex(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.Uuid.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getHex();if(r.length>0){o.writeString(1,r)}};proto.vertexvis.protobuf.core.Uuid.prototype.getHex=function(){return t.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.core.Uuid.prototype.setHex=function(o){t.Message.setProto3StringField(this,1,o)};proto.vertexvis.protobuf.core.Uuid2l=function(o){t.Message.initialize(this,o,0,-1,null,null)};e.inherits(proto.vertexvis.protobuf.core.Uuid2l,t.Message);if(e.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.Uuid2l.displayName="proto.vertexvis.protobuf.core.Uuid2l"}if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.Uuid2l.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid2l.toObject(t,this)};proto.vertexvis.protobuf.core.Uuid2l.toObject=function(o,r){var e={msb:t.Message.getFieldWithDefault(r,1,"0"),lsb:t.Message.getFieldWithDefault(r,2,"0")};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.core.Uuid2l.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.core.Uuid2l;return proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readSfixed64String();t.setMsb(e);break;case 2:var e=o.readSfixed64String();t.setLsb(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.Uuid2l.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getMsb();if(parseInt(r,10)!==0){o.writeSfixed64String(1,r)}r=t.getLsb();if(parseInt(r,10)!==0){o.writeSfixed64String(2,r)}};proto.vertexvis.protobuf.core.Uuid2l.prototype.getMsb=function(){return t.Message.getFieldWithDefault(this,1,"0")};proto.vertexvis.protobuf.core.Uuid2l.prototype.setMsb=function(o){t.Message.setProto3StringIntField(this,1,o)};proto.vertexvis.protobuf.core.Uuid2l.prototype.getLsb=function(){return t.Message.getFieldWithDefault(this,2,"0")};proto.vertexvis.protobuf.core.Uuid2l.prototype.setLsb=function(o){t.Message.setProto3StringIntField(this,2,o)};e.object.extend(r,proto.vertexvis.protobuf.core)}));var p=e((function(r,e){var n=t;var i=Function("return this")();n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Node",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Range",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType",null,i);proto.vertexvis.protobuf.scenetree.v1alpha1.Node=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Node,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Node.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Node"}proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_=[10];if(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(r,e){var n,i={id:(n=e.getId())&&c.Uuid.toObject(r,n),depth:t.Message.getFieldWithDefault(e,2,0),name:t.Message.getFieldWithDefault(e,3,""),visible:t.Message.getFieldWithDefault(e,4,false),selected:t.Message.getFieldWithDefault(e,5,false),expanded:t.Message.getFieldWithDefault(e,6,false),isLeaf:t.Message.getFieldWithDefault(e,7,false),suppliedId:(n=e.getSuppliedId())&&o.StringValue.toObject(r,n),partiallyVisible:t.Message.getFieldWithDefault(e,9,false),columnsList:t.Message.getRepeatedField(e,10),filterHit:t.Message.getFieldWithDefault(e,11,false),phantom:t.Message.getFieldWithDefault(e,12,false),endItem:t.Message.getFieldWithDefault(e,13,false)};if(r){i.$jspbMessageInstance=e}return i}}proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Node;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var n=new c.Uuid;r.readMessage(n,c.Uuid.deserializeBinaryFromReader);t.setId(n);break;case 2:var n=r.readUint32();t.setDepth(n);break;case 3:var n=r.readString();t.setName(n);break;case 4:var n=r.readBool();t.setVisible(n);break;case 5:var n=r.readBool();t.setSelected(n);break;case 6:var n=r.readBool();t.setExpanded(n);break;case 7:var n=r.readBool();t.setIsLeaf(n);break;case 8:var n=new o.StringValue;r.readMessage(n,o.StringValue.deserializeBinaryFromReader);t.setSuppliedId(n);break;case 9:var n=r.readBool();t.setPartiallyVisible(n);break;case 10:var n=r.readString();t.addColumns(n);break;case 11:var n=r.readBool();t.setFilterHit(n);break;case 12:var n=r.readBool();t.setPhantom(n);break;case 13:var n=r.readBool();t.setEndItem(n);break;default:r.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,r){var e=undefined;e=t.getId();if(e!=null){r.writeMessage(1,e,c.Uuid.serializeBinaryToWriter)}e=t.getDepth();if(e!==0){r.writeUint32(2,e)}e=t.getName();if(e.length>0){r.writeString(3,e)}e=t.getVisible();if(e){r.writeBool(4,e)}e=t.getSelected();if(e){r.writeBool(5,e)}e=t.getExpanded();if(e){r.writeBool(6,e)}e=t.getIsLeaf();if(e){r.writeBool(7,e)}e=t.getSuppliedId();if(e!=null){r.writeMessage(8,e,o.StringValue.serializeBinaryToWriter)}e=t.getPartiallyVisible();if(e){r.writeBool(9,e)}e=t.getColumnsList();if(e.length>0){r.writeRepeatedString(10,e)}e=t.getFilterHit();if(e){r.writeBool(11,e)}e=t.getPhantom();if(e){r.writeBool(12,e)}e=t.getEndItem();if(e){r.writeBool(13,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getId=function(){return t.Message.getWrapperField(this,c.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,r){t.Message.addToRepeatedField(this,10,o,r)};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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,t.Message);if(n.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,r){var e={start:t.Message.getFieldWithDefault(r,1,0)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readInt32();t.setStart(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getStart();if(r!==0){o.writeInt32(1,r)}};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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Range,t.Message);if(n.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,r){var e={start:t.Message.getFieldWithDefault(r,1,0),end:t.Message.getFieldWithDefault(r,2,0)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readInt32();t.setStart(e);break;case 2:var e=o.readInt32();t.setEnd(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getStart();if(r!==0){o.writeInt32(1,r)}r=t.getEnd();if(r!==0){o.writeInt32(2,r)}};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getStart=function(){return 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange"}proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_=[1,2,3,4,5];if(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,r){var e={hiddenList:t.Message.toObjectList(r.getHiddenList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),shownList:t.Message.toObjectList(r.getShownList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),selectedList:t.Message.toObjectList(r.getSelectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),deselectedList:t.Message.toObjectList(r.getDeselectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),partiallyVisibleList:t.Message.toObjectList(r.getPartiallyVisibleList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addHidden(e);break;case 2:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addShown(e);break;case 3:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addSelected(e);break;case 4:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addDeselected(e);break;case 5:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addPartiallyVisible(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getHiddenList();if(r.length>0){o.writeRepeatedMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}r=t.getShownList();if(r.length>0){o.writeRepeatedMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}r=t.getSelectedList();if(r.length>0){o.writeRepeatedMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}r=t.getDeselectedList();if(r.length>0){o.writeRepeatedMessage(4,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}r=t.getPartiallyVisibleList();if(r.length>0){o.writeRepeatedMessage(5,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getHiddenList=function(){return 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,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};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,r){return t.Message.addToRepeatedWrapperField(this,2,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};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,r){return t.Message.addToRepeatedWrapperField(this,3,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};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,r){return t.Message.addToRepeatedWrapperField(this,4,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};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,r){return t.Message.addToRepeatedWrapperField(this,5,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.serializeBinary=function(){var 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.TreeChangeType=function(o){t.Message.initialize(this,o,0,-1,null,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType"}proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_=[[1,2,3]];proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase={SEALED_VALUE_NOT_SET:0,LIST_CHANGE:1,RANGES:2,KEEP_ALIVE:3};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getSealedValueCase=function(){return 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 r,e={listChange:(r=o.getListChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,r),ranges:(r=o.getRanges())&&proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,r),keepAlive:(r=o.getKeepAlive())&&proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader);t.setListChange(e);break;case 2:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader);t.setRanges(e);break;case 3:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader);t.setKeepAlive(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getListChange();if(r!=null){o.writeMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter)}r=t.getRanges();if(r!=null){o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter)}r=t.getKeepAlive();if(r!=null){o.writeMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getListChange=function(){return 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.ColumnKey=function(o){t.Message.initialize(this,o,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,t.Message);if(n.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,r){var e={value:t.Message.getFieldWithDefault(r,1,"")};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readString();t.setValue(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getValue();if(r.length>0){o.writeString(1,r)}};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)};n.object.extend(e,proto.vertexvis.protobuf.scenetree.v1alpha1)}));var f=e((function(r,e){var n=t;var i=Function("return this")();n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse",null,i);proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_=[3];if(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,r){var e,n={viewId:(e=r.getViewId())&&c.Uuid.toObject(o,e),pager:(e=r.getPager())&&a.OffsetPager.toObject(o,e),additionalColumnKeysList:t.Message.getRepeatedField(r,3)};if(o){n.$jspbMessageInstance=r}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setViewId(e);break;case 2:var e=new a.OffsetPager;o.readMessage(e,a.OffsetPager.deserializeBinaryFromReader);t.setPager(e);break;case 3:var e=o.readString();t.addAdditionalColumnKeys(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getViewId();if(r!=null){o.writeMessage(1,r,c.Uuid.serializeBinaryToWriter)}r=t.getPager();if(r!=null){o.writeMessage(2,r,a.OffsetPager.serializeBinaryToWriter)}r=t.getAdditionalColumnKeysList();if(r.length>0){o.writeRepeatedString(3,r)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,c.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,a.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,r){t.Message.addToRepeatedField(this,3,o,r)};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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_=[1];if(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,r){var e,n={itemsList:t.Message.toObjectList(r.getItemsList(),p.Node.toObject,o),totalVisible:t.Message.getFieldWithDefault(r,2,0),cursor:(e=r.getCursor())&&a.OffsetCursor.toObject(o,e)};if(o){n.$jspbMessageInstance=r}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new p.Node;o.readMessage(e,p.Node.deserializeBinaryFromReader);t.addItems(e);break;case 2:var e=o.readUint32();t.setTotalVisible(e);break;case 3:var e=new a.OffsetCursor;o.readMessage(e,a.OffsetCursor.deserializeBinaryFromReader);t.setCursor(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getItemsList();if(r.length>0){o.writeRepeatedMessage(1,r,p.Node.serializeBinaryToWriter)}r=t.getTotalVisible();if(r!==0){o.writeUint32(2,r)}r=t.getCursor();if(r!=null){o.writeMessage(3,r,a.OffsetCursor.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getItemsList=function(){return 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,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,r)};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,a.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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest,t.Message);if(n.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 r,e={viewId:(r=o.getViewId())&&c.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&c.Uuid.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setViewId(e);break;case 2:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setNodeId(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getViewId();if(r!=null){o.writeMessage(1,r,c.Uuid.serializeBinaryToWriter)}r=t.getNodeId();if(r!=null){o.writeMessage(2,r,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,c.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,c.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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest,t.Message);if(n.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 r,e={viewId:(r=o.getViewId())&&c.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&c.Uuid.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setViewId(e);break;case 2:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setNodeId(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getViewId();if(r!=null){o.writeMessage(1,r,c.Uuid.serializeBinaryToWriter)}r=t.getNodeId();if(r!=null){o.writeMessage(2,r,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,c.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,c.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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest,t.Message);if(n.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 r,e={viewId:(r=o.getViewId())&&c.Uuid.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setViewId(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getViewId();if(r!=null){o.writeMessage(1,r,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,c.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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse,t.Message);if(n.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 r,e={change:(r=o.getChange())&&p.TreeChangeType.toObject(t,r),handshake:(r=o.getHandshake())&&proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new p.TreeChangeType;o.readMessage(e,p.TreeChangeType.deserializeBinaryFromReader);t.setChange(e);break;case 2:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader);t.setHandshake(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getChange();if(r!=null){o.writeMessage(1,r,p.TreeChangeType.serializeBinaryToWriter)}r=t.getHandshake();if(r!=null){o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getChange=function(){return 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_=[3];if(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,r){var e={filter:t.Message.getFieldWithDefault(r,1,""),fullTree:t.Message.getFieldWithDefault(r,2,false),columnsKeysList:t.Message.getRepeatedField(r,3),exactMatch:t.Message.getFieldWithDefault(r,4,false)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readString();t.setFilter(e);break;case 2:var e=o.readBool();t.setFullTree(e);break;case 3:var e=o.readString();t.addColumnsKeys(e);break;case 4:var e=o.readBool();t.setExactMatch(e);break;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 r=undefined;r=t.getFilter();if(r.length>0){o.writeString(1,r)}r=t.getFullTree();if(r){o.writeBool(2,r)}r=t.getColumnsKeysList();if(r.length>0){o.writeRepeatedString(3,r)}r=t.getExactMatch();if(r){o.writeBool(4,r)}};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,r){t.Message.addToRepeatedField(this,3,o,r)};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.FilterResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse,t.Message);if(n.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,r){var e={numberOfResults:t.Message.getFieldWithDefault(r,1,0)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readUint32();t.setNumberOfResults(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getNumberOfResults();if(r!==0){o.writeUint32(1,r)}};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.LocateItemRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest,t.Message);if(n.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 r,e={nodeId:(r=o.getNodeId())&&c.Uuid.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 2:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setNodeId(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getNodeId();if(r!=null){o.writeMessage(2,r,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,c.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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse,t.Message);if(n.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(r,e){var n,i={locatedIndex:(n=e.getLocatedIndex())&&o.UInt64Value.toObject(r,n),requiresReload:t.Message.getFieldWithDefault(e,2,false)};if(r){i.$jspbMessageInstance=e}return i}}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var n=new o.UInt64Value;r.readMessage(n,o.UInt64Value.deserializeBinaryFromReader);t.setLocatedIndex(n);break;case 2:var n=r.readBool();t.setRequiresReload(n);break;default:r.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,r){var e=undefined;e=t.getLocatedIndex();if(e!=null){r.writeMessage(1,e,o.UInt64Value.serializeBinaryToWriter)}e=t.getRequiresReload();if(e){r.writeBool(2,e)}};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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest,t.Message);if(n.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 r,e={nodeId:(r=o.getNodeId())&&c.Uuid.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setNodeId(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getNodeId();if(r!=null){o.writeMessage(1,r,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,c.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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_=[1];if(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,r){var e={itemsList:t.Message.toObjectList(r.getItemsList(),p.Node.toObject,o)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new p.Node;o.readMessage(e,p.Node.deserializeBinaryFromReader);t.addItems(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getItemsList();if(r.length>0){o.writeRepeatedMessage(1,r,p.Node.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.getItemsList=function(){return 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,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,r)};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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_=[1];if(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,r){var e={keysList:t.Message.toObjectList(r.getKeysList(),p.ColumnKey.toObject,o)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new p.ColumnKey;o.readMessage(e,p.ColumnKey.deserializeBinaryFromReader);t.addKeys(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getKeysList();if(r.length>0){o.writeRepeatedMessage(1,r,p.ColumnKey.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getKeysList=function(){return 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,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.clearKeysList=function(){this.setKeysList([])};n.object.extend(e,proto.vertexvis.protobuf.scenetree.v1alpha1)}));var l;(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"})(l||(l={}));class h{constructor(t,o,r){this.name=t;this.code=o;this.link=r;this.message=v(o)}}function v(t){switch(t){case l.UNKNOWN:return"An unknown error occurred.";case l.SCENE_TREE_DISABLED:return"The tree for this scene is not enabled. Enable the tree for this scene to interact with the tree.";case l.MISSING_VIEWER:return"Could not find reference to the viewer.";case l.DISCONNECTED:return"Disconnected from server.";case l.SUBSCRIPTION_FAILURE:return"The tree was not able to receive subscription events.";case l.UNAUTHORIZED:return"The tree was unauthorized to connect to the server. The associated Viewer may not be connected.";case l.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=r.grpc;var E=function(){function t(){}t.serviceName="vertexvis.protobuf.scenetree.v1alpha1.SceneTreeAPI";return t}();E.GetTree={methodName:"GetTree",service:E,requestStream:false,responseStream:false,requestType:f.GetTreeRequest,responseType:f.GetTreeResponse};E.ExpandNode={methodName:"ExpandNode",service:E,requestStream:false,responseStream:false,requestType:f.ExpandNodeRequest,responseType:f.ExpandNodeResponse};E.CollapseNode={methodName:"CollapseNode",service:E,requestStream:false,responseStream:false,requestType:f.CollapseNodeRequest,responseType:f.CollapseNodeResponse};E.Subscribe={methodName:"Subscribe",service:E,requestStream:false,responseStream:true,requestType:f.SubscribeRequest,responseType:f.SubscribeResponse};E.Filter={methodName:"Filter",service:E,requestStream:false,responseStream:false,requestType:f.FilterRequest,responseType:f.FilterResponse};E.LocateItem={methodName:"LocateItem",service:E,requestStream:false,responseStream:false,requestType:f.LocateItemRequest,responseType:f.LocateItemResponse};E.ExpandAll={methodName:"ExpandAll",service:E,requestStream:false,responseStream:false,requestType:f.ExpandAllRequest,responseType:f.ExpandAllResponse};E.CollapseAll={methodName:"CollapseAll",service:E,requestStream:false,responseStream:false,requestType:f.CollapseAllRequest,responseType:f.CollapseAllResponse};E.GetNodeAncestors={methodName:"GetNodeAncestors",service:E,requestStream:false,responseStream:false,requestType:f.GetNodeAncestorsRequest,responseType:f.GetNodeAncestorsResponse};E.GetAvailableColumns={methodName:"GetAvailableColumns",service:E,requestStream:false,responseStream:false,requestType:f.GetAvailableColumnsRequest,responseType:f.GetAvailableColumnsResponse};var x=E;function g(t,o){this.serviceHost=t;this.options=o||{}}g.prototype.getTree=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.GetTree,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.expandNode=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.ExpandNode,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.collapseNode=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.CollapseNode,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.subscribe=function t(o,r){var e={data:[],end:[],status:[]};var n=m.invoke(E.Subscribe,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onMessage:function(t){e.data.forEach((function(o){o(t)}))},onEnd:function(t,o,r){e.status.forEach((function(e){e({code:t,details:o,metadata:r})}));e.end.forEach((function(e){e({code:t,details:o,metadata:r})}));e=null}});return{on:function(t,o){e[t].push(o);return this},cancel:function(){e=null;n.close()}}};g.prototype.filter=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.Filter,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.locateItem=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.LocateItem,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.expandAll=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.ExpandAll,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.collapseAll=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.CollapseAll,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.getNodeAncestors=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.GetNodeAncestors,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.getAvailableColumns=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.GetAvailableColumns,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};var O=g;function R(t){return typeof t.code==="number"&&t.hasOwnProperty("metadata")}function y(t){if(t.methodDefinition.methodName===x.Subscribe.methodName){return r.grpc.WebsocketTransport()(t)}else{return r.grpc.CrossBrowserHttpTransport({withCredentials:false})(t)}}function I(t){this.message=t}I.prototype=new Error,I.prototype.name="InvalidCharacterError";var C="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var o=String(t).replace(/=+$/,"");if(o.length%4==1)throw new I("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,e,n=0,i=0,s="";e=o.charAt(i++);~e&&(r=n%4?64*r+e:e,n++%4)?s+=String.fromCharCode(255&r>>(-2*n&6)):0)e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);return s};function S(t){var o=t.replace(/-/g,"+").replace(/_/g,"/");switch(o.length%4){case 0:break;case 2:o+="==";break;case 3:o+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(C(t).replace(/(.)/g,(function(t,o){var r=o.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(o)}catch(t){return C(o)}}function L(t){this.message=t}function T(t,o){if("string"!=typeof t)throw new L("Invalid token specified");var r=!0===(o=o||{}).header?0:1;try{return JSON.parse(S(t.split(".")[r]))}catch(t){throw new L("Invalid token specified: "+t.message)}}L.prototype=new Error,L.prototype.name="InvalidTokenError";function P(t){return T(t)}class N{constructor(t,o,r={spinnerDelay:2e3,subscriptionHandshakeGracePeriodInMs:5e3}){this.client=t;this.rowLimit=o;this.connectOptions=r;this.nextPageId=0;this.pages=new Map;this.activeRowRange=[0,0];this.metadataKeys=[];this.debugLogs=false;this.onStateChange=new n;this.state={totalRows:0,isSearching:false,rows:[],connection:{type:"disconnected"}}}get fetchedPageCount(){return this.pages.size}get isConnected(){return this.state.connection.type==="connected"}stateChanged(t){return this.onStateChange.on(t)}setDebugLogs(t){this.debugLogs=t}async handleSubscriptionHandshakeTimeout(t,o){var r;const e=this.getState().connection;if(this.isConnectedState(e)&&((r=e.subscriptionStatusState)===null||r===void 0?void 0:r.attempt)!=null&&e.subscriptionStatusState.attempt<N.MAX_SUBSCRIPTION_RETRY_COUNT){const r=e.subscriptionStatusState.attempt+1;console.warn(`Failed to subscribe within the allotted timeout. Retry attempt={${r}}`);e.subscriptionStatusState.stream.cancel();this.clearHandshakeTimer();const n=await this.subscribe();this.invalidateAfterOffset(0);this.fetchUnloadedPagesInActiveRows();this.updateState(Object.assign(Object.assign({},this.state),{connection:Object.assign(Object.assign({},e),{type:"connected",subscription:{dispose:()=>n.cancel()},subscriptionStatusState:{attempt:r,stream:n}})}));this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,o)}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}else{this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:o,details:new h("SUBSCRIPTION_FAILURE",l.SUBSCRIPTION_FAILURE)}}))}}async connect(t){const{connection:o}=this.state;const r=t();if(r==null){throw new w("Cannot connect scene tree. JWT is undefined")}const{view:e}=P(r);if(o.sceneViewId!==e){this.disconnect(true)}else{this.disconnect(false)}const n={type:"connecting",jwtProvider:t,sceneViewId:e};this.updateState(Object.assign(Object.assign({},this.state),{connection:n}));try{this.log("Scene tree controller connecting.");const[,o]=await Promise.all([this.fetchPage(0),this.subscribe()]);if(this.state.connection.type!=="cancelled"){this.updateState(Object.assign(Object.assign({},this.state),{connection:{jwtProvider:t,sceneViewId:e,type:"connected",subscription:{dispose:()=>o.cancel()},subscriptionStatusState:{attempt:0,stream:o}}}));this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,e)}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}}catch(o){this.ifErrorIsFatal(o,(()=>{this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:e,details:this.getConnectionError(o)}}));this.clearHandshakeTimer();throw o}))}this.startIdleReconnectTimer()}clearReconnectTimer(){if(this.reconnectTimer!=null){window.clearTimeout(this.reconnectTimer)}}clearHandshakeTimer(){if(this.subscriptionHandshakeTimer!=null){window.clearTimeout(this.subscriptionHandshakeTimer)}}startIdleReconnectTimer(){this.startReconnectTimer(this.connectOptions.idleReconnectInSeconds||N.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||N.LOST_CONNECTION_RECONNECT_IN_SECONDS)}startReconnectTimer(t){this.clearReconnectTimer();this.reconnectTimer=window.setTimeout((()=>{if(this.state.connection.type==="connected"){this.connect(this.state.connection.jwtProvider)}}),t*1e3)}connectToViewer(t){const o=async()=>{if(t.token!=null){this.log("Scene tree controller found viewer JWT. Attempting connection.");try{await this.connect((()=>t.token))}catch(t){this.ifErrorIsFatal(t,(()=>{console.error("Scene tree controller errored connecting.",t)}))}}};const r=()=>{this.log("Scene tree controller received scene ready");o()};o();t.addEventListener("sceneReady",r);return{dispose:()=>{t.removeEventListener("sceneReady",r);this.disconnect()}}}disconnect(t=false){this.log(`Scene tree controller disconnecting [reset=${t}]`);this.clearHandshakeTimer();this.clearReconnectTimer();if(t){this.pages.clear();this.activeRowRange=[]}const{connection:o}=this.state;if(o.type==="connected"){o.subscription.dispose()}this.updateState({connection:{type:"disconnected",jwtProvider:o.jwtProvider,sceneViewId:o.sceneViewId},isSearching:false,totalRows:t?0:this.state.totalRows,rows:t?[]:this.state.rows,filterTerm:t?undefined:this.state.filterTerm,totalFilteredRows:t?undefined:this.state.totalFilteredRows,shouldShowEmptyResults:t?undefined:this.state.shouldShowEmptyResults})}cancel(){this.log(`Scene tree controller cancelled`);this.clearHandshakeTimer();this.clearReconnectTimer();this.pages.clear();this.activeRowRange=[];const{connection:t}=this.state;if(t.type==="connected"){t.subscription.dispose()}this.updateState({connection:{type:"cancelled",jwtProvider:t.jwtProvider,sceneViewId:t.sceneViewId},isSearching:false,totalRows:0,rows:[]})}async collapseNode(t){return this.ifConnectionHasJwt((async o=>{const r=new c.Uuid;r.setHex(t);const e=new f.CollapseNodeRequest;e.setNodeId(r);await this.requestUnary(o,((t,o)=>this.client.collapseNode(e,t,o)))}))}async expandNode(t){return this.ifConnectionHasJwt((async o=>{const r=new c.Uuid;r.setHex(t);const e=new f.ExpandNodeRequest;e.setNodeId(r);await this.requestUnary(o,((t,o)=>this.client.expandNode(e,t,o)))}))}async collapseAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.collapseAll(new f.CollapseAllRequest,t,o)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.expandAll(new f.ExpandAllRequest,t,o)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async o=>{const r=new c.Uuid;r.setHex(t);const e=new f.LocateItemRequest;e.setNodeId(r);const n=await this.requestUnary(o,((t,o)=>this.client.locateItem(e,t,o)));const{requiresReload:i,locatedIndex:s}=n.toObject();if(i){this.invalidateAfterOffset(0);await this.fetchUnloadedPagesInActiveRows()}if(s==null){throw new k("Cannot locate node. Location index is undefined.")}return s.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async o=>{const r=new c.Uuid;r.setHex(t);const e=new f.GetNodeAncestorsRequest;e.setNodeId(r);const n=await this.requestUnary(o,((t,o)=>this.client.getNodeAncestors(e,t,o)));return n.toObject().itemsList}))}async fetchPage(t){return this.ifConnectionHasJwt((async o=>{var r;if(t<0||t>this.maxPages-1){return}if(!this.pages.has(t)){const r=t*this.rowLimit;this.log("Scene tree fetching page",t,r);const e=this.fetchTree(r,this.rowLimit,o);const n=this.nextPageId++;const i={id:n,res:e,index:t,metadataKeys:this.metadataKeys};this.pages.set(t,i);this.handlePageResult(i)}await((r=this.pages.get(t))===null||r===void 0?void 0:r.res)}))}fetchPageAtOffset(t){const o=Math.floor(t/this.rowLimit);return this.fetchPage(o)}async fetchRange(t,o){const r=Math.floor(t/this.rowLimit);const e=Math.floor(o/this.rowLimit);const[n,i]=this.constrainPageRange(r,e);const s=i-n+1;await Promise.all(Array.from({length:s}).map(((t,o)=>this.fetchPage(o))))}async fetchMetadataKeys(){return this.ifConnectionHasJwt((async t=>{const o=await this.requestUnary(t,((t,o)=>{const r=new f.GetAvailableColumnsRequest;this.client.getAvailableColumns(r,t,o)}));return o.getKeysList().map((t=>t.getValue()))}))}async filter(t,o={}){return this.ifConnectionHasJwt((async r=>{this.updateState(Object.assign(Object.assign({},this.state),{isSearching:true,filterTerm:t!==""?t:undefined}));try{const e=await this.requestUnary(r,((r,e)=>{var n;const i=new f.FilterRequest;i.setFilter(t);i.setFullTree((n=o.includeCollapsed)!==null&&n!==void 0?n:true);i.setExactMatch(!!o.exactMatch);if(o.columns)i.setColumnsKeysList(o.columns);this.client.filter(i,r,e)}));const{numberOfResults:n}=e.toObject();this.updateState(Object.assign(Object.assign({},this.state),{totalFilteredRows:n,isSearching:false}))}catch(t){console.error("Failed to filter search ",t);this.updateState(Object.assign(Object.assign({},this.state),{isSearching:false}))}}))}isPageLoaded(t){return this.pages.has(t)}getNonLoadedPageIndexes(t,o){const[r,e]=this.constrainPageRange(t,o);const n=e-r+1;return Array.from({length:n}).map(((t,o)=>r+o)).filter((t=>!this.isPageLoaded(t)))}getPage(t){return this.pages.get(t)}invalidatePagesOutsideRange(t,o,r=0){const[e,n]=this.constrainPageRange(t,o);const i=Math.max(n-e,r);if(this.fetchedPageCount>i){const t=Array.from(this.pages.keys()).map((t=>{const o=t<e?e-t:t-n;return{index:t,distance:o}}));const o=t.sort(((t,o)=>o.distance-t.distance));o.slice(0,t.length-r).forEach((({index:t})=>this.invalidatePage(t)));this.log(`Scene tree dropped ${t.length-this.fetchedPageCount} pages`,this.pages)}}setMetadataKeys(t){this.metadataKeys=t;if(this.state.connection.type==="connected"){const[t,o]=this.activeRowRange;this.invalidateAfterOffset(0);return this.updateActiveRowRange(t,o)}else{return Promise.resolve()}}async updateActiveRowRange(t,o){this.activeRowRange=this.constrainRowOffsets(t,o);this.tryClearLoadingTimer(this.state);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.startIdleReconnectTimer();const{change:o}=t.toObject();if((o===null||o===void 0?void 0:o.listChange)!=null){this.log("Received list change",o.listChange.start);this.invalidateAfterOffset(o.listChange.start);this.fetchUnloadedPagesInActiveRows()}const{hiddenList:r=[],shownList:e=[],partiallyVisibleList:n=[],deselectedList:i=[],selectedList:s=[]}=(o===null||o===void 0?void 0:o.ranges)||{};if(n.length>0){this.log("Received partial visibility list change",n);n.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({partiallyVisible:true})))))}if(r.length>0){this.log("Received hidden list change",r);r.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:false,partiallyVisible:false})))))}if(e.length>0){this.log("Received shown list change",e);e.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:true,partiallyVisible:false})))))}if(i.length>0){this.log("Received deselected list change",i);i.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:false})))))}if(s.length>0){this.log("Received selected list change",s);s.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:true})))))}}));o.on("status",(t=>{if(t.code!==0){console.error(`Failed to subscribe to scene tree with code=${t.code}, details=${t.details}`);this.invalidateAfterOffset(0)}}));o.on("end",(()=>{this.invalidateAfterOffset(0);if(this.state.connection.type==="connected"){this.startConnectionLostReconnectTimer()}}));return o}))}async fetchUnloadedPagesInActiveRows(){const[t,o]=this.getPageIndexesForRange(this.activeRowRange[0],this.activeRowRange[1]);const r=this.getNonLoadedPageIndexes(t-1,o+1);await Promise.all(r.map((t=>this.fetchPage(t))))}patchNodesInRange(t,o,r){const e=this.state.rows.slice(t,o+1).map((t=>s(t)?Object.assign(Object.assign({},t),{node:Object.assign(Object.assign({},t.node),r(t.node))}):t));const n=this.state.rows.slice(0,t);const i=this.state.rows.slice(o+1);const u=[...n,...e,...i];this.updateState(Object.assign(Object.assign({},this.state),{rows:u}))}async handlePageResult(t){var o;try{const r=await t.res;const e=this.getPage(t.index);if((e===null||e===void 0?void 0:e.id)===t.id){const n=r.getCursor();const i=r.getItemsList();const s=(o=n===null||n===void 0?void 0:n.getTotal())!==null&&o!==void 0?o:0;const a=t.index*this.rowLimit;const c=u(a,i,e.metadataKeys);const p=this.state.rows.slice(0,a);const f=this.state.rows.slice(p.length+c.length,s);const l=new Array(Math.max(0,s-p.length-c.length-f.length));const h=[...p,...c,...f,...l];if(this.isViewLoading(h)&&this.loadingTimer==null){this.restartLoadingTimer();this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:h,shouldShowEmptyResults:this.state.filterTerm!=null&&(h.length===0||this.state.totalFilteredRows===0)}))}else{this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:h,shouldShowEmptyResults:this.state.filterTerm!=null&&(h.length===0||this.state.totalFilteredRows===0)}))}}}catch(o){const r=o instanceof Error?o.toString():"Unknown";console.error(`Request error fetching page at index ${t.index} (${r})`);const e=this.getPage(t.index);if((e===null||e===void 0?void 0:e.id)===t.id){this.invalidatePage(t.index)}}}invalidatePage(t){if(this.isPageLoaded(t)){this.pages.delete(t)}}invalidateAfterOffset(t){const o=Math.floor(t/this.rowLimit);for(const t of this.pages.keys()){if(t>=o){this.invalidatePage(t)}}}getState(){return this.state}isViewLoading(t){return this.state.filterTerm==null&&t[this.activeRowRange[0]]==null&&t[this.activeRowRange[1]]==null}restartLoadingTimer(){if(this.loadingTimer!=null){this.clearLoadingTimer()}this.loadingTimer=window.setTimeout((()=>{this.loadingTimer=undefined;this.updateState(Object.assign(Object.assign({},this.getState()),{shouldShowLoading:true}))}),this.connectOptions.spinnerDelay)}clearLoadingTimer(){if(this.loadingTimer!=null){clearTimeout(this.loadingTimer);this.loadingTimer=undefined}}tryClearLoadingTimer(t){const o=this.state.shouldShowLoading||this.loadingTimer!=null;const r=o&&!this.isViewLoading(t.rows);if(r){this.clearLoadingTimer();return true}return false}updateState(t){const o=this.tryClearLoadingTimer(t);this.state=Object.assign(Object.assign({},t),{shouldShowLoading:o?false:t.shouldShowLoading});this.onStateChange.emit(this.state)}getPageForOffset(t){const o=Math.floor(t/this.rowLimit);return this.constrainPageIndex(o)}getPageIndexesForRange(t,o){const r=this.getPageForOffset(t);const e=this.getPageForOffset(o);return[r,e]}async fetchTree(t,o,r){return this.requestUnary(r,((r,e)=>{const n=new a.OffsetPager;n.setOffset(t);n.setLimit(o);const i=new f.GetTreeRequest;i.setPager(n);i.setAdditionalColumnKeysList(this.metadataKeys);this.client.getTree(i,r,e)}))}requestUnary(t,o){return new Promise(((r,e)=>{const n=this.createJwtMetadata(t);o(n,((t,o)=>{if(t!=null){e(t)}else if(o!=null){r(o)}else{e(new d("Invalid response. Both error and result are null"))}}))}))}requestServerStream(t,o){const r=this.createJwtMetadata(t);return o(r)}createJwtMetadata(t){return new r.grpc.Metadata({"jwt-context":JSON.stringify({jwt:t})})}async ifConnectionHasJwt(t){const{connection:o}=this.state;if(o.type==="connecting"||o.type==="connected"){const r=await o.jwtProvider();if(r!=null){return t(r)}else{throw new w("SceneTreeController cannot perform request. Viewer JWT is undefined.")}}else if(o.type==="cancelled"){throw new b(`Request attempted, but controller was cancelled`)}else{throw new d("SceneTreeController is not in connected state")}}ifErrorIsFatal(t,o){if(!(t instanceof b)){o()}}getConnectionError(t){if(R(t)){if(t.code===r.grpc.Code.FailedPrecondition){return new h("SCENE_TREE_DISABLED",l.SCENE_TREE_DISABLED)}else if(t.code===r.grpc.Code.Unauthenticated){return new h("UNAUTHORIZED",l.UNAUTHORIZED)}else if(t.code===r.grpc.Code.Aborted){return new h("ABORTED",l.ABORTED)}else{return new h("UNKNOWN",l.UNKNOWN)}}else if(t instanceof w){return new h("UNAUTHORIZED",l.UNAUTHORIZED)}else{return new h("UNKNOWN",l.UNKNOWN)}}constrainPageRange(t,o){return[Math.max(0,t),Math.min(this.maxPages-1,o)]}constrainPageIndex(t){return Math.max(0,Math.min(t,this.maxPages-1))}constrainRowOffsets(t,o){return[Math.max(0,t),Math.min(this.state.totalRows-1,o)]}get maxPages(){return Math.max(1,Math.ceil(this.state.totalRows/this.rowLimit))}log(t,...o){if(this.debugLogs){console.debug(t,o)}}isConnectedState(t){return t.type==="connected"}}N.IDLE_RECONNECT_IN_SECONDS=4*1;N.LOST_CONNECTION_RECONNECT_IN_SECONDS=2;N.MAX_SUBSCRIPTION_RETRY_COUNT=2;export{N as S,O as a,h as b,l as c,y as w};
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
import{g as t,w as o,a as r}from"./p-6320532c.js";import{c as e}from"./p-9acf99ad.js";import{E as n}from"./p-7f54de9d.js";import{C as i}from"./p-d45df0c0.js";import{i as s,f as u}from"./p-c5381b4a.js";var a=e((function(o,r){var e=t;var n=Function("return this")();e.exportSymbol("proto.vertexvis.protobuf.core.Cursor",null,n);e.exportSymbol("proto.vertexvis.protobuf.core.OffsetCursor",null,n);e.exportSymbol("proto.vertexvis.protobuf.core.OffsetPager",null,n);e.exportSymbol("proto.vertexvis.protobuf.core.Pager",null,n);proto.vertexvis.protobuf.core.Pager=function(o){t.Message.initialize(this,o,0,-1,null,null)};e.inherits(proto.vertexvis.protobuf.core.Pager,t.Message);if(e.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.Pager.displayName="proto.vertexvis.protobuf.core.Pager"}if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.Pager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Pager.toObject(t,this)};proto.vertexvis.protobuf.core.Pager.toObject=function(o,r){var e={limit:t.Message.getFieldWithDefault(r,1,0),cursor:t.Message.getFieldWithDefault(r,2,"")};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.core.Pager.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.core.Pager;return proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readUint32();t.setLimit(e);break;case 2:var e=o.readString();t.setCursor(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.Pager.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getLimit();if(r!==0){o.writeUint32(1,r)}r=t.getCursor();if(r.length>0){o.writeString(2,r)}};proto.vertexvis.protobuf.core.Pager.prototype.getLimit=function(){return t.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.core.Pager.prototype.setLimit=function(o){t.Message.setProto3IntField(this,1,o)};proto.vertexvis.protobuf.core.Pager.prototype.getCursor=function(){return t.Message.getFieldWithDefault(this,2,"")};proto.vertexvis.protobuf.core.Pager.prototype.setCursor=function(o){t.Message.setProto3StringField(this,2,o)};proto.vertexvis.protobuf.core.OffsetPager=function(o){t.Message.initialize(this,o,0,-1,null,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_)};e.inherits(proto.vertexvis.protobuf.core.OffsetPager,t.Message);if(e.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.OffsetPager.displayName="proto.vertexvis.protobuf.core.OffsetPager"}proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_=[[2,3]];proto.vertexvis.protobuf.core.OffsetPager.PagerCase={PAGER_NOT_SET:0,CURSOR:2,OFFSET:3};proto.vertexvis.protobuf.core.OffsetPager.prototype.getPagerCase=function(){return t.Message.computeOneofCase(this,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0])};if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.OffsetPager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetPager.toObject(t,this)};proto.vertexvis.protobuf.core.OffsetPager.toObject=function(o,r){var e={limit:t.Message.getFieldWithDefault(r,1,0),cursor:t.Message.getFieldWithDefault(r,2,""),offset:t.Message.getFieldWithDefault(r,3,0)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.core.OffsetPager.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.core.OffsetPager;return proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readUint32();t.setLimit(e);break;case 2:var e=o.readString();t.setCursor(e);break;case 3:var e=o.readUint32();t.setOffset(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.OffsetPager.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter=function(o,r){var e=undefined;e=o.getLimit();if(e!==0){r.writeUint32(1,e)}e=t.Message.getField(o,2);if(e!=null){r.writeString(2,e)}e=t.Message.getField(o,3);if(e!=null){r.writeUint32(3,e)}};proto.vertexvis.protobuf.core.OffsetPager.prototype.getLimit=function(){return t.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.core.OffsetPager.prototype.setLimit=function(o){t.Message.setProto3IntField(this,1,o)};proto.vertexvis.protobuf.core.OffsetPager.prototype.getCursor=function(){return t.Message.getFieldWithDefault(this,2,"")};proto.vertexvis.protobuf.core.OffsetPager.prototype.setCursor=function(o){t.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],o)};proto.vertexvis.protobuf.core.OffsetPager.prototype.clearCursor=function(){t.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],undefined)};proto.vertexvis.protobuf.core.OffsetPager.prototype.hasCursor=function(){return t.Message.getField(this,2)!=null};proto.vertexvis.protobuf.core.OffsetPager.prototype.getOffset=function(){return t.Message.getFieldWithDefault(this,3,0)};proto.vertexvis.protobuf.core.OffsetPager.prototype.setOffset=function(o){t.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],o)};proto.vertexvis.protobuf.core.OffsetPager.prototype.clearOffset=function(){t.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],undefined)};proto.vertexvis.protobuf.core.OffsetPager.prototype.hasOffset=function(){return t.Message.getField(this,3)!=null};proto.vertexvis.protobuf.core.Cursor=function(o){t.Message.initialize(this,o,0,-1,null,null)};e.inherits(proto.vertexvis.protobuf.core.Cursor,t.Message);if(e.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.Cursor.displayName="proto.vertexvis.protobuf.core.Cursor"}if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.Cursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Cursor.toObject(t,this)};proto.vertexvis.protobuf.core.Cursor.toObject=function(o,r){var e={next:t.Message.getFieldWithDefault(r,1,"")};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.core.Cursor.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.core.Cursor;return proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readString();t.setNext(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.Cursor.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getNext();if(r.length>0){o.writeString(1,r)}};proto.vertexvis.protobuf.core.Cursor.prototype.getNext=function(){return t.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.core.Cursor.prototype.setNext=function(o){t.Message.setProto3StringField(this,1,o)};proto.vertexvis.protobuf.core.OffsetCursor=function(o){t.Message.initialize(this,o,0,-1,null,null)};e.inherits(proto.vertexvis.protobuf.core.OffsetCursor,t.Message);if(e.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.OffsetCursor.displayName="proto.vertexvis.protobuf.core.OffsetCursor"}if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.OffsetCursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetCursor.toObject(t,this)};proto.vertexvis.protobuf.core.OffsetCursor.toObject=function(o,r){var e={total:t.Message.getFieldWithDefault(r,1,0),next:t.Message.getFieldWithDefault(r,2,"")};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.core.OffsetCursor;return proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readUint32();t.setTotal(e);break;case 2:var e=o.readString();t.setNext(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.OffsetCursor.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getTotal();if(r!==0){o.writeUint32(1,r)}r=t.getNext();if(r.length>0){o.writeString(2,r)}};proto.vertexvis.protobuf.core.OffsetCursor.prototype.getTotal=function(){return t.Message.getFieldWithDefault(this,1,0)};proto.vertexvis.protobuf.core.OffsetCursor.prototype.setTotal=function(o){t.Message.setProto3IntField(this,1,o)};proto.vertexvis.protobuf.core.OffsetCursor.prototype.getNext=function(){return t.Message.getFieldWithDefault(this,2,"")};proto.vertexvis.protobuf.core.OffsetCursor.prototype.setNext=function(o){t.Message.setProto3StringField(this,2,o)};e.object.extend(r,proto.vertexvis.protobuf.core)}));var c=e((function(o,r){var e=t;var n=Function("return this")();e.exportSymbol("proto.vertexvis.protobuf.core.Uuid",null,n);e.exportSymbol("proto.vertexvis.protobuf.core.Uuid2l",null,n);proto.vertexvis.protobuf.core.Uuid=function(o){t.Message.initialize(this,o,0,-1,null,null)};e.inherits(proto.vertexvis.protobuf.core.Uuid,t.Message);if(e.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.Uuid.displayName="proto.vertexvis.protobuf.core.Uuid"}if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.Uuid.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid.toObject(t,this)};proto.vertexvis.protobuf.core.Uuid.toObject=function(o,r){var e={hex:t.Message.getFieldWithDefault(r,1,"")};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.core.Uuid.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.core.Uuid;return proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readString();t.setHex(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.Uuid.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getHex();if(r.length>0){o.writeString(1,r)}};proto.vertexvis.protobuf.core.Uuid.prototype.getHex=function(){return t.Message.getFieldWithDefault(this,1,"")};proto.vertexvis.protobuf.core.Uuid.prototype.setHex=function(o){t.Message.setProto3StringField(this,1,o)};proto.vertexvis.protobuf.core.Uuid2l=function(o){t.Message.initialize(this,o,0,-1,null,null)};e.inherits(proto.vertexvis.protobuf.core.Uuid2l,t.Message);if(e.DEBUG&&!COMPILED){proto.vertexvis.protobuf.core.Uuid2l.displayName="proto.vertexvis.protobuf.core.Uuid2l"}if(t.Message.GENERATE_TO_OBJECT){proto.vertexvis.protobuf.core.Uuid2l.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid2l.toObject(t,this)};proto.vertexvis.protobuf.core.Uuid2l.toObject=function(o,r){var e={msb:t.Message.getFieldWithDefault(r,1,"0"),lsb:t.Message.getFieldWithDefault(r,2,"0")};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.core.Uuid2l.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.core.Uuid2l;return proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readSfixed64String();t.setMsb(e);break;case 2:var e=o.readSfixed64String();t.setLsb(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.core.Uuid2l.prototype.serializeBinary=function(){var o=new t.BinaryWriter;proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter(this,o);return o.getResultBuffer()};proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter=function(t,o){var r=undefined;r=t.getMsb();if(parseInt(r,10)!==0){o.writeSfixed64String(1,r)}r=t.getLsb();if(parseInt(r,10)!==0){o.writeSfixed64String(2,r)}};proto.vertexvis.protobuf.core.Uuid2l.prototype.getMsb=function(){return t.Message.getFieldWithDefault(this,1,"0")};proto.vertexvis.protobuf.core.Uuid2l.prototype.setMsb=function(o){t.Message.setProto3StringIntField(this,1,o)};proto.vertexvis.protobuf.core.Uuid2l.prototype.getLsb=function(){return t.Message.getFieldWithDefault(this,2,"0")};proto.vertexvis.protobuf.core.Uuid2l.prototype.setLsb=function(o){t.Message.setProto3StringIntField(this,2,o)};e.object.extend(r,proto.vertexvis.protobuf.core)}));var p=e((function(r,e){var n=t;var i=Function("return this")();n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Node",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Range",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType",null,i);proto.vertexvis.protobuf.scenetree.v1alpha1.Node=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Node,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.Node.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Node"}proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_=[10];if(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(r,e){var n,i={id:(n=e.getId())&&c.Uuid.toObject(r,n),depth:t.Message.getFieldWithDefault(e,2,0),name:t.Message.getFieldWithDefault(e,3,""),visible:t.Message.getFieldWithDefault(e,4,false),selected:t.Message.getFieldWithDefault(e,5,false),expanded:t.Message.getFieldWithDefault(e,6,false),isLeaf:t.Message.getFieldWithDefault(e,7,false),suppliedId:(n=e.getSuppliedId())&&o.StringValue.toObject(r,n),partiallyVisible:t.Message.getFieldWithDefault(e,9,false),columnsList:t.Message.getRepeatedField(e,10),filterHit:t.Message.getFieldWithDefault(e,11,false),phantom:t.Message.getFieldWithDefault(e,12,false),endItem:t.Message.getFieldWithDefault(e,13,false)};if(r){i.$jspbMessageInstance=e}return i}}proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Node;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var n=new c.Uuid;r.readMessage(n,c.Uuid.deserializeBinaryFromReader);t.setId(n);break;case 2:var n=r.readUint32();t.setDepth(n);break;case 3:var n=r.readString();t.setName(n);break;case 4:var n=r.readBool();t.setVisible(n);break;case 5:var n=r.readBool();t.setSelected(n);break;case 6:var n=r.readBool();t.setExpanded(n);break;case 7:var n=r.readBool();t.setIsLeaf(n);break;case 8:var n=new o.StringValue;r.readMessage(n,o.StringValue.deserializeBinaryFromReader);t.setSuppliedId(n);break;case 9:var n=r.readBool();t.setPartiallyVisible(n);break;case 10:var n=r.readString();t.addColumns(n);break;case 11:var n=r.readBool();t.setFilterHit(n);break;case 12:var n=r.readBool();t.setPhantom(n);break;case 13:var n=r.readBool();t.setEndItem(n);break;default:r.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,r){var e=undefined;e=t.getId();if(e!=null){r.writeMessage(1,e,c.Uuid.serializeBinaryToWriter)}e=t.getDepth();if(e!==0){r.writeUint32(2,e)}e=t.getName();if(e.length>0){r.writeString(3,e)}e=t.getVisible();if(e){r.writeBool(4,e)}e=t.getSelected();if(e){r.writeBool(5,e)}e=t.getExpanded();if(e){r.writeBool(6,e)}e=t.getIsLeaf();if(e){r.writeBool(7,e)}e=t.getSuppliedId();if(e!=null){r.writeMessage(8,e,o.StringValue.serializeBinaryToWriter)}e=t.getPartiallyVisible();if(e){r.writeBool(9,e)}e=t.getColumnsList();if(e.length>0){r.writeRepeatedString(10,e)}e=t.getFilterHit();if(e){r.writeBool(11,e)}e=t.getPhantom();if(e){r.writeBool(12,e)}e=t.getEndItem();if(e){r.writeBool(13,e)}};proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getId=function(){return t.Message.getWrapperField(this,c.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,r){t.Message.addToRepeatedField(this,10,o,r)};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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,t.Message);if(n.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,r){var e={start:t.Message.getFieldWithDefault(r,1,0)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readInt32();t.setStart(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getStart();if(r!==0){o.writeInt32(1,r)}};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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Range,t.Message);if(n.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,r){var e={start:t.Message.getFieldWithDefault(r,1,0),end:t.Message.getFieldWithDefault(r,2,0)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readInt32();t.setStart(e);break;case 2:var e=o.readInt32();t.setEnd(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getStart();if(r!==0){o.writeInt32(1,r)}r=t.getEnd();if(r!==0){o.writeInt32(2,r)}};proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getStart=function(){return 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange"}proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_=[1,2,3,4,5];if(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,r){var e={hiddenList:t.Message.toObjectList(r.getHiddenList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),shownList:t.Message.toObjectList(r.getShownList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),selectedList:t.Message.toObjectList(r.getSelectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),deselectedList:t.Message.toObjectList(r.getDeselectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),partiallyVisibleList:t.Message.toObjectList(r.getPartiallyVisibleList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addHidden(e);break;case 2:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addShown(e);break;case 3:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addSelected(e);break;case 4:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addDeselected(e);break;case 5:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader);t.addPartiallyVisible(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getHiddenList();if(r.length>0){o.writeRepeatedMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}r=t.getShownList();if(r.length>0){o.writeRepeatedMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}r=t.getSelectedList();if(r.length>0){o.writeRepeatedMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}r=t.getDeselectedList();if(r.length>0){o.writeRepeatedMessage(4,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}r=t.getPartiallyVisibleList();if(r.length>0){o.writeRepeatedMessage(5,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getHiddenList=function(){return 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,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};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,r){return t.Message.addToRepeatedWrapperField(this,2,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};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,r){return t.Message.addToRepeatedWrapperField(this,3,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};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,r){return t.Message.addToRepeatedWrapperField(this,4,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};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,r){return t.Message.addToRepeatedWrapperField(this,5,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)};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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.serializeBinary=function(){var 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.TreeChangeType=function(o){t.Message.initialize(this,o,0,-1,null,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType"}proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_=[[1,2,3]];proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase={SEALED_VALUE_NOT_SET:0,LIST_CHANGE:1,RANGES:2,KEEP_ALIVE:3};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getSealedValueCase=function(){return 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 r,e={listChange:(r=o.getListChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,r),ranges:(r=o.getRanges())&&proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,r),keepAlive:(r=o.getKeepAlive())&&proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader);t.setListChange(e);break;case 2:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader);t.setRanges(e);break;case 3:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader);t.setKeepAlive(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getListChange();if(r!=null){o.writeMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter)}r=t.getRanges();if(r!=null){o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter)}r=t.getKeepAlive();if(r!=null){o.writeMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getListChange=function(){return 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.ColumnKey=function(o){t.Message.initialize(this,o,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,t.Message);if(n.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,r){var e={value:t.Message.getFieldWithDefault(r,1,"")};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readString();t.setValue(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getValue();if(r.length>0){o.writeString(1,r)}};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)};n.object.extend(e,proto.vertexvis.protobuf.scenetree.v1alpha1)}));var f=e((function(r,e){var n=t;var i=Function("return this")();n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest",null,i);n.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse",null,i);proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_=[3];if(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,r){var e,n={viewId:(e=r.getViewId())&&c.Uuid.toObject(o,e),pager:(e=r.getPager())&&a.OffsetPager.toObject(o,e),additionalColumnKeysList:t.Message.getRepeatedField(r,3)};if(o){n.$jspbMessageInstance=r}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setViewId(e);break;case 2:var e=new a.OffsetPager;o.readMessage(e,a.OffsetPager.deserializeBinaryFromReader);t.setPager(e);break;case 3:var e=o.readString();t.addAdditionalColumnKeys(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getViewId();if(r!=null){o.writeMessage(1,r,c.Uuid.serializeBinaryToWriter)}r=t.getPager();if(r!=null){o.writeMessage(2,r,a.OffsetPager.serializeBinaryToWriter)}r=t.getAdditionalColumnKeysList();if(r.length>0){o.writeRepeatedString(3,r)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,c.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,a.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,r){t.Message.addToRepeatedField(this,3,o,r)};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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_=[1];if(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,r){var e,n={itemsList:t.Message.toObjectList(r.getItemsList(),p.Node.toObject,o),totalVisible:t.Message.getFieldWithDefault(r,2,0),cursor:(e=r.getCursor())&&a.OffsetCursor.toObject(o,e)};if(o){n.$jspbMessageInstance=r}return n}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new p.Node;o.readMessage(e,p.Node.deserializeBinaryFromReader);t.addItems(e);break;case 2:var e=o.readUint32();t.setTotalVisible(e);break;case 3:var e=new a.OffsetCursor;o.readMessage(e,a.OffsetCursor.deserializeBinaryFromReader);t.setCursor(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getItemsList();if(r.length>0){o.writeRepeatedMessage(1,r,p.Node.serializeBinaryToWriter)}r=t.getTotalVisible();if(r!==0){o.writeUint32(2,r)}r=t.getCursor();if(r!=null){o.writeMessage(3,r,a.OffsetCursor.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getItemsList=function(){return 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,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,r)};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,a.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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest,t.Message);if(n.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 r,e={viewId:(r=o.getViewId())&&c.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&c.Uuid.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setViewId(e);break;case 2:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setNodeId(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getViewId();if(r!=null){o.writeMessage(1,r,c.Uuid.serializeBinaryToWriter)}r=t.getNodeId();if(r!=null){o.writeMessage(2,r,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,c.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,c.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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest,t.Message);if(n.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 r,e={viewId:(r=o.getViewId())&&c.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&c.Uuid.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setViewId(e);break;case 2:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setNodeId(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getViewId();if(r!=null){o.writeMessage(1,r,c.Uuid.serializeBinaryToWriter)}r=t.getNodeId();if(r!=null){o.writeMessage(2,r,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,c.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,c.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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest,t.Message);if(n.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 r,e={viewId:(r=o.getViewId())&&c.Uuid.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setViewId(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getViewId();if(r!=null){o.writeMessage(1,r,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,c.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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse,t.Message);if(n.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 r,e={change:(r=o.getChange())&&p.TreeChangeType.toObject(t,r),handshake:(r=o.getHandshake())&&proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new p.TreeChangeType;o.readMessage(e,p.TreeChangeType.deserializeBinaryFromReader);t.setChange(e);break;case 2:var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;o.readMessage(e,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader);t.setHandshake(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getChange();if(r!=null){o.writeMessage(1,r,p.TreeChangeType.serializeBinaryToWriter)}r=t.getHandshake();if(r!=null){o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getChange=function(){return 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest"}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_=[3];if(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,r){var e={filter:t.Message.getFieldWithDefault(r,1,""),fullTree:t.Message.getFieldWithDefault(r,2,false),columnsKeysList:t.Message.getRepeatedField(r,3),exactMatch:t.Message.getFieldWithDefault(r,4,false)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readString();t.setFilter(e);break;case 2:var e=o.readBool();t.setFullTree(e);break;case 3:var e=o.readString();t.addColumnsKeys(e);break;case 4:var e=o.readBool();t.setExactMatch(e);break;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 r=undefined;r=t.getFilter();if(r.length>0){o.writeString(1,r)}r=t.getFullTree();if(r){o.writeBool(2,r)}r=t.getColumnsKeysList();if(r.length>0){o.writeRepeatedString(3,r)}r=t.getExactMatch();if(r){o.writeBool(4,r)}};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,r){t.Message.addToRepeatedField(this,3,o,r)};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.FilterResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse,t.Message);if(n.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,r){var e={numberOfResults:t.Message.getFieldWithDefault(r,1,0)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=o.readUint32();t.setNumberOfResults(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getNumberOfResults();if(r!==0){o.writeUint32(1,r)}};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.LocateItemRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest,t.Message);if(n.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 r,e={nodeId:(r=o.getNodeId())&&c.Uuid.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 2:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setNodeId(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getNodeId();if(r!=null){o.writeMessage(2,r,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,c.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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse,t.Message);if(n.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(r,e){var n,i={locatedIndex:(n=e.getLocatedIndex())&&o.UInt64Value.toObject(r,n),requiresReload:t.Message.getFieldWithDefault(e,2,false)};if(r){i.$jspbMessageInstance=e}return i}}proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader=function(t,r){while(r.nextField()){if(r.isEndGroup()){break}var e=r.getFieldNumber();switch(e){case 1:var n=new o.UInt64Value;r.readMessage(n,o.UInt64Value.deserializeBinaryFromReader);t.setLocatedIndex(n);break;case 2:var n=r.readBool();t.setRequiresReload(n);break;default:r.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,r){var e=undefined;e=t.getLocatedIndex();if(e!=null){r.writeMessage(1,e,o.UInt64Value.serializeBinaryToWriter)}e=t.getRequiresReload();if(e){r.writeBool(2,e)}};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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest,t.Message);if(n.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 r,e={nodeId:(r=o.getNodeId())&&c.Uuid.toObject(t,r)};if(t){e.$jspbMessageInstance=o}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new c.Uuid;o.readMessage(e,c.Uuid.deserializeBinaryFromReader);t.setNodeId(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getNodeId();if(r!=null){o.writeMessage(1,r,c.Uuid.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,c.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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_=[1];if(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,r){var e={itemsList:t.Message.toObjectList(r.getItemsList(),p.Node.toObject,o)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new p.Node;o.readMessage(e,p.Node.deserializeBinaryFromReader);t.addItems(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getItemsList();if(r.length>0){o.writeRepeatedMessage(1,r,p.Node.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.getItemsList=function(){return 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,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,r)};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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest,t.Message);if(n.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 r={};if(t){r.$jspbMessageInstance=o}return r}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.serializeBinary=function(){var 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)};n.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse,t.Message);if(n.DEBUG&&!COMPILED){proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse"}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_=[1];if(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,r){var e={keysList:t.Message.toObjectList(r.getKeysList(),p.ColumnKey.toObject,o)};if(o){e.$jspbMessageInstance=r}return e}}proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o);var e=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader(e,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader=function(t,o){while(o.nextField()){if(o.isEndGroup()){break}var r=o.getFieldNumber();switch(r){case 1:var e=new p.ColumnKey;o.readMessage(e,p.ColumnKey.deserializeBinaryFromReader);t.addKeys(e);break;default:o.skipField();break}}return t};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.serializeBinary=function(){var 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 r=undefined;r=t.getKeysList();if(r.length>0){o.writeRepeatedMessage(1,r,p.ColumnKey.serializeBinaryToWriter)}};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getKeysList=function(){return 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,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,r)};proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.clearKeysList=function(){this.setKeysList([])};n.object.extend(e,proto.vertexvis.protobuf.scenetree.v1alpha1)}));var l;(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"})(l||(l={}));class h{constructor(t,o,r){this.name=t;this.code=o;this.link=r;this.message=v(o)}}function v(t){switch(t){case l.UNKNOWN:return"An unknown error occurred.";case l.SCENE_TREE_DISABLED:return"The tree for this scene is not enabled. Enable the tree for this scene to interact with the tree.";case l.MISSING_VIEWER:return"Could not find reference to the viewer.";case l.DISCONNECTED:return"Disconnected from server.";case l.SUBSCRIPTION_FAILURE:return"The tree was not able to receive subscription events.";case l.UNAUTHORIZED:return"The tree was unauthorized to connect to the server. The associated Viewer may not be connected.";case l.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=r.grpc;var E=function(){function t(){}t.serviceName="vertexvis.protobuf.scenetree.v1alpha1.SceneTreeAPI";return t}();E.GetTree={methodName:"GetTree",service:E,requestStream:false,responseStream:false,requestType:f.GetTreeRequest,responseType:f.GetTreeResponse};E.ExpandNode={methodName:"ExpandNode",service:E,requestStream:false,responseStream:false,requestType:f.ExpandNodeRequest,responseType:f.ExpandNodeResponse};E.CollapseNode={methodName:"CollapseNode",service:E,requestStream:false,responseStream:false,requestType:f.CollapseNodeRequest,responseType:f.CollapseNodeResponse};E.Subscribe={methodName:"Subscribe",service:E,requestStream:false,responseStream:true,requestType:f.SubscribeRequest,responseType:f.SubscribeResponse};E.Filter={methodName:"Filter",service:E,requestStream:false,responseStream:false,requestType:f.FilterRequest,responseType:f.FilterResponse};E.LocateItem={methodName:"LocateItem",service:E,requestStream:false,responseStream:false,requestType:f.LocateItemRequest,responseType:f.LocateItemResponse};E.ExpandAll={methodName:"ExpandAll",service:E,requestStream:false,responseStream:false,requestType:f.ExpandAllRequest,responseType:f.ExpandAllResponse};E.CollapseAll={methodName:"CollapseAll",service:E,requestStream:false,responseStream:false,requestType:f.CollapseAllRequest,responseType:f.CollapseAllResponse};E.GetNodeAncestors={methodName:"GetNodeAncestors",service:E,requestStream:false,responseStream:false,requestType:f.GetNodeAncestorsRequest,responseType:f.GetNodeAncestorsResponse};E.GetAvailableColumns={methodName:"GetAvailableColumns",service:E,requestStream:false,responseStream:false,requestType:f.GetAvailableColumnsRequest,responseType:f.GetAvailableColumnsResponse};var x=E;function g(t,o){this.serviceHost=t;this.options=o||{}}g.prototype.getTree=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.GetTree,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.expandNode=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.ExpandNode,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.collapseNode=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.CollapseNode,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.subscribe=function t(o,r){var e={data:[],end:[],status:[]};var n=m.invoke(E.Subscribe,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onMessage:function(t){e.data.forEach((function(o){o(t)}))},onEnd:function(t,o,r){e.status.forEach((function(e){e({code:t,details:o,metadata:r})}));e.end.forEach((function(e){e({code:t,details:o,metadata:r})}));e=null}});return{on:function(t,o){e[t].push(o);return this},cancel:function(){e=null;n.close()}}};g.prototype.filter=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.Filter,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.locateItem=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.LocateItem,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.expandAll=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.ExpandAll,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.collapseAll=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.CollapseAll,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.getNodeAncestors=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.GetNodeAncestors,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};g.prototype.getAvailableColumns=function t(o,r,e){if(arguments.length===2){e=arguments[1]}var n=m.unary(E.GetAvailableColumns,{request:o,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(e){if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status;o.metadata=t.trailers;e(o,null)}else{e(null,t.message)}}}});return{cancel:function(){e=null;n.close()}}};var O=g;function R(t){return typeof t.code==="number"&&t.hasOwnProperty("metadata")}function y(t){if(t.methodDefinition.methodName===x.Subscribe.methodName){return r.grpc.WebsocketTransport()(t)}else{return r.grpc.CrossBrowserHttpTransport({withCredentials:false})(t)}}function I(t){this.message=t}I.prototype=new Error,I.prototype.name="InvalidCharacterError";var C="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var o=String(t).replace(/=+$/,"");if(o.length%4==1)throw new I("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,e,n=0,i=0,s="";e=o.charAt(i++);~e&&(r=n%4?64*r+e:e,n++%4)?s+=String.fromCharCode(255&r>>(-2*n&6)):0)e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);return s};function S(t){var o=t.replace(/-/g,"+").replace(/_/g,"/");switch(o.length%4){case 0:break;case 2:o+="==";break;case 3:o+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(C(t).replace(/(.)/g,(function(t,o){var r=o.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(o)}catch(t){return C(o)}}function L(t){this.message=t}function T(t,o){if("string"!=typeof t)throw new L("Invalid token specified");var r=!0===(o=o||{}).header?0:1;try{return JSON.parse(S(t.split(".")[r]))}catch(t){throw new L("Invalid token specified: "+t.message)}}L.prototype=new Error,L.prototype.name="InvalidTokenError";function P(t){return T(t)}class N{constructor(t,o,r={spinnerDelay:2e3,subscriptionHandshakeGracePeriodInMs:5e3}){this.client=t;this.rowLimit=o;this.connectOptions=r;this.nextPageId=0;this.pages=new Map;this.activeRowRange=[0,0];this.metadataKeys=[];this.debugLogs=false;this.onStateChange=new n;this.state={totalRows:0,isSearching:false,rows:[],connection:{type:"disconnected"}}}get fetchedPageCount(){return this.pages.size}get isConnected(){return this.state.connection.type==="connected"}stateChanged(t){return this.onStateChange.on(t)}setDebugLogs(t){this.debugLogs=t}async handleSubscriptionHandshakeTimeout(t,o){var r;const e=this.getState().connection;if(this.isConnectedState(e)&&((r=e.subscriptionStatusState)===null||r===void 0?void 0:r.attempt)!=null&&e.subscriptionStatusState.attempt<N.MAX_SUBSCRIPTION_RETRY_COUNT){const r=e.subscriptionStatusState.attempt+1;console.warn(`Failed to subscribe within the allotted timeout. Retry attempt={${r}}`);e.subscriptionStatusState.stream.cancel();this.clearHandshakeTimer();const n=await this.subscribe();this.invalidateAfterOffset(0);this.fetchUnloadedPagesInActiveRows();this.updateState(Object.assign(Object.assign({},this.state),{connection:Object.assign(Object.assign({},e),{type:"connected",subscription:{dispose:()=>n.cancel()},subscriptionStatusState:{attempt:r,stream:n}})}));this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,o)}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}else{this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:o,details:new h("SUBSCRIPTION_FAILURE",l.SUBSCRIPTION_FAILURE)}}))}}async connect(t){const{connection:o}=this.state;const r=t();if(r==null){throw new w("Cannot connect scene tree. JWT is undefined")}const{view:e}=P(r);if(o.sceneViewId!==e){this.disconnect(true)}else{this.disconnect(false)}const n={type:"connecting",jwtProvider:t,sceneViewId:e};this.updateState(Object.assign(Object.assign({},this.state),{connection:n}));try{this.log("Scene tree controller connecting.");const o=await this.subscribe();await this.fetchPage(0);if(this.state.connection.type!=="cancelled"){this.updateState(Object.assign(Object.assign({},this.state),{connection:{jwtProvider:t,sceneViewId:e,type:"connected",subscription:{dispose:()=>o.cancel()},subscriptionStatusState:{attempt:0,stream:o}}}));this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,e)}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}}catch(o){this.ifErrorIsFatal(o,(()=>{this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:e,details:this.getConnectionError(o)}}));this.clearHandshakeTimer();throw o}))}this.startIdleReconnectTimer()}clearReconnectTimer(){if(this.reconnectTimer!=null){window.clearTimeout(this.reconnectTimer)}}clearHandshakeTimer(){if(this.subscriptionHandshakeTimer!=null){window.clearTimeout(this.subscriptionHandshakeTimer)}}startIdleReconnectTimer(){this.startReconnectTimer(this.connectOptions.idleReconnectInSeconds||N.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||N.LOST_CONNECTION_RECONNECT_IN_SECONDS)}startReconnectTimer(t){this.clearReconnectTimer();this.reconnectTimer=window.setTimeout((()=>{if(this.state.connection.type==="connected"){this.connect(this.state.connection.jwtProvider)}}),t*1e3)}connectToViewer(t){const o=async()=>{if(t.token!=null){this.log("Scene tree controller found viewer JWT. Attempting connection.");try{await this.connect((()=>t.token))}catch(t){this.ifErrorIsFatal(t,(()=>{console.error("Scene tree controller errored connecting.",t)}))}}};const r=()=>{this.log("Scene tree controller received scene ready");o()};o();t.addEventListener("sceneReady",r);return{dispose:()=>{t.removeEventListener("sceneReady",r);this.disconnect()}}}disconnect(t=false){this.log(`Scene tree controller disconnecting [reset=${t}]`);this.clearHandshakeTimer();this.clearReconnectTimer();if(t){this.pages.clear();this.activeRowRange=[]}const{connection:o}=this.state;if(o.type==="connected"){o.subscription.dispose()}this.updateState({connection:{type:"disconnected",jwtProvider:o.jwtProvider,sceneViewId:o.sceneViewId},isSearching:false,totalRows:t?0:this.state.totalRows,rows:t?[]:this.state.rows,filterTerm:t?undefined:this.state.filterTerm,totalFilteredRows:t?undefined:this.state.totalFilteredRows,shouldShowEmptyResults:t?undefined:this.state.shouldShowEmptyResults})}cancel(){this.log(`Scene tree controller cancelled`);this.clearHandshakeTimer();this.clearReconnectTimer();this.pages.clear();this.activeRowRange=[];const{connection:t}=this.state;if(t.type==="connected"){t.subscription.dispose()}this.updateState({connection:{type:"cancelled",jwtProvider:t.jwtProvider,sceneViewId:t.sceneViewId},isSearching:false,totalRows:0,rows:[]})}async collapseNode(t){return this.ifConnectionHasJwt((async o=>{const r=new c.Uuid;r.setHex(t);const e=new f.CollapseNodeRequest;e.setNodeId(r);await this.requestUnary(o,((t,o)=>this.client.collapseNode(e,t,o)))}))}async expandNode(t){return this.ifConnectionHasJwt((async o=>{const r=new c.Uuid;r.setHex(t);const e=new f.ExpandNodeRequest;e.setNodeId(r);await this.requestUnary(o,((t,o)=>this.client.expandNode(e,t,o)))}))}async collapseAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.collapseAll(new f.CollapseAllRequest,t,o)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.expandAll(new f.ExpandAllRequest,t,o)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async o=>{const r=new c.Uuid;r.setHex(t);const e=new f.LocateItemRequest;e.setNodeId(r);const n=await this.requestUnary(o,((t,o)=>this.client.locateItem(e,t,o)));const{requiresReload:i,locatedIndex:s}=n.toObject();if(i){this.invalidateAfterOffset(0);await this.fetchUnloadedPagesInActiveRows()}if(s==null){throw new k("Cannot locate node. Location index is undefined.")}return s.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async o=>{const r=new c.Uuid;r.setHex(t);const e=new f.GetNodeAncestorsRequest;e.setNodeId(r);const n=await this.requestUnary(o,((t,o)=>this.client.getNodeAncestors(e,t,o)));return n.toObject().itemsList}))}async fetchPage(t){return this.ifConnectionHasJwt((async o=>{var r;if(t<0||t>this.maxPages-1){return}if(!this.pages.has(t)){const r=t*this.rowLimit;this.log("Scene tree fetching page",t,r);const e=this.fetchTree(r,this.rowLimit,o);const n=this.nextPageId++;const i={id:n,res:e,index:t,metadataKeys:this.metadataKeys};this.pages.set(t,i);this.handlePageResult(i)}await((r=this.pages.get(t))===null||r===void 0?void 0:r.res)}))}fetchPageAtOffset(t){const o=Math.floor(t/this.rowLimit);return this.fetchPage(o)}async fetchRange(t,o){const r=Math.floor(t/this.rowLimit);const e=Math.floor(o/this.rowLimit);const[n,i]=this.constrainPageRange(r,e);const s=i-n+1;await Promise.all(Array.from({length:s}).map(((t,o)=>this.fetchPage(o))))}async fetchMetadataKeys(){return this.ifConnectionHasJwt((async t=>{const o=await this.requestUnary(t,((t,o)=>{const r=new f.GetAvailableColumnsRequest;this.client.getAvailableColumns(r,t,o)}));return o.getKeysList().map((t=>t.getValue()))}))}async filter(t,o={}){return this.ifConnectionHasJwt((async r=>{this.updateState(Object.assign(Object.assign({},this.state),{isSearching:true,filterTerm:t!==""?t:undefined}));try{const e=await this.requestUnary(r,((r,e)=>{var n;const i=new f.FilterRequest;i.setFilter(t);i.setFullTree((n=o.includeCollapsed)!==null&&n!==void 0?n:true);i.setExactMatch(!!o.exactMatch);if(o.columns)i.setColumnsKeysList(o.columns);this.client.filter(i,r,e)}));const{numberOfResults:n}=e.toObject();this.updateState(Object.assign(Object.assign({},this.state),{totalFilteredRows:n,isSearching:false}))}catch(t){console.error("Failed to filter search ",t);this.updateState(Object.assign(Object.assign({},this.state),{isSearching:false}))}}))}isPageLoaded(t){return this.pages.has(t)}getNonLoadedPageIndexes(t,o){const[r,e]=this.constrainPageRange(t,o);const n=e-r+1;return Array.from({length:n}).map(((t,o)=>r+o)).filter((t=>!this.isPageLoaded(t)))}getPage(t){return this.pages.get(t)}invalidatePagesOutsideRange(t,o,r=0){const[e,n]=this.constrainPageRange(t,o);const i=Math.max(n-e,r);if(this.fetchedPageCount>i){const t=Array.from(this.pages.keys()).map((t=>{const o=t<e?e-t:t-n;return{index:t,distance:o}}));const o=t.sort(((t,o)=>o.distance-t.distance));o.slice(0,t.length-r).forEach((({index:t})=>this.invalidatePage(t)));this.log(`Scene tree dropped ${t.length-this.fetchedPageCount} pages`,this.pages)}}setMetadataKeys(t){this.metadataKeys=t;if(this.state.connection.type==="connected"){const[t,o]=this.activeRowRange;this.invalidateAfterOffset(0);return this.updateActiveRowRange(t,o)}else{return Promise.resolve()}}async updateActiveRowRange(t,o){this.activeRowRange=this.constrainRowOffsets(t,o);this.tryClearLoadingTimer(this.state);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.startIdleReconnectTimer();const{change:o}=t.toObject();if((o===null||o===void 0?void 0:o.listChange)!=null){this.log("Received list change",o.listChange.start);this.invalidateAfterOffset(o.listChange.start);this.fetchUnloadedPagesInActiveRows()}const{hiddenList:r=[],shownList:e=[],partiallyVisibleList:n=[],deselectedList:i=[],selectedList:s=[]}=(o===null||o===void 0?void 0:o.ranges)||{};if(n.length>0){this.log("Received partial visibility list change",n);n.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({partiallyVisible:true})))))}if(r.length>0){this.log("Received hidden list change",r);r.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:false,partiallyVisible:false})))))}if(e.length>0){this.log("Received shown list change",e);e.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:true,partiallyVisible:false})))))}if(i.length>0){this.log("Received deselected list change",i);i.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:false})))))}if(s.length>0){this.log("Received selected list change",s);s.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:true})))))}}));o.on("status",(t=>{if(t.code!==0){console.error(`Failed to subscribe to scene tree with code=${t.code}, details=${t.details}`);this.invalidateAfterOffset(0)}}));o.on("end",(()=>{this.invalidateAfterOffset(0);if(this.state.connection.type==="connected"){this.startConnectionLostReconnectTimer()}}));return o}))}async fetchUnloadedPagesInActiveRows(){const[t,o]=this.getPageIndexesForRange(this.activeRowRange[0],this.activeRowRange[1]);const r=this.getNonLoadedPageIndexes(t-1,o+1);await Promise.all(r.map((t=>this.fetchPage(t))))}patchNodesInRange(t,o,r){const e=this.state.rows.slice(t,o+1).map((t=>s(t)?Object.assign(Object.assign({},t),{node:Object.assign(Object.assign({},t.node),r(t.node))}):t));const n=this.state.rows.slice(0,t);const i=this.state.rows.slice(o+1);const u=[...n,...e,...i];this.updateState(Object.assign(Object.assign({},this.state),{rows:u}))}async handlePageResult(t){var o;try{const r=await t.res;const e=this.getPage(t.index);if((e===null||e===void 0?void 0:e.id)===t.id){const n=r.getCursor();const i=r.getItemsList();const s=(o=n===null||n===void 0?void 0:n.getTotal())!==null&&o!==void 0?o:0;const a=t.index*this.rowLimit;const c=u(a,i,e.metadataKeys);const p=this.state.rows.slice(0,a);const f=this.state.rows.slice(p.length+c.length,s);const l=new Array(Math.max(0,s-p.length-c.length-f.length));const h=[...p,...c,...f,...l];if(this.isViewLoading(h)&&this.loadingTimer==null){this.restartLoadingTimer();this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:h,shouldShowEmptyResults:this.state.filterTerm!=null&&(h.length===0||this.state.totalFilteredRows===0)}))}else{this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:h,shouldShowEmptyResults:this.state.filterTerm!=null&&(h.length===0||this.state.totalFilteredRows===0)}))}}}catch(o){const r=o instanceof Error?o.toString():"Unknown";console.error(`Request error fetching page at index ${t.index} (${r})`);const e=this.getPage(t.index);if((e===null||e===void 0?void 0:e.id)===t.id){this.invalidatePage(t.index)}}}invalidatePage(t){if(this.isPageLoaded(t)){this.pages.delete(t)}}invalidateAfterOffset(t){const o=Math.floor(t/this.rowLimit);for(const t of this.pages.keys()){if(t>=o){this.invalidatePage(t)}}}getState(){return this.state}isViewLoading(t){return this.state.filterTerm==null&&t[this.activeRowRange[0]]==null&&t[this.activeRowRange[1]]==null}restartLoadingTimer(){if(this.loadingTimer!=null){this.clearLoadingTimer()}this.loadingTimer=window.setTimeout((()=>{this.loadingTimer=undefined;this.updateState(Object.assign(Object.assign({},this.getState()),{shouldShowLoading:true}))}),this.connectOptions.spinnerDelay)}clearLoadingTimer(){if(this.loadingTimer!=null){clearTimeout(this.loadingTimer);this.loadingTimer=undefined}}tryClearLoadingTimer(t){const o=this.state.shouldShowLoading||this.loadingTimer!=null;const r=o&&!this.isViewLoading(t.rows);if(r){this.clearLoadingTimer();return true}return false}updateState(t){const o=this.tryClearLoadingTimer(t);this.state=Object.assign(Object.assign({},t),{shouldShowLoading:o?false:t.shouldShowLoading});this.onStateChange.emit(this.state)}getPageForOffset(t){const o=Math.floor(t/this.rowLimit);return this.constrainPageIndex(o)}getPageIndexesForRange(t,o){const r=this.getPageForOffset(t);const e=this.getPageForOffset(o);return[r,e]}async fetchTree(t,o,r){return this.requestUnary(r,((r,e)=>{const n=new a.OffsetPager;n.setOffset(t);n.setLimit(o);const i=new f.GetTreeRequest;i.setPager(n);i.setAdditionalColumnKeysList(this.metadataKeys);this.client.getTree(i,r,e)}))}requestUnary(t,o){return new Promise(((r,e)=>{const n=this.createJwtMetadata(t);o(n,((t,o)=>{if(t!=null){e(t)}else if(o!=null){r(o)}else{e(new d("Invalid response. Both error and result are null"))}}))}))}requestServerStream(t,o){const r=this.createJwtMetadata(t);return o(r)}createJwtMetadata(t){return new r.grpc.Metadata({"jwt-context":JSON.stringify({jwt:t})})}async ifConnectionHasJwt(t){const{connection:o}=this.state;if(o.type==="connecting"||o.type==="connected"){const r=await o.jwtProvider();if(r!=null){return t(r)}else{throw new w("SceneTreeController cannot perform request. Viewer JWT is undefined.")}}else if(o.type==="cancelled"){throw new b(`Request attempted, but controller was cancelled`)}else{throw new d("SceneTreeController is not in connected state")}}ifErrorIsFatal(t,o){if(!(t instanceof b)){o()}}getConnectionError(t){if(R(t)){if(t.code===r.grpc.Code.FailedPrecondition){return new h("SCENE_TREE_DISABLED",l.SCENE_TREE_DISABLED)}else if(t.code===r.grpc.Code.Unauthenticated){return new h("UNAUTHORIZED",l.UNAUTHORIZED)}else if(t.code===r.grpc.Code.Aborted){return new h("ABORTED",l.ABORTED)}else{return new h("UNKNOWN",l.UNKNOWN)}}else if(t instanceof w){return new h("UNAUTHORIZED",l.UNAUTHORIZED)}else{return new h("UNKNOWN",l.UNKNOWN)}}constrainPageRange(t,o){return[Math.max(0,t),Math.min(this.maxPages-1,o)]}constrainPageIndex(t){return Math.max(0,Math.min(t,this.maxPages-1))}constrainRowOffsets(t,o){return[Math.max(0,t),Math.min(this.state.totalRows-1,o)]}get maxPages(){return Math.max(1,Math.ceil(this.state.totalRows/this.rowLimit))}log(t,...o){if(this.debugLogs){console.debug(t,o)}}isConnectedState(t){return t.type==="connected"}}N.IDLE_RECONNECT_IN_SECONDS=4*60;N.LOST_CONNECTION_RECONNECT_IN_SECONDS=2;N.MAX_SUBSCRIPTION_RETRY_COUNT=2;export{N as S,O as a,h as b,l as c,y as w};
|
|
5
|
+
//# sourceMappingURL=p-3d19b37e.js.map
|