@ckeditor/ckeditor-cloud-services-collaboration 53.0.2 → 53.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +20 -20
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/ckeditorcloudserviceserror.js +2 -2
- package/src/ckeditorcloudservicesservererror.js +2 -2
- package/src/collaborativeeditingservice/collaborativeeditingservice.js +3 -3
- package/src/collaborativeeditingservice/descriptors/operationmetadatadescriptor.js +2 -2
- package/src/collaborativeeditingservice/helpers/operationmetadatahelpers.js +2 -2
- package/src/collaborativeeditingservice/messages/collaborativeeditingconnectmessage.js +2 -2
- package/src/collaborativeeditingservice/messages/collaborativeeditingreconnectmessage.js +2 -2
- package/src/collaborativeeditingservice/messages/collaborativeeditingupdatemessage.js +2 -2
- package/src/collaborativeeditingservice/messages/getdocumentdetailsmessage.js +2 -2
- package/src/collaborativeeditingservice/responses/collaborativeeditingconnectresponse.js +2 -2
- package/src/collaborativeeditingservice/responses/collaborativeeditingresponse.js +2 -2
- package/src/collaborativeeditingservice/responses/getdocumentdetailsresponse.js +2 -2
- package/src/comments-v2/commentsservice.js +3 -3
- package/src/comments-v2/descriptors/commentdescriptor.js +2 -2
- package/src/comments-v2/descriptors/commentsthreaddescriptor.js +2 -2
- package/src/comments-v2/descriptors/commentthreadaddedcomment.js +2 -2
- package/src/comments-v2/messages/addcommentmessage.js +2 -2
- package/src/comments-v2/messages/comment-threads/addcommentthreadmessage.js +2 -2
- package/src/comments-v2/messages/comment-threads/reopencommentthreadmessage.js +2 -2
- package/src/comments-v2/messages/comment-threads/resolvecommentthreadmessage.js +2 -2
- package/src/comments-v2/messages/comment-threads/updatecommentthreadmessage.js +2 -2
- package/src/comments-v2/messages/connectmessage.js +2 -2
- package/src/comments-v2/messages/getcommentthreadmessage.js +2 -2
- package/src/comments-v2/messages/getdocumentthreadsmessage.js +2 -2
- package/src/comments-v2/messages/removecommentmessage.js +2 -2
- package/src/comments-v2/messages/removecommentthreadmessage.js +2 -2
- package/src/comments-v2/messages/updatecommentmessage.js +2 -2
- package/src/comments-v2/responses/addcommentresponse.js +2 -2
- package/src/comments-v2/responses/comment-threads/addcommentthreadresponse.js +2 -2
- package/src/comments-v2/responses/comment-threads/resolvecommentthreadresponse.js +2 -2
- package/src/comments-v2/responses/connectresponse.js +2 -2
- package/src/comments-v2/responses/getcommentthreadresponse.js +2 -2
- package/src/comments-v2/responses/getdocumentthreadsresponse.js +2 -2
- package/src/compiledmessages.js +3 -3
- package/src/descriptor.js +2 -2
- package/src/descriptors/keyvaluedescriptor.js +2 -2
- package/src/editor/editorservice.js +3 -3
- package/src/editor/messages/iseditorbundleuploadedmessage.js +2 -2
- package/src/editor/responses/iseditorbundleuploadedresponse.js +2 -2
- package/src/errors/ServiceNotConnectedError.js +2 -2
- package/src/index.js +2 -2
- package/src/message.js +2 -2
- package/src/messagescompressor.js +2 -2
- package/src/messagesmapper.js +2 -2
- package/src/revision-history/descriptors/revisiondescriptor.js +2 -2
- package/src/revision-history/messages/revisionhistoryconnectmessage.js +2 -2
- package/src/revision-history/messages/revisionhistorygetrevisionmessage.js +2 -2
- package/src/revision-history/messages/revisionhistoryreconnectmessage.js +2 -2
- package/src/revision-history/messages/revisionhistoryupdaterevisionsmessage.js +2 -2
- package/src/revision-history/responses/revisionhistoryconnectresponse.js +2 -2
- package/src/revision-history/responses/revisionhistorygetrevisionresponse.js +2 -2
- package/src/revision-history/responses/revisionhistoryupdaterevisionsresponse.js +2 -2
- package/src/revision-history/revision.js +1 -1
- package/src/revision-history/revisionhistoryservice.js +3 -3
- package/src/services.js +1 -1
- package/src/sessions/descriptors/sessiondescriptor.js +2 -2
- package/src/sessions/messages/sessionsconnectmessage.js +2 -2
- package/src/sessions/messages/socketconnectmessage.js +2 -2
- package/src/sessions/messages/socketdisconnectmessage.js +2 -2
- package/src/sessions/responses/sessionsconnectresponse.js +2 -2
- package/src/sessions/sessioncollection.js +2 -2
- package/src/sessions/sessions.js +2 -2
- package/src/track-changes/descriptors/suggestiondescriptor.js +2 -2
- package/src/track-changes/messages/addsuggestionmessage.js +2 -2
- package/src/track-changes/messages/batchUpdateSuggestionsStateMessage.js +2 -2
- package/src/track-changes/messages/connectmessage.js +2 -2
- package/src/track-changes/messages/getallsuggestionsmessage.js +2 -2
- package/src/track-changes/messages/getsuggestionmessage.js +2 -2
- package/src/track-changes/messages/updatesuggestionmessage.js +2 -2
- package/src/track-changes/responses/addsuggestionresponse.js +2 -2
- package/src/track-changes/responses/connectresponse.js +2 -2
- package/src/track-changes/responses/getallsuggestionsresponse.js +2 -2
- package/src/track-changes/responses/getsuggestionresponse.js +2 -2
- package/src/track-changes/trackchangesservice.js +3 -3
- package/src/types.js +1 -1
- package/src/users/descriptors/userdescriptor.js +2 -2
- package/src/users/messages/getmanyusersmessage.js +2 -2
- package/src/users/messages/getusermessage.js +2 -2
- package/src/users/responses/getmanyusersresponse.js +2 -2
- package/src/users/responses/getuserresponse.js +2 -2
- package/src/users/user.js +2 -2
- package/src/version.d.ts +1 -1
- package/src/version.js +2 -2
- package/src/websocketgateway/channel.js +3 -3
- package/src/websocketgateway/messages/channelmessage.js +2 -2
- package/src/websocketgateway/parser/packetparser.js +2 -2
- package/src/websocketgateway/parser/packets/bytesbytespacketdatamessage.js +3 -3
- package/src/websocketgateway/parser/packets/numberbytespacketdatamessage.js +3 -3
- package/src/websocketgateway/parser/packets/numbernumberpacketdatamessag.js +3 -3
- package/src/websocketgateway/parser/packets/numberobjectpacketdatamessage.js +3 -3
- package/src/websocketgateway/parser/packets/numberstringpacketdatamessag.js +3 -3
- package/src/websocketgateway/parser/packets/objectbufferpacketdatamessage.js +3 -3
- package/src/websocketgateway/parser/packets/objectobjectpacketdatamessage.js +3 -3
- package/src/websocketgateway/parser/packets/packagedatamessage.js +2 -2
- package/src/websocketgateway/parser/packets/packetmessage.js +3 -3
- package/src/websocketgateway/parser/packets/packetoptionsmessage.js +2 -2
- package/src/websocketgateway/parser/packets/stringbytespacketdatamessage.js +3 -3
- package/src/websocketgateway/parser/packets/stringnumberpacketdatamessage.js +3 -3
- package/src/websocketgateway/parser/packets/stringobjectpacketdatamessage.js +3 -3
- package/src/websocketgateway/parser/packets/stringstringpacketdatamessage.js +3 -3
- package/src/websocketgateway/parser/parser.js +3 -3
- package/src/websocketgateway/parser/parserutils.js +2 -2
- package/src/websocketgateway/requestsmanager.js +2 -2
- package/src/websocketgateway/websocketgateway.js +3 -3
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import $protobuf from'protobufjs/minimal.js';import{io}from'socket.io-client';import
|
|
24
|
-
((()=>{var _0x7b4aff=$protobuf['Reader'],$Writer=$protobuf['Writer'],$util=$protobuf['util'],$root=$protobuf['roots']['default']||($protobuf['roots']['default']={});return $root['OperationMetadataDescriptor']=(function(){function OperationMetadataDescriptor(properties){if(properties){for(var _0x454a0e=Object['keys'](properties),_0x4246b5=0x0;_0x4246b5<_0x454a0e['length'];++_0x4246b5)null!=properties[_0x454a0e[_0x4246b5]]&&(this[_0x454a0e[_0x4246b5]]=properties[_0x454a0e[_0x4246b5]]);}}return OperationMetadataDescriptor['prototype']['userId']='',OperationMetadataDescriptor['prototype']['type']='',OperationMetadataDescriptor['prototype']['createdAt']='',OperationMetadataDescriptor['create']=function(properties){return new OperationMetadataDescriptor(properties);},OperationMetadataDescriptor['encode']=function(_0x367ee9,writer){return writer||(writer=$Writer['create']()),null!=_0x367ee9['userId']&&Object['hasOwnProperty']['call'](_0x367ee9,'userId')&&writer['uint32'](0xa)['string'](_0x367ee9['userId']),null!=_0x367ee9['type']&&Object['hasOwnProperty']['call'](_0x367ee9,'type')&&writer['uint32'](0x12)['string'](_0x367ee9['type']),null!=_0x367ee9['createdAt']&&Object['hasOwnProperty']['call'](_0x367ee9,'createdAt')&&writer['uint32'](0x1a)['string'](_0x367ee9['createdAt']),writer;},OperationMetadataDescriptor['encodeDelimited']=function(_0x4c8f0f,writer){return this['encode'](_0x4c8f0f,writer)['ldelim']();},OperationMetadataDescriptor['decode']=function(_0x3da0b3,length,_0x5e5c21){_0x3da0b3 instanceof _0x7b4aff||(_0x3da0b3=_0x7b4aff['create'](_0x3da0b3));for(var _0x35ee33=void 0x0===length?_0x3da0b3['len']:_0x3da0b3['pos']+length,_0x4078c6=new $root['OperationMetadataDescriptor']();_0x3da0b3['pos']<_0x35ee33;){var tag=_0x3da0b3['uint32']();if(tag===_0x5e5c21)break;switch(tag>>>0x3){case 0x1:_0x4078c6['userId']=_0x3da0b3['string']();break;case 0x2:_0x4078c6['type']=_0x3da0b3['string']();break;case 0x3:_0x4078c6['createdAt']=_0x3da0b3['string']();break;default:_0x3da0b3['skipType'](0x7&tag);}}return _0x4078c6;},OperationMetadataDescriptor['decodeDelimited']=function(_0x241d70){return _0x241d70 instanceof _0x7b4aff||(_0x241d70=new _0x7b4aff(_0x241d70)),this['decode'](_0x241d70,_0x241d70['uint32']());},OperationMetadataDescriptor['verify']=function(_0x52af4a){return'object'!=typeof _0x52af4a||null===_0x52af4a?'object\x20expected':null!=_0x52af4a['userId']&&_0x52af4a['hasOwnProperty']('userId')&&!$util['isString'](_0x52af4a['userId'])?'userId:\x20string\x20expected':null!=_0x52af4a['type']&&_0x52af4a['hasOwnProperty']('type')&&!$util['isString'](_0x52af4a['type'])?'type:\x20string\x20expected':null!=_0x52af4a['createdAt']&&_0x52af4a['hasOwnProperty']('createdAt')&&!$util['isString'](_0x52af4a['createdAt'])?'createdAt:\x20string\x20expected':null;},OperationMetadataDescriptor['fromObject']=function(object){if(object instanceof $root['OperationMetadataDescriptor'])return object;var _0x3d9ed2=new $root['OperationMetadataDescriptor']();return null!=object['userId']&&(_0x3d9ed2['userId']=String(object['userId'])),null!=object['type']&&(_0x3d9ed2['type']=String(object['type'])),null!=object['createdAt']&&(_0x3d9ed2['createdAt']=String(object['createdAt'])),_0x3d9ed2;},OperationMetadataDescriptor['toObject']=function(_0x4959f5,options){options||(options={});var object={};return options['defaults']&&(object['userId']='',object['type']='',object['createdAt']=''),null!=_0x4959f5['userId']&&_0x4959f5['hasOwnProperty']('userId')&&(object['userId']=_0x4959f5['userId']),null!=_0x4959f5['type']&&_0x4959f5['hasOwnProperty']('type')&&(object['type']=_0x4959f5['type']),null!=_0x4959f5['createdAt']&&_0x4959f5['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x4959f5['createdAt']),object;},OperationMetadataDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},OperationMetadataDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/OperationMetadataDescriptor';},OperationMetadataDescriptor;}()),$root['CollaborativeEditingConnectMessage']=(function(){function CollaborativeEditingConnectMessage(properties){if(this['buffers']=[],this['types']=[],properties){for(var _0x280452=Object['keys'](properties),_0x128985=0x0;_0x128985<_0x280452['length'];++_0x128985)null!=properties[_0x280452[_0x128985]]&&(this[_0x280452[_0x128985]]=properties[_0x280452[_0x128985]]);}}return CollaborativeEditingConnectMessage['prototype']['id']='',CollaborativeEditingConnectMessage['prototype']['bundleVersion']='',CollaborativeEditingConnectMessage['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingConnectMessage['prototype']['types']=$util['emptyArray'],CollaborativeEditingConnectMessage['prototype']['lastOperationId']='',CollaborativeEditingConnectMessage['create']=function(properties){return new CollaborativeEditingConnectMessage(properties);},CollaborativeEditingConnectMessage['encode']=function(_0x17bec3,writer){if(writer||(writer=$Writer['create']()),null!=_0x17bec3['id']&&Object['hasOwnProperty']['call'](_0x17bec3,'id')&&writer['uint32'](0xa)['string'](_0x17bec3['id']),null!=_0x17bec3['bundleVersion']&&Object['hasOwnProperty']['call'](_0x17bec3,'bundleVersion')&&writer['uint32'](0x12)['string'](_0x17bec3['bundleVersion']),null!=_0x17bec3['buffers']&&_0x17bec3['buffers']['length']){for(var _0x43c1c5=0x0;_0x43c1c5<_0x17bec3['buffers']['length'];++_0x43c1c5)writer['uint32'](0x1a)['bytes'](_0x17bec3['buffers'][_0x43c1c5]);}if(null!=_0x17bec3['types']&&_0x17bec3['types']['length']){writer['uint32'](0x22)['fork']();for(_0x43c1c5=0x0;_0x43c1c5<_0x17bec3['types']['length'];++_0x43c1c5)writer['uint32'](_0x17bec3['types'][_0x43c1c5]);writer['ldelim']();}return null!=_0x17bec3['lastOperationId']&&Object['hasOwnProperty']['call'](_0x17bec3,'lastOperationId')&&writer['uint32'](0x2a)['string'](_0x17bec3['lastOperationId']),writer;},CollaborativeEditingConnectMessage['encodeDelimited']=function(_0x187571,writer){return this['encode'](_0x187571,writer)['ldelim']();},CollaborativeEditingConnectMessage['decode']=function(_0x5c92d4,length,_0x5b4efe){_0x5c92d4 instanceof _0x7b4aff||(_0x5c92d4=_0x7b4aff['create'](_0x5c92d4));for(var _0x499460=void 0x0===length?_0x5c92d4['len']:_0x5c92d4['pos']+length,_0x17fec9=new $root['CollaborativeEditingConnectMessage']();_0x5c92d4['pos']<_0x499460;){var tag=_0x5c92d4['uint32']();if(tag===_0x5b4efe)break;switch(tag>>>0x3){case 0x1:_0x17fec9['id']=_0x5c92d4['string']();break;case 0x2:_0x17fec9['bundleVersion']=_0x5c92d4['string']();break;case 0x3:_0x17fec9['buffers']&&_0x17fec9['buffers']['length']||(_0x17fec9['buffers']=[]),_0x17fec9['buffers']['push'](_0x5c92d4['bytes']());break;case 0x4:if(_0x17fec9['types']&&_0x17fec9['types']['length']||(_0x17fec9['types']=[]),0x2==(0x7&tag)){for(var _0x1ae4af=_0x5c92d4['uint32']()+_0x5c92d4['pos'];_0x5c92d4['pos']<_0x1ae4af;)_0x17fec9['types']['push'](_0x5c92d4['uint32']());}else _0x17fec9['types']['push'](_0x5c92d4['uint32']());break;case 0x5:_0x17fec9['lastOperationId']=_0x5c92d4['string']();break;default:_0x5c92d4['skipType'](0x7&tag);}}return _0x17fec9;},CollaborativeEditingConnectMessage['decodeDelimited']=function(_0x471321){return _0x471321 instanceof _0x7b4aff||(_0x471321=new _0x7b4aff(_0x471321)),this['decode'](_0x471321,_0x471321['uint32']());},CollaborativeEditingConnectMessage['verify']=function(_0x41cc26){if('object'!=typeof _0x41cc26||null===_0x41cc26)return'object\x20expected';if(null!=_0x41cc26['id']&&_0x41cc26['hasOwnProperty']('id')&&!$util['isString'](_0x41cc26['id']))return'id:\x20string\x20expected';if(null!=_0x41cc26['bundleVersion']&&_0x41cc26['hasOwnProperty']('bundleVersion')&&!$util['isString'](_0x41cc26['bundleVersion']))return'bundleVersion:\x20string\x20expected';if(null!=_0x41cc26['buffers']&&_0x41cc26['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x41cc26['buffers']))return'buffers:\x20array\x20expected';for(var _0x14a788=0x0;_0x14a788<_0x41cc26['buffers']['length'];++_0x14a788)if(!(_0x41cc26['buffers'][_0x14a788]&&'number'==typeof _0x41cc26['buffers'][_0x14a788]['length']||$util['isString'](_0x41cc26['buffers'][_0x14a788])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x41cc26['types']&&_0x41cc26['hasOwnProperty']('types')){if(!Array['isArray'](_0x41cc26['types']))return'types:\x20array\x20expected';for(_0x14a788=0x0;_0x14a788<_0x41cc26['types']['length'];++_0x14a788)if(!$util['isInteger'](_0x41cc26['types'][_0x14a788]))return'types:\x20integer[]\x20expected';}return null!=_0x41cc26['lastOperationId']&&_0x41cc26['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x41cc26['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},CollaborativeEditingConnectMessage['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingConnectMessage'])return object;var _0x4e67f5=new $root['CollaborativeEditingConnectMessage']();if(null!=object['id']&&(_0x4e67f5['id']=String(object['id'])),null!=object['bundleVersion']&&(_0x4e67f5['bundleVersion']=String(object['bundleVersion'])),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingConnectMessage.buffers:\x20array\x20expected');_0x4e67f5['buffers']=[];for(var _0x197545=0x0;_0x197545<object['buffers']['length'];++_0x197545)'string'==typeof object['buffers'][_0x197545]?$util['base64']['decode'](object['buffers'][_0x197545],_0x4e67f5['buffers'][_0x197545]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x197545])),0x0):object['buffers'][_0x197545]['length']>=0x0&&(_0x4e67f5['buffers'][_0x197545]=object['buffers'][_0x197545]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingConnectMessage.types:\x20array\x20expected');_0x4e67f5['types']=[];for(_0x197545=0x0;_0x197545<object['types']['length'];++_0x197545)_0x4e67f5['types'][_0x197545]=object['types'][_0x197545]>>>0x0;}return null!=object['lastOperationId']&&(_0x4e67f5['lastOperationId']=String(object['lastOperationId'])),_0x4e67f5;},CollaborativeEditingConnectMessage['toObject']=function(_0x44ae63,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[]),options['defaults']&&(object['id']='',object['bundleVersion']='',object['lastOperationId']=''),null!=_0x44ae63['id']&&_0x44ae63['hasOwnProperty']('id')&&(object['id']=_0x44ae63['id']),null!=_0x44ae63['bundleVersion']&&_0x44ae63['hasOwnProperty']('bundleVersion')&&(object['bundleVersion']=_0x44ae63['bundleVersion']),_0x44ae63['buffers']&&_0x44ae63['buffers']['length']){object['buffers']=[];for(var _0x27c76c=0x0;_0x27c76c<_0x44ae63['buffers']['length'];++_0x27c76c)object['buffers'][_0x27c76c]=options['bytes']===String?$util['base64']['encode'](_0x44ae63['buffers'][_0x27c76c],0x0,_0x44ae63['buffers'][_0x27c76c]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x44ae63['buffers'][_0x27c76c]):_0x44ae63['buffers'][_0x27c76c];}if(_0x44ae63['types']&&_0x44ae63['types']['length']){object['types']=[];for(_0x27c76c=0x0;_0x27c76c<_0x44ae63['types']['length'];++_0x27c76c)object['types'][_0x27c76c]=_0x44ae63['types'][_0x27c76c];}return null!=_0x44ae63['lastOperationId']&&_0x44ae63['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x44ae63['lastOperationId']),object;},CollaborativeEditingConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingConnectMessage';},CollaborativeEditingConnectMessage;}()),$root['CollaborativeEditingReconnectMessage']=(function(){function CollaborativeEditingReconnectMessage(properties){if(properties){for(var _0x1703f8=Object['keys'](properties),_0x37e718=0x0;_0x37e718<_0x1703f8['length'];++_0x37e718)null!=properties[_0x1703f8[_0x37e718]]&&(this[_0x1703f8[_0x37e718]]=properties[_0x1703f8[_0x37e718]]);}}return CollaborativeEditingReconnectMessage['prototype']['id']='',CollaborativeEditingReconnectMessage['prototype']['bundleVersion']='',CollaborativeEditingReconnectMessage['prototype']['lastKnowVersion']=0x0,CollaborativeEditingReconnectMessage['create']=function(properties){return new CollaborativeEditingReconnectMessage(properties);},CollaborativeEditingReconnectMessage['encode']=function(_0x288c18,writer){return writer||(writer=$Writer['create']()),null!=_0x288c18['id']&&Object['hasOwnProperty']['call'](_0x288c18,'id')&&writer['uint32'](0xa)['string'](_0x288c18['id']),null!=_0x288c18['bundleVersion']&&Object['hasOwnProperty']['call'](_0x288c18,'bundleVersion')&&writer['uint32'](0x12)['string'](_0x288c18['bundleVersion']),null!=_0x288c18['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x288c18,'lastKnowVersion')&&writer['uint32'](0x18)['uint32'](_0x288c18['lastKnowVersion']),writer;},CollaborativeEditingReconnectMessage['encodeDelimited']=function(_0x545526,writer){return this['encode'](_0x545526,writer)['ldelim']();},CollaborativeEditingReconnectMessage['decode']=function(_0x584e23,length,_0x371846){_0x584e23 instanceof _0x7b4aff||(_0x584e23=_0x7b4aff['create'](_0x584e23));for(var _0x5b4212=void 0x0===length?_0x584e23['len']:_0x584e23['pos']+length,_0x1322d6=new $root['CollaborativeEditingReconnectMessage']();_0x584e23['pos']<_0x5b4212;){var tag=_0x584e23['uint32']();if(tag===_0x371846)break;switch(tag>>>0x3){case 0x1:_0x1322d6['id']=_0x584e23['string']();break;case 0x2:_0x1322d6['bundleVersion']=_0x584e23['string']();break;case 0x3:_0x1322d6['lastKnowVersion']=_0x584e23['uint32']();break;default:_0x584e23['skipType'](0x7&tag);}}return _0x1322d6;},CollaborativeEditingReconnectMessage['decodeDelimited']=function(_0x20307b){return _0x20307b instanceof _0x7b4aff||(_0x20307b=new _0x7b4aff(_0x20307b)),this['decode'](_0x20307b,_0x20307b['uint32']());},CollaborativeEditingReconnectMessage['verify']=function(_0x5c3273){return'object'!=typeof _0x5c3273||null===_0x5c3273?'object\x20expected':null!=_0x5c3273['id']&&_0x5c3273['hasOwnProperty']('id')&&!$util['isString'](_0x5c3273['id'])?'id:\x20string\x20expected':null!=_0x5c3273['bundleVersion']&&_0x5c3273['hasOwnProperty']('bundleVersion')&&!$util['isString'](_0x5c3273['bundleVersion'])?'bundleVersion:\x20string\x20expected':null!=_0x5c3273['lastKnowVersion']&&_0x5c3273['hasOwnProperty']('lastKnowVersion')&&!$util['isInteger'](_0x5c3273['lastKnowVersion'])?'lastKnowVersion:\x20integer\x20expected':null;},CollaborativeEditingReconnectMessage['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingReconnectMessage'])return object;var _0x5eff15=new $root['CollaborativeEditingReconnectMessage']();return null!=object['id']&&(_0x5eff15['id']=String(object['id'])),null!=object['bundleVersion']&&(_0x5eff15['bundleVersion']=String(object['bundleVersion'])),null!=object['lastKnowVersion']&&(_0x5eff15['lastKnowVersion']=object['lastKnowVersion']>>>0x0),_0x5eff15;},CollaborativeEditingReconnectMessage['toObject']=function(_0x44af95,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['bundleVersion']='',object['lastKnowVersion']=0x0),null!=_0x44af95['id']&&_0x44af95['hasOwnProperty']('id')&&(object['id']=_0x44af95['id']),null!=_0x44af95['bundleVersion']&&_0x44af95['hasOwnProperty']('bundleVersion')&&(object['bundleVersion']=_0x44af95['bundleVersion']),null!=_0x44af95['lastKnowVersion']&&_0x44af95['hasOwnProperty']('lastKnowVersion')&&(object['lastKnowVersion']=_0x44af95['lastKnowVersion']),object;},CollaborativeEditingReconnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingReconnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingReconnectMessage';},CollaborativeEditingReconnectMessage;}()),$root['CollaborativeEditingUpdateMessage']=(function(){function CollaborativeEditingUpdateMessage(properties){if(this['buffers']=[],this['types']=[],this['metadata']=[],properties){for(var _0x4cc431=Object['keys'](properties),_0x9d1ef0=0x0;_0x9d1ef0<_0x4cc431['length'];++_0x9d1ef0)null!=properties[_0x4cc431[_0x9d1ef0]]&&(this[_0x4cc431[_0x9d1ef0]]=properties[_0x4cc431[_0x9d1ef0]]);}}return CollaborativeEditingUpdateMessage['prototype']['id']='',CollaborativeEditingUpdateMessage['prototype']['baseVersion']=0x0,CollaborativeEditingUpdateMessage['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingUpdateMessage['prototype']['types']=$util['emptyArray'],CollaborativeEditingUpdateMessage['prototype']['metadata']=$util['emptyArray'],CollaborativeEditingUpdateMessage['prototype']['lastOperationId']='',CollaborativeEditingUpdateMessage['create']=function(properties){return new CollaborativeEditingUpdateMessage(properties);},CollaborativeEditingUpdateMessage['encode']=function(_0x8f208f,writer){if(writer||(writer=$Writer['create']()),null!=_0x8f208f['id']&&Object['hasOwnProperty']['call'](_0x8f208f,'id')&&writer['uint32'](0xa)['string'](_0x8f208f['id']),null!=_0x8f208f['baseVersion']&&Object['hasOwnProperty']['call'](_0x8f208f,'baseVersion')&&writer['uint32'](0x10)['uint32'](_0x8f208f['baseVersion']),null!=_0x8f208f['buffers']&&_0x8f208f['buffers']['length']){for(var _0x1688f3=0x0;_0x1688f3<_0x8f208f['buffers']['length'];++_0x1688f3)writer['uint32'](0x1a)['bytes'](_0x8f208f['buffers'][_0x1688f3]);}if(null!=_0x8f208f['types']&&_0x8f208f['types']['length']){writer['uint32'](0x22)['fork']();for(_0x1688f3=0x0;_0x1688f3<_0x8f208f['types']['length'];++_0x1688f3)writer['uint32'](_0x8f208f['types'][_0x1688f3]);writer['ldelim']();}if(null!=_0x8f208f['metadata']&&_0x8f208f['metadata']['length']){for(_0x1688f3=0x0;_0x1688f3<_0x8f208f['metadata']['length'];++_0x1688f3)$root['OperationMetadataDescriptor']['encode'](_0x8f208f['metadata'][_0x1688f3],writer['uint32'](0x32)['fork']())['ldelim']();}return null!=_0x8f208f['lastOperationId']&&Object['hasOwnProperty']['call'](_0x8f208f,'lastOperationId')&&writer['uint32'](0x3a)['string'](_0x8f208f['lastOperationId']),writer;},CollaborativeEditingUpdateMessage['encodeDelimited']=function(_0x55df26,writer){return this['encode'](_0x55df26,writer)['ldelim']();},CollaborativeEditingUpdateMessage['decode']=function(_0x5eb883,length,_0x5c1b2d){_0x5eb883 instanceof _0x7b4aff||(_0x5eb883=_0x7b4aff['create'](_0x5eb883));for(var _0x120d72=void 0x0===length?_0x5eb883['len']:_0x5eb883['pos']+length,_0x27022c=new $root['CollaborativeEditingUpdateMessage']();_0x5eb883['pos']<_0x120d72;){var tag=_0x5eb883['uint32']();if(tag===_0x5c1b2d)break;switch(tag>>>0x3){case 0x1:_0x27022c['id']=_0x5eb883['string']();break;case 0x2:_0x27022c['baseVersion']=_0x5eb883['uint32']();break;case 0x3:_0x27022c['buffers']&&_0x27022c['buffers']['length']||(_0x27022c['buffers']=[]),_0x27022c['buffers']['push'](_0x5eb883['bytes']());break;case 0x4:if(_0x27022c['types']&&_0x27022c['types']['length']||(_0x27022c['types']=[]),0x2==(0x7&tag)){for(var _0x46c3c5=_0x5eb883['uint32']()+_0x5eb883['pos'];_0x5eb883['pos']<_0x46c3c5;)_0x27022c['types']['push'](_0x5eb883['uint32']());}else _0x27022c['types']['push'](_0x5eb883['uint32']());break;case 0x6:_0x27022c['metadata']&&_0x27022c['metadata']['length']||(_0x27022c['metadata']=[]),_0x27022c['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x5eb883,_0x5eb883['uint32']()));break;case 0x7:_0x27022c['lastOperationId']=_0x5eb883['string']();break;default:_0x5eb883['skipType'](0x7&tag);}}return _0x27022c;},CollaborativeEditingUpdateMessage['decodeDelimited']=function(_0x507bb3){return _0x507bb3 instanceof _0x7b4aff||(_0x507bb3=new _0x7b4aff(_0x507bb3)),this['decode'](_0x507bb3,_0x507bb3['uint32']());},CollaborativeEditingUpdateMessage['verify']=function(_0x5f2592){if('object'!=typeof _0x5f2592||null===_0x5f2592)return'object\x20expected';if(null!=_0x5f2592['id']&&_0x5f2592['hasOwnProperty']('id')&&!$util['isString'](_0x5f2592['id']))return'id:\x20string\x20expected';if(null!=_0x5f2592['baseVersion']&&_0x5f2592['hasOwnProperty']('baseVersion')&&!$util['isInteger'](_0x5f2592['baseVersion']))return'baseVersion:\x20integer\x20expected';if(null!=_0x5f2592['buffers']&&_0x5f2592['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x5f2592['buffers']))return'buffers:\x20array\x20expected';for(var _0x3dc94c=0x0;_0x3dc94c<_0x5f2592['buffers']['length'];++_0x3dc94c)if(!(_0x5f2592['buffers'][_0x3dc94c]&&'number'==typeof _0x5f2592['buffers'][_0x3dc94c]['length']||$util['isString'](_0x5f2592['buffers'][_0x3dc94c])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x5f2592['types']&&_0x5f2592['hasOwnProperty']('types')){if(!Array['isArray'](_0x5f2592['types']))return'types:\x20array\x20expected';for(_0x3dc94c=0x0;_0x3dc94c<_0x5f2592['types']['length'];++_0x3dc94c)if(!$util['isInteger'](_0x5f2592['types'][_0x3dc94c]))return'types:\x20integer[]\x20expected';}if(null!=_0x5f2592['metadata']&&_0x5f2592['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x5f2592['metadata']))return'metadata:\x20array\x20expected';for(_0x3dc94c=0x0;_0x3dc94c<_0x5f2592['metadata']['length'];++_0x3dc94c){var _0x2ee746=$root['OperationMetadataDescriptor']['verify'](_0x5f2592['metadata'][_0x3dc94c]);if(_0x2ee746)return'metadata.'+_0x2ee746;}}return null!=_0x5f2592['lastOperationId']&&_0x5f2592['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x5f2592['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},CollaborativeEditingUpdateMessage['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingUpdateMessage'])return object;var _0x2aab90=new $root['CollaborativeEditingUpdateMessage']();if(null!=object['id']&&(_0x2aab90['id']=String(object['id'])),null!=object['baseVersion']&&(_0x2aab90['baseVersion']=object['baseVersion']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingUpdateMessage.buffers:\x20array\x20expected');_0x2aab90['buffers']=[];for(var _0x23c58c=0x0;_0x23c58c<object['buffers']['length'];++_0x23c58c)'string'==typeof object['buffers'][_0x23c58c]?$util['base64']['decode'](object['buffers'][_0x23c58c],_0x2aab90['buffers'][_0x23c58c]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x23c58c])),0x0):object['buffers'][_0x23c58c]['length']>=0x0&&(_0x2aab90['buffers'][_0x23c58c]=object['buffers'][_0x23c58c]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingUpdateMessage.types:\x20array\x20expected');_0x2aab90['types']=[];for(_0x23c58c=0x0;_0x23c58c<object['types']['length'];++_0x23c58c)_0x2aab90['types'][_0x23c58c]=object['types'][_0x23c58c]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20array\x20expected');_0x2aab90['metadata']=[];for(_0x23c58c=0x0;_0x23c58c<object['metadata']['length'];++_0x23c58c){if('object'!=typeof object['metadata'][_0x23c58c])throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20object\x20expected');_0x2aab90['metadata'][_0x23c58c]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x23c58c]);}}return null!=object['lastOperationId']&&(_0x2aab90['lastOperationId']=String(object['lastOperationId'])),_0x2aab90;},CollaborativeEditingUpdateMessage['toObject']=function(_0x437ce2,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[],object['metadata']=[]),options['defaults']&&(object['id']='',object['baseVersion']=0x0,object['lastOperationId']=''),null!=_0x437ce2['id']&&_0x437ce2['hasOwnProperty']('id')&&(object['id']=_0x437ce2['id']),null!=_0x437ce2['baseVersion']&&_0x437ce2['hasOwnProperty']('baseVersion')&&(object['baseVersion']=_0x437ce2['baseVersion']),_0x437ce2['buffers']&&_0x437ce2['buffers']['length']){object['buffers']=[];for(var _0x3991ec=0x0;_0x3991ec<_0x437ce2['buffers']['length'];++_0x3991ec)object['buffers'][_0x3991ec]=options['bytes']===String?$util['base64']['encode'](_0x437ce2['buffers'][_0x3991ec],0x0,_0x437ce2['buffers'][_0x3991ec]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x437ce2['buffers'][_0x3991ec]):_0x437ce2['buffers'][_0x3991ec];}if(_0x437ce2['types']&&_0x437ce2['types']['length']){object['types']=[];for(_0x3991ec=0x0;_0x3991ec<_0x437ce2['types']['length'];++_0x3991ec)object['types'][_0x3991ec]=_0x437ce2['types'][_0x3991ec];}if(_0x437ce2['metadata']&&_0x437ce2['metadata']['length']){object['metadata']=[];for(_0x3991ec=0x0;_0x3991ec<_0x437ce2['metadata']['length'];++_0x3991ec)object['metadata'][_0x3991ec]=$root['OperationMetadataDescriptor']['toObject'](_0x437ce2['metadata'][_0x3991ec],options);}return null!=_0x437ce2['lastOperationId']&&_0x437ce2['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x437ce2['lastOperationId']),object;},CollaborativeEditingUpdateMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingUpdateMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingUpdateMessage';},CollaborativeEditingUpdateMessage;}()),$root['GetDocumentDetailsMessage']=(function(){function GetDocumentDetailsMessage(properties){if(properties){for(var _0x2f6ece=Object['keys'](properties),_0x1ce5b3=0x0;_0x1ce5b3<_0x2f6ece['length'];++_0x1ce5b3)null!=properties[_0x2f6ece[_0x1ce5b3]]&&(this[_0x2f6ece[_0x1ce5b3]]=properties[_0x2f6ece[_0x1ce5b3]]);}}return GetDocumentDetailsMessage['prototype']['documentId']='',GetDocumentDetailsMessage['prototype']['environmentId']='',GetDocumentDetailsMessage['create']=function(properties){return new GetDocumentDetailsMessage(properties);},GetDocumentDetailsMessage['encode']=function(_0x321fac,writer){return writer||(writer=$Writer['create']()),null!=_0x321fac['documentId']&&Object['hasOwnProperty']['call'](_0x321fac,'documentId')&&writer['uint32'](0xa)['string'](_0x321fac['documentId']),null!=_0x321fac['environmentId']&&Object['hasOwnProperty']['call'](_0x321fac,'environmentId')&&writer['uint32'](0x12)['string'](_0x321fac['environmentId']),writer;},GetDocumentDetailsMessage['encodeDelimited']=function(_0x55a476,writer){return this['encode'](_0x55a476,writer)['ldelim']();},GetDocumentDetailsMessage['decode']=function(_0x41755a,length,_0x427c4e){_0x41755a instanceof _0x7b4aff||(_0x41755a=_0x7b4aff['create'](_0x41755a));for(var _0x53e5aa=void 0x0===length?_0x41755a['len']:_0x41755a['pos']+length,_0x172aca=new $root['GetDocumentDetailsMessage']();_0x41755a['pos']<_0x53e5aa;){var tag=_0x41755a['uint32']();if(tag===_0x427c4e)break;switch(tag>>>0x3){case 0x1:_0x172aca['documentId']=_0x41755a['string']();break;case 0x2:_0x172aca['environmentId']=_0x41755a['string']();break;default:_0x41755a['skipType'](0x7&tag);}}return _0x172aca;},GetDocumentDetailsMessage['decodeDelimited']=function(_0x2679e2){return _0x2679e2 instanceof _0x7b4aff||(_0x2679e2=new _0x7b4aff(_0x2679e2)),this['decode'](_0x2679e2,_0x2679e2['uint32']());},GetDocumentDetailsMessage['verify']=function(_0x23266f){return'object'!=typeof _0x23266f||null===_0x23266f?'object\x20expected':null!=_0x23266f['documentId']&&_0x23266f['hasOwnProperty']('documentId')&&!$util['isString'](_0x23266f['documentId'])?'documentId:\x20string\x20expected':null!=_0x23266f['environmentId']&&_0x23266f['hasOwnProperty']('environmentId')&&!$util['isString'](_0x23266f['environmentId'])?'environmentId:\x20string\x20expected':null;},GetDocumentDetailsMessage['fromObject']=function(object){if(object instanceof $root['GetDocumentDetailsMessage'])return object;var _0x40acf1=new $root['GetDocumentDetailsMessage']();return null!=object['documentId']&&(_0x40acf1['documentId']=String(object['documentId'])),null!=object['environmentId']&&(_0x40acf1['environmentId']=String(object['environmentId'])),_0x40acf1;},GetDocumentDetailsMessage['toObject']=function(_0x4a8bf9,options){options||(options={});var object={};return options['defaults']&&(object['documentId']='',object['environmentId']=''),null!=_0x4a8bf9['documentId']&&_0x4a8bf9['hasOwnProperty']('documentId')&&(object['documentId']=_0x4a8bf9['documentId']),null!=_0x4a8bf9['environmentId']&&_0x4a8bf9['hasOwnProperty']('environmentId')&&(object['environmentId']=_0x4a8bf9['environmentId']),object;},GetDocumentDetailsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetDocumentDetailsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetDocumentDetailsMessage';},GetDocumentDetailsMessage;}()),$root['CollaborativeEditingConnectResponse']=(function(){function CollaborativeEditingConnectResponse(properties){if(this['buffers']=[],this['types']=[],this['metadata']=[],properties){for(var _0x25fb27=Object['keys'](properties),_0x1d9c31=0x0;_0x1d9c31<_0x25fb27['length'];++_0x1d9c31)null!=properties[_0x25fb27[_0x1d9c31]]&&(this[_0x25fb27[_0x1d9c31]]=properties[_0x25fb27[_0x1d9c31]]);}}return CollaborativeEditingConnectResponse['prototype']['channel']='',CollaborativeEditingConnectResponse['prototype']['offset']=0x0,CollaborativeEditingConnectResponse['prototype']['version']=0x0,CollaborativeEditingConnectResponse['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingConnectResponse['prototype']['types']=$util['emptyArray'],CollaborativeEditingConnectResponse['prototype']['metadata']=$util['emptyArray'],CollaborativeEditingConnectResponse['prototype']['initData']='',CollaborativeEditingConnectResponse['prototype']['isInitialized']=!0x1,CollaborativeEditingConnectResponse['prototype']['sessionId']='',CollaborativeEditingConnectResponse['prototype']['lastOperationId']='',CollaborativeEditingConnectResponse['prototype']['sessionCreatedAt']='',CollaborativeEditingConnectResponse['create']=function(properties){return new CollaborativeEditingConnectResponse(properties);},CollaborativeEditingConnectResponse['encode']=function(_0x2d2608,writer){if(writer||(writer=$Writer['create']()),null!=_0x2d2608['channel']&&Object['hasOwnProperty']['call'](_0x2d2608,'channel')&&writer['uint32'](0xa)['string'](_0x2d2608['channel']),null!=_0x2d2608['offset']&&Object['hasOwnProperty']['call'](_0x2d2608,'offset')&&writer['uint32'](0x10)['uint32'](_0x2d2608['offset']),null!=_0x2d2608['version']&&Object['hasOwnProperty']['call'](_0x2d2608,'version')&&writer['uint32'](0x18)['uint32'](_0x2d2608['version']),null!=_0x2d2608['buffers']&&_0x2d2608['buffers']['length']){for(var _0x49fd54=0x0;_0x49fd54<_0x2d2608['buffers']['length'];++_0x49fd54)writer['uint32'](0x22)['bytes'](_0x2d2608['buffers'][_0x49fd54]);}if(null!=_0x2d2608['types']&&_0x2d2608['types']['length']){writer['uint32'](0x2a)['fork']();for(_0x49fd54=0x0;_0x49fd54<_0x2d2608['types']['length'];++_0x49fd54)writer['uint32'](_0x2d2608['types'][_0x49fd54]);writer['ldelim']();}if(null!=_0x2d2608['metadata']&&_0x2d2608['metadata']['length']){for(_0x49fd54=0x0;_0x49fd54<_0x2d2608['metadata']['length'];++_0x49fd54)$root['OperationMetadataDescriptor']['encode'](_0x2d2608['metadata'][_0x49fd54],writer['uint32'](0x3a)['fork']())['ldelim']();}return null!=_0x2d2608['initData']&&Object['hasOwnProperty']['call'](_0x2d2608,'initData')&&writer['uint32'](0x42)['string'](_0x2d2608['initData']),null!=_0x2d2608['isInitialized']&&Object['hasOwnProperty']['call'](_0x2d2608,'isInitialized')&&writer['uint32'](0x48)['bool'](_0x2d2608['isInitialized']),null!=_0x2d2608['sessionId']&&Object['hasOwnProperty']['call'](_0x2d2608,'sessionId')&&writer['uint32'](0x52)['string'](_0x2d2608['sessionId']),null!=_0x2d2608['lastOperationId']&&Object['hasOwnProperty']['call'](_0x2d2608,'lastOperationId')&&writer['uint32'](0x5a)['string'](_0x2d2608['lastOperationId']),null!=_0x2d2608['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0x2d2608,'sessionCreatedAt')&&writer['uint32'](0x62)['string'](_0x2d2608['sessionCreatedAt']),writer;},CollaborativeEditingConnectResponse['encodeDelimited']=function(_0x13fbec,writer){return this['encode'](_0x13fbec,writer)['ldelim']();},CollaborativeEditingConnectResponse['decode']=function(_0xa0b0ad,length,_0x1c12cb){_0xa0b0ad instanceof _0x7b4aff||(_0xa0b0ad=_0x7b4aff['create'](_0xa0b0ad));for(var _0x263b9e=void 0x0===length?_0xa0b0ad['len']:_0xa0b0ad['pos']+length,_0x145e81=new $root['CollaborativeEditingConnectResponse']();_0xa0b0ad['pos']<_0x263b9e;){var tag=_0xa0b0ad['uint32']();if(tag===_0x1c12cb)break;switch(tag>>>0x3){case 0x1:_0x145e81['channel']=_0xa0b0ad['string']();break;case 0x2:_0x145e81['offset']=_0xa0b0ad['uint32']();break;case 0x3:_0x145e81['version']=_0xa0b0ad['uint32']();break;case 0x4:_0x145e81['buffers']&&_0x145e81['buffers']['length']||(_0x145e81['buffers']=[]),_0x145e81['buffers']['push'](_0xa0b0ad['bytes']());break;case 0x5:if(_0x145e81['types']&&_0x145e81['types']['length']||(_0x145e81['types']=[]),0x2==(0x7&tag)){for(var _0x1da498=_0xa0b0ad['uint32']()+_0xa0b0ad['pos'];_0xa0b0ad['pos']<_0x1da498;)_0x145e81['types']['push'](_0xa0b0ad['uint32']());}else _0x145e81['types']['push'](_0xa0b0ad['uint32']());break;case 0x7:_0x145e81['metadata']&&_0x145e81['metadata']['length']||(_0x145e81['metadata']=[]),_0x145e81['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0xa0b0ad,_0xa0b0ad['uint32']()));break;case 0x8:_0x145e81['initData']=_0xa0b0ad['string']();break;case 0x9:_0x145e81['isInitialized']=_0xa0b0ad['bool']();break;case 0xa:_0x145e81['sessionId']=_0xa0b0ad['string']();break;case 0xb:_0x145e81['lastOperationId']=_0xa0b0ad['string']();break;case 0xc:_0x145e81['sessionCreatedAt']=_0xa0b0ad['string']();break;default:_0xa0b0ad['skipType'](0x7&tag);}}return _0x145e81;},CollaborativeEditingConnectResponse['decodeDelimited']=function(_0x11efb3){return _0x11efb3 instanceof _0x7b4aff||(_0x11efb3=new _0x7b4aff(_0x11efb3)),this['decode'](_0x11efb3,_0x11efb3['uint32']());},CollaborativeEditingConnectResponse['verify']=function(_0x532f77){if('object'!=typeof _0x532f77||null===_0x532f77)return'object\x20expected';if(null!=_0x532f77['channel']&&_0x532f77['hasOwnProperty']('channel')&&!$util['isString'](_0x532f77['channel']))return'channel:\x20string\x20expected';if(null!=_0x532f77['offset']&&_0x532f77['hasOwnProperty']('offset')&&!$util['isInteger'](_0x532f77['offset']))return'offset:\x20integer\x20expected';if(null!=_0x532f77['version']&&_0x532f77['hasOwnProperty']('version')&&!$util['isInteger'](_0x532f77['version']))return'version:\x20integer\x20expected';if(null!=_0x532f77['buffers']&&_0x532f77['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x532f77['buffers']))return'buffers:\x20array\x20expected';for(var _0x4628cf=0x0;_0x4628cf<_0x532f77['buffers']['length'];++_0x4628cf)if(!(_0x532f77['buffers'][_0x4628cf]&&'number'==typeof _0x532f77['buffers'][_0x4628cf]['length']||$util['isString'](_0x532f77['buffers'][_0x4628cf])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x532f77['types']&&_0x532f77['hasOwnProperty']('types')){if(!Array['isArray'](_0x532f77['types']))return'types:\x20array\x20expected';for(_0x4628cf=0x0;_0x4628cf<_0x532f77['types']['length'];++_0x4628cf)if(!$util['isInteger'](_0x532f77['types'][_0x4628cf]))return'types:\x20integer[]\x20expected';}if(null!=_0x532f77['metadata']&&_0x532f77['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x532f77['metadata']))return'metadata:\x20array\x20expected';for(_0x4628cf=0x0;_0x4628cf<_0x532f77['metadata']['length'];++_0x4628cf){var _0x9390f0=$root['OperationMetadataDescriptor']['verify'](_0x532f77['metadata'][_0x4628cf]);if(_0x9390f0)return'metadata.'+_0x9390f0;}}return null!=_0x532f77['initData']&&_0x532f77['hasOwnProperty']('initData')&&!$util['isString'](_0x532f77['initData'])?'initData:\x20string\x20expected':null!=_0x532f77['isInitialized']&&_0x532f77['hasOwnProperty']('isInitialized')&&'boolean'!=typeof _0x532f77['isInitialized']?'isInitialized:\x20boolean\x20expected':null!=_0x532f77['sessionId']&&_0x532f77['hasOwnProperty']('sessionId')&&!$util['isString'](_0x532f77['sessionId'])?'sessionId:\x20string\x20expected':null!=_0x532f77['lastOperationId']&&_0x532f77['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x532f77['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x532f77['sessionCreatedAt']&&_0x532f77['hasOwnProperty']('sessionCreatedAt')&&!$util['isString'](_0x532f77['sessionCreatedAt'])?'sessionCreatedAt:\x20string\x20expected':null;},CollaborativeEditingConnectResponse['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingConnectResponse'])return object;var _0x5ee7e4=new $root['CollaborativeEditingConnectResponse']();if(null!=object['channel']&&(_0x5ee7e4['channel']=String(object['channel'])),null!=object['offset']&&(_0x5ee7e4['offset']=object['offset']>>>0x0),null!=object['version']&&(_0x5ee7e4['version']=object['version']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingConnectResponse.buffers:\x20array\x20expected');_0x5ee7e4['buffers']=[];for(var _0x1230c6=0x0;_0x1230c6<object['buffers']['length'];++_0x1230c6)'string'==typeof object['buffers'][_0x1230c6]?$util['base64']['decode'](object['buffers'][_0x1230c6],_0x5ee7e4['buffers'][_0x1230c6]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x1230c6])),0x0):object['buffers'][_0x1230c6]['length']>=0x0&&(_0x5ee7e4['buffers'][_0x1230c6]=object['buffers'][_0x1230c6]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingConnectResponse.types:\x20array\x20expected');_0x5ee7e4['types']=[];for(_0x1230c6=0x0;_0x1230c6<object['types']['length'];++_0x1230c6)_0x5ee7e4['types'][_0x1230c6]=object['types'][_0x1230c6]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20array\x20expected');_0x5ee7e4['metadata']=[];for(_0x1230c6=0x0;_0x1230c6<object['metadata']['length'];++_0x1230c6){if('object'!=typeof object['metadata'][_0x1230c6])throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20object\x20expected');_0x5ee7e4['metadata'][_0x1230c6]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x1230c6]);}}return null!=object['initData']&&(_0x5ee7e4['initData']=String(object['initData'])),null!=object['isInitialized']&&(_0x5ee7e4['isInitialized']=Boolean(object['isInitialized'])),null!=object['sessionId']&&(_0x5ee7e4['sessionId']=String(object['sessionId'])),null!=object['lastOperationId']&&(_0x5ee7e4['lastOperationId']=String(object['lastOperationId'])),null!=object['sessionCreatedAt']&&(_0x5ee7e4['sessionCreatedAt']=String(object['sessionCreatedAt'])),_0x5ee7e4;},CollaborativeEditingConnectResponse['toObject']=function(_0x3583d2,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[],object['metadata']=[]),options['defaults']&&(object['channel']='',object['offset']=0x0,object['version']=0x0,object['initData']='',object['isInitialized']=!0x1,object['sessionId']='',object['lastOperationId']='',object['sessionCreatedAt']=''),null!=_0x3583d2['channel']&&_0x3583d2['hasOwnProperty']('channel')&&(object['channel']=_0x3583d2['channel']),null!=_0x3583d2['offset']&&_0x3583d2['hasOwnProperty']('offset')&&(object['offset']=_0x3583d2['offset']),null!=_0x3583d2['version']&&_0x3583d2['hasOwnProperty']('version')&&(object['version']=_0x3583d2['version']),_0x3583d2['buffers']&&_0x3583d2['buffers']['length']){object['buffers']=[];for(var _0x56311f=0x0;_0x56311f<_0x3583d2['buffers']['length'];++_0x56311f)object['buffers'][_0x56311f]=options['bytes']===String?$util['base64']['encode'](_0x3583d2['buffers'][_0x56311f],0x0,_0x3583d2['buffers'][_0x56311f]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x3583d2['buffers'][_0x56311f]):_0x3583d2['buffers'][_0x56311f];}if(_0x3583d2['types']&&_0x3583d2['types']['length']){object['types']=[];for(_0x56311f=0x0;_0x56311f<_0x3583d2['types']['length'];++_0x56311f)object['types'][_0x56311f]=_0x3583d2['types'][_0x56311f];}if(_0x3583d2['metadata']&&_0x3583d2['metadata']['length']){object['metadata']=[];for(_0x56311f=0x0;_0x56311f<_0x3583d2['metadata']['length'];++_0x56311f)object['metadata'][_0x56311f]=$root['OperationMetadataDescriptor']['toObject'](_0x3583d2['metadata'][_0x56311f],options);}return null!=_0x3583d2['initData']&&_0x3583d2['hasOwnProperty']('initData')&&(object['initData']=_0x3583d2['initData']),null!=_0x3583d2['isInitialized']&&_0x3583d2['hasOwnProperty']('isInitialized')&&(object['isInitialized']=_0x3583d2['isInitialized']),null!=_0x3583d2['sessionId']&&_0x3583d2['hasOwnProperty']('sessionId')&&(object['sessionId']=_0x3583d2['sessionId']),null!=_0x3583d2['lastOperationId']&&_0x3583d2['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x3583d2['lastOperationId']),null!=_0x3583d2['sessionCreatedAt']&&_0x3583d2['hasOwnProperty']('sessionCreatedAt')&&(object['sessionCreatedAt']=_0x3583d2['sessionCreatedAt']),object;},CollaborativeEditingConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingConnectResponse';},CollaborativeEditingConnectResponse;}()),$root['CollaborativeEditingResponse']=(function(){function CollaborativeEditingResponse(properties){if(this['buffers']=[],this['types']=[],this['metadata']=[],properties){for(var _0xa175a9=Object['keys'](properties),_0xf388ab=0x0;_0xf388ab<_0xa175a9['length'];++_0xf388ab)null!=properties[_0xa175a9[_0xf388ab]]&&(this[_0xa175a9[_0xf388ab]]=properties[_0xa175a9[_0xf388ab]]);}}return CollaborativeEditingResponse['prototype']['version']=0x0,CollaborativeEditingResponse['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingResponse['prototype']['types']=$util['emptyArray'],CollaborativeEditingResponse['prototype']['metadata']=$util['emptyArray'],CollaborativeEditingResponse['prototype']['lastOperationId']='',CollaborativeEditingResponse['prototype']['lastOperationAcceptedAt']='',CollaborativeEditingResponse['create']=function(properties){return new CollaborativeEditingResponse(properties);},CollaborativeEditingResponse['encode']=function(_0x379324,writer){if(writer||(writer=$Writer['create']()),null!=_0x379324['version']&&Object['hasOwnProperty']['call'](_0x379324,'version')&&writer['uint32'](0x8)['uint32'](_0x379324['version']),null!=_0x379324['buffers']&&_0x379324['buffers']['length']){for(var _0x4e906e=0x0;_0x4e906e<_0x379324['buffers']['length'];++_0x4e906e)writer['uint32'](0x12)['bytes'](_0x379324['buffers'][_0x4e906e]);}if(null!=_0x379324['types']&&_0x379324['types']['length']){writer['uint32'](0x1a)['fork']();for(_0x4e906e=0x0;_0x4e906e<_0x379324['types']['length'];++_0x4e906e)writer['uint32'](_0x379324['types'][_0x4e906e]);writer['ldelim']();}if(null!=_0x379324['metadata']&&_0x379324['metadata']['length']){for(_0x4e906e=0x0;_0x4e906e<_0x379324['metadata']['length'];++_0x4e906e)$root['OperationMetadataDescriptor']['encode'](_0x379324['metadata'][_0x4e906e],writer['uint32'](0x2a)['fork']())['ldelim']();}return null!=_0x379324['lastOperationId']&&Object['hasOwnProperty']['call'](_0x379324,'lastOperationId')&&writer['uint32'](0x32)['string'](_0x379324['lastOperationId']),null!=_0x379324['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x379324,'lastOperationAcceptedAt')&&writer['uint32'](0x3a)['string'](_0x379324['lastOperationAcceptedAt']),writer;},CollaborativeEditingResponse['encodeDelimited']=function(_0x5e1ff2,writer){return this['encode'](_0x5e1ff2,writer)['ldelim']();},CollaborativeEditingResponse['decode']=function(_0x5032eb,length,_0x363329){_0x5032eb instanceof _0x7b4aff||(_0x5032eb=_0x7b4aff['create'](_0x5032eb));for(var _0x50eca7=void 0x0===length?_0x5032eb['len']:_0x5032eb['pos']+length,_0x586921=new $root['CollaborativeEditingResponse']();_0x5032eb['pos']<_0x50eca7;){var tag=_0x5032eb['uint32']();if(tag===_0x363329)break;switch(tag>>>0x3){case 0x1:_0x586921['version']=_0x5032eb['uint32']();break;case 0x2:_0x586921['buffers']&&_0x586921['buffers']['length']||(_0x586921['buffers']=[]),_0x586921['buffers']['push'](_0x5032eb['bytes']());break;case 0x3:if(_0x586921['types']&&_0x586921['types']['length']||(_0x586921['types']=[]),0x2==(0x7&tag)){for(var _0x444c4b=_0x5032eb['uint32']()+_0x5032eb['pos'];_0x5032eb['pos']<_0x444c4b;)_0x586921['types']['push'](_0x5032eb['uint32']());}else _0x586921['types']['push'](_0x5032eb['uint32']());break;case 0x5:_0x586921['metadata']&&_0x586921['metadata']['length']||(_0x586921['metadata']=[]),_0x586921['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x5032eb,_0x5032eb['uint32']()));break;case 0x6:_0x586921['lastOperationId']=_0x5032eb['string']();break;case 0x7:_0x586921['lastOperationAcceptedAt']=_0x5032eb['string']();break;default:_0x5032eb['skipType'](0x7&tag);}}return _0x586921;},CollaborativeEditingResponse['decodeDelimited']=function(_0x4697ab){return _0x4697ab instanceof _0x7b4aff||(_0x4697ab=new _0x7b4aff(_0x4697ab)),this['decode'](_0x4697ab,_0x4697ab['uint32']());},CollaborativeEditingResponse['verify']=function(_0x37a360){if('object'!=typeof _0x37a360||null===_0x37a360)return'object\x20expected';if(null!=_0x37a360['version']&&_0x37a360['hasOwnProperty']('version')&&!$util['isInteger'](_0x37a360['version']))return'version:\x20integer\x20expected';if(null!=_0x37a360['buffers']&&_0x37a360['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x37a360['buffers']))return'buffers:\x20array\x20expected';for(var _0x54d69f=0x0;_0x54d69f<_0x37a360['buffers']['length'];++_0x54d69f)if(!(_0x37a360['buffers'][_0x54d69f]&&'number'==typeof _0x37a360['buffers'][_0x54d69f]['length']||$util['isString'](_0x37a360['buffers'][_0x54d69f])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x37a360['types']&&_0x37a360['hasOwnProperty']('types')){if(!Array['isArray'](_0x37a360['types']))return'types:\x20array\x20expected';for(_0x54d69f=0x0;_0x54d69f<_0x37a360['types']['length'];++_0x54d69f)if(!$util['isInteger'](_0x37a360['types'][_0x54d69f]))return'types:\x20integer[]\x20expected';}if(null!=_0x37a360['metadata']&&_0x37a360['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x37a360['metadata']))return'metadata:\x20array\x20expected';for(_0x54d69f=0x0;_0x54d69f<_0x37a360['metadata']['length'];++_0x54d69f){var _0x299fdd=$root['OperationMetadataDescriptor']['verify'](_0x37a360['metadata'][_0x54d69f]);if(_0x299fdd)return'metadata.'+_0x299fdd;}}return null!=_0x37a360['lastOperationId']&&_0x37a360['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x37a360['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x37a360['lastOperationAcceptedAt']&&_0x37a360['hasOwnProperty']('lastOperationAcceptedAt')&&!$util['isString'](_0x37a360['lastOperationAcceptedAt'])?'lastOperationAcceptedAt:\x20string\x20expected':null;},CollaborativeEditingResponse['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingResponse'])return object;var _0x3959c4=new $root['CollaborativeEditingResponse']();if(null!=object['version']&&(_0x3959c4['version']=object['version']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingResponse.buffers:\x20array\x20expected');_0x3959c4['buffers']=[];for(var _0x17f2c9=0x0;_0x17f2c9<object['buffers']['length'];++_0x17f2c9)'string'==typeof object['buffers'][_0x17f2c9]?$util['base64']['decode'](object['buffers'][_0x17f2c9],_0x3959c4['buffers'][_0x17f2c9]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x17f2c9])),0x0):object['buffers'][_0x17f2c9]['length']>=0x0&&(_0x3959c4['buffers'][_0x17f2c9]=object['buffers'][_0x17f2c9]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingResponse.types:\x20array\x20expected');_0x3959c4['types']=[];for(_0x17f2c9=0x0;_0x17f2c9<object['types']['length'];++_0x17f2c9)_0x3959c4['types'][_0x17f2c9]=object['types'][_0x17f2c9]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingResponse.metadata:\x20array\x20expected');_0x3959c4['metadata']=[];for(_0x17f2c9=0x0;_0x17f2c9<object['metadata']['length'];++_0x17f2c9){if('object'!=typeof object['metadata'][_0x17f2c9])throw TypeError('.CollaborativeEditingResponse.metadata:\x20object\x20expected');_0x3959c4['metadata'][_0x17f2c9]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x17f2c9]);}}return null!=object['lastOperationId']&&(_0x3959c4['lastOperationId']=String(object['lastOperationId'])),null!=object['lastOperationAcceptedAt']&&(_0x3959c4['lastOperationAcceptedAt']=String(object['lastOperationAcceptedAt'])),_0x3959c4;},CollaborativeEditingResponse['toObject']=function(_0x4d1fca,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[],object['metadata']=[]),options['defaults']&&(object['version']=0x0,object['lastOperationId']='',object['lastOperationAcceptedAt']=''),null!=_0x4d1fca['version']&&_0x4d1fca['hasOwnProperty']('version')&&(object['version']=_0x4d1fca['version']),_0x4d1fca['buffers']&&_0x4d1fca['buffers']['length']){object['buffers']=[];for(var _0xa34ced=0x0;_0xa34ced<_0x4d1fca['buffers']['length'];++_0xa34ced)object['buffers'][_0xa34ced]=options['bytes']===String?$util['base64']['encode'](_0x4d1fca['buffers'][_0xa34ced],0x0,_0x4d1fca['buffers'][_0xa34ced]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x4d1fca['buffers'][_0xa34ced]):_0x4d1fca['buffers'][_0xa34ced];}if(_0x4d1fca['types']&&_0x4d1fca['types']['length']){object['types']=[];for(_0xa34ced=0x0;_0xa34ced<_0x4d1fca['types']['length'];++_0xa34ced)object['types'][_0xa34ced]=_0x4d1fca['types'][_0xa34ced];}if(_0x4d1fca['metadata']&&_0x4d1fca['metadata']['length']){object['metadata']=[];for(_0xa34ced=0x0;_0xa34ced<_0x4d1fca['metadata']['length'];++_0xa34ced)object['metadata'][_0xa34ced]=$root['OperationMetadataDescriptor']['toObject'](_0x4d1fca['metadata'][_0xa34ced],options);}return null!=_0x4d1fca['lastOperationId']&&_0x4d1fca['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x4d1fca['lastOperationId']),null!=_0x4d1fca['lastOperationAcceptedAt']&&_0x4d1fca['hasOwnProperty']('lastOperationAcceptedAt')&&(object['lastOperationAcceptedAt']=_0x4d1fca['lastOperationAcceptedAt']),object;},CollaborativeEditingResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingResponse';},CollaborativeEditingResponse;}()),$root['GetDocumentDetailsResponse']=(function(){function GetDocumentDetailsResponse(properties){if(properties){for(var _0x43fe03=Object['keys'](properties),_0xbba4f5=0x0;_0xbba4f5<_0x43fe03['length'];++_0xbba4f5)null!=properties[_0x43fe03[_0xbba4f5]]&&(this[_0x43fe03[_0xbba4f5]]=properties[_0x43fe03[_0xbba4f5]]);}}return GetDocumentDetailsResponse['prototype']['lastDocumentSessionId']='',GetDocumentDetailsResponse['prototype']['lastDocumentSessionOperationId']='',GetDocumentDetailsResponse['prototype']['currentDocumentSessionId']='',GetDocumentDetailsResponse['prototype']['currentDocumentSessionVersion']=0x0,GetDocumentDetailsResponse['prototype']['currentDocumentSessionOperationId']='',GetDocumentDetailsResponse['create']=function(properties){return new GetDocumentDetailsResponse(properties);},GetDocumentDetailsResponse['encode']=function(_0x50c970,writer){return writer||(writer=$Writer['create']()),null!=_0x50c970['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x50c970,'lastDocumentSessionId')&&writer['uint32'](0xa)['string'](_0x50c970['lastDocumentSessionId']),null!=_0x50c970['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x50c970,'lastDocumentSessionOperationId')&&writer['uint32'](0x12)['string'](_0x50c970['lastDocumentSessionOperationId']),null!=_0x50c970['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x50c970,'currentDocumentSessionId')&&writer['uint32'](0x1a)['string'](_0x50c970['currentDocumentSessionId']),null!=_0x50c970['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x50c970,'currentDocumentSessionVersion')&&writer['uint32'](0x20)['uint32'](_0x50c970['currentDocumentSessionVersion']),null!=_0x50c970['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x50c970,'currentDocumentSessionOperationId')&&writer['uint32'](0x2a)['string'](_0x50c970['currentDocumentSessionOperationId']),writer;},GetDocumentDetailsResponse['encodeDelimited']=function(_0x5c6966,writer){return this['encode'](_0x5c6966,writer)['ldelim']();},GetDocumentDetailsResponse['decode']=function(_0x367c4f,length,_0x371ca6){_0x367c4f instanceof _0x7b4aff||(_0x367c4f=_0x7b4aff['create'](_0x367c4f));for(var _0x4963cd=void 0x0===length?_0x367c4f['len']:_0x367c4f['pos']+length,_0x3bb8a7=new $root['GetDocumentDetailsResponse']();_0x367c4f['pos']<_0x4963cd;){var tag=_0x367c4f['uint32']();if(tag===_0x371ca6)break;switch(tag>>>0x3){case 0x1:_0x3bb8a7['lastDocumentSessionId']=_0x367c4f['string']();break;case 0x2:_0x3bb8a7['lastDocumentSessionOperationId']=_0x367c4f['string']();break;case 0x3:_0x3bb8a7['currentDocumentSessionId']=_0x367c4f['string']();break;case 0x4:_0x3bb8a7['currentDocumentSessionVersion']=_0x367c4f['uint32']();break;case 0x5:_0x3bb8a7['currentDocumentSessionOperationId']=_0x367c4f['string']();break;default:_0x367c4f['skipType'](0x7&tag);}}return _0x3bb8a7;},GetDocumentDetailsResponse['decodeDelimited']=function(_0xedab71){return _0xedab71 instanceof _0x7b4aff||(_0xedab71=new _0x7b4aff(_0xedab71)),this['decode'](_0xedab71,_0xedab71['uint32']());},GetDocumentDetailsResponse['verify']=function(_0x17d29d){return'object'!=typeof _0x17d29d||null===_0x17d29d?'object\x20expected':null!=_0x17d29d['lastDocumentSessionId']&&_0x17d29d['hasOwnProperty']('lastDocumentSessionId')&&!$util['isString'](_0x17d29d['lastDocumentSessionId'])?'lastDocumentSessionId:\x20string\x20expected':null!=_0x17d29d['lastDocumentSessionOperationId']&&_0x17d29d['hasOwnProperty']('lastDocumentSessionOperationId')&&!$util['isString'](_0x17d29d['lastDocumentSessionOperationId'])?'lastDocumentSessionOperationId:\x20string\x20expected':null!=_0x17d29d['currentDocumentSessionId']&&_0x17d29d['hasOwnProperty']('currentDocumentSessionId')&&!$util['isString'](_0x17d29d['currentDocumentSessionId'])?'currentDocumentSessionId:\x20string\x20expected':null!=_0x17d29d['currentDocumentSessionVersion']&&_0x17d29d['hasOwnProperty']('currentDocumentSessionVersion')&&!$util['isInteger'](_0x17d29d['currentDocumentSessionVersion'])?'currentDocumentSessionVersion:\x20integer\x20expected':null!=_0x17d29d['currentDocumentSessionOperationId']&&_0x17d29d['hasOwnProperty']('currentDocumentSessionOperationId')&&!$util['isString'](_0x17d29d['currentDocumentSessionOperationId'])?'currentDocumentSessionOperationId:\x20string\x20expected':null;},GetDocumentDetailsResponse['fromObject']=function(object){if(object instanceof $root['GetDocumentDetailsResponse'])return object;var _0x5eee6a=new $root['GetDocumentDetailsResponse']();return null!=object['lastDocumentSessionId']&&(_0x5eee6a['lastDocumentSessionId']=String(object['lastDocumentSessionId'])),null!=object['lastDocumentSessionOperationId']&&(_0x5eee6a['lastDocumentSessionOperationId']=String(object['lastDocumentSessionOperationId'])),null!=object['currentDocumentSessionId']&&(_0x5eee6a['currentDocumentSessionId']=String(object['currentDocumentSessionId'])),null!=object['currentDocumentSessionVersion']&&(_0x5eee6a['currentDocumentSessionVersion']=object['currentDocumentSessionVersion']>>>0x0),null!=object['currentDocumentSessionOperationId']&&(_0x5eee6a['currentDocumentSessionOperationId']=String(object['currentDocumentSessionOperationId'])),_0x5eee6a;},GetDocumentDetailsResponse['toObject']=function(_0xc4af9a,options){options||(options={});var object={};return options['defaults']&&(object['lastDocumentSessionId']='',object['lastDocumentSessionOperationId']='',object['currentDocumentSessionId']='',object['currentDocumentSessionVersion']=0x0,object['currentDocumentSessionOperationId']=''),null!=_0xc4af9a['lastDocumentSessionId']&&_0xc4af9a['hasOwnProperty']('lastDocumentSessionId')&&(object['lastDocumentSessionId']=_0xc4af9a['lastDocumentSessionId']),null!=_0xc4af9a['lastDocumentSessionOperationId']&&_0xc4af9a['hasOwnProperty']('lastDocumentSessionOperationId')&&(object['lastDocumentSessionOperationId']=_0xc4af9a['lastDocumentSessionOperationId']),null!=_0xc4af9a['currentDocumentSessionId']&&_0xc4af9a['hasOwnProperty']('currentDocumentSessionId')&&(object['currentDocumentSessionId']=_0xc4af9a['currentDocumentSessionId']),null!=_0xc4af9a['currentDocumentSessionVersion']&&_0xc4af9a['hasOwnProperty']('currentDocumentSessionVersion')&&(object['currentDocumentSessionVersion']=_0xc4af9a['currentDocumentSessionVersion']),null!=_0xc4af9a['currentDocumentSessionOperationId']&&_0xc4af9a['hasOwnProperty']('currentDocumentSessionOperationId')&&(object['currentDocumentSessionOperationId']=_0xc4af9a['currentDocumentSessionOperationId']),object;},GetDocumentDetailsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetDocumentDetailsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetDocumentDetailsResponse';},GetDocumentDetailsResponse;}()),$root['CommentDescriptor']=(function(){function CommentDescriptor(properties){if(properties){for(var _0x1e8812=Object['keys'](properties),_0xb3e914=0x0;_0xb3e914<_0x1e8812['length'];++_0xb3e914)null!=properties[_0x1e8812[_0xb3e914]]&&(this[_0x1e8812[_0xb3e914]]=properties[_0x1e8812[_0xb3e914]]);}}return CommentDescriptor['prototype']['commentId']='',CommentDescriptor['prototype']['commentThreadId']='',CommentDescriptor['prototype']['userId']='',CommentDescriptor['prototype']['content']='',CommentDescriptor['prototype']['documentId']='',CommentDescriptor['prototype']['createdAt']='',CommentDescriptor['prototype']['attributes']='',CommentDescriptor['create']=function(properties){return new CommentDescriptor(properties);},CommentDescriptor['encode']=function(_0x15efcf,writer){return writer||(writer=$Writer['create']()),null!=_0x15efcf['commentId']&&Object['hasOwnProperty']['call'](_0x15efcf,'commentId')&&writer['uint32'](0xa)['string'](_0x15efcf['commentId']),null!=_0x15efcf['commentThreadId']&&Object['hasOwnProperty']['call'](_0x15efcf,'commentThreadId')&&writer['uint32'](0x12)['string'](_0x15efcf['commentThreadId']),null!=_0x15efcf['userId']&&Object['hasOwnProperty']['call'](_0x15efcf,'userId')&&writer['uint32'](0x1a)['string'](_0x15efcf['userId']),null!=_0x15efcf['content']&&Object['hasOwnProperty']['call'](_0x15efcf,'content')&&writer['uint32'](0x22)['string'](_0x15efcf['content']),null!=_0x15efcf['documentId']&&Object['hasOwnProperty']['call'](_0x15efcf,'documentId')&&writer['uint32'](0x2a)['string'](_0x15efcf['documentId']),null!=_0x15efcf['createdAt']&&Object['hasOwnProperty']['call'](_0x15efcf,'createdAt')&&writer['uint32'](0x32)['string'](_0x15efcf['createdAt']),null!=_0x15efcf['attributes']&&Object['hasOwnProperty']['call'](_0x15efcf,'attributes')&&writer['uint32'](0x3a)['string'](_0x15efcf['attributes']),writer;},CommentDescriptor['encodeDelimited']=function(_0x38f9f3,writer){return this['encode'](_0x38f9f3,writer)['ldelim']();},CommentDescriptor['decode']=function(_0x9d5d4a,length,_0x10be30){_0x9d5d4a instanceof _0x7b4aff||(_0x9d5d4a=_0x7b4aff['create'](_0x9d5d4a));for(var _0x32852b=void 0x0===length?_0x9d5d4a['len']:_0x9d5d4a['pos']+length,_0x3f1639=new $root['CommentDescriptor']();_0x9d5d4a['pos']<_0x32852b;){var tag=_0x9d5d4a['uint32']();if(tag===_0x10be30)break;switch(tag>>>0x3){case 0x1:_0x3f1639['commentId']=_0x9d5d4a['string']();break;case 0x2:_0x3f1639['commentThreadId']=_0x9d5d4a['string']();break;case 0x3:_0x3f1639['userId']=_0x9d5d4a['string']();break;case 0x4:_0x3f1639['content']=_0x9d5d4a['string']();break;case 0x5:_0x3f1639['documentId']=_0x9d5d4a['string']();break;case 0x6:_0x3f1639['createdAt']=_0x9d5d4a['string']();break;case 0x7:_0x3f1639['attributes']=_0x9d5d4a['string']();break;default:_0x9d5d4a['skipType'](0x7&tag);}}return _0x3f1639;},CommentDescriptor['decodeDelimited']=function(_0x5841de){return _0x5841de instanceof _0x7b4aff||(_0x5841de=new _0x7b4aff(_0x5841de)),this['decode'](_0x5841de,_0x5841de['uint32']());},CommentDescriptor['verify']=function(_0x24ddd2){return'object'!=typeof _0x24ddd2||null===_0x24ddd2?'object\x20expected':null!=_0x24ddd2['commentId']&&_0x24ddd2['hasOwnProperty']('commentId')&&!$util['isString'](_0x24ddd2['commentId'])?'commentId:\x20string\x20expected':null!=_0x24ddd2['commentThreadId']&&_0x24ddd2['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x24ddd2['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x24ddd2['userId']&&_0x24ddd2['hasOwnProperty']('userId')&&!$util['isString'](_0x24ddd2['userId'])?'userId:\x20string\x20expected':null!=_0x24ddd2['content']&&_0x24ddd2['hasOwnProperty']('content')&&!$util['isString'](_0x24ddd2['content'])?'content:\x20string\x20expected':null!=_0x24ddd2['documentId']&&_0x24ddd2['hasOwnProperty']('documentId')&&!$util['isString'](_0x24ddd2['documentId'])?'documentId:\x20string\x20expected':null!=_0x24ddd2['createdAt']&&_0x24ddd2['hasOwnProperty']('createdAt')&&!$util['isString'](_0x24ddd2['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x24ddd2['attributes']&&_0x24ddd2['hasOwnProperty']('attributes')&&!$util['isString'](_0x24ddd2['attributes'])?'attributes:\x20string\x20expected':null;},CommentDescriptor['fromObject']=function(object){if(object instanceof $root['CommentDescriptor'])return object;var _0x4d94f0=new $root['CommentDescriptor']();return null!=object['commentId']&&(_0x4d94f0['commentId']=String(object['commentId'])),null!=object['commentThreadId']&&(_0x4d94f0['commentThreadId']=String(object['commentThreadId'])),null!=object['userId']&&(_0x4d94f0['userId']=String(object['userId'])),null!=object['content']&&(_0x4d94f0['content']=String(object['content'])),null!=object['documentId']&&(_0x4d94f0['documentId']=String(object['documentId'])),null!=object['createdAt']&&(_0x4d94f0['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x4d94f0['attributes']=String(object['attributes'])),_0x4d94f0;},CommentDescriptor['toObject']=function(_0xd4e8f,options){options||(options={});var object={};return options['defaults']&&(object['commentId']='',object['commentThreadId']='',object['userId']='',object['content']='',object['documentId']='',object['createdAt']='',object['attributes']=''),null!=_0xd4e8f['commentId']&&_0xd4e8f['hasOwnProperty']('commentId')&&(object['commentId']=_0xd4e8f['commentId']),null!=_0xd4e8f['commentThreadId']&&_0xd4e8f['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0xd4e8f['commentThreadId']),null!=_0xd4e8f['userId']&&_0xd4e8f['hasOwnProperty']('userId')&&(object['userId']=_0xd4e8f['userId']),null!=_0xd4e8f['content']&&_0xd4e8f['hasOwnProperty']('content')&&(object['content']=_0xd4e8f['content']),null!=_0xd4e8f['documentId']&&_0xd4e8f['hasOwnProperty']('documentId')&&(object['documentId']=_0xd4e8f['documentId']),null!=_0xd4e8f['createdAt']&&_0xd4e8f['hasOwnProperty']('createdAt')&&(object['createdAt']=_0xd4e8f['createdAt']),null!=_0xd4e8f['attributes']&&_0xd4e8f['hasOwnProperty']('attributes')&&(object['attributes']=_0xd4e8f['attributes']),object;},CommentDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentDescriptor';},CommentDescriptor;}()),$root['CommentsThreadDescriptor']=(function(){function CommentsThreadDescriptor(properties){if(this['comments']=[],properties){for(var _0x2caba3=Object['keys'](properties),_0x3c86cd=0x0;_0x3c86cd<_0x2caba3['length'];++_0x3c86cd)null!=properties[_0x2caba3[_0x3c86cd]]&&(this[_0x2caba3[_0x3c86cd]]=properties[_0x2caba3[_0x3c86cd]]);}}return CommentsThreadDescriptor['prototype']['commentThreadId']='',CommentsThreadDescriptor['prototype']['comments']=$util['emptyArray'],CommentsThreadDescriptor['prototype']['resolvedAt']='',CommentsThreadDescriptor['prototype']['resolvedBy']='',CommentsThreadDescriptor['prototype']['context']='',CommentsThreadDescriptor['prototype']['createdAt']='',CommentsThreadDescriptor['prototype']['deletedAt']='',CommentsThreadDescriptor['prototype']['attributes']='',CommentsThreadDescriptor['prototype']['unlinkedAt']='',CommentsThreadDescriptor['create']=function(properties){return new CommentsThreadDescriptor(properties);},CommentsThreadDescriptor['encode']=function(_0x163a36,writer){if(writer||(writer=$Writer['create']()),null!=_0x163a36['commentThreadId']&&Object['hasOwnProperty']['call'](_0x163a36,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x163a36['commentThreadId']),null!=_0x163a36['comments']&&_0x163a36['comments']['length']){for(var _0x3287cf=0x0;_0x3287cf<_0x163a36['comments']['length'];++_0x3287cf)$root['CommentDescriptor']['encode'](_0x163a36['comments'][_0x3287cf],writer['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x163a36['resolvedAt']&&Object['hasOwnProperty']['call'](_0x163a36,'resolvedAt')&&writer['uint32'](0x1a)['string'](_0x163a36['resolvedAt']),null!=_0x163a36['resolvedBy']&&Object['hasOwnProperty']['call'](_0x163a36,'resolvedBy')&&writer['uint32'](0x22)['string'](_0x163a36['resolvedBy']),null!=_0x163a36['context']&&Object['hasOwnProperty']['call'](_0x163a36,'context')&&writer['uint32'](0x2a)['string'](_0x163a36['context']),null!=_0x163a36['createdAt']&&Object['hasOwnProperty']['call'](_0x163a36,'createdAt')&&writer['uint32'](0x32)['string'](_0x163a36['createdAt']),null!=_0x163a36['deletedAt']&&Object['hasOwnProperty']['call'](_0x163a36,'deletedAt')&&writer['uint32'](0x3a)['string'](_0x163a36['deletedAt']),null!=_0x163a36['attributes']&&Object['hasOwnProperty']['call'](_0x163a36,'attributes')&&writer['uint32'](0x42)['string'](_0x163a36['attributes']),null!=_0x163a36['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x163a36,'unlinkedAt')&&writer['uint32'](0x4a)['string'](_0x163a36['unlinkedAt']),writer;},CommentsThreadDescriptor['encodeDelimited']=function(_0x1556c8,writer){return this['encode'](_0x1556c8,writer)['ldelim']();},CommentsThreadDescriptor['decode']=function(_0x8df3c5,length,_0x4de3fe){_0x8df3c5 instanceof _0x7b4aff||(_0x8df3c5=_0x7b4aff['create'](_0x8df3c5));for(var _0x19a566=void 0x0===length?_0x8df3c5['len']:_0x8df3c5['pos']+length,_0x123680=new $root['CommentsThreadDescriptor']();_0x8df3c5['pos']<_0x19a566;){var tag=_0x8df3c5['uint32']();if(tag===_0x4de3fe)break;switch(tag>>>0x3){case 0x1:_0x123680['commentThreadId']=_0x8df3c5['string']();break;case 0x2:_0x123680['comments']&&_0x123680['comments']['length']||(_0x123680['comments']=[]),_0x123680['comments']['push']($root['CommentDescriptor']['decode'](_0x8df3c5,_0x8df3c5['uint32']()));break;case 0x3:_0x123680['resolvedAt']=_0x8df3c5['string']();break;case 0x4:_0x123680['resolvedBy']=_0x8df3c5['string']();break;case 0x5:_0x123680['context']=_0x8df3c5['string']();break;case 0x6:_0x123680['createdAt']=_0x8df3c5['string']();break;case 0x7:_0x123680['deletedAt']=_0x8df3c5['string']();break;case 0x8:_0x123680['attributes']=_0x8df3c5['string']();break;case 0x9:_0x123680['unlinkedAt']=_0x8df3c5['string']();break;default:_0x8df3c5['skipType'](0x7&tag);}}return _0x123680;},CommentsThreadDescriptor['decodeDelimited']=function(_0x1cff41){return _0x1cff41 instanceof _0x7b4aff||(_0x1cff41=new _0x7b4aff(_0x1cff41)),this['decode'](_0x1cff41,_0x1cff41['uint32']());},CommentsThreadDescriptor['verify']=function(_0x4f90c2){if('object'!=typeof _0x4f90c2||null===_0x4f90c2)return'object\x20expected';if(null!=_0x4f90c2['commentThreadId']&&_0x4f90c2['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x4f90c2['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x4f90c2['comments']&&_0x4f90c2['hasOwnProperty']('comments')){if(!Array['isArray'](_0x4f90c2['comments']))return'comments:\x20array\x20expected';for(var _0x4807b9=0x0;_0x4807b9<_0x4f90c2['comments']['length'];++_0x4807b9){var _0x32873f=$root['CommentDescriptor']['verify'](_0x4f90c2['comments'][_0x4807b9]);if(_0x32873f)return'comments.'+_0x32873f;}}return null!=_0x4f90c2['resolvedAt']&&_0x4f90c2['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x4f90c2['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x4f90c2['resolvedBy']&&_0x4f90c2['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x4f90c2['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x4f90c2['context']&&_0x4f90c2['hasOwnProperty']('context')&&!$util['isString'](_0x4f90c2['context'])?'context:\x20string\x20expected':null!=_0x4f90c2['createdAt']&&_0x4f90c2['hasOwnProperty']('createdAt')&&!$util['isString'](_0x4f90c2['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x4f90c2['deletedAt']&&_0x4f90c2['hasOwnProperty']('deletedAt')&&!$util['isString'](_0x4f90c2['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x4f90c2['attributes']&&_0x4f90c2['hasOwnProperty']('attributes')&&!$util['isString'](_0x4f90c2['attributes'])?'attributes:\x20string\x20expected':null!=_0x4f90c2['unlinkedAt']&&_0x4f90c2['hasOwnProperty']('unlinkedAt')&&!$util['isString'](_0x4f90c2['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsThreadDescriptor['fromObject']=function(object){if(object instanceof $root['CommentsThreadDescriptor'])return object;var _0x59e347=new $root['CommentsThreadDescriptor']();if(null!=object['commentThreadId']&&(_0x59e347['commentThreadId']=String(object['commentThreadId'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsThreadDescriptor.comments:\x20array\x20expected');_0x59e347['comments']=[];for(var _0x85dd41=0x0;_0x85dd41<object['comments']['length'];++_0x85dd41){if('object'!=typeof object['comments'][_0x85dd41])throw TypeError('.CommentsThreadDescriptor.comments:\x20object\x20expected');_0x59e347['comments'][_0x85dd41]=$root['CommentDescriptor']['fromObject'](object['comments'][_0x85dd41]);}}return null!=object['resolvedAt']&&(_0x59e347['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x59e347['resolvedBy']=String(object['resolvedBy'])),null!=object['context']&&(_0x59e347['context']=String(object['context'])),null!=object['createdAt']&&(_0x59e347['createdAt']=String(object['createdAt'])),null!=object['deletedAt']&&(_0x59e347['deletedAt']=String(object['deletedAt'])),null!=object['attributes']&&(_0x59e347['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x59e347['unlinkedAt']=String(object['unlinkedAt'])),_0x59e347;},CommentsThreadDescriptor['toObject']=function(_0x526fb3,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[]),options['defaults']&&(object['commentThreadId']='',object['resolvedAt']='',object['resolvedBy']='',object['context']='',object['createdAt']='',object['deletedAt']='',object['attributes']='',object['unlinkedAt']=''),null!=_0x526fb3['commentThreadId']&&_0x526fb3['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x526fb3['commentThreadId']),_0x526fb3['comments']&&_0x526fb3['comments']['length']){object['comments']=[];for(var _0x4ccb95=0x0;_0x4ccb95<_0x526fb3['comments']['length'];++_0x4ccb95)object['comments'][_0x4ccb95]=$root['CommentDescriptor']['toObject'](_0x526fb3['comments'][_0x4ccb95],options);}return null!=_0x526fb3['resolvedAt']&&_0x526fb3['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x526fb3['resolvedAt']),null!=_0x526fb3['resolvedBy']&&_0x526fb3['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x526fb3['resolvedBy']),null!=_0x526fb3['context']&&_0x526fb3['hasOwnProperty']('context')&&(object['context']=_0x526fb3['context']),null!=_0x526fb3['createdAt']&&_0x526fb3['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x526fb3['createdAt']),null!=_0x526fb3['deletedAt']&&_0x526fb3['hasOwnProperty']('deletedAt')&&(object['deletedAt']=_0x526fb3['deletedAt']),null!=_0x526fb3['attributes']&&_0x526fb3['hasOwnProperty']('attributes')&&(object['attributes']=_0x526fb3['attributes']),null!=_0x526fb3['unlinkedAt']&&_0x526fb3['hasOwnProperty']('unlinkedAt')&&(object['unlinkedAt']=_0x526fb3['unlinkedAt']),object;},CommentsThreadDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsThreadDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsThreadDescriptor';},CommentsThreadDescriptor;}()),$root['CommentThreadAddedCommentDescriptor']=(function(){function CommentThreadAddedCommentDescriptor(properties){if(properties){for(var _0x4de742=Object['keys'](properties),_0x4d0dd9=0x0;_0x4d0dd9<_0x4de742['length'];++_0x4d0dd9)null!=properties[_0x4de742[_0x4d0dd9]]&&(this[_0x4de742[_0x4d0dd9]]=properties[_0x4de742[_0x4d0dd9]]);}}return CommentThreadAddedCommentDescriptor['prototype']['commentId']='',CommentThreadAddedCommentDescriptor['prototype']['createdAt']='',CommentThreadAddedCommentDescriptor['create']=function(properties){return new CommentThreadAddedCommentDescriptor(properties);},CommentThreadAddedCommentDescriptor['encode']=function(_0x354044,writer){return writer||(writer=$Writer['create']()),null!=_0x354044['commentId']&&Object['hasOwnProperty']['call'](_0x354044,'commentId')&&writer['uint32'](0xa)['string'](_0x354044['commentId']),null!=_0x354044['createdAt']&&Object['hasOwnProperty']['call'](_0x354044,'createdAt')&&writer['uint32'](0x12)['string'](_0x354044['createdAt']),writer;},CommentThreadAddedCommentDescriptor['encodeDelimited']=function(_0x504c7b,writer){return this['encode'](_0x504c7b,writer)['ldelim']();},CommentThreadAddedCommentDescriptor['decode']=function(_0xf0573a,length,_0x4c5694){_0xf0573a instanceof _0x7b4aff||(_0xf0573a=_0x7b4aff['create'](_0xf0573a));for(var _0x4d0452=void 0x0===length?_0xf0573a['len']:_0xf0573a['pos']+length,_0x376ed9=new $root['CommentThreadAddedCommentDescriptor']();_0xf0573a['pos']<_0x4d0452;){var tag=_0xf0573a['uint32']();if(tag===_0x4c5694)break;switch(tag>>>0x3){case 0x1:_0x376ed9['commentId']=_0xf0573a['string']();break;case 0x2:_0x376ed9['createdAt']=_0xf0573a['string']();break;default:_0xf0573a['skipType'](0x7&tag);}}return _0x376ed9;},CommentThreadAddedCommentDescriptor['decodeDelimited']=function(_0x372f47){return _0x372f47 instanceof _0x7b4aff||(_0x372f47=new _0x7b4aff(_0x372f47)),this['decode'](_0x372f47,_0x372f47['uint32']());},CommentThreadAddedCommentDescriptor['verify']=function(_0x4cb42e){return'object'!=typeof _0x4cb42e||null===_0x4cb42e?'object\x20expected':null!=_0x4cb42e['commentId']&&_0x4cb42e['hasOwnProperty']('commentId')&&!$util['isString'](_0x4cb42e['commentId'])?'commentId:\x20string\x20expected':null!=_0x4cb42e['createdAt']&&_0x4cb42e['hasOwnProperty']('createdAt')&&!$util['isString'](_0x4cb42e['createdAt'])?'createdAt:\x20string\x20expected':null;},CommentThreadAddedCommentDescriptor['fromObject']=function(object){if(object instanceof $root['CommentThreadAddedCommentDescriptor'])return object;var _0x216ab5=new $root['CommentThreadAddedCommentDescriptor']();return null!=object['commentId']&&(_0x216ab5['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0x216ab5['createdAt']=String(object['createdAt'])),_0x216ab5;},CommentThreadAddedCommentDescriptor['toObject']=function(_0x298e09,options){options||(options={});var object={};return options['defaults']&&(object['commentId']='',object['createdAt']=''),null!=_0x298e09['commentId']&&_0x298e09['hasOwnProperty']('commentId')&&(object['commentId']=_0x298e09['commentId']),null!=_0x298e09['createdAt']&&_0x298e09['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x298e09['createdAt']),object;},CommentThreadAddedCommentDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentThreadAddedCommentDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentThreadAddedCommentDescriptor';},CommentThreadAddedCommentDescriptor;}()),$root['CommentsV2AddCommentMessage']=(function(){function CommentsV2AddCommentMessage(properties){if(properties){for(var _0xa32c8d=Object['keys'](properties),_0x32f7d5=0x0;_0x32f7d5<_0xa32c8d['length'];++_0x32f7d5)null!=properties[_0xa32c8d[_0x32f7d5]]&&(this[_0xa32c8d[_0x32f7d5]]=properties[_0xa32c8d[_0x32f7d5]]);}}return CommentsV2AddCommentMessage['prototype']['commentThreadId']='',CommentsV2AddCommentMessage['prototype']['content']='',CommentsV2AddCommentMessage['prototype']['documentId']='',CommentsV2AddCommentMessage['prototype']['commentId']='',CommentsV2AddCommentMessage['prototype']['createdAt']='',CommentsV2AddCommentMessage['prototype']['userId']='',CommentsV2AddCommentMessage['prototype']['attributes']='',CommentsV2AddCommentMessage['prototype']['commentThread']=null,CommentsV2AddCommentMessage['create']=function(properties){return new CommentsV2AddCommentMessage(properties);},CommentsV2AddCommentMessage['encode']=function(_0x13ffd1,writer){return writer||(writer=$Writer['create']()),null!=_0x13ffd1['commentThreadId']&&Object['hasOwnProperty']['call'](_0x13ffd1,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x13ffd1['commentThreadId']),null!=_0x13ffd1['content']&&Object['hasOwnProperty']['call'](_0x13ffd1,'content')&&writer['uint32'](0x12)['string'](_0x13ffd1['content']),null!=_0x13ffd1['documentId']&&Object['hasOwnProperty']['call'](_0x13ffd1,'documentId')&&writer['uint32'](0x1a)['string'](_0x13ffd1['documentId']),null!=_0x13ffd1['commentId']&&Object['hasOwnProperty']['call'](_0x13ffd1,'commentId')&&writer['uint32'](0x22)['string'](_0x13ffd1['commentId']),null!=_0x13ffd1['createdAt']&&Object['hasOwnProperty']['call'](_0x13ffd1,'createdAt')&&writer['uint32'](0x2a)['string'](_0x13ffd1['createdAt']),null!=_0x13ffd1['userId']&&Object['hasOwnProperty']['call'](_0x13ffd1,'userId')&&writer['uint32'](0x32)['string'](_0x13ffd1['userId']),null!=_0x13ffd1['attributes']&&Object['hasOwnProperty']['call'](_0x13ffd1,'attributes')&&writer['uint32'](0x3a)['string'](_0x13ffd1['attributes']),null!=_0x13ffd1['commentThread']&&Object['hasOwnProperty']['call'](_0x13ffd1,'commentThread')&&$root['CommentsThreadDescriptor']['encode'](_0x13ffd1['commentThread'],writer['uint32'](0x42)['fork']())['ldelim'](),writer;},CommentsV2AddCommentMessage['encodeDelimited']=function(_0x55a4e3,writer){return this['encode'](_0x55a4e3,writer)['ldelim']();},CommentsV2AddCommentMessage['decode']=function(_0x19f5a8,length,_0x317cb8){_0x19f5a8 instanceof _0x7b4aff||(_0x19f5a8=_0x7b4aff['create'](_0x19f5a8));for(var _0x3d8c8d=void 0x0===length?_0x19f5a8['len']:_0x19f5a8['pos']+length,_0x276966=new $root['CommentsV2AddCommentMessage']();_0x19f5a8['pos']<_0x3d8c8d;){var tag=_0x19f5a8['uint32']();if(tag===_0x317cb8)break;switch(tag>>>0x3){case 0x1:_0x276966['commentThreadId']=_0x19f5a8['string']();break;case 0x2:_0x276966['content']=_0x19f5a8['string']();break;case 0x3:_0x276966['documentId']=_0x19f5a8['string']();break;case 0x4:_0x276966['commentId']=_0x19f5a8['string']();break;case 0x5:_0x276966['createdAt']=_0x19f5a8['string']();break;case 0x6:_0x276966['userId']=_0x19f5a8['string']();break;case 0x7:_0x276966['attributes']=_0x19f5a8['string']();break;case 0x8:_0x276966['commentThread']=$root['CommentsThreadDescriptor']['decode'](_0x19f5a8,_0x19f5a8['uint32']());break;default:_0x19f5a8['skipType'](0x7&tag);}}return _0x276966;},CommentsV2AddCommentMessage['decodeDelimited']=function(_0x3e100b){return _0x3e100b instanceof _0x7b4aff||(_0x3e100b=new _0x7b4aff(_0x3e100b)),this['decode'](_0x3e100b,_0x3e100b['uint32']());},CommentsV2AddCommentMessage['verify']=function(_0x413f0c){if('object'!=typeof _0x413f0c||null===_0x413f0c)return'object\x20expected';if(null!=_0x413f0c['commentThreadId']&&_0x413f0c['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x413f0c['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x413f0c['content']&&_0x413f0c['hasOwnProperty']('content')&&!$util['isString'](_0x413f0c['content']))return'content:\x20string\x20expected';if(null!=_0x413f0c['documentId']&&_0x413f0c['hasOwnProperty']('documentId')&&!$util['isString'](_0x413f0c['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x413f0c['commentId']&&_0x413f0c['hasOwnProperty']('commentId')&&!$util['isString'](_0x413f0c['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x413f0c['createdAt']&&_0x413f0c['hasOwnProperty']('createdAt')&&!$util['isString'](_0x413f0c['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x413f0c['userId']&&_0x413f0c['hasOwnProperty']('userId')&&!$util['isString'](_0x413f0c['userId']))return'userId:\x20string\x20expected';if(null!=_0x413f0c['attributes']&&_0x413f0c['hasOwnProperty']('attributes')&&!$util['isString'](_0x413f0c['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x413f0c['commentThread']&&_0x413f0c['hasOwnProperty']('commentThread')){var _0xf332a0=$root['CommentsThreadDescriptor']['verify'](_0x413f0c['commentThread']);if(_0xf332a0)return'commentThread.'+_0xf332a0;}return null;},CommentsV2AddCommentMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentMessage'])return object;var _0x1ccb18=new $root['CommentsV2AddCommentMessage']();if(null!=object['commentThreadId']&&(_0x1ccb18['commentThreadId']=String(object['commentThreadId'])),null!=object['content']&&(_0x1ccb18['content']=String(object['content'])),null!=object['documentId']&&(_0x1ccb18['documentId']=String(object['documentId'])),null!=object['commentId']&&(_0x1ccb18['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0x1ccb18['createdAt']=String(object['createdAt'])),null!=object['userId']&&(_0x1ccb18['userId']=String(object['userId'])),null!=object['attributes']&&(_0x1ccb18['attributes']=String(object['attributes'])),null!=object['commentThread']){if('object'!=typeof object['commentThread'])throw TypeError('.CommentsV2AddCommentMessage.commentThread:\x20object\x20expected');_0x1ccb18['commentThread']=$root['CommentsThreadDescriptor']['fromObject'](object['commentThread']);}return _0x1ccb18;},CommentsV2AddCommentMessage['toObject']=function(_0x4672ff,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['content']='',object['documentId']='',object['commentId']='',object['createdAt']='',object['userId']='',object['attributes']='',object['commentThread']=null),null!=_0x4672ff['commentThreadId']&&_0x4672ff['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x4672ff['commentThreadId']),null!=_0x4672ff['content']&&_0x4672ff['hasOwnProperty']('content')&&(object['content']=_0x4672ff['content']),null!=_0x4672ff['documentId']&&_0x4672ff['hasOwnProperty']('documentId')&&(object['documentId']=_0x4672ff['documentId']),null!=_0x4672ff['commentId']&&_0x4672ff['hasOwnProperty']('commentId')&&(object['commentId']=_0x4672ff['commentId']),null!=_0x4672ff['createdAt']&&_0x4672ff['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x4672ff['createdAt']),null!=_0x4672ff['userId']&&_0x4672ff['hasOwnProperty']('userId')&&(object['userId']=_0x4672ff['userId']),null!=_0x4672ff['attributes']&&_0x4672ff['hasOwnProperty']('attributes')&&(object['attributes']=_0x4672ff['attributes']),null!=_0x4672ff['commentThread']&&_0x4672ff['hasOwnProperty']('commentThread')&&(object['commentThread']=$root['CommentsThreadDescriptor']['toObject'](_0x4672ff['commentThread'],options)),object;},CommentsV2AddCommentMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentMessage';},CommentsV2AddCommentMessage;}()),$root['CommentsV2AddCommentThreadMessage']=(function(){function CommentsV2AddCommentThreadMessage(properties){if(this['comments']=[],properties){for(var _0x993b17=Object['keys'](properties),_0x550378=0x0;_0x550378<_0x993b17['length'];++_0x550378)null!=properties[_0x993b17[_0x550378]]&&(this[_0x993b17[_0x550378]]=properties[_0x993b17[_0x550378]]);}}return CommentsV2AddCommentThreadMessage['prototype']['documentId']='',CommentsV2AddCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2AddCommentThreadMessage['prototype']['context']='',CommentsV2AddCommentThreadMessage['prototype']['createdAt']='',CommentsV2AddCommentThreadMessage['prototype']['resolvedAt']='',CommentsV2AddCommentThreadMessage['prototype']['resolvedBy']='',CommentsV2AddCommentThreadMessage['prototype']['attributes']='',CommentsV2AddCommentThreadMessage['prototype']['deletedAt']='',CommentsV2AddCommentThreadMessage['prototype']['comments']=$util['emptyArray'],CommentsV2AddCommentThreadMessage['create']=function(properties){return new CommentsV2AddCommentThreadMessage(properties);},CommentsV2AddCommentThreadMessage['encode']=function(_0x34a78d,writer){if(writer||(writer=$Writer['create']()),null!=_0x34a78d['documentId']&&Object['hasOwnProperty']['call'](_0x34a78d,'documentId')&&writer['uint32'](0xa)['string'](_0x34a78d['documentId']),null!=_0x34a78d['commentThreadId']&&Object['hasOwnProperty']['call'](_0x34a78d,'commentThreadId')&&writer['uint32'](0x12)['string'](_0x34a78d['commentThreadId']),null!=_0x34a78d['context']&&Object['hasOwnProperty']['call'](_0x34a78d,'context')&&writer['uint32'](0x1a)['string'](_0x34a78d['context']),null!=_0x34a78d['createdAt']&&Object['hasOwnProperty']['call'](_0x34a78d,'createdAt')&&writer['uint32'](0x22)['string'](_0x34a78d['createdAt']),null!=_0x34a78d['resolvedAt']&&Object['hasOwnProperty']['call'](_0x34a78d,'resolvedAt')&&writer['uint32'](0x2a)['string'](_0x34a78d['resolvedAt']),null!=_0x34a78d['resolvedBy']&&Object['hasOwnProperty']['call'](_0x34a78d,'resolvedBy')&&writer['uint32'](0x32)['string'](_0x34a78d['resolvedBy']),null!=_0x34a78d['attributes']&&Object['hasOwnProperty']['call'](_0x34a78d,'attributes')&&writer['uint32'](0x3a)['string'](_0x34a78d['attributes']),null!=_0x34a78d['deletedAt']&&Object['hasOwnProperty']['call'](_0x34a78d,'deletedAt')&&writer['uint32'](0x42)['string'](_0x34a78d['deletedAt']),null!=_0x34a78d['comments']&&_0x34a78d['comments']['length']){for(var _0x3e8274=0x0;_0x3e8274<_0x34a78d['comments']['length'];++_0x3e8274)$root['CommentDescriptor']['encode'](_0x34a78d['comments'][_0x3e8274],writer['uint32'](0x4a)['fork']())['ldelim']();}return writer;},CommentsV2AddCommentThreadMessage['encodeDelimited']=function(_0x5dec90,writer){return this['encode'](_0x5dec90,writer)['ldelim']();},CommentsV2AddCommentThreadMessage['decode']=function(_0x4a5d5a,length,_0x1ab62e){_0x4a5d5a instanceof _0x7b4aff||(_0x4a5d5a=_0x7b4aff['create'](_0x4a5d5a));for(var _0x5b7fb1=void 0x0===length?_0x4a5d5a['len']:_0x4a5d5a['pos']+length,_0x197c15=new $root['CommentsV2AddCommentThreadMessage']();_0x4a5d5a['pos']<_0x5b7fb1;){var tag=_0x4a5d5a['uint32']();if(tag===_0x1ab62e)break;switch(tag>>>0x3){case 0x1:_0x197c15['documentId']=_0x4a5d5a['string']();break;case 0x2:_0x197c15['commentThreadId']=_0x4a5d5a['string']();break;case 0x3:_0x197c15['context']=_0x4a5d5a['string']();break;case 0x4:_0x197c15['createdAt']=_0x4a5d5a['string']();break;case 0x5:_0x197c15['resolvedAt']=_0x4a5d5a['string']();break;case 0x6:_0x197c15['resolvedBy']=_0x4a5d5a['string']();break;case 0x7:_0x197c15['attributes']=_0x4a5d5a['string']();break;case 0x8:_0x197c15['deletedAt']=_0x4a5d5a['string']();break;case 0x9:_0x197c15['comments']&&_0x197c15['comments']['length']||(_0x197c15['comments']=[]),_0x197c15['comments']['push']($root['CommentDescriptor']['decode'](_0x4a5d5a,_0x4a5d5a['uint32']()));break;default:_0x4a5d5a['skipType'](0x7&tag);}}return _0x197c15;},CommentsV2AddCommentThreadMessage['decodeDelimited']=function(_0xf4eb05){return _0xf4eb05 instanceof _0x7b4aff||(_0xf4eb05=new _0x7b4aff(_0xf4eb05)),this['decode'](_0xf4eb05,_0xf4eb05['uint32']());},CommentsV2AddCommentThreadMessage['verify']=function(_0x20d833){if('object'!=typeof _0x20d833||null===_0x20d833)return'object\x20expected';if(null!=_0x20d833['documentId']&&_0x20d833['hasOwnProperty']('documentId')&&!$util['isString'](_0x20d833['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x20d833['commentThreadId']&&_0x20d833['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x20d833['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x20d833['context']&&_0x20d833['hasOwnProperty']('context')&&!$util['isString'](_0x20d833['context']))return'context:\x20string\x20expected';if(null!=_0x20d833['createdAt']&&_0x20d833['hasOwnProperty']('createdAt')&&!$util['isString'](_0x20d833['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x20d833['resolvedAt']&&_0x20d833['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x20d833['resolvedAt']))return'resolvedAt:\x20string\x20expected';if(null!=_0x20d833['resolvedBy']&&_0x20d833['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x20d833['resolvedBy']))return'resolvedBy:\x20string\x20expected';if(null!=_0x20d833['attributes']&&_0x20d833['hasOwnProperty']('attributes')&&!$util['isString'](_0x20d833['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x20d833['deletedAt']&&_0x20d833['hasOwnProperty']('deletedAt')&&!$util['isString'](_0x20d833['deletedAt']))return'deletedAt:\x20string\x20expected';if(null!=_0x20d833['comments']&&_0x20d833['hasOwnProperty']('comments')){if(!Array['isArray'](_0x20d833['comments']))return'comments:\x20array\x20expected';for(var _0x391810=0x0;_0x391810<_0x20d833['comments']['length'];++_0x391810){var _0x2b9f=$root['CommentDescriptor']['verify'](_0x20d833['comments'][_0x391810]);if(_0x2b9f)return'comments.'+_0x2b9f;}}return null;},CommentsV2AddCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentThreadMessage'])return object;var _0x324d0c=new $root['CommentsV2AddCommentThreadMessage']();if(null!=object['documentId']&&(_0x324d0c['documentId']=String(object['documentId'])),null!=object['commentThreadId']&&(_0x324d0c['commentThreadId']=String(object['commentThreadId'])),null!=object['context']&&(_0x324d0c['context']=String(object['context'])),null!=object['createdAt']&&(_0x324d0c['createdAt']=String(object['createdAt'])),null!=object['resolvedAt']&&(_0x324d0c['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x324d0c['resolvedBy']=String(object['resolvedBy'])),null!=object['attributes']&&(_0x324d0c['attributes']=String(object['attributes'])),null!=object['deletedAt']&&(_0x324d0c['deletedAt']=String(object['deletedAt'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20array\x20expected');_0x324d0c['comments']=[];for(var _0x42d35b=0x0;_0x42d35b<object['comments']['length'];++_0x42d35b){if('object'!=typeof object['comments'][_0x42d35b])throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20object\x20expected');_0x324d0c['comments'][_0x42d35b]=$root['CommentDescriptor']['fromObject'](object['comments'][_0x42d35b]);}}return _0x324d0c;},CommentsV2AddCommentThreadMessage['toObject']=function(_0x18f818,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[]),options['defaults']&&(object['documentId']='',object['commentThreadId']='',object['context']='',object['createdAt']='',object['resolvedAt']='',object['resolvedBy']='',object['attributes']='',object['deletedAt']=''),null!=_0x18f818['documentId']&&_0x18f818['hasOwnProperty']('documentId')&&(object['documentId']=_0x18f818['documentId']),null!=_0x18f818['commentThreadId']&&_0x18f818['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x18f818['commentThreadId']),null!=_0x18f818['context']&&_0x18f818['hasOwnProperty']('context')&&(object['context']=_0x18f818['context']),null!=_0x18f818['createdAt']&&_0x18f818['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x18f818['createdAt']),null!=_0x18f818['resolvedAt']&&_0x18f818['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x18f818['resolvedAt']),null!=_0x18f818['resolvedBy']&&_0x18f818['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x18f818['resolvedBy']),null!=_0x18f818['attributes']&&_0x18f818['hasOwnProperty']('attributes')&&(object['attributes']=_0x18f818['attributes']),null!=_0x18f818['deletedAt']&&_0x18f818['hasOwnProperty']('deletedAt')&&(object['deletedAt']=_0x18f818['deletedAt']),_0x18f818['comments']&&_0x18f818['comments']['length']){object['comments']=[];for(var _0x42331a=0x0;_0x42331a<_0x18f818['comments']['length'];++_0x42331a)object['comments'][_0x42331a]=$root['CommentDescriptor']['toObject'](_0x18f818['comments'][_0x42331a],options);}return object;},CommentsV2AddCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentThreadMessage';},CommentsV2AddCommentThreadMessage;}()),$root['CommentsV2ReopenCommentThreadMessage']=(function(){function CommentsV2ReopenCommentThreadMessage(properties){if(properties){for(var _0x16fc82=Object['keys'](properties),_0x249450=0x0;_0x249450<_0x16fc82['length'];++_0x249450)null!=properties[_0x16fc82[_0x249450]]&&(this[_0x16fc82[_0x249450]]=properties[_0x16fc82[_0x249450]]);}}return CommentsV2ReopenCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2ReopenCommentThreadMessage['prototype']['documentId']='',CommentsV2ReopenCommentThreadMessage['create']=function(properties){return new CommentsV2ReopenCommentThreadMessage(properties);},CommentsV2ReopenCommentThreadMessage['encode']=function(_0x34f91a,writer){return writer||(writer=$Writer['create']()),null!=_0x34f91a['commentThreadId']&&Object['hasOwnProperty']['call'](_0x34f91a,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x34f91a['commentThreadId']),null!=_0x34f91a['documentId']&&Object['hasOwnProperty']['call'](_0x34f91a,'documentId')&&writer['uint32'](0x12)['string'](_0x34f91a['documentId']),writer;},CommentsV2ReopenCommentThreadMessage['encodeDelimited']=function(_0x39adc0,writer){return this['encode'](_0x39adc0,writer)['ldelim']();},CommentsV2ReopenCommentThreadMessage['decode']=function(_0x3d10a2,length,_0x1b0273){_0x3d10a2 instanceof _0x7b4aff||(_0x3d10a2=_0x7b4aff['create'](_0x3d10a2));for(var _0x50cd60=void 0x0===length?_0x3d10a2['len']:_0x3d10a2['pos']+length,_0x23a0d6=new $root['CommentsV2ReopenCommentThreadMessage']();_0x3d10a2['pos']<_0x50cd60;){var tag=_0x3d10a2['uint32']();if(tag===_0x1b0273)break;switch(tag>>>0x3){case 0x1:_0x23a0d6['commentThreadId']=_0x3d10a2['string']();break;case 0x2:_0x23a0d6['documentId']=_0x3d10a2['string']();break;default:_0x3d10a2['skipType'](0x7&tag);}}return _0x23a0d6;},CommentsV2ReopenCommentThreadMessage['decodeDelimited']=function(_0x119465){return _0x119465 instanceof _0x7b4aff||(_0x119465=new _0x7b4aff(_0x119465)),this['decode'](_0x119465,_0x119465['uint32']());},CommentsV2ReopenCommentThreadMessage['verify']=function(_0x1906b9){return'object'!=typeof _0x1906b9||null===_0x1906b9?'object\x20expected':null!=_0x1906b9['commentThreadId']&&_0x1906b9['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x1906b9['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x1906b9['documentId']&&_0x1906b9['hasOwnProperty']('documentId')&&!$util['isString'](_0x1906b9['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2ReopenCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2ReopenCommentThreadMessage'])return object;var _0x37aea4=new $root['CommentsV2ReopenCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x37aea4['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x37aea4['documentId']=String(object['documentId'])),_0x37aea4;},CommentsV2ReopenCommentThreadMessage['toObject']=function(_0x87237c,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x87237c['commentThreadId']&&_0x87237c['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x87237c['commentThreadId']),null!=_0x87237c['documentId']&&_0x87237c['hasOwnProperty']('documentId')&&(object['documentId']=_0x87237c['documentId']),object;},CommentsV2ReopenCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ReopenCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ReopenCommentThreadMessage';},CommentsV2ReopenCommentThreadMessage;}()),$root['CommentsV2ResolveCommentThreadMessage']=(function(){function CommentsV2ResolveCommentThreadMessage(properties){if(properties){for(var _0x40f48b=Object['keys'](properties),_0x2fc405=0x0;_0x2fc405<_0x40f48b['length'];++_0x2fc405)null!=properties[_0x40f48b[_0x2fc405]]&&(this[_0x40f48b[_0x2fc405]]=properties[_0x40f48b[_0x2fc405]]);}}return CommentsV2ResolveCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2ResolveCommentThreadMessage['prototype']['documentId']='',CommentsV2ResolveCommentThreadMessage['prototype']['resolvedBy']='',CommentsV2ResolveCommentThreadMessage['prototype']['resolvedAt']='',CommentsV2ResolveCommentThreadMessage['create']=function(properties){return new CommentsV2ResolveCommentThreadMessage(properties);},CommentsV2ResolveCommentThreadMessage['encode']=function(_0x22bf92,writer){return writer||(writer=$Writer['create']()),null!=_0x22bf92['commentThreadId']&&Object['hasOwnProperty']['call'](_0x22bf92,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x22bf92['commentThreadId']),null!=_0x22bf92['documentId']&&Object['hasOwnProperty']['call'](_0x22bf92,'documentId')&&writer['uint32'](0x12)['string'](_0x22bf92['documentId']),null!=_0x22bf92['resolvedBy']&&Object['hasOwnProperty']['call'](_0x22bf92,'resolvedBy')&&writer['uint32'](0x1a)['string'](_0x22bf92['resolvedBy']),null!=_0x22bf92['resolvedAt']&&Object['hasOwnProperty']['call'](_0x22bf92,'resolvedAt')&&writer['uint32'](0x22)['string'](_0x22bf92['resolvedAt']),writer;},CommentsV2ResolveCommentThreadMessage['encodeDelimited']=function(_0x912a1a,writer){return this['encode'](_0x912a1a,writer)['ldelim']();},CommentsV2ResolveCommentThreadMessage['decode']=function(_0x3e18b2,length,_0x37e8d5){_0x3e18b2 instanceof _0x7b4aff||(_0x3e18b2=_0x7b4aff['create'](_0x3e18b2));for(var _0x196f9a=void 0x0===length?_0x3e18b2['len']:_0x3e18b2['pos']+length,_0x3355a6=new $root['CommentsV2ResolveCommentThreadMessage']();_0x3e18b2['pos']<_0x196f9a;){var tag=_0x3e18b2['uint32']();if(tag===_0x37e8d5)break;switch(tag>>>0x3){case 0x1:_0x3355a6['commentThreadId']=_0x3e18b2['string']();break;case 0x2:_0x3355a6['documentId']=_0x3e18b2['string']();break;case 0x3:_0x3355a6['resolvedBy']=_0x3e18b2['string']();break;case 0x4:_0x3355a6['resolvedAt']=_0x3e18b2['string']();break;default:_0x3e18b2['skipType'](0x7&tag);}}return _0x3355a6;},CommentsV2ResolveCommentThreadMessage['decodeDelimited']=function(_0xd76142){return _0xd76142 instanceof _0x7b4aff||(_0xd76142=new _0x7b4aff(_0xd76142)),this['decode'](_0xd76142,_0xd76142['uint32']());},CommentsV2ResolveCommentThreadMessage['verify']=function(_0x333a05){return'object'!=typeof _0x333a05||null===_0x333a05?'object\x20expected':null!=_0x333a05['commentThreadId']&&_0x333a05['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x333a05['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x333a05['documentId']&&_0x333a05['hasOwnProperty']('documentId')&&!$util['isString'](_0x333a05['documentId'])?'documentId:\x20string\x20expected':null!=_0x333a05['resolvedBy']&&_0x333a05['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x333a05['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x333a05['resolvedAt']&&_0x333a05['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x333a05['resolvedAt'])?'resolvedAt:\x20string\x20expected':null;},CommentsV2ResolveCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2ResolveCommentThreadMessage'])return object;var _0x5e66a3=new $root['CommentsV2ResolveCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x5e66a3['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x5e66a3['documentId']=String(object['documentId'])),null!=object['resolvedBy']&&(_0x5e66a3['resolvedBy']=String(object['resolvedBy'])),null!=object['resolvedAt']&&(_0x5e66a3['resolvedAt']=String(object['resolvedAt'])),_0x5e66a3;},CommentsV2ResolveCommentThreadMessage['toObject']=function(_0x3d56a1,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['resolvedBy']='',object['resolvedAt']=''),null!=_0x3d56a1['commentThreadId']&&_0x3d56a1['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x3d56a1['commentThreadId']),null!=_0x3d56a1['documentId']&&_0x3d56a1['hasOwnProperty']('documentId')&&(object['documentId']=_0x3d56a1['documentId']),null!=_0x3d56a1['resolvedBy']&&_0x3d56a1['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x3d56a1['resolvedBy']),null!=_0x3d56a1['resolvedAt']&&_0x3d56a1['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x3d56a1['resolvedAt']),object;},CommentsV2ResolveCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ResolveCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ResolveCommentThreadMessage';},CommentsV2ResolveCommentThreadMessage;}()),$root['CommentsV2UpdateCommentThreadMessage']=(function(){function CommentsV2UpdateCommentThreadMessage(properties){if(properties){for(var _0x3cefcf=Object['keys'](properties),_0x7c93b=0x0;_0x7c93b<_0x3cefcf['length'];++_0x7c93b)null!=properties[_0x3cefcf[_0x7c93b]]&&(this[_0x3cefcf[_0x7c93b]]=properties[_0x3cefcf[_0x7c93b]]);}}return CommentsV2UpdateCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2UpdateCommentThreadMessage['prototype']['documentId']='',CommentsV2UpdateCommentThreadMessage['prototype']['context']='',CommentsV2UpdateCommentThreadMessage['prototype']['attributes']='',CommentsV2UpdateCommentThreadMessage['prototype']['unlinkedAt']='',CommentsV2UpdateCommentThreadMessage['create']=function(properties){return new CommentsV2UpdateCommentThreadMessage(properties);},CommentsV2UpdateCommentThreadMessage['encode']=function(_0x388be0,writer){return writer||(writer=$Writer['create']()),null!=_0x388be0['commentThreadId']&&Object['hasOwnProperty']['call'](_0x388be0,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x388be0['commentThreadId']),null!=_0x388be0['documentId']&&Object['hasOwnProperty']['call'](_0x388be0,'documentId')&&writer['uint32'](0x12)['string'](_0x388be0['documentId']),null!=_0x388be0['context']&&Object['hasOwnProperty']['call'](_0x388be0,'context')&&writer['uint32'](0x1a)['string'](_0x388be0['context']),null!=_0x388be0['attributes']&&Object['hasOwnProperty']['call'](_0x388be0,'attributes')&&writer['uint32'](0x22)['string'](_0x388be0['attributes']),null!=_0x388be0['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x388be0,'unlinkedAt')&&writer['uint32'](0x2a)['string'](_0x388be0['unlinkedAt']),writer;},CommentsV2UpdateCommentThreadMessage['encodeDelimited']=function(_0x62a0ad,writer){return this['encode'](_0x62a0ad,writer)['ldelim']();},CommentsV2UpdateCommentThreadMessage['decode']=function(_0x58bd1f,length,_0x5a64ed){_0x58bd1f instanceof _0x7b4aff||(_0x58bd1f=_0x7b4aff['create'](_0x58bd1f));for(var _0x5cd7fa=void 0x0===length?_0x58bd1f['len']:_0x58bd1f['pos']+length,_0x16fea8=new $root['CommentsV2UpdateCommentThreadMessage']();_0x58bd1f['pos']<_0x5cd7fa;){var tag=_0x58bd1f['uint32']();if(tag===_0x5a64ed)break;switch(tag>>>0x3){case 0x1:_0x16fea8['commentThreadId']=_0x58bd1f['string']();break;case 0x2:_0x16fea8['documentId']=_0x58bd1f['string']();break;case 0x3:_0x16fea8['context']=_0x58bd1f['string']();break;case 0x4:_0x16fea8['attributes']=_0x58bd1f['string']();break;case 0x5:_0x16fea8['unlinkedAt']=_0x58bd1f['string']();break;default:_0x58bd1f['skipType'](0x7&tag);}}return _0x16fea8;},CommentsV2UpdateCommentThreadMessage['decodeDelimited']=function(_0x3258a7){return _0x3258a7 instanceof _0x7b4aff||(_0x3258a7=new _0x7b4aff(_0x3258a7)),this['decode'](_0x3258a7,_0x3258a7['uint32']());},CommentsV2UpdateCommentThreadMessage['verify']=function(_0x4faa90){return'object'!=typeof _0x4faa90||null===_0x4faa90?'object\x20expected':null!=_0x4faa90['commentThreadId']&&_0x4faa90['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x4faa90['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x4faa90['documentId']&&_0x4faa90['hasOwnProperty']('documentId')&&!$util['isString'](_0x4faa90['documentId'])?'documentId:\x20string\x20expected':null!=_0x4faa90['context']&&_0x4faa90['hasOwnProperty']('context')&&!$util['isString'](_0x4faa90['context'])?'context:\x20string\x20expected':null!=_0x4faa90['attributes']&&_0x4faa90['hasOwnProperty']('attributes')&&!$util['isString'](_0x4faa90['attributes'])?'attributes:\x20string\x20expected':null!=_0x4faa90['unlinkedAt']&&_0x4faa90['hasOwnProperty']('unlinkedAt')&&!$util['isString'](_0x4faa90['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsV2UpdateCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2UpdateCommentThreadMessage'])return object;var _0xff8a5d=new $root['CommentsV2UpdateCommentThreadMessage']();return null!=object['commentThreadId']&&(_0xff8a5d['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0xff8a5d['documentId']=String(object['documentId'])),null!=object['context']&&(_0xff8a5d['context']=String(object['context'])),null!=object['attributes']&&(_0xff8a5d['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0xff8a5d['unlinkedAt']=String(object['unlinkedAt'])),_0xff8a5d;},CommentsV2UpdateCommentThreadMessage['toObject']=function(_0x44e7d6,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['context']='',object['attributes']='',object['unlinkedAt']=''),null!=_0x44e7d6['commentThreadId']&&_0x44e7d6['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x44e7d6['commentThreadId']),null!=_0x44e7d6['documentId']&&_0x44e7d6['hasOwnProperty']('documentId')&&(object['documentId']=_0x44e7d6['documentId']),null!=_0x44e7d6['context']&&_0x44e7d6['hasOwnProperty']('context')&&(object['context']=_0x44e7d6['context']),null!=_0x44e7d6['attributes']&&_0x44e7d6['hasOwnProperty']('attributes')&&(object['attributes']=_0x44e7d6['attributes']),null!=_0x44e7d6['unlinkedAt']&&_0x44e7d6['hasOwnProperty']('unlinkedAt')&&(object['unlinkedAt']=_0x44e7d6['unlinkedAt']),object;},CommentsV2UpdateCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2UpdateCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2UpdateCommentThreadMessage';},CommentsV2UpdateCommentThreadMessage;}()),$root['CommentsV2ConnectMessage']=(function(){function CommentsV2ConnectMessage(properties){if(properties){for(var _0x364a63=Object['keys'](properties),_0x5c631e=0x0;_0x5c631e<_0x364a63['length'];++_0x5c631e)null!=properties[_0x364a63[_0x5c631e]]&&(this[_0x364a63[_0x5c631e]]=properties[_0x364a63[_0x5c631e]]);}}return CommentsV2ConnectMessage['prototype']['documentId']='',CommentsV2ConnectMessage['create']=function(properties){return new CommentsV2ConnectMessage(properties);},CommentsV2ConnectMessage['encode']=function(_0x2b422c,writer){return writer||(writer=$Writer['create']()),null!=_0x2b422c['documentId']&&Object['hasOwnProperty']['call'](_0x2b422c,'documentId')&&writer['uint32'](0xa)['string'](_0x2b422c['documentId']),writer;},CommentsV2ConnectMessage['encodeDelimited']=function(_0x25b007,writer){return this['encode'](_0x25b007,writer)['ldelim']();},CommentsV2ConnectMessage['decode']=function(_0x489bde,length,_0x396ade){_0x489bde instanceof _0x7b4aff||(_0x489bde=_0x7b4aff['create'](_0x489bde));for(var _0x2f7aaa=void 0x0===length?_0x489bde['len']:_0x489bde['pos']+length,_0x2c95aa=new $root['CommentsV2ConnectMessage']();_0x489bde['pos']<_0x2f7aaa;){var tag=_0x489bde['uint32']();if(tag===_0x396ade)break;if(tag>>>0x3==0x1)_0x2c95aa['documentId']=_0x489bde['string']();else _0x489bde['skipType'](0x7&tag);}return _0x2c95aa;},CommentsV2ConnectMessage['decodeDelimited']=function(_0xf1d0ac){return _0xf1d0ac instanceof _0x7b4aff||(_0xf1d0ac=new _0x7b4aff(_0xf1d0ac)),this['decode'](_0xf1d0ac,_0xf1d0ac['uint32']());},CommentsV2ConnectMessage['verify']=function(_0x1cfad6){return'object'!=typeof _0x1cfad6||null===_0x1cfad6?'object\x20expected':null!=_0x1cfad6['documentId']&&_0x1cfad6['hasOwnProperty']('documentId')&&!$util['isString'](_0x1cfad6['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2ConnectMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2ConnectMessage'])return object;var _0x11e3a6=new $root['CommentsV2ConnectMessage']();return null!=object['documentId']&&(_0x11e3a6['documentId']=String(object['documentId'])),_0x11e3a6;},CommentsV2ConnectMessage['toObject']=function(_0x2407a3,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x2407a3['documentId']&&_0x2407a3['hasOwnProperty']('documentId')&&(object['documentId']=_0x2407a3['documentId']),object;},CommentsV2ConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ConnectMessage';},CommentsV2ConnectMessage;}()),$root['CommentsV2GetCommentThreadMessage']=(function(){function CommentsV2GetCommentThreadMessage(properties){if(properties){for(var _0x2cb080=Object['keys'](properties),_0x4ca366=0x0;_0x4ca366<_0x2cb080['length'];++_0x4ca366)null!=properties[_0x2cb080[_0x4ca366]]&&(this[_0x2cb080[_0x4ca366]]=properties[_0x2cb080[_0x4ca366]]);}}return CommentsV2GetCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2GetCommentThreadMessage['prototype']['documentId']='',CommentsV2GetCommentThreadMessage['create']=function(properties){return new CommentsV2GetCommentThreadMessage(properties);},CommentsV2GetCommentThreadMessage['encode']=function(_0x54d817,writer){return writer||(writer=$Writer['create']()),null!=_0x54d817['commentThreadId']&&Object['hasOwnProperty']['call'](_0x54d817,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x54d817['commentThreadId']),null!=_0x54d817['documentId']&&Object['hasOwnProperty']['call'](_0x54d817,'documentId')&&writer['uint32'](0x12)['string'](_0x54d817['documentId']),writer;},CommentsV2GetCommentThreadMessage['encodeDelimited']=function(_0x30b5f2,writer){return this['encode'](_0x30b5f2,writer)['ldelim']();},CommentsV2GetCommentThreadMessage['decode']=function(_0x73f673,length,_0x2acd3c){_0x73f673 instanceof _0x7b4aff||(_0x73f673=_0x7b4aff['create'](_0x73f673));for(var _0x477106=void 0x0===length?_0x73f673['len']:_0x73f673['pos']+length,_0x364db8=new $root['CommentsV2GetCommentThreadMessage']();_0x73f673['pos']<_0x477106;){var tag=_0x73f673['uint32']();if(tag===_0x2acd3c)break;switch(tag>>>0x3){case 0x1:_0x364db8['commentThreadId']=_0x73f673['string']();break;case 0x2:_0x364db8['documentId']=_0x73f673['string']();break;default:_0x73f673['skipType'](0x7&tag);}}return _0x364db8;},CommentsV2GetCommentThreadMessage['decodeDelimited']=function(_0x23bf0c){return _0x23bf0c instanceof _0x7b4aff||(_0x23bf0c=new _0x7b4aff(_0x23bf0c)),this['decode'](_0x23bf0c,_0x23bf0c['uint32']());},CommentsV2GetCommentThreadMessage['verify']=function(_0x1c7a07){return'object'!=typeof _0x1c7a07||null===_0x1c7a07?'object\x20expected':null!=_0x1c7a07['commentThreadId']&&_0x1c7a07['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x1c7a07['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x1c7a07['documentId']&&_0x1c7a07['hasOwnProperty']('documentId')&&!$util['isString'](_0x1c7a07['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2GetCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2GetCommentThreadMessage'])return object;var _0x4916ef=new $root['CommentsV2GetCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x4916ef['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x4916ef['documentId']=String(object['documentId'])),_0x4916ef;},CommentsV2GetCommentThreadMessage['toObject']=function(_0x41031c,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x41031c['commentThreadId']&&_0x41031c['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x41031c['commentThreadId']),null!=_0x41031c['documentId']&&_0x41031c['hasOwnProperty']('documentId')&&(object['documentId']=_0x41031c['documentId']),object;},CommentsV2GetCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetCommentThreadMessage';},CommentsV2GetCommentThreadMessage;}()),$root['CommentsV2GetDocumentThreadsMessage']=(function(){function CommentsV2GetDocumentThreadsMessage(properties){if(properties){for(var _0x54b84d=Object['keys'](properties),_0x108849=0x0;_0x108849<_0x54b84d['length'];++_0x108849)null!=properties[_0x54b84d[_0x108849]]&&(this[_0x54b84d[_0x108849]]=properties[_0x54b84d[_0x108849]]);}}return CommentsV2GetDocumentThreadsMessage['prototype']['documentId']='',CommentsV2GetDocumentThreadsMessage['create']=function(properties){return new CommentsV2GetDocumentThreadsMessage(properties);},CommentsV2GetDocumentThreadsMessage['encode']=function(_0x54fe54,writer){return writer||(writer=$Writer['create']()),null!=_0x54fe54['documentId']&&Object['hasOwnProperty']['call'](_0x54fe54,'documentId')&&writer['uint32'](0xa)['string'](_0x54fe54['documentId']),writer;},CommentsV2GetDocumentThreadsMessage['encodeDelimited']=function(_0x518c61,writer){return this['encode'](_0x518c61,writer)['ldelim']();},CommentsV2GetDocumentThreadsMessage['decode']=function(_0x36961c,length,_0x52b49c){_0x36961c instanceof _0x7b4aff||(_0x36961c=_0x7b4aff['create'](_0x36961c));for(var _0x3b4a93=void 0x0===length?_0x36961c['len']:_0x36961c['pos']+length,_0x54a5f8=new $root['CommentsV2GetDocumentThreadsMessage']();_0x36961c['pos']<_0x3b4a93;){var tag=_0x36961c['uint32']();if(tag===_0x52b49c)break;if(tag>>>0x3==0x1)_0x54a5f8['documentId']=_0x36961c['string']();else _0x36961c['skipType'](0x7&tag);}return _0x54a5f8;},CommentsV2GetDocumentThreadsMessage['decodeDelimited']=function(_0x55346d){return _0x55346d instanceof _0x7b4aff||(_0x55346d=new _0x7b4aff(_0x55346d)),this['decode'](_0x55346d,_0x55346d['uint32']());},CommentsV2GetDocumentThreadsMessage['verify']=function(_0x731d21){return'object'!=typeof _0x731d21||null===_0x731d21?'object\x20expected':null!=_0x731d21['documentId']&&_0x731d21['hasOwnProperty']('documentId')&&!$util['isString'](_0x731d21['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2GetDocumentThreadsMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2GetDocumentThreadsMessage'])return object;var _0x2441b0=new $root['CommentsV2GetDocumentThreadsMessage']();return null!=object['documentId']&&(_0x2441b0['documentId']=String(object['documentId'])),_0x2441b0;},CommentsV2GetDocumentThreadsMessage['toObject']=function(_0x4e3855,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x4e3855['documentId']&&_0x4e3855['hasOwnProperty']('documentId')&&(object['documentId']=_0x4e3855['documentId']),object;},CommentsV2GetDocumentThreadsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetDocumentThreadsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetDocumentThreadsMessage';},CommentsV2GetDocumentThreadsMessage;}()),$root['CommentsV2RemoveCommentMessage']=(function(){function CommentsV2RemoveCommentMessage(properties){if(properties){for(var _0x13ff9b=Object['keys'](properties),_0x52a4c3=0x0;_0x52a4c3<_0x13ff9b['length'];++_0x52a4c3)null!=properties[_0x13ff9b[_0x52a4c3]]&&(this[_0x13ff9b[_0x52a4c3]]=properties[_0x13ff9b[_0x52a4c3]]);}}return CommentsV2RemoveCommentMessage['prototype']['commentThreadId']='',CommentsV2RemoveCommentMessage['prototype']['commentId']='',CommentsV2RemoveCommentMessage['prototype']['documentId']='',CommentsV2RemoveCommentMessage['create']=function(properties){return new CommentsV2RemoveCommentMessage(properties);},CommentsV2RemoveCommentMessage['encode']=function(_0x307392,writer){return writer||(writer=$Writer['create']()),null!=_0x307392['commentThreadId']&&Object['hasOwnProperty']['call'](_0x307392,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x307392['commentThreadId']),null!=_0x307392['commentId']&&Object['hasOwnProperty']['call'](_0x307392,'commentId')&&writer['uint32'](0x12)['string'](_0x307392['commentId']),null!=_0x307392['documentId']&&Object['hasOwnProperty']['call'](_0x307392,'documentId')&&writer['uint32'](0x1a)['string'](_0x307392['documentId']),writer;},CommentsV2RemoveCommentMessage['encodeDelimited']=function(_0x5de329,writer){return this['encode'](_0x5de329,writer)['ldelim']();},CommentsV2RemoveCommentMessage['decode']=function(_0x1277ed,length,_0x35518c){_0x1277ed instanceof _0x7b4aff||(_0x1277ed=_0x7b4aff['create'](_0x1277ed));for(var _0x23e21f=void 0x0===length?_0x1277ed['len']:_0x1277ed['pos']+length,_0x383ecf=new $root['CommentsV2RemoveCommentMessage']();_0x1277ed['pos']<_0x23e21f;){var tag=_0x1277ed['uint32']();if(tag===_0x35518c)break;switch(tag>>>0x3){case 0x1:_0x383ecf['commentThreadId']=_0x1277ed['string']();break;case 0x2:_0x383ecf['commentId']=_0x1277ed['string']();break;case 0x3:_0x383ecf['documentId']=_0x1277ed['string']();break;default:_0x1277ed['skipType'](0x7&tag);}}return _0x383ecf;},CommentsV2RemoveCommentMessage['decodeDelimited']=function(_0x35ddb9){return _0x35ddb9 instanceof _0x7b4aff||(_0x35ddb9=new _0x7b4aff(_0x35ddb9)),this['decode'](_0x35ddb9,_0x35ddb9['uint32']());},CommentsV2RemoveCommentMessage['verify']=function(_0x201544){return'object'!=typeof _0x201544||null===_0x201544?'object\x20expected':null!=_0x201544['commentThreadId']&&_0x201544['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x201544['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x201544['commentId']&&_0x201544['hasOwnProperty']('commentId')&&!$util['isString'](_0x201544['commentId'])?'commentId:\x20string\x20expected':null!=_0x201544['documentId']&&_0x201544['hasOwnProperty']('documentId')&&!$util['isString'](_0x201544['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2RemoveCommentMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2RemoveCommentMessage'])return object;var _0x3a3206=new $root['CommentsV2RemoveCommentMessage']();return null!=object['commentThreadId']&&(_0x3a3206['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x3a3206['commentId']=String(object['commentId'])),null!=object['documentId']&&(_0x3a3206['documentId']=String(object['documentId'])),_0x3a3206;},CommentsV2RemoveCommentMessage['toObject']=function(_0x185b95,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['documentId']=''),null!=_0x185b95['commentThreadId']&&_0x185b95['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x185b95['commentThreadId']),null!=_0x185b95['commentId']&&_0x185b95['hasOwnProperty']('commentId')&&(object['commentId']=_0x185b95['commentId']),null!=_0x185b95['documentId']&&_0x185b95['hasOwnProperty']('documentId')&&(object['documentId']=_0x185b95['documentId']),object;},CommentsV2RemoveCommentMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2RemoveCommentMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2RemoveCommentMessage';},CommentsV2RemoveCommentMessage;}()),$root['CommentsV2RemoveCommentThreadMessage']=(function(){function CommentsV2RemoveCommentThreadMessage(properties){if(properties){for(var _0x5b99aa=Object['keys'](properties),_0x119540=0x0;_0x119540<_0x5b99aa['length'];++_0x119540)null!=properties[_0x5b99aa[_0x119540]]&&(this[_0x5b99aa[_0x119540]]=properties[_0x5b99aa[_0x119540]]);}}return CommentsV2RemoveCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2RemoveCommentThreadMessage['prototype']['documentId']='',CommentsV2RemoveCommentThreadMessage['create']=function(properties){return new CommentsV2RemoveCommentThreadMessage(properties);},CommentsV2RemoveCommentThreadMessage['encode']=function(_0x39907e,writer){return writer||(writer=$Writer['create']()),null!=_0x39907e['commentThreadId']&&Object['hasOwnProperty']['call'](_0x39907e,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x39907e['commentThreadId']),null!=_0x39907e['documentId']&&Object['hasOwnProperty']['call'](_0x39907e,'documentId')&&writer['uint32'](0x12)['string'](_0x39907e['documentId']),writer;},CommentsV2RemoveCommentThreadMessage['encodeDelimited']=function(_0x20800d,writer){return this['encode'](_0x20800d,writer)['ldelim']();},CommentsV2RemoveCommentThreadMessage['decode']=function(_0x73fe3,length,_0x263ee1){_0x73fe3 instanceof _0x7b4aff||(_0x73fe3=_0x7b4aff['create'](_0x73fe3));for(var _0x33edea=void 0x0===length?_0x73fe3['len']:_0x73fe3['pos']+length,_0x2554ee=new $root['CommentsV2RemoveCommentThreadMessage']();_0x73fe3['pos']<_0x33edea;){var tag=_0x73fe3['uint32']();if(tag===_0x263ee1)break;switch(tag>>>0x3){case 0x1:_0x2554ee['commentThreadId']=_0x73fe3['string']();break;case 0x2:_0x2554ee['documentId']=_0x73fe3['string']();break;default:_0x73fe3['skipType'](0x7&tag);}}return _0x2554ee;},CommentsV2RemoveCommentThreadMessage['decodeDelimited']=function(_0x170f8a){return _0x170f8a instanceof _0x7b4aff||(_0x170f8a=new _0x7b4aff(_0x170f8a)),this['decode'](_0x170f8a,_0x170f8a['uint32']());},CommentsV2RemoveCommentThreadMessage['verify']=function(_0x50b174){return'object'!=typeof _0x50b174||null===_0x50b174?'object\x20expected':null!=_0x50b174['commentThreadId']&&_0x50b174['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x50b174['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x50b174['documentId']&&_0x50b174['hasOwnProperty']('documentId')&&!$util['isString'](_0x50b174['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2RemoveCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2RemoveCommentThreadMessage'])return object;var _0x4d15e0=new $root['CommentsV2RemoveCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x4d15e0['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x4d15e0['documentId']=String(object['documentId'])),_0x4d15e0;},CommentsV2RemoveCommentThreadMessage['toObject']=function(_0xc99cd,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0xc99cd['commentThreadId']&&_0xc99cd['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0xc99cd['commentThreadId']),null!=_0xc99cd['documentId']&&_0xc99cd['hasOwnProperty']('documentId')&&(object['documentId']=_0xc99cd['documentId']),object;},CommentsV2RemoveCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2RemoveCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2RemoveCommentThreadMessage';},CommentsV2RemoveCommentThreadMessage;}()),$root['CommentsV2UpdateCommentMessage']=(function(){function CommentsV2UpdateCommentMessage(properties){if(properties){for(var _0x32bbfa=Object['keys'](properties),_0x44cd35=0x0;_0x44cd35<_0x32bbfa['length'];++_0x44cd35)null!=properties[_0x32bbfa[_0x44cd35]]&&(this[_0x32bbfa[_0x44cd35]]=properties[_0x32bbfa[_0x44cd35]]);}}return CommentsV2UpdateCommentMessage['prototype']['commentThreadId']='',CommentsV2UpdateCommentMessage['prototype']['commentId']='',CommentsV2UpdateCommentMessage['prototype']['content']='',CommentsV2UpdateCommentMessage['prototype']['documentId']='',CommentsV2UpdateCommentMessage['prototype']['attributes']='',CommentsV2UpdateCommentMessage['prototype']['isAttributesUpdated']=!0x1,CommentsV2UpdateCommentMessage['prototype']['commentThread']=null,CommentsV2UpdateCommentMessage['create']=function(properties){return new CommentsV2UpdateCommentMessage(properties);},CommentsV2UpdateCommentMessage['encode']=function(_0x39a92f,writer){return writer||(writer=$Writer['create']()),null!=_0x39a92f['commentThreadId']&&Object['hasOwnProperty']['call'](_0x39a92f,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x39a92f['commentThreadId']),null!=_0x39a92f['commentId']&&Object['hasOwnProperty']['call'](_0x39a92f,'commentId')&&writer['uint32'](0x12)['string'](_0x39a92f['commentId']),null!=_0x39a92f['content']&&Object['hasOwnProperty']['call'](_0x39a92f,'content')&&writer['uint32'](0x1a)['string'](_0x39a92f['content']),null!=_0x39a92f['documentId']&&Object['hasOwnProperty']['call'](_0x39a92f,'documentId')&&writer['uint32'](0x22)['string'](_0x39a92f['documentId']),null!=_0x39a92f['attributes']&&Object['hasOwnProperty']['call'](_0x39a92f,'attributes')&&writer['uint32'](0x2a)['string'](_0x39a92f['attributes']),null!=_0x39a92f['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x39a92f,'isAttributesUpdated')&&writer['uint32'](0x30)['bool'](_0x39a92f['isAttributesUpdated']),null!=_0x39a92f['commentThread']&&Object['hasOwnProperty']['call'](_0x39a92f,'commentThread')&&$root['CommentsThreadDescriptor']['encode'](_0x39a92f['commentThread'],writer['uint32'](0x3a)['fork']())['ldelim'](),writer;},CommentsV2UpdateCommentMessage['encodeDelimited']=function(_0x13bbd1,writer){return this['encode'](_0x13bbd1,writer)['ldelim']();},CommentsV2UpdateCommentMessage['decode']=function(_0x462bcb,length,_0x2b2102){_0x462bcb instanceof _0x7b4aff||(_0x462bcb=_0x7b4aff['create'](_0x462bcb));for(var _0x3fbfac=void 0x0===length?_0x462bcb['len']:_0x462bcb['pos']+length,_0xcc6338=new $root['CommentsV2UpdateCommentMessage']();_0x462bcb['pos']<_0x3fbfac;){var tag=_0x462bcb['uint32']();if(tag===_0x2b2102)break;switch(tag>>>0x3){case 0x1:_0xcc6338['commentThreadId']=_0x462bcb['string']();break;case 0x2:_0xcc6338['commentId']=_0x462bcb['string']();break;case 0x3:_0xcc6338['content']=_0x462bcb['string']();break;case 0x4:_0xcc6338['documentId']=_0x462bcb['string']();break;case 0x5:_0xcc6338['attributes']=_0x462bcb['string']();break;case 0x6:_0xcc6338['isAttributesUpdated']=_0x462bcb['bool']();break;case 0x7:_0xcc6338['commentThread']=$root['CommentsThreadDescriptor']['decode'](_0x462bcb,_0x462bcb['uint32']());break;default:_0x462bcb['skipType'](0x7&tag);}}return _0xcc6338;},CommentsV2UpdateCommentMessage['decodeDelimited']=function(_0x40ea99){return _0x40ea99 instanceof _0x7b4aff||(_0x40ea99=new _0x7b4aff(_0x40ea99)),this['decode'](_0x40ea99,_0x40ea99['uint32']());},CommentsV2UpdateCommentMessage['verify']=function(_0x3c1058){if('object'!=typeof _0x3c1058||null===_0x3c1058)return'object\x20expected';if(null!=_0x3c1058['commentThreadId']&&_0x3c1058['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x3c1058['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x3c1058['commentId']&&_0x3c1058['hasOwnProperty']('commentId')&&!$util['isString'](_0x3c1058['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x3c1058['content']&&_0x3c1058['hasOwnProperty']('content')&&!$util['isString'](_0x3c1058['content']))return'content:\x20string\x20expected';if(null!=_0x3c1058['documentId']&&_0x3c1058['hasOwnProperty']('documentId')&&!$util['isString'](_0x3c1058['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x3c1058['attributes']&&_0x3c1058['hasOwnProperty']('attributes')&&!$util['isString'](_0x3c1058['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x3c1058['isAttributesUpdated']&&_0x3c1058['hasOwnProperty']('isAttributesUpdated')&&'boolean'!=typeof _0x3c1058['isAttributesUpdated'])return'isAttributesUpdated:\x20boolean\x20expected';if(null!=_0x3c1058['commentThread']&&_0x3c1058['hasOwnProperty']('commentThread')){var _0x5b8243=$root['CommentsThreadDescriptor']['verify'](_0x3c1058['commentThread']);if(_0x5b8243)return'commentThread.'+_0x5b8243;}return null;},CommentsV2UpdateCommentMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2UpdateCommentMessage'])return object;var _0x558ad1=new $root['CommentsV2UpdateCommentMessage']();if(null!=object['commentThreadId']&&(_0x558ad1['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x558ad1['commentId']=String(object['commentId'])),null!=object['content']&&(_0x558ad1['content']=String(object['content'])),null!=object['documentId']&&(_0x558ad1['documentId']=String(object['documentId'])),null!=object['attributes']&&(_0x558ad1['attributes']=String(object['attributes'])),null!=object['isAttributesUpdated']&&(_0x558ad1['isAttributesUpdated']=Boolean(object['isAttributesUpdated'])),null!=object['commentThread']){if('object'!=typeof object['commentThread'])throw TypeError('.CommentsV2UpdateCommentMessage.commentThread:\x20object\x20expected');_0x558ad1['commentThread']=$root['CommentsThreadDescriptor']['fromObject'](object['commentThread']);}return _0x558ad1;},CommentsV2UpdateCommentMessage['toObject']=function(_0x941460,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['content']='',object['documentId']='',object['attributes']='',object['isAttributesUpdated']=!0x1,object['commentThread']=null),null!=_0x941460['commentThreadId']&&_0x941460['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x941460['commentThreadId']),null!=_0x941460['commentId']&&_0x941460['hasOwnProperty']('commentId')&&(object['commentId']=_0x941460['commentId']),null!=_0x941460['content']&&_0x941460['hasOwnProperty']('content')&&(object['content']=_0x941460['content']),null!=_0x941460['documentId']&&_0x941460['hasOwnProperty']('documentId')&&(object['documentId']=_0x941460['documentId']),null!=_0x941460['attributes']&&_0x941460['hasOwnProperty']('attributes')&&(object['attributes']=_0x941460['attributes']),null!=_0x941460['isAttributesUpdated']&&_0x941460['hasOwnProperty']('isAttributesUpdated')&&(object['isAttributesUpdated']=_0x941460['isAttributesUpdated']),null!=_0x941460['commentThread']&&_0x941460['hasOwnProperty']('commentThread')&&(object['commentThread']=$root['CommentsThreadDescriptor']['toObject'](_0x941460['commentThread'],options)),object;},CommentsV2UpdateCommentMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2UpdateCommentMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2UpdateCommentMessage';},CommentsV2UpdateCommentMessage;}()),$root['CommentsV2AddCommentResponse']=(function(){function CommentsV2AddCommentResponse(properties){if(properties){for(var _0x597f40=Object['keys'](properties),_0xfaf8b5=0x0;_0xfaf8b5<_0x597f40['length'];++_0xfaf8b5)null!=properties[_0x597f40[_0xfaf8b5]]&&(this[_0x597f40[_0xfaf8b5]]=properties[_0x597f40[_0xfaf8b5]]);}}return CommentsV2AddCommentResponse['prototype']['commentThreadId']='',CommentsV2AddCommentResponse['prototype']['commentId']='',CommentsV2AddCommentResponse['prototype']['createdAt']='',CommentsV2AddCommentResponse['create']=function(properties){return new CommentsV2AddCommentResponse(properties);},CommentsV2AddCommentResponse['encode']=function(_0x443717,writer){return writer||(writer=$Writer['create']()),null!=_0x443717['commentThreadId']&&Object['hasOwnProperty']['call'](_0x443717,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x443717['commentThreadId']),null!=_0x443717['commentId']&&Object['hasOwnProperty']['call'](_0x443717,'commentId')&&writer['uint32'](0x12)['string'](_0x443717['commentId']),null!=_0x443717['createdAt']&&Object['hasOwnProperty']['call'](_0x443717,'createdAt')&&writer['uint32'](0x1a)['string'](_0x443717['createdAt']),writer;},CommentsV2AddCommentResponse['encodeDelimited']=function(_0x1b0c48,writer){return this['encode'](_0x1b0c48,writer)['ldelim']();},CommentsV2AddCommentResponse['decode']=function(_0x446854,length,_0x183b27){_0x446854 instanceof _0x7b4aff||(_0x446854=_0x7b4aff['create'](_0x446854));for(var _0x53a1ef=void 0x0===length?_0x446854['len']:_0x446854['pos']+length,_0x153ffc=new $root['CommentsV2AddCommentResponse']();_0x446854['pos']<_0x53a1ef;){var tag=_0x446854['uint32']();if(tag===_0x183b27)break;switch(tag>>>0x3){case 0x1:_0x153ffc['commentThreadId']=_0x446854['string']();break;case 0x2:_0x153ffc['commentId']=_0x446854['string']();break;case 0x3:_0x153ffc['createdAt']=_0x446854['string']();break;default:_0x446854['skipType'](0x7&tag);}}return _0x153ffc;},CommentsV2AddCommentResponse['decodeDelimited']=function(_0x64ceda){return _0x64ceda instanceof _0x7b4aff||(_0x64ceda=new _0x7b4aff(_0x64ceda)),this['decode'](_0x64ceda,_0x64ceda['uint32']());},CommentsV2AddCommentResponse['verify']=function(_0x489d5e){return'object'!=typeof _0x489d5e||null===_0x489d5e?'object\x20expected':null!=_0x489d5e['commentThreadId']&&_0x489d5e['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x489d5e['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x489d5e['commentId']&&_0x489d5e['hasOwnProperty']('commentId')&&!$util['isString'](_0x489d5e['commentId'])?'commentId:\x20string\x20expected':null!=_0x489d5e['createdAt']&&_0x489d5e['hasOwnProperty']('createdAt')&&!$util['isString'](_0x489d5e['createdAt'])?'createdAt:\x20string\x20expected':null;},CommentsV2AddCommentResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentResponse'])return object;var _0x5f3fc1=new $root['CommentsV2AddCommentResponse']();return null!=object['commentThreadId']&&(_0x5f3fc1['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x5f3fc1['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0x5f3fc1['createdAt']=String(object['createdAt'])),_0x5f3fc1;},CommentsV2AddCommentResponse['toObject']=function(_0x1e8416,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['createdAt']=''),null!=_0x1e8416['commentThreadId']&&_0x1e8416['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x1e8416['commentThreadId']),null!=_0x1e8416['commentId']&&_0x1e8416['hasOwnProperty']('commentId')&&(object['commentId']=_0x1e8416['commentId']),null!=_0x1e8416['createdAt']&&_0x1e8416['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x1e8416['createdAt']),object;},CommentsV2AddCommentResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentResponse';},CommentsV2AddCommentResponse;}()),$root['CommentsV2AddCommentThreadResponse']=(function(){function CommentsV2AddCommentThreadResponse(properties){if(this['comments']=[],properties){for(var _0x36b369=Object['keys'](properties),_0x4f88e1=0x0;_0x4f88e1<_0x36b369['length'];++_0x4f88e1)null!=properties[_0x36b369[_0x4f88e1]]&&(this[_0x36b369[_0x4f88e1]]=properties[_0x36b369[_0x4f88e1]]);}}return CommentsV2AddCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2AddCommentThreadResponse['prototype']['createdAt']='',CommentsV2AddCommentThreadResponse['prototype']['comments']=$util['emptyArray'],CommentsV2AddCommentThreadResponse['create']=function(properties){return new CommentsV2AddCommentThreadResponse(properties);},CommentsV2AddCommentThreadResponse['encode']=function(_0xe4299c,writer){if(writer||(writer=$Writer['create']()),null!=_0xe4299c['commentThreadId']&&Object['hasOwnProperty']['call'](_0xe4299c,'commentThreadId')&&writer['uint32'](0xa)['string'](_0xe4299c['commentThreadId']),null!=_0xe4299c['createdAt']&&Object['hasOwnProperty']['call'](_0xe4299c,'createdAt')&&writer['uint32'](0x12)['string'](_0xe4299c['createdAt']),null!=_0xe4299c['comments']&&_0xe4299c['comments']['length']){for(var _0x26b41c=0x0;_0x26b41c<_0xe4299c['comments']['length'];++_0x26b41c)$root['CommentThreadAddedCommentDescriptor']['encode'](_0xe4299c['comments'][_0x26b41c],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},CommentsV2AddCommentThreadResponse['encodeDelimited']=function(_0x169a2d,writer){return this['encode'](_0x169a2d,writer)['ldelim']();},CommentsV2AddCommentThreadResponse['decode']=function(_0x39c47c,length,_0x450d00){_0x39c47c instanceof _0x7b4aff||(_0x39c47c=_0x7b4aff['create'](_0x39c47c));for(var _0x371df4=void 0x0===length?_0x39c47c['len']:_0x39c47c['pos']+length,_0x31a743=new $root['CommentsV2AddCommentThreadResponse']();_0x39c47c['pos']<_0x371df4;){var tag=_0x39c47c['uint32']();if(tag===_0x450d00)break;switch(tag>>>0x3){case 0x1:_0x31a743['commentThreadId']=_0x39c47c['string']();break;case 0x2:_0x31a743['createdAt']=_0x39c47c['string']();break;case 0x3:_0x31a743['comments']&&_0x31a743['comments']['length']||(_0x31a743['comments']=[]),_0x31a743['comments']['push']($root['CommentThreadAddedCommentDescriptor']['decode'](_0x39c47c,_0x39c47c['uint32']()));break;default:_0x39c47c['skipType'](0x7&tag);}}return _0x31a743;},CommentsV2AddCommentThreadResponse['decodeDelimited']=function(_0x3698bf){return _0x3698bf instanceof _0x7b4aff||(_0x3698bf=new _0x7b4aff(_0x3698bf)),this['decode'](_0x3698bf,_0x3698bf['uint32']());},CommentsV2AddCommentThreadResponse['verify']=function(_0x329e99){if('object'!=typeof _0x329e99||null===_0x329e99)return'object\x20expected';if(null!=_0x329e99['commentThreadId']&&_0x329e99['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x329e99['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x329e99['createdAt']&&_0x329e99['hasOwnProperty']('createdAt')&&!$util['isString'](_0x329e99['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x329e99['comments']&&_0x329e99['hasOwnProperty']('comments')){if(!Array['isArray'](_0x329e99['comments']))return'comments:\x20array\x20expected';for(var _0x33778f=0x0;_0x33778f<_0x329e99['comments']['length'];++_0x33778f){var _0x2b3e16=$root['CommentThreadAddedCommentDescriptor']['verify'](_0x329e99['comments'][_0x33778f]);if(_0x2b3e16)return'comments.'+_0x2b3e16;}}return null;},CommentsV2AddCommentThreadResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentThreadResponse'])return object;var _0x492d01=new $root['CommentsV2AddCommentThreadResponse']();if(null!=object['commentThreadId']&&(_0x492d01['commentThreadId']=String(object['commentThreadId'])),null!=object['createdAt']&&(_0x492d01['createdAt']=String(object['createdAt'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20array\x20expected');_0x492d01['comments']=[];for(var _0x32d746=0x0;_0x32d746<object['comments']['length'];++_0x32d746){if('object'!=typeof object['comments'][_0x32d746])throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20object\x20expected');_0x492d01['comments'][_0x32d746]=$root['CommentThreadAddedCommentDescriptor']['fromObject'](object['comments'][_0x32d746]);}}return _0x492d01;},CommentsV2AddCommentThreadResponse['toObject']=function(_0x1fd5c6,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[]),options['defaults']&&(object['commentThreadId']='',object['createdAt']=''),null!=_0x1fd5c6['commentThreadId']&&_0x1fd5c6['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x1fd5c6['commentThreadId']),null!=_0x1fd5c6['createdAt']&&_0x1fd5c6['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x1fd5c6['createdAt']),_0x1fd5c6['comments']&&_0x1fd5c6['comments']['length']){object['comments']=[];for(var _0x1ac85c=0x0;_0x1ac85c<_0x1fd5c6['comments']['length'];++_0x1ac85c)object['comments'][_0x1ac85c]=$root['CommentThreadAddedCommentDescriptor']['toObject'](_0x1fd5c6['comments'][_0x1ac85c],options);}return object;},CommentsV2AddCommentThreadResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentThreadResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentThreadResponse';},CommentsV2AddCommentThreadResponse;}()),$root['CommentsV2ResolveCommentThreadResponse']=(function(){function CommentsV2ResolveCommentThreadResponse(properties){if(properties){for(var _0x1dbfa1=Object['keys'](properties),_0x22464d=0x0;_0x22464d<_0x1dbfa1['length'];++_0x22464d)null!=properties[_0x1dbfa1[_0x22464d]]&&(this[_0x1dbfa1[_0x22464d]]=properties[_0x1dbfa1[_0x22464d]]);}}return CommentsV2ResolveCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2ResolveCommentThreadResponse['prototype']['documentId']='',CommentsV2ResolveCommentThreadResponse['prototype']['resolvedAt']='',CommentsV2ResolveCommentThreadResponse['prototype']['resolvedBy']='',CommentsV2ResolveCommentThreadResponse['create']=function(properties){return new CommentsV2ResolveCommentThreadResponse(properties);},CommentsV2ResolveCommentThreadResponse['encode']=function(_0x46cf1d,writer){return writer||(writer=$Writer['create']()),null!=_0x46cf1d['commentThreadId']&&Object['hasOwnProperty']['call'](_0x46cf1d,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x46cf1d['commentThreadId']),null!=_0x46cf1d['documentId']&&Object['hasOwnProperty']['call'](_0x46cf1d,'documentId')&&writer['uint32'](0x12)['string'](_0x46cf1d['documentId']),null!=_0x46cf1d['resolvedAt']&&Object['hasOwnProperty']['call'](_0x46cf1d,'resolvedAt')&&writer['uint32'](0x1a)['string'](_0x46cf1d['resolvedAt']),null!=_0x46cf1d['resolvedBy']&&Object['hasOwnProperty']['call'](_0x46cf1d,'resolvedBy')&&writer['uint32'](0x22)['string'](_0x46cf1d['resolvedBy']),writer;},CommentsV2ResolveCommentThreadResponse['encodeDelimited']=function(_0x2d5ec4,writer){return this['encode'](_0x2d5ec4,writer)['ldelim']();},CommentsV2ResolveCommentThreadResponse['decode']=function(_0x18a862,length,_0x251bf2){_0x18a862 instanceof _0x7b4aff||(_0x18a862=_0x7b4aff['create'](_0x18a862));for(var _0x5749b8=void 0x0===length?_0x18a862['len']:_0x18a862['pos']+length,_0x24eaf0=new $root['CommentsV2ResolveCommentThreadResponse']();_0x18a862['pos']<_0x5749b8;){var tag=_0x18a862['uint32']();if(tag===_0x251bf2)break;switch(tag>>>0x3){case 0x1:_0x24eaf0['commentThreadId']=_0x18a862['string']();break;case 0x2:_0x24eaf0['documentId']=_0x18a862['string']();break;case 0x3:_0x24eaf0['resolvedAt']=_0x18a862['string']();break;case 0x4:_0x24eaf0['resolvedBy']=_0x18a862['string']();break;default:_0x18a862['skipType'](0x7&tag);}}return _0x24eaf0;},CommentsV2ResolveCommentThreadResponse['decodeDelimited']=function(_0x1b3c9d){return _0x1b3c9d instanceof _0x7b4aff||(_0x1b3c9d=new _0x7b4aff(_0x1b3c9d)),this['decode'](_0x1b3c9d,_0x1b3c9d['uint32']());},CommentsV2ResolveCommentThreadResponse['verify']=function(_0x473238){return'object'!=typeof _0x473238||null===_0x473238?'object\x20expected':null!=_0x473238['commentThreadId']&&_0x473238['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x473238['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x473238['documentId']&&_0x473238['hasOwnProperty']('documentId')&&!$util['isString'](_0x473238['documentId'])?'documentId:\x20string\x20expected':null!=_0x473238['resolvedAt']&&_0x473238['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x473238['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x473238['resolvedBy']&&_0x473238['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x473238['resolvedBy'])?'resolvedBy:\x20string\x20expected':null;},CommentsV2ResolveCommentThreadResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2ResolveCommentThreadResponse'])return object;var _0x441e95=new $root['CommentsV2ResolveCommentThreadResponse']();return null!=object['commentThreadId']&&(_0x441e95['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x441e95['documentId']=String(object['documentId'])),null!=object['resolvedAt']&&(_0x441e95['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x441e95['resolvedBy']=String(object['resolvedBy'])),_0x441e95;},CommentsV2ResolveCommentThreadResponse['toObject']=function(_0x23690c,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['resolvedAt']='',object['resolvedBy']=''),null!=_0x23690c['commentThreadId']&&_0x23690c['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x23690c['commentThreadId']),null!=_0x23690c['documentId']&&_0x23690c['hasOwnProperty']('documentId')&&(object['documentId']=_0x23690c['documentId']),null!=_0x23690c['resolvedAt']&&_0x23690c['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x23690c['resolvedAt']),null!=_0x23690c['resolvedBy']&&_0x23690c['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x23690c['resolvedBy']),object;},CommentsV2ResolveCommentThreadResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ResolveCommentThreadResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ResolveCommentThreadResponse';},CommentsV2ResolveCommentThreadResponse;}()),$root['CommentsV2ConnectResponse']=(function(){function CommentsV2ConnectResponse(properties){if(this['threads']=[],this['threadsV2']=[],properties){for(var _0x379e32=Object['keys'](properties),_0x36f2eb=0x0;_0x36f2eb<_0x379e32['length'];++_0x36f2eb)null!=properties[_0x379e32[_0x36f2eb]]&&(this[_0x379e32[_0x36f2eb]]=properties[_0x379e32[_0x36f2eb]]);}}return CommentsV2ConnectResponse['prototype']['channel']='',CommentsV2ConnectResponse['prototype']['threads']=$util['emptyArray'],CommentsV2ConnectResponse['prototype']['threadsV2']=$util['emptyArray'],CommentsV2ConnectResponse['create']=function(properties){return new CommentsV2ConnectResponse(properties);},CommentsV2ConnectResponse['encode']=function(_0x29c80c,writer){if(writer||(writer=$Writer['create']()),null!=_0x29c80c['channel']&&Object['hasOwnProperty']['call'](_0x29c80c,'channel')&&writer['uint32'](0xa)['string'](_0x29c80c['channel']),null!=_0x29c80c['threads']&&_0x29c80c['threads']['length']){for(var _0x58615b=0x0;_0x58615b<_0x29c80c['threads']['length'];++_0x58615b)writer['uint32'](0x12)['string'](_0x29c80c['threads'][_0x58615b]);}if(null!=_0x29c80c['threadsV2']&&_0x29c80c['threadsV2']['length']){for(_0x58615b=0x0;_0x58615b<_0x29c80c['threadsV2']['length'];++_0x58615b)$root['CommentsThreadDescriptor']['encode'](_0x29c80c['threadsV2'][_0x58615b],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},CommentsV2ConnectResponse['encodeDelimited']=function(_0x1e5a58,writer){return this['encode'](_0x1e5a58,writer)['ldelim']();},CommentsV2ConnectResponse['decode']=function(_0x2cef50,length,_0x4c427e){_0x2cef50 instanceof _0x7b4aff||(_0x2cef50=_0x7b4aff['create'](_0x2cef50));for(var _0x1fc7a9=void 0x0===length?_0x2cef50['len']:_0x2cef50['pos']+length,_0x586879=new $root['CommentsV2ConnectResponse']();_0x2cef50['pos']<_0x1fc7a9;){var tag=_0x2cef50['uint32']();if(tag===_0x4c427e)break;switch(tag>>>0x3){case 0x1:_0x586879['channel']=_0x2cef50['string']();break;case 0x2:_0x586879['threads']&&_0x586879['threads']['length']||(_0x586879['threads']=[]),_0x586879['threads']['push'](_0x2cef50['string']());break;case 0x3:_0x586879['threadsV2']&&_0x586879['threadsV2']['length']||(_0x586879['threadsV2']=[]),_0x586879['threadsV2']['push']($root['CommentsThreadDescriptor']['decode'](_0x2cef50,_0x2cef50['uint32']()));break;default:_0x2cef50['skipType'](0x7&tag);}}return _0x586879;},CommentsV2ConnectResponse['decodeDelimited']=function(_0x52db59){return _0x52db59 instanceof _0x7b4aff||(_0x52db59=new _0x7b4aff(_0x52db59)),this['decode'](_0x52db59,_0x52db59['uint32']());},CommentsV2ConnectResponse['verify']=function(_0x3fb133){if('object'!=typeof _0x3fb133||null===_0x3fb133)return'object\x20expected';if(null!=_0x3fb133['channel']&&_0x3fb133['hasOwnProperty']('channel')&&!$util['isString'](_0x3fb133['channel']))return'channel:\x20string\x20expected';if(null!=_0x3fb133['threads']&&_0x3fb133['hasOwnProperty']('threads')){if(!Array['isArray'](_0x3fb133['threads']))return'threads:\x20array\x20expected';for(var _0x17f92c=0x0;_0x17f92c<_0x3fb133['threads']['length'];++_0x17f92c)if(!$util['isString'](_0x3fb133['threads'][_0x17f92c]))return'threads:\x20string[]\x20expected';}if(null!=_0x3fb133['threadsV2']&&_0x3fb133['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x3fb133['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x17f92c=0x0;_0x17f92c<_0x3fb133['threadsV2']['length'];++_0x17f92c){var _0x248c80=$root['CommentsThreadDescriptor']['verify'](_0x3fb133['threadsV2'][_0x17f92c]);if(_0x248c80)return'threadsV2.'+_0x248c80;}}return null;},CommentsV2ConnectResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2ConnectResponse'])return object;var _0x47ccc2=new $root['CommentsV2ConnectResponse']();if(null!=object['channel']&&(_0x47ccc2['channel']=String(object['channel'])),object['threads']){if(!Array['isArray'](object['threads']))throw TypeError('.CommentsV2ConnectResponse.threads:\x20array\x20expected');_0x47ccc2['threads']=[];for(var _0x525062=0x0;_0x525062<object['threads']['length'];++_0x525062)_0x47ccc2['threads'][_0x525062]=String(object['threads'][_0x525062]);}if(object['threadsV2']){if(!Array['isArray'](object['threadsV2']))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20array\x20expected');_0x47ccc2['threadsV2']=[];for(_0x525062=0x0;_0x525062<object['threadsV2']['length'];++_0x525062){if('object'!=typeof object['threadsV2'][_0x525062])throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20object\x20expected');_0x47ccc2['threadsV2'][_0x525062]=$root['CommentsThreadDescriptor']['fromObject'](object['threadsV2'][_0x525062]);}}return _0x47ccc2;},CommentsV2ConnectResponse['toObject']=function(_0x2130e1,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['threads']=[],object['threadsV2']=[]),options['defaults']&&(object['channel']=''),null!=_0x2130e1['channel']&&_0x2130e1['hasOwnProperty']('channel')&&(object['channel']=_0x2130e1['channel']),_0x2130e1['threads']&&_0x2130e1['threads']['length']){object['threads']=[];for(var _0x6fb262=0x0;_0x6fb262<_0x2130e1['threads']['length'];++_0x6fb262)object['threads'][_0x6fb262]=_0x2130e1['threads'][_0x6fb262];}if(_0x2130e1['threadsV2']&&_0x2130e1['threadsV2']['length']){object['threadsV2']=[];for(_0x6fb262=0x0;_0x6fb262<_0x2130e1['threadsV2']['length'];++_0x6fb262)object['threadsV2'][_0x6fb262]=$root['CommentsThreadDescriptor']['toObject'](_0x2130e1['threadsV2'][_0x6fb262],options);}return object;},CommentsV2ConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ConnectResponse';},CommentsV2ConnectResponse;}()),$root['CommentsV2GetCommentThreadResponse']=(function(){function CommentsV2GetCommentThreadResponse(properties){if(this['comments']=[],this['commentsV2']=[],properties){for(var _0x113f90=Object['keys'](properties),_0x26e32f=0x0;_0x26e32f<_0x113f90['length'];++_0x26e32f)null!=properties[_0x113f90[_0x26e32f]]&&(this[_0x113f90[_0x26e32f]]=properties[_0x113f90[_0x26e32f]]);}}return CommentsV2GetCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2GetCommentThreadResponse['prototype']['comments']=$util['emptyArray'],CommentsV2GetCommentThreadResponse['prototype']['commentsV2']=$util['emptyArray'],CommentsV2GetCommentThreadResponse['prototype']['resolvedAt']='',CommentsV2GetCommentThreadResponse['prototype']['resolvedBy']='',CommentsV2GetCommentThreadResponse['prototype']['context']='',CommentsV2GetCommentThreadResponse['prototype']['createdAt']='',CommentsV2GetCommentThreadResponse['prototype']['deletedAt']='',CommentsV2GetCommentThreadResponse['prototype']['attributes']='',CommentsV2GetCommentThreadResponse['prototype']['unlinkedAt']='',CommentsV2GetCommentThreadResponse['create']=function(properties){return new CommentsV2GetCommentThreadResponse(properties);},CommentsV2GetCommentThreadResponse['encode']=function(_0x19ec39,writer){if(writer||(writer=$Writer['create']()),null!=_0x19ec39['commentThreadId']&&Object['hasOwnProperty']['call'](_0x19ec39,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x19ec39['commentThreadId']),null!=_0x19ec39['comments']&&_0x19ec39['comments']['length']){for(var _0xbd8004=0x0;_0xbd8004<_0x19ec39['comments']['length'];++_0xbd8004)writer['uint32'](0x12)['string'](_0x19ec39['comments'][_0xbd8004]);}if(null!=_0x19ec39['commentsV2']&&_0x19ec39['commentsV2']['length']){for(_0xbd8004=0x0;_0xbd8004<_0x19ec39['commentsV2']['length'];++_0xbd8004)$root['CommentDescriptor']['encode'](_0x19ec39['commentsV2'][_0xbd8004],writer['uint32'](0x1a)['fork']())['ldelim']();}return null!=_0x19ec39['resolvedAt']&&Object['hasOwnProperty']['call'](_0x19ec39,'resolvedAt')&&writer['uint32'](0x22)['string'](_0x19ec39['resolvedAt']),null!=_0x19ec39['resolvedBy']&&Object['hasOwnProperty']['call'](_0x19ec39,'resolvedBy')&&writer['uint32'](0x2a)['string'](_0x19ec39['resolvedBy']),null!=_0x19ec39['context']&&Object['hasOwnProperty']['call'](_0x19ec39,'context')&&writer['uint32'](0x32)['string'](_0x19ec39['context']),null!=_0x19ec39['createdAt']&&Object['hasOwnProperty']['call'](_0x19ec39,'createdAt')&&writer['uint32'](0x3a)['string'](_0x19ec39['createdAt']),null!=_0x19ec39['deletedAt']&&Object['hasOwnProperty']['call'](_0x19ec39,'deletedAt')&&writer['uint32'](0x42)['string'](_0x19ec39['deletedAt']),null!=_0x19ec39['attributes']&&Object['hasOwnProperty']['call'](_0x19ec39,'attributes')&&writer['uint32'](0x4a)['string'](_0x19ec39['attributes']),null!=_0x19ec39['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x19ec39,'unlinkedAt')&&writer['uint32'](0x52)['string'](_0x19ec39['unlinkedAt']),writer;},CommentsV2GetCommentThreadResponse['encodeDelimited']=function(_0x180a7d,writer){return this['encode'](_0x180a7d,writer)['ldelim']();},CommentsV2GetCommentThreadResponse['decode']=function(_0x2cc4b1,length,_0x2de490){_0x2cc4b1 instanceof _0x7b4aff||(_0x2cc4b1=_0x7b4aff['create'](_0x2cc4b1));for(var _0x1d2e0d=void 0x0===length?_0x2cc4b1['len']:_0x2cc4b1['pos']+length,_0x1ac4dd=new $root['CommentsV2GetCommentThreadResponse']();_0x2cc4b1['pos']<_0x1d2e0d;){var tag=_0x2cc4b1['uint32']();if(tag===_0x2de490)break;switch(tag>>>0x3){case 0x1:_0x1ac4dd['commentThreadId']=_0x2cc4b1['string']();break;case 0x2:_0x1ac4dd['comments']&&_0x1ac4dd['comments']['length']||(_0x1ac4dd['comments']=[]),_0x1ac4dd['comments']['push'](_0x2cc4b1['string']());break;case 0x3:_0x1ac4dd['commentsV2']&&_0x1ac4dd['commentsV2']['length']||(_0x1ac4dd['commentsV2']=[]),_0x1ac4dd['commentsV2']['push']($root['CommentDescriptor']['decode'](_0x2cc4b1,_0x2cc4b1['uint32']()));break;case 0x4:_0x1ac4dd['resolvedAt']=_0x2cc4b1['string']();break;case 0x5:_0x1ac4dd['resolvedBy']=_0x2cc4b1['string']();break;case 0x6:_0x1ac4dd['context']=_0x2cc4b1['string']();break;case 0x7:_0x1ac4dd['createdAt']=_0x2cc4b1['string']();break;case 0x8:_0x1ac4dd['deletedAt']=_0x2cc4b1['string']();break;case 0x9:_0x1ac4dd['attributes']=_0x2cc4b1['string']();break;case 0xa:_0x1ac4dd['unlinkedAt']=_0x2cc4b1['string']();break;default:_0x2cc4b1['skipType'](0x7&tag);}}return _0x1ac4dd;},CommentsV2GetCommentThreadResponse['decodeDelimited']=function(_0x589e5f){return _0x589e5f instanceof _0x7b4aff||(_0x589e5f=new _0x7b4aff(_0x589e5f)),this['decode'](_0x589e5f,_0x589e5f['uint32']());},CommentsV2GetCommentThreadResponse['verify']=function(_0x40e196){if('object'!=typeof _0x40e196||null===_0x40e196)return'object\x20expected';if(null!=_0x40e196['commentThreadId']&&_0x40e196['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x40e196['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x40e196['comments']&&_0x40e196['hasOwnProperty']('comments')){if(!Array['isArray'](_0x40e196['comments']))return'comments:\x20array\x20expected';for(var _0x5ac9be=0x0;_0x5ac9be<_0x40e196['comments']['length'];++_0x5ac9be)if(!$util['isString'](_0x40e196['comments'][_0x5ac9be]))return'comments:\x20string[]\x20expected';}if(null!=_0x40e196['commentsV2']&&_0x40e196['hasOwnProperty']('commentsV2')){if(!Array['isArray'](_0x40e196['commentsV2']))return'commentsV2:\x20array\x20expected';for(_0x5ac9be=0x0;_0x5ac9be<_0x40e196['commentsV2']['length'];++_0x5ac9be){var _0x3fb6a4=$root['CommentDescriptor']['verify'](_0x40e196['commentsV2'][_0x5ac9be]);if(_0x3fb6a4)return'commentsV2.'+_0x3fb6a4;}}return null!=_0x40e196['resolvedAt']&&_0x40e196['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x40e196['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x40e196['resolvedBy']&&_0x40e196['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x40e196['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x40e196['context']&&_0x40e196['hasOwnProperty']('context')&&!$util['isString'](_0x40e196['context'])?'context:\x20string\x20expected':null!=_0x40e196['createdAt']&&_0x40e196['hasOwnProperty']('createdAt')&&!$util['isString'](_0x40e196['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x40e196['deletedAt']&&_0x40e196['hasOwnProperty']('deletedAt')&&!$util['isString'](_0x40e196['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x40e196['attributes']&&_0x40e196['hasOwnProperty']('attributes')&&!$util['isString'](_0x40e196['attributes'])?'attributes:\x20string\x20expected':null!=_0x40e196['unlinkedAt']&&_0x40e196['hasOwnProperty']('unlinkedAt')&&!$util['isString'](_0x40e196['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsV2GetCommentThreadResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2GetCommentThreadResponse'])return object;var _0x1374a1=new $root['CommentsV2GetCommentThreadResponse']();if(null!=object['commentThreadId']&&(_0x1374a1['commentThreadId']=String(object['commentThreadId'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2GetCommentThreadResponse.comments:\x20array\x20expected');_0x1374a1['comments']=[];for(var _0x40f7ac=0x0;_0x40f7ac<object['comments']['length'];++_0x40f7ac)_0x1374a1['comments'][_0x40f7ac]=String(object['comments'][_0x40f7ac]);}if(object['commentsV2']){if(!Array['isArray'](object['commentsV2']))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20array\x20expected');_0x1374a1['commentsV2']=[];for(_0x40f7ac=0x0;_0x40f7ac<object['commentsV2']['length'];++_0x40f7ac){if('object'!=typeof object['commentsV2'][_0x40f7ac])throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20object\x20expected');_0x1374a1['commentsV2'][_0x40f7ac]=$root['CommentDescriptor']['fromObject'](object['commentsV2'][_0x40f7ac]);}}return null!=object['resolvedAt']&&(_0x1374a1['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x1374a1['resolvedBy']=String(object['resolvedBy'])),null!=object['context']&&(_0x1374a1['context']=String(object['context'])),null!=object['createdAt']&&(_0x1374a1['createdAt']=String(object['createdAt'])),null!=object['deletedAt']&&(_0x1374a1['deletedAt']=String(object['deletedAt'])),null!=object['attributes']&&(_0x1374a1['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x1374a1['unlinkedAt']=String(object['unlinkedAt'])),_0x1374a1;},CommentsV2GetCommentThreadResponse['toObject']=function(_0x309790,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[],object['commentsV2']=[]),options['defaults']&&(object['commentThreadId']='',object['resolvedAt']='',object['resolvedBy']='',object['context']='',object['createdAt']='',object['deletedAt']='',object['attributes']='',object['unlinkedAt']=''),null!=_0x309790['commentThreadId']&&_0x309790['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x309790['commentThreadId']),_0x309790['comments']&&_0x309790['comments']['length']){object['comments']=[];for(var _0x4c15d1=0x0;_0x4c15d1<_0x309790['comments']['length'];++_0x4c15d1)object['comments'][_0x4c15d1]=_0x309790['comments'][_0x4c15d1];}if(_0x309790['commentsV2']&&_0x309790['commentsV2']['length']){object['commentsV2']=[];for(_0x4c15d1=0x0;_0x4c15d1<_0x309790['commentsV2']['length'];++_0x4c15d1)object['commentsV2'][_0x4c15d1]=$root['CommentDescriptor']['toObject'](_0x309790['commentsV2'][_0x4c15d1],options);}return null!=_0x309790['resolvedAt']&&_0x309790['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x309790['resolvedAt']),null!=_0x309790['resolvedBy']&&_0x309790['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x309790['resolvedBy']),null!=_0x309790['context']&&_0x309790['hasOwnProperty']('context')&&(object['context']=_0x309790['context']),null!=_0x309790['createdAt']&&_0x309790['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x309790['createdAt']),null!=_0x309790['deletedAt']&&_0x309790['hasOwnProperty']('deletedAt')&&(object['deletedAt']=_0x309790['deletedAt']),null!=_0x309790['attributes']&&_0x309790['hasOwnProperty']('attributes')&&(object['attributes']=_0x309790['attributes']),null!=_0x309790['unlinkedAt']&&_0x309790['hasOwnProperty']('unlinkedAt')&&(object['unlinkedAt']=_0x309790['unlinkedAt']),object;},CommentsV2GetCommentThreadResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetCommentThreadResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetCommentThreadResponse';},CommentsV2GetCommentThreadResponse;}()),$root['CommentsV2GetDocumentThreadsResponse']=(function(){function CommentsV2GetDocumentThreadsResponse(properties){if(this['threads']=[],this['threadsV2']=[],properties){for(var _0x61854=Object['keys'](properties),_0x5ea51e=0x0;_0x5ea51e<_0x61854['length'];++_0x5ea51e)null!=properties[_0x61854[_0x5ea51e]]&&(this[_0x61854[_0x5ea51e]]=properties[_0x61854[_0x5ea51e]]);}}return CommentsV2GetDocumentThreadsResponse['prototype']['threads']=$util['emptyArray'],CommentsV2GetDocumentThreadsResponse['prototype']['threadsV2']=$util['emptyArray'],CommentsV2GetDocumentThreadsResponse['create']=function(properties){return new CommentsV2GetDocumentThreadsResponse(properties);},CommentsV2GetDocumentThreadsResponse['encode']=function(_0x408363,writer){if(writer||(writer=$Writer['create']()),null!=_0x408363['threads']&&_0x408363['threads']['length']){for(var _0x201c92=0x0;_0x201c92<_0x408363['threads']['length'];++_0x201c92)writer['uint32'](0xa)['string'](_0x408363['threads'][_0x201c92]);}if(null!=_0x408363['threadsV2']&&_0x408363['threadsV2']['length']){for(_0x201c92=0x0;_0x201c92<_0x408363['threadsV2']['length'];++_0x201c92)$root['CommentsThreadDescriptor']['encode'](_0x408363['threadsV2'][_0x201c92],writer['uint32'](0x12)['fork']())['ldelim']();}return writer;},CommentsV2GetDocumentThreadsResponse['encodeDelimited']=function(_0x38a6d1,writer){return this['encode'](_0x38a6d1,writer)['ldelim']();},CommentsV2GetDocumentThreadsResponse['decode']=function(_0x445809,length,_0x4c3343){_0x445809 instanceof _0x7b4aff||(_0x445809=_0x7b4aff['create'](_0x445809));for(var _0x25c94f=void 0x0===length?_0x445809['len']:_0x445809['pos']+length,_0x50d245=new $root['CommentsV2GetDocumentThreadsResponse']();_0x445809['pos']<_0x25c94f;){var tag=_0x445809['uint32']();if(tag===_0x4c3343)break;switch(tag>>>0x3){case 0x1:_0x50d245['threads']&&_0x50d245['threads']['length']||(_0x50d245['threads']=[]),_0x50d245['threads']['push'](_0x445809['string']());break;case 0x2:_0x50d245['threadsV2']&&_0x50d245['threadsV2']['length']||(_0x50d245['threadsV2']=[]),_0x50d245['threadsV2']['push']($root['CommentsThreadDescriptor']['decode'](_0x445809,_0x445809['uint32']()));break;default:_0x445809['skipType'](0x7&tag);}}return _0x50d245;},CommentsV2GetDocumentThreadsResponse['decodeDelimited']=function(_0x51aefd){return _0x51aefd instanceof _0x7b4aff||(_0x51aefd=new _0x7b4aff(_0x51aefd)),this['decode'](_0x51aefd,_0x51aefd['uint32']());},CommentsV2GetDocumentThreadsResponse['verify']=function(_0x6ef756){if('object'!=typeof _0x6ef756||null===_0x6ef756)return'object\x20expected';if(null!=_0x6ef756['threads']&&_0x6ef756['hasOwnProperty']('threads')){if(!Array['isArray'](_0x6ef756['threads']))return'threads:\x20array\x20expected';for(var _0x18c559=0x0;_0x18c559<_0x6ef756['threads']['length'];++_0x18c559)if(!$util['isString'](_0x6ef756['threads'][_0x18c559]))return'threads:\x20string[]\x20expected';}if(null!=_0x6ef756['threadsV2']&&_0x6ef756['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x6ef756['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x18c559=0x0;_0x18c559<_0x6ef756['threadsV2']['length'];++_0x18c559){var _0x10e9c4=$root['CommentsThreadDescriptor']['verify'](_0x6ef756['threadsV2'][_0x18c559]);if(_0x10e9c4)return'threadsV2.'+_0x10e9c4;}}return null;},CommentsV2GetDocumentThreadsResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2GetDocumentThreadsResponse'])return object;var _0x1a723a=new $root['CommentsV2GetDocumentThreadsResponse']();if(object['threads']){if(!Array['isArray'](object['threads']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threads:\x20array\x20expected');_0x1a723a['threads']=[];for(var _0x2a27ab=0x0;_0x2a27ab<object['threads']['length'];++_0x2a27ab)_0x1a723a['threads'][_0x2a27ab]=String(object['threads'][_0x2a27ab]);}if(object['threadsV2']){if(!Array['isArray'](object['threadsV2']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20array\x20expected');_0x1a723a['threadsV2']=[];for(_0x2a27ab=0x0;_0x2a27ab<object['threadsV2']['length'];++_0x2a27ab){if('object'!=typeof object['threadsV2'][_0x2a27ab])throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20object\x20expected');_0x1a723a['threadsV2'][_0x2a27ab]=$root['CommentsThreadDescriptor']['fromObject'](object['threadsV2'][_0x2a27ab]);}}return _0x1a723a;},CommentsV2GetDocumentThreadsResponse['toObject']=function(_0x2b997c,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['threads']=[],object['threadsV2']=[]),_0x2b997c['threads']&&_0x2b997c['threads']['length']){object['threads']=[];for(var _0x372559=0x0;_0x372559<_0x2b997c['threads']['length'];++_0x372559)object['threads'][_0x372559]=_0x2b997c['threads'][_0x372559];}if(_0x2b997c['threadsV2']&&_0x2b997c['threadsV2']['length']){object['threadsV2']=[];for(_0x372559=0x0;_0x372559<_0x2b997c['threadsV2']['length'];++_0x372559)object['threadsV2'][_0x372559]=$root['CommentsThreadDescriptor']['toObject'](_0x2b997c['threadsV2'][_0x372559],options);}return object;},CommentsV2GetDocumentThreadsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetDocumentThreadsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetDocumentThreadsResponse';},CommentsV2GetDocumentThreadsResponse;}()),$root['KeyValueDescriptor']=(function(){function KeyValueDescriptor(properties){if(properties){for(var _0xb7eb64=Object['keys'](properties),_0x102c7a=0x0;_0x102c7a<_0xb7eb64['length'];++_0x102c7a)null!=properties[_0xb7eb64[_0x102c7a]]&&(this[_0xb7eb64[_0x102c7a]]=properties[_0xb7eb64[_0x102c7a]]);}}return KeyValueDescriptor['prototype']['key']='',KeyValueDescriptor['prototype']['value']='',KeyValueDescriptor['create']=function(properties){return new KeyValueDescriptor(properties);},KeyValueDescriptor['encode']=function(_0x1c9d5e,writer){return writer||(writer=$Writer['create']()),null!=_0x1c9d5e['key']&&Object['hasOwnProperty']['call'](_0x1c9d5e,'key')&&writer['uint32'](0xa)['string'](_0x1c9d5e['key']),null!=_0x1c9d5e['value']&&Object['hasOwnProperty']['call'](_0x1c9d5e,'value')&&writer['uint32'](0x12)['string'](_0x1c9d5e['value']),writer;},KeyValueDescriptor['encodeDelimited']=function(_0x545660,writer){return this['encode'](_0x545660,writer)['ldelim']();},KeyValueDescriptor['decode']=function(_0x4c4f62,length,_0xa3c76c){_0x4c4f62 instanceof _0x7b4aff||(_0x4c4f62=_0x7b4aff['create'](_0x4c4f62));for(var _0x7372fb=void 0x0===length?_0x4c4f62['len']:_0x4c4f62['pos']+length,_0x13fb5e=new $root['KeyValueDescriptor']();_0x4c4f62['pos']<_0x7372fb;){var tag=_0x4c4f62['uint32']();if(tag===_0xa3c76c)break;switch(tag>>>0x3){case 0x1:_0x13fb5e['key']=_0x4c4f62['string']();break;case 0x2:_0x13fb5e['value']=_0x4c4f62['string']();break;default:_0x4c4f62['skipType'](0x7&tag);}}return _0x13fb5e;},KeyValueDescriptor['decodeDelimited']=function(_0x3e89ac){return _0x3e89ac instanceof _0x7b4aff||(_0x3e89ac=new _0x7b4aff(_0x3e89ac)),this['decode'](_0x3e89ac,_0x3e89ac['uint32']());},KeyValueDescriptor['verify']=function(_0x473d53){return'object'!=typeof _0x473d53||null===_0x473d53?'object\x20expected':null!=_0x473d53['key']&&_0x473d53['hasOwnProperty']('key')&&!$util['isString'](_0x473d53['key'])?'key:\x20string\x20expected':null!=_0x473d53['value']&&_0x473d53['hasOwnProperty']('value')&&!$util['isString'](_0x473d53['value'])?'value:\x20string\x20expected':null;},KeyValueDescriptor['fromObject']=function(object){if(object instanceof $root['KeyValueDescriptor'])return object;var _0x828924=new $root['KeyValueDescriptor']();return null!=object['key']&&(_0x828924['key']=String(object['key'])),null!=object['value']&&(_0x828924['value']=String(object['value'])),_0x828924;},KeyValueDescriptor['toObject']=function(_0x4271f9,options){options||(options={});var object={};return options['defaults']&&(object['key']='',object['value']=''),null!=_0x4271f9['key']&&_0x4271f9['hasOwnProperty']('key')&&(object['key']=_0x4271f9['key']),null!=_0x4271f9['value']&&_0x4271f9['hasOwnProperty']('value')&&(object['value']=_0x4271f9['value']),object;},KeyValueDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},KeyValueDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/KeyValueDescriptor';},KeyValueDescriptor;}()),$root['IsEditorBundleUploadedMessage']=(function(){function IsEditorBundleUploadedMessage(properties){if(properties){for(var _0xa0f2b9=Object['keys'](properties),_0x11f5ae=0x0;_0x11f5ae<_0xa0f2b9['length'];++_0x11f5ae)null!=properties[_0xa0f2b9[_0x11f5ae]]&&(this[_0xa0f2b9[_0x11f5ae]]=properties[_0xa0f2b9[_0x11f5ae]]);}}return IsEditorBundleUploadedMessage['prototype']['bundleVersion']='',IsEditorBundleUploadedMessage['create']=function(properties){return new IsEditorBundleUploadedMessage(properties);},IsEditorBundleUploadedMessage['encode']=function(_0x4a8352,writer){return writer||(writer=$Writer['create']()),null!=_0x4a8352['bundleVersion']&&Object['hasOwnProperty']['call'](_0x4a8352,'bundleVersion')&&writer['uint32'](0xa)['string'](_0x4a8352['bundleVersion']),writer;},IsEditorBundleUploadedMessage['encodeDelimited']=function(_0x17b0a0,writer){return this['encode'](_0x17b0a0,writer)['ldelim']();},IsEditorBundleUploadedMessage['decode']=function(_0x481fc2,length,_0x34d7d4){_0x481fc2 instanceof _0x7b4aff||(_0x481fc2=_0x7b4aff['create'](_0x481fc2));for(var _0x4c065c=void 0x0===length?_0x481fc2['len']:_0x481fc2['pos']+length,_0x59543e=new $root['IsEditorBundleUploadedMessage']();_0x481fc2['pos']<_0x4c065c;){var tag=_0x481fc2['uint32']();if(tag===_0x34d7d4)break;if(tag>>>0x3==0x1)_0x59543e['bundleVersion']=_0x481fc2['string']();else _0x481fc2['skipType'](0x7&tag);}return _0x59543e;},IsEditorBundleUploadedMessage['decodeDelimited']=function(_0x581dc9){return _0x581dc9 instanceof _0x7b4aff||(_0x581dc9=new _0x7b4aff(_0x581dc9)),this['decode'](_0x581dc9,_0x581dc9['uint32']());},IsEditorBundleUploadedMessage['verify']=function(_0x1b3043){return'object'!=typeof _0x1b3043||null===_0x1b3043?'object\x20expected':null!=_0x1b3043['bundleVersion']&&_0x1b3043['hasOwnProperty']('bundleVersion')&&!$util['isString'](_0x1b3043['bundleVersion'])?'bundleVersion:\x20string\x20expected':null;},IsEditorBundleUploadedMessage['fromObject']=function(object){if(object instanceof $root['IsEditorBundleUploadedMessage'])return object;var _0x47bc93=new $root['IsEditorBundleUploadedMessage']();return null!=object['bundleVersion']&&(_0x47bc93['bundleVersion']=String(object['bundleVersion'])),_0x47bc93;},IsEditorBundleUploadedMessage['toObject']=function(_0x5af4a9,options){options||(options={});var object={};return options['defaults']&&(object['bundleVersion']=''),null!=_0x5af4a9['bundleVersion']&&_0x5af4a9['hasOwnProperty']('bundleVersion')&&(object['bundleVersion']=_0x5af4a9['bundleVersion']),object;},IsEditorBundleUploadedMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},IsEditorBundleUploadedMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/IsEditorBundleUploadedMessage';},IsEditorBundleUploadedMessage;}()),$root['IsEditorBundleUploadedResponse']=(function(){function IsEditorBundleUploadedResponse(properties){if(properties){for(var _0x2aa7ec=Object['keys'](properties),_0x315c2c=0x0;_0x315c2c<_0x2aa7ec['length'];++_0x315c2c)null!=properties[_0x2aa7ec[_0x315c2c]]&&(this[_0x2aa7ec[_0x315c2c]]=properties[_0x2aa7ec[_0x315c2c]]);}}return IsEditorBundleUploadedResponse['prototype']['isUploaded']=!0x1,IsEditorBundleUploadedResponse['create']=function(properties){return new IsEditorBundleUploadedResponse(properties);},IsEditorBundleUploadedResponse['encode']=function(_0x3e87ad,writer){return writer||(writer=$Writer['create']()),null!=_0x3e87ad['isUploaded']&&Object['hasOwnProperty']['call'](_0x3e87ad,'isUploaded')&&writer['uint32'](0x8)['bool'](_0x3e87ad['isUploaded']),writer;},IsEditorBundleUploadedResponse['encodeDelimited']=function(_0x515b50,writer){return this['encode'](_0x515b50,writer)['ldelim']();},IsEditorBundleUploadedResponse['decode']=function(_0x5afa23,length,_0x402098){_0x5afa23 instanceof _0x7b4aff||(_0x5afa23=_0x7b4aff['create'](_0x5afa23));for(var _0x17fd4e=void 0x0===length?_0x5afa23['len']:_0x5afa23['pos']+length,_0x522e13=new $root['IsEditorBundleUploadedResponse']();_0x5afa23['pos']<_0x17fd4e;){var tag=_0x5afa23['uint32']();if(tag===_0x402098)break;if(tag>>>0x3==0x1)_0x522e13['isUploaded']=_0x5afa23['bool']();else _0x5afa23['skipType'](0x7&tag);}return _0x522e13;},IsEditorBundleUploadedResponse['decodeDelimited']=function(_0x39ac20){return _0x39ac20 instanceof _0x7b4aff||(_0x39ac20=new _0x7b4aff(_0x39ac20)),this['decode'](_0x39ac20,_0x39ac20['uint32']());},IsEditorBundleUploadedResponse['verify']=function(_0x55b923){return'object'!=typeof _0x55b923||null===_0x55b923?'object\x20expected':null!=_0x55b923['isUploaded']&&_0x55b923['hasOwnProperty']('isUploaded')&&'boolean'!=typeof _0x55b923['isUploaded']?'isUploaded:\x20boolean\x20expected':null;},IsEditorBundleUploadedResponse['fromObject']=function(object){if(object instanceof $root['IsEditorBundleUploadedResponse'])return object;var _0x3d5661=new $root['IsEditorBundleUploadedResponse']();return null!=object['isUploaded']&&(_0x3d5661['isUploaded']=Boolean(object['isUploaded'])),_0x3d5661;},IsEditorBundleUploadedResponse['toObject']=function(_0x5efcd2,options){options||(options={});var object={};return options['defaults']&&(object['isUploaded']=!0x1),null!=_0x5efcd2['isUploaded']&&_0x5efcd2['hasOwnProperty']('isUploaded')&&(object['isUploaded']=_0x5efcd2['isUploaded']),object;},IsEditorBundleUploadedResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},IsEditorBundleUploadedResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/IsEditorBundleUploadedResponse';},IsEditorBundleUploadedResponse;}()),$root['RevisionDescriptor']=(function(){function RevisionDescriptor(properties){if(properties){for(var _0x567435=Object['keys'](properties),_0x4bc162=0x0;_0x4bc162<_0x567435['length'];++_0x4bc162)null!=properties[_0x567435[_0x4bc162]]&&(this[_0x567435[_0x4bc162]]=properties[_0x567435[_0x4bc162]]);}}return RevisionDescriptor['prototype']['revisionId']='',RevisionDescriptor['prototype']['name']='',RevisionDescriptor['prototype']['creatorId']='',RevisionDescriptor['prototype']['authorsIds']='',RevisionDescriptor['prototype']['diffData']='',RevisionDescriptor['prototype']['createdAt']='',RevisionDescriptor['prototype']['attributes']='',RevisionDescriptor['prototype']['toVersion']=0x0,RevisionDescriptor['prototype']['fromVersion']=0x0,RevisionDescriptor['prototype']['isEmptyCurrent']=!0x1,RevisionDescriptor['create']=function(properties){return new RevisionDescriptor(properties);},RevisionDescriptor['encode']=function(_0xf19982,writer){return writer||(writer=$Writer['create']()),null!=_0xf19982['revisionId']&&Object['hasOwnProperty']['call'](_0xf19982,'revisionId')&&writer['uint32'](0xa)['string'](_0xf19982['revisionId']),null!=_0xf19982['name']&&Object['hasOwnProperty']['call'](_0xf19982,'name')&&writer['uint32'](0x12)['string'](_0xf19982['name']),null!=_0xf19982['creatorId']&&Object['hasOwnProperty']['call'](_0xf19982,'creatorId')&&writer['uint32'](0x1a)['string'](_0xf19982['creatorId']),null!=_0xf19982['authorsIds']&&Object['hasOwnProperty']['call'](_0xf19982,'authorsIds')&&writer['uint32'](0x22)['string'](_0xf19982['authorsIds']),null!=_0xf19982['diffData']&&Object['hasOwnProperty']['call'](_0xf19982,'diffData')&&writer['uint32'](0x2a)['string'](_0xf19982['diffData']),null!=_0xf19982['createdAt']&&Object['hasOwnProperty']['call'](_0xf19982,'createdAt')&&writer['uint32'](0x32)['string'](_0xf19982['createdAt']),null!=_0xf19982['attributes']&&Object['hasOwnProperty']['call'](_0xf19982,'attributes')&&writer['uint32'](0x3a)['string'](_0xf19982['attributes']),null!=_0xf19982['toVersion']&&Object['hasOwnProperty']['call'](_0xf19982,'toVersion')&&writer['uint32'](0x40)['uint32'](_0xf19982['toVersion']),null!=_0xf19982['fromVersion']&&Object['hasOwnProperty']['call'](_0xf19982,'fromVersion')&&writer['uint32'](0x48)['uint32'](_0xf19982['fromVersion']),null!=_0xf19982['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0xf19982,'isEmptyCurrent')&&writer['uint32'](0x50)['bool'](_0xf19982['isEmptyCurrent']),writer;},RevisionDescriptor['encodeDelimited']=function(_0x433140,writer){return this['encode'](_0x433140,writer)['ldelim']();},RevisionDescriptor['decode']=function(_0x5e66f2,length,_0x956a22){_0x5e66f2 instanceof _0x7b4aff||(_0x5e66f2=_0x7b4aff['create'](_0x5e66f2));for(var _0x19dd83=void 0x0===length?_0x5e66f2['len']:_0x5e66f2['pos']+length,_0x435850=new $root['RevisionDescriptor']();_0x5e66f2['pos']<_0x19dd83;){var tag=_0x5e66f2['uint32']();if(tag===_0x956a22)break;switch(tag>>>0x3){case 0x1:_0x435850['revisionId']=_0x5e66f2['string']();break;case 0x2:_0x435850['name']=_0x5e66f2['string']();break;case 0x3:_0x435850['creatorId']=_0x5e66f2['string']();break;case 0x4:_0x435850['authorsIds']=_0x5e66f2['string']();break;case 0x5:_0x435850['diffData']=_0x5e66f2['string']();break;case 0x6:_0x435850['createdAt']=_0x5e66f2['string']();break;case 0x7:_0x435850['attributes']=_0x5e66f2['string']();break;case 0x8:_0x435850['toVersion']=_0x5e66f2['uint32']();break;case 0x9:_0x435850['fromVersion']=_0x5e66f2['uint32']();break;case 0xa:_0x435850['isEmptyCurrent']=_0x5e66f2['bool']();break;default:_0x5e66f2['skipType'](0x7&tag);}}return _0x435850;},RevisionDescriptor['decodeDelimited']=function(_0x3e4dcd){return _0x3e4dcd instanceof _0x7b4aff||(_0x3e4dcd=new _0x7b4aff(_0x3e4dcd)),this['decode'](_0x3e4dcd,_0x3e4dcd['uint32']());},RevisionDescriptor['verify']=function(_0x2d4a14){return'object'!=typeof _0x2d4a14||null===_0x2d4a14?'object\x20expected':null!=_0x2d4a14['revisionId']&&_0x2d4a14['hasOwnProperty']('revisionId')&&!$util['isString'](_0x2d4a14['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x2d4a14['name']&&_0x2d4a14['hasOwnProperty']('name')&&!$util['isString'](_0x2d4a14['name'])?'name:\x20string\x20expected':null!=_0x2d4a14['creatorId']&&_0x2d4a14['hasOwnProperty']('creatorId')&&!$util['isString'](_0x2d4a14['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x2d4a14['authorsIds']&&_0x2d4a14['hasOwnProperty']('authorsIds')&&!$util['isString'](_0x2d4a14['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x2d4a14['diffData']&&_0x2d4a14['hasOwnProperty']('diffData')&&!$util['isString'](_0x2d4a14['diffData'])?'diffData:\x20string\x20expected':null!=_0x2d4a14['createdAt']&&_0x2d4a14['hasOwnProperty']('createdAt')&&!$util['isString'](_0x2d4a14['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x2d4a14['attributes']&&_0x2d4a14['hasOwnProperty']('attributes')&&!$util['isString'](_0x2d4a14['attributes'])?'attributes:\x20string\x20expected':null!=_0x2d4a14['toVersion']&&_0x2d4a14['hasOwnProperty']('toVersion')&&!$util['isInteger'](_0x2d4a14['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x2d4a14['fromVersion']&&_0x2d4a14['hasOwnProperty']('fromVersion')&&!$util['isInteger'](_0x2d4a14['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x2d4a14['isEmptyCurrent']&&_0x2d4a14['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x2d4a14['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},RevisionDescriptor['fromObject']=function(object){if(object instanceof $root['RevisionDescriptor'])return object;var _0x42245b=new $root['RevisionDescriptor']();return null!=object['revisionId']&&(_0x42245b['revisionId']=String(object['revisionId'])),null!=object['name']&&(_0x42245b['name']=String(object['name'])),null!=object['creatorId']&&(_0x42245b['creatorId']=String(object['creatorId'])),null!=object['authorsIds']&&(_0x42245b['authorsIds']=String(object['authorsIds'])),null!=object['diffData']&&(_0x42245b['diffData']=String(object['diffData'])),null!=object['createdAt']&&(_0x42245b['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x42245b['attributes']=String(object['attributes'])),null!=object['toVersion']&&(_0x42245b['toVersion']=object['toVersion']>>>0x0),null!=object['fromVersion']&&(_0x42245b['fromVersion']=object['fromVersion']>>>0x0),null!=object['isEmptyCurrent']&&(_0x42245b['isEmptyCurrent']=Boolean(object['isEmptyCurrent'])),_0x42245b;},RevisionDescriptor['toObject']=function(_0x444a8e,options){options||(options={});var object={};return options['defaults']&&(object['revisionId']='',object['name']='',object['creatorId']='',object['authorsIds']='',object['diffData']='',object['createdAt']='',object['attributes']='',object['toVersion']=0x0,object['fromVersion']=0x0,object['isEmptyCurrent']=!0x1),null!=_0x444a8e['revisionId']&&_0x444a8e['hasOwnProperty']('revisionId')&&(object['revisionId']=_0x444a8e['revisionId']),null!=_0x444a8e['name']&&_0x444a8e['hasOwnProperty']('name')&&(object['name']=_0x444a8e['name']),null!=_0x444a8e['creatorId']&&_0x444a8e['hasOwnProperty']('creatorId')&&(object['creatorId']=_0x444a8e['creatorId']),null!=_0x444a8e['authorsIds']&&_0x444a8e['hasOwnProperty']('authorsIds')&&(object['authorsIds']=_0x444a8e['authorsIds']),null!=_0x444a8e['diffData']&&_0x444a8e['hasOwnProperty']('diffData')&&(object['diffData']=_0x444a8e['diffData']),null!=_0x444a8e['createdAt']&&_0x444a8e['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x444a8e['createdAt']),null!=_0x444a8e['attributes']&&_0x444a8e['hasOwnProperty']('attributes')&&(object['attributes']=_0x444a8e['attributes']),null!=_0x444a8e['toVersion']&&_0x444a8e['hasOwnProperty']('toVersion')&&(object['toVersion']=_0x444a8e['toVersion']),null!=_0x444a8e['fromVersion']&&_0x444a8e['hasOwnProperty']('fromVersion')&&(object['fromVersion']=_0x444a8e['fromVersion']),null!=_0x444a8e['isEmptyCurrent']&&_0x444a8e['hasOwnProperty']('isEmptyCurrent')&&(object['isEmptyCurrent']=_0x444a8e['isEmptyCurrent']),object;},RevisionDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionDescriptor';},RevisionDescriptor;}()),$root['RevisionHistoryConnectMessage']=(function(){function RevisionHistoryConnectMessage(properties){if(properties){for(var _0x43b066=Object['keys'](properties),_0x43a928=0x0;_0x43a928<_0x43b066['length'];++_0x43a928)null!=properties[_0x43b066[_0x43a928]]&&(this[_0x43b066[_0x43a928]]=properties[_0x43b066[_0x43a928]]);}}return RevisionHistoryConnectMessage['prototype']['documentId']='',RevisionHistoryConnectMessage['create']=function(properties){return new RevisionHistoryConnectMessage(properties);},RevisionHistoryConnectMessage['encode']=function(_0x54adf7,writer){return writer||(writer=$Writer['create']()),null!=_0x54adf7['documentId']&&Object['hasOwnProperty']['call'](_0x54adf7,'documentId')&&writer['uint32'](0xa)['string'](_0x54adf7['documentId']),writer;},RevisionHistoryConnectMessage['encodeDelimited']=function(_0x317f1d,writer){return this['encode'](_0x317f1d,writer)['ldelim']();},RevisionHistoryConnectMessage['decode']=function(_0x5caa25,length,_0x19e735){_0x5caa25 instanceof _0x7b4aff||(_0x5caa25=_0x7b4aff['create'](_0x5caa25));for(var _0x1131d1=void 0x0===length?_0x5caa25['len']:_0x5caa25['pos']+length,_0x480403=new $root['RevisionHistoryConnectMessage']();_0x5caa25['pos']<_0x1131d1;){var tag=_0x5caa25['uint32']();if(tag===_0x19e735)break;if(tag>>>0x3==0x1)_0x480403['documentId']=_0x5caa25['string']();else _0x5caa25['skipType'](0x7&tag);}return _0x480403;},RevisionHistoryConnectMessage['decodeDelimited']=function(_0x12f465){return _0x12f465 instanceof _0x7b4aff||(_0x12f465=new _0x7b4aff(_0x12f465)),this['decode'](_0x12f465,_0x12f465['uint32']());},RevisionHistoryConnectMessage['verify']=function(_0x331262){return'object'!=typeof _0x331262||null===_0x331262?'object\x20expected':null!=_0x331262['documentId']&&_0x331262['hasOwnProperty']('documentId')&&!$util['isString'](_0x331262['documentId'])?'documentId:\x20string\x20expected':null;},RevisionHistoryConnectMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryConnectMessage'])return object;var _0x2518c9=new $root['RevisionHistoryConnectMessage']();return null!=object['documentId']&&(_0x2518c9['documentId']=String(object['documentId'])),_0x2518c9;},RevisionHistoryConnectMessage['toObject']=function(_0x37020d,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x37020d['documentId']&&_0x37020d['hasOwnProperty']('documentId')&&(object['documentId']=_0x37020d['documentId']),object;},RevisionHistoryConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryConnectMessage';},RevisionHistoryConnectMessage;}()),$root['RevisionHistoryGetRevisionMessage']=(function(){function RevisionHistoryGetRevisionMessage(properties){if(properties){for(var _0x2d7023=Object['keys'](properties),_0x32a788=0x0;_0x32a788<_0x2d7023['length'];++_0x32a788)null!=properties[_0x2d7023[_0x32a788]]&&(this[_0x2d7023[_0x32a788]]=properties[_0x2d7023[_0x32a788]]);}}return RevisionHistoryGetRevisionMessage['prototype']['documentId']='',RevisionHistoryGetRevisionMessage['prototype']['revisionId']='',RevisionHistoryGetRevisionMessage['create']=function(properties){return new RevisionHistoryGetRevisionMessage(properties);},RevisionHistoryGetRevisionMessage['encode']=function(_0x4c8f88,writer){return writer||(writer=$Writer['create']()),null!=_0x4c8f88['documentId']&&Object['hasOwnProperty']['call'](_0x4c8f88,'documentId')&&writer['uint32'](0xa)['string'](_0x4c8f88['documentId']),null!=_0x4c8f88['revisionId']&&Object['hasOwnProperty']['call'](_0x4c8f88,'revisionId')&&writer['uint32'](0x12)['string'](_0x4c8f88['revisionId']),writer;},RevisionHistoryGetRevisionMessage['encodeDelimited']=function(_0x6f43c4,writer){return this['encode'](_0x6f43c4,writer)['ldelim']();},RevisionHistoryGetRevisionMessage['decode']=function(_0x131329,length,_0x2f748e){_0x131329 instanceof _0x7b4aff||(_0x131329=_0x7b4aff['create'](_0x131329));for(var _0x3bbff=void 0x0===length?_0x131329['len']:_0x131329['pos']+length,_0x5a9695=new $root['RevisionHistoryGetRevisionMessage']();_0x131329['pos']<_0x3bbff;){var tag=_0x131329['uint32']();if(tag===_0x2f748e)break;switch(tag>>>0x3){case 0x1:_0x5a9695['documentId']=_0x131329['string']();break;case 0x2:_0x5a9695['revisionId']=_0x131329['string']();break;default:_0x131329['skipType'](0x7&tag);}}return _0x5a9695;},RevisionHistoryGetRevisionMessage['decodeDelimited']=function(_0x563fb6){return _0x563fb6 instanceof _0x7b4aff||(_0x563fb6=new _0x7b4aff(_0x563fb6)),this['decode'](_0x563fb6,_0x563fb6['uint32']());},RevisionHistoryGetRevisionMessage['verify']=function(_0x16dfa9){return'object'!=typeof _0x16dfa9||null===_0x16dfa9?'object\x20expected':null!=_0x16dfa9['documentId']&&_0x16dfa9['hasOwnProperty']('documentId')&&!$util['isString'](_0x16dfa9['documentId'])?'documentId:\x20string\x20expected':null!=_0x16dfa9['revisionId']&&_0x16dfa9['hasOwnProperty']('revisionId')&&!$util['isString'](_0x16dfa9['revisionId'])?'revisionId:\x20string\x20expected':null;},RevisionHistoryGetRevisionMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryGetRevisionMessage'])return object;var _0x2a4856=new $root['RevisionHistoryGetRevisionMessage']();return null!=object['documentId']&&(_0x2a4856['documentId']=String(object['documentId'])),null!=object['revisionId']&&(_0x2a4856['revisionId']=String(object['revisionId'])),_0x2a4856;},RevisionHistoryGetRevisionMessage['toObject']=function(_0x42a698,options){options||(options={});var object={};return options['defaults']&&(object['documentId']='',object['revisionId']=''),null!=_0x42a698['documentId']&&_0x42a698['hasOwnProperty']('documentId')&&(object['documentId']=_0x42a698['documentId']),null!=_0x42a698['revisionId']&&_0x42a698['hasOwnProperty']('revisionId')&&(object['revisionId']=_0x42a698['revisionId']),object;},RevisionHistoryGetRevisionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryGetRevisionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryGetRevisionMessage';},RevisionHistoryGetRevisionMessage;}()),$root['RevisionHistoryReconnectMessage']=(function(){function RevisionHistoryReconnectMessage(properties){if(properties){for(var _0x148e17=Object['keys'](properties),_0xf1cc1c=0x0;_0xf1cc1c<_0x148e17['length'];++_0xf1cc1c)null!=properties[_0x148e17[_0xf1cc1c]]&&(this[_0x148e17[_0xf1cc1c]]=properties[_0x148e17[_0xf1cc1c]]);}}return RevisionHistoryReconnectMessage['prototype']['documentId']='',RevisionHistoryReconnectMessage['prototype']['requestId']=0x0,RevisionHistoryReconnectMessage['create']=function(properties){return new RevisionHistoryReconnectMessage(properties);},RevisionHistoryReconnectMessage['encode']=function(_0x19e1c7,writer){return writer||(writer=$Writer['create']()),null!=_0x19e1c7['documentId']&&Object['hasOwnProperty']['call'](_0x19e1c7,'documentId')&&writer['uint32'](0xa)['string'](_0x19e1c7['documentId']),null!=_0x19e1c7['requestId']&&Object['hasOwnProperty']['call'](_0x19e1c7,'requestId')&&writer['uint32'](0x10)['uint32'](_0x19e1c7['requestId']),writer;},RevisionHistoryReconnectMessage['encodeDelimited']=function(_0x2d31c5,writer){return this['encode'](_0x2d31c5,writer)['ldelim']();},RevisionHistoryReconnectMessage['decode']=function(_0x3401d0,length,_0x34abe8){_0x3401d0 instanceof _0x7b4aff||(_0x3401d0=_0x7b4aff['create'](_0x3401d0));for(var _0x337de0=void 0x0===length?_0x3401d0['len']:_0x3401d0['pos']+length,_0x136d70=new $root['RevisionHistoryReconnectMessage']();_0x3401d0['pos']<_0x337de0;){var tag=_0x3401d0['uint32']();if(tag===_0x34abe8)break;switch(tag>>>0x3){case 0x1:_0x136d70['documentId']=_0x3401d0['string']();break;case 0x2:_0x136d70['requestId']=_0x3401d0['uint32']();break;default:_0x3401d0['skipType'](0x7&tag);}}return _0x136d70;},RevisionHistoryReconnectMessage['decodeDelimited']=function(_0xbd04d){return _0xbd04d instanceof _0x7b4aff||(_0xbd04d=new _0x7b4aff(_0xbd04d)),this['decode'](_0xbd04d,_0xbd04d['uint32']());},RevisionHistoryReconnectMessage['verify']=function(_0x27c77f){return'object'!=typeof _0x27c77f||null===_0x27c77f?'object\x20expected':null!=_0x27c77f['documentId']&&_0x27c77f['hasOwnProperty']('documentId')&&!$util['isString'](_0x27c77f['documentId'])?'documentId:\x20string\x20expected':null!=_0x27c77f['requestId']&&_0x27c77f['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x27c77f['requestId'])?'requestId:\x20integer\x20expected':null;},RevisionHistoryReconnectMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryReconnectMessage'])return object;var _0xdd2e1c=new $root['RevisionHistoryReconnectMessage']();return null!=object['documentId']&&(_0xdd2e1c['documentId']=String(object['documentId'])),null!=object['requestId']&&(_0xdd2e1c['requestId']=object['requestId']>>>0x0),_0xdd2e1c;},RevisionHistoryReconnectMessage['toObject']=function(_0x4fd2ec,options){options||(options={});var object={};return options['defaults']&&(object['documentId']='',object['requestId']=0x0),null!=_0x4fd2ec['documentId']&&_0x4fd2ec['hasOwnProperty']('documentId')&&(object['documentId']=_0x4fd2ec['documentId']),null!=_0x4fd2ec['requestId']&&_0x4fd2ec['hasOwnProperty']('requestId')&&(object['requestId']=_0x4fd2ec['requestId']),object;},RevisionHistoryReconnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryReconnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryReconnectMessage';},RevisionHistoryReconnectMessage;}()),$root['RevisionHistoryUpdateRevisionsMessage']=(function(){function RevisionHistoryUpdateRevisionsMessage(properties){if(this['revisions']=[],properties){for(var _0x4ffd83=Object['keys'](properties),_0x2e97d0=0x0;_0x2e97d0<_0x4ffd83['length'];++_0x2e97d0)null!=properties[_0x4ffd83[_0x2e97d0]]&&(this[_0x4ffd83[_0x2e97d0]]=properties[_0x4ffd83[_0x2e97d0]]);}}return RevisionHistoryUpdateRevisionsMessage['prototype']['documentId']='',RevisionHistoryUpdateRevisionsMessage['prototype']['requestId']=0x0,RevisionHistoryUpdateRevisionsMessage['prototype']['revisions']=$util['emptyArray'],RevisionHistoryUpdateRevisionsMessage['create']=function(properties){return new RevisionHistoryUpdateRevisionsMessage(properties);},RevisionHistoryUpdateRevisionsMessage['encode']=function(_0x3e2b0c,writer){if(writer||(writer=$Writer['create']()),null!=_0x3e2b0c['documentId']&&Object['hasOwnProperty']['call'](_0x3e2b0c,'documentId')&&writer['uint32'](0xa)['string'](_0x3e2b0c['documentId']),null!=_0x3e2b0c['requestId']&&Object['hasOwnProperty']['call'](_0x3e2b0c,'requestId')&&writer['uint32'](0x10)['uint32'](_0x3e2b0c['requestId']),null!=_0x3e2b0c['revisions']&&_0x3e2b0c['revisions']['length']){for(var _0x354147=0x0;_0x354147<_0x3e2b0c['revisions']['length'];++_0x354147)$root['RevisionDescriptor']['encode'](_0x3e2b0c['revisions'][_0x354147],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},RevisionHistoryUpdateRevisionsMessage['encodeDelimited']=function(_0x2919a7,writer){return this['encode'](_0x2919a7,writer)['ldelim']();},RevisionHistoryUpdateRevisionsMessage['decode']=function(_0x4fda70,length,_0x14a766){_0x4fda70 instanceof _0x7b4aff||(_0x4fda70=_0x7b4aff['create'](_0x4fda70));for(var _0x14ee63=void 0x0===length?_0x4fda70['len']:_0x4fda70['pos']+length,_0x13058e=new $root['RevisionHistoryUpdateRevisionsMessage']();_0x4fda70['pos']<_0x14ee63;){var tag=_0x4fda70['uint32']();if(tag===_0x14a766)break;switch(tag>>>0x3){case 0x1:_0x13058e['documentId']=_0x4fda70['string']();break;case 0x2:_0x13058e['requestId']=_0x4fda70['uint32']();break;case 0x3:_0x13058e['revisions']&&_0x13058e['revisions']['length']||(_0x13058e['revisions']=[]),_0x13058e['revisions']['push']($root['RevisionDescriptor']['decode'](_0x4fda70,_0x4fda70['uint32']()));break;default:_0x4fda70['skipType'](0x7&tag);}}return _0x13058e;},RevisionHistoryUpdateRevisionsMessage['decodeDelimited']=function(_0x14995d){return _0x14995d instanceof _0x7b4aff||(_0x14995d=new _0x7b4aff(_0x14995d)),this['decode'](_0x14995d,_0x14995d['uint32']());},RevisionHistoryUpdateRevisionsMessage['verify']=function(_0x16f097){if('object'!=typeof _0x16f097||null===_0x16f097)return'object\x20expected';if(null!=_0x16f097['documentId']&&_0x16f097['hasOwnProperty']('documentId')&&!$util['isString'](_0x16f097['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x16f097['requestId']&&_0x16f097['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x16f097['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x16f097['revisions']&&_0x16f097['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x16f097['revisions']))return'revisions:\x20array\x20expected';for(var _0x178da9=0x0;_0x178da9<_0x16f097['revisions']['length'];++_0x178da9){var _0x5b3cc6=$root['RevisionDescriptor']['verify'](_0x16f097['revisions'][_0x178da9]);if(_0x5b3cc6)return'revisions.'+_0x5b3cc6;}}return null;},RevisionHistoryUpdateRevisionsMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryUpdateRevisionsMessage'])return object;var _0x1d647b=new $root['RevisionHistoryUpdateRevisionsMessage']();if(null!=object['documentId']&&(_0x1d647b['documentId']=String(object['documentId'])),null!=object['requestId']&&(_0x1d647b['requestId']=object['requestId']>>>0x0),object['revisions']){if(!Array['isArray'](object['revisions']))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20array\x20expected');_0x1d647b['revisions']=[];for(var _0x408290=0x0;_0x408290<object['revisions']['length'];++_0x408290){if('object'!=typeof object['revisions'][_0x408290])throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20object\x20expected');_0x1d647b['revisions'][_0x408290]=$root['RevisionDescriptor']['fromObject'](object['revisions'][_0x408290]);}}return _0x1d647b;},RevisionHistoryUpdateRevisionsMessage['toObject']=function(_0xa01642,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['revisions']=[]),options['defaults']&&(object['documentId']='',object['requestId']=0x0),null!=_0xa01642['documentId']&&_0xa01642['hasOwnProperty']('documentId')&&(object['documentId']=_0xa01642['documentId']),null!=_0xa01642['requestId']&&_0xa01642['hasOwnProperty']('requestId')&&(object['requestId']=_0xa01642['requestId']),_0xa01642['revisions']&&_0xa01642['revisions']['length']){object['revisions']=[];for(var _0x8db2e4=0x0;_0x8db2e4<_0xa01642['revisions']['length'];++_0x8db2e4)object['revisions'][_0x8db2e4]=$root['RevisionDescriptor']['toObject'](_0xa01642['revisions'][_0x8db2e4],options);}return object;},RevisionHistoryUpdateRevisionsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryUpdateRevisionsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryUpdateRevisionsMessage';},RevisionHistoryUpdateRevisionsMessage;}()),$root['RevisionHistoryConnectResponse']=(function(){function RevisionHistoryConnectResponse(properties){if(this['revisions']=[],properties){for(var _0x751458=Object['keys'](properties),_0x59b9e0=0x0;_0x59b9e0<_0x751458['length'];++_0x59b9e0)null!=properties[_0x751458[_0x59b9e0]]&&(this[_0x751458[_0x59b9e0]]=properties[_0x751458[_0x59b9e0]]);}}return RevisionHistoryConnectResponse['prototype']['channel']='',RevisionHistoryConnectResponse['prototype']['requestId']=0x0,RevisionHistoryConnectResponse['prototype']['revisions']=$util['emptyArray'],RevisionHistoryConnectResponse['create']=function(properties){return new RevisionHistoryConnectResponse(properties);},RevisionHistoryConnectResponse['encode']=function(_0x31bba4,writer){if(writer||(writer=$Writer['create']()),null!=_0x31bba4['channel']&&Object['hasOwnProperty']['call'](_0x31bba4,'channel')&&writer['uint32'](0xa)['string'](_0x31bba4['channel']),null!=_0x31bba4['requestId']&&Object['hasOwnProperty']['call'](_0x31bba4,'requestId')&&writer['uint32'](0x10)['uint32'](_0x31bba4['requestId']),null!=_0x31bba4['revisions']&&_0x31bba4['revisions']['length']){for(var _0x26106f=0x0;_0x26106f<_0x31bba4['revisions']['length'];++_0x26106f)$root['RevisionDescriptor']['encode'](_0x31bba4['revisions'][_0x26106f],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},RevisionHistoryConnectResponse['encodeDelimited']=function(_0xa0c21,writer){return this['encode'](_0xa0c21,writer)['ldelim']();},RevisionHistoryConnectResponse['decode']=function(_0x5f4753,length,_0x2909e6){_0x5f4753 instanceof _0x7b4aff||(_0x5f4753=_0x7b4aff['create'](_0x5f4753));for(var _0x129766=void 0x0===length?_0x5f4753['len']:_0x5f4753['pos']+length,_0x282387=new $root['RevisionHistoryConnectResponse']();_0x5f4753['pos']<_0x129766;){var tag=_0x5f4753['uint32']();if(tag===_0x2909e6)break;switch(tag>>>0x3){case 0x1:_0x282387['channel']=_0x5f4753['string']();break;case 0x2:_0x282387['requestId']=_0x5f4753['uint32']();break;case 0x3:_0x282387['revisions']&&_0x282387['revisions']['length']||(_0x282387['revisions']=[]),_0x282387['revisions']['push']($root['RevisionDescriptor']['decode'](_0x5f4753,_0x5f4753['uint32']()));break;default:_0x5f4753['skipType'](0x7&tag);}}return _0x282387;},RevisionHistoryConnectResponse['decodeDelimited']=function(_0x511bc7){return _0x511bc7 instanceof _0x7b4aff||(_0x511bc7=new _0x7b4aff(_0x511bc7)),this['decode'](_0x511bc7,_0x511bc7['uint32']());},RevisionHistoryConnectResponse['verify']=function(_0x2169d4){if('object'!=typeof _0x2169d4||null===_0x2169d4)return'object\x20expected';if(null!=_0x2169d4['channel']&&_0x2169d4['hasOwnProperty']('channel')&&!$util['isString'](_0x2169d4['channel']))return'channel:\x20string\x20expected';if(null!=_0x2169d4['requestId']&&_0x2169d4['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x2169d4['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x2169d4['revisions']&&_0x2169d4['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x2169d4['revisions']))return'revisions:\x20array\x20expected';for(var _0x335265=0x0;_0x335265<_0x2169d4['revisions']['length'];++_0x335265){var _0x28ea65=$root['RevisionDescriptor']['verify'](_0x2169d4['revisions'][_0x335265]);if(_0x28ea65)return'revisions.'+_0x28ea65;}}return null;},RevisionHistoryConnectResponse['fromObject']=function(object){if(object instanceof $root['RevisionHistoryConnectResponse'])return object;var _0x1a4532=new $root['RevisionHistoryConnectResponse']();if(null!=object['channel']&&(_0x1a4532['channel']=String(object['channel'])),null!=object['requestId']&&(_0x1a4532['requestId']=object['requestId']>>>0x0),object['revisions']){if(!Array['isArray'](object['revisions']))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20array\x20expected');_0x1a4532['revisions']=[];for(var _0x1d30ab=0x0;_0x1d30ab<object['revisions']['length'];++_0x1d30ab){if('object'!=typeof object['revisions'][_0x1d30ab])throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20object\x20expected');_0x1a4532['revisions'][_0x1d30ab]=$root['RevisionDescriptor']['fromObject'](object['revisions'][_0x1d30ab]);}}return _0x1a4532;},RevisionHistoryConnectResponse['toObject']=function(_0x21f012,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['revisions']=[]),options['defaults']&&(object['channel']='',object['requestId']=0x0),null!=_0x21f012['channel']&&_0x21f012['hasOwnProperty']('channel')&&(object['channel']=_0x21f012['channel']),null!=_0x21f012['requestId']&&_0x21f012['hasOwnProperty']('requestId')&&(object['requestId']=_0x21f012['requestId']),_0x21f012['revisions']&&_0x21f012['revisions']['length']){object['revisions']=[];for(var _0x42b199=0x0;_0x42b199<_0x21f012['revisions']['length'];++_0x42b199)object['revisions'][_0x42b199]=$root['RevisionDescriptor']['toObject'](_0x21f012['revisions'][_0x42b199],options);}return object;},RevisionHistoryConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryConnectResponse';},RevisionHistoryConnectResponse;}()),$root['RevisionHistoryGetRevisionResponse']=(function(){function RevisionHistoryGetRevisionResponse(properties){if(properties){for(var _0x46561d=Object['keys'](properties),_0x2f5838=0x0;_0x2f5838<_0x46561d['length'];++_0x2f5838)null!=properties[_0x46561d[_0x2f5838]]&&(this[_0x46561d[_0x2f5838]]=properties[_0x46561d[_0x2f5838]]);}}return RevisionHistoryGetRevisionResponse['prototype']['revisionId']='',RevisionHistoryGetRevisionResponse['prototype']['name']='',RevisionHistoryGetRevisionResponse['prototype']['creatorId']='',RevisionHistoryGetRevisionResponse['prototype']['authorsIds']='',RevisionHistoryGetRevisionResponse['prototype']['diffData']='',RevisionHistoryGetRevisionResponse['prototype']['createdAt']='',RevisionHistoryGetRevisionResponse['prototype']['attributes']='',RevisionHistoryGetRevisionResponse['prototype']['toVersion']=0x0,RevisionHistoryGetRevisionResponse['prototype']['fromVersion']=0x0,RevisionHistoryGetRevisionResponse['prototype']['isEmptyCurrent']=!0x1,RevisionHistoryGetRevisionResponse['create']=function(properties){return new RevisionHistoryGetRevisionResponse(properties);},RevisionHistoryGetRevisionResponse['encode']=function(_0x501da5,writer){return writer||(writer=$Writer['create']()),null!=_0x501da5['revisionId']&&Object['hasOwnProperty']['call'](_0x501da5,'revisionId')&&writer['uint32'](0xa)['string'](_0x501da5['revisionId']),null!=_0x501da5['name']&&Object['hasOwnProperty']['call'](_0x501da5,'name')&&writer['uint32'](0x12)['string'](_0x501da5['name']),null!=_0x501da5['creatorId']&&Object['hasOwnProperty']['call'](_0x501da5,'creatorId')&&writer['uint32'](0x1a)['string'](_0x501da5['creatorId']),null!=_0x501da5['authorsIds']&&Object['hasOwnProperty']['call'](_0x501da5,'authorsIds')&&writer['uint32'](0x22)['string'](_0x501da5['authorsIds']),null!=_0x501da5['diffData']&&Object['hasOwnProperty']['call'](_0x501da5,'diffData')&&writer['uint32'](0x2a)['string'](_0x501da5['diffData']),null!=_0x501da5['createdAt']&&Object['hasOwnProperty']['call'](_0x501da5,'createdAt')&&writer['uint32'](0x32)['string'](_0x501da5['createdAt']),null!=_0x501da5['attributes']&&Object['hasOwnProperty']['call'](_0x501da5,'attributes')&&writer['uint32'](0x3a)['string'](_0x501da5['attributes']),null!=_0x501da5['toVersion']&&Object['hasOwnProperty']['call'](_0x501da5,'toVersion')&&writer['uint32'](0x40)['uint32'](_0x501da5['toVersion']),null!=_0x501da5['fromVersion']&&Object['hasOwnProperty']['call'](_0x501da5,'fromVersion')&&writer['uint32'](0x48)['uint32'](_0x501da5['fromVersion']),null!=_0x501da5['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x501da5,'isEmptyCurrent')&&writer['uint32'](0x50)['bool'](_0x501da5['isEmptyCurrent']),writer;},RevisionHistoryGetRevisionResponse['encodeDelimited']=function(_0x248117,writer){return this['encode'](_0x248117,writer)['ldelim']();},RevisionHistoryGetRevisionResponse['decode']=function(_0x489f37,length,_0x1183bf){_0x489f37 instanceof _0x7b4aff||(_0x489f37=_0x7b4aff['create'](_0x489f37));for(var _0x17d0a0=void 0x0===length?_0x489f37['len']:_0x489f37['pos']+length,_0x72d054=new $root['RevisionHistoryGetRevisionResponse']();_0x489f37['pos']<_0x17d0a0;){var tag=_0x489f37['uint32']();if(tag===_0x1183bf)break;switch(tag>>>0x3){case 0x1:_0x72d054['revisionId']=_0x489f37['string']();break;case 0x2:_0x72d054['name']=_0x489f37['string']();break;case 0x3:_0x72d054['creatorId']=_0x489f37['string']();break;case 0x4:_0x72d054['authorsIds']=_0x489f37['string']();break;case 0x5:_0x72d054['diffData']=_0x489f37['string']();break;case 0x6:_0x72d054['createdAt']=_0x489f37['string']();break;case 0x7:_0x72d054['attributes']=_0x489f37['string']();break;case 0x8:_0x72d054['toVersion']=_0x489f37['uint32']();break;case 0x9:_0x72d054['fromVersion']=_0x489f37['uint32']();break;case 0xa:_0x72d054['isEmptyCurrent']=_0x489f37['bool']();break;default:_0x489f37['skipType'](0x7&tag);}}return _0x72d054;},RevisionHistoryGetRevisionResponse['decodeDelimited']=function(_0x528d07){return _0x528d07 instanceof _0x7b4aff||(_0x528d07=new _0x7b4aff(_0x528d07)),this['decode'](_0x528d07,_0x528d07['uint32']());},RevisionHistoryGetRevisionResponse['verify']=function(_0x30194d){return'object'!=typeof _0x30194d||null===_0x30194d?'object\x20expected':null!=_0x30194d['revisionId']&&_0x30194d['hasOwnProperty']('revisionId')&&!$util['isString'](_0x30194d['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x30194d['name']&&_0x30194d['hasOwnProperty']('name')&&!$util['isString'](_0x30194d['name'])?'name:\x20string\x20expected':null!=_0x30194d['creatorId']&&_0x30194d['hasOwnProperty']('creatorId')&&!$util['isString'](_0x30194d['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x30194d['authorsIds']&&_0x30194d['hasOwnProperty']('authorsIds')&&!$util['isString'](_0x30194d['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x30194d['diffData']&&_0x30194d['hasOwnProperty']('diffData')&&!$util['isString'](_0x30194d['diffData'])?'diffData:\x20string\x20expected':null!=_0x30194d['createdAt']&&_0x30194d['hasOwnProperty']('createdAt')&&!$util['isString'](_0x30194d['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x30194d['attributes']&&_0x30194d['hasOwnProperty']('attributes')&&!$util['isString'](_0x30194d['attributes'])?'attributes:\x20string\x20expected':null!=_0x30194d['toVersion']&&_0x30194d['hasOwnProperty']('toVersion')&&!$util['isInteger'](_0x30194d['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x30194d['fromVersion']&&_0x30194d['hasOwnProperty']('fromVersion')&&!$util['isInteger'](_0x30194d['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x30194d['isEmptyCurrent']&&_0x30194d['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x30194d['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},RevisionHistoryGetRevisionResponse['fromObject']=function(object){if(object instanceof $root['RevisionHistoryGetRevisionResponse'])return object;var _0x3026a3=new $root['RevisionHistoryGetRevisionResponse']();return null!=object['revisionId']&&(_0x3026a3['revisionId']=String(object['revisionId'])),null!=object['name']&&(_0x3026a3['name']=String(object['name'])),null!=object['creatorId']&&(_0x3026a3['creatorId']=String(object['creatorId'])),null!=object['authorsIds']&&(_0x3026a3['authorsIds']=String(object['authorsIds'])),null!=object['diffData']&&(_0x3026a3['diffData']=String(object['diffData'])),null!=object['createdAt']&&(_0x3026a3['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x3026a3['attributes']=String(object['attributes'])),null!=object['toVersion']&&(_0x3026a3['toVersion']=object['toVersion']>>>0x0),null!=object['fromVersion']&&(_0x3026a3['fromVersion']=object['fromVersion']>>>0x0),null!=object['isEmptyCurrent']&&(_0x3026a3['isEmptyCurrent']=Boolean(object['isEmptyCurrent'])),_0x3026a3;},RevisionHistoryGetRevisionResponse['toObject']=function(_0x700299,options){options||(options={});var object={};return options['defaults']&&(object['revisionId']='',object['name']='',object['creatorId']='',object['authorsIds']='',object['diffData']='',object['createdAt']='',object['attributes']='',object['toVersion']=0x0,object['fromVersion']=0x0,object['isEmptyCurrent']=!0x1),null!=_0x700299['revisionId']&&_0x700299['hasOwnProperty']('revisionId')&&(object['revisionId']=_0x700299['revisionId']),null!=_0x700299['name']&&_0x700299['hasOwnProperty']('name')&&(object['name']=_0x700299['name']),null!=_0x700299['creatorId']&&_0x700299['hasOwnProperty']('creatorId')&&(object['creatorId']=_0x700299['creatorId']),null!=_0x700299['authorsIds']&&_0x700299['hasOwnProperty']('authorsIds')&&(object['authorsIds']=_0x700299['authorsIds']),null!=_0x700299['diffData']&&_0x700299['hasOwnProperty']('diffData')&&(object['diffData']=_0x700299['diffData']),null!=_0x700299['createdAt']&&_0x700299['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x700299['createdAt']),null!=_0x700299['attributes']&&_0x700299['hasOwnProperty']('attributes')&&(object['attributes']=_0x700299['attributes']),null!=_0x700299['toVersion']&&_0x700299['hasOwnProperty']('toVersion')&&(object['toVersion']=_0x700299['toVersion']),null!=_0x700299['fromVersion']&&_0x700299['hasOwnProperty']('fromVersion')&&(object['fromVersion']=_0x700299['fromVersion']),null!=_0x700299['isEmptyCurrent']&&_0x700299['hasOwnProperty']('isEmptyCurrent')&&(object['isEmptyCurrent']=_0x700299['isEmptyCurrent']),object;},RevisionHistoryGetRevisionResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryGetRevisionResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryGetRevisionResponse';},RevisionHistoryGetRevisionResponse;}()),$root['RevisionHistoryUpdateRevisionsResponse']=(function(){function RevisionHistoryUpdateRevisionsResponse(properties){if(properties){for(var _0x2c8fc0=Object['keys'](properties),_0x50237c=0x0;_0x50237c<_0x2c8fc0['length'];++_0x50237c)null!=properties[_0x2c8fc0[_0x50237c]]&&(this[_0x2c8fc0[_0x50237c]]=properties[_0x2c8fc0[_0x50237c]]);}}return RevisionHistoryUpdateRevisionsResponse['prototype']['requestId']=0x0,RevisionHistoryUpdateRevisionsResponse['create']=function(properties){return new RevisionHistoryUpdateRevisionsResponse(properties);},RevisionHistoryUpdateRevisionsResponse['encode']=function(_0xa7ee76,writer){return writer||(writer=$Writer['create']()),null!=_0xa7ee76['requestId']&&Object['hasOwnProperty']['call'](_0xa7ee76,'requestId')&&writer['uint32'](0x8)['uint32'](_0xa7ee76['requestId']),writer;},RevisionHistoryUpdateRevisionsResponse['encodeDelimited']=function(_0x38f3cf,writer){return this['encode'](_0x38f3cf,writer)['ldelim']();},RevisionHistoryUpdateRevisionsResponse['decode']=function(_0x1ddae1,length,_0x32c239){_0x1ddae1 instanceof _0x7b4aff||(_0x1ddae1=_0x7b4aff['create'](_0x1ddae1));for(var _0x4757b0=void 0x0===length?_0x1ddae1['len']:_0x1ddae1['pos']+length,_0x23dbf0=new $root['RevisionHistoryUpdateRevisionsResponse']();_0x1ddae1['pos']<_0x4757b0;){var tag=_0x1ddae1['uint32']();if(tag===_0x32c239)break;if(tag>>>0x3==0x1)_0x23dbf0['requestId']=_0x1ddae1['uint32']();else _0x1ddae1['skipType'](0x7&tag);}return _0x23dbf0;},RevisionHistoryUpdateRevisionsResponse['decodeDelimited']=function(_0x379901){return _0x379901 instanceof _0x7b4aff||(_0x379901=new _0x7b4aff(_0x379901)),this['decode'](_0x379901,_0x379901['uint32']());},RevisionHistoryUpdateRevisionsResponse['verify']=function(_0x17084f){return'object'!=typeof _0x17084f||null===_0x17084f?'object\x20expected':null!=_0x17084f['requestId']&&_0x17084f['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x17084f['requestId'])?'requestId:\x20integer\x20expected':null;},RevisionHistoryUpdateRevisionsResponse['fromObject']=function(object){if(object instanceof $root['RevisionHistoryUpdateRevisionsResponse'])return object;var _0x46c807=new $root['RevisionHistoryUpdateRevisionsResponse']();return null!=object['requestId']&&(_0x46c807['requestId']=object['requestId']>>>0x0),_0x46c807;},RevisionHistoryUpdateRevisionsResponse['toObject']=function(_0x5b4226,options){options||(options={});var object={};return options['defaults']&&(object['requestId']=0x0),null!=_0x5b4226['requestId']&&_0x5b4226['hasOwnProperty']('requestId')&&(object['requestId']=_0x5b4226['requestId']),object;},RevisionHistoryUpdateRevisionsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryUpdateRevisionsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryUpdateRevisionsResponse';},RevisionHistoryUpdateRevisionsResponse;}()),$root['SessionsSocketDescriptor']=(function(){function SessionsSocketDescriptor(properties){if(this['permissions']=[],properties){for(var _0x4b6dac=Object['keys'](properties),_0xe247d=0x0;_0xe247d<_0x4b6dac['length'];++_0xe247d)null!=properties[_0x4b6dac[_0xe247d]]&&(this[_0x4b6dac[_0xe247d]]=properties[_0x4b6dac[_0xe247d]]);}}return SessionsSocketDescriptor['prototype']['session']='',SessionsSocketDescriptor['prototype']['user']='',SessionsSocketDescriptor['prototype']['role']='',SessionsSocketDescriptor['prototype']['permissions']=$util['emptyArray'],SessionsSocketDescriptor['create']=function(properties){return new SessionsSocketDescriptor(properties);},SessionsSocketDescriptor['encode']=function(_0x5d686b,writer){if(writer||(writer=$Writer['create']()),null!=_0x5d686b['session']&&Object['hasOwnProperty']['call'](_0x5d686b,'session')&&writer['uint32'](0xa)['string'](_0x5d686b['session']),null!=_0x5d686b['user']&&Object['hasOwnProperty']['call'](_0x5d686b,'user')&&writer['uint32'](0x12)['string'](_0x5d686b['user']),null!=_0x5d686b['role']&&Object['hasOwnProperty']['call'](_0x5d686b,'role')&&writer['uint32'](0x1a)['string'](_0x5d686b['role']),null!=_0x5d686b['permissions']&&_0x5d686b['permissions']['length']){for(var _0x3745c3=0x0;_0x3745c3<_0x5d686b['permissions']['length'];++_0x3745c3)writer['uint32'](0x22)['string'](_0x5d686b['permissions'][_0x3745c3]);}return writer;},SessionsSocketDescriptor['encodeDelimited']=function(_0x2a4c9a,writer){return this['encode'](_0x2a4c9a,writer)['ldelim']();},SessionsSocketDescriptor['decode']=function(_0x43c61b,length,_0x377f95){_0x43c61b instanceof _0x7b4aff||(_0x43c61b=_0x7b4aff['create'](_0x43c61b));for(var _0xabfdcb=void 0x0===length?_0x43c61b['len']:_0x43c61b['pos']+length,_0x30ee04=new $root['SessionsSocketDescriptor']();_0x43c61b['pos']<_0xabfdcb;){var tag=_0x43c61b['uint32']();if(tag===_0x377f95)break;switch(tag>>>0x3){case 0x1:_0x30ee04['session']=_0x43c61b['string']();break;case 0x2:_0x30ee04['user']=_0x43c61b['string']();break;case 0x3:_0x30ee04['role']=_0x43c61b['string']();break;case 0x4:_0x30ee04['permissions']&&_0x30ee04['permissions']['length']||(_0x30ee04['permissions']=[]),_0x30ee04['permissions']['push'](_0x43c61b['string']());break;default:_0x43c61b['skipType'](0x7&tag);}}return _0x30ee04;},SessionsSocketDescriptor['decodeDelimited']=function(_0x3c2389){return _0x3c2389 instanceof _0x7b4aff||(_0x3c2389=new _0x7b4aff(_0x3c2389)),this['decode'](_0x3c2389,_0x3c2389['uint32']());},SessionsSocketDescriptor['verify']=function(_0x22bc5d){if('object'!=typeof _0x22bc5d||null===_0x22bc5d)return'object\x20expected';if(null!=_0x22bc5d['session']&&_0x22bc5d['hasOwnProperty']('session')&&!$util['isString'](_0x22bc5d['session']))return'session:\x20string\x20expected';if(null!=_0x22bc5d['user']&&_0x22bc5d['hasOwnProperty']('user')&&!$util['isString'](_0x22bc5d['user']))return'user:\x20string\x20expected';if(null!=_0x22bc5d['role']&&_0x22bc5d['hasOwnProperty']('role')&&!$util['isString'](_0x22bc5d['role']))return'role:\x20string\x20expected';if(null!=_0x22bc5d['permissions']&&_0x22bc5d['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x22bc5d['permissions']))return'permissions:\x20array\x20expected';for(var _0x290a76=0x0;_0x290a76<_0x22bc5d['permissions']['length'];++_0x290a76)if(!$util['isString'](_0x22bc5d['permissions'][_0x290a76]))return'permissions:\x20string[]\x20expected';}return null;},SessionsSocketDescriptor['fromObject']=function(object){if(object instanceof $root['SessionsSocketDescriptor'])return object;var _0x4e4f7f=new $root['SessionsSocketDescriptor']();if(null!=object['session']&&(_0x4e4f7f['session']=String(object['session'])),null!=object['user']&&(_0x4e4f7f['user']=String(object['user'])),null!=object['role']&&(_0x4e4f7f['role']=String(object['role'])),object['permissions']){if(!Array['isArray'](object['permissions']))throw TypeError('.SessionsSocketDescriptor.permissions:\x20array\x20expected');_0x4e4f7f['permissions']=[];for(var _0x58a0b6=0x0;_0x58a0b6<object['permissions']['length'];++_0x58a0b6)_0x4e4f7f['permissions'][_0x58a0b6]=String(object['permissions'][_0x58a0b6]);}return _0x4e4f7f;},SessionsSocketDescriptor['toObject']=function(_0x40aa3e,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['permissions']=[]),options['defaults']&&(object['session']='',object['user']='',object['role']=''),null!=_0x40aa3e['session']&&_0x40aa3e['hasOwnProperty']('session')&&(object['session']=_0x40aa3e['session']),null!=_0x40aa3e['user']&&_0x40aa3e['hasOwnProperty']('user')&&(object['user']=_0x40aa3e['user']),null!=_0x40aa3e['role']&&_0x40aa3e['hasOwnProperty']('role')&&(object['role']=_0x40aa3e['role']),_0x40aa3e['permissions']&&_0x40aa3e['permissions']['length']){object['permissions']=[];for(var _0x4494c4=0x0;_0x4494c4<_0x40aa3e['permissions']['length'];++_0x4494c4)object['permissions'][_0x4494c4]=_0x40aa3e['permissions'][_0x4494c4];}return object;},SessionsSocketDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SessionsSocketDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SessionsSocketDescriptor';},SessionsSocketDescriptor;}()),$root['SessionsConnectMessage']=(function(){function SessionsConnectMessage(properties){if(properties){for(var _0x4b84d7=Object['keys'](properties),_0x5d7e50=0x0;_0x5d7e50<_0x4b84d7['length'];++_0x5d7e50)null!=properties[_0x4b84d7[_0x5d7e50]]&&(this[_0x4b84d7[_0x5d7e50]]=properties[_0x4b84d7[_0x5d7e50]]);}}return SessionsConnectMessage['prototype']['id']='',SessionsConnectMessage['prototype']['sessionType']=0x0,SessionsConnectMessage['create']=function(properties){return new SessionsConnectMessage(properties);},SessionsConnectMessage['encode']=function(_0xef44a4,writer){return writer||(writer=$Writer['create']()),null!=_0xef44a4['id']&&Object['hasOwnProperty']['call'](_0xef44a4,'id')&&writer['uint32'](0xa)['string'](_0xef44a4['id']),null!=_0xef44a4['sessionType']&&Object['hasOwnProperty']['call'](_0xef44a4,'sessionType')&&writer['uint32'](0x10)['uint32'](_0xef44a4['sessionType']),writer;},SessionsConnectMessage['encodeDelimited']=function(_0x57781d,writer){return this['encode'](_0x57781d,writer)['ldelim']();},SessionsConnectMessage['decode']=function(_0x39b392,length,_0xf3656e){_0x39b392 instanceof _0x7b4aff||(_0x39b392=_0x7b4aff['create'](_0x39b392));for(var _0x56e92f=void 0x0===length?_0x39b392['len']:_0x39b392['pos']+length,_0x1978a7=new $root['SessionsConnectMessage']();_0x39b392['pos']<_0x56e92f;){var tag=_0x39b392['uint32']();if(tag===_0xf3656e)break;switch(tag>>>0x3){case 0x1:_0x1978a7['id']=_0x39b392['string']();break;case 0x2:_0x1978a7['sessionType']=_0x39b392['uint32']();break;default:_0x39b392['skipType'](0x7&tag);}}return _0x1978a7;},SessionsConnectMessage['decodeDelimited']=function(_0xd4f95){return _0xd4f95 instanceof _0x7b4aff||(_0xd4f95=new _0x7b4aff(_0xd4f95)),this['decode'](_0xd4f95,_0xd4f95['uint32']());},SessionsConnectMessage['verify']=function(_0x4d64ac){return'object'!=typeof _0x4d64ac||null===_0x4d64ac?'object\x20expected':null!=_0x4d64ac['id']&&_0x4d64ac['hasOwnProperty']('id')&&!$util['isString'](_0x4d64ac['id'])?'id:\x20string\x20expected':null!=_0x4d64ac['sessionType']&&_0x4d64ac['hasOwnProperty']('sessionType')&&!$util['isInteger'](_0x4d64ac['sessionType'])?'sessionType:\x20integer\x20expected':null;},SessionsConnectMessage['fromObject']=function(object){if(object instanceof $root['SessionsConnectMessage'])return object;var _0x2e1366=new $root['SessionsConnectMessage']();return null!=object['id']&&(_0x2e1366['id']=String(object['id'])),null!=object['sessionType']&&(_0x2e1366['sessionType']=object['sessionType']>>>0x0),_0x2e1366;},SessionsConnectMessage['toObject']=function(_0x4b7607,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['sessionType']=0x0),null!=_0x4b7607['id']&&_0x4b7607['hasOwnProperty']('id')&&(object['id']=_0x4b7607['id']),null!=_0x4b7607['sessionType']&&_0x4b7607['hasOwnProperty']('sessionType')&&(object['sessionType']=_0x4b7607['sessionType']),object;},SessionsConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SessionsConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SessionsConnectMessage';},SessionsConnectMessage;}()),$root['SocketConnectMessage']=(function(){function SocketConnectMessage(properties){if(this['permissions']=[],properties){for(var _0x4bbce6=Object['keys'](properties),_0x24ff37=0x0;_0x24ff37<_0x4bbce6['length'];++_0x24ff37)null!=properties[_0x4bbce6[_0x24ff37]]&&(this[_0x4bbce6[_0x24ff37]]=properties[_0x4bbce6[_0x24ff37]]);}}return SocketConnectMessage['prototype']['id']='',SocketConnectMessage['prototype']['userId']='',SocketConnectMessage['prototype']['role']='',SocketConnectMessage['prototype']['permissions']=$util['emptyArray'],SocketConnectMessage['create']=function(properties){return new SocketConnectMessage(properties);},SocketConnectMessage['encode']=function(_0x5b744b,writer){if(writer||(writer=$Writer['create']()),null!=_0x5b744b['id']&&Object['hasOwnProperty']['call'](_0x5b744b,'id')&&writer['uint32'](0xa)['string'](_0x5b744b['id']),null!=_0x5b744b['userId']&&Object['hasOwnProperty']['call'](_0x5b744b,'userId')&&writer['uint32'](0x12)['string'](_0x5b744b['userId']),null!=_0x5b744b['role']&&Object['hasOwnProperty']['call'](_0x5b744b,'role')&&writer['uint32'](0x1a)['string'](_0x5b744b['role']),null!=_0x5b744b['permissions']&&_0x5b744b['permissions']['length']){for(var _0x1aaf00=0x0;_0x1aaf00<_0x5b744b['permissions']['length'];++_0x1aaf00)writer['uint32'](0x22)['string'](_0x5b744b['permissions'][_0x1aaf00]);}return writer;},SocketConnectMessage['encodeDelimited']=function(_0x14b57a,writer){return this['encode'](_0x14b57a,writer)['ldelim']();},SocketConnectMessage['decode']=function(_0x2bebe1,length,_0x2a8b09){_0x2bebe1 instanceof _0x7b4aff||(_0x2bebe1=_0x7b4aff['create'](_0x2bebe1));for(var _0xd6f2f=void 0x0===length?_0x2bebe1['len']:_0x2bebe1['pos']+length,_0x1b94d8=new $root['SocketConnectMessage']();_0x2bebe1['pos']<_0xd6f2f;){var tag=_0x2bebe1['uint32']();if(tag===_0x2a8b09)break;switch(tag>>>0x3){case 0x1:_0x1b94d8['id']=_0x2bebe1['string']();break;case 0x2:_0x1b94d8['userId']=_0x2bebe1['string']();break;case 0x3:_0x1b94d8['role']=_0x2bebe1['string']();break;case 0x4:_0x1b94d8['permissions']&&_0x1b94d8['permissions']['length']||(_0x1b94d8['permissions']=[]),_0x1b94d8['permissions']['push'](_0x2bebe1['string']());break;default:_0x2bebe1['skipType'](0x7&tag);}}return _0x1b94d8;},SocketConnectMessage['decodeDelimited']=function(_0x42c489){return _0x42c489 instanceof _0x7b4aff||(_0x42c489=new _0x7b4aff(_0x42c489)),this['decode'](_0x42c489,_0x42c489['uint32']());},SocketConnectMessage['verify']=function(_0x3766f2){if('object'!=typeof _0x3766f2||null===_0x3766f2)return'object\x20expected';if(null!=_0x3766f2['id']&&_0x3766f2['hasOwnProperty']('id')&&!$util['isString'](_0x3766f2['id']))return'id:\x20string\x20expected';if(null!=_0x3766f2['userId']&&_0x3766f2['hasOwnProperty']('userId')&&!$util['isString'](_0x3766f2['userId']))return'userId:\x20string\x20expected';if(null!=_0x3766f2['role']&&_0x3766f2['hasOwnProperty']('role')&&!$util['isString'](_0x3766f2['role']))return'role:\x20string\x20expected';if(null!=_0x3766f2['permissions']&&_0x3766f2['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x3766f2['permissions']))return'permissions:\x20array\x20expected';for(var _0x296f5c=0x0;_0x296f5c<_0x3766f2['permissions']['length'];++_0x296f5c)if(!$util['isString'](_0x3766f2['permissions'][_0x296f5c]))return'permissions:\x20string[]\x20expected';}return null;},SocketConnectMessage['fromObject']=function(object){if(object instanceof $root['SocketConnectMessage'])return object;var _0x896f34=new $root['SocketConnectMessage']();if(null!=object['id']&&(_0x896f34['id']=String(object['id'])),null!=object['userId']&&(_0x896f34['userId']=String(object['userId'])),null!=object['role']&&(_0x896f34['role']=String(object['role'])),object['permissions']){if(!Array['isArray'](object['permissions']))throw TypeError('.SocketConnectMessage.permissions:\x20array\x20expected');_0x896f34['permissions']=[];for(var _0x5df3d3=0x0;_0x5df3d3<object['permissions']['length'];++_0x5df3d3)_0x896f34['permissions'][_0x5df3d3]=String(object['permissions'][_0x5df3d3]);}return _0x896f34;},SocketConnectMessage['toObject']=function(_0x47f27f,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['permissions']=[]),options['defaults']&&(object['id']='',object['userId']='',object['role']=''),null!=_0x47f27f['id']&&_0x47f27f['hasOwnProperty']('id')&&(object['id']=_0x47f27f['id']),null!=_0x47f27f['userId']&&_0x47f27f['hasOwnProperty']('userId')&&(object['userId']=_0x47f27f['userId']),null!=_0x47f27f['role']&&_0x47f27f['hasOwnProperty']('role')&&(object['role']=_0x47f27f['role']),_0x47f27f['permissions']&&_0x47f27f['permissions']['length']){object['permissions']=[];for(var _0x595105=0x0;_0x595105<_0x47f27f['permissions']['length'];++_0x595105)object['permissions'][_0x595105]=_0x47f27f['permissions'][_0x595105];}return object;},SocketConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SocketConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SocketConnectMessage';},SocketConnectMessage;}()),$root['SocketDisconnectMessage']=(function(){function SocketDisconnectMessage(properties){if(properties){for(var _0x199b66=Object['keys'](properties),_0x1dddac=0x0;_0x1dddac<_0x199b66['length'];++_0x1dddac)null!=properties[_0x199b66[_0x1dddac]]&&(this[_0x199b66[_0x1dddac]]=properties[_0x199b66[_0x1dddac]]);}}return SocketDisconnectMessage['prototype']['id']='',SocketDisconnectMessage['create']=function(properties){return new SocketDisconnectMessage(properties);},SocketDisconnectMessage['encode']=function(_0x324fe3,writer){return writer||(writer=$Writer['create']()),null!=_0x324fe3['id']&&Object['hasOwnProperty']['call'](_0x324fe3,'id')&&writer['uint32'](0xa)['string'](_0x324fe3['id']),writer;},SocketDisconnectMessage['encodeDelimited']=function(_0x258123,writer){return this['encode'](_0x258123,writer)['ldelim']();},SocketDisconnectMessage['decode']=function(_0x2cfbed,length,_0x21606c){_0x2cfbed instanceof _0x7b4aff||(_0x2cfbed=_0x7b4aff['create'](_0x2cfbed));for(var _0xa90e5c=void 0x0===length?_0x2cfbed['len']:_0x2cfbed['pos']+length,_0x270310=new $root['SocketDisconnectMessage']();_0x2cfbed['pos']<_0xa90e5c;){var tag=_0x2cfbed['uint32']();if(tag===_0x21606c)break;if(tag>>>0x3==0x1)_0x270310['id']=_0x2cfbed['string']();else _0x2cfbed['skipType'](0x7&tag);}return _0x270310;},SocketDisconnectMessage['decodeDelimited']=function(_0x305726){return _0x305726 instanceof _0x7b4aff||(_0x305726=new _0x7b4aff(_0x305726)),this['decode'](_0x305726,_0x305726['uint32']());},SocketDisconnectMessage['verify']=function(_0x2c86fd){return'object'!=typeof _0x2c86fd||null===_0x2c86fd?'object\x20expected':null!=_0x2c86fd['id']&&_0x2c86fd['hasOwnProperty']('id')&&!$util['isString'](_0x2c86fd['id'])?'id:\x20string\x20expected':null;},SocketDisconnectMessage['fromObject']=function(object){if(object instanceof $root['SocketDisconnectMessage'])return object;var _0x57bb8e=new $root['SocketDisconnectMessage']();return null!=object['id']&&(_0x57bb8e['id']=String(object['id'])),_0x57bb8e;},SocketDisconnectMessage['toObject']=function(_0x300d31,options){options||(options={});var object={};return options['defaults']&&(object['id']=''),null!=_0x300d31['id']&&_0x300d31['hasOwnProperty']('id')&&(object['id']=_0x300d31['id']),object;},SocketDisconnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SocketDisconnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SocketDisconnectMessage';},SocketDisconnectMessage;}()),$root['SessionsConnectResponse']=(function(){function SessionsConnectResponse(properties){if(this['sockets']=[],properties){for(var _0x104814=Object['keys'](properties),_0x113c0c=0x0;_0x113c0c<_0x104814['length'];++_0x113c0c)null!=properties[_0x104814[_0x113c0c]]&&(this[_0x104814[_0x113c0c]]=properties[_0x104814[_0x113c0c]]);}}return SessionsConnectResponse['prototype']['channel']='',SessionsConnectResponse['prototype']['sockets']=$util['emptyArray'],SessionsConnectResponse['create']=function(properties){return new SessionsConnectResponse(properties);},SessionsConnectResponse['encode']=function(_0x165780,writer){if(writer||(writer=$Writer['create']()),null!=_0x165780['channel']&&Object['hasOwnProperty']['call'](_0x165780,'channel')&&writer['uint32'](0xa)['string'](_0x165780['channel']),null!=_0x165780['sockets']&&_0x165780['sockets']['length']){for(var _0x2bb764=0x0;_0x2bb764<_0x165780['sockets']['length'];++_0x2bb764)$root['SessionsSocketDescriptor']['encode'](_0x165780['sockets'][_0x2bb764],writer['uint32'](0x12)['fork']())['ldelim']();}return writer;},SessionsConnectResponse['encodeDelimited']=function(_0x144134,writer){return this['encode'](_0x144134,writer)['ldelim']();},SessionsConnectResponse['decode']=function(_0x16f24b,length,_0xf99189){_0x16f24b instanceof _0x7b4aff||(_0x16f24b=_0x7b4aff['create'](_0x16f24b));for(var _0x275177=void 0x0===length?_0x16f24b['len']:_0x16f24b['pos']+length,_0x4e98ea=new $root['SessionsConnectResponse']();_0x16f24b['pos']<_0x275177;){var tag=_0x16f24b['uint32']();if(tag===_0xf99189)break;switch(tag>>>0x3){case 0x1:_0x4e98ea['channel']=_0x16f24b['string']();break;case 0x2:_0x4e98ea['sockets']&&_0x4e98ea['sockets']['length']||(_0x4e98ea['sockets']=[]),_0x4e98ea['sockets']['push']($root['SessionsSocketDescriptor']['decode'](_0x16f24b,_0x16f24b['uint32']()));break;default:_0x16f24b['skipType'](0x7&tag);}}return _0x4e98ea;},SessionsConnectResponse['decodeDelimited']=function(_0x415a32){return _0x415a32 instanceof _0x7b4aff||(_0x415a32=new _0x7b4aff(_0x415a32)),this['decode'](_0x415a32,_0x415a32['uint32']());},SessionsConnectResponse['verify']=function(_0x45b257){if('object'!=typeof _0x45b257||null===_0x45b257)return'object\x20expected';if(null!=_0x45b257['channel']&&_0x45b257['hasOwnProperty']('channel')&&!$util['isString'](_0x45b257['channel']))return'channel:\x20string\x20expected';if(null!=_0x45b257['sockets']&&_0x45b257['hasOwnProperty']('sockets')){if(!Array['isArray'](_0x45b257['sockets']))return'sockets:\x20array\x20expected';for(var _0x69dfcd=0x0;_0x69dfcd<_0x45b257['sockets']['length'];++_0x69dfcd){var _0x36d94d=$root['SessionsSocketDescriptor']['verify'](_0x45b257['sockets'][_0x69dfcd]);if(_0x36d94d)return'sockets.'+_0x36d94d;}}return null;},SessionsConnectResponse['fromObject']=function(object){if(object instanceof $root['SessionsConnectResponse'])return object;var _0x4be814=new $root['SessionsConnectResponse']();if(null!=object['channel']&&(_0x4be814['channel']=String(object['channel'])),object['sockets']){if(!Array['isArray'](object['sockets']))throw TypeError('.SessionsConnectResponse.sockets:\x20array\x20expected');_0x4be814['sockets']=[];for(var _0x2e641d=0x0;_0x2e641d<object['sockets']['length'];++_0x2e641d){if('object'!=typeof object['sockets'][_0x2e641d])throw TypeError('.SessionsConnectResponse.sockets:\x20object\x20expected');_0x4be814['sockets'][_0x2e641d]=$root['SessionsSocketDescriptor']['fromObject'](object['sockets'][_0x2e641d]);}}return _0x4be814;},SessionsConnectResponse['toObject']=function(_0x821ed6,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['sockets']=[]),options['defaults']&&(object['channel']=''),null!=_0x821ed6['channel']&&_0x821ed6['hasOwnProperty']('channel')&&(object['channel']=_0x821ed6['channel']),_0x821ed6['sockets']&&_0x821ed6['sockets']['length']){object['sockets']=[];for(var _0x45a1e9=0x0;_0x45a1e9<_0x821ed6['sockets']['length'];++_0x45a1e9)object['sockets'][_0x45a1e9]=$root['SessionsSocketDescriptor']['toObject'](_0x821ed6['sockets'][_0x45a1e9],options);}return object;},SessionsConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SessionsConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SessionsConnectResponse';},SessionsConnectResponse;}()),$root['SuggestionDescriptor']=(function(){function SuggestionDescriptor(properties){if(properties){for(var _0x597d6c=Object['keys'](properties),_0x3185f7=0x0;_0x3185f7<_0x597d6c['length'];++_0x3185f7)null!=properties[_0x597d6c[_0x3185f7]]&&(this[_0x597d6c[_0x3185f7]]=properties[_0x597d6c[_0x3185f7]]);}}return SuggestionDescriptor['prototype']['id']='',SuggestionDescriptor['prototype']['authorId']='',SuggestionDescriptor['prototype']['type']='',SuggestionDescriptor['prototype']['createdAt']='',SuggestionDescriptor['prototype']['data']='',SuggestionDescriptor['prototype']['hasComments']=!0x1,SuggestionDescriptor['prototype']['state']='',SuggestionDescriptor['prototype']['attributes']='',SuggestionDescriptor['create']=function(properties){return new SuggestionDescriptor(properties);},SuggestionDescriptor['encode']=function(_0x32a314,writer){return writer||(writer=$Writer['create']()),null!=_0x32a314['id']&&Object['hasOwnProperty']['call'](_0x32a314,'id')&&writer['uint32'](0xa)['string'](_0x32a314['id']),null!=_0x32a314['authorId']&&Object['hasOwnProperty']['call'](_0x32a314,'authorId')&&writer['uint32'](0x12)['string'](_0x32a314['authorId']),null!=_0x32a314['type']&&Object['hasOwnProperty']['call'](_0x32a314,'type')&&writer['uint32'](0x1a)['string'](_0x32a314['type']),null!=_0x32a314['createdAt']&&Object['hasOwnProperty']['call'](_0x32a314,'createdAt')&&writer['uint32'](0x22)['string'](_0x32a314['createdAt']),null!=_0x32a314['data']&&Object['hasOwnProperty']['call'](_0x32a314,'data')&&writer['uint32'](0x2a)['string'](_0x32a314['data']),null!=_0x32a314['hasComments']&&Object['hasOwnProperty']['call'](_0x32a314,'hasComments')&&writer['uint32'](0x30)['bool'](_0x32a314['hasComments']),null!=_0x32a314['state']&&Object['hasOwnProperty']['call'](_0x32a314,'state')&&writer['uint32'](0x3a)['string'](_0x32a314['state']),null!=_0x32a314['attributes']&&Object['hasOwnProperty']['call'](_0x32a314,'attributes')&&writer['uint32'](0x42)['string'](_0x32a314['attributes']),writer;},SuggestionDescriptor['encodeDelimited']=function(_0x11aad5,writer){return this['encode'](_0x11aad5,writer)['ldelim']();},SuggestionDescriptor['decode']=function(_0x463162,length,_0x58cd15){_0x463162 instanceof _0x7b4aff||(_0x463162=_0x7b4aff['create'](_0x463162));for(var _0x570116=void 0x0===length?_0x463162['len']:_0x463162['pos']+length,_0x570c60=new $root['SuggestionDescriptor']();_0x463162['pos']<_0x570116;){var tag=_0x463162['uint32']();if(tag===_0x58cd15)break;switch(tag>>>0x3){case 0x1:_0x570c60['id']=_0x463162['string']();break;case 0x2:_0x570c60['authorId']=_0x463162['string']();break;case 0x3:_0x570c60['type']=_0x463162['string']();break;case 0x4:_0x570c60['createdAt']=_0x463162['string']();break;case 0x5:_0x570c60['data']=_0x463162['string']();break;case 0x6:_0x570c60['hasComments']=_0x463162['bool']();break;case 0x7:_0x570c60['state']=_0x463162['string']();break;case 0x8:_0x570c60['attributes']=_0x463162['string']();break;default:_0x463162['skipType'](0x7&tag);}}return _0x570c60;},SuggestionDescriptor['decodeDelimited']=function(_0x2e72bb){return _0x2e72bb instanceof _0x7b4aff||(_0x2e72bb=new _0x7b4aff(_0x2e72bb)),this['decode'](_0x2e72bb,_0x2e72bb['uint32']());},SuggestionDescriptor['verify']=function(_0x3cb2e1){return'object'!=typeof _0x3cb2e1||null===_0x3cb2e1?'object\x20expected':null!=_0x3cb2e1['id']&&_0x3cb2e1['hasOwnProperty']('id')&&!$util['isString'](_0x3cb2e1['id'])?'id:\x20string\x20expected':null!=_0x3cb2e1['authorId']&&_0x3cb2e1['hasOwnProperty']('authorId')&&!$util['isString'](_0x3cb2e1['authorId'])?'authorId:\x20string\x20expected':null!=_0x3cb2e1['type']&&_0x3cb2e1['hasOwnProperty']('type')&&!$util['isString'](_0x3cb2e1['type'])?'type:\x20string\x20expected':null!=_0x3cb2e1['createdAt']&&_0x3cb2e1['hasOwnProperty']('createdAt')&&!$util['isString'](_0x3cb2e1['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3cb2e1['data']&&_0x3cb2e1['hasOwnProperty']('data')&&!$util['isString'](_0x3cb2e1['data'])?'data:\x20string\x20expected':null!=_0x3cb2e1['hasComments']&&_0x3cb2e1['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x3cb2e1['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x3cb2e1['state']&&_0x3cb2e1['hasOwnProperty']('state')&&!$util['isString'](_0x3cb2e1['state'])?'state:\x20string\x20expected':null!=_0x3cb2e1['attributes']&&_0x3cb2e1['hasOwnProperty']('attributes')&&!$util['isString'](_0x3cb2e1['attributes'])?'attributes:\x20string\x20expected':null;},SuggestionDescriptor['fromObject']=function(object){if(object instanceof $root['SuggestionDescriptor'])return object;var _0x18eec7=new $root['SuggestionDescriptor']();return null!=object['id']&&(_0x18eec7['id']=String(object['id'])),null!=object['authorId']&&(_0x18eec7['authorId']=String(object['authorId'])),null!=object['type']&&(_0x18eec7['type']=String(object['type'])),null!=object['createdAt']&&(_0x18eec7['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x18eec7['data']=String(object['data'])),null!=object['hasComments']&&(_0x18eec7['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x18eec7['state']=String(object['state'])),null!=object['attributes']&&(_0x18eec7['attributes']=String(object['attributes'])),_0x18eec7;},SuggestionDescriptor['toObject']=function(_0x59ffd7,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['authorId']='',object['type']='',object['createdAt']='',object['data']='',object['hasComments']=!0x1,object['state']='',object['attributes']=''),null!=_0x59ffd7['id']&&_0x59ffd7['hasOwnProperty']('id')&&(object['id']=_0x59ffd7['id']),null!=_0x59ffd7['authorId']&&_0x59ffd7['hasOwnProperty']('authorId')&&(object['authorId']=_0x59ffd7['authorId']),null!=_0x59ffd7['type']&&_0x59ffd7['hasOwnProperty']('type')&&(object['type']=_0x59ffd7['type']),null!=_0x59ffd7['createdAt']&&_0x59ffd7['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x59ffd7['createdAt']),null!=_0x59ffd7['data']&&_0x59ffd7['hasOwnProperty']('data')&&(object['data']=_0x59ffd7['data']),null!=_0x59ffd7['hasComments']&&_0x59ffd7['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x59ffd7['hasComments']),null!=_0x59ffd7['state']&&_0x59ffd7['hasOwnProperty']('state')&&(object['state']=_0x59ffd7['state']),null!=_0x59ffd7['attributes']&&_0x59ffd7['hasOwnProperty']('attributes')&&(object['attributes']=_0x59ffd7['attributes']),object;},SuggestionDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SuggestionDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SuggestionDescriptor';},SuggestionDescriptor;}()),$root['TrackChangesAddSuggestionMessage']=(function(){function TrackChangesAddSuggestionMessage(properties){if(properties){for(var _0x42c0af=Object['keys'](properties),_0x1cafa9=0x0;_0x1cafa9<_0x42c0af['length'];++_0x1cafa9)null!=properties[_0x42c0af[_0x1cafa9]]&&(this[_0x42c0af[_0x1cafa9]]=properties[_0x42c0af[_0x1cafa9]]);}}return TrackChangesAddSuggestionMessage['prototype']['id']='',TrackChangesAddSuggestionMessage['prototype']['documentId']='',TrackChangesAddSuggestionMessage['prototype']['type']='',TrackChangesAddSuggestionMessage['prototype']['data']='',TrackChangesAddSuggestionMessage['prototype']['originalSuggestionId']='',TrackChangesAddSuggestionMessage['prototype']['attributes']='',TrackChangesAddSuggestionMessage['create']=function(properties){return new TrackChangesAddSuggestionMessage(properties);},TrackChangesAddSuggestionMessage['encode']=function(_0x1124f4,writer){return writer||(writer=$Writer['create']()),null!=_0x1124f4['id']&&Object['hasOwnProperty']['call'](_0x1124f4,'id')&&writer['uint32'](0xa)['string'](_0x1124f4['id']),null!=_0x1124f4['documentId']&&Object['hasOwnProperty']['call'](_0x1124f4,'documentId')&&writer['uint32'](0x12)['string'](_0x1124f4['documentId']),null!=_0x1124f4['type']&&Object['hasOwnProperty']['call'](_0x1124f4,'type')&&writer['uint32'](0x1a)['string'](_0x1124f4['type']),null!=_0x1124f4['data']&&Object['hasOwnProperty']['call'](_0x1124f4,'data')&&writer['uint32'](0x22)['string'](_0x1124f4['data']),null!=_0x1124f4['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x1124f4,'originalSuggestionId')&&writer['uint32'](0x2a)['string'](_0x1124f4['originalSuggestionId']),null!=_0x1124f4['attributes']&&Object['hasOwnProperty']['call'](_0x1124f4,'attributes')&&writer['uint32'](0x32)['string'](_0x1124f4['attributes']),writer;},TrackChangesAddSuggestionMessage['encodeDelimited']=function(_0x39f62a,writer){return this['encode'](_0x39f62a,writer)['ldelim']();},TrackChangesAddSuggestionMessage['decode']=function(_0x4afd2d,length,_0x16fadf){_0x4afd2d instanceof _0x7b4aff||(_0x4afd2d=_0x7b4aff['create'](_0x4afd2d));for(var _0x1f0d98=void 0x0===length?_0x4afd2d['len']:_0x4afd2d['pos']+length,_0x319375=new $root['TrackChangesAddSuggestionMessage']();_0x4afd2d['pos']<_0x1f0d98;){var tag=_0x4afd2d['uint32']();if(tag===_0x16fadf)break;switch(tag>>>0x3){case 0x1:_0x319375['id']=_0x4afd2d['string']();break;case 0x2:_0x319375['documentId']=_0x4afd2d['string']();break;case 0x3:_0x319375['type']=_0x4afd2d['string']();break;case 0x4:_0x319375['data']=_0x4afd2d['string']();break;case 0x5:_0x319375['originalSuggestionId']=_0x4afd2d['string']();break;case 0x6:_0x319375['attributes']=_0x4afd2d['string']();break;default:_0x4afd2d['skipType'](0x7&tag);}}return _0x319375;},TrackChangesAddSuggestionMessage['decodeDelimited']=function(_0x11e4b6){return _0x11e4b6 instanceof _0x7b4aff||(_0x11e4b6=new _0x7b4aff(_0x11e4b6)),this['decode'](_0x11e4b6,_0x11e4b6['uint32']());},TrackChangesAddSuggestionMessage['verify']=function(_0x39e273){return'object'!=typeof _0x39e273||null===_0x39e273?'object\x20expected':null!=_0x39e273['id']&&_0x39e273['hasOwnProperty']('id')&&!$util['isString'](_0x39e273['id'])?'id:\x20string\x20expected':null!=_0x39e273['documentId']&&_0x39e273['hasOwnProperty']('documentId')&&!$util['isString'](_0x39e273['documentId'])?'documentId:\x20string\x20expected':null!=_0x39e273['type']&&_0x39e273['hasOwnProperty']('type')&&!$util['isString'](_0x39e273['type'])?'type:\x20string\x20expected':null!=_0x39e273['data']&&_0x39e273['hasOwnProperty']('data')&&!$util['isString'](_0x39e273['data'])?'data:\x20string\x20expected':null!=_0x39e273['originalSuggestionId']&&_0x39e273['hasOwnProperty']('originalSuggestionId')&&!$util['isString'](_0x39e273['originalSuggestionId'])?'originalSuggestionId:\x20string\x20expected':null!=_0x39e273['attributes']&&_0x39e273['hasOwnProperty']('attributes')&&!$util['isString'](_0x39e273['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesAddSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesAddSuggestionMessage'])return object;var _0x4ebb7b=new $root['TrackChangesAddSuggestionMessage']();return null!=object['id']&&(_0x4ebb7b['id']=String(object['id'])),null!=object['documentId']&&(_0x4ebb7b['documentId']=String(object['documentId'])),null!=object['type']&&(_0x4ebb7b['type']=String(object['type'])),null!=object['data']&&(_0x4ebb7b['data']=String(object['data'])),null!=object['originalSuggestionId']&&(_0x4ebb7b['originalSuggestionId']=String(object['originalSuggestionId'])),null!=object['attributes']&&(_0x4ebb7b['attributes']=String(object['attributes'])),_0x4ebb7b;},TrackChangesAddSuggestionMessage['toObject']=function(_0x5a901e,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['documentId']='',object['type']='',object['data']='',object['originalSuggestionId']='',object['attributes']=''),null!=_0x5a901e['id']&&_0x5a901e['hasOwnProperty']('id')&&(object['id']=_0x5a901e['id']),null!=_0x5a901e['documentId']&&_0x5a901e['hasOwnProperty']('documentId')&&(object['documentId']=_0x5a901e['documentId']),null!=_0x5a901e['type']&&_0x5a901e['hasOwnProperty']('type')&&(object['type']=_0x5a901e['type']),null!=_0x5a901e['data']&&_0x5a901e['hasOwnProperty']('data')&&(object['data']=_0x5a901e['data']),null!=_0x5a901e['originalSuggestionId']&&_0x5a901e['hasOwnProperty']('originalSuggestionId')&&(object['originalSuggestionId']=_0x5a901e['originalSuggestionId']),null!=_0x5a901e['attributes']&&_0x5a901e['hasOwnProperty']('attributes')&&(object['attributes']=_0x5a901e['attributes']),object;},TrackChangesAddSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesAddSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesAddSuggestionMessage';},TrackChangesAddSuggestionMessage;}()),$root['TrackChangesBatchUpdateSuggestionsStateMessage']=(function(){function TrackChangesBatchUpdateSuggestionsStateMessage(properties){if(this['ids']=[],properties){for(var _0x38fdd6=Object['keys'](properties),_0x17570d=0x0;_0x17570d<_0x38fdd6['length'];++_0x17570d)null!=properties[_0x38fdd6[_0x17570d]]&&(this[_0x38fdd6[_0x17570d]]=properties[_0x38fdd6[_0x17570d]]);}}return TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['ids']=$util['emptyArray'],TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['documentId']='',TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['state']='',TrackChangesBatchUpdateSuggestionsStateMessage['create']=function(properties){return new TrackChangesBatchUpdateSuggestionsStateMessage(properties);},TrackChangesBatchUpdateSuggestionsStateMessage['encode']=function(_0x2b9baf,writer){if(writer||(writer=$Writer['create']()),null!=_0x2b9baf['ids']&&_0x2b9baf['ids']['length']){for(var _0x1e8c1e=0x0;_0x1e8c1e<_0x2b9baf['ids']['length'];++_0x1e8c1e)writer['uint32'](0xa)['string'](_0x2b9baf['ids'][_0x1e8c1e]);}return null!=_0x2b9baf['documentId']&&Object['hasOwnProperty']['call'](_0x2b9baf,'documentId')&&writer['uint32'](0x12)['string'](_0x2b9baf['documentId']),null!=_0x2b9baf['state']&&Object['hasOwnProperty']['call'](_0x2b9baf,'state')&&writer['uint32'](0x1a)['string'](_0x2b9baf['state']),writer;},TrackChangesBatchUpdateSuggestionsStateMessage['encodeDelimited']=function(_0x52cccc,writer){return this['encode'](_0x52cccc,writer)['ldelim']();},TrackChangesBatchUpdateSuggestionsStateMessage['decode']=function(_0x2a36e2,length,_0x19d975){_0x2a36e2 instanceof _0x7b4aff||(_0x2a36e2=_0x7b4aff['create'](_0x2a36e2));for(var _0x21d30a=void 0x0===length?_0x2a36e2['len']:_0x2a36e2['pos']+length,_0x469f8c=new $root['TrackChangesBatchUpdateSuggestionsStateMessage']();_0x2a36e2['pos']<_0x21d30a;){var tag=_0x2a36e2['uint32']();if(tag===_0x19d975)break;switch(tag>>>0x3){case 0x1:_0x469f8c['ids']&&_0x469f8c['ids']['length']||(_0x469f8c['ids']=[]),_0x469f8c['ids']['push'](_0x2a36e2['string']());break;case 0x2:_0x469f8c['documentId']=_0x2a36e2['string']();break;case 0x3:_0x469f8c['state']=_0x2a36e2['string']();break;default:_0x2a36e2['skipType'](0x7&tag);}}return _0x469f8c;},TrackChangesBatchUpdateSuggestionsStateMessage['decodeDelimited']=function(_0x5b10a2){return _0x5b10a2 instanceof _0x7b4aff||(_0x5b10a2=new _0x7b4aff(_0x5b10a2)),this['decode'](_0x5b10a2,_0x5b10a2['uint32']());},TrackChangesBatchUpdateSuggestionsStateMessage['verify']=function(_0x131fb0){if('object'!=typeof _0x131fb0||null===_0x131fb0)return'object\x20expected';if(null!=_0x131fb0['ids']&&_0x131fb0['hasOwnProperty']('ids')){if(!Array['isArray'](_0x131fb0['ids']))return'ids:\x20array\x20expected';for(var _0x57e9de=0x0;_0x57e9de<_0x131fb0['ids']['length'];++_0x57e9de)if(!$util['isString'](_0x131fb0['ids'][_0x57e9de]))return'ids:\x20string[]\x20expected';}return null!=_0x131fb0['documentId']&&_0x131fb0['hasOwnProperty']('documentId')&&!$util['isString'](_0x131fb0['documentId'])?'documentId:\x20string\x20expected':null!=_0x131fb0['state']&&_0x131fb0['hasOwnProperty']('state')&&!$util['isString'](_0x131fb0['state'])?'state:\x20string\x20expected':null;},TrackChangesBatchUpdateSuggestionsStateMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesBatchUpdateSuggestionsStateMessage'])return object;var _0x252a4b=new $root['TrackChangesBatchUpdateSuggestionsStateMessage']();if(object['ids']){if(!Array['isArray'](object['ids']))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage.ids:\x20array\x20expected');_0x252a4b['ids']=[];for(var _0x4ff1c9=0x0;_0x4ff1c9<object['ids']['length'];++_0x4ff1c9)_0x252a4b['ids'][_0x4ff1c9]=String(object['ids'][_0x4ff1c9]);}return null!=object['documentId']&&(_0x252a4b['documentId']=String(object['documentId'])),null!=object['state']&&(_0x252a4b['state']=String(object['state'])),_0x252a4b;},TrackChangesBatchUpdateSuggestionsStateMessage['toObject']=function(_0x46db93,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['ids']=[]),options['defaults']&&(object['documentId']='',object['state']=''),_0x46db93['ids']&&_0x46db93['ids']['length']){object['ids']=[];for(var _0x3eaa8e=0x0;_0x3eaa8e<_0x46db93['ids']['length'];++_0x3eaa8e)object['ids'][_0x3eaa8e]=_0x46db93['ids'][_0x3eaa8e];}return null!=_0x46db93['documentId']&&_0x46db93['hasOwnProperty']('documentId')&&(object['documentId']=_0x46db93['documentId']),null!=_0x46db93['state']&&_0x46db93['hasOwnProperty']('state')&&(object['state']=_0x46db93['state']),object;},TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesBatchUpdateSuggestionsStateMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesBatchUpdateSuggestionsStateMessage';},TrackChangesBatchUpdateSuggestionsStateMessage;}()),$root['TrackChangesConnectMessage']=(function(){function TrackChangesConnectMessage(properties){if(properties){for(var _0x4d7194=Object['keys'](properties),_0x32cad6=0x0;_0x32cad6<_0x4d7194['length'];++_0x32cad6)null!=properties[_0x4d7194[_0x32cad6]]&&(this[_0x4d7194[_0x32cad6]]=properties[_0x4d7194[_0x32cad6]]);}}return TrackChangesConnectMessage['prototype']['documentId']='',TrackChangesConnectMessage['create']=function(properties){return new TrackChangesConnectMessage(properties);},TrackChangesConnectMessage['encode']=function(_0x56d00b,writer){return writer||(writer=$Writer['create']()),null!=_0x56d00b['documentId']&&Object['hasOwnProperty']['call'](_0x56d00b,'documentId')&&writer['uint32'](0xa)['string'](_0x56d00b['documentId']),writer;},TrackChangesConnectMessage['encodeDelimited']=function(_0x455788,writer){return this['encode'](_0x455788,writer)['ldelim']();},TrackChangesConnectMessage['decode']=function(_0x3c081b,length,_0x4424c1){_0x3c081b instanceof _0x7b4aff||(_0x3c081b=_0x7b4aff['create'](_0x3c081b));for(var _0x5e86b3=void 0x0===length?_0x3c081b['len']:_0x3c081b['pos']+length,_0x5665ed=new $root['TrackChangesConnectMessage']();_0x3c081b['pos']<_0x5e86b3;){var tag=_0x3c081b['uint32']();if(tag===_0x4424c1)break;if(tag>>>0x3==0x1)_0x5665ed['documentId']=_0x3c081b['string']();else _0x3c081b['skipType'](0x7&tag);}return _0x5665ed;},TrackChangesConnectMessage['decodeDelimited']=function(_0x535575){return _0x535575 instanceof _0x7b4aff||(_0x535575=new _0x7b4aff(_0x535575)),this['decode'](_0x535575,_0x535575['uint32']());},TrackChangesConnectMessage['verify']=function(_0xda37f4){return'object'!=typeof _0xda37f4||null===_0xda37f4?'object\x20expected':null!=_0xda37f4['documentId']&&_0xda37f4['hasOwnProperty']('documentId')&&!$util['isString'](_0xda37f4['documentId'])?'documentId:\x20string\x20expected':null;},TrackChangesConnectMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesConnectMessage'])return object;var _0x57064a=new $root['TrackChangesConnectMessage']();return null!=object['documentId']&&(_0x57064a['documentId']=String(object['documentId'])),_0x57064a;},TrackChangesConnectMessage['toObject']=function(_0x488f83,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x488f83['documentId']&&_0x488f83['hasOwnProperty']('documentId')&&(object['documentId']=_0x488f83['documentId']),object;},TrackChangesConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesConnectMessage';},TrackChangesConnectMessage;}()),$root['TrackChangesGetAllSuggestionMessage']=(function(){function TrackChangesGetAllSuggestionMessage(properties){if(properties){for(var _0x5d198=Object['keys'](properties),_0x507112=0x0;_0x507112<_0x5d198['length'];++_0x507112)null!=properties[_0x5d198[_0x507112]]&&(this[_0x5d198[_0x507112]]=properties[_0x5d198[_0x507112]]);}}return TrackChangesGetAllSuggestionMessage['prototype']['documentId']='',TrackChangesGetAllSuggestionMessage['create']=function(properties){return new TrackChangesGetAllSuggestionMessage(properties);},TrackChangesGetAllSuggestionMessage['encode']=function(_0x2b3323,writer){return writer||(writer=$Writer['create']()),null!=_0x2b3323['documentId']&&Object['hasOwnProperty']['call'](_0x2b3323,'documentId')&&writer['uint32'](0xa)['string'](_0x2b3323['documentId']),writer;},TrackChangesGetAllSuggestionMessage['encodeDelimited']=function(_0x9a526f,writer){return this['encode'](_0x9a526f,writer)['ldelim']();},TrackChangesGetAllSuggestionMessage['decode']=function(_0x2aafcc,length,_0x3adaf6){_0x2aafcc instanceof _0x7b4aff||(_0x2aafcc=_0x7b4aff['create'](_0x2aafcc));for(var _0xd8d129=void 0x0===length?_0x2aafcc['len']:_0x2aafcc['pos']+length,_0x9b7af=new $root['TrackChangesGetAllSuggestionMessage']();_0x2aafcc['pos']<_0xd8d129;){var tag=_0x2aafcc['uint32']();if(tag===_0x3adaf6)break;if(tag>>>0x3==0x1)_0x9b7af['documentId']=_0x2aafcc['string']();else _0x2aafcc['skipType'](0x7&tag);}return _0x9b7af;},TrackChangesGetAllSuggestionMessage['decodeDelimited']=function(_0x29bfc3){return _0x29bfc3 instanceof _0x7b4aff||(_0x29bfc3=new _0x7b4aff(_0x29bfc3)),this['decode'](_0x29bfc3,_0x29bfc3['uint32']());},TrackChangesGetAllSuggestionMessage['verify']=function(_0x5e2967){return'object'!=typeof _0x5e2967||null===_0x5e2967?'object\x20expected':null!=_0x5e2967['documentId']&&_0x5e2967['hasOwnProperty']('documentId')&&!$util['isString'](_0x5e2967['documentId'])?'documentId:\x20string\x20expected':null;},TrackChangesGetAllSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesGetAllSuggestionMessage'])return object;var _0x1a073c=new $root['TrackChangesGetAllSuggestionMessage']();return null!=object['documentId']&&(_0x1a073c['documentId']=String(object['documentId'])),_0x1a073c;},TrackChangesGetAllSuggestionMessage['toObject']=function(_0x289ec8,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x289ec8['documentId']&&_0x289ec8['hasOwnProperty']('documentId')&&(object['documentId']=_0x289ec8['documentId']),object;},TrackChangesGetAllSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetAllSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetAllSuggestionMessage';},TrackChangesGetAllSuggestionMessage;}()),$root['TrackChangesGetSuggestionMessage']=(function(){function TrackChangesGetSuggestionMessage(properties){if(properties){for(var _0x2ac02f=Object['keys'](properties),_0xb898e5=0x0;_0xb898e5<_0x2ac02f['length'];++_0xb898e5)null!=properties[_0x2ac02f[_0xb898e5]]&&(this[_0x2ac02f[_0xb898e5]]=properties[_0x2ac02f[_0xb898e5]]);}}return TrackChangesGetSuggestionMessage['prototype']['id']='',TrackChangesGetSuggestionMessage['prototype']['documentId']='',TrackChangesGetSuggestionMessage['create']=function(properties){return new TrackChangesGetSuggestionMessage(properties);},TrackChangesGetSuggestionMessage['encode']=function(_0x52816a,writer){return writer||(writer=$Writer['create']()),null!=_0x52816a['id']&&Object['hasOwnProperty']['call'](_0x52816a,'id')&&writer['uint32'](0xa)['string'](_0x52816a['id']),null!=_0x52816a['documentId']&&Object['hasOwnProperty']['call'](_0x52816a,'documentId')&&writer['uint32'](0x12)['string'](_0x52816a['documentId']),writer;},TrackChangesGetSuggestionMessage['encodeDelimited']=function(_0x1acc08,writer){return this['encode'](_0x1acc08,writer)['ldelim']();},TrackChangesGetSuggestionMessage['decode']=function(_0x156dd0,length,_0x38740e){_0x156dd0 instanceof _0x7b4aff||(_0x156dd0=_0x7b4aff['create'](_0x156dd0));for(var _0x33dfc1=void 0x0===length?_0x156dd0['len']:_0x156dd0['pos']+length,_0x5d46e6=new $root['TrackChangesGetSuggestionMessage']();_0x156dd0['pos']<_0x33dfc1;){var tag=_0x156dd0['uint32']();if(tag===_0x38740e)break;switch(tag>>>0x3){case 0x1:_0x5d46e6['id']=_0x156dd0['string']();break;case 0x2:_0x5d46e6['documentId']=_0x156dd0['string']();break;default:_0x156dd0['skipType'](0x7&tag);}}return _0x5d46e6;},TrackChangesGetSuggestionMessage['decodeDelimited']=function(_0x182760){return _0x182760 instanceof _0x7b4aff||(_0x182760=new _0x7b4aff(_0x182760)),this['decode'](_0x182760,_0x182760['uint32']());},TrackChangesGetSuggestionMessage['verify']=function(_0x5722d6){return'object'!=typeof _0x5722d6||null===_0x5722d6?'object\x20expected':null!=_0x5722d6['id']&&_0x5722d6['hasOwnProperty']('id')&&!$util['isString'](_0x5722d6['id'])?'id:\x20string\x20expected':null!=_0x5722d6['documentId']&&_0x5722d6['hasOwnProperty']('documentId')&&!$util['isString'](_0x5722d6['documentId'])?'documentId:\x20string\x20expected':null;},TrackChangesGetSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesGetSuggestionMessage'])return object;var _0x24a8a2=new $root['TrackChangesGetSuggestionMessage']();return null!=object['id']&&(_0x24a8a2['id']=String(object['id'])),null!=object['documentId']&&(_0x24a8a2['documentId']=String(object['documentId'])),_0x24a8a2;},TrackChangesGetSuggestionMessage['toObject']=function(_0x348ba9,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['documentId']=''),null!=_0x348ba9['id']&&_0x348ba9['hasOwnProperty']('id')&&(object['id']=_0x348ba9['id']),null!=_0x348ba9['documentId']&&_0x348ba9['hasOwnProperty']('documentId')&&(object['documentId']=_0x348ba9['documentId']),object;},TrackChangesGetSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetSuggestionMessage';},TrackChangesGetSuggestionMessage;}()),$root['TrackChangesUpdateSuggestionMessage']=(function(){function TrackChangesUpdateSuggestionMessage(properties){if(properties){for(var _0x2c0ee2=Object['keys'](properties),_0x5d4b6d=0x0;_0x5d4b6d<_0x2c0ee2['length'];++_0x5d4b6d)null!=properties[_0x2c0ee2[_0x5d4b6d]]&&(this[_0x2c0ee2[_0x5d4b6d]]=properties[_0x2c0ee2[_0x5d4b6d]]);}}return TrackChangesUpdateSuggestionMessage['prototype']['id']='',TrackChangesUpdateSuggestionMessage['prototype']['documentId']='',TrackChangesUpdateSuggestionMessage['prototype']['hasComments']=!0x1,TrackChangesUpdateSuggestionMessage['prototype']['isHasCommentsModified']=!0x1,TrackChangesUpdateSuggestionMessage['prototype']['state']='',TrackChangesUpdateSuggestionMessage['prototype']['attributes']='',TrackChangesUpdateSuggestionMessage['create']=function(properties){return new TrackChangesUpdateSuggestionMessage(properties);},TrackChangesUpdateSuggestionMessage['encode']=function(_0x47826e,writer){return writer||(writer=$Writer['create']()),null!=_0x47826e['id']&&Object['hasOwnProperty']['call'](_0x47826e,'id')&&writer['uint32'](0xa)['string'](_0x47826e['id']),null!=_0x47826e['documentId']&&Object['hasOwnProperty']['call'](_0x47826e,'documentId')&&writer['uint32'](0x12)['string'](_0x47826e['documentId']),null!=_0x47826e['hasComments']&&Object['hasOwnProperty']['call'](_0x47826e,'hasComments')&&writer['uint32'](0x18)['bool'](_0x47826e['hasComments']),null!=_0x47826e['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x47826e,'isHasCommentsModified')&&writer['uint32'](0x20)['bool'](_0x47826e['isHasCommentsModified']),null!=_0x47826e['state']&&Object['hasOwnProperty']['call'](_0x47826e,'state')&&writer['uint32'](0x2a)['string'](_0x47826e['state']),null!=_0x47826e['attributes']&&Object['hasOwnProperty']['call'](_0x47826e,'attributes')&&writer['uint32'](0x32)['string'](_0x47826e['attributes']),writer;},TrackChangesUpdateSuggestionMessage['encodeDelimited']=function(_0x38e28b,writer){return this['encode'](_0x38e28b,writer)['ldelim']();},TrackChangesUpdateSuggestionMessage['decode']=function(_0x3eba1a,length,_0x49cf9b){_0x3eba1a instanceof _0x7b4aff||(_0x3eba1a=_0x7b4aff['create'](_0x3eba1a));for(var _0x1ab547=void 0x0===length?_0x3eba1a['len']:_0x3eba1a['pos']+length,_0x1ffcd4=new $root['TrackChangesUpdateSuggestionMessage']();_0x3eba1a['pos']<_0x1ab547;){var tag=_0x3eba1a['uint32']();if(tag===_0x49cf9b)break;switch(tag>>>0x3){case 0x1:_0x1ffcd4['id']=_0x3eba1a['string']();break;case 0x2:_0x1ffcd4['documentId']=_0x3eba1a['string']();break;case 0x3:_0x1ffcd4['hasComments']=_0x3eba1a['bool']();break;case 0x4:_0x1ffcd4['isHasCommentsModified']=_0x3eba1a['bool']();break;case 0x5:_0x1ffcd4['state']=_0x3eba1a['string']();break;case 0x6:_0x1ffcd4['attributes']=_0x3eba1a['string']();break;default:_0x3eba1a['skipType'](0x7&tag);}}return _0x1ffcd4;},TrackChangesUpdateSuggestionMessage['decodeDelimited']=function(_0x40d5b4){return _0x40d5b4 instanceof _0x7b4aff||(_0x40d5b4=new _0x7b4aff(_0x40d5b4)),this['decode'](_0x40d5b4,_0x40d5b4['uint32']());},TrackChangesUpdateSuggestionMessage['verify']=function(_0x4809cf){return'object'!=typeof _0x4809cf||null===_0x4809cf?'object\x20expected':null!=_0x4809cf['id']&&_0x4809cf['hasOwnProperty']('id')&&!$util['isString'](_0x4809cf['id'])?'id:\x20string\x20expected':null!=_0x4809cf['documentId']&&_0x4809cf['hasOwnProperty']('documentId')&&!$util['isString'](_0x4809cf['documentId'])?'documentId:\x20string\x20expected':null!=_0x4809cf['hasComments']&&_0x4809cf['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x4809cf['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x4809cf['isHasCommentsModified']&&_0x4809cf['hasOwnProperty']('isHasCommentsModified')&&'boolean'!=typeof _0x4809cf['isHasCommentsModified']?'isHasCommentsModified:\x20boolean\x20expected':null!=_0x4809cf['state']&&_0x4809cf['hasOwnProperty']('state')&&!$util['isString'](_0x4809cf['state'])?'state:\x20string\x20expected':null!=_0x4809cf['attributes']&&_0x4809cf['hasOwnProperty']('attributes')&&!$util['isString'](_0x4809cf['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesUpdateSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesUpdateSuggestionMessage'])return object;var _0x24b222=new $root['TrackChangesUpdateSuggestionMessage']();return null!=object['id']&&(_0x24b222['id']=String(object['id'])),null!=object['documentId']&&(_0x24b222['documentId']=String(object['documentId'])),null!=object['hasComments']&&(_0x24b222['hasComments']=Boolean(object['hasComments'])),null!=object['isHasCommentsModified']&&(_0x24b222['isHasCommentsModified']=Boolean(object['isHasCommentsModified'])),null!=object['state']&&(_0x24b222['state']=String(object['state'])),null!=object['attributes']&&(_0x24b222['attributes']=String(object['attributes'])),_0x24b222;},TrackChangesUpdateSuggestionMessage['toObject']=function(_0x243990,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['documentId']='',object['hasComments']=!0x1,object['isHasCommentsModified']=!0x1,object['state']='',object['attributes']=''),null!=_0x243990['id']&&_0x243990['hasOwnProperty']('id')&&(object['id']=_0x243990['id']),null!=_0x243990['documentId']&&_0x243990['hasOwnProperty']('documentId')&&(object['documentId']=_0x243990['documentId']),null!=_0x243990['hasComments']&&_0x243990['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x243990['hasComments']),null!=_0x243990['isHasCommentsModified']&&_0x243990['hasOwnProperty']('isHasCommentsModified')&&(object['isHasCommentsModified']=_0x243990['isHasCommentsModified']),null!=_0x243990['state']&&_0x243990['hasOwnProperty']('state')&&(object['state']=_0x243990['state']),null!=_0x243990['attributes']&&_0x243990['hasOwnProperty']('attributes')&&(object['attributes']=_0x243990['attributes']),object;},TrackChangesUpdateSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesUpdateSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesUpdateSuggestionMessage';},TrackChangesUpdateSuggestionMessage;}()),$root['TrackChangesAddSuggestionResponse']=(function(){function TrackChangesAddSuggestionResponse(properties){if(properties){for(var _0x1db679=Object['keys'](properties),_0x369f20=0x0;_0x369f20<_0x1db679['length'];++_0x369f20)null!=properties[_0x1db679[_0x369f20]]&&(this[_0x1db679[_0x369f20]]=properties[_0x1db679[_0x369f20]]);}}return TrackChangesAddSuggestionResponse['prototype']['id']='',TrackChangesAddSuggestionResponse['prototype']['authorId']='',TrackChangesAddSuggestionResponse['prototype']['type']='',TrackChangesAddSuggestionResponse['prototype']['createdAt']='',TrackChangesAddSuggestionResponse['prototype']['data']='',TrackChangesAddSuggestionResponse['prototype']['hasComments']=!0x1,TrackChangesAddSuggestionResponse['prototype']['state']='',TrackChangesAddSuggestionResponse['prototype']['attributes']='',TrackChangesAddSuggestionResponse['create']=function(properties){return new TrackChangesAddSuggestionResponse(properties);},TrackChangesAddSuggestionResponse['encode']=function(_0x18ab47,writer){return writer||(writer=$Writer['create']()),null!=_0x18ab47['id']&&Object['hasOwnProperty']['call'](_0x18ab47,'id')&&writer['uint32'](0xa)['string'](_0x18ab47['id']),null!=_0x18ab47['authorId']&&Object['hasOwnProperty']['call'](_0x18ab47,'authorId')&&writer['uint32'](0x12)['string'](_0x18ab47['authorId']),null!=_0x18ab47['type']&&Object['hasOwnProperty']['call'](_0x18ab47,'type')&&writer['uint32'](0x1a)['string'](_0x18ab47['type']),null!=_0x18ab47['createdAt']&&Object['hasOwnProperty']['call'](_0x18ab47,'createdAt')&&writer['uint32'](0x22)['string'](_0x18ab47['createdAt']),null!=_0x18ab47['data']&&Object['hasOwnProperty']['call'](_0x18ab47,'data')&&writer['uint32'](0x2a)['string'](_0x18ab47['data']),null!=_0x18ab47['hasComments']&&Object['hasOwnProperty']['call'](_0x18ab47,'hasComments')&&writer['uint32'](0x30)['bool'](_0x18ab47['hasComments']),null!=_0x18ab47['state']&&Object['hasOwnProperty']['call'](_0x18ab47,'state')&&writer['uint32'](0x3a)['string'](_0x18ab47['state']),null!=_0x18ab47['attributes']&&Object['hasOwnProperty']['call'](_0x18ab47,'attributes')&&writer['uint32'](0x42)['string'](_0x18ab47['attributes']),writer;},TrackChangesAddSuggestionResponse['encodeDelimited']=function(_0x236315,writer){return this['encode'](_0x236315,writer)['ldelim']();},TrackChangesAddSuggestionResponse['decode']=function(_0x3e86ae,length,_0x397e14){_0x3e86ae instanceof _0x7b4aff||(_0x3e86ae=_0x7b4aff['create'](_0x3e86ae));for(var _0x345761=void 0x0===length?_0x3e86ae['len']:_0x3e86ae['pos']+length,_0x17bffc=new $root['TrackChangesAddSuggestionResponse']();_0x3e86ae['pos']<_0x345761;){var tag=_0x3e86ae['uint32']();if(tag===_0x397e14)break;switch(tag>>>0x3){case 0x1:_0x17bffc['id']=_0x3e86ae['string']();break;case 0x2:_0x17bffc['authorId']=_0x3e86ae['string']();break;case 0x3:_0x17bffc['type']=_0x3e86ae['string']();break;case 0x4:_0x17bffc['createdAt']=_0x3e86ae['string']();break;case 0x5:_0x17bffc['data']=_0x3e86ae['string']();break;case 0x6:_0x17bffc['hasComments']=_0x3e86ae['bool']();break;case 0x7:_0x17bffc['state']=_0x3e86ae['string']();break;case 0x8:_0x17bffc['attributes']=_0x3e86ae['string']();break;default:_0x3e86ae['skipType'](0x7&tag);}}return _0x17bffc;},TrackChangesAddSuggestionResponse['decodeDelimited']=function(_0x4c73cb){return _0x4c73cb instanceof _0x7b4aff||(_0x4c73cb=new _0x7b4aff(_0x4c73cb)),this['decode'](_0x4c73cb,_0x4c73cb['uint32']());},TrackChangesAddSuggestionResponse['verify']=function(_0x624a4f){return'object'!=typeof _0x624a4f||null===_0x624a4f?'object\x20expected':null!=_0x624a4f['id']&&_0x624a4f['hasOwnProperty']('id')&&!$util['isString'](_0x624a4f['id'])?'id:\x20string\x20expected':null!=_0x624a4f['authorId']&&_0x624a4f['hasOwnProperty']('authorId')&&!$util['isString'](_0x624a4f['authorId'])?'authorId:\x20string\x20expected':null!=_0x624a4f['type']&&_0x624a4f['hasOwnProperty']('type')&&!$util['isString'](_0x624a4f['type'])?'type:\x20string\x20expected':null!=_0x624a4f['createdAt']&&_0x624a4f['hasOwnProperty']('createdAt')&&!$util['isString'](_0x624a4f['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x624a4f['data']&&_0x624a4f['hasOwnProperty']('data')&&!$util['isString'](_0x624a4f['data'])?'data:\x20string\x20expected':null!=_0x624a4f['hasComments']&&_0x624a4f['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x624a4f['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x624a4f['state']&&_0x624a4f['hasOwnProperty']('state')&&!$util['isString'](_0x624a4f['state'])?'state:\x20string\x20expected':null!=_0x624a4f['attributes']&&_0x624a4f['hasOwnProperty']('attributes')&&!$util['isString'](_0x624a4f['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesAddSuggestionResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesAddSuggestionResponse'])return object;var _0x410198=new $root['TrackChangesAddSuggestionResponse']();return null!=object['id']&&(_0x410198['id']=String(object['id'])),null!=object['authorId']&&(_0x410198['authorId']=String(object['authorId'])),null!=object['type']&&(_0x410198['type']=String(object['type'])),null!=object['createdAt']&&(_0x410198['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x410198['data']=String(object['data'])),null!=object['hasComments']&&(_0x410198['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x410198['state']=String(object['state'])),null!=object['attributes']&&(_0x410198['attributes']=String(object['attributes'])),_0x410198;},TrackChangesAddSuggestionResponse['toObject']=function(_0x55e551,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['authorId']='',object['type']='',object['createdAt']='',object['data']='',object['hasComments']=!0x1,object['state']='',object['attributes']=''),null!=_0x55e551['id']&&_0x55e551['hasOwnProperty']('id')&&(object['id']=_0x55e551['id']),null!=_0x55e551['authorId']&&_0x55e551['hasOwnProperty']('authorId')&&(object['authorId']=_0x55e551['authorId']),null!=_0x55e551['type']&&_0x55e551['hasOwnProperty']('type')&&(object['type']=_0x55e551['type']),null!=_0x55e551['createdAt']&&_0x55e551['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x55e551['createdAt']),null!=_0x55e551['data']&&_0x55e551['hasOwnProperty']('data')&&(object['data']=_0x55e551['data']),null!=_0x55e551['hasComments']&&_0x55e551['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x55e551['hasComments']),null!=_0x55e551['state']&&_0x55e551['hasOwnProperty']('state')&&(object['state']=_0x55e551['state']),null!=_0x55e551['attributes']&&_0x55e551['hasOwnProperty']('attributes')&&(object['attributes']=_0x55e551['attributes']),object;},TrackChangesAddSuggestionResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesAddSuggestionResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesAddSuggestionResponse';},TrackChangesAddSuggestionResponse;}()),$root['TrackChangesConnectResponse']=(function(){function TrackChangesConnectResponse(properties){if(this['suggestions']=[],this['suggestionsV2']=[],properties){for(var _0x29228d=Object['keys'](properties),_0x13add3=0x0;_0x13add3<_0x29228d['length'];++_0x13add3)null!=properties[_0x29228d[_0x13add3]]&&(this[_0x29228d[_0x13add3]]=properties[_0x29228d[_0x13add3]]);}}return TrackChangesConnectResponse['prototype']['channel']='',TrackChangesConnectResponse['prototype']['suggestions']=$util['emptyArray'],TrackChangesConnectResponse['prototype']['suggestionsV2']=$util['emptyArray'],TrackChangesConnectResponse['create']=function(properties){return new TrackChangesConnectResponse(properties);},TrackChangesConnectResponse['encode']=function(_0x164dda,writer){if(writer||(writer=$Writer['create']()),null!=_0x164dda['channel']&&Object['hasOwnProperty']['call'](_0x164dda,'channel')&&writer['uint32'](0xa)['string'](_0x164dda['channel']),null!=_0x164dda['suggestions']&&_0x164dda['suggestions']['length']){for(var _0x1a1922=0x0;_0x1a1922<_0x164dda['suggestions']['length'];++_0x1a1922)writer['uint32'](0x12)['string'](_0x164dda['suggestions'][_0x1a1922]);}if(null!=_0x164dda['suggestionsV2']&&_0x164dda['suggestionsV2']['length']){for(_0x1a1922=0x0;_0x1a1922<_0x164dda['suggestionsV2']['length'];++_0x1a1922)$root['SuggestionDescriptor']['encode'](_0x164dda['suggestionsV2'][_0x1a1922],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},TrackChangesConnectResponse['encodeDelimited']=function(_0x1240df,writer){return this['encode'](_0x1240df,writer)['ldelim']();},TrackChangesConnectResponse['decode']=function(_0x4c7588,length,_0xa6c40d){_0x4c7588 instanceof _0x7b4aff||(_0x4c7588=_0x7b4aff['create'](_0x4c7588));for(var _0x20b9c7=void 0x0===length?_0x4c7588['len']:_0x4c7588['pos']+length,_0x39dc8a=new $root['TrackChangesConnectResponse']();_0x4c7588['pos']<_0x20b9c7;){var tag=_0x4c7588['uint32']();if(tag===_0xa6c40d)break;switch(tag>>>0x3){case 0x1:_0x39dc8a['channel']=_0x4c7588['string']();break;case 0x2:_0x39dc8a['suggestions']&&_0x39dc8a['suggestions']['length']||(_0x39dc8a['suggestions']=[]),_0x39dc8a['suggestions']['push'](_0x4c7588['string']());break;case 0x3:_0x39dc8a['suggestionsV2']&&_0x39dc8a['suggestionsV2']['length']||(_0x39dc8a['suggestionsV2']=[]),_0x39dc8a['suggestionsV2']['push']($root['SuggestionDescriptor']['decode'](_0x4c7588,_0x4c7588['uint32']()));break;default:_0x4c7588['skipType'](0x7&tag);}}return _0x39dc8a;},TrackChangesConnectResponse['decodeDelimited']=function(_0x183f89){return _0x183f89 instanceof _0x7b4aff||(_0x183f89=new _0x7b4aff(_0x183f89)),this['decode'](_0x183f89,_0x183f89['uint32']());},TrackChangesConnectResponse['verify']=function(_0x253bdf){if('object'!=typeof _0x253bdf||null===_0x253bdf)return'object\x20expected';if(null!=_0x253bdf['channel']&&_0x253bdf['hasOwnProperty']('channel')&&!$util['isString'](_0x253bdf['channel']))return'channel:\x20string\x20expected';if(null!=_0x253bdf['suggestions']&&_0x253bdf['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x253bdf['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x496c54=0x0;_0x496c54<_0x253bdf['suggestions']['length'];++_0x496c54)if(!$util['isString'](_0x253bdf['suggestions'][_0x496c54]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x253bdf['suggestionsV2']&&_0x253bdf['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x253bdf['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x496c54=0x0;_0x496c54<_0x253bdf['suggestionsV2']['length'];++_0x496c54){var _0x46acf7=$root['SuggestionDescriptor']['verify'](_0x253bdf['suggestionsV2'][_0x496c54]);if(_0x46acf7)return'suggestionsV2.'+_0x46acf7;}}return null;},TrackChangesConnectResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesConnectResponse'])return object;var _0x4d5bd4=new $root['TrackChangesConnectResponse']();if(null!=object['channel']&&(_0x4d5bd4['channel']=String(object['channel'])),object['suggestions']){if(!Array['isArray'](object['suggestions']))throw TypeError('.TrackChangesConnectResponse.suggestions:\x20array\x20expected');_0x4d5bd4['suggestions']=[];for(var _0x4ee256=0x0;_0x4ee256<object['suggestions']['length'];++_0x4ee256)_0x4d5bd4['suggestions'][_0x4ee256]=String(object['suggestions'][_0x4ee256]);}if(object['suggestionsV2']){if(!Array['isArray'](object['suggestionsV2']))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20array\x20expected');_0x4d5bd4['suggestionsV2']=[];for(_0x4ee256=0x0;_0x4ee256<object['suggestionsV2']['length'];++_0x4ee256){if('object'!=typeof object['suggestionsV2'][_0x4ee256])throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20object\x20expected');_0x4d5bd4['suggestionsV2'][_0x4ee256]=$root['SuggestionDescriptor']['fromObject'](object['suggestionsV2'][_0x4ee256]);}}return _0x4d5bd4;},TrackChangesConnectResponse['toObject']=function(_0xcfd386,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['suggestions']=[],object['suggestionsV2']=[]),options['defaults']&&(object['channel']=''),null!=_0xcfd386['channel']&&_0xcfd386['hasOwnProperty']('channel')&&(object['channel']=_0xcfd386['channel']),_0xcfd386['suggestions']&&_0xcfd386['suggestions']['length']){object['suggestions']=[];for(var _0x854b86=0x0;_0x854b86<_0xcfd386['suggestions']['length'];++_0x854b86)object['suggestions'][_0x854b86]=_0xcfd386['suggestions'][_0x854b86];}if(_0xcfd386['suggestionsV2']&&_0xcfd386['suggestionsV2']['length']){object['suggestionsV2']=[];for(_0x854b86=0x0;_0x854b86<_0xcfd386['suggestionsV2']['length'];++_0x854b86)object['suggestionsV2'][_0x854b86]=$root['SuggestionDescriptor']['toObject'](_0xcfd386['suggestionsV2'][_0x854b86],options);}return object;},TrackChangesConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesConnectResponse';},TrackChangesConnectResponse;}()),$root['TrackChangesGetAllSuggestionsResponse']=(function(){function TrackChangesGetAllSuggestionsResponse(properties){if(this['suggestions']=[],this['suggestionsV2']=[],properties){for(var _0x2e2899=Object['keys'](properties),_0x28ee87=0x0;_0x28ee87<_0x2e2899['length'];++_0x28ee87)null!=properties[_0x2e2899[_0x28ee87]]&&(this[_0x2e2899[_0x28ee87]]=properties[_0x2e2899[_0x28ee87]]);}}return TrackChangesGetAllSuggestionsResponse['prototype']['suggestions']=$util['emptyArray'],TrackChangesGetAllSuggestionsResponse['prototype']['suggestionsV2']=$util['emptyArray'],TrackChangesGetAllSuggestionsResponse['create']=function(properties){return new TrackChangesGetAllSuggestionsResponse(properties);},TrackChangesGetAllSuggestionsResponse['encode']=function(_0x33e1ed,writer){if(writer||(writer=$Writer['create']()),null!=_0x33e1ed['suggestions']&&_0x33e1ed['suggestions']['length']){for(var _0x211016=0x0;_0x211016<_0x33e1ed['suggestions']['length'];++_0x211016)writer['uint32'](0xa)['string'](_0x33e1ed['suggestions'][_0x211016]);}if(null!=_0x33e1ed['suggestionsV2']&&_0x33e1ed['suggestionsV2']['length']){for(_0x211016=0x0;_0x211016<_0x33e1ed['suggestionsV2']['length'];++_0x211016)$root['SuggestionDescriptor']['encode'](_0x33e1ed['suggestionsV2'][_0x211016],writer['uint32'](0x12)['fork']())['ldelim']();}return writer;},TrackChangesGetAllSuggestionsResponse['encodeDelimited']=function(_0x301c44,writer){return this['encode'](_0x301c44,writer)['ldelim']();},TrackChangesGetAllSuggestionsResponse['decode']=function(_0x377f14,length,_0x31c6e){_0x377f14 instanceof _0x7b4aff||(_0x377f14=_0x7b4aff['create'](_0x377f14));for(var _0x1e6c75=void 0x0===length?_0x377f14['len']:_0x377f14['pos']+length,_0x4af92a=new $root['TrackChangesGetAllSuggestionsResponse']();_0x377f14['pos']<_0x1e6c75;){var tag=_0x377f14['uint32']();if(tag===_0x31c6e)break;switch(tag>>>0x3){case 0x1:_0x4af92a['suggestions']&&_0x4af92a['suggestions']['length']||(_0x4af92a['suggestions']=[]),_0x4af92a['suggestions']['push'](_0x377f14['string']());break;case 0x2:_0x4af92a['suggestionsV2']&&_0x4af92a['suggestionsV2']['length']||(_0x4af92a['suggestionsV2']=[]),_0x4af92a['suggestionsV2']['push']($root['SuggestionDescriptor']['decode'](_0x377f14,_0x377f14['uint32']()));break;default:_0x377f14['skipType'](0x7&tag);}}return _0x4af92a;},TrackChangesGetAllSuggestionsResponse['decodeDelimited']=function(_0x127fc5){return _0x127fc5 instanceof _0x7b4aff||(_0x127fc5=new _0x7b4aff(_0x127fc5)),this['decode'](_0x127fc5,_0x127fc5['uint32']());},TrackChangesGetAllSuggestionsResponse['verify']=function(_0x9d752b){if('object'!=typeof _0x9d752b||null===_0x9d752b)return'object\x20expected';if(null!=_0x9d752b['suggestions']&&_0x9d752b['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x9d752b['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x184ad2=0x0;_0x184ad2<_0x9d752b['suggestions']['length'];++_0x184ad2)if(!$util['isString'](_0x9d752b['suggestions'][_0x184ad2]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x9d752b['suggestionsV2']&&_0x9d752b['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x9d752b['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x184ad2=0x0;_0x184ad2<_0x9d752b['suggestionsV2']['length'];++_0x184ad2){var _0x68cbb1=$root['SuggestionDescriptor']['verify'](_0x9d752b['suggestionsV2'][_0x184ad2]);if(_0x68cbb1)return'suggestionsV2.'+_0x68cbb1;}}return null;},TrackChangesGetAllSuggestionsResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesGetAllSuggestionsResponse'])return object;var _0x422a33=new $root['TrackChangesGetAllSuggestionsResponse']();if(object['suggestions']){if(!Array['isArray'](object['suggestions']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestions:\x20array\x20expected');_0x422a33['suggestions']=[];for(var _0x5f40f9=0x0;_0x5f40f9<object['suggestions']['length'];++_0x5f40f9)_0x422a33['suggestions'][_0x5f40f9]=String(object['suggestions'][_0x5f40f9]);}if(object['suggestionsV2']){if(!Array['isArray'](object['suggestionsV2']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20array\x20expected');_0x422a33['suggestionsV2']=[];for(_0x5f40f9=0x0;_0x5f40f9<object['suggestionsV2']['length'];++_0x5f40f9){if('object'!=typeof object['suggestionsV2'][_0x5f40f9])throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20object\x20expected');_0x422a33['suggestionsV2'][_0x5f40f9]=$root['SuggestionDescriptor']['fromObject'](object['suggestionsV2'][_0x5f40f9]);}}return _0x422a33;},TrackChangesGetAllSuggestionsResponse['toObject']=function(_0x4de17e,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['suggestions']=[],object['suggestionsV2']=[]),_0x4de17e['suggestions']&&_0x4de17e['suggestions']['length']){object['suggestions']=[];for(var _0x2858ea=0x0;_0x2858ea<_0x4de17e['suggestions']['length'];++_0x2858ea)object['suggestions'][_0x2858ea]=_0x4de17e['suggestions'][_0x2858ea];}if(_0x4de17e['suggestionsV2']&&_0x4de17e['suggestionsV2']['length']){object['suggestionsV2']=[];for(_0x2858ea=0x0;_0x2858ea<_0x4de17e['suggestionsV2']['length'];++_0x2858ea)object['suggestionsV2'][_0x2858ea]=$root['SuggestionDescriptor']['toObject'](_0x4de17e['suggestionsV2'][_0x2858ea],options);}return object;},TrackChangesGetAllSuggestionsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetAllSuggestionsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetAllSuggestionsResponse';},TrackChangesGetAllSuggestionsResponse;}()),$root['TrackChangesGetSuggestionResponse']=(function(){function TrackChangesGetSuggestionResponse(properties){if(properties){for(var _0x16e586=Object['keys'](properties),_0x538773=0x0;_0x538773<_0x16e586['length'];++_0x538773)null!=properties[_0x16e586[_0x538773]]&&(this[_0x16e586[_0x538773]]=properties[_0x16e586[_0x538773]]);}}return TrackChangesGetSuggestionResponse['prototype']['id']='',TrackChangesGetSuggestionResponse['prototype']['authorId']='',TrackChangesGetSuggestionResponse['prototype']['type']='',TrackChangesGetSuggestionResponse['prototype']['createdAt']='',TrackChangesGetSuggestionResponse['prototype']['data']='',TrackChangesGetSuggestionResponse['prototype']['hasComments']=!0x1,TrackChangesGetSuggestionResponse['prototype']['state']='',TrackChangesGetSuggestionResponse['prototype']['attributes']='',TrackChangesGetSuggestionResponse['create']=function(properties){return new TrackChangesGetSuggestionResponse(properties);},TrackChangesGetSuggestionResponse['encode']=function(_0x34fa3b,writer){return writer||(writer=$Writer['create']()),null!=_0x34fa3b['id']&&Object['hasOwnProperty']['call'](_0x34fa3b,'id')&&writer['uint32'](0xa)['string'](_0x34fa3b['id']),null!=_0x34fa3b['authorId']&&Object['hasOwnProperty']['call'](_0x34fa3b,'authorId')&&writer['uint32'](0x12)['string'](_0x34fa3b['authorId']),null!=_0x34fa3b['type']&&Object['hasOwnProperty']['call'](_0x34fa3b,'type')&&writer['uint32'](0x1a)['string'](_0x34fa3b['type']),null!=_0x34fa3b['createdAt']&&Object['hasOwnProperty']['call'](_0x34fa3b,'createdAt')&&writer['uint32'](0x22)['string'](_0x34fa3b['createdAt']),null!=_0x34fa3b['data']&&Object['hasOwnProperty']['call'](_0x34fa3b,'data')&&writer['uint32'](0x2a)['string'](_0x34fa3b['data']),null!=_0x34fa3b['hasComments']&&Object['hasOwnProperty']['call'](_0x34fa3b,'hasComments')&&writer['uint32'](0x30)['bool'](_0x34fa3b['hasComments']),null!=_0x34fa3b['state']&&Object['hasOwnProperty']['call'](_0x34fa3b,'state')&&writer['uint32'](0x3a)['string'](_0x34fa3b['state']),null!=_0x34fa3b['attributes']&&Object['hasOwnProperty']['call'](_0x34fa3b,'attributes')&&writer['uint32'](0x42)['string'](_0x34fa3b['attributes']),writer;},TrackChangesGetSuggestionResponse['encodeDelimited']=function(_0x143e42,writer){return this['encode'](_0x143e42,writer)['ldelim']();},TrackChangesGetSuggestionResponse['decode']=function(_0x22bfa5,length,_0xec18a5){_0x22bfa5 instanceof _0x7b4aff||(_0x22bfa5=_0x7b4aff['create'](_0x22bfa5));for(var _0x4b92b3=void 0x0===length?_0x22bfa5['len']:_0x22bfa5['pos']+length,_0x4e3b9d=new $root['TrackChangesGetSuggestionResponse']();_0x22bfa5['pos']<_0x4b92b3;){var tag=_0x22bfa5['uint32']();if(tag===_0xec18a5)break;switch(tag>>>0x3){case 0x1:_0x4e3b9d['id']=_0x22bfa5['string']();break;case 0x2:_0x4e3b9d['authorId']=_0x22bfa5['string']();break;case 0x3:_0x4e3b9d['type']=_0x22bfa5['string']();break;case 0x4:_0x4e3b9d['createdAt']=_0x22bfa5['string']();break;case 0x5:_0x4e3b9d['data']=_0x22bfa5['string']();break;case 0x6:_0x4e3b9d['hasComments']=_0x22bfa5['bool']();break;case 0x7:_0x4e3b9d['state']=_0x22bfa5['string']();break;case 0x8:_0x4e3b9d['attributes']=_0x22bfa5['string']();break;default:_0x22bfa5['skipType'](0x7&tag);}}return _0x4e3b9d;},TrackChangesGetSuggestionResponse['decodeDelimited']=function(_0x4fcafb){return _0x4fcafb instanceof _0x7b4aff||(_0x4fcafb=new _0x7b4aff(_0x4fcafb)),this['decode'](_0x4fcafb,_0x4fcafb['uint32']());},TrackChangesGetSuggestionResponse['verify']=function(_0x26972c){return'object'!=typeof _0x26972c||null===_0x26972c?'object\x20expected':null!=_0x26972c['id']&&_0x26972c['hasOwnProperty']('id')&&!$util['isString'](_0x26972c['id'])?'id:\x20string\x20expected':null!=_0x26972c['authorId']&&_0x26972c['hasOwnProperty']('authorId')&&!$util['isString'](_0x26972c['authorId'])?'authorId:\x20string\x20expected':null!=_0x26972c['type']&&_0x26972c['hasOwnProperty']('type')&&!$util['isString'](_0x26972c['type'])?'type:\x20string\x20expected':null!=_0x26972c['createdAt']&&_0x26972c['hasOwnProperty']('createdAt')&&!$util['isString'](_0x26972c['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x26972c['data']&&_0x26972c['hasOwnProperty']('data')&&!$util['isString'](_0x26972c['data'])?'data:\x20string\x20expected':null!=_0x26972c['hasComments']&&_0x26972c['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x26972c['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x26972c['state']&&_0x26972c['hasOwnProperty']('state')&&!$util['isString'](_0x26972c['state'])?'state:\x20string\x20expected':null!=_0x26972c['attributes']&&_0x26972c['hasOwnProperty']('attributes')&&!$util['isString'](_0x26972c['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesGetSuggestionResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesGetSuggestionResponse'])return object;var _0x3d3417=new $root['TrackChangesGetSuggestionResponse']();return null!=object['id']&&(_0x3d3417['id']=String(object['id'])),null!=object['authorId']&&(_0x3d3417['authorId']=String(object['authorId'])),null!=object['type']&&(_0x3d3417['type']=String(object['type'])),null!=object['createdAt']&&(_0x3d3417['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x3d3417['data']=String(object['data'])),null!=object['hasComments']&&(_0x3d3417['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x3d3417['state']=String(object['state'])),null!=object['attributes']&&(_0x3d3417['attributes']=String(object['attributes'])),_0x3d3417;},TrackChangesGetSuggestionResponse['toObject']=function(_0x32d178,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['authorId']='',object['type']='',object['createdAt']='',object['data']='',object['hasComments']=!0x1,object['state']='',object['attributes']=''),null!=_0x32d178['id']&&_0x32d178['hasOwnProperty']('id')&&(object['id']=_0x32d178['id']),null!=_0x32d178['authorId']&&_0x32d178['hasOwnProperty']('authorId')&&(object['authorId']=_0x32d178['authorId']),null!=_0x32d178['type']&&_0x32d178['hasOwnProperty']('type')&&(object['type']=_0x32d178['type']),null!=_0x32d178['createdAt']&&_0x32d178['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x32d178['createdAt']),null!=_0x32d178['data']&&_0x32d178['hasOwnProperty']('data')&&(object['data']=_0x32d178['data']),null!=_0x32d178['hasComments']&&_0x32d178['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x32d178['hasComments']),null!=_0x32d178['state']&&_0x32d178['hasOwnProperty']('state')&&(object['state']=_0x32d178['state']),null!=_0x32d178['attributes']&&_0x32d178['hasOwnProperty']('attributes')&&(object['attributes']=_0x32d178['attributes']),object;},TrackChangesGetSuggestionResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetSuggestionResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetSuggestionResponse';},TrackChangesGetSuggestionResponse;}()),$root['UserDescriptor']=(function(){function UserDescriptor(properties){if(this['attributes']=[],properties){for(var _0x1127cc=Object['keys'](properties),_0x4b11e1=0x0;_0x4b11e1<_0x1127cc['length'];++_0x4b11e1)null!=properties[_0x1127cc[_0x4b11e1]]&&(this[_0x1127cc[_0x4b11e1]]=properties[_0x1127cc[_0x4b11e1]]);}}return UserDescriptor['prototype']['attributes']=$util['emptyArray'],UserDescriptor['create']=function(properties){return new UserDescriptor(properties);},UserDescriptor['encode']=function(_0x37a6b5,writer){if(writer||(writer=$Writer['create']()),null!=_0x37a6b5['attributes']&&_0x37a6b5['attributes']['length']){for(var _0x52fde8=0x0;_0x52fde8<_0x37a6b5['attributes']['length'];++_0x52fde8)$root['KeyValueDescriptor']['encode'](_0x37a6b5['attributes'][_0x52fde8],writer['uint32'](0xa)['fork']())['ldelim']();}return writer;},UserDescriptor['encodeDelimited']=function(_0x190b7a,writer){return this['encode'](_0x190b7a,writer)['ldelim']();},UserDescriptor['decode']=function(_0x50793e,length,_0x37abe5){_0x50793e instanceof _0x7b4aff||(_0x50793e=_0x7b4aff['create'](_0x50793e));for(var _0x2b7649=void 0x0===length?_0x50793e['len']:_0x50793e['pos']+length,_0x201a21=new $root['UserDescriptor']();_0x50793e['pos']<_0x2b7649;){var tag=_0x50793e['uint32']();if(tag===_0x37abe5)break;if(tag>>>0x3==0x1)_0x201a21['attributes']&&_0x201a21['attributes']['length']||(_0x201a21['attributes']=[]),_0x201a21['attributes']['push']($root['KeyValueDescriptor']['decode'](_0x50793e,_0x50793e['uint32']()));else _0x50793e['skipType'](0x7&tag);}return _0x201a21;},UserDescriptor['decodeDelimited']=function(_0x1b9fd5){return _0x1b9fd5 instanceof _0x7b4aff||(_0x1b9fd5=new _0x7b4aff(_0x1b9fd5)),this['decode'](_0x1b9fd5,_0x1b9fd5['uint32']());},UserDescriptor['verify']=function(_0x51e464){if('object'!=typeof _0x51e464||null===_0x51e464)return'object\x20expected';if(null!=_0x51e464['attributes']&&_0x51e464['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x51e464['attributes']))return'attributes:\x20array\x20expected';for(var _0xabdce=0x0;_0xabdce<_0x51e464['attributes']['length'];++_0xabdce){var _0x1ffb84=$root['KeyValueDescriptor']['verify'](_0x51e464['attributes'][_0xabdce]);if(_0x1ffb84)return'attributes.'+_0x1ffb84;}}return null;},UserDescriptor['fromObject']=function(object){if(object instanceof $root['UserDescriptor'])return object;var _0x2e6381=new $root['UserDescriptor']();if(object['attributes']){if(!Array['isArray'](object['attributes']))throw TypeError('.UserDescriptor.attributes:\x20array\x20expected');_0x2e6381['attributes']=[];for(var _0x48adcd=0x0;_0x48adcd<object['attributes']['length'];++_0x48adcd){if('object'!=typeof object['attributes'][_0x48adcd])throw TypeError('.UserDescriptor.attributes:\x20object\x20expected');_0x2e6381['attributes'][_0x48adcd]=$root['KeyValueDescriptor']['fromObject'](object['attributes'][_0x48adcd]);}}return _0x2e6381;},UserDescriptor['toObject']=function(_0x3a9271,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['attributes']=[]),_0x3a9271['attributes']&&_0x3a9271['attributes']['length']){object['attributes']=[];for(var _0xb3f9c0=0x0;_0xb3f9c0<_0x3a9271['attributes']['length'];++_0xb3f9c0)object['attributes'][_0xb3f9c0]=$root['KeyValueDescriptor']['toObject'](_0x3a9271['attributes'][_0xb3f9c0],options);}return object;},UserDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},UserDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/UserDescriptor';},UserDescriptor;}()),$root['GetManyUsersMessage']=(function(){function GetManyUsersMessage(properties){if(this['ids']=[],properties){for(var _0x5b5a0b=Object['keys'](properties),_0x1b4b88=0x0;_0x1b4b88<_0x5b5a0b['length'];++_0x1b4b88)null!=properties[_0x5b5a0b[_0x1b4b88]]&&(this[_0x5b5a0b[_0x1b4b88]]=properties[_0x5b5a0b[_0x1b4b88]]);}}return GetManyUsersMessage['prototype']['ids']=$util['emptyArray'],GetManyUsersMessage['create']=function(properties){return new GetManyUsersMessage(properties);},GetManyUsersMessage['encode']=function(_0x3f0c38,writer){if(writer||(writer=$Writer['create']()),null!=_0x3f0c38['ids']&&_0x3f0c38['ids']['length']){for(var _0x48841c=0x0;_0x48841c<_0x3f0c38['ids']['length'];++_0x48841c)writer['uint32'](0xa)['string'](_0x3f0c38['ids'][_0x48841c]);}return writer;},GetManyUsersMessage['encodeDelimited']=function(_0x26f59e,writer){return this['encode'](_0x26f59e,writer)['ldelim']();},GetManyUsersMessage['decode']=function(_0x14c832,length,_0x1f22ba){_0x14c832 instanceof _0x7b4aff||(_0x14c832=_0x7b4aff['create'](_0x14c832));for(var _0x4da15a=void 0x0===length?_0x14c832['len']:_0x14c832['pos']+length,_0x24e122=new $root['GetManyUsersMessage']();_0x14c832['pos']<_0x4da15a;){var tag=_0x14c832['uint32']();if(tag===_0x1f22ba)break;if(tag>>>0x3==0x1)_0x24e122['ids']&&_0x24e122['ids']['length']||(_0x24e122['ids']=[]),_0x24e122['ids']['push'](_0x14c832['string']());else _0x14c832['skipType'](0x7&tag);}return _0x24e122;},GetManyUsersMessage['decodeDelimited']=function(_0x8e1e24){return _0x8e1e24 instanceof _0x7b4aff||(_0x8e1e24=new _0x7b4aff(_0x8e1e24)),this['decode'](_0x8e1e24,_0x8e1e24['uint32']());},GetManyUsersMessage['verify']=function(_0x354c55){if('object'!=typeof _0x354c55||null===_0x354c55)return'object\x20expected';if(null!=_0x354c55['ids']&&_0x354c55['hasOwnProperty']('ids')){if(!Array['isArray'](_0x354c55['ids']))return'ids:\x20array\x20expected';for(var _0x578cc1=0x0;_0x578cc1<_0x354c55['ids']['length'];++_0x578cc1)if(!$util['isString'](_0x354c55['ids'][_0x578cc1]))return'ids:\x20string[]\x20expected';}return null;},GetManyUsersMessage['fromObject']=function(object){if(object instanceof $root['GetManyUsersMessage'])return object;var _0x36f1ea=new $root['GetManyUsersMessage']();if(object['ids']){if(!Array['isArray'](object['ids']))throw TypeError('.GetManyUsersMessage.ids:\x20array\x20expected');_0x36f1ea['ids']=[];for(var _0x23d9e0=0x0;_0x23d9e0<object['ids']['length'];++_0x23d9e0)_0x36f1ea['ids'][_0x23d9e0]=String(object['ids'][_0x23d9e0]);}return _0x36f1ea;},GetManyUsersMessage['toObject']=function(_0x14e1ab,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['ids']=[]),_0x14e1ab['ids']&&_0x14e1ab['ids']['length']){object['ids']=[];for(var _0x6bf6da=0x0;_0x6bf6da<_0x14e1ab['ids']['length'];++_0x6bf6da)object['ids'][_0x6bf6da]=_0x14e1ab['ids'][_0x6bf6da];}return object;},GetManyUsersMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetManyUsersMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetManyUsersMessage';},GetManyUsersMessage;}()),$root['GetUserMessage']=(function(){function GetUserMessage(properties){if(properties){for(var _0x507c79=Object['keys'](properties),_0x516df0=0x0;_0x516df0<_0x507c79['length'];++_0x516df0)null!=properties[_0x507c79[_0x516df0]]&&(this[_0x507c79[_0x516df0]]=properties[_0x507c79[_0x516df0]]);}}return GetUserMessage['prototype']['id']='',GetUserMessage['create']=function(properties){return new GetUserMessage(properties);},GetUserMessage['encode']=function(_0x29a0ff,writer){return writer||(writer=$Writer['create']()),null!=_0x29a0ff['id']&&Object['hasOwnProperty']['call'](_0x29a0ff,'id')&&writer['uint32'](0xa)['string'](_0x29a0ff['id']),writer;},GetUserMessage['encodeDelimited']=function(_0x4d20a2,writer){return this['encode'](_0x4d20a2,writer)['ldelim']();},GetUserMessage['decode']=function(_0x313116,length,_0x1e3ef9){_0x313116 instanceof _0x7b4aff||(_0x313116=_0x7b4aff['create'](_0x313116));for(var _0x2ff99a=void 0x0===length?_0x313116['len']:_0x313116['pos']+length,_0xa119dc=new $root['GetUserMessage']();_0x313116['pos']<_0x2ff99a;){var tag=_0x313116['uint32']();if(tag===_0x1e3ef9)break;if(tag>>>0x3==0x1)_0xa119dc['id']=_0x313116['string']();else _0x313116['skipType'](0x7&tag);}return _0xa119dc;},GetUserMessage['decodeDelimited']=function(_0x2d59cb){return _0x2d59cb instanceof _0x7b4aff||(_0x2d59cb=new _0x7b4aff(_0x2d59cb)),this['decode'](_0x2d59cb,_0x2d59cb['uint32']());},GetUserMessage['verify']=function(_0x5826e9){return'object'!=typeof _0x5826e9||null===_0x5826e9?'object\x20expected':null!=_0x5826e9['id']&&_0x5826e9['hasOwnProperty']('id')&&!$util['isString'](_0x5826e9['id'])?'id:\x20string\x20expected':null;},GetUserMessage['fromObject']=function(object){if(object instanceof $root['GetUserMessage'])return object;var _0x9d50d1=new $root['GetUserMessage']();return null!=object['id']&&(_0x9d50d1['id']=String(object['id'])),_0x9d50d1;},GetUserMessage['toObject']=function(_0x137b71,options){options||(options={});var object={};return options['defaults']&&(object['id']=''),null!=_0x137b71['id']&&_0x137b71['hasOwnProperty']('id')&&(object['id']=_0x137b71['id']),object;},GetUserMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetUserMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetUserMessage';},GetUserMessage;}()),$root['GetManyUsersResponse']=(function(){function GetManyUsersResponse(properties){if(this['users']=[],properties){for(var _0x50b81e=Object['keys'](properties),_0x203a9d=0x0;_0x203a9d<_0x50b81e['length'];++_0x203a9d)null!=properties[_0x50b81e[_0x203a9d]]&&(this[_0x50b81e[_0x203a9d]]=properties[_0x50b81e[_0x203a9d]]);}}return GetManyUsersResponse['prototype']['users']=$util['emptyArray'],GetManyUsersResponse['create']=function(properties){return new GetManyUsersResponse(properties);},GetManyUsersResponse['encode']=function(_0x306c1b,writer){if(writer||(writer=$Writer['create']()),null!=_0x306c1b['users']&&_0x306c1b['users']['length']){for(var _0x3f5029=0x0;_0x3f5029<_0x306c1b['users']['length'];++_0x3f5029)$root['UserDescriptor']['encode'](_0x306c1b['users'][_0x3f5029],writer['uint32'](0xa)['fork']())['ldelim']();}return writer;},GetManyUsersResponse['encodeDelimited']=function(_0x373662,writer){return this['encode'](_0x373662,writer)['ldelim']();},GetManyUsersResponse['decode']=function(_0x2f78a2,length,_0x63748c){_0x2f78a2 instanceof _0x7b4aff||(_0x2f78a2=_0x7b4aff['create'](_0x2f78a2));for(var _0x9ed170=void 0x0===length?_0x2f78a2['len']:_0x2f78a2['pos']+length,_0x177441=new $root['GetManyUsersResponse']();_0x2f78a2['pos']<_0x9ed170;){var tag=_0x2f78a2['uint32']();if(tag===_0x63748c)break;if(tag>>>0x3==0x1)_0x177441['users']&&_0x177441['users']['length']||(_0x177441['users']=[]),_0x177441['users']['push']($root['UserDescriptor']['decode'](_0x2f78a2,_0x2f78a2['uint32']()));else _0x2f78a2['skipType'](0x7&tag);}return _0x177441;},GetManyUsersResponse['decodeDelimited']=function(_0xfa5b30){return _0xfa5b30 instanceof _0x7b4aff||(_0xfa5b30=new _0x7b4aff(_0xfa5b30)),this['decode'](_0xfa5b30,_0xfa5b30['uint32']());},GetManyUsersResponse['verify']=function(_0x52bd13){if('object'!=typeof _0x52bd13||null===_0x52bd13)return'object\x20expected';if(null!=_0x52bd13['users']&&_0x52bd13['hasOwnProperty']('users')){if(!Array['isArray'](_0x52bd13['users']))return'users:\x20array\x20expected';for(var _0x36b9c2=0x0;_0x36b9c2<_0x52bd13['users']['length'];++_0x36b9c2){var _0x268969=$root['UserDescriptor']['verify'](_0x52bd13['users'][_0x36b9c2]);if(_0x268969)return'users.'+_0x268969;}}return null;},GetManyUsersResponse['fromObject']=function(object){if(object instanceof $root['GetManyUsersResponse'])return object;var _0x5ca77f=new $root['GetManyUsersResponse']();if(object['users']){if(!Array['isArray'](object['users']))throw TypeError('.GetManyUsersResponse.users:\x20array\x20expected');_0x5ca77f['users']=[];for(var _0x29c164=0x0;_0x29c164<object['users']['length'];++_0x29c164){if('object'!=typeof object['users'][_0x29c164])throw TypeError('.GetManyUsersResponse.users:\x20object\x20expected');_0x5ca77f['users'][_0x29c164]=$root['UserDescriptor']['fromObject'](object['users'][_0x29c164]);}}return _0x5ca77f;},GetManyUsersResponse['toObject']=function(_0x49b9b4,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['users']=[]),_0x49b9b4['users']&&_0x49b9b4['users']['length']){object['users']=[];for(var _0x1aa87a=0x0;_0x1aa87a<_0x49b9b4['users']['length'];++_0x1aa87a)object['users'][_0x1aa87a]=$root['UserDescriptor']['toObject'](_0x49b9b4['users'][_0x1aa87a],options);}return object;},GetManyUsersResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetManyUsersResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetManyUsersResponse';},GetManyUsersResponse;}()),$root['GetUserResponse']=(function(){function GetUserResponse(properties){if(this['attributes']=[],properties){for(var _0x4842b2=Object['keys'](properties),_0x540831=0x0;_0x540831<_0x4842b2['length'];++_0x540831)null!=properties[_0x4842b2[_0x540831]]&&(this[_0x4842b2[_0x540831]]=properties[_0x4842b2[_0x540831]]);}}return GetUserResponse['prototype']['attributes']=$util['emptyArray'],GetUserResponse['create']=function(properties){return new GetUserResponse(properties);},GetUserResponse['encode']=function(_0x3c0241,writer){if(writer||(writer=$Writer['create']()),null!=_0x3c0241['attributes']&&_0x3c0241['attributes']['length']){for(var _0x5d21d0=0x0;_0x5d21d0<_0x3c0241['attributes']['length'];++_0x5d21d0)$root['KeyValueDescriptor']['encode'](_0x3c0241['attributes'][_0x5d21d0],writer['uint32'](0xa)['fork']())['ldelim']();}return writer;},GetUserResponse['encodeDelimited']=function(_0x20d386,writer){return this['encode'](_0x20d386,writer)['ldelim']();},GetUserResponse['decode']=function(_0xb6d8bb,length,_0xb3d7ed){_0xb6d8bb instanceof _0x7b4aff||(_0xb6d8bb=_0x7b4aff['create'](_0xb6d8bb));for(var _0x39ea6f=void 0x0===length?_0xb6d8bb['len']:_0xb6d8bb['pos']+length,_0x13f2bc=new $root['GetUserResponse']();_0xb6d8bb['pos']<_0x39ea6f;){var tag=_0xb6d8bb['uint32']();if(tag===_0xb3d7ed)break;if(tag>>>0x3==0x1)_0x13f2bc['attributes']&&_0x13f2bc['attributes']['length']||(_0x13f2bc['attributes']=[]),_0x13f2bc['attributes']['push']($root['KeyValueDescriptor']['decode'](_0xb6d8bb,_0xb6d8bb['uint32']()));else _0xb6d8bb['skipType'](0x7&tag);}return _0x13f2bc;},GetUserResponse['decodeDelimited']=function(_0x10427c){return _0x10427c instanceof _0x7b4aff||(_0x10427c=new _0x7b4aff(_0x10427c)),this['decode'](_0x10427c,_0x10427c['uint32']());},GetUserResponse['verify']=function(_0x5b1be8){if('object'!=typeof _0x5b1be8||null===_0x5b1be8)return'object\x20expected';if(null!=_0x5b1be8['attributes']&&_0x5b1be8['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x5b1be8['attributes']))return'attributes:\x20array\x20expected';for(var _0x1031c9=0x0;_0x1031c9<_0x5b1be8['attributes']['length'];++_0x1031c9){var _0x2a34a1=$root['KeyValueDescriptor']['verify'](_0x5b1be8['attributes'][_0x1031c9]);if(_0x2a34a1)return'attributes.'+_0x2a34a1;}}return null;},GetUserResponse['fromObject']=function(object){if(object instanceof $root['GetUserResponse'])return object;var _0x58c286=new $root['GetUserResponse']();if(object['attributes']){if(!Array['isArray'](object['attributes']))throw TypeError('.GetUserResponse.attributes:\x20array\x20expected');_0x58c286['attributes']=[];for(var _0xcb362b=0x0;_0xcb362b<object['attributes']['length'];++_0xcb362b){if('object'!=typeof object['attributes'][_0xcb362b])throw TypeError('.GetUserResponse.attributes:\x20object\x20expected');_0x58c286['attributes'][_0xcb362b]=$root['KeyValueDescriptor']['fromObject'](object['attributes'][_0xcb362b]);}}return _0x58c286;},GetUserResponse['toObject']=function(_0x51f731,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['attributes']=[]),_0x51f731['attributes']&&_0x51f731['attributes']['length']){object['attributes']=[];for(var _0x2e2978=0x0;_0x2e2978<_0x51f731['attributes']['length'];++_0x2e2978)object['attributes'][_0x2e2978]=$root['KeyValueDescriptor']['toObject'](_0x51f731['attributes'][_0x2e2978],options);}return object;},GetUserResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetUserResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetUserResponse';},GetUserResponse;}()),$root['ChannelMessage']=(function(){function _0x4f102f(properties){if(properties){for(var _0x10a585=Object['keys'](properties),_0x8ac72b=0x0;_0x8ac72b<_0x10a585['length'];++_0x8ac72b)null!=properties[_0x10a585[_0x8ac72b]]&&(this[_0x10a585[_0x8ac72b]]=properties[_0x10a585[_0x8ac72b]]);}}return _0x4f102f['prototype']['type']=0x0,_0x4f102f['prototype']['socketId']='',_0x4f102f['prototype']['data']=$util['newBuffer']([]),_0x4f102f['create']=function(properties){return new _0x4f102f(properties);},_0x4f102f['encode']=function(_0x40a40a,writer){return writer||(writer=$Writer['create']()),null!=_0x40a40a['type']&&Object['hasOwnProperty']['call'](_0x40a40a,'type')&&writer['uint32'](0x8)['uint32'](_0x40a40a['type']),null!=_0x40a40a['socketId']&&Object['hasOwnProperty']['call'](_0x40a40a,'socketId')&&writer['uint32'](0x12)['string'](_0x40a40a['socketId']),null!=_0x40a40a['data']&&Object['hasOwnProperty']['call'](_0x40a40a,'data')&&writer['uint32'](0x1a)['bytes'](_0x40a40a['data']),writer;},_0x4f102f['encodeDelimited']=function(_0x38817e,writer){return this['encode'](_0x38817e,writer)['ldelim']();},_0x4f102f['decode']=function(_0x560f3f,length,_0x3b8959){_0x560f3f instanceof _0x7b4aff||(_0x560f3f=_0x7b4aff['create'](_0x560f3f));for(var _0x4a2abd=void 0x0===length?_0x560f3f['len']:_0x560f3f['pos']+length,_0x19ac6d=new $root['ChannelMessage']();_0x560f3f['pos']<_0x4a2abd;){var tag=_0x560f3f['uint32']();if(tag===_0x3b8959)break;switch(tag>>>0x3){case 0x1:_0x19ac6d['type']=_0x560f3f['uint32']();break;case 0x2:_0x19ac6d['socketId']=_0x560f3f['string']();break;case 0x3:_0x19ac6d['data']=_0x560f3f['bytes']();break;default:_0x560f3f['skipType'](0x7&tag);}}return _0x19ac6d;},_0x4f102f['decodeDelimited']=function(_0x188122){return _0x188122 instanceof _0x7b4aff||(_0x188122=new _0x7b4aff(_0x188122)),this['decode'](_0x188122,_0x188122['uint32']());},_0x4f102f['verify']=function(_0x54b5b4){return'object'!=typeof _0x54b5b4||null===_0x54b5b4?'object\x20expected':null!=_0x54b5b4['type']&&_0x54b5b4['hasOwnProperty']('type')&&!$util['isInteger'](_0x54b5b4['type'])?'type:\x20integer\x20expected':null!=_0x54b5b4['socketId']&&_0x54b5b4['hasOwnProperty']('socketId')&&!$util['isString'](_0x54b5b4['socketId'])?'socketId:\x20string\x20expected':null!=_0x54b5b4['data']&&_0x54b5b4['hasOwnProperty']('data')&&!(_0x54b5b4['data']&&'number'==typeof _0x54b5b4['data']['length']||$util['isString'](_0x54b5b4['data']))?'data:\x20buffer\x20expected':null;},_0x4f102f['fromObject']=function(object){if(object instanceof $root['ChannelMessage'])return object;var _0x46db82=new $root['ChannelMessage']();return null!=object['type']&&(_0x46db82['type']=object['type']>>>0x0),null!=object['socketId']&&(_0x46db82['socketId']=String(object['socketId'])),null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x46db82['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x46db82['data']=object['data'])),_0x46db82;},_0x4f102f['toObject']=function(_0x54791c,options){options||(options={});var object={};return options['defaults']&&(object['type']=0x0,object['socketId']='',options['bytes']===String?object['data']='':(object['data']=[],options['bytes']!==Array&&(object['data']=$util['newBuffer'](object['data'])))),null!=_0x54791c['type']&&_0x54791c['hasOwnProperty']('type')&&(object['type']=_0x54791c['type']),null!=_0x54791c['socketId']&&_0x54791c['hasOwnProperty']('socketId')&&(object['socketId']=_0x54791c['socketId']),null!=_0x54791c['data']&&_0x54791c['hasOwnProperty']('data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x54791c['data'],0x0,_0x54791c['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x54791c['data']):_0x54791c['data']),object;},_0x4f102f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},_0x4f102f['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ChannelMessage';},_0x4f102f;}()),$root['BytesBytesPacketDataMessage']=(function(){function BytesBytesPacketDataMessage(properties){if(properties){for(var _0x2b2222=Object['keys'](properties),_0x7b2973=0x0;_0x7b2973<_0x2b2222['length'];++_0x7b2973)null!=properties[_0x2b2222[_0x7b2973]]&&(this[_0x2b2222[_0x7b2973]]=properties[_0x2b2222[_0x7b2973]]);}}return BytesBytesPacketDataMessage['prototype']['data']=$util['newBuffer']([]),BytesBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),BytesBytesPacketDataMessage['create']=function(properties){return new BytesBytesPacketDataMessage(properties);},BytesBytesPacketDataMessage['encode']=function(_0x1aff52,writer){return writer||(writer=$Writer['create']()),null!=_0x1aff52['data']&&Object['hasOwnProperty']['call'](_0x1aff52,'data')&&writer['uint32'](0xa)['bytes'](_0x1aff52['data']),null!=_0x1aff52['data1']&&Object['hasOwnProperty']['call'](_0x1aff52,'data1')&&writer['uint32'](0x12)['bytes'](_0x1aff52['data1']),writer;},BytesBytesPacketDataMessage['encodeDelimited']=function(_0x20bec6,writer){return this['encode'](_0x20bec6,writer)['ldelim']();},BytesBytesPacketDataMessage['decode']=function(_0x4663d8,length,_0x373aba){_0x4663d8 instanceof _0x7b4aff||(_0x4663d8=_0x7b4aff['create'](_0x4663d8));for(var _0x3b1317=void 0x0===length?_0x4663d8['len']:_0x4663d8['pos']+length,_0x36f7c7=new $root['BytesBytesPacketDataMessage']();_0x4663d8['pos']<_0x3b1317;){var tag=_0x4663d8['uint32']();if(tag===_0x373aba)break;switch(tag>>>0x3){case 0x1:_0x36f7c7['data']=_0x4663d8['bytes']();break;case 0x2:_0x36f7c7['data1']=_0x4663d8['bytes']();break;default:_0x4663d8['skipType'](0x7&tag);}}return _0x36f7c7;},BytesBytesPacketDataMessage['decodeDelimited']=function(_0x5b0299){return _0x5b0299 instanceof _0x7b4aff||(_0x5b0299=new _0x7b4aff(_0x5b0299)),this['decode'](_0x5b0299,_0x5b0299['uint32']());},BytesBytesPacketDataMessage['verify']=function(_0xd4898f){return'object'!=typeof _0xd4898f||null===_0xd4898f?'object\x20expected':null!=_0xd4898f['data']&&_0xd4898f['hasOwnProperty']('data')&&!(_0xd4898f['data']&&'number'==typeof _0xd4898f['data']['length']||$util['isString'](_0xd4898f['data']))?'data:\x20buffer\x20expected':null!=_0xd4898f['data1']&&_0xd4898f['hasOwnProperty']('data1')&&!(_0xd4898f['data1']&&'number'==typeof _0xd4898f['data1']['length']||$util['isString'](_0xd4898f['data1']))?'data1:\x20buffer\x20expected':null;},BytesBytesPacketDataMessage['fromObject']=function(object){if(object instanceof $root['BytesBytesPacketDataMessage'])return object;var _0x26d7a7=new $root['BytesBytesPacketDataMessage']();return null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x26d7a7['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x26d7a7['data']=object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x26d7a7['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x26d7a7['data1']=object['data1'])),_0x26d7a7;},BytesBytesPacketDataMessage['toObject']=function(_0x3f2733,options){options||(options={});var object={};return options['defaults']&&(options['bytes']===String?object['data']='':(object['data']=[],options['bytes']!==Array&&(object['data']=$util['newBuffer'](object['data']))),options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x3f2733['data']&&_0x3f2733['hasOwnProperty']('data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x3f2733['data'],0x0,_0x3f2733['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x3f2733['data']):_0x3f2733['data']),null!=_0x3f2733['data1']&&_0x3f2733['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x3f2733['data1'],0x0,_0x3f2733['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x3f2733['data1']):_0x3f2733['data1']),object;},BytesBytesPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},BytesBytesPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/BytesBytesPacketDataMessage';},BytesBytesPacketDataMessage;}()),$root['NumberBytesPacketDataMessage']=(function(){function NumberBytesPacketDataMessage(properties){if(properties){for(var _0x5b24b2=Object['keys'](properties),_0x1faf3c=0x0;_0x1faf3c<_0x5b24b2['length'];++_0x1faf3c)null!=properties[_0x5b24b2[_0x1faf3c]]&&(this[_0x5b24b2[_0x1faf3c]]=properties[_0x5b24b2[_0x1faf3c]]);}}return NumberBytesPacketDataMessage['prototype']['data']=0x0,NumberBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),NumberBytesPacketDataMessage['create']=function(properties){return new NumberBytesPacketDataMessage(properties);},NumberBytesPacketDataMessage['encode']=function(_0x17e9f3,writer){return writer||(writer=$Writer['create']()),null!=_0x17e9f3['data']&&Object['hasOwnProperty']['call'](_0x17e9f3,'data')&&writer['uint32'](0x8)['uint32'](_0x17e9f3['data']),null!=_0x17e9f3['data1']&&Object['hasOwnProperty']['call'](_0x17e9f3,'data1')&&writer['uint32'](0x12)['bytes'](_0x17e9f3['data1']),writer;},NumberBytesPacketDataMessage['encodeDelimited']=function(_0x34266b,writer){return this['encode'](_0x34266b,writer)['ldelim']();},NumberBytesPacketDataMessage['decode']=function(_0xe0072e,length,_0x2f84bb){_0xe0072e instanceof _0x7b4aff||(_0xe0072e=_0x7b4aff['create'](_0xe0072e));for(var _0x3d3812=void 0x0===length?_0xe0072e['len']:_0xe0072e['pos']+length,_0x19394a=new $root['NumberBytesPacketDataMessage']();_0xe0072e['pos']<_0x3d3812;){var tag=_0xe0072e['uint32']();if(tag===_0x2f84bb)break;switch(tag>>>0x3){case 0x1:_0x19394a['data']=_0xe0072e['uint32']();break;case 0x2:_0x19394a['data1']=_0xe0072e['bytes']();break;default:_0xe0072e['skipType'](0x7&tag);}}return _0x19394a;},NumberBytesPacketDataMessage['decodeDelimited']=function(_0x328a78){return _0x328a78 instanceof _0x7b4aff||(_0x328a78=new _0x7b4aff(_0x328a78)),this['decode'](_0x328a78,_0x328a78['uint32']());},NumberBytesPacketDataMessage['verify']=function(_0x257cde){return'object'!=typeof _0x257cde||null===_0x257cde?'object\x20expected':null!=_0x257cde['data']&&_0x257cde['hasOwnProperty']('data')&&!$util['isInteger'](_0x257cde['data'])?'data:\x20integer\x20expected':null!=_0x257cde['data1']&&_0x257cde['hasOwnProperty']('data1')&&!(_0x257cde['data1']&&'number'==typeof _0x257cde['data1']['length']||$util['isString'](_0x257cde['data1']))?'data1:\x20buffer\x20expected':null;},NumberBytesPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberBytesPacketDataMessage'])return object;var _0x38c58d=new $root['NumberBytesPacketDataMessage']();return null!=object['data']&&(_0x38c58d['data']=object['data']>>>0x0),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x38c58d['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x38c58d['data1']=object['data1'])),_0x38c58d;},NumberBytesPacketDataMessage['toObject']=function(_0x3108f4,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x3108f4['data']&&_0x3108f4['hasOwnProperty']('data')&&(object['data']=_0x3108f4['data']),null!=_0x3108f4['data1']&&_0x3108f4['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x3108f4['data1'],0x0,_0x3108f4['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x3108f4['data1']):_0x3108f4['data1']),object;},NumberBytesPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberBytesPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberBytesPacketDataMessage';},NumberBytesPacketDataMessage;}()),$root['NumberNumberPacketDataMessage']=(function(){function NumberNumberPacketDataMessage(properties){if(properties){for(var _0x35c9aa=Object['keys'](properties),_0x45165b=0x0;_0x45165b<_0x35c9aa['length'];++_0x45165b)null!=properties[_0x35c9aa[_0x45165b]]&&(this[_0x35c9aa[_0x45165b]]=properties[_0x35c9aa[_0x45165b]]);}}return NumberNumberPacketDataMessage['prototype']['data']=0x0,NumberNumberPacketDataMessage['prototype']['data1']=0x0,NumberNumberPacketDataMessage['create']=function(properties){return new NumberNumberPacketDataMessage(properties);},NumberNumberPacketDataMessage['encode']=function(_0x410be2,writer){return writer||(writer=$Writer['create']()),null!=_0x410be2['data']&&Object['hasOwnProperty']['call'](_0x410be2,'data')&&writer['uint32'](0x8)['uint32'](_0x410be2['data']),null!=_0x410be2['data1']&&Object['hasOwnProperty']['call'](_0x410be2,'data1')&&writer['uint32'](0x10)['uint32'](_0x410be2['data1']),writer;},NumberNumberPacketDataMessage['encodeDelimited']=function(_0x38986a,writer){return this['encode'](_0x38986a,writer)['ldelim']();},NumberNumberPacketDataMessage['decode']=function(_0x11dd36,length,_0x2fa9be){_0x11dd36 instanceof _0x7b4aff||(_0x11dd36=_0x7b4aff['create'](_0x11dd36));for(var _0x4b07ea=void 0x0===length?_0x11dd36['len']:_0x11dd36['pos']+length,_0x4b8993=new $root['NumberNumberPacketDataMessage']();_0x11dd36['pos']<_0x4b07ea;){var tag=_0x11dd36['uint32']();if(tag===_0x2fa9be)break;switch(tag>>>0x3){case 0x1:_0x4b8993['data']=_0x11dd36['uint32']();break;case 0x2:_0x4b8993['data1']=_0x11dd36['uint32']();break;default:_0x11dd36['skipType'](0x7&tag);}}return _0x4b8993;},NumberNumberPacketDataMessage['decodeDelimited']=function(_0x1c6413){return _0x1c6413 instanceof _0x7b4aff||(_0x1c6413=new _0x7b4aff(_0x1c6413)),this['decode'](_0x1c6413,_0x1c6413['uint32']());},NumberNumberPacketDataMessage['verify']=function(_0x170915){return'object'!=typeof _0x170915||null===_0x170915?'object\x20expected':null!=_0x170915['data']&&_0x170915['hasOwnProperty']('data')&&!$util['isInteger'](_0x170915['data'])?'data:\x20integer\x20expected':null!=_0x170915['data1']&&_0x170915['hasOwnProperty']('data1')&&!$util['isInteger'](_0x170915['data1'])?'data1:\x20integer\x20expected':null;},NumberNumberPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberNumberPacketDataMessage'])return object;var _0xb26933=new $root['NumberNumberPacketDataMessage']();return null!=object['data']&&(_0xb26933['data']=object['data']>>>0x0),null!=object['data1']&&(_0xb26933['data1']=object['data1']>>>0x0),_0xb26933;},NumberNumberPacketDataMessage['toObject']=function(_0x555ff7,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,object['data1']=0x0),null!=_0x555ff7['data']&&_0x555ff7['hasOwnProperty']('data')&&(object['data']=_0x555ff7['data']),null!=_0x555ff7['data1']&&_0x555ff7['hasOwnProperty']('data1')&&(object['data1']=_0x555ff7['data1']),object;},NumberNumberPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberNumberPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberNumberPacketDataMessage';},NumberNumberPacketDataMessage;}()),$root['NumberObjectPacketDataMessage']=(function(){function NumberObjectPacketDataMessage(properties){if(properties){for(var _0x19246f=Object['keys'](properties),_0x5dd2d7=0x0;_0x5dd2d7<_0x19246f['length'];++_0x5dd2d7)null!=properties[_0x19246f[_0x5dd2d7]]&&(this[_0x19246f[_0x5dd2d7]]=properties[_0x19246f[_0x5dd2d7]]);}}return NumberObjectPacketDataMessage['prototype']['data']=0x0,NumberObjectPacketDataMessage['prototype']['data1']='',NumberObjectPacketDataMessage['create']=function(properties){return new NumberObjectPacketDataMessage(properties);},NumberObjectPacketDataMessage['encode']=function(_0x71d06d,writer){return writer||(writer=$Writer['create']()),null!=_0x71d06d['data']&&Object['hasOwnProperty']['call'](_0x71d06d,'data')&&writer['uint32'](0x8)['uint32'](_0x71d06d['data']),null!=_0x71d06d['data1']&&Object['hasOwnProperty']['call'](_0x71d06d,'data1')&&writer['uint32'](0x12)['string'](_0x71d06d['data1']),writer;},NumberObjectPacketDataMessage['encodeDelimited']=function(_0x3a8298,writer){return this['encode'](_0x3a8298,writer)['ldelim']();},NumberObjectPacketDataMessage['decode']=function(_0x409fe0,length,_0x5b5fde){_0x409fe0 instanceof _0x7b4aff||(_0x409fe0=_0x7b4aff['create'](_0x409fe0));for(var _0x59452d=void 0x0===length?_0x409fe0['len']:_0x409fe0['pos']+length,_0x5d96bb=new $root['NumberObjectPacketDataMessage']();_0x409fe0['pos']<_0x59452d;){var tag=_0x409fe0['uint32']();if(tag===_0x5b5fde)break;switch(tag>>>0x3){case 0x1:_0x5d96bb['data']=_0x409fe0['uint32']();break;case 0x2:_0x5d96bb['data1']=_0x409fe0['string']();break;default:_0x409fe0['skipType'](0x7&tag);}}return _0x5d96bb;},NumberObjectPacketDataMessage['decodeDelimited']=function(_0x50e379){return _0x50e379 instanceof _0x7b4aff||(_0x50e379=new _0x7b4aff(_0x50e379)),this['decode'](_0x50e379,_0x50e379['uint32']());},NumberObjectPacketDataMessage['verify']=function(_0xfd97f6){return'object'!=typeof _0xfd97f6||null===_0xfd97f6?'object\x20expected':null!=_0xfd97f6['data']&&_0xfd97f6['hasOwnProperty']('data')&&!$util['isInteger'](_0xfd97f6['data'])?'data:\x20integer\x20expected':null!=_0xfd97f6['data1']&&_0xfd97f6['hasOwnProperty']('data1')&&!$util['isString'](_0xfd97f6['data1'])?'data1:\x20string\x20expected':null;},NumberObjectPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberObjectPacketDataMessage'])return object;var _0x24ac3a=new $root['NumberObjectPacketDataMessage']();return null!=object['data']&&(_0x24ac3a['data']=object['data']>>>0x0),null!=object['data1']&&(_0x24ac3a['data1']=String(object['data1'])),_0x24ac3a;},NumberObjectPacketDataMessage['toObject']=function(_0x18a7d1,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,object['data1']=''),null!=_0x18a7d1['data']&&_0x18a7d1['hasOwnProperty']('data')&&(object['data']=_0x18a7d1['data']),null!=_0x18a7d1['data1']&&_0x18a7d1['hasOwnProperty']('data1')&&(object['data1']=_0x18a7d1['data1']),object;},NumberObjectPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberObjectPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberObjectPacketDataMessage';},NumberObjectPacketDataMessage;}()),$root['NumberStringPacketDataMessage']=(function(){function NumberStringPacketDataMessage(properties){if(properties){for(var _0x500e9c=Object['keys'](properties),_0x35a017=0x0;_0x35a017<_0x500e9c['length'];++_0x35a017)null!=properties[_0x500e9c[_0x35a017]]&&(this[_0x500e9c[_0x35a017]]=properties[_0x500e9c[_0x35a017]]);}}return NumberStringPacketDataMessage['prototype']['data']=0x0,NumberStringPacketDataMessage['prototype']['data1']='',NumberStringPacketDataMessage['create']=function(properties){return new NumberStringPacketDataMessage(properties);},NumberStringPacketDataMessage['encode']=function(_0x45f7c3,writer){return writer||(writer=$Writer['create']()),null!=_0x45f7c3['data']&&Object['hasOwnProperty']['call'](_0x45f7c3,'data')&&writer['uint32'](0x8)['uint32'](_0x45f7c3['data']),null!=_0x45f7c3['data1']&&Object['hasOwnProperty']['call'](_0x45f7c3,'data1')&&writer['uint32'](0x12)['string'](_0x45f7c3['data1']),writer;},NumberStringPacketDataMessage['encodeDelimited']=function(_0x2814b7,writer){return this['encode'](_0x2814b7,writer)['ldelim']();},NumberStringPacketDataMessage['decode']=function(_0x50eea2,length,_0x47a93d){_0x50eea2 instanceof _0x7b4aff||(_0x50eea2=_0x7b4aff['create'](_0x50eea2));for(var _0x307390=void 0x0===length?_0x50eea2['len']:_0x50eea2['pos']+length,_0x433ebc=new $root['NumberStringPacketDataMessage']();_0x50eea2['pos']<_0x307390;){var tag=_0x50eea2['uint32']();if(tag===_0x47a93d)break;switch(tag>>>0x3){case 0x1:_0x433ebc['data']=_0x50eea2['uint32']();break;case 0x2:_0x433ebc['data1']=_0x50eea2['string']();break;default:_0x50eea2['skipType'](0x7&tag);}}return _0x433ebc;},NumberStringPacketDataMessage['decodeDelimited']=function(_0x5c7921){return _0x5c7921 instanceof _0x7b4aff||(_0x5c7921=new _0x7b4aff(_0x5c7921)),this['decode'](_0x5c7921,_0x5c7921['uint32']());},NumberStringPacketDataMessage['verify']=function(_0x212e80){return'object'!=typeof _0x212e80||null===_0x212e80?'object\x20expected':null!=_0x212e80['data']&&_0x212e80['hasOwnProperty']('data')&&!$util['isInteger'](_0x212e80['data'])?'data:\x20integer\x20expected':null!=_0x212e80['data1']&&_0x212e80['hasOwnProperty']('data1')&&!$util['isString'](_0x212e80['data1'])?'data1:\x20string\x20expected':null;},NumberStringPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberStringPacketDataMessage'])return object;var _0x298774=new $root['NumberStringPacketDataMessage']();return null!=object['data']&&(_0x298774['data']=object['data']>>>0x0),null!=object['data1']&&(_0x298774['data1']=String(object['data1'])),_0x298774;},NumberStringPacketDataMessage['toObject']=function(_0x16a378,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,object['data1']=''),null!=_0x16a378['data']&&_0x16a378['hasOwnProperty']('data')&&(object['data']=_0x16a378['data']),null!=_0x16a378['data1']&&_0x16a378['hasOwnProperty']('data1')&&(object['data1']=_0x16a378['data1']),object;},NumberStringPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberStringPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberStringPacketDataMessage';},NumberStringPacketDataMessage;}()),$root['ObjectBufferPacketDataMessage']=(function(){function ObjectBufferPacketDataMessage(properties){if(properties){for(var _0x399143=Object['keys'](properties),_0x383028=0x0;_0x383028<_0x399143['length'];++_0x383028)null!=properties[_0x399143[_0x383028]]&&(this[_0x399143[_0x383028]]=properties[_0x399143[_0x383028]]);}}return ObjectBufferPacketDataMessage['prototype']['data']='',ObjectBufferPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),ObjectBufferPacketDataMessage['create']=function(properties){return new ObjectBufferPacketDataMessage(properties);},ObjectBufferPacketDataMessage['encode']=function(_0x38deb0,writer){return writer||(writer=$Writer['create']()),null!=_0x38deb0['data']&&Object['hasOwnProperty']['call'](_0x38deb0,'data')&&writer['uint32'](0xa)['string'](_0x38deb0['data']),null!=_0x38deb0['data1']&&Object['hasOwnProperty']['call'](_0x38deb0,'data1')&&writer['uint32'](0x12)['bytes'](_0x38deb0['data1']),writer;},ObjectBufferPacketDataMessage['encodeDelimited']=function(_0x1be615,writer){return this['encode'](_0x1be615,writer)['ldelim']();},ObjectBufferPacketDataMessage['decode']=function(_0x13f026,length,_0x37b777){_0x13f026 instanceof _0x7b4aff||(_0x13f026=_0x7b4aff['create'](_0x13f026));for(var _0x312174=void 0x0===length?_0x13f026['len']:_0x13f026['pos']+length,_0x1511fe=new $root['ObjectBufferPacketDataMessage']();_0x13f026['pos']<_0x312174;){var tag=_0x13f026['uint32']();if(tag===_0x37b777)break;switch(tag>>>0x3){case 0x1:_0x1511fe['data']=_0x13f026['string']();break;case 0x2:_0x1511fe['data1']=_0x13f026['bytes']();break;default:_0x13f026['skipType'](0x7&tag);}}return _0x1511fe;},ObjectBufferPacketDataMessage['decodeDelimited']=function(_0x5ef28e){return _0x5ef28e instanceof _0x7b4aff||(_0x5ef28e=new _0x7b4aff(_0x5ef28e)),this['decode'](_0x5ef28e,_0x5ef28e['uint32']());},ObjectBufferPacketDataMessage['verify']=function(_0x4faf2f){return'object'!=typeof _0x4faf2f||null===_0x4faf2f?'object\x20expected':null!=_0x4faf2f['data']&&_0x4faf2f['hasOwnProperty']('data')&&!$util['isString'](_0x4faf2f['data'])?'data:\x20string\x20expected':null!=_0x4faf2f['data1']&&_0x4faf2f['hasOwnProperty']('data1')&&!(_0x4faf2f['data1']&&'number'==typeof _0x4faf2f['data1']['length']||$util['isString'](_0x4faf2f['data1']))?'data1:\x20buffer\x20expected':null;},ObjectBufferPacketDataMessage['fromObject']=function(object){if(object instanceof $root['ObjectBufferPacketDataMessage'])return object;var _0xfe1d93=new $root['ObjectBufferPacketDataMessage']();return null!=object['data']&&(_0xfe1d93['data']=String(object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0xfe1d93['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0xfe1d93['data1']=object['data1'])),_0xfe1d93;},ObjectBufferPacketDataMessage['toObject']=function(_0x3c6a89,options){options||(options={});var object={};return options['defaults']&&(object['data']='',options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x3c6a89['data']&&_0x3c6a89['hasOwnProperty']('data')&&(object['data']=_0x3c6a89['data']),null!=_0x3c6a89['data1']&&_0x3c6a89['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x3c6a89['data1'],0x0,_0x3c6a89['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x3c6a89['data1']):_0x3c6a89['data1']),object;},ObjectBufferPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},ObjectBufferPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ObjectBufferPacketDataMessage';},ObjectBufferPacketDataMessage;}()),$root['ObjectObjectPacketDataMessage']=(function(){function ObjectObjectPacketDataMessage(properties){if(properties){for(var _0x4b8554=Object['keys'](properties),_0x32ccf6=0x0;_0x32ccf6<_0x4b8554['length'];++_0x32ccf6)null!=properties[_0x4b8554[_0x32ccf6]]&&(this[_0x4b8554[_0x32ccf6]]=properties[_0x4b8554[_0x32ccf6]]);}}return ObjectObjectPacketDataMessage['prototype']['data']='',ObjectObjectPacketDataMessage['prototype']['data1']='',ObjectObjectPacketDataMessage['create']=function(properties){return new ObjectObjectPacketDataMessage(properties);},ObjectObjectPacketDataMessage['encode']=function(_0x3d3964,writer){return writer||(writer=$Writer['create']()),null!=_0x3d3964['data']&&Object['hasOwnProperty']['call'](_0x3d3964,'data')&&writer['uint32'](0xa)['string'](_0x3d3964['data']),null!=_0x3d3964['data1']&&Object['hasOwnProperty']['call'](_0x3d3964,'data1')&&writer['uint32'](0x12)['string'](_0x3d3964['data1']),writer;},ObjectObjectPacketDataMessage['encodeDelimited']=function(_0x1181b6,writer){return this['encode'](_0x1181b6,writer)['ldelim']();},ObjectObjectPacketDataMessage['decode']=function(_0x2bd5b1,length,_0x4497af){_0x2bd5b1 instanceof _0x7b4aff||(_0x2bd5b1=_0x7b4aff['create'](_0x2bd5b1));for(var _0x15ccc4=void 0x0===length?_0x2bd5b1['len']:_0x2bd5b1['pos']+length,_0x3f0cbb=new $root['ObjectObjectPacketDataMessage']();_0x2bd5b1['pos']<_0x15ccc4;){var tag=_0x2bd5b1['uint32']();if(tag===_0x4497af)break;switch(tag>>>0x3){case 0x1:_0x3f0cbb['data']=_0x2bd5b1['string']();break;case 0x2:_0x3f0cbb['data1']=_0x2bd5b1['string']();break;default:_0x2bd5b1['skipType'](0x7&tag);}}return _0x3f0cbb;},ObjectObjectPacketDataMessage['decodeDelimited']=function(_0x2c5159){return _0x2c5159 instanceof _0x7b4aff||(_0x2c5159=new _0x7b4aff(_0x2c5159)),this['decode'](_0x2c5159,_0x2c5159['uint32']());},ObjectObjectPacketDataMessage['verify']=function(_0x59a855){return'object'!=typeof _0x59a855||null===_0x59a855?'object\x20expected':null!=_0x59a855['data']&&_0x59a855['hasOwnProperty']('data')&&!$util['isString'](_0x59a855['data'])?'data:\x20string\x20expected':null!=_0x59a855['data1']&&_0x59a855['hasOwnProperty']('data1')&&!$util['isString'](_0x59a855['data1'])?'data1:\x20string\x20expected':null;},ObjectObjectPacketDataMessage['fromObject']=function(object){if(object instanceof $root['ObjectObjectPacketDataMessage'])return object;var _0x5ec1aa=new $root['ObjectObjectPacketDataMessage']();return null!=object['data']&&(_0x5ec1aa['data']=String(object['data'])),null!=object['data1']&&(_0x5ec1aa['data1']=String(object['data1'])),_0x5ec1aa;},ObjectObjectPacketDataMessage['toObject']=function(_0x1f3daf,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x1f3daf['data']&&_0x1f3daf['hasOwnProperty']('data')&&(object['data']=_0x1f3daf['data']),null!=_0x1f3daf['data1']&&_0x1f3daf['hasOwnProperty']('data1')&&(object['data1']=_0x1f3daf['data1']),object;},ObjectObjectPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},ObjectObjectPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ObjectObjectPacketDataMessage';},ObjectObjectPacketDataMessage;}()),$root['PacketMessage']=(function(){function PacketMessage(properties){if(properties){for(var _0x52d1ed=Object['keys'](properties),_0x5da350=0x0;_0x5da350<_0x52d1ed['length'];++_0x5da350)null!=properties[_0x52d1ed[_0x5da350]]&&(this[_0x52d1ed[_0x5da350]]=properties[_0x52d1ed[_0x5da350]]);}}return PacketMessage['prototype']['type']=0x0,PacketMessage['prototype']['id']=0x0,PacketMessage['prototype']['nsp']='',PacketMessage['prototype']['data']=$util['newBuffer']([]),PacketMessage['prototype']['options']=$util['newBuffer']([]),PacketMessage['create']=function(properties){return new PacketMessage(properties);},PacketMessage['encode']=function(_0x414f45,writer){return writer||(writer=$Writer['create']()),null!=_0x414f45['type']&&Object['hasOwnProperty']['call'](_0x414f45,'type')&&writer['uint32'](0x8)['uint32'](_0x414f45['type']),null!=_0x414f45['id']&&Object['hasOwnProperty']['call'](_0x414f45,'id')&&writer['uint32'](0x10)['uint32'](_0x414f45['id']),null!=_0x414f45['nsp']&&Object['hasOwnProperty']['call'](_0x414f45,'nsp')&&writer['uint32'](0x1a)['string'](_0x414f45['nsp']),null!=_0x414f45['data']&&Object['hasOwnProperty']['call'](_0x414f45,'data')&&writer['uint32'](0x22)['bytes'](_0x414f45['data']),null!=_0x414f45['options']&&Object['hasOwnProperty']['call'](_0x414f45,'options')&&writer['uint32'](0x2a)['bytes'](_0x414f45['options']),writer;},PacketMessage['encodeDelimited']=function(_0x55eda4,writer){return this['encode'](_0x55eda4,writer)['ldelim']();},PacketMessage['decode']=function(_0x573fed,length,_0x2f2cfc){_0x573fed instanceof _0x7b4aff||(_0x573fed=_0x7b4aff['create'](_0x573fed));for(var _0x5da901=void 0x0===length?_0x573fed['len']:_0x573fed['pos']+length,_0x38826a=new $root['PacketMessage']();_0x573fed['pos']<_0x5da901;){var tag=_0x573fed['uint32']();if(tag===_0x2f2cfc)break;switch(tag>>>0x3){case 0x1:_0x38826a['type']=_0x573fed['uint32']();break;case 0x2:_0x38826a['id']=_0x573fed['uint32']();break;case 0x3:_0x38826a['nsp']=_0x573fed['string']();break;case 0x4:_0x38826a['data']=_0x573fed['bytes']();break;case 0x5:_0x38826a['options']=_0x573fed['bytes']();break;default:_0x573fed['skipType'](0x7&tag);}}return _0x38826a;},PacketMessage['decodeDelimited']=function(_0x229a07){return _0x229a07 instanceof _0x7b4aff||(_0x229a07=new _0x7b4aff(_0x229a07)),this['decode'](_0x229a07,_0x229a07['uint32']());},PacketMessage['verify']=function(_0x5afede){return'object'!=typeof _0x5afede||null===_0x5afede?'object\x20expected':null!=_0x5afede['type']&&_0x5afede['hasOwnProperty']('type')&&!$util['isInteger'](_0x5afede['type'])?'type:\x20integer\x20expected':null!=_0x5afede['id']&&_0x5afede['hasOwnProperty']('id')&&!$util['isInteger'](_0x5afede['id'])?'id:\x20integer\x20expected':null!=_0x5afede['nsp']&&_0x5afede['hasOwnProperty']('nsp')&&!$util['isString'](_0x5afede['nsp'])?'nsp:\x20string\x20expected':null!=_0x5afede['data']&&_0x5afede['hasOwnProperty']('data')&&!(_0x5afede['data']&&'number'==typeof _0x5afede['data']['length']||$util['isString'](_0x5afede['data']))?'data:\x20buffer\x20expected':null!=_0x5afede['options']&&_0x5afede['hasOwnProperty']('options')&&!(_0x5afede['options']&&'number'==typeof _0x5afede['options']['length']||$util['isString'](_0x5afede['options']))?'options:\x20buffer\x20expected':null;},PacketMessage['fromObject']=function(object){if(object instanceof $root['PacketMessage'])return object;var _0x96aa59=new $root['PacketMessage']();return null!=object['type']&&(_0x96aa59['type']=object['type']>>>0x0),null!=object['id']&&(_0x96aa59['id']=object['id']>>>0x0),null!=object['nsp']&&(_0x96aa59['nsp']=String(object['nsp'])),null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x96aa59['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x96aa59['data']=object['data'])),null!=object['options']&&('string'==typeof object['options']?$util['base64']['decode'](object['options'],_0x96aa59['options']=$util['newBuffer']($util['base64']['length'](object['options'])),0x0):object['options']['length']>=0x0&&(_0x96aa59['options']=object['options'])),_0x96aa59;},PacketMessage['toObject']=function(_0x20c3e4,options){options||(options={});var object={};return options['defaults']&&(object['type']=0x0,object['id']=0x0,object['nsp']='',options['bytes']===String?object['data']='':(object['data']=[],options['bytes']!==Array&&(object['data']=$util['newBuffer'](object['data']))),options['bytes']===String?object['options']='':(object['options']=[],options['bytes']!==Array&&(object['options']=$util['newBuffer'](object['options'])))),null!=_0x20c3e4['type']&&_0x20c3e4['hasOwnProperty']('type')&&(object['type']=_0x20c3e4['type']),null!=_0x20c3e4['id']&&_0x20c3e4['hasOwnProperty']('id')&&(object['id']=_0x20c3e4['id']),null!=_0x20c3e4['nsp']&&_0x20c3e4['hasOwnProperty']('nsp')&&(object['nsp']=_0x20c3e4['nsp']),null!=_0x20c3e4['data']&&_0x20c3e4['hasOwnProperty']('data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x20c3e4['data'],0x0,_0x20c3e4['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x20c3e4['data']):_0x20c3e4['data']),null!=_0x20c3e4['options']&&_0x20c3e4['hasOwnProperty']('options')&&(object['options']=options['bytes']===String?$util['base64']['encode'](_0x20c3e4['options'],0x0,_0x20c3e4['options']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x20c3e4['options']):_0x20c3e4['options']),object;},PacketMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},PacketMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/PacketMessage';},PacketMessage;}()),$root['PacketOptionsMessage']=(function(){function PacketOptionsMessage(properties){if(this['rooms']=[],this['except']=[],properties){for(var _0xe86ed=Object['keys'](properties),_0x1a2569=0x0;_0x1a2569<_0xe86ed['length'];++_0x1a2569)null!=properties[_0xe86ed[_0x1a2569]]&&(this[_0xe86ed[_0x1a2569]]=properties[_0xe86ed[_0x1a2569]]);}}return PacketOptionsMessage['prototype']['flags']='',PacketOptionsMessage['prototype']['rooms']=$util['emptyArray'],PacketOptionsMessage['prototype']['except']=$util['emptyArray'],PacketOptionsMessage['create']=function(properties){return new PacketOptionsMessage(properties);},PacketOptionsMessage['encode']=function(_0x2fdd1b,writer){if(writer||(writer=$Writer['create']()),null!=_0x2fdd1b['flags']&&Object['hasOwnProperty']['call'](_0x2fdd1b,'flags')&&writer['uint32'](0xa)['string'](_0x2fdd1b['flags']),null!=_0x2fdd1b['rooms']&&_0x2fdd1b['rooms']['length']){for(var _0x59a06b=0x0;_0x59a06b<_0x2fdd1b['rooms']['length'];++_0x59a06b)writer['uint32'](0x12)['string'](_0x2fdd1b['rooms'][_0x59a06b]);}if(null!=_0x2fdd1b['except']&&_0x2fdd1b['except']['length']){for(_0x59a06b=0x0;_0x59a06b<_0x2fdd1b['except']['length'];++_0x59a06b)writer['uint32'](0x1a)['string'](_0x2fdd1b['except'][_0x59a06b]);}return writer;},PacketOptionsMessage['encodeDelimited']=function(_0x5a2378,writer){return this['encode'](_0x5a2378,writer)['ldelim']();},PacketOptionsMessage['decode']=function(_0x230b2b,length,_0x4e6769){_0x230b2b instanceof _0x7b4aff||(_0x230b2b=_0x7b4aff['create'](_0x230b2b));for(var _0x2a7a9a=void 0x0===length?_0x230b2b['len']:_0x230b2b['pos']+length,_0x212ccc=new $root['PacketOptionsMessage']();_0x230b2b['pos']<_0x2a7a9a;){var tag=_0x230b2b['uint32']();if(tag===_0x4e6769)break;switch(tag>>>0x3){case 0x1:_0x212ccc['flags']=_0x230b2b['string']();break;case 0x2:_0x212ccc['rooms']&&_0x212ccc['rooms']['length']||(_0x212ccc['rooms']=[]),_0x212ccc['rooms']['push'](_0x230b2b['string']());break;case 0x3:_0x212ccc['except']&&_0x212ccc['except']['length']||(_0x212ccc['except']=[]),_0x212ccc['except']['push'](_0x230b2b['string']());break;default:_0x230b2b['skipType'](0x7&tag);}}return _0x212ccc;},PacketOptionsMessage['decodeDelimited']=function(_0x37462a){return _0x37462a instanceof _0x7b4aff||(_0x37462a=new _0x7b4aff(_0x37462a)),this['decode'](_0x37462a,_0x37462a['uint32']());},PacketOptionsMessage['verify']=function(_0x19f2db){if('object'!=typeof _0x19f2db||null===_0x19f2db)return'object\x20expected';if(null!=_0x19f2db['flags']&&_0x19f2db['hasOwnProperty']('flags')&&!$util['isString'](_0x19f2db['flags']))return'flags:\x20string\x20expected';if(null!=_0x19f2db['rooms']&&_0x19f2db['hasOwnProperty']('rooms')){if(!Array['isArray'](_0x19f2db['rooms']))return'rooms:\x20array\x20expected';for(var _0x13d6bd=0x0;_0x13d6bd<_0x19f2db['rooms']['length'];++_0x13d6bd)if(!$util['isString'](_0x19f2db['rooms'][_0x13d6bd]))return'rooms:\x20string[]\x20expected';}if(null!=_0x19f2db['except']&&_0x19f2db['hasOwnProperty']('except')){if(!Array['isArray'](_0x19f2db['except']))return'except:\x20array\x20expected';for(_0x13d6bd=0x0;_0x13d6bd<_0x19f2db['except']['length'];++_0x13d6bd)if(!$util['isString'](_0x19f2db['except'][_0x13d6bd]))return'except:\x20string[]\x20expected';}return null;},PacketOptionsMessage['fromObject']=function(object){if(object instanceof $root['PacketOptionsMessage'])return object;var _0x317a3f=new $root['PacketOptionsMessage']();if(null!=object['flags']&&(_0x317a3f['flags']=String(object['flags'])),object['rooms']){if(!Array['isArray'](object['rooms']))throw TypeError('.PacketOptionsMessage.rooms:\x20array\x20expected');_0x317a3f['rooms']=[];for(var _0x36acc8=0x0;_0x36acc8<object['rooms']['length'];++_0x36acc8)_0x317a3f['rooms'][_0x36acc8]=String(object['rooms'][_0x36acc8]);}if(object['except']){if(!Array['isArray'](object['except']))throw TypeError('.PacketOptionsMessage.except:\x20array\x20expected');_0x317a3f['except']=[];for(_0x36acc8=0x0;_0x36acc8<object['except']['length'];++_0x36acc8)_0x317a3f['except'][_0x36acc8]=String(object['except'][_0x36acc8]);}return _0x317a3f;},PacketOptionsMessage['toObject']=function(_0x23009b,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['rooms']=[],object['except']=[]),options['defaults']&&(object['flags']=''),null!=_0x23009b['flags']&&_0x23009b['hasOwnProperty']('flags')&&(object['flags']=_0x23009b['flags']),_0x23009b['rooms']&&_0x23009b['rooms']['length']){object['rooms']=[];for(var _0x210127=0x0;_0x210127<_0x23009b['rooms']['length'];++_0x210127)object['rooms'][_0x210127]=_0x23009b['rooms'][_0x210127];}if(_0x23009b['except']&&_0x23009b['except']['length']){object['except']=[];for(_0x210127=0x0;_0x210127<_0x23009b['except']['length'];++_0x210127)object['except'][_0x210127]=_0x23009b['except'][_0x210127];}return object;},PacketOptionsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},PacketOptionsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/PacketOptionsMessage';},PacketOptionsMessage;}()),$root['StringBytesPacketDataMessage']=(function(){function StringBytesPacketDataMessage(properties){if(properties){for(var _0x29d9e1=Object['keys'](properties),_0x287ede=0x0;_0x287ede<_0x29d9e1['length'];++_0x287ede)null!=properties[_0x29d9e1[_0x287ede]]&&(this[_0x29d9e1[_0x287ede]]=properties[_0x29d9e1[_0x287ede]]);}}return StringBytesPacketDataMessage['prototype']['data']='',StringBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),StringBytesPacketDataMessage['create']=function(properties){return new StringBytesPacketDataMessage(properties);},StringBytesPacketDataMessage['encode']=function(_0x156650,writer){return writer||(writer=$Writer['create']()),null!=_0x156650['data']&&Object['hasOwnProperty']['call'](_0x156650,'data')&&writer['uint32'](0xa)['string'](_0x156650['data']),null!=_0x156650['data1']&&Object['hasOwnProperty']['call'](_0x156650,'data1')&&writer['uint32'](0x12)['bytes'](_0x156650['data1']),writer;},StringBytesPacketDataMessage['encodeDelimited']=function(_0x35e298,writer){return this['encode'](_0x35e298,writer)['ldelim']();},StringBytesPacketDataMessage['decode']=function(_0x3c4cec,length,_0xbaf63e){_0x3c4cec instanceof _0x7b4aff||(_0x3c4cec=_0x7b4aff['create'](_0x3c4cec));for(var _0x3ad0b1=void 0x0===length?_0x3c4cec['len']:_0x3c4cec['pos']+length,_0x1f9f39=new $root['StringBytesPacketDataMessage']();_0x3c4cec['pos']<_0x3ad0b1;){var tag=_0x3c4cec['uint32']();if(tag===_0xbaf63e)break;switch(tag>>>0x3){case 0x1:_0x1f9f39['data']=_0x3c4cec['string']();break;case 0x2:_0x1f9f39['data1']=_0x3c4cec['bytes']();break;default:_0x3c4cec['skipType'](0x7&tag);}}return _0x1f9f39;},StringBytesPacketDataMessage['decodeDelimited']=function(_0x265918){return _0x265918 instanceof _0x7b4aff||(_0x265918=new _0x7b4aff(_0x265918)),this['decode'](_0x265918,_0x265918['uint32']());},StringBytesPacketDataMessage['verify']=function(_0x3a3643){return'object'!=typeof _0x3a3643||null===_0x3a3643?'object\x20expected':null!=_0x3a3643['data']&&_0x3a3643['hasOwnProperty']('data')&&!$util['isString'](_0x3a3643['data'])?'data:\x20string\x20expected':null!=_0x3a3643['data1']&&_0x3a3643['hasOwnProperty']('data1')&&!(_0x3a3643['data1']&&'number'==typeof _0x3a3643['data1']['length']||$util['isString'](_0x3a3643['data1']))?'data1:\x20buffer\x20expected':null;},StringBytesPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringBytesPacketDataMessage'])return object;var _0xc81925=new $root['StringBytesPacketDataMessage']();return null!=object['data']&&(_0xc81925['data']=String(object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0xc81925['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0xc81925['data1']=object['data1'])),_0xc81925;},StringBytesPacketDataMessage['toObject']=function(_0x506ccd,options){options||(options={});var object={};return options['defaults']&&(object['data']='',options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x506ccd['data']&&_0x506ccd['hasOwnProperty']('data')&&(object['data']=_0x506ccd['data']),null!=_0x506ccd['data1']&&_0x506ccd['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x506ccd['data1'],0x0,_0x506ccd['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x506ccd['data1']):_0x506ccd['data1']),object;},StringBytesPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringBytesPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringBytesPacketDataMessage';},StringBytesPacketDataMessage;}()),$root['StringNumberPacketDataMessage']=(function(){function StringNumberPacketDataMessage(properties){if(properties){for(var _0x15cc88=Object['keys'](properties),_0x39a799=0x0;_0x39a799<_0x15cc88['length'];++_0x39a799)null!=properties[_0x15cc88[_0x39a799]]&&(this[_0x15cc88[_0x39a799]]=properties[_0x15cc88[_0x39a799]]);}}return StringNumberPacketDataMessage['prototype']['data']='',StringNumberPacketDataMessage['prototype']['data1']=0x0,StringNumberPacketDataMessage['create']=function(properties){return new StringNumberPacketDataMessage(properties);},StringNumberPacketDataMessage['encode']=function(_0x27d428,writer){return writer||(writer=$Writer['create']()),null!=_0x27d428['data']&&Object['hasOwnProperty']['call'](_0x27d428,'data')&&writer['uint32'](0xa)['string'](_0x27d428['data']),null!=_0x27d428['data1']&&Object['hasOwnProperty']['call'](_0x27d428,'data1')&&writer['uint32'](0x10)['uint32'](_0x27d428['data1']),writer;},StringNumberPacketDataMessage['encodeDelimited']=function(_0x3f812d,writer){return this['encode'](_0x3f812d,writer)['ldelim']();},StringNumberPacketDataMessage['decode']=function(_0x5683a7,length,_0x243612){_0x5683a7 instanceof _0x7b4aff||(_0x5683a7=_0x7b4aff['create'](_0x5683a7));for(var _0x2b0233=void 0x0===length?_0x5683a7['len']:_0x5683a7['pos']+length,_0x466710=new $root['StringNumberPacketDataMessage']();_0x5683a7['pos']<_0x2b0233;){var tag=_0x5683a7['uint32']();if(tag===_0x243612)break;switch(tag>>>0x3){case 0x1:_0x466710['data']=_0x5683a7['string']();break;case 0x2:_0x466710['data1']=_0x5683a7['uint32']();break;default:_0x5683a7['skipType'](0x7&tag);}}return _0x466710;},StringNumberPacketDataMessage['decodeDelimited']=function(_0x24e4d5){return _0x24e4d5 instanceof _0x7b4aff||(_0x24e4d5=new _0x7b4aff(_0x24e4d5)),this['decode'](_0x24e4d5,_0x24e4d5['uint32']());},StringNumberPacketDataMessage['verify']=function(_0x29b12c){return'object'!=typeof _0x29b12c||null===_0x29b12c?'object\x20expected':null!=_0x29b12c['data']&&_0x29b12c['hasOwnProperty']('data')&&!$util['isString'](_0x29b12c['data'])?'data:\x20string\x20expected':null!=_0x29b12c['data1']&&_0x29b12c['hasOwnProperty']('data1')&&!$util['isInteger'](_0x29b12c['data1'])?'data1:\x20integer\x20expected':null;},StringNumberPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringNumberPacketDataMessage'])return object;var _0x1e6cd6=new $root['StringNumberPacketDataMessage']();return null!=object['data']&&(_0x1e6cd6['data']=String(object['data'])),null!=object['data1']&&(_0x1e6cd6['data1']=object['data1']>>>0x0),_0x1e6cd6;},StringNumberPacketDataMessage['toObject']=function(_0x85a82d,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=0x0),null!=_0x85a82d['data']&&_0x85a82d['hasOwnProperty']('data')&&(object['data']=_0x85a82d['data']),null!=_0x85a82d['data1']&&_0x85a82d['hasOwnProperty']('data1')&&(object['data1']=_0x85a82d['data1']),object;},StringNumberPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringNumberPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringNumberPacketDataMessage';},StringNumberPacketDataMessage;}()),$root['StringObjectPacketDataMessage']=(function(){function StringObjectPacketDataMessage(properties){if(properties){for(var _0x25ba5d=Object['keys'](properties),_0x133e5a=0x0;_0x133e5a<_0x25ba5d['length'];++_0x133e5a)null!=properties[_0x25ba5d[_0x133e5a]]&&(this[_0x25ba5d[_0x133e5a]]=properties[_0x25ba5d[_0x133e5a]]);}}return StringObjectPacketDataMessage['prototype']['data']='',StringObjectPacketDataMessage['prototype']['data1']='',StringObjectPacketDataMessage['create']=function(properties){return new StringObjectPacketDataMessage(properties);},StringObjectPacketDataMessage['encode']=function(_0x2769c9,writer){return writer||(writer=$Writer['create']()),null!=_0x2769c9['data']&&Object['hasOwnProperty']['call'](_0x2769c9,'data')&&writer['uint32'](0xa)['string'](_0x2769c9['data']),null!=_0x2769c9['data1']&&Object['hasOwnProperty']['call'](_0x2769c9,'data1')&&writer['uint32'](0x12)['string'](_0x2769c9['data1']),writer;},StringObjectPacketDataMessage['encodeDelimited']=function(_0x413bf7,writer){return this['encode'](_0x413bf7,writer)['ldelim']();},StringObjectPacketDataMessage['decode']=function(_0x1d056e,length,_0x38f80f){_0x1d056e instanceof _0x7b4aff||(_0x1d056e=_0x7b4aff['create'](_0x1d056e));for(var _0x512b5d=void 0x0===length?_0x1d056e['len']:_0x1d056e['pos']+length,_0xa3a7f9=new $root['StringObjectPacketDataMessage']();_0x1d056e['pos']<_0x512b5d;){var tag=_0x1d056e['uint32']();if(tag===_0x38f80f)break;switch(tag>>>0x3){case 0x1:_0xa3a7f9['data']=_0x1d056e['string']();break;case 0x2:_0xa3a7f9['data1']=_0x1d056e['string']();break;default:_0x1d056e['skipType'](0x7&tag);}}return _0xa3a7f9;},StringObjectPacketDataMessage['decodeDelimited']=function(_0x5f0a97){return _0x5f0a97 instanceof _0x7b4aff||(_0x5f0a97=new _0x7b4aff(_0x5f0a97)),this['decode'](_0x5f0a97,_0x5f0a97['uint32']());},StringObjectPacketDataMessage['verify']=function(_0x5048bb){return'object'!=typeof _0x5048bb||null===_0x5048bb?'object\x20expected':null!=_0x5048bb['data']&&_0x5048bb['hasOwnProperty']('data')&&!$util['isString'](_0x5048bb['data'])?'data:\x20string\x20expected':null!=_0x5048bb['data1']&&_0x5048bb['hasOwnProperty']('data1')&&!$util['isString'](_0x5048bb['data1'])?'data1:\x20string\x20expected':null;},StringObjectPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringObjectPacketDataMessage'])return object;var _0x1aa57a=new $root['StringObjectPacketDataMessage']();return null!=object['data']&&(_0x1aa57a['data']=String(object['data'])),null!=object['data1']&&(_0x1aa57a['data1']=String(object['data1'])),_0x1aa57a;},StringObjectPacketDataMessage['toObject']=function(_0x639a4,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x639a4['data']&&_0x639a4['hasOwnProperty']('data')&&(object['data']=_0x639a4['data']),null!=_0x639a4['data1']&&_0x639a4['hasOwnProperty']('data1')&&(object['data1']=_0x639a4['data1']),object;},StringObjectPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringObjectPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringObjectPacketDataMessage';},StringObjectPacketDataMessage;}()),$root['StringStringPacketDataMessage']=(function(){function StringStringPacketDataMessage(properties){if(properties){for(var _0x3ed07f=Object['keys'](properties),_0x10e47c=0x0;_0x10e47c<_0x3ed07f['length'];++_0x10e47c)null!=properties[_0x3ed07f[_0x10e47c]]&&(this[_0x3ed07f[_0x10e47c]]=properties[_0x3ed07f[_0x10e47c]]);}}return StringStringPacketDataMessage['prototype']['data']='',StringStringPacketDataMessage['prototype']['data1']='',StringStringPacketDataMessage['create']=function(properties){return new StringStringPacketDataMessage(properties);},StringStringPacketDataMessage['encode']=function(_0x21a91f,writer){return writer||(writer=$Writer['create']()),null!=_0x21a91f['data']&&Object['hasOwnProperty']['call'](_0x21a91f,'data')&&writer['uint32'](0xa)['string'](_0x21a91f['data']),null!=_0x21a91f['data1']&&Object['hasOwnProperty']['call'](_0x21a91f,'data1')&&writer['uint32'](0x12)['string'](_0x21a91f['data1']),writer;},StringStringPacketDataMessage['encodeDelimited']=function(_0x302ae9,writer){return this['encode'](_0x302ae9,writer)['ldelim']();},StringStringPacketDataMessage['decode']=function(_0x2564a7,length,_0x5c757f){_0x2564a7 instanceof _0x7b4aff||(_0x2564a7=_0x7b4aff['create'](_0x2564a7));for(var _0x2e81ff=void 0x0===length?_0x2564a7['len']:_0x2564a7['pos']+length,_0x274d51=new $root['StringStringPacketDataMessage']();_0x2564a7['pos']<_0x2e81ff;){var tag=_0x2564a7['uint32']();if(tag===_0x5c757f)break;switch(tag>>>0x3){case 0x1:_0x274d51['data']=_0x2564a7['string']();break;case 0x2:_0x274d51['data1']=_0x2564a7['string']();break;default:_0x2564a7['skipType'](0x7&tag);}}return _0x274d51;},StringStringPacketDataMessage['decodeDelimited']=function(_0x63433b){return _0x63433b instanceof _0x7b4aff||(_0x63433b=new _0x7b4aff(_0x63433b)),this['decode'](_0x63433b,_0x63433b['uint32']());},StringStringPacketDataMessage['verify']=function(_0x5581ad){return'object'!=typeof _0x5581ad||null===_0x5581ad?'object\x20expected':null!=_0x5581ad['data']&&_0x5581ad['hasOwnProperty']('data')&&!$util['isString'](_0x5581ad['data'])?'data:\x20string\x20expected':null!=_0x5581ad['data1']&&_0x5581ad['hasOwnProperty']('data1')&&!$util['isString'](_0x5581ad['data1'])?'data1:\x20string\x20expected':null;},StringStringPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringStringPacketDataMessage'])return object;var _0x55b79d=new $root['StringStringPacketDataMessage']();return null!=object['data']&&(_0x55b79d['data']=String(object['data'])),null!=object['data1']&&(_0x55b79d['data1']=String(object['data1'])),_0x55b79d;},StringStringPacketDataMessage['toObject']=function(_0x2eb1c7,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x2eb1c7['data']&&_0x2eb1c7['hasOwnProperty']('data')&&(object['data']=_0x2eb1c7['data']),null!=_0x2eb1c7['data1']&&_0x2eb1c7['hasOwnProperty']('data1')&&(object['data1']=_0x2eb1c7['data1']),object;},StringStringPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringStringPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringStringPacketDataMessage';},StringStringPacketDataMessage;}()),$root;})());class MessagesCompressor{static['decode'](_0xf3f4c5,_0x563c7a){const data=_getType(_0x563c7a)['decode']('undefined'==typeof window?_0xf3f4c5:new Uint8Array(_0xf3f4c5));return _0x563c7a['fromJSON']({...data});}static['encode'](_0x245cd4){const protobufMessage=_getType(_0x245cd4['constructor']),data=_0x245cd4['toJSON'](),_0x5933f8=protobufMessage['verify'](data);if(_0x5933f8)throw Error(_0x5933f8);return protobufMessage['encode'](protobufMessage['create'](data))['finish']();}}function _getType(_0x54a876){return messages[_0x54a876['DESCRIPTOR_NAME']];}class GetManyUsersMessage extends Message{['ids'];static ['TYPE']='22';static ['READABLE_TYPE_NAME']='getManyUsers';static ['DESCRIPTOR_NAME']='GetManyUsersMessage';static ['DESCRIPTOR']={'fields':{'ids':{'id':0x1,'type':'string','rule':'repeated'}}};constructor(_0x1ff271){super(),this['ids']=_0x1ff271;}['toJSON'](){return{'ids':this['ids']};}static['fromJSON'](data){return new GetManyUsersMessage(data['ids']);}}class GetManyUsersResponse extends Message{['users'];static ['DESCRIPTOR_NAME']='GetManyUsersResponse';static ['DESCRIPTOR']={'fields':{'users':{'rule':'repeated','type':'UserDescriptor','id':0x1}}};constructor(_0x467128){super(),this['users']=_0x467128;}['toJSON'](){return{'users':this['users']['map'](_userToJson)};}static['fromJSON'](data){return new GetManyUsersResponse(data['users']['map'](_userFromJson));}}function _userToJson(_0xa6ba84){return{'attributes':Object['keys'](_0xa6ba84)['map'](_0x546640=>({'key':_0x546640,'value':JSON['stringify'](_0xa6ba84[_0x546640])}))};}function _userFromJson(data){return data['attributes']['reduce']((result,_0x157913)=>(result[_0x157913['key']]=_0x157913['value']?JSON['parse'](_0x157913['value']):null,result),{});}class User{static ['_SERVICE']=0x2;constructor(attributes={}){this['_attributes']=new Map();for(const _0x41587b of Object['keys'](attributes))'id'!==_0x41587b?(this['_attributes']['set'](_0x41587b,attributes[_0x41587b]),Object['defineProperty'](this,_0x41587b,{'enumerable':!0x0,'configurable':!0x1,'get':()=>this['_attributes']['get'](_0x41587b)})):this['id']=attributes['id'];}static['fromData'](data){return new User(data);}static async['get'](wsGateway,_0x131757){const _0x11c8b2=new GetUserMessage(_0x131757);try{const _0x531525=await wsGateway['_sendRequest'](User['_SERVICE'],GetUserMessage['TYPE'],MessagesCompressor['encode'](_0x11c8b2)),getUserResponse=MessagesCompressor['decode'](_0x531525,GetUserResponse);return new User(getUserResponse['attributes']);}catch(_0x3ac2b8){return new User({'id':_0x131757});}}static async['getMany'](wsGateway,_0x208bb4){const _0x548456=new GetManyUsersMessage(_0x208bb4);try{const _0x242ac0=await wsGateway['_sendRequest'](User['_SERVICE'],GetManyUsersMessage['TYPE'],MessagesCompressor['encode'](_0x548456));return MessagesCompressor['decode'](_0x242ac0,GetManyUsersResponse)['users']['map'](_0x302c44=>new User(_0x302c44));}catch(_0x870d02){return _0x208bb4['map'](_0x41425b=>new User({'id':_0x41425b}));}}}class ChannelMessage extends Message{['type'];['socketId'];['data'];static ['DESCRIPTOR_NAME']='ChannelMessage';static ['DESCRIPTOR']={'fields':{'type':{'type':'uint32','id':0x1},'socketId':{'type':'string','id':0x2},'data':{'type':'bytes','id':0x3}}};constructor(type,socketId,data){super(),this['type']=type,this['socketId']=socketId,this['data']=data;}['toJSON'](){return{'type':this['type'],'socketId':this['socketId'],'data':this['data']};}static['fromJSON'](data){return new ChannelMessage(data['type'],data['socketId'],data['data']);}}class Channel extends/* #__PURE__ -- @preserve */
|
|
25
|
-
EmitterMixin(){['_channelName'];['_wsGateway'];['_socket'];constructor(
|
|
26
|
-
((()=>({'fields':{'flags':{'type':'string','id':0x1},'rooms':{'type':'string','id':0x2,'rule':'repeated'},'except':{'type':'string','id':0x3,'rule':'repeated'}}}))());constructor(
|
|
27
|
-
((()=>!('undefined'==typeof process||!process['versions']?.['node']))()),MessageDataTypes_BUFFER=0x1,MessageDataTypes_STRING=0x2,MessageDataTypes_NUMBER=0x3,MessageDataTypes_OBJECT=0x4;class ParserUtils{static['getPacketType'](...types){let
|
|
23
|
+
import $protobuf from'protobufjs/minimal.js';import{io}from'socket.io-client';import _0x4d2e4a from'url-parse';import{EmitterMixin,ObservableMixin,priorities,global,Collection}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Decoder as _0x115eb3,Encoder as _0x2db0cd,PacketType}from'socket.io-parser';import{v4}from'uuid';class Descriptor{static ['DESCRIPTOR_NAME'];static ['DESCRIPTOR'];constructor(..._0x3a35dc){}}class Message extends Descriptor{static ['TYPE']='1000';static ['READABLE_TYPE_NAME'];constructor(..._0x2fa493){super();}static['fromJSON'](object){throw new TypeError('Must\x20be\x20implemented\x20in\x20a\x20child\x20class!');}}class GetUserMessage extends Message{['id'];static ['TYPE']='21';static ['READABLE_TYPE_NAME']='getUser';static ['DESCRIPTOR_NAME']='GetUserMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1}}};constructor(_0x4d5b52){super(),this['id']=_0x4d5b52;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](data){return new GetUserMessage(data['id']);}}class GetUserResponse extends Message{['attributes'];static ['DESCRIPTOR_NAME']='GetUserResponse';static ['DESCRIPTOR']={'fields':{'attributes':{'rule':'repeated','type':'KeyValueDescriptor','id':0x1}}};constructor(attributes){super(),this['attributes']=attributes;}['toJSON'](){return{'attributes':Object['keys'](this['attributes'])['map'](_0x274b7f=>({'key':_0x274b7f,'value':JSON['stringify'](this['attributes'][_0x274b7f])}))};}static['fromJSON'](data){const attributes=data['attributes']['reduce']((result,_0x3fd777)=>(result[_0x3fd777['key']]=_0x3fd777['value']?JSON['parse'](_0x3fd777['value']):null,result),{});return new GetUserResponse(attributes);}}const messages=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>{var _0x53a355=$protobuf['Reader'],$Writer=$protobuf['Writer'],$util=$protobuf['util'],$root=$protobuf['roots']['default']||($protobuf['roots']['default']={});return $root['StringStringPacketDataMessage']=(function(){function StringStringPacketDataMessage(properties){if(properties){for(var _0x12198b=Object['keys'](properties),_0x1b2687=0x0;_0x1b2687<_0x12198b['length'];++_0x1b2687)null!=properties[_0x12198b[_0x1b2687]]&&(this[_0x12198b[_0x1b2687]]=properties[_0x12198b[_0x1b2687]]);}}return StringStringPacketDataMessage['prototype']['data']='',StringStringPacketDataMessage['prototype']['data1']='',StringStringPacketDataMessage['create']=function(properties){return new StringStringPacketDataMessage(properties);},StringStringPacketDataMessage['encode']=function(_0x4ba38c,writer){return writer||(writer=$Writer['create']()),null!=_0x4ba38c['data']&&Object['hasOwnProperty']['call'](_0x4ba38c,'data')&&writer['uint32'](0xa)['string'](_0x4ba38c['data']),null!=_0x4ba38c['data1']&&Object['hasOwnProperty']['call'](_0x4ba38c,'data1')&&writer['uint32'](0x12)['string'](_0x4ba38c['data1']),writer;},StringStringPacketDataMessage['encodeDelimited']=function(_0x114bd0,writer){return this['encode'](_0x114bd0,writer)['ldelim']();},StringStringPacketDataMessage['decode']=function(_0x18fa83,length,_0x43d0ad){_0x18fa83 instanceof _0x53a355||(_0x18fa83=_0x53a355['create'](_0x18fa83));for(var _0x1de640=void 0x0===length?_0x18fa83['len']:_0x18fa83['pos']+length,_0x3c57fe=new $root['StringStringPacketDataMessage']();_0x18fa83['pos']<_0x1de640;){var tag=_0x18fa83['uint32']();if(tag===_0x43d0ad)break;switch(tag>>>0x3){case 0x1:_0x3c57fe['data']=_0x18fa83['string']();break;case 0x2:_0x3c57fe['data1']=_0x18fa83['string']();break;default:_0x18fa83['skipType'](0x7&tag);}}return _0x3c57fe;},StringStringPacketDataMessage['decodeDelimited']=function(_0x218e67){return _0x218e67 instanceof _0x53a355||(_0x218e67=new _0x53a355(_0x218e67)),this['decode'](_0x218e67,_0x218e67['uint32']());},StringStringPacketDataMessage['verify']=function(_0x31c60f){return'object'!=typeof _0x31c60f||null===_0x31c60f?'object\x20expected':null!=_0x31c60f['data']&&_0x31c60f['hasOwnProperty']('data')&&!$util['isString'](_0x31c60f['data'])?'data:\x20string\x20expected':null!=_0x31c60f['data1']&&_0x31c60f['hasOwnProperty']('data1')&&!$util['isString'](_0x31c60f['data1'])?'data1:\x20string\x20expected':null;},StringStringPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringStringPacketDataMessage'])return object;var _0x33643d=new $root['StringStringPacketDataMessage']();return null!=object['data']&&(_0x33643d['data']=String(object['data'])),null!=object['data1']&&(_0x33643d['data1']=String(object['data1'])),_0x33643d;},StringStringPacketDataMessage['toObject']=function(_0x1bfdf2,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x1bfdf2['data']&&_0x1bfdf2['hasOwnProperty']('data')&&(object['data']=_0x1bfdf2['data']),null!=_0x1bfdf2['data1']&&_0x1bfdf2['hasOwnProperty']('data1')&&(object['data1']=_0x1bfdf2['data1']),object;},StringStringPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringStringPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringStringPacketDataMessage';},StringStringPacketDataMessage;}()),$root['StringObjectPacketDataMessage']=(function(){function StringObjectPacketDataMessage(properties){if(properties){for(var _0x4915df=Object['keys'](properties),_0x1a3a23=0x0;_0x1a3a23<_0x4915df['length'];++_0x1a3a23)null!=properties[_0x4915df[_0x1a3a23]]&&(this[_0x4915df[_0x1a3a23]]=properties[_0x4915df[_0x1a3a23]]);}}return StringObjectPacketDataMessage['prototype']['data']='',StringObjectPacketDataMessage['prototype']['data1']='',StringObjectPacketDataMessage['create']=function(properties){return new StringObjectPacketDataMessage(properties);},StringObjectPacketDataMessage['encode']=function(_0x598c06,writer){return writer||(writer=$Writer['create']()),null!=_0x598c06['data']&&Object['hasOwnProperty']['call'](_0x598c06,'data')&&writer['uint32'](0xa)['string'](_0x598c06['data']),null!=_0x598c06['data1']&&Object['hasOwnProperty']['call'](_0x598c06,'data1')&&writer['uint32'](0x12)['string'](_0x598c06['data1']),writer;},StringObjectPacketDataMessage['encodeDelimited']=function(_0x4187e6,writer){return this['encode'](_0x4187e6,writer)['ldelim']();},StringObjectPacketDataMessage['decode']=function(_0x4c7566,length,_0x2fd8c8){_0x4c7566 instanceof _0x53a355||(_0x4c7566=_0x53a355['create'](_0x4c7566));for(var _0x1aa09f=void 0x0===length?_0x4c7566['len']:_0x4c7566['pos']+length,_0x5d35f4=new $root['StringObjectPacketDataMessage']();_0x4c7566['pos']<_0x1aa09f;){var tag=_0x4c7566['uint32']();if(tag===_0x2fd8c8)break;switch(tag>>>0x3){case 0x1:_0x5d35f4['data']=_0x4c7566['string']();break;case 0x2:_0x5d35f4['data1']=_0x4c7566['string']();break;default:_0x4c7566['skipType'](0x7&tag);}}return _0x5d35f4;},StringObjectPacketDataMessage['decodeDelimited']=function(_0x21ebf0){return _0x21ebf0 instanceof _0x53a355||(_0x21ebf0=new _0x53a355(_0x21ebf0)),this['decode'](_0x21ebf0,_0x21ebf0['uint32']());},StringObjectPacketDataMessage['verify']=function(_0x2e29a8){return'object'!=typeof _0x2e29a8||null===_0x2e29a8?'object\x20expected':null!=_0x2e29a8['data']&&_0x2e29a8['hasOwnProperty']('data')&&!$util['isString'](_0x2e29a8['data'])?'data:\x20string\x20expected':null!=_0x2e29a8['data1']&&_0x2e29a8['hasOwnProperty']('data1')&&!$util['isString'](_0x2e29a8['data1'])?'data1:\x20string\x20expected':null;},StringObjectPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringObjectPacketDataMessage'])return object;var _0x53be55=new $root['StringObjectPacketDataMessage']();return null!=object['data']&&(_0x53be55['data']=String(object['data'])),null!=object['data1']&&(_0x53be55['data1']=String(object['data1'])),_0x53be55;},StringObjectPacketDataMessage['toObject']=function(_0x5d5893,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x5d5893['data']&&_0x5d5893['hasOwnProperty']('data')&&(object['data']=_0x5d5893['data']),null!=_0x5d5893['data1']&&_0x5d5893['hasOwnProperty']('data1')&&(object['data1']=_0x5d5893['data1']),object;},StringObjectPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringObjectPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringObjectPacketDataMessage';},StringObjectPacketDataMessage;}()),$root['StringNumberPacketDataMessage']=(function(){function StringNumberPacketDataMessage(properties){if(properties){for(var _0x12aba4=Object['keys'](properties),_0x31b523=0x0;_0x31b523<_0x12aba4['length'];++_0x31b523)null!=properties[_0x12aba4[_0x31b523]]&&(this[_0x12aba4[_0x31b523]]=properties[_0x12aba4[_0x31b523]]);}}return StringNumberPacketDataMessage['prototype']['data']='',StringNumberPacketDataMessage['prototype']['data1']=0x0,StringNumberPacketDataMessage['create']=function(properties){return new StringNumberPacketDataMessage(properties);},StringNumberPacketDataMessage['encode']=function(_0x4db929,writer){return writer||(writer=$Writer['create']()),null!=_0x4db929['data']&&Object['hasOwnProperty']['call'](_0x4db929,'data')&&writer['uint32'](0xa)['string'](_0x4db929['data']),null!=_0x4db929['data1']&&Object['hasOwnProperty']['call'](_0x4db929,'data1')&&writer['uint32'](0x10)['uint32'](_0x4db929['data1']),writer;},StringNumberPacketDataMessage['encodeDelimited']=function(_0x44d2b3,writer){return this['encode'](_0x44d2b3,writer)['ldelim']();},StringNumberPacketDataMessage['decode']=function(_0x168f15,length,_0x2d5ce6){_0x168f15 instanceof _0x53a355||(_0x168f15=_0x53a355['create'](_0x168f15));for(var _0x1437f2=void 0x0===length?_0x168f15['len']:_0x168f15['pos']+length,_0xcedf9f=new $root['StringNumberPacketDataMessage']();_0x168f15['pos']<_0x1437f2;){var tag=_0x168f15['uint32']();if(tag===_0x2d5ce6)break;switch(tag>>>0x3){case 0x1:_0xcedf9f['data']=_0x168f15['string']();break;case 0x2:_0xcedf9f['data1']=_0x168f15['uint32']();break;default:_0x168f15['skipType'](0x7&tag);}}return _0xcedf9f;},StringNumberPacketDataMessage['decodeDelimited']=function(_0x4f4614){return _0x4f4614 instanceof _0x53a355||(_0x4f4614=new _0x53a355(_0x4f4614)),this['decode'](_0x4f4614,_0x4f4614['uint32']());},StringNumberPacketDataMessage['verify']=function(_0xdb2547){return'object'!=typeof _0xdb2547||null===_0xdb2547?'object\x20expected':null!=_0xdb2547['data']&&_0xdb2547['hasOwnProperty']('data')&&!$util['isString'](_0xdb2547['data'])?'data:\x20string\x20expected':null!=_0xdb2547['data1']&&_0xdb2547['hasOwnProperty']('data1')&&!$util['isInteger'](_0xdb2547['data1'])?'data1:\x20integer\x20expected':null;},StringNumberPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringNumberPacketDataMessage'])return object;var _0x324f59=new $root['StringNumberPacketDataMessage']();return null!=object['data']&&(_0x324f59['data']=String(object['data'])),null!=object['data1']&&(_0x324f59['data1']=object['data1']>>>0x0),_0x324f59;},StringNumberPacketDataMessage['toObject']=function(_0x5c72b2,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=0x0),null!=_0x5c72b2['data']&&_0x5c72b2['hasOwnProperty']('data')&&(object['data']=_0x5c72b2['data']),null!=_0x5c72b2['data1']&&_0x5c72b2['hasOwnProperty']('data1')&&(object['data1']=_0x5c72b2['data1']),object;},StringNumberPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringNumberPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringNumberPacketDataMessage';},StringNumberPacketDataMessage;}()),$root['StringBytesPacketDataMessage']=(function(){function StringBytesPacketDataMessage(properties){if(properties){for(var _0x413fb6=Object['keys'](properties),_0x444506=0x0;_0x444506<_0x413fb6['length'];++_0x444506)null!=properties[_0x413fb6[_0x444506]]&&(this[_0x413fb6[_0x444506]]=properties[_0x413fb6[_0x444506]]);}}return StringBytesPacketDataMessage['prototype']['data']='',StringBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),StringBytesPacketDataMessage['create']=function(properties){return new StringBytesPacketDataMessage(properties);},StringBytesPacketDataMessage['encode']=function(_0x3a45c7,writer){return writer||(writer=$Writer['create']()),null!=_0x3a45c7['data']&&Object['hasOwnProperty']['call'](_0x3a45c7,'data')&&writer['uint32'](0xa)['string'](_0x3a45c7['data']),null!=_0x3a45c7['data1']&&Object['hasOwnProperty']['call'](_0x3a45c7,'data1')&&writer['uint32'](0x12)['bytes'](_0x3a45c7['data1']),writer;},StringBytesPacketDataMessage['encodeDelimited']=function(_0x4b1294,writer){return this['encode'](_0x4b1294,writer)['ldelim']();},StringBytesPacketDataMessage['decode']=function(_0x4ed47e,length,_0x1cc490){_0x4ed47e instanceof _0x53a355||(_0x4ed47e=_0x53a355['create'](_0x4ed47e));for(var _0x125c99=void 0x0===length?_0x4ed47e['len']:_0x4ed47e['pos']+length,_0x105861=new $root['StringBytesPacketDataMessage']();_0x4ed47e['pos']<_0x125c99;){var tag=_0x4ed47e['uint32']();if(tag===_0x1cc490)break;switch(tag>>>0x3){case 0x1:_0x105861['data']=_0x4ed47e['string']();break;case 0x2:_0x105861['data1']=_0x4ed47e['bytes']();break;default:_0x4ed47e['skipType'](0x7&tag);}}return _0x105861;},StringBytesPacketDataMessage['decodeDelimited']=function(_0x27659b){return _0x27659b instanceof _0x53a355||(_0x27659b=new _0x53a355(_0x27659b)),this['decode'](_0x27659b,_0x27659b['uint32']());},StringBytesPacketDataMessage['verify']=function(_0x44c2e1){return'object'!=typeof _0x44c2e1||null===_0x44c2e1?'object\x20expected':null!=_0x44c2e1['data']&&_0x44c2e1['hasOwnProperty']('data')&&!$util['isString'](_0x44c2e1['data'])?'data:\x20string\x20expected':null!=_0x44c2e1['data1']&&_0x44c2e1['hasOwnProperty']('data1')&&!(_0x44c2e1['data1']&&'number'==typeof _0x44c2e1['data1']['length']||$util['isString'](_0x44c2e1['data1']))?'data1:\x20buffer\x20expected':null;},StringBytesPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringBytesPacketDataMessage'])return object;var _0x3f57cb=new $root['StringBytesPacketDataMessage']();return null!=object['data']&&(_0x3f57cb['data']=String(object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x3f57cb['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x3f57cb['data1']=object['data1'])),_0x3f57cb;},StringBytesPacketDataMessage['toObject']=function(_0x4e510e,options){options||(options={});var object={};return options['defaults']&&(object['data']='',options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x4e510e['data']&&_0x4e510e['hasOwnProperty']('data')&&(object['data']=_0x4e510e['data']),null!=_0x4e510e['data1']&&_0x4e510e['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x4e510e['data1'],0x0,_0x4e510e['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x4e510e['data1']):_0x4e510e['data1']),object;},StringBytesPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringBytesPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringBytesPacketDataMessage';},StringBytesPacketDataMessage;}()),$root['PacketOptionsMessage']=(function(){function PacketOptionsMessage(properties){if(this['rooms']=[],this['except']=[],properties){for(var _0x404b59=Object['keys'](properties),_0x4b4839=0x0;_0x4b4839<_0x404b59['length'];++_0x4b4839)null!=properties[_0x404b59[_0x4b4839]]&&(this[_0x404b59[_0x4b4839]]=properties[_0x404b59[_0x4b4839]]);}}return PacketOptionsMessage['prototype']['flags']='',PacketOptionsMessage['prototype']['rooms']=$util['emptyArray'],PacketOptionsMessage['prototype']['except']=$util['emptyArray'],PacketOptionsMessage['create']=function(properties){return new PacketOptionsMessage(properties);},PacketOptionsMessage['encode']=function(_0x5c8227,writer){if(writer||(writer=$Writer['create']()),null!=_0x5c8227['flags']&&Object['hasOwnProperty']['call'](_0x5c8227,'flags')&&writer['uint32'](0xa)['string'](_0x5c8227['flags']),null!=_0x5c8227['rooms']&&_0x5c8227['rooms']['length']){for(var _0x2ea48e=0x0;_0x2ea48e<_0x5c8227['rooms']['length'];++_0x2ea48e)writer['uint32'](0x12)['string'](_0x5c8227['rooms'][_0x2ea48e]);}if(null!=_0x5c8227['except']&&_0x5c8227['except']['length']){for(_0x2ea48e=0x0;_0x2ea48e<_0x5c8227['except']['length'];++_0x2ea48e)writer['uint32'](0x1a)['string'](_0x5c8227['except'][_0x2ea48e]);}return writer;},PacketOptionsMessage['encodeDelimited']=function(_0x554a22,writer){return this['encode'](_0x554a22,writer)['ldelim']();},PacketOptionsMessage['decode']=function(_0x54c34b,length,_0x415c96){_0x54c34b instanceof _0x53a355||(_0x54c34b=_0x53a355['create'](_0x54c34b));for(var _0x5175e2=void 0x0===length?_0x54c34b['len']:_0x54c34b['pos']+length,_0x1ea128=new $root['PacketOptionsMessage']();_0x54c34b['pos']<_0x5175e2;){var tag=_0x54c34b['uint32']();if(tag===_0x415c96)break;switch(tag>>>0x3){case 0x1:_0x1ea128['flags']=_0x54c34b['string']();break;case 0x2:_0x1ea128['rooms']&&_0x1ea128['rooms']['length']||(_0x1ea128['rooms']=[]),_0x1ea128['rooms']['push'](_0x54c34b['string']());break;case 0x3:_0x1ea128['except']&&_0x1ea128['except']['length']||(_0x1ea128['except']=[]),_0x1ea128['except']['push'](_0x54c34b['string']());break;default:_0x54c34b['skipType'](0x7&tag);}}return _0x1ea128;},PacketOptionsMessage['decodeDelimited']=function(_0x41557a){return _0x41557a instanceof _0x53a355||(_0x41557a=new _0x53a355(_0x41557a)),this['decode'](_0x41557a,_0x41557a['uint32']());},PacketOptionsMessage['verify']=function(_0x9d1f02){if('object'!=typeof _0x9d1f02||null===_0x9d1f02)return'object\x20expected';if(null!=_0x9d1f02['flags']&&_0x9d1f02['hasOwnProperty']('flags')&&!$util['isString'](_0x9d1f02['flags']))return'flags:\x20string\x20expected';if(null!=_0x9d1f02['rooms']&&_0x9d1f02['hasOwnProperty']('rooms')){if(!Array['isArray'](_0x9d1f02['rooms']))return'rooms:\x20array\x20expected';for(var _0x18f4ac=0x0;_0x18f4ac<_0x9d1f02['rooms']['length'];++_0x18f4ac)if(!$util['isString'](_0x9d1f02['rooms'][_0x18f4ac]))return'rooms:\x20string[]\x20expected';}if(null!=_0x9d1f02['except']&&_0x9d1f02['hasOwnProperty']('except')){if(!Array['isArray'](_0x9d1f02['except']))return'except:\x20array\x20expected';for(_0x18f4ac=0x0;_0x18f4ac<_0x9d1f02['except']['length'];++_0x18f4ac)if(!$util['isString'](_0x9d1f02['except'][_0x18f4ac]))return'except:\x20string[]\x20expected';}return null;},PacketOptionsMessage['fromObject']=function(object){if(object instanceof $root['PacketOptionsMessage'])return object;var _0xbde118=new $root['PacketOptionsMessage']();if(null!=object['flags']&&(_0xbde118['flags']=String(object['flags'])),object['rooms']){if(!Array['isArray'](object['rooms']))throw TypeError('.PacketOptionsMessage.rooms:\x20array\x20expected');_0xbde118['rooms']=[];for(var _0x54cab7=0x0;_0x54cab7<object['rooms']['length'];++_0x54cab7)_0xbde118['rooms'][_0x54cab7]=String(object['rooms'][_0x54cab7]);}if(object['except']){if(!Array['isArray'](object['except']))throw TypeError('.PacketOptionsMessage.except:\x20array\x20expected');_0xbde118['except']=[];for(_0x54cab7=0x0;_0x54cab7<object['except']['length'];++_0x54cab7)_0xbde118['except'][_0x54cab7]=String(object['except'][_0x54cab7]);}return _0xbde118;},PacketOptionsMessage['toObject']=function(_0x130e1f,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['rooms']=[],object['except']=[]),options['defaults']&&(object['flags']=''),null!=_0x130e1f['flags']&&_0x130e1f['hasOwnProperty']('flags')&&(object['flags']=_0x130e1f['flags']),_0x130e1f['rooms']&&_0x130e1f['rooms']['length']){object['rooms']=[];for(var _0x480810=0x0;_0x480810<_0x130e1f['rooms']['length'];++_0x480810)object['rooms'][_0x480810]=_0x130e1f['rooms'][_0x480810];}if(_0x130e1f['except']&&_0x130e1f['except']['length']){object['except']=[];for(_0x480810=0x0;_0x480810<_0x130e1f['except']['length'];++_0x480810)object['except'][_0x480810]=_0x130e1f['except'][_0x480810];}return object;},PacketOptionsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},PacketOptionsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/PacketOptionsMessage';},PacketOptionsMessage;}()),$root['PacketMessage']=(function(){function PacketMessage(properties){if(properties){for(var _0x237e44=Object['keys'](properties),_0xef3a6f=0x0;_0xef3a6f<_0x237e44['length'];++_0xef3a6f)null!=properties[_0x237e44[_0xef3a6f]]&&(this[_0x237e44[_0xef3a6f]]=properties[_0x237e44[_0xef3a6f]]);}}return PacketMessage['prototype']['type']=0x0,PacketMessage['prototype']['id']=0x0,PacketMessage['prototype']['nsp']='',PacketMessage['prototype']['data']=$util['newBuffer']([]),PacketMessage['prototype']['options']=$util['newBuffer']([]),PacketMessage['create']=function(properties){return new PacketMessage(properties);},PacketMessage['encode']=function(_0x10b990,writer){return writer||(writer=$Writer['create']()),null!=_0x10b990['type']&&Object['hasOwnProperty']['call'](_0x10b990,'type')&&writer['uint32'](0x8)['uint32'](_0x10b990['type']),null!=_0x10b990['id']&&Object['hasOwnProperty']['call'](_0x10b990,'id')&&writer['uint32'](0x10)['uint32'](_0x10b990['id']),null!=_0x10b990['nsp']&&Object['hasOwnProperty']['call'](_0x10b990,'nsp')&&writer['uint32'](0x1a)['string'](_0x10b990['nsp']),null!=_0x10b990['data']&&Object['hasOwnProperty']['call'](_0x10b990,'data')&&writer['uint32'](0x22)['bytes'](_0x10b990['data']),null!=_0x10b990['options']&&Object['hasOwnProperty']['call'](_0x10b990,'options')&&writer['uint32'](0x2a)['bytes'](_0x10b990['options']),writer;},PacketMessage['encodeDelimited']=function(_0x5d07d1,writer){return this['encode'](_0x5d07d1,writer)['ldelim']();},PacketMessage['decode']=function(_0x35deba,length,_0x1b190c){_0x35deba instanceof _0x53a355||(_0x35deba=_0x53a355['create'](_0x35deba));for(var _0x3ce7a5=void 0x0===length?_0x35deba['len']:_0x35deba['pos']+length,_0x461b69=new $root['PacketMessage']();_0x35deba['pos']<_0x3ce7a5;){var tag=_0x35deba['uint32']();if(tag===_0x1b190c)break;switch(tag>>>0x3){case 0x1:_0x461b69['type']=_0x35deba['uint32']();break;case 0x2:_0x461b69['id']=_0x35deba['uint32']();break;case 0x3:_0x461b69['nsp']=_0x35deba['string']();break;case 0x4:_0x461b69['data']=_0x35deba['bytes']();break;case 0x5:_0x461b69['options']=_0x35deba['bytes']();break;default:_0x35deba['skipType'](0x7&tag);}}return _0x461b69;},PacketMessage['decodeDelimited']=function(_0xf84db0){return _0xf84db0 instanceof _0x53a355||(_0xf84db0=new _0x53a355(_0xf84db0)),this['decode'](_0xf84db0,_0xf84db0['uint32']());},PacketMessage['verify']=function(_0x589268){return'object'!=typeof _0x589268||null===_0x589268?'object\x20expected':null!=_0x589268['type']&&_0x589268['hasOwnProperty']('type')&&!$util['isInteger'](_0x589268['type'])?'type:\x20integer\x20expected':null!=_0x589268['id']&&_0x589268['hasOwnProperty']('id')&&!$util['isInteger'](_0x589268['id'])?'id:\x20integer\x20expected':null!=_0x589268['nsp']&&_0x589268['hasOwnProperty']('nsp')&&!$util['isString'](_0x589268['nsp'])?'nsp:\x20string\x20expected':null!=_0x589268['data']&&_0x589268['hasOwnProperty']('data')&&!(_0x589268['data']&&'number'==typeof _0x589268['data']['length']||$util['isString'](_0x589268['data']))?'data:\x20buffer\x20expected':null!=_0x589268['options']&&_0x589268['hasOwnProperty']('options')&&!(_0x589268['options']&&'number'==typeof _0x589268['options']['length']||$util['isString'](_0x589268['options']))?'options:\x20buffer\x20expected':null;},PacketMessage['fromObject']=function(object){if(object instanceof $root['PacketMessage'])return object;var _0x1682b1=new $root['PacketMessage']();return null!=object['type']&&(_0x1682b1['type']=object['type']>>>0x0),null!=object['id']&&(_0x1682b1['id']=object['id']>>>0x0),null!=object['nsp']&&(_0x1682b1['nsp']=String(object['nsp'])),null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x1682b1['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x1682b1['data']=object['data'])),null!=object['options']&&('string'==typeof object['options']?$util['base64']['decode'](object['options'],_0x1682b1['options']=$util['newBuffer']($util['base64']['length'](object['options'])),0x0):object['options']['length']>=0x0&&(_0x1682b1['options']=object['options'])),_0x1682b1;},PacketMessage['toObject']=function(_0x21e0b7,options){options||(options={});var object={};return options['defaults']&&(object['type']=0x0,object['id']=0x0,object['nsp']='',options['bytes']===String?object['data']='':(object['data']=[],options['bytes']!==Array&&(object['data']=$util['newBuffer'](object['data']))),options['bytes']===String?object['options']='':(object['options']=[],options['bytes']!==Array&&(object['options']=$util['newBuffer'](object['options'])))),null!=_0x21e0b7['type']&&_0x21e0b7['hasOwnProperty']('type')&&(object['type']=_0x21e0b7['type']),null!=_0x21e0b7['id']&&_0x21e0b7['hasOwnProperty']('id')&&(object['id']=_0x21e0b7['id']),null!=_0x21e0b7['nsp']&&_0x21e0b7['hasOwnProperty']('nsp')&&(object['nsp']=_0x21e0b7['nsp']),null!=_0x21e0b7['data']&&_0x21e0b7['hasOwnProperty']('data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x21e0b7['data'],0x0,_0x21e0b7['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x21e0b7['data']):_0x21e0b7['data']),null!=_0x21e0b7['options']&&_0x21e0b7['hasOwnProperty']('options')&&(object['options']=options['bytes']===String?$util['base64']['encode'](_0x21e0b7['options'],0x0,_0x21e0b7['options']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x21e0b7['options']):_0x21e0b7['options']),object;},PacketMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},PacketMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/PacketMessage';},PacketMessage;}()),$root['ObjectObjectPacketDataMessage']=(function(){function ObjectObjectPacketDataMessage(properties){if(properties){for(var _0x411c83=Object['keys'](properties),_0x5d88cf=0x0;_0x5d88cf<_0x411c83['length'];++_0x5d88cf)null!=properties[_0x411c83[_0x5d88cf]]&&(this[_0x411c83[_0x5d88cf]]=properties[_0x411c83[_0x5d88cf]]);}}return ObjectObjectPacketDataMessage['prototype']['data']='',ObjectObjectPacketDataMessage['prototype']['data1']='',ObjectObjectPacketDataMessage['create']=function(properties){return new ObjectObjectPacketDataMessage(properties);},ObjectObjectPacketDataMessage['encode']=function(_0x3891c2,writer){return writer||(writer=$Writer['create']()),null!=_0x3891c2['data']&&Object['hasOwnProperty']['call'](_0x3891c2,'data')&&writer['uint32'](0xa)['string'](_0x3891c2['data']),null!=_0x3891c2['data1']&&Object['hasOwnProperty']['call'](_0x3891c2,'data1')&&writer['uint32'](0x12)['string'](_0x3891c2['data1']),writer;},ObjectObjectPacketDataMessage['encodeDelimited']=function(_0x37827b,writer){return this['encode'](_0x37827b,writer)['ldelim']();},ObjectObjectPacketDataMessage['decode']=function(_0x542568,length,_0x38de1f){_0x542568 instanceof _0x53a355||(_0x542568=_0x53a355['create'](_0x542568));for(var _0x365464=void 0x0===length?_0x542568['len']:_0x542568['pos']+length,_0x5d03c5=new $root['ObjectObjectPacketDataMessage']();_0x542568['pos']<_0x365464;){var tag=_0x542568['uint32']();if(tag===_0x38de1f)break;switch(tag>>>0x3){case 0x1:_0x5d03c5['data']=_0x542568['string']();break;case 0x2:_0x5d03c5['data1']=_0x542568['string']();break;default:_0x542568['skipType'](0x7&tag);}}return _0x5d03c5;},ObjectObjectPacketDataMessage['decodeDelimited']=function(_0x14030b){return _0x14030b instanceof _0x53a355||(_0x14030b=new _0x53a355(_0x14030b)),this['decode'](_0x14030b,_0x14030b['uint32']());},ObjectObjectPacketDataMessage['verify']=function(_0x75f2ec){return'object'!=typeof _0x75f2ec||null===_0x75f2ec?'object\x20expected':null!=_0x75f2ec['data']&&_0x75f2ec['hasOwnProperty']('data')&&!$util['isString'](_0x75f2ec['data'])?'data:\x20string\x20expected':null!=_0x75f2ec['data1']&&_0x75f2ec['hasOwnProperty']('data1')&&!$util['isString'](_0x75f2ec['data1'])?'data1:\x20string\x20expected':null;},ObjectObjectPacketDataMessage['fromObject']=function(object){if(object instanceof $root['ObjectObjectPacketDataMessage'])return object;var _0x2a9274=new $root['ObjectObjectPacketDataMessage']();return null!=object['data']&&(_0x2a9274['data']=String(object['data'])),null!=object['data1']&&(_0x2a9274['data1']=String(object['data1'])),_0x2a9274;},ObjectObjectPacketDataMessage['toObject']=function(_0x19ebb8,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x19ebb8['data']&&_0x19ebb8['hasOwnProperty']('data')&&(object['data']=_0x19ebb8['data']),null!=_0x19ebb8['data1']&&_0x19ebb8['hasOwnProperty']('data1')&&(object['data1']=_0x19ebb8['data1']),object;},ObjectObjectPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},ObjectObjectPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ObjectObjectPacketDataMessage';},ObjectObjectPacketDataMessage;}()),$root['ObjectBufferPacketDataMessage']=(function(){function ObjectBufferPacketDataMessage(properties){if(properties){for(var _0x2f0b6a=Object['keys'](properties),_0x3620e1=0x0;_0x3620e1<_0x2f0b6a['length'];++_0x3620e1)null!=properties[_0x2f0b6a[_0x3620e1]]&&(this[_0x2f0b6a[_0x3620e1]]=properties[_0x2f0b6a[_0x3620e1]]);}}return ObjectBufferPacketDataMessage['prototype']['data']='',ObjectBufferPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),ObjectBufferPacketDataMessage['create']=function(properties){return new ObjectBufferPacketDataMessage(properties);},ObjectBufferPacketDataMessage['encode']=function(_0x53cde5,writer){return writer||(writer=$Writer['create']()),null!=_0x53cde5['data']&&Object['hasOwnProperty']['call'](_0x53cde5,'data')&&writer['uint32'](0xa)['string'](_0x53cde5['data']),null!=_0x53cde5['data1']&&Object['hasOwnProperty']['call'](_0x53cde5,'data1')&&writer['uint32'](0x12)['bytes'](_0x53cde5['data1']),writer;},ObjectBufferPacketDataMessage['encodeDelimited']=function(_0x3cd9c4,writer){return this['encode'](_0x3cd9c4,writer)['ldelim']();},ObjectBufferPacketDataMessage['decode']=function(_0x210997,length,_0x5ba724){_0x210997 instanceof _0x53a355||(_0x210997=_0x53a355['create'](_0x210997));for(var _0x2efe3d=void 0x0===length?_0x210997['len']:_0x210997['pos']+length,_0x5c2e35=new $root['ObjectBufferPacketDataMessage']();_0x210997['pos']<_0x2efe3d;){var tag=_0x210997['uint32']();if(tag===_0x5ba724)break;switch(tag>>>0x3){case 0x1:_0x5c2e35['data']=_0x210997['string']();break;case 0x2:_0x5c2e35['data1']=_0x210997['bytes']();break;default:_0x210997['skipType'](0x7&tag);}}return _0x5c2e35;},ObjectBufferPacketDataMessage['decodeDelimited']=function(_0x477267){return _0x477267 instanceof _0x53a355||(_0x477267=new _0x53a355(_0x477267)),this['decode'](_0x477267,_0x477267['uint32']());},ObjectBufferPacketDataMessage['verify']=function(_0x441891){return'object'!=typeof _0x441891||null===_0x441891?'object\x20expected':null!=_0x441891['data']&&_0x441891['hasOwnProperty']('data')&&!$util['isString'](_0x441891['data'])?'data:\x20string\x20expected':null!=_0x441891['data1']&&_0x441891['hasOwnProperty']('data1')&&!(_0x441891['data1']&&'number'==typeof _0x441891['data1']['length']||$util['isString'](_0x441891['data1']))?'data1:\x20buffer\x20expected':null;},ObjectBufferPacketDataMessage['fromObject']=function(object){if(object instanceof $root['ObjectBufferPacketDataMessage'])return object;var _0x4e3f77=new $root['ObjectBufferPacketDataMessage']();return null!=object['data']&&(_0x4e3f77['data']=String(object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x4e3f77['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x4e3f77['data1']=object['data1'])),_0x4e3f77;},ObjectBufferPacketDataMessage['toObject']=function(_0x78da25,options){options||(options={});var object={};return options['defaults']&&(object['data']='',options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x78da25['data']&&_0x78da25['hasOwnProperty']('data')&&(object['data']=_0x78da25['data']),null!=_0x78da25['data1']&&_0x78da25['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x78da25['data1'],0x0,_0x78da25['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x78da25['data1']):_0x78da25['data1']),object;},ObjectBufferPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},ObjectBufferPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ObjectBufferPacketDataMessage';},ObjectBufferPacketDataMessage;}()),$root['NumberStringPacketDataMessage']=(function(){function NumberStringPacketDataMessage(properties){if(properties){for(var _0x55ebad=Object['keys'](properties),_0x292ba9=0x0;_0x292ba9<_0x55ebad['length'];++_0x292ba9)null!=properties[_0x55ebad[_0x292ba9]]&&(this[_0x55ebad[_0x292ba9]]=properties[_0x55ebad[_0x292ba9]]);}}return NumberStringPacketDataMessage['prototype']['data']=0x0,NumberStringPacketDataMessage['prototype']['data1']='',NumberStringPacketDataMessage['create']=function(properties){return new NumberStringPacketDataMessage(properties);},NumberStringPacketDataMessage['encode']=function(_0x46cdd1,writer){return writer||(writer=$Writer['create']()),null!=_0x46cdd1['data']&&Object['hasOwnProperty']['call'](_0x46cdd1,'data')&&writer['uint32'](0x8)['uint32'](_0x46cdd1['data']),null!=_0x46cdd1['data1']&&Object['hasOwnProperty']['call'](_0x46cdd1,'data1')&&writer['uint32'](0x12)['string'](_0x46cdd1['data1']),writer;},NumberStringPacketDataMessage['encodeDelimited']=function(_0x3b5565,writer){return this['encode'](_0x3b5565,writer)['ldelim']();},NumberStringPacketDataMessage['decode']=function(_0x50f22c,length,_0x764126){_0x50f22c instanceof _0x53a355||(_0x50f22c=_0x53a355['create'](_0x50f22c));for(var _0x29e0a2=void 0x0===length?_0x50f22c['len']:_0x50f22c['pos']+length,_0x290181=new $root['NumberStringPacketDataMessage']();_0x50f22c['pos']<_0x29e0a2;){var tag=_0x50f22c['uint32']();if(tag===_0x764126)break;switch(tag>>>0x3){case 0x1:_0x290181['data']=_0x50f22c['uint32']();break;case 0x2:_0x290181['data1']=_0x50f22c['string']();break;default:_0x50f22c['skipType'](0x7&tag);}}return _0x290181;},NumberStringPacketDataMessage['decodeDelimited']=function(_0x5db823){return _0x5db823 instanceof _0x53a355||(_0x5db823=new _0x53a355(_0x5db823)),this['decode'](_0x5db823,_0x5db823['uint32']());},NumberStringPacketDataMessage['verify']=function(_0x2b5987){return'object'!=typeof _0x2b5987||null===_0x2b5987?'object\x20expected':null!=_0x2b5987['data']&&_0x2b5987['hasOwnProperty']('data')&&!$util['isInteger'](_0x2b5987['data'])?'data:\x20integer\x20expected':null!=_0x2b5987['data1']&&_0x2b5987['hasOwnProperty']('data1')&&!$util['isString'](_0x2b5987['data1'])?'data1:\x20string\x20expected':null;},NumberStringPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberStringPacketDataMessage'])return object;var _0x41c25c=new $root['NumberStringPacketDataMessage']();return null!=object['data']&&(_0x41c25c['data']=object['data']>>>0x0),null!=object['data1']&&(_0x41c25c['data1']=String(object['data1'])),_0x41c25c;},NumberStringPacketDataMessage['toObject']=function(_0xcccdeb,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,object['data1']=''),null!=_0xcccdeb['data']&&_0xcccdeb['hasOwnProperty']('data')&&(object['data']=_0xcccdeb['data']),null!=_0xcccdeb['data1']&&_0xcccdeb['hasOwnProperty']('data1')&&(object['data1']=_0xcccdeb['data1']),object;},NumberStringPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberStringPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberStringPacketDataMessage';},NumberStringPacketDataMessage;}()),$root['NumberObjectPacketDataMessage']=(function(){function NumberObjectPacketDataMessage(properties){if(properties){for(var _0x2ebd18=Object['keys'](properties),_0x437a52=0x0;_0x437a52<_0x2ebd18['length'];++_0x437a52)null!=properties[_0x2ebd18[_0x437a52]]&&(this[_0x2ebd18[_0x437a52]]=properties[_0x2ebd18[_0x437a52]]);}}return NumberObjectPacketDataMessage['prototype']['data']=0x0,NumberObjectPacketDataMessage['prototype']['data1']='',NumberObjectPacketDataMessage['create']=function(properties){return new NumberObjectPacketDataMessage(properties);},NumberObjectPacketDataMessage['encode']=function(_0x3f51b7,writer){return writer||(writer=$Writer['create']()),null!=_0x3f51b7['data']&&Object['hasOwnProperty']['call'](_0x3f51b7,'data')&&writer['uint32'](0x8)['uint32'](_0x3f51b7['data']),null!=_0x3f51b7['data1']&&Object['hasOwnProperty']['call'](_0x3f51b7,'data1')&&writer['uint32'](0x12)['string'](_0x3f51b7['data1']),writer;},NumberObjectPacketDataMessage['encodeDelimited']=function(_0x52244b,writer){return this['encode'](_0x52244b,writer)['ldelim']();},NumberObjectPacketDataMessage['decode']=function(_0x157974,length,_0x542f07){_0x157974 instanceof _0x53a355||(_0x157974=_0x53a355['create'](_0x157974));for(var _0x321393=void 0x0===length?_0x157974['len']:_0x157974['pos']+length,_0x3bafb2=new $root['NumberObjectPacketDataMessage']();_0x157974['pos']<_0x321393;){var tag=_0x157974['uint32']();if(tag===_0x542f07)break;switch(tag>>>0x3){case 0x1:_0x3bafb2['data']=_0x157974['uint32']();break;case 0x2:_0x3bafb2['data1']=_0x157974['string']();break;default:_0x157974['skipType'](0x7&tag);}}return _0x3bafb2;},NumberObjectPacketDataMessage['decodeDelimited']=function(_0x2d04d6){return _0x2d04d6 instanceof _0x53a355||(_0x2d04d6=new _0x53a355(_0x2d04d6)),this['decode'](_0x2d04d6,_0x2d04d6['uint32']());},NumberObjectPacketDataMessage['verify']=function(_0x162478){return'object'!=typeof _0x162478||null===_0x162478?'object\x20expected':null!=_0x162478['data']&&_0x162478['hasOwnProperty']('data')&&!$util['isInteger'](_0x162478['data'])?'data:\x20integer\x20expected':null!=_0x162478['data1']&&_0x162478['hasOwnProperty']('data1')&&!$util['isString'](_0x162478['data1'])?'data1:\x20string\x20expected':null;},NumberObjectPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberObjectPacketDataMessage'])return object;var _0x27e083=new $root['NumberObjectPacketDataMessage']();return null!=object['data']&&(_0x27e083['data']=object['data']>>>0x0),null!=object['data1']&&(_0x27e083['data1']=String(object['data1'])),_0x27e083;},NumberObjectPacketDataMessage['toObject']=function(_0x19fdcb,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,object['data1']=''),null!=_0x19fdcb['data']&&_0x19fdcb['hasOwnProperty']('data')&&(object['data']=_0x19fdcb['data']),null!=_0x19fdcb['data1']&&_0x19fdcb['hasOwnProperty']('data1')&&(object['data1']=_0x19fdcb['data1']),object;},NumberObjectPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberObjectPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberObjectPacketDataMessage';},NumberObjectPacketDataMessage;}()),$root['NumberNumberPacketDataMessage']=(function(){function NumberNumberPacketDataMessage(properties){if(properties){for(var _0xc145dc=Object['keys'](properties),_0x3fdafb=0x0;_0x3fdafb<_0xc145dc['length'];++_0x3fdafb)null!=properties[_0xc145dc[_0x3fdafb]]&&(this[_0xc145dc[_0x3fdafb]]=properties[_0xc145dc[_0x3fdafb]]);}}return NumberNumberPacketDataMessage['prototype']['data']=0x0,NumberNumberPacketDataMessage['prototype']['data1']=0x0,NumberNumberPacketDataMessage['create']=function(properties){return new NumberNumberPacketDataMessage(properties);},NumberNumberPacketDataMessage['encode']=function(_0x367f3b,writer){return writer||(writer=$Writer['create']()),null!=_0x367f3b['data']&&Object['hasOwnProperty']['call'](_0x367f3b,'data')&&writer['uint32'](0x8)['uint32'](_0x367f3b['data']),null!=_0x367f3b['data1']&&Object['hasOwnProperty']['call'](_0x367f3b,'data1')&&writer['uint32'](0x10)['uint32'](_0x367f3b['data1']),writer;},NumberNumberPacketDataMessage['encodeDelimited']=function(_0x19df24,writer){return this['encode'](_0x19df24,writer)['ldelim']();},NumberNumberPacketDataMessage['decode']=function(_0x388e3d,length,_0x6c29fa){_0x388e3d instanceof _0x53a355||(_0x388e3d=_0x53a355['create'](_0x388e3d));for(var _0x9fa81b=void 0x0===length?_0x388e3d['len']:_0x388e3d['pos']+length,_0x4106a2=new $root['NumberNumberPacketDataMessage']();_0x388e3d['pos']<_0x9fa81b;){var tag=_0x388e3d['uint32']();if(tag===_0x6c29fa)break;switch(tag>>>0x3){case 0x1:_0x4106a2['data']=_0x388e3d['uint32']();break;case 0x2:_0x4106a2['data1']=_0x388e3d['uint32']();break;default:_0x388e3d['skipType'](0x7&tag);}}return _0x4106a2;},NumberNumberPacketDataMessage['decodeDelimited']=function(_0x4affa9){return _0x4affa9 instanceof _0x53a355||(_0x4affa9=new _0x53a355(_0x4affa9)),this['decode'](_0x4affa9,_0x4affa9['uint32']());},NumberNumberPacketDataMessage['verify']=function(_0x12d204){return'object'!=typeof _0x12d204||null===_0x12d204?'object\x20expected':null!=_0x12d204['data']&&_0x12d204['hasOwnProperty']('data')&&!$util['isInteger'](_0x12d204['data'])?'data:\x20integer\x20expected':null!=_0x12d204['data1']&&_0x12d204['hasOwnProperty']('data1')&&!$util['isInteger'](_0x12d204['data1'])?'data1:\x20integer\x20expected':null;},NumberNumberPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberNumberPacketDataMessage'])return object;var _0x4f5e16=new $root['NumberNumberPacketDataMessage']();return null!=object['data']&&(_0x4f5e16['data']=object['data']>>>0x0),null!=object['data1']&&(_0x4f5e16['data1']=object['data1']>>>0x0),_0x4f5e16;},NumberNumberPacketDataMessage['toObject']=function(_0x594b0f,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,object['data1']=0x0),null!=_0x594b0f['data']&&_0x594b0f['hasOwnProperty']('data')&&(object['data']=_0x594b0f['data']),null!=_0x594b0f['data1']&&_0x594b0f['hasOwnProperty']('data1')&&(object['data1']=_0x594b0f['data1']),object;},NumberNumberPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberNumberPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberNumberPacketDataMessage';},NumberNumberPacketDataMessage;}()),$root['NumberBytesPacketDataMessage']=(function(){function NumberBytesPacketDataMessage(properties){if(properties){for(var _0xd747bf=Object['keys'](properties),_0x479fa5=0x0;_0x479fa5<_0xd747bf['length'];++_0x479fa5)null!=properties[_0xd747bf[_0x479fa5]]&&(this[_0xd747bf[_0x479fa5]]=properties[_0xd747bf[_0x479fa5]]);}}return NumberBytesPacketDataMessage['prototype']['data']=0x0,NumberBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),NumberBytesPacketDataMessage['create']=function(properties){return new NumberBytesPacketDataMessage(properties);},NumberBytesPacketDataMessage['encode']=function(_0x23c38b,writer){return writer||(writer=$Writer['create']()),null!=_0x23c38b['data']&&Object['hasOwnProperty']['call'](_0x23c38b,'data')&&writer['uint32'](0x8)['uint32'](_0x23c38b['data']),null!=_0x23c38b['data1']&&Object['hasOwnProperty']['call'](_0x23c38b,'data1')&&writer['uint32'](0x12)['bytes'](_0x23c38b['data1']),writer;},NumberBytesPacketDataMessage['encodeDelimited']=function(_0x362eee,writer){return this['encode'](_0x362eee,writer)['ldelim']();},NumberBytesPacketDataMessage['decode']=function(_0x544788,length,_0x312c53){_0x544788 instanceof _0x53a355||(_0x544788=_0x53a355['create'](_0x544788));for(var _0x336970=void 0x0===length?_0x544788['len']:_0x544788['pos']+length,_0x41ff22=new $root['NumberBytesPacketDataMessage']();_0x544788['pos']<_0x336970;){var tag=_0x544788['uint32']();if(tag===_0x312c53)break;switch(tag>>>0x3){case 0x1:_0x41ff22['data']=_0x544788['uint32']();break;case 0x2:_0x41ff22['data1']=_0x544788['bytes']();break;default:_0x544788['skipType'](0x7&tag);}}return _0x41ff22;},NumberBytesPacketDataMessage['decodeDelimited']=function(_0x5120b3){return _0x5120b3 instanceof _0x53a355||(_0x5120b3=new _0x53a355(_0x5120b3)),this['decode'](_0x5120b3,_0x5120b3['uint32']());},NumberBytesPacketDataMessage['verify']=function(_0x1f4c9d){return'object'!=typeof _0x1f4c9d||null===_0x1f4c9d?'object\x20expected':null!=_0x1f4c9d['data']&&_0x1f4c9d['hasOwnProperty']('data')&&!$util['isInteger'](_0x1f4c9d['data'])?'data:\x20integer\x20expected':null!=_0x1f4c9d['data1']&&_0x1f4c9d['hasOwnProperty']('data1')&&!(_0x1f4c9d['data1']&&'number'==typeof _0x1f4c9d['data1']['length']||$util['isString'](_0x1f4c9d['data1']))?'data1:\x20buffer\x20expected':null;},NumberBytesPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberBytesPacketDataMessage'])return object;var _0x412a84=new $root['NumberBytesPacketDataMessage']();return null!=object['data']&&(_0x412a84['data']=object['data']>>>0x0),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x412a84['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x412a84['data1']=object['data1'])),_0x412a84;},NumberBytesPacketDataMessage['toObject']=function(_0x1f8436,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x1f8436['data']&&_0x1f8436['hasOwnProperty']('data')&&(object['data']=_0x1f8436['data']),null!=_0x1f8436['data1']&&_0x1f8436['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x1f8436['data1'],0x0,_0x1f8436['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x1f8436['data1']):_0x1f8436['data1']),object;},NumberBytesPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberBytesPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberBytesPacketDataMessage';},NumberBytesPacketDataMessage;}()),$root['BytesBytesPacketDataMessage']=(function(){function BytesBytesPacketDataMessage(properties){if(properties){for(var _0x463705=Object['keys'](properties),_0x12d3c7=0x0;_0x12d3c7<_0x463705['length'];++_0x12d3c7)null!=properties[_0x463705[_0x12d3c7]]&&(this[_0x463705[_0x12d3c7]]=properties[_0x463705[_0x12d3c7]]);}}return BytesBytesPacketDataMessage['prototype']['data']=$util['newBuffer']([]),BytesBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),BytesBytesPacketDataMessage['create']=function(properties){return new BytesBytesPacketDataMessage(properties);},BytesBytesPacketDataMessage['encode']=function(_0xcad363,writer){return writer||(writer=$Writer['create']()),null!=_0xcad363['data']&&Object['hasOwnProperty']['call'](_0xcad363,'data')&&writer['uint32'](0xa)['bytes'](_0xcad363['data']),null!=_0xcad363['data1']&&Object['hasOwnProperty']['call'](_0xcad363,'data1')&&writer['uint32'](0x12)['bytes'](_0xcad363['data1']),writer;},BytesBytesPacketDataMessage['encodeDelimited']=function(_0x466226,writer){return this['encode'](_0x466226,writer)['ldelim']();},BytesBytesPacketDataMessage['decode']=function(_0x42f525,length,_0x2960a2){_0x42f525 instanceof _0x53a355||(_0x42f525=_0x53a355['create'](_0x42f525));for(var _0x56fafc=void 0x0===length?_0x42f525['len']:_0x42f525['pos']+length,_0x53e3e5=new $root['BytesBytesPacketDataMessage']();_0x42f525['pos']<_0x56fafc;){var tag=_0x42f525['uint32']();if(tag===_0x2960a2)break;switch(tag>>>0x3){case 0x1:_0x53e3e5['data']=_0x42f525['bytes']();break;case 0x2:_0x53e3e5['data1']=_0x42f525['bytes']();break;default:_0x42f525['skipType'](0x7&tag);}}return _0x53e3e5;},BytesBytesPacketDataMessage['decodeDelimited']=function(_0x51084e){return _0x51084e instanceof _0x53a355||(_0x51084e=new _0x53a355(_0x51084e)),this['decode'](_0x51084e,_0x51084e['uint32']());},BytesBytesPacketDataMessage['verify']=function(_0x19a271){return'object'!=typeof _0x19a271||null===_0x19a271?'object\x20expected':null!=_0x19a271['data']&&_0x19a271['hasOwnProperty']('data')&&!(_0x19a271['data']&&'number'==typeof _0x19a271['data']['length']||$util['isString'](_0x19a271['data']))?'data:\x20buffer\x20expected':null!=_0x19a271['data1']&&_0x19a271['hasOwnProperty']('data1')&&!(_0x19a271['data1']&&'number'==typeof _0x19a271['data1']['length']||$util['isString'](_0x19a271['data1']))?'data1:\x20buffer\x20expected':null;},BytesBytesPacketDataMessage['fromObject']=function(object){if(object instanceof $root['BytesBytesPacketDataMessage'])return object;var _0x2a38a2=new $root['BytesBytesPacketDataMessage']();return null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x2a38a2['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x2a38a2['data']=object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x2a38a2['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x2a38a2['data1']=object['data1'])),_0x2a38a2;},BytesBytesPacketDataMessage['toObject']=function(_0x41f0a9,options){options||(options={});var object={};return options['defaults']&&(options['bytes']===String?object['data']='':(object['data']=[],options['bytes']!==Array&&(object['data']=$util['newBuffer'](object['data']))),options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x41f0a9['data']&&_0x41f0a9['hasOwnProperty']('data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x41f0a9['data'],0x0,_0x41f0a9['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x41f0a9['data']):_0x41f0a9['data']),null!=_0x41f0a9['data1']&&_0x41f0a9['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x41f0a9['data1'],0x0,_0x41f0a9['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x41f0a9['data1']):_0x41f0a9['data1']),object;},BytesBytesPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},BytesBytesPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/BytesBytesPacketDataMessage';},BytesBytesPacketDataMessage;}()),$root['ChannelMessage']=(function(){function _0x29c04b(properties){if(properties){for(var _0x2e066c=Object['keys'](properties),_0x2cd1e5=0x0;_0x2cd1e5<_0x2e066c['length'];++_0x2cd1e5)null!=properties[_0x2e066c[_0x2cd1e5]]&&(this[_0x2e066c[_0x2cd1e5]]=properties[_0x2e066c[_0x2cd1e5]]);}}return _0x29c04b['prototype']['type']=0x0,_0x29c04b['prototype']['socketId']='',_0x29c04b['prototype']['data']=$util['newBuffer']([]),_0x29c04b['create']=function(properties){return new _0x29c04b(properties);},_0x29c04b['encode']=function(_0x3425bb,writer){return writer||(writer=$Writer['create']()),null!=_0x3425bb['type']&&Object['hasOwnProperty']['call'](_0x3425bb,'type')&&writer['uint32'](0x8)['uint32'](_0x3425bb['type']),null!=_0x3425bb['socketId']&&Object['hasOwnProperty']['call'](_0x3425bb,'socketId')&&writer['uint32'](0x12)['string'](_0x3425bb['socketId']),null!=_0x3425bb['data']&&Object['hasOwnProperty']['call'](_0x3425bb,'data')&&writer['uint32'](0x1a)['bytes'](_0x3425bb['data']),writer;},_0x29c04b['encodeDelimited']=function(_0x41c23a,writer){return this['encode'](_0x41c23a,writer)['ldelim']();},_0x29c04b['decode']=function(_0x1c71d3,length,_0x3d8b22){_0x1c71d3 instanceof _0x53a355||(_0x1c71d3=_0x53a355['create'](_0x1c71d3));for(var _0xadaaf5=void 0x0===length?_0x1c71d3['len']:_0x1c71d3['pos']+length,_0x4ec98b=new $root['ChannelMessage']();_0x1c71d3['pos']<_0xadaaf5;){var tag=_0x1c71d3['uint32']();if(tag===_0x3d8b22)break;switch(tag>>>0x3){case 0x1:_0x4ec98b['type']=_0x1c71d3['uint32']();break;case 0x2:_0x4ec98b['socketId']=_0x1c71d3['string']();break;case 0x3:_0x4ec98b['data']=_0x1c71d3['bytes']();break;default:_0x1c71d3['skipType'](0x7&tag);}}return _0x4ec98b;},_0x29c04b['decodeDelimited']=function(_0x25377c){return _0x25377c instanceof _0x53a355||(_0x25377c=new _0x53a355(_0x25377c)),this['decode'](_0x25377c,_0x25377c['uint32']());},_0x29c04b['verify']=function(_0x2d22fc){return'object'!=typeof _0x2d22fc||null===_0x2d22fc?'object\x20expected':null!=_0x2d22fc['type']&&_0x2d22fc['hasOwnProperty']('type')&&!$util['isInteger'](_0x2d22fc['type'])?'type:\x20integer\x20expected':null!=_0x2d22fc['socketId']&&_0x2d22fc['hasOwnProperty']('socketId')&&!$util['isString'](_0x2d22fc['socketId'])?'socketId:\x20string\x20expected':null!=_0x2d22fc['data']&&_0x2d22fc['hasOwnProperty']('data')&&!(_0x2d22fc['data']&&'number'==typeof _0x2d22fc['data']['length']||$util['isString'](_0x2d22fc['data']))?'data:\x20buffer\x20expected':null;},_0x29c04b['fromObject']=function(object){if(object instanceof $root['ChannelMessage'])return object;var _0x8ad2ba=new $root['ChannelMessage']();return null!=object['type']&&(_0x8ad2ba['type']=object['type']>>>0x0),null!=object['socketId']&&(_0x8ad2ba['socketId']=String(object['socketId'])),null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x8ad2ba['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x8ad2ba['data']=object['data'])),_0x8ad2ba;},_0x29c04b['toObject']=function(_0x18100a,options){options||(options={});var object={};return options['defaults']&&(object['type']=0x0,object['socketId']='',options['bytes']===String?object['data']='':(object['data']=[],options['bytes']!==Array&&(object['data']=$util['newBuffer'](object['data'])))),null!=_0x18100a['type']&&_0x18100a['hasOwnProperty']('type')&&(object['type']=_0x18100a['type']),null!=_0x18100a['socketId']&&_0x18100a['hasOwnProperty']('socketId')&&(object['socketId']=_0x18100a['socketId']),null!=_0x18100a['data']&&_0x18100a['hasOwnProperty']('data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x18100a['data'],0x0,_0x18100a['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x18100a['data']):_0x18100a['data']),object;},_0x29c04b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},_0x29c04b['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ChannelMessage';},_0x29c04b;}()),$root['GetUserResponse']=(function(){function GetUserResponse(properties){if(this['attributes']=[],properties){for(var _0x28f12d=Object['keys'](properties),_0x443a24=0x0;_0x443a24<_0x28f12d['length'];++_0x443a24)null!=properties[_0x28f12d[_0x443a24]]&&(this[_0x28f12d[_0x443a24]]=properties[_0x28f12d[_0x443a24]]);}}return GetUserResponse['prototype']['attributes']=$util['emptyArray'],GetUserResponse['create']=function(properties){return new GetUserResponse(properties);},GetUserResponse['encode']=function(_0x4b49a0,writer){if(writer||(writer=$Writer['create']()),null!=_0x4b49a0['attributes']&&_0x4b49a0['attributes']['length']){for(var _0x3ce88b=0x0;_0x3ce88b<_0x4b49a0['attributes']['length'];++_0x3ce88b)$root['KeyValueDescriptor']['encode'](_0x4b49a0['attributes'][_0x3ce88b],writer['uint32'](0xa)['fork']())['ldelim']();}return writer;},GetUserResponse['encodeDelimited']=function(_0x3e51f8,writer){return this['encode'](_0x3e51f8,writer)['ldelim']();},GetUserResponse['decode']=function(_0x28282e,length,_0x34c5cc){_0x28282e instanceof _0x53a355||(_0x28282e=_0x53a355['create'](_0x28282e));for(var _0x1ccf66=void 0x0===length?_0x28282e['len']:_0x28282e['pos']+length,_0x4c53e0=new $root['GetUserResponse']();_0x28282e['pos']<_0x1ccf66;){var tag=_0x28282e['uint32']();if(tag===_0x34c5cc)break;if(tag>>>0x3==0x1)_0x4c53e0['attributes']&&_0x4c53e0['attributes']['length']||(_0x4c53e0['attributes']=[]),_0x4c53e0['attributes']['push']($root['KeyValueDescriptor']['decode'](_0x28282e,_0x28282e['uint32']()));else _0x28282e['skipType'](0x7&tag);}return _0x4c53e0;},GetUserResponse['decodeDelimited']=function(_0x470c09){return _0x470c09 instanceof _0x53a355||(_0x470c09=new _0x53a355(_0x470c09)),this['decode'](_0x470c09,_0x470c09['uint32']());},GetUserResponse['verify']=function(_0x70d922){if('object'!=typeof _0x70d922||null===_0x70d922)return'object\x20expected';if(null!=_0x70d922['attributes']&&_0x70d922['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x70d922['attributes']))return'attributes:\x20array\x20expected';for(var _0x45ba1e=0x0;_0x45ba1e<_0x70d922['attributes']['length'];++_0x45ba1e){var _0x5df5dc=$root['KeyValueDescriptor']['verify'](_0x70d922['attributes'][_0x45ba1e]);if(_0x5df5dc)return'attributes.'+_0x5df5dc;}}return null;},GetUserResponse['fromObject']=function(object){if(object instanceof $root['GetUserResponse'])return object;var _0x1e633e=new $root['GetUserResponse']();if(object['attributes']){if(!Array['isArray'](object['attributes']))throw TypeError('.GetUserResponse.attributes:\x20array\x20expected');_0x1e633e['attributes']=[];for(var _0x32a40e=0x0;_0x32a40e<object['attributes']['length'];++_0x32a40e){if('object'!=typeof object['attributes'][_0x32a40e])throw TypeError('.GetUserResponse.attributes:\x20object\x20expected');_0x1e633e['attributes'][_0x32a40e]=$root['KeyValueDescriptor']['fromObject'](object['attributes'][_0x32a40e]);}}return _0x1e633e;},GetUserResponse['toObject']=function(_0x1234b9,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['attributes']=[]),_0x1234b9['attributes']&&_0x1234b9['attributes']['length']){object['attributes']=[];for(var _0x2fdb76=0x0;_0x2fdb76<_0x1234b9['attributes']['length'];++_0x2fdb76)object['attributes'][_0x2fdb76]=$root['KeyValueDescriptor']['toObject'](_0x1234b9['attributes'][_0x2fdb76],options);}return object;},GetUserResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetUserResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetUserResponse';},GetUserResponse;}()),$root['GetManyUsersResponse']=(function(){function GetManyUsersResponse(properties){if(this['users']=[],properties){for(var _0x5a87bd=Object['keys'](properties),_0xe5d968=0x0;_0xe5d968<_0x5a87bd['length'];++_0xe5d968)null!=properties[_0x5a87bd[_0xe5d968]]&&(this[_0x5a87bd[_0xe5d968]]=properties[_0x5a87bd[_0xe5d968]]);}}return GetManyUsersResponse['prototype']['users']=$util['emptyArray'],GetManyUsersResponse['create']=function(properties){return new GetManyUsersResponse(properties);},GetManyUsersResponse['encode']=function(_0xf0da05,writer){if(writer||(writer=$Writer['create']()),null!=_0xf0da05['users']&&_0xf0da05['users']['length']){for(var _0xf50f0c=0x0;_0xf50f0c<_0xf0da05['users']['length'];++_0xf50f0c)$root['UserDescriptor']['encode'](_0xf0da05['users'][_0xf50f0c],writer['uint32'](0xa)['fork']())['ldelim']();}return writer;},GetManyUsersResponse['encodeDelimited']=function(_0x140707,writer){return this['encode'](_0x140707,writer)['ldelim']();},GetManyUsersResponse['decode']=function(_0x290591,length,_0x2f6e22){_0x290591 instanceof _0x53a355||(_0x290591=_0x53a355['create'](_0x290591));for(var _0x36a1a7=void 0x0===length?_0x290591['len']:_0x290591['pos']+length,_0x4d961b=new $root['GetManyUsersResponse']();_0x290591['pos']<_0x36a1a7;){var tag=_0x290591['uint32']();if(tag===_0x2f6e22)break;if(tag>>>0x3==0x1)_0x4d961b['users']&&_0x4d961b['users']['length']||(_0x4d961b['users']=[]),_0x4d961b['users']['push']($root['UserDescriptor']['decode'](_0x290591,_0x290591['uint32']()));else _0x290591['skipType'](0x7&tag);}return _0x4d961b;},GetManyUsersResponse['decodeDelimited']=function(_0x1b8fa1){return _0x1b8fa1 instanceof _0x53a355||(_0x1b8fa1=new _0x53a355(_0x1b8fa1)),this['decode'](_0x1b8fa1,_0x1b8fa1['uint32']());},GetManyUsersResponse['verify']=function(_0x36f8ba){if('object'!=typeof _0x36f8ba||null===_0x36f8ba)return'object\x20expected';if(null!=_0x36f8ba['users']&&_0x36f8ba['hasOwnProperty']('users')){if(!Array['isArray'](_0x36f8ba['users']))return'users:\x20array\x20expected';for(var _0x46b08f=0x0;_0x46b08f<_0x36f8ba['users']['length'];++_0x46b08f){var _0x239ee9=$root['UserDescriptor']['verify'](_0x36f8ba['users'][_0x46b08f]);if(_0x239ee9)return'users.'+_0x239ee9;}}return null;},GetManyUsersResponse['fromObject']=function(object){if(object instanceof $root['GetManyUsersResponse'])return object;var _0x3a6dae=new $root['GetManyUsersResponse']();if(object['users']){if(!Array['isArray'](object['users']))throw TypeError('.GetManyUsersResponse.users:\x20array\x20expected');_0x3a6dae['users']=[];for(var _0x19273b=0x0;_0x19273b<object['users']['length'];++_0x19273b){if('object'!=typeof object['users'][_0x19273b])throw TypeError('.GetManyUsersResponse.users:\x20object\x20expected');_0x3a6dae['users'][_0x19273b]=$root['UserDescriptor']['fromObject'](object['users'][_0x19273b]);}}return _0x3a6dae;},GetManyUsersResponse['toObject']=function(_0x4b031e,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['users']=[]),_0x4b031e['users']&&_0x4b031e['users']['length']){object['users']=[];for(var _0x582d70=0x0;_0x582d70<_0x4b031e['users']['length'];++_0x582d70)object['users'][_0x582d70]=$root['UserDescriptor']['toObject'](_0x4b031e['users'][_0x582d70],options);}return object;},GetManyUsersResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetManyUsersResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetManyUsersResponse';},GetManyUsersResponse;}()),$root['GetUserMessage']=(function(){function GetUserMessage(properties){if(properties){for(var _0x545e32=Object['keys'](properties),_0x4a171d=0x0;_0x4a171d<_0x545e32['length'];++_0x4a171d)null!=properties[_0x545e32[_0x4a171d]]&&(this[_0x545e32[_0x4a171d]]=properties[_0x545e32[_0x4a171d]]);}}return GetUserMessage['prototype']['id']='',GetUserMessage['create']=function(properties){return new GetUserMessage(properties);},GetUserMessage['encode']=function(_0x479a86,writer){return writer||(writer=$Writer['create']()),null!=_0x479a86['id']&&Object['hasOwnProperty']['call'](_0x479a86,'id')&&writer['uint32'](0xa)['string'](_0x479a86['id']),writer;},GetUserMessage['encodeDelimited']=function(_0x489092,writer){return this['encode'](_0x489092,writer)['ldelim']();},GetUserMessage['decode']=function(_0x538adc,length,_0x57ae4f){_0x538adc instanceof _0x53a355||(_0x538adc=_0x53a355['create'](_0x538adc));for(var _0x216cff=void 0x0===length?_0x538adc['len']:_0x538adc['pos']+length,_0x3b98b5=new $root['GetUserMessage']();_0x538adc['pos']<_0x216cff;){var tag=_0x538adc['uint32']();if(tag===_0x57ae4f)break;if(tag>>>0x3==0x1)_0x3b98b5['id']=_0x538adc['string']();else _0x538adc['skipType'](0x7&tag);}return _0x3b98b5;},GetUserMessage['decodeDelimited']=function(_0x358ac3){return _0x358ac3 instanceof _0x53a355||(_0x358ac3=new _0x53a355(_0x358ac3)),this['decode'](_0x358ac3,_0x358ac3['uint32']());},GetUserMessage['verify']=function(_0x3e9c42){return'object'!=typeof _0x3e9c42||null===_0x3e9c42?'object\x20expected':null!=_0x3e9c42['id']&&_0x3e9c42['hasOwnProperty']('id')&&!$util['isString'](_0x3e9c42['id'])?'id:\x20string\x20expected':null;},GetUserMessage['fromObject']=function(object){if(object instanceof $root['GetUserMessage'])return object;var _0x48f8e7=new $root['GetUserMessage']();return null!=object['id']&&(_0x48f8e7['id']=String(object['id'])),_0x48f8e7;},GetUserMessage['toObject']=function(_0x5d2f3c,options){options||(options={});var object={};return options['defaults']&&(object['id']=''),null!=_0x5d2f3c['id']&&_0x5d2f3c['hasOwnProperty']('id')&&(object['id']=_0x5d2f3c['id']),object;},GetUserMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetUserMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetUserMessage';},GetUserMessage;}()),$root['GetManyUsersMessage']=(function(){function GetManyUsersMessage(properties){if(this['ids']=[],properties){for(var _0x2cb24e=Object['keys'](properties),_0x1dfc4c=0x0;_0x1dfc4c<_0x2cb24e['length'];++_0x1dfc4c)null!=properties[_0x2cb24e[_0x1dfc4c]]&&(this[_0x2cb24e[_0x1dfc4c]]=properties[_0x2cb24e[_0x1dfc4c]]);}}return GetManyUsersMessage['prototype']['ids']=$util['emptyArray'],GetManyUsersMessage['create']=function(properties){return new GetManyUsersMessage(properties);},GetManyUsersMessage['encode']=function(_0x21d101,writer){if(writer||(writer=$Writer['create']()),null!=_0x21d101['ids']&&_0x21d101['ids']['length']){for(var _0x42c5b9=0x0;_0x42c5b9<_0x21d101['ids']['length'];++_0x42c5b9)writer['uint32'](0xa)['string'](_0x21d101['ids'][_0x42c5b9]);}return writer;},GetManyUsersMessage['encodeDelimited']=function(_0x3170a7,writer){return this['encode'](_0x3170a7,writer)['ldelim']();},GetManyUsersMessage['decode']=function(_0x5f365c,length,_0x1dafcd){_0x5f365c instanceof _0x53a355||(_0x5f365c=_0x53a355['create'](_0x5f365c));for(var _0x5d2eb7=void 0x0===length?_0x5f365c['len']:_0x5f365c['pos']+length,_0x3beb7e=new $root['GetManyUsersMessage']();_0x5f365c['pos']<_0x5d2eb7;){var tag=_0x5f365c['uint32']();if(tag===_0x1dafcd)break;if(tag>>>0x3==0x1)_0x3beb7e['ids']&&_0x3beb7e['ids']['length']||(_0x3beb7e['ids']=[]),_0x3beb7e['ids']['push'](_0x5f365c['string']());else _0x5f365c['skipType'](0x7&tag);}return _0x3beb7e;},GetManyUsersMessage['decodeDelimited']=function(_0x4b9618){return _0x4b9618 instanceof _0x53a355||(_0x4b9618=new _0x53a355(_0x4b9618)),this['decode'](_0x4b9618,_0x4b9618['uint32']());},GetManyUsersMessage['verify']=function(_0x4feb88){if('object'!=typeof _0x4feb88||null===_0x4feb88)return'object\x20expected';if(null!=_0x4feb88['ids']&&_0x4feb88['hasOwnProperty']('ids')){if(!Array['isArray'](_0x4feb88['ids']))return'ids:\x20array\x20expected';for(var _0x95e6da=0x0;_0x95e6da<_0x4feb88['ids']['length'];++_0x95e6da)if(!$util['isString'](_0x4feb88['ids'][_0x95e6da]))return'ids:\x20string[]\x20expected';}return null;},GetManyUsersMessage['fromObject']=function(object){if(object instanceof $root['GetManyUsersMessage'])return object;var _0x580598=new $root['GetManyUsersMessage']();if(object['ids']){if(!Array['isArray'](object['ids']))throw TypeError('.GetManyUsersMessage.ids:\x20array\x20expected');_0x580598['ids']=[];for(var _0x36119c=0x0;_0x36119c<object['ids']['length'];++_0x36119c)_0x580598['ids'][_0x36119c]=String(object['ids'][_0x36119c]);}return _0x580598;},GetManyUsersMessage['toObject']=function(_0x462d4e,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['ids']=[]),_0x462d4e['ids']&&_0x462d4e['ids']['length']){object['ids']=[];for(var _0x4b5634=0x0;_0x4b5634<_0x462d4e['ids']['length'];++_0x4b5634)object['ids'][_0x4b5634]=_0x462d4e['ids'][_0x4b5634];}return object;},GetManyUsersMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetManyUsersMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetManyUsersMessage';},GetManyUsersMessage;}()),$root['UserDescriptor']=(function(){function UserDescriptor(properties){if(this['attributes']=[],properties){for(var _0x1cd644=Object['keys'](properties),_0x2684d3=0x0;_0x2684d3<_0x1cd644['length'];++_0x2684d3)null!=properties[_0x1cd644[_0x2684d3]]&&(this[_0x1cd644[_0x2684d3]]=properties[_0x1cd644[_0x2684d3]]);}}return UserDescriptor['prototype']['attributes']=$util['emptyArray'],UserDescriptor['create']=function(properties){return new UserDescriptor(properties);},UserDescriptor['encode']=function(_0x2f2bd4,writer){if(writer||(writer=$Writer['create']()),null!=_0x2f2bd4['attributes']&&_0x2f2bd4['attributes']['length']){for(var _0x551453=0x0;_0x551453<_0x2f2bd4['attributes']['length'];++_0x551453)$root['KeyValueDescriptor']['encode'](_0x2f2bd4['attributes'][_0x551453],writer['uint32'](0xa)['fork']())['ldelim']();}return writer;},UserDescriptor['encodeDelimited']=function(_0x144443,writer){return this['encode'](_0x144443,writer)['ldelim']();},UserDescriptor['decode']=function(_0x28df73,length,_0x2d394b){_0x28df73 instanceof _0x53a355||(_0x28df73=_0x53a355['create'](_0x28df73));for(var _0x15cece=void 0x0===length?_0x28df73['len']:_0x28df73['pos']+length,_0xe6535b=new $root['UserDescriptor']();_0x28df73['pos']<_0x15cece;){var tag=_0x28df73['uint32']();if(tag===_0x2d394b)break;if(tag>>>0x3==0x1)_0xe6535b['attributes']&&_0xe6535b['attributes']['length']||(_0xe6535b['attributes']=[]),_0xe6535b['attributes']['push']($root['KeyValueDescriptor']['decode'](_0x28df73,_0x28df73['uint32']()));else _0x28df73['skipType'](0x7&tag);}return _0xe6535b;},UserDescriptor['decodeDelimited']=function(_0x56d53a){return _0x56d53a instanceof _0x53a355||(_0x56d53a=new _0x53a355(_0x56d53a)),this['decode'](_0x56d53a,_0x56d53a['uint32']());},UserDescriptor['verify']=function(_0x10bad7){if('object'!=typeof _0x10bad7||null===_0x10bad7)return'object\x20expected';if(null!=_0x10bad7['attributes']&&_0x10bad7['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x10bad7['attributes']))return'attributes:\x20array\x20expected';for(var _0x29aa15=0x0;_0x29aa15<_0x10bad7['attributes']['length'];++_0x29aa15){var _0x431f49=$root['KeyValueDescriptor']['verify'](_0x10bad7['attributes'][_0x29aa15]);if(_0x431f49)return'attributes.'+_0x431f49;}}return null;},UserDescriptor['fromObject']=function(object){if(object instanceof $root['UserDescriptor'])return object;var _0x54b6a9=new $root['UserDescriptor']();if(object['attributes']){if(!Array['isArray'](object['attributes']))throw TypeError('.UserDescriptor.attributes:\x20array\x20expected');_0x54b6a9['attributes']=[];for(var _0x22c690=0x0;_0x22c690<object['attributes']['length'];++_0x22c690){if('object'!=typeof object['attributes'][_0x22c690])throw TypeError('.UserDescriptor.attributes:\x20object\x20expected');_0x54b6a9['attributes'][_0x22c690]=$root['KeyValueDescriptor']['fromObject'](object['attributes'][_0x22c690]);}}return _0x54b6a9;},UserDescriptor['toObject']=function(_0x2f6ee7,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['attributes']=[]),_0x2f6ee7['attributes']&&_0x2f6ee7['attributes']['length']){object['attributes']=[];for(var _0x13bcfe=0x0;_0x13bcfe<_0x2f6ee7['attributes']['length'];++_0x13bcfe)object['attributes'][_0x13bcfe]=$root['KeyValueDescriptor']['toObject'](_0x2f6ee7['attributes'][_0x13bcfe],options);}return object;},UserDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},UserDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/UserDescriptor';},UserDescriptor;}()),$root['TrackChangesGetSuggestionResponse']=(function(){function TrackChangesGetSuggestionResponse(properties){if(properties){for(var _0x428ddd=Object['keys'](properties),_0x35145c=0x0;_0x35145c<_0x428ddd['length'];++_0x35145c)null!=properties[_0x428ddd[_0x35145c]]&&(this[_0x428ddd[_0x35145c]]=properties[_0x428ddd[_0x35145c]]);}}return TrackChangesGetSuggestionResponse['prototype']['id']='',TrackChangesGetSuggestionResponse['prototype']['authorId']='',TrackChangesGetSuggestionResponse['prototype']['type']='',TrackChangesGetSuggestionResponse['prototype']['createdAt']='',TrackChangesGetSuggestionResponse['prototype']['data']='',TrackChangesGetSuggestionResponse['prototype']['hasComments']=!0x1,TrackChangesGetSuggestionResponse['prototype']['state']='',TrackChangesGetSuggestionResponse['prototype']['attributes']='',TrackChangesGetSuggestionResponse['create']=function(properties){return new TrackChangesGetSuggestionResponse(properties);},TrackChangesGetSuggestionResponse['encode']=function(_0x5daa7d,writer){return writer||(writer=$Writer['create']()),null!=_0x5daa7d['id']&&Object['hasOwnProperty']['call'](_0x5daa7d,'id')&&writer['uint32'](0xa)['string'](_0x5daa7d['id']),null!=_0x5daa7d['authorId']&&Object['hasOwnProperty']['call'](_0x5daa7d,'authorId')&&writer['uint32'](0x12)['string'](_0x5daa7d['authorId']),null!=_0x5daa7d['type']&&Object['hasOwnProperty']['call'](_0x5daa7d,'type')&&writer['uint32'](0x1a)['string'](_0x5daa7d['type']),null!=_0x5daa7d['createdAt']&&Object['hasOwnProperty']['call'](_0x5daa7d,'createdAt')&&writer['uint32'](0x22)['string'](_0x5daa7d['createdAt']),null!=_0x5daa7d['data']&&Object['hasOwnProperty']['call'](_0x5daa7d,'data')&&writer['uint32'](0x2a)['string'](_0x5daa7d['data']),null!=_0x5daa7d['hasComments']&&Object['hasOwnProperty']['call'](_0x5daa7d,'hasComments')&&writer['uint32'](0x30)['bool'](_0x5daa7d['hasComments']),null!=_0x5daa7d['state']&&Object['hasOwnProperty']['call'](_0x5daa7d,'state')&&writer['uint32'](0x3a)['string'](_0x5daa7d['state']),null!=_0x5daa7d['attributes']&&Object['hasOwnProperty']['call'](_0x5daa7d,'attributes')&&writer['uint32'](0x42)['string'](_0x5daa7d['attributes']),writer;},TrackChangesGetSuggestionResponse['encodeDelimited']=function(_0x233dc7,writer){return this['encode'](_0x233dc7,writer)['ldelim']();},TrackChangesGetSuggestionResponse['decode']=function(_0x243480,length,_0x1eb41c){_0x243480 instanceof _0x53a355||(_0x243480=_0x53a355['create'](_0x243480));for(var _0x759da6=void 0x0===length?_0x243480['len']:_0x243480['pos']+length,_0x375c39=new $root['TrackChangesGetSuggestionResponse']();_0x243480['pos']<_0x759da6;){var tag=_0x243480['uint32']();if(tag===_0x1eb41c)break;switch(tag>>>0x3){case 0x1:_0x375c39['id']=_0x243480['string']();break;case 0x2:_0x375c39['authorId']=_0x243480['string']();break;case 0x3:_0x375c39['type']=_0x243480['string']();break;case 0x4:_0x375c39['createdAt']=_0x243480['string']();break;case 0x5:_0x375c39['data']=_0x243480['string']();break;case 0x6:_0x375c39['hasComments']=_0x243480['bool']();break;case 0x7:_0x375c39['state']=_0x243480['string']();break;case 0x8:_0x375c39['attributes']=_0x243480['string']();break;default:_0x243480['skipType'](0x7&tag);}}return _0x375c39;},TrackChangesGetSuggestionResponse['decodeDelimited']=function(_0x2056b5){return _0x2056b5 instanceof _0x53a355||(_0x2056b5=new _0x53a355(_0x2056b5)),this['decode'](_0x2056b5,_0x2056b5['uint32']());},TrackChangesGetSuggestionResponse['verify']=function(_0x3cdd03){return'object'!=typeof _0x3cdd03||null===_0x3cdd03?'object\x20expected':null!=_0x3cdd03['id']&&_0x3cdd03['hasOwnProperty']('id')&&!$util['isString'](_0x3cdd03['id'])?'id:\x20string\x20expected':null!=_0x3cdd03['authorId']&&_0x3cdd03['hasOwnProperty']('authorId')&&!$util['isString'](_0x3cdd03['authorId'])?'authorId:\x20string\x20expected':null!=_0x3cdd03['type']&&_0x3cdd03['hasOwnProperty']('type')&&!$util['isString'](_0x3cdd03['type'])?'type:\x20string\x20expected':null!=_0x3cdd03['createdAt']&&_0x3cdd03['hasOwnProperty']('createdAt')&&!$util['isString'](_0x3cdd03['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3cdd03['data']&&_0x3cdd03['hasOwnProperty']('data')&&!$util['isString'](_0x3cdd03['data'])?'data:\x20string\x20expected':null!=_0x3cdd03['hasComments']&&_0x3cdd03['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x3cdd03['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x3cdd03['state']&&_0x3cdd03['hasOwnProperty']('state')&&!$util['isString'](_0x3cdd03['state'])?'state:\x20string\x20expected':null!=_0x3cdd03['attributes']&&_0x3cdd03['hasOwnProperty']('attributes')&&!$util['isString'](_0x3cdd03['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesGetSuggestionResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesGetSuggestionResponse'])return object;var _0x56737b=new $root['TrackChangesGetSuggestionResponse']();return null!=object['id']&&(_0x56737b['id']=String(object['id'])),null!=object['authorId']&&(_0x56737b['authorId']=String(object['authorId'])),null!=object['type']&&(_0x56737b['type']=String(object['type'])),null!=object['createdAt']&&(_0x56737b['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x56737b['data']=String(object['data'])),null!=object['hasComments']&&(_0x56737b['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x56737b['state']=String(object['state'])),null!=object['attributes']&&(_0x56737b['attributes']=String(object['attributes'])),_0x56737b;},TrackChangesGetSuggestionResponse['toObject']=function(_0x204ce3,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['authorId']='',object['type']='',object['createdAt']='',object['data']='',object['hasComments']=!0x1,object['state']='',object['attributes']=''),null!=_0x204ce3['id']&&_0x204ce3['hasOwnProperty']('id')&&(object['id']=_0x204ce3['id']),null!=_0x204ce3['authorId']&&_0x204ce3['hasOwnProperty']('authorId')&&(object['authorId']=_0x204ce3['authorId']),null!=_0x204ce3['type']&&_0x204ce3['hasOwnProperty']('type')&&(object['type']=_0x204ce3['type']),null!=_0x204ce3['createdAt']&&_0x204ce3['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x204ce3['createdAt']),null!=_0x204ce3['data']&&_0x204ce3['hasOwnProperty']('data')&&(object['data']=_0x204ce3['data']),null!=_0x204ce3['hasComments']&&_0x204ce3['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x204ce3['hasComments']),null!=_0x204ce3['state']&&_0x204ce3['hasOwnProperty']('state')&&(object['state']=_0x204ce3['state']),null!=_0x204ce3['attributes']&&_0x204ce3['hasOwnProperty']('attributes')&&(object['attributes']=_0x204ce3['attributes']),object;},TrackChangesGetSuggestionResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetSuggestionResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetSuggestionResponse';},TrackChangesGetSuggestionResponse;}()),$root['TrackChangesGetAllSuggestionsResponse']=(function(){function TrackChangesGetAllSuggestionsResponse(properties){if(this['suggestions']=[],this['suggestionsV2']=[],properties){for(var _0xf2069e=Object['keys'](properties),_0x41201d=0x0;_0x41201d<_0xf2069e['length'];++_0x41201d)null!=properties[_0xf2069e[_0x41201d]]&&(this[_0xf2069e[_0x41201d]]=properties[_0xf2069e[_0x41201d]]);}}return TrackChangesGetAllSuggestionsResponse['prototype']['suggestions']=$util['emptyArray'],TrackChangesGetAllSuggestionsResponse['prototype']['suggestionsV2']=$util['emptyArray'],TrackChangesGetAllSuggestionsResponse['create']=function(properties){return new TrackChangesGetAllSuggestionsResponse(properties);},TrackChangesGetAllSuggestionsResponse['encode']=function(_0x3420cd,writer){if(writer||(writer=$Writer['create']()),null!=_0x3420cd['suggestions']&&_0x3420cd['suggestions']['length']){for(var _0x1f0d63=0x0;_0x1f0d63<_0x3420cd['suggestions']['length'];++_0x1f0d63)writer['uint32'](0xa)['string'](_0x3420cd['suggestions'][_0x1f0d63]);}if(null!=_0x3420cd['suggestionsV2']&&_0x3420cd['suggestionsV2']['length']){for(_0x1f0d63=0x0;_0x1f0d63<_0x3420cd['suggestionsV2']['length'];++_0x1f0d63)$root['SuggestionDescriptor']['encode'](_0x3420cd['suggestionsV2'][_0x1f0d63],writer['uint32'](0x12)['fork']())['ldelim']();}return writer;},TrackChangesGetAllSuggestionsResponse['encodeDelimited']=function(_0x29b490,writer){return this['encode'](_0x29b490,writer)['ldelim']();},TrackChangesGetAllSuggestionsResponse['decode']=function(_0x48cdb9,length,_0xeca2){_0x48cdb9 instanceof _0x53a355||(_0x48cdb9=_0x53a355['create'](_0x48cdb9));for(var _0x334ac9=void 0x0===length?_0x48cdb9['len']:_0x48cdb9['pos']+length,_0x33abd2=new $root['TrackChangesGetAllSuggestionsResponse']();_0x48cdb9['pos']<_0x334ac9;){var tag=_0x48cdb9['uint32']();if(tag===_0xeca2)break;switch(tag>>>0x3){case 0x1:_0x33abd2['suggestions']&&_0x33abd2['suggestions']['length']||(_0x33abd2['suggestions']=[]),_0x33abd2['suggestions']['push'](_0x48cdb9['string']());break;case 0x2:_0x33abd2['suggestionsV2']&&_0x33abd2['suggestionsV2']['length']||(_0x33abd2['suggestionsV2']=[]),_0x33abd2['suggestionsV2']['push']($root['SuggestionDescriptor']['decode'](_0x48cdb9,_0x48cdb9['uint32']()));break;default:_0x48cdb9['skipType'](0x7&tag);}}return _0x33abd2;},TrackChangesGetAllSuggestionsResponse['decodeDelimited']=function(_0x54278b){return _0x54278b instanceof _0x53a355||(_0x54278b=new _0x53a355(_0x54278b)),this['decode'](_0x54278b,_0x54278b['uint32']());},TrackChangesGetAllSuggestionsResponse['verify']=function(_0x115924){if('object'!=typeof _0x115924||null===_0x115924)return'object\x20expected';if(null!=_0x115924['suggestions']&&_0x115924['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x115924['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x336746=0x0;_0x336746<_0x115924['suggestions']['length'];++_0x336746)if(!$util['isString'](_0x115924['suggestions'][_0x336746]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x115924['suggestionsV2']&&_0x115924['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x115924['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x336746=0x0;_0x336746<_0x115924['suggestionsV2']['length'];++_0x336746){var _0x260d4b=$root['SuggestionDescriptor']['verify'](_0x115924['suggestionsV2'][_0x336746]);if(_0x260d4b)return'suggestionsV2.'+_0x260d4b;}}return null;},TrackChangesGetAllSuggestionsResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesGetAllSuggestionsResponse'])return object;var _0x410f3f=new $root['TrackChangesGetAllSuggestionsResponse']();if(object['suggestions']){if(!Array['isArray'](object['suggestions']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestions:\x20array\x20expected');_0x410f3f['suggestions']=[];for(var _0x854d78=0x0;_0x854d78<object['suggestions']['length'];++_0x854d78)_0x410f3f['suggestions'][_0x854d78]=String(object['suggestions'][_0x854d78]);}if(object['suggestionsV2']){if(!Array['isArray'](object['suggestionsV2']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20array\x20expected');_0x410f3f['suggestionsV2']=[];for(_0x854d78=0x0;_0x854d78<object['suggestionsV2']['length'];++_0x854d78){if('object'!=typeof object['suggestionsV2'][_0x854d78])throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20object\x20expected');_0x410f3f['suggestionsV2'][_0x854d78]=$root['SuggestionDescriptor']['fromObject'](object['suggestionsV2'][_0x854d78]);}}return _0x410f3f;},TrackChangesGetAllSuggestionsResponse['toObject']=function(_0x13a425,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['suggestions']=[],object['suggestionsV2']=[]),_0x13a425['suggestions']&&_0x13a425['suggestions']['length']){object['suggestions']=[];for(var _0x12fdab=0x0;_0x12fdab<_0x13a425['suggestions']['length'];++_0x12fdab)object['suggestions'][_0x12fdab]=_0x13a425['suggestions'][_0x12fdab];}if(_0x13a425['suggestionsV2']&&_0x13a425['suggestionsV2']['length']){object['suggestionsV2']=[];for(_0x12fdab=0x0;_0x12fdab<_0x13a425['suggestionsV2']['length'];++_0x12fdab)object['suggestionsV2'][_0x12fdab]=$root['SuggestionDescriptor']['toObject'](_0x13a425['suggestionsV2'][_0x12fdab],options);}return object;},TrackChangesGetAllSuggestionsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetAllSuggestionsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetAllSuggestionsResponse';},TrackChangesGetAllSuggestionsResponse;}()),$root['TrackChangesConnectResponse']=(function(){function TrackChangesConnectResponse(properties){if(this['suggestions']=[],this['suggestionsV2']=[],properties){for(var _0x23e20a=Object['keys'](properties),_0x2b81ef=0x0;_0x2b81ef<_0x23e20a['length'];++_0x2b81ef)null!=properties[_0x23e20a[_0x2b81ef]]&&(this[_0x23e20a[_0x2b81ef]]=properties[_0x23e20a[_0x2b81ef]]);}}return TrackChangesConnectResponse['prototype']['channel']='',TrackChangesConnectResponse['prototype']['suggestions']=$util['emptyArray'],TrackChangesConnectResponse['prototype']['suggestionsV2']=$util['emptyArray'],TrackChangesConnectResponse['create']=function(properties){return new TrackChangesConnectResponse(properties);},TrackChangesConnectResponse['encode']=function(_0x568ca5,writer){if(writer||(writer=$Writer['create']()),null!=_0x568ca5['channel']&&Object['hasOwnProperty']['call'](_0x568ca5,'channel')&&writer['uint32'](0xa)['string'](_0x568ca5['channel']),null!=_0x568ca5['suggestions']&&_0x568ca5['suggestions']['length']){for(var _0x3290d1=0x0;_0x3290d1<_0x568ca5['suggestions']['length'];++_0x3290d1)writer['uint32'](0x12)['string'](_0x568ca5['suggestions'][_0x3290d1]);}if(null!=_0x568ca5['suggestionsV2']&&_0x568ca5['suggestionsV2']['length']){for(_0x3290d1=0x0;_0x3290d1<_0x568ca5['suggestionsV2']['length'];++_0x3290d1)$root['SuggestionDescriptor']['encode'](_0x568ca5['suggestionsV2'][_0x3290d1],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},TrackChangesConnectResponse['encodeDelimited']=function(_0x5103cc,writer){return this['encode'](_0x5103cc,writer)['ldelim']();},TrackChangesConnectResponse['decode']=function(_0x5e8b67,length,_0x53cd48){_0x5e8b67 instanceof _0x53a355||(_0x5e8b67=_0x53a355['create'](_0x5e8b67));for(var _0x823c62=void 0x0===length?_0x5e8b67['len']:_0x5e8b67['pos']+length,_0x5b673b=new $root['TrackChangesConnectResponse']();_0x5e8b67['pos']<_0x823c62;){var tag=_0x5e8b67['uint32']();if(tag===_0x53cd48)break;switch(tag>>>0x3){case 0x1:_0x5b673b['channel']=_0x5e8b67['string']();break;case 0x2:_0x5b673b['suggestions']&&_0x5b673b['suggestions']['length']||(_0x5b673b['suggestions']=[]),_0x5b673b['suggestions']['push'](_0x5e8b67['string']());break;case 0x3:_0x5b673b['suggestionsV2']&&_0x5b673b['suggestionsV2']['length']||(_0x5b673b['suggestionsV2']=[]),_0x5b673b['suggestionsV2']['push']($root['SuggestionDescriptor']['decode'](_0x5e8b67,_0x5e8b67['uint32']()));break;default:_0x5e8b67['skipType'](0x7&tag);}}return _0x5b673b;},TrackChangesConnectResponse['decodeDelimited']=function(_0xe2f2be){return _0xe2f2be instanceof _0x53a355||(_0xe2f2be=new _0x53a355(_0xe2f2be)),this['decode'](_0xe2f2be,_0xe2f2be['uint32']());},TrackChangesConnectResponse['verify']=function(_0x2469b0){if('object'!=typeof _0x2469b0||null===_0x2469b0)return'object\x20expected';if(null!=_0x2469b0['channel']&&_0x2469b0['hasOwnProperty']('channel')&&!$util['isString'](_0x2469b0['channel']))return'channel:\x20string\x20expected';if(null!=_0x2469b0['suggestions']&&_0x2469b0['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x2469b0['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x5b37ce=0x0;_0x5b37ce<_0x2469b0['suggestions']['length'];++_0x5b37ce)if(!$util['isString'](_0x2469b0['suggestions'][_0x5b37ce]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x2469b0['suggestionsV2']&&_0x2469b0['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x2469b0['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x5b37ce=0x0;_0x5b37ce<_0x2469b0['suggestionsV2']['length'];++_0x5b37ce){var _0x83fb88=$root['SuggestionDescriptor']['verify'](_0x2469b0['suggestionsV2'][_0x5b37ce]);if(_0x83fb88)return'suggestionsV2.'+_0x83fb88;}}return null;},TrackChangesConnectResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesConnectResponse'])return object;var _0x554911=new $root['TrackChangesConnectResponse']();if(null!=object['channel']&&(_0x554911['channel']=String(object['channel'])),object['suggestions']){if(!Array['isArray'](object['suggestions']))throw TypeError('.TrackChangesConnectResponse.suggestions:\x20array\x20expected');_0x554911['suggestions']=[];for(var _0x5a9099=0x0;_0x5a9099<object['suggestions']['length'];++_0x5a9099)_0x554911['suggestions'][_0x5a9099]=String(object['suggestions'][_0x5a9099]);}if(object['suggestionsV2']){if(!Array['isArray'](object['suggestionsV2']))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20array\x20expected');_0x554911['suggestionsV2']=[];for(_0x5a9099=0x0;_0x5a9099<object['suggestionsV2']['length'];++_0x5a9099){if('object'!=typeof object['suggestionsV2'][_0x5a9099])throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20object\x20expected');_0x554911['suggestionsV2'][_0x5a9099]=$root['SuggestionDescriptor']['fromObject'](object['suggestionsV2'][_0x5a9099]);}}return _0x554911;},TrackChangesConnectResponse['toObject']=function(_0x124010,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['suggestions']=[],object['suggestionsV2']=[]),options['defaults']&&(object['channel']=''),null!=_0x124010['channel']&&_0x124010['hasOwnProperty']('channel')&&(object['channel']=_0x124010['channel']),_0x124010['suggestions']&&_0x124010['suggestions']['length']){object['suggestions']=[];for(var _0x448174=0x0;_0x448174<_0x124010['suggestions']['length'];++_0x448174)object['suggestions'][_0x448174]=_0x124010['suggestions'][_0x448174];}if(_0x124010['suggestionsV2']&&_0x124010['suggestionsV2']['length']){object['suggestionsV2']=[];for(_0x448174=0x0;_0x448174<_0x124010['suggestionsV2']['length'];++_0x448174)object['suggestionsV2'][_0x448174]=$root['SuggestionDescriptor']['toObject'](_0x124010['suggestionsV2'][_0x448174],options);}return object;},TrackChangesConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesConnectResponse';},TrackChangesConnectResponse;}()),$root['TrackChangesAddSuggestionResponse']=(function(){function TrackChangesAddSuggestionResponse(properties){if(properties){for(var _0x1326d9=Object['keys'](properties),_0x2409e9=0x0;_0x2409e9<_0x1326d9['length'];++_0x2409e9)null!=properties[_0x1326d9[_0x2409e9]]&&(this[_0x1326d9[_0x2409e9]]=properties[_0x1326d9[_0x2409e9]]);}}return TrackChangesAddSuggestionResponse['prototype']['id']='',TrackChangesAddSuggestionResponse['prototype']['authorId']='',TrackChangesAddSuggestionResponse['prototype']['type']='',TrackChangesAddSuggestionResponse['prototype']['createdAt']='',TrackChangesAddSuggestionResponse['prototype']['data']='',TrackChangesAddSuggestionResponse['prototype']['hasComments']=!0x1,TrackChangesAddSuggestionResponse['prototype']['state']='',TrackChangesAddSuggestionResponse['prototype']['attributes']='',TrackChangesAddSuggestionResponse['create']=function(properties){return new TrackChangesAddSuggestionResponse(properties);},TrackChangesAddSuggestionResponse['encode']=function(_0x719a,writer){return writer||(writer=$Writer['create']()),null!=_0x719a['id']&&Object['hasOwnProperty']['call'](_0x719a,'id')&&writer['uint32'](0xa)['string'](_0x719a['id']),null!=_0x719a['authorId']&&Object['hasOwnProperty']['call'](_0x719a,'authorId')&&writer['uint32'](0x12)['string'](_0x719a['authorId']),null!=_0x719a['type']&&Object['hasOwnProperty']['call'](_0x719a,'type')&&writer['uint32'](0x1a)['string'](_0x719a['type']),null!=_0x719a['createdAt']&&Object['hasOwnProperty']['call'](_0x719a,'createdAt')&&writer['uint32'](0x22)['string'](_0x719a['createdAt']),null!=_0x719a['data']&&Object['hasOwnProperty']['call'](_0x719a,'data')&&writer['uint32'](0x2a)['string'](_0x719a['data']),null!=_0x719a['hasComments']&&Object['hasOwnProperty']['call'](_0x719a,'hasComments')&&writer['uint32'](0x30)['bool'](_0x719a['hasComments']),null!=_0x719a['state']&&Object['hasOwnProperty']['call'](_0x719a,'state')&&writer['uint32'](0x3a)['string'](_0x719a['state']),null!=_0x719a['attributes']&&Object['hasOwnProperty']['call'](_0x719a,'attributes')&&writer['uint32'](0x42)['string'](_0x719a['attributes']),writer;},TrackChangesAddSuggestionResponse['encodeDelimited']=function(_0x15b6b6,writer){return this['encode'](_0x15b6b6,writer)['ldelim']();},TrackChangesAddSuggestionResponse['decode']=function(_0x569123,length,_0x1d5bf5){_0x569123 instanceof _0x53a355||(_0x569123=_0x53a355['create'](_0x569123));for(var _0x396b40=void 0x0===length?_0x569123['len']:_0x569123['pos']+length,_0x184b25=new $root['TrackChangesAddSuggestionResponse']();_0x569123['pos']<_0x396b40;){var tag=_0x569123['uint32']();if(tag===_0x1d5bf5)break;switch(tag>>>0x3){case 0x1:_0x184b25['id']=_0x569123['string']();break;case 0x2:_0x184b25['authorId']=_0x569123['string']();break;case 0x3:_0x184b25['type']=_0x569123['string']();break;case 0x4:_0x184b25['createdAt']=_0x569123['string']();break;case 0x5:_0x184b25['data']=_0x569123['string']();break;case 0x6:_0x184b25['hasComments']=_0x569123['bool']();break;case 0x7:_0x184b25['state']=_0x569123['string']();break;case 0x8:_0x184b25['attributes']=_0x569123['string']();break;default:_0x569123['skipType'](0x7&tag);}}return _0x184b25;},TrackChangesAddSuggestionResponse['decodeDelimited']=function(_0x59506d){return _0x59506d instanceof _0x53a355||(_0x59506d=new _0x53a355(_0x59506d)),this['decode'](_0x59506d,_0x59506d['uint32']());},TrackChangesAddSuggestionResponse['verify']=function(_0xae20c1){return'object'!=typeof _0xae20c1||null===_0xae20c1?'object\x20expected':null!=_0xae20c1['id']&&_0xae20c1['hasOwnProperty']('id')&&!$util['isString'](_0xae20c1['id'])?'id:\x20string\x20expected':null!=_0xae20c1['authorId']&&_0xae20c1['hasOwnProperty']('authorId')&&!$util['isString'](_0xae20c1['authorId'])?'authorId:\x20string\x20expected':null!=_0xae20c1['type']&&_0xae20c1['hasOwnProperty']('type')&&!$util['isString'](_0xae20c1['type'])?'type:\x20string\x20expected':null!=_0xae20c1['createdAt']&&_0xae20c1['hasOwnProperty']('createdAt')&&!$util['isString'](_0xae20c1['createdAt'])?'createdAt:\x20string\x20expected':null!=_0xae20c1['data']&&_0xae20c1['hasOwnProperty']('data')&&!$util['isString'](_0xae20c1['data'])?'data:\x20string\x20expected':null!=_0xae20c1['hasComments']&&_0xae20c1['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0xae20c1['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0xae20c1['state']&&_0xae20c1['hasOwnProperty']('state')&&!$util['isString'](_0xae20c1['state'])?'state:\x20string\x20expected':null!=_0xae20c1['attributes']&&_0xae20c1['hasOwnProperty']('attributes')&&!$util['isString'](_0xae20c1['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesAddSuggestionResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesAddSuggestionResponse'])return object;var _0x2075db=new $root['TrackChangesAddSuggestionResponse']();return null!=object['id']&&(_0x2075db['id']=String(object['id'])),null!=object['authorId']&&(_0x2075db['authorId']=String(object['authorId'])),null!=object['type']&&(_0x2075db['type']=String(object['type'])),null!=object['createdAt']&&(_0x2075db['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x2075db['data']=String(object['data'])),null!=object['hasComments']&&(_0x2075db['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x2075db['state']=String(object['state'])),null!=object['attributes']&&(_0x2075db['attributes']=String(object['attributes'])),_0x2075db;},TrackChangesAddSuggestionResponse['toObject']=function(_0x142c9b,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['authorId']='',object['type']='',object['createdAt']='',object['data']='',object['hasComments']=!0x1,object['state']='',object['attributes']=''),null!=_0x142c9b['id']&&_0x142c9b['hasOwnProperty']('id')&&(object['id']=_0x142c9b['id']),null!=_0x142c9b['authorId']&&_0x142c9b['hasOwnProperty']('authorId')&&(object['authorId']=_0x142c9b['authorId']),null!=_0x142c9b['type']&&_0x142c9b['hasOwnProperty']('type')&&(object['type']=_0x142c9b['type']),null!=_0x142c9b['createdAt']&&_0x142c9b['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x142c9b['createdAt']),null!=_0x142c9b['data']&&_0x142c9b['hasOwnProperty']('data')&&(object['data']=_0x142c9b['data']),null!=_0x142c9b['hasComments']&&_0x142c9b['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x142c9b['hasComments']),null!=_0x142c9b['state']&&_0x142c9b['hasOwnProperty']('state')&&(object['state']=_0x142c9b['state']),null!=_0x142c9b['attributes']&&_0x142c9b['hasOwnProperty']('attributes')&&(object['attributes']=_0x142c9b['attributes']),object;},TrackChangesAddSuggestionResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesAddSuggestionResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesAddSuggestionResponse';},TrackChangesAddSuggestionResponse;}()),$root['TrackChangesUpdateSuggestionMessage']=(function(){function TrackChangesUpdateSuggestionMessage(properties){if(properties){for(var _0xf702b4=Object['keys'](properties),_0x11b0e8=0x0;_0x11b0e8<_0xf702b4['length'];++_0x11b0e8)null!=properties[_0xf702b4[_0x11b0e8]]&&(this[_0xf702b4[_0x11b0e8]]=properties[_0xf702b4[_0x11b0e8]]);}}return TrackChangesUpdateSuggestionMessage['prototype']['id']='',TrackChangesUpdateSuggestionMessage['prototype']['documentId']='',TrackChangesUpdateSuggestionMessage['prototype']['hasComments']=!0x1,TrackChangesUpdateSuggestionMessage['prototype']['isHasCommentsModified']=!0x1,TrackChangesUpdateSuggestionMessage['prototype']['state']='',TrackChangesUpdateSuggestionMessage['prototype']['attributes']='',TrackChangesUpdateSuggestionMessage['create']=function(properties){return new TrackChangesUpdateSuggestionMessage(properties);},TrackChangesUpdateSuggestionMessage['encode']=function(_0xc2e682,writer){return writer||(writer=$Writer['create']()),null!=_0xc2e682['id']&&Object['hasOwnProperty']['call'](_0xc2e682,'id')&&writer['uint32'](0xa)['string'](_0xc2e682['id']),null!=_0xc2e682['documentId']&&Object['hasOwnProperty']['call'](_0xc2e682,'documentId')&&writer['uint32'](0x12)['string'](_0xc2e682['documentId']),null!=_0xc2e682['hasComments']&&Object['hasOwnProperty']['call'](_0xc2e682,'hasComments')&&writer['uint32'](0x18)['bool'](_0xc2e682['hasComments']),null!=_0xc2e682['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0xc2e682,'isHasCommentsModified')&&writer['uint32'](0x20)['bool'](_0xc2e682['isHasCommentsModified']),null!=_0xc2e682['state']&&Object['hasOwnProperty']['call'](_0xc2e682,'state')&&writer['uint32'](0x2a)['string'](_0xc2e682['state']),null!=_0xc2e682['attributes']&&Object['hasOwnProperty']['call'](_0xc2e682,'attributes')&&writer['uint32'](0x32)['string'](_0xc2e682['attributes']),writer;},TrackChangesUpdateSuggestionMessage['encodeDelimited']=function(_0x32e760,writer){return this['encode'](_0x32e760,writer)['ldelim']();},TrackChangesUpdateSuggestionMessage['decode']=function(_0x40c92f,length,_0xcdd3b){_0x40c92f instanceof _0x53a355||(_0x40c92f=_0x53a355['create'](_0x40c92f));for(var _0x5d0b6c=void 0x0===length?_0x40c92f['len']:_0x40c92f['pos']+length,_0xe30d69=new $root['TrackChangesUpdateSuggestionMessage']();_0x40c92f['pos']<_0x5d0b6c;){var tag=_0x40c92f['uint32']();if(tag===_0xcdd3b)break;switch(tag>>>0x3){case 0x1:_0xe30d69['id']=_0x40c92f['string']();break;case 0x2:_0xe30d69['documentId']=_0x40c92f['string']();break;case 0x3:_0xe30d69['hasComments']=_0x40c92f['bool']();break;case 0x4:_0xe30d69['isHasCommentsModified']=_0x40c92f['bool']();break;case 0x5:_0xe30d69['state']=_0x40c92f['string']();break;case 0x6:_0xe30d69['attributes']=_0x40c92f['string']();break;default:_0x40c92f['skipType'](0x7&tag);}}return _0xe30d69;},TrackChangesUpdateSuggestionMessage['decodeDelimited']=function(_0x53c600){return _0x53c600 instanceof _0x53a355||(_0x53c600=new _0x53a355(_0x53c600)),this['decode'](_0x53c600,_0x53c600['uint32']());},TrackChangesUpdateSuggestionMessage['verify']=function(_0x1b8257){return'object'!=typeof _0x1b8257||null===_0x1b8257?'object\x20expected':null!=_0x1b8257['id']&&_0x1b8257['hasOwnProperty']('id')&&!$util['isString'](_0x1b8257['id'])?'id:\x20string\x20expected':null!=_0x1b8257['documentId']&&_0x1b8257['hasOwnProperty']('documentId')&&!$util['isString'](_0x1b8257['documentId'])?'documentId:\x20string\x20expected':null!=_0x1b8257['hasComments']&&_0x1b8257['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x1b8257['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x1b8257['isHasCommentsModified']&&_0x1b8257['hasOwnProperty']('isHasCommentsModified')&&'boolean'!=typeof _0x1b8257['isHasCommentsModified']?'isHasCommentsModified:\x20boolean\x20expected':null!=_0x1b8257['state']&&_0x1b8257['hasOwnProperty']('state')&&!$util['isString'](_0x1b8257['state'])?'state:\x20string\x20expected':null!=_0x1b8257['attributes']&&_0x1b8257['hasOwnProperty']('attributes')&&!$util['isString'](_0x1b8257['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesUpdateSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesUpdateSuggestionMessage'])return object;var _0x4755f2=new $root['TrackChangesUpdateSuggestionMessage']();return null!=object['id']&&(_0x4755f2['id']=String(object['id'])),null!=object['documentId']&&(_0x4755f2['documentId']=String(object['documentId'])),null!=object['hasComments']&&(_0x4755f2['hasComments']=Boolean(object['hasComments'])),null!=object['isHasCommentsModified']&&(_0x4755f2['isHasCommentsModified']=Boolean(object['isHasCommentsModified'])),null!=object['state']&&(_0x4755f2['state']=String(object['state'])),null!=object['attributes']&&(_0x4755f2['attributes']=String(object['attributes'])),_0x4755f2;},TrackChangesUpdateSuggestionMessage['toObject']=function(_0x1ad9f3,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['documentId']='',object['hasComments']=!0x1,object['isHasCommentsModified']=!0x1,object['state']='',object['attributes']=''),null!=_0x1ad9f3['id']&&_0x1ad9f3['hasOwnProperty']('id')&&(object['id']=_0x1ad9f3['id']),null!=_0x1ad9f3['documentId']&&_0x1ad9f3['hasOwnProperty']('documentId')&&(object['documentId']=_0x1ad9f3['documentId']),null!=_0x1ad9f3['hasComments']&&_0x1ad9f3['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x1ad9f3['hasComments']),null!=_0x1ad9f3['isHasCommentsModified']&&_0x1ad9f3['hasOwnProperty']('isHasCommentsModified')&&(object['isHasCommentsModified']=_0x1ad9f3['isHasCommentsModified']),null!=_0x1ad9f3['state']&&_0x1ad9f3['hasOwnProperty']('state')&&(object['state']=_0x1ad9f3['state']),null!=_0x1ad9f3['attributes']&&_0x1ad9f3['hasOwnProperty']('attributes')&&(object['attributes']=_0x1ad9f3['attributes']),object;},TrackChangesUpdateSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesUpdateSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesUpdateSuggestionMessage';},TrackChangesUpdateSuggestionMessage;}()),$root['TrackChangesGetSuggestionMessage']=(function(){function TrackChangesGetSuggestionMessage(properties){if(properties){for(var _0x570882=Object['keys'](properties),_0x3df167=0x0;_0x3df167<_0x570882['length'];++_0x3df167)null!=properties[_0x570882[_0x3df167]]&&(this[_0x570882[_0x3df167]]=properties[_0x570882[_0x3df167]]);}}return TrackChangesGetSuggestionMessage['prototype']['id']='',TrackChangesGetSuggestionMessage['prototype']['documentId']='',TrackChangesGetSuggestionMessage['create']=function(properties){return new TrackChangesGetSuggestionMessage(properties);},TrackChangesGetSuggestionMessage['encode']=function(_0x53d14c,writer){return writer||(writer=$Writer['create']()),null!=_0x53d14c['id']&&Object['hasOwnProperty']['call'](_0x53d14c,'id')&&writer['uint32'](0xa)['string'](_0x53d14c['id']),null!=_0x53d14c['documentId']&&Object['hasOwnProperty']['call'](_0x53d14c,'documentId')&&writer['uint32'](0x12)['string'](_0x53d14c['documentId']),writer;},TrackChangesGetSuggestionMessage['encodeDelimited']=function(_0x54f9d5,writer){return this['encode'](_0x54f9d5,writer)['ldelim']();},TrackChangesGetSuggestionMessage['decode']=function(_0x5d0b43,length,_0x4436f3){_0x5d0b43 instanceof _0x53a355||(_0x5d0b43=_0x53a355['create'](_0x5d0b43));for(var _0x3fd803=void 0x0===length?_0x5d0b43['len']:_0x5d0b43['pos']+length,_0x5584e1=new $root['TrackChangesGetSuggestionMessage']();_0x5d0b43['pos']<_0x3fd803;){var tag=_0x5d0b43['uint32']();if(tag===_0x4436f3)break;switch(tag>>>0x3){case 0x1:_0x5584e1['id']=_0x5d0b43['string']();break;case 0x2:_0x5584e1['documentId']=_0x5d0b43['string']();break;default:_0x5d0b43['skipType'](0x7&tag);}}return _0x5584e1;},TrackChangesGetSuggestionMessage['decodeDelimited']=function(_0x482792){return _0x482792 instanceof _0x53a355||(_0x482792=new _0x53a355(_0x482792)),this['decode'](_0x482792,_0x482792['uint32']());},TrackChangesGetSuggestionMessage['verify']=function(_0x27710e){return'object'!=typeof _0x27710e||null===_0x27710e?'object\x20expected':null!=_0x27710e['id']&&_0x27710e['hasOwnProperty']('id')&&!$util['isString'](_0x27710e['id'])?'id:\x20string\x20expected':null!=_0x27710e['documentId']&&_0x27710e['hasOwnProperty']('documentId')&&!$util['isString'](_0x27710e['documentId'])?'documentId:\x20string\x20expected':null;},TrackChangesGetSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesGetSuggestionMessage'])return object;var _0x44e088=new $root['TrackChangesGetSuggestionMessage']();return null!=object['id']&&(_0x44e088['id']=String(object['id'])),null!=object['documentId']&&(_0x44e088['documentId']=String(object['documentId'])),_0x44e088;},TrackChangesGetSuggestionMessage['toObject']=function(_0x1ac646,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['documentId']=''),null!=_0x1ac646['id']&&_0x1ac646['hasOwnProperty']('id')&&(object['id']=_0x1ac646['id']),null!=_0x1ac646['documentId']&&_0x1ac646['hasOwnProperty']('documentId')&&(object['documentId']=_0x1ac646['documentId']),object;},TrackChangesGetSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetSuggestionMessage';},TrackChangesGetSuggestionMessage;}()),$root['TrackChangesGetAllSuggestionMessage']=(function(){function TrackChangesGetAllSuggestionMessage(properties){if(properties){for(var _0x5bd097=Object['keys'](properties),_0xeab93a=0x0;_0xeab93a<_0x5bd097['length'];++_0xeab93a)null!=properties[_0x5bd097[_0xeab93a]]&&(this[_0x5bd097[_0xeab93a]]=properties[_0x5bd097[_0xeab93a]]);}}return TrackChangesGetAllSuggestionMessage['prototype']['documentId']='',TrackChangesGetAllSuggestionMessage['create']=function(properties){return new TrackChangesGetAllSuggestionMessage(properties);},TrackChangesGetAllSuggestionMessage['encode']=function(_0xc10c31,writer){return writer||(writer=$Writer['create']()),null!=_0xc10c31['documentId']&&Object['hasOwnProperty']['call'](_0xc10c31,'documentId')&&writer['uint32'](0xa)['string'](_0xc10c31['documentId']),writer;},TrackChangesGetAllSuggestionMessage['encodeDelimited']=function(_0x340f4d,writer){return this['encode'](_0x340f4d,writer)['ldelim']();},TrackChangesGetAllSuggestionMessage['decode']=function(_0x3b18a1,length,_0x50ca71){_0x3b18a1 instanceof _0x53a355||(_0x3b18a1=_0x53a355['create'](_0x3b18a1));for(var _0xe3cc12=void 0x0===length?_0x3b18a1['len']:_0x3b18a1['pos']+length,_0x37fce2=new $root['TrackChangesGetAllSuggestionMessage']();_0x3b18a1['pos']<_0xe3cc12;){var tag=_0x3b18a1['uint32']();if(tag===_0x50ca71)break;if(tag>>>0x3==0x1)_0x37fce2['documentId']=_0x3b18a1['string']();else _0x3b18a1['skipType'](0x7&tag);}return _0x37fce2;},TrackChangesGetAllSuggestionMessage['decodeDelimited']=function(_0x46316e){return _0x46316e instanceof _0x53a355||(_0x46316e=new _0x53a355(_0x46316e)),this['decode'](_0x46316e,_0x46316e['uint32']());},TrackChangesGetAllSuggestionMessage['verify']=function(_0x3ed67c){return'object'!=typeof _0x3ed67c||null===_0x3ed67c?'object\x20expected':null!=_0x3ed67c['documentId']&&_0x3ed67c['hasOwnProperty']('documentId')&&!$util['isString'](_0x3ed67c['documentId'])?'documentId:\x20string\x20expected':null;},TrackChangesGetAllSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesGetAllSuggestionMessage'])return object;var _0x29570a=new $root['TrackChangesGetAllSuggestionMessage']();return null!=object['documentId']&&(_0x29570a['documentId']=String(object['documentId'])),_0x29570a;},TrackChangesGetAllSuggestionMessage['toObject']=function(_0x4bd0b8,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x4bd0b8['documentId']&&_0x4bd0b8['hasOwnProperty']('documentId')&&(object['documentId']=_0x4bd0b8['documentId']),object;},TrackChangesGetAllSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetAllSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetAllSuggestionMessage';},TrackChangesGetAllSuggestionMessage;}()),$root['TrackChangesConnectMessage']=(function(){function TrackChangesConnectMessage(properties){if(properties){for(var _0x5cc09b=Object['keys'](properties),_0xd23914=0x0;_0xd23914<_0x5cc09b['length'];++_0xd23914)null!=properties[_0x5cc09b[_0xd23914]]&&(this[_0x5cc09b[_0xd23914]]=properties[_0x5cc09b[_0xd23914]]);}}return TrackChangesConnectMessage['prototype']['documentId']='',TrackChangesConnectMessage['create']=function(properties){return new TrackChangesConnectMessage(properties);},TrackChangesConnectMessage['encode']=function(_0x200931,writer){return writer||(writer=$Writer['create']()),null!=_0x200931['documentId']&&Object['hasOwnProperty']['call'](_0x200931,'documentId')&&writer['uint32'](0xa)['string'](_0x200931['documentId']),writer;},TrackChangesConnectMessage['encodeDelimited']=function(_0x461ba8,writer){return this['encode'](_0x461ba8,writer)['ldelim']();},TrackChangesConnectMessage['decode']=function(_0x10e76f,length,_0x413188){_0x10e76f instanceof _0x53a355||(_0x10e76f=_0x53a355['create'](_0x10e76f));for(var _0x33e4d9=void 0x0===length?_0x10e76f['len']:_0x10e76f['pos']+length,_0x467d88=new $root['TrackChangesConnectMessage']();_0x10e76f['pos']<_0x33e4d9;){var tag=_0x10e76f['uint32']();if(tag===_0x413188)break;if(tag>>>0x3==0x1)_0x467d88['documentId']=_0x10e76f['string']();else _0x10e76f['skipType'](0x7&tag);}return _0x467d88;},TrackChangesConnectMessage['decodeDelimited']=function(_0x14687c){return _0x14687c instanceof _0x53a355||(_0x14687c=new _0x53a355(_0x14687c)),this['decode'](_0x14687c,_0x14687c['uint32']());},TrackChangesConnectMessage['verify']=function(_0x752f05){return'object'!=typeof _0x752f05||null===_0x752f05?'object\x20expected':null!=_0x752f05['documentId']&&_0x752f05['hasOwnProperty']('documentId')&&!$util['isString'](_0x752f05['documentId'])?'documentId:\x20string\x20expected':null;},TrackChangesConnectMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesConnectMessage'])return object;var _0x1a947d=new $root['TrackChangesConnectMessage']();return null!=object['documentId']&&(_0x1a947d['documentId']=String(object['documentId'])),_0x1a947d;},TrackChangesConnectMessage['toObject']=function(_0x4e37aa,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x4e37aa['documentId']&&_0x4e37aa['hasOwnProperty']('documentId')&&(object['documentId']=_0x4e37aa['documentId']),object;},TrackChangesConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesConnectMessage';},TrackChangesConnectMessage;}()),$root['TrackChangesBatchUpdateSuggestionsStateMessage']=(function(){function TrackChangesBatchUpdateSuggestionsStateMessage(properties){if(this['ids']=[],properties){for(var _0x247330=Object['keys'](properties),_0x4ef03c=0x0;_0x4ef03c<_0x247330['length'];++_0x4ef03c)null!=properties[_0x247330[_0x4ef03c]]&&(this[_0x247330[_0x4ef03c]]=properties[_0x247330[_0x4ef03c]]);}}return TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['ids']=$util['emptyArray'],TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['documentId']='',TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['state']='',TrackChangesBatchUpdateSuggestionsStateMessage['create']=function(properties){return new TrackChangesBatchUpdateSuggestionsStateMessage(properties);},TrackChangesBatchUpdateSuggestionsStateMessage['encode']=function(_0x4b10b1,writer){if(writer||(writer=$Writer['create']()),null!=_0x4b10b1['ids']&&_0x4b10b1['ids']['length']){for(var _0x295295=0x0;_0x295295<_0x4b10b1['ids']['length'];++_0x295295)writer['uint32'](0xa)['string'](_0x4b10b1['ids'][_0x295295]);}return null!=_0x4b10b1['documentId']&&Object['hasOwnProperty']['call'](_0x4b10b1,'documentId')&&writer['uint32'](0x12)['string'](_0x4b10b1['documentId']),null!=_0x4b10b1['state']&&Object['hasOwnProperty']['call'](_0x4b10b1,'state')&&writer['uint32'](0x1a)['string'](_0x4b10b1['state']),writer;},TrackChangesBatchUpdateSuggestionsStateMessage['encodeDelimited']=function(_0x5322b6,writer){return this['encode'](_0x5322b6,writer)['ldelim']();},TrackChangesBatchUpdateSuggestionsStateMessage['decode']=function(_0x253a98,length,_0x5283a6){_0x253a98 instanceof _0x53a355||(_0x253a98=_0x53a355['create'](_0x253a98));for(var _0x267872=void 0x0===length?_0x253a98['len']:_0x253a98['pos']+length,_0x338da7=new $root['TrackChangesBatchUpdateSuggestionsStateMessage']();_0x253a98['pos']<_0x267872;){var tag=_0x253a98['uint32']();if(tag===_0x5283a6)break;switch(tag>>>0x3){case 0x1:_0x338da7['ids']&&_0x338da7['ids']['length']||(_0x338da7['ids']=[]),_0x338da7['ids']['push'](_0x253a98['string']());break;case 0x2:_0x338da7['documentId']=_0x253a98['string']();break;case 0x3:_0x338da7['state']=_0x253a98['string']();break;default:_0x253a98['skipType'](0x7&tag);}}return _0x338da7;},TrackChangesBatchUpdateSuggestionsStateMessage['decodeDelimited']=function(_0x10e9c5){return _0x10e9c5 instanceof _0x53a355||(_0x10e9c5=new _0x53a355(_0x10e9c5)),this['decode'](_0x10e9c5,_0x10e9c5['uint32']());},TrackChangesBatchUpdateSuggestionsStateMessage['verify']=function(_0x124183){if('object'!=typeof _0x124183||null===_0x124183)return'object\x20expected';if(null!=_0x124183['ids']&&_0x124183['hasOwnProperty']('ids')){if(!Array['isArray'](_0x124183['ids']))return'ids:\x20array\x20expected';for(var _0x4e38f7=0x0;_0x4e38f7<_0x124183['ids']['length'];++_0x4e38f7)if(!$util['isString'](_0x124183['ids'][_0x4e38f7]))return'ids:\x20string[]\x20expected';}return null!=_0x124183['documentId']&&_0x124183['hasOwnProperty']('documentId')&&!$util['isString'](_0x124183['documentId'])?'documentId:\x20string\x20expected':null!=_0x124183['state']&&_0x124183['hasOwnProperty']('state')&&!$util['isString'](_0x124183['state'])?'state:\x20string\x20expected':null;},TrackChangesBatchUpdateSuggestionsStateMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesBatchUpdateSuggestionsStateMessage'])return object;var _0x727d24=new $root['TrackChangesBatchUpdateSuggestionsStateMessage']();if(object['ids']){if(!Array['isArray'](object['ids']))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage.ids:\x20array\x20expected');_0x727d24['ids']=[];for(var _0xca0b19=0x0;_0xca0b19<object['ids']['length'];++_0xca0b19)_0x727d24['ids'][_0xca0b19]=String(object['ids'][_0xca0b19]);}return null!=object['documentId']&&(_0x727d24['documentId']=String(object['documentId'])),null!=object['state']&&(_0x727d24['state']=String(object['state'])),_0x727d24;},TrackChangesBatchUpdateSuggestionsStateMessage['toObject']=function(_0x22f594,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['ids']=[]),options['defaults']&&(object['documentId']='',object['state']=''),_0x22f594['ids']&&_0x22f594['ids']['length']){object['ids']=[];for(var _0x40625d=0x0;_0x40625d<_0x22f594['ids']['length'];++_0x40625d)object['ids'][_0x40625d]=_0x22f594['ids'][_0x40625d];}return null!=_0x22f594['documentId']&&_0x22f594['hasOwnProperty']('documentId')&&(object['documentId']=_0x22f594['documentId']),null!=_0x22f594['state']&&_0x22f594['hasOwnProperty']('state')&&(object['state']=_0x22f594['state']),object;},TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesBatchUpdateSuggestionsStateMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesBatchUpdateSuggestionsStateMessage';},TrackChangesBatchUpdateSuggestionsStateMessage;}()),$root['TrackChangesAddSuggestionMessage']=(function(){function TrackChangesAddSuggestionMessage(properties){if(properties){for(var _0x272753=Object['keys'](properties),_0x5f11a9=0x0;_0x5f11a9<_0x272753['length'];++_0x5f11a9)null!=properties[_0x272753[_0x5f11a9]]&&(this[_0x272753[_0x5f11a9]]=properties[_0x272753[_0x5f11a9]]);}}return TrackChangesAddSuggestionMessage['prototype']['id']='',TrackChangesAddSuggestionMessage['prototype']['documentId']='',TrackChangesAddSuggestionMessage['prototype']['type']='',TrackChangesAddSuggestionMessage['prototype']['data']='',TrackChangesAddSuggestionMessage['prototype']['originalSuggestionId']='',TrackChangesAddSuggestionMessage['prototype']['attributes']='',TrackChangesAddSuggestionMessage['create']=function(properties){return new TrackChangesAddSuggestionMessage(properties);},TrackChangesAddSuggestionMessage['encode']=function(_0x268c52,writer){return writer||(writer=$Writer['create']()),null!=_0x268c52['id']&&Object['hasOwnProperty']['call'](_0x268c52,'id')&&writer['uint32'](0xa)['string'](_0x268c52['id']),null!=_0x268c52['documentId']&&Object['hasOwnProperty']['call'](_0x268c52,'documentId')&&writer['uint32'](0x12)['string'](_0x268c52['documentId']),null!=_0x268c52['type']&&Object['hasOwnProperty']['call'](_0x268c52,'type')&&writer['uint32'](0x1a)['string'](_0x268c52['type']),null!=_0x268c52['data']&&Object['hasOwnProperty']['call'](_0x268c52,'data')&&writer['uint32'](0x22)['string'](_0x268c52['data']),null!=_0x268c52['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x268c52,'originalSuggestionId')&&writer['uint32'](0x2a)['string'](_0x268c52['originalSuggestionId']),null!=_0x268c52['attributes']&&Object['hasOwnProperty']['call'](_0x268c52,'attributes')&&writer['uint32'](0x32)['string'](_0x268c52['attributes']),writer;},TrackChangesAddSuggestionMessage['encodeDelimited']=function(_0x5b6670,writer){return this['encode'](_0x5b6670,writer)['ldelim']();},TrackChangesAddSuggestionMessage['decode']=function(_0x3eefad,length,_0x440df3){_0x3eefad instanceof _0x53a355||(_0x3eefad=_0x53a355['create'](_0x3eefad));for(var _0x299a98=void 0x0===length?_0x3eefad['len']:_0x3eefad['pos']+length,_0xf83b19=new $root['TrackChangesAddSuggestionMessage']();_0x3eefad['pos']<_0x299a98;){var tag=_0x3eefad['uint32']();if(tag===_0x440df3)break;switch(tag>>>0x3){case 0x1:_0xf83b19['id']=_0x3eefad['string']();break;case 0x2:_0xf83b19['documentId']=_0x3eefad['string']();break;case 0x3:_0xf83b19['type']=_0x3eefad['string']();break;case 0x4:_0xf83b19['data']=_0x3eefad['string']();break;case 0x5:_0xf83b19['originalSuggestionId']=_0x3eefad['string']();break;case 0x6:_0xf83b19['attributes']=_0x3eefad['string']();break;default:_0x3eefad['skipType'](0x7&tag);}}return _0xf83b19;},TrackChangesAddSuggestionMessage['decodeDelimited']=function(_0x2c260c){return _0x2c260c instanceof _0x53a355||(_0x2c260c=new _0x53a355(_0x2c260c)),this['decode'](_0x2c260c,_0x2c260c['uint32']());},TrackChangesAddSuggestionMessage['verify']=function(_0x3790ad){return'object'!=typeof _0x3790ad||null===_0x3790ad?'object\x20expected':null!=_0x3790ad['id']&&_0x3790ad['hasOwnProperty']('id')&&!$util['isString'](_0x3790ad['id'])?'id:\x20string\x20expected':null!=_0x3790ad['documentId']&&_0x3790ad['hasOwnProperty']('documentId')&&!$util['isString'](_0x3790ad['documentId'])?'documentId:\x20string\x20expected':null!=_0x3790ad['type']&&_0x3790ad['hasOwnProperty']('type')&&!$util['isString'](_0x3790ad['type'])?'type:\x20string\x20expected':null!=_0x3790ad['data']&&_0x3790ad['hasOwnProperty']('data')&&!$util['isString'](_0x3790ad['data'])?'data:\x20string\x20expected':null!=_0x3790ad['originalSuggestionId']&&_0x3790ad['hasOwnProperty']('originalSuggestionId')&&!$util['isString'](_0x3790ad['originalSuggestionId'])?'originalSuggestionId:\x20string\x20expected':null!=_0x3790ad['attributes']&&_0x3790ad['hasOwnProperty']('attributes')&&!$util['isString'](_0x3790ad['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesAddSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesAddSuggestionMessage'])return object;var _0x47a562=new $root['TrackChangesAddSuggestionMessage']();return null!=object['id']&&(_0x47a562['id']=String(object['id'])),null!=object['documentId']&&(_0x47a562['documentId']=String(object['documentId'])),null!=object['type']&&(_0x47a562['type']=String(object['type'])),null!=object['data']&&(_0x47a562['data']=String(object['data'])),null!=object['originalSuggestionId']&&(_0x47a562['originalSuggestionId']=String(object['originalSuggestionId'])),null!=object['attributes']&&(_0x47a562['attributes']=String(object['attributes'])),_0x47a562;},TrackChangesAddSuggestionMessage['toObject']=function(_0x3944d7,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['documentId']='',object['type']='',object['data']='',object['originalSuggestionId']='',object['attributes']=''),null!=_0x3944d7['id']&&_0x3944d7['hasOwnProperty']('id')&&(object['id']=_0x3944d7['id']),null!=_0x3944d7['documentId']&&_0x3944d7['hasOwnProperty']('documentId')&&(object['documentId']=_0x3944d7['documentId']),null!=_0x3944d7['type']&&_0x3944d7['hasOwnProperty']('type')&&(object['type']=_0x3944d7['type']),null!=_0x3944d7['data']&&_0x3944d7['hasOwnProperty']('data')&&(object['data']=_0x3944d7['data']),null!=_0x3944d7['originalSuggestionId']&&_0x3944d7['hasOwnProperty']('originalSuggestionId')&&(object['originalSuggestionId']=_0x3944d7['originalSuggestionId']),null!=_0x3944d7['attributes']&&_0x3944d7['hasOwnProperty']('attributes')&&(object['attributes']=_0x3944d7['attributes']),object;},TrackChangesAddSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesAddSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesAddSuggestionMessage';},TrackChangesAddSuggestionMessage;}()),$root['SuggestionDescriptor']=(function(){function SuggestionDescriptor(properties){if(properties){for(var _0xa10c64=Object['keys'](properties),_0x2252f9=0x0;_0x2252f9<_0xa10c64['length'];++_0x2252f9)null!=properties[_0xa10c64[_0x2252f9]]&&(this[_0xa10c64[_0x2252f9]]=properties[_0xa10c64[_0x2252f9]]);}}return SuggestionDescriptor['prototype']['id']='',SuggestionDescriptor['prototype']['authorId']='',SuggestionDescriptor['prototype']['type']='',SuggestionDescriptor['prototype']['createdAt']='',SuggestionDescriptor['prototype']['data']='',SuggestionDescriptor['prototype']['hasComments']=!0x1,SuggestionDescriptor['prototype']['state']='',SuggestionDescriptor['prototype']['attributes']='',SuggestionDescriptor['create']=function(properties){return new SuggestionDescriptor(properties);},SuggestionDescriptor['encode']=function(_0x3e0298,writer){return writer||(writer=$Writer['create']()),null!=_0x3e0298['id']&&Object['hasOwnProperty']['call'](_0x3e0298,'id')&&writer['uint32'](0xa)['string'](_0x3e0298['id']),null!=_0x3e0298['authorId']&&Object['hasOwnProperty']['call'](_0x3e0298,'authorId')&&writer['uint32'](0x12)['string'](_0x3e0298['authorId']),null!=_0x3e0298['type']&&Object['hasOwnProperty']['call'](_0x3e0298,'type')&&writer['uint32'](0x1a)['string'](_0x3e0298['type']),null!=_0x3e0298['createdAt']&&Object['hasOwnProperty']['call'](_0x3e0298,'createdAt')&&writer['uint32'](0x22)['string'](_0x3e0298['createdAt']),null!=_0x3e0298['data']&&Object['hasOwnProperty']['call'](_0x3e0298,'data')&&writer['uint32'](0x2a)['string'](_0x3e0298['data']),null!=_0x3e0298['hasComments']&&Object['hasOwnProperty']['call'](_0x3e0298,'hasComments')&&writer['uint32'](0x30)['bool'](_0x3e0298['hasComments']),null!=_0x3e0298['state']&&Object['hasOwnProperty']['call'](_0x3e0298,'state')&&writer['uint32'](0x3a)['string'](_0x3e0298['state']),null!=_0x3e0298['attributes']&&Object['hasOwnProperty']['call'](_0x3e0298,'attributes')&&writer['uint32'](0x42)['string'](_0x3e0298['attributes']),writer;},SuggestionDescriptor['encodeDelimited']=function(_0x2032fb,writer){return this['encode'](_0x2032fb,writer)['ldelim']();},SuggestionDescriptor['decode']=function(_0x44ec8c,length,_0x40cdf8){_0x44ec8c instanceof _0x53a355||(_0x44ec8c=_0x53a355['create'](_0x44ec8c));for(var _0x32ef07=void 0x0===length?_0x44ec8c['len']:_0x44ec8c['pos']+length,_0x2549c5=new $root['SuggestionDescriptor']();_0x44ec8c['pos']<_0x32ef07;){var tag=_0x44ec8c['uint32']();if(tag===_0x40cdf8)break;switch(tag>>>0x3){case 0x1:_0x2549c5['id']=_0x44ec8c['string']();break;case 0x2:_0x2549c5['authorId']=_0x44ec8c['string']();break;case 0x3:_0x2549c5['type']=_0x44ec8c['string']();break;case 0x4:_0x2549c5['createdAt']=_0x44ec8c['string']();break;case 0x5:_0x2549c5['data']=_0x44ec8c['string']();break;case 0x6:_0x2549c5['hasComments']=_0x44ec8c['bool']();break;case 0x7:_0x2549c5['state']=_0x44ec8c['string']();break;case 0x8:_0x2549c5['attributes']=_0x44ec8c['string']();break;default:_0x44ec8c['skipType'](0x7&tag);}}return _0x2549c5;},SuggestionDescriptor['decodeDelimited']=function(_0xc81035){return _0xc81035 instanceof _0x53a355||(_0xc81035=new _0x53a355(_0xc81035)),this['decode'](_0xc81035,_0xc81035['uint32']());},SuggestionDescriptor['verify']=function(_0x4dbfa1){return'object'!=typeof _0x4dbfa1||null===_0x4dbfa1?'object\x20expected':null!=_0x4dbfa1['id']&&_0x4dbfa1['hasOwnProperty']('id')&&!$util['isString'](_0x4dbfa1['id'])?'id:\x20string\x20expected':null!=_0x4dbfa1['authorId']&&_0x4dbfa1['hasOwnProperty']('authorId')&&!$util['isString'](_0x4dbfa1['authorId'])?'authorId:\x20string\x20expected':null!=_0x4dbfa1['type']&&_0x4dbfa1['hasOwnProperty']('type')&&!$util['isString'](_0x4dbfa1['type'])?'type:\x20string\x20expected':null!=_0x4dbfa1['createdAt']&&_0x4dbfa1['hasOwnProperty']('createdAt')&&!$util['isString'](_0x4dbfa1['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x4dbfa1['data']&&_0x4dbfa1['hasOwnProperty']('data')&&!$util['isString'](_0x4dbfa1['data'])?'data:\x20string\x20expected':null!=_0x4dbfa1['hasComments']&&_0x4dbfa1['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x4dbfa1['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x4dbfa1['state']&&_0x4dbfa1['hasOwnProperty']('state')&&!$util['isString'](_0x4dbfa1['state'])?'state:\x20string\x20expected':null!=_0x4dbfa1['attributes']&&_0x4dbfa1['hasOwnProperty']('attributes')&&!$util['isString'](_0x4dbfa1['attributes'])?'attributes:\x20string\x20expected':null;},SuggestionDescriptor['fromObject']=function(object){if(object instanceof $root['SuggestionDescriptor'])return object;var _0x37f922=new $root['SuggestionDescriptor']();return null!=object['id']&&(_0x37f922['id']=String(object['id'])),null!=object['authorId']&&(_0x37f922['authorId']=String(object['authorId'])),null!=object['type']&&(_0x37f922['type']=String(object['type'])),null!=object['createdAt']&&(_0x37f922['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x37f922['data']=String(object['data'])),null!=object['hasComments']&&(_0x37f922['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x37f922['state']=String(object['state'])),null!=object['attributes']&&(_0x37f922['attributes']=String(object['attributes'])),_0x37f922;},SuggestionDescriptor['toObject']=function(_0x4317fb,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['authorId']='',object['type']='',object['createdAt']='',object['data']='',object['hasComments']=!0x1,object['state']='',object['attributes']=''),null!=_0x4317fb['id']&&_0x4317fb['hasOwnProperty']('id')&&(object['id']=_0x4317fb['id']),null!=_0x4317fb['authorId']&&_0x4317fb['hasOwnProperty']('authorId')&&(object['authorId']=_0x4317fb['authorId']),null!=_0x4317fb['type']&&_0x4317fb['hasOwnProperty']('type')&&(object['type']=_0x4317fb['type']),null!=_0x4317fb['createdAt']&&_0x4317fb['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x4317fb['createdAt']),null!=_0x4317fb['data']&&_0x4317fb['hasOwnProperty']('data')&&(object['data']=_0x4317fb['data']),null!=_0x4317fb['hasComments']&&_0x4317fb['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x4317fb['hasComments']),null!=_0x4317fb['state']&&_0x4317fb['hasOwnProperty']('state')&&(object['state']=_0x4317fb['state']),null!=_0x4317fb['attributes']&&_0x4317fb['hasOwnProperty']('attributes')&&(object['attributes']=_0x4317fb['attributes']),object;},SuggestionDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SuggestionDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SuggestionDescriptor';},SuggestionDescriptor;}()),$root['SessionsConnectResponse']=(function(){function SessionsConnectResponse(properties){if(this['sockets']=[],properties){for(var _0x4f786c=Object['keys'](properties),_0x29e113=0x0;_0x29e113<_0x4f786c['length'];++_0x29e113)null!=properties[_0x4f786c[_0x29e113]]&&(this[_0x4f786c[_0x29e113]]=properties[_0x4f786c[_0x29e113]]);}}return SessionsConnectResponse['prototype']['channel']='',SessionsConnectResponse['prototype']['sockets']=$util['emptyArray'],SessionsConnectResponse['create']=function(properties){return new SessionsConnectResponse(properties);},SessionsConnectResponse['encode']=function(_0x3e8b09,writer){if(writer||(writer=$Writer['create']()),null!=_0x3e8b09['channel']&&Object['hasOwnProperty']['call'](_0x3e8b09,'channel')&&writer['uint32'](0xa)['string'](_0x3e8b09['channel']),null!=_0x3e8b09['sockets']&&_0x3e8b09['sockets']['length']){for(var _0x2ca012=0x0;_0x2ca012<_0x3e8b09['sockets']['length'];++_0x2ca012)$root['SessionsSocketDescriptor']['encode'](_0x3e8b09['sockets'][_0x2ca012],writer['uint32'](0x12)['fork']())['ldelim']();}return writer;},SessionsConnectResponse['encodeDelimited']=function(_0x197acc,writer){return this['encode'](_0x197acc,writer)['ldelim']();},SessionsConnectResponse['decode']=function(_0x4777fa,length,_0x1a3ac3){_0x4777fa instanceof _0x53a355||(_0x4777fa=_0x53a355['create'](_0x4777fa));for(var _0x3dd393=void 0x0===length?_0x4777fa['len']:_0x4777fa['pos']+length,_0x488b1e=new $root['SessionsConnectResponse']();_0x4777fa['pos']<_0x3dd393;){var tag=_0x4777fa['uint32']();if(tag===_0x1a3ac3)break;switch(tag>>>0x3){case 0x1:_0x488b1e['channel']=_0x4777fa['string']();break;case 0x2:_0x488b1e['sockets']&&_0x488b1e['sockets']['length']||(_0x488b1e['sockets']=[]),_0x488b1e['sockets']['push']($root['SessionsSocketDescriptor']['decode'](_0x4777fa,_0x4777fa['uint32']()));break;default:_0x4777fa['skipType'](0x7&tag);}}return _0x488b1e;},SessionsConnectResponse['decodeDelimited']=function(_0x4b0a4a){return _0x4b0a4a instanceof _0x53a355||(_0x4b0a4a=new _0x53a355(_0x4b0a4a)),this['decode'](_0x4b0a4a,_0x4b0a4a['uint32']());},SessionsConnectResponse['verify']=function(_0x45f8d9){if('object'!=typeof _0x45f8d9||null===_0x45f8d9)return'object\x20expected';if(null!=_0x45f8d9['channel']&&_0x45f8d9['hasOwnProperty']('channel')&&!$util['isString'](_0x45f8d9['channel']))return'channel:\x20string\x20expected';if(null!=_0x45f8d9['sockets']&&_0x45f8d9['hasOwnProperty']('sockets')){if(!Array['isArray'](_0x45f8d9['sockets']))return'sockets:\x20array\x20expected';for(var _0x574b37=0x0;_0x574b37<_0x45f8d9['sockets']['length'];++_0x574b37){var _0x562430=$root['SessionsSocketDescriptor']['verify'](_0x45f8d9['sockets'][_0x574b37]);if(_0x562430)return'sockets.'+_0x562430;}}return null;},SessionsConnectResponse['fromObject']=function(object){if(object instanceof $root['SessionsConnectResponse'])return object;var _0x2d0687=new $root['SessionsConnectResponse']();if(null!=object['channel']&&(_0x2d0687['channel']=String(object['channel'])),object['sockets']){if(!Array['isArray'](object['sockets']))throw TypeError('.SessionsConnectResponse.sockets:\x20array\x20expected');_0x2d0687['sockets']=[];for(var _0x3f6afd=0x0;_0x3f6afd<object['sockets']['length'];++_0x3f6afd){if('object'!=typeof object['sockets'][_0x3f6afd])throw TypeError('.SessionsConnectResponse.sockets:\x20object\x20expected');_0x2d0687['sockets'][_0x3f6afd]=$root['SessionsSocketDescriptor']['fromObject'](object['sockets'][_0x3f6afd]);}}return _0x2d0687;},SessionsConnectResponse['toObject']=function(_0x49717b,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['sockets']=[]),options['defaults']&&(object['channel']=''),null!=_0x49717b['channel']&&_0x49717b['hasOwnProperty']('channel')&&(object['channel']=_0x49717b['channel']),_0x49717b['sockets']&&_0x49717b['sockets']['length']){object['sockets']=[];for(var _0x483175=0x0;_0x483175<_0x49717b['sockets']['length'];++_0x483175)object['sockets'][_0x483175]=$root['SessionsSocketDescriptor']['toObject'](_0x49717b['sockets'][_0x483175],options);}return object;},SessionsConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SessionsConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SessionsConnectResponse';},SessionsConnectResponse;}()),$root['SocketDisconnectMessage']=(function(){function SocketDisconnectMessage(properties){if(properties){for(var _0x1091a3=Object['keys'](properties),_0x27dafc=0x0;_0x27dafc<_0x1091a3['length'];++_0x27dafc)null!=properties[_0x1091a3[_0x27dafc]]&&(this[_0x1091a3[_0x27dafc]]=properties[_0x1091a3[_0x27dafc]]);}}return SocketDisconnectMessage['prototype']['id']='',SocketDisconnectMessage['create']=function(properties){return new SocketDisconnectMessage(properties);},SocketDisconnectMessage['encode']=function(_0x42ed6a,writer){return writer||(writer=$Writer['create']()),null!=_0x42ed6a['id']&&Object['hasOwnProperty']['call'](_0x42ed6a,'id')&&writer['uint32'](0xa)['string'](_0x42ed6a['id']),writer;},SocketDisconnectMessage['encodeDelimited']=function(_0x99cbae,writer){return this['encode'](_0x99cbae,writer)['ldelim']();},SocketDisconnectMessage['decode']=function(_0x552d49,length,_0x5b7da8){_0x552d49 instanceof _0x53a355||(_0x552d49=_0x53a355['create'](_0x552d49));for(var _0x14c220=void 0x0===length?_0x552d49['len']:_0x552d49['pos']+length,_0x20ba2e=new $root['SocketDisconnectMessage']();_0x552d49['pos']<_0x14c220;){var tag=_0x552d49['uint32']();if(tag===_0x5b7da8)break;if(tag>>>0x3==0x1)_0x20ba2e['id']=_0x552d49['string']();else _0x552d49['skipType'](0x7&tag);}return _0x20ba2e;},SocketDisconnectMessage['decodeDelimited']=function(_0x490500){return _0x490500 instanceof _0x53a355||(_0x490500=new _0x53a355(_0x490500)),this['decode'](_0x490500,_0x490500['uint32']());},SocketDisconnectMessage['verify']=function(_0xbf4673){return'object'!=typeof _0xbf4673||null===_0xbf4673?'object\x20expected':null!=_0xbf4673['id']&&_0xbf4673['hasOwnProperty']('id')&&!$util['isString'](_0xbf4673['id'])?'id:\x20string\x20expected':null;},SocketDisconnectMessage['fromObject']=function(object){if(object instanceof $root['SocketDisconnectMessage'])return object;var _0x2c2dcd=new $root['SocketDisconnectMessage']();return null!=object['id']&&(_0x2c2dcd['id']=String(object['id'])),_0x2c2dcd;},SocketDisconnectMessage['toObject']=function(_0x1e4a61,options){options||(options={});var object={};return options['defaults']&&(object['id']=''),null!=_0x1e4a61['id']&&_0x1e4a61['hasOwnProperty']('id')&&(object['id']=_0x1e4a61['id']),object;},SocketDisconnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SocketDisconnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SocketDisconnectMessage';},SocketDisconnectMessage;}()),$root['SocketConnectMessage']=(function(){function SocketConnectMessage(properties){if(this['permissions']=[],properties){for(var _0x38560e=Object['keys'](properties),_0x57bb7f=0x0;_0x57bb7f<_0x38560e['length'];++_0x57bb7f)null!=properties[_0x38560e[_0x57bb7f]]&&(this[_0x38560e[_0x57bb7f]]=properties[_0x38560e[_0x57bb7f]]);}}return SocketConnectMessage['prototype']['id']='',SocketConnectMessage['prototype']['userId']='',SocketConnectMessage['prototype']['role']='',SocketConnectMessage['prototype']['permissions']=$util['emptyArray'],SocketConnectMessage['create']=function(properties){return new SocketConnectMessage(properties);},SocketConnectMessage['encode']=function(_0x426481,writer){if(writer||(writer=$Writer['create']()),null!=_0x426481['id']&&Object['hasOwnProperty']['call'](_0x426481,'id')&&writer['uint32'](0xa)['string'](_0x426481['id']),null!=_0x426481['userId']&&Object['hasOwnProperty']['call'](_0x426481,'userId')&&writer['uint32'](0x12)['string'](_0x426481['userId']),null!=_0x426481['role']&&Object['hasOwnProperty']['call'](_0x426481,'role')&&writer['uint32'](0x1a)['string'](_0x426481['role']),null!=_0x426481['permissions']&&_0x426481['permissions']['length']){for(var _0x81c5ec=0x0;_0x81c5ec<_0x426481['permissions']['length'];++_0x81c5ec)writer['uint32'](0x22)['string'](_0x426481['permissions'][_0x81c5ec]);}return writer;},SocketConnectMessage['encodeDelimited']=function(_0x48c343,writer){return this['encode'](_0x48c343,writer)['ldelim']();},SocketConnectMessage['decode']=function(_0x12c84f,length,_0x5ba56c){_0x12c84f instanceof _0x53a355||(_0x12c84f=_0x53a355['create'](_0x12c84f));for(var _0x529491=void 0x0===length?_0x12c84f['len']:_0x12c84f['pos']+length,_0x3f185e=new $root['SocketConnectMessage']();_0x12c84f['pos']<_0x529491;){var tag=_0x12c84f['uint32']();if(tag===_0x5ba56c)break;switch(tag>>>0x3){case 0x1:_0x3f185e['id']=_0x12c84f['string']();break;case 0x2:_0x3f185e['userId']=_0x12c84f['string']();break;case 0x3:_0x3f185e['role']=_0x12c84f['string']();break;case 0x4:_0x3f185e['permissions']&&_0x3f185e['permissions']['length']||(_0x3f185e['permissions']=[]),_0x3f185e['permissions']['push'](_0x12c84f['string']());break;default:_0x12c84f['skipType'](0x7&tag);}}return _0x3f185e;},SocketConnectMessage['decodeDelimited']=function(_0x2cab32){return _0x2cab32 instanceof _0x53a355||(_0x2cab32=new _0x53a355(_0x2cab32)),this['decode'](_0x2cab32,_0x2cab32['uint32']());},SocketConnectMessage['verify']=function(_0x3324d8){if('object'!=typeof _0x3324d8||null===_0x3324d8)return'object\x20expected';if(null!=_0x3324d8['id']&&_0x3324d8['hasOwnProperty']('id')&&!$util['isString'](_0x3324d8['id']))return'id:\x20string\x20expected';if(null!=_0x3324d8['userId']&&_0x3324d8['hasOwnProperty']('userId')&&!$util['isString'](_0x3324d8['userId']))return'userId:\x20string\x20expected';if(null!=_0x3324d8['role']&&_0x3324d8['hasOwnProperty']('role')&&!$util['isString'](_0x3324d8['role']))return'role:\x20string\x20expected';if(null!=_0x3324d8['permissions']&&_0x3324d8['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x3324d8['permissions']))return'permissions:\x20array\x20expected';for(var _0x31261f=0x0;_0x31261f<_0x3324d8['permissions']['length'];++_0x31261f)if(!$util['isString'](_0x3324d8['permissions'][_0x31261f]))return'permissions:\x20string[]\x20expected';}return null;},SocketConnectMessage['fromObject']=function(object){if(object instanceof $root['SocketConnectMessage'])return object;var _0x2c126d=new $root['SocketConnectMessage']();if(null!=object['id']&&(_0x2c126d['id']=String(object['id'])),null!=object['userId']&&(_0x2c126d['userId']=String(object['userId'])),null!=object['role']&&(_0x2c126d['role']=String(object['role'])),object['permissions']){if(!Array['isArray'](object['permissions']))throw TypeError('.SocketConnectMessage.permissions:\x20array\x20expected');_0x2c126d['permissions']=[];for(var _0x4efde1=0x0;_0x4efde1<object['permissions']['length'];++_0x4efde1)_0x2c126d['permissions'][_0x4efde1]=String(object['permissions'][_0x4efde1]);}return _0x2c126d;},SocketConnectMessage['toObject']=function(_0x25fa98,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['permissions']=[]),options['defaults']&&(object['id']='',object['userId']='',object['role']=''),null!=_0x25fa98['id']&&_0x25fa98['hasOwnProperty']('id')&&(object['id']=_0x25fa98['id']),null!=_0x25fa98['userId']&&_0x25fa98['hasOwnProperty']('userId')&&(object['userId']=_0x25fa98['userId']),null!=_0x25fa98['role']&&_0x25fa98['hasOwnProperty']('role')&&(object['role']=_0x25fa98['role']),_0x25fa98['permissions']&&_0x25fa98['permissions']['length']){object['permissions']=[];for(var _0x561f33=0x0;_0x561f33<_0x25fa98['permissions']['length'];++_0x561f33)object['permissions'][_0x561f33]=_0x25fa98['permissions'][_0x561f33];}return object;},SocketConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SocketConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SocketConnectMessage';},SocketConnectMessage;}()),$root['SessionsConnectMessage']=(function(){function SessionsConnectMessage(properties){if(properties){for(var _0x2d9887=Object['keys'](properties),_0x540224=0x0;_0x540224<_0x2d9887['length'];++_0x540224)null!=properties[_0x2d9887[_0x540224]]&&(this[_0x2d9887[_0x540224]]=properties[_0x2d9887[_0x540224]]);}}return SessionsConnectMessage['prototype']['id']='',SessionsConnectMessage['prototype']['sessionType']=0x0,SessionsConnectMessage['create']=function(properties){return new SessionsConnectMessage(properties);},SessionsConnectMessage['encode']=function(_0xe5526d,writer){return writer||(writer=$Writer['create']()),null!=_0xe5526d['id']&&Object['hasOwnProperty']['call'](_0xe5526d,'id')&&writer['uint32'](0xa)['string'](_0xe5526d['id']),null!=_0xe5526d['sessionType']&&Object['hasOwnProperty']['call'](_0xe5526d,'sessionType')&&writer['uint32'](0x10)['uint32'](_0xe5526d['sessionType']),writer;},SessionsConnectMessage['encodeDelimited']=function(_0x3e3393,writer){return this['encode'](_0x3e3393,writer)['ldelim']();},SessionsConnectMessage['decode']=function(_0x5ada24,length,_0x4938fe){_0x5ada24 instanceof _0x53a355||(_0x5ada24=_0x53a355['create'](_0x5ada24));for(var _0x219ee7=void 0x0===length?_0x5ada24['len']:_0x5ada24['pos']+length,_0x17d621=new $root['SessionsConnectMessage']();_0x5ada24['pos']<_0x219ee7;){var tag=_0x5ada24['uint32']();if(tag===_0x4938fe)break;switch(tag>>>0x3){case 0x1:_0x17d621['id']=_0x5ada24['string']();break;case 0x2:_0x17d621['sessionType']=_0x5ada24['uint32']();break;default:_0x5ada24['skipType'](0x7&tag);}}return _0x17d621;},SessionsConnectMessage['decodeDelimited']=function(_0x42aa3a){return _0x42aa3a instanceof _0x53a355||(_0x42aa3a=new _0x53a355(_0x42aa3a)),this['decode'](_0x42aa3a,_0x42aa3a['uint32']());},SessionsConnectMessage['verify']=function(_0x3ec1be){return'object'!=typeof _0x3ec1be||null===_0x3ec1be?'object\x20expected':null!=_0x3ec1be['id']&&_0x3ec1be['hasOwnProperty']('id')&&!$util['isString'](_0x3ec1be['id'])?'id:\x20string\x20expected':null!=_0x3ec1be['sessionType']&&_0x3ec1be['hasOwnProperty']('sessionType')&&!$util['isInteger'](_0x3ec1be['sessionType'])?'sessionType:\x20integer\x20expected':null;},SessionsConnectMessage['fromObject']=function(object){if(object instanceof $root['SessionsConnectMessage'])return object;var _0x3ab042=new $root['SessionsConnectMessage']();return null!=object['id']&&(_0x3ab042['id']=String(object['id'])),null!=object['sessionType']&&(_0x3ab042['sessionType']=object['sessionType']>>>0x0),_0x3ab042;},SessionsConnectMessage['toObject']=function(_0x13400d,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['sessionType']=0x0),null!=_0x13400d['id']&&_0x13400d['hasOwnProperty']('id')&&(object['id']=_0x13400d['id']),null!=_0x13400d['sessionType']&&_0x13400d['hasOwnProperty']('sessionType')&&(object['sessionType']=_0x13400d['sessionType']),object;},SessionsConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SessionsConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SessionsConnectMessage';},SessionsConnectMessage;}()),$root['SessionsSocketDescriptor']=(function(){function SessionsSocketDescriptor(properties){if(this['permissions']=[],properties){for(var _0x3a30cd=Object['keys'](properties),_0x4d8292=0x0;_0x4d8292<_0x3a30cd['length'];++_0x4d8292)null!=properties[_0x3a30cd[_0x4d8292]]&&(this[_0x3a30cd[_0x4d8292]]=properties[_0x3a30cd[_0x4d8292]]);}}return SessionsSocketDescriptor['prototype']['session']='',SessionsSocketDescriptor['prototype']['user']='',SessionsSocketDescriptor['prototype']['role']='',SessionsSocketDescriptor['prototype']['permissions']=$util['emptyArray'],SessionsSocketDescriptor['create']=function(properties){return new SessionsSocketDescriptor(properties);},SessionsSocketDescriptor['encode']=function(_0x10734b,writer){if(writer||(writer=$Writer['create']()),null!=_0x10734b['session']&&Object['hasOwnProperty']['call'](_0x10734b,'session')&&writer['uint32'](0xa)['string'](_0x10734b['session']),null!=_0x10734b['user']&&Object['hasOwnProperty']['call'](_0x10734b,'user')&&writer['uint32'](0x12)['string'](_0x10734b['user']),null!=_0x10734b['role']&&Object['hasOwnProperty']['call'](_0x10734b,'role')&&writer['uint32'](0x1a)['string'](_0x10734b['role']),null!=_0x10734b['permissions']&&_0x10734b['permissions']['length']){for(var _0x4f4117=0x0;_0x4f4117<_0x10734b['permissions']['length'];++_0x4f4117)writer['uint32'](0x22)['string'](_0x10734b['permissions'][_0x4f4117]);}return writer;},SessionsSocketDescriptor['encodeDelimited']=function(_0x17438c,writer){return this['encode'](_0x17438c,writer)['ldelim']();},SessionsSocketDescriptor['decode']=function(_0x25cf4d,length,_0x4a7827){_0x25cf4d instanceof _0x53a355||(_0x25cf4d=_0x53a355['create'](_0x25cf4d));for(var _0x2c9501=void 0x0===length?_0x25cf4d['len']:_0x25cf4d['pos']+length,_0x2f59ba=new $root['SessionsSocketDescriptor']();_0x25cf4d['pos']<_0x2c9501;){var tag=_0x25cf4d['uint32']();if(tag===_0x4a7827)break;switch(tag>>>0x3){case 0x1:_0x2f59ba['session']=_0x25cf4d['string']();break;case 0x2:_0x2f59ba['user']=_0x25cf4d['string']();break;case 0x3:_0x2f59ba['role']=_0x25cf4d['string']();break;case 0x4:_0x2f59ba['permissions']&&_0x2f59ba['permissions']['length']||(_0x2f59ba['permissions']=[]),_0x2f59ba['permissions']['push'](_0x25cf4d['string']());break;default:_0x25cf4d['skipType'](0x7&tag);}}return _0x2f59ba;},SessionsSocketDescriptor['decodeDelimited']=function(_0x4e9da5){return _0x4e9da5 instanceof _0x53a355||(_0x4e9da5=new _0x53a355(_0x4e9da5)),this['decode'](_0x4e9da5,_0x4e9da5['uint32']());},SessionsSocketDescriptor['verify']=function(_0x316fea){if('object'!=typeof _0x316fea||null===_0x316fea)return'object\x20expected';if(null!=_0x316fea['session']&&_0x316fea['hasOwnProperty']('session')&&!$util['isString'](_0x316fea['session']))return'session:\x20string\x20expected';if(null!=_0x316fea['user']&&_0x316fea['hasOwnProperty']('user')&&!$util['isString'](_0x316fea['user']))return'user:\x20string\x20expected';if(null!=_0x316fea['role']&&_0x316fea['hasOwnProperty']('role')&&!$util['isString'](_0x316fea['role']))return'role:\x20string\x20expected';if(null!=_0x316fea['permissions']&&_0x316fea['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x316fea['permissions']))return'permissions:\x20array\x20expected';for(var _0x1e2ba6=0x0;_0x1e2ba6<_0x316fea['permissions']['length'];++_0x1e2ba6)if(!$util['isString'](_0x316fea['permissions'][_0x1e2ba6]))return'permissions:\x20string[]\x20expected';}return null;},SessionsSocketDescriptor['fromObject']=function(object){if(object instanceof $root['SessionsSocketDescriptor'])return object;var _0x3a2198=new $root['SessionsSocketDescriptor']();if(null!=object['session']&&(_0x3a2198['session']=String(object['session'])),null!=object['user']&&(_0x3a2198['user']=String(object['user'])),null!=object['role']&&(_0x3a2198['role']=String(object['role'])),object['permissions']){if(!Array['isArray'](object['permissions']))throw TypeError('.SessionsSocketDescriptor.permissions:\x20array\x20expected');_0x3a2198['permissions']=[];for(var _0x4485c7=0x0;_0x4485c7<object['permissions']['length'];++_0x4485c7)_0x3a2198['permissions'][_0x4485c7]=String(object['permissions'][_0x4485c7]);}return _0x3a2198;},SessionsSocketDescriptor['toObject']=function(_0x3d8510,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['permissions']=[]),options['defaults']&&(object['session']='',object['user']='',object['role']=''),null!=_0x3d8510['session']&&_0x3d8510['hasOwnProperty']('session')&&(object['session']=_0x3d8510['session']),null!=_0x3d8510['user']&&_0x3d8510['hasOwnProperty']('user')&&(object['user']=_0x3d8510['user']),null!=_0x3d8510['role']&&_0x3d8510['hasOwnProperty']('role')&&(object['role']=_0x3d8510['role']),_0x3d8510['permissions']&&_0x3d8510['permissions']['length']){object['permissions']=[];for(var _0x36c5d3=0x0;_0x36c5d3<_0x3d8510['permissions']['length'];++_0x36c5d3)object['permissions'][_0x36c5d3]=_0x3d8510['permissions'][_0x36c5d3];}return object;},SessionsSocketDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SessionsSocketDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SessionsSocketDescriptor';},SessionsSocketDescriptor;}()),$root['RevisionHistoryUpdateRevisionsResponse']=(function(){function RevisionHistoryUpdateRevisionsResponse(properties){if(properties){for(var _0x587662=Object['keys'](properties),_0xaa994d=0x0;_0xaa994d<_0x587662['length'];++_0xaa994d)null!=properties[_0x587662[_0xaa994d]]&&(this[_0x587662[_0xaa994d]]=properties[_0x587662[_0xaa994d]]);}}return RevisionHistoryUpdateRevisionsResponse['prototype']['requestId']=0x0,RevisionHistoryUpdateRevisionsResponse['create']=function(properties){return new RevisionHistoryUpdateRevisionsResponse(properties);},RevisionHistoryUpdateRevisionsResponse['encode']=function(_0x505963,writer){return writer||(writer=$Writer['create']()),null!=_0x505963['requestId']&&Object['hasOwnProperty']['call'](_0x505963,'requestId')&&writer['uint32'](0x8)['uint32'](_0x505963['requestId']),writer;},RevisionHistoryUpdateRevisionsResponse['encodeDelimited']=function(_0x3141ae,writer){return this['encode'](_0x3141ae,writer)['ldelim']();},RevisionHistoryUpdateRevisionsResponse['decode']=function(_0x197c6c,length,_0x2b5ab7){_0x197c6c instanceof _0x53a355||(_0x197c6c=_0x53a355['create'](_0x197c6c));for(var _0x8da34=void 0x0===length?_0x197c6c['len']:_0x197c6c['pos']+length,_0x401e59=new $root['RevisionHistoryUpdateRevisionsResponse']();_0x197c6c['pos']<_0x8da34;){var tag=_0x197c6c['uint32']();if(tag===_0x2b5ab7)break;if(tag>>>0x3==0x1)_0x401e59['requestId']=_0x197c6c['uint32']();else _0x197c6c['skipType'](0x7&tag);}return _0x401e59;},RevisionHistoryUpdateRevisionsResponse['decodeDelimited']=function(_0x780814){return _0x780814 instanceof _0x53a355||(_0x780814=new _0x53a355(_0x780814)),this['decode'](_0x780814,_0x780814['uint32']());},RevisionHistoryUpdateRevisionsResponse['verify']=function(_0x2b5d3e){return'object'!=typeof _0x2b5d3e||null===_0x2b5d3e?'object\x20expected':null!=_0x2b5d3e['requestId']&&_0x2b5d3e['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x2b5d3e['requestId'])?'requestId:\x20integer\x20expected':null;},RevisionHistoryUpdateRevisionsResponse['fromObject']=function(object){if(object instanceof $root['RevisionHistoryUpdateRevisionsResponse'])return object;var _0x4630cd=new $root['RevisionHistoryUpdateRevisionsResponse']();return null!=object['requestId']&&(_0x4630cd['requestId']=object['requestId']>>>0x0),_0x4630cd;},RevisionHistoryUpdateRevisionsResponse['toObject']=function(_0x2fd1e9,options){options||(options={});var object={};return options['defaults']&&(object['requestId']=0x0),null!=_0x2fd1e9['requestId']&&_0x2fd1e9['hasOwnProperty']('requestId')&&(object['requestId']=_0x2fd1e9['requestId']),object;},RevisionHistoryUpdateRevisionsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryUpdateRevisionsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryUpdateRevisionsResponse';},RevisionHistoryUpdateRevisionsResponse;}()),$root['RevisionHistoryGetRevisionResponse']=(function(){function RevisionHistoryGetRevisionResponse(properties){if(properties){for(var _0x54e693=Object['keys'](properties),_0x37ade2=0x0;_0x37ade2<_0x54e693['length'];++_0x37ade2)null!=properties[_0x54e693[_0x37ade2]]&&(this[_0x54e693[_0x37ade2]]=properties[_0x54e693[_0x37ade2]]);}}return RevisionHistoryGetRevisionResponse['prototype']['revisionId']='',RevisionHistoryGetRevisionResponse['prototype']['name']='',RevisionHistoryGetRevisionResponse['prototype']['creatorId']='',RevisionHistoryGetRevisionResponse['prototype']['authorsIds']='',RevisionHistoryGetRevisionResponse['prototype']['diffData']='',RevisionHistoryGetRevisionResponse['prototype']['createdAt']='',RevisionHistoryGetRevisionResponse['prototype']['attributes']='',RevisionHistoryGetRevisionResponse['prototype']['toVersion']=0x0,RevisionHistoryGetRevisionResponse['prototype']['fromVersion']=0x0,RevisionHistoryGetRevisionResponse['prototype']['isEmptyCurrent']=!0x1,RevisionHistoryGetRevisionResponse['create']=function(properties){return new RevisionHistoryGetRevisionResponse(properties);},RevisionHistoryGetRevisionResponse['encode']=function(_0x498d81,writer){return writer||(writer=$Writer['create']()),null!=_0x498d81['revisionId']&&Object['hasOwnProperty']['call'](_0x498d81,'revisionId')&&writer['uint32'](0xa)['string'](_0x498d81['revisionId']),null!=_0x498d81['name']&&Object['hasOwnProperty']['call'](_0x498d81,'name')&&writer['uint32'](0x12)['string'](_0x498d81['name']),null!=_0x498d81['creatorId']&&Object['hasOwnProperty']['call'](_0x498d81,'creatorId')&&writer['uint32'](0x1a)['string'](_0x498d81['creatorId']),null!=_0x498d81['authorsIds']&&Object['hasOwnProperty']['call'](_0x498d81,'authorsIds')&&writer['uint32'](0x22)['string'](_0x498d81['authorsIds']),null!=_0x498d81['diffData']&&Object['hasOwnProperty']['call'](_0x498d81,'diffData')&&writer['uint32'](0x2a)['string'](_0x498d81['diffData']),null!=_0x498d81['createdAt']&&Object['hasOwnProperty']['call'](_0x498d81,'createdAt')&&writer['uint32'](0x32)['string'](_0x498d81['createdAt']),null!=_0x498d81['attributes']&&Object['hasOwnProperty']['call'](_0x498d81,'attributes')&&writer['uint32'](0x3a)['string'](_0x498d81['attributes']),null!=_0x498d81['toVersion']&&Object['hasOwnProperty']['call'](_0x498d81,'toVersion')&&writer['uint32'](0x40)['uint32'](_0x498d81['toVersion']),null!=_0x498d81['fromVersion']&&Object['hasOwnProperty']['call'](_0x498d81,'fromVersion')&&writer['uint32'](0x48)['uint32'](_0x498d81['fromVersion']),null!=_0x498d81['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x498d81,'isEmptyCurrent')&&writer['uint32'](0x50)['bool'](_0x498d81['isEmptyCurrent']),writer;},RevisionHistoryGetRevisionResponse['encodeDelimited']=function(_0x36fdba,writer){return this['encode'](_0x36fdba,writer)['ldelim']();},RevisionHistoryGetRevisionResponse['decode']=function(_0x175e80,length,_0x59c61b){_0x175e80 instanceof _0x53a355||(_0x175e80=_0x53a355['create'](_0x175e80));for(var _0x462e21=void 0x0===length?_0x175e80['len']:_0x175e80['pos']+length,_0x42cfba=new $root['RevisionHistoryGetRevisionResponse']();_0x175e80['pos']<_0x462e21;){var tag=_0x175e80['uint32']();if(tag===_0x59c61b)break;switch(tag>>>0x3){case 0x1:_0x42cfba['revisionId']=_0x175e80['string']();break;case 0x2:_0x42cfba['name']=_0x175e80['string']();break;case 0x3:_0x42cfba['creatorId']=_0x175e80['string']();break;case 0x4:_0x42cfba['authorsIds']=_0x175e80['string']();break;case 0x5:_0x42cfba['diffData']=_0x175e80['string']();break;case 0x6:_0x42cfba['createdAt']=_0x175e80['string']();break;case 0x7:_0x42cfba['attributes']=_0x175e80['string']();break;case 0x8:_0x42cfba['toVersion']=_0x175e80['uint32']();break;case 0x9:_0x42cfba['fromVersion']=_0x175e80['uint32']();break;case 0xa:_0x42cfba['isEmptyCurrent']=_0x175e80['bool']();break;default:_0x175e80['skipType'](0x7&tag);}}return _0x42cfba;},RevisionHistoryGetRevisionResponse['decodeDelimited']=function(_0x2387cd){return _0x2387cd instanceof _0x53a355||(_0x2387cd=new _0x53a355(_0x2387cd)),this['decode'](_0x2387cd,_0x2387cd['uint32']());},RevisionHistoryGetRevisionResponse['verify']=function(_0x480edd){return'object'!=typeof _0x480edd||null===_0x480edd?'object\x20expected':null!=_0x480edd['revisionId']&&_0x480edd['hasOwnProperty']('revisionId')&&!$util['isString'](_0x480edd['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x480edd['name']&&_0x480edd['hasOwnProperty']('name')&&!$util['isString'](_0x480edd['name'])?'name:\x20string\x20expected':null!=_0x480edd['creatorId']&&_0x480edd['hasOwnProperty']('creatorId')&&!$util['isString'](_0x480edd['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x480edd['authorsIds']&&_0x480edd['hasOwnProperty']('authorsIds')&&!$util['isString'](_0x480edd['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x480edd['diffData']&&_0x480edd['hasOwnProperty']('diffData')&&!$util['isString'](_0x480edd['diffData'])?'diffData:\x20string\x20expected':null!=_0x480edd['createdAt']&&_0x480edd['hasOwnProperty']('createdAt')&&!$util['isString'](_0x480edd['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x480edd['attributes']&&_0x480edd['hasOwnProperty']('attributes')&&!$util['isString'](_0x480edd['attributes'])?'attributes:\x20string\x20expected':null!=_0x480edd['toVersion']&&_0x480edd['hasOwnProperty']('toVersion')&&!$util['isInteger'](_0x480edd['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x480edd['fromVersion']&&_0x480edd['hasOwnProperty']('fromVersion')&&!$util['isInteger'](_0x480edd['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x480edd['isEmptyCurrent']&&_0x480edd['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x480edd['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},RevisionHistoryGetRevisionResponse['fromObject']=function(object){if(object instanceof $root['RevisionHistoryGetRevisionResponse'])return object;var _0x16c9c7=new $root['RevisionHistoryGetRevisionResponse']();return null!=object['revisionId']&&(_0x16c9c7['revisionId']=String(object['revisionId'])),null!=object['name']&&(_0x16c9c7['name']=String(object['name'])),null!=object['creatorId']&&(_0x16c9c7['creatorId']=String(object['creatorId'])),null!=object['authorsIds']&&(_0x16c9c7['authorsIds']=String(object['authorsIds'])),null!=object['diffData']&&(_0x16c9c7['diffData']=String(object['diffData'])),null!=object['createdAt']&&(_0x16c9c7['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x16c9c7['attributes']=String(object['attributes'])),null!=object['toVersion']&&(_0x16c9c7['toVersion']=object['toVersion']>>>0x0),null!=object['fromVersion']&&(_0x16c9c7['fromVersion']=object['fromVersion']>>>0x0),null!=object['isEmptyCurrent']&&(_0x16c9c7['isEmptyCurrent']=Boolean(object['isEmptyCurrent'])),_0x16c9c7;},RevisionHistoryGetRevisionResponse['toObject']=function(_0x6dbaac,options){options||(options={});var object={};return options['defaults']&&(object['revisionId']='',object['name']='',object['creatorId']='',object['authorsIds']='',object['diffData']='',object['createdAt']='',object['attributes']='',object['toVersion']=0x0,object['fromVersion']=0x0,object['isEmptyCurrent']=!0x1),null!=_0x6dbaac['revisionId']&&_0x6dbaac['hasOwnProperty']('revisionId')&&(object['revisionId']=_0x6dbaac['revisionId']),null!=_0x6dbaac['name']&&_0x6dbaac['hasOwnProperty']('name')&&(object['name']=_0x6dbaac['name']),null!=_0x6dbaac['creatorId']&&_0x6dbaac['hasOwnProperty']('creatorId')&&(object['creatorId']=_0x6dbaac['creatorId']),null!=_0x6dbaac['authorsIds']&&_0x6dbaac['hasOwnProperty']('authorsIds')&&(object['authorsIds']=_0x6dbaac['authorsIds']),null!=_0x6dbaac['diffData']&&_0x6dbaac['hasOwnProperty']('diffData')&&(object['diffData']=_0x6dbaac['diffData']),null!=_0x6dbaac['createdAt']&&_0x6dbaac['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x6dbaac['createdAt']),null!=_0x6dbaac['attributes']&&_0x6dbaac['hasOwnProperty']('attributes')&&(object['attributes']=_0x6dbaac['attributes']),null!=_0x6dbaac['toVersion']&&_0x6dbaac['hasOwnProperty']('toVersion')&&(object['toVersion']=_0x6dbaac['toVersion']),null!=_0x6dbaac['fromVersion']&&_0x6dbaac['hasOwnProperty']('fromVersion')&&(object['fromVersion']=_0x6dbaac['fromVersion']),null!=_0x6dbaac['isEmptyCurrent']&&_0x6dbaac['hasOwnProperty']('isEmptyCurrent')&&(object['isEmptyCurrent']=_0x6dbaac['isEmptyCurrent']),object;},RevisionHistoryGetRevisionResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryGetRevisionResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryGetRevisionResponse';},RevisionHistoryGetRevisionResponse;}()),$root['RevisionHistoryConnectResponse']=(function(){function RevisionHistoryConnectResponse(properties){if(this['revisions']=[],properties){for(var _0x54b1a1=Object['keys'](properties),_0x1a1185=0x0;_0x1a1185<_0x54b1a1['length'];++_0x1a1185)null!=properties[_0x54b1a1[_0x1a1185]]&&(this[_0x54b1a1[_0x1a1185]]=properties[_0x54b1a1[_0x1a1185]]);}}return RevisionHistoryConnectResponse['prototype']['channel']='',RevisionHistoryConnectResponse['prototype']['requestId']=0x0,RevisionHistoryConnectResponse['prototype']['revisions']=$util['emptyArray'],RevisionHistoryConnectResponse['create']=function(properties){return new RevisionHistoryConnectResponse(properties);},RevisionHistoryConnectResponse['encode']=function(_0x235be3,writer){if(writer||(writer=$Writer['create']()),null!=_0x235be3['channel']&&Object['hasOwnProperty']['call'](_0x235be3,'channel')&&writer['uint32'](0xa)['string'](_0x235be3['channel']),null!=_0x235be3['requestId']&&Object['hasOwnProperty']['call'](_0x235be3,'requestId')&&writer['uint32'](0x10)['uint32'](_0x235be3['requestId']),null!=_0x235be3['revisions']&&_0x235be3['revisions']['length']){for(var _0x57e1c1=0x0;_0x57e1c1<_0x235be3['revisions']['length'];++_0x57e1c1)$root['RevisionDescriptor']['encode'](_0x235be3['revisions'][_0x57e1c1],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},RevisionHistoryConnectResponse['encodeDelimited']=function(_0x132987,writer){return this['encode'](_0x132987,writer)['ldelim']();},RevisionHistoryConnectResponse['decode']=function(_0x1ddf07,length,_0x413bc8){_0x1ddf07 instanceof _0x53a355||(_0x1ddf07=_0x53a355['create'](_0x1ddf07));for(var _0x4e7ddd=void 0x0===length?_0x1ddf07['len']:_0x1ddf07['pos']+length,_0x38a778=new $root['RevisionHistoryConnectResponse']();_0x1ddf07['pos']<_0x4e7ddd;){var tag=_0x1ddf07['uint32']();if(tag===_0x413bc8)break;switch(tag>>>0x3){case 0x1:_0x38a778['channel']=_0x1ddf07['string']();break;case 0x2:_0x38a778['requestId']=_0x1ddf07['uint32']();break;case 0x3:_0x38a778['revisions']&&_0x38a778['revisions']['length']||(_0x38a778['revisions']=[]),_0x38a778['revisions']['push']($root['RevisionDescriptor']['decode'](_0x1ddf07,_0x1ddf07['uint32']()));break;default:_0x1ddf07['skipType'](0x7&tag);}}return _0x38a778;},RevisionHistoryConnectResponse['decodeDelimited']=function(_0x51b790){return _0x51b790 instanceof _0x53a355||(_0x51b790=new _0x53a355(_0x51b790)),this['decode'](_0x51b790,_0x51b790['uint32']());},RevisionHistoryConnectResponse['verify']=function(_0xfcda83){if('object'!=typeof _0xfcda83||null===_0xfcda83)return'object\x20expected';if(null!=_0xfcda83['channel']&&_0xfcda83['hasOwnProperty']('channel')&&!$util['isString'](_0xfcda83['channel']))return'channel:\x20string\x20expected';if(null!=_0xfcda83['requestId']&&_0xfcda83['hasOwnProperty']('requestId')&&!$util['isInteger'](_0xfcda83['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0xfcda83['revisions']&&_0xfcda83['hasOwnProperty']('revisions')){if(!Array['isArray'](_0xfcda83['revisions']))return'revisions:\x20array\x20expected';for(var _0x1a935c=0x0;_0x1a935c<_0xfcda83['revisions']['length'];++_0x1a935c){var _0x303002=$root['RevisionDescriptor']['verify'](_0xfcda83['revisions'][_0x1a935c]);if(_0x303002)return'revisions.'+_0x303002;}}return null;},RevisionHistoryConnectResponse['fromObject']=function(object){if(object instanceof $root['RevisionHistoryConnectResponse'])return object;var _0x226275=new $root['RevisionHistoryConnectResponse']();if(null!=object['channel']&&(_0x226275['channel']=String(object['channel'])),null!=object['requestId']&&(_0x226275['requestId']=object['requestId']>>>0x0),object['revisions']){if(!Array['isArray'](object['revisions']))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20array\x20expected');_0x226275['revisions']=[];for(var _0x570c97=0x0;_0x570c97<object['revisions']['length'];++_0x570c97){if('object'!=typeof object['revisions'][_0x570c97])throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20object\x20expected');_0x226275['revisions'][_0x570c97]=$root['RevisionDescriptor']['fromObject'](object['revisions'][_0x570c97]);}}return _0x226275;},RevisionHistoryConnectResponse['toObject']=function(_0x318e4d,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['revisions']=[]),options['defaults']&&(object['channel']='',object['requestId']=0x0),null!=_0x318e4d['channel']&&_0x318e4d['hasOwnProperty']('channel')&&(object['channel']=_0x318e4d['channel']),null!=_0x318e4d['requestId']&&_0x318e4d['hasOwnProperty']('requestId')&&(object['requestId']=_0x318e4d['requestId']),_0x318e4d['revisions']&&_0x318e4d['revisions']['length']){object['revisions']=[];for(var _0x27b252=0x0;_0x27b252<_0x318e4d['revisions']['length'];++_0x27b252)object['revisions'][_0x27b252]=$root['RevisionDescriptor']['toObject'](_0x318e4d['revisions'][_0x27b252],options);}return object;},RevisionHistoryConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryConnectResponse';},RevisionHistoryConnectResponse;}()),$root['RevisionHistoryUpdateRevisionsMessage']=(function(){function RevisionHistoryUpdateRevisionsMessage(properties){if(this['revisions']=[],properties){for(var _0x3fa76c=Object['keys'](properties),_0x27ce47=0x0;_0x27ce47<_0x3fa76c['length'];++_0x27ce47)null!=properties[_0x3fa76c[_0x27ce47]]&&(this[_0x3fa76c[_0x27ce47]]=properties[_0x3fa76c[_0x27ce47]]);}}return RevisionHistoryUpdateRevisionsMessage['prototype']['documentId']='',RevisionHistoryUpdateRevisionsMessage['prototype']['requestId']=0x0,RevisionHistoryUpdateRevisionsMessage['prototype']['revisions']=$util['emptyArray'],RevisionHistoryUpdateRevisionsMessage['create']=function(properties){return new RevisionHistoryUpdateRevisionsMessage(properties);},RevisionHistoryUpdateRevisionsMessage['encode']=function(_0x1bcc0f,writer){if(writer||(writer=$Writer['create']()),null!=_0x1bcc0f['documentId']&&Object['hasOwnProperty']['call'](_0x1bcc0f,'documentId')&&writer['uint32'](0xa)['string'](_0x1bcc0f['documentId']),null!=_0x1bcc0f['requestId']&&Object['hasOwnProperty']['call'](_0x1bcc0f,'requestId')&&writer['uint32'](0x10)['uint32'](_0x1bcc0f['requestId']),null!=_0x1bcc0f['revisions']&&_0x1bcc0f['revisions']['length']){for(var _0x193ba0=0x0;_0x193ba0<_0x1bcc0f['revisions']['length'];++_0x193ba0)$root['RevisionDescriptor']['encode'](_0x1bcc0f['revisions'][_0x193ba0],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},RevisionHistoryUpdateRevisionsMessage['encodeDelimited']=function(_0x1d31f2,writer){return this['encode'](_0x1d31f2,writer)['ldelim']();},RevisionHistoryUpdateRevisionsMessage['decode']=function(_0x272af8,length,_0x47c313){_0x272af8 instanceof _0x53a355||(_0x272af8=_0x53a355['create'](_0x272af8));for(var _0x3df420=void 0x0===length?_0x272af8['len']:_0x272af8['pos']+length,_0x58f20b=new $root['RevisionHistoryUpdateRevisionsMessage']();_0x272af8['pos']<_0x3df420;){var tag=_0x272af8['uint32']();if(tag===_0x47c313)break;switch(tag>>>0x3){case 0x1:_0x58f20b['documentId']=_0x272af8['string']();break;case 0x2:_0x58f20b['requestId']=_0x272af8['uint32']();break;case 0x3:_0x58f20b['revisions']&&_0x58f20b['revisions']['length']||(_0x58f20b['revisions']=[]),_0x58f20b['revisions']['push']($root['RevisionDescriptor']['decode'](_0x272af8,_0x272af8['uint32']()));break;default:_0x272af8['skipType'](0x7&tag);}}return _0x58f20b;},RevisionHistoryUpdateRevisionsMessage['decodeDelimited']=function(_0x3568f6){return _0x3568f6 instanceof _0x53a355||(_0x3568f6=new _0x53a355(_0x3568f6)),this['decode'](_0x3568f6,_0x3568f6['uint32']());},RevisionHistoryUpdateRevisionsMessage['verify']=function(_0x1be1d2){if('object'!=typeof _0x1be1d2||null===_0x1be1d2)return'object\x20expected';if(null!=_0x1be1d2['documentId']&&_0x1be1d2['hasOwnProperty']('documentId')&&!$util['isString'](_0x1be1d2['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x1be1d2['requestId']&&_0x1be1d2['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x1be1d2['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x1be1d2['revisions']&&_0x1be1d2['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x1be1d2['revisions']))return'revisions:\x20array\x20expected';for(var _0x55807b=0x0;_0x55807b<_0x1be1d2['revisions']['length'];++_0x55807b){var _0xff7172=$root['RevisionDescriptor']['verify'](_0x1be1d2['revisions'][_0x55807b]);if(_0xff7172)return'revisions.'+_0xff7172;}}return null;},RevisionHistoryUpdateRevisionsMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryUpdateRevisionsMessage'])return object;var _0x57928f=new $root['RevisionHistoryUpdateRevisionsMessage']();if(null!=object['documentId']&&(_0x57928f['documentId']=String(object['documentId'])),null!=object['requestId']&&(_0x57928f['requestId']=object['requestId']>>>0x0),object['revisions']){if(!Array['isArray'](object['revisions']))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20array\x20expected');_0x57928f['revisions']=[];for(var _0x3ef8d0=0x0;_0x3ef8d0<object['revisions']['length'];++_0x3ef8d0){if('object'!=typeof object['revisions'][_0x3ef8d0])throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20object\x20expected');_0x57928f['revisions'][_0x3ef8d0]=$root['RevisionDescriptor']['fromObject'](object['revisions'][_0x3ef8d0]);}}return _0x57928f;},RevisionHistoryUpdateRevisionsMessage['toObject']=function(_0x443d85,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['revisions']=[]),options['defaults']&&(object['documentId']='',object['requestId']=0x0),null!=_0x443d85['documentId']&&_0x443d85['hasOwnProperty']('documentId')&&(object['documentId']=_0x443d85['documentId']),null!=_0x443d85['requestId']&&_0x443d85['hasOwnProperty']('requestId')&&(object['requestId']=_0x443d85['requestId']),_0x443d85['revisions']&&_0x443d85['revisions']['length']){object['revisions']=[];for(var _0x35247f=0x0;_0x35247f<_0x443d85['revisions']['length'];++_0x35247f)object['revisions'][_0x35247f]=$root['RevisionDescriptor']['toObject'](_0x443d85['revisions'][_0x35247f],options);}return object;},RevisionHistoryUpdateRevisionsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryUpdateRevisionsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryUpdateRevisionsMessage';},RevisionHistoryUpdateRevisionsMessage;}()),$root['RevisionHistoryReconnectMessage']=(function(){function RevisionHistoryReconnectMessage(properties){if(properties){for(var _0x5c13a4=Object['keys'](properties),_0x459ad6=0x0;_0x459ad6<_0x5c13a4['length'];++_0x459ad6)null!=properties[_0x5c13a4[_0x459ad6]]&&(this[_0x5c13a4[_0x459ad6]]=properties[_0x5c13a4[_0x459ad6]]);}}return RevisionHistoryReconnectMessage['prototype']['documentId']='',RevisionHistoryReconnectMessage['prototype']['requestId']=0x0,RevisionHistoryReconnectMessage['create']=function(properties){return new RevisionHistoryReconnectMessage(properties);},RevisionHistoryReconnectMessage['encode']=function(_0x567d63,writer){return writer||(writer=$Writer['create']()),null!=_0x567d63['documentId']&&Object['hasOwnProperty']['call'](_0x567d63,'documentId')&&writer['uint32'](0xa)['string'](_0x567d63['documentId']),null!=_0x567d63['requestId']&&Object['hasOwnProperty']['call'](_0x567d63,'requestId')&&writer['uint32'](0x10)['uint32'](_0x567d63['requestId']),writer;},RevisionHistoryReconnectMessage['encodeDelimited']=function(_0x5e1392,writer){return this['encode'](_0x5e1392,writer)['ldelim']();},RevisionHistoryReconnectMessage['decode']=function(_0x3f032f,length,_0x48e30c){_0x3f032f instanceof _0x53a355||(_0x3f032f=_0x53a355['create'](_0x3f032f));for(var _0x4e6bf6=void 0x0===length?_0x3f032f['len']:_0x3f032f['pos']+length,_0xed4f1f=new $root['RevisionHistoryReconnectMessage']();_0x3f032f['pos']<_0x4e6bf6;){var tag=_0x3f032f['uint32']();if(tag===_0x48e30c)break;switch(tag>>>0x3){case 0x1:_0xed4f1f['documentId']=_0x3f032f['string']();break;case 0x2:_0xed4f1f['requestId']=_0x3f032f['uint32']();break;default:_0x3f032f['skipType'](0x7&tag);}}return _0xed4f1f;},RevisionHistoryReconnectMessage['decodeDelimited']=function(_0x5b327f){return _0x5b327f instanceof _0x53a355||(_0x5b327f=new _0x53a355(_0x5b327f)),this['decode'](_0x5b327f,_0x5b327f['uint32']());},RevisionHistoryReconnectMessage['verify']=function(_0x546c56){return'object'!=typeof _0x546c56||null===_0x546c56?'object\x20expected':null!=_0x546c56['documentId']&&_0x546c56['hasOwnProperty']('documentId')&&!$util['isString'](_0x546c56['documentId'])?'documentId:\x20string\x20expected':null!=_0x546c56['requestId']&&_0x546c56['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x546c56['requestId'])?'requestId:\x20integer\x20expected':null;},RevisionHistoryReconnectMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryReconnectMessage'])return object;var _0x2a2500=new $root['RevisionHistoryReconnectMessage']();return null!=object['documentId']&&(_0x2a2500['documentId']=String(object['documentId'])),null!=object['requestId']&&(_0x2a2500['requestId']=object['requestId']>>>0x0),_0x2a2500;},RevisionHistoryReconnectMessage['toObject']=function(_0x1fa4da,options){options||(options={});var object={};return options['defaults']&&(object['documentId']='',object['requestId']=0x0),null!=_0x1fa4da['documentId']&&_0x1fa4da['hasOwnProperty']('documentId')&&(object['documentId']=_0x1fa4da['documentId']),null!=_0x1fa4da['requestId']&&_0x1fa4da['hasOwnProperty']('requestId')&&(object['requestId']=_0x1fa4da['requestId']),object;},RevisionHistoryReconnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryReconnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryReconnectMessage';},RevisionHistoryReconnectMessage;}()),$root['RevisionHistoryGetRevisionMessage']=(function(){function RevisionHistoryGetRevisionMessage(properties){if(properties){for(var _0x2cd99c=Object['keys'](properties),_0x526eba=0x0;_0x526eba<_0x2cd99c['length'];++_0x526eba)null!=properties[_0x2cd99c[_0x526eba]]&&(this[_0x2cd99c[_0x526eba]]=properties[_0x2cd99c[_0x526eba]]);}}return RevisionHistoryGetRevisionMessage['prototype']['documentId']='',RevisionHistoryGetRevisionMessage['prototype']['revisionId']='',RevisionHistoryGetRevisionMessage['create']=function(properties){return new RevisionHistoryGetRevisionMessage(properties);},RevisionHistoryGetRevisionMessage['encode']=function(_0xefac74,writer){return writer||(writer=$Writer['create']()),null!=_0xefac74['documentId']&&Object['hasOwnProperty']['call'](_0xefac74,'documentId')&&writer['uint32'](0xa)['string'](_0xefac74['documentId']),null!=_0xefac74['revisionId']&&Object['hasOwnProperty']['call'](_0xefac74,'revisionId')&&writer['uint32'](0x12)['string'](_0xefac74['revisionId']),writer;},RevisionHistoryGetRevisionMessage['encodeDelimited']=function(_0x45724e,writer){return this['encode'](_0x45724e,writer)['ldelim']();},RevisionHistoryGetRevisionMessage['decode']=function(_0x4457ae,length,_0x37a2ca){_0x4457ae instanceof _0x53a355||(_0x4457ae=_0x53a355['create'](_0x4457ae));for(var _0x4a8a83=void 0x0===length?_0x4457ae['len']:_0x4457ae['pos']+length,_0x4a35a1=new $root['RevisionHistoryGetRevisionMessage']();_0x4457ae['pos']<_0x4a8a83;){var tag=_0x4457ae['uint32']();if(tag===_0x37a2ca)break;switch(tag>>>0x3){case 0x1:_0x4a35a1['documentId']=_0x4457ae['string']();break;case 0x2:_0x4a35a1['revisionId']=_0x4457ae['string']();break;default:_0x4457ae['skipType'](0x7&tag);}}return _0x4a35a1;},RevisionHistoryGetRevisionMessage['decodeDelimited']=function(_0x195761){return _0x195761 instanceof _0x53a355||(_0x195761=new _0x53a355(_0x195761)),this['decode'](_0x195761,_0x195761['uint32']());},RevisionHistoryGetRevisionMessage['verify']=function(_0x3a62b8){return'object'!=typeof _0x3a62b8||null===_0x3a62b8?'object\x20expected':null!=_0x3a62b8['documentId']&&_0x3a62b8['hasOwnProperty']('documentId')&&!$util['isString'](_0x3a62b8['documentId'])?'documentId:\x20string\x20expected':null!=_0x3a62b8['revisionId']&&_0x3a62b8['hasOwnProperty']('revisionId')&&!$util['isString'](_0x3a62b8['revisionId'])?'revisionId:\x20string\x20expected':null;},RevisionHistoryGetRevisionMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryGetRevisionMessage'])return object;var _0xfea9fe=new $root['RevisionHistoryGetRevisionMessage']();return null!=object['documentId']&&(_0xfea9fe['documentId']=String(object['documentId'])),null!=object['revisionId']&&(_0xfea9fe['revisionId']=String(object['revisionId'])),_0xfea9fe;},RevisionHistoryGetRevisionMessage['toObject']=function(_0x5ec541,options){options||(options={});var object={};return options['defaults']&&(object['documentId']='',object['revisionId']=''),null!=_0x5ec541['documentId']&&_0x5ec541['hasOwnProperty']('documentId')&&(object['documentId']=_0x5ec541['documentId']),null!=_0x5ec541['revisionId']&&_0x5ec541['hasOwnProperty']('revisionId')&&(object['revisionId']=_0x5ec541['revisionId']),object;},RevisionHistoryGetRevisionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryGetRevisionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryGetRevisionMessage';},RevisionHistoryGetRevisionMessage;}()),$root['RevisionHistoryConnectMessage']=(function(){function RevisionHistoryConnectMessage(properties){if(properties){for(var _0xd2d33d=Object['keys'](properties),_0x4c5786=0x0;_0x4c5786<_0xd2d33d['length'];++_0x4c5786)null!=properties[_0xd2d33d[_0x4c5786]]&&(this[_0xd2d33d[_0x4c5786]]=properties[_0xd2d33d[_0x4c5786]]);}}return RevisionHistoryConnectMessage['prototype']['documentId']='',RevisionHistoryConnectMessage['create']=function(properties){return new RevisionHistoryConnectMessage(properties);},RevisionHistoryConnectMessage['encode']=function(_0x188050,writer){return writer||(writer=$Writer['create']()),null!=_0x188050['documentId']&&Object['hasOwnProperty']['call'](_0x188050,'documentId')&&writer['uint32'](0xa)['string'](_0x188050['documentId']),writer;},RevisionHistoryConnectMessage['encodeDelimited']=function(_0x9b07c8,writer){return this['encode'](_0x9b07c8,writer)['ldelim']();},RevisionHistoryConnectMessage['decode']=function(_0x561d4f,length,_0x1aa027){_0x561d4f instanceof _0x53a355||(_0x561d4f=_0x53a355['create'](_0x561d4f));for(var _0x501b2a=void 0x0===length?_0x561d4f['len']:_0x561d4f['pos']+length,_0x18e508=new $root['RevisionHistoryConnectMessage']();_0x561d4f['pos']<_0x501b2a;){var tag=_0x561d4f['uint32']();if(tag===_0x1aa027)break;if(tag>>>0x3==0x1)_0x18e508['documentId']=_0x561d4f['string']();else _0x561d4f['skipType'](0x7&tag);}return _0x18e508;},RevisionHistoryConnectMessage['decodeDelimited']=function(_0x21098a){return _0x21098a instanceof _0x53a355||(_0x21098a=new _0x53a355(_0x21098a)),this['decode'](_0x21098a,_0x21098a['uint32']());},RevisionHistoryConnectMessage['verify']=function(_0x39853d){return'object'!=typeof _0x39853d||null===_0x39853d?'object\x20expected':null!=_0x39853d['documentId']&&_0x39853d['hasOwnProperty']('documentId')&&!$util['isString'](_0x39853d['documentId'])?'documentId:\x20string\x20expected':null;},RevisionHistoryConnectMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryConnectMessage'])return object;var _0x1d7042=new $root['RevisionHistoryConnectMessage']();return null!=object['documentId']&&(_0x1d7042['documentId']=String(object['documentId'])),_0x1d7042;},RevisionHistoryConnectMessage['toObject']=function(_0x995260,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x995260['documentId']&&_0x995260['hasOwnProperty']('documentId')&&(object['documentId']=_0x995260['documentId']),object;},RevisionHistoryConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryConnectMessage';},RevisionHistoryConnectMessage;}()),$root['RevisionDescriptor']=(function(){function RevisionDescriptor(properties){if(properties){for(var _0x39642d=Object['keys'](properties),_0x3d63cd=0x0;_0x3d63cd<_0x39642d['length'];++_0x3d63cd)null!=properties[_0x39642d[_0x3d63cd]]&&(this[_0x39642d[_0x3d63cd]]=properties[_0x39642d[_0x3d63cd]]);}}return RevisionDescriptor['prototype']['revisionId']='',RevisionDescriptor['prototype']['name']='',RevisionDescriptor['prototype']['creatorId']='',RevisionDescriptor['prototype']['authorsIds']='',RevisionDescriptor['prototype']['diffData']='',RevisionDescriptor['prototype']['createdAt']='',RevisionDescriptor['prototype']['attributes']='',RevisionDescriptor['prototype']['toVersion']=0x0,RevisionDescriptor['prototype']['fromVersion']=0x0,RevisionDescriptor['prototype']['isEmptyCurrent']=!0x1,RevisionDescriptor['create']=function(properties){return new RevisionDescriptor(properties);},RevisionDescriptor['encode']=function(_0x55efbc,writer){return writer||(writer=$Writer['create']()),null!=_0x55efbc['revisionId']&&Object['hasOwnProperty']['call'](_0x55efbc,'revisionId')&&writer['uint32'](0xa)['string'](_0x55efbc['revisionId']),null!=_0x55efbc['name']&&Object['hasOwnProperty']['call'](_0x55efbc,'name')&&writer['uint32'](0x12)['string'](_0x55efbc['name']),null!=_0x55efbc['creatorId']&&Object['hasOwnProperty']['call'](_0x55efbc,'creatorId')&&writer['uint32'](0x1a)['string'](_0x55efbc['creatorId']),null!=_0x55efbc['authorsIds']&&Object['hasOwnProperty']['call'](_0x55efbc,'authorsIds')&&writer['uint32'](0x22)['string'](_0x55efbc['authorsIds']),null!=_0x55efbc['diffData']&&Object['hasOwnProperty']['call'](_0x55efbc,'diffData')&&writer['uint32'](0x2a)['string'](_0x55efbc['diffData']),null!=_0x55efbc['createdAt']&&Object['hasOwnProperty']['call'](_0x55efbc,'createdAt')&&writer['uint32'](0x32)['string'](_0x55efbc['createdAt']),null!=_0x55efbc['attributes']&&Object['hasOwnProperty']['call'](_0x55efbc,'attributes')&&writer['uint32'](0x3a)['string'](_0x55efbc['attributes']),null!=_0x55efbc['toVersion']&&Object['hasOwnProperty']['call'](_0x55efbc,'toVersion')&&writer['uint32'](0x40)['uint32'](_0x55efbc['toVersion']),null!=_0x55efbc['fromVersion']&&Object['hasOwnProperty']['call'](_0x55efbc,'fromVersion')&&writer['uint32'](0x48)['uint32'](_0x55efbc['fromVersion']),null!=_0x55efbc['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x55efbc,'isEmptyCurrent')&&writer['uint32'](0x50)['bool'](_0x55efbc['isEmptyCurrent']),writer;},RevisionDescriptor['encodeDelimited']=function(_0x1a879a,writer){return this['encode'](_0x1a879a,writer)['ldelim']();},RevisionDescriptor['decode']=function(_0x2a0e11,length,_0x29be95){_0x2a0e11 instanceof _0x53a355||(_0x2a0e11=_0x53a355['create'](_0x2a0e11));for(var _0x7a68cc=void 0x0===length?_0x2a0e11['len']:_0x2a0e11['pos']+length,_0x1f8855=new $root['RevisionDescriptor']();_0x2a0e11['pos']<_0x7a68cc;){var tag=_0x2a0e11['uint32']();if(tag===_0x29be95)break;switch(tag>>>0x3){case 0x1:_0x1f8855['revisionId']=_0x2a0e11['string']();break;case 0x2:_0x1f8855['name']=_0x2a0e11['string']();break;case 0x3:_0x1f8855['creatorId']=_0x2a0e11['string']();break;case 0x4:_0x1f8855['authorsIds']=_0x2a0e11['string']();break;case 0x5:_0x1f8855['diffData']=_0x2a0e11['string']();break;case 0x6:_0x1f8855['createdAt']=_0x2a0e11['string']();break;case 0x7:_0x1f8855['attributes']=_0x2a0e11['string']();break;case 0x8:_0x1f8855['toVersion']=_0x2a0e11['uint32']();break;case 0x9:_0x1f8855['fromVersion']=_0x2a0e11['uint32']();break;case 0xa:_0x1f8855['isEmptyCurrent']=_0x2a0e11['bool']();break;default:_0x2a0e11['skipType'](0x7&tag);}}return _0x1f8855;},RevisionDescriptor['decodeDelimited']=function(_0x48910c){return _0x48910c instanceof _0x53a355||(_0x48910c=new _0x53a355(_0x48910c)),this['decode'](_0x48910c,_0x48910c['uint32']());},RevisionDescriptor['verify']=function(_0x109647){return'object'!=typeof _0x109647||null===_0x109647?'object\x20expected':null!=_0x109647['revisionId']&&_0x109647['hasOwnProperty']('revisionId')&&!$util['isString'](_0x109647['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x109647['name']&&_0x109647['hasOwnProperty']('name')&&!$util['isString'](_0x109647['name'])?'name:\x20string\x20expected':null!=_0x109647['creatorId']&&_0x109647['hasOwnProperty']('creatorId')&&!$util['isString'](_0x109647['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x109647['authorsIds']&&_0x109647['hasOwnProperty']('authorsIds')&&!$util['isString'](_0x109647['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x109647['diffData']&&_0x109647['hasOwnProperty']('diffData')&&!$util['isString'](_0x109647['diffData'])?'diffData:\x20string\x20expected':null!=_0x109647['createdAt']&&_0x109647['hasOwnProperty']('createdAt')&&!$util['isString'](_0x109647['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x109647['attributes']&&_0x109647['hasOwnProperty']('attributes')&&!$util['isString'](_0x109647['attributes'])?'attributes:\x20string\x20expected':null!=_0x109647['toVersion']&&_0x109647['hasOwnProperty']('toVersion')&&!$util['isInteger'](_0x109647['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x109647['fromVersion']&&_0x109647['hasOwnProperty']('fromVersion')&&!$util['isInteger'](_0x109647['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x109647['isEmptyCurrent']&&_0x109647['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x109647['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},RevisionDescriptor['fromObject']=function(object){if(object instanceof $root['RevisionDescriptor'])return object;var _0x5b32af=new $root['RevisionDescriptor']();return null!=object['revisionId']&&(_0x5b32af['revisionId']=String(object['revisionId'])),null!=object['name']&&(_0x5b32af['name']=String(object['name'])),null!=object['creatorId']&&(_0x5b32af['creatorId']=String(object['creatorId'])),null!=object['authorsIds']&&(_0x5b32af['authorsIds']=String(object['authorsIds'])),null!=object['diffData']&&(_0x5b32af['diffData']=String(object['diffData'])),null!=object['createdAt']&&(_0x5b32af['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x5b32af['attributes']=String(object['attributes'])),null!=object['toVersion']&&(_0x5b32af['toVersion']=object['toVersion']>>>0x0),null!=object['fromVersion']&&(_0x5b32af['fromVersion']=object['fromVersion']>>>0x0),null!=object['isEmptyCurrent']&&(_0x5b32af['isEmptyCurrent']=Boolean(object['isEmptyCurrent'])),_0x5b32af;},RevisionDescriptor['toObject']=function(_0x1572bc,options){options||(options={});var object={};return options['defaults']&&(object['revisionId']='',object['name']='',object['creatorId']='',object['authorsIds']='',object['diffData']='',object['createdAt']='',object['attributes']='',object['toVersion']=0x0,object['fromVersion']=0x0,object['isEmptyCurrent']=!0x1),null!=_0x1572bc['revisionId']&&_0x1572bc['hasOwnProperty']('revisionId')&&(object['revisionId']=_0x1572bc['revisionId']),null!=_0x1572bc['name']&&_0x1572bc['hasOwnProperty']('name')&&(object['name']=_0x1572bc['name']),null!=_0x1572bc['creatorId']&&_0x1572bc['hasOwnProperty']('creatorId')&&(object['creatorId']=_0x1572bc['creatorId']),null!=_0x1572bc['authorsIds']&&_0x1572bc['hasOwnProperty']('authorsIds')&&(object['authorsIds']=_0x1572bc['authorsIds']),null!=_0x1572bc['diffData']&&_0x1572bc['hasOwnProperty']('diffData')&&(object['diffData']=_0x1572bc['diffData']),null!=_0x1572bc['createdAt']&&_0x1572bc['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x1572bc['createdAt']),null!=_0x1572bc['attributes']&&_0x1572bc['hasOwnProperty']('attributes')&&(object['attributes']=_0x1572bc['attributes']),null!=_0x1572bc['toVersion']&&_0x1572bc['hasOwnProperty']('toVersion')&&(object['toVersion']=_0x1572bc['toVersion']),null!=_0x1572bc['fromVersion']&&_0x1572bc['hasOwnProperty']('fromVersion')&&(object['fromVersion']=_0x1572bc['fromVersion']),null!=_0x1572bc['isEmptyCurrent']&&_0x1572bc['hasOwnProperty']('isEmptyCurrent')&&(object['isEmptyCurrent']=_0x1572bc['isEmptyCurrent']),object;},RevisionDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionDescriptor';},RevisionDescriptor;}()),$root['IsEditorBundleUploadedResponse']=(function(){function IsEditorBundleUploadedResponse(properties){if(properties){for(var _0x4fcfd4=Object['keys'](properties),_0x317498=0x0;_0x317498<_0x4fcfd4['length'];++_0x317498)null!=properties[_0x4fcfd4[_0x317498]]&&(this[_0x4fcfd4[_0x317498]]=properties[_0x4fcfd4[_0x317498]]);}}return IsEditorBundleUploadedResponse['prototype']['isUploaded']=!0x1,IsEditorBundleUploadedResponse['create']=function(properties){return new IsEditorBundleUploadedResponse(properties);},IsEditorBundleUploadedResponse['encode']=function(_0x6fd2e7,writer){return writer||(writer=$Writer['create']()),null!=_0x6fd2e7['isUploaded']&&Object['hasOwnProperty']['call'](_0x6fd2e7,'isUploaded')&&writer['uint32'](0x8)['bool'](_0x6fd2e7['isUploaded']),writer;},IsEditorBundleUploadedResponse['encodeDelimited']=function(_0x36946e,writer){return this['encode'](_0x36946e,writer)['ldelim']();},IsEditorBundleUploadedResponse['decode']=function(_0xa0c5ee,length,_0x34d978){_0xa0c5ee instanceof _0x53a355||(_0xa0c5ee=_0x53a355['create'](_0xa0c5ee));for(var _0x31ae04=void 0x0===length?_0xa0c5ee['len']:_0xa0c5ee['pos']+length,_0x100c7c=new $root['IsEditorBundleUploadedResponse']();_0xa0c5ee['pos']<_0x31ae04;){var tag=_0xa0c5ee['uint32']();if(tag===_0x34d978)break;if(tag>>>0x3==0x1)_0x100c7c['isUploaded']=_0xa0c5ee['bool']();else _0xa0c5ee['skipType'](0x7&tag);}return _0x100c7c;},IsEditorBundleUploadedResponse['decodeDelimited']=function(_0x2342a0){return _0x2342a0 instanceof _0x53a355||(_0x2342a0=new _0x53a355(_0x2342a0)),this['decode'](_0x2342a0,_0x2342a0['uint32']());},IsEditorBundleUploadedResponse['verify']=function(_0x1d40a5){return'object'!=typeof _0x1d40a5||null===_0x1d40a5?'object\x20expected':null!=_0x1d40a5['isUploaded']&&_0x1d40a5['hasOwnProperty']('isUploaded')&&'boolean'!=typeof _0x1d40a5['isUploaded']?'isUploaded:\x20boolean\x20expected':null;},IsEditorBundleUploadedResponse['fromObject']=function(object){if(object instanceof $root['IsEditorBundleUploadedResponse'])return object;var _0x53dcfd=new $root['IsEditorBundleUploadedResponse']();return null!=object['isUploaded']&&(_0x53dcfd['isUploaded']=Boolean(object['isUploaded'])),_0x53dcfd;},IsEditorBundleUploadedResponse['toObject']=function(_0x298fc2,options){options||(options={});var object={};return options['defaults']&&(object['isUploaded']=!0x1),null!=_0x298fc2['isUploaded']&&_0x298fc2['hasOwnProperty']('isUploaded')&&(object['isUploaded']=_0x298fc2['isUploaded']),object;},IsEditorBundleUploadedResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},IsEditorBundleUploadedResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/IsEditorBundleUploadedResponse';},IsEditorBundleUploadedResponse;}()),$root['IsEditorBundleUploadedMessage']=(function(){function IsEditorBundleUploadedMessage(properties){if(properties){for(var _0x189d62=Object['keys'](properties),_0x6ee3ba=0x0;_0x6ee3ba<_0x189d62['length'];++_0x6ee3ba)null!=properties[_0x189d62[_0x6ee3ba]]&&(this[_0x189d62[_0x6ee3ba]]=properties[_0x189d62[_0x6ee3ba]]);}}return IsEditorBundleUploadedMessage['prototype']['bundleVersion']='',IsEditorBundleUploadedMessage['create']=function(properties){return new IsEditorBundleUploadedMessage(properties);},IsEditorBundleUploadedMessage['encode']=function(_0x345c01,writer){return writer||(writer=$Writer['create']()),null!=_0x345c01['bundleVersion']&&Object['hasOwnProperty']['call'](_0x345c01,'bundleVersion')&&writer['uint32'](0xa)['string'](_0x345c01['bundleVersion']),writer;},IsEditorBundleUploadedMessage['encodeDelimited']=function(_0x3258a7,writer){return this['encode'](_0x3258a7,writer)['ldelim']();},IsEditorBundleUploadedMessage['decode']=function(_0x1c3a22,length,_0x2bd23c){_0x1c3a22 instanceof _0x53a355||(_0x1c3a22=_0x53a355['create'](_0x1c3a22));for(var _0x7ae51a=void 0x0===length?_0x1c3a22['len']:_0x1c3a22['pos']+length,_0x5e8263=new $root['IsEditorBundleUploadedMessage']();_0x1c3a22['pos']<_0x7ae51a;){var tag=_0x1c3a22['uint32']();if(tag===_0x2bd23c)break;if(tag>>>0x3==0x1)_0x5e8263['bundleVersion']=_0x1c3a22['string']();else _0x1c3a22['skipType'](0x7&tag);}return _0x5e8263;},IsEditorBundleUploadedMessage['decodeDelimited']=function(_0x42f788){return _0x42f788 instanceof _0x53a355||(_0x42f788=new _0x53a355(_0x42f788)),this['decode'](_0x42f788,_0x42f788['uint32']());},IsEditorBundleUploadedMessage['verify']=function(_0x5623c0){return'object'!=typeof _0x5623c0||null===_0x5623c0?'object\x20expected':null!=_0x5623c0['bundleVersion']&&_0x5623c0['hasOwnProperty']('bundleVersion')&&!$util['isString'](_0x5623c0['bundleVersion'])?'bundleVersion:\x20string\x20expected':null;},IsEditorBundleUploadedMessage['fromObject']=function(object){if(object instanceof $root['IsEditorBundleUploadedMessage'])return object;var _0x12539b=new $root['IsEditorBundleUploadedMessage']();return null!=object['bundleVersion']&&(_0x12539b['bundleVersion']=String(object['bundleVersion'])),_0x12539b;},IsEditorBundleUploadedMessage['toObject']=function(_0x271ac8,options){options||(options={});var object={};return options['defaults']&&(object['bundleVersion']=''),null!=_0x271ac8['bundleVersion']&&_0x271ac8['hasOwnProperty']('bundleVersion')&&(object['bundleVersion']=_0x271ac8['bundleVersion']),object;},IsEditorBundleUploadedMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},IsEditorBundleUploadedMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/IsEditorBundleUploadedMessage';},IsEditorBundleUploadedMessage;}()),$root['KeyValueDescriptor']=(function(){function KeyValueDescriptor(properties){if(properties){for(var _0x107997=Object['keys'](properties),_0x253ab6=0x0;_0x253ab6<_0x107997['length'];++_0x253ab6)null!=properties[_0x107997[_0x253ab6]]&&(this[_0x107997[_0x253ab6]]=properties[_0x107997[_0x253ab6]]);}}return KeyValueDescriptor['prototype']['key']='',KeyValueDescriptor['prototype']['value']='',KeyValueDescriptor['create']=function(properties){return new KeyValueDescriptor(properties);},KeyValueDescriptor['encode']=function(_0x4ae71c,writer){return writer||(writer=$Writer['create']()),null!=_0x4ae71c['key']&&Object['hasOwnProperty']['call'](_0x4ae71c,'key')&&writer['uint32'](0xa)['string'](_0x4ae71c['key']),null!=_0x4ae71c['value']&&Object['hasOwnProperty']['call'](_0x4ae71c,'value')&&writer['uint32'](0x12)['string'](_0x4ae71c['value']),writer;},KeyValueDescriptor['encodeDelimited']=function(_0xf20ca7,writer){return this['encode'](_0xf20ca7,writer)['ldelim']();},KeyValueDescriptor['decode']=function(_0x4b067b,length,_0x4b5a96){_0x4b067b instanceof _0x53a355||(_0x4b067b=_0x53a355['create'](_0x4b067b));for(var _0x190a2a=void 0x0===length?_0x4b067b['len']:_0x4b067b['pos']+length,_0x15b2d8=new $root['KeyValueDescriptor']();_0x4b067b['pos']<_0x190a2a;){var tag=_0x4b067b['uint32']();if(tag===_0x4b5a96)break;switch(tag>>>0x3){case 0x1:_0x15b2d8['key']=_0x4b067b['string']();break;case 0x2:_0x15b2d8['value']=_0x4b067b['string']();break;default:_0x4b067b['skipType'](0x7&tag);}}return _0x15b2d8;},KeyValueDescriptor['decodeDelimited']=function(_0x12a867){return _0x12a867 instanceof _0x53a355||(_0x12a867=new _0x53a355(_0x12a867)),this['decode'](_0x12a867,_0x12a867['uint32']());},KeyValueDescriptor['verify']=function(_0x7a0793){return'object'!=typeof _0x7a0793||null===_0x7a0793?'object\x20expected':null!=_0x7a0793['key']&&_0x7a0793['hasOwnProperty']('key')&&!$util['isString'](_0x7a0793['key'])?'key:\x20string\x20expected':null!=_0x7a0793['value']&&_0x7a0793['hasOwnProperty']('value')&&!$util['isString'](_0x7a0793['value'])?'value:\x20string\x20expected':null;},KeyValueDescriptor['fromObject']=function(object){if(object instanceof $root['KeyValueDescriptor'])return object;var _0x43564d=new $root['KeyValueDescriptor']();return null!=object['key']&&(_0x43564d['key']=String(object['key'])),null!=object['value']&&(_0x43564d['value']=String(object['value'])),_0x43564d;},KeyValueDescriptor['toObject']=function(_0x362490,options){options||(options={});var object={};return options['defaults']&&(object['key']='',object['value']=''),null!=_0x362490['key']&&_0x362490['hasOwnProperty']('key')&&(object['key']=_0x362490['key']),null!=_0x362490['value']&&_0x362490['hasOwnProperty']('value')&&(object['value']=_0x362490['value']),object;},KeyValueDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},KeyValueDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/KeyValueDescriptor';},KeyValueDescriptor;}()),$root['CommentsV2GetDocumentThreadsResponse']=(function(){function CommentsV2GetDocumentThreadsResponse(properties){if(this['threads']=[],this['threadsV2']=[],properties){for(var _0x5885e8=Object['keys'](properties),_0x28f023=0x0;_0x28f023<_0x5885e8['length'];++_0x28f023)null!=properties[_0x5885e8[_0x28f023]]&&(this[_0x5885e8[_0x28f023]]=properties[_0x5885e8[_0x28f023]]);}}return CommentsV2GetDocumentThreadsResponse['prototype']['threads']=$util['emptyArray'],CommentsV2GetDocumentThreadsResponse['prototype']['threadsV2']=$util['emptyArray'],CommentsV2GetDocumentThreadsResponse['create']=function(properties){return new CommentsV2GetDocumentThreadsResponse(properties);},CommentsV2GetDocumentThreadsResponse['encode']=function(_0x2a9bc2,writer){if(writer||(writer=$Writer['create']()),null!=_0x2a9bc2['threads']&&_0x2a9bc2['threads']['length']){for(var _0x418281=0x0;_0x418281<_0x2a9bc2['threads']['length'];++_0x418281)writer['uint32'](0xa)['string'](_0x2a9bc2['threads'][_0x418281]);}if(null!=_0x2a9bc2['threadsV2']&&_0x2a9bc2['threadsV2']['length']){for(_0x418281=0x0;_0x418281<_0x2a9bc2['threadsV2']['length'];++_0x418281)$root['CommentsThreadDescriptor']['encode'](_0x2a9bc2['threadsV2'][_0x418281],writer['uint32'](0x12)['fork']())['ldelim']();}return writer;},CommentsV2GetDocumentThreadsResponse['encodeDelimited']=function(_0x34b7ce,writer){return this['encode'](_0x34b7ce,writer)['ldelim']();},CommentsV2GetDocumentThreadsResponse['decode']=function(_0xeba7ba,length,_0x1643ca){_0xeba7ba instanceof _0x53a355||(_0xeba7ba=_0x53a355['create'](_0xeba7ba));for(var _0x58fe4d=void 0x0===length?_0xeba7ba['len']:_0xeba7ba['pos']+length,_0x1971a8=new $root['CommentsV2GetDocumentThreadsResponse']();_0xeba7ba['pos']<_0x58fe4d;){var tag=_0xeba7ba['uint32']();if(tag===_0x1643ca)break;switch(tag>>>0x3){case 0x1:_0x1971a8['threads']&&_0x1971a8['threads']['length']||(_0x1971a8['threads']=[]),_0x1971a8['threads']['push'](_0xeba7ba['string']());break;case 0x2:_0x1971a8['threadsV2']&&_0x1971a8['threadsV2']['length']||(_0x1971a8['threadsV2']=[]),_0x1971a8['threadsV2']['push']($root['CommentsThreadDescriptor']['decode'](_0xeba7ba,_0xeba7ba['uint32']()));break;default:_0xeba7ba['skipType'](0x7&tag);}}return _0x1971a8;},CommentsV2GetDocumentThreadsResponse['decodeDelimited']=function(_0x5cb9f4){return _0x5cb9f4 instanceof _0x53a355||(_0x5cb9f4=new _0x53a355(_0x5cb9f4)),this['decode'](_0x5cb9f4,_0x5cb9f4['uint32']());},CommentsV2GetDocumentThreadsResponse['verify']=function(_0x49341a){if('object'!=typeof _0x49341a||null===_0x49341a)return'object\x20expected';if(null!=_0x49341a['threads']&&_0x49341a['hasOwnProperty']('threads')){if(!Array['isArray'](_0x49341a['threads']))return'threads:\x20array\x20expected';for(var _0x791ff3=0x0;_0x791ff3<_0x49341a['threads']['length'];++_0x791ff3)if(!$util['isString'](_0x49341a['threads'][_0x791ff3]))return'threads:\x20string[]\x20expected';}if(null!=_0x49341a['threadsV2']&&_0x49341a['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x49341a['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x791ff3=0x0;_0x791ff3<_0x49341a['threadsV2']['length'];++_0x791ff3){var _0x5f0069=$root['CommentsThreadDescriptor']['verify'](_0x49341a['threadsV2'][_0x791ff3]);if(_0x5f0069)return'threadsV2.'+_0x5f0069;}}return null;},CommentsV2GetDocumentThreadsResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2GetDocumentThreadsResponse'])return object;var _0x14a656=new $root['CommentsV2GetDocumentThreadsResponse']();if(object['threads']){if(!Array['isArray'](object['threads']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threads:\x20array\x20expected');_0x14a656['threads']=[];for(var _0x5d46e8=0x0;_0x5d46e8<object['threads']['length'];++_0x5d46e8)_0x14a656['threads'][_0x5d46e8]=String(object['threads'][_0x5d46e8]);}if(object['threadsV2']){if(!Array['isArray'](object['threadsV2']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20array\x20expected');_0x14a656['threadsV2']=[];for(_0x5d46e8=0x0;_0x5d46e8<object['threadsV2']['length'];++_0x5d46e8){if('object'!=typeof object['threadsV2'][_0x5d46e8])throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20object\x20expected');_0x14a656['threadsV2'][_0x5d46e8]=$root['CommentsThreadDescriptor']['fromObject'](object['threadsV2'][_0x5d46e8]);}}return _0x14a656;},CommentsV2GetDocumentThreadsResponse['toObject']=function(_0x3b2526,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['threads']=[],object['threadsV2']=[]),_0x3b2526['threads']&&_0x3b2526['threads']['length']){object['threads']=[];for(var _0x57f098=0x0;_0x57f098<_0x3b2526['threads']['length'];++_0x57f098)object['threads'][_0x57f098]=_0x3b2526['threads'][_0x57f098];}if(_0x3b2526['threadsV2']&&_0x3b2526['threadsV2']['length']){object['threadsV2']=[];for(_0x57f098=0x0;_0x57f098<_0x3b2526['threadsV2']['length'];++_0x57f098)object['threadsV2'][_0x57f098]=$root['CommentsThreadDescriptor']['toObject'](_0x3b2526['threadsV2'][_0x57f098],options);}return object;},CommentsV2GetDocumentThreadsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetDocumentThreadsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetDocumentThreadsResponse';},CommentsV2GetDocumentThreadsResponse;}()),$root['CommentsV2GetCommentThreadResponse']=(function(){function CommentsV2GetCommentThreadResponse(properties){if(this['comments']=[],this['commentsV2']=[],properties){for(var _0x46a692=Object['keys'](properties),_0x2bd9e1=0x0;_0x2bd9e1<_0x46a692['length'];++_0x2bd9e1)null!=properties[_0x46a692[_0x2bd9e1]]&&(this[_0x46a692[_0x2bd9e1]]=properties[_0x46a692[_0x2bd9e1]]);}}return CommentsV2GetCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2GetCommentThreadResponse['prototype']['comments']=$util['emptyArray'],CommentsV2GetCommentThreadResponse['prototype']['commentsV2']=$util['emptyArray'],CommentsV2GetCommentThreadResponse['prototype']['resolvedAt']='',CommentsV2GetCommentThreadResponse['prototype']['resolvedBy']='',CommentsV2GetCommentThreadResponse['prototype']['context']='',CommentsV2GetCommentThreadResponse['prototype']['createdAt']='',CommentsV2GetCommentThreadResponse['prototype']['deletedAt']='',CommentsV2GetCommentThreadResponse['prototype']['attributes']='',CommentsV2GetCommentThreadResponse['prototype']['unlinkedAt']='',CommentsV2GetCommentThreadResponse['create']=function(properties){return new CommentsV2GetCommentThreadResponse(properties);},CommentsV2GetCommentThreadResponse['encode']=function(_0x18676e,writer){if(writer||(writer=$Writer['create']()),null!=_0x18676e['commentThreadId']&&Object['hasOwnProperty']['call'](_0x18676e,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x18676e['commentThreadId']),null!=_0x18676e['comments']&&_0x18676e['comments']['length']){for(var _0xadd803=0x0;_0xadd803<_0x18676e['comments']['length'];++_0xadd803)writer['uint32'](0x12)['string'](_0x18676e['comments'][_0xadd803]);}if(null!=_0x18676e['commentsV2']&&_0x18676e['commentsV2']['length']){for(_0xadd803=0x0;_0xadd803<_0x18676e['commentsV2']['length'];++_0xadd803)$root['CommentDescriptor']['encode'](_0x18676e['commentsV2'][_0xadd803],writer['uint32'](0x1a)['fork']())['ldelim']();}return null!=_0x18676e['resolvedAt']&&Object['hasOwnProperty']['call'](_0x18676e,'resolvedAt')&&writer['uint32'](0x22)['string'](_0x18676e['resolvedAt']),null!=_0x18676e['resolvedBy']&&Object['hasOwnProperty']['call'](_0x18676e,'resolvedBy')&&writer['uint32'](0x2a)['string'](_0x18676e['resolvedBy']),null!=_0x18676e['context']&&Object['hasOwnProperty']['call'](_0x18676e,'context')&&writer['uint32'](0x32)['string'](_0x18676e['context']),null!=_0x18676e['createdAt']&&Object['hasOwnProperty']['call'](_0x18676e,'createdAt')&&writer['uint32'](0x3a)['string'](_0x18676e['createdAt']),null!=_0x18676e['deletedAt']&&Object['hasOwnProperty']['call'](_0x18676e,'deletedAt')&&writer['uint32'](0x42)['string'](_0x18676e['deletedAt']),null!=_0x18676e['attributes']&&Object['hasOwnProperty']['call'](_0x18676e,'attributes')&&writer['uint32'](0x4a)['string'](_0x18676e['attributes']),null!=_0x18676e['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x18676e,'unlinkedAt')&&writer['uint32'](0x52)['string'](_0x18676e['unlinkedAt']),writer;},CommentsV2GetCommentThreadResponse['encodeDelimited']=function(_0x330c58,writer){return this['encode'](_0x330c58,writer)['ldelim']();},CommentsV2GetCommentThreadResponse['decode']=function(_0x4325e0,length,_0xf25902){_0x4325e0 instanceof _0x53a355||(_0x4325e0=_0x53a355['create'](_0x4325e0));for(var _0x51b942=void 0x0===length?_0x4325e0['len']:_0x4325e0['pos']+length,_0x4015f6=new $root['CommentsV2GetCommentThreadResponse']();_0x4325e0['pos']<_0x51b942;){var tag=_0x4325e0['uint32']();if(tag===_0xf25902)break;switch(tag>>>0x3){case 0x1:_0x4015f6['commentThreadId']=_0x4325e0['string']();break;case 0x2:_0x4015f6['comments']&&_0x4015f6['comments']['length']||(_0x4015f6['comments']=[]),_0x4015f6['comments']['push'](_0x4325e0['string']());break;case 0x3:_0x4015f6['commentsV2']&&_0x4015f6['commentsV2']['length']||(_0x4015f6['commentsV2']=[]),_0x4015f6['commentsV2']['push']($root['CommentDescriptor']['decode'](_0x4325e0,_0x4325e0['uint32']()));break;case 0x4:_0x4015f6['resolvedAt']=_0x4325e0['string']();break;case 0x5:_0x4015f6['resolvedBy']=_0x4325e0['string']();break;case 0x6:_0x4015f6['context']=_0x4325e0['string']();break;case 0x7:_0x4015f6['createdAt']=_0x4325e0['string']();break;case 0x8:_0x4015f6['deletedAt']=_0x4325e0['string']();break;case 0x9:_0x4015f6['attributes']=_0x4325e0['string']();break;case 0xa:_0x4015f6['unlinkedAt']=_0x4325e0['string']();break;default:_0x4325e0['skipType'](0x7&tag);}}return _0x4015f6;},CommentsV2GetCommentThreadResponse['decodeDelimited']=function(_0x2ee8c4){return _0x2ee8c4 instanceof _0x53a355||(_0x2ee8c4=new _0x53a355(_0x2ee8c4)),this['decode'](_0x2ee8c4,_0x2ee8c4['uint32']());},CommentsV2GetCommentThreadResponse['verify']=function(_0x3f435a){if('object'!=typeof _0x3f435a||null===_0x3f435a)return'object\x20expected';if(null!=_0x3f435a['commentThreadId']&&_0x3f435a['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x3f435a['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x3f435a['comments']&&_0x3f435a['hasOwnProperty']('comments')){if(!Array['isArray'](_0x3f435a['comments']))return'comments:\x20array\x20expected';for(var _0x1489af=0x0;_0x1489af<_0x3f435a['comments']['length'];++_0x1489af)if(!$util['isString'](_0x3f435a['comments'][_0x1489af]))return'comments:\x20string[]\x20expected';}if(null!=_0x3f435a['commentsV2']&&_0x3f435a['hasOwnProperty']('commentsV2')){if(!Array['isArray'](_0x3f435a['commentsV2']))return'commentsV2:\x20array\x20expected';for(_0x1489af=0x0;_0x1489af<_0x3f435a['commentsV2']['length'];++_0x1489af){var _0x18da5b=$root['CommentDescriptor']['verify'](_0x3f435a['commentsV2'][_0x1489af]);if(_0x18da5b)return'commentsV2.'+_0x18da5b;}}return null!=_0x3f435a['resolvedAt']&&_0x3f435a['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x3f435a['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x3f435a['resolvedBy']&&_0x3f435a['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x3f435a['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x3f435a['context']&&_0x3f435a['hasOwnProperty']('context')&&!$util['isString'](_0x3f435a['context'])?'context:\x20string\x20expected':null!=_0x3f435a['createdAt']&&_0x3f435a['hasOwnProperty']('createdAt')&&!$util['isString'](_0x3f435a['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3f435a['deletedAt']&&_0x3f435a['hasOwnProperty']('deletedAt')&&!$util['isString'](_0x3f435a['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x3f435a['attributes']&&_0x3f435a['hasOwnProperty']('attributes')&&!$util['isString'](_0x3f435a['attributes'])?'attributes:\x20string\x20expected':null!=_0x3f435a['unlinkedAt']&&_0x3f435a['hasOwnProperty']('unlinkedAt')&&!$util['isString'](_0x3f435a['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsV2GetCommentThreadResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2GetCommentThreadResponse'])return object;var _0x333b37=new $root['CommentsV2GetCommentThreadResponse']();if(null!=object['commentThreadId']&&(_0x333b37['commentThreadId']=String(object['commentThreadId'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2GetCommentThreadResponse.comments:\x20array\x20expected');_0x333b37['comments']=[];for(var _0x470ac2=0x0;_0x470ac2<object['comments']['length'];++_0x470ac2)_0x333b37['comments'][_0x470ac2]=String(object['comments'][_0x470ac2]);}if(object['commentsV2']){if(!Array['isArray'](object['commentsV2']))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20array\x20expected');_0x333b37['commentsV2']=[];for(_0x470ac2=0x0;_0x470ac2<object['commentsV2']['length'];++_0x470ac2){if('object'!=typeof object['commentsV2'][_0x470ac2])throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20object\x20expected');_0x333b37['commentsV2'][_0x470ac2]=$root['CommentDescriptor']['fromObject'](object['commentsV2'][_0x470ac2]);}}return null!=object['resolvedAt']&&(_0x333b37['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x333b37['resolvedBy']=String(object['resolvedBy'])),null!=object['context']&&(_0x333b37['context']=String(object['context'])),null!=object['createdAt']&&(_0x333b37['createdAt']=String(object['createdAt'])),null!=object['deletedAt']&&(_0x333b37['deletedAt']=String(object['deletedAt'])),null!=object['attributes']&&(_0x333b37['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x333b37['unlinkedAt']=String(object['unlinkedAt'])),_0x333b37;},CommentsV2GetCommentThreadResponse['toObject']=function(_0x2c96bb,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[],object['commentsV2']=[]),options['defaults']&&(object['commentThreadId']='',object['resolvedAt']='',object['resolvedBy']='',object['context']='',object['createdAt']='',object['deletedAt']='',object['attributes']='',object['unlinkedAt']=''),null!=_0x2c96bb['commentThreadId']&&_0x2c96bb['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x2c96bb['commentThreadId']),_0x2c96bb['comments']&&_0x2c96bb['comments']['length']){object['comments']=[];for(var _0x344e3d=0x0;_0x344e3d<_0x2c96bb['comments']['length'];++_0x344e3d)object['comments'][_0x344e3d]=_0x2c96bb['comments'][_0x344e3d];}if(_0x2c96bb['commentsV2']&&_0x2c96bb['commentsV2']['length']){object['commentsV2']=[];for(_0x344e3d=0x0;_0x344e3d<_0x2c96bb['commentsV2']['length'];++_0x344e3d)object['commentsV2'][_0x344e3d]=$root['CommentDescriptor']['toObject'](_0x2c96bb['commentsV2'][_0x344e3d],options);}return null!=_0x2c96bb['resolvedAt']&&_0x2c96bb['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x2c96bb['resolvedAt']),null!=_0x2c96bb['resolvedBy']&&_0x2c96bb['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x2c96bb['resolvedBy']),null!=_0x2c96bb['context']&&_0x2c96bb['hasOwnProperty']('context')&&(object['context']=_0x2c96bb['context']),null!=_0x2c96bb['createdAt']&&_0x2c96bb['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x2c96bb['createdAt']),null!=_0x2c96bb['deletedAt']&&_0x2c96bb['hasOwnProperty']('deletedAt')&&(object['deletedAt']=_0x2c96bb['deletedAt']),null!=_0x2c96bb['attributes']&&_0x2c96bb['hasOwnProperty']('attributes')&&(object['attributes']=_0x2c96bb['attributes']),null!=_0x2c96bb['unlinkedAt']&&_0x2c96bb['hasOwnProperty']('unlinkedAt')&&(object['unlinkedAt']=_0x2c96bb['unlinkedAt']),object;},CommentsV2GetCommentThreadResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetCommentThreadResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetCommentThreadResponse';},CommentsV2GetCommentThreadResponse;}()),$root['CommentsV2ConnectResponse']=(function(){function CommentsV2ConnectResponse(properties){if(this['threads']=[],this['threadsV2']=[],properties){for(var _0x1e3734=Object['keys'](properties),_0x1a72bc=0x0;_0x1a72bc<_0x1e3734['length'];++_0x1a72bc)null!=properties[_0x1e3734[_0x1a72bc]]&&(this[_0x1e3734[_0x1a72bc]]=properties[_0x1e3734[_0x1a72bc]]);}}return CommentsV2ConnectResponse['prototype']['channel']='',CommentsV2ConnectResponse['prototype']['threads']=$util['emptyArray'],CommentsV2ConnectResponse['prototype']['threadsV2']=$util['emptyArray'],CommentsV2ConnectResponse['create']=function(properties){return new CommentsV2ConnectResponse(properties);},CommentsV2ConnectResponse['encode']=function(_0x223702,writer){if(writer||(writer=$Writer['create']()),null!=_0x223702['channel']&&Object['hasOwnProperty']['call'](_0x223702,'channel')&&writer['uint32'](0xa)['string'](_0x223702['channel']),null!=_0x223702['threads']&&_0x223702['threads']['length']){for(var _0x51ea09=0x0;_0x51ea09<_0x223702['threads']['length'];++_0x51ea09)writer['uint32'](0x12)['string'](_0x223702['threads'][_0x51ea09]);}if(null!=_0x223702['threadsV2']&&_0x223702['threadsV2']['length']){for(_0x51ea09=0x0;_0x51ea09<_0x223702['threadsV2']['length'];++_0x51ea09)$root['CommentsThreadDescriptor']['encode'](_0x223702['threadsV2'][_0x51ea09],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},CommentsV2ConnectResponse['encodeDelimited']=function(_0x1ccdde,writer){return this['encode'](_0x1ccdde,writer)['ldelim']();},CommentsV2ConnectResponse['decode']=function(_0x59e5f5,length,_0x16ee92){_0x59e5f5 instanceof _0x53a355||(_0x59e5f5=_0x53a355['create'](_0x59e5f5));for(var _0x29c5cf=void 0x0===length?_0x59e5f5['len']:_0x59e5f5['pos']+length,_0x211c38=new $root['CommentsV2ConnectResponse']();_0x59e5f5['pos']<_0x29c5cf;){var tag=_0x59e5f5['uint32']();if(tag===_0x16ee92)break;switch(tag>>>0x3){case 0x1:_0x211c38['channel']=_0x59e5f5['string']();break;case 0x2:_0x211c38['threads']&&_0x211c38['threads']['length']||(_0x211c38['threads']=[]),_0x211c38['threads']['push'](_0x59e5f5['string']());break;case 0x3:_0x211c38['threadsV2']&&_0x211c38['threadsV2']['length']||(_0x211c38['threadsV2']=[]),_0x211c38['threadsV2']['push']($root['CommentsThreadDescriptor']['decode'](_0x59e5f5,_0x59e5f5['uint32']()));break;default:_0x59e5f5['skipType'](0x7&tag);}}return _0x211c38;},CommentsV2ConnectResponse['decodeDelimited']=function(_0x403bfd){return _0x403bfd instanceof _0x53a355||(_0x403bfd=new _0x53a355(_0x403bfd)),this['decode'](_0x403bfd,_0x403bfd['uint32']());},CommentsV2ConnectResponse['verify']=function(_0x30225a){if('object'!=typeof _0x30225a||null===_0x30225a)return'object\x20expected';if(null!=_0x30225a['channel']&&_0x30225a['hasOwnProperty']('channel')&&!$util['isString'](_0x30225a['channel']))return'channel:\x20string\x20expected';if(null!=_0x30225a['threads']&&_0x30225a['hasOwnProperty']('threads')){if(!Array['isArray'](_0x30225a['threads']))return'threads:\x20array\x20expected';for(var _0x263da8=0x0;_0x263da8<_0x30225a['threads']['length'];++_0x263da8)if(!$util['isString'](_0x30225a['threads'][_0x263da8]))return'threads:\x20string[]\x20expected';}if(null!=_0x30225a['threadsV2']&&_0x30225a['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x30225a['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x263da8=0x0;_0x263da8<_0x30225a['threadsV2']['length'];++_0x263da8){var _0x35c6ed=$root['CommentsThreadDescriptor']['verify'](_0x30225a['threadsV2'][_0x263da8]);if(_0x35c6ed)return'threadsV2.'+_0x35c6ed;}}return null;},CommentsV2ConnectResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2ConnectResponse'])return object;var _0x59519d=new $root['CommentsV2ConnectResponse']();if(null!=object['channel']&&(_0x59519d['channel']=String(object['channel'])),object['threads']){if(!Array['isArray'](object['threads']))throw TypeError('.CommentsV2ConnectResponse.threads:\x20array\x20expected');_0x59519d['threads']=[];for(var _0x6432b6=0x0;_0x6432b6<object['threads']['length'];++_0x6432b6)_0x59519d['threads'][_0x6432b6]=String(object['threads'][_0x6432b6]);}if(object['threadsV2']){if(!Array['isArray'](object['threadsV2']))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20array\x20expected');_0x59519d['threadsV2']=[];for(_0x6432b6=0x0;_0x6432b6<object['threadsV2']['length'];++_0x6432b6){if('object'!=typeof object['threadsV2'][_0x6432b6])throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20object\x20expected');_0x59519d['threadsV2'][_0x6432b6]=$root['CommentsThreadDescriptor']['fromObject'](object['threadsV2'][_0x6432b6]);}}return _0x59519d;},CommentsV2ConnectResponse['toObject']=function(_0x57647c,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['threads']=[],object['threadsV2']=[]),options['defaults']&&(object['channel']=''),null!=_0x57647c['channel']&&_0x57647c['hasOwnProperty']('channel')&&(object['channel']=_0x57647c['channel']),_0x57647c['threads']&&_0x57647c['threads']['length']){object['threads']=[];for(var _0x30c7f1=0x0;_0x30c7f1<_0x57647c['threads']['length'];++_0x30c7f1)object['threads'][_0x30c7f1]=_0x57647c['threads'][_0x30c7f1];}if(_0x57647c['threadsV2']&&_0x57647c['threadsV2']['length']){object['threadsV2']=[];for(_0x30c7f1=0x0;_0x30c7f1<_0x57647c['threadsV2']['length'];++_0x30c7f1)object['threadsV2'][_0x30c7f1]=$root['CommentsThreadDescriptor']['toObject'](_0x57647c['threadsV2'][_0x30c7f1],options);}return object;},CommentsV2ConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ConnectResponse';},CommentsV2ConnectResponse;}()),$root['CommentsV2AddCommentResponse']=(function(){function CommentsV2AddCommentResponse(properties){if(properties){for(var _0x15ef62=Object['keys'](properties),_0x51a5dd=0x0;_0x51a5dd<_0x15ef62['length'];++_0x51a5dd)null!=properties[_0x15ef62[_0x51a5dd]]&&(this[_0x15ef62[_0x51a5dd]]=properties[_0x15ef62[_0x51a5dd]]);}}return CommentsV2AddCommentResponse['prototype']['commentThreadId']='',CommentsV2AddCommentResponse['prototype']['commentId']='',CommentsV2AddCommentResponse['prototype']['createdAt']='',CommentsV2AddCommentResponse['create']=function(properties){return new CommentsV2AddCommentResponse(properties);},CommentsV2AddCommentResponse['encode']=function(_0x386b17,writer){return writer||(writer=$Writer['create']()),null!=_0x386b17['commentThreadId']&&Object['hasOwnProperty']['call'](_0x386b17,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x386b17['commentThreadId']),null!=_0x386b17['commentId']&&Object['hasOwnProperty']['call'](_0x386b17,'commentId')&&writer['uint32'](0x12)['string'](_0x386b17['commentId']),null!=_0x386b17['createdAt']&&Object['hasOwnProperty']['call'](_0x386b17,'createdAt')&&writer['uint32'](0x1a)['string'](_0x386b17['createdAt']),writer;},CommentsV2AddCommentResponse['encodeDelimited']=function(_0xa7ee4b,writer){return this['encode'](_0xa7ee4b,writer)['ldelim']();},CommentsV2AddCommentResponse['decode']=function(_0x4d59e3,length,_0x4ac381){_0x4d59e3 instanceof _0x53a355||(_0x4d59e3=_0x53a355['create'](_0x4d59e3));for(var _0x3e457b=void 0x0===length?_0x4d59e3['len']:_0x4d59e3['pos']+length,_0x275ffa=new $root['CommentsV2AddCommentResponse']();_0x4d59e3['pos']<_0x3e457b;){var tag=_0x4d59e3['uint32']();if(tag===_0x4ac381)break;switch(tag>>>0x3){case 0x1:_0x275ffa['commentThreadId']=_0x4d59e3['string']();break;case 0x2:_0x275ffa['commentId']=_0x4d59e3['string']();break;case 0x3:_0x275ffa['createdAt']=_0x4d59e3['string']();break;default:_0x4d59e3['skipType'](0x7&tag);}}return _0x275ffa;},CommentsV2AddCommentResponse['decodeDelimited']=function(_0x26e773){return _0x26e773 instanceof _0x53a355||(_0x26e773=new _0x53a355(_0x26e773)),this['decode'](_0x26e773,_0x26e773['uint32']());},CommentsV2AddCommentResponse['verify']=function(_0x21aee2){return'object'!=typeof _0x21aee2||null===_0x21aee2?'object\x20expected':null!=_0x21aee2['commentThreadId']&&_0x21aee2['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x21aee2['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x21aee2['commentId']&&_0x21aee2['hasOwnProperty']('commentId')&&!$util['isString'](_0x21aee2['commentId'])?'commentId:\x20string\x20expected':null!=_0x21aee2['createdAt']&&_0x21aee2['hasOwnProperty']('createdAt')&&!$util['isString'](_0x21aee2['createdAt'])?'createdAt:\x20string\x20expected':null;},CommentsV2AddCommentResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentResponse'])return object;var _0x27c4fb=new $root['CommentsV2AddCommentResponse']();return null!=object['commentThreadId']&&(_0x27c4fb['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x27c4fb['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0x27c4fb['createdAt']=String(object['createdAt'])),_0x27c4fb;},CommentsV2AddCommentResponse['toObject']=function(_0x4babd4,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['createdAt']=''),null!=_0x4babd4['commentThreadId']&&_0x4babd4['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x4babd4['commentThreadId']),null!=_0x4babd4['commentId']&&_0x4babd4['hasOwnProperty']('commentId')&&(object['commentId']=_0x4babd4['commentId']),null!=_0x4babd4['createdAt']&&_0x4babd4['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x4babd4['createdAt']),object;},CommentsV2AddCommentResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentResponse';},CommentsV2AddCommentResponse;}()),$root['CommentsV2ResolveCommentThreadResponse']=(function(){function CommentsV2ResolveCommentThreadResponse(properties){if(properties){for(var _0x1f3064=Object['keys'](properties),_0xe8bf7a=0x0;_0xe8bf7a<_0x1f3064['length'];++_0xe8bf7a)null!=properties[_0x1f3064[_0xe8bf7a]]&&(this[_0x1f3064[_0xe8bf7a]]=properties[_0x1f3064[_0xe8bf7a]]);}}return CommentsV2ResolveCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2ResolveCommentThreadResponse['prototype']['documentId']='',CommentsV2ResolveCommentThreadResponse['prototype']['resolvedAt']='',CommentsV2ResolveCommentThreadResponse['prototype']['resolvedBy']='',CommentsV2ResolveCommentThreadResponse['create']=function(properties){return new CommentsV2ResolveCommentThreadResponse(properties);},CommentsV2ResolveCommentThreadResponse['encode']=function(_0x2ed48b,writer){return writer||(writer=$Writer['create']()),null!=_0x2ed48b['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2ed48b,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x2ed48b['commentThreadId']),null!=_0x2ed48b['documentId']&&Object['hasOwnProperty']['call'](_0x2ed48b,'documentId')&&writer['uint32'](0x12)['string'](_0x2ed48b['documentId']),null!=_0x2ed48b['resolvedAt']&&Object['hasOwnProperty']['call'](_0x2ed48b,'resolvedAt')&&writer['uint32'](0x1a)['string'](_0x2ed48b['resolvedAt']),null!=_0x2ed48b['resolvedBy']&&Object['hasOwnProperty']['call'](_0x2ed48b,'resolvedBy')&&writer['uint32'](0x22)['string'](_0x2ed48b['resolvedBy']),writer;},CommentsV2ResolveCommentThreadResponse['encodeDelimited']=function(_0x45eb97,writer){return this['encode'](_0x45eb97,writer)['ldelim']();},CommentsV2ResolveCommentThreadResponse['decode']=function(_0x377fec,length,_0x8fb9e2){_0x377fec instanceof _0x53a355||(_0x377fec=_0x53a355['create'](_0x377fec));for(var _0x5f559b=void 0x0===length?_0x377fec['len']:_0x377fec['pos']+length,_0x2df3a8=new $root['CommentsV2ResolveCommentThreadResponse']();_0x377fec['pos']<_0x5f559b;){var tag=_0x377fec['uint32']();if(tag===_0x8fb9e2)break;switch(tag>>>0x3){case 0x1:_0x2df3a8['commentThreadId']=_0x377fec['string']();break;case 0x2:_0x2df3a8['documentId']=_0x377fec['string']();break;case 0x3:_0x2df3a8['resolvedAt']=_0x377fec['string']();break;case 0x4:_0x2df3a8['resolvedBy']=_0x377fec['string']();break;default:_0x377fec['skipType'](0x7&tag);}}return _0x2df3a8;},CommentsV2ResolveCommentThreadResponse['decodeDelimited']=function(_0x38330d){return _0x38330d instanceof _0x53a355||(_0x38330d=new _0x53a355(_0x38330d)),this['decode'](_0x38330d,_0x38330d['uint32']());},CommentsV2ResolveCommentThreadResponse['verify']=function(_0x17e736){return'object'!=typeof _0x17e736||null===_0x17e736?'object\x20expected':null!=_0x17e736['commentThreadId']&&_0x17e736['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x17e736['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x17e736['documentId']&&_0x17e736['hasOwnProperty']('documentId')&&!$util['isString'](_0x17e736['documentId'])?'documentId:\x20string\x20expected':null!=_0x17e736['resolvedAt']&&_0x17e736['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x17e736['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x17e736['resolvedBy']&&_0x17e736['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x17e736['resolvedBy'])?'resolvedBy:\x20string\x20expected':null;},CommentsV2ResolveCommentThreadResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2ResolveCommentThreadResponse'])return object;var _0x5f255a=new $root['CommentsV2ResolveCommentThreadResponse']();return null!=object['commentThreadId']&&(_0x5f255a['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x5f255a['documentId']=String(object['documentId'])),null!=object['resolvedAt']&&(_0x5f255a['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x5f255a['resolvedBy']=String(object['resolvedBy'])),_0x5f255a;},CommentsV2ResolveCommentThreadResponse['toObject']=function(_0x325157,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['resolvedAt']='',object['resolvedBy']=''),null!=_0x325157['commentThreadId']&&_0x325157['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x325157['commentThreadId']),null!=_0x325157['documentId']&&_0x325157['hasOwnProperty']('documentId')&&(object['documentId']=_0x325157['documentId']),null!=_0x325157['resolvedAt']&&_0x325157['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x325157['resolvedAt']),null!=_0x325157['resolvedBy']&&_0x325157['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x325157['resolvedBy']),object;},CommentsV2ResolveCommentThreadResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ResolveCommentThreadResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ResolveCommentThreadResponse';},CommentsV2ResolveCommentThreadResponse;}()),$root['CommentsV2AddCommentThreadResponse']=(function(){function CommentsV2AddCommentThreadResponse(properties){if(this['comments']=[],properties){for(var _0x2306b0=Object['keys'](properties),_0x566157=0x0;_0x566157<_0x2306b0['length'];++_0x566157)null!=properties[_0x2306b0[_0x566157]]&&(this[_0x2306b0[_0x566157]]=properties[_0x2306b0[_0x566157]]);}}return CommentsV2AddCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2AddCommentThreadResponse['prototype']['createdAt']='',CommentsV2AddCommentThreadResponse['prototype']['comments']=$util['emptyArray'],CommentsV2AddCommentThreadResponse['create']=function(properties){return new CommentsV2AddCommentThreadResponse(properties);},CommentsV2AddCommentThreadResponse['encode']=function(_0xe36ea1,writer){if(writer||(writer=$Writer['create']()),null!=_0xe36ea1['commentThreadId']&&Object['hasOwnProperty']['call'](_0xe36ea1,'commentThreadId')&&writer['uint32'](0xa)['string'](_0xe36ea1['commentThreadId']),null!=_0xe36ea1['createdAt']&&Object['hasOwnProperty']['call'](_0xe36ea1,'createdAt')&&writer['uint32'](0x12)['string'](_0xe36ea1['createdAt']),null!=_0xe36ea1['comments']&&_0xe36ea1['comments']['length']){for(var _0x4d105e=0x0;_0x4d105e<_0xe36ea1['comments']['length'];++_0x4d105e)$root['CommentThreadAddedCommentDescriptor']['encode'](_0xe36ea1['comments'][_0x4d105e],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},CommentsV2AddCommentThreadResponse['encodeDelimited']=function(_0x483072,writer){return this['encode'](_0x483072,writer)['ldelim']();},CommentsV2AddCommentThreadResponse['decode']=function(_0x455739,length,_0x33ab23){_0x455739 instanceof _0x53a355||(_0x455739=_0x53a355['create'](_0x455739));for(var _0x44199f=void 0x0===length?_0x455739['len']:_0x455739['pos']+length,_0x3f3c1f=new $root['CommentsV2AddCommentThreadResponse']();_0x455739['pos']<_0x44199f;){var tag=_0x455739['uint32']();if(tag===_0x33ab23)break;switch(tag>>>0x3){case 0x1:_0x3f3c1f['commentThreadId']=_0x455739['string']();break;case 0x2:_0x3f3c1f['createdAt']=_0x455739['string']();break;case 0x3:_0x3f3c1f['comments']&&_0x3f3c1f['comments']['length']||(_0x3f3c1f['comments']=[]),_0x3f3c1f['comments']['push']($root['CommentThreadAddedCommentDescriptor']['decode'](_0x455739,_0x455739['uint32']()));break;default:_0x455739['skipType'](0x7&tag);}}return _0x3f3c1f;},CommentsV2AddCommentThreadResponse['decodeDelimited']=function(_0x3207f2){return _0x3207f2 instanceof _0x53a355||(_0x3207f2=new _0x53a355(_0x3207f2)),this['decode'](_0x3207f2,_0x3207f2['uint32']());},CommentsV2AddCommentThreadResponse['verify']=function(_0x211813){if('object'!=typeof _0x211813||null===_0x211813)return'object\x20expected';if(null!=_0x211813['commentThreadId']&&_0x211813['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x211813['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x211813['createdAt']&&_0x211813['hasOwnProperty']('createdAt')&&!$util['isString'](_0x211813['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x211813['comments']&&_0x211813['hasOwnProperty']('comments')){if(!Array['isArray'](_0x211813['comments']))return'comments:\x20array\x20expected';for(var _0x33e365=0x0;_0x33e365<_0x211813['comments']['length'];++_0x33e365){var _0x18bf2e=$root['CommentThreadAddedCommentDescriptor']['verify'](_0x211813['comments'][_0x33e365]);if(_0x18bf2e)return'comments.'+_0x18bf2e;}}return null;},CommentsV2AddCommentThreadResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentThreadResponse'])return object;var _0x58e5d4=new $root['CommentsV2AddCommentThreadResponse']();if(null!=object['commentThreadId']&&(_0x58e5d4['commentThreadId']=String(object['commentThreadId'])),null!=object['createdAt']&&(_0x58e5d4['createdAt']=String(object['createdAt'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20array\x20expected');_0x58e5d4['comments']=[];for(var _0x205a62=0x0;_0x205a62<object['comments']['length'];++_0x205a62){if('object'!=typeof object['comments'][_0x205a62])throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20object\x20expected');_0x58e5d4['comments'][_0x205a62]=$root['CommentThreadAddedCommentDescriptor']['fromObject'](object['comments'][_0x205a62]);}}return _0x58e5d4;},CommentsV2AddCommentThreadResponse['toObject']=function(_0x198c2c,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[]),options['defaults']&&(object['commentThreadId']='',object['createdAt']=''),null!=_0x198c2c['commentThreadId']&&_0x198c2c['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x198c2c['commentThreadId']),null!=_0x198c2c['createdAt']&&_0x198c2c['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x198c2c['createdAt']),_0x198c2c['comments']&&_0x198c2c['comments']['length']){object['comments']=[];for(var _0x23df84=0x0;_0x23df84<_0x198c2c['comments']['length'];++_0x23df84)object['comments'][_0x23df84]=$root['CommentThreadAddedCommentDescriptor']['toObject'](_0x198c2c['comments'][_0x23df84],options);}return object;},CommentsV2AddCommentThreadResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentThreadResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentThreadResponse';},CommentsV2AddCommentThreadResponse;}()),$root['CommentsV2UpdateCommentMessage']=(function(){function CommentsV2UpdateCommentMessage(properties){if(properties){for(var _0x21a676=Object['keys'](properties),_0x369ca9=0x0;_0x369ca9<_0x21a676['length'];++_0x369ca9)null!=properties[_0x21a676[_0x369ca9]]&&(this[_0x21a676[_0x369ca9]]=properties[_0x21a676[_0x369ca9]]);}}return CommentsV2UpdateCommentMessage['prototype']['commentThreadId']='',CommentsV2UpdateCommentMessage['prototype']['commentId']='',CommentsV2UpdateCommentMessage['prototype']['content']='',CommentsV2UpdateCommentMessage['prototype']['documentId']='',CommentsV2UpdateCommentMessage['prototype']['attributes']='',CommentsV2UpdateCommentMessage['prototype']['isAttributesUpdated']=!0x1,CommentsV2UpdateCommentMessage['prototype']['commentThread']=null,CommentsV2UpdateCommentMessage['create']=function(properties){return new CommentsV2UpdateCommentMessage(properties);},CommentsV2UpdateCommentMessage['encode']=function(_0x25d0fd,writer){return writer||(writer=$Writer['create']()),null!=_0x25d0fd['commentThreadId']&&Object['hasOwnProperty']['call'](_0x25d0fd,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x25d0fd['commentThreadId']),null!=_0x25d0fd['commentId']&&Object['hasOwnProperty']['call'](_0x25d0fd,'commentId')&&writer['uint32'](0x12)['string'](_0x25d0fd['commentId']),null!=_0x25d0fd['content']&&Object['hasOwnProperty']['call'](_0x25d0fd,'content')&&writer['uint32'](0x1a)['string'](_0x25d0fd['content']),null!=_0x25d0fd['documentId']&&Object['hasOwnProperty']['call'](_0x25d0fd,'documentId')&&writer['uint32'](0x22)['string'](_0x25d0fd['documentId']),null!=_0x25d0fd['attributes']&&Object['hasOwnProperty']['call'](_0x25d0fd,'attributes')&&writer['uint32'](0x2a)['string'](_0x25d0fd['attributes']),null!=_0x25d0fd['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x25d0fd,'isAttributesUpdated')&&writer['uint32'](0x30)['bool'](_0x25d0fd['isAttributesUpdated']),null!=_0x25d0fd['commentThread']&&Object['hasOwnProperty']['call'](_0x25d0fd,'commentThread')&&$root['CommentsThreadDescriptor']['encode'](_0x25d0fd['commentThread'],writer['uint32'](0x3a)['fork']())['ldelim'](),writer;},CommentsV2UpdateCommentMessage['encodeDelimited']=function(_0x79e4cb,writer){return this['encode'](_0x79e4cb,writer)['ldelim']();},CommentsV2UpdateCommentMessage['decode']=function(_0x2fb03e,length,_0x2e9b57){_0x2fb03e instanceof _0x53a355||(_0x2fb03e=_0x53a355['create'](_0x2fb03e));for(var _0x12f557=void 0x0===length?_0x2fb03e['len']:_0x2fb03e['pos']+length,_0x3cb19e=new $root['CommentsV2UpdateCommentMessage']();_0x2fb03e['pos']<_0x12f557;){var tag=_0x2fb03e['uint32']();if(tag===_0x2e9b57)break;switch(tag>>>0x3){case 0x1:_0x3cb19e['commentThreadId']=_0x2fb03e['string']();break;case 0x2:_0x3cb19e['commentId']=_0x2fb03e['string']();break;case 0x3:_0x3cb19e['content']=_0x2fb03e['string']();break;case 0x4:_0x3cb19e['documentId']=_0x2fb03e['string']();break;case 0x5:_0x3cb19e['attributes']=_0x2fb03e['string']();break;case 0x6:_0x3cb19e['isAttributesUpdated']=_0x2fb03e['bool']();break;case 0x7:_0x3cb19e['commentThread']=$root['CommentsThreadDescriptor']['decode'](_0x2fb03e,_0x2fb03e['uint32']());break;default:_0x2fb03e['skipType'](0x7&tag);}}return _0x3cb19e;},CommentsV2UpdateCommentMessage['decodeDelimited']=function(_0x20abd5){return _0x20abd5 instanceof _0x53a355||(_0x20abd5=new _0x53a355(_0x20abd5)),this['decode'](_0x20abd5,_0x20abd5['uint32']());},CommentsV2UpdateCommentMessage['verify']=function(_0xd3c2bf){if('object'!=typeof _0xd3c2bf||null===_0xd3c2bf)return'object\x20expected';if(null!=_0xd3c2bf['commentThreadId']&&_0xd3c2bf['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0xd3c2bf['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0xd3c2bf['commentId']&&_0xd3c2bf['hasOwnProperty']('commentId')&&!$util['isString'](_0xd3c2bf['commentId']))return'commentId:\x20string\x20expected';if(null!=_0xd3c2bf['content']&&_0xd3c2bf['hasOwnProperty']('content')&&!$util['isString'](_0xd3c2bf['content']))return'content:\x20string\x20expected';if(null!=_0xd3c2bf['documentId']&&_0xd3c2bf['hasOwnProperty']('documentId')&&!$util['isString'](_0xd3c2bf['documentId']))return'documentId:\x20string\x20expected';if(null!=_0xd3c2bf['attributes']&&_0xd3c2bf['hasOwnProperty']('attributes')&&!$util['isString'](_0xd3c2bf['attributes']))return'attributes:\x20string\x20expected';if(null!=_0xd3c2bf['isAttributesUpdated']&&_0xd3c2bf['hasOwnProperty']('isAttributesUpdated')&&'boolean'!=typeof _0xd3c2bf['isAttributesUpdated'])return'isAttributesUpdated:\x20boolean\x20expected';if(null!=_0xd3c2bf['commentThread']&&_0xd3c2bf['hasOwnProperty']('commentThread')){var _0xdd4a4b=$root['CommentsThreadDescriptor']['verify'](_0xd3c2bf['commentThread']);if(_0xdd4a4b)return'commentThread.'+_0xdd4a4b;}return null;},CommentsV2UpdateCommentMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2UpdateCommentMessage'])return object;var _0x46dbc7=new $root['CommentsV2UpdateCommentMessage']();if(null!=object['commentThreadId']&&(_0x46dbc7['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x46dbc7['commentId']=String(object['commentId'])),null!=object['content']&&(_0x46dbc7['content']=String(object['content'])),null!=object['documentId']&&(_0x46dbc7['documentId']=String(object['documentId'])),null!=object['attributes']&&(_0x46dbc7['attributes']=String(object['attributes'])),null!=object['isAttributesUpdated']&&(_0x46dbc7['isAttributesUpdated']=Boolean(object['isAttributesUpdated'])),null!=object['commentThread']){if('object'!=typeof object['commentThread'])throw TypeError('.CommentsV2UpdateCommentMessage.commentThread:\x20object\x20expected');_0x46dbc7['commentThread']=$root['CommentsThreadDescriptor']['fromObject'](object['commentThread']);}return _0x46dbc7;},CommentsV2UpdateCommentMessage['toObject']=function(_0x2debcc,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['content']='',object['documentId']='',object['attributes']='',object['isAttributesUpdated']=!0x1,object['commentThread']=null),null!=_0x2debcc['commentThreadId']&&_0x2debcc['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x2debcc['commentThreadId']),null!=_0x2debcc['commentId']&&_0x2debcc['hasOwnProperty']('commentId')&&(object['commentId']=_0x2debcc['commentId']),null!=_0x2debcc['content']&&_0x2debcc['hasOwnProperty']('content')&&(object['content']=_0x2debcc['content']),null!=_0x2debcc['documentId']&&_0x2debcc['hasOwnProperty']('documentId')&&(object['documentId']=_0x2debcc['documentId']),null!=_0x2debcc['attributes']&&_0x2debcc['hasOwnProperty']('attributes')&&(object['attributes']=_0x2debcc['attributes']),null!=_0x2debcc['isAttributesUpdated']&&_0x2debcc['hasOwnProperty']('isAttributesUpdated')&&(object['isAttributesUpdated']=_0x2debcc['isAttributesUpdated']),null!=_0x2debcc['commentThread']&&_0x2debcc['hasOwnProperty']('commentThread')&&(object['commentThread']=$root['CommentsThreadDescriptor']['toObject'](_0x2debcc['commentThread'],options)),object;},CommentsV2UpdateCommentMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2UpdateCommentMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2UpdateCommentMessage';},CommentsV2UpdateCommentMessage;}()),$root['CommentsV2RemoveCommentThreadMessage']=(function(){function CommentsV2RemoveCommentThreadMessage(properties){if(properties){for(var _0x2ff686=Object['keys'](properties),_0x2b5e83=0x0;_0x2b5e83<_0x2ff686['length'];++_0x2b5e83)null!=properties[_0x2ff686[_0x2b5e83]]&&(this[_0x2ff686[_0x2b5e83]]=properties[_0x2ff686[_0x2b5e83]]);}}return CommentsV2RemoveCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2RemoveCommentThreadMessage['prototype']['documentId']='',CommentsV2RemoveCommentThreadMessage['create']=function(properties){return new CommentsV2RemoveCommentThreadMessage(properties);},CommentsV2RemoveCommentThreadMessage['encode']=function(_0x19fa2c,writer){return writer||(writer=$Writer['create']()),null!=_0x19fa2c['commentThreadId']&&Object['hasOwnProperty']['call'](_0x19fa2c,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x19fa2c['commentThreadId']),null!=_0x19fa2c['documentId']&&Object['hasOwnProperty']['call'](_0x19fa2c,'documentId')&&writer['uint32'](0x12)['string'](_0x19fa2c['documentId']),writer;},CommentsV2RemoveCommentThreadMessage['encodeDelimited']=function(_0x121a5c,writer){return this['encode'](_0x121a5c,writer)['ldelim']();},CommentsV2RemoveCommentThreadMessage['decode']=function(_0xf791b7,length,_0x76df08){_0xf791b7 instanceof _0x53a355||(_0xf791b7=_0x53a355['create'](_0xf791b7));for(var _0x5e4651=void 0x0===length?_0xf791b7['len']:_0xf791b7['pos']+length,_0x5315ea=new $root['CommentsV2RemoveCommentThreadMessage']();_0xf791b7['pos']<_0x5e4651;){var tag=_0xf791b7['uint32']();if(tag===_0x76df08)break;switch(tag>>>0x3){case 0x1:_0x5315ea['commentThreadId']=_0xf791b7['string']();break;case 0x2:_0x5315ea['documentId']=_0xf791b7['string']();break;default:_0xf791b7['skipType'](0x7&tag);}}return _0x5315ea;},CommentsV2RemoveCommentThreadMessage['decodeDelimited']=function(_0x480e6a){return _0x480e6a instanceof _0x53a355||(_0x480e6a=new _0x53a355(_0x480e6a)),this['decode'](_0x480e6a,_0x480e6a['uint32']());},CommentsV2RemoveCommentThreadMessage['verify']=function(_0x5f27b6){return'object'!=typeof _0x5f27b6||null===_0x5f27b6?'object\x20expected':null!=_0x5f27b6['commentThreadId']&&_0x5f27b6['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x5f27b6['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x5f27b6['documentId']&&_0x5f27b6['hasOwnProperty']('documentId')&&!$util['isString'](_0x5f27b6['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2RemoveCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2RemoveCommentThreadMessage'])return object;var _0x4cb00a=new $root['CommentsV2RemoveCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x4cb00a['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x4cb00a['documentId']=String(object['documentId'])),_0x4cb00a;},CommentsV2RemoveCommentThreadMessage['toObject']=function(_0x156c21,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x156c21['commentThreadId']&&_0x156c21['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x156c21['commentThreadId']),null!=_0x156c21['documentId']&&_0x156c21['hasOwnProperty']('documentId')&&(object['documentId']=_0x156c21['documentId']),object;},CommentsV2RemoveCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2RemoveCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2RemoveCommentThreadMessage';},CommentsV2RemoveCommentThreadMessage;}()),$root['CommentsV2RemoveCommentMessage']=(function(){function CommentsV2RemoveCommentMessage(properties){if(properties){for(var _0x43de4a=Object['keys'](properties),_0x557754=0x0;_0x557754<_0x43de4a['length'];++_0x557754)null!=properties[_0x43de4a[_0x557754]]&&(this[_0x43de4a[_0x557754]]=properties[_0x43de4a[_0x557754]]);}}return CommentsV2RemoveCommentMessage['prototype']['commentThreadId']='',CommentsV2RemoveCommentMessage['prototype']['commentId']='',CommentsV2RemoveCommentMessage['prototype']['documentId']='',CommentsV2RemoveCommentMessage['create']=function(properties){return new CommentsV2RemoveCommentMessage(properties);},CommentsV2RemoveCommentMessage['encode']=function(_0x2042af,writer){return writer||(writer=$Writer['create']()),null!=_0x2042af['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2042af,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x2042af['commentThreadId']),null!=_0x2042af['commentId']&&Object['hasOwnProperty']['call'](_0x2042af,'commentId')&&writer['uint32'](0x12)['string'](_0x2042af['commentId']),null!=_0x2042af['documentId']&&Object['hasOwnProperty']['call'](_0x2042af,'documentId')&&writer['uint32'](0x1a)['string'](_0x2042af['documentId']),writer;},CommentsV2RemoveCommentMessage['encodeDelimited']=function(_0x2a6d58,writer){return this['encode'](_0x2a6d58,writer)['ldelim']();},CommentsV2RemoveCommentMessage['decode']=function(_0x4870f5,length,_0x25de95){_0x4870f5 instanceof _0x53a355||(_0x4870f5=_0x53a355['create'](_0x4870f5));for(var _0x442f32=void 0x0===length?_0x4870f5['len']:_0x4870f5['pos']+length,_0x2a5de3=new $root['CommentsV2RemoveCommentMessage']();_0x4870f5['pos']<_0x442f32;){var tag=_0x4870f5['uint32']();if(tag===_0x25de95)break;switch(tag>>>0x3){case 0x1:_0x2a5de3['commentThreadId']=_0x4870f5['string']();break;case 0x2:_0x2a5de3['commentId']=_0x4870f5['string']();break;case 0x3:_0x2a5de3['documentId']=_0x4870f5['string']();break;default:_0x4870f5['skipType'](0x7&tag);}}return _0x2a5de3;},CommentsV2RemoveCommentMessage['decodeDelimited']=function(_0x503911){return _0x503911 instanceof _0x53a355||(_0x503911=new _0x53a355(_0x503911)),this['decode'](_0x503911,_0x503911['uint32']());},CommentsV2RemoveCommentMessage['verify']=function(_0x18cd16){return'object'!=typeof _0x18cd16||null===_0x18cd16?'object\x20expected':null!=_0x18cd16['commentThreadId']&&_0x18cd16['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x18cd16['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x18cd16['commentId']&&_0x18cd16['hasOwnProperty']('commentId')&&!$util['isString'](_0x18cd16['commentId'])?'commentId:\x20string\x20expected':null!=_0x18cd16['documentId']&&_0x18cd16['hasOwnProperty']('documentId')&&!$util['isString'](_0x18cd16['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2RemoveCommentMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2RemoveCommentMessage'])return object;var _0x193c17=new $root['CommentsV2RemoveCommentMessage']();return null!=object['commentThreadId']&&(_0x193c17['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x193c17['commentId']=String(object['commentId'])),null!=object['documentId']&&(_0x193c17['documentId']=String(object['documentId'])),_0x193c17;},CommentsV2RemoveCommentMessage['toObject']=function(_0x25af07,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['documentId']=''),null!=_0x25af07['commentThreadId']&&_0x25af07['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x25af07['commentThreadId']),null!=_0x25af07['commentId']&&_0x25af07['hasOwnProperty']('commentId')&&(object['commentId']=_0x25af07['commentId']),null!=_0x25af07['documentId']&&_0x25af07['hasOwnProperty']('documentId')&&(object['documentId']=_0x25af07['documentId']),object;},CommentsV2RemoveCommentMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2RemoveCommentMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2RemoveCommentMessage';},CommentsV2RemoveCommentMessage;}()),$root['CommentsV2GetDocumentThreadsMessage']=(function(){function CommentsV2GetDocumentThreadsMessage(properties){if(properties){for(var _0x33cd69=Object['keys'](properties),_0x40cd91=0x0;_0x40cd91<_0x33cd69['length'];++_0x40cd91)null!=properties[_0x33cd69[_0x40cd91]]&&(this[_0x33cd69[_0x40cd91]]=properties[_0x33cd69[_0x40cd91]]);}}return CommentsV2GetDocumentThreadsMessage['prototype']['documentId']='',CommentsV2GetDocumentThreadsMessage['create']=function(properties){return new CommentsV2GetDocumentThreadsMessage(properties);},CommentsV2GetDocumentThreadsMessage['encode']=function(_0x11803c,writer){return writer||(writer=$Writer['create']()),null!=_0x11803c['documentId']&&Object['hasOwnProperty']['call'](_0x11803c,'documentId')&&writer['uint32'](0xa)['string'](_0x11803c['documentId']),writer;},CommentsV2GetDocumentThreadsMessage['encodeDelimited']=function(_0x1179fd,writer){return this['encode'](_0x1179fd,writer)['ldelim']();},CommentsV2GetDocumentThreadsMessage['decode']=function(_0x2b00e8,length,_0x5869e4){_0x2b00e8 instanceof _0x53a355||(_0x2b00e8=_0x53a355['create'](_0x2b00e8));for(var _0x4f1310=void 0x0===length?_0x2b00e8['len']:_0x2b00e8['pos']+length,_0x4a7e36=new $root['CommentsV2GetDocumentThreadsMessage']();_0x2b00e8['pos']<_0x4f1310;){var tag=_0x2b00e8['uint32']();if(tag===_0x5869e4)break;if(tag>>>0x3==0x1)_0x4a7e36['documentId']=_0x2b00e8['string']();else _0x2b00e8['skipType'](0x7&tag);}return _0x4a7e36;},CommentsV2GetDocumentThreadsMessage['decodeDelimited']=function(_0x5add12){return _0x5add12 instanceof _0x53a355||(_0x5add12=new _0x53a355(_0x5add12)),this['decode'](_0x5add12,_0x5add12['uint32']());},CommentsV2GetDocumentThreadsMessage['verify']=function(_0x974075){return'object'!=typeof _0x974075||null===_0x974075?'object\x20expected':null!=_0x974075['documentId']&&_0x974075['hasOwnProperty']('documentId')&&!$util['isString'](_0x974075['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2GetDocumentThreadsMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2GetDocumentThreadsMessage'])return object;var _0x3a4df2=new $root['CommentsV2GetDocumentThreadsMessage']();return null!=object['documentId']&&(_0x3a4df2['documentId']=String(object['documentId'])),_0x3a4df2;},CommentsV2GetDocumentThreadsMessage['toObject']=function(_0x3a0737,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x3a0737['documentId']&&_0x3a0737['hasOwnProperty']('documentId')&&(object['documentId']=_0x3a0737['documentId']),object;},CommentsV2GetDocumentThreadsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetDocumentThreadsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetDocumentThreadsMessage';},CommentsV2GetDocumentThreadsMessage;}()),$root['CommentsV2GetCommentThreadMessage']=(function(){function CommentsV2GetCommentThreadMessage(properties){if(properties){for(var _0x1847ea=Object['keys'](properties),_0x17d17f=0x0;_0x17d17f<_0x1847ea['length'];++_0x17d17f)null!=properties[_0x1847ea[_0x17d17f]]&&(this[_0x1847ea[_0x17d17f]]=properties[_0x1847ea[_0x17d17f]]);}}return CommentsV2GetCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2GetCommentThreadMessage['prototype']['documentId']='',CommentsV2GetCommentThreadMessage['create']=function(properties){return new CommentsV2GetCommentThreadMessage(properties);},CommentsV2GetCommentThreadMessage['encode']=function(_0x14293c,writer){return writer||(writer=$Writer['create']()),null!=_0x14293c['commentThreadId']&&Object['hasOwnProperty']['call'](_0x14293c,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x14293c['commentThreadId']),null!=_0x14293c['documentId']&&Object['hasOwnProperty']['call'](_0x14293c,'documentId')&&writer['uint32'](0x12)['string'](_0x14293c['documentId']),writer;},CommentsV2GetCommentThreadMessage['encodeDelimited']=function(_0x536bf3,writer){return this['encode'](_0x536bf3,writer)['ldelim']();},CommentsV2GetCommentThreadMessage['decode']=function(_0x36f1b5,length,_0x475668){_0x36f1b5 instanceof _0x53a355||(_0x36f1b5=_0x53a355['create'](_0x36f1b5));for(var _0x3cfec9=void 0x0===length?_0x36f1b5['len']:_0x36f1b5['pos']+length,_0x2e443b=new $root['CommentsV2GetCommentThreadMessage']();_0x36f1b5['pos']<_0x3cfec9;){var tag=_0x36f1b5['uint32']();if(tag===_0x475668)break;switch(tag>>>0x3){case 0x1:_0x2e443b['commentThreadId']=_0x36f1b5['string']();break;case 0x2:_0x2e443b['documentId']=_0x36f1b5['string']();break;default:_0x36f1b5['skipType'](0x7&tag);}}return _0x2e443b;},CommentsV2GetCommentThreadMessage['decodeDelimited']=function(_0x4a59d0){return _0x4a59d0 instanceof _0x53a355||(_0x4a59d0=new _0x53a355(_0x4a59d0)),this['decode'](_0x4a59d0,_0x4a59d0['uint32']());},CommentsV2GetCommentThreadMessage['verify']=function(_0x289854){return'object'!=typeof _0x289854||null===_0x289854?'object\x20expected':null!=_0x289854['commentThreadId']&&_0x289854['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x289854['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x289854['documentId']&&_0x289854['hasOwnProperty']('documentId')&&!$util['isString'](_0x289854['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2GetCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2GetCommentThreadMessage'])return object;var _0x8c7747=new $root['CommentsV2GetCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x8c7747['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x8c7747['documentId']=String(object['documentId'])),_0x8c7747;},CommentsV2GetCommentThreadMessage['toObject']=function(_0x1f8a13,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x1f8a13['commentThreadId']&&_0x1f8a13['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x1f8a13['commentThreadId']),null!=_0x1f8a13['documentId']&&_0x1f8a13['hasOwnProperty']('documentId')&&(object['documentId']=_0x1f8a13['documentId']),object;},CommentsV2GetCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetCommentThreadMessage';},CommentsV2GetCommentThreadMessage;}()),$root['CommentsV2ConnectMessage']=(function(){function CommentsV2ConnectMessage(properties){if(properties){for(var _0x3a1ab5=Object['keys'](properties),_0x5cbd14=0x0;_0x5cbd14<_0x3a1ab5['length'];++_0x5cbd14)null!=properties[_0x3a1ab5[_0x5cbd14]]&&(this[_0x3a1ab5[_0x5cbd14]]=properties[_0x3a1ab5[_0x5cbd14]]);}}return CommentsV2ConnectMessage['prototype']['documentId']='',CommentsV2ConnectMessage['create']=function(properties){return new CommentsV2ConnectMessage(properties);},CommentsV2ConnectMessage['encode']=function(_0x289a7e,writer){return writer||(writer=$Writer['create']()),null!=_0x289a7e['documentId']&&Object['hasOwnProperty']['call'](_0x289a7e,'documentId')&&writer['uint32'](0xa)['string'](_0x289a7e['documentId']),writer;},CommentsV2ConnectMessage['encodeDelimited']=function(_0x15b347,writer){return this['encode'](_0x15b347,writer)['ldelim']();},CommentsV2ConnectMessage['decode']=function(_0x447a28,length,_0x31cb0d){_0x447a28 instanceof _0x53a355||(_0x447a28=_0x53a355['create'](_0x447a28));for(var _0x15f048=void 0x0===length?_0x447a28['len']:_0x447a28['pos']+length,_0x3c6cd7=new $root['CommentsV2ConnectMessage']();_0x447a28['pos']<_0x15f048;){var tag=_0x447a28['uint32']();if(tag===_0x31cb0d)break;if(tag>>>0x3==0x1)_0x3c6cd7['documentId']=_0x447a28['string']();else _0x447a28['skipType'](0x7&tag);}return _0x3c6cd7;},CommentsV2ConnectMessage['decodeDelimited']=function(_0x3edd2d){return _0x3edd2d instanceof _0x53a355||(_0x3edd2d=new _0x53a355(_0x3edd2d)),this['decode'](_0x3edd2d,_0x3edd2d['uint32']());},CommentsV2ConnectMessage['verify']=function(_0x59d8cf){return'object'!=typeof _0x59d8cf||null===_0x59d8cf?'object\x20expected':null!=_0x59d8cf['documentId']&&_0x59d8cf['hasOwnProperty']('documentId')&&!$util['isString'](_0x59d8cf['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2ConnectMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2ConnectMessage'])return object;var _0x5803d5=new $root['CommentsV2ConnectMessage']();return null!=object['documentId']&&(_0x5803d5['documentId']=String(object['documentId'])),_0x5803d5;},CommentsV2ConnectMessage['toObject']=function(_0x5508ec,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x5508ec['documentId']&&_0x5508ec['hasOwnProperty']('documentId')&&(object['documentId']=_0x5508ec['documentId']),object;},CommentsV2ConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ConnectMessage';},CommentsV2ConnectMessage;}()),$root['CommentsV2AddCommentMessage']=(function(){function CommentsV2AddCommentMessage(properties){if(properties){for(var _0x2b859f=Object['keys'](properties),_0x395687=0x0;_0x395687<_0x2b859f['length'];++_0x395687)null!=properties[_0x2b859f[_0x395687]]&&(this[_0x2b859f[_0x395687]]=properties[_0x2b859f[_0x395687]]);}}return CommentsV2AddCommentMessage['prototype']['commentThreadId']='',CommentsV2AddCommentMessage['prototype']['content']='',CommentsV2AddCommentMessage['prototype']['documentId']='',CommentsV2AddCommentMessage['prototype']['commentId']='',CommentsV2AddCommentMessage['prototype']['createdAt']='',CommentsV2AddCommentMessage['prototype']['userId']='',CommentsV2AddCommentMessage['prototype']['attributes']='',CommentsV2AddCommentMessage['prototype']['commentThread']=null,CommentsV2AddCommentMessage['create']=function(properties){return new CommentsV2AddCommentMessage(properties);},CommentsV2AddCommentMessage['encode']=function(_0x25d1f0,writer){return writer||(writer=$Writer['create']()),null!=_0x25d1f0['commentThreadId']&&Object['hasOwnProperty']['call'](_0x25d1f0,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x25d1f0['commentThreadId']),null!=_0x25d1f0['content']&&Object['hasOwnProperty']['call'](_0x25d1f0,'content')&&writer['uint32'](0x12)['string'](_0x25d1f0['content']),null!=_0x25d1f0['documentId']&&Object['hasOwnProperty']['call'](_0x25d1f0,'documentId')&&writer['uint32'](0x1a)['string'](_0x25d1f0['documentId']),null!=_0x25d1f0['commentId']&&Object['hasOwnProperty']['call'](_0x25d1f0,'commentId')&&writer['uint32'](0x22)['string'](_0x25d1f0['commentId']),null!=_0x25d1f0['createdAt']&&Object['hasOwnProperty']['call'](_0x25d1f0,'createdAt')&&writer['uint32'](0x2a)['string'](_0x25d1f0['createdAt']),null!=_0x25d1f0['userId']&&Object['hasOwnProperty']['call'](_0x25d1f0,'userId')&&writer['uint32'](0x32)['string'](_0x25d1f0['userId']),null!=_0x25d1f0['attributes']&&Object['hasOwnProperty']['call'](_0x25d1f0,'attributes')&&writer['uint32'](0x3a)['string'](_0x25d1f0['attributes']),null!=_0x25d1f0['commentThread']&&Object['hasOwnProperty']['call'](_0x25d1f0,'commentThread')&&$root['CommentsThreadDescriptor']['encode'](_0x25d1f0['commentThread'],writer['uint32'](0x42)['fork']())['ldelim'](),writer;},CommentsV2AddCommentMessage['encodeDelimited']=function(_0x4b9eb6,writer){return this['encode'](_0x4b9eb6,writer)['ldelim']();},CommentsV2AddCommentMessage['decode']=function(_0x2ea5c0,length,_0x5b6926){_0x2ea5c0 instanceof _0x53a355||(_0x2ea5c0=_0x53a355['create'](_0x2ea5c0));for(var _0x1b69af=void 0x0===length?_0x2ea5c0['len']:_0x2ea5c0['pos']+length,_0x153cf0=new $root['CommentsV2AddCommentMessage']();_0x2ea5c0['pos']<_0x1b69af;){var tag=_0x2ea5c0['uint32']();if(tag===_0x5b6926)break;switch(tag>>>0x3){case 0x1:_0x153cf0['commentThreadId']=_0x2ea5c0['string']();break;case 0x2:_0x153cf0['content']=_0x2ea5c0['string']();break;case 0x3:_0x153cf0['documentId']=_0x2ea5c0['string']();break;case 0x4:_0x153cf0['commentId']=_0x2ea5c0['string']();break;case 0x5:_0x153cf0['createdAt']=_0x2ea5c0['string']();break;case 0x6:_0x153cf0['userId']=_0x2ea5c0['string']();break;case 0x7:_0x153cf0['attributes']=_0x2ea5c0['string']();break;case 0x8:_0x153cf0['commentThread']=$root['CommentsThreadDescriptor']['decode'](_0x2ea5c0,_0x2ea5c0['uint32']());break;default:_0x2ea5c0['skipType'](0x7&tag);}}return _0x153cf0;},CommentsV2AddCommentMessage['decodeDelimited']=function(_0x26d524){return _0x26d524 instanceof _0x53a355||(_0x26d524=new _0x53a355(_0x26d524)),this['decode'](_0x26d524,_0x26d524['uint32']());},CommentsV2AddCommentMessage['verify']=function(_0x52d636){if('object'!=typeof _0x52d636||null===_0x52d636)return'object\x20expected';if(null!=_0x52d636['commentThreadId']&&_0x52d636['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x52d636['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x52d636['content']&&_0x52d636['hasOwnProperty']('content')&&!$util['isString'](_0x52d636['content']))return'content:\x20string\x20expected';if(null!=_0x52d636['documentId']&&_0x52d636['hasOwnProperty']('documentId')&&!$util['isString'](_0x52d636['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x52d636['commentId']&&_0x52d636['hasOwnProperty']('commentId')&&!$util['isString'](_0x52d636['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x52d636['createdAt']&&_0x52d636['hasOwnProperty']('createdAt')&&!$util['isString'](_0x52d636['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x52d636['userId']&&_0x52d636['hasOwnProperty']('userId')&&!$util['isString'](_0x52d636['userId']))return'userId:\x20string\x20expected';if(null!=_0x52d636['attributes']&&_0x52d636['hasOwnProperty']('attributes')&&!$util['isString'](_0x52d636['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x52d636['commentThread']&&_0x52d636['hasOwnProperty']('commentThread')){var _0x4d4600=$root['CommentsThreadDescriptor']['verify'](_0x52d636['commentThread']);if(_0x4d4600)return'commentThread.'+_0x4d4600;}return null;},CommentsV2AddCommentMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentMessage'])return object;var _0xeaea5=new $root['CommentsV2AddCommentMessage']();if(null!=object['commentThreadId']&&(_0xeaea5['commentThreadId']=String(object['commentThreadId'])),null!=object['content']&&(_0xeaea5['content']=String(object['content'])),null!=object['documentId']&&(_0xeaea5['documentId']=String(object['documentId'])),null!=object['commentId']&&(_0xeaea5['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0xeaea5['createdAt']=String(object['createdAt'])),null!=object['userId']&&(_0xeaea5['userId']=String(object['userId'])),null!=object['attributes']&&(_0xeaea5['attributes']=String(object['attributes'])),null!=object['commentThread']){if('object'!=typeof object['commentThread'])throw TypeError('.CommentsV2AddCommentMessage.commentThread:\x20object\x20expected');_0xeaea5['commentThread']=$root['CommentsThreadDescriptor']['fromObject'](object['commentThread']);}return _0xeaea5;},CommentsV2AddCommentMessage['toObject']=function(_0x341817,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['content']='',object['documentId']='',object['commentId']='',object['createdAt']='',object['userId']='',object['attributes']='',object['commentThread']=null),null!=_0x341817['commentThreadId']&&_0x341817['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x341817['commentThreadId']),null!=_0x341817['content']&&_0x341817['hasOwnProperty']('content')&&(object['content']=_0x341817['content']),null!=_0x341817['documentId']&&_0x341817['hasOwnProperty']('documentId')&&(object['documentId']=_0x341817['documentId']),null!=_0x341817['commentId']&&_0x341817['hasOwnProperty']('commentId')&&(object['commentId']=_0x341817['commentId']),null!=_0x341817['createdAt']&&_0x341817['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x341817['createdAt']),null!=_0x341817['userId']&&_0x341817['hasOwnProperty']('userId')&&(object['userId']=_0x341817['userId']),null!=_0x341817['attributes']&&_0x341817['hasOwnProperty']('attributes')&&(object['attributes']=_0x341817['attributes']),null!=_0x341817['commentThread']&&_0x341817['hasOwnProperty']('commentThread')&&(object['commentThread']=$root['CommentsThreadDescriptor']['toObject'](_0x341817['commentThread'],options)),object;},CommentsV2AddCommentMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentMessage';},CommentsV2AddCommentMessage;}()),$root['CommentsV2UpdateCommentThreadMessage']=(function(){function CommentsV2UpdateCommentThreadMessage(properties){if(properties){for(var _0xfc754e=Object['keys'](properties),_0x49bb89=0x0;_0x49bb89<_0xfc754e['length'];++_0x49bb89)null!=properties[_0xfc754e[_0x49bb89]]&&(this[_0xfc754e[_0x49bb89]]=properties[_0xfc754e[_0x49bb89]]);}}return CommentsV2UpdateCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2UpdateCommentThreadMessage['prototype']['documentId']='',CommentsV2UpdateCommentThreadMessage['prototype']['context']='',CommentsV2UpdateCommentThreadMessage['prototype']['attributes']='',CommentsV2UpdateCommentThreadMessage['prototype']['unlinkedAt']='',CommentsV2UpdateCommentThreadMessage['create']=function(properties){return new CommentsV2UpdateCommentThreadMessage(properties);},CommentsV2UpdateCommentThreadMessage['encode']=function(_0x8e678a,writer){return writer||(writer=$Writer['create']()),null!=_0x8e678a['commentThreadId']&&Object['hasOwnProperty']['call'](_0x8e678a,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x8e678a['commentThreadId']),null!=_0x8e678a['documentId']&&Object['hasOwnProperty']['call'](_0x8e678a,'documentId')&&writer['uint32'](0x12)['string'](_0x8e678a['documentId']),null!=_0x8e678a['context']&&Object['hasOwnProperty']['call'](_0x8e678a,'context')&&writer['uint32'](0x1a)['string'](_0x8e678a['context']),null!=_0x8e678a['attributes']&&Object['hasOwnProperty']['call'](_0x8e678a,'attributes')&&writer['uint32'](0x22)['string'](_0x8e678a['attributes']),null!=_0x8e678a['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x8e678a,'unlinkedAt')&&writer['uint32'](0x2a)['string'](_0x8e678a['unlinkedAt']),writer;},CommentsV2UpdateCommentThreadMessage['encodeDelimited']=function(_0x3e99b4,writer){return this['encode'](_0x3e99b4,writer)['ldelim']();},CommentsV2UpdateCommentThreadMessage['decode']=function(_0xc524b0,length,_0x24a8c5){_0xc524b0 instanceof _0x53a355||(_0xc524b0=_0x53a355['create'](_0xc524b0));for(var _0x41ebe9=void 0x0===length?_0xc524b0['len']:_0xc524b0['pos']+length,_0x11cf2b=new $root['CommentsV2UpdateCommentThreadMessage']();_0xc524b0['pos']<_0x41ebe9;){var tag=_0xc524b0['uint32']();if(tag===_0x24a8c5)break;switch(tag>>>0x3){case 0x1:_0x11cf2b['commentThreadId']=_0xc524b0['string']();break;case 0x2:_0x11cf2b['documentId']=_0xc524b0['string']();break;case 0x3:_0x11cf2b['context']=_0xc524b0['string']();break;case 0x4:_0x11cf2b['attributes']=_0xc524b0['string']();break;case 0x5:_0x11cf2b['unlinkedAt']=_0xc524b0['string']();break;default:_0xc524b0['skipType'](0x7&tag);}}return _0x11cf2b;},CommentsV2UpdateCommentThreadMessage['decodeDelimited']=function(_0x43b953){return _0x43b953 instanceof _0x53a355||(_0x43b953=new _0x53a355(_0x43b953)),this['decode'](_0x43b953,_0x43b953['uint32']());},CommentsV2UpdateCommentThreadMessage['verify']=function(_0x18a083){return'object'!=typeof _0x18a083||null===_0x18a083?'object\x20expected':null!=_0x18a083['commentThreadId']&&_0x18a083['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x18a083['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x18a083['documentId']&&_0x18a083['hasOwnProperty']('documentId')&&!$util['isString'](_0x18a083['documentId'])?'documentId:\x20string\x20expected':null!=_0x18a083['context']&&_0x18a083['hasOwnProperty']('context')&&!$util['isString'](_0x18a083['context'])?'context:\x20string\x20expected':null!=_0x18a083['attributes']&&_0x18a083['hasOwnProperty']('attributes')&&!$util['isString'](_0x18a083['attributes'])?'attributes:\x20string\x20expected':null!=_0x18a083['unlinkedAt']&&_0x18a083['hasOwnProperty']('unlinkedAt')&&!$util['isString'](_0x18a083['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsV2UpdateCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2UpdateCommentThreadMessage'])return object;var _0x5b77ac=new $root['CommentsV2UpdateCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x5b77ac['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x5b77ac['documentId']=String(object['documentId'])),null!=object['context']&&(_0x5b77ac['context']=String(object['context'])),null!=object['attributes']&&(_0x5b77ac['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x5b77ac['unlinkedAt']=String(object['unlinkedAt'])),_0x5b77ac;},CommentsV2UpdateCommentThreadMessage['toObject']=function(_0x1e02ed,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['context']='',object['attributes']='',object['unlinkedAt']=''),null!=_0x1e02ed['commentThreadId']&&_0x1e02ed['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x1e02ed['commentThreadId']),null!=_0x1e02ed['documentId']&&_0x1e02ed['hasOwnProperty']('documentId')&&(object['documentId']=_0x1e02ed['documentId']),null!=_0x1e02ed['context']&&_0x1e02ed['hasOwnProperty']('context')&&(object['context']=_0x1e02ed['context']),null!=_0x1e02ed['attributes']&&_0x1e02ed['hasOwnProperty']('attributes')&&(object['attributes']=_0x1e02ed['attributes']),null!=_0x1e02ed['unlinkedAt']&&_0x1e02ed['hasOwnProperty']('unlinkedAt')&&(object['unlinkedAt']=_0x1e02ed['unlinkedAt']),object;},CommentsV2UpdateCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2UpdateCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2UpdateCommentThreadMessage';},CommentsV2UpdateCommentThreadMessage;}()),$root['CommentsV2ResolveCommentThreadMessage']=(function(){function CommentsV2ResolveCommentThreadMessage(properties){if(properties){for(var _0x509eda=Object['keys'](properties),_0x5a9c60=0x0;_0x5a9c60<_0x509eda['length'];++_0x5a9c60)null!=properties[_0x509eda[_0x5a9c60]]&&(this[_0x509eda[_0x5a9c60]]=properties[_0x509eda[_0x5a9c60]]);}}return CommentsV2ResolveCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2ResolveCommentThreadMessage['prototype']['documentId']='',CommentsV2ResolveCommentThreadMessage['prototype']['resolvedBy']='',CommentsV2ResolveCommentThreadMessage['prototype']['resolvedAt']='',CommentsV2ResolveCommentThreadMessage['create']=function(properties){return new CommentsV2ResolveCommentThreadMessage(properties);},CommentsV2ResolveCommentThreadMessage['encode']=function(_0xe81758,writer){return writer||(writer=$Writer['create']()),null!=_0xe81758['commentThreadId']&&Object['hasOwnProperty']['call'](_0xe81758,'commentThreadId')&&writer['uint32'](0xa)['string'](_0xe81758['commentThreadId']),null!=_0xe81758['documentId']&&Object['hasOwnProperty']['call'](_0xe81758,'documentId')&&writer['uint32'](0x12)['string'](_0xe81758['documentId']),null!=_0xe81758['resolvedBy']&&Object['hasOwnProperty']['call'](_0xe81758,'resolvedBy')&&writer['uint32'](0x1a)['string'](_0xe81758['resolvedBy']),null!=_0xe81758['resolvedAt']&&Object['hasOwnProperty']['call'](_0xe81758,'resolvedAt')&&writer['uint32'](0x22)['string'](_0xe81758['resolvedAt']),writer;},CommentsV2ResolveCommentThreadMessage['encodeDelimited']=function(_0x1408ea,writer){return this['encode'](_0x1408ea,writer)['ldelim']();},CommentsV2ResolveCommentThreadMessage['decode']=function(_0x26c118,length,_0xde90b5){_0x26c118 instanceof _0x53a355||(_0x26c118=_0x53a355['create'](_0x26c118));for(var _0x44d947=void 0x0===length?_0x26c118['len']:_0x26c118['pos']+length,_0x2341bb=new $root['CommentsV2ResolveCommentThreadMessage']();_0x26c118['pos']<_0x44d947;){var tag=_0x26c118['uint32']();if(tag===_0xde90b5)break;switch(tag>>>0x3){case 0x1:_0x2341bb['commentThreadId']=_0x26c118['string']();break;case 0x2:_0x2341bb['documentId']=_0x26c118['string']();break;case 0x3:_0x2341bb['resolvedBy']=_0x26c118['string']();break;case 0x4:_0x2341bb['resolvedAt']=_0x26c118['string']();break;default:_0x26c118['skipType'](0x7&tag);}}return _0x2341bb;},CommentsV2ResolveCommentThreadMessage['decodeDelimited']=function(_0x5bbbf2){return _0x5bbbf2 instanceof _0x53a355||(_0x5bbbf2=new _0x53a355(_0x5bbbf2)),this['decode'](_0x5bbbf2,_0x5bbbf2['uint32']());},CommentsV2ResolveCommentThreadMessage['verify']=function(_0xef707a){return'object'!=typeof _0xef707a||null===_0xef707a?'object\x20expected':null!=_0xef707a['commentThreadId']&&_0xef707a['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0xef707a['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0xef707a['documentId']&&_0xef707a['hasOwnProperty']('documentId')&&!$util['isString'](_0xef707a['documentId'])?'documentId:\x20string\x20expected':null!=_0xef707a['resolvedBy']&&_0xef707a['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0xef707a['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0xef707a['resolvedAt']&&_0xef707a['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0xef707a['resolvedAt'])?'resolvedAt:\x20string\x20expected':null;},CommentsV2ResolveCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2ResolveCommentThreadMessage'])return object;var _0x2d95a0=new $root['CommentsV2ResolveCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x2d95a0['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x2d95a0['documentId']=String(object['documentId'])),null!=object['resolvedBy']&&(_0x2d95a0['resolvedBy']=String(object['resolvedBy'])),null!=object['resolvedAt']&&(_0x2d95a0['resolvedAt']=String(object['resolvedAt'])),_0x2d95a0;},CommentsV2ResolveCommentThreadMessage['toObject']=function(_0x22a535,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['resolvedBy']='',object['resolvedAt']=''),null!=_0x22a535['commentThreadId']&&_0x22a535['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x22a535['commentThreadId']),null!=_0x22a535['documentId']&&_0x22a535['hasOwnProperty']('documentId')&&(object['documentId']=_0x22a535['documentId']),null!=_0x22a535['resolvedBy']&&_0x22a535['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x22a535['resolvedBy']),null!=_0x22a535['resolvedAt']&&_0x22a535['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x22a535['resolvedAt']),object;},CommentsV2ResolveCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ResolveCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ResolveCommentThreadMessage';},CommentsV2ResolveCommentThreadMessage;}()),$root['CommentsV2ReopenCommentThreadMessage']=(function(){function CommentsV2ReopenCommentThreadMessage(properties){if(properties){for(var _0x1199a9=Object['keys'](properties),_0x1a5b8a=0x0;_0x1a5b8a<_0x1199a9['length'];++_0x1a5b8a)null!=properties[_0x1199a9[_0x1a5b8a]]&&(this[_0x1199a9[_0x1a5b8a]]=properties[_0x1199a9[_0x1a5b8a]]);}}return CommentsV2ReopenCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2ReopenCommentThreadMessage['prototype']['documentId']='',CommentsV2ReopenCommentThreadMessage['create']=function(properties){return new CommentsV2ReopenCommentThreadMessage(properties);},CommentsV2ReopenCommentThreadMessage['encode']=function(_0x19e47d,writer){return writer||(writer=$Writer['create']()),null!=_0x19e47d['commentThreadId']&&Object['hasOwnProperty']['call'](_0x19e47d,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x19e47d['commentThreadId']),null!=_0x19e47d['documentId']&&Object['hasOwnProperty']['call'](_0x19e47d,'documentId')&&writer['uint32'](0x12)['string'](_0x19e47d['documentId']),writer;},CommentsV2ReopenCommentThreadMessage['encodeDelimited']=function(_0x5dc8ae,writer){return this['encode'](_0x5dc8ae,writer)['ldelim']();},CommentsV2ReopenCommentThreadMessage['decode']=function(_0x4a0c1b,length,_0x5e7992){_0x4a0c1b instanceof _0x53a355||(_0x4a0c1b=_0x53a355['create'](_0x4a0c1b));for(var _0x2ad6fa=void 0x0===length?_0x4a0c1b['len']:_0x4a0c1b['pos']+length,_0x2100ee=new $root['CommentsV2ReopenCommentThreadMessage']();_0x4a0c1b['pos']<_0x2ad6fa;){var tag=_0x4a0c1b['uint32']();if(tag===_0x5e7992)break;switch(tag>>>0x3){case 0x1:_0x2100ee['commentThreadId']=_0x4a0c1b['string']();break;case 0x2:_0x2100ee['documentId']=_0x4a0c1b['string']();break;default:_0x4a0c1b['skipType'](0x7&tag);}}return _0x2100ee;},CommentsV2ReopenCommentThreadMessage['decodeDelimited']=function(_0xf96116){return _0xf96116 instanceof _0x53a355||(_0xf96116=new _0x53a355(_0xf96116)),this['decode'](_0xf96116,_0xf96116['uint32']());},CommentsV2ReopenCommentThreadMessage['verify']=function(_0x317cf3){return'object'!=typeof _0x317cf3||null===_0x317cf3?'object\x20expected':null!=_0x317cf3['commentThreadId']&&_0x317cf3['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x317cf3['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x317cf3['documentId']&&_0x317cf3['hasOwnProperty']('documentId')&&!$util['isString'](_0x317cf3['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2ReopenCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2ReopenCommentThreadMessage'])return object;var _0xa03827=new $root['CommentsV2ReopenCommentThreadMessage']();return null!=object['commentThreadId']&&(_0xa03827['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0xa03827['documentId']=String(object['documentId'])),_0xa03827;},CommentsV2ReopenCommentThreadMessage['toObject']=function(_0x4c55d8,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x4c55d8['commentThreadId']&&_0x4c55d8['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x4c55d8['commentThreadId']),null!=_0x4c55d8['documentId']&&_0x4c55d8['hasOwnProperty']('documentId')&&(object['documentId']=_0x4c55d8['documentId']),object;},CommentsV2ReopenCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ReopenCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ReopenCommentThreadMessage';},CommentsV2ReopenCommentThreadMessage;}()),$root['CommentsV2AddCommentThreadMessage']=(function(){function CommentsV2AddCommentThreadMessage(properties){if(this['comments']=[],properties){for(var _0x68419d=Object['keys'](properties),_0xe20eb8=0x0;_0xe20eb8<_0x68419d['length'];++_0xe20eb8)null!=properties[_0x68419d[_0xe20eb8]]&&(this[_0x68419d[_0xe20eb8]]=properties[_0x68419d[_0xe20eb8]]);}}return CommentsV2AddCommentThreadMessage['prototype']['documentId']='',CommentsV2AddCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2AddCommentThreadMessage['prototype']['context']='',CommentsV2AddCommentThreadMessage['prototype']['createdAt']='',CommentsV2AddCommentThreadMessage['prototype']['resolvedAt']='',CommentsV2AddCommentThreadMessage['prototype']['resolvedBy']='',CommentsV2AddCommentThreadMessage['prototype']['attributes']='',CommentsV2AddCommentThreadMessage['prototype']['deletedAt']='',CommentsV2AddCommentThreadMessage['prototype']['comments']=$util['emptyArray'],CommentsV2AddCommentThreadMessage['create']=function(properties){return new CommentsV2AddCommentThreadMessage(properties);},CommentsV2AddCommentThreadMessage['encode']=function(_0x23fd95,writer){if(writer||(writer=$Writer['create']()),null!=_0x23fd95['documentId']&&Object['hasOwnProperty']['call'](_0x23fd95,'documentId')&&writer['uint32'](0xa)['string'](_0x23fd95['documentId']),null!=_0x23fd95['commentThreadId']&&Object['hasOwnProperty']['call'](_0x23fd95,'commentThreadId')&&writer['uint32'](0x12)['string'](_0x23fd95['commentThreadId']),null!=_0x23fd95['context']&&Object['hasOwnProperty']['call'](_0x23fd95,'context')&&writer['uint32'](0x1a)['string'](_0x23fd95['context']),null!=_0x23fd95['createdAt']&&Object['hasOwnProperty']['call'](_0x23fd95,'createdAt')&&writer['uint32'](0x22)['string'](_0x23fd95['createdAt']),null!=_0x23fd95['resolvedAt']&&Object['hasOwnProperty']['call'](_0x23fd95,'resolvedAt')&&writer['uint32'](0x2a)['string'](_0x23fd95['resolvedAt']),null!=_0x23fd95['resolvedBy']&&Object['hasOwnProperty']['call'](_0x23fd95,'resolvedBy')&&writer['uint32'](0x32)['string'](_0x23fd95['resolvedBy']),null!=_0x23fd95['attributes']&&Object['hasOwnProperty']['call'](_0x23fd95,'attributes')&&writer['uint32'](0x3a)['string'](_0x23fd95['attributes']),null!=_0x23fd95['deletedAt']&&Object['hasOwnProperty']['call'](_0x23fd95,'deletedAt')&&writer['uint32'](0x42)['string'](_0x23fd95['deletedAt']),null!=_0x23fd95['comments']&&_0x23fd95['comments']['length']){for(var _0x79de2f=0x0;_0x79de2f<_0x23fd95['comments']['length'];++_0x79de2f)$root['CommentDescriptor']['encode'](_0x23fd95['comments'][_0x79de2f],writer['uint32'](0x4a)['fork']())['ldelim']();}return writer;},CommentsV2AddCommentThreadMessage['encodeDelimited']=function(_0x3ac297,writer){return this['encode'](_0x3ac297,writer)['ldelim']();},CommentsV2AddCommentThreadMessage['decode']=function(_0x469561,length,_0x48e68d){_0x469561 instanceof _0x53a355||(_0x469561=_0x53a355['create'](_0x469561));for(var _0x1e5d58=void 0x0===length?_0x469561['len']:_0x469561['pos']+length,_0x2f55d4=new $root['CommentsV2AddCommentThreadMessage']();_0x469561['pos']<_0x1e5d58;){var tag=_0x469561['uint32']();if(tag===_0x48e68d)break;switch(tag>>>0x3){case 0x1:_0x2f55d4['documentId']=_0x469561['string']();break;case 0x2:_0x2f55d4['commentThreadId']=_0x469561['string']();break;case 0x3:_0x2f55d4['context']=_0x469561['string']();break;case 0x4:_0x2f55d4['createdAt']=_0x469561['string']();break;case 0x5:_0x2f55d4['resolvedAt']=_0x469561['string']();break;case 0x6:_0x2f55d4['resolvedBy']=_0x469561['string']();break;case 0x7:_0x2f55d4['attributes']=_0x469561['string']();break;case 0x8:_0x2f55d4['deletedAt']=_0x469561['string']();break;case 0x9:_0x2f55d4['comments']&&_0x2f55d4['comments']['length']||(_0x2f55d4['comments']=[]),_0x2f55d4['comments']['push']($root['CommentDescriptor']['decode'](_0x469561,_0x469561['uint32']()));break;default:_0x469561['skipType'](0x7&tag);}}return _0x2f55d4;},CommentsV2AddCommentThreadMessage['decodeDelimited']=function(_0x191a13){return _0x191a13 instanceof _0x53a355||(_0x191a13=new _0x53a355(_0x191a13)),this['decode'](_0x191a13,_0x191a13['uint32']());},CommentsV2AddCommentThreadMessage['verify']=function(_0x2ce5e0){if('object'!=typeof _0x2ce5e0||null===_0x2ce5e0)return'object\x20expected';if(null!=_0x2ce5e0['documentId']&&_0x2ce5e0['hasOwnProperty']('documentId')&&!$util['isString'](_0x2ce5e0['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x2ce5e0['commentThreadId']&&_0x2ce5e0['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x2ce5e0['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x2ce5e0['context']&&_0x2ce5e0['hasOwnProperty']('context')&&!$util['isString'](_0x2ce5e0['context']))return'context:\x20string\x20expected';if(null!=_0x2ce5e0['createdAt']&&_0x2ce5e0['hasOwnProperty']('createdAt')&&!$util['isString'](_0x2ce5e0['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x2ce5e0['resolvedAt']&&_0x2ce5e0['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x2ce5e0['resolvedAt']))return'resolvedAt:\x20string\x20expected';if(null!=_0x2ce5e0['resolvedBy']&&_0x2ce5e0['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x2ce5e0['resolvedBy']))return'resolvedBy:\x20string\x20expected';if(null!=_0x2ce5e0['attributes']&&_0x2ce5e0['hasOwnProperty']('attributes')&&!$util['isString'](_0x2ce5e0['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x2ce5e0['deletedAt']&&_0x2ce5e0['hasOwnProperty']('deletedAt')&&!$util['isString'](_0x2ce5e0['deletedAt']))return'deletedAt:\x20string\x20expected';if(null!=_0x2ce5e0['comments']&&_0x2ce5e0['hasOwnProperty']('comments')){if(!Array['isArray'](_0x2ce5e0['comments']))return'comments:\x20array\x20expected';for(var _0x5dea55=0x0;_0x5dea55<_0x2ce5e0['comments']['length'];++_0x5dea55){var _0x4d9098=$root['CommentDescriptor']['verify'](_0x2ce5e0['comments'][_0x5dea55]);if(_0x4d9098)return'comments.'+_0x4d9098;}}return null;},CommentsV2AddCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentThreadMessage'])return object;var _0x3dcd49=new $root['CommentsV2AddCommentThreadMessage']();if(null!=object['documentId']&&(_0x3dcd49['documentId']=String(object['documentId'])),null!=object['commentThreadId']&&(_0x3dcd49['commentThreadId']=String(object['commentThreadId'])),null!=object['context']&&(_0x3dcd49['context']=String(object['context'])),null!=object['createdAt']&&(_0x3dcd49['createdAt']=String(object['createdAt'])),null!=object['resolvedAt']&&(_0x3dcd49['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x3dcd49['resolvedBy']=String(object['resolvedBy'])),null!=object['attributes']&&(_0x3dcd49['attributes']=String(object['attributes'])),null!=object['deletedAt']&&(_0x3dcd49['deletedAt']=String(object['deletedAt'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20array\x20expected');_0x3dcd49['comments']=[];for(var _0x9c7e13=0x0;_0x9c7e13<object['comments']['length'];++_0x9c7e13){if('object'!=typeof object['comments'][_0x9c7e13])throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20object\x20expected');_0x3dcd49['comments'][_0x9c7e13]=$root['CommentDescriptor']['fromObject'](object['comments'][_0x9c7e13]);}}return _0x3dcd49;},CommentsV2AddCommentThreadMessage['toObject']=function(_0x16dcd4,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[]),options['defaults']&&(object['documentId']='',object['commentThreadId']='',object['context']='',object['createdAt']='',object['resolvedAt']='',object['resolvedBy']='',object['attributes']='',object['deletedAt']=''),null!=_0x16dcd4['documentId']&&_0x16dcd4['hasOwnProperty']('documentId')&&(object['documentId']=_0x16dcd4['documentId']),null!=_0x16dcd4['commentThreadId']&&_0x16dcd4['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x16dcd4['commentThreadId']),null!=_0x16dcd4['context']&&_0x16dcd4['hasOwnProperty']('context')&&(object['context']=_0x16dcd4['context']),null!=_0x16dcd4['createdAt']&&_0x16dcd4['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x16dcd4['createdAt']),null!=_0x16dcd4['resolvedAt']&&_0x16dcd4['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x16dcd4['resolvedAt']),null!=_0x16dcd4['resolvedBy']&&_0x16dcd4['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x16dcd4['resolvedBy']),null!=_0x16dcd4['attributes']&&_0x16dcd4['hasOwnProperty']('attributes')&&(object['attributes']=_0x16dcd4['attributes']),null!=_0x16dcd4['deletedAt']&&_0x16dcd4['hasOwnProperty']('deletedAt')&&(object['deletedAt']=_0x16dcd4['deletedAt']),_0x16dcd4['comments']&&_0x16dcd4['comments']['length']){object['comments']=[];for(var _0x4e8c32=0x0;_0x4e8c32<_0x16dcd4['comments']['length'];++_0x4e8c32)object['comments'][_0x4e8c32]=$root['CommentDescriptor']['toObject'](_0x16dcd4['comments'][_0x4e8c32],options);}return object;},CommentsV2AddCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentThreadMessage';},CommentsV2AddCommentThreadMessage;}()),$root['CommentThreadAddedCommentDescriptor']=(function(){function CommentThreadAddedCommentDescriptor(properties){if(properties){for(var _0x4a3ee3=Object['keys'](properties),_0xac77e=0x0;_0xac77e<_0x4a3ee3['length'];++_0xac77e)null!=properties[_0x4a3ee3[_0xac77e]]&&(this[_0x4a3ee3[_0xac77e]]=properties[_0x4a3ee3[_0xac77e]]);}}return CommentThreadAddedCommentDescriptor['prototype']['commentId']='',CommentThreadAddedCommentDescriptor['prototype']['createdAt']='',CommentThreadAddedCommentDescriptor['create']=function(properties){return new CommentThreadAddedCommentDescriptor(properties);},CommentThreadAddedCommentDescriptor['encode']=function(_0x414eb1,writer){return writer||(writer=$Writer['create']()),null!=_0x414eb1['commentId']&&Object['hasOwnProperty']['call'](_0x414eb1,'commentId')&&writer['uint32'](0xa)['string'](_0x414eb1['commentId']),null!=_0x414eb1['createdAt']&&Object['hasOwnProperty']['call'](_0x414eb1,'createdAt')&&writer['uint32'](0x12)['string'](_0x414eb1['createdAt']),writer;},CommentThreadAddedCommentDescriptor['encodeDelimited']=function(_0x3afecf,writer){return this['encode'](_0x3afecf,writer)['ldelim']();},CommentThreadAddedCommentDescriptor['decode']=function(_0x39dac7,length,_0x485e63){_0x39dac7 instanceof _0x53a355||(_0x39dac7=_0x53a355['create'](_0x39dac7));for(var _0x6be5dd=void 0x0===length?_0x39dac7['len']:_0x39dac7['pos']+length,_0x11d2dc=new $root['CommentThreadAddedCommentDescriptor']();_0x39dac7['pos']<_0x6be5dd;){var tag=_0x39dac7['uint32']();if(tag===_0x485e63)break;switch(tag>>>0x3){case 0x1:_0x11d2dc['commentId']=_0x39dac7['string']();break;case 0x2:_0x11d2dc['createdAt']=_0x39dac7['string']();break;default:_0x39dac7['skipType'](0x7&tag);}}return _0x11d2dc;},CommentThreadAddedCommentDescriptor['decodeDelimited']=function(_0x3e5b95){return _0x3e5b95 instanceof _0x53a355||(_0x3e5b95=new _0x53a355(_0x3e5b95)),this['decode'](_0x3e5b95,_0x3e5b95['uint32']());},CommentThreadAddedCommentDescriptor['verify']=function(_0x416fa4){return'object'!=typeof _0x416fa4||null===_0x416fa4?'object\x20expected':null!=_0x416fa4['commentId']&&_0x416fa4['hasOwnProperty']('commentId')&&!$util['isString'](_0x416fa4['commentId'])?'commentId:\x20string\x20expected':null!=_0x416fa4['createdAt']&&_0x416fa4['hasOwnProperty']('createdAt')&&!$util['isString'](_0x416fa4['createdAt'])?'createdAt:\x20string\x20expected':null;},CommentThreadAddedCommentDescriptor['fromObject']=function(object){if(object instanceof $root['CommentThreadAddedCommentDescriptor'])return object;var _0xc0227c=new $root['CommentThreadAddedCommentDescriptor']();return null!=object['commentId']&&(_0xc0227c['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0xc0227c['createdAt']=String(object['createdAt'])),_0xc0227c;},CommentThreadAddedCommentDescriptor['toObject']=function(_0x33c00a,options){options||(options={});var object={};return options['defaults']&&(object['commentId']='',object['createdAt']=''),null!=_0x33c00a['commentId']&&_0x33c00a['hasOwnProperty']('commentId')&&(object['commentId']=_0x33c00a['commentId']),null!=_0x33c00a['createdAt']&&_0x33c00a['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x33c00a['createdAt']),object;},CommentThreadAddedCommentDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentThreadAddedCommentDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentThreadAddedCommentDescriptor';},CommentThreadAddedCommentDescriptor;}()),$root['CommentsThreadDescriptor']=(function(){function CommentsThreadDescriptor(properties){if(this['comments']=[],properties){for(var _0x491403=Object['keys'](properties),_0x2a0ba0=0x0;_0x2a0ba0<_0x491403['length'];++_0x2a0ba0)null!=properties[_0x491403[_0x2a0ba0]]&&(this[_0x491403[_0x2a0ba0]]=properties[_0x491403[_0x2a0ba0]]);}}return CommentsThreadDescriptor['prototype']['commentThreadId']='',CommentsThreadDescriptor['prototype']['comments']=$util['emptyArray'],CommentsThreadDescriptor['prototype']['resolvedAt']='',CommentsThreadDescriptor['prototype']['resolvedBy']='',CommentsThreadDescriptor['prototype']['context']='',CommentsThreadDescriptor['prototype']['createdAt']='',CommentsThreadDescriptor['prototype']['deletedAt']='',CommentsThreadDescriptor['prototype']['attributes']='',CommentsThreadDescriptor['prototype']['unlinkedAt']='',CommentsThreadDescriptor['create']=function(properties){return new CommentsThreadDescriptor(properties);},CommentsThreadDescriptor['encode']=function(_0x56e5b5,writer){if(writer||(writer=$Writer['create']()),null!=_0x56e5b5['commentThreadId']&&Object['hasOwnProperty']['call'](_0x56e5b5,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x56e5b5['commentThreadId']),null!=_0x56e5b5['comments']&&_0x56e5b5['comments']['length']){for(var _0x5a9bce=0x0;_0x5a9bce<_0x56e5b5['comments']['length'];++_0x5a9bce)$root['CommentDescriptor']['encode'](_0x56e5b5['comments'][_0x5a9bce],writer['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x56e5b5['resolvedAt']&&Object['hasOwnProperty']['call'](_0x56e5b5,'resolvedAt')&&writer['uint32'](0x1a)['string'](_0x56e5b5['resolvedAt']),null!=_0x56e5b5['resolvedBy']&&Object['hasOwnProperty']['call'](_0x56e5b5,'resolvedBy')&&writer['uint32'](0x22)['string'](_0x56e5b5['resolvedBy']),null!=_0x56e5b5['context']&&Object['hasOwnProperty']['call'](_0x56e5b5,'context')&&writer['uint32'](0x2a)['string'](_0x56e5b5['context']),null!=_0x56e5b5['createdAt']&&Object['hasOwnProperty']['call'](_0x56e5b5,'createdAt')&&writer['uint32'](0x32)['string'](_0x56e5b5['createdAt']),null!=_0x56e5b5['deletedAt']&&Object['hasOwnProperty']['call'](_0x56e5b5,'deletedAt')&&writer['uint32'](0x3a)['string'](_0x56e5b5['deletedAt']),null!=_0x56e5b5['attributes']&&Object['hasOwnProperty']['call'](_0x56e5b5,'attributes')&&writer['uint32'](0x42)['string'](_0x56e5b5['attributes']),null!=_0x56e5b5['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x56e5b5,'unlinkedAt')&&writer['uint32'](0x4a)['string'](_0x56e5b5['unlinkedAt']),writer;},CommentsThreadDescriptor['encodeDelimited']=function(_0x554dec,writer){return this['encode'](_0x554dec,writer)['ldelim']();},CommentsThreadDescriptor['decode']=function(_0x415369,length,_0x220302){_0x415369 instanceof _0x53a355||(_0x415369=_0x53a355['create'](_0x415369));for(var _0xda06b0=void 0x0===length?_0x415369['len']:_0x415369['pos']+length,_0x361cf0=new $root['CommentsThreadDescriptor']();_0x415369['pos']<_0xda06b0;){var tag=_0x415369['uint32']();if(tag===_0x220302)break;switch(tag>>>0x3){case 0x1:_0x361cf0['commentThreadId']=_0x415369['string']();break;case 0x2:_0x361cf0['comments']&&_0x361cf0['comments']['length']||(_0x361cf0['comments']=[]),_0x361cf0['comments']['push']($root['CommentDescriptor']['decode'](_0x415369,_0x415369['uint32']()));break;case 0x3:_0x361cf0['resolvedAt']=_0x415369['string']();break;case 0x4:_0x361cf0['resolvedBy']=_0x415369['string']();break;case 0x5:_0x361cf0['context']=_0x415369['string']();break;case 0x6:_0x361cf0['createdAt']=_0x415369['string']();break;case 0x7:_0x361cf0['deletedAt']=_0x415369['string']();break;case 0x8:_0x361cf0['attributes']=_0x415369['string']();break;case 0x9:_0x361cf0['unlinkedAt']=_0x415369['string']();break;default:_0x415369['skipType'](0x7&tag);}}return _0x361cf0;},CommentsThreadDescriptor['decodeDelimited']=function(_0x39dab5){return _0x39dab5 instanceof _0x53a355||(_0x39dab5=new _0x53a355(_0x39dab5)),this['decode'](_0x39dab5,_0x39dab5['uint32']());},CommentsThreadDescriptor['verify']=function(_0x30e596){if('object'!=typeof _0x30e596||null===_0x30e596)return'object\x20expected';if(null!=_0x30e596['commentThreadId']&&_0x30e596['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x30e596['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x30e596['comments']&&_0x30e596['hasOwnProperty']('comments')){if(!Array['isArray'](_0x30e596['comments']))return'comments:\x20array\x20expected';for(var _0x5ec286=0x0;_0x5ec286<_0x30e596['comments']['length'];++_0x5ec286){var _0x576aea=$root['CommentDescriptor']['verify'](_0x30e596['comments'][_0x5ec286]);if(_0x576aea)return'comments.'+_0x576aea;}}return null!=_0x30e596['resolvedAt']&&_0x30e596['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x30e596['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x30e596['resolvedBy']&&_0x30e596['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x30e596['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x30e596['context']&&_0x30e596['hasOwnProperty']('context')&&!$util['isString'](_0x30e596['context'])?'context:\x20string\x20expected':null!=_0x30e596['createdAt']&&_0x30e596['hasOwnProperty']('createdAt')&&!$util['isString'](_0x30e596['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x30e596['deletedAt']&&_0x30e596['hasOwnProperty']('deletedAt')&&!$util['isString'](_0x30e596['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x30e596['attributes']&&_0x30e596['hasOwnProperty']('attributes')&&!$util['isString'](_0x30e596['attributes'])?'attributes:\x20string\x20expected':null!=_0x30e596['unlinkedAt']&&_0x30e596['hasOwnProperty']('unlinkedAt')&&!$util['isString'](_0x30e596['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsThreadDescriptor['fromObject']=function(object){if(object instanceof $root['CommentsThreadDescriptor'])return object;var _0x3caae4=new $root['CommentsThreadDescriptor']();if(null!=object['commentThreadId']&&(_0x3caae4['commentThreadId']=String(object['commentThreadId'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsThreadDescriptor.comments:\x20array\x20expected');_0x3caae4['comments']=[];for(var _0x34818a=0x0;_0x34818a<object['comments']['length'];++_0x34818a){if('object'!=typeof object['comments'][_0x34818a])throw TypeError('.CommentsThreadDescriptor.comments:\x20object\x20expected');_0x3caae4['comments'][_0x34818a]=$root['CommentDescriptor']['fromObject'](object['comments'][_0x34818a]);}}return null!=object['resolvedAt']&&(_0x3caae4['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x3caae4['resolvedBy']=String(object['resolvedBy'])),null!=object['context']&&(_0x3caae4['context']=String(object['context'])),null!=object['createdAt']&&(_0x3caae4['createdAt']=String(object['createdAt'])),null!=object['deletedAt']&&(_0x3caae4['deletedAt']=String(object['deletedAt'])),null!=object['attributes']&&(_0x3caae4['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x3caae4['unlinkedAt']=String(object['unlinkedAt'])),_0x3caae4;},CommentsThreadDescriptor['toObject']=function(_0x452eb7,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[]),options['defaults']&&(object['commentThreadId']='',object['resolvedAt']='',object['resolvedBy']='',object['context']='',object['createdAt']='',object['deletedAt']='',object['attributes']='',object['unlinkedAt']=''),null!=_0x452eb7['commentThreadId']&&_0x452eb7['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x452eb7['commentThreadId']),_0x452eb7['comments']&&_0x452eb7['comments']['length']){object['comments']=[];for(var _0x536f79=0x0;_0x536f79<_0x452eb7['comments']['length'];++_0x536f79)object['comments'][_0x536f79]=$root['CommentDescriptor']['toObject'](_0x452eb7['comments'][_0x536f79],options);}return null!=_0x452eb7['resolvedAt']&&_0x452eb7['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x452eb7['resolvedAt']),null!=_0x452eb7['resolvedBy']&&_0x452eb7['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x452eb7['resolvedBy']),null!=_0x452eb7['context']&&_0x452eb7['hasOwnProperty']('context')&&(object['context']=_0x452eb7['context']),null!=_0x452eb7['createdAt']&&_0x452eb7['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x452eb7['createdAt']),null!=_0x452eb7['deletedAt']&&_0x452eb7['hasOwnProperty']('deletedAt')&&(object['deletedAt']=_0x452eb7['deletedAt']),null!=_0x452eb7['attributes']&&_0x452eb7['hasOwnProperty']('attributes')&&(object['attributes']=_0x452eb7['attributes']),null!=_0x452eb7['unlinkedAt']&&_0x452eb7['hasOwnProperty']('unlinkedAt')&&(object['unlinkedAt']=_0x452eb7['unlinkedAt']),object;},CommentsThreadDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsThreadDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsThreadDescriptor';},CommentsThreadDescriptor;}()),$root['CommentDescriptor']=(function(){function CommentDescriptor(properties){if(properties){for(var _0x2527ef=Object['keys'](properties),_0x5a8cd5=0x0;_0x5a8cd5<_0x2527ef['length'];++_0x5a8cd5)null!=properties[_0x2527ef[_0x5a8cd5]]&&(this[_0x2527ef[_0x5a8cd5]]=properties[_0x2527ef[_0x5a8cd5]]);}}return CommentDescriptor['prototype']['commentId']='',CommentDescriptor['prototype']['commentThreadId']='',CommentDescriptor['prototype']['userId']='',CommentDescriptor['prototype']['content']='',CommentDescriptor['prototype']['documentId']='',CommentDescriptor['prototype']['createdAt']='',CommentDescriptor['prototype']['attributes']='',CommentDescriptor['create']=function(properties){return new CommentDescriptor(properties);},CommentDescriptor['encode']=function(_0x4c69af,writer){return writer||(writer=$Writer['create']()),null!=_0x4c69af['commentId']&&Object['hasOwnProperty']['call'](_0x4c69af,'commentId')&&writer['uint32'](0xa)['string'](_0x4c69af['commentId']),null!=_0x4c69af['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4c69af,'commentThreadId')&&writer['uint32'](0x12)['string'](_0x4c69af['commentThreadId']),null!=_0x4c69af['userId']&&Object['hasOwnProperty']['call'](_0x4c69af,'userId')&&writer['uint32'](0x1a)['string'](_0x4c69af['userId']),null!=_0x4c69af['content']&&Object['hasOwnProperty']['call'](_0x4c69af,'content')&&writer['uint32'](0x22)['string'](_0x4c69af['content']),null!=_0x4c69af['documentId']&&Object['hasOwnProperty']['call'](_0x4c69af,'documentId')&&writer['uint32'](0x2a)['string'](_0x4c69af['documentId']),null!=_0x4c69af['createdAt']&&Object['hasOwnProperty']['call'](_0x4c69af,'createdAt')&&writer['uint32'](0x32)['string'](_0x4c69af['createdAt']),null!=_0x4c69af['attributes']&&Object['hasOwnProperty']['call'](_0x4c69af,'attributes')&&writer['uint32'](0x3a)['string'](_0x4c69af['attributes']),writer;},CommentDescriptor['encodeDelimited']=function(_0x2e016a,writer){return this['encode'](_0x2e016a,writer)['ldelim']();},CommentDescriptor['decode']=function(_0x10534f,length,_0x2fa4af){_0x10534f instanceof _0x53a355||(_0x10534f=_0x53a355['create'](_0x10534f));for(var _0x54e4a7=void 0x0===length?_0x10534f['len']:_0x10534f['pos']+length,_0xe630fd=new $root['CommentDescriptor']();_0x10534f['pos']<_0x54e4a7;){var tag=_0x10534f['uint32']();if(tag===_0x2fa4af)break;switch(tag>>>0x3){case 0x1:_0xe630fd['commentId']=_0x10534f['string']();break;case 0x2:_0xe630fd['commentThreadId']=_0x10534f['string']();break;case 0x3:_0xe630fd['userId']=_0x10534f['string']();break;case 0x4:_0xe630fd['content']=_0x10534f['string']();break;case 0x5:_0xe630fd['documentId']=_0x10534f['string']();break;case 0x6:_0xe630fd['createdAt']=_0x10534f['string']();break;case 0x7:_0xe630fd['attributes']=_0x10534f['string']();break;default:_0x10534f['skipType'](0x7&tag);}}return _0xe630fd;},CommentDescriptor['decodeDelimited']=function(_0x35644){return _0x35644 instanceof _0x53a355||(_0x35644=new _0x53a355(_0x35644)),this['decode'](_0x35644,_0x35644['uint32']());},CommentDescriptor['verify']=function(_0x2bccd3){return'object'!=typeof _0x2bccd3||null===_0x2bccd3?'object\x20expected':null!=_0x2bccd3['commentId']&&_0x2bccd3['hasOwnProperty']('commentId')&&!$util['isString'](_0x2bccd3['commentId'])?'commentId:\x20string\x20expected':null!=_0x2bccd3['commentThreadId']&&_0x2bccd3['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x2bccd3['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x2bccd3['userId']&&_0x2bccd3['hasOwnProperty']('userId')&&!$util['isString'](_0x2bccd3['userId'])?'userId:\x20string\x20expected':null!=_0x2bccd3['content']&&_0x2bccd3['hasOwnProperty']('content')&&!$util['isString'](_0x2bccd3['content'])?'content:\x20string\x20expected':null!=_0x2bccd3['documentId']&&_0x2bccd3['hasOwnProperty']('documentId')&&!$util['isString'](_0x2bccd3['documentId'])?'documentId:\x20string\x20expected':null!=_0x2bccd3['createdAt']&&_0x2bccd3['hasOwnProperty']('createdAt')&&!$util['isString'](_0x2bccd3['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x2bccd3['attributes']&&_0x2bccd3['hasOwnProperty']('attributes')&&!$util['isString'](_0x2bccd3['attributes'])?'attributes:\x20string\x20expected':null;},CommentDescriptor['fromObject']=function(object){if(object instanceof $root['CommentDescriptor'])return object;var _0x11b713=new $root['CommentDescriptor']();return null!=object['commentId']&&(_0x11b713['commentId']=String(object['commentId'])),null!=object['commentThreadId']&&(_0x11b713['commentThreadId']=String(object['commentThreadId'])),null!=object['userId']&&(_0x11b713['userId']=String(object['userId'])),null!=object['content']&&(_0x11b713['content']=String(object['content'])),null!=object['documentId']&&(_0x11b713['documentId']=String(object['documentId'])),null!=object['createdAt']&&(_0x11b713['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x11b713['attributes']=String(object['attributes'])),_0x11b713;},CommentDescriptor['toObject']=function(_0x1f50fe,options){options||(options={});var object={};return options['defaults']&&(object['commentId']='',object['commentThreadId']='',object['userId']='',object['content']='',object['documentId']='',object['createdAt']='',object['attributes']=''),null!=_0x1f50fe['commentId']&&_0x1f50fe['hasOwnProperty']('commentId')&&(object['commentId']=_0x1f50fe['commentId']),null!=_0x1f50fe['commentThreadId']&&_0x1f50fe['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x1f50fe['commentThreadId']),null!=_0x1f50fe['userId']&&_0x1f50fe['hasOwnProperty']('userId')&&(object['userId']=_0x1f50fe['userId']),null!=_0x1f50fe['content']&&_0x1f50fe['hasOwnProperty']('content')&&(object['content']=_0x1f50fe['content']),null!=_0x1f50fe['documentId']&&_0x1f50fe['hasOwnProperty']('documentId')&&(object['documentId']=_0x1f50fe['documentId']),null!=_0x1f50fe['createdAt']&&_0x1f50fe['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x1f50fe['createdAt']),null!=_0x1f50fe['attributes']&&_0x1f50fe['hasOwnProperty']('attributes')&&(object['attributes']=_0x1f50fe['attributes']),object;},CommentDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentDescriptor';},CommentDescriptor;}()),$root['GetDocumentDetailsResponse']=(function(){function GetDocumentDetailsResponse(properties){if(properties){for(var _0x4cf77c=Object['keys'](properties),_0x2582a9=0x0;_0x2582a9<_0x4cf77c['length'];++_0x2582a9)null!=properties[_0x4cf77c[_0x2582a9]]&&(this[_0x4cf77c[_0x2582a9]]=properties[_0x4cf77c[_0x2582a9]]);}}return GetDocumentDetailsResponse['prototype']['lastDocumentSessionId']='',GetDocumentDetailsResponse['prototype']['lastDocumentSessionOperationId']='',GetDocumentDetailsResponse['prototype']['currentDocumentSessionId']='',GetDocumentDetailsResponse['prototype']['currentDocumentSessionVersion']=0x0,GetDocumentDetailsResponse['prototype']['currentDocumentSessionOperationId']='',GetDocumentDetailsResponse['create']=function(properties){return new GetDocumentDetailsResponse(properties);},GetDocumentDetailsResponse['encode']=function(_0x3339ea,writer){return writer||(writer=$Writer['create']()),null!=_0x3339ea['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x3339ea,'lastDocumentSessionId')&&writer['uint32'](0xa)['string'](_0x3339ea['lastDocumentSessionId']),null!=_0x3339ea['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x3339ea,'lastDocumentSessionOperationId')&&writer['uint32'](0x12)['string'](_0x3339ea['lastDocumentSessionOperationId']),null!=_0x3339ea['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x3339ea,'currentDocumentSessionId')&&writer['uint32'](0x1a)['string'](_0x3339ea['currentDocumentSessionId']),null!=_0x3339ea['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x3339ea,'currentDocumentSessionVersion')&&writer['uint32'](0x20)['uint32'](_0x3339ea['currentDocumentSessionVersion']),null!=_0x3339ea['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x3339ea,'currentDocumentSessionOperationId')&&writer['uint32'](0x2a)['string'](_0x3339ea['currentDocumentSessionOperationId']),writer;},GetDocumentDetailsResponse['encodeDelimited']=function(_0x4dedfe,writer){return this['encode'](_0x4dedfe,writer)['ldelim']();},GetDocumentDetailsResponse['decode']=function(_0x54cf4c,length,_0x16754a){_0x54cf4c instanceof _0x53a355||(_0x54cf4c=_0x53a355['create'](_0x54cf4c));for(var _0x57f06d=void 0x0===length?_0x54cf4c['len']:_0x54cf4c['pos']+length,_0x275abc=new $root['GetDocumentDetailsResponse']();_0x54cf4c['pos']<_0x57f06d;){var tag=_0x54cf4c['uint32']();if(tag===_0x16754a)break;switch(tag>>>0x3){case 0x1:_0x275abc['lastDocumentSessionId']=_0x54cf4c['string']();break;case 0x2:_0x275abc['lastDocumentSessionOperationId']=_0x54cf4c['string']();break;case 0x3:_0x275abc['currentDocumentSessionId']=_0x54cf4c['string']();break;case 0x4:_0x275abc['currentDocumentSessionVersion']=_0x54cf4c['uint32']();break;case 0x5:_0x275abc['currentDocumentSessionOperationId']=_0x54cf4c['string']();break;default:_0x54cf4c['skipType'](0x7&tag);}}return _0x275abc;},GetDocumentDetailsResponse['decodeDelimited']=function(_0x2a503d){return _0x2a503d instanceof _0x53a355||(_0x2a503d=new _0x53a355(_0x2a503d)),this['decode'](_0x2a503d,_0x2a503d['uint32']());},GetDocumentDetailsResponse['verify']=function(_0x166ae5){return'object'!=typeof _0x166ae5||null===_0x166ae5?'object\x20expected':null!=_0x166ae5['lastDocumentSessionId']&&_0x166ae5['hasOwnProperty']('lastDocumentSessionId')&&!$util['isString'](_0x166ae5['lastDocumentSessionId'])?'lastDocumentSessionId:\x20string\x20expected':null!=_0x166ae5['lastDocumentSessionOperationId']&&_0x166ae5['hasOwnProperty']('lastDocumentSessionOperationId')&&!$util['isString'](_0x166ae5['lastDocumentSessionOperationId'])?'lastDocumentSessionOperationId:\x20string\x20expected':null!=_0x166ae5['currentDocumentSessionId']&&_0x166ae5['hasOwnProperty']('currentDocumentSessionId')&&!$util['isString'](_0x166ae5['currentDocumentSessionId'])?'currentDocumentSessionId:\x20string\x20expected':null!=_0x166ae5['currentDocumentSessionVersion']&&_0x166ae5['hasOwnProperty']('currentDocumentSessionVersion')&&!$util['isInteger'](_0x166ae5['currentDocumentSessionVersion'])?'currentDocumentSessionVersion:\x20integer\x20expected':null!=_0x166ae5['currentDocumentSessionOperationId']&&_0x166ae5['hasOwnProperty']('currentDocumentSessionOperationId')&&!$util['isString'](_0x166ae5['currentDocumentSessionOperationId'])?'currentDocumentSessionOperationId:\x20string\x20expected':null;},GetDocumentDetailsResponse['fromObject']=function(object){if(object instanceof $root['GetDocumentDetailsResponse'])return object;var _0x538ead=new $root['GetDocumentDetailsResponse']();return null!=object['lastDocumentSessionId']&&(_0x538ead['lastDocumentSessionId']=String(object['lastDocumentSessionId'])),null!=object['lastDocumentSessionOperationId']&&(_0x538ead['lastDocumentSessionOperationId']=String(object['lastDocumentSessionOperationId'])),null!=object['currentDocumentSessionId']&&(_0x538ead['currentDocumentSessionId']=String(object['currentDocumentSessionId'])),null!=object['currentDocumentSessionVersion']&&(_0x538ead['currentDocumentSessionVersion']=object['currentDocumentSessionVersion']>>>0x0),null!=object['currentDocumentSessionOperationId']&&(_0x538ead['currentDocumentSessionOperationId']=String(object['currentDocumentSessionOperationId'])),_0x538ead;},GetDocumentDetailsResponse['toObject']=function(_0x2c3526,options){options||(options={});var object={};return options['defaults']&&(object['lastDocumentSessionId']='',object['lastDocumentSessionOperationId']='',object['currentDocumentSessionId']='',object['currentDocumentSessionVersion']=0x0,object['currentDocumentSessionOperationId']=''),null!=_0x2c3526['lastDocumentSessionId']&&_0x2c3526['hasOwnProperty']('lastDocumentSessionId')&&(object['lastDocumentSessionId']=_0x2c3526['lastDocumentSessionId']),null!=_0x2c3526['lastDocumentSessionOperationId']&&_0x2c3526['hasOwnProperty']('lastDocumentSessionOperationId')&&(object['lastDocumentSessionOperationId']=_0x2c3526['lastDocumentSessionOperationId']),null!=_0x2c3526['currentDocumentSessionId']&&_0x2c3526['hasOwnProperty']('currentDocumentSessionId')&&(object['currentDocumentSessionId']=_0x2c3526['currentDocumentSessionId']),null!=_0x2c3526['currentDocumentSessionVersion']&&_0x2c3526['hasOwnProperty']('currentDocumentSessionVersion')&&(object['currentDocumentSessionVersion']=_0x2c3526['currentDocumentSessionVersion']),null!=_0x2c3526['currentDocumentSessionOperationId']&&_0x2c3526['hasOwnProperty']('currentDocumentSessionOperationId')&&(object['currentDocumentSessionOperationId']=_0x2c3526['currentDocumentSessionOperationId']),object;},GetDocumentDetailsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetDocumentDetailsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetDocumentDetailsResponse';},GetDocumentDetailsResponse;}()),$root['CollaborativeEditingResponse']=(function(){function CollaborativeEditingResponse(properties){if(this['buffers']=[],this['types']=[],this['metadata']=[],properties){for(var _0x52c2d5=Object['keys'](properties),_0xfdbce6=0x0;_0xfdbce6<_0x52c2d5['length'];++_0xfdbce6)null!=properties[_0x52c2d5[_0xfdbce6]]&&(this[_0x52c2d5[_0xfdbce6]]=properties[_0x52c2d5[_0xfdbce6]]);}}return CollaborativeEditingResponse['prototype']['version']=0x0,CollaborativeEditingResponse['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingResponse['prototype']['types']=$util['emptyArray'],CollaborativeEditingResponse['prototype']['metadata']=$util['emptyArray'],CollaborativeEditingResponse['prototype']['lastOperationId']='',CollaborativeEditingResponse['prototype']['lastOperationAcceptedAt']='',CollaborativeEditingResponse['create']=function(properties){return new CollaborativeEditingResponse(properties);},CollaborativeEditingResponse['encode']=function(_0x269e57,writer){if(writer||(writer=$Writer['create']()),null!=_0x269e57['version']&&Object['hasOwnProperty']['call'](_0x269e57,'version')&&writer['uint32'](0x8)['uint32'](_0x269e57['version']),null!=_0x269e57['buffers']&&_0x269e57['buffers']['length']){for(var _0x229ff0=0x0;_0x229ff0<_0x269e57['buffers']['length'];++_0x229ff0)writer['uint32'](0x12)['bytes'](_0x269e57['buffers'][_0x229ff0]);}if(null!=_0x269e57['types']&&_0x269e57['types']['length']){writer['uint32'](0x1a)['fork']();for(_0x229ff0=0x0;_0x229ff0<_0x269e57['types']['length'];++_0x229ff0)writer['uint32'](_0x269e57['types'][_0x229ff0]);writer['ldelim']();}if(null!=_0x269e57['metadata']&&_0x269e57['metadata']['length']){for(_0x229ff0=0x0;_0x229ff0<_0x269e57['metadata']['length'];++_0x229ff0)$root['OperationMetadataDescriptor']['encode'](_0x269e57['metadata'][_0x229ff0],writer['uint32'](0x2a)['fork']())['ldelim']();}return null!=_0x269e57['lastOperationId']&&Object['hasOwnProperty']['call'](_0x269e57,'lastOperationId')&&writer['uint32'](0x32)['string'](_0x269e57['lastOperationId']),null!=_0x269e57['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x269e57,'lastOperationAcceptedAt')&&writer['uint32'](0x3a)['string'](_0x269e57['lastOperationAcceptedAt']),writer;},CollaborativeEditingResponse['encodeDelimited']=function(_0x54ea48,writer){return this['encode'](_0x54ea48,writer)['ldelim']();},CollaborativeEditingResponse['decode']=function(_0x38df19,length,_0xd5f7fe){_0x38df19 instanceof _0x53a355||(_0x38df19=_0x53a355['create'](_0x38df19));for(var _0x45ea63=void 0x0===length?_0x38df19['len']:_0x38df19['pos']+length,_0x30721f=new $root['CollaborativeEditingResponse']();_0x38df19['pos']<_0x45ea63;){var tag=_0x38df19['uint32']();if(tag===_0xd5f7fe)break;switch(tag>>>0x3){case 0x1:_0x30721f['version']=_0x38df19['uint32']();break;case 0x2:_0x30721f['buffers']&&_0x30721f['buffers']['length']||(_0x30721f['buffers']=[]),_0x30721f['buffers']['push'](_0x38df19['bytes']());break;case 0x3:if(_0x30721f['types']&&_0x30721f['types']['length']||(_0x30721f['types']=[]),0x2==(0x7&tag)){for(var _0x5cf1b9=_0x38df19['uint32']()+_0x38df19['pos'];_0x38df19['pos']<_0x5cf1b9;)_0x30721f['types']['push'](_0x38df19['uint32']());}else _0x30721f['types']['push'](_0x38df19['uint32']());break;case 0x5:_0x30721f['metadata']&&_0x30721f['metadata']['length']||(_0x30721f['metadata']=[]),_0x30721f['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x38df19,_0x38df19['uint32']()));break;case 0x6:_0x30721f['lastOperationId']=_0x38df19['string']();break;case 0x7:_0x30721f['lastOperationAcceptedAt']=_0x38df19['string']();break;default:_0x38df19['skipType'](0x7&tag);}}return _0x30721f;},CollaborativeEditingResponse['decodeDelimited']=function(_0x15ff09){return _0x15ff09 instanceof _0x53a355||(_0x15ff09=new _0x53a355(_0x15ff09)),this['decode'](_0x15ff09,_0x15ff09['uint32']());},CollaborativeEditingResponse['verify']=function(_0x42e466){if('object'!=typeof _0x42e466||null===_0x42e466)return'object\x20expected';if(null!=_0x42e466['version']&&_0x42e466['hasOwnProperty']('version')&&!$util['isInteger'](_0x42e466['version']))return'version:\x20integer\x20expected';if(null!=_0x42e466['buffers']&&_0x42e466['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x42e466['buffers']))return'buffers:\x20array\x20expected';for(var _0x135bd9=0x0;_0x135bd9<_0x42e466['buffers']['length'];++_0x135bd9)if(!(_0x42e466['buffers'][_0x135bd9]&&'number'==typeof _0x42e466['buffers'][_0x135bd9]['length']||$util['isString'](_0x42e466['buffers'][_0x135bd9])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x42e466['types']&&_0x42e466['hasOwnProperty']('types')){if(!Array['isArray'](_0x42e466['types']))return'types:\x20array\x20expected';for(_0x135bd9=0x0;_0x135bd9<_0x42e466['types']['length'];++_0x135bd9)if(!$util['isInteger'](_0x42e466['types'][_0x135bd9]))return'types:\x20integer[]\x20expected';}if(null!=_0x42e466['metadata']&&_0x42e466['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x42e466['metadata']))return'metadata:\x20array\x20expected';for(_0x135bd9=0x0;_0x135bd9<_0x42e466['metadata']['length'];++_0x135bd9){var _0x4e020b=$root['OperationMetadataDescriptor']['verify'](_0x42e466['metadata'][_0x135bd9]);if(_0x4e020b)return'metadata.'+_0x4e020b;}}return null!=_0x42e466['lastOperationId']&&_0x42e466['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x42e466['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x42e466['lastOperationAcceptedAt']&&_0x42e466['hasOwnProperty']('lastOperationAcceptedAt')&&!$util['isString'](_0x42e466['lastOperationAcceptedAt'])?'lastOperationAcceptedAt:\x20string\x20expected':null;},CollaborativeEditingResponse['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingResponse'])return object;var _0xb266d4=new $root['CollaborativeEditingResponse']();if(null!=object['version']&&(_0xb266d4['version']=object['version']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingResponse.buffers:\x20array\x20expected');_0xb266d4['buffers']=[];for(var _0x5066d0=0x0;_0x5066d0<object['buffers']['length'];++_0x5066d0)'string'==typeof object['buffers'][_0x5066d0]?$util['base64']['decode'](object['buffers'][_0x5066d0],_0xb266d4['buffers'][_0x5066d0]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x5066d0])),0x0):object['buffers'][_0x5066d0]['length']>=0x0&&(_0xb266d4['buffers'][_0x5066d0]=object['buffers'][_0x5066d0]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingResponse.types:\x20array\x20expected');_0xb266d4['types']=[];for(_0x5066d0=0x0;_0x5066d0<object['types']['length'];++_0x5066d0)_0xb266d4['types'][_0x5066d0]=object['types'][_0x5066d0]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingResponse.metadata:\x20array\x20expected');_0xb266d4['metadata']=[];for(_0x5066d0=0x0;_0x5066d0<object['metadata']['length'];++_0x5066d0){if('object'!=typeof object['metadata'][_0x5066d0])throw TypeError('.CollaborativeEditingResponse.metadata:\x20object\x20expected');_0xb266d4['metadata'][_0x5066d0]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x5066d0]);}}return null!=object['lastOperationId']&&(_0xb266d4['lastOperationId']=String(object['lastOperationId'])),null!=object['lastOperationAcceptedAt']&&(_0xb266d4['lastOperationAcceptedAt']=String(object['lastOperationAcceptedAt'])),_0xb266d4;},CollaborativeEditingResponse['toObject']=function(_0x30bba9,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[],object['metadata']=[]),options['defaults']&&(object['version']=0x0,object['lastOperationId']='',object['lastOperationAcceptedAt']=''),null!=_0x30bba9['version']&&_0x30bba9['hasOwnProperty']('version')&&(object['version']=_0x30bba9['version']),_0x30bba9['buffers']&&_0x30bba9['buffers']['length']){object['buffers']=[];for(var _0x5db86f=0x0;_0x5db86f<_0x30bba9['buffers']['length'];++_0x5db86f)object['buffers'][_0x5db86f]=options['bytes']===String?$util['base64']['encode'](_0x30bba9['buffers'][_0x5db86f],0x0,_0x30bba9['buffers'][_0x5db86f]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x30bba9['buffers'][_0x5db86f]):_0x30bba9['buffers'][_0x5db86f];}if(_0x30bba9['types']&&_0x30bba9['types']['length']){object['types']=[];for(_0x5db86f=0x0;_0x5db86f<_0x30bba9['types']['length'];++_0x5db86f)object['types'][_0x5db86f]=_0x30bba9['types'][_0x5db86f];}if(_0x30bba9['metadata']&&_0x30bba9['metadata']['length']){object['metadata']=[];for(_0x5db86f=0x0;_0x5db86f<_0x30bba9['metadata']['length'];++_0x5db86f)object['metadata'][_0x5db86f]=$root['OperationMetadataDescriptor']['toObject'](_0x30bba9['metadata'][_0x5db86f],options);}return null!=_0x30bba9['lastOperationId']&&_0x30bba9['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x30bba9['lastOperationId']),null!=_0x30bba9['lastOperationAcceptedAt']&&_0x30bba9['hasOwnProperty']('lastOperationAcceptedAt')&&(object['lastOperationAcceptedAt']=_0x30bba9['lastOperationAcceptedAt']),object;},CollaborativeEditingResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingResponse';},CollaborativeEditingResponse;}()),$root['CollaborativeEditingConnectResponse']=(function(){function CollaborativeEditingConnectResponse(properties){if(this['buffers']=[],this['types']=[],this['metadata']=[],properties){for(var _0x60b811=Object['keys'](properties),_0x14d324=0x0;_0x14d324<_0x60b811['length'];++_0x14d324)null!=properties[_0x60b811[_0x14d324]]&&(this[_0x60b811[_0x14d324]]=properties[_0x60b811[_0x14d324]]);}}return CollaborativeEditingConnectResponse['prototype']['channel']='',CollaborativeEditingConnectResponse['prototype']['offset']=0x0,CollaborativeEditingConnectResponse['prototype']['version']=0x0,CollaborativeEditingConnectResponse['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingConnectResponse['prototype']['types']=$util['emptyArray'],CollaborativeEditingConnectResponse['prototype']['metadata']=$util['emptyArray'],CollaborativeEditingConnectResponse['prototype']['initData']='',CollaborativeEditingConnectResponse['prototype']['isInitialized']=!0x1,CollaborativeEditingConnectResponse['prototype']['sessionId']='',CollaborativeEditingConnectResponse['prototype']['lastOperationId']='',CollaborativeEditingConnectResponse['prototype']['sessionCreatedAt']='',CollaborativeEditingConnectResponse['create']=function(properties){return new CollaborativeEditingConnectResponse(properties);},CollaborativeEditingConnectResponse['encode']=function(_0x3cfa5c,writer){if(writer||(writer=$Writer['create']()),null!=_0x3cfa5c['channel']&&Object['hasOwnProperty']['call'](_0x3cfa5c,'channel')&&writer['uint32'](0xa)['string'](_0x3cfa5c['channel']),null!=_0x3cfa5c['offset']&&Object['hasOwnProperty']['call'](_0x3cfa5c,'offset')&&writer['uint32'](0x10)['uint32'](_0x3cfa5c['offset']),null!=_0x3cfa5c['version']&&Object['hasOwnProperty']['call'](_0x3cfa5c,'version')&&writer['uint32'](0x18)['uint32'](_0x3cfa5c['version']),null!=_0x3cfa5c['buffers']&&_0x3cfa5c['buffers']['length']){for(var _0x214765=0x0;_0x214765<_0x3cfa5c['buffers']['length'];++_0x214765)writer['uint32'](0x22)['bytes'](_0x3cfa5c['buffers'][_0x214765]);}if(null!=_0x3cfa5c['types']&&_0x3cfa5c['types']['length']){writer['uint32'](0x2a)['fork']();for(_0x214765=0x0;_0x214765<_0x3cfa5c['types']['length'];++_0x214765)writer['uint32'](_0x3cfa5c['types'][_0x214765]);writer['ldelim']();}if(null!=_0x3cfa5c['metadata']&&_0x3cfa5c['metadata']['length']){for(_0x214765=0x0;_0x214765<_0x3cfa5c['metadata']['length'];++_0x214765)$root['OperationMetadataDescriptor']['encode'](_0x3cfa5c['metadata'][_0x214765],writer['uint32'](0x3a)['fork']())['ldelim']();}return null!=_0x3cfa5c['initData']&&Object['hasOwnProperty']['call'](_0x3cfa5c,'initData')&&writer['uint32'](0x42)['string'](_0x3cfa5c['initData']),null!=_0x3cfa5c['isInitialized']&&Object['hasOwnProperty']['call'](_0x3cfa5c,'isInitialized')&&writer['uint32'](0x48)['bool'](_0x3cfa5c['isInitialized']),null!=_0x3cfa5c['sessionId']&&Object['hasOwnProperty']['call'](_0x3cfa5c,'sessionId')&&writer['uint32'](0x52)['string'](_0x3cfa5c['sessionId']),null!=_0x3cfa5c['lastOperationId']&&Object['hasOwnProperty']['call'](_0x3cfa5c,'lastOperationId')&&writer['uint32'](0x5a)['string'](_0x3cfa5c['lastOperationId']),null!=_0x3cfa5c['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0x3cfa5c,'sessionCreatedAt')&&writer['uint32'](0x62)['string'](_0x3cfa5c['sessionCreatedAt']),writer;},CollaborativeEditingConnectResponse['encodeDelimited']=function(_0x508406,writer){return this['encode'](_0x508406,writer)['ldelim']();},CollaborativeEditingConnectResponse['decode']=function(_0x550054,length,_0x1acc97){_0x550054 instanceof _0x53a355||(_0x550054=_0x53a355['create'](_0x550054));for(var _0x471631=void 0x0===length?_0x550054['len']:_0x550054['pos']+length,_0xf5c1d9=new $root['CollaborativeEditingConnectResponse']();_0x550054['pos']<_0x471631;){var tag=_0x550054['uint32']();if(tag===_0x1acc97)break;switch(tag>>>0x3){case 0x1:_0xf5c1d9['channel']=_0x550054['string']();break;case 0x2:_0xf5c1d9['offset']=_0x550054['uint32']();break;case 0x3:_0xf5c1d9['version']=_0x550054['uint32']();break;case 0x4:_0xf5c1d9['buffers']&&_0xf5c1d9['buffers']['length']||(_0xf5c1d9['buffers']=[]),_0xf5c1d9['buffers']['push'](_0x550054['bytes']());break;case 0x5:if(_0xf5c1d9['types']&&_0xf5c1d9['types']['length']||(_0xf5c1d9['types']=[]),0x2==(0x7&tag)){for(var _0xf0668d=_0x550054['uint32']()+_0x550054['pos'];_0x550054['pos']<_0xf0668d;)_0xf5c1d9['types']['push'](_0x550054['uint32']());}else _0xf5c1d9['types']['push'](_0x550054['uint32']());break;case 0x7:_0xf5c1d9['metadata']&&_0xf5c1d9['metadata']['length']||(_0xf5c1d9['metadata']=[]),_0xf5c1d9['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x550054,_0x550054['uint32']()));break;case 0x8:_0xf5c1d9['initData']=_0x550054['string']();break;case 0x9:_0xf5c1d9['isInitialized']=_0x550054['bool']();break;case 0xa:_0xf5c1d9['sessionId']=_0x550054['string']();break;case 0xb:_0xf5c1d9['lastOperationId']=_0x550054['string']();break;case 0xc:_0xf5c1d9['sessionCreatedAt']=_0x550054['string']();break;default:_0x550054['skipType'](0x7&tag);}}return _0xf5c1d9;},CollaborativeEditingConnectResponse['decodeDelimited']=function(_0x296c5c){return _0x296c5c instanceof _0x53a355||(_0x296c5c=new _0x53a355(_0x296c5c)),this['decode'](_0x296c5c,_0x296c5c['uint32']());},CollaborativeEditingConnectResponse['verify']=function(_0x33152b){if('object'!=typeof _0x33152b||null===_0x33152b)return'object\x20expected';if(null!=_0x33152b['channel']&&_0x33152b['hasOwnProperty']('channel')&&!$util['isString'](_0x33152b['channel']))return'channel:\x20string\x20expected';if(null!=_0x33152b['offset']&&_0x33152b['hasOwnProperty']('offset')&&!$util['isInteger'](_0x33152b['offset']))return'offset:\x20integer\x20expected';if(null!=_0x33152b['version']&&_0x33152b['hasOwnProperty']('version')&&!$util['isInteger'](_0x33152b['version']))return'version:\x20integer\x20expected';if(null!=_0x33152b['buffers']&&_0x33152b['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x33152b['buffers']))return'buffers:\x20array\x20expected';for(var _0x54baf3=0x0;_0x54baf3<_0x33152b['buffers']['length'];++_0x54baf3)if(!(_0x33152b['buffers'][_0x54baf3]&&'number'==typeof _0x33152b['buffers'][_0x54baf3]['length']||$util['isString'](_0x33152b['buffers'][_0x54baf3])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x33152b['types']&&_0x33152b['hasOwnProperty']('types')){if(!Array['isArray'](_0x33152b['types']))return'types:\x20array\x20expected';for(_0x54baf3=0x0;_0x54baf3<_0x33152b['types']['length'];++_0x54baf3)if(!$util['isInteger'](_0x33152b['types'][_0x54baf3]))return'types:\x20integer[]\x20expected';}if(null!=_0x33152b['metadata']&&_0x33152b['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x33152b['metadata']))return'metadata:\x20array\x20expected';for(_0x54baf3=0x0;_0x54baf3<_0x33152b['metadata']['length'];++_0x54baf3){var _0x50c821=$root['OperationMetadataDescriptor']['verify'](_0x33152b['metadata'][_0x54baf3]);if(_0x50c821)return'metadata.'+_0x50c821;}}return null!=_0x33152b['initData']&&_0x33152b['hasOwnProperty']('initData')&&!$util['isString'](_0x33152b['initData'])?'initData:\x20string\x20expected':null!=_0x33152b['isInitialized']&&_0x33152b['hasOwnProperty']('isInitialized')&&'boolean'!=typeof _0x33152b['isInitialized']?'isInitialized:\x20boolean\x20expected':null!=_0x33152b['sessionId']&&_0x33152b['hasOwnProperty']('sessionId')&&!$util['isString'](_0x33152b['sessionId'])?'sessionId:\x20string\x20expected':null!=_0x33152b['lastOperationId']&&_0x33152b['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x33152b['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x33152b['sessionCreatedAt']&&_0x33152b['hasOwnProperty']('sessionCreatedAt')&&!$util['isString'](_0x33152b['sessionCreatedAt'])?'sessionCreatedAt:\x20string\x20expected':null;},CollaborativeEditingConnectResponse['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingConnectResponse'])return object;var _0x1ae470=new $root['CollaborativeEditingConnectResponse']();if(null!=object['channel']&&(_0x1ae470['channel']=String(object['channel'])),null!=object['offset']&&(_0x1ae470['offset']=object['offset']>>>0x0),null!=object['version']&&(_0x1ae470['version']=object['version']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingConnectResponse.buffers:\x20array\x20expected');_0x1ae470['buffers']=[];for(var _0x7503dc=0x0;_0x7503dc<object['buffers']['length'];++_0x7503dc)'string'==typeof object['buffers'][_0x7503dc]?$util['base64']['decode'](object['buffers'][_0x7503dc],_0x1ae470['buffers'][_0x7503dc]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x7503dc])),0x0):object['buffers'][_0x7503dc]['length']>=0x0&&(_0x1ae470['buffers'][_0x7503dc]=object['buffers'][_0x7503dc]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingConnectResponse.types:\x20array\x20expected');_0x1ae470['types']=[];for(_0x7503dc=0x0;_0x7503dc<object['types']['length'];++_0x7503dc)_0x1ae470['types'][_0x7503dc]=object['types'][_0x7503dc]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20array\x20expected');_0x1ae470['metadata']=[];for(_0x7503dc=0x0;_0x7503dc<object['metadata']['length'];++_0x7503dc){if('object'!=typeof object['metadata'][_0x7503dc])throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20object\x20expected');_0x1ae470['metadata'][_0x7503dc]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x7503dc]);}}return null!=object['initData']&&(_0x1ae470['initData']=String(object['initData'])),null!=object['isInitialized']&&(_0x1ae470['isInitialized']=Boolean(object['isInitialized'])),null!=object['sessionId']&&(_0x1ae470['sessionId']=String(object['sessionId'])),null!=object['lastOperationId']&&(_0x1ae470['lastOperationId']=String(object['lastOperationId'])),null!=object['sessionCreatedAt']&&(_0x1ae470['sessionCreatedAt']=String(object['sessionCreatedAt'])),_0x1ae470;},CollaborativeEditingConnectResponse['toObject']=function(_0x347725,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[],object['metadata']=[]),options['defaults']&&(object['channel']='',object['offset']=0x0,object['version']=0x0,object['initData']='',object['isInitialized']=!0x1,object['sessionId']='',object['lastOperationId']='',object['sessionCreatedAt']=''),null!=_0x347725['channel']&&_0x347725['hasOwnProperty']('channel')&&(object['channel']=_0x347725['channel']),null!=_0x347725['offset']&&_0x347725['hasOwnProperty']('offset')&&(object['offset']=_0x347725['offset']),null!=_0x347725['version']&&_0x347725['hasOwnProperty']('version')&&(object['version']=_0x347725['version']),_0x347725['buffers']&&_0x347725['buffers']['length']){object['buffers']=[];for(var _0x3bfa13=0x0;_0x3bfa13<_0x347725['buffers']['length'];++_0x3bfa13)object['buffers'][_0x3bfa13]=options['bytes']===String?$util['base64']['encode'](_0x347725['buffers'][_0x3bfa13],0x0,_0x347725['buffers'][_0x3bfa13]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x347725['buffers'][_0x3bfa13]):_0x347725['buffers'][_0x3bfa13];}if(_0x347725['types']&&_0x347725['types']['length']){object['types']=[];for(_0x3bfa13=0x0;_0x3bfa13<_0x347725['types']['length'];++_0x3bfa13)object['types'][_0x3bfa13]=_0x347725['types'][_0x3bfa13];}if(_0x347725['metadata']&&_0x347725['metadata']['length']){object['metadata']=[];for(_0x3bfa13=0x0;_0x3bfa13<_0x347725['metadata']['length'];++_0x3bfa13)object['metadata'][_0x3bfa13]=$root['OperationMetadataDescriptor']['toObject'](_0x347725['metadata'][_0x3bfa13],options);}return null!=_0x347725['initData']&&_0x347725['hasOwnProperty']('initData')&&(object['initData']=_0x347725['initData']),null!=_0x347725['isInitialized']&&_0x347725['hasOwnProperty']('isInitialized')&&(object['isInitialized']=_0x347725['isInitialized']),null!=_0x347725['sessionId']&&_0x347725['hasOwnProperty']('sessionId')&&(object['sessionId']=_0x347725['sessionId']),null!=_0x347725['lastOperationId']&&_0x347725['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x347725['lastOperationId']),null!=_0x347725['sessionCreatedAt']&&_0x347725['hasOwnProperty']('sessionCreatedAt')&&(object['sessionCreatedAt']=_0x347725['sessionCreatedAt']),object;},CollaborativeEditingConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingConnectResponse';},CollaborativeEditingConnectResponse;}()),$root['GetDocumentDetailsMessage']=(function(){function GetDocumentDetailsMessage(properties){if(properties){for(var _0x1f5ace=Object['keys'](properties),_0x469b04=0x0;_0x469b04<_0x1f5ace['length'];++_0x469b04)null!=properties[_0x1f5ace[_0x469b04]]&&(this[_0x1f5ace[_0x469b04]]=properties[_0x1f5ace[_0x469b04]]);}}return GetDocumentDetailsMessage['prototype']['documentId']='',GetDocumentDetailsMessage['prototype']['environmentId']='',GetDocumentDetailsMessage['create']=function(properties){return new GetDocumentDetailsMessage(properties);},GetDocumentDetailsMessage['encode']=function(_0xc7320c,writer){return writer||(writer=$Writer['create']()),null!=_0xc7320c['documentId']&&Object['hasOwnProperty']['call'](_0xc7320c,'documentId')&&writer['uint32'](0xa)['string'](_0xc7320c['documentId']),null!=_0xc7320c['environmentId']&&Object['hasOwnProperty']['call'](_0xc7320c,'environmentId')&&writer['uint32'](0x12)['string'](_0xc7320c['environmentId']),writer;},GetDocumentDetailsMessage['encodeDelimited']=function(_0x379bb4,writer){return this['encode'](_0x379bb4,writer)['ldelim']();},GetDocumentDetailsMessage['decode']=function(_0x251712,length,_0x4e4111){_0x251712 instanceof _0x53a355||(_0x251712=_0x53a355['create'](_0x251712));for(var _0x14b616=void 0x0===length?_0x251712['len']:_0x251712['pos']+length,_0x246dd1=new $root['GetDocumentDetailsMessage']();_0x251712['pos']<_0x14b616;){var tag=_0x251712['uint32']();if(tag===_0x4e4111)break;switch(tag>>>0x3){case 0x1:_0x246dd1['documentId']=_0x251712['string']();break;case 0x2:_0x246dd1['environmentId']=_0x251712['string']();break;default:_0x251712['skipType'](0x7&tag);}}return _0x246dd1;},GetDocumentDetailsMessage['decodeDelimited']=function(_0x551a1c){return _0x551a1c instanceof _0x53a355||(_0x551a1c=new _0x53a355(_0x551a1c)),this['decode'](_0x551a1c,_0x551a1c['uint32']());},GetDocumentDetailsMessage['verify']=function(_0x36c8f6){return'object'!=typeof _0x36c8f6||null===_0x36c8f6?'object\x20expected':null!=_0x36c8f6['documentId']&&_0x36c8f6['hasOwnProperty']('documentId')&&!$util['isString'](_0x36c8f6['documentId'])?'documentId:\x20string\x20expected':null!=_0x36c8f6['environmentId']&&_0x36c8f6['hasOwnProperty']('environmentId')&&!$util['isString'](_0x36c8f6['environmentId'])?'environmentId:\x20string\x20expected':null;},GetDocumentDetailsMessage['fromObject']=function(object){if(object instanceof $root['GetDocumentDetailsMessage'])return object;var _0x2dd1ca=new $root['GetDocumentDetailsMessage']();return null!=object['documentId']&&(_0x2dd1ca['documentId']=String(object['documentId'])),null!=object['environmentId']&&(_0x2dd1ca['environmentId']=String(object['environmentId'])),_0x2dd1ca;},GetDocumentDetailsMessage['toObject']=function(_0xbaaa1a,options){options||(options={});var object={};return options['defaults']&&(object['documentId']='',object['environmentId']=''),null!=_0xbaaa1a['documentId']&&_0xbaaa1a['hasOwnProperty']('documentId')&&(object['documentId']=_0xbaaa1a['documentId']),null!=_0xbaaa1a['environmentId']&&_0xbaaa1a['hasOwnProperty']('environmentId')&&(object['environmentId']=_0xbaaa1a['environmentId']),object;},GetDocumentDetailsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetDocumentDetailsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetDocumentDetailsMessage';},GetDocumentDetailsMessage;}()),$root['CollaborativeEditingUpdateMessage']=(function(){function CollaborativeEditingUpdateMessage(properties){if(this['buffers']=[],this['types']=[],this['metadata']=[],properties){for(var _0x2e45b2=Object['keys'](properties),_0x29ac43=0x0;_0x29ac43<_0x2e45b2['length'];++_0x29ac43)null!=properties[_0x2e45b2[_0x29ac43]]&&(this[_0x2e45b2[_0x29ac43]]=properties[_0x2e45b2[_0x29ac43]]);}}return CollaborativeEditingUpdateMessage['prototype']['id']='',CollaborativeEditingUpdateMessage['prototype']['baseVersion']=0x0,CollaborativeEditingUpdateMessage['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingUpdateMessage['prototype']['types']=$util['emptyArray'],CollaborativeEditingUpdateMessage['prototype']['metadata']=$util['emptyArray'],CollaborativeEditingUpdateMessage['prototype']['lastOperationId']='',CollaborativeEditingUpdateMessage['create']=function(properties){return new CollaborativeEditingUpdateMessage(properties);},CollaborativeEditingUpdateMessage['encode']=function(_0x5769ba,writer){if(writer||(writer=$Writer['create']()),null!=_0x5769ba['id']&&Object['hasOwnProperty']['call'](_0x5769ba,'id')&&writer['uint32'](0xa)['string'](_0x5769ba['id']),null!=_0x5769ba['baseVersion']&&Object['hasOwnProperty']['call'](_0x5769ba,'baseVersion')&&writer['uint32'](0x10)['uint32'](_0x5769ba['baseVersion']),null!=_0x5769ba['buffers']&&_0x5769ba['buffers']['length']){for(var _0x499419=0x0;_0x499419<_0x5769ba['buffers']['length'];++_0x499419)writer['uint32'](0x1a)['bytes'](_0x5769ba['buffers'][_0x499419]);}if(null!=_0x5769ba['types']&&_0x5769ba['types']['length']){writer['uint32'](0x22)['fork']();for(_0x499419=0x0;_0x499419<_0x5769ba['types']['length'];++_0x499419)writer['uint32'](_0x5769ba['types'][_0x499419]);writer['ldelim']();}if(null!=_0x5769ba['metadata']&&_0x5769ba['metadata']['length']){for(_0x499419=0x0;_0x499419<_0x5769ba['metadata']['length'];++_0x499419)$root['OperationMetadataDescriptor']['encode'](_0x5769ba['metadata'][_0x499419],writer['uint32'](0x32)['fork']())['ldelim']();}return null!=_0x5769ba['lastOperationId']&&Object['hasOwnProperty']['call'](_0x5769ba,'lastOperationId')&&writer['uint32'](0x3a)['string'](_0x5769ba['lastOperationId']),writer;},CollaborativeEditingUpdateMessage['encodeDelimited']=function(_0x582704,writer){return this['encode'](_0x582704,writer)['ldelim']();},CollaborativeEditingUpdateMessage['decode']=function(_0x4009ac,length,_0x3dd13a){_0x4009ac instanceof _0x53a355||(_0x4009ac=_0x53a355['create'](_0x4009ac));for(var _0x5881eb=void 0x0===length?_0x4009ac['len']:_0x4009ac['pos']+length,_0x5241bc=new $root['CollaborativeEditingUpdateMessage']();_0x4009ac['pos']<_0x5881eb;){var tag=_0x4009ac['uint32']();if(tag===_0x3dd13a)break;switch(tag>>>0x3){case 0x1:_0x5241bc['id']=_0x4009ac['string']();break;case 0x2:_0x5241bc['baseVersion']=_0x4009ac['uint32']();break;case 0x3:_0x5241bc['buffers']&&_0x5241bc['buffers']['length']||(_0x5241bc['buffers']=[]),_0x5241bc['buffers']['push'](_0x4009ac['bytes']());break;case 0x4:if(_0x5241bc['types']&&_0x5241bc['types']['length']||(_0x5241bc['types']=[]),0x2==(0x7&tag)){for(var _0x1a391e=_0x4009ac['uint32']()+_0x4009ac['pos'];_0x4009ac['pos']<_0x1a391e;)_0x5241bc['types']['push'](_0x4009ac['uint32']());}else _0x5241bc['types']['push'](_0x4009ac['uint32']());break;case 0x6:_0x5241bc['metadata']&&_0x5241bc['metadata']['length']||(_0x5241bc['metadata']=[]),_0x5241bc['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x4009ac,_0x4009ac['uint32']()));break;case 0x7:_0x5241bc['lastOperationId']=_0x4009ac['string']();break;default:_0x4009ac['skipType'](0x7&tag);}}return _0x5241bc;},CollaborativeEditingUpdateMessage['decodeDelimited']=function(_0x659740){return _0x659740 instanceof _0x53a355||(_0x659740=new _0x53a355(_0x659740)),this['decode'](_0x659740,_0x659740['uint32']());},CollaborativeEditingUpdateMessage['verify']=function(_0xcd2075){if('object'!=typeof _0xcd2075||null===_0xcd2075)return'object\x20expected';if(null!=_0xcd2075['id']&&_0xcd2075['hasOwnProperty']('id')&&!$util['isString'](_0xcd2075['id']))return'id:\x20string\x20expected';if(null!=_0xcd2075['baseVersion']&&_0xcd2075['hasOwnProperty']('baseVersion')&&!$util['isInteger'](_0xcd2075['baseVersion']))return'baseVersion:\x20integer\x20expected';if(null!=_0xcd2075['buffers']&&_0xcd2075['hasOwnProperty']('buffers')){if(!Array['isArray'](_0xcd2075['buffers']))return'buffers:\x20array\x20expected';for(var _0x26d666=0x0;_0x26d666<_0xcd2075['buffers']['length'];++_0x26d666)if(!(_0xcd2075['buffers'][_0x26d666]&&'number'==typeof _0xcd2075['buffers'][_0x26d666]['length']||$util['isString'](_0xcd2075['buffers'][_0x26d666])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0xcd2075['types']&&_0xcd2075['hasOwnProperty']('types')){if(!Array['isArray'](_0xcd2075['types']))return'types:\x20array\x20expected';for(_0x26d666=0x0;_0x26d666<_0xcd2075['types']['length'];++_0x26d666)if(!$util['isInteger'](_0xcd2075['types'][_0x26d666]))return'types:\x20integer[]\x20expected';}if(null!=_0xcd2075['metadata']&&_0xcd2075['hasOwnProperty']('metadata')){if(!Array['isArray'](_0xcd2075['metadata']))return'metadata:\x20array\x20expected';for(_0x26d666=0x0;_0x26d666<_0xcd2075['metadata']['length'];++_0x26d666){var _0x1fd932=$root['OperationMetadataDescriptor']['verify'](_0xcd2075['metadata'][_0x26d666]);if(_0x1fd932)return'metadata.'+_0x1fd932;}}return null!=_0xcd2075['lastOperationId']&&_0xcd2075['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0xcd2075['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},CollaborativeEditingUpdateMessage['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingUpdateMessage'])return object;var _0xe81539=new $root['CollaborativeEditingUpdateMessage']();if(null!=object['id']&&(_0xe81539['id']=String(object['id'])),null!=object['baseVersion']&&(_0xe81539['baseVersion']=object['baseVersion']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingUpdateMessage.buffers:\x20array\x20expected');_0xe81539['buffers']=[];for(var _0x7c1237=0x0;_0x7c1237<object['buffers']['length'];++_0x7c1237)'string'==typeof object['buffers'][_0x7c1237]?$util['base64']['decode'](object['buffers'][_0x7c1237],_0xe81539['buffers'][_0x7c1237]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x7c1237])),0x0):object['buffers'][_0x7c1237]['length']>=0x0&&(_0xe81539['buffers'][_0x7c1237]=object['buffers'][_0x7c1237]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingUpdateMessage.types:\x20array\x20expected');_0xe81539['types']=[];for(_0x7c1237=0x0;_0x7c1237<object['types']['length'];++_0x7c1237)_0xe81539['types'][_0x7c1237]=object['types'][_0x7c1237]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20array\x20expected');_0xe81539['metadata']=[];for(_0x7c1237=0x0;_0x7c1237<object['metadata']['length'];++_0x7c1237){if('object'!=typeof object['metadata'][_0x7c1237])throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20object\x20expected');_0xe81539['metadata'][_0x7c1237]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x7c1237]);}}return null!=object['lastOperationId']&&(_0xe81539['lastOperationId']=String(object['lastOperationId'])),_0xe81539;},CollaborativeEditingUpdateMessage['toObject']=function(_0x18af0f,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[],object['metadata']=[]),options['defaults']&&(object['id']='',object['baseVersion']=0x0,object['lastOperationId']=''),null!=_0x18af0f['id']&&_0x18af0f['hasOwnProperty']('id')&&(object['id']=_0x18af0f['id']),null!=_0x18af0f['baseVersion']&&_0x18af0f['hasOwnProperty']('baseVersion')&&(object['baseVersion']=_0x18af0f['baseVersion']),_0x18af0f['buffers']&&_0x18af0f['buffers']['length']){object['buffers']=[];for(var _0x551eef=0x0;_0x551eef<_0x18af0f['buffers']['length'];++_0x551eef)object['buffers'][_0x551eef]=options['bytes']===String?$util['base64']['encode'](_0x18af0f['buffers'][_0x551eef],0x0,_0x18af0f['buffers'][_0x551eef]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x18af0f['buffers'][_0x551eef]):_0x18af0f['buffers'][_0x551eef];}if(_0x18af0f['types']&&_0x18af0f['types']['length']){object['types']=[];for(_0x551eef=0x0;_0x551eef<_0x18af0f['types']['length'];++_0x551eef)object['types'][_0x551eef]=_0x18af0f['types'][_0x551eef];}if(_0x18af0f['metadata']&&_0x18af0f['metadata']['length']){object['metadata']=[];for(_0x551eef=0x0;_0x551eef<_0x18af0f['metadata']['length'];++_0x551eef)object['metadata'][_0x551eef]=$root['OperationMetadataDescriptor']['toObject'](_0x18af0f['metadata'][_0x551eef],options);}return null!=_0x18af0f['lastOperationId']&&_0x18af0f['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x18af0f['lastOperationId']),object;},CollaborativeEditingUpdateMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingUpdateMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingUpdateMessage';},CollaborativeEditingUpdateMessage;}()),$root['CollaborativeEditingReconnectMessage']=(function(){function CollaborativeEditingReconnectMessage(properties){if(properties){for(var _0x1a65b9=Object['keys'](properties),_0x5934af=0x0;_0x5934af<_0x1a65b9['length'];++_0x5934af)null!=properties[_0x1a65b9[_0x5934af]]&&(this[_0x1a65b9[_0x5934af]]=properties[_0x1a65b9[_0x5934af]]);}}return CollaborativeEditingReconnectMessage['prototype']['id']='',CollaborativeEditingReconnectMessage['prototype']['bundleVersion']='',CollaborativeEditingReconnectMessage['prototype']['lastKnowVersion']=0x0,CollaborativeEditingReconnectMessage['create']=function(properties){return new CollaborativeEditingReconnectMessage(properties);},CollaborativeEditingReconnectMessage['encode']=function(_0x1cb2b6,writer){return writer||(writer=$Writer['create']()),null!=_0x1cb2b6['id']&&Object['hasOwnProperty']['call'](_0x1cb2b6,'id')&&writer['uint32'](0xa)['string'](_0x1cb2b6['id']),null!=_0x1cb2b6['bundleVersion']&&Object['hasOwnProperty']['call'](_0x1cb2b6,'bundleVersion')&&writer['uint32'](0x12)['string'](_0x1cb2b6['bundleVersion']),null!=_0x1cb2b6['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x1cb2b6,'lastKnowVersion')&&writer['uint32'](0x18)['uint32'](_0x1cb2b6['lastKnowVersion']),writer;},CollaborativeEditingReconnectMessage['encodeDelimited']=function(_0x4a7f71,writer){return this['encode'](_0x4a7f71,writer)['ldelim']();},CollaborativeEditingReconnectMessage['decode']=function(_0x2195d7,length,_0x1b3f13){_0x2195d7 instanceof _0x53a355||(_0x2195d7=_0x53a355['create'](_0x2195d7));for(var _0x3df3a5=void 0x0===length?_0x2195d7['len']:_0x2195d7['pos']+length,_0xbc7801=new $root['CollaborativeEditingReconnectMessage']();_0x2195d7['pos']<_0x3df3a5;){var tag=_0x2195d7['uint32']();if(tag===_0x1b3f13)break;switch(tag>>>0x3){case 0x1:_0xbc7801['id']=_0x2195d7['string']();break;case 0x2:_0xbc7801['bundleVersion']=_0x2195d7['string']();break;case 0x3:_0xbc7801['lastKnowVersion']=_0x2195d7['uint32']();break;default:_0x2195d7['skipType'](0x7&tag);}}return _0xbc7801;},CollaborativeEditingReconnectMessage['decodeDelimited']=function(_0x2a56a9){return _0x2a56a9 instanceof _0x53a355||(_0x2a56a9=new _0x53a355(_0x2a56a9)),this['decode'](_0x2a56a9,_0x2a56a9['uint32']());},CollaborativeEditingReconnectMessage['verify']=function(_0x4971ed){return'object'!=typeof _0x4971ed||null===_0x4971ed?'object\x20expected':null!=_0x4971ed['id']&&_0x4971ed['hasOwnProperty']('id')&&!$util['isString'](_0x4971ed['id'])?'id:\x20string\x20expected':null!=_0x4971ed['bundleVersion']&&_0x4971ed['hasOwnProperty']('bundleVersion')&&!$util['isString'](_0x4971ed['bundleVersion'])?'bundleVersion:\x20string\x20expected':null!=_0x4971ed['lastKnowVersion']&&_0x4971ed['hasOwnProperty']('lastKnowVersion')&&!$util['isInteger'](_0x4971ed['lastKnowVersion'])?'lastKnowVersion:\x20integer\x20expected':null;},CollaborativeEditingReconnectMessage['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingReconnectMessage'])return object;var _0x2a7c65=new $root['CollaborativeEditingReconnectMessage']();return null!=object['id']&&(_0x2a7c65['id']=String(object['id'])),null!=object['bundleVersion']&&(_0x2a7c65['bundleVersion']=String(object['bundleVersion'])),null!=object['lastKnowVersion']&&(_0x2a7c65['lastKnowVersion']=object['lastKnowVersion']>>>0x0),_0x2a7c65;},CollaborativeEditingReconnectMessage['toObject']=function(_0xe3dcdb,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['bundleVersion']='',object['lastKnowVersion']=0x0),null!=_0xe3dcdb['id']&&_0xe3dcdb['hasOwnProperty']('id')&&(object['id']=_0xe3dcdb['id']),null!=_0xe3dcdb['bundleVersion']&&_0xe3dcdb['hasOwnProperty']('bundleVersion')&&(object['bundleVersion']=_0xe3dcdb['bundleVersion']),null!=_0xe3dcdb['lastKnowVersion']&&_0xe3dcdb['hasOwnProperty']('lastKnowVersion')&&(object['lastKnowVersion']=_0xe3dcdb['lastKnowVersion']),object;},CollaborativeEditingReconnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingReconnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingReconnectMessage';},CollaborativeEditingReconnectMessage;}()),$root['CollaborativeEditingConnectMessage']=(function(){function CollaborativeEditingConnectMessage(properties){if(this['buffers']=[],this['types']=[],properties){for(var _0x412cd5=Object['keys'](properties),_0x5ac5ad=0x0;_0x5ac5ad<_0x412cd5['length'];++_0x5ac5ad)null!=properties[_0x412cd5[_0x5ac5ad]]&&(this[_0x412cd5[_0x5ac5ad]]=properties[_0x412cd5[_0x5ac5ad]]);}}return CollaborativeEditingConnectMessage['prototype']['id']='',CollaborativeEditingConnectMessage['prototype']['bundleVersion']='',CollaborativeEditingConnectMessage['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingConnectMessage['prototype']['types']=$util['emptyArray'],CollaborativeEditingConnectMessage['prototype']['lastOperationId']='',CollaborativeEditingConnectMessage['create']=function(properties){return new CollaborativeEditingConnectMessage(properties);},CollaborativeEditingConnectMessage['encode']=function(_0x26543a,writer){if(writer||(writer=$Writer['create']()),null!=_0x26543a['id']&&Object['hasOwnProperty']['call'](_0x26543a,'id')&&writer['uint32'](0xa)['string'](_0x26543a['id']),null!=_0x26543a['bundleVersion']&&Object['hasOwnProperty']['call'](_0x26543a,'bundleVersion')&&writer['uint32'](0x12)['string'](_0x26543a['bundleVersion']),null!=_0x26543a['buffers']&&_0x26543a['buffers']['length']){for(var _0x5cea8a=0x0;_0x5cea8a<_0x26543a['buffers']['length'];++_0x5cea8a)writer['uint32'](0x1a)['bytes'](_0x26543a['buffers'][_0x5cea8a]);}if(null!=_0x26543a['types']&&_0x26543a['types']['length']){writer['uint32'](0x22)['fork']();for(_0x5cea8a=0x0;_0x5cea8a<_0x26543a['types']['length'];++_0x5cea8a)writer['uint32'](_0x26543a['types'][_0x5cea8a]);writer['ldelim']();}return null!=_0x26543a['lastOperationId']&&Object['hasOwnProperty']['call'](_0x26543a,'lastOperationId')&&writer['uint32'](0x2a)['string'](_0x26543a['lastOperationId']),writer;},CollaborativeEditingConnectMessage['encodeDelimited']=function(_0xceaea,writer){return this['encode'](_0xceaea,writer)['ldelim']();},CollaborativeEditingConnectMessage['decode']=function(_0x121836,length,_0x2abee0){_0x121836 instanceof _0x53a355||(_0x121836=_0x53a355['create'](_0x121836));for(var _0x390fb6=void 0x0===length?_0x121836['len']:_0x121836['pos']+length,_0x38862c=new $root['CollaborativeEditingConnectMessage']();_0x121836['pos']<_0x390fb6;){var tag=_0x121836['uint32']();if(tag===_0x2abee0)break;switch(tag>>>0x3){case 0x1:_0x38862c['id']=_0x121836['string']();break;case 0x2:_0x38862c['bundleVersion']=_0x121836['string']();break;case 0x3:_0x38862c['buffers']&&_0x38862c['buffers']['length']||(_0x38862c['buffers']=[]),_0x38862c['buffers']['push'](_0x121836['bytes']());break;case 0x4:if(_0x38862c['types']&&_0x38862c['types']['length']||(_0x38862c['types']=[]),0x2==(0x7&tag)){for(var _0x5706ea=_0x121836['uint32']()+_0x121836['pos'];_0x121836['pos']<_0x5706ea;)_0x38862c['types']['push'](_0x121836['uint32']());}else _0x38862c['types']['push'](_0x121836['uint32']());break;case 0x5:_0x38862c['lastOperationId']=_0x121836['string']();break;default:_0x121836['skipType'](0x7&tag);}}return _0x38862c;},CollaborativeEditingConnectMessage['decodeDelimited']=function(_0x5b8efe){return _0x5b8efe instanceof _0x53a355||(_0x5b8efe=new _0x53a355(_0x5b8efe)),this['decode'](_0x5b8efe,_0x5b8efe['uint32']());},CollaborativeEditingConnectMessage['verify']=function(_0x24e33a){if('object'!=typeof _0x24e33a||null===_0x24e33a)return'object\x20expected';if(null!=_0x24e33a['id']&&_0x24e33a['hasOwnProperty']('id')&&!$util['isString'](_0x24e33a['id']))return'id:\x20string\x20expected';if(null!=_0x24e33a['bundleVersion']&&_0x24e33a['hasOwnProperty']('bundleVersion')&&!$util['isString'](_0x24e33a['bundleVersion']))return'bundleVersion:\x20string\x20expected';if(null!=_0x24e33a['buffers']&&_0x24e33a['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x24e33a['buffers']))return'buffers:\x20array\x20expected';for(var _0x15dec6=0x0;_0x15dec6<_0x24e33a['buffers']['length'];++_0x15dec6)if(!(_0x24e33a['buffers'][_0x15dec6]&&'number'==typeof _0x24e33a['buffers'][_0x15dec6]['length']||$util['isString'](_0x24e33a['buffers'][_0x15dec6])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x24e33a['types']&&_0x24e33a['hasOwnProperty']('types')){if(!Array['isArray'](_0x24e33a['types']))return'types:\x20array\x20expected';for(_0x15dec6=0x0;_0x15dec6<_0x24e33a['types']['length'];++_0x15dec6)if(!$util['isInteger'](_0x24e33a['types'][_0x15dec6]))return'types:\x20integer[]\x20expected';}return null!=_0x24e33a['lastOperationId']&&_0x24e33a['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x24e33a['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},CollaborativeEditingConnectMessage['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingConnectMessage'])return object;var _0x3e3c23=new $root['CollaborativeEditingConnectMessage']();if(null!=object['id']&&(_0x3e3c23['id']=String(object['id'])),null!=object['bundleVersion']&&(_0x3e3c23['bundleVersion']=String(object['bundleVersion'])),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingConnectMessage.buffers:\x20array\x20expected');_0x3e3c23['buffers']=[];for(var _0x10136c=0x0;_0x10136c<object['buffers']['length'];++_0x10136c)'string'==typeof object['buffers'][_0x10136c]?$util['base64']['decode'](object['buffers'][_0x10136c],_0x3e3c23['buffers'][_0x10136c]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x10136c])),0x0):object['buffers'][_0x10136c]['length']>=0x0&&(_0x3e3c23['buffers'][_0x10136c]=object['buffers'][_0x10136c]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingConnectMessage.types:\x20array\x20expected');_0x3e3c23['types']=[];for(_0x10136c=0x0;_0x10136c<object['types']['length'];++_0x10136c)_0x3e3c23['types'][_0x10136c]=object['types'][_0x10136c]>>>0x0;}return null!=object['lastOperationId']&&(_0x3e3c23['lastOperationId']=String(object['lastOperationId'])),_0x3e3c23;},CollaborativeEditingConnectMessage['toObject']=function(_0x10769e,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[]),options['defaults']&&(object['id']='',object['bundleVersion']='',object['lastOperationId']=''),null!=_0x10769e['id']&&_0x10769e['hasOwnProperty']('id')&&(object['id']=_0x10769e['id']),null!=_0x10769e['bundleVersion']&&_0x10769e['hasOwnProperty']('bundleVersion')&&(object['bundleVersion']=_0x10769e['bundleVersion']),_0x10769e['buffers']&&_0x10769e['buffers']['length']){object['buffers']=[];for(var _0x3d67e7=0x0;_0x3d67e7<_0x10769e['buffers']['length'];++_0x3d67e7)object['buffers'][_0x3d67e7]=options['bytes']===String?$util['base64']['encode'](_0x10769e['buffers'][_0x3d67e7],0x0,_0x10769e['buffers'][_0x3d67e7]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x10769e['buffers'][_0x3d67e7]):_0x10769e['buffers'][_0x3d67e7];}if(_0x10769e['types']&&_0x10769e['types']['length']){object['types']=[];for(_0x3d67e7=0x0;_0x3d67e7<_0x10769e['types']['length'];++_0x3d67e7)object['types'][_0x3d67e7]=_0x10769e['types'][_0x3d67e7];}return null!=_0x10769e['lastOperationId']&&_0x10769e['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x10769e['lastOperationId']),object;},CollaborativeEditingConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingConnectMessage';},CollaborativeEditingConnectMessage;}()),$root['OperationMetadataDescriptor']=(function(){function OperationMetadataDescriptor(properties){if(properties){for(var _0x3ac580=Object['keys'](properties),_0x311927=0x0;_0x311927<_0x3ac580['length'];++_0x311927)null!=properties[_0x3ac580[_0x311927]]&&(this[_0x3ac580[_0x311927]]=properties[_0x3ac580[_0x311927]]);}}return OperationMetadataDescriptor['prototype']['userId']='',OperationMetadataDescriptor['prototype']['type']='',OperationMetadataDescriptor['prototype']['createdAt']='',OperationMetadataDescriptor['create']=function(properties){return new OperationMetadataDescriptor(properties);},OperationMetadataDescriptor['encode']=function(_0x5172b0,writer){return writer||(writer=$Writer['create']()),null!=_0x5172b0['userId']&&Object['hasOwnProperty']['call'](_0x5172b0,'userId')&&writer['uint32'](0xa)['string'](_0x5172b0['userId']),null!=_0x5172b0['type']&&Object['hasOwnProperty']['call'](_0x5172b0,'type')&&writer['uint32'](0x12)['string'](_0x5172b0['type']),null!=_0x5172b0['createdAt']&&Object['hasOwnProperty']['call'](_0x5172b0,'createdAt')&&writer['uint32'](0x1a)['string'](_0x5172b0['createdAt']),writer;},OperationMetadataDescriptor['encodeDelimited']=function(_0x110744,writer){return this['encode'](_0x110744,writer)['ldelim']();},OperationMetadataDescriptor['decode']=function(_0x2e8e4b,length,_0x3c4f13){_0x2e8e4b instanceof _0x53a355||(_0x2e8e4b=_0x53a355['create'](_0x2e8e4b));for(var _0x2b0e22=void 0x0===length?_0x2e8e4b['len']:_0x2e8e4b['pos']+length,_0x1bcd1d=new $root['OperationMetadataDescriptor']();_0x2e8e4b['pos']<_0x2b0e22;){var tag=_0x2e8e4b['uint32']();if(tag===_0x3c4f13)break;switch(tag>>>0x3){case 0x1:_0x1bcd1d['userId']=_0x2e8e4b['string']();break;case 0x2:_0x1bcd1d['type']=_0x2e8e4b['string']();break;case 0x3:_0x1bcd1d['createdAt']=_0x2e8e4b['string']();break;default:_0x2e8e4b['skipType'](0x7&tag);}}return _0x1bcd1d;},OperationMetadataDescriptor['decodeDelimited']=function(_0x29e692){return _0x29e692 instanceof _0x53a355||(_0x29e692=new _0x53a355(_0x29e692)),this['decode'](_0x29e692,_0x29e692['uint32']());},OperationMetadataDescriptor['verify']=function(_0x43020a){return'object'!=typeof _0x43020a||null===_0x43020a?'object\x20expected':null!=_0x43020a['userId']&&_0x43020a['hasOwnProperty']('userId')&&!$util['isString'](_0x43020a['userId'])?'userId:\x20string\x20expected':null!=_0x43020a['type']&&_0x43020a['hasOwnProperty']('type')&&!$util['isString'](_0x43020a['type'])?'type:\x20string\x20expected':null!=_0x43020a['createdAt']&&_0x43020a['hasOwnProperty']('createdAt')&&!$util['isString'](_0x43020a['createdAt'])?'createdAt:\x20string\x20expected':null;},OperationMetadataDescriptor['fromObject']=function(object){if(object instanceof $root['OperationMetadataDescriptor'])return object;var _0x4532d1=new $root['OperationMetadataDescriptor']();return null!=object['userId']&&(_0x4532d1['userId']=String(object['userId'])),null!=object['type']&&(_0x4532d1['type']=String(object['type'])),null!=object['createdAt']&&(_0x4532d1['createdAt']=String(object['createdAt'])),_0x4532d1;},OperationMetadataDescriptor['toObject']=function(_0x8632c3,options){options||(options={});var object={};return options['defaults']&&(object['userId']='',object['type']='',object['createdAt']=''),null!=_0x8632c3['userId']&&_0x8632c3['hasOwnProperty']('userId')&&(object['userId']=_0x8632c3['userId']),null!=_0x8632c3['type']&&_0x8632c3['hasOwnProperty']('type')&&(object['type']=_0x8632c3['type']),null!=_0x8632c3['createdAt']&&_0x8632c3['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x8632c3['createdAt']),object;},OperationMetadataDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},OperationMetadataDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/OperationMetadataDescriptor';},OperationMetadataDescriptor;}()),$root;})());class MessagesCompressor{static['decode'](_0x512f62,_0x15d681){const data=_getType(_0x15d681)['decode']('undefined'==typeof window?_0x512f62:new Uint8Array(_0x512f62));return _0x15d681['fromJSON']({...data});}static['encode'](_0x123b08){const protobufMessage=_getType(_0x123b08['constructor']),data=_0x123b08['toJSON'](),_0x12283e=protobufMessage['verify'](data);if(_0x12283e)throw Error(_0x12283e);return protobufMessage['encode'](protobufMessage['create'](data))['finish']();}}function _getType(_0x4a2d40){return messages[_0x4a2d40['DESCRIPTOR_NAME']];}class GetManyUsersMessage extends Message{['ids'];static ['TYPE']='22';static ['READABLE_TYPE_NAME']='getManyUsers';static ['DESCRIPTOR_NAME']='GetManyUsersMessage';static ['DESCRIPTOR']={'fields':{'ids':{'id':0x1,'type':'string','rule':'repeated'}}};constructor(_0x56f18c){super(),this['ids']=_0x56f18c;}['toJSON'](){return{'ids':this['ids']};}static['fromJSON'](data){return new GetManyUsersMessage(data['ids']);}}class GetManyUsersResponse extends Message{['users'];static ['DESCRIPTOR_NAME']='GetManyUsersResponse';static ['DESCRIPTOR']={'fields':{'users':{'rule':'repeated','type':'UserDescriptor','id':0x1}}};constructor(_0x161518){super(),this['users']=_0x161518;}['toJSON'](){return{'users':this['users']['map'](_userToJson)};}static['fromJSON'](data){return new GetManyUsersResponse(data['users']['map'](_userFromJson));}}function _userToJson(_0x27c455){return{'attributes':Object['keys'](_0x27c455)['map'](_0x543ddc=>({'key':_0x543ddc,'value':JSON['stringify'](_0x27c455[_0x543ddc])}))};}function _userFromJson(data){return data['attributes']['reduce']((result,_0x446caa)=>(result[_0x446caa['key']]=_0x446caa['value']?JSON['parse'](_0x446caa['value']):null,result),{});}class User{static ['_SERVICE']=0x2;constructor(attributes={}){this['_attributes']=new Map();for(const _0x4f059a of Object['keys'](attributes))'id'!==_0x4f059a?(this['_attributes']['set'](_0x4f059a,attributes[_0x4f059a]),Object['defineProperty'](this,_0x4f059a,{'enumerable':!0x0,'configurable':!0x1,'get':()=>this['_attributes']['get'](_0x4f059a)})):this['id']=attributes['id'];}static['fromData'](data){return new User(data);}static async['get'](wsGateway,_0x5cb7aa){const _0x4b491d=new GetUserMessage(_0x5cb7aa);try{const _0xa25a09=await wsGateway['_sendRequest'](User['_SERVICE'],GetUserMessage['TYPE'],MessagesCompressor['encode'](_0x4b491d)),getUserResponse=MessagesCompressor['decode'](_0xa25a09,GetUserResponse);return new User(getUserResponse['attributes']);}catch(_0x5a1ea8){return new User({'id':_0x5cb7aa});}}static async['getMany'](wsGateway,_0x51a421){const _0x384dc4=new GetManyUsersMessage(_0x51a421);try{const _0x5514b6=await wsGateway['_sendRequest'](User['_SERVICE'],GetManyUsersMessage['TYPE'],MessagesCompressor['encode'](_0x384dc4));return MessagesCompressor['decode'](_0x5514b6,GetManyUsersResponse)['users']['map'](_0x36f2b6=>new User(_0x36f2b6));}catch(_0x3702f3){return _0x51a421['map'](_0x64528d=>new User({'id':_0x64528d}));}}}class ChannelMessage extends Message{['type'];['socketId'];['data'];static ['DESCRIPTOR_NAME']='ChannelMessage';static ['DESCRIPTOR']={'fields':{'type':{'type':'uint32','id':0x1},'socketId':{'type':'string','id':0x2},'data':{'type':'bytes','id':0x3}}};constructor(type,socketId,data){super(),this['type']=type,this['socketId']=socketId,this['data']=data;}['toJSON'](){return{'type':this['type'],'socketId':this['socketId'],'data':this['data']};}static['fromJSON'](data){return new ChannelMessage(data['type'],data['socketId'],data['data']);}}class Channel extends/* #__PURE__ -- @preserve */
|
|
25
|
+
EmitterMixin(){['_channelName'];['_wsGateway'];['_socket'];constructor(_0x26fcd9,_wsGateway,_socket){super(),this['_channelName']=_0x26fcd9,this['_wsGateway']=_wsGateway,this['_socket']=_socket,this['_subscribeToChannel']();}['remove'](){this['_socket']['off'](this['_channelName']);}['getEventName'](eventName,_0x265412=!0x1){let fullEventName='';return _0x265412&&(fullEventName+='all:'),fullEventName+='event',eventName&&(fullEventName+=':'+eventName),fullEventName;}['_subscribeToChannel'](){this['_socket']['on'](this['_channelName'],_0x4016d6=>{const _0xf5e67c=MessagesCompressor['decode'](_0x4016d6,ChannelMessage);this['fire'](this['getEventName'](_0xf5e67c['type'],!0x0),_0xf5e67c['data'],_0xf5e67c['socketId']),_0xf5e67c['socketId']!==this['_wsGateway']['socketId']&&this['fire'](this['getEventName'](_0xf5e67c['type']),_0xf5e67c['data'],_0xf5e67c['socketId']);});}}class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x2eb36c,context,_0x3afb72=null,data={}){super('cloud-services-internal-error:\x20'+_0x2eb36c),this['context']=context,this['code']=_0x3afb72,this['data']=data,this['name']='CKEditorError';}static['fromPublicError'](_0x5f516d){return new CKEditorCloudServicesError(function(_0x191c00){let _0x1107a7='cloud-services-error:\x20'+_0x191c00['message'];return _0x191c00['data']&&(_0x1107a7+='\x0aError\x20data:\x20'+JSON['stringify'](_0x191c00['data'])),_0x191c00['explanation']&&(_0x1107a7+='\x0aExplanation:\x20'+_0x191c00['explanation']),_0x191c00['action']&&(_0x1107a7+='\x0aAction:\x20'+_0x191c00['action']),_0x191c00['traceId']&&(_0x1107a7+='\x0aTraceId:\x20'+_0x191c00['traceId']),_0x191c00['code']&&(_0x1107a7+='\x0aCode:\x20'+_0x191c00['code']),_0x1107a7;}(_0x5f516d),_0x5f516d);}}class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x305f94,_0x33fb78){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x305f94,this['code']=_0x33fb78['code'],this['traceId']=_0x33fb78['traceId'],this['data']=_0x33fb78['data'];}static['fromPublicError'](_0x34ffae){return new CKEditorCloudServicesServerError(function(_0x25e3f7){let _0x4c633f='cloud-services-server-error:\x20'+_0x25e3f7['message'];return _0x25e3f7['explanation']&&(_0x4c633f+='\x0aExplanation:\x20'+_0x25e3f7['explanation']),_0x25e3f7['action']&&(_0x4c633f+='\x0aAction:\x20'+_0x25e3f7['action']),_0x25e3f7['traceId']&&(_0x4c633f+='\x0aTraceId:\x20'+_0x25e3f7['traceId']),_0x25e3f7['code']&&(_0x4c633f+='\x0aCode:\x20'+_0x25e3f7['code']),_0x4c633f;}(_0x34ffae),_0x34ffae);}}class PacketOptionsMessage extends Message{['flags'];['rooms'];['except'];static ['TYPE']=0xb;static ['DESCRIPTOR_NAME']='PacketOptionsMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
|
|
26
|
+
((()=>({'fields':{'flags':{'type':'string','id':0x1},'rooms':{'type':'string','id':0x2,'rule':'repeated'},'except':{'type':'string','id':0x3,'rule':'repeated'}}}))());constructor(_0x4a6ad2,_0x51acf5=[],except=[]){super(),this['flags']=_0x4a6ad2,this['rooms']=_0x51acf5,this['except']=except;}['toJSON'](){return{'flags':this['flags']?JSON['stringify'](this['flags']):void 0x0,'rooms':this['rooms']?.['length']?this['rooms']:void 0x0,'except':this['except']?.['length']?this['except']:void 0x0};}static['fromJSON'](data){return new PacketOptionsMessage(data['flags']&&JSON['parse'](data['flags']),data['rooms'],data['except']);}}const IS_NODE=/* #__PURE__ -- @preserve */
|
|
27
|
+
((()=>!('undefined'==typeof process||!process['versions']?.['node']))()),MessageDataTypes_BUFFER=0x1,MessageDataTypes_STRING=0x2,MessageDataTypes_NUMBER=0x3,MessageDataTypes_OBJECT=0x4;class ParserUtils{static['getPacketType'](...types){let _0x426196=0x0;for(let _0x3400a4=0x0;_0x3400a4<types['length'];_0x3400a4++){_0x426196+=types[_0x3400a4]*Math['pow'](0xa,types['length']-_0x3400a4-0x1);}return _0x426196;}static['getType'](_0x51172e){if(ParserUtils['isBuffer'](_0x51172e))return MessageDataTypes_BUFFER;const type=typeof _0x51172e;return'string'===type?MessageDataTypes_STRING:'number'===type?MessageDataTypes_NUMBER:MessageDataTypes_OBJECT;}static['isBuffer'](_0x5d323e){return IS_NODE&&Buffer['isBuffer'](_0x5d323e)||_0x5d323e instanceof ArrayBuffer||_0x5d323e instanceof Uint8Array||this['_isBufferView'](_0x5d323e);}static['_isBufferView'](_0x5811a9){return'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x5811a9):_0x5811a9['buffer']instanceof ArrayBuffer;}}class PackageDataMessage extends Message{['data'];['data1'];static['create'](data,data1){throw new TypeError('Must\x20be\x20implemented\x20in\x20a\x20child\x20class!');}}class NumberBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='NumberBytesPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
|
|
29
29
|
((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new NumberBytesPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new NumberBytesPacketDataMessage(data,data1);}}class StringBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
|
|
30
30
|
((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='StringBytesPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
|
|
@@ -47,21 +47,21 @@ EmitterMixin(){['_channelName'];['_wsGateway'];['_socket'];constructor(_0x2f8277
|
|
|
47
47
|
((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_STRING))());static ['DESCRIPTOR_NAME']='NumberStringPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
|
|
48
48
|
((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new NumberStringPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new NumberStringPacketDataMessage(data,data1);}}const PACKET_DATA_MESSAGES=/* #__PURE__ -- @preserve */
|
|
49
49
|
((()=>[NumberBytesPacketDataMessage,StringBytesPacketDataMessage,BytesBytesPacketDataMessage,StringObjectPacketDataMessage,NumberObjectPacketDataMessage,ObjectObjectPacketDataMessage,ObjectBufferPacketDataMessage,StringStringPacketDataMessage,StringNumberPacketDataMessage,NumberNumberPacketDataMessage,NumberStringPacketDataMessage]['reduce']((result,PacketDataMessageConstructor)=>(result[PacketDataMessageConstructor['TYPE']]=PacketDataMessageConstructor,result),{}))());class PacketMessage extends Message{['type'];['data'];['id'];['nsp'];['options'];static ['TYPE']=0xa;static ['DESCRIPTOR_NAME']='PacketMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
|
|
50
|
-
((()=>({'fields':{'type':{'type':'uint32','id':0x1},'id':{'type':'uint32','id':0x2},'nsp':{'type':'string','id':0x3},'data':{'type':'bytes','id':0x4},'options':{'type':'bytes','id':0x5}}}))());constructor(type,data,
|
|
51
|
-
((()=>[PacketType['EVENT'],PacketType['ACK'],PacketType['BINARY_ACK'],PacketType['BINARY_EVENT']])());class Encoder extends
|
|
52
|
-
_deferPromise();['timeout'];constructor(_context,timeoutMs){this['_context']=_context,this['timeout']=setTimeout(()=>this['error'](new CKEditorCloudServicesError('Request\x20timeout.',this['_context'])),timeoutMs);}get['promise'](){return this['_deferredPromise']['promise'];}['response'](
|
|
50
|
+
((()=>({'fields':{'type':{'type':'uint32','id':0x1},'id':{'type':'uint32','id':0x2},'nsp':{'type':'string','id':0x3},'data':{'type':'bytes','id':0x4},'options':{'type':'bytes','id':0x5}}}))());constructor(type,data,_0x58fc3b,_0x1d80b2='/',options){super(),this['type']=type,this['data']=data,this['id']=_0x58fc3b,this['nsp']=_0x1d80b2,this['options']=options??new PacketOptionsMessage();}get['packetData'](){return void 0x0===this['data']['data']&&void 0x0===this['data']['data1']?[]:this['data']['data']&&void 0x0===this['data']['data1']?[this['data']['data']]:[this['data']['data'],this['data']['data1']];}['toJSON'](){const options=MessagesCompressor['encode'](this['options']),data=MessagesCompressor['encode'](this['data']);return{'type':this['type']+0xa*this['data']['constructor']['TYPE'],'id':this['id'],'nsp':'/'===this['nsp']?void 0x0:this['nsp'],'data':data,'options':options};}static['fromJSON'](data){const frameDataType=Math['floor'](data['type']/0xa);return new PacketMessage(data['type']-0xa*frameDataType,MessagesCompressor['decode'](data['data'],PACKET_DATA_MESSAGES[frameDataType]),data['id'],data['nsp'],data['options']?MessagesCompressor['decode'](data['options'],PacketOptionsMessage):new PacketOptionsMessage());}static['create'](packet,options={}){const frameDataType=ParserUtils['getPacketType'](ParserUtils['getType'](packet['data'][0x0]),ParserUtils['getType'](packet['data'][0x1]??packet['data'][0x0]));return new PacketMessage(packet['type'],PACKET_DATA_MESSAGES[frameDataType]['create'](packet['data'][0x0],packet['data'][0x1]),packet['id'],packet['nsp'],new PacketOptionsMessage(options['flags'],options['rooms'],options['except']));}}class PacketParser{['encode'](type,data,_0x72eed1,_0x4a7f84='/',options={}){if(data['length']>0x2)throw new Error('PacketParser\x20supports\x20only\x202\x20elements\x20in\x20data');const packet={'type':type,'data':data,'id':_0x72eed1,'nsp':_0x4a7f84};return MessagesCompressor['encode'](PacketMessage['create'](packet,options));}['decode'](_0x3f0d90){const packetMessage=MessagesCompressor['decode'](_0x3f0d90,PacketMessage);return{'packet':{'id':packetMessage['id'],'type':packetMessage['type'],'data':packetMessage['packetData'],'nsp':packetMessage['nsp']},'options':{'flags':packetMessage['options']['flags'],'rooms':packetMessage['options']['rooms'],'except':packetMessage['options']['except']}};}}const ENCODED_TYPES=/* #__PURE__ -- @preserve */
|
|
51
|
+
((()=>[PacketType['EVENT'],PacketType['ACK'],PacketType['BINARY_ACK'],PacketType['BINARY_EVENT']])());class Encoder extends _0x2db0cd{['_packetParser'];constructor(packetParser){super(),this['_packetParser']=packetParser??new PacketParser();}['encode'](packet){if(ENCODED_TYPES['includes'](packet['type']))try{return[this['_packetParser']['encode'](packet['type'],packet['data'],packet['id'],packet['nsp'])];}catch(_0x553449){console['error']('Can\x20not\x20properly\x20serialize\x20or\x20deserialize\x20messages.\x20Check\x20the\x20original\x20error.',{'originalError':{'message':_0x553449['message']}});}return super['encode'](packet);}}class Decoder extends _0x115eb3{['_packetParser'];constructor(packetParser){super(),this['_packetParser']=packetParser??new PacketParser();}['add'](_0x468837){if(!ParserUtils['isBuffer'](_0x468837))return super['add'](_0x468837);let packet;try{packet=this['_packetParser']['decode'](_0x468837)['packet'];}catch(_0x58be67){return super['add'](_0x468837);}super['emitReserved']('decoded',packet);}}class WebSocketRequest{['_context'];['_deferredPromise']=/* #__PURE__ -- @preserve */
|
|
52
|
+
_deferPromise();['timeout'];constructor(_context,timeoutMs){this['_context']=_context,this['timeout']=setTimeout(()=>this['error'](new CKEditorCloudServicesError('Request\x20timeout.',this['_context'])),timeoutMs);}get['promise'](){return this['_deferredPromise']['promise'];}['response'](_0x58aa16){this['_deferredPromise']['resolve'](_0x58aa16);}['error'](_0x186001){this['_deferredPromise']['reject'](_0x186001);}}class WebSocketGatewayRequestsManager{['_context'];['_requests']=new Set();constructor(_context){this['_context']=_context;}async['send'](sendFunction,timeoutMs=0xafc8){const _0x52126f=this['_createRequest'](timeoutMs);try{return sendFunction(_0x52126f),await _0x52126f['promise'];}finally{this['_finishRequest'](_0x52126f);}}['errorAll'](_0x562b25){for(const _0x3198ad of this['_requests'])_0x3198ad['error'](_0x562b25);}['waitForAllRequests'](time=0xafc8){return this['_waitForRequests'](time);}['_createRequest'](timeoutMs){const _0x5ddbba=new WebSocketRequest(this['_context'],timeoutMs);return this['_requests']['add'](_0x5ddbba),_0x5ddbba;}['_finishRequest'](_0x1e456a){this['_requests']['delete'](_0x1e456a),clearTimeout(_0x1e456a['timeout']);}async['_waitForRequests'](time=0x1388,attempt=0x0){return!this['_requests']['size']||attempt>=time/0x1f4?Promise['resolve']():(await new Promise(_0x4555fa=>{setTimeout(_0x4555fa,0x1f4);}),this['_waitForRequests'](time,attempt++));}}function _deferPromise(){let _0x4e6d8f,reject;const _0x3a63f5=new Promise((_0x1da4b7,promiseReject)=>{_0x4e6d8f=_0x1da4b7,reject=promiseReject;});return{'resolve':_0x4e6d8f,'reject':reject,'promise':_0x3a63f5};}const WEB_SOCKET_GATEWAY_STATES={'DISCONNECTED':'disconnected','CONNECTING':'connecting','CONNECTED':'connected'};class WebSocketGateway extends/* #__PURE__ -- @preserve */
|
|
53
53
|
ObservableMixin(){['_requestsManager'];['_url'];['_socket'];['_socketAuth'];['_channels'];['_connectionAttempt']=0x0;['_token'];['_options'];['_connectionProvider'];['_userFactory'];static ['STATE_DISCONNECTED']=/* #__PURE__ -- @preserve */
|
|
54
54
|
((()=>WEB_SOCKET_GATEWAY_STATES['DISCONNECTED'])());static ['STATE_CONNECTING']=/* #__PURE__ -- @preserve */
|
|
55
55
|
((()=>WEB_SOCKET_GATEWAY_STATES['CONNECTING'])());static ['STATE_CONNECTED']=/* #__PURE__ -- @preserve */
|
|
56
56
|
((()=>WEB_SOCKET_GATEWAY_STATES['CONNECTED'])());static ['_CHANGE_STATE_EVENT_PRIORITY']=/* #__PURE__ -- @preserve */
|
|
57
|
-
((()=>priorities['get']('highest')+0xf423f)());constructor(
|
|
58
|
-
EmitterMixin(){static ['_SERVICE']=0xd;static async['isBundleUploaded'](wsGateway,
|
|
59
|
-
((()=>({'fields':{'revisionId':{'type':'string','id':0x1},'name':{'type':'string','id':0x2},'creatorId':{'type':'string','id':0x3},'authorsIds':{'type':'string','id':0x4},'diffData':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'toVersion':{'type':'uint32','id':0x8},'fromVersion':{'type':'uint32','id':0x9},'isEmptyCurrent':{'type':'bool','id':0xa}}}))());static['create'](object){return{'revisionId':object['id'],'name':object['name'],'creatorId':object['creatorId'],'createdAt':object['createdAt'],'fromVersion':object['fromVersion'],'toVersion':object['toVersion'],'isEmptyCurrent':object['isEmptyCurrent'],'diffData':object['diffData']?JSON['stringify'](object['diffData']):void 0x0,'attributes':object['attributes'],'authorsIds':object['authorsIds']};}static['toJSON'](
|
|
60
|
-
((()=>RevisionDescriptor['DESCRIPTOR'])());constructor(
|
|
61
|
-
((()=>({'fields':{'channel':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2},'revisions':{'type':'RevisionDescriptor','id':0x3,'rule':'repeated'}}}))());constructor(
|
|
62
|
-
EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xc;constructor(_documentId){super(),this['_documentId']=_documentId;}get['isConnected'](){return this['_isConnected'];}['connect'](wsGateway){return this['_isConnected']?Promise['resolve']():this['_connect'](wsGateway,new RevisionHistoryConnectMessage(this['_documentId']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['fire']('disconnected'),this['stopListening']());}['reconnect'](wsGateway,lastRequestId){if(this['isConnected'])throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',wsGateway);return this['_connect'](wsGateway,new RevisionHistoryReconnectMessage(this['_documentId'],lastRequestId));}async['updateRevisions'](_0x4f3988,lastRequestId){const _0x24c995=RevisionHistoryUpdateRevisionsMessage['create']({'documentId':this['_documentId'],'requestId':lastRequestId,'revisions':_0x4f3988}),_0x2150e1=await this['_sendRequest'](RevisionHistoryUpdateRevisionsMessage['TYPE'],_0x24c995),{requestId:requestId}=MessagesCompressor['decode'](_0x2150e1,RevisionHistoryUpdateRevisionsResponse);return requestId;}async['getRevision'](_0x46b215){const _0x1a8b57=new RevisionHistoryGetRevisionMessage(this['_documentId'],_0x46b215),_0x2def97=await this['_sendRequest'](RevisionHistoryGetRevisionMessage['TYPE'],_0x1a8b57);return MessagesCompressor['decode'](_0x2def97,RevisionHistoryGetRevisionResponse)['toObject']();}async['_connect'](wsGateway,_0x229d12){if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x31ae9d=await wsGateway['_sendRequest'](0xc,_0x229d12['constructor']['TYPE'],MessagesCompressor['encode'](_0x229d12)),{channel:_0x358254,requestId:requestId,revisions:_0x5674c1}=MessagesCompressor['decode'](_0x31ae9d,RevisionHistoryConnectResponse)['toObject']();return this['listenTo'](wsGateway,'change:state',(_0x6b138d,_0x1c3e21,state)=>this['_onWsGatewayStateChange'](state),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,_0x358254),this['_isConnected']=!0x0,this['fire']('connected'),{'revisions':_0x5674c1,'requestId':requestId};}['_connectToChannel'](wsGateway,_0x16d590){this['_channel']=wsGateway['_getChannel'](RevisionHistoryService['_SERVICE'],_0x16d590),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](RevisionHistoryUpdateRevisionsMessage['TYPE']),(event,data)=>{const {documentId:documentId,requestId:requestId,revisions:_0x2b5af3}=MessagesCompressor['decode'](data,RevisionHistoryUpdateRevisionsMessage)['toObject']();this['fire']('revisionsUpdated',{'documentId':documentId,'requestId':requestId,'revisionsData':_0x2b5af3});});}['_onWsGatewayStateChange'](_0x269415){_0x269415===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](method,_0x58a802){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Revision\x20History',this);return this['_wsGateway']['_sendRequest'](0xc,method,MessagesCompressor['encode'](_0x58a802));}}class AddSuggestionMessage extends Message{['id'];['documentId'];['type'];['data'];['originalSuggestionId'];['attributes'];static ['TYPE']='101';static ['READABLE_TYPE_NAME']='addSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesAddSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'data':{'type':'string','id':0x4},'originalSuggestionId':{'type':'string','id':0x5},'attributes':{'type':'string','id':0x6}}};constructor(_0xb3b95,documentId,type,data={},originalSuggestionId=null,attributes=null){super(),this['id']=_0xb3b95,this['documentId']=documentId,this['type']=type,this['data']=data,this['originalSuggestionId']=originalSuggestionId,this['attributes']=attributes;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'type':this['type'],'data':JSON['stringify'](this['data']),'originalSuggestionId':this['originalSuggestionId'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](object){return new AddSuggestionMessage(object['id'],object['documentId'],object['type'],JSON['parse'](object['data']),object['originalSuggestionId']??null,object['attributes']?JSON['parse'](object['attributes']):null);}}class AddSuggestionResponse extends Message{['id'];['authorId'];['type'];['hasComments'];['state'];['data'];['attributes'];['createdAt'];static ['DESCRIPTOR_NAME']='TrackChangesAddSuggestionResponse';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'authorId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'data':{'type':'string','id':0x5},'hasComments':{'type':'bool','id':0x6},'state':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8}}};constructor(_0x42303b,authorId,type,createdAt,hasComments,state,data={},attributes=null){super(),this['id']=_0x42303b,this['authorId']=authorId,this['type']=type,this['hasComments']=hasComments,this['state']=state,this['data']=data,this['attributes']=attributes,this['createdAt']=createdAt?new Date(createdAt):void 0x0;}['toJSON'](){return{'id':this['id'],'authorId':this['authorId'],'type':this['type'],'createdAt':this['createdAt']?.['toISOString'](),'data':JSON['stringify'](this['data']),'hasComments':this['hasComments'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](data){return new AddSuggestionResponse(data['id'],data['authorId'],data['type'],data['createdAt'],data['hasComments'],data['state'],JSON['parse'](data['data']),data['attributes']?JSON['parse'](data['attributes']):null);}}class GetSuggestionMessage extends Message{['id'];['documentId'];static ['TYPE']='103';static ['READABLE_TYPE_NAME']='getSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesGetSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x518582,documentId){super(),this['id']=_0x518582,this['documentId']=documentId;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId']};}static['fromJSON'](object){return new GetSuggestionMessage(object['id'],object['documentId']);}}class GetSuggestionResponse extends Message{['id'];['authorId'];['type'];['hasComments'];['state'];['data'];['attributes'];['createdAt'];static ['DESCRIPTOR_NAME']='TrackChangesGetSuggestionResponse';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'authorId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'data':{'type':'string','id':0x5},'hasComments':{'type':'bool','id':0x6},'state':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8}}};constructor(_0x3d6bb5,authorId,type,createdAt,hasComments,state,data={},attributes=null){super(),this['id']=_0x3d6bb5,this['authorId']=authorId,this['type']=type,this['hasComments']=hasComments,this['state']=state,this['data']=data,this['attributes']=attributes,this['createdAt']=new Date(createdAt);}['toJSON'](){return{'id':this['id'],'authorId':this['authorId'],'type':this['type'],'createdAt':this['createdAt']['toISOString'](),'data':JSON['stringify'](this['data']),'hasComments':this['hasComments'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](data){return new GetSuggestionResponse(data['id'],data['authorId'],data['type'],data['createdAt'],data['hasComments'],data['state'],JSON['parse'](data['data']),data['attributes']?JSON['parse'](data['attributes']):null);}}class GetAllSuggestionsMessage extends Message{['documentId'];static ['TYPE']='102';static ['READABLE_TYPE_NAME']='getAllSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesGetAllSuggestionMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new GetAllSuggestionsMessage(object['documentId']);}}class SuggestionDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='SuggestionDescriptor';static ['DESCRIPTOR']={'fields':{'id':{'id':0x1,'type':'string'},'authorId':{'id':0x2,'type':'string'},'type':{'id':0x3,'type':'string'},'createdAt':{'id':0x4,'type':'string'},'data':{'id':0x5,'type':'string'},'hasComments':{'id':0x6,'type':'bool'},'state':{'id':0x7,'type':'string'},'attributes':{'id':0x8,'type':'string'}}};static['toJSON'](suggestion){return{...suggestion,'data':suggestion['data']?JSON['stringify'](suggestion['data']):suggestion['data'],'attributes':suggestion['attributes']?JSON['stringify'](suggestion['attributes']):suggestion['attributes'],'createdAt':suggestion['createdAt']?.['toISOString']()};}static['fromJSON'](suggestion){return{...suggestion,'data':suggestion['data']?JSON['parse'](suggestion['data']):suggestion['data'],'attributes':suggestion['attributes']?JSON['parse'](suggestion['attributes']):suggestion['attributes'],'createdAt':suggestion['createdAt']?new Date(suggestion['createdAt']):void 0x0};}}class GetAllSuggestionResponse extends Message{['_suggestions'];['_suggestionsV2'];['suggestions'];static ['DESCRIPTOR_NAME']='TrackChangesGetAllSuggestionsResponse';static ['DESCRIPTOR']={'fields':{'suggestions':{'type':'string','rule':'repeated','id':0x1},'suggestionsV2':{'type':'SuggestionDescriptor','rule':'repeated','id':0x2}}};constructor(_suggestions,_suggestionsV2){super(),this['_suggestions']=_suggestions,this['_suggestionsV2']=_suggestionsV2,this['suggestions']=_suggestionsV2?.['length']?_suggestionsV2:_suggestions;}['toJSON'](){return{'suggestions':this['_suggestions']?.['map'](suggestion=>JSON['stringify'](suggestion)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](data){return new GetAllSuggestionResponse(data['suggestions']?.['map'](_suggestionFromString),data['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}}function _suggestionFromString(suggestion){const parsedSuggestion=JSON['parse'](suggestion);return parsedSuggestion['createdAt']=parsedSuggestion['createdAt']?new Date(parsedSuggestion['createdAt']):void 0x0,parsedSuggestion;}class UpdateSuggestionMessage extends Message{['id'];['documentId'];['hasComments'];['isHasCommentsModified'];['state'];['attributes'];static ['TYPE']='104';static ['READABLE_TYPE_NAME']='updateSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesUpdateSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'hasComments':{'type':'bool','id':0x3},'isHasCommentsModified':{'type':'bool','id':0x4},'state':{'type':'string','id':0x5},'attributes':{'type':'string','id':0x6}}};constructor(_0x5b552f,documentId,hasComments,isHasCommentsModified,state,attributes=null){super(),this['id']=_0x5b552f,this['documentId']=documentId,this['hasComments']=hasComments,this['isHasCommentsModified']=isHasCommentsModified,this['state']=state,this['attributes']=attributes;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'hasComments':this['hasComments'],'isHasCommentsModified':this['isHasCommentsModified'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](object){return new UpdateSuggestionMessage(object['id'],object['documentId'],object['hasComments'],object['isHasCommentsModified'],object['state'],object['attributes']?JSON['parse'](object['attributes']):null);}}let ConnectMessage$1=class ConnectMessage extends Message{['documentId'];static ['TYPE']='105';static ['READABLE_TYPE_NAME']='connectToSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new ConnectMessage(object['documentId']);}},ConnectResponse$1=class ConnectResponse extends Message{['channel'];['_suggestions'];['_suggestionsV2'];['suggestions'];static ['DESCRIPTOR_NAME']='TrackChangesConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'suggestions':{'type':'string','rule':'repeated','id':0x2},'suggestionsV2':{'type':'SuggestionDescriptor','rule':'repeated','id':0x3}}};constructor(_0x43caae,_suggestions,_suggestionsV2){super(),this['channel']=_0x43caae,this['_suggestions']=_suggestions,this['_suggestionsV2']=_suggestionsV2,this['suggestions']=_suggestionsV2?.['length']?_suggestionsV2:_suggestions;}['toJSON'](){return{'channel':this['channel'],'suggestions':this['_suggestions']?.['map'](suggestion=>JSON['stringify'](suggestion)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](object){return new ConnectResponse(object['channel'],object['suggestions']?.['map'](suggestion=>JSON['parse'](suggestion)),object['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}};class BatchUpdateSuggestionsStateMessage extends Message{['ids'];['documentId'];['state'];static ['TYPE']='106';static ['READABLE_TYPE_NAME']='batchUpdateSuggestionsState';static ['DESCRIPTOR_NAME']='TrackChangesBatchUpdateSuggestionsStateMessage';static ['DESCRIPTOR']={'fields':{'ids':{'type':'string','rule':'repeated','id':0x1},'documentId':{'type':'string','id':0x2},'state':{'type':'string','id':0x3}}};constructor(_0x4c4e38,documentId,state){super(),this['ids']=_0x4c4e38,this['documentId']=documentId,this['state']=state;}['toJSON'](){return{'ids':this['ids'],'documentId':this['documentId'],'state':this['state']};}static['fromJSON'](object){return new BatchUpdateSuggestionsStateMessage(object['ids'],object['documentId'],object['state']);}}class TrackChangesService extends/* #__PURE__ -- @preserve */
|
|
63
|
-
EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xa;constructor(_documentId){super(),this['_documentId']=_documentId;}get['isConnected'](){return this['_isConnected'];}async['connect'](wsGateway){if(this['_isConnected'])return;if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);const connectMessage=new ConnectMessage$1(this['_documentId']);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x63f796=await wsGateway['_sendRequest'](0xa,ConnectMessage$1['TYPE'],MessagesCompressor['encode'](connectMessage)),connectResponse=MessagesCompressor['decode'](_0x63f796,ConnectResponse$1);return this['listenTo'](wsGateway,'change:state',(_0x1b8620,_0x24a872,_0x1284a0)=>this['_onWsGatewayStateChange'](_0x1284a0),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,connectResponse['channel']),this['_isConnected']=!0x0,this['fire']('connected'),connectResponse['suggestions'];}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['add'](_0x509722,type,data,originalSuggestionId=null,attributes){const _0x3cbefd=new AddSuggestionMessage(_0x509722,this['_documentId'],type,data,originalSuggestionId,attributes),_0x23ba7c=await this['_sendRequest'](AddSuggestionMessage['TYPE'],_0x3cbefd);return MessagesCompressor['decode'](_0x23ba7c,AddSuggestionResponse);}async['get'](_0x145695,attempt=0x1){const _0xaa2930=new GetSuggestionMessage(_0x145695,this['_documentId']);try{const _0x5876d0=await this['_sendRequest'](GetSuggestionMessage['TYPE'],_0xaa2930);return MessagesCompressor['decode'](_0x5876d0,GetSuggestionResponse);}catch(_0x32c843){if('CKEditorCloudServicesServerError'===_0x32c843['name']&&'404'===_0x32c843['code']&&attempt<0x5)return await(time=0x64*attempt,new Promise(_0x528bea=>{setTimeout(_0x528bea,time);})),this['get'](_0x145695,attempt+0x1);if('CKEditorCloudServicesServerError'===_0x32c843['name'])throw _0x32c843;throw CKEditorCloudServicesServerError['fromPublicError'](_0x32c843);}var time;}async['getAll'](){const _0xbdeead=new GetAllSuggestionsMessage(this['_documentId']),_0x133be2=await this['_sendRequest'](GetAllSuggestionsMessage['TYPE'],_0xbdeead),{suggestions:suggestions}=MessagesCompressor['decode'](_0x133be2,GetAllSuggestionResponse);return suggestions;}async['update'](_0x4c11f3,_0x4b3e23={}){const {hasComments:hasComments,state:state,attributes:attributes}=_0x4b3e23,isHasCommentsUpdated=void 0x0!==hasComments,_0x165d8d=new UpdateSuggestionMessage(_0x4c11f3,this['_documentId'],hasComments,isHasCommentsUpdated,state,attributes);await this['_sendRequest'](UpdateSuggestionMessage['TYPE'],_0x165d8d);}async['batchUpdateState'](_0x5ae27c){const _0x472195=new BatchUpdateSuggestionsStateMessage(_0x5ae27c['ids'],this['_documentId'],_0x5ae27c['state']);await this['_sendRequest'](BatchUpdateSuggestionsStateMessage['TYPE'],_0x472195);}['_connectToChannel'](wsGateway,_0x533fab){this['_channel']=wsGateway['_getChannel'](TrackChangesService['_SERVICE'],_0x533fab),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateSuggestionMessage['TYPE']),(event,data)=>{const updateSuggestionMessage=MessagesCompressor['decode'](data,UpdateSuggestionMessage);this['fire']('suggestionUpdated',updateSuggestionMessage);});}['_onWsGatewayStateChange'](_0x58e2de){_0x58e2de===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](method,_0x5dd560){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Track\x20Changes',this);return this['_wsGateway']['_sendRequest'](0xa,method,MessagesCompressor['encode'](_0x5dd560));}}class SessionsConnectResponse extends Message{['channel'];['sockets'];static ['DESCRIPTOR_NAME']='SessionsConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'sockets':{'rule':'repeated','type':'SessionsSocketDescriptor','id':0x2}}};constructor(_0xb5b834,sockets=[]){super(),this['channel']=_0xb5b834,this['sockets']=sockets;}['toJSON'](){return{'channel':this['channel'],'sockets':this['sockets']['map'](socket=>({'user':socket['userId'],'session':socket['id'],'role':socket['role'],'permissions':socket['permissions']}))};}static['fromJSON'](data){return new SessionsConnectResponse(data['channel'],data['sockets']['map'](socket=>({'id':socket['session'],'userId':socket['user'],'role':socket['role'],'permissions':socket['permissions']})));}}class SessionsConnectMessage extends Message{['id'];['sessionType'];static ['TYPE']='31';static ['READABLE_TYPE_NAME']='getConnectedSockets';static ['DESCRIPTOR_NAME']='SessionsConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'sessionType':{'type':'uint32','id':0x2}}};constructor(_0x215d7f,_0x38438b){super(),this['id']=_0x215d7f,this['sessionType']=_0x38438b;}['toJSON'](){return{'id':this['id'],'sessionType':this['sessionType']};}static['fromJSON'](data){return new SessionsConnectMessage(data['id'],data['sessionType']);}}class SocketConnectMessage extends Message{['id'];['userId'];['role'];['permissions'];static ['TYPE']='32';static ['READABLE_TYPE_NAME']='connectSocket';static ['DESCRIPTOR_NAME']='SocketConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'userId':{'type':'string','id':0x2},'role':{'type':'string','id':0x3},'permissions':{'rule':'repeated','type':'string','id':0x4}}};constructor(_0x1b7064,_0x43e3fd,_0x244105,_0x5c01a0){super(),this['id']=_0x1b7064,this['userId']=_0x43e3fd,this['role']=_0x244105,this['permissions']=_0x5c01a0;}['toJSON'](){return{'id':this['id'],'userId':this['userId']??void 0x0,'role':this['role']??void 0x0,'permissions':this['permissions']??void 0x0};}static['fromJSON'](data){return new SocketConnectMessage(data['id'],data['userId'],data['role'],data['permissions']);}}class SocketDisconnectMessage extends Message{['id'];static ['TYPE']='33';static ['READABLE_TYPE_NAME']='disconnectSocket';static ['DESCRIPTOR_NAME']='SocketDisconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1}}};constructor(_0x5af958){super(),this['id']=_0x5af958;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](data){return new SocketDisconnectMessage(data['id']);}}class SessionCollection extends Collection{['_id'];['_sessionType'];['_handlers']=new Map();['_channel'];['_wsGateway'];['_connected'];['_eventsQueue']=[];['_isRunning']=!0x1;constructor(_0x568311,_0x394c9f){super({'idProperty':'id'}),this['_id']=_0x568311,this['_sessionType']=_0x394c9f;}async['connect'](wsGateway){this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0xe10e03=new SessionsConnectMessage(this['_id'],this['_sessionType']);let sessionsConnectResponse;try{const _0x477216=await this['_wsGateway']['_sendRequest'](0x3,SessionsConnectMessage['TYPE'],MessagesCompressor['encode'](_0xe10e03));sessionsConnectResponse=MessagesCompressor['decode'](_0x477216,SessionsConnectResponse);}catch(_0x2407a8){sessionsConnectResponse=new SessionsConnectResponse(this['_id'],[]);}this['_connectToChannel'](this['_wsGateway'],sessionsConnectResponse['channel'],this['_sessionType']);const _0x23b8e0=await async function(wsGateway,_0x2d1661){const _0x393b54=_0x2d1661['map'](socket=>socket['userId']),_0x57932b=_0x393b54['length']?await User['getMany'](wsGateway,_0x393b54):[];return _0x2d1661['map'](socket=>{const item={'id':socket['id'],'role':socket['role'],'permissions':socket['permissions']};return item['user']=socket['userId']&&_0x57932b['find'](_0x45e227=>_0x45e227['id']===socket['userId'])||new User(),item;});}(this['_wsGateway'],sessionsConnectResponse['sockets']);for(const _0x1b93b6 of _0x23b8e0)super['add'](_0x1b93b6);this['_connected']=!0x0,this['fire']('connected'),this['listenTo'](this['_wsGateway'],'change:state',(_0x124d8d,_0x174ac1,_0x48ceac)=>this['_onWsGatewayStateChange'](_0x48ceac),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),await this['_runQueue']();}['disconnect'](_0xacaaa4=!0x0){if(this['_connected']){for(this['_connected']=!0x1,this['_eventsQueue']=[];this['length'];)super['remove'](0x0);this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_wsGateway']&&_0xacaaa4&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['fire']('disconnected'),_0xacaaa4&&this['stopListening']();}}['add'](_0x1d6c0b,_0x5910bc){throw new TypeError('The\x20collection\x20is\x20read-only.');}['remove'](_0x3538e8){throw new TypeError('The\x20collection\x20is\x20read-only.');}['_connectToChannel'](wsGateway,_0x5a1703,_0x29e963){this['_channel']=wsGateway['_getChannel'](_0x29e963,_0x5a1703),this['_channel']&&(this['_addHandler'](this['_channel'],SocketConnectMessage['TYPE'],async data=>{const socketConnectMessage=MessagesCompressor['decode'](data,SocketConnectMessage);if(-0x1===this['getIndex'](socketConnectMessage['id'])){const socket={'id':socketConnectMessage['id'],'role':socketConnectMessage['role'],'permissions':socketConnectMessage['permissions']};socketConnectMessage['userId']&&(socket['user']=await User['get'](wsGateway,socketConnectMessage['userId'])),super['add'](socket);}}),this['_addHandler'](this['_channel'],SocketDisconnectMessage['TYPE'],data=>{const socketDisconnectMessage=MessagesCompressor['decode'](data,SocketDisconnectMessage);-0x1!==this['getIndex'](socketDisconnectMessage['id'])&&super['remove'](socketDisconnectMessage['id']);}));}async['_onWsGatewayStateChange'](state){state===WebSocketGateway['STATE_DISCONNECTED']&&this['disconnect'](!0x1),state===WebSocketGateway['STATE_CONNECTED']&&await this['connect'](this['_wsGateway']);}async['_runQueue'](){if(this['_isRunning']||!this['_connected'])return;let event;for(this['_isRunning']=!0x0;event=this['_eventsQueue']['shift']();){const _0x18ab26=this['_handlers']['get'](event['eventName']);_0x18ab26&&await _0x18ab26(event['data']);}this['_isRunning']=!0x1;}['_addHandler'](_0x1d4224,eventType,_0x23c3c5){const eventName=_0x1d4224['getEventName'](eventType,!0x0);this['listenTo'](_0x1d4224,eventName,async(event,data)=>{const _0x5786f4=event['name'];this['_eventsQueue']['push']({'eventName':_0x5786f4,'data':data}),await this['_runQueue']();}),this['_handlers']['set'](eventName,_0x23c3c5);}}class Sessions{static async['getConnectedSessions'](wsGateway,_0x4151b8,_0x134684){const sessionCollection=new SessionCollection(_0x4151b8,_0x134684);return await sessionCollection['connect'](wsGateway),sessionCollection;}}class CollaborativeEditingConnectMessage extends Message{['id'];['buffers'];['types'];['bundleVersion'];['lastOperationId'];static ['TYPE']='11';static ['READABLE_TYPE_NAME']='connectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'lastOperationId':{'type':'string','id':0x5}}};constructor(_0x1547d8,_0x21e0a7,types,_0x1ca140,lastOperationId=''){super(),this['id']=_0x1547d8,this['buffers']=_0x21e0a7,this['types']=types,this['bundleVersion']=_0x1ca140,this['lastOperationId']=lastOperationId;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](data){return new CollaborativeEditingConnectMessage(data['id'],data['buffers'],data['types'],data['bundleVersion'],data['lastOperationId']);}}class OperationMetadataHelpers{static['prepareMetadataForOperations'](types,metadata){if(!types?.['length']||!metadata?.['length'])return[];const result=[];let _0x405480=0x0;for(const type of types)if(0x0!==type){if(!metadata[_0x405480])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');result['push'](metadata[_0x405480]),_0x405480++;}else result['push'](result[result['length']-0x1]);return result;}static['removeUnnecessaryMetadata'](types,metadata){if(!types?.['length']||!metadata?.['length'])return[];const result=[];for(let _0x1b33da=0x0;_0x1b33da<types['length'];_0x1b33da++)if(0x0!==types[_0x1b33da]){if(!metadata[_0x1b33da])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');result['push'](metadata[_0x1b33da]);}return result;}}class OperationMetadataDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='OperationMetadataDescriptor';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
|
|
64
|
-
((()=>({'fields':{'userId':{'type':'string','id':0x1},'type':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}}))());static['toJSON']({createdAt:createdAt,...metadata}){const parsedMetadata={...metadata};return createdAt?.['toISOString']&&(parsedMetadata['createdAt']=createdAt['toISOString']()),parsedMetadata;}static['fromJSON']({createdAt:createdAt,...metadata}){const parsedMetadata={...metadata};return createdAt&&(parsedMetadata['createdAt']=new Date(createdAt)),parsedMetadata;}}class CollaborativeEditingUpdateMessage extends Message{['id'];['buffers'];['types'];['baseVersion'];['metadata'];['lastOperationId'];static ['TYPE']='13';static ['READABLE_TYPE_NAME']='updateDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingUpdateMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'baseVersion':{'type':'uint32','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x6},'lastOperationId':{'type':'string','id':0x7}}};constructor(
|
|
65
|
-
((()=>({'fields':{'channel':{'type':'string','id':0x1},'offset':{'type':'uint32','id':0x2},'version':{'type':'uint32','id':0x3},'buffers':{'rule':'repeated','type':'bytes','id':0x4},'types':{'rule':'repeated','type':'uint32','id':0x5},'metadata':{'rule':'repeated','type':OperationMetadataDescriptor['DESCRIPTOR_NAME'],'id':0x7},'initData':{'type':'string','id':0x8},'isInitialized':{'type':'bool','id':0x9},'sessionId':{'type':'string','id':0xa},'lastOperationId':{'type':'string','id':0xb},'sessionCreatedAt':{'type':'string','id':0xc}}}))());constructor(
|
|
66
|
-
EmitterMixin(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x47866a,_0x409ca0){if(super(),!_0x47866a)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x409ca0??v4(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x47866a;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](wsGateway,data={'buffers':[],'types':[]},lastOperationId){const _0x40dc47=new CollaborativeEditingConnectMessage(this['getId'](),data['buffers'],data['types'],this['_bundleVersion'],lastOperationId);return this['_connect'](wsGateway,_0x40dc47);}['reconnect'](wsGateway,lastKnowVersion){if(this['isConnected']())throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',wsGateway);return this['_connect'](wsGateway,new CollaborativeEditingReconnectMessage(this['getId'](),lastKnowVersion,this['_bundleVersion']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['getDocumentDetails'](){const _0x513649=new GetDocumentDetailsMessage(this['getId']());if(!this['_wsGateway'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x2fd965=await this['_wsGateway']['_sendRequest'](0x1,GetDocumentDetailsMessage['TYPE'],MessagesCompressor['encode'](_0x513649));return MessagesCompressor['decode'](_0x2fd965,GetDocumentDetailsResponse);}async['sendOperations'](data,_0x3fca62,lastOperationId){if(!data?.['types']?.['length'])throw new CKEditorCloudServicesError('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x8559fc='number'==typeof _0x3fca62?_0x3fca62:parseInt(_0x3fca62);if(!Number['isInteger'](_0x8559fc)||_0x8559fc<0x0)throw new CKEditorCloudServicesError('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x31aaea=new CollaborativeEditingUpdateMessage(this['getId'](),data['buffers'],data['types'],_0x8559fc,[],lastOperationId);if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x45b3bb=await this['_wsGateway']['_sendRequest'](0x1,CollaborativeEditingUpdateMessage['TYPE'],MessagesCompressor['encode'](_0x31aaea));return MessagesCompressor['decode'](_0x45b3bb,CollaborativeEditingResponse);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await Sessions['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](wsGateway,_0x5a165b){return Sessions['getConnectedSessions'](wsGateway,_0x5a165b,0x1);}async['_connect'](wsGateway,_0x5de745){if(this['isConnected']())return;if(wsGateway['state']!==WebSocketGateway['STATE_CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x500576=await wsGateway['_sendRequest'](0x1,_0x5de745['constructor']['TYPE'],MessagesCompressor['encode'](_0x5de745)),collaborativeEditingConnectResponse=MessagesCompressor['decode'](_0x500576,CollaborativeEditingConnectResponse);return this['listenTo'](wsGateway,'change:state',(_0x7f691e,_0x486ebb,_0x3d45a8)=>this['_onWsGatewayStateChange'](_0x3d45a8),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,collaborativeEditingConnectResponse['channel']),this['_isConnected']=!0x0,this['fire']('connected'),collaborativeEditingConnectResponse;}['_connectToChannel'](wsGateway,_0xe94964){this['_channel']=wsGateway['_getChannel'](0x1,_0xe94964),this['listenTo'](this['_channel'],this['_channel']['getEventName'](CollaborativeEditingUpdateMessage['TYPE']),(event,data)=>{const updateMessage=MessagesCompressor['decode'](data,CollaborativeEditingUpdateMessage);this['fire']('operationsReceived',updateMessage['baseVersion'],updateMessage['data'],updateMessage['metadata']);});}['_onWsGatewayStateChange'](_0x5016e3){_0x5016e3===WebSocketGateway['STATE_DISCONNECTED']&&this['disconnect']();}}class CommentDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'commentThreadId':{'id':0x2,'type':'string'},'userId':{'id':0x3,'type':'string'},'content':{'id':0x4,'type':'string'},'documentId':{'id':0x5,'type':'string'},'createdAt':{'id':0x6,'type':'string'},'attributes':{'id':0x7,'type':'string'}}};static['toJSON'](comment){return{...comment,'createdAt':comment['createdAt']?.['toISOString'](),'attributes':comment['attributes']?JSON['stringify'](comment['attributes']):null};}static['fromJSON'](comment){return{...comment,'createdAt':new Date(comment['createdAt']),'attributes':comment['attributes']?JSON['parse'](comment['attributes']):null};}}class CommentsThreadDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentsThreadDescriptor';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4},'context':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'deletedAt':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8},'unlinkedAt':{'type':'string','id':0x9}}};static['toJSON'](thread){return{...thread,'createdAt':thread['createdAt']?.['toISOString'](),'deletedAt':thread['deletedAt']?.['toISOString'](),'resolvedAt':thread['resolvedAt']?.['toISOString'](),'attributes':thread['attributes']?JSON['stringify'](thread['attributes']):null,'context':thread['context']?JSON['stringify'](thread['context']):thread['context'],'comments':thread['comments']?.['map'](CommentDescriptor['toJSON']),'unlinkedAt':thread['unlinkedAt']?.['toISOString']()};}static['fromJSON'](thread){return{...thread,'createdAt':thread['createdAt']?new Date(thread['createdAt']):void 0x0,'deletedAt':thread['deletedAt']?new Date(thread['deletedAt']):void 0x0,'resolvedAt':thread['resolvedAt']?new Date(thread['resolvedAt']):void 0x0,'attributes':thread['attributes']?JSON['parse'](thread['attributes']):null,'context':thread['context']?JSON['parse'](thread['context']):void 0x0,'comments':thread['comments']?.['map'](CommentDescriptor['fromJSON']),'unlinkedAt':thread['unlinkedAt']?new Date(thread['unlinkedAt']):void 0x0};}}class AddCommentMessage extends Message{['documentId'];['commentThreadId'];['content'];['commentId'];['userId'];['attributes'];['commentThread'];['createdAt'];static ['TYPE']='91';static ['READABLE_TYPE_NAME']='addComment';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'content':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3},'commentId':{'type':'string','id':0x4},'createdAt':{'type':'string','id':0x5},'userId':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'commentThread':{'type':'CommentsThreadDescriptor','id':0x8}}};constructor(documentId,commentThreadId,content,commentId='',createdAt,_0x1e9f1b='',attributes=null,commentThread){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['content']=content,this['commentId']=commentId,this['userId']=_0x1e9f1b,this['attributes']=attributes,this['commentThread']=commentThread,this['createdAt']=createdAt?new Date(createdAt):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'content':this['content'],'documentId':this['documentId'],'commentId':this['commentId'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'userId':this['userId'],'attributes':JSON['stringify'](this['attributes']),'commentThread':this['commentThread']?CommentsThreadDescriptor['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](object){return new AddCommentMessage(object['documentId'],object['commentThreadId'],object['content'],object['commentId']?object['commentId']:void 0x0,object['createdAt']?new Date(object['createdAt']):void 0x0,object['userId']?object['userId']:void 0x0,object['attributes']?JSON['parse'](object['attributes']):{},object['commentThread']?CommentsThreadDescriptor['fromJSON'](object['commentThread']):void 0x0);}}class AddCommentResponse extends Message{['commentThreadId'];['commentId'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};constructor(commentThreadId,commentId,createdAt){super(),this['commentThreadId']=commentThreadId,this['commentId']=commentId,this['createdAt']=new Date(createdAt);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](data){return new AddCommentResponse(data['commentThreadId'],data['commentId'],data['createdAt']);}}class ConnectMessage extends Message{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new ConnectMessage(object['documentId']);}}class ConnectResponse extends Message{['channel'];['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2ConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'threads':{'type':'string','rule':'repeated','id':0x2},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x3}}};constructor(_0x2b2a5a,_threads,_threadsV2){super(),this['channel']=_0x2b2a5a,this['_threads']=_threads,this['_threadsV2']=_threadsV2,this['threads']=_threadsV2?.['length']?_threadsV2:_threads;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](thread=>JSON['stringify'](thread)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](object){return new ConnectResponse(object['channel'],object['threads']?.['map'](thread=>JSON['parse'](thread)),object['threadsV2']?.['map'](CommentsThreadDescriptor['fromJSON']));}}class RemoveCommentMessage extends Message{['documentId'];['commentThreadId'];['commentId'];static ['TYPE']='95';static ['READABLE_TYPE_NAME']='removeComment';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3}}};constructor(documentId,commentThreadId,commentId){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['commentId']=commentId;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](object){return new RemoveCommentMessage(object['documentId'],object['commentThreadId'],object['commentId']);}}class RemoveCommentThreadMessage extends Message{['documentId'];['commentThreadId'];static ['TYPE']='97';static ['READABLE_TYPE_NAME']='removeCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(documentId,commentThreadId){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](object){return new RemoveCommentThreadMessage(object['documentId'],object['commentThreadId']);}}class UpdateCommentMessage extends Message{['documentId'];['commentThreadId'];['commentId'];['content'];['attributes'];['isAttributesUpdated'];['commentThread'];static ['TYPE']='96';static ['READABLE_TYPE_NAME']='updateComment';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'content':{'type':'string','id':0x3},'documentId':{'type':'string','id':0x4},'attributes':{'type':'string','id':0x5},'isAttributesUpdated':{'type':'bool','id':0x6},'commentThread':{'type':'CommentsThreadDescriptor','id':0x7}}};constructor(documentId,commentThreadId,commentId,content,attributes=null,isAttributesUpdated=!0x1,commentThread){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['commentId']=commentId,this['content']=content,this['attributes']=attributes,this['isAttributesUpdated']=isAttributesUpdated,this['commentThread']=commentThread;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'content':this['content'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'isAttributesUpdated':this['isAttributesUpdated'],'commentThread':this['commentThread']?CommentsThreadDescriptor['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](object){return new UpdateCommentMessage(object['documentId'],object['commentThreadId'],object['commentId'],object['content'],object['attributes']?JSON['parse'](object['attributes']):null,object['isAttributesUpdated'],object['commentThread']?CommentsThreadDescriptor['fromJSON'](object['commentThread']):void 0x0);}}class GetCommentThreadMessage extends Message{['commentThreadId'];['documentId'];static ['TYPE']='93';static ['READABLE_TYPE_NAME']='getComment';static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(commentThreadId,documentId){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](object){return new GetCommentThreadMessage(object['commentThreadId'],object['documentId']);}}class GetCommentThreadResponse extends Message{['commentThreadId'];['_comments'];['_commentsV2'];['resolvedBy'];['comments'];['createdAt'];['deletedAt'];['resolvedAt'];['attributes'];['context'];['unlinkedAt'];static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'string','rule':'repeated','id':0x2},'commentsV2':{'type':'CommentDescriptor','rule':'repeated','id':0x3},'resolvedAt':{'type':'string','id':0x4},'resolvedBy':{'type':'string','id':0x5},'context':{'type':'string','id':0x6},'createdAt':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'attributes':{'type':'string','id':0x9},'unlinkedAt':{'type':'string','id':0xa}}};constructor(commentThreadId,_comments,_commentsV2,attributes,_0x86b398,context,createdAt,deletedAt,resolvedAt,unlinkedAt){super(),this['commentThreadId']=commentThreadId,this['_comments']=_comments,this['_commentsV2']=_commentsV2,this['resolvedBy']=_0x86b398,this['comments']=_commentsV2?.['length']?_commentsV2:_comments,this['createdAt']=createdAt?new Date(createdAt):void 0x0,this['deletedAt']='string'==typeof deletedAt?new Date(deletedAt):deletedAt,this['resolvedAt']='string'==typeof resolvedAt?new Date(resolvedAt):resolvedAt,this['unlinkedAt']='string'==typeof unlinkedAt?new Date(unlinkedAt):unlinkedAt,this['attributes']='string'==typeof attributes?JSON['parse'](attributes):attributes,this['context']='string'==typeof context?JSON['parse'](context):context;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'comments':this['_comments']?.['map'](comment=>JSON['stringify'](comment)),'commentsV2':this['_commentsV2']?.['map'](CommentDescriptor['toJSON']),'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'resolvedBy':this['resolvedBy'],'createdAt':this['createdAt']?.['toISOString'](),'deletedAt':this['deletedAt']?.['toISOString'](),'resolvedAt':this['resolvedAt']?.['toISOString'](),'unlinkedAt':this['unlinkedAt']?.['toISOString']()};}static['fromJSON'](object){return new GetCommentThreadResponse(object['commentThreadId'],object['comments']?.['map'](comment=>function(commentString){const comment=JSON['parse'](commentString);return{...comment,'createdAt':new Date(comment['createdAt'])};}(comment)),object['commentsV2']?.['map'](CommentDescriptor['fromJSON']),object['attributes']?JSON['parse'](object['attributes']):object['attributes'],object['resolvedBy'],object['context']?JSON['parse'](object['context']):object['context'],object['createdAt'],object['deletedAt'],object['resolvedAt'],object['unlinkedAt']);}}class GetDocumentThreadsMessage extends Message{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new GetDocumentThreadsMessage(object['documentId']);}}class GetDocumentThreadsResponse extends Message{['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsResponse';static ['DESCRIPTOR']={'fields':{'threads':{'type':'string','rule':'repeated','id':0x1},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x2}}};constructor(_threads,_threadsV2){super(),this['_threads']=_threads,this['_threadsV2']=_threadsV2,this['threads']=_threadsV2?.['length']?_threadsV2:_threads;}['toJSON'](){return{'threads':this['_threads']?.['map'](thread=>JSON['stringify'](thread)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](object){return new GetDocumentThreadsResponse(object['threads']?.['map'](thread=>function(threadString){const threadRaw=JSON['parse'](threadString),thread={...threadRaw};return threadRaw['comments']&&(thread['comments']=threadRaw['comments']?.['map'](comment=>({...comment,'createdAt':new Date(comment['createdAt'])}))),thread;}(thread)),object['threadsV2']?.['map'](CommentsThreadDescriptor['fromJSON']));}}class CommentThreadAddedCommentDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](comment){return{'commentId':comment['commentId'],'createdAt':comment['createdAt']?.['toISOString']()};}static['fromJSON'](comment){return{'commentId':comment['commentId'],'createdAt':new Date(comment['createdAt'])};}}class AddCommentThreadResponse extends Message{['commentThreadId'];['comments'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'createdAt':{'type':'string','id':0x2},'comments':{'type':'CommentThreadAddedCommentDescriptor','rule':'repeated','id':0x3}}};constructor(commentThreadId,createdAt,comments=[]){super(),this['commentThreadId']=commentThreadId,this['comments']=comments,this['createdAt']=new Date(createdAt);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](comment=>CommentThreadAddedCommentDescriptor['toJSON'](comment))};}static['fromJSON'](data){return new AddCommentThreadResponse(data['commentThreadId'],data['createdAt'],data['comments']['map'](comment=>CommentThreadAddedCommentDescriptor['fromJSON'](comment)));}}class AddCommentThreadMessage extends Message{['documentId'];['commentThreadId'];['comments'];['context'];['resolvedBy'];['attributes'];['createdAt'];['resolvedAt'];['deletedAt'];static ['TYPE']='140';static ['READABLE_TYPE_NAME']='addCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'commentThreadId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'resolvedAt':{'type':'string','id':0x5},'resolvedBy':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x9}}};constructor(documentId,commentThreadId,comments=[],context,_0x3e2012=null,createdAt=null,resolvedAt=null,deletedAt=null,attributes=null){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['comments']=comments,this['context']=context,this['resolvedBy']=_0x3e2012,this['attributes']=attributes,this['createdAt']=createdAt?new Date(createdAt):'',this['resolvedAt']=resolvedAt?new Date(resolvedAt):'',this['deletedAt']=deletedAt?new Date(deletedAt):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']instanceof Date?this['resolvedAt']['toISOString']():this['resolvedAt'],'deletedAt':this['deletedAt']instanceof Date?this['deletedAt']['toISOString']():this['deletedAt'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'comments':this['comments']?.['map'](_0x525525=>CommentDescriptor['toJSON'](_0x525525))};}static['fromJSON'](object){return new AddCommentThreadMessage(object['documentId'],object['commentThreadId'],object['comments']?.['map'](_0x473f20=>CommentDescriptor['fromJSON']({..._0x473f20,'documentId':object['documentId'],'commentThreadId':object['commentThreadId']})),object['context']?JSON['parse'](object['context']):object['context'],object['resolvedBy'],object['createdAt']?new Date(object['createdAt']):void 0x0,object['resolvedAt']?new Date(object['resolvedAt']):void 0x0,object['deletedAt']?new Date(object['deletedAt']):void 0x0,object['attributes']?JSON['parse'](object['attributes']):object['attributes']);}}class ResolveCommentThreadMessage extends Message{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['TYPE']='142';static ['READABLE_TYPE_NAME']='resolveCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedBy':{'type':'string','id':0x3},'resolvedAt':{'type':'string','id':0x4}}};constructor(commentThreadId,documentId,_0x8483ac,resolvedAt){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['resolvedBy']=_0x8483ac,this['resolvedAt']=resolvedAt?new Date(resolvedAt):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](object){return new ResolveCommentThreadMessage(object['commentThreadId'],object['documentId'],object['resolvedBy'],object['resolvedAt']);}}class ReopenCommentThreadMessage extends Message{['commentThreadId'];['documentId'];static ['TYPE']='141';static ['READABLE_TYPE_NAME']='reopenCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ReopenCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(commentThreadId,documentId){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](object){return new ReopenCommentThreadMessage(object['commentThreadId'],object['documentId']);}}class UpdateCommentThreadMessage extends Message{['commentThreadId'];['documentId'];['context'];['attributes'];['unlinkedAt'];static ['TYPE']='143';static ['READABLE_TYPE_NAME']='updateCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'attributes':{'type':'string','id':0x4},'unlinkedAt':{'type':'string','id':0x5}}};constructor(commentThreadId,documentId,context,attributes=null,unlinkedAt=null){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['context']=context,this['attributes']=attributes,this['unlinkedAt']=unlinkedAt?new Date(unlinkedAt):'';}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'unlinkedAt':this['unlinkedAt']instanceof Date?this['unlinkedAt']['toISOString']():this['unlinkedAt']};}static['fromJSON'](object){return new UpdateCommentThreadMessage(object['commentThreadId'],object['documentId'],object['context']?JSON['parse'](object['context']):object['context'],object['attributes']?JSON['parse'](object['attributes']):null,object['unlinkedAt']?new Date(object['unlinkedAt']):null);}}class ResolveCommentThreadResponse extends Message{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4}}};constructor(commentThreadId,documentId,_0x5e4ba7,resolvedAt){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['resolvedBy']=_0x5e4ba7,this['resolvedAt']=new Date(resolvedAt);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](data){return new ResolveCommentThreadResponse(data['commentThreadId'],data['documentId'],data['resolvedBy'],data['resolvedAt']);}}class CommentsService extends/* #__PURE__ -- @preserve */
|
|
67
|
-
EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_documentId){super(),this['_documentId']=_documentId;}get['isConnected'](){return this['_isConnected'];}async['connect'](wsGateway){if(this['_isConnected'])return;if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);const connectMessage=new ConnectMessage(this['_documentId']);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const
|
|
57
|
+
((()=>priorities['get']('highest')+0xf423f)());constructor(_0xbd5433,token,options,connectionProvider,userFactory){if(super(),this['_token']=token,this['_options']=options??{},this['_connectionProvider']=connectionProvider??io,this['_userFactory']=userFactory??User['get'],this['_requestsManager']=new WebSocketGatewayRequestsManager(this),this['_channels']=new Map(),!_0xbd5433)throw new TypeError('Api\x20address\x20must\x20be\x20provided.');if(!this['_token'])throw new TypeError('Token\x20must\x20be\x20provided.');this['_options']['requestTimeout']||(this['_options']['requestTimeout']=0x4e20),this['_url']=_0x4d2e4a(_0xbd5433['replace'](/^(?!(?:\w+:)?\/\/)/,'https://')),this['set']('state',WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']),this['set']('socketId',void 0x0),this['set']('me',void 0x0),this['on']('change:state',async(event,_0x538197,_0x18f425)=>{if(this['_debugEvent']('ws-gw:change:state',_0x18f425),_0x18f425!==WebSocketGateway['STATE_CONNECTED']){if(_0x18f425===WebSocketGateway['STATE_DISCONNECTED'])return this['_requestsManager']['errorAll'](new CKEditorCloudServicesError('Not\x20connected.',this));}else try{this['me']=await this['_userFactory']['call'](User,this,this['_socketAuth']?.['userId']);}catch(_0x9143de){}},{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['on']('error',(event,_0x3b993b)=>{this['_options']['onError']?this['_options']['onError'](_0x3b993b):console['error'](_0x3b993b);});}get['sessionId'](){return this['socketId'];}['waitForAllRequests'](time){return this['_requestsManager']['waitForAllRequests'](time);}['disconnect'](){this['state']!==WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&(this['_socket']?.['disconnect'](),this['_socket']=void 0x0,this['state']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']);}async['reconnect'](){this['_socket']||this['state']!==WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']||(await this['_token']['refreshToken'](),await this['_connect']());}static async['connect'](token,_0x8bc705='local.cs.dev:443/ws-v2',options={},_0x28c376=io,userFactory=User['get']){const webSocketGateway=new WebSocketGateway(_0x8bc705,token,options,_0x28c376,userFactory);return await webSocketGateway['_connect'](),webSocketGateway;}['_sendRequest'](_0x20e32d,method,_0x3efd1b){if(!_0x20e32d)throw new CKEditorCloudServicesError('`serviceName`\x20must\x20be\x20provided.',this);if(this['state']!==WebSocketGateway['STATE_CONNECTED'])throw new CKEditorCloudServicesError('Not\x20connected.',this);if(!this['_socketAuth']||!this['_socketAuth']['isAuthenticated'])throw new CKEditorCloudServicesError('Not\x20authenticated.',this);const _0x5a01bf=new ArrayBuffer(_0x3efd1b['length']+0x2),_0x117821=new Uint8Array(_0x5a01bf);return _0x117821[0x0]=_0x20e32d,_0x117821[0x1]=parseInt(method),_0x117821['set'](_0x3efd1b,0x2),this['_emit'](0x1,_0x117821);}['_getChannel'](_0x20fa90,_0x43cb1f){const _0x332c16=''+_0x20fa90+_0x43cb1f;return!this['_channels']['has'](_0x332c16)&&this['_socket']&&this['_channels']['set'](_0x332c16,new Channel(_0x332c16,this,this['_socket'])),this['_channels']['get'](_0x332c16);}['_connect'](){return new Promise((_0x3cd0de,reject)=>{const socket=this['_setupSocket']();!this['socketId']&&socket['io']['on']('reconnect_error',()=>{this['_debugEvent']('reconnect_error'),this['_reconnectionAttemptError'](reject);}),socket['once']('connect',async()=>{this['_debugEvent']('once-connect');try{await this['_onConnect'](),_0x3cd0de();}catch(_0xca557b){reject(_0xca557b);}}),socket['connect']();});}['_getPortByProtocol'](protocol){return['http:','ws:']['includes'](protocol)?0x50:0x1bb;}['_setupSocket'](){if(this['_socket'])return this['_socket'];const port=this['_url']['port']||this['_getPortByProtocol'](this['_url']['protocol']),_0x33c6a3=(this['_url']['protocol']||'https:')+'//'+this['_url']['hostname']+':'+port,pathPrefix=this['_url']['pathname']['match'](/^\/.*\/ws/)?this['_url']['pathname']['split']('/ws')[0x0]:'',socket=this['_connectionProvider'](_0x33c6a3,{'parser':{'Encoder':Encoder,'Decoder':Decoder},'path':pathPrefix+'/ws-v2/ws','transports':['websocket'],'timeout':void 0x0!==this['_options']['timeout']?this['_options']['timeout']:0x1388,'reconnection':void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect'],'reconnectionDelay':0x3e8,'reconnectionDelayMax':0x1388,'rejectUnauthorized':void 0x0===this['_options']['rejectUnauthorized']||this['_options']['rejectUnauthorized'],'query':{'version':'53.0.3'},'agent':this['_options']['agent']??!0x1,'closeOnBeforeunload':!0x1});return this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],socket['on']('connect',()=>{this['_debugEvent']('connect'),this['socketId']=socket['id'];}),socket['on']('connect_error',_0x4da045=>{this['_debugEvent']('connect_error',_0x4da045);}),socket['on']('disconnect',()=>{this['_debugEvent']('disconnect'),this['_onDisconnect']();}),socket['io']['on']('reconnect',async()=>{this['_debugEvent']('reconnect'),await this['_onReconnect']();}),socket['io']['on']('reconnect_attempt',attempt=>{this['_debugEvent']('reconnect_attempt',attempt),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],this['_connectionAttempt']=attempt;}),socket['on']('unauthorized',data=>{this['_debugEvent']('unauthorized'),this['_onUnauthorized'](data);}),socket['on']('authenticationRequest',async data=>{this['_debugEvent']('authenticationRequest',data['attempt']),await this['_onReconnect']();}),this['_socket']=socket,socket;}['_emit'](eventName,_0x59e167){const socket=this['_socket'];return this['_requestsManager']['send'](_0x469f4f=>{socket['emit'](eventName,_0x59e167,(_0x4f9383,_0x436cec)=>{if(_0x4f9383)return _0x469f4f['error'](CKEditorCloudServicesServerError['fromPublicError'](_0x4f9383));_0x469f4f['response'](_0x436cec);});},this['_options']['requestTimeout']);}['_addAuthData'](environmentId,_0x2ba605){this['_socketAuth']={'environmentId':environmentId,'userId':_0x2ba605,'isAuthenticated':!0x0};}['_removeAuthData'](){this['_socketAuth']=void 0x0;}async['_onConnect'](){await this['_authenticate'](this['_token']['value']),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'];const _0x8199=async(event,_0x3315c9,_0x49ec48)=>{this['_debugEvent']('token:value:change');try{await this['_authenticate'](_0x49ec48);}catch(_0x2055ed){}};this['_token']['on']('change:value',_0x8199),this['_socket']['io']['off']('reconnect_error'),this['on']('disconnect',()=>{this['_token']['off']('change:value',_0x8199);});}async['_onReconnect'](){await this['_token']['refreshToken'](),await this['_onConnect']();}['_onDisconnect'](){this['state']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED'],this['_connectionAttempt']=0x0,this['fire']('disconnect');for(const _0x1b4855 of this['_channels']['values']())_0x1b4855['remove']();this['_channels']['clear'](),void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect']||(this['_socket']=void 0x0);}['_debugEvent'](eventName,eventData){if(!this['_isDebugModeEnabled']())return;const eventDataString=void 0x0!==eventData?',\x20data:\x20'+eventData:'';console['info'](new Date()['toLocaleString']()+'\x20'+eventName+eventDataString);}['_reconnectionAttemptError'](_0x43dd8c){this['_connectionAttempt']>=0x2&&(this['disconnect'](),_0x43dd8c(CKEditorCloudServicesError['fromPublicError']({'message':'The\x20number\x20of\x20initial\x20connection\x20attempts\x20exceeded.','explanation':'Three\x20initial\x20connection\x20attempts\x20failed.\x20It\x20can\x20be\x20caused\x20by\x20a\x20slow,\x20unstable,\x20missing\x20or\x20blocked\x20Internet\x20connection.','action':'Please\x20verify\x20the\x20stability\x20of\x20your\x20Internet\x20connection\x20and\x20ensure\x20that\x20no\x20antivirus\x20or\x20firewall\x20software\x20blocks\x20the\x20Web\x20Socket\x20protocol\x20connections.'})));}['_onUnauthorized']({error:_0x268dd5}){this['_removeAuthData'](),this['fire']('error',CKEditorCloudServicesServerError['fromPublicError'](_0x268dd5));}async['_authenticate'](token){try{this['_debugEvent']('authenticate:start');const _0x360f1b=await this['_emit'](0x2,{'token':token});this['_debugEvent']('authenticate:success','envId:\x20'+_0x360f1b['environmentId']+',\x20userId:\x20'+_0x360f1b['userId']),this['_addAuthData'](_0x360f1b['environmentId'],_0x360f1b['userId']);}catch(_0x1a7a43){throw this['_debugEvent']('authenticate:error',_0x1a7a43['message']),this['_removeAuthData'](),_0x1a7a43;}}['_isDebugModeEnabled'](){if(!global['window']['localStorage'])return!0x1;return'true'===(global['window']['localStorage']['getItem']('csClientDebugMode')??'false')['toLowerCase']();}}class IsEditorBundleUploadedMessage extends Message{['bundleVersion'];static ['TYPE']='131';static ['READABLE_TYPE_NAME']='isEditorBundleUploaded';static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedMessage';static ['DESCRIPTOR']={'fields':{'bundleVersion':{'type':'string','id':0x1}}};constructor(_0x9b90ee){super(),this['bundleVersion']=_0x9b90ee;}['toJSON'](){return{'bundleVersion':this['bundleVersion']};}static['fromJSON'](object){return new IsEditorBundleUploadedMessage(object['bundleVersion']);}}class IsEditorBundleUploadedResponse extends Message{['isUploaded'];static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedResponse';static ['DESCRIPTOR']={'fields':{'isUploaded':{'type':'bool','id':0x1}}};constructor(_0x56a8af){super(),this['isUploaded']=_0x56a8af;}['toJSON'](){return{'isUploaded':this['isUploaded']};}static['fromJSON'](_0x53bc72){return new IsEditorBundleUploadedResponse(_0x53bc72['isUploaded']);}}class EditorService extends/* #__PURE__ -- @preserve */
|
|
58
|
+
EmitterMixin(){static ['_SERVICE']=0xd;static async['isBundleUploaded'](wsGateway,_0x21c053){const _0x6701d1=new IsEditorBundleUploadedMessage(_0x21c053);if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);const _0x405d8e=await wsGateway['_sendRequest'](EditorService['_SERVICE'],IsEditorBundleUploadedMessage['TYPE'],MessagesCompressor['encode'](_0x6701d1));return MessagesCompressor['decode'](_0x405d8e,IsEditorBundleUploadedResponse)['isUploaded'];}}class RevisionHistoryGetRevisionMessage extends Message{['documentId'];['revisionId'];static ['TYPE']='123';static ['READABLE_TYPE_NAME']='getRevision';static ['DESCRIPTOR_NAME']='RevisionHistoryGetRevisionMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'revisionId':{'type':'string','id':0x2}}};constructor(documentId,_0x155d34){super(),this['documentId']=documentId,this['revisionId']=_0x155d34;}['toJSON'](){return{'documentId':this['documentId'],'revisionId':this['revisionId']};}static['fromJSON'](object){return new RevisionHistoryGetRevisionMessage(object['documentId'],object['revisionId']);}}class RevisionDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='RevisionDescriptor';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
|
|
59
|
+
((()=>({'fields':{'revisionId':{'type':'string','id':0x1},'name':{'type':'string','id':0x2},'creatorId':{'type':'string','id':0x3},'authorsIds':{'type':'string','id':0x4},'diffData':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'toVersion':{'type':'uint32','id':0x8},'fromVersion':{'type':'uint32','id':0x9},'isEmptyCurrent':{'type':'bool','id':0xa}}}))());static['create'](object){return{'revisionId':object['id'],'name':object['name'],'creatorId':object['creatorId'],'createdAt':object['createdAt'],'fromVersion':object['fromVersion'],'toVersion':object['toVersion'],'isEmptyCurrent':object['isEmptyCurrent'],'diffData':object['diffData']?JSON['stringify'](object['diffData']):void 0x0,'attributes':object['attributes'],'authorsIds':object['authorsIds']};}static['toJSON'](_0x2256f1){return{'revisionId':_0x2256f1['revisionId'],'name':_0x2256f1['name'],'creatorId':_0x2256f1['creatorId'],'authorsIds':_0x2256f1['authorsIds']?JSON['stringify'](_0x2256f1['authorsIds']):void 0x0,'diffData':_0x2256f1['diffData'],'createdAt':_0x2256f1['createdAt']?.['toISOString'](),'attributes':_0x2256f1['attributes']?JSON['stringify'](_0x2256f1['attributes']):void 0x0,'toVersion':_0x2256f1['toVersion'],'fromVersion':_0x2256f1['fromVersion'],'isEmptyCurrent':_0x2256f1['isEmptyCurrent']};}static['fromJSON'](_0x2ba852){return{'revisionId':(_0x2ba852={..._0x2ba852})['revisionId'],'name':_0x2ba852['name'],'creatorId':_0x2ba852['creatorId'],'authorsIds':_0x2ba852['authorsIds']?JSON['parse'](_0x2ba852['authorsIds']):void 0x0,'diffData':_0x2ba852['diffData'],'createdAt':_0x2ba852['createdAt']?new Date(_0x2ba852['createdAt']):void 0x0,'attributes':_0x2ba852['attributes']?JSON['parse'](_0x2ba852['attributes']):void 0x0,'toVersion':_0x2ba852['toVersion'],'fromVersion':_0x2ba852['fromVersion'],'isEmptyCurrent':_0x2ba852['isEmptyCurrent']};}static['toObject'](_0x11e629){return function(revisionObject){for(const [_0x5eb9e5,_0x361732]of Object['entries'](revisionObject))void 0x0===_0x361732&&delete revisionObject[_0x5eb9e5];return revisionObject;}({'id':_0x11e629['revisionId'],'name':_0x11e629['name'],'creatorId':_0x11e629['creatorId'],'createdAt':_0x11e629['createdAt'],'fromVersion':_0x11e629['fromVersion'],'toVersion':_0x11e629['toVersion'],'isEmptyCurrent':_0x11e629['isEmptyCurrent'],'diffData':_0x11e629['diffData']?JSON['parse'](_0x11e629['diffData']):void 0x0,'attributes':_0x11e629['attributes'],'authorsIds':_0x11e629['authorsIds']});}}class RevisionHistoryGetRevisionResponse extends Message{['revisionId'];['name'];['creatorId'];['authorsIds'];['createdAt'];['diffData'];['attributes'];['fromVersion'];['toVersion'];['isEmptyCurrent'];static ['DESCRIPTOR_NAME']='RevisionHistoryGetRevisionResponse';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
|
|
60
|
+
((()=>RevisionDescriptor['DESCRIPTOR'])());constructor(_0x3e9685,_0x1c1969,creatorId,authorsIds,createdAt,diffData,attributes,_0x16dfea,toVersion,isEmptyCurrent){super(),this['revisionId']=_0x3e9685,this['name']=_0x1c1969,this['creatorId']=creatorId,this['authorsIds']=authorsIds,this['createdAt']=createdAt,this['diffData']=diffData,this['attributes']=attributes,this['fromVersion']=_0x16dfea,this['toVersion']=toVersion,this['isEmptyCurrent']=isEmptyCurrent;}['toJSON'](){return RevisionDescriptor['toJSON'](this);}['toObject'](){return RevisionDescriptor['toObject'](this);}static['create'](_0x2c5038){return new RevisionHistoryGetRevisionResponse(_0x2c5038['revisionId'],_0x2c5038['name'],_0x2c5038['creatorId'],_0x2c5038['authorsIds'],_0x2c5038['createdAt'],_0x2c5038['diffData'],_0x2c5038['attributes'],_0x2c5038['fromVersion'],_0x2c5038['toVersion'],_0x2c5038['isEmptyCurrent']);}static['fromJSON'](_0x3ddd85){return new RevisionHistoryGetRevisionResponse(_0x3ddd85['revisionId'],_0x3ddd85['name'],_0x3ddd85['creatorId'],_0x3ddd85['authorsIds']?JSON['parse'](_0x3ddd85['authorsIds']):void 0x0,_0x3ddd85['createdAt']?new Date(_0x3ddd85['createdAt']):void 0x0,_0x3ddd85['diffData'],_0x3ddd85['attributes']?JSON['parse'](_0x3ddd85['attributes']):void 0x0,_0x3ddd85['fromVersion'],_0x3ddd85['toVersion'],_0x3ddd85['isEmptyCurrent']);}}class RevisionHistoryUpdateRevisionsMessage extends Message{['documentId'];['requestId'];['revisions'];static ['TYPE']='124';static ['READABLE_TYPE_NAME']='updateRevisions';static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2},'revisions':{'type':'RevisionDescriptor','id':0x3,'rule':'repeated'}}};constructor(documentId,requestId,_0x16f3ac){super(),this['documentId']=documentId,this['requestId']=requestId,this['revisions']=_0x16f3ac;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toJSON'])};}['toObject'](){return{'documentId':this['documentId'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toObject'])};}static['create'](_0x1a1c5c){return new RevisionHistoryUpdateRevisionsMessage(_0x1a1c5c['documentId'],_0x1a1c5c['requestId'],_0x1a1c5c['revisions']['map'](RevisionDescriptor['create']));}static['fromJSON'](_0x3a683c){return new RevisionHistoryUpdateRevisionsMessage(_0x3a683c['documentId'],_0x3a683c['requestId'],_0x3a683c['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryUpdateRevisionsResponse extends Message{['requestId'];static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsResponse';static ['DESCRIPTOR']={'fields':{'requestId':{'type':'uint32','id':0x1}}};constructor(requestId){super(),this['requestId']=requestId;}['toJSON'](){return{'requestId':this['requestId']};}static['fromJSON'](_0x3be248){return new RevisionHistoryUpdateRevisionsResponse(_0x3be248['requestId']);}}class RevisionHistoryConnectMessage extends Message{['documentId'];static ['TYPE']='121';static ['READABLE_TYPE_NAME']='connectToRevisionHistory';static ['DESCRIPTOR_NAME']='RevisionHistoryConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new RevisionHistoryConnectMessage(object['documentId']);}}class RevisionHistoryConnectResponse extends Message{['channel'];['requestId'];['revisions'];static ['DESCRIPTOR_NAME']='RevisionHistoryConnectResponse';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
|
|
61
|
+
((()=>({'fields':{'channel':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2},'revisions':{'type':'RevisionDescriptor','id':0x3,'rule':'repeated'}}}))());constructor(_0x5a2dc2,requestId,_0x405a09){super(),this['channel']=_0x5a2dc2,this['requestId']=requestId,this['revisions']=_0x405a09;}['toJSON'](){return{'channel':this['channel'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toJSON'])};}['toObject'](){return{'channel':this['channel'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toObject'])};}static['fromJSON'](_0x4f354b){return new RevisionHistoryConnectResponse(_0x4f354b['channel'],_0x4f354b['requestId'],_0x4f354b['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryReconnectMessage extends Message{['documentId'];['requestId'];static ['TYPE']='122';static ['READABLE_TYPE_NAME']='reconnectToRevisionHistory';static ['DESCRIPTOR_NAME']='RevisionHistoryReconnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2}}};constructor(documentId,requestId){super(),this['documentId']=documentId,this['requestId']=requestId;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId']};}static['fromJSON'](object){return new RevisionHistoryReconnectMessage(object['documentId'],object['requestId']);}}class ServiceNotConnectedError extends CKEditorCloudServicesError{constructor(_0x480198,context){super(_0x480198+'\x20Service\x20is\x20not\x20connected.',context);}}class RevisionHistoryService extends/* #__PURE__ -- @preserve */
|
|
62
|
+
EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xc;constructor(_documentId){super(),this['_documentId']=_documentId;}get['isConnected'](){return this['_isConnected'];}['connect'](wsGateway){return this['_isConnected']?Promise['resolve']():this['_connect'](wsGateway,new RevisionHistoryConnectMessage(this['_documentId']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['fire']('disconnected'),this['stopListening']());}['reconnect'](wsGateway,lastRequestId){if(this['isConnected'])throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',wsGateway);return this['_connect'](wsGateway,new RevisionHistoryReconnectMessage(this['_documentId'],lastRequestId));}async['updateRevisions'](_0x243312,lastRequestId){const _0x3fb5a0=RevisionHistoryUpdateRevisionsMessage['create']({'documentId':this['_documentId'],'requestId':lastRequestId,'revisions':_0x243312}),_0x26d912=await this['_sendRequest'](RevisionHistoryUpdateRevisionsMessage['TYPE'],_0x3fb5a0),{requestId:requestId}=MessagesCompressor['decode'](_0x26d912,RevisionHistoryUpdateRevisionsResponse);return requestId;}async['getRevision'](_0x346e92){const _0x48ab09=new RevisionHistoryGetRevisionMessage(this['_documentId'],_0x346e92),_0x324679=await this['_sendRequest'](RevisionHistoryGetRevisionMessage['TYPE'],_0x48ab09);return MessagesCompressor['decode'](_0x324679,RevisionHistoryGetRevisionResponse)['toObject']();}async['_connect'](wsGateway,_0x321ec4){if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0xb0287e=await wsGateway['_sendRequest'](0xc,_0x321ec4['constructor']['TYPE'],MessagesCompressor['encode'](_0x321ec4)),{channel:_0xe2a526,requestId:requestId,revisions:_0x1ec28c}=MessagesCompressor['decode'](_0xb0287e,RevisionHistoryConnectResponse)['toObject']();return this['listenTo'](wsGateway,'change:state',(_0x4d4780,_0x1b43bc,state)=>this['_onWsGatewayStateChange'](state),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,_0xe2a526),this['_isConnected']=!0x0,this['fire']('connected'),{'revisions':_0x1ec28c,'requestId':requestId};}['_connectToChannel'](wsGateway,_0x463c7f){this['_channel']=wsGateway['_getChannel'](RevisionHistoryService['_SERVICE'],_0x463c7f),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](RevisionHistoryUpdateRevisionsMessage['TYPE']),(event,data)=>{const {documentId:documentId,requestId:requestId,revisions:_0x5e8473}=MessagesCompressor['decode'](data,RevisionHistoryUpdateRevisionsMessage)['toObject']();this['fire']('revisionsUpdated',{'documentId':documentId,'requestId':requestId,'revisionsData':_0x5e8473});});}['_onWsGatewayStateChange'](_0x5587b2){_0x5587b2===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](method,_0x19e4f8){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Revision\x20History',this);return this['_wsGateway']['_sendRequest'](0xc,method,MessagesCompressor['encode'](_0x19e4f8));}}class AddSuggestionMessage extends Message{['id'];['documentId'];['type'];['data'];['originalSuggestionId'];['attributes'];static ['TYPE']='101';static ['READABLE_TYPE_NAME']='addSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesAddSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'data':{'type':'string','id':0x4},'originalSuggestionId':{'type':'string','id':0x5},'attributes':{'type':'string','id':0x6}}};constructor(_0x166037,documentId,type,data={},originalSuggestionId=null,attributes=null){super(),this['id']=_0x166037,this['documentId']=documentId,this['type']=type,this['data']=data,this['originalSuggestionId']=originalSuggestionId,this['attributes']=attributes;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'type':this['type'],'data':JSON['stringify'](this['data']),'originalSuggestionId':this['originalSuggestionId'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](object){return new AddSuggestionMessage(object['id'],object['documentId'],object['type'],JSON['parse'](object['data']),object['originalSuggestionId']??null,object['attributes']?JSON['parse'](object['attributes']):null);}}class AddSuggestionResponse extends Message{['id'];['authorId'];['type'];['hasComments'];['state'];['data'];['attributes'];['createdAt'];static ['DESCRIPTOR_NAME']='TrackChangesAddSuggestionResponse';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'authorId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'data':{'type':'string','id':0x5},'hasComments':{'type':'bool','id':0x6},'state':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8}}};constructor(_0x593f71,authorId,type,createdAt,hasComments,state,data={},attributes=null){super(),this['id']=_0x593f71,this['authorId']=authorId,this['type']=type,this['hasComments']=hasComments,this['state']=state,this['data']=data,this['attributes']=attributes,this['createdAt']=createdAt?new Date(createdAt):void 0x0;}['toJSON'](){return{'id':this['id'],'authorId':this['authorId'],'type':this['type'],'createdAt':this['createdAt']?.['toISOString'](),'data':JSON['stringify'](this['data']),'hasComments':this['hasComments'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](data){return new AddSuggestionResponse(data['id'],data['authorId'],data['type'],data['createdAt'],data['hasComments'],data['state'],JSON['parse'](data['data']),data['attributes']?JSON['parse'](data['attributes']):null);}}class GetSuggestionMessage extends Message{['id'];['documentId'];static ['TYPE']='103';static ['READABLE_TYPE_NAME']='getSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesGetSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x88b1f6,documentId){super(),this['id']=_0x88b1f6,this['documentId']=documentId;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId']};}static['fromJSON'](object){return new GetSuggestionMessage(object['id'],object['documentId']);}}class GetSuggestionResponse extends Message{['id'];['authorId'];['type'];['hasComments'];['state'];['data'];['attributes'];['createdAt'];static ['DESCRIPTOR_NAME']='TrackChangesGetSuggestionResponse';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'authorId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'data':{'type':'string','id':0x5},'hasComments':{'type':'bool','id':0x6},'state':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8}}};constructor(_0x5df02a,authorId,type,createdAt,hasComments,state,data={},attributes=null){super(),this['id']=_0x5df02a,this['authorId']=authorId,this['type']=type,this['hasComments']=hasComments,this['state']=state,this['data']=data,this['attributes']=attributes,this['createdAt']=new Date(createdAt);}['toJSON'](){return{'id':this['id'],'authorId':this['authorId'],'type':this['type'],'createdAt':this['createdAt']['toISOString'](),'data':JSON['stringify'](this['data']),'hasComments':this['hasComments'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](data){return new GetSuggestionResponse(data['id'],data['authorId'],data['type'],data['createdAt'],data['hasComments'],data['state'],JSON['parse'](data['data']),data['attributes']?JSON['parse'](data['attributes']):null);}}class GetAllSuggestionsMessage extends Message{['documentId'];static ['TYPE']='102';static ['READABLE_TYPE_NAME']='getAllSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesGetAllSuggestionMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new GetAllSuggestionsMessage(object['documentId']);}}class SuggestionDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='SuggestionDescriptor';static ['DESCRIPTOR']={'fields':{'id':{'id':0x1,'type':'string'},'authorId':{'id':0x2,'type':'string'},'type':{'id':0x3,'type':'string'},'createdAt':{'id':0x4,'type':'string'},'data':{'id':0x5,'type':'string'},'hasComments':{'id':0x6,'type':'bool'},'state':{'id':0x7,'type':'string'},'attributes':{'id':0x8,'type':'string'}}};static['toJSON'](suggestion){return{...suggestion,'data':suggestion['data']?JSON['stringify'](suggestion['data']):suggestion['data'],'attributes':suggestion['attributes']?JSON['stringify'](suggestion['attributes']):suggestion['attributes'],'createdAt':suggestion['createdAt']?.['toISOString']()};}static['fromJSON'](suggestion){return{...suggestion,'data':suggestion['data']?JSON['parse'](suggestion['data']):suggestion['data'],'attributes':suggestion['attributes']?JSON['parse'](suggestion['attributes']):suggestion['attributes'],'createdAt':suggestion['createdAt']?new Date(suggestion['createdAt']):void 0x0};}}class GetAllSuggestionResponse extends Message{['_suggestions'];['_suggestionsV2'];['suggestions'];static ['DESCRIPTOR_NAME']='TrackChangesGetAllSuggestionsResponse';static ['DESCRIPTOR']={'fields':{'suggestions':{'type':'string','rule':'repeated','id':0x1},'suggestionsV2':{'type':'SuggestionDescriptor','rule':'repeated','id':0x2}}};constructor(_suggestions,_suggestionsV2){super(),this['_suggestions']=_suggestions,this['_suggestionsV2']=_suggestionsV2,this['suggestions']=_suggestionsV2?.['length']?_suggestionsV2:_suggestions;}['toJSON'](){return{'suggestions':this['_suggestions']?.['map'](suggestion=>JSON['stringify'](suggestion)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](data){return new GetAllSuggestionResponse(data['suggestions']?.['map'](_suggestionFromString),data['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}}function _suggestionFromString(suggestion){const parsedSuggestion=JSON['parse'](suggestion);return parsedSuggestion['createdAt']=parsedSuggestion['createdAt']?new Date(parsedSuggestion['createdAt']):void 0x0,parsedSuggestion;}class UpdateSuggestionMessage extends Message{['id'];['documentId'];['hasComments'];['isHasCommentsModified'];['state'];['attributes'];static ['TYPE']='104';static ['READABLE_TYPE_NAME']='updateSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesUpdateSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'hasComments':{'type':'bool','id':0x3},'isHasCommentsModified':{'type':'bool','id':0x4},'state':{'type':'string','id':0x5},'attributes':{'type':'string','id':0x6}}};constructor(_0x68916d,documentId,hasComments,isHasCommentsModified,state,attributes=null){super(),this['id']=_0x68916d,this['documentId']=documentId,this['hasComments']=hasComments,this['isHasCommentsModified']=isHasCommentsModified,this['state']=state,this['attributes']=attributes;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'hasComments':this['hasComments'],'isHasCommentsModified':this['isHasCommentsModified'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](object){return new UpdateSuggestionMessage(object['id'],object['documentId'],object['hasComments'],object['isHasCommentsModified'],object['state'],object['attributes']?JSON['parse'](object['attributes']):null);}}let ConnectMessage$1=class ConnectMessage extends Message{['documentId'];static ['TYPE']='105';static ['READABLE_TYPE_NAME']='connectToSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new ConnectMessage(object['documentId']);}},ConnectResponse$1=class ConnectResponse extends Message{['channel'];['_suggestions'];['_suggestionsV2'];['suggestions'];static ['DESCRIPTOR_NAME']='TrackChangesConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'suggestions':{'type':'string','rule':'repeated','id':0x2},'suggestionsV2':{'type':'SuggestionDescriptor','rule':'repeated','id':0x3}}};constructor(_0x5142a2,_suggestions,_suggestionsV2){super(),this['channel']=_0x5142a2,this['_suggestions']=_suggestions,this['_suggestionsV2']=_suggestionsV2,this['suggestions']=_suggestionsV2?.['length']?_suggestionsV2:_suggestions;}['toJSON'](){return{'channel':this['channel'],'suggestions':this['_suggestions']?.['map'](suggestion=>JSON['stringify'](suggestion)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](object){return new ConnectResponse(object['channel'],object['suggestions']?.['map'](suggestion=>JSON['parse'](suggestion)),object['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}};class BatchUpdateSuggestionsStateMessage extends Message{['ids'];['documentId'];['state'];static ['TYPE']='106';static ['READABLE_TYPE_NAME']='batchUpdateSuggestionsState';static ['DESCRIPTOR_NAME']='TrackChangesBatchUpdateSuggestionsStateMessage';static ['DESCRIPTOR']={'fields':{'ids':{'type':'string','rule':'repeated','id':0x1},'documentId':{'type':'string','id':0x2},'state':{'type':'string','id':0x3}}};constructor(_0x1ab645,documentId,state){super(),this['ids']=_0x1ab645,this['documentId']=documentId,this['state']=state;}['toJSON'](){return{'ids':this['ids'],'documentId':this['documentId'],'state':this['state']};}static['fromJSON'](object){return new BatchUpdateSuggestionsStateMessage(object['ids'],object['documentId'],object['state']);}}class TrackChangesService extends/* #__PURE__ -- @preserve */
|
|
63
|
+
EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xa;constructor(_documentId){super(),this['_documentId']=_documentId;}get['isConnected'](){return this['_isConnected'];}async['connect'](wsGateway){if(this['_isConnected'])return;if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);const connectMessage=new ConnectMessage$1(this['_documentId']);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x154e6c=await wsGateway['_sendRequest'](0xa,ConnectMessage$1['TYPE'],MessagesCompressor['encode'](connectMessage)),connectResponse=MessagesCompressor['decode'](_0x154e6c,ConnectResponse$1);return this['listenTo'](wsGateway,'change:state',(_0x4e54b3,_0x49fd50,_0xd7ca0d)=>this['_onWsGatewayStateChange'](_0xd7ca0d),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,connectResponse['channel']),this['_isConnected']=!0x0,this['fire']('connected'),connectResponse['suggestions'];}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['add'](_0x2f3809,type,data,originalSuggestionId=null,attributes){const _0x196088=new AddSuggestionMessage(_0x2f3809,this['_documentId'],type,data,originalSuggestionId,attributes),_0xfced96=await this['_sendRequest'](AddSuggestionMessage['TYPE'],_0x196088);return MessagesCompressor['decode'](_0xfced96,AddSuggestionResponse);}async['get'](_0x236638,attempt=0x1){const _0x47d77d=new GetSuggestionMessage(_0x236638,this['_documentId']);try{const _0x15aeb1=await this['_sendRequest'](GetSuggestionMessage['TYPE'],_0x47d77d);return MessagesCompressor['decode'](_0x15aeb1,GetSuggestionResponse);}catch(_0x45913c){if('CKEditorCloudServicesServerError'===_0x45913c['name']&&'404'===_0x45913c['code']&&attempt<0x5)return await(time=0x64*attempt,new Promise(_0x6d1d3d=>{setTimeout(_0x6d1d3d,time);})),this['get'](_0x236638,attempt+0x1);if('CKEditorCloudServicesServerError'===_0x45913c['name'])throw _0x45913c;throw CKEditorCloudServicesServerError['fromPublicError'](_0x45913c);}var time;}async['getAll'](){const _0x2f144b=new GetAllSuggestionsMessage(this['_documentId']),_0x3f7da6=await this['_sendRequest'](GetAllSuggestionsMessage['TYPE'],_0x2f144b),{suggestions:suggestions}=MessagesCompressor['decode'](_0x3f7da6,GetAllSuggestionResponse);return suggestions;}async['update'](_0x1d871e,_0x5bfe9d={}){const {hasComments:hasComments,state:state,attributes:attributes}=_0x5bfe9d,isHasCommentsUpdated=void 0x0!==hasComments,_0x2a8128=new UpdateSuggestionMessage(_0x1d871e,this['_documentId'],hasComments,isHasCommentsUpdated,state,attributes);await this['_sendRequest'](UpdateSuggestionMessage['TYPE'],_0x2a8128);}async['batchUpdateState'](_0x192f66){const _0x13830c=new BatchUpdateSuggestionsStateMessage(_0x192f66['ids'],this['_documentId'],_0x192f66['state']);await this['_sendRequest'](BatchUpdateSuggestionsStateMessage['TYPE'],_0x13830c);}['_connectToChannel'](wsGateway,_0x59f99b){this['_channel']=wsGateway['_getChannel'](TrackChangesService['_SERVICE'],_0x59f99b),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateSuggestionMessage['TYPE']),(event,data)=>{const updateSuggestionMessage=MessagesCompressor['decode'](data,UpdateSuggestionMessage);this['fire']('suggestionUpdated',updateSuggestionMessage);});}['_onWsGatewayStateChange'](_0x19af9b){_0x19af9b===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](method,_0x572fef){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Track\x20Changes',this);return this['_wsGateway']['_sendRequest'](0xa,method,MessagesCompressor['encode'](_0x572fef));}}class SessionsConnectResponse extends Message{['channel'];['sockets'];static ['DESCRIPTOR_NAME']='SessionsConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'sockets':{'rule':'repeated','type':'SessionsSocketDescriptor','id':0x2}}};constructor(_0x55ffc0,sockets=[]){super(),this['channel']=_0x55ffc0,this['sockets']=sockets;}['toJSON'](){return{'channel':this['channel'],'sockets':this['sockets']['map'](socket=>({'user':socket['userId'],'session':socket['id'],'role':socket['role'],'permissions':socket['permissions']}))};}static['fromJSON'](data){return new SessionsConnectResponse(data['channel'],data['sockets']['map'](socket=>({'id':socket['session'],'userId':socket['user'],'role':socket['role'],'permissions':socket['permissions']})));}}class SessionsConnectMessage extends Message{['id'];['sessionType'];static ['TYPE']='31';static ['READABLE_TYPE_NAME']='getConnectedSockets';static ['DESCRIPTOR_NAME']='SessionsConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'sessionType':{'type':'uint32','id':0x2}}};constructor(_0x202306,_0xdaefef){super(),this['id']=_0x202306,this['sessionType']=_0xdaefef;}['toJSON'](){return{'id':this['id'],'sessionType':this['sessionType']};}static['fromJSON'](data){return new SessionsConnectMessage(data['id'],data['sessionType']);}}class SocketConnectMessage extends Message{['id'];['userId'];['role'];['permissions'];static ['TYPE']='32';static ['READABLE_TYPE_NAME']='connectSocket';static ['DESCRIPTOR_NAME']='SocketConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'userId':{'type':'string','id':0x2},'role':{'type':'string','id':0x3},'permissions':{'rule':'repeated','type':'string','id':0x4}}};constructor(_0xfb15e4,_0x51b53f,_0x2a321e,_0x20980c){super(),this['id']=_0xfb15e4,this['userId']=_0x51b53f,this['role']=_0x2a321e,this['permissions']=_0x20980c;}['toJSON'](){return{'id':this['id'],'userId':this['userId']??void 0x0,'role':this['role']??void 0x0,'permissions':this['permissions']??void 0x0};}static['fromJSON'](data){return new SocketConnectMessage(data['id'],data['userId'],data['role'],data['permissions']);}}class SocketDisconnectMessage extends Message{['id'];static ['TYPE']='33';static ['READABLE_TYPE_NAME']='disconnectSocket';static ['DESCRIPTOR_NAME']='SocketDisconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1}}};constructor(_0xcf130a){super(),this['id']=_0xcf130a;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](data){return new SocketDisconnectMessage(data['id']);}}class SessionCollection extends Collection{['_id'];['_sessionType'];['_handlers']=new Map();['_channel'];['_wsGateway'];['_connected'];['_eventsQueue']=[];['_isRunning']=!0x1;constructor(_0x664b95,_0x3de290){super({'idProperty':'id'}),this['_id']=_0x664b95,this['_sessionType']=_0x3de290;}async['connect'](wsGateway){this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x107d1a=new SessionsConnectMessage(this['_id'],this['_sessionType']);let sessionsConnectResponse;try{const _0x4856ca=await this['_wsGateway']['_sendRequest'](0x3,SessionsConnectMessage['TYPE'],MessagesCompressor['encode'](_0x107d1a));sessionsConnectResponse=MessagesCompressor['decode'](_0x4856ca,SessionsConnectResponse);}catch(_0x1e161e){sessionsConnectResponse=new SessionsConnectResponse(this['_id'],[]);}this['_connectToChannel'](this['_wsGateway'],sessionsConnectResponse['channel'],this['_sessionType']);const _0x12bbcd=await async function(wsGateway,_0x4929fc){const _0x47f263=_0x4929fc['map'](socket=>socket['userId']),_0x29fd4c=_0x47f263['length']?await User['getMany'](wsGateway,_0x47f263):[];return _0x4929fc['map'](socket=>{const item={'id':socket['id'],'role':socket['role'],'permissions':socket['permissions']};return item['user']=socket['userId']&&_0x29fd4c['find'](_0x534963=>_0x534963['id']===socket['userId'])||new User(),item;});}(this['_wsGateway'],sessionsConnectResponse['sockets']);for(const _0x55675a of _0x12bbcd)super['add'](_0x55675a);this['_connected']=!0x0,this['fire']('connected'),this['listenTo'](this['_wsGateway'],'change:state',(_0x16e986,_0x423cd0,_0x4e837d)=>this['_onWsGatewayStateChange'](_0x4e837d),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),await this['_runQueue']();}['disconnect'](_0x3760f0=!0x0){if(this['_connected']){for(this['_connected']=!0x1,this['_eventsQueue']=[];this['length'];)super['remove'](0x0);this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_wsGateway']&&_0x3760f0&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['fire']('disconnected'),_0x3760f0&&this['stopListening']();}}['add'](_0x4f5b88,_0x47eff9){throw new TypeError('The\x20collection\x20is\x20read-only.');}['remove'](_0x365824){throw new TypeError('The\x20collection\x20is\x20read-only.');}['_connectToChannel'](wsGateway,_0x343419,_0x3753c8){this['_channel']=wsGateway['_getChannel'](_0x3753c8,_0x343419),this['_channel']&&(this['_addHandler'](this['_channel'],SocketConnectMessage['TYPE'],async data=>{const socketConnectMessage=MessagesCompressor['decode'](data,SocketConnectMessage);if(-0x1===this['getIndex'](socketConnectMessage['id'])){const socket={'id':socketConnectMessage['id'],'role':socketConnectMessage['role'],'permissions':socketConnectMessage['permissions']};socketConnectMessage['userId']&&(socket['user']=await User['get'](wsGateway,socketConnectMessage['userId'])),super['add'](socket);}}),this['_addHandler'](this['_channel'],SocketDisconnectMessage['TYPE'],data=>{const socketDisconnectMessage=MessagesCompressor['decode'](data,SocketDisconnectMessage);-0x1!==this['getIndex'](socketDisconnectMessage['id'])&&super['remove'](socketDisconnectMessage['id']);}));}async['_onWsGatewayStateChange'](state){state===WebSocketGateway['STATE_DISCONNECTED']&&this['disconnect'](!0x1),state===WebSocketGateway['STATE_CONNECTED']&&await this['connect'](this['_wsGateway']);}async['_runQueue'](){if(this['_isRunning']||!this['_connected'])return;let event;for(this['_isRunning']=!0x0;event=this['_eventsQueue']['shift']();){const _0x5b2b70=this['_handlers']['get'](event['eventName']);_0x5b2b70&&await _0x5b2b70(event['data']);}this['_isRunning']=!0x1;}['_addHandler'](_0x39e6df,eventType,_0x3fe42f){const eventName=_0x39e6df['getEventName'](eventType,!0x0);this['listenTo'](_0x39e6df,eventName,async(event,data)=>{const _0x2e5719=event['name'];this['_eventsQueue']['push']({'eventName':_0x2e5719,'data':data}),await this['_runQueue']();}),this['_handlers']['set'](eventName,_0x3fe42f);}}class Sessions{static async['getConnectedSessions'](wsGateway,_0xf3011a,_0x147c8e){const sessionCollection=new SessionCollection(_0xf3011a,_0x147c8e);return await sessionCollection['connect'](wsGateway),sessionCollection;}}class CollaborativeEditingConnectMessage extends Message{['id'];['buffers'];['types'];['bundleVersion'];['lastOperationId'];static ['TYPE']='11';static ['READABLE_TYPE_NAME']='connectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'lastOperationId':{'type':'string','id':0x5}}};constructor(_0x12fa3f,_0x2e8694,types,_0x37016f,lastOperationId=''){super(),this['id']=_0x12fa3f,this['buffers']=_0x2e8694,this['types']=types,this['bundleVersion']=_0x37016f,this['lastOperationId']=lastOperationId;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](data){return new CollaborativeEditingConnectMessage(data['id'],data['buffers'],data['types'],data['bundleVersion'],data['lastOperationId']);}}class OperationMetadataHelpers{static['prepareMetadataForOperations'](types,metadata){if(!types?.['length']||!metadata?.['length'])return[];const result=[];let _0x5683db=0x0;for(const type of types)if(0x0!==type){if(!metadata[_0x5683db])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');result['push'](metadata[_0x5683db]),_0x5683db++;}else result['push'](result[result['length']-0x1]);return result;}static['removeUnnecessaryMetadata'](types,metadata){if(!types?.['length']||!metadata?.['length'])return[];const result=[];for(let _0x41200c=0x0;_0x41200c<types['length'];_0x41200c++)if(0x0!==types[_0x41200c]){if(!metadata[_0x41200c])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');result['push'](metadata[_0x41200c]);}return result;}}class OperationMetadataDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='OperationMetadataDescriptor';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
|
|
64
|
+
((()=>({'fields':{'userId':{'type':'string','id':0x1},'type':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}}))());static['toJSON']({createdAt:createdAt,...metadata}){const parsedMetadata={...metadata};return createdAt?.['toISOString']&&(parsedMetadata['createdAt']=createdAt['toISOString']()),parsedMetadata;}static['fromJSON']({createdAt:createdAt,...metadata}){const parsedMetadata={...metadata};return createdAt&&(parsedMetadata['createdAt']=new Date(createdAt)),parsedMetadata;}}class CollaborativeEditingUpdateMessage extends Message{['id'];['buffers'];['types'];['baseVersion'];['metadata'];['lastOperationId'];static ['TYPE']='13';static ['READABLE_TYPE_NAME']='updateDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingUpdateMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'baseVersion':{'type':'uint32','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x6},'lastOperationId':{'type':'string','id':0x7}}};constructor(_0x48d170,_0x4b8c4d,types,_0x11ecdf,metadata=[],lastOperationId=''){super(),this['id']=_0x48d170,this['buffers']=_0x4b8c4d,this['types']=types,this['baseVersion']=_0x11ecdf,this['metadata']=metadata,this['lastOperationId']=lastOperationId;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'lastOperationId':this['lastOperationId']};}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'metadata':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](data){return new CollaborativeEditingUpdateMessage(data['id'],data['buffers'],data['types'],data['baseVersion'],OperationMetadataHelpers['prepareMetadataForOperations'](data['types'],data['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),data['lastOperationId']);}}class CollaborativeEditingReconnectMessage extends Message{['id'];['lastKnowVersion'];['bundleVersion'];static ['TYPE']='12';static ['READABLE_TYPE_NAME']='reconnectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingReconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'lastKnowVersion':{'type':'uint32','id':0x3}}};constructor(_0x6b6ea6,lastKnowVersion,_0x174027){super(),this['id']=_0x6b6ea6,this['lastKnowVersion']=lastKnowVersion,this['bundleVersion']=_0x174027;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](data){return new CollaborativeEditingReconnectMessage(data['id'],data['lastKnowVersion'],data['bundleVersion']);}}class CollaborativeEditingResponse extends Message{['version'];['buffers'];['types'];['metadata'];['lastOperationId'];['lastOperationAcceptedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingResponse';static ['DESCRIPTOR']={'fields':{'version':{'type':'uint32','id':0x1},'buffers':{'rule':'repeated','type':'bytes','id':0x2},'types':{'rule':'repeated','type':'uint32','id':0x3},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x5},'lastOperationId':{'type':'string','id':0x6},'lastOperationAcceptedAt':{'type':'string','id':0x7}}};constructor(_0x2fdbfb,_0x4b99f2=[],types=[],metadata=[],lastOperationId='',lastOperationAcceptedAt=null){super(),this['version']=_0x2fdbfb,this['buffers']=_0x4b99f2,this['types']=types,this['metadata']=metadata,this['lastOperationId']=lastOperationId,this['lastOperationAcceptedAt']=lastOperationAcceptedAt;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']};}get['wereChangesApplied'](){return!this['types']?.['length'];}['toJSON'](){return{'version':this['version'],'buffers':this['buffers'],'types':this['types'],'metadata':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](data){return new CollaborativeEditingResponse(data['version'],data['buffers'],data['types'],OperationMetadataHelpers['prepareMetadataForOperations'](data['types'],data['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),data['lastOperationId'],data['lastOperationAcceptedAt']?new Date(data['lastOperationAcceptedAt']):null);}static['create'](data){return new CollaborativeEditingResponse(data['version'],data['buffers'],data['types'],data['metadata'],data['lastOperationId'],data['lastOperationAcceptedAt']?new Date(data['lastOperationAcceptedAt']):null);}}class CollaborativeEditingConnectResponse extends Message{['channel'];['version'];['buffers'];['types'];['offset'];['metadata'];['initData'];['sessionId'];['lastOperationId'];['sessionCreatedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectResponse';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
|
|
65
|
+
((()=>({'fields':{'channel':{'type':'string','id':0x1},'offset':{'type':'uint32','id':0x2},'version':{'type':'uint32','id':0x3},'buffers':{'rule':'repeated','type':'bytes','id':0x4},'types':{'rule':'repeated','type':'uint32','id':0x5},'metadata':{'rule':'repeated','type':OperationMetadataDescriptor['DESCRIPTOR_NAME'],'id':0x7},'initData':{'type':'string','id':0x8},'isInitialized':{'type':'bool','id':0x9},'sessionId':{'type':'string','id':0xa},'lastOperationId':{'type':'string','id':0xb},'sessionCreatedAt':{'type':'string','id':0xc}}}))());constructor(_0x2d5536,_0x3246dc,_0x29be65=[],types=[],offset=0x0,metadata=[],initData=null,_0x56d0ad='',lastOperationId='',sessionCreatedAt=null){super(),this['channel']=_0x2d5536,this['version']=_0x3246dc,this['buffers']=_0x29be65,this['types']=types,this['offset']=offset,this['metadata']=metadata,this['initData']=initData,this['sessionId']=_0x56d0ad,this['lastOperationId']=lastOperationId,this['sessionCreatedAt']=sessionCreatedAt;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']};}get['wereChangesApplied'](){return!this['types']?.['length']&&null===this['initData'];}['toJSON'](){return{'channel':this['channel'],'version':this['version'],'sessionId':this['sessionId'],'buffers':this['buffers'],'types':this['types'],'offset':this['offset'],'metadata':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x4bf71d){return new CollaborativeEditingConnectResponse(_0x4bf71d['channel'],_0x4bf71d['version'],_0x4bf71d['buffers'],_0x4bf71d['types'],_0x4bf71d['offset'],_0x4bf71d['metadata'],_0x4bf71d['initData'],_0x4bf71d['sessionId'],_0x4bf71d['lastOperationId'],_0x4bf71d['sessionCreatedAt']);}static['fromJSON'](data){let initData=null;return!0x0===data['isInitialized']?initData=data['initData']??'':'boolean'!=typeof data['isInitialized']&&data['initData']&&(initData=data['initData']),CollaborativeEditingConnectResponse['create']({'channel':data['channel'],'version':data['version'],'buffers':data['buffers'],'types':data['types'],'offset':data['offset'],'metadata':OperationMetadataHelpers['prepareMetadataForOperations'](data['types'],data['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),'initData':initData,'sessionId':data['sessionId'],'lastOperationId':data['lastOperationId'],'sessionCreatedAt':data['sessionCreatedAt']?new Date(data['sessionCreatedAt']):null});}}class GetDocumentDetailsResponse extends Message{['lastDocumentSession'];['currentDocumentSession'];static ['DESCRIPTOR_NAME']='GetDocumentDetailsResponse';static ['DESCRIPTOR']={'fields':{'lastDocumentSessionId':{'type':'string','id':0x1},'lastDocumentSessionOperationId':{'type':'string','id':0x2},'currentDocumentSessionId':{'type':'string','id':0x3},'currentDocumentSessionVersion':{'type':'uint32','id':0x4},'currentDocumentSessionOperationId':{'type':'string','id':0x5}}};constructor(lastDocumentSession,currentDocumentSession){super(),this['lastDocumentSession']=lastDocumentSession,this['currentDocumentSession']=currentDocumentSession;}get['data'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}['toJSON'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}static['fromJSON'](data){const lastDocumentSession=data['lastDocumentSessionId']?{'id':data['lastDocumentSessionId'],'lastOperationId':data['lastDocumentSessionOperationId']}:void 0x0,currentDocumentSession=data['currentDocumentSessionId']?{'lastOperationId':data['currentDocumentSessionOperationId'],'version':data['currentDocumentSessionVersion'],'id':data['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(lastDocumentSession,currentDocumentSession);}}class GetDocumentDetailsMessage extends Message{['documentId'];static ['TYPE']='14';static ['READABLE_TYPE_NAME']='getDocumentDetails';static ['DESCRIPTOR_NAME']='GetDocumentDetailsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'environmentId':{'type':'string','id':0x2}}};constructor(documentId){super(),this['documentId']=documentId;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](data){return new GetDocumentDetailsMessage(data['documentId']);}}class CollaborativeEditingService extends/* #__PURE__ -- @preserve */
|
|
66
|
+
EmitterMixin(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x1cb42b,_0x2ba958){if(super(),!_0x1cb42b)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x2ba958??v4(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x1cb42b;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](wsGateway,data={'buffers':[],'types':[]},lastOperationId){const _0xb616eb=new CollaborativeEditingConnectMessage(this['getId'](),data['buffers'],data['types'],this['_bundleVersion'],lastOperationId);return this['_connect'](wsGateway,_0xb616eb);}['reconnect'](wsGateway,lastKnowVersion){if(this['isConnected']())throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',wsGateway);return this['_connect'](wsGateway,new CollaborativeEditingReconnectMessage(this['getId'](),lastKnowVersion,this['_bundleVersion']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['getDocumentDetails'](){const _0x5e131e=new GetDocumentDetailsMessage(this['getId']());if(!this['_wsGateway'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x398083=await this['_wsGateway']['_sendRequest'](0x1,GetDocumentDetailsMessage['TYPE'],MessagesCompressor['encode'](_0x5e131e));return MessagesCompressor['decode'](_0x398083,GetDocumentDetailsResponse);}async['sendOperations'](data,_0x519e49,lastOperationId){if(!data?.['types']?.['length'])throw new CKEditorCloudServicesError('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x757f2d='number'==typeof _0x519e49?_0x519e49:parseInt(_0x519e49);if(!Number['isInteger'](_0x757f2d)||_0x757f2d<0x0)throw new CKEditorCloudServicesError('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x31d42b=new CollaborativeEditingUpdateMessage(this['getId'](),data['buffers'],data['types'],_0x757f2d,[],lastOperationId);if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x483ce5=await this['_wsGateway']['_sendRequest'](0x1,CollaborativeEditingUpdateMessage['TYPE'],MessagesCompressor['encode'](_0x31d42b));return MessagesCompressor['decode'](_0x483ce5,CollaborativeEditingResponse);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await Sessions['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](wsGateway,_0x16c123){return Sessions['getConnectedSessions'](wsGateway,_0x16c123,0x1);}async['_connect'](wsGateway,_0x230665){if(this['isConnected']())return;if(wsGateway['state']!==WebSocketGateway['STATE_CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x4aa280=await wsGateway['_sendRequest'](0x1,_0x230665['constructor']['TYPE'],MessagesCompressor['encode'](_0x230665)),collaborativeEditingConnectResponse=MessagesCompressor['decode'](_0x4aa280,CollaborativeEditingConnectResponse);return this['listenTo'](wsGateway,'change:state',(_0x2c649a,_0x55e589,_0x57e3c6)=>this['_onWsGatewayStateChange'](_0x57e3c6),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,collaborativeEditingConnectResponse['channel']),this['_isConnected']=!0x0,this['fire']('connected'),collaborativeEditingConnectResponse;}['_connectToChannel'](wsGateway,_0x2b4bc2){this['_channel']=wsGateway['_getChannel'](0x1,_0x2b4bc2),this['listenTo'](this['_channel'],this['_channel']['getEventName'](CollaborativeEditingUpdateMessage['TYPE']),(event,data)=>{const updateMessage=MessagesCompressor['decode'](data,CollaborativeEditingUpdateMessage);this['fire']('operationsReceived',updateMessage['baseVersion'],updateMessage['data'],updateMessage['metadata']);});}['_onWsGatewayStateChange'](_0xda17a0){_0xda17a0===WebSocketGateway['STATE_DISCONNECTED']&&this['disconnect']();}}class CommentDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'commentThreadId':{'id':0x2,'type':'string'},'userId':{'id':0x3,'type':'string'},'content':{'id':0x4,'type':'string'},'documentId':{'id':0x5,'type':'string'},'createdAt':{'id':0x6,'type':'string'},'attributes':{'id':0x7,'type':'string'}}};static['toJSON'](comment){return{...comment,'createdAt':comment['createdAt']?.['toISOString'](),'attributes':comment['attributes']?JSON['stringify'](comment['attributes']):null};}static['fromJSON'](comment){return{...comment,'createdAt':new Date(comment['createdAt']),'attributes':comment['attributes']?JSON['parse'](comment['attributes']):null};}}class CommentsThreadDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentsThreadDescriptor';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4},'context':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'deletedAt':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8},'unlinkedAt':{'type':'string','id':0x9}}};static['toJSON'](thread){return{...thread,'createdAt':thread['createdAt']?.['toISOString'](),'deletedAt':thread['deletedAt']?.['toISOString'](),'resolvedAt':thread['resolvedAt']?.['toISOString'](),'attributes':thread['attributes']?JSON['stringify'](thread['attributes']):null,'context':thread['context']?JSON['stringify'](thread['context']):thread['context'],'comments':thread['comments']?.['map'](CommentDescriptor['toJSON']),'unlinkedAt':thread['unlinkedAt']?.['toISOString']()};}static['fromJSON'](thread){return{...thread,'createdAt':thread['createdAt']?new Date(thread['createdAt']):void 0x0,'deletedAt':thread['deletedAt']?new Date(thread['deletedAt']):void 0x0,'resolvedAt':thread['resolvedAt']?new Date(thread['resolvedAt']):void 0x0,'attributes':thread['attributes']?JSON['parse'](thread['attributes']):null,'context':thread['context']?JSON['parse'](thread['context']):void 0x0,'comments':thread['comments']?.['map'](CommentDescriptor['fromJSON']),'unlinkedAt':thread['unlinkedAt']?new Date(thread['unlinkedAt']):void 0x0};}}class AddCommentMessage extends Message{['documentId'];['commentThreadId'];['content'];['commentId'];['userId'];['attributes'];['commentThread'];['createdAt'];static ['TYPE']='91';static ['READABLE_TYPE_NAME']='addComment';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'content':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3},'commentId':{'type':'string','id':0x4},'createdAt':{'type':'string','id':0x5},'userId':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'commentThread':{'type':'CommentsThreadDescriptor','id':0x8}}};constructor(documentId,commentThreadId,content,commentId='',createdAt,_0x300a68='',attributes=null,commentThread){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['content']=content,this['commentId']=commentId,this['userId']=_0x300a68,this['attributes']=attributes,this['commentThread']=commentThread,this['createdAt']=createdAt?new Date(createdAt):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'content':this['content'],'documentId':this['documentId'],'commentId':this['commentId'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'userId':this['userId'],'attributes':JSON['stringify'](this['attributes']),'commentThread':this['commentThread']?CommentsThreadDescriptor['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](object){return new AddCommentMessage(object['documentId'],object['commentThreadId'],object['content'],object['commentId']?object['commentId']:void 0x0,object['createdAt']?new Date(object['createdAt']):void 0x0,object['userId']?object['userId']:void 0x0,object['attributes']?JSON['parse'](object['attributes']):{},object['commentThread']?CommentsThreadDescriptor['fromJSON'](object['commentThread']):void 0x0);}}class AddCommentResponse extends Message{['commentThreadId'];['commentId'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};constructor(commentThreadId,commentId,createdAt){super(),this['commentThreadId']=commentThreadId,this['commentId']=commentId,this['createdAt']=new Date(createdAt);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](data){return new AddCommentResponse(data['commentThreadId'],data['commentId'],data['createdAt']);}}class ConnectMessage extends Message{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new ConnectMessage(object['documentId']);}}class ConnectResponse extends Message{['channel'];['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2ConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'threads':{'type':'string','rule':'repeated','id':0x2},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x3}}};constructor(_0x19e661,_threads,_threadsV2){super(),this['channel']=_0x19e661,this['_threads']=_threads,this['_threadsV2']=_threadsV2,this['threads']=_threadsV2?.['length']?_threadsV2:_threads;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](thread=>JSON['stringify'](thread)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](object){return new ConnectResponse(object['channel'],object['threads']?.['map'](thread=>JSON['parse'](thread)),object['threadsV2']?.['map'](CommentsThreadDescriptor['fromJSON']));}}class RemoveCommentMessage extends Message{['documentId'];['commentThreadId'];['commentId'];static ['TYPE']='95';static ['READABLE_TYPE_NAME']='removeComment';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3}}};constructor(documentId,commentThreadId,commentId){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['commentId']=commentId;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](object){return new RemoveCommentMessage(object['documentId'],object['commentThreadId'],object['commentId']);}}class RemoveCommentThreadMessage extends Message{['documentId'];['commentThreadId'];static ['TYPE']='97';static ['READABLE_TYPE_NAME']='removeCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(documentId,commentThreadId){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](object){return new RemoveCommentThreadMessage(object['documentId'],object['commentThreadId']);}}class UpdateCommentMessage extends Message{['documentId'];['commentThreadId'];['commentId'];['content'];['attributes'];['isAttributesUpdated'];['commentThread'];static ['TYPE']='96';static ['READABLE_TYPE_NAME']='updateComment';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'content':{'type':'string','id':0x3},'documentId':{'type':'string','id':0x4},'attributes':{'type':'string','id':0x5},'isAttributesUpdated':{'type':'bool','id':0x6},'commentThread':{'type':'CommentsThreadDescriptor','id':0x7}}};constructor(documentId,commentThreadId,commentId,content,attributes=null,isAttributesUpdated=!0x1,commentThread){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['commentId']=commentId,this['content']=content,this['attributes']=attributes,this['isAttributesUpdated']=isAttributesUpdated,this['commentThread']=commentThread;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'content':this['content'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'isAttributesUpdated':this['isAttributesUpdated'],'commentThread':this['commentThread']?CommentsThreadDescriptor['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](object){return new UpdateCommentMessage(object['documentId'],object['commentThreadId'],object['commentId'],object['content'],object['attributes']?JSON['parse'](object['attributes']):null,object['isAttributesUpdated'],object['commentThread']?CommentsThreadDescriptor['fromJSON'](object['commentThread']):void 0x0);}}class GetCommentThreadMessage extends Message{['commentThreadId'];['documentId'];static ['TYPE']='93';static ['READABLE_TYPE_NAME']='getComment';static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(commentThreadId,documentId){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](object){return new GetCommentThreadMessage(object['commentThreadId'],object['documentId']);}}class GetCommentThreadResponse extends Message{['commentThreadId'];['_comments'];['_commentsV2'];['resolvedBy'];['comments'];['createdAt'];['deletedAt'];['resolvedAt'];['attributes'];['context'];['unlinkedAt'];static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'string','rule':'repeated','id':0x2},'commentsV2':{'type':'CommentDescriptor','rule':'repeated','id':0x3},'resolvedAt':{'type':'string','id':0x4},'resolvedBy':{'type':'string','id':0x5},'context':{'type':'string','id':0x6},'createdAt':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'attributes':{'type':'string','id':0x9},'unlinkedAt':{'type':'string','id':0xa}}};constructor(commentThreadId,_comments,_commentsV2,attributes,_0x641c4b,context,createdAt,deletedAt,resolvedAt,unlinkedAt){super(),this['commentThreadId']=commentThreadId,this['_comments']=_comments,this['_commentsV2']=_commentsV2,this['resolvedBy']=_0x641c4b,this['comments']=_commentsV2?.['length']?_commentsV2:_comments,this['createdAt']=createdAt?new Date(createdAt):void 0x0,this['deletedAt']='string'==typeof deletedAt?new Date(deletedAt):deletedAt,this['resolvedAt']='string'==typeof resolvedAt?new Date(resolvedAt):resolvedAt,this['unlinkedAt']='string'==typeof unlinkedAt?new Date(unlinkedAt):unlinkedAt,this['attributes']='string'==typeof attributes?JSON['parse'](attributes):attributes,this['context']='string'==typeof context?JSON['parse'](context):context;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'comments':this['_comments']?.['map'](comment=>JSON['stringify'](comment)),'commentsV2':this['_commentsV2']?.['map'](CommentDescriptor['toJSON']),'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'resolvedBy':this['resolvedBy'],'createdAt':this['createdAt']?.['toISOString'](),'deletedAt':this['deletedAt']?.['toISOString'](),'resolvedAt':this['resolvedAt']?.['toISOString'](),'unlinkedAt':this['unlinkedAt']?.['toISOString']()};}static['fromJSON'](object){return new GetCommentThreadResponse(object['commentThreadId'],object['comments']?.['map'](comment=>function(commentString){const comment=JSON['parse'](commentString);return{...comment,'createdAt':new Date(comment['createdAt'])};}(comment)),object['commentsV2']?.['map'](CommentDescriptor['fromJSON']),object['attributes']?JSON['parse'](object['attributes']):object['attributes'],object['resolvedBy'],object['context']?JSON['parse'](object['context']):object['context'],object['createdAt'],object['deletedAt'],object['resolvedAt'],object['unlinkedAt']);}}class GetDocumentThreadsMessage extends Message{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new GetDocumentThreadsMessage(object['documentId']);}}class GetDocumentThreadsResponse extends Message{['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsResponse';static ['DESCRIPTOR']={'fields':{'threads':{'type':'string','rule':'repeated','id':0x1},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x2}}};constructor(_threads,_threadsV2){super(),this['_threads']=_threads,this['_threadsV2']=_threadsV2,this['threads']=_threadsV2?.['length']?_threadsV2:_threads;}['toJSON'](){return{'threads':this['_threads']?.['map'](thread=>JSON['stringify'](thread)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](object){return new GetDocumentThreadsResponse(object['threads']?.['map'](thread=>function(threadString){const threadRaw=JSON['parse'](threadString),thread={...threadRaw};return threadRaw['comments']&&(thread['comments']=threadRaw['comments']?.['map'](comment=>({...comment,'createdAt':new Date(comment['createdAt'])}))),thread;}(thread)),object['threadsV2']?.['map'](CommentsThreadDescriptor['fromJSON']));}}class CommentThreadAddedCommentDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](comment){return{'commentId':comment['commentId'],'createdAt':comment['createdAt']?.['toISOString']()};}static['fromJSON'](comment){return{'commentId':comment['commentId'],'createdAt':new Date(comment['createdAt'])};}}class AddCommentThreadResponse extends Message{['commentThreadId'];['comments'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'createdAt':{'type':'string','id':0x2},'comments':{'type':'CommentThreadAddedCommentDescriptor','rule':'repeated','id':0x3}}};constructor(commentThreadId,createdAt,comments=[]){super(),this['commentThreadId']=commentThreadId,this['comments']=comments,this['createdAt']=new Date(createdAt);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](comment=>CommentThreadAddedCommentDescriptor['toJSON'](comment))};}static['fromJSON'](data){return new AddCommentThreadResponse(data['commentThreadId'],data['createdAt'],data['comments']['map'](comment=>CommentThreadAddedCommentDescriptor['fromJSON'](comment)));}}class AddCommentThreadMessage extends Message{['documentId'];['commentThreadId'];['comments'];['context'];['resolvedBy'];['attributes'];['createdAt'];['resolvedAt'];['deletedAt'];static ['TYPE']='140';static ['READABLE_TYPE_NAME']='addCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'commentThreadId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'resolvedAt':{'type':'string','id':0x5},'resolvedBy':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x9}}};constructor(documentId,commentThreadId,comments=[],context,_0x1c5448=null,createdAt=null,resolvedAt=null,deletedAt=null,attributes=null){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['comments']=comments,this['context']=context,this['resolvedBy']=_0x1c5448,this['attributes']=attributes,this['createdAt']=createdAt?new Date(createdAt):'',this['resolvedAt']=resolvedAt?new Date(resolvedAt):'',this['deletedAt']=deletedAt?new Date(deletedAt):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']instanceof Date?this['resolvedAt']['toISOString']():this['resolvedAt'],'deletedAt':this['deletedAt']instanceof Date?this['deletedAt']['toISOString']():this['deletedAt'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'comments':this['comments']?.['map'](_0xa97f66=>CommentDescriptor['toJSON'](_0xa97f66))};}static['fromJSON'](object){return new AddCommentThreadMessage(object['documentId'],object['commentThreadId'],object['comments']?.['map'](_0x5ca62d=>CommentDescriptor['fromJSON']({..._0x5ca62d,'documentId':object['documentId'],'commentThreadId':object['commentThreadId']})),object['context']?JSON['parse'](object['context']):object['context'],object['resolvedBy'],object['createdAt']?new Date(object['createdAt']):void 0x0,object['resolvedAt']?new Date(object['resolvedAt']):void 0x0,object['deletedAt']?new Date(object['deletedAt']):void 0x0,object['attributes']?JSON['parse'](object['attributes']):object['attributes']);}}class ResolveCommentThreadMessage extends Message{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['TYPE']='142';static ['READABLE_TYPE_NAME']='resolveCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedBy':{'type':'string','id':0x3},'resolvedAt':{'type':'string','id':0x4}}};constructor(commentThreadId,documentId,_0x496a07,resolvedAt){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['resolvedBy']=_0x496a07,this['resolvedAt']=resolvedAt?new Date(resolvedAt):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](object){return new ResolveCommentThreadMessage(object['commentThreadId'],object['documentId'],object['resolvedBy'],object['resolvedAt']);}}class ReopenCommentThreadMessage extends Message{['commentThreadId'];['documentId'];static ['TYPE']='141';static ['READABLE_TYPE_NAME']='reopenCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ReopenCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(commentThreadId,documentId){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](object){return new ReopenCommentThreadMessage(object['commentThreadId'],object['documentId']);}}class UpdateCommentThreadMessage extends Message{['commentThreadId'];['documentId'];['context'];['attributes'];['unlinkedAt'];static ['TYPE']='143';static ['READABLE_TYPE_NAME']='updateCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'attributes':{'type':'string','id':0x4},'unlinkedAt':{'type':'string','id':0x5}}};constructor(commentThreadId,documentId,context,attributes=null,unlinkedAt=null){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['context']=context,this['attributes']=attributes,this['unlinkedAt']=unlinkedAt?new Date(unlinkedAt):'';}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'unlinkedAt':this['unlinkedAt']instanceof Date?this['unlinkedAt']['toISOString']():this['unlinkedAt']};}static['fromJSON'](object){return new UpdateCommentThreadMessage(object['commentThreadId'],object['documentId'],object['context']?JSON['parse'](object['context']):object['context'],object['attributes']?JSON['parse'](object['attributes']):null,object['unlinkedAt']?new Date(object['unlinkedAt']):null);}}class ResolveCommentThreadResponse extends Message{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4}}};constructor(commentThreadId,documentId,_0x53d0f6,resolvedAt){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['resolvedBy']=_0x53d0f6,this['resolvedAt']=new Date(resolvedAt);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](data){return new ResolveCommentThreadResponse(data['commentThreadId'],data['documentId'],data['resolvedBy'],data['resolvedAt']);}}class CommentsService extends/* #__PURE__ -- @preserve */
|
|
67
|
+
EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_documentId){super(),this['_documentId']=_documentId;}get['isConnected'](){return this['_isConnected'];}async['connect'](wsGateway){if(this['_isConnected'])return;if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);const connectMessage=new ConnectMessage(this['_documentId']);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0xb07403=await wsGateway['_sendRequest'](0x9,ConnectMessage['TYPE'],MessagesCompressor['encode'](connectMessage)),{channel:_0x2c322b,threads:threads}=MessagesCompressor['decode'](_0xb07403,ConnectResponse);return this['listenTo'](wsGateway,'change:state',(_0x60b6f1,_0x3e56e4,_0x342079)=>this['_onWsGatewayStateChange'](_0x342079),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,_0x2c322b),this['_isConnected']=!0x0,this['fire']('connected'),threads;}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['addComment'](commentThreadId,commentId,content,attributes){const _0x5995c0=new AddCommentMessage(this['_documentId'],commentThreadId,content,commentId,void 0x0,void 0x0,attributes),_0x375e54=await this['_sendRequest'](AddCommentMessage['TYPE'],_0x5995c0);return MessagesCompressor['decode'](_0x375e54,AddCommentResponse);}async['updateComment'](commentThreadId,commentId,content,attributes){const isAttributesUpdated=void 0x0!==attributes,_0x46a1af=new UpdateCommentMessage(this['_documentId'],commentThreadId,commentId,content,attributes,isAttributesUpdated);await this['_sendRequest'](UpdateCommentMessage['TYPE'],_0x46a1af);}async['removeComment'](commentThreadId,commentId){const _0x3842f1=new RemoveCommentMessage(this['_documentId'],commentThreadId,commentId);await this['_sendRequest'](RemoveCommentMessage['TYPE'],_0x3842f1);}async['removeCommentThread'](commentThreadId){const _0x159277=new RemoveCommentThreadMessage(this['_documentId'],commentThreadId);await this['_sendRequest'](RemoveCommentThreadMessage['TYPE'],_0x159277);}async['addCommentThread'](addCommentThreadParams){const _0x83b4ef=new AddCommentThreadMessage(this['_documentId'],addCommentThreadParams['commentThreadId'],addCommentThreadParams['comments']?.['map'](comment=>({...comment,'documentId':this['_documentId'],'commentThreadId':addCommentThreadParams['commentThreadId']})),addCommentThreadParams['context'],addCommentThreadParams['resolvedBy'],addCommentThreadParams['createdAt'],addCommentThreadParams['resolvedAt'],addCommentThreadParams['deletedAt'],addCommentThreadParams['attributes']),_0x27be27=await this['_sendRequest'](AddCommentThreadMessage['TYPE'],_0x83b4ef);return MessagesCompressor['decode'](_0x27be27,AddCommentThreadResponse);}async['resolveCommentThread'](commentThreadId){const _0x752505=new ResolveCommentThreadMessage(commentThreadId,this['_documentId']),_0x3eab4c=await this['_sendRequest'](ResolveCommentThreadMessage['TYPE'],_0x752505);return MessagesCompressor['decode'](_0x3eab4c,ResolveCommentThreadResponse);}async['reopenCommentThread'](commentThreadId){const _0x7e787d=new ReopenCommentThreadMessage(commentThreadId,this['_documentId']);await this['_sendRequest'](ReopenCommentThreadMessage['TYPE'],_0x7e787d);}async['updateCommentThread'](_0x259008){const _0x105744=new UpdateCommentThreadMessage(_0x259008['commentThreadId'],this['_documentId'],_0x259008['context'],_0x259008['attributes'],_0x259008['unlinkedAt']);await this['_sendRequest'](UpdateCommentThreadMessage['TYPE'],_0x105744);}async['getCommentThread'](commentThreadId,attempt=0x1){const _0x4186de=new GetCommentThreadMessage(commentThreadId,this['_documentId']);try{const _0x212418=await this['_sendRequest'](GetCommentThreadMessage['TYPE'],_0x4186de),commentThreadResponse=MessagesCompressor['decode'](_0x212418,GetCommentThreadResponse);return{'commentThreadId':commentThreadResponse['commentThreadId'],'comments':commentThreadResponse['comments'],'attributes':commentThreadResponse['attributes'],'context':commentThreadResponse['context'],'resolvedAt':commentThreadResponse['resolvedAt'],'resolvedBy':commentThreadResponse['resolvedBy'],'deletedAt':commentThreadResponse['deletedAt'],'unlinkedAt':commentThreadResponse['unlinkedAt']};}catch(_0x50e4bc){if('CKEditorCloudServicesServerError'===_0x50e4bc['name']&&'404'===_0x50e4bc['code']&&attempt<0x5)return await(time=0x64*attempt,new Promise(_0x1cbe33=>{setTimeout(_0x1cbe33,time);})),this['getCommentThread'](commentThreadId,attempt+0x1);if('CKEditorCloudServicesServerError'===_0x50e4bc['name'])throw _0x50e4bc;throw CKEditorCloudServicesServerError['fromPublicError'](_0x50e4bc);}var time;}async['getDocumentThreads'](){const _0x5c5e59=new GetDocumentThreadsMessage(this['_documentId']),_0x2d6515=await this['_sendRequest'](GetDocumentThreadsMessage['TYPE'],_0x5c5e59),{threads:threads}=MessagesCompressor['decode'](_0x2d6515,GetDocumentThreadsResponse);return{'threads':threads};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await Sessions['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](wsGateway,_0x4bc6f1){this['_channel']=wsGateway['_getChannel'](CommentsService['_SERVICE'],_0x4bc6f1),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentMessage['TYPE']),(event,data)=>{const addCommentMessage=MessagesCompressor['decode'](data,AddCommentMessage);this['fire']('commentAdded',addCommentMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentMessage['TYPE']),(event,data)=>{const removeCommentMessage=MessagesCompressor['decode'](data,RemoveCommentMessage);this['fire']('commentRemoved',removeCommentMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentMessage['TYPE']),(event,data)=>{const updateCommentMessage=MessagesCompressor['decode'](data,UpdateCommentMessage);this['fire']('commentUpdated',updateCommentMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentThreadMessage['TYPE']),(event,data)=>{const removeCommentThreadMessage=MessagesCompressor['decode'](data,RemoveCommentThreadMessage);this['fire']('commentThreadRemoved',removeCommentThreadMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentThreadMessage['TYPE']),(event,data)=>{const addCommentThreadMessage=MessagesCompressor['decode'](data,AddCommentThreadMessage);this['fire']('commentThreadAdded',addCommentThreadMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentThreadMessage['TYPE']),(event,data)=>{const updateCommentThreadMessage=MessagesCompressor['decode'](data,UpdateCommentThreadMessage);this['fire']('commentThreadUpdated',updateCommentThreadMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ResolveCommentThreadMessage['TYPE']),(event,data)=>{const resolveCommentThreadMessage=MessagesCompressor['decode'](data,ResolveCommentThreadMessage);this['fire']('commentThreadResolved',resolveCommentThreadMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ReopenCommentThreadMessage['TYPE']),(event,data)=>{const reopenCommentThreadMessage=MessagesCompressor['decode'](data,ReopenCommentThreadMessage);this['fire']('commentThreadReopened',reopenCommentThreadMessage);}));}['_onWsGatewayStateChange'](_0x17ac75){_0x17ac75===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](method,_0x34ad62){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,method,MessagesCompressor['encode'](_0x34ad62));}}export{CollaborativeEditingService,CommentsService,EditorService,RevisionHistoryService,TrackChangesService,User,WEB_SOCKET_GATEWAY_STATES,WebSocketGateway};
|