@ckeditor/ckeditor-cloud-services-collaboration 54.2.2 → 54.2.6

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/services.js CHANGED
@@ -20,48 +20,48 @@
20
20
  *
21
21
  *
22
22
  */
23
- import $protobuf from'protobufjs/minimal.js';import{io}from'socket.io-client';import _0x4082fa from'url-parse';import{EmitterMixin,ObservableMixin,priorities,global,Collection}from'@ckeditor/ckeditor5-utils';import{Decoder as _0xd2d2ee,Encoder as _0x3bc9b1,PacketType}from'socket.io-parser';import{v4}from'uuid';class Descriptor{static ['DESCRIPTOR_NAME'];static ['DESCRIPTOR'];constructor(..._0x185942){}}class Message extends Descriptor{static ['TYPE']='1000';static ['READABLE_TYPE_NAME'];constructor(..._0x10a8c6){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(_0x29065c){super(),this['id']=_0x29065c;}['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'](_0x127753=>({'key':_0x127753,'value':JSON['stringify'](this['attributes'][_0x127753])}))};}static['fromJSON'](data){const attributes=data['attributes']['reduce']((result,_0x14e4b2)=>(result[_0x14e4b2['key']]=_0x14e4b2['value']?JSON['parse'](_0x14e4b2['value']):null,result),{});return new GetUserResponse(attributes);}}const messages=/* #__PURE__ -- @preserve */
24
- ((()=>{var _0x28908e=$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 _0xae79f0=Object['keys'](properties),_0x2b0639=0x0;_0x2b0639<_0xae79f0['length'];++_0x2b0639)null!=properties[_0xae79f0[_0x2b0639]]&&'__proto__'!==_0xae79f0[_0x2b0639]&&(this[_0xae79f0[_0x2b0639]]=properties[_0xae79f0[_0x2b0639]]);}}return StringStringPacketDataMessage['prototype']['data']='',StringStringPacketDataMessage['prototype']['data1']='',StringStringPacketDataMessage['create']=function(properties){return new StringStringPacketDataMessage(properties);},StringStringPacketDataMessage['encode']=function(_0x193b76,writer){return writer||(writer=$Writer['create']()),null!=_0x193b76['data']&&Object['hasOwnProperty']['call'](_0x193b76,'data')&&writer['uint32'](0xa)['string'](_0x193b76['data']),null!=_0x193b76['data1']&&Object['hasOwnProperty']['call'](_0x193b76,'data1')&&writer['uint32'](0x12)['string'](_0x193b76['data1']),writer;},StringStringPacketDataMessage['encodeDelimited']=function(_0x229cda,writer){return this['encode'](_0x229cda,writer)['ldelim']();},StringStringPacketDataMessage['decode']=function(_0x1b04b4,length,_0x56c995,_0x4184df){if(_0x1b04b4 instanceof _0x28908e||(_0x1b04b4=_0x28908e['create'](_0x1b04b4)),void 0x0===_0x4184df&&(_0x4184df=0x0),_0x4184df>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2bb3f7=void 0x0===length?_0x1b04b4['len']:_0x1b04b4['pos']+length,_0x296ced=new $root['StringStringPacketDataMessage']();_0x1b04b4['pos']<_0x2bb3f7;){var tag=_0x1b04b4['uint32']();if(tag===_0x56c995)break;switch(tag>>>0x3){case 0x1:_0x296ced['data']=_0x1b04b4['string']();break;case 0x2:_0x296ced['data1']=_0x1b04b4['string']();break;default:_0x1b04b4['skipType'](0x7&tag,_0x4184df);}}return _0x296ced;},StringStringPacketDataMessage['decodeDelimited']=function(_0x59f3a6){return _0x59f3a6 instanceof _0x28908e||(_0x59f3a6=new _0x28908e(_0x59f3a6)),this['decode'](_0x59f3a6,_0x59f3a6['uint32']());},StringStringPacketDataMessage['verify']=function(_0x1fe74f,_0x19cf3e){return'object'!=typeof _0x1fe74f||null===_0x1fe74f?'object\x20expected':(void 0x0===_0x19cf3e&&(_0x19cf3e=0x0),_0x19cf3e>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x1fe74f['data']&&_0x1fe74f['hasOwnProperty']('data')&&!$util['isString'](_0x1fe74f['data'])?'data:\x20string\x20expected':null!=_0x1fe74f['data1']&&_0x1fe74f['hasOwnProperty']('data1')&&!$util['isString'](_0x1fe74f['data1'])?'data1:\x20string\x20expected':null);},StringStringPacketDataMessage['fromObject']=function(object,_0x193b14){if(object instanceof $root['StringStringPacketDataMessage'])return object;if(void 0x0===_0x193b14&&(_0x193b14=0x0),_0x193b14>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x49f26b=new $root['StringStringPacketDataMessage']();return null!=object['data']&&(_0x49f26b['data']=String(object['data'])),null!=object['data1']&&(_0x49f26b['data1']=String(object['data1'])),_0x49f26b;},StringStringPacketDataMessage['toObject']=function(_0x142f3f,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x142f3f['data']&&_0x142f3f['hasOwnProperty']('data')&&(object['data']=_0x142f3f['data']),null!=_0x142f3f['data1']&&_0x142f3f['hasOwnProperty']('data1')&&(object['data1']=_0x142f3f['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 _0x170b90=Object['keys'](properties),_0x55d763=0x0;_0x55d763<_0x170b90['length'];++_0x55d763)null!=properties[_0x170b90[_0x55d763]]&&'__proto__'!==_0x170b90[_0x55d763]&&(this[_0x170b90[_0x55d763]]=properties[_0x170b90[_0x55d763]]);}}return StringObjectPacketDataMessage['prototype']['data']='',StringObjectPacketDataMessage['prototype']['data1']='',StringObjectPacketDataMessage['create']=function(properties){return new StringObjectPacketDataMessage(properties);},StringObjectPacketDataMessage['encode']=function(_0x686cb,writer){return writer||(writer=$Writer['create']()),null!=_0x686cb['data']&&Object['hasOwnProperty']['call'](_0x686cb,'data')&&writer['uint32'](0xa)['string'](_0x686cb['data']),null!=_0x686cb['data1']&&Object['hasOwnProperty']['call'](_0x686cb,'data1')&&writer['uint32'](0x12)['string'](_0x686cb['data1']),writer;},StringObjectPacketDataMessage['encodeDelimited']=function(_0x2dcb21,writer){return this['encode'](_0x2dcb21,writer)['ldelim']();},StringObjectPacketDataMessage['decode']=function(_0x49a2c1,length,_0x29ec83,_0x572dec){if(_0x49a2c1 instanceof _0x28908e||(_0x49a2c1=_0x28908e['create'](_0x49a2c1)),void 0x0===_0x572dec&&(_0x572dec=0x0),_0x572dec>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xed23eb=void 0x0===length?_0x49a2c1['len']:_0x49a2c1['pos']+length,_0x22b30e=new $root['StringObjectPacketDataMessage']();_0x49a2c1['pos']<_0xed23eb;){var tag=_0x49a2c1['uint32']();if(tag===_0x29ec83)break;switch(tag>>>0x3){case 0x1:_0x22b30e['data']=_0x49a2c1['string']();break;case 0x2:_0x22b30e['data1']=_0x49a2c1['string']();break;default:_0x49a2c1['skipType'](0x7&tag,_0x572dec);}}return _0x22b30e;},StringObjectPacketDataMessage['decodeDelimited']=function(_0x3b1bcd){return _0x3b1bcd instanceof _0x28908e||(_0x3b1bcd=new _0x28908e(_0x3b1bcd)),this['decode'](_0x3b1bcd,_0x3b1bcd['uint32']());},StringObjectPacketDataMessage['verify']=function(_0x51171f,_0x4037a7){return'object'!=typeof _0x51171f||null===_0x51171f?'object\x20expected':(void 0x0===_0x4037a7&&(_0x4037a7=0x0),_0x4037a7>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x51171f['data']&&_0x51171f['hasOwnProperty']('data')&&!$util['isString'](_0x51171f['data'])?'data:\x20string\x20expected':null!=_0x51171f['data1']&&_0x51171f['hasOwnProperty']('data1')&&!$util['isString'](_0x51171f['data1'])?'data1:\x20string\x20expected':null);},StringObjectPacketDataMessage['fromObject']=function(object,_0x230e9f){if(object instanceof $root['StringObjectPacketDataMessage'])return object;if(void 0x0===_0x230e9f&&(_0x230e9f=0x0),_0x230e9f>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x514180=new $root['StringObjectPacketDataMessage']();return null!=object['data']&&(_0x514180['data']=String(object['data'])),null!=object['data1']&&(_0x514180['data1']=String(object['data1'])),_0x514180;},StringObjectPacketDataMessage['toObject']=function(_0x25bf88,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x25bf88['data']&&_0x25bf88['hasOwnProperty']('data')&&(object['data']=_0x25bf88['data']),null!=_0x25bf88['data1']&&_0x25bf88['hasOwnProperty']('data1')&&(object['data1']=_0x25bf88['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 _0x58ec67=Object['keys'](properties),_0x3a30b9=0x0;_0x3a30b9<_0x58ec67['length'];++_0x3a30b9)null!=properties[_0x58ec67[_0x3a30b9]]&&'__proto__'!==_0x58ec67[_0x3a30b9]&&(this[_0x58ec67[_0x3a30b9]]=properties[_0x58ec67[_0x3a30b9]]);}}return StringNumberPacketDataMessage['prototype']['data']='',StringNumberPacketDataMessage['prototype']['data1']=0x0,StringNumberPacketDataMessage['create']=function(properties){return new StringNumberPacketDataMessage(properties);},StringNumberPacketDataMessage['encode']=function(_0xa0896a,writer){return writer||(writer=$Writer['create']()),null!=_0xa0896a['data']&&Object['hasOwnProperty']['call'](_0xa0896a,'data')&&writer['uint32'](0xa)['string'](_0xa0896a['data']),null!=_0xa0896a['data1']&&Object['hasOwnProperty']['call'](_0xa0896a,'data1')&&writer['uint32'](0x10)['uint32'](_0xa0896a['data1']),writer;},StringNumberPacketDataMessage['encodeDelimited']=function(_0x825c70,writer){return this['encode'](_0x825c70,writer)['ldelim']();},StringNumberPacketDataMessage['decode']=function(_0x72d267,length,_0x294162,_0x648687){if(_0x72d267 instanceof _0x28908e||(_0x72d267=_0x28908e['create'](_0x72d267)),void 0x0===_0x648687&&(_0x648687=0x0),_0x648687>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5fcd1b=void 0x0===length?_0x72d267['len']:_0x72d267['pos']+length,_0x4512e7=new $root['StringNumberPacketDataMessage']();_0x72d267['pos']<_0x5fcd1b;){var tag=_0x72d267['uint32']();if(tag===_0x294162)break;switch(tag>>>0x3){case 0x1:_0x4512e7['data']=_0x72d267['string']();break;case 0x2:_0x4512e7['data1']=_0x72d267['uint32']();break;default:_0x72d267['skipType'](0x7&tag,_0x648687);}}return _0x4512e7;},StringNumberPacketDataMessage['decodeDelimited']=function(_0x124c66){return _0x124c66 instanceof _0x28908e||(_0x124c66=new _0x28908e(_0x124c66)),this['decode'](_0x124c66,_0x124c66['uint32']());},StringNumberPacketDataMessage['verify']=function(_0x2a0412,_0x426ef1){return'object'!=typeof _0x2a0412||null===_0x2a0412?'object\x20expected':(void 0x0===_0x426ef1&&(_0x426ef1=0x0),_0x426ef1>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x2a0412['data']&&_0x2a0412['hasOwnProperty']('data')&&!$util['isString'](_0x2a0412['data'])?'data:\x20string\x20expected':null!=_0x2a0412['data1']&&_0x2a0412['hasOwnProperty']('data1')&&!$util['isInteger'](_0x2a0412['data1'])?'data1:\x20integer\x20expected':null);},StringNumberPacketDataMessage['fromObject']=function(object,_0x4dadb0){if(object instanceof $root['StringNumberPacketDataMessage'])return object;if(void 0x0===_0x4dadb0&&(_0x4dadb0=0x0),_0x4dadb0>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x32fbb8=new $root['StringNumberPacketDataMessage']();return null!=object['data']&&(_0x32fbb8['data']=String(object['data'])),null!=object['data1']&&(_0x32fbb8['data1']=object['data1']>>>0x0),_0x32fbb8;},StringNumberPacketDataMessage['toObject']=function(_0x1ce797,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=0x0),null!=_0x1ce797['data']&&_0x1ce797['hasOwnProperty']('data')&&(object['data']=_0x1ce797['data']),null!=_0x1ce797['data1']&&_0x1ce797['hasOwnProperty']('data1')&&(object['data1']=_0x1ce797['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 _0x574f42=Object['keys'](properties),_0x10c67e=0x0;_0x10c67e<_0x574f42['length'];++_0x10c67e)null!=properties[_0x574f42[_0x10c67e]]&&'__proto__'!==_0x574f42[_0x10c67e]&&(this[_0x574f42[_0x10c67e]]=properties[_0x574f42[_0x10c67e]]);}}return StringBytesPacketDataMessage['prototype']['data']='',StringBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),StringBytesPacketDataMessage['create']=function(properties){return new StringBytesPacketDataMessage(properties);},StringBytesPacketDataMessage['encode']=function(_0x5b6539,writer){return writer||(writer=$Writer['create']()),null!=_0x5b6539['data']&&Object['hasOwnProperty']['call'](_0x5b6539,'data')&&writer['uint32'](0xa)['string'](_0x5b6539['data']),null!=_0x5b6539['data1']&&Object['hasOwnProperty']['call'](_0x5b6539,'data1')&&writer['uint32'](0x12)['bytes'](_0x5b6539['data1']),writer;},StringBytesPacketDataMessage['encodeDelimited']=function(_0x5c241c,writer){return this['encode'](_0x5c241c,writer)['ldelim']();},StringBytesPacketDataMessage['decode']=function(_0x3b1847,length,_0x239465,_0x1d6e4e){if(_0x3b1847 instanceof _0x28908e||(_0x3b1847=_0x28908e['create'](_0x3b1847)),void 0x0===_0x1d6e4e&&(_0x1d6e4e=0x0),_0x1d6e4e>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xe1b5ce=void 0x0===length?_0x3b1847['len']:_0x3b1847['pos']+length,_0x20ae07=new $root['StringBytesPacketDataMessage']();_0x3b1847['pos']<_0xe1b5ce;){var tag=_0x3b1847['uint32']();if(tag===_0x239465)break;switch(tag>>>0x3){case 0x1:_0x20ae07['data']=_0x3b1847['string']();break;case 0x2:_0x20ae07['data1']=_0x3b1847['bytes']();break;default:_0x3b1847['skipType'](0x7&tag,_0x1d6e4e);}}return _0x20ae07;},StringBytesPacketDataMessage['decodeDelimited']=function(_0x3ebab7){return _0x3ebab7 instanceof _0x28908e||(_0x3ebab7=new _0x28908e(_0x3ebab7)),this['decode'](_0x3ebab7,_0x3ebab7['uint32']());},StringBytesPacketDataMessage['verify']=function(_0x3b3cef,_0x16feba){return'object'!=typeof _0x3b3cef||null===_0x3b3cef?'object\x20expected':(void 0x0===_0x16feba&&(_0x16feba=0x0),_0x16feba>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3b3cef['data']&&_0x3b3cef['hasOwnProperty']('data')&&!$util['isString'](_0x3b3cef['data'])?'data:\x20string\x20expected':null!=_0x3b3cef['data1']&&_0x3b3cef['hasOwnProperty']('data1')&&!(_0x3b3cef['data1']&&'number'==typeof _0x3b3cef['data1']['length']||$util['isString'](_0x3b3cef['data1']))?'data1:\x20buffer\x20expected':null);},StringBytesPacketDataMessage['fromObject']=function(object,_0x59d3ed){if(object instanceof $root['StringBytesPacketDataMessage'])return object;if(void 0x0===_0x59d3ed&&(_0x59d3ed=0x0),_0x59d3ed>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x45315a=new $root['StringBytesPacketDataMessage']();return null!=object['data']&&(_0x45315a['data']=String(object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x45315a['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x45315a['data1']=object['data1'])),_0x45315a;},StringBytesPacketDataMessage['toObject']=function(_0x36a2f7,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!=_0x36a2f7['data']&&_0x36a2f7['hasOwnProperty']('data')&&(object['data']=_0x36a2f7['data']),null!=_0x36a2f7['data1']&&_0x36a2f7['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x36a2f7['data1'],0x0,_0x36a2f7['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x36a2f7['data1']):_0x36a2f7['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 _0x1e1d40=Object['keys'](properties),_0x5d8904=0x0;_0x5d8904<_0x1e1d40['length'];++_0x5d8904)null!=properties[_0x1e1d40[_0x5d8904]]&&'__proto__'!==_0x1e1d40[_0x5d8904]&&(this[_0x1e1d40[_0x5d8904]]=properties[_0x1e1d40[_0x5d8904]]);}}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(_0x5cc9a1,writer){if(writer||(writer=$Writer['create']()),null!=_0x5cc9a1['flags']&&Object['hasOwnProperty']['call'](_0x5cc9a1,'flags')&&writer['uint32'](0xa)['string'](_0x5cc9a1['flags']),null!=_0x5cc9a1['rooms']&&_0x5cc9a1['rooms']['length']){for(var _0x366d1d=0x0;_0x366d1d<_0x5cc9a1['rooms']['length'];++_0x366d1d)writer['uint32'](0x12)['string'](_0x5cc9a1['rooms'][_0x366d1d]);}if(null!=_0x5cc9a1['except']&&_0x5cc9a1['except']['length']){for(_0x366d1d=0x0;_0x366d1d<_0x5cc9a1['except']['length'];++_0x366d1d)writer['uint32'](0x1a)['string'](_0x5cc9a1['except'][_0x366d1d]);}return writer;},PacketOptionsMessage['encodeDelimited']=function(_0x3d5bd7,writer){return this['encode'](_0x3d5bd7,writer)['ldelim']();},PacketOptionsMessage['decode']=function(_0x180215,length,_0x2e6a7d,_0x182883){if(_0x180215 instanceof _0x28908e||(_0x180215=_0x28908e['create'](_0x180215)),void 0x0===_0x182883&&(_0x182883=0x0),_0x182883>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x39a95a=void 0x0===length?_0x180215['len']:_0x180215['pos']+length,_0x444f46=new $root['PacketOptionsMessage']();_0x180215['pos']<_0x39a95a;){var tag=_0x180215['uint32']();if(tag===_0x2e6a7d)break;switch(tag>>>0x3){case 0x1:_0x444f46['flags']=_0x180215['string']();break;case 0x2:_0x444f46['rooms']&&_0x444f46['rooms']['length']||(_0x444f46['rooms']=[]),_0x444f46['rooms']['push'](_0x180215['string']());break;case 0x3:_0x444f46['except']&&_0x444f46['except']['length']||(_0x444f46['except']=[]),_0x444f46['except']['push'](_0x180215['string']());break;default:_0x180215['skipType'](0x7&tag,_0x182883);}}return _0x444f46;},PacketOptionsMessage['decodeDelimited']=function(_0x51950c){return _0x51950c instanceof _0x28908e||(_0x51950c=new _0x28908e(_0x51950c)),this['decode'](_0x51950c,_0x51950c['uint32']());},PacketOptionsMessage['verify']=function(_0x13ea89,_0xd8896d){if('object'!=typeof _0x13ea89||null===_0x13ea89)return'object\x20expected';if(void 0x0===_0xd8896d&&(_0xd8896d=0x0),_0xd8896d>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x13ea89['flags']&&_0x13ea89['hasOwnProperty']('flags')&&!$util['isString'](_0x13ea89['flags']))return'flags:\x20string\x20expected';if(null!=_0x13ea89['rooms']&&_0x13ea89['hasOwnProperty']('rooms')){if(!Array['isArray'](_0x13ea89['rooms']))return'rooms:\x20array\x20expected';for(var _0x493383=0x0;_0x493383<_0x13ea89['rooms']['length'];++_0x493383)if(!$util['isString'](_0x13ea89['rooms'][_0x493383]))return'rooms:\x20string[]\x20expected';}if(null!=_0x13ea89['except']&&_0x13ea89['hasOwnProperty']('except')){if(!Array['isArray'](_0x13ea89['except']))return'except:\x20array\x20expected';for(_0x493383=0x0;_0x493383<_0x13ea89['except']['length'];++_0x493383)if(!$util['isString'](_0x13ea89['except'][_0x493383]))return'except:\x20string[]\x20expected';}return null;},PacketOptionsMessage['fromObject']=function(object,_0x4efa63){if(object instanceof $root['PacketOptionsMessage'])return object;if(void 0x0===_0x4efa63&&(_0x4efa63=0x0),_0x4efa63>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x3fa899=new $root['PacketOptionsMessage']();if(null!=object['flags']&&(_0x3fa899['flags']=String(object['flags'])),object['rooms']){if(!Array['isArray'](object['rooms']))throw TypeError('.PacketOptionsMessage.rooms:\x20array\x20expected');_0x3fa899['rooms']=[];for(var _0x147cec=0x0;_0x147cec<object['rooms']['length'];++_0x147cec)_0x3fa899['rooms'][_0x147cec]=String(object['rooms'][_0x147cec]);}if(object['except']){if(!Array['isArray'](object['except']))throw TypeError('.PacketOptionsMessage.except:\x20array\x20expected');_0x3fa899['except']=[];for(_0x147cec=0x0;_0x147cec<object['except']['length'];++_0x147cec)_0x3fa899['except'][_0x147cec]=String(object['except'][_0x147cec]);}return _0x3fa899;},PacketOptionsMessage['toObject']=function(_0x3958ce,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['rooms']=[],object['except']=[]),options['defaults']&&(object['flags']=''),null!=_0x3958ce['flags']&&_0x3958ce['hasOwnProperty']('flags')&&(object['flags']=_0x3958ce['flags']),_0x3958ce['rooms']&&_0x3958ce['rooms']['length']){object['rooms']=[];for(var _0x2c5819=0x0;_0x2c5819<_0x3958ce['rooms']['length'];++_0x2c5819)object['rooms'][_0x2c5819]=_0x3958ce['rooms'][_0x2c5819];}if(_0x3958ce['except']&&_0x3958ce['except']['length']){object['except']=[];for(_0x2c5819=0x0;_0x2c5819<_0x3958ce['except']['length'];++_0x2c5819)object['except'][_0x2c5819]=_0x3958ce['except'][_0x2c5819];}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 _0x407b63=Object['keys'](properties),_0x34584a=0x0;_0x34584a<_0x407b63['length'];++_0x34584a)null!=properties[_0x407b63[_0x34584a]]&&'__proto__'!==_0x407b63[_0x34584a]&&(this[_0x407b63[_0x34584a]]=properties[_0x407b63[_0x34584a]]);}}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(_0x370935,writer){return writer||(writer=$Writer['create']()),null!=_0x370935['type']&&Object['hasOwnProperty']['call'](_0x370935,'type')&&writer['uint32'](0x8)['uint32'](_0x370935['type']),null!=_0x370935['id']&&Object['hasOwnProperty']['call'](_0x370935,'id')&&writer['uint32'](0x10)['uint32'](_0x370935['id']),null!=_0x370935['nsp']&&Object['hasOwnProperty']['call'](_0x370935,'nsp')&&writer['uint32'](0x1a)['string'](_0x370935['nsp']),null!=_0x370935['data']&&Object['hasOwnProperty']['call'](_0x370935,'data')&&writer['uint32'](0x22)['bytes'](_0x370935['data']),null!=_0x370935['options']&&Object['hasOwnProperty']['call'](_0x370935,'options')&&writer['uint32'](0x2a)['bytes'](_0x370935['options']),writer;},PacketMessage['encodeDelimited']=function(_0x106cee,writer){return this['encode'](_0x106cee,writer)['ldelim']();},PacketMessage['decode']=function(_0x256491,length,_0x16e545,_0x137802){if(_0x256491 instanceof _0x28908e||(_0x256491=_0x28908e['create'](_0x256491)),void 0x0===_0x137802&&(_0x137802=0x0),_0x137802>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x334dc8=void 0x0===length?_0x256491['len']:_0x256491['pos']+length,_0x37e530=new $root['PacketMessage']();_0x256491['pos']<_0x334dc8;){var tag=_0x256491['uint32']();if(tag===_0x16e545)break;switch(tag>>>0x3){case 0x1:_0x37e530['type']=_0x256491['uint32']();break;case 0x2:_0x37e530['id']=_0x256491['uint32']();break;case 0x3:_0x37e530['nsp']=_0x256491['string']();break;case 0x4:_0x37e530['data']=_0x256491['bytes']();break;case 0x5:_0x37e530['options']=_0x256491['bytes']();break;default:_0x256491['skipType'](0x7&tag,_0x137802);}}return _0x37e530;},PacketMessage['decodeDelimited']=function(_0x3c41fc){return _0x3c41fc instanceof _0x28908e||(_0x3c41fc=new _0x28908e(_0x3c41fc)),this['decode'](_0x3c41fc,_0x3c41fc['uint32']());},PacketMessage['verify']=function(_0x5b5773,_0x510094){return'object'!=typeof _0x5b5773||null===_0x5b5773?'object\x20expected':(void 0x0===_0x510094&&(_0x510094=0x0),_0x510094>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x5b5773['type']&&_0x5b5773['hasOwnProperty']('type')&&!$util['isInteger'](_0x5b5773['type'])?'type:\x20integer\x20expected':null!=_0x5b5773['id']&&_0x5b5773['hasOwnProperty']('id')&&!$util['isInteger'](_0x5b5773['id'])?'id:\x20integer\x20expected':null!=_0x5b5773['nsp']&&_0x5b5773['hasOwnProperty']('nsp')&&!$util['isString'](_0x5b5773['nsp'])?'nsp:\x20string\x20expected':null!=_0x5b5773['data']&&_0x5b5773['hasOwnProperty']('data')&&!(_0x5b5773['data']&&'number'==typeof _0x5b5773['data']['length']||$util['isString'](_0x5b5773['data']))?'data:\x20buffer\x20expected':null!=_0x5b5773['options']&&_0x5b5773['hasOwnProperty']('options')&&!(_0x5b5773['options']&&'number'==typeof _0x5b5773['options']['length']||$util['isString'](_0x5b5773['options']))?'options:\x20buffer\x20expected':null);},PacketMessage['fromObject']=function(object,_0x2d27b9){if(object instanceof $root['PacketMessage'])return object;if(void 0x0===_0x2d27b9&&(_0x2d27b9=0x0),_0x2d27b9>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x54863f=new $root['PacketMessage']();return null!=object['type']&&(_0x54863f['type']=object['type']>>>0x0),null!=object['id']&&(_0x54863f['id']=object['id']>>>0x0),null!=object['nsp']&&(_0x54863f['nsp']=String(object['nsp'])),null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x54863f['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x54863f['data']=object['data'])),null!=object['options']&&('string'==typeof object['options']?$util['base64']['decode'](object['options'],_0x54863f['options']=$util['newBuffer']($util['base64']['length'](object['options'])),0x0):object['options']['length']>=0x0&&(_0x54863f['options']=object['options'])),_0x54863f;},PacketMessage['toObject']=function(_0x30ed90,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!=_0x30ed90['type']&&_0x30ed90['hasOwnProperty']('type')&&(object['type']=_0x30ed90['type']),null!=_0x30ed90['id']&&_0x30ed90['hasOwnProperty']('id')&&(object['id']=_0x30ed90['id']),null!=_0x30ed90['nsp']&&_0x30ed90['hasOwnProperty']('nsp')&&(object['nsp']=_0x30ed90['nsp']),null!=_0x30ed90['data']&&_0x30ed90['hasOwnProperty']('data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x30ed90['data'],0x0,_0x30ed90['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x30ed90['data']):_0x30ed90['data']),null!=_0x30ed90['options']&&_0x30ed90['hasOwnProperty']('options')&&(object['options']=options['bytes']===String?$util['base64']['encode'](_0x30ed90['options'],0x0,_0x30ed90['options']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x30ed90['options']):_0x30ed90['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 _0x5a13f8=Object['keys'](properties),_0x5df637=0x0;_0x5df637<_0x5a13f8['length'];++_0x5df637)null!=properties[_0x5a13f8[_0x5df637]]&&'__proto__'!==_0x5a13f8[_0x5df637]&&(this[_0x5a13f8[_0x5df637]]=properties[_0x5a13f8[_0x5df637]]);}}return ObjectObjectPacketDataMessage['prototype']['data']='',ObjectObjectPacketDataMessage['prototype']['data1']='',ObjectObjectPacketDataMessage['create']=function(properties){return new ObjectObjectPacketDataMessage(properties);},ObjectObjectPacketDataMessage['encode']=function(_0x2e0fc2,writer){return writer||(writer=$Writer['create']()),null!=_0x2e0fc2['data']&&Object['hasOwnProperty']['call'](_0x2e0fc2,'data')&&writer['uint32'](0xa)['string'](_0x2e0fc2['data']),null!=_0x2e0fc2['data1']&&Object['hasOwnProperty']['call'](_0x2e0fc2,'data1')&&writer['uint32'](0x12)['string'](_0x2e0fc2['data1']),writer;},ObjectObjectPacketDataMessage['encodeDelimited']=function(_0x280f8e,writer){return this['encode'](_0x280f8e,writer)['ldelim']();},ObjectObjectPacketDataMessage['decode']=function(_0x2c3e5c,length,_0x12bc1d,_0x4c49b3){if(_0x2c3e5c instanceof _0x28908e||(_0x2c3e5c=_0x28908e['create'](_0x2c3e5c)),void 0x0===_0x4c49b3&&(_0x4c49b3=0x0),_0x4c49b3>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x304209=void 0x0===length?_0x2c3e5c['len']:_0x2c3e5c['pos']+length,_0x3c7f11=new $root['ObjectObjectPacketDataMessage']();_0x2c3e5c['pos']<_0x304209;){var tag=_0x2c3e5c['uint32']();if(tag===_0x12bc1d)break;switch(tag>>>0x3){case 0x1:_0x3c7f11['data']=_0x2c3e5c['string']();break;case 0x2:_0x3c7f11['data1']=_0x2c3e5c['string']();break;default:_0x2c3e5c['skipType'](0x7&tag,_0x4c49b3);}}return _0x3c7f11;},ObjectObjectPacketDataMessage['decodeDelimited']=function(_0x4d10d8){return _0x4d10d8 instanceof _0x28908e||(_0x4d10d8=new _0x28908e(_0x4d10d8)),this['decode'](_0x4d10d8,_0x4d10d8['uint32']());},ObjectObjectPacketDataMessage['verify']=function(_0x16d4b4,_0x3a6ffb){return'object'!=typeof _0x16d4b4||null===_0x16d4b4?'object\x20expected':(void 0x0===_0x3a6ffb&&(_0x3a6ffb=0x0),_0x3a6ffb>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x16d4b4['data']&&_0x16d4b4['hasOwnProperty']('data')&&!$util['isString'](_0x16d4b4['data'])?'data:\x20string\x20expected':null!=_0x16d4b4['data1']&&_0x16d4b4['hasOwnProperty']('data1')&&!$util['isString'](_0x16d4b4['data1'])?'data1:\x20string\x20expected':null);},ObjectObjectPacketDataMessage['fromObject']=function(object,_0x7fd791){if(object instanceof $root['ObjectObjectPacketDataMessage'])return object;if(void 0x0===_0x7fd791&&(_0x7fd791=0x0),_0x7fd791>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x548582=new $root['ObjectObjectPacketDataMessage']();return null!=object['data']&&(_0x548582['data']=String(object['data'])),null!=object['data1']&&(_0x548582['data1']=String(object['data1'])),_0x548582;},ObjectObjectPacketDataMessage['toObject']=function(_0x53ff1b,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x53ff1b['data']&&_0x53ff1b['hasOwnProperty']('data')&&(object['data']=_0x53ff1b['data']),null!=_0x53ff1b['data1']&&_0x53ff1b['hasOwnProperty']('data1')&&(object['data1']=_0x53ff1b['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 _0x451050=Object['keys'](properties),_0x26771b=0x0;_0x26771b<_0x451050['length'];++_0x26771b)null!=properties[_0x451050[_0x26771b]]&&'__proto__'!==_0x451050[_0x26771b]&&(this[_0x451050[_0x26771b]]=properties[_0x451050[_0x26771b]]);}}return ObjectBufferPacketDataMessage['prototype']['data']='',ObjectBufferPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),ObjectBufferPacketDataMessage['create']=function(properties){return new ObjectBufferPacketDataMessage(properties);},ObjectBufferPacketDataMessage['encode']=function(_0x39aa17,writer){return writer||(writer=$Writer['create']()),null!=_0x39aa17['data']&&Object['hasOwnProperty']['call'](_0x39aa17,'data')&&writer['uint32'](0xa)['string'](_0x39aa17['data']),null!=_0x39aa17['data1']&&Object['hasOwnProperty']['call'](_0x39aa17,'data1')&&writer['uint32'](0x12)['bytes'](_0x39aa17['data1']),writer;},ObjectBufferPacketDataMessage['encodeDelimited']=function(_0x143733,writer){return this['encode'](_0x143733,writer)['ldelim']();},ObjectBufferPacketDataMessage['decode']=function(_0x591df9,length,_0x472452,_0x227bb3){if(_0x591df9 instanceof _0x28908e||(_0x591df9=_0x28908e['create'](_0x591df9)),void 0x0===_0x227bb3&&(_0x227bb3=0x0),_0x227bb3>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4c86f4=void 0x0===length?_0x591df9['len']:_0x591df9['pos']+length,_0x3fe1b1=new $root['ObjectBufferPacketDataMessage']();_0x591df9['pos']<_0x4c86f4;){var tag=_0x591df9['uint32']();if(tag===_0x472452)break;switch(tag>>>0x3){case 0x1:_0x3fe1b1['data']=_0x591df9['string']();break;case 0x2:_0x3fe1b1['data1']=_0x591df9['bytes']();break;default:_0x591df9['skipType'](0x7&tag,_0x227bb3);}}return _0x3fe1b1;},ObjectBufferPacketDataMessage['decodeDelimited']=function(_0x59d67c){return _0x59d67c instanceof _0x28908e||(_0x59d67c=new _0x28908e(_0x59d67c)),this['decode'](_0x59d67c,_0x59d67c['uint32']());},ObjectBufferPacketDataMessage['verify']=function(_0x165425,_0x2019f8){return'object'!=typeof _0x165425||null===_0x165425?'object\x20expected':(void 0x0===_0x2019f8&&(_0x2019f8=0x0),_0x2019f8>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x165425['data']&&_0x165425['hasOwnProperty']('data')&&!$util['isString'](_0x165425['data'])?'data:\x20string\x20expected':null!=_0x165425['data1']&&_0x165425['hasOwnProperty']('data1')&&!(_0x165425['data1']&&'number'==typeof _0x165425['data1']['length']||$util['isString'](_0x165425['data1']))?'data1:\x20buffer\x20expected':null);},ObjectBufferPacketDataMessage['fromObject']=function(object,_0x3a2579){if(object instanceof $root['ObjectBufferPacketDataMessage'])return object;if(void 0x0===_0x3a2579&&(_0x3a2579=0x0),_0x3a2579>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xd1f69d=new $root['ObjectBufferPacketDataMessage']();return null!=object['data']&&(_0xd1f69d['data']=String(object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0xd1f69d['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0xd1f69d['data1']=object['data1'])),_0xd1f69d;},ObjectBufferPacketDataMessage['toObject']=function(_0x319adb,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!=_0x319adb['data']&&_0x319adb['hasOwnProperty']('data')&&(object['data']=_0x319adb['data']),null!=_0x319adb['data1']&&_0x319adb['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x319adb['data1'],0x0,_0x319adb['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x319adb['data1']):_0x319adb['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 _0xfafdef=Object['keys'](properties),_0x12c184=0x0;_0x12c184<_0xfafdef['length'];++_0x12c184)null!=properties[_0xfafdef[_0x12c184]]&&'__proto__'!==_0xfafdef[_0x12c184]&&(this[_0xfafdef[_0x12c184]]=properties[_0xfafdef[_0x12c184]]);}}return NumberStringPacketDataMessage['prototype']['data']=0x0,NumberStringPacketDataMessage['prototype']['data1']='',NumberStringPacketDataMessage['create']=function(properties){return new NumberStringPacketDataMessage(properties);},NumberStringPacketDataMessage['encode']=function(_0x211a0b,writer){return writer||(writer=$Writer['create']()),null!=_0x211a0b['data']&&Object['hasOwnProperty']['call'](_0x211a0b,'data')&&writer['uint32'](0x8)['uint32'](_0x211a0b['data']),null!=_0x211a0b['data1']&&Object['hasOwnProperty']['call'](_0x211a0b,'data1')&&writer['uint32'](0x12)['string'](_0x211a0b['data1']),writer;},NumberStringPacketDataMessage['encodeDelimited']=function(_0x1e31a8,writer){return this['encode'](_0x1e31a8,writer)['ldelim']();},NumberStringPacketDataMessage['decode']=function(_0x2f0fb5,length,_0x59076a,_0x1fde41){if(_0x2f0fb5 instanceof _0x28908e||(_0x2f0fb5=_0x28908e['create'](_0x2f0fb5)),void 0x0===_0x1fde41&&(_0x1fde41=0x0),_0x1fde41>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x48edbe=void 0x0===length?_0x2f0fb5['len']:_0x2f0fb5['pos']+length,_0x5e1428=new $root['NumberStringPacketDataMessage']();_0x2f0fb5['pos']<_0x48edbe;){var tag=_0x2f0fb5['uint32']();if(tag===_0x59076a)break;switch(tag>>>0x3){case 0x1:_0x5e1428['data']=_0x2f0fb5['uint32']();break;case 0x2:_0x5e1428['data1']=_0x2f0fb5['string']();break;default:_0x2f0fb5['skipType'](0x7&tag,_0x1fde41);}}return _0x5e1428;},NumberStringPacketDataMessage['decodeDelimited']=function(_0x1fb88a){return _0x1fb88a instanceof _0x28908e||(_0x1fb88a=new _0x28908e(_0x1fb88a)),this['decode'](_0x1fb88a,_0x1fb88a['uint32']());},NumberStringPacketDataMessage['verify']=function(_0x35fb7d,_0x22b7c2){return'object'!=typeof _0x35fb7d||null===_0x35fb7d?'object\x20expected':(void 0x0===_0x22b7c2&&(_0x22b7c2=0x0),_0x22b7c2>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x35fb7d['data']&&_0x35fb7d['hasOwnProperty']('data')&&!$util['isInteger'](_0x35fb7d['data'])?'data:\x20integer\x20expected':null!=_0x35fb7d['data1']&&_0x35fb7d['hasOwnProperty']('data1')&&!$util['isString'](_0x35fb7d['data1'])?'data1:\x20string\x20expected':null);},NumberStringPacketDataMessage['fromObject']=function(object,_0x32bba0){if(object instanceof $root['NumberStringPacketDataMessage'])return object;if(void 0x0===_0x32bba0&&(_0x32bba0=0x0),_0x32bba0>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x11fd6b=new $root['NumberStringPacketDataMessage']();return null!=object['data']&&(_0x11fd6b['data']=object['data']>>>0x0),null!=object['data1']&&(_0x11fd6b['data1']=String(object['data1'])),_0x11fd6b;},NumberStringPacketDataMessage['toObject']=function(_0x55f9a5,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,object['data1']=''),null!=_0x55f9a5['data']&&_0x55f9a5['hasOwnProperty']('data')&&(object['data']=_0x55f9a5['data']),null!=_0x55f9a5['data1']&&_0x55f9a5['hasOwnProperty']('data1')&&(object['data1']=_0x55f9a5['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 _0x40dfeb=Object['keys'](properties),_0x5b0e3c=0x0;_0x5b0e3c<_0x40dfeb['length'];++_0x5b0e3c)null!=properties[_0x40dfeb[_0x5b0e3c]]&&'__proto__'!==_0x40dfeb[_0x5b0e3c]&&(this[_0x40dfeb[_0x5b0e3c]]=properties[_0x40dfeb[_0x5b0e3c]]);}}return NumberObjectPacketDataMessage['prototype']['data']=0x0,NumberObjectPacketDataMessage['prototype']['data1']='',NumberObjectPacketDataMessage['create']=function(properties){return new NumberObjectPacketDataMessage(properties);},NumberObjectPacketDataMessage['encode']=function(_0x3b425a,writer){return writer||(writer=$Writer['create']()),null!=_0x3b425a['data']&&Object['hasOwnProperty']['call'](_0x3b425a,'data')&&writer['uint32'](0x8)['uint32'](_0x3b425a['data']),null!=_0x3b425a['data1']&&Object['hasOwnProperty']['call'](_0x3b425a,'data1')&&writer['uint32'](0x12)['string'](_0x3b425a['data1']),writer;},NumberObjectPacketDataMessage['encodeDelimited']=function(_0x18ce85,writer){return this['encode'](_0x18ce85,writer)['ldelim']();},NumberObjectPacketDataMessage['decode']=function(_0x24e76d,length,_0x5d205a,_0x161d68){if(_0x24e76d instanceof _0x28908e||(_0x24e76d=_0x28908e['create'](_0x24e76d)),void 0x0===_0x161d68&&(_0x161d68=0x0),_0x161d68>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5ecf1f=void 0x0===length?_0x24e76d['len']:_0x24e76d['pos']+length,_0x4efcb9=new $root['NumberObjectPacketDataMessage']();_0x24e76d['pos']<_0x5ecf1f;){var tag=_0x24e76d['uint32']();if(tag===_0x5d205a)break;switch(tag>>>0x3){case 0x1:_0x4efcb9['data']=_0x24e76d['uint32']();break;case 0x2:_0x4efcb9['data1']=_0x24e76d['string']();break;default:_0x24e76d['skipType'](0x7&tag,_0x161d68);}}return _0x4efcb9;},NumberObjectPacketDataMessage['decodeDelimited']=function(_0x3ad35f){return _0x3ad35f instanceof _0x28908e||(_0x3ad35f=new _0x28908e(_0x3ad35f)),this['decode'](_0x3ad35f,_0x3ad35f['uint32']());},NumberObjectPacketDataMessage['verify']=function(_0x26d526,_0x3fce00){return'object'!=typeof _0x26d526||null===_0x26d526?'object\x20expected':(void 0x0===_0x3fce00&&(_0x3fce00=0x0),_0x3fce00>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x26d526['data']&&_0x26d526['hasOwnProperty']('data')&&!$util['isInteger'](_0x26d526['data'])?'data:\x20integer\x20expected':null!=_0x26d526['data1']&&_0x26d526['hasOwnProperty']('data1')&&!$util['isString'](_0x26d526['data1'])?'data1:\x20string\x20expected':null);},NumberObjectPacketDataMessage['fromObject']=function(object,_0x11aeeb){if(object instanceof $root['NumberObjectPacketDataMessage'])return object;if(void 0x0===_0x11aeeb&&(_0x11aeeb=0x0),_0x11aeeb>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x9f2f9b=new $root['NumberObjectPacketDataMessage']();return null!=object['data']&&(_0x9f2f9b['data']=object['data']>>>0x0),null!=object['data1']&&(_0x9f2f9b['data1']=String(object['data1'])),_0x9f2f9b;},NumberObjectPacketDataMessage['toObject']=function(_0x29e6a0,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,object['data1']=''),null!=_0x29e6a0['data']&&_0x29e6a0['hasOwnProperty']('data')&&(object['data']=_0x29e6a0['data']),null!=_0x29e6a0['data1']&&_0x29e6a0['hasOwnProperty']('data1')&&(object['data1']=_0x29e6a0['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 _0x63809a=Object['keys'](properties),_0xadce3e=0x0;_0xadce3e<_0x63809a['length'];++_0xadce3e)null!=properties[_0x63809a[_0xadce3e]]&&'__proto__'!==_0x63809a[_0xadce3e]&&(this[_0x63809a[_0xadce3e]]=properties[_0x63809a[_0xadce3e]]);}}return NumberNumberPacketDataMessage['prototype']['data']=0x0,NumberNumberPacketDataMessage['prototype']['data1']=0x0,NumberNumberPacketDataMessage['create']=function(properties){return new NumberNumberPacketDataMessage(properties);},NumberNumberPacketDataMessage['encode']=function(_0x5a5ded,writer){return writer||(writer=$Writer['create']()),null!=_0x5a5ded['data']&&Object['hasOwnProperty']['call'](_0x5a5ded,'data')&&writer['uint32'](0x8)['uint32'](_0x5a5ded['data']),null!=_0x5a5ded['data1']&&Object['hasOwnProperty']['call'](_0x5a5ded,'data1')&&writer['uint32'](0x10)['uint32'](_0x5a5ded['data1']),writer;},NumberNumberPacketDataMessage['encodeDelimited']=function(_0x276c05,writer){return this['encode'](_0x276c05,writer)['ldelim']();},NumberNumberPacketDataMessage['decode']=function(_0x287a31,length,_0x2f169c,_0x3b3549){if(_0x287a31 instanceof _0x28908e||(_0x287a31=_0x28908e['create'](_0x287a31)),void 0x0===_0x3b3549&&(_0x3b3549=0x0),_0x3b3549>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3c95fe=void 0x0===length?_0x287a31['len']:_0x287a31['pos']+length,_0x4660b5=new $root['NumberNumberPacketDataMessage']();_0x287a31['pos']<_0x3c95fe;){var tag=_0x287a31['uint32']();if(tag===_0x2f169c)break;switch(tag>>>0x3){case 0x1:_0x4660b5['data']=_0x287a31['uint32']();break;case 0x2:_0x4660b5['data1']=_0x287a31['uint32']();break;default:_0x287a31['skipType'](0x7&tag,_0x3b3549);}}return _0x4660b5;},NumberNumberPacketDataMessage['decodeDelimited']=function(_0x576813){return _0x576813 instanceof _0x28908e||(_0x576813=new _0x28908e(_0x576813)),this['decode'](_0x576813,_0x576813['uint32']());},NumberNumberPacketDataMessage['verify']=function(_0x4f605e,_0x57edd8){return'object'!=typeof _0x4f605e||null===_0x4f605e?'object\x20expected':(void 0x0===_0x57edd8&&(_0x57edd8=0x0),_0x57edd8>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x4f605e['data']&&_0x4f605e['hasOwnProperty']('data')&&!$util['isInteger'](_0x4f605e['data'])?'data:\x20integer\x20expected':null!=_0x4f605e['data1']&&_0x4f605e['hasOwnProperty']('data1')&&!$util['isInteger'](_0x4f605e['data1'])?'data1:\x20integer\x20expected':null);},NumberNumberPacketDataMessage['fromObject']=function(object,_0x3f50fd){if(object instanceof $root['NumberNumberPacketDataMessage'])return object;if(void 0x0===_0x3f50fd&&(_0x3f50fd=0x0),_0x3f50fd>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1825c1=new $root['NumberNumberPacketDataMessage']();return null!=object['data']&&(_0x1825c1['data']=object['data']>>>0x0),null!=object['data1']&&(_0x1825c1['data1']=object['data1']>>>0x0),_0x1825c1;},NumberNumberPacketDataMessage['toObject']=function(_0x3338b5,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,object['data1']=0x0),null!=_0x3338b5['data']&&_0x3338b5['hasOwnProperty']('data')&&(object['data']=_0x3338b5['data']),null!=_0x3338b5['data1']&&_0x3338b5['hasOwnProperty']('data1')&&(object['data1']=_0x3338b5['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 _0xd4c003=Object['keys'](properties),_0x19a3e4=0x0;_0x19a3e4<_0xd4c003['length'];++_0x19a3e4)null!=properties[_0xd4c003[_0x19a3e4]]&&'__proto__'!==_0xd4c003[_0x19a3e4]&&(this[_0xd4c003[_0x19a3e4]]=properties[_0xd4c003[_0x19a3e4]]);}}return NumberBytesPacketDataMessage['prototype']['data']=0x0,NumberBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),NumberBytesPacketDataMessage['create']=function(properties){return new NumberBytesPacketDataMessage(properties);},NumberBytesPacketDataMessage['encode']=function(_0x36ebe8,writer){return writer||(writer=$Writer['create']()),null!=_0x36ebe8['data']&&Object['hasOwnProperty']['call'](_0x36ebe8,'data')&&writer['uint32'](0x8)['uint32'](_0x36ebe8['data']),null!=_0x36ebe8['data1']&&Object['hasOwnProperty']['call'](_0x36ebe8,'data1')&&writer['uint32'](0x12)['bytes'](_0x36ebe8['data1']),writer;},NumberBytesPacketDataMessage['encodeDelimited']=function(_0x40c904,writer){return this['encode'](_0x40c904,writer)['ldelim']();},NumberBytesPacketDataMessage['decode']=function(_0x26b5b1,length,_0x304a14,_0x368806){if(_0x26b5b1 instanceof _0x28908e||(_0x26b5b1=_0x28908e['create'](_0x26b5b1)),void 0x0===_0x368806&&(_0x368806=0x0),_0x368806>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x36dd85=void 0x0===length?_0x26b5b1['len']:_0x26b5b1['pos']+length,_0x2b08bc=new $root['NumberBytesPacketDataMessage']();_0x26b5b1['pos']<_0x36dd85;){var tag=_0x26b5b1['uint32']();if(tag===_0x304a14)break;switch(tag>>>0x3){case 0x1:_0x2b08bc['data']=_0x26b5b1['uint32']();break;case 0x2:_0x2b08bc['data1']=_0x26b5b1['bytes']();break;default:_0x26b5b1['skipType'](0x7&tag,_0x368806);}}return _0x2b08bc;},NumberBytesPacketDataMessage['decodeDelimited']=function(_0x37a781){return _0x37a781 instanceof _0x28908e||(_0x37a781=new _0x28908e(_0x37a781)),this['decode'](_0x37a781,_0x37a781['uint32']());},NumberBytesPacketDataMessage['verify']=function(_0x3ec8c2,_0x3d202){return'object'!=typeof _0x3ec8c2||null===_0x3ec8c2?'object\x20expected':(void 0x0===_0x3d202&&(_0x3d202=0x0),_0x3d202>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3ec8c2['data']&&_0x3ec8c2['hasOwnProperty']('data')&&!$util['isInteger'](_0x3ec8c2['data'])?'data:\x20integer\x20expected':null!=_0x3ec8c2['data1']&&_0x3ec8c2['hasOwnProperty']('data1')&&!(_0x3ec8c2['data1']&&'number'==typeof _0x3ec8c2['data1']['length']||$util['isString'](_0x3ec8c2['data1']))?'data1:\x20buffer\x20expected':null);},NumberBytesPacketDataMessage['fromObject']=function(object,_0x5f5dfd){if(object instanceof $root['NumberBytesPacketDataMessage'])return object;if(void 0x0===_0x5f5dfd&&(_0x5f5dfd=0x0),_0x5f5dfd>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x24b6c5=new $root['NumberBytesPacketDataMessage']();return null!=object['data']&&(_0x24b6c5['data']=object['data']>>>0x0),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x24b6c5['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x24b6c5['data1']=object['data1'])),_0x24b6c5;},NumberBytesPacketDataMessage['toObject']=function(_0x1cceea,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!=_0x1cceea['data']&&_0x1cceea['hasOwnProperty']('data')&&(object['data']=_0x1cceea['data']),null!=_0x1cceea['data1']&&_0x1cceea['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x1cceea['data1'],0x0,_0x1cceea['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x1cceea['data1']):_0x1cceea['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 _0x228502=Object['keys'](properties),_0xb47fa3=0x0;_0xb47fa3<_0x228502['length'];++_0xb47fa3)null!=properties[_0x228502[_0xb47fa3]]&&'__proto__'!==_0x228502[_0xb47fa3]&&(this[_0x228502[_0xb47fa3]]=properties[_0x228502[_0xb47fa3]]);}}return BytesBytesPacketDataMessage['prototype']['data']=$util['newBuffer']([]),BytesBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),BytesBytesPacketDataMessage['create']=function(properties){return new BytesBytesPacketDataMessage(properties);},BytesBytesPacketDataMessage['encode']=function(_0x3348db,writer){return writer||(writer=$Writer['create']()),null!=_0x3348db['data']&&Object['hasOwnProperty']['call'](_0x3348db,'data')&&writer['uint32'](0xa)['bytes'](_0x3348db['data']),null!=_0x3348db['data1']&&Object['hasOwnProperty']['call'](_0x3348db,'data1')&&writer['uint32'](0x12)['bytes'](_0x3348db['data1']),writer;},BytesBytesPacketDataMessage['encodeDelimited']=function(_0xd01a01,writer){return this['encode'](_0xd01a01,writer)['ldelim']();},BytesBytesPacketDataMessage['decode']=function(_0x574f5c,length,_0x4eceef,_0x58e3fa){if(_0x574f5c instanceof _0x28908e||(_0x574f5c=_0x28908e['create'](_0x574f5c)),void 0x0===_0x58e3fa&&(_0x58e3fa=0x0),_0x58e3fa>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5d93f1=void 0x0===length?_0x574f5c['len']:_0x574f5c['pos']+length,_0x494837=new $root['BytesBytesPacketDataMessage']();_0x574f5c['pos']<_0x5d93f1;){var tag=_0x574f5c['uint32']();if(tag===_0x4eceef)break;switch(tag>>>0x3){case 0x1:_0x494837['data']=_0x574f5c['bytes']();break;case 0x2:_0x494837['data1']=_0x574f5c['bytes']();break;default:_0x574f5c['skipType'](0x7&tag,_0x58e3fa);}}return _0x494837;},BytesBytesPacketDataMessage['decodeDelimited']=function(_0xc7999c){return _0xc7999c instanceof _0x28908e||(_0xc7999c=new _0x28908e(_0xc7999c)),this['decode'](_0xc7999c,_0xc7999c['uint32']());},BytesBytesPacketDataMessage['verify']=function(_0x50a73d,_0x22d4b0){return'object'!=typeof _0x50a73d||null===_0x50a73d?'object\x20expected':(void 0x0===_0x22d4b0&&(_0x22d4b0=0x0),_0x22d4b0>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x50a73d['data']&&_0x50a73d['hasOwnProperty']('data')&&!(_0x50a73d['data']&&'number'==typeof _0x50a73d['data']['length']||$util['isString'](_0x50a73d['data']))?'data:\x20buffer\x20expected':null!=_0x50a73d['data1']&&_0x50a73d['hasOwnProperty']('data1')&&!(_0x50a73d['data1']&&'number'==typeof _0x50a73d['data1']['length']||$util['isString'](_0x50a73d['data1']))?'data1:\x20buffer\x20expected':null);},BytesBytesPacketDataMessage['fromObject']=function(object,_0x3c8475){if(object instanceof $root['BytesBytesPacketDataMessage'])return object;if(void 0x0===_0x3c8475&&(_0x3c8475=0x0),_0x3c8475>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x3f3636=new $root['BytesBytesPacketDataMessage']();return null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x3f3636['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x3f3636['data']=object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x3f3636['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x3f3636['data1']=object['data1'])),_0x3f3636;},BytesBytesPacketDataMessage['toObject']=function(_0x563574,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!=_0x563574['data']&&_0x563574['hasOwnProperty']('data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x563574['data'],0x0,_0x563574['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x563574['data']):_0x563574['data']),null!=_0x563574['data1']&&_0x563574['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x563574['data1'],0x0,_0x563574['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x563574['data1']):_0x563574['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 _0x18d701(properties){if(properties){for(var _0x5b2638=Object['keys'](properties),_0x43fa83=0x0;_0x43fa83<_0x5b2638['length'];++_0x43fa83)null!=properties[_0x5b2638[_0x43fa83]]&&'__proto__'!==_0x5b2638[_0x43fa83]&&(this[_0x5b2638[_0x43fa83]]=properties[_0x5b2638[_0x43fa83]]);}}return _0x18d701['prototype']['type']=0x0,_0x18d701['prototype']['socketId']='',_0x18d701['prototype']['data']=$util['newBuffer']([]),_0x18d701['create']=function(properties){return new _0x18d701(properties);},_0x18d701['encode']=function(_0xd747df,writer){return writer||(writer=$Writer['create']()),null!=_0xd747df['type']&&Object['hasOwnProperty']['call'](_0xd747df,'type')&&writer['uint32'](0x8)['uint32'](_0xd747df['type']),null!=_0xd747df['socketId']&&Object['hasOwnProperty']['call'](_0xd747df,'socketId')&&writer['uint32'](0x12)['string'](_0xd747df['socketId']),null!=_0xd747df['data']&&Object['hasOwnProperty']['call'](_0xd747df,'data')&&writer['uint32'](0x1a)['bytes'](_0xd747df['data']),writer;},_0x18d701['encodeDelimited']=function(_0x1924c3,writer){return this['encode'](_0x1924c3,writer)['ldelim']();},_0x18d701['decode']=function(_0xe38927,length,_0x5e63fd,_0x4f9e3a){if(_0xe38927 instanceof _0x28908e||(_0xe38927=_0x28908e['create'](_0xe38927)),void 0x0===_0x4f9e3a&&(_0x4f9e3a=0x0),_0x4f9e3a>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x173e03=void 0x0===length?_0xe38927['len']:_0xe38927['pos']+length,_0x5816b7=new $root['ChannelMessage']();_0xe38927['pos']<_0x173e03;){var tag=_0xe38927['uint32']();if(tag===_0x5e63fd)break;switch(tag>>>0x3){case 0x1:_0x5816b7['type']=_0xe38927['uint32']();break;case 0x2:_0x5816b7['socketId']=_0xe38927['string']();break;case 0x3:_0x5816b7['data']=_0xe38927['bytes']();break;default:_0xe38927['skipType'](0x7&tag,_0x4f9e3a);}}return _0x5816b7;},_0x18d701['decodeDelimited']=function(_0x2d1d80){return _0x2d1d80 instanceof _0x28908e||(_0x2d1d80=new _0x28908e(_0x2d1d80)),this['decode'](_0x2d1d80,_0x2d1d80['uint32']());},_0x18d701['verify']=function(_0x54c645,_0x1904af){return'object'!=typeof _0x54c645||null===_0x54c645?'object\x20expected':(void 0x0===_0x1904af&&(_0x1904af=0x0),_0x1904af>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x54c645['type']&&_0x54c645['hasOwnProperty']('type')&&!$util['isInteger'](_0x54c645['type'])?'type:\x20integer\x20expected':null!=_0x54c645['socketId']&&_0x54c645['hasOwnProperty']('socketId')&&!$util['isString'](_0x54c645['socketId'])?'socketId:\x20string\x20expected':null!=_0x54c645['data']&&_0x54c645['hasOwnProperty']('data')&&!(_0x54c645['data']&&'number'==typeof _0x54c645['data']['length']||$util['isString'](_0x54c645['data']))?'data:\x20buffer\x20expected':null);},_0x18d701['fromObject']=function(object,_0x949cad){if(object instanceof $root['ChannelMessage'])return object;if(void 0x0===_0x949cad&&(_0x949cad=0x0),_0x949cad>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x51cf3b=new $root['ChannelMessage']();return null!=object['type']&&(_0x51cf3b['type']=object['type']>>>0x0),null!=object['socketId']&&(_0x51cf3b['socketId']=String(object['socketId'])),null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x51cf3b['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x51cf3b['data']=object['data'])),_0x51cf3b;},_0x18d701['toObject']=function(_0x5591b0,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!=_0x5591b0['type']&&_0x5591b0['hasOwnProperty']('type')&&(object['type']=_0x5591b0['type']),null!=_0x5591b0['socketId']&&_0x5591b0['hasOwnProperty']('socketId')&&(object['socketId']=_0x5591b0['socketId']),null!=_0x5591b0['data']&&_0x5591b0['hasOwnProperty']('data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x5591b0['data'],0x0,_0x5591b0['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x5591b0['data']):_0x5591b0['data']),object;},_0x18d701['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},_0x18d701['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ChannelMessage';},_0x18d701;}()),$root['ChannelDisconnectedMessage']=(function(){function ChannelDisconnectedMessage(properties){if(properties){for(var _0x55e6df=Object['keys'](properties),_0x276399=0x0;_0x276399<_0x55e6df['length'];++_0x276399)null!=properties[_0x55e6df[_0x276399]]&&'__proto__'!==_0x55e6df[_0x276399]&&(this[_0x55e6df[_0x276399]]=properties[_0x55e6df[_0x276399]]);}}return ChannelDisconnectedMessage['create']=function(properties){return new ChannelDisconnectedMessage(properties);},ChannelDisconnectedMessage['encode']=function(_0x52cbf3,writer){return writer||(writer=$Writer['create']()),writer;},ChannelDisconnectedMessage['encodeDelimited']=function(_0x3c1aaf,writer){return this['encode'](_0x3c1aaf,writer)['ldelim']();},ChannelDisconnectedMessage['decode']=function(_0x413213,length,_0x2b9af9,_0x499b43){if(_0x413213 instanceof _0x28908e||(_0x413213=_0x28908e['create'](_0x413213)),void 0x0===_0x499b43&&(_0x499b43=0x0),_0x499b43>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x78cd52=void 0x0===length?_0x413213['len']:_0x413213['pos']+length,_0x3bbd5a=new $root['ChannelDisconnectedMessage']();_0x413213['pos']<_0x78cd52;){var tag=_0x413213['uint32']();if(tag===_0x2b9af9)break;_0x413213['skipType'](0x7&tag,_0x499b43);}return _0x3bbd5a;},ChannelDisconnectedMessage['decodeDelimited']=function(_0x471c70){return _0x471c70 instanceof _0x28908e||(_0x471c70=new _0x28908e(_0x471c70)),this['decode'](_0x471c70,_0x471c70['uint32']());},ChannelDisconnectedMessage['verify']=function(_0x572977,_0x4b9c0b){return'object'!=typeof _0x572977||null===_0x572977?'object\x20expected':(void 0x0===_0x4b9c0b&&(_0x4b9c0b=0x0),_0x4b9c0b>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null);},ChannelDisconnectedMessage['fromObject']=function(object,_0x515b54){if(object instanceof $root['ChannelDisconnectedMessage'])return object;if(void 0x0===_0x515b54&&(_0x515b54=0x0),_0x515b54>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');return new $root['ChannelDisconnectedMessage']();},ChannelDisconnectedMessage['toObject']=function(){return{};},ChannelDisconnectedMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},ChannelDisconnectedMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ChannelDisconnectedMessage';},ChannelDisconnectedMessage;}()),$root['GetUserResponse']=(function(){function GetUserResponse(properties){if(this['attributes']=[],properties){for(var _0x1057de=Object['keys'](properties),_0x174d94=0x0;_0x174d94<_0x1057de['length'];++_0x174d94)null!=properties[_0x1057de[_0x174d94]]&&'__proto__'!==_0x1057de[_0x174d94]&&(this[_0x1057de[_0x174d94]]=properties[_0x1057de[_0x174d94]]);}}return GetUserResponse['prototype']['attributes']=$util['emptyArray'],GetUserResponse['create']=function(properties){return new GetUserResponse(properties);},GetUserResponse['encode']=function(_0x4b422b,writer){if(writer||(writer=$Writer['create']()),null!=_0x4b422b['attributes']&&_0x4b422b['attributes']['length']){for(var _0x2ac969=0x0;_0x2ac969<_0x4b422b['attributes']['length'];++_0x2ac969)$root['KeyValueDescriptor']['encode'](_0x4b422b['attributes'][_0x2ac969],writer['uint32'](0xa)['fork']())['ldelim']();}return writer;},GetUserResponse['encodeDelimited']=function(_0x354572,writer){return this['encode'](_0x354572,writer)['ldelim']();},GetUserResponse['decode']=function(_0x5b0abc,length,_0x405a8d,_0x3e6011){if(_0x5b0abc instanceof _0x28908e||(_0x5b0abc=_0x28908e['create'](_0x5b0abc)),void 0x0===_0x3e6011&&(_0x3e6011=0x0),_0x3e6011>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x15aeca=void 0x0===length?_0x5b0abc['len']:_0x5b0abc['pos']+length,_0x45d380=new $root['GetUserResponse']();_0x5b0abc['pos']<_0x15aeca;){var tag=_0x5b0abc['uint32']();if(tag===_0x405a8d)break;if(tag>>>0x3==0x1)_0x45d380['attributes']&&_0x45d380['attributes']['length']||(_0x45d380['attributes']=[]),_0x45d380['attributes']['push']($root['KeyValueDescriptor']['decode'](_0x5b0abc,_0x5b0abc['uint32'](),void 0x0,_0x3e6011+0x1));else _0x5b0abc['skipType'](0x7&tag,_0x3e6011);}return _0x45d380;},GetUserResponse['decodeDelimited']=function(_0x591071){return _0x591071 instanceof _0x28908e||(_0x591071=new _0x28908e(_0x591071)),this['decode'](_0x591071,_0x591071['uint32']());},GetUserResponse['verify']=function(_0x596b54,_0x2bc8af){if('object'!=typeof _0x596b54||null===_0x596b54)return'object\x20expected';if(void 0x0===_0x2bc8af&&(_0x2bc8af=0x0),_0x2bc8af>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x596b54['attributes']&&_0x596b54['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x596b54['attributes']))return'attributes:\x20array\x20expected';for(var _0x456bed=0x0;_0x456bed<_0x596b54['attributes']['length'];++_0x456bed){var _0x520404=$root['KeyValueDescriptor']['verify'](_0x596b54['attributes'][_0x456bed],_0x2bc8af+0x1);if(_0x520404)return'attributes.'+_0x520404;}}return null;},GetUserResponse['fromObject']=function(object,_0xf4046e){if(object instanceof $root['GetUserResponse'])return object;if(void 0x0===_0xf4046e&&(_0xf4046e=0x0),_0xf4046e>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x3caa45=new $root['GetUserResponse']();if(object['attributes']){if(!Array['isArray'](object['attributes']))throw TypeError('.GetUserResponse.attributes:\x20array\x20expected');_0x3caa45['attributes']=[];for(var _0x4161c3=0x0;_0x4161c3<object['attributes']['length'];++_0x4161c3){if('object'!=typeof object['attributes'][_0x4161c3])throw TypeError('.GetUserResponse.attributes:\x20object\x20expected');_0x3caa45['attributes'][_0x4161c3]=$root['KeyValueDescriptor']['fromObject'](object['attributes'][_0x4161c3],_0xf4046e+0x1);}}return _0x3caa45;},GetUserResponse['toObject']=function(_0xe628c0,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['attributes']=[]),_0xe628c0['attributes']&&_0xe628c0['attributes']['length']){object['attributes']=[];for(var _0x9555b=0x0;_0x9555b<_0xe628c0['attributes']['length'];++_0x9555b)object['attributes'][_0x9555b]=$root['KeyValueDescriptor']['toObject'](_0xe628c0['attributes'][_0x9555b],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 _0x3e641f=Object['keys'](properties),_0x604cca=0x0;_0x604cca<_0x3e641f['length'];++_0x604cca)null!=properties[_0x3e641f[_0x604cca]]&&'__proto__'!==_0x3e641f[_0x604cca]&&(this[_0x3e641f[_0x604cca]]=properties[_0x3e641f[_0x604cca]]);}}return GetManyUsersResponse['prototype']['users']=$util['emptyArray'],GetManyUsersResponse['create']=function(properties){return new GetManyUsersResponse(properties);},GetManyUsersResponse['encode']=function(_0x58c307,writer){if(writer||(writer=$Writer['create']()),null!=_0x58c307['users']&&_0x58c307['users']['length']){for(var _0x2c1373=0x0;_0x2c1373<_0x58c307['users']['length'];++_0x2c1373)$root['UserDescriptor']['encode'](_0x58c307['users'][_0x2c1373],writer['uint32'](0xa)['fork']())['ldelim']();}return writer;},GetManyUsersResponse['encodeDelimited']=function(_0x458bf1,writer){return this['encode'](_0x458bf1,writer)['ldelim']();},GetManyUsersResponse['decode']=function(_0x3e2ac5,length,_0x5d433e,_0x1793a0){if(_0x3e2ac5 instanceof _0x28908e||(_0x3e2ac5=_0x28908e['create'](_0x3e2ac5)),void 0x0===_0x1793a0&&(_0x1793a0=0x0),_0x1793a0>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x27a268=void 0x0===length?_0x3e2ac5['len']:_0x3e2ac5['pos']+length,_0x405a6e=new $root['GetManyUsersResponse']();_0x3e2ac5['pos']<_0x27a268;){var tag=_0x3e2ac5['uint32']();if(tag===_0x5d433e)break;if(tag>>>0x3==0x1)_0x405a6e['users']&&_0x405a6e['users']['length']||(_0x405a6e['users']=[]),_0x405a6e['users']['push']($root['UserDescriptor']['decode'](_0x3e2ac5,_0x3e2ac5['uint32'](),void 0x0,_0x1793a0+0x1));else _0x3e2ac5['skipType'](0x7&tag,_0x1793a0);}return _0x405a6e;},GetManyUsersResponse['decodeDelimited']=function(_0x3dc886){return _0x3dc886 instanceof _0x28908e||(_0x3dc886=new _0x28908e(_0x3dc886)),this['decode'](_0x3dc886,_0x3dc886['uint32']());},GetManyUsersResponse['verify']=function(_0x50e11b,_0x34225b){if('object'!=typeof _0x50e11b||null===_0x50e11b)return'object\x20expected';if(void 0x0===_0x34225b&&(_0x34225b=0x0),_0x34225b>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x50e11b['users']&&_0x50e11b['hasOwnProperty']('users')){if(!Array['isArray'](_0x50e11b['users']))return'users:\x20array\x20expected';for(var _0x4529de=0x0;_0x4529de<_0x50e11b['users']['length'];++_0x4529de){var _0x13fc0f=$root['UserDescriptor']['verify'](_0x50e11b['users'][_0x4529de],_0x34225b+0x1);if(_0x13fc0f)return'users.'+_0x13fc0f;}}return null;},GetManyUsersResponse['fromObject']=function(object,_0x1dc8e6){if(object instanceof $root['GetManyUsersResponse'])return object;if(void 0x0===_0x1dc8e6&&(_0x1dc8e6=0x0),_0x1dc8e6>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1ae3fd=new $root['GetManyUsersResponse']();if(object['users']){if(!Array['isArray'](object['users']))throw TypeError('.GetManyUsersResponse.users:\x20array\x20expected');_0x1ae3fd['users']=[];for(var _0x1dba1f=0x0;_0x1dba1f<object['users']['length'];++_0x1dba1f){if('object'!=typeof object['users'][_0x1dba1f])throw TypeError('.GetManyUsersResponse.users:\x20object\x20expected');_0x1ae3fd['users'][_0x1dba1f]=$root['UserDescriptor']['fromObject'](object['users'][_0x1dba1f],_0x1dc8e6+0x1);}}return _0x1ae3fd;},GetManyUsersResponse['toObject']=function(_0x3770bf,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['users']=[]),_0x3770bf['users']&&_0x3770bf['users']['length']){object['users']=[];for(var _0x345e6f=0x0;_0x345e6f<_0x3770bf['users']['length'];++_0x345e6f)object['users'][_0x345e6f]=$root['UserDescriptor']['toObject'](_0x3770bf['users'][_0x345e6f],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 _0x513287=Object['keys'](properties),_0xec7f5f=0x0;_0xec7f5f<_0x513287['length'];++_0xec7f5f)null!=properties[_0x513287[_0xec7f5f]]&&'__proto__'!==_0x513287[_0xec7f5f]&&(this[_0x513287[_0xec7f5f]]=properties[_0x513287[_0xec7f5f]]);}}return GetUserMessage['prototype']['id']='',GetUserMessage['create']=function(properties){return new GetUserMessage(properties);},GetUserMessage['encode']=function(_0x3954fd,writer){return writer||(writer=$Writer['create']()),null!=_0x3954fd['id']&&Object['hasOwnProperty']['call'](_0x3954fd,'id')&&writer['uint32'](0xa)['string'](_0x3954fd['id']),writer;},GetUserMessage['encodeDelimited']=function(_0x1cbf1c,writer){return this['encode'](_0x1cbf1c,writer)['ldelim']();},GetUserMessage['decode']=function(_0x1caedc,length,_0x2fee39,_0x372db7){if(_0x1caedc instanceof _0x28908e||(_0x1caedc=_0x28908e['create'](_0x1caedc)),void 0x0===_0x372db7&&(_0x372db7=0x0),_0x372db7>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1269a2=void 0x0===length?_0x1caedc['len']:_0x1caedc['pos']+length,_0x585eab=new $root['GetUserMessage']();_0x1caedc['pos']<_0x1269a2;){var tag=_0x1caedc['uint32']();if(tag===_0x2fee39)break;if(tag>>>0x3==0x1)_0x585eab['id']=_0x1caedc['string']();else _0x1caedc['skipType'](0x7&tag,_0x372db7);}return _0x585eab;},GetUserMessage['decodeDelimited']=function(_0x2b8f89){return _0x2b8f89 instanceof _0x28908e||(_0x2b8f89=new _0x28908e(_0x2b8f89)),this['decode'](_0x2b8f89,_0x2b8f89['uint32']());},GetUserMessage['verify']=function(_0x37abb7,_0x1679a4){return'object'!=typeof _0x37abb7||null===_0x37abb7?'object\x20expected':(void 0x0===_0x1679a4&&(_0x1679a4=0x0),_0x1679a4>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x37abb7['id']&&_0x37abb7['hasOwnProperty']('id')&&!$util['isString'](_0x37abb7['id'])?'id:\x20string\x20expected':null);},GetUserMessage['fromObject']=function(object,_0x3fb70a){if(object instanceof $root['GetUserMessage'])return object;if(void 0x0===_0x3fb70a&&(_0x3fb70a=0x0),_0x3fb70a>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x4c5b99=new $root['GetUserMessage']();return null!=object['id']&&(_0x4c5b99['id']=String(object['id'])),_0x4c5b99;},GetUserMessage['toObject']=function(_0x2bc985,options){options||(options={});var object={};return options['defaults']&&(object['id']=''),null!=_0x2bc985['id']&&_0x2bc985['hasOwnProperty']('id')&&(object['id']=_0x2bc985['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 _0x11ce70=Object['keys'](properties),_0x3db1f0=0x0;_0x3db1f0<_0x11ce70['length'];++_0x3db1f0)null!=properties[_0x11ce70[_0x3db1f0]]&&'__proto__'!==_0x11ce70[_0x3db1f0]&&(this[_0x11ce70[_0x3db1f0]]=properties[_0x11ce70[_0x3db1f0]]);}}return GetManyUsersMessage['prototype']['ids']=$util['emptyArray'],GetManyUsersMessage['create']=function(properties){return new GetManyUsersMessage(properties);},GetManyUsersMessage['encode']=function(_0x241052,writer){if(writer||(writer=$Writer['create']()),null!=_0x241052['ids']&&_0x241052['ids']['length']){for(var _0x407653=0x0;_0x407653<_0x241052['ids']['length'];++_0x407653)writer['uint32'](0xa)['string'](_0x241052['ids'][_0x407653]);}return writer;},GetManyUsersMessage['encodeDelimited']=function(_0x56f9aa,writer){return this['encode'](_0x56f9aa,writer)['ldelim']();},GetManyUsersMessage['decode']=function(_0x3d342f,length,_0x3142f7,_0x30069e){if(_0x3d342f instanceof _0x28908e||(_0x3d342f=_0x28908e['create'](_0x3d342f)),void 0x0===_0x30069e&&(_0x30069e=0x0),_0x30069e>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x58a491=void 0x0===length?_0x3d342f['len']:_0x3d342f['pos']+length,_0x308834=new $root['GetManyUsersMessage']();_0x3d342f['pos']<_0x58a491;){var tag=_0x3d342f['uint32']();if(tag===_0x3142f7)break;if(tag>>>0x3==0x1)_0x308834['ids']&&_0x308834['ids']['length']||(_0x308834['ids']=[]),_0x308834['ids']['push'](_0x3d342f['string']());else _0x3d342f['skipType'](0x7&tag,_0x30069e);}return _0x308834;},GetManyUsersMessage['decodeDelimited']=function(_0x3a0edf){return _0x3a0edf instanceof _0x28908e||(_0x3a0edf=new _0x28908e(_0x3a0edf)),this['decode'](_0x3a0edf,_0x3a0edf['uint32']());},GetManyUsersMessage['verify']=function(_0xe1ec48,_0x33cd13){if('object'!=typeof _0xe1ec48||null===_0xe1ec48)return'object\x20expected';if(void 0x0===_0x33cd13&&(_0x33cd13=0x0),_0x33cd13>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0xe1ec48['ids']&&_0xe1ec48['hasOwnProperty']('ids')){if(!Array['isArray'](_0xe1ec48['ids']))return'ids:\x20array\x20expected';for(var _0x44eff0=0x0;_0x44eff0<_0xe1ec48['ids']['length'];++_0x44eff0)if(!$util['isString'](_0xe1ec48['ids'][_0x44eff0]))return'ids:\x20string[]\x20expected';}return null;},GetManyUsersMessage['fromObject']=function(object,_0x326f09){if(object instanceof $root['GetManyUsersMessage'])return object;if(void 0x0===_0x326f09&&(_0x326f09=0x0),_0x326f09>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5f0613=new $root['GetManyUsersMessage']();if(object['ids']){if(!Array['isArray'](object['ids']))throw TypeError('.GetManyUsersMessage.ids:\x20array\x20expected');_0x5f0613['ids']=[];for(var _0x45b7ec=0x0;_0x45b7ec<object['ids']['length'];++_0x45b7ec)_0x5f0613['ids'][_0x45b7ec]=String(object['ids'][_0x45b7ec]);}return _0x5f0613;},GetManyUsersMessage['toObject']=function(_0x3da8c6,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['ids']=[]),_0x3da8c6['ids']&&_0x3da8c6['ids']['length']){object['ids']=[];for(var _0x32d9c1=0x0;_0x32d9c1<_0x3da8c6['ids']['length'];++_0x32d9c1)object['ids'][_0x32d9c1]=_0x3da8c6['ids'][_0x32d9c1];}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 _0xcbc98b=Object['keys'](properties),_0x33f78d=0x0;_0x33f78d<_0xcbc98b['length'];++_0x33f78d)null!=properties[_0xcbc98b[_0x33f78d]]&&'__proto__'!==_0xcbc98b[_0x33f78d]&&(this[_0xcbc98b[_0x33f78d]]=properties[_0xcbc98b[_0x33f78d]]);}}return UserDescriptor['prototype']['attributes']=$util['emptyArray'],UserDescriptor['create']=function(properties){return new UserDescriptor(properties);},UserDescriptor['encode']=function(_0x4e0b5e,writer){if(writer||(writer=$Writer['create']()),null!=_0x4e0b5e['attributes']&&_0x4e0b5e['attributes']['length']){for(var _0x1fff1a=0x0;_0x1fff1a<_0x4e0b5e['attributes']['length'];++_0x1fff1a)$root['KeyValueDescriptor']['encode'](_0x4e0b5e['attributes'][_0x1fff1a],writer['uint32'](0xa)['fork']())['ldelim']();}return writer;},UserDescriptor['encodeDelimited']=function(_0x2b3815,writer){return this['encode'](_0x2b3815,writer)['ldelim']();},UserDescriptor['decode']=function(_0x1fb92a,length,_0x53f883,_0x3e059b){if(_0x1fb92a instanceof _0x28908e||(_0x1fb92a=_0x28908e['create'](_0x1fb92a)),void 0x0===_0x3e059b&&(_0x3e059b=0x0),_0x3e059b>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5855c6=void 0x0===length?_0x1fb92a['len']:_0x1fb92a['pos']+length,_0xd255f2=new $root['UserDescriptor']();_0x1fb92a['pos']<_0x5855c6;){var tag=_0x1fb92a['uint32']();if(tag===_0x53f883)break;if(tag>>>0x3==0x1)_0xd255f2['attributes']&&_0xd255f2['attributes']['length']||(_0xd255f2['attributes']=[]),_0xd255f2['attributes']['push']($root['KeyValueDescriptor']['decode'](_0x1fb92a,_0x1fb92a['uint32'](),void 0x0,_0x3e059b+0x1));else _0x1fb92a['skipType'](0x7&tag,_0x3e059b);}return _0xd255f2;},UserDescriptor['decodeDelimited']=function(_0x2a3656){return _0x2a3656 instanceof _0x28908e||(_0x2a3656=new _0x28908e(_0x2a3656)),this['decode'](_0x2a3656,_0x2a3656['uint32']());},UserDescriptor['verify']=function(_0x564bc4,_0x2cb6c7){if('object'!=typeof _0x564bc4||null===_0x564bc4)return'object\x20expected';if(void 0x0===_0x2cb6c7&&(_0x2cb6c7=0x0),_0x2cb6c7>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x564bc4['attributes']&&_0x564bc4['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x564bc4['attributes']))return'attributes:\x20array\x20expected';for(var _0x188c27=0x0;_0x188c27<_0x564bc4['attributes']['length'];++_0x188c27){var _0x276902=$root['KeyValueDescriptor']['verify'](_0x564bc4['attributes'][_0x188c27],_0x2cb6c7+0x1);if(_0x276902)return'attributes.'+_0x276902;}}return null;},UserDescriptor['fromObject']=function(object,_0x163726){if(object instanceof $root['UserDescriptor'])return object;if(void 0x0===_0x163726&&(_0x163726=0x0),_0x163726>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xc59e7f=new $root['UserDescriptor']();if(object['attributes']){if(!Array['isArray'](object['attributes']))throw TypeError('.UserDescriptor.attributes:\x20array\x20expected');_0xc59e7f['attributes']=[];for(var _0x18147f=0x0;_0x18147f<object['attributes']['length'];++_0x18147f){if('object'!=typeof object['attributes'][_0x18147f])throw TypeError('.UserDescriptor.attributes:\x20object\x20expected');_0xc59e7f['attributes'][_0x18147f]=$root['KeyValueDescriptor']['fromObject'](object['attributes'][_0x18147f],_0x163726+0x1);}}return _0xc59e7f;},UserDescriptor['toObject']=function(_0x29e8f6,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['attributes']=[]),_0x29e8f6['attributes']&&_0x29e8f6['attributes']['length']){object['attributes']=[];for(var _0x36360f=0x0;_0x36360f<_0x29e8f6['attributes']['length'];++_0x36360f)object['attributes'][_0x36360f]=$root['KeyValueDescriptor']['toObject'](_0x29e8f6['attributes'][_0x36360f],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 _0x2fb478=Object['keys'](properties),_0x2cea7f=0x0;_0x2cea7f<_0x2fb478['length'];++_0x2cea7f)null!=properties[_0x2fb478[_0x2cea7f]]&&'__proto__'!==_0x2fb478[_0x2cea7f]&&(this[_0x2fb478[_0x2cea7f]]=properties[_0x2fb478[_0x2cea7f]]);}}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(_0x2b767e,writer){return writer||(writer=$Writer['create']()),null!=_0x2b767e['id']&&Object['hasOwnProperty']['call'](_0x2b767e,'id')&&writer['uint32'](0xa)['string'](_0x2b767e['id']),null!=_0x2b767e['authorId']&&Object['hasOwnProperty']['call'](_0x2b767e,'authorId')&&writer['uint32'](0x12)['string'](_0x2b767e['authorId']),null!=_0x2b767e['type']&&Object['hasOwnProperty']['call'](_0x2b767e,'type')&&writer['uint32'](0x1a)['string'](_0x2b767e['type']),null!=_0x2b767e['createdAt']&&Object['hasOwnProperty']['call'](_0x2b767e,'createdAt')&&writer['uint32'](0x22)['string'](_0x2b767e['createdAt']),null!=_0x2b767e['data']&&Object['hasOwnProperty']['call'](_0x2b767e,'data')&&writer['uint32'](0x2a)['string'](_0x2b767e['data']),null!=_0x2b767e['hasComments']&&Object['hasOwnProperty']['call'](_0x2b767e,'hasComments')&&writer['uint32'](0x30)['bool'](_0x2b767e['hasComments']),null!=_0x2b767e['state']&&Object['hasOwnProperty']['call'](_0x2b767e,'state')&&writer['uint32'](0x3a)['string'](_0x2b767e['state']),null!=_0x2b767e['attributes']&&Object['hasOwnProperty']['call'](_0x2b767e,'attributes')&&writer['uint32'](0x42)['string'](_0x2b767e['attributes']),writer;},TrackChangesGetSuggestionResponse['encodeDelimited']=function(_0x2d6cf5,writer){return this['encode'](_0x2d6cf5,writer)['ldelim']();},TrackChangesGetSuggestionResponse['decode']=function(_0x582eb4,length,_0xbe3d3a,_0x278a7d){if(_0x582eb4 instanceof _0x28908e||(_0x582eb4=_0x28908e['create'](_0x582eb4)),void 0x0===_0x278a7d&&(_0x278a7d=0x0),_0x278a7d>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5bb894=void 0x0===length?_0x582eb4['len']:_0x582eb4['pos']+length,_0x4e81ed=new $root['TrackChangesGetSuggestionResponse']();_0x582eb4['pos']<_0x5bb894;){var tag=_0x582eb4['uint32']();if(tag===_0xbe3d3a)break;switch(tag>>>0x3){case 0x1:_0x4e81ed['id']=_0x582eb4['string']();break;case 0x2:_0x4e81ed['authorId']=_0x582eb4['string']();break;case 0x3:_0x4e81ed['type']=_0x582eb4['string']();break;case 0x4:_0x4e81ed['createdAt']=_0x582eb4['string']();break;case 0x5:_0x4e81ed['data']=_0x582eb4['string']();break;case 0x6:_0x4e81ed['hasComments']=_0x582eb4['bool']();break;case 0x7:_0x4e81ed['state']=_0x582eb4['string']();break;case 0x8:_0x4e81ed['attributes']=_0x582eb4['string']();break;default:_0x582eb4['skipType'](0x7&tag,_0x278a7d);}}return _0x4e81ed;},TrackChangesGetSuggestionResponse['decodeDelimited']=function(_0x4601b7){return _0x4601b7 instanceof _0x28908e||(_0x4601b7=new _0x28908e(_0x4601b7)),this['decode'](_0x4601b7,_0x4601b7['uint32']());},TrackChangesGetSuggestionResponse['verify']=function(_0x3aebb2,_0x9d1218){return'object'!=typeof _0x3aebb2||null===_0x3aebb2?'object\x20expected':(void 0x0===_0x9d1218&&(_0x9d1218=0x0),_0x9d1218>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3aebb2['id']&&_0x3aebb2['hasOwnProperty']('id')&&!$util['isString'](_0x3aebb2['id'])?'id:\x20string\x20expected':null!=_0x3aebb2['authorId']&&_0x3aebb2['hasOwnProperty']('authorId')&&!$util['isString'](_0x3aebb2['authorId'])?'authorId:\x20string\x20expected':null!=_0x3aebb2['type']&&_0x3aebb2['hasOwnProperty']('type')&&!$util['isString'](_0x3aebb2['type'])?'type:\x20string\x20expected':null!=_0x3aebb2['createdAt']&&_0x3aebb2['hasOwnProperty']('createdAt')&&!$util['isString'](_0x3aebb2['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3aebb2['data']&&_0x3aebb2['hasOwnProperty']('data')&&!$util['isString'](_0x3aebb2['data'])?'data:\x20string\x20expected':null!=_0x3aebb2['hasComments']&&_0x3aebb2['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x3aebb2['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x3aebb2['state']&&_0x3aebb2['hasOwnProperty']('state')&&!$util['isString'](_0x3aebb2['state'])?'state:\x20string\x20expected':null!=_0x3aebb2['attributes']&&_0x3aebb2['hasOwnProperty']('attributes')&&!$util['isString'](_0x3aebb2['attributes'])?'attributes:\x20string\x20expected':null);},TrackChangesGetSuggestionResponse['fromObject']=function(object,_0x5e6984){if(object instanceof $root['TrackChangesGetSuggestionResponse'])return object;if(void 0x0===_0x5e6984&&(_0x5e6984=0x0),_0x5e6984>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5955e7=new $root['TrackChangesGetSuggestionResponse']();return null!=object['id']&&(_0x5955e7['id']=String(object['id'])),null!=object['authorId']&&(_0x5955e7['authorId']=String(object['authorId'])),null!=object['type']&&(_0x5955e7['type']=String(object['type'])),null!=object['createdAt']&&(_0x5955e7['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x5955e7['data']=String(object['data'])),null!=object['hasComments']&&(_0x5955e7['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x5955e7['state']=String(object['state'])),null!=object['attributes']&&(_0x5955e7['attributes']=String(object['attributes'])),_0x5955e7;},TrackChangesGetSuggestionResponse['toObject']=function(_0x289097,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!=_0x289097['id']&&_0x289097['hasOwnProperty']('id')&&(object['id']=_0x289097['id']),null!=_0x289097['authorId']&&_0x289097['hasOwnProperty']('authorId')&&(object['authorId']=_0x289097['authorId']),null!=_0x289097['type']&&_0x289097['hasOwnProperty']('type')&&(object['type']=_0x289097['type']),null!=_0x289097['createdAt']&&_0x289097['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x289097['createdAt']),null!=_0x289097['data']&&_0x289097['hasOwnProperty']('data')&&(object['data']=_0x289097['data']),null!=_0x289097['hasComments']&&_0x289097['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x289097['hasComments']),null!=_0x289097['state']&&_0x289097['hasOwnProperty']('state')&&(object['state']=_0x289097['state']),null!=_0x289097['attributes']&&_0x289097['hasOwnProperty']('attributes')&&(object['attributes']=_0x289097['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 _0x5b8e07=Object['keys'](properties),_0x15b39f=0x0;_0x15b39f<_0x5b8e07['length'];++_0x15b39f)null!=properties[_0x5b8e07[_0x15b39f]]&&'__proto__'!==_0x5b8e07[_0x15b39f]&&(this[_0x5b8e07[_0x15b39f]]=properties[_0x5b8e07[_0x15b39f]]);}}return TrackChangesGetAllSuggestionsResponse['prototype']['suggestions']=$util['emptyArray'],TrackChangesGetAllSuggestionsResponse['prototype']['suggestionsV2']=$util['emptyArray'],TrackChangesGetAllSuggestionsResponse['create']=function(properties){return new TrackChangesGetAllSuggestionsResponse(properties);},TrackChangesGetAllSuggestionsResponse['encode']=function(_0x4c352c,writer){if(writer||(writer=$Writer['create']()),null!=_0x4c352c['suggestions']&&_0x4c352c['suggestions']['length']){for(var _0x3e4f2c=0x0;_0x3e4f2c<_0x4c352c['suggestions']['length'];++_0x3e4f2c)writer['uint32'](0xa)['string'](_0x4c352c['suggestions'][_0x3e4f2c]);}if(null!=_0x4c352c['suggestionsV2']&&_0x4c352c['suggestionsV2']['length']){for(_0x3e4f2c=0x0;_0x3e4f2c<_0x4c352c['suggestionsV2']['length'];++_0x3e4f2c)$root['SuggestionDescriptor']['encode'](_0x4c352c['suggestionsV2'][_0x3e4f2c],writer['uint32'](0x12)['fork']())['ldelim']();}return writer;},TrackChangesGetAllSuggestionsResponse['encodeDelimited']=function(_0x2b9a87,writer){return this['encode'](_0x2b9a87,writer)['ldelim']();},TrackChangesGetAllSuggestionsResponse['decode']=function(_0x1c90a5,length,_0x4527dc,_0x3ec633){if(_0x1c90a5 instanceof _0x28908e||(_0x1c90a5=_0x28908e['create'](_0x1c90a5)),void 0x0===_0x3ec633&&(_0x3ec633=0x0),_0x3ec633>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x58acb8=void 0x0===length?_0x1c90a5['len']:_0x1c90a5['pos']+length,_0x508659=new $root['TrackChangesGetAllSuggestionsResponse']();_0x1c90a5['pos']<_0x58acb8;){var tag=_0x1c90a5['uint32']();if(tag===_0x4527dc)break;switch(tag>>>0x3){case 0x1:_0x508659['suggestions']&&_0x508659['suggestions']['length']||(_0x508659['suggestions']=[]),_0x508659['suggestions']['push'](_0x1c90a5['string']());break;case 0x2:_0x508659['suggestionsV2']&&_0x508659['suggestionsV2']['length']||(_0x508659['suggestionsV2']=[]),_0x508659['suggestionsV2']['push']($root['SuggestionDescriptor']['decode'](_0x1c90a5,_0x1c90a5['uint32'](),void 0x0,_0x3ec633+0x1));break;default:_0x1c90a5['skipType'](0x7&tag,_0x3ec633);}}return _0x508659;},TrackChangesGetAllSuggestionsResponse['decodeDelimited']=function(_0x12f1eb){return _0x12f1eb instanceof _0x28908e||(_0x12f1eb=new _0x28908e(_0x12f1eb)),this['decode'](_0x12f1eb,_0x12f1eb['uint32']());},TrackChangesGetAllSuggestionsResponse['verify']=function(_0x71e3e5,_0x21f679){if('object'!=typeof _0x71e3e5||null===_0x71e3e5)return'object\x20expected';if(void 0x0===_0x21f679&&(_0x21f679=0x0),_0x21f679>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x71e3e5['suggestions']&&_0x71e3e5['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x71e3e5['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x4160f8=0x0;_0x4160f8<_0x71e3e5['suggestions']['length'];++_0x4160f8)if(!$util['isString'](_0x71e3e5['suggestions'][_0x4160f8]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x71e3e5['suggestionsV2']&&_0x71e3e5['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x71e3e5['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x4160f8=0x0;_0x4160f8<_0x71e3e5['suggestionsV2']['length'];++_0x4160f8){var _0x143179=$root['SuggestionDescriptor']['verify'](_0x71e3e5['suggestionsV2'][_0x4160f8],_0x21f679+0x1);if(_0x143179)return'suggestionsV2.'+_0x143179;}}return null;},TrackChangesGetAllSuggestionsResponse['fromObject']=function(object,_0x3322ba){if(object instanceof $root['TrackChangesGetAllSuggestionsResponse'])return object;if(void 0x0===_0x3322ba&&(_0x3322ba=0x0),_0x3322ba>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x20fa99=new $root['TrackChangesGetAllSuggestionsResponse']();if(object['suggestions']){if(!Array['isArray'](object['suggestions']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestions:\x20array\x20expected');_0x20fa99['suggestions']=[];for(var _0x2bf80d=0x0;_0x2bf80d<object['suggestions']['length'];++_0x2bf80d)_0x20fa99['suggestions'][_0x2bf80d]=String(object['suggestions'][_0x2bf80d]);}if(object['suggestionsV2']){if(!Array['isArray'](object['suggestionsV2']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20array\x20expected');_0x20fa99['suggestionsV2']=[];for(_0x2bf80d=0x0;_0x2bf80d<object['suggestionsV2']['length'];++_0x2bf80d){if('object'!=typeof object['suggestionsV2'][_0x2bf80d])throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20object\x20expected');_0x20fa99['suggestionsV2'][_0x2bf80d]=$root['SuggestionDescriptor']['fromObject'](object['suggestionsV2'][_0x2bf80d],_0x3322ba+0x1);}}return _0x20fa99;},TrackChangesGetAllSuggestionsResponse['toObject']=function(_0x2c6f37,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['suggestions']=[],object['suggestionsV2']=[]),_0x2c6f37['suggestions']&&_0x2c6f37['suggestions']['length']){object['suggestions']=[];for(var _0x513ceb=0x0;_0x513ceb<_0x2c6f37['suggestions']['length'];++_0x513ceb)object['suggestions'][_0x513ceb]=_0x2c6f37['suggestions'][_0x513ceb];}if(_0x2c6f37['suggestionsV2']&&_0x2c6f37['suggestionsV2']['length']){object['suggestionsV2']=[];for(_0x513ceb=0x0;_0x513ceb<_0x2c6f37['suggestionsV2']['length'];++_0x513ceb)object['suggestionsV2'][_0x513ceb]=$root['SuggestionDescriptor']['toObject'](_0x2c6f37['suggestionsV2'][_0x513ceb],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 _0x296280=Object['keys'](properties),_0x4e2f80=0x0;_0x4e2f80<_0x296280['length'];++_0x4e2f80)null!=properties[_0x296280[_0x4e2f80]]&&'__proto__'!==_0x296280[_0x4e2f80]&&(this[_0x296280[_0x4e2f80]]=properties[_0x296280[_0x4e2f80]]);}}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(_0xe77c1a,writer){if(writer||(writer=$Writer['create']()),null!=_0xe77c1a['channel']&&Object['hasOwnProperty']['call'](_0xe77c1a,'channel')&&writer['uint32'](0xa)['string'](_0xe77c1a['channel']),null!=_0xe77c1a['suggestions']&&_0xe77c1a['suggestions']['length']){for(var _0x438cf4=0x0;_0x438cf4<_0xe77c1a['suggestions']['length'];++_0x438cf4)writer['uint32'](0x12)['string'](_0xe77c1a['suggestions'][_0x438cf4]);}if(null!=_0xe77c1a['suggestionsV2']&&_0xe77c1a['suggestionsV2']['length']){for(_0x438cf4=0x0;_0x438cf4<_0xe77c1a['suggestionsV2']['length'];++_0x438cf4)$root['SuggestionDescriptor']['encode'](_0xe77c1a['suggestionsV2'][_0x438cf4],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},TrackChangesConnectResponse['encodeDelimited']=function(_0x9cd99d,writer){return this['encode'](_0x9cd99d,writer)['ldelim']();},TrackChangesConnectResponse['decode']=function(_0x3b555f,length,_0x4b9e2d,_0x3b1b36){if(_0x3b555f instanceof _0x28908e||(_0x3b555f=_0x28908e['create'](_0x3b555f)),void 0x0===_0x3b1b36&&(_0x3b1b36=0x0),_0x3b1b36>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x17a7d4=void 0x0===length?_0x3b555f['len']:_0x3b555f['pos']+length,_0x461629=new $root['TrackChangesConnectResponse']();_0x3b555f['pos']<_0x17a7d4;){var tag=_0x3b555f['uint32']();if(tag===_0x4b9e2d)break;switch(tag>>>0x3){case 0x1:_0x461629['channel']=_0x3b555f['string']();break;case 0x2:_0x461629['suggestions']&&_0x461629['suggestions']['length']||(_0x461629['suggestions']=[]),_0x461629['suggestions']['push'](_0x3b555f['string']());break;case 0x3:_0x461629['suggestionsV2']&&_0x461629['suggestionsV2']['length']||(_0x461629['suggestionsV2']=[]),_0x461629['suggestionsV2']['push']($root['SuggestionDescriptor']['decode'](_0x3b555f,_0x3b555f['uint32'](),void 0x0,_0x3b1b36+0x1));break;default:_0x3b555f['skipType'](0x7&tag,_0x3b1b36);}}return _0x461629;},TrackChangesConnectResponse['decodeDelimited']=function(_0x291dd5){return _0x291dd5 instanceof _0x28908e||(_0x291dd5=new _0x28908e(_0x291dd5)),this['decode'](_0x291dd5,_0x291dd5['uint32']());},TrackChangesConnectResponse['verify']=function(_0x2df639,_0x3facf6){if('object'!=typeof _0x2df639||null===_0x2df639)return'object\x20expected';if(void 0x0===_0x3facf6&&(_0x3facf6=0x0),_0x3facf6>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x2df639['channel']&&_0x2df639['hasOwnProperty']('channel')&&!$util['isString'](_0x2df639['channel']))return'channel:\x20string\x20expected';if(null!=_0x2df639['suggestions']&&_0x2df639['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x2df639['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x258f0d=0x0;_0x258f0d<_0x2df639['suggestions']['length'];++_0x258f0d)if(!$util['isString'](_0x2df639['suggestions'][_0x258f0d]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x2df639['suggestionsV2']&&_0x2df639['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x2df639['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x258f0d=0x0;_0x258f0d<_0x2df639['suggestionsV2']['length'];++_0x258f0d){var _0x91a6b3=$root['SuggestionDescriptor']['verify'](_0x2df639['suggestionsV2'][_0x258f0d],_0x3facf6+0x1);if(_0x91a6b3)return'suggestionsV2.'+_0x91a6b3;}}return null;},TrackChangesConnectResponse['fromObject']=function(object,_0x3327c7){if(object instanceof $root['TrackChangesConnectResponse'])return object;if(void 0x0===_0x3327c7&&(_0x3327c7=0x0),_0x3327c7>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x347757=new $root['TrackChangesConnectResponse']();if(null!=object['channel']&&(_0x347757['channel']=String(object['channel'])),object['suggestions']){if(!Array['isArray'](object['suggestions']))throw TypeError('.TrackChangesConnectResponse.suggestions:\x20array\x20expected');_0x347757['suggestions']=[];for(var _0x1ba042=0x0;_0x1ba042<object['suggestions']['length'];++_0x1ba042)_0x347757['suggestions'][_0x1ba042]=String(object['suggestions'][_0x1ba042]);}if(object['suggestionsV2']){if(!Array['isArray'](object['suggestionsV2']))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20array\x20expected');_0x347757['suggestionsV2']=[];for(_0x1ba042=0x0;_0x1ba042<object['suggestionsV2']['length'];++_0x1ba042){if('object'!=typeof object['suggestionsV2'][_0x1ba042])throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20object\x20expected');_0x347757['suggestionsV2'][_0x1ba042]=$root['SuggestionDescriptor']['fromObject'](object['suggestionsV2'][_0x1ba042],_0x3327c7+0x1);}}return _0x347757;},TrackChangesConnectResponse['toObject']=function(_0x32e44c,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['suggestions']=[],object['suggestionsV2']=[]),options['defaults']&&(object['channel']=''),null!=_0x32e44c['channel']&&_0x32e44c['hasOwnProperty']('channel')&&(object['channel']=_0x32e44c['channel']),_0x32e44c['suggestions']&&_0x32e44c['suggestions']['length']){object['suggestions']=[];for(var _0x5766ec=0x0;_0x5766ec<_0x32e44c['suggestions']['length'];++_0x5766ec)object['suggestions'][_0x5766ec]=_0x32e44c['suggestions'][_0x5766ec];}if(_0x32e44c['suggestionsV2']&&_0x32e44c['suggestionsV2']['length']){object['suggestionsV2']=[];for(_0x5766ec=0x0;_0x5766ec<_0x32e44c['suggestionsV2']['length'];++_0x5766ec)object['suggestionsV2'][_0x5766ec]=$root['SuggestionDescriptor']['toObject'](_0x32e44c['suggestionsV2'][_0x5766ec],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 _0xeedd74=Object['keys'](properties),_0x1bd6c3=0x0;_0x1bd6c3<_0xeedd74['length'];++_0x1bd6c3)null!=properties[_0xeedd74[_0x1bd6c3]]&&'__proto__'!==_0xeedd74[_0x1bd6c3]&&(this[_0xeedd74[_0x1bd6c3]]=properties[_0xeedd74[_0x1bd6c3]]);}}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(_0x1985b6,writer){return writer||(writer=$Writer['create']()),null!=_0x1985b6['id']&&Object['hasOwnProperty']['call'](_0x1985b6,'id')&&writer['uint32'](0xa)['string'](_0x1985b6['id']),null!=_0x1985b6['authorId']&&Object['hasOwnProperty']['call'](_0x1985b6,'authorId')&&writer['uint32'](0x12)['string'](_0x1985b6['authorId']),null!=_0x1985b6['type']&&Object['hasOwnProperty']['call'](_0x1985b6,'type')&&writer['uint32'](0x1a)['string'](_0x1985b6['type']),null!=_0x1985b6['createdAt']&&Object['hasOwnProperty']['call'](_0x1985b6,'createdAt')&&writer['uint32'](0x22)['string'](_0x1985b6['createdAt']),null!=_0x1985b6['data']&&Object['hasOwnProperty']['call'](_0x1985b6,'data')&&writer['uint32'](0x2a)['string'](_0x1985b6['data']),null!=_0x1985b6['hasComments']&&Object['hasOwnProperty']['call'](_0x1985b6,'hasComments')&&writer['uint32'](0x30)['bool'](_0x1985b6['hasComments']),null!=_0x1985b6['state']&&Object['hasOwnProperty']['call'](_0x1985b6,'state')&&writer['uint32'](0x3a)['string'](_0x1985b6['state']),null!=_0x1985b6['attributes']&&Object['hasOwnProperty']['call'](_0x1985b6,'attributes')&&writer['uint32'](0x42)['string'](_0x1985b6['attributes']),writer;},TrackChangesAddSuggestionResponse['encodeDelimited']=function(_0xfe7eab,writer){return this['encode'](_0xfe7eab,writer)['ldelim']();},TrackChangesAddSuggestionResponse['decode']=function(_0x196f2f,length,_0x37df9d,_0x436e93){if(_0x196f2f instanceof _0x28908e||(_0x196f2f=_0x28908e['create'](_0x196f2f)),void 0x0===_0x436e93&&(_0x436e93=0x0),_0x436e93>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3f5725=void 0x0===length?_0x196f2f['len']:_0x196f2f['pos']+length,_0x12d5a7=new $root['TrackChangesAddSuggestionResponse']();_0x196f2f['pos']<_0x3f5725;){var tag=_0x196f2f['uint32']();if(tag===_0x37df9d)break;switch(tag>>>0x3){case 0x1:_0x12d5a7['id']=_0x196f2f['string']();break;case 0x2:_0x12d5a7['authorId']=_0x196f2f['string']();break;case 0x3:_0x12d5a7['type']=_0x196f2f['string']();break;case 0x4:_0x12d5a7['createdAt']=_0x196f2f['string']();break;case 0x5:_0x12d5a7['data']=_0x196f2f['string']();break;case 0x6:_0x12d5a7['hasComments']=_0x196f2f['bool']();break;case 0x7:_0x12d5a7['state']=_0x196f2f['string']();break;case 0x8:_0x12d5a7['attributes']=_0x196f2f['string']();break;default:_0x196f2f['skipType'](0x7&tag,_0x436e93);}}return _0x12d5a7;},TrackChangesAddSuggestionResponse['decodeDelimited']=function(_0x433e5f){return _0x433e5f instanceof _0x28908e||(_0x433e5f=new _0x28908e(_0x433e5f)),this['decode'](_0x433e5f,_0x433e5f['uint32']());},TrackChangesAddSuggestionResponse['verify']=function(_0x9c3549,_0x43860e){return'object'!=typeof _0x9c3549||null===_0x9c3549?'object\x20expected':(void 0x0===_0x43860e&&(_0x43860e=0x0),_0x43860e>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x9c3549['id']&&_0x9c3549['hasOwnProperty']('id')&&!$util['isString'](_0x9c3549['id'])?'id:\x20string\x20expected':null!=_0x9c3549['authorId']&&_0x9c3549['hasOwnProperty']('authorId')&&!$util['isString'](_0x9c3549['authorId'])?'authorId:\x20string\x20expected':null!=_0x9c3549['type']&&_0x9c3549['hasOwnProperty']('type')&&!$util['isString'](_0x9c3549['type'])?'type:\x20string\x20expected':null!=_0x9c3549['createdAt']&&_0x9c3549['hasOwnProperty']('createdAt')&&!$util['isString'](_0x9c3549['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x9c3549['data']&&_0x9c3549['hasOwnProperty']('data')&&!$util['isString'](_0x9c3549['data'])?'data:\x20string\x20expected':null!=_0x9c3549['hasComments']&&_0x9c3549['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x9c3549['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x9c3549['state']&&_0x9c3549['hasOwnProperty']('state')&&!$util['isString'](_0x9c3549['state'])?'state:\x20string\x20expected':null!=_0x9c3549['attributes']&&_0x9c3549['hasOwnProperty']('attributes')&&!$util['isString'](_0x9c3549['attributes'])?'attributes:\x20string\x20expected':null);},TrackChangesAddSuggestionResponse['fromObject']=function(object,_0x4a867f){if(object instanceof $root['TrackChangesAddSuggestionResponse'])return object;if(void 0x0===_0x4a867f&&(_0x4a867f=0x0),_0x4a867f>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x35d48f=new $root['TrackChangesAddSuggestionResponse']();return null!=object['id']&&(_0x35d48f['id']=String(object['id'])),null!=object['authorId']&&(_0x35d48f['authorId']=String(object['authorId'])),null!=object['type']&&(_0x35d48f['type']=String(object['type'])),null!=object['createdAt']&&(_0x35d48f['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x35d48f['data']=String(object['data'])),null!=object['hasComments']&&(_0x35d48f['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x35d48f['state']=String(object['state'])),null!=object['attributes']&&(_0x35d48f['attributes']=String(object['attributes'])),_0x35d48f;},TrackChangesAddSuggestionResponse['toObject']=function(_0x1e262c,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!=_0x1e262c['id']&&_0x1e262c['hasOwnProperty']('id')&&(object['id']=_0x1e262c['id']),null!=_0x1e262c['authorId']&&_0x1e262c['hasOwnProperty']('authorId')&&(object['authorId']=_0x1e262c['authorId']),null!=_0x1e262c['type']&&_0x1e262c['hasOwnProperty']('type')&&(object['type']=_0x1e262c['type']),null!=_0x1e262c['createdAt']&&_0x1e262c['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x1e262c['createdAt']),null!=_0x1e262c['data']&&_0x1e262c['hasOwnProperty']('data')&&(object['data']=_0x1e262c['data']),null!=_0x1e262c['hasComments']&&_0x1e262c['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x1e262c['hasComments']),null!=_0x1e262c['state']&&_0x1e262c['hasOwnProperty']('state')&&(object['state']=_0x1e262c['state']),null!=_0x1e262c['attributes']&&_0x1e262c['hasOwnProperty']('attributes')&&(object['attributes']=_0x1e262c['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 _0x5a0053=Object['keys'](properties),_0x4e5d53=0x0;_0x4e5d53<_0x5a0053['length'];++_0x4e5d53)null!=properties[_0x5a0053[_0x4e5d53]]&&'__proto__'!==_0x5a0053[_0x4e5d53]&&(this[_0x5a0053[_0x4e5d53]]=properties[_0x5a0053[_0x4e5d53]]);}}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(_0x3989b3,writer){return writer||(writer=$Writer['create']()),null!=_0x3989b3['id']&&Object['hasOwnProperty']['call'](_0x3989b3,'id')&&writer['uint32'](0xa)['string'](_0x3989b3['id']),null!=_0x3989b3['documentId']&&Object['hasOwnProperty']['call'](_0x3989b3,'documentId')&&writer['uint32'](0x12)['string'](_0x3989b3['documentId']),null!=_0x3989b3['hasComments']&&Object['hasOwnProperty']['call'](_0x3989b3,'hasComments')&&writer['uint32'](0x18)['bool'](_0x3989b3['hasComments']),null!=_0x3989b3['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x3989b3,'isHasCommentsModified')&&writer['uint32'](0x20)['bool'](_0x3989b3['isHasCommentsModified']),null!=_0x3989b3['state']&&Object['hasOwnProperty']['call'](_0x3989b3,'state')&&writer['uint32'](0x2a)['string'](_0x3989b3['state']),null!=_0x3989b3['attributes']&&Object['hasOwnProperty']['call'](_0x3989b3,'attributes')&&writer['uint32'](0x32)['string'](_0x3989b3['attributes']),writer;},TrackChangesUpdateSuggestionMessage['encodeDelimited']=function(_0x1f4cbf,writer){return this['encode'](_0x1f4cbf,writer)['ldelim']();},TrackChangesUpdateSuggestionMessage['decode']=function(_0x14d82b,length,_0x11992d,_0x537f9d){if(_0x14d82b instanceof _0x28908e||(_0x14d82b=_0x28908e['create'](_0x14d82b)),void 0x0===_0x537f9d&&(_0x537f9d=0x0),_0x537f9d>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x351954=void 0x0===length?_0x14d82b['len']:_0x14d82b['pos']+length,_0x57a4b3=new $root['TrackChangesUpdateSuggestionMessage']();_0x14d82b['pos']<_0x351954;){var tag=_0x14d82b['uint32']();if(tag===_0x11992d)break;switch(tag>>>0x3){case 0x1:_0x57a4b3['id']=_0x14d82b['string']();break;case 0x2:_0x57a4b3['documentId']=_0x14d82b['string']();break;case 0x3:_0x57a4b3['hasComments']=_0x14d82b['bool']();break;case 0x4:_0x57a4b3['isHasCommentsModified']=_0x14d82b['bool']();break;case 0x5:_0x57a4b3['state']=_0x14d82b['string']();break;case 0x6:_0x57a4b3['attributes']=_0x14d82b['string']();break;default:_0x14d82b['skipType'](0x7&tag,_0x537f9d);}}return _0x57a4b3;},TrackChangesUpdateSuggestionMessage['decodeDelimited']=function(_0x1c7d32){return _0x1c7d32 instanceof _0x28908e||(_0x1c7d32=new _0x28908e(_0x1c7d32)),this['decode'](_0x1c7d32,_0x1c7d32['uint32']());},TrackChangesUpdateSuggestionMessage['verify']=function(_0xd6df66,_0x4ddce4){return'object'!=typeof _0xd6df66||null===_0xd6df66?'object\x20expected':(void 0x0===_0x4ddce4&&(_0x4ddce4=0x0),_0x4ddce4>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0xd6df66['id']&&_0xd6df66['hasOwnProperty']('id')&&!$util['isString'](_0xd6df66['id'])?'id:\x20string\x20expected':null!=_0xd6df66['documentId']&&_0xd6df66['hasOwnProperty']('documentId')&&!$util['isString'](_0xd6df66['documentId'])?'documentId:\x20string\x20expected':null!=_0xd6df66['hasComments']&&_0xd6df66['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0xd6df66['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0xd6df66['isHasCommentsModified']&&_0xd6df66['hasOwnProperty']('isHasCommentsModified')&&'boolean'!=typeof _0xd6df66['isHasCommentsModified']?'isHasCommentsModified:\x20boolean\x20expected':null!=_0xd6df66['state']&&_0xd6df66['hasOwnProperty']('state')&&!$util['isString'](_0xd6df66['state'])?'state:\x20string\x20expected':null!=_0xd6df66['attributes']&&_0xd6df66['hasOwnProperty']('attributes')&&!$util['isString'](_0xd6df66['attributes'])?'attributes:\x20string\x20expected':null);},TrackChangesUpdateSuggestionMessage['fromObject']=function(object,_0x5cb656){if(object instanceof $root['TrackChangesUpdateSuggestionMessage'])return object;if(void 0x0===_0x5cb656&&(_0x5cb656=0x0),_0x5cb656>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1e76cf=new $root['TrackChangesUpdateSuggestionMessage']();return null!=object['id']&&(_0x1e76cf['id']=String(object['id'])),null!=object['documentId']&&(_0x1e76cf['documentId']=String(object['documentId'])),null!=object['hasComments']&&(_0x1e76cf['hasComments']=Boolean(object['hasComments'])),null!=object['isHasCommentsModified']&&(_0x1e76cf['isHasCommentsModified']=Boolean(object['isHasCommentsModified'])),null!=object['state']&&(_0x1e76cf['state']=String(object['state'])),null!=object['attributes']&&(_0x1e76cf['attributes']=String(object['attributes'])),_0x1e76cf;},TrackChangesUpdateSuggestionMessage['toObject']=function(_0x1fda53,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['documentId']='',object['hasComments']=!0x1,object['isHasCommentsModified']=!0x1,object['state']='',object['attributes']=''),null!=_0x1fda53['id']&&_0x1fda53['hasOwnProperty']('id')&&(object['id']=_0x1fda53['id']),null!=_0x1fda53['documentId']&&_0x1fda53['hasOwnProperty']('documentId')&&(object['documentId']=_0x1fda53['documentId']),null!=_0x1fda53['hasComments']&&_0x1fda53['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x1fda53['hasComments']),null!=_0x1fda53['isHasCommentsModified']&&_0x1fda53['hasOwnProperty']('isHasCommentsModified')&&(object['isHasCommentsModified']=_0x1fda53['isHasCommentsModified']),null!=_0x1fda53['state']&&_0x1fda53['hasOwnProperty']('state')&&(object['state']=_0x1fda53['state']),null!=_0x1fda53['attributes']&&_0x1fda53['hasOwnProperty']('attributes')&&(object['attributes']=_0x1fda53['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 _0x448986=Object['keys'](properties),_0x45aaf8=0x0;_0x45aaf8<_0x448986['length'];++_0x45aaf8)null!=properties[_0x448986[_0x45aaf8]]&&'__proto__'!==_0x448986[_0x45aaf8]&&(this[_0x448986[_0x45aaf8]]=properties[_0x448986[_0x45aaf8]]);}}return TrackChangesGetSuggestionMessage['prototype']['id']='',TrackChangesGetSuggestionMessage['prototype']['documentId']='',TrackChangesGetSuggestionMessage['create']=function(properties){return new TrackChangesGetSuggestionMessage(properties);},TrackChangesGetSuggestionMessage['encode']=function(_0x1ad655,writer){return writer||(writer=$Writer['create']()),null!=_0x1ad655['id']&&Object['hasOwnProperty']['call'](_0x1ad655,'id')&&writer['uint32'](0xa)['string'](_0x1ad655['id']),null!=_0x1ad655['documentId']&&Object['hasOwnProperty']['call'](_0x1ad655,'documentId')&&writer['uint32'](0x12)['string'](_0x1ad655['documentId']),writer;},TrackChangesGetSuggestionMessage['encodeDelimited']=function(_0x5600ef,writer){return this['encode'](_0x5600ef,writer)['ldelim']();},TrackChangesGetSuggestionMessage['decode']=function(_0x32f5e2,length,_0x3928cc,_0x405b45){if(_0x32f5e2 instanceof _0x28908e||(_0x32f5e2=_0x28908e['create'](_0x32f5e2)),void 0x0===_0x405b45&&(_0x405b45=0x0),_0x405b45>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x16e749=void 0x0===length?_0x32f5e2['len']:_0x32f5e2['pos']+length,_0x4aa27a=new $root['TrackChangesGetSuggestionMessage']();_0x32f5e2['pos']<_0x16e749;){var tag=_0x32f5e2['uint32']();if(tag===_0x3928cc)break;switch(tag>>>0x3){case 0x1:_0x4aa27a['id']=_0x32f5e2['string']();break;case 0x2:_0x4aa27a['documentId']=_0x32f5e2['string']();break;default:_0x32f5e2['skipType'](0x7&tag,_0x405b45);}}return _0x4aa27a;},TrackChangesGetSuggestionMessage['decodeDelimited']=function(_0x5e9c58){return _0x5e9c58 instanceof _0x28908e||(_0x5e9c58=new _0x28908e(_0x5e9c58)),this['decode'](_0x5e9c58,_0x5e9c58['uint32']());},TrackChangesGetSuggestionMessage['verify']=function(_0x103ae3,_0x143426){return'object'!=typeof _0x103ae3||null===_0x103ae3?'object\x20expected':(void 0x0===_0x143426&&(_0x143426=0x0),_0x143426>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x103ae3['id']&&_0x103ae3['hasOwnProperty']('id')&&!$util['isString'](_0x103ae3['id'])?'id:\x20string\x20expected':null!=_0x103ae3['documentId']&&_0x103ae3['hasOwnProperty']('documentId')&&!$util['isString'](_0x103ae3['documentId'])?'documentId:\x20string\x20expected':null);},TrackChangesGetSuggestionMessage['fromObject']=function(object,_0x4c2cc4){if(object instanceof $root['TrackChangesGetSuggestionMessage'])return object;if(void 0x0===_0x4c2cc4&&(_0x4c2cc4=0x0),_0x4c2cc4>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1eb304=new $root['TrackChangesGetSuggestionMessage']();return null!=object['id']&&(_0x1eb304['id']=String(object['id'])),null!=object['documentId']&&(_0x1eb304['documentId']=String(object['documentId'])),_0x1eb304;},TrackChangesGetSuggestionMessage['toObject']=function(_0x5ee398,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['documentId']=''),null!=_0x5ee398['id']&&_0x5ee398['hasOwnProperty']('id')&&(object['id']=_0x5ee398['id']),null!=_0x5ee398['documentId']&&_0x5ee398['hasOwnProperty']('documentId')&&(object['documentId']=_0x5ee398['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 _0x471001=Object['keys'](properties),_0x64bc60=0x0;_0x64bc60<_0x471001['length'];++_0x64bc60)null!=properties[_0x471001[_0x64bc60]]&&'__proto__'!==_0x471001[_0x64bc60]&&(this[_0x471001[_0x64bc60]]=properties[_0x471001[_0x64bc60]]);}}return TrackChangesGetAllSuggestionMessage['prototype']['documentId']='',TrackChangesGetAllSuggestionMessage['create']=function(properties){return new TrackChangesGetAllSuggestionMessage(properties);},TrackChangesGetAllSuggestionMessage['encode']=function(_0x3b152,writer){return writer||(writer=$Writer['create']()),null!=_0x3b152['documentId']&&Object['hasOwnProperty']['call'](_0x3b152,'documentId')&&writer['uint32'](0xa)['string'](_0x3b152['documentId']),writer;},TrackChangesGetAllSuggestionMessage['encodeDelimited']=function(_0x1d0d7a,writer){return this['encode'](_0x1d0d7a,writer)['ldelim']();},TrackChangesGetAllSuggestionMessage['decode']=function(_0x26aa2c,length,_0xc672fc,_0x590911){if(_0x26aa2c instanceof _0x28908e||(_0x26aa2c=_0x28908e['create'](_0x26aa2c)),void 0x0===_0x590911&&(_0x590911=0x0),_0x590911>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x393320=void 0x0===length?_0x26aa2c['len']:_0x26aa2c['pos']+length,_0x20d6c7=new $root['TrackChangesGetAllSuggestionMessage']();_0x26aa2c['pos']<_0x393320;){var tag=_0x26aa2c['uint32']();if(tag===_0xc672fc)break;if(tag>>>0x3==0x1)_0x20d6c7['documentId']=_0x26aa2c['string']();else _0x26aa2c['skipType'](0x7&tag,_0x590911);}return _0x20d6c7;},TrackChangesGetAllSuggestionMessage['decodeDelimited']=function(_0x4c7dc3){return _0x4c7dc3 instanceof _0x28908e||(_0x4c7dc3=new _0x28908e(_0x4c7dc3)),this['decode'](_0x4c7dc3,_0x4c7dc3['uint32']());},TrackChangesGetAllSuggestionMessage['verify']=function(_0x3bc785,_0x4d8bc6){return'object'!=typeof _0x3bc785||null===_0x3bc785?'object\x20expected':(void 0x0===_0x4d8bc6&&(_0x4d8bc6=0x0),_0x4d8bc6>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3bc785['documentId']&&_0x3bc785['hasOwnProperty']('documentId')&&!$util['isString'](_0x3bc785['documentId'])?'documentId:\x20string\x20expected':null);},TrackChangesGetAllSuggestionMessage['fromObject']=function(object,_0x315d7c){if(object instanceof $root['TrackChangesGetAllSuggestionMessage'])return object;if(void 0x0===_0x315d7c&&(_0x315d7c=0x0),_0x315d7c>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1bfc42=new $root['TrackChangesGetAllSuggestionMessage']();return null!=object['documentId']&&(_0x1bfc42['documentId']=String(object['documentId'])),_0x1bfc42;},TrackChangesGetAllSuggestionMessage['toObject']=function(_0x4dca10,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x4dca10['documentId']&&_0x4dca10['hasOwnProperty']('documentId')&&(object['documentId']=_0x4dca10['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 _0x1345e1=Object['keys'](properties),_0x3a07fc=0x0;_0x3a07fc<_0x1345e1['length'];++_0x3a07fc)null!=properties[_0x1345e1[_0x3a07fc]]&&'__proto__'!==_0x1345e1[_0x3a07fc]&&(this[_0x1345e1[_0x3a07fc]]=properties[_0x1345e1[_0x3a07fc]]);}}return TrackChangesConnectMessage['prototype']['documentId']='',TrackChangesConnectMessage['create']=function(properties){return new TrackChangesConnectMessage(properties);},TrackChangesConnectMessage['encode']=function(_0x2ba38a,writer){return writer||(writer=$Writer['create']()),null!=_0x2ba38a['documentId']&&Object['hasOwnProperty']['call'](_0x2ba38a,'documentId')&&writer['uint32'](0xa)['string'](_0x2ba38a['documentId']),writer;},TrackChangesConnectMessage['encodeDelimited']=function(_0x28a69a,writer){return this['encode'](_0x28a69a,writer)['ldelim']();},TrackChangesConnectMessage['decode']=function(_0x307fab,length,_0x15ef39,_0x17cd0a){if(_0x307fab instanceof _0x28908e||(_0x307fab=_0x28908e['create'](_0x307fab)),void 0x0===_0x17cd0a&&(_0x17cd0a=0x0),_0x17cd0a>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5dbc26=void 0x0===length?_0x307fab['len']:_0x307fab['pos']+length,_0xdc26ac=new $root['TrackChangesConnectMessage']();_0x307fab['pos']<_0x5dbc26;){var tag=_0x307fab['uint32']();if(tag===_0x15ef39)break;if(tag>>>0x3==0x1)_0xdc26ac['documentId']=_0x307fab['string']();else _0x307fab['skipType'](0x7&tag,_0x17cd0a);}return _0xdc26ac;},TrackChangesConnectMessage['decodeDelimited']=function(_0x4d3428){return _0x4d3428 instanceof _0x28908e||(_0x4d3428=new _0x28908e(_0x4d3428)),this['decode'](_0x4d3428,_0x4d3428['uint32']());},TrackChangesConnectMessage['verify']=function(_0xddae31,_0x5b2701){return'object'!=typeof _0xddae31||null===_0xddae31?'object\x20expected':(void 0x0===_0x5b2701&&(_0x5b2701=0x0),_0x5b2701>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0xddae31['documentId']&&_0xddae31['hasOwnProperty']('documentId')&&!$util['isString'](_0xddae31['documentId'])?'documentId:\x20string\x20expected':null);},TrackChangesConnectMessage['fromObject']=function(object,_0x1d1379){if(object instanceof $root['TrackChangesConnectMessage'])return object;if(void 0x0===_0x1d1379&&(_0x1d1379=0x0),_0x1d1379>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x511da0=new $root['TrackChangesConnectMessage']();return null!=object['documentId']&&(_0x511da0['documentId']=String(object['documentId'])),_0x511da0;},TrackChangesConnectMessage['toObject']=function(_0x1877f5,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x1877f5['documentId']&&_0x1877f5['hasOwnProperty']('documentId')&&(object['documentId']=_0x1877f5['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 _0x49ebdf=Object['keys'](properties),_0x4c6c5a=0x0;_0x4c6c5a<_0x49ebdf['length'];++_0x4c6c5a)null!=properties[_0x49ebdf[_0x4c6c5a]]&&'__proto__'!==_0x49ebdf[_0x4c6c5a]&&(this[_0x49ebdf[_0x4c6c5a]]=properties[_0x49ebdf[_0x4c6c5a]]);}}return TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['ids']=$util['emptyArray'],TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['documentId']='',TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['state']='',TrackChangesBatchUpdateSuggestionsStateMessage['create']=function(properties){return new TrackChangesBatchUpdateSuggestionsStateMessage(properties);},TrackChangesBatchUpdateSuggestionsStateMessage['encode']=function(_0x2f7a8d,writer){if(writer||(writer=$Writer['create']()),null!=_0x2f7a8d['ids']&&_0x2f7a8d['ids']['length']){for(var _0x4eee6f=0x0;_0x4eee6f<_0x2f7a8d['ids']['length'];++_0x4eee6f)writer['uint32'](0xa)['string'](_0x2f7a8d['ids'][_0x4eee6f]);}return null!=_0x2f7a8d['documentId']&&Object['hasOwnProperty']['call'](_0x2f7a8d,'documentId')&&writer['uint32'](0x12)['string'](_0x2f7a8d['documentId']),null!=_0x2f7a8d['state']&&Object['hasOwnProperty']['call'](_0x2f7a8d,'state')&&writer['uint32'](0x1a)['string'](_0x2f7a8d['state']),writer;},TrackChangesBatchUpdateSuggestionsStateMessage['encodeDelimited']=function(_0x2c77f9,writer){return this['encode'](_0x2c77f9,writer)['ldelim']();},TrackChangesBatchUpdateSuggestionsStateMessage['decode']=function(_0xe04040,length,_0x351716,_0x58e4a0){if(_0xe04040 instanceof _0x28908e||(_0xe04040=_0x28908e['create'](_0xe04040)),void 0x0===_0x58e4a0&&(_0x58e4a0=0x0),_0x58e4a0>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x36cb7b=void 0x0===length?_0xe04040['len']:_0xe04040['pos']+length,_0x4db028=new $root['TrackChangesBatchUpdateSuggestionsStateMessage']();_0xe04040['pos']<_0x36cb7b;){var tag=_0xe04040['uint32']();if(tag===_0x351716)break;switch(tag>>>0x3){case 0x1:_0x4db028['ids']&&_0x4db028['ids']['length']||(_0x4db028['ids']=[]),_0x4db028['ids']['push'](_0xe04040['string']());break;case 0x2:_0x4db028['documentId']=_0xe04040['string']();break;case 0x3:_0x4db028['state']=_0xe04040['string']();break;default:_0xe04040['skipType'](0x7&tag,_0x58e4a0);}}return _0x4db028;},TrackChangesBatchUpdateSuggestionsStateMessage['decodeDelimited']=function(_0x479276){return _0x479276 instanceof _0x28908e||(_0x479276=new _0x28908e(_0x479276)),this['decode'](_0x479276,_0x479276['uint32']());},TrackChangesBatchUpdateSuggestionsStateMessage['verify']=function(_0x5baa77,_0x26bf4d){if('object'!=typeof _0x5baa77||null===_0x5baa77)return'object\x20expected';if(void 0x0===_0x26bf4d&&(_0x26bf4d=0x0),_0x26bf4d>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x5baa77['ids']&&_0x5baa77['hasOwnProperty']('ids')){if(!Array['isArray'](_0x5baa77['ids']))return'ids:\x20array\x20expected';for(var _0x11ea00=0x0;_0x11ea00<_0x5baa77['ids']['length'];++_0x11ea00)if(!$util['isString'](_0x5baa77['ids'][_0x11ea00]))return'ids:\x20string[]\x20expected';}return null!=_0x5baa77['documentId']&&_0x5baa77['hasOwnProperty']('documentId')&&!$util['isString'](_0x5baa77['documentId'])?'documentId:\x20string\x20expected':null!=_0x5baa77['state']&&_0x5baa77['hasOwnProperty']('state')&&!$util['isString'](_0x5baa77['state'])?'state:\x20string\x20expected':null;},TrackChangesBatchUpdateSuggestionsStateMessage['fromObject']=function(object,_0x592807){if(object instanceof $root['TrackChangesBatchUpdateSuggestionsStateMessage'])return object;if(void 0x0===_0x592807&&(_0x592807=0x0),_0x592807>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1a6001=new $root['TrackChangesBatchUpdateSuggestionsStateMessage']();if(object['ids']){if(!Array['isArray'](object['ids']))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage.ids:\x20array\x20expected');_0x1a6001['ids']=[];for(var _0x29418d=0x0;_0x29418d<object['ids']['length'];++_0x29418d)_0x1a6001['ids'][_0x29418d]=String(object['ids'][_0x29418d]);}return null!=object['documentId']&&(_0x1a6001['documentId']=String(object['documentId'])),null!=object['state']&&(_0x1a6001['state']=String(object['state'])),_0x1a6001;},TrackChangesBatchUpdateSuggestionsStateMessage['toObject']=function(_0x2fe5ee,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['ids']=[]),options['defaults']&&(object['documentId']='',object['state']=''),_0x2fe5ee['ids']&&_0x2fe5ee['ids']['length']){object['ids']=[];for(var _0x1d659c=0x0;_0x1d659c<_0x2fe5ee['ids']['length'];++_0x1d659c)object['ids'][_0x1d659c]=_0x2fe5ee['ids'][_0x1d659c];}return null!=_0x2fe5ee['documentId']&&_0x2fe5ee['hasOwnProperty']('documentId')&&(object['documentId']=_0x2fe5ee['documentId']),null!=_0x2fe5ee['state']&&_0x2fe5ee['hasOwnProperty']('state')&&(object['state']=_0x2fe5ee['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 _0x41c200=Object['keys'](properties),_0x206790=0x0;_0x206790<_0x41c200['length'];++_0x206790)null!=properties[_0x41c200[_0x206790]]&&'__proto__'!==_0x41c200[_0x206790]&&(this[_0x41c200[_0x206790]]=properties[_0x41c200[_0x206790]]);}}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(_0x395443,writer){return writer||(writer=$Writer['create']()),null!=_0x395443['id']&&Object['hasOwnProperty']['call'](_0x395443,'id')&&writer['uint32'](0xa)['string'](_0x395443['id']),null!=_0x395443['documentId']&&Object['hasOwnProperty']['call'](_0x395443,'documentId')&&writer['uint32'](0x12)['string'](_0x395443['documentId']),null!=_0x395443['type']&&Object['hasOwnProperty']['call'](_0x395443,'type')&&writer['uint32'](0x1a)['string'](_0x395443['type']),null!=_0x395443['data']&&Object['hasOwnProperty']['call'](_0x395443,'data')&&writer['uint32'](0x22)['string'](_0x395443['data']),null!=_0x395443['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x395443,'originalSuggestionId')&&writer['uint32'](0x2a)['string'](_0x395443['originalSuggestionId']),null!=_0x395443['attributes']&&Object['hasOwnProperty']['call'](_0x395443,'attributes')&&writer['uint32'](0x32)['string'](_0x395443['attributes']),writer;},TrackChangesAddSuggestionMessage['encodeDelimited']=function(_0x11c5e4,writer){return this['encode'](_0x11c5e4,writer)['ldelim']();},TrackChangesAddSuggestionMessage['decode']=function(_0x220561,length,_0x128933,_0x1afdb1){if(_0x220561 instanceof _0x28908e||(_0x220561=_0x28908e['create'](_0x220561)),void 0x0===_0x1afdb1&&(_0x1afdb1=0x0),_0x1afdb1>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2449db=void 0x0===length?_0x220561['len']:_0x220561['pos']+length,_0x2c2438=new $root['TrackChangesAddSuggestionMessage']();_0x220561['pos']<_0x2449db;){var tag=_0x220561['uint32']();if(tag===_0x128933)break;switch(tag>>>0x3){case 0x1:_0x2c2438['id']=_0x220561['string']();break;case 0x2:_0x2c2438['documentId']=_0x220561['string']();break;case 0x3:_0x2c2438['type']=_0x220561['string']();break;case 0x4:_0x2c2438['data']=_0x220561['string']();break;case 0x5:_0x2c2438['originalSuggestionId']=_0x220561['string']();break;case 0x6:_0x2c2438['attributes']=_0x220561['string']();break;default:_0x220561['skipType'](0x7&tag,_0x1afdb1);}}return _0x2c2438;},TrackChangesAddSuggestionMessage['decodeDelimited']=function(_0x5c87c1){return _0x5c87c1 instanceof _0x28908e||(_0x5c87c1=new _0x28908e(_0x5c87c1)),this['decode'](_0x5c87c1,_0x5c87c1['uint32']());},TrackChangesAddSuggestionMessage['verify']=function(_0x295fe4,_0x36ed29){return'object'!=typeof _0x295fe4||null===_0x295fe4?'object\x20expected':(void 0x0===_0x36ed29&&(_0x36ed29=0x0),_0x36ed29>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x295fe4['id']&&_0x295fe4['hasOwnProperty']('id')&&!$util['isString'](_0x295fe4['id'])?'id:\x20string\x20expected':null!=_0x295fe4['documentId']&&_0x295fe4['hasOwnProperty']('documentId')&&!$util['isString'](_0x295fe4['documentId'])?'documentId:\x20string\x20expected':null!=_0x295fe4['type']&&_0x295fe4['hasOwnProperty']('type')&&!$util['isString'](_0x295fe4['type'])?'type:\x20string\x20expected':null!=_0x295fe4['data']&&_0x295fe4['hasOwnProperty']('data')&&!$util['isString'](_0x295fe4['data'])?'data:\x20string\x20expected':null!=_0x295fe4['originalSuggestionId']&&_0x295fe4['hasOwnProperty']('originalSuggestionId')&&!$util['isString'](_0x295fe4['originalSuggestionId'])?'originalSuggestionId:\x20string\x20expected':null!=_0x295fe4['attributes']&&_0x295fe4['hasOwnProperty']('attributes')&&!$util['isString'](_0x295fe4['attributes'])?'attributes:\x20string\x20expected':null);},TrackChangesAddSuggestionMessage['fromObject']=function(object,_0x5ef818){if(object instanceof $root['TrackChangesAddSuggestionMessage'])return object;if(void 0x0===_0x5ef818&&(_0x5ef818=0x0),_0x5ef818>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x347861=new $root['TrackChangesAddSuggestionMessage']();return null!=object['id']&&(_0x347861['id']=String(object['id'])),null!=object['documentId']&&(_0x347861['documentId']=String(object['documentId'])),null!=object['type']&&(_0x347861['type']=String(object['type'])),null!=object['data']&&(_0x347861['data']=String(object['data'])),null!=object['originalSuggestionId']&&(_0x347861['originalSuggestionId']=String(object['originalSuggestionId'])),null!=object['attributes']&&(_0x347861['attributes']=String(object['attributes'])),_0x347861;},TrackChangesAddSuggestionMessage['toObject']=function(_0x4fe0df,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['documentId']='',object['type']='',object['data']='',object['originalSuggestionId']='',object['attributes']=''),null!=_0x4fe0df['id']&&_0x4fe0df['hasOwnProperty']('id')&&(object['id']=_0x4fe0df['id']),null!=_0x4fe0df['documentId']&&_0x4fe0df['hasOwnProperty']('documentId')&&(object['documentId']=_0x4fe0df['documentId']),null!=_0x4fe0df['type']&&_0x4fe0df['hasOwnProperty']('type')&&(object['type']=_0x4fe0df['type']),null!=_0x4fe0df['data']&&_0x4fe0df['hasOwnProperty']('data')&&(object['data']=_0x4fe0df['data']),null!=_0x4fe0df['originalSuggestionId']&&_0x4fe0df['hasOwnProperty']('originalSuggestionId')&&(object['originalSuggestionId']=_0x4fe0df['originalSuggestionId']),null!=_0x4fe0df['attributes']&&_0x4fe0df['hasOwnProperty']('attributes')&&(object['attributes']=_0x4fe0df['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 _0x40b9e5=Object['keys'](properties),_0x1c4d5b=0x0;_0x1c4d5b<_0x40b9e5['length'];++_0x1c4d5b)null!=properties[_0x40b9e5[_0x1c4d5b]]&&'__proto__'!==_0x40b9e5[_0x1c4d5b]&&(this[_0x40b9e5[_0x1c4d5b]]=properties[_0x40b9e5[_0x1c4d5b]]);}}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(_0x22be28,writer){return writer||(writer=$Writer['create']()),null!=_0x22be28['id']&&Object['hasOwnProperty']['call'](_0x22be28,'id')&&writer['uint32'](0xa)['string'](_0x22be28['id']),null!=_0x22be28['authorId']&&Object['hasOwnProperty']['call'](_0x22be28,'authorId')&&writer['uint32'](0x12)['string'](_0x22be28['authorId']),null!=_0x22be28['type']&&Object['hasOwnProperty']['call'](_0x22be28,'type')&&writer['uint32'](0x1a)['string'](_0x22be28['type']),null!=_0x22be28['createdAt']&&Object['hasOwnProperty']['call'](_0x22be28,'createdAt')&&writer['uint32'](0x22)['string'](_0x22be28['createdAt']),null!=_0x22be28['data']&&Object['hasOwnProperty']['call'](_0x22be28,'data')&&writer['uint32'](0x2a)['string'](_0x22be28['data']),null!=_0x22be28['hasComments']&&Object['hasOwnProperty']['call'](_0x22be28,'hasComments')&&writer['uint32'](0x30)['bool'](_0x22be28['hasComments']),null!=_0x22be28['state']&&Object['hasOwnProperty']['call'](_0x22be28,'state')&&writer['uint32'](0x3a)['string'](_0x22be28['state']),null!=_0x22be28['attributes']&&Object['hasOwnProperty']['call'](_0x22be28,'attributes')&&writer['uint32'](0x42)['string'](_0x22be28['attributes']),writer;},SuggestionDescriptor['encodeDelimited']=function(_0x3ec9cb,writer){return this['encode'](_0x3ec9cb,writer)['ldelim']();},SuggestionDescriptor['decode']=function(_0x425ade,length,_0x520f7d,_0x4b58b3){if(_0x425ade instanceof _0x28908e||(_0x425ade=_0x28908e['create'](_0x425ade)),void 0x0===_0x4b58b3&&(_0x4b58b3=0x0),_0x4b58b3>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x26fbd7=void 0x0===length?_0x425ade['len']:_0x425ade['pos']+length,_0x5172af=new $root['SuggestionDescriptor']();_0x425ade['pos']<_0x26fbd7;){var tag=_0x425ade['uint32']();if(tag===_0x520f7d)break;switch(tag>>>0x3){case 0x1:_0x5172af['id']=_0x425ade['string']();break;case 0x2:_0x5172af['authorId']=_0x425ade['string']();break;case 0x3:_0x5172af['type']=_0x425ade['string']();break;case 0x4:_0x5172af['createdAt']=_0x425ade['string']();break;case 0x5:_0x5172af['data']=_0x425ade['string']();break;case 0x6:_0x5172af['hasComments']=_0x425ade['bool']();break;case 0x7:_0x5172af['state']=_0x425ade['string']();break;case 0x8:_0x5172af['attributes']=_0x425ade['string']();break;default:_0x425ade['skipType'](0x7&tag,_0x4b58b3);}}return _0x5172af;},SuggestionDescriptor['decodeDelimited']=function(_0x1c1651){return _0x1c1651 instanceof _0x28908e||(_0x1c1651=new _0x28908e(_0x1c1651)),this['decode'](_0x1c1651,_0x1c1651['uint32']());},SuggestionDescriptor['verify']=function(_0x3eebfe,_0x49d195){return'object'!=typeof _0x3eebfe||null===_0x3eebfe?'object\x20expected':(void 0x0===_0x49d195&&(_0x49d195=0x0),_0x49d195>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3eebfe['id']&&_0x3eebfe['hasOwnProperty']('id')&&!$util['isString'](_0x3eebfe['id'])?'id:\x20string\x20expected':null!=_0x3eebfe['authorId']&&_0x3eebfe['hasOwnProperty']('authorId')&&!$util['isString'](_0x3eebfe['authorId'])?'authorId:\x20string\x20expected':null!=_0x3eebfe['type']&&_0x3eebfe['hasOwnProperty']('type')&&!$util['isString'](_0x3eebfe['type'])?'type:\x20string\x20expected':null!=_0x3eebfe['createdAt']&&_0x3eebfe['hasOwnProperty']('createdAt')&&!$util['isString'](_0x3eebfe['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3eebfe['data']&&_0x3eebfe['hasOwnProperty']('data')&&!$util['isString'](_0x3eebfe['data'])?'data:\x20string\x20expected':null!=_0x3eebfe['hasComments']&&_0x3eebfe['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x3eebfe['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x3eebfe['state']&&_0x3eebfe['hasOwnProperty']('state')&&!$util['isString'](_0x3eebfe['state'])?'state:\x20string\x20expected':null!=_0x3eebfe['attributes']&&_0x3eebfe['hasOwnProperty']('attributes')&&!$util['isString'](_0x3eebfe['attributes'])?'attributes:\x20string\x20expected':null);},SuggestionDescriptor['fromObject']=function(object,_0x3e5ba9){if(object instanceof $root['SuggestionDescriptor'])return object;if(void 0x0===_0x3e5ba9&&(_0x3e5ba9=0x0),_0x3e5ba9>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x472000=new $root['SuggestionDescriptor']();return null!=object['id']&&(_0x472000['id']=String(object['id'])),null!=object['authorId']&&(_0x472000['authorId']=String(object['authorId'])),null!=object['type']&&(_0x472000['type']=String(object['type'])),null!=object['createdAt']&&(_0x472000['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x472000['data']=String(object['data'])),null!=object['hasComments']&&(_0x472000['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x472000['state']=String(object['state'])),null!=object['attributes']&&(_0x472000['attributes']=String(object['attributes'])),_0x472000;},SuggestionDescriptor['toObject']=function(_0x51edd6,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!=_0x51edd6['id']&&_0x51edd6['hasOwnProperty']('id')&&(object['id']=_0x51edd6['id']),null!=_0x51edd6['authorId']&&_0x51edd6['hasOwnProperty']('authorId')&&(object['authorId']=_0x51edd6['authorId']),null!=_0x51edd6['type']&&_0x51edd6['hasOwnProperty']('type')&&(object['type']=_0x51edd6['type']),null!=_0x51edd6['createdAt']&&_0x51edd6['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x51edd6['createdAt']),null!=_0x51edd6['data']&&_0x51edd6['hasOwnProperty']('data')&&(object['data']=_0x51edd6['data']),null!=_0x51edd6['hasComments']&&_0x51edd6['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x51edd6['hasComments']),null!=_0x51edd6['state']&&_0x51edd6['hasOwnProperty']('state')&&(object['state']=_0x51edd6['state']),null!=_0x51edd6['attributes']&&_0x51edd6['hasOwnProperty']('attributes')&&(object['attributes']=_0x51edd6['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 _0x29dda0=Object['keys'](properties),_0x455a09=0x0;_0x455a09<_0x29dda0['length'];++_0x455a09)null!=properties[_0x29dda0[_0x455a09]]&&'__proto__'!==_0x29dda0[_0x455a09]&&(this[_0x29dda0[_0x455a09]]=properties[_0x29dda0[_0x455a09]]);}}return SessionsConnectResponse['prototype']['channel']='',SessionsConnectResponse['prototype']['sockets']=$util['emptyArray'],SessionsConnectResponse['create']=function(properties){return new SessionsConnectResponse(properties);},SessionsConnectResponse['encode']=function(_0x532e3b,writer){if(writer||(writer=$Writer['create']()),null!=_0x532e3b['channel']&&Object['hasOwnProperty']['call'](_0x532e3b,'channel')&&writer['uint32'](0xa)['string'](_0x532e3b['channel']),null!=_0x532e3b['sockets']&&_0x532e3b['sockets']['length']){for(var _0x1eea33=0x0;_0x1eea33<_0x532e3b['sockets']['length'];++_0x1eea33)$root['SessionsSocketDescriptor']['encode'](_0x532e3b['sockets'][_0x1eea33],writer['uint32'](0x12)['fork']())['ldelim']();}return writer;},SessionsConnectResponse['encodeDelimited']=function(_0x24c872,writer){return this['encode'](_0x24c872,writer)['ldelim']();},SessionsConnectResponse['decode']=function(_0x1aa852,length,_0x2565ba,_0x139438){if(_0x1aa852 instanceof _0x28908e||(_0x1aa852=_0x28908e['create'](_0x1aa852)),void 0x0===_0x139438&&(_0x139438=0x0),_0x139438>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2a101d=void 0x0===length?_0x1aa852['len']:_0x1aa852['pos']+length,_0x30bab9=new $root['SessionsConnectResponse']();_0x1aa852['pos']<_0x2a101d;){var tag=_0x1aa852['uint32']();if(tag===_0x2565ba)break;switch(tag>>>0x3){case 0x1:_0x30bab9['channel']=_0x1aa852['string']();break;case 0x2:_0x30bab9['sockets']&&_0x30bab9['sockets']['length']||(_0x30bab9['sockets']=[]),_0x30bab9['sockets']['push']($root['SessionsSocketDescriptor']['decode'](_0x1aa852,_0x1aa852['uint32'](),void 0x0,_0x139438+0x1));break;default:_0x1aa852['skipType'](0x7&tag,_0x139438);}}return _0x30bab9;},SessionsConnectResponse['decodeDelimited']=function(_0x2d5962){return _0x2d5962 instanceof _0x28908e||(_0x2d5962=new _0x28908e(_0x2d5962)),this['decode'](_0x2d5962,_0x2d5962['uint32']());},SessionsConnectResponse['verify']=function(_0x2a9f84,_0x1422ea){if('object'!=typeof _0x2a9f84||null===_0x2a9f84)return'object\x20expected';if(void 0x0===_0x1422ea&&(_0x1422ea=0x0),_0x1422ea>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x2a9f84['channel']&&_0x2a9f84['hasOwnProperty']('channel')&&!$util['isString'](_0x2a9f84['channel']))return'channel:\x20string\x20expected';if(null!=_0x2a9f84['sockets']&&_0x2a9f84['hasOwnProperty']('sockets')){if(!Array['isArray'](_0x2a9f84['sockets']))return'sockets:\x20array\x20expected';for(var _0x32dcbd=0x0;_0x32dcbd<_0x2a9f84['sockets']['length'];++_0x32dcbd){var _0x5b69cc=$root['SessionsSocketDescriptor']['verify'](_0x2a9f84['sockets'][_0x32dcbd],_0x1422ea+0x1);if(_0x5b69cc)return'sockets.'+_0x5b69cc;}}return null;},SessionsConnectResponse['fromObject']=function(object,_0x210e23){if(object instanceof $root['SessionsConnectResponse'])return object;if(void 0x0===_0x210e23&&(_0x210e23=0x0),_0x210e23>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x33ce07=new $root['SessionsConnectResponse']();if(null!=object['channel']&&(_0x33ce07['channel']=String(object['channel'])),object['sockets']){if(!Array['isArray'](object['sockets']))throw TypeError('.SessionsConnectResponse.sockets:\x20array\x20expected');_0x33ce07['sockets']=[];for(var _0x3340af=0x0;_0x3340af<object['sockets']['length'];++_0x3340af){if('object'!=typeof object['sockets'][_0x3340af])throw TypeError('.SessionsConnectResponse.sockets:\x20object\x20expected');_0x33ce07['sockets'][_0x3340af]=$root['SessionsSocketDescriptor']['fromObject'](object['sockets'][_0x3340af],_0x210e23+0x1);}}return _0x33ce07;},SessionsConnectResponse['toObject']=function(_0x3d032f,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['sockets']=[]),options['defaults']&&(object['channel']=''),null!=_0x3d032f['channel']&&_0x3d032f['hasOwnProperty']('channel')&&(object['channel']=_0x3d032f['channel']),_0x3d032f['sockets']&&_0x3d032f['sockets']['length']){object['sockets']=[];for(var _0x17d310=0x0;_0x17d310<_0x3d032f['sockets']['length'];++_0x17d310)object['sockets'][_0x17d310]=$root['SessionsSocketDescriptor']['toObject'](_0x3d032f['sockets'][_0x17d310],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 _0x44e28f=Object['keys'](properties),_0x53821c=0x0;_0x53821c<_0x44e28f['length'];++_0x53821c)null!=properties[_0x44e28f[_0x53821c]]&&'__proto__'!==_0x44e28f[_0x53821c]&&(this[_0x44e28f[_0x53821c]]=properties[_0x44e28f[_0x53821c]]);}}return SocketDisconnectMessage['prototype']['id']='',SocketDisconnectMessage['create']=function(properties){return new SocketDisconnectMessage(properties);},SocketDisconnectMessage['encode']=function(_0x59aa52,writer){return writer||(writer=$Writer['create']()),null!=_0x59aa52['id']&&Object['hasOwnProperty']['call'](_0x59aa52,'id')&&writer['uint32'](0xa)['string'](_0x59aa52['id']),writer;},SocketDisconnectMessage['encodeDelimited']=function(_0x5d850e,writer){return this['encode'](_0x5d850e,writer)['ldelim']();},SocketDisconnectMessage['decode']=function(_0x58aacf,length,_0x11d101,_0x5bab75){if(_0x58aacf instanceof _0x28908e||(_0x58aacf=_0x28908e['create'](_0x58aacf)),void 0x0===_0x5bab75&&(_0x5bab75=0x0),_0x5bab75>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x491a18=void 0x0===length?_0x58aacf['len']:_0x58aacf['pos']+length,_0x5a1c43=new $root['SocketDisconnectMessage']();_0x58aacf['pos']<_0x491a18;){var tag=_0x58aacf['uint32']();if(tag===_0x11d101)break;if(tag>>>0x3==0x1)_0x5a1c43['id']=_0x58aacf['string']();else _0x58aacf['skipType'](0x7&tag,_0x5bab75);}return _0x5a1c43;},SocketDisconnectMessage['decodeDelimited']=function(_0x2dce4f){return _0x2dce4f instanceof _0x28908e||(_0x2dce4f=new _0x28908e(_0x2dce4f)),this['decode'](_0x2dce4f,_0x2dce4f['uint32']());},SocketDisconnectMessage['verify']=function(_0x2b8e05,_0x5bb2b6){return'object'!=typeof _0x2b8e05||null===_0x2b8e05?'object\x20expected':(void 0x0===_0x5bb2b6&&(_0x5bb2b6=0x0),_0x5bb2b6>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x2b8e05['id']&&_0x2b8e05['hasOwnProperty']('id')&&!$util['isString'](_0x2b8e05['id'])?'id:\x20string\x20expected':null);},SocketDisconnectMessage['fromObject']=function(object,_0x279d5f){if(object instanceof $root['SocketDisconnectMessage'])return object;if(void 0x0===_0x279d5f&&(_0x279d5f=0x0),_0x279d5f>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5b4b0c=new $root['SocketDisconnectMessage']();return null!=object['id']&&(_0x5b4b0c['id']=String(object['id'])),_0x5b4b0c;},SocketDisconnectMessage['toObject']=function(_0x2ad082,options){options||(options={});var object={};return options['defaults']&&(object['id']=''),null!=_0x2ad082['id']&&_0x2ad082['hasOwnProperty']('id')&&(object['id']=_0x2ad082['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 _0x4e0a01=Object['keys'](properties),_0x4a939d=0x0;_0x4a939d<_0x4e0a01['length'];++_0x4a939d)null!=properties[_0x4e0a01[_0x4a939d]]&&'__proto__'!==_0x4e0a01[_0x4a939d]&&(this[_0x4e0a01[_0x4a939d]]=properties[_0x4e0a01[_0x4a939d]]);}}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(_0x5a06a3,writer){if(writer||(writer=$Writer['create']()),null!=_0x5a06a3['id']&&Object['hasOwnProperty']['call'](_0x5a06a3,'id')&&writer['uint32'](0xa)['string'](_0x5a06a3['id']),null!=_0x5a06a3['userId']&&Object['hasOwnProperty']['call'](_0x5a06a3,'userId')&&writer['uint32'](0x12)['string'](_0x5a06a3['userId']),null!=_0x5a06a3['role']&&Object['hasOwnProperty']['call'](_0x5a06a3,'role')&&writer['uint32'](0x1a)['string'](_0x5a06a3['role']),null!=_0x5a06a3['permissions']&&_0x5a06a3['permissions']['length']){for(var _0x22b4bb=0x0;_0x22b4bb<_0x5a06a3['permissions']['length'];++_0x22b4bb)writer['uint32'](0x22)['string'](_0x5a06a3['permissions'][_0x22b4bb]);}return writer;},SocketConnectMessage['encodeDelimited']=function(_0x5f4387,writer){return this['encode'](_0x5f4387,writer)['ldelim']();},SocketConnectMessage['decode']=function(_0x4f16a6,length,_0x58d7e2,_0x120e3b){if(_0x4f16a6 instanceof _0x28908e||(_0x4f16a6=_0x28908e['create'](_0x4f16a6)),void 0x0===_0x120e3b&&(_0x120e3b=0x0),_0x120e3b>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4b011b=void 0x0===length?_0x4f16a6['len']:_0x4f16a6['pos']+length,_0x1de468=new $root['SocketConnectMessage']();_0x4f16a6['pos']<_0x4b011b;){var tag=_0x4f16a6['uint32']();if(tag===_0x58d7e2)break;switch(tag>>>0x3){case 0x1:_0x1de468['id']=_0x4f16a6['string']();break;case 0x2:_0x1de468['userId']=_0x4f16a6['string']();break;case 0x3:_0x1de468['role']=_0x4f16a6['string']();break;case 0x4:_0x1de468['permissions']&&_0x1de468['permissions']['length']||(_0x1de468['permissions']=[]),_0x1de468['permissions']['push'](_0x4f16a6['string']());break;default:_0x4f16a6['skipType'](0x7&tag,_0x120e3b);}}return _0x1de468;},SocketConnectMessage['decodeDelimited']=function(_0x34c04c){return _0x34c04c instanceof _0x28908e||(_0x34c04c=new _0x28908e(_0x34c04c)),this['decode'](_0x34c04c,_0x34c04c['uint32']());},SocketConnectMessage['verify']=function(_0x3d4c5f,_0x13a0a1){if('object'!=typeof _0x3d4c5f||null===_0x3d4c5f)return'object\x20expected';if(void 0x0===_0x13a0a1&&(_0x13a0a1=0x0),_0x13a0a1>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x3d4c5f['id']&&_0x3d4c5f['hasOwnProperty']('id')&&!$util['isString'](_0x3d4c5f['id']))return'id:\x20string\x20expected';if(null!=_0x3d4c5f['userId']&&_0x3d4c5f['hasOwnProperty']('userId')&&!$util['isString'](_0x3d4c5f['userId']))return'userId:\x20string\x20expected';if(null!=_0x3d4c5f['role']&&_0x3d4c5f['hasOwnProperty']('role')&&!$util['isString'](_0x3d4c5f['role']))return'role:\x20string\x20expected';if(null!=_0x3d4c5f['permissions']&&_0x3d4c5f['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x3d4c5f['permissions']))return'permissions:\x20array\x20expected';for(var _0x48ea28=0x0;_0x48ea28<_0x3d4c5f['permissions']['length'];++_0x48ea28)if(!$util['isString'](_0x3d4c5f['permissions'][_0x48ea28]))return'permissions:\x20string[]\x20expected';}return null;},SocketConnectMessage['fromObject']=function(object,_0x1e2132){if(object instanceof $root['SocketConnectMessage'])return object;if(void 0x0===_0x1e2132&&(_0x1e2132=0x0),_0x1e2132>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x38871c=new $root['SocketConnectMessage']();if(null!=object['id']&&(_0x38871c['id']=String(object['id'])),null!=object['userId']&&(_0x38871c['userId']=String(object['userId'])),null!=object['role']&&(_0x38871c['role']=String(object['role'])),object['permissions']){if(!Array['isArray'](object['permissions']))throw TypeError('.SocketConnectMessage.permissions:\x20array\x20expected');_0x38871c['permissions']=[];for(var _0x5043e5=0x0;_0x5043e5<object['permissions']['length'];++_0x5043e5)_0x38871c['permissions'][_0x5043e5]=String(object['permissions'][_0x5043e5]);}return _0x38871c;},SocketConnectMessage['toObject']=function(_0x1ab575,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['permissions']=[]),options['defaults']&&(object['id']='',object['userId']='',object['role']=''),null!=_0x1ab575['id']&&_0x1ab575['hasOwnProperty']('id')&&(object['id']=_0x1ab575['id']),null!=_0x1ab575['userId']&&_0x1ab575['hasOwnProperty']('userId')&&(object['userId']=_0x1ab575['userId']),null!=_0x1ab575['role']&&_0x1ab575['hasOwnProperty']('role')&&(object['role']=_0x1ab575['role']),_0x1ab575['permissions']&&_0x1ab575['permissions']['length']){object['permissions']=[];for(var _0x326052=0x0;_0x326052<_0x1ab575['permissions']['length'];++_0x326052)object['permissions'][_0x326052]=_0x1ab575['permissions'][_0x326052];}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 _0x2c35f0=Object['keys'](properties),_0x4be73a=0x0;_0x4be73a<_0x2c35f0['length'];++_0x4be73a)null!=properties[_0x2c35f0[_0x4be73a]]&&'__proto__'!==_0x2c35f0[_0x4be73a]&&(this[_0x2c35f0[_0x4be73a]]=properties[_0x2c35f0[_0x4be73a]]);}}return SessionsConnectMessage['prototype']['id']='',SessionsConnectMessage['prototype']['sessionType']=0x0,SessionsConnectMessage['create']=function(properties){return new SessionsConnectMessage(properties);},SessionsConnectMessage['encode']=function(_0x447ae9,writer){return writer||(writer=$Writer['create']()),null!=_0x447ae9['id']&&Object['hasOwnProperty']['call'](_0x447ae9,'id')&&writer['uint32'](0xa)['string'](_0x447ae9['id']),null!=_0x447ae9['sessionType']&&Object['hasOwnProperty']['call'](_0x447ae9,'sessionType')&&writer['uint32'](0x10)['uint32'](_0x447ae9['sessionType']),writer;},SessionsConnectMessage['encodeDelimited']=function(_0x3ef21c,writer){return this['encode'](_0x3ef21c,writer)['ldelim']();},SessionsConnectMessage['decode']=function(_0x5f52ba,length,_0x4e5f30,_0x3d13d6){if(_0x5f52ba instanceof _0x28908e||(_0x5f52ba=_0x28908e['create'](_0x5f52ba)),void 0x0===_0x3d13d6&&(_0x3d13d6=0x0),_0x3d13d6>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xc1ab94=void 0x0===length?_0x5f52ba['len']:_0x5f52ba['pos']+length,_0x4506e6=new $root['SessionsConnectMessage']();_0x5f52ba['pos']<_0xc1ab94;){var tag=_0x5f52ba['uint32']();if(tag===_0x4e5f30)break;switch(tag>>>0x3){case 0x1:_0x4506e6['id']=_0x5f52ba['string']();break;case 0x2:_0x4506e6['sessionType']=_0x5f52ba['uint32']();break;default:_0x5f52ba['skipType'](0x7&tag,_0x3d13d6);}}return _0x4506e6;},SessionsConnectMessage['decodeDelimited']=function(_0x5387fb){return _0x5387fb instanceof _0x28908e||(_0x5387fb=new _0x28908e(_0x5387fb)),this['decode'](_0x5387fb,_0x5387fb['uint32']());},SessionsConnectMessage['verify']=function(_0x3eb7a1,_0x528db1){return'object'!=typeof _0x3eb7a1||null===_0x3eb7a1?'object\x20expected':(void 0x0===_0x528db1&&(_0x528db1=0x0),_0x528db1>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3eb7a1['id']&&_0x3eb7a1['hasOwnProperty']('id')&&!$util['isString'](_0x3eb7a1['id'])?'id:\x20string\x20expected':null!=_0x3eb7a1['sessionType']&&_0x3eb7a1['hasOwnProperty']('sessionType')&&!$util['isInteger'](_0x3eb7a1['sessionType'])?'sessionType:\x20integer\x20expected':null);},SessionsConnectMessage['fromObject']=function(object,_0x2d78b1){if(object instanceof $root['SessionsConnectMessage'])return object;if(void 0x0===_0x2d78b1&&(_0x2d78b1=0x0),_0x2d78b1>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x147197=new $root['SessionsConnectMessage']();return null!=object['id']&&(_0x147197['id']=String(object['id'])),null!=object['sessionType']&&(_0x147197['sessionType']=object['sessionType']>>>0x0),_0x147197;},SessionsConnectMessage['toObject']=function(_0x185d4d,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['sessionType']=0x0),null!=_0x185d4d['id']&&_0x185d4d['hasOwnProperty']('id')&&(object['id']=_0x185d4d['id']),null!=_0x185d4d['sessionType']&&_0x185d4d['hasOwnProperty']('sessionType')&&(object['sessionType']=_0x185d4d['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 _0x233a34=Object['keys'](properties),_0x4eab6b=0x0;_0x4eab6b<_0x233a34['length'];++_0x4eab6b)null!=properties[_0x233a34[_0x4eab6b]]&&'__proto__'!==_0x233a34[_0x4eab6b]&&(this[_0x233a34[_0x4eab6b]]=properties[_0x233a34[_0x4eab6b]]);}}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(_0x5e99ab,writer){if(writer||(writer=$Writer['create']()),null!=_0x5e99ab['session']&&Object['hasOwnProperty']['call'](_0x5e99ab,'session')&&writer['uint32'](0xa)['string'](_0x5e99ab['session']),null!=_0x5e99ab['user']&&Object['hasOwnProperty']['call'](_0x5e99ab,'user')&&writer['uint32'](0x12)['string'](_0x5e99ab['user']),null!=_0x5e99ab['role']&&Object['hasOwnProperty']['call'](_0x5e99ab,'role')&&writer['uint32'](0x1a)['string'](_0x5e99ab['role']),null!=_0x5e99ab['permissions']&&_0x5e99ab['permissions']['length']){for(var _0x46cea7=0x0;_0x46cea7<_0x5e99ab['permissions']['length'];++_0x46cea7)writer['uint32'](0x22)['string'](_0x5e99ab['permissions'][_0x46cea7]);}return writer;},SessionsSocketDescriptor['encodeDelimited']=function(_0x5be727,writer){return this['encode'](_0x5be727,writer)['ldelim']();},SessionsSocketDescriptor['decode']=function(_0x356735,length,_0x3ff692,_0xf00951){if(_0x356735 instanceof _0x28908e||(_0x356735=_0x28908e['create'](_0x356735)),void 0x0===_0xf00951&&(_0xf00951=0x0),_0xf00951>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3888f7=void 0x0===length?_0x356735['len']:_0x356735['pos']+length,_0x5214a8=new $root['SessionsSocketDescriptor']();_0x356735['pos']<_0x3888f7;){var tag=_0x356735['uint32']();if(tag===_0x3ff692)break;switch(tag>>>0x3){case 0x1:_0x5214a8['session']=_0x356735['string']();break;case 0x2:_0x5214a8['user']=_0x356735['string']();break;case 0x3:_0x5214a8['role']=_0x356735['string']();break;case 0x4:_0x5214a8['permissions']&&_0x5214a8['permissions']['length']||(_0x5214a8['permissions']=[]),_0x5214a8['permissions']['push'](_0x356735['string']());break;default:_0x356735['skipType'](0x7&tag,_0xf00951);}}return _0x5214a8;},SessionsSocketDescriptor['decodeDelimited']=function(_0x1148b8){return _0x1148b8 instanceof _0x28908e||(_0x1148b8=new _0x28908e(_0x1148b8)),this['decode'](_0x1148b8,_0x1148b8['uint32']());},SessionsSocketDescriptor['verify']=function(_0x2070fd,_0x12531d){if('object'!=typeof _0x2070fd||null===_0x2070fd)return'object\x20expected';if(void 0x0===_0x12531d&&(_0x12531d=0x0),_0x12531d>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x2070fd['session']&&_0x2070fd['hasOwnProperty']('session')&&!$util['isString'](_0x2070fd['session']))return'session:\x20string\x20expected';if(null!=_0x2070fd['user']&&_0x2070fd['hasOwnProperty']('user')&&!$util['isString'](_0x2070fd['user']))return'user:\x20string\x20expected';if(null!=_0x2070fd['role']&&_0x2070fd['hasOwnProperty']('role')&&!$util['isString'](_0x2070fd['role']))return'role:\x20string\x20expected';if(null!=_0x2070fd['permissions']&&_0x2070fd['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x2070fd['permissions']))return'permissions:\x20array\x20expected';for(var _0x358a27=0x0;_0x358a27<_0x2070fd['permissions']['length'];++_0x358a27)if(!$util['isString'](_0x2070fd['permissions'][_0x358a27]))return'permissions:\x20string[]\x20expected';}return null;},SessionsSocketDescriptor['fromObject']=function(object,_0x3ace58){if(object instanceof $root['SessionsSocketDescriptor'])return object;if(void 0x0===_0x3ace58&&(_0x3ace58=0x0),_0x3ace58>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x166e04=new $root['SessionsSocketDescriptor']();if(null!=object['session']&&(_0x166e04['session']=String(object['session'])),null!=object['user']&&(_0x166e04['user']=String(object['user'])),null!=object['role']&&(_0x166e04['role']=String(object['role'])),object['permissions']){if(!Array['isArray'](object['permissions']))throw TypeError('.SessionsSocketDescriptor.permissions:\x20array\x20expected');_0x166e04['permissions']=[];for(var _0x57377f=0x0;_0x57377f<object['permissions']['length'];++_0x57377f)_0x166e04['permissions'][_0x57377f]=String(object['permissions'][_0x57377f]);}return _0x166e04;},SessionsSocketDescriptor['toObject']=function(_0x2e3bfe,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['permissions']=[]),options['defaults']&&(object['session']='',object['user']='',object['role']=''),null!=_0x2e3bfe['session']&&_0x2e3bfe['hasOwnProperty']('session')&&(object['session']=_0x2e3bfe['session']),null!=_0x2e3bfe['user']&&_0x2e3bfe['hasOwnProperty']('user')&&(object['user']=_0x2e3bfe['user']),null!=_0x2e3bfe['role']&&_0x2e3bfe['hasOwnProperty']('role')&&(object['role']=_0x2e3bfe['role']),_0x2e3bfe['permissions']&&_0x2e3bfe['permissions']['length']){object['permissions']=[];for(var _0x1d5672=0x0;_0x1d5672<_0x2e3bfe['permissions']['length'];++_0x1d5672)object['permissions'][_0x1d5672]=_0x2e3bfe['permissions'][_0x1d5672];}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 _0x118572=Object['keys'](properties),_0x53eafa=0x0;_0x53eafa<_0x118572['length'];++_0x53eafa)null!=properties[_0x118572[_0x53eafa]]&&'__proto__'!==_0x118572[_0x53eafa]&&(this[_0x118572[_0x53eafa]]=properties[_0x118572[_0x53eafa]]);}}return RevisionHistoryUpdateRevisionsResponse['prototype']['requestId']=0x0,RevisionHistoryUpdateRevisionsResponse['create']=function(properties){return new RevisionHistoryUpdateRevisionsResponse(properties);},RevisionHistoryUpdateRevisionsResponse['encode']=function(_0x5dc6dd,writer){return writer||(writer=$Writer['create']()),null!=_0x5dc6dd['requestId']&&Object['hasOwnProperty']['call'](_0x5dc6dd,'requestId')&&writer['uint32'](0x8)['uint32'](_0x5dc6dd['requestId']),writer;},RevisionHistoryUpdateRevisionsResponse['encodeDelimited']=function(_0x22a61b,writer){return this['encode'](_0x22a61b,writer)['ldelim']();},RevisionHistoryUpdateRevisionsResponse['decode']=function(_0x318a7e,length,_0x1c1237,_0x1cabe7){if(_0x318a7e instanceof _0x28908e||(_0x318a7e=_0x28908e['create'](_0x318a7e)),void 0x0===_0x1cabe7&&(_0x1cabe7=0x0),_0x1cabe7>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2a54bf=void 0x0===length?_0x318a7e['len']:_0x318a7e['pos']+length,_0xec6515=new $root['RevisionHistoryUpdateRevisionsResponse']();_0x318a7e['pos']<_0x2a54bf;){var tag=_0x318a7e['uint32']();if(tag===_0x1c1237)break;if(tag>>>0x3==0x1)_0xec6515['requestId']=_0x318a7e['uint32']();else _0x318a7e['skipType'](0x7&tag,_0x1cabe7);}return _0xec6515;},RevisionHistoryUpdateRevisionsResponse['decodeDelimited']=function(_0x547172){return _0x547172 instanceof _0x28908e||(_0x547172=new _0x28908e(_0x547172)),this['decode'](_0x547172,_0x547172['uint32']());},RevisionHistoryUpdateRevisionsResponse['verify']=function(_0x474808,_0x8a0279){return'object'!=typeof _0x474808||null===_0x474808?'object\x20expected':(void 0x0===_0x8a0279&&(_0x8a0279=0x0),_0x8a0279>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x474808['requestId']&&_0x474808['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x474808['requestId'])?'requestId:\x20integer\x20expected':null);},RevisionHistoryUpdateRevisionsResponse['fromObject']=function(object,_0x46f36e){if(object instanceof $root['RevisionHistoryUpdateRevisionsResponse'])return object;if(void 0x0===_0x46f36e&&(_0x46f36e=0x0),_0x46f36e>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x6cd327=new $root['RevisionHistoryUpdateRevisionsResponse']();return null!=object['requestId']&&(_0x6cd327['requestId']=object['requestId']>>>0x0),_0x6cd327;},RevisionHistoryUpdateRevisionsResponse['toObject']=function(_0x45bbee,options){options||(options={});var object={};return options['defaults']&&(object['requestId']=0x0),null!=_0x45bbee['requestId']&&_0x45bbee['hasOwnProperty']('requestId')&&(object['requestId']=_0x45bbee['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 _0x305593=Object['keys'](properties),_0x17e8ba=0x0;_0x17e8ba<_0x305593['length'];++_0x17e8ba)null!=properties[_0x305593[_0x17e8ba]]&&'__proto__'!==_0x305593[_0x17e8ba]&&(this[_0x305593[_0x17e8ba]]=properties[_0x305593[_0x17e8ba]]);}}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(_0x2ba428,writer){return writer||(writer=$Writer['create']()),null!=_0x2ba428['revisionId']&&Object['hasOwnProperty']['call'](_0x2ba428,'revisionId')&&writer['uint32'](0xa)['string'](_0x2ba428['revisionId']),null!=_0x2ba428['name']&&Object['hasOwnProperty']['call'](_0x2ba428,'name')&&writer['uint32'](0x12)['string'](_0x2ba428['name']),null!=_0x2ba428['creatorId']&&Object['hasOwnProperty']['call'](_0x2ba428,'creatorId')&&writer['uint32'](0x1a)['string'](_0x2ba428['creatorId']),null!=_0x2ba428['authorsIds']&&Object['hasOwnProperty']['call'](_0x2ba428,'authorsIds')&&writer['uint32'](0x22)['string'](_0x2ba428['authorsIds']),null!=_0x2ba428['diffData']&&Object['hasOwnProperty']['call'](_0x2ba428,'diffData')&&writer['uint32'](0x2a)['string'](_0x2ba428['diffData']),null!=_0x2ba428['createdAt']&&Object['hasOwnProperty']['call'](_0x2ba428,'createdAt')&&writer['uint32'](0x32)['string'](_0x2ba428['createdAt']),null!=_0x2ba428['attributes']&&Object['hasOwnProperty']['call'](_0x2ba428,'attributes')&&writer['uint32'](0x3a)['string'](_0x2ba428['attributes']),null!=_0x2ba428['toVersion']&&Object['hasOwnProperty']['call'](_0x2ba428,'toVersion')&&writer['uint32'](0x40)['uint32'](_0x2ba428['toVersion']),null!=_0x2ba428['fromVersion']&&Object['hasOwnProperty']['call'](_0x2ba428,'fromVersion')&&writer['uint32'](0x48)['uint32'](_0x2ba428['fromVersion']),null!=_0x2ba428['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x2ba428,'isEmptyCurrent')&&writer['uint32'](0x50)['bool'](_0x2ba428['isEmptyCurrent']),writer;},RevisionHistoryGetRevisionResponse['encodeDelimited']=function(_0x523de5,writer){return this['encode'](_0x523de5,writer)['ldelim']();},RevisionHistoryGetRevisionResponse['decode']=function(_0x4717de,length,_0x60fd7e,_0x944443){if(_0x4717de instanceof _0x28908e||(_0x4717de=_0x28908e['create'](_0x4717de)),void 0x0===_0x944443&&(_0x944443=0x0),_0x944443>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4c6f48=void 0x0===length?_0x4717de['len']:_0x4717de['pos']+length,_0x2c2d2b=new $root['RevisionHistoryGetRevisionResponse']();_0x4717de['pos']<_0x4c6f48;){var tag=_0x4717de['uint32']();if(tag===_0x60fd7e)break;switch(tag>>>0x3){case 0x1:_0x2c2d2b['revisionId']=_0x4717de['string']();break;case 0x2:_0x2c2d2b['name']=_0x4717de['string']();break;case 0x3:_0x2c2d2b['creatorId']=_0x4717de['string']();break;case 0x4:_0x2c2d2b['authorsIds']=_0x4717de['string']();break;case 0x5:_0x2c2d2b['diffData']=_0x4717de['string']();break;case 0x6:_0x2c2d2b['createdAt']=_0x4717de['string']();break;case 0x7:_0x2c2d2b['attributes']=_0x4717de['string']();break;case 0x8:_0x2c2d2b['toVersion']=_0x4717de['uint32']();break;case 0x9:_0x2c2d2b['fromVersion']=_0x4717de['uint32']();break;case 0xa:_0x2c2d2b['isEmptyCurrent']=_0x4717de['bool']();break;default:_0x4717de['skipType'](0x7&tag,_0x944443);}}return _0x2c2d2b;},RevisionHistoryGetRevisionResponse['decodeDelimited']=function(_0x378b0e){return _0x378b0e instanceof _0x28908e||(_0x378b0e=new _0x28908e(_0x378b0e)),this['decode'](_0x378b0e,_0x378b0e['uint32']());},RevisionHistoryGetRevisionResponse['verify']=function(_0x4bdd23,_0x2660f7){return'object'!=typeof _0x4bdd23||null===_0x4bdd23?'object\x20expected':(void 0x0===_0x2660f7&&(_0x2660f7=0x0),_0x2660f7>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x4bdd23['revisionId']&&_0x4bdd23['hasOwnProperty']('revisionId')&&!$util['isString'](_0x4bdd23['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x4bdd23['name']&&_0x4bdd23['hasOwnProperty']('name')&&!$util['isString'](_0x4bdd23['name'])?'name:\x20string\x20expected':null!=_0x4bdd23['creatorId']&&_0x4bdd23['hasOwnProperty']('creatorId')&&!$util['isString'](_0x4bdd23['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x4bdd23['authorsIds']&&_0x4bdd23['hasOwnProperty']('authorsIds')&&!$util['isString'](_0x4bdd23['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x4bdd23['diffData']&&_0x4bdd23['hasOwnProperty']('diffData')&&!$util['isString'](_0x4bdd23['diffData'])?'diffData:\x20string\x20expected':null!=_0x4bdd23['createdAt']&&_0x4bdd23['hasOwnProperty']('createdAt')&&!$util['isString'](_0x4bdd23['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x4bdd23['attributes']&&_0x4bdd23['hasOwnProperty']('attributes')&&!$util['isString'](_0x4bdd23['attributes'])?'attributes:\x20string\x20expected':null!=_0x4bdd23['toVersion']&&_0x4bdd23['hasOwnProperty']('toVersion')&&!$util['isInteger'](_0x4bdd23['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x4bdd23['fromVersion']&&_0x4bdd23['hasOwnProperty']('fromVersion')&&!$util['isInteger'](_0x4bdd23['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x4bdd23['isEmptyCurrent']&&_0x4bdd23['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x4bdd23['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null);},RevisionHistoryGetRevisionResponse['fromObject']=function(object,_0x5cdef7){if(object instanceof $root['RevisionHistoryGetRevisionResponse'])return object;if(void 0x0===_0x5cdef7&&(_0x5cdef7=0x0),_0x5cdef7>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x4551ed=new $root['RevisionHistoryGetRevisionResponse']();return null!=object['revisionId']&&(_0x4551ed['revisionId']=String(object['revisionId'])),null!=object['name']&&(_0x4551ed['name']=String(object['name'])),null!=object['creatorId']&&(_0x4551ed['creatorId']=String(object['creatorId'])),null!=object['authorsIds']&&(_0x4551ed['authorsIds']=String(object['authorsIds'])),null!=object['diffData']&&(_0x4551ed['diffData']=String(object['diffData'])),null!=object['createdAt']&&(_0x4551ed['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x4551ed['attributes']=String(object['attributes'])),null!=object['toVersion']&&(_0x4551ed['toVersion']=object['toVersion']>>>0x0),null!=object['fromVersion']&&(_0x4551ed['fromVersion']=object['fromVersion']>>>0x0),null!=object['isEmptyCurrent']&&(_0x4551ed['isEmptyCurrent']=Boolean(object['isEmptyCurrent'])),_0x4551ed;},RevisionHistoryGetRevisionResponse['toObject']=function(_0x110035,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!=_0x110035['revisionId']&&_0x110035['hasOwnProperty']('revisionId')&&(object['revisionId']=_0x110035['revisionId']),null!=_0x110035['name']&&_0x110035['hasOwnProperty']('name')&&(object['name']=_0x110035['name']),null!=_0x110035['creatorId']&&_0x110035['hasOwnProperty']('creatorId')&&(object['creatorId']=_0x110035['creatorId']),null!=_0x110035['authorsIds']&&_0x110035['hasOwnProperty']('authorsIds')&&(object['authorsIds']=_0x110035['authorsIds']),null!=_0x110035['diffData']&&_0x110035['hasOwnProperty']('diffData')&&(object['diffData']=_0x110035['diffData']),null!=_0x110035['createdAt']&&_0x110035['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x110035['createdAt']),null!=_0x110035['attributes']&&_0x110035['hasOwnProperty']('attributes')&&(object['attributes']=_0x110035['attributes']),null!=_0x110035['toVersion']&&_0x110035['hasOwnProperty']('toVersion')&&(object['toVersion']=_0x110035['toVersion']),null!=_0x110035['fromVersion']&&_0x110035['hasOwnProperty']('fromVersion')&&(object['fromVersion']=_0x110035['fromVersion']),null!=_0x110035['isEmptyCurrent']&&_0x110035['hasOwnProperty']('isEmptyCurrent')&&(object['isEmptyCurrent']=_0x110035['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 _0x4d896d=Object['keys'](properties),_0x368fb0=0x0;_0x368fb0<_0x4d896d['length'];++_0x368fb0)null!=properties[_0x4d896d[_0x368fb0]]&&'__proto__'!==_0x4d896d[_0x368fb0]&&(this[_0x4d896d[_0x368fb0]]=properties[_0x4d896d[_0x368fb0]]);}}return RevisionHistoryConnectResponse['prototype']['channel']='',RevisionHistoryConnectResponse['prototype']['requestId']=0x0,RevisionHistoryConnectResponse['prototype']['revisions']=$util['emptyArray'],RevisionHistoryConnectResponse['create']=function(properties){return new RevisionHistoryConnectResponse(properties);},RevisionHistoryConnectResponse['encode']=function(_0x20dbec,writer){if(writer||(writer=$Writer['create']()),null!=_0x20dbec['channel']&&Object['hasOwnProperty']['call'](_0x20dbec,'channel')&&writer['uint32'](0xa)['string'](_0x20dbec['channel']),null!=_0x20dbec['requestId']&&Object['hasOwnProperty']['call'](_0x20dbec,'requestId')&&writer['uint32'](0x10)['uint32'](_0x20dbec['requestId']),null!=_0x20dbec['revisions']&&_0x20dbec['revisions']['length']){for(var _0x127946=0x0;_0x127946<_0x20dbec['revisions']['length'];++_0x127946)$root['RevisionDescriptor']['encode'](_0x20dbec['revisions'][_0x127946],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},RevisionHistoryConnectResponse['encodeDelimited']=function(_0x185f13,writer){return this['encode'](_0x185f13,writer)['ldelim']();},RevisionHistoryConnectResponse['decode']=function(_0x51ed3c,length,_0x3406b2,_0x14a4da){if(_0x51ed3c instanceof _0x28908e||(_0x51ed3c=_0x28908e['create'](_0x51ed3c)),void 0x0===_0x14a4da&&(_0x14a4da=0x0),_0x14a4da>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2ef61f=void 0x0===length?_0x51ed3c['len']:_0x51ed3c['pos']+length,_0x1371b8=new $root['RevisionHistoryConnectResponse']();_0x51ed3c['pos']<_0x2ef61f;){var tag=_0x51ed3c['uint32']();if(tag===_0x3406b2)break;switch(tag>>>0x3){case 0x1:_0x1371b8['channel']=_0x51ed3c['string']();break;case 0x2:_0x1371b8['requestId']=_0x51ed3c['uint32']();break;case 0x3:_0x1371b8['revisions']&&_0x1371b8['revisions']['length']||(_0x1371b8['revisions']=[]),_0x1371b8['revisions']['push']($root['RevisionDescriptor']['decode'](_0x51ed3c,_0x51ed3c['uint32'](),void 0x0,_0x14a4da+0x1));break;default:_0x51ed3c['skipType'](0x7&tag,_0x14a4da);}}return _0x1371b8;},RevisionHistoryConnectResponse['decodeDelimited']=function(_0x139f92){return _0x139f92 instanceof _0x28908e||(_0x139f92=new _0x28908e(_0x139f92)),this['decode'](_0x139f92,_0x139f92['uint32']());},RevisionHistoryConnectResponse['verify']=function(_0x30dd44,_0x4d3996){if('object'!=typeof _0x30dd44||null===_0x30dd44)return'object\x20expected';if(void 0x0===_0x4d3996&&(_0x4d3996=0x0),_0x4d3996>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x30dd44['channel']&&_0x30dd44['hasOwnProperty']('channel')&&!$util['isString'](_0x30dd44['channel']))return'channel:\x20string\x20expected';if(null!=_0x30dd44['requestId']&&_0x30dd44['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x30dd44['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x30dd44['revisions']&&_0x30dd44['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x30dd44['revisions']))return'revisions:\x20array\x20expected';for(var _0x12e51e=0x0;_0x12e51e<_0x30dd44['revisions']['length'];++_0x12e51e){var _0x585ad4=$root['RevisionDescriptor']['verify'](_0x30dd44['revisions'][_0x12e51e],_0x4d3996+0x1);if(_0x585ad4)return'revisions.'+_0x585ad4;}}return null;},RevisionHistoryConnectResponse['fromObject']=function(object,_0x1a1295){if(object instanceof $root['RevisionHistoryConnectResponse'])return object;if(void 0x0===_0x1a1295&&(_0x1a1295=0x0),_0x1a1295>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x43cb5a=new $root['RevisionHistoryConnectResponse']();if(null!=object['channel']&&(_0x43cb5a['channel']=String(object['channel'])),null!=object['requestId']&&(_0x43cb5a['requestId']=object['requestId']>>>0x0),object['revisions']){if(!Array['isArray'](object['revisions']))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20array\x20expected');_0x43cb5a['revisions']=[];for(var _0x56c42a=0x0;_0x56c42a<object['revisions']['length'];++_0x56c42a){if('object'!=typeof object['revisions'][_0x56c42a])throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20object\x20expected');_0x43cb5a['revisions'][_0x56c42a]=$root['RevisionDescriptor']['fromObject'](object['revisions'][_0x56c42a],_0x1a1295+0x1);}}return _0x43cb5a;},RevisionHistoryConnectResponse['toObject']=function(_0x1c218c,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['revisions']=[]),options['defaults']&&(object['channel']='',object['requestId']=0x0),null!=_0x1c218c['channel']&&_0x1c218c['hasOwnProperty']('channel')&&(object['channel']=_0x1c218c['channel']),null!=_0x1c218c['requestId']&&_0x1c218c['hasOwnProperty']('requestId')&&(object['requestId']=_0x1c218c['requestId']),_0x1c218c['revisions']&&_0x1c218c['revisions']['length']){object['revisions']=[];for(var _0x589ef6=0x0;_0x589ef6<_0x1c218c['revisions']['length'];++_0x589ef6)object['revisions'][_0x589ef6]=$root['RevisionDescriptor']['toObject'](_0x1c218c['revisions'][_0x589ef6],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 _0x5aa5de=Object['keys'](properties),_0x51b5c5=0x0;_0x51b5c5<_0x5aa5de['length'];++_0x51b5c5)null!=properties[_0x5aa5de[_0x51b5c5]]&&'__proto__'!==_0x5aa5de[_0x51b5c5]&&(this[_0x5aa5de[_0x51b5c5]]=properties[_0x5aa5de[_0x51b5c5]]);}}return RevisionHistoryUpdateRevisionsMessage['prototype']['documentId']='',RevisionHistoryUpdateRevisionsMessage['prototype']['requestId']=0x0,RevisionHistoryUpdateRevisionsMessage['prototype']['revisions']=$util['emptyArray'],RevisionHistoryUpdateRevisionsMessage['create']=function(properties){return new RevisionHistoryUpdateRevisionsMessage(properties);},RevisionHistoryUpdateRevisionsMessage['encode']=function(_0x5d5460,writer){if(writer||(writer=$Writer['create']()),null!=_0x5d5460['documentId']&&Object['hasOwnProperty']['call'](_0x5d5460,'documentId')&&writer['uint32'](0xa)['string'](_0x5d5460['documentId']),null!=_0x5d5460['requestId']&&Object['hasOwnProperty']['call'](_0x5d5460,'requestId')&&writer['uint32'](0x10)['uint32'](_0x5d5460['requestId']),null!=_0x5d5460['revisions']&&_0x5d5460['revisions']['length']){for(var _0x5a54d9=0x0;_0x5a54d9<_0x5d5460['revisions']['length'];++_0x5a54d9)$root['RevisionDescriptor']['encode'](_0x5d5460['revisions'][_0x5a54d9],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},RevisionHistoryUpdateRevisionsMessage['encodeDelimited']=function(_0x149b4c,writer){return this['encode'](_0x149b4c,writer)['ldelim']();},RevisionHistoryUpdateRevisionsMessage['decode']=function(_0x2b1e95,length,_0x5a163e,_0x28f88b){if(_0x2b1e95 instanceof _0x28908e||(_0x2b1e95=_0x28908e['create'](_0x2b1e95)),void 0x0===_0x28f88b&&(_0x28f88b=0x0),_0x28f88b>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x58bc7f=void 0x0===length?_0x2b1e95['len']:_0x2b1e95['pos']+length,_0x53bc41=new $root['RevisionHistoryUpdateRevisionsMessage']();_0x2b1e95['pos']<_0x58bc7f;){var tag=_0x2b1e95['uint32']();if(tag===_0x5a163e)break;switch(tag>>>0x3){case 0x1:_0x53bc41['documentId']=_0x2b1e95['string']();break;case 0x2:_0x53bc41['requestId']=_0x2b1e95['uint32']();break;case 0x3:_0x53bc41['revisions']&&_0x53bc41['revisions']['length']||(_0x53bc41['revisions']=[]),_0x53bc41['revisions']['push']($root['RevisionDescriptor']['decode'](_0x2b1e95,_0x2b1e95['uint32'](),void 0x0,_0x28f88b+0x1));break;default:_0x2b1e95['skipType'](0x7&tag,_0x28f88b);}}return _0x53bc41;},RevisionHistoryUpdateRevisionsMessage['decodeDelimited']=function(_0x2ead4e){return _0x2ead4e instanceof _0x28908e||(_0x2ead4e=new _0x28908e(_0x2ead4e)),this['decode'](_0x2ead4e,_0x2ead4e['uint32']());},RevisionHistoryUpdateRevisionsMessage['verify']=function(_0x20a029,_0x33c617){if('object'!=typeof _0x20a029||null===_0x20a029)return'object\x20expected';if(void 0x0===_0x33c617&&(_0x33c617=0x0),_0x33c617>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x20a029['documentId']&&_0x20a029['hasOwnProperty']('documentId')&&!$util['isString'](_0x20a029['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x20a029['requestId']&&_0x20a029['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x20a029['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x20a029['revisions']&&_0x20a029['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x20a029['revisions']))return'revisions:\x20array\x20expected';for(var _0x46e5fc=0x0;_0x46e5fc<_0x20a029['revisions']['length'];++_0x46e5fc){var _0xe69084=$root['RevisionDescriptor']['verify'](_0x20a029['revisions'][_0x46e5fc],_0x33c617+0x1);if(_0xe69084)return'revisions.'+_0xe69084;}}return null;},RevisionHistoryUpdateRevisionsMessage['fromObject']=function(object,_0x19df31){if(object instanceof $root['RevisionHistoryUpdateRevisionsMessage'])return object;if(void 0x0===_0x19df31&&(_0x19df31=0x0),_0x19df31>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x47719f=new $root['RevisionHistoryUpdateRevisionsMessage']();if(null!=object['documentId']&&(_0x47719f['documentId']=String(object['documentId'])),null!=object['requestId']&&(_0x47719f['requestId']=object['requestId']>>>0x0),object['revisions']){if(!Array['isArray'](object['revisions']))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20array\x20expected');_0x47719f['revisions']=[];for(var _0x40e8e3=0x0;_0x40e8e3<object['revisions']['length'];++_0x40e8e3){if('object'!=typeof object['revisions'][_0x40e8e3])throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20object\x20expected');_0x47719f['revisions'][_0x40e8e3]=$root['RevisionDescriptor']['fromObject'](object['revisions'][_0x40e8e3],_0x19df31+0x1);}}return _0x47719f;},RevisionHistoryUpdateRevisionsMessage['toObject']=function(_0x2f0446,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['revisions']=[]),options['defaults']&&(object['documentId']='',object['requestId']=0x0),null!=_0x2f0446['documentId']&&_0x2f0446['hasOwnProperty']('documentId')&&(object['documentId']=_0x2f0446['documentId']),null!=_0x2f0446['requestId']&&_0x2f0446['hasOwnProperty']('requestId')&&(object['requestId']=_0x2f0446['requestId']),_0x2f0446['revisions']&&_0x2f0446['revisions']['length']){object['revisions']=[];for(var _0x2cdfd8=0x0;_0x2cdfd8<_0x2f0446['revisions']['length'];++_0x2cdfd8)object['revisions'][_0x2cdfd8]=$root['RevisionDescriptor']['toObject'](_0x2f0446['revisions'][_0x2cdfd8],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 _0x56a02a=Object['keys'](properties),_0x3af7c3=0x0;_0x3af7c3<_0x56a02a['length'];++_0x3af7c3)null!=properties[_0x56a02a[_0x3af7c3]]&&'__proto__'!==_0x56a02a[_0x3af7c3]&&(this[_0x56a02a[_0x3af7c3]]=properties[_0x56a02a[_0x3af7c3]]);}}return RevisionHistoryReconnectMessage['prototype']['documentId']='',RevisionHistoryReconnectMessage['prototype']['requestId']=0x0,RevisionHistoryReconnectMessage['create']=function(properties){return new RevisionHistoryReconnectMessage(properties);},RevisionHistoryReconnectMessage['encode']=function(_0x1efb9d,writer){return writer||(writer=$Writer['create']()),null!=_0x1efb9d['documentId']&&Object['hasOwnProperty']['call'](_0x1efb9d,'documentId')&&writer['uint32'](0xa)['string'](_0x1efb9d['documentId']),null!=_0x1efb9d['requestId']&&Object['hasOwnProperty']['call'](_0x1efb9d,'requestId')&&writer['uint32'](0x10)['uint32'](_0x1efb9d['requestId']),writer;},RevisionHistoryReconnectMessage['encodeDelimited']=function(_0x5c0477,writer){return this['encode'](_0x5c0477,writer)['ldelim']();},RevisionHistoryReconnectMessage['decode']=function(_0x429e97,length,_0x21ba0a,_0x276936){if(_0x429e97 instanceof _0x28908e||(_0x429e97=_0x28908e['create'](_0x429e97)),void 0x0===_0x276936&&(_0x276936=0x0),_0x276936>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x15dd14=void 0x0===length?_0x429e97['len']:_0x429e97['pos']+length,_0x459feb=new $root['RevisionHistoryReconnectMessage']();_0x429e97['pos']<_0x15dd14;){var tag=_0x429e97['uint32']();if(tag===_0x21ba0a)break;switch(tag>>>0x3){case 0x1:_0x459feb['documentId']=_0x429e97['string']();break;case 0x2:_0x459feb['requestId']=_0x429e97['uint32']();break;default:_0x429e97['skipType'](0x7&tag,_0x276936);}}return _0x459feb;},RevisionHistoryReconnectMessage['decodeDelimited']=function(_0x224cfe){return _0x224cfe instanceof _0x28908e||(_0x224cfe=new _0x28908e(_0x224cfe)),this['decode'](_0x224cfe,_0x224cfe['uint32']());},RevisionHistoryReconnectMessage['verify']=function(_0x2e84ea,_0x425445){return'object'!=typeof _0x2e84ea||null===_0x2e84ea?'object\x20expected':(void 0x0===_0x425445&&(_0x425445=0x0),_0x425445>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x2e84ea['documentId']&&_0x2e84ea['hasOwnProperty']('documentId')&&!$util['isString'](_0x2e84ea['documentId'])?'documentId:\x20string\x20expected':null!=_0x2e84ea['requestId']&&_0x2e84ea['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x2e84ea['requestId'])?'requestId:\x20integer\x20expected':null);},RevisionHistoryReconnectMessage['fromObject']=function(object,_0x566cc3){if(object instanceof $root['RevisionHistoryReconnectMessage'])return object;if(void 0x0===_0x566cc3&&(_0x566cc3=0x0),_0x566cc3>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2ed6ab=new $root['RevisionHistoryReconnectMessage']();return null!=object['documentId']&&(_0x2ed6ab['documentId']=String(object['documentId'])),null!=object['requestId']&&(_0x2ed6ab['requestId']=object['requestId']>>>0x0),_0x2ed6ab;},RevisionHistoryReconnectMessage['toObject']=function(_0x4508a2,options){options||(options={});var object={};return options['defaults']&&(object['documentId']='',object['requestId']=0x0),null!=_0x4508a2['documentId']&&_0x4508a2['hasOwnProperty']('documentId')&&(object['documentId']=_0x4508a2['documentId']),null!=_0x4508a2['requestId']&&_0x4508a2['hasOwnProperty']('requestId')&&(object['requestId']=_0x4508a2['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 _0x1e7190=Object['keys'](properties),_0x53cfb2=0x0;_0x53cfb2<_0x1e7190['length'];++_0x53cfb2)null!=properties[_0x1e7190[_0x53cfb2]]&&'__proto__'!==_0x1e7190[_0x53cfb2]&&(this[_0x1e7190[_0x53cfb2]]=properties[_0x1e7190[_0x53cfb2]]);}}return RevisionHistoryGetRevisionMessage['prototype']['documentId']='',RevisionHistoryGetRevisionMessage['prototype']['revisionId']='',RevisionHistoryGetRevisionMessage['create']=function(properties){return new RevisionHistoryGetRevisionMessage(properties);},RevisionHistoryGetRevisionMessage['encode']=function(_0x577ae3,writer){return writer||(writer=$Writer['create']()),null!=_0x577ae3['documentId']&&Object['hasOwnProperty']['call'](_0x577ae3,'documentId')&&writer['uint32'](0xa)['string'](_0x577ae3['documentId']),null!=_0x577ae3['revisionId']&&Object['hasOwnProperty']['call'](_0x577ae3,'revisionId')&&writer['uint32'](0x12)['string'](_0x577ae3['revisionId']),writer;},RevisionHistoryGetRevisionMessage['encodeDelimited']=function(_0x49e54e,writer){return this['encode'](_0x49e54e,writer)['ldelim']();},RevisionHistoryGetRevisionMessage['decode']=function(_0x19b686,length,_0x89f53,_0x2e138c){if(_0x19b686 instanceof _0x28908e||(_0x19b686=_0x28908e['create'](_0x19b686)),void 0x0===_0x2e138c&&(_0x2e138c=0x0),_0x2e138c>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x547f1e=void 0x0===length?_0x19b686['len']:_0x19b686['pos']+length,_0x5027e7=new $root['RevisionHistoryGetRevisionMessage']();_0x19b686['pos']<_0x547f1e;){var tag=_0x19b686['uint32']();if(tag===_0x89f53)break;switch(tag>>>0x3){case 0x1:_0x5027e7['documentId']=_0x19b686['string']();break;case 0x2:_0x5027e7['revisionId']=_0x19b686['string']();break;default:_0x19b686['skipType'](0x7&tag,_0x2e138c);}}return _0x5027e7;},RevisionHistoryGetRevisionMessage['decodeDelimited']=function(_0x4dc1e7){return _0x4dc1e7 instanceof _0x28908e||(_0x4dc1e7=new _0x28908e(_0x4dc1e7)),this['decode'](_0x4dc1e7,_0x4dc1e7['uint32']());},RevisionHistoryGetRevisionMessage['verify']=function(_0x5294a5,_0x49e3b4){return'object'!=typeof _0x5294a5||null===_0x5294a5?'object\x20expected':(void 0x0===_0x49e3b4&&(_0x49e3b4=0x0),_0x49e3b4>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x5294a5['documentId']&&_0x5294a5['hasOwnProperty']('documentId')&&!$util['isString'](_0x5294a5['documentId'])?'documentId:\x20string\x20expected':null!=_0x5294a5['revisionId']&&_0x5294a5['hasOwnProperty']('revisionId')&&!$util['isString'](_0x5294a5['revisionId'])?'revisionId:\x20string\x20expected':null);},RevisionHistoryGetRevisionMessage['fromObject']=function(object,_0x36dcc5){if(object instanceof $root['RevisionHistoryGetRevisionMessage'])return object;if(void 0x0===_0x36dcc5&&(_0x36dcc5=0x0),_0x36dcc5>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x228978=new $root['RevisionHistoryGetRevisionMessage']();return null!=object['documentId']&&(_0x228978['documentId']=String(object['documentId'])),null!=object['revisionId']&&(_0x228978['revisionId']=String(object['revisionId'])),_0x228978;},RevisionHistoryGetRevisionMessage['toObject']=function(_0x55df0c,options){options||(options={});var object={};return options['defaults']&&(object['documentId']='',object['revisionId']=''),null!=_0x55df0c['documentId']&&_0x55df0c['hasOwnProperty']('documentId')&&(object['documentId']=_0x55df0c['documentId']),null!=_0x55df0c['revisionId']&&_0x55df0c['hasOwnProperty']('revisionId')&&(object['revisionId']=_0x55df0c['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 _0x78a583=Object['keys'](properties),_0x4d5cc6=0x0;_0x4d5cc6<_0x78a583['length'];++_0x4d5cc6)null!=properties[_0x78a583[_0x4d5cc6]]&&'__proto__'!==_0x78a583[_0x4d5cc6]&&(this[_0x78a583[_0x4d5cc6]]=properties[_0x78a583[_0x4d5cc6]]);}}return RevisionHistoryConnectMessage['prototype']['documentId']='',RevisionHistoryConnectMessage['create']=function(properties){return new RevisionHistoryConnectMessage(properties);},RevisionHistoryConnectMessage['encode']=function(_0x3e043e,writer){return writer||(writer=$Writer['create']()),null!=_0x3e043e['documentId']&&Object['hasOwnProperty']['call'](_0x3e043e,'documentId')&&writer['uint32'](0xa)['string'](_0x3e043e['documentId']),writer;},RevisionHistoryConnectMessage['encodeDelimited']=function(_0x29aa97,writer){return this['encode'](_0x29aa97,writer)['ldelim']();},RevisionHistoryConnectMessage['decode']=function(_0x199bc5,length,_0x34fa86,_0xf1d98){if(_0x199bc5 instanceof _0x28908e||(_0x199bc5=_0x28908e['create'](_0x199bc5)),void 0x0===_0xf1d98&&(_0xf1d98=0x0),_0xf1d98>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xda4a31=void 0x0===length?_0x199bc5['len']:_0x199bc5['pos']+length,_0x2c6043=new $root['RevisionHistoryConnectMessage']();_0x199bc5['pos']<_0xda4a31;){var tag=_0x199bc5['uint32']();if(tag===_0x34fa86)break;if(tag>>>0x3==0x1)_0x2c6043['documentId']=_0x199bc5['string']();else _0x199bc5['skipType'](0x7&tag,_0xf1d98);}return _0x2c6043;},RevisionHistoryConnectMessage['decodeDelimited']=function(_0x19921f){return _0x19921f instanceof _0x28908e||(_0x19921f=new _0x28908e(_0x19921f)),this['decode'](_0x19921f,_0x19921f['uint32']());},RevisionHistoryConnectMessage['verify']=function(_0x462526,_0x4e253e){return'object'!=typeof _0x462526||null===_0x462526?'object\x20expected':(void 0x0===_0x4e253e&&(_0x4e253e=0x0),_0x4e253e>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x462526['documentId']&&_0x462526['hasOwnProperty']('documentId')&&!$util['isString'](_0x462526['documentId'])?'documentId:\x20string\x20expected':null);},RevisionHistoryConnectMessage['fromObject']=function(object,_0x48b9a5){if(object instanceof $root['RevisionHistoryConnectMessage'])return object;if(void 0x0===_0x48b9a5&&(_0x48b9a5=0x0),_0x48b9a5>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x134e2f=new $root['RevisionHistoryConnectMessage']();return null!=object['documentId']&&(_0x134e2f['documentId']=String(object['documentId'])),_0x134e2f;},RevisionHistoryConnectMessage['toObject']=function(_0x3ecbb1,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x3ecbb1['documentId']&&_0x3ecbb1['hasOwnProperty']('documentId')&&(object['documentId']=_0x3ecbb1['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 _0xb0c0df=Object['keys'](properties),_0x326b49=0x0;_0x326b49<_0xb0c0df['length'];++_0x326b49)null!=properties[_0xb0c0df[_0x326b49]]&&'__proto__'!==_0xb0c0df[_0x326b49]&&(this[_0xb0c0df[_0x326b49]]=properties[_0xb0c0df[_0x326b49]]);}}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(_0x16544b,writer){return writer||(writer=$Writer['create']()),null!=_0x16544b['revisionId']&&Object['hasOwnProperty']['call'](_0x16544b,'revisionId')&&writer['uint32'](0xa)['string'](_0x16544b['revisionId']),null!=_0x16544b['name']&&Object['hasOwnProperty']['call'](_0x16544b,'name')&&writer['uint32'](0x12)['string'](_0x16544b['name']),null!=_0x16544b['creatorId']&&Object['hasOwnProperty']['call'](_0x16544b,'creatorId')&&writer['uint32'](0x1a)['string'](_0x16544b['creatorId']),null!=_0x16544b['authorsIds']&&Object['hasOwnProperty']['call'](_0x16544b,'authorsIds')&&writer['uint32'](0x22)['string'](_0x16544b['authorsIds']),null!=_0x16544b['diffData']&&Object['hasOwnProperty']['call'](_0x16544b,'diffData')&&writer['uint32'](0x2a)['string'](_0x16544b['diffData']),null!=_0x16544b['createdAt']&&Object['hasOwnProperty']['call'](_0x16544b,'createdAt')&&writer['uint32'](0x32)['string'](_0x16544b['createdAt']),null!=_0x16544b['attributes']&&Object['hasOwnProperty']['call'](_0x16544b,'attributes')&&writer['uint32'](0x3a)['string'](_0x16544b['attributes']),null!=_0x16544b['toVersion']&&Object['hasOwnProperty']['call'](_0x16544b,'toVersion')&&writer['uint32'](0x40)['uint32'](_0x16544b['toVersion']),null!=_0x16544b['fromVersion']&&Object['hasOwnProperty']['call'](_0x16544b,'fromVersion')&&writer['uint32'](0x48)['uint32'](_0x16544b['fromVersion']),null!=_0x16544b['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x16544b,'isEmptyCurrent')&&writer['uint32'](0x50)['bool'](_0x16544b['isEmptyCurrent']),writer;},RevisionDescriptor['encodeDelimited']=function(_0x166a59,writer){return this['encode'](_0x166a59,writer)['ldelim']();},RevisionDescriptor['decode']=function(_0x1450ef,length,_0x8e5b69,_0xb8d6bf){if(_0x1450ef instanceof _0x28908e||(_0x1450ef=_0x28908e['create'](_0x1450ef)),void 0x0===_0xb8d6bf&&(_0xb8d6bf=0x0),_0xb8d6bf>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1ca410=void 0x0===length?_0x1450ef['len']:_0x1450ef['pos']+length,_0x35b346=new $root['RevisionDescriptor']();_0x1450ef['pos']<_0x1ca410;){var tag=_0x1450ef['uint32']();if(tag===_0x8e5b69)break;switch(tag>>>0x3){case 0x1:_0x35b346['revisionId']=_0x1450ef['string']();break;case 0x2:_0x35b346['name']=_0x1450ef['string']();break;case 0x3:_0x35b346['creatorId']=_0x1450ef['string']();break;case 0x4:_0x35b346['authorsIds']=_0x1450ef['string']();break;case 0x5:_0x35b346['diffData']=_0x1450ef['string']();break;case 0x6:_0x35b346['createdAt']=_0x1450ef['string']();break;case 0x7:_0x35b346['attributes']=_0x1450ef['string']();break;case 0x8:_0x35b346['toVersion']=_0x1450ef['uint32']();break;case 0x9:_0x35b346['fromVersion']=_0x1450ef['uint32']();break;case 0xa:_0x35b346['isEmptyCurrent']=_0x1450ef['bool']();break;default:_0x1450ef['skipType'](0x7&tag,_0xb8d6bf);}}return _0x35b346;},RevisionDescriptor['decodeDelimited']=function(_0x1a28a0){return _0x1a28a0 instanceof _0x28908e||(_0x1a28a0=new _0x28908e(_0x1a28a0)),this['decode'](_0x1a28a0,_0x1a28a0['uint32']());},RevisionDescriptor['verify']=function(_0x3fc440,_0x58e955){return'object'!=typeof _0x3fc440||null===_0x3fc440?'object\x20expected':(void 0x0===_0x58e955&&(_0x58e955=0x0),_0x58e955>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3fc440['revisionId']&&_0x3fc440['hasOwnProperty']('revisionId')&&!$util['isString'](_0x3fc440['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x3fc440['name']&&_0x3fc440['hasOwnProperty']('name')&&!$util['isString'](_0x3fc440['name'])?'name:\x20string\x20expected':null!=_0x3fc440['creatorId']&&_0x3fc440['hasOwnProperty']('creatorId')&&!$util['isString'](_0x3fc440['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x3fc440['authorsIds']&&_0x3fc440['hasOwnProperty']('authorsIds')&&!$util['isString'](_0x3fc440['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x3fc440['diffData']&&_0x3fc440['hasOwnProperty']('diffData')&&!$util['isString'](_0x3fc440['diffData'])?'diffData:\x20string\x20expected':null!=_0x3fc440['createdAt']&&_0x3fc440['hasOwnProperty']('createdAt')&&!$util['isString'](_0x3fc440['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3fc440['attributes']&&_0x3fc440['hasOwnProperty']('attributes')&&!$util['isString'](_0x3fc440['attributes'])?'attributes:\x20string\x20expected':null!=_0x3fc440['toVersion']&&_0x3fc440['hasOwnProperty']('toVersion')&&!$util['isInteger'](_0x3fc440['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x3fc440['fromVersion']&&_0x3fc440['hasOwnProperty']('fromVersion')&&!$util['isInteger'](_0x3fc440['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x3fc440['isEmptyCurrent']&&_0x3fc440['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x3fc440['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null);},RevisionDescriptor['fromObject']=function(object,_0x13e8af){if(object instanceof $root['RevisionDescriptor'])return object;if(void 0x0===_0x13e8af&&(_0x13e8af=0x0),_0x13e8af>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x586d7b=new $root['RevisionDescriptor']();return null!=object['revisionId']&&(_0x586d7b['revisionId']=String(object['revisionId'])),null!=object['name']&&(_0x586d7b['name']=String(object['name'])),null!=object['creatorId']&&(_0x586d7b['creatorId']=String(object['creatorId'])),null!=object['authorsIds']&&(_0x586d7b['authorsIds']=String(object['authorsIds'])),null!=object['diffData']&&(_0x586d7b['diffData']=String(object['diffData'])),null!=object['createdAt']&&(_0x586d7b['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x586d7b['attributes']=String(object['attributes'])),null!=object['toVersion']&&(_0x586d7b['toVersion']=object['toVersion']>>>0x0),null!=object['fromVersion']&&(_0x586d7b['fromVersion']=object['fromVersion']>>>0x0),null!=object['isEmptyCurrent']&&(_0x586d7b['isEmptyCurrent']=Boolean(object['isEmptyCurrent'])),_0x586d7b;},RevisionDescriptor['toObject']=function(_0xdb15a1,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!=_0xdb15a1['revisionId']&&_0xdb15a1['hasOwnProperty']('revisionId')&&(object['revisionId']=_0xdb15a1['revisionId']),null!=_0xdb15a1['name']&&_0xdb15a1['hasOwnProperty']('name')&&(object['name']=_0xdb15a1['name']),null!=_0xdb15a1['creatorId']&&_0xdb15a1['hasOwnProperty']('creatorId')&&(object['creatorId']=_0xdb15a1['creatorId']),null!=_0xdb15a1['authorsIds']&&_0xdb15a1['hasOwnProperty']('authorsIds')&&(object['authorsIds']=_0xdb15a1['authorsIds']),null!=_0xdb15a1['diffData']&&_0xdb15a1['hasOwnProperty']('diffData')&&(object['diffData']=_0xdb15a1['diffData']),null!=_0xdb15a1['createdAt']&&_0xdb15a1['hasOwnProperty']('createdAt')&&(object['createdAt']=_0xdb15a1['createdAt']),null!=_0xdb15a1['attributes']&&_0xdb15a1['hasOwnProperty']('attributes')&&(object['attributes']=_0xdb15a1['attributes']),null!=_0xdb15a1['toVersion']&&_0xdb15a1['hasOwnProperty']('toVersion')&&(object['toVersion']=_0xdb15a1['toVersion']),null!=_0xdb15a1['fromVersion']&&_0xdb15a1['hasOwnProperty']('fromVersion')&&(object['fromVersion']=_0xdb15a1['fromVersion']),null!=_0xdb15a1['isEmptyCurrent']&&_0xdb15a1['hasOwnProperty']('isEmptyCurrent')&&(object['isEmptyCurrent']=_0xdb15a1['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 _0x223870=Object['keys'](properties),_0x2a9a9e=0x0;_0x2a9a9e<_0x223870['length'];++_0x2a9a9e)null!=properties[_0x223870[_0x2a9a9e]]&&'__proto__'!==_0x223870[_0x2a9a9e]&&(this[_0x223870[_0x2a9a9e]]=properties[_0x223870[_0x2a9a9e]]);}}return IsEditorBundleUploadedResponse['prototype']['isUploaded']=!0x1,IsEditorBundleUploadedResponse['create']=function(properties){return new IsEditorBundleUploadedResponse(properties);},IsEditorBundleUploadedResponse['encode']=function(_0x30471e,writer){return writer||(writer=$Writer['create']()),null!=_0x30471e['isUploaded']&&Object['hasOwnProperty']['call'](_0x30471e,'isUploaded')&&writer['uint32'](0x8)['bool'](_0x30471e['isUploaded']),writer;},IsEditorBundleUploadedResponse['encodeDelimited']=function(_0x1389cb,writer){return this['encode'](_0x1389cb,writer)['ldelim']();},IsEditorBundleUploadedResponse['decode']=function(_0x1fd235,length,_0x1c5cbe,_0x8dcf9e){if(_0x1fd235 instanceof _0x28908e||(_0x1fd235=_0x28908e['create'](_0x1fd235)),void 0x0===_0x8dcf9e&&(_0x8dcf9e=0x0),_0x8dcf9e>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3ca3fe=void 0x0===length?_0x1fd235['len']:_0x1fd235['pos']+length,_0x326b37=new $root['IsEditorBundleUploadedResponse']();_0x1fd235['pos']<_0x3ca3fe;){var tag=_0x1fd235['uint32']();if(tag===_0x1c5cbe)break;if(tag>>>0x3==0x1)_0x326b37['isUploaded']=_0x1fd235['bool']();else _0x1fd235['skipType'](0x7&tag,_0x8dcf9e);}return _0x326b37;},IsEditorBundleUploadedResponse['decodeDelimited']=function(_0x4bc695){return _0x4bc695 instanceof _0x28908e||(_0x4bc695=new _0x28908e(_0x4bc695)),this['decode'](_0x4bc695,_0x4bc695['uint32']());},IsEditorBundleUploadedResponse['verify']=function(_0x26d774,_0x1c1503){return'object'!=typeof _0x26d774||null===_0x26d774?'object\x20expected':(void 0x0===_0x1c1503&&(_0x1c1503=0x0),_0x1c1503>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x26d774['isUploaded']&&_0x26d774['hasOwnProperty']('isUploaded')&&'boolean'!=typeof _0x26d774['isUploaded']?'isUploaded:\x20boolean\x20expected':null);},IsEditorBundleUploadedResponse['fromObject']=function(object,_0x2d401b){if(object instanceof $root['IsEditorBundleUploadedResponse'])return object;if(void 0x0===_0x2d401b&&(_0x2d401b=0x0),_0x2d401b>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2f5dcf=new $root['IsEditorBundleUploadedResponse']();return null!=object['isUploaded']&&(_0x2f5dcf['isUploaded']=Boolean(object['isUploaded'])),_0x2f5dcf;},IsEditorBundleUploadedResponse['toObject']=function(_0xb8f8fe,options){options||(options={});var object={};return options['defaults']&&(object['isUploaded']=!0x1),null!=_0xb8f8fe['isUploaded']&&_0xb8f8fe['hasOwnProperty']('isUploaded')&&(object['isUploaded']=_0xb8f8fe['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 _0x530549=Object['keys'](properties),_0x33e1e5=0x0;_0x33e1e5<_0x530549['length'];++_0x33e1e5)null!=properties[_0x530549[_0x33e1e5]]&&'__proto__'!==_0x530549[_0x33e1e5]&&(this[_0x530549[_0x33e1e5]]=properties[_0x530549[_0x33e1e5]]);}}return IsEditorBundleUploadedMessage['prototype']['bundleVersion']='',IsEditorBundleUploadedMessage['create']=function(properties){return new IsEditorBundleUploadedMessage(properties);},IsEditorBundleUploadedMessage['encode']=function(_0x2e1d9d,writer){return writer||(writer=$Writer['create']()),null!=_0x2e1d9d['bundleVersion']&&Object['hasOwnProperty']['call'](_0x2e1d9d,'bundleVersion')&&writer['uint32'](0xa)['string'](_0x2e1d9d['bundleVersion']),writer;},IsEditorBundleUploadedMessage['encodeDelimited']=function(_0x1c6e0a,writer){return this['encode'](_0x1c6e0a,writer)['ldelim']();},IsEditorBundleUploadedMessage['decode']=function(_0x52a40d,length,_0x7153e9,_0x4c1fad){if(_0x52a40d instanceof _0x28908e||(_0x52a40d=_0x28908e['create'](_0x52a40d)),void 0x0===_0x4c1fad&&(_0x4c1fad=0x0),_0x4c1fad>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4f9a4f=void 0x0===length?_0x52a40d['len']:_0x52a40d['pos']+length,_0x529db3=new $root['IsEditorBundleUploadedMessage']();_0x52a40d['pos']<_0x4f9a4f;){var tag=_0x52a40d['uint32']();if(tag===_0x7153e9)break;if(tag>>>0x3==0x1)_0x529db3['bundleVersion']=_0x52a40d['string']();else _0x52a40d['skipType'](0x7&tag,_0x4c1fad);}return _0x529db3;},IsEditorBundleUploadedMessage['decodeDelimited']=function(_0x328665){return _0x328665 instanceof _0x28908e||(_0x328665=new _0x28908e(_0x328665)),this['decode'](_0x328665,_0x328665['uint32']());},IsEditorBundleUploadedMessage['verify']=function(_0x2b6f81,_0x47fa7d){return'object'!=typeof _0x2b6f81||null===_0x2b6f81?'object\x20expected':(void 0x0===_0x47fa7d&&(_0x47fa7d=0x0),_0x47fa7d>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x2b6f81['bundleVersion']&&_0x2b6f81['hasOwnProperty']('bundleVersion')&&!$util['isString'](_0x2b6f81['bundleVersion'])?'bundleVersion:\x20string\x20expected':null);},IsEditorBundleUploadedMessage['fromObject']=function(object,_0x3af2e2){if(object instanceof $root['IsEditorBundleUploadedMessage'])return object;if(void 0x0===_0x3af2e2&&(_0x3af2e2=0x0),_0x3af2e2>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1cb291=new $root['IsEditorBundleUploadedMessage']();return null!=object['bundleVersion']&&(_0x1cb291['bundleVersion']=String(object['bundleVersion'])),_0x1cb291;},IsEditorBundleUploadedMessage['toObject']=function(_0x3ef606,options){options||(options={});var object={};return options['defaults']&&(object['bundleVersion']=''),null!=_0x3ef606['bundleVersion']&&_0x3ef606['hasOwnProperty']('bundleVersion')&&(object['bundleVersion']=_0x3ef606['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 _0x1f2861=Object['keys'](properties),_0x24a9f5=0x0;_0x24a9f5<_0x1f2861['length'];++_0x24a9f5)null!=properties[_0x1f2861[_0x24a9f5]]&&'__proto__'!==_0x1f2861[_0x24a9f5]&&(this[_0x1f2861[_0x24a9f5]]=properties[_0x1f2861[_0x24a9f5]]);}}return KeyValueDescriptor['prototype']['key']='',KeyValueDescriptor['prototype']['value']='',KeyValueDescriptor['create']=function(properties){return new KeyValueDescriptor(properties);},KeyValueDescriptor['encode']=function(_0x2a3e4c,writer){return writer||(writer=$Writer['create']()),null!=_0x2a3e4c['key']&&Object['hasOwnProperty']['call'](_0x2a3e4c,'key')&&writer['uint32'](0xa)['string'](_0x2a3e4c['key']),null!=_0x2a3e4c['value']&&Object['hasOwnProperty']['call'](_0x2a3e4c,'value')&&writer['uint32'](0x12)['string'](_0x2a3e4c['value']),writer;},KeyValueDescriptor['encodeDelimited']=function(_0x28def9,writer){return this['encode'](_0x28def9,writer)['ldelim']();},KeyValueDescriptor['decode']=function(_0xe21037,length,_0x21cb97,_0x4e262d){if(_0xe21037 instanceof _0x28908e||(_0xe21037=_0x28908e['create'](_0xe21037)),void 0x0===_0x4e262d&&(_0x4e262d=0x0),_0x4e262d>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3af749=void 0x0===length?_0xe21037['len']:_0xe21037['pos']+length,_0x3cb8a4=new $root['KeyValueDescriptor']();_0xe21037['pos']<_0x3af749;){var tag=_0xe21037['uint32']();if(tag===_0x21cb97)break;switch(tag>>>0x3){case 0x1:_0x3cb8a4['key']=_0xe21037['string']();break;case 0x2:_0x3cb8a4['value']=_0xe21037['string']();break;default:_0xe21037['skipType'](0x7&tag,_0x4e262d);}}return _0x3cb8a4;},KeyValueDescriptor['decodeDelimited']=function(_0x5cbb88){return _0x5cbb88 instanceof _0x28908e||(_0x5cbb88=new _0x28908e(_0x5cbb88)),this['decode'](_0x5cbb88,_0x5cbb88['uint32']());},KeyValueDescriptor['verify']=function(_0x2fe400,_0x462ee1){return'object'!=typeof _0x2fe400||null===_0x2fe400?'object\x20expected':(void 0x0===_0x462ee1&&(_0x462ee1=0x0),_0x462ee1>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x2fe400['key']&&_0x2fe400['hasOwnProperty']('key')&&!$util['isString'](_0x2fe400['key'])?'key:\x20string\x20expected':null!=_0x2fe400['value']&&_0x2fe400['hasOwnProperty']('value')&&!$util['isString'](_0x2fe400['value'])?'value:\x20string\x20expected':null);},KeyValueDescriptor['fromObject']=function(object,_0x34ee6f){if(object instanceof $root['KeyValueDescriptor'])return object;if(void 0x0===_0x34ee6f&&(_0x34ee6f=0x0),_0x34ee6f>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5d10e5=new $root['KeyValueDescriptor']();return null!=object['key']&&(_0x5d10e5['key']=String(object['key'])),null!=object['value']&&(_0x5d10e5['value']=String(object['value'])),_0x5d10e5;},KeyValueDescriptor['toObject']=function(_0x2b8bf5,options){options||(options={});var object={};return options['defaults']&&(object['key']='',object['value']=''),null!=_0x2b8bf5['key']&&_0x2b8bf5['hasOwnProperty']('key')&&(object['key']=_0x2b8bf5['key']),null!=_0x2b8bf5['value']&&_0x2b8bf5['hasOwnProperty']('value')&&(object['value']=_0x2b8bf5['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 _0x1a7250=Object['keys'](properties),_0x1e9a07=0x0;_0x1e9a07<_0x1a7250['length'];++_0x1e9a07)null!=properties[_0x1a7250[_0x1e9a07]]&&'__proto__'!==_0x1a7250[_0x1e9a07]&&(this[_0x1a7250[_0x1e9a07]]=properties[_0x1a7250[_0x1e9a07]]);}}return CommentsV2GetDocumentThreadsResponse['prototype']['threads']=$util['emptyArray'],CommentsV2GetDocumentThreadsResponse['prototype']['threadsV2']=$util['emptyArray'],CommentsV2GetDocumentThreadsResponse['create']=function(properties){return new CommentsV2GetDocumentThreadsResponse(properties);},CommentsV2GetDocumentThreadsResponse['encode']=function(_0x592138,writer){if(writer||(writer=$Writer['create']()),null!=_0x592138['threads']&&_0x592138['threads']['length']){for(var _0x4967ea=0x0;_0x4967ea<_0x592138['threads']['length'];++_0x4967ea)writer['uint32'](0xa)['string'](_0x592138['threads'][_0x4967ea]);}if(null!=_0x592138['threadsV2']&&_0x592138['threadsV2']['length']){for(_0x4967ea=0x0;_0x4967ea<_0x592138['threadsV2']['length'];++_0x4967ea)$root['CommentsThreadDescriptor']['encode'](_0x592138['threadsV2'][_0x4967ea],writer['uint32'](0x12)['fork']())['ldelim']();}return writer;},CommentsV2GetDocumentThreadsResponse['encodeDelimited']=function(_0x2d6c9f,writer){return this['encode'](_0x2d6c9f,writer)['ldelim']();},CommentsV2GetDocumentThreadsResponse['decode']=function(_0x4fc448,length,_0x35dbc1,_0x37939c){if(_0x4fc448 instanceof _0x28908e||(_0x4fc448=_0x28908e['create'](_0x4fc448)),void 0x0===_0x37939c&&(_0x37939c=0x0),_0x37939c>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5a4b2a=void 0x0===length?_0x4fc448['len']:_0x4fc448['pos']+length,_0x3394d1=new $root['CommentsV2GetDocumentThreadsResponse']();_0x4fc448['pos']<_0x5a4b2a;){var tag=_0x4fc448['uint32']();if(tag===_0x35dbc1)break;switch(tag>>>0x3){case 0x1:_0x3394d1['threads']&&_0x3394d1['threads']['length']||(_0x3394d1['threads']=[]),_0x3394d1['threads']['push'](_0x4fc448['string']());break;case 0x2:_0x3394d1['threadsV2']&&_0x3394d1['threadsV2']['length']||(_0x3394d1['threadsV2']=[]),_0x3394d1['threadsV2']['push']($root['CommentsThreadDescriptor']['decode'](_0x4fc448,_0x4fc448['uint32'](),void 0x0,_0x37939c+0x1));break;default:_0x4fc448['skipType'](0x7&tag,_0x37939c);}}return _0x3394d1;},CommentsV2GetDocumentThreadsResponse['decodeDelimited']=function(_0x234f9e){return _0x234f9e instanceof _0x28908e||(_0x234f9e=new _0x28908e(_0x234f9e)),this['decode'](_0x234f9e,_0x234f9e['uint32']());},CommentsV2GetDocumentThreadsResponse['verify']=function(_0x4a280d,_0x29c202){if('object'!=typeof _0x4a280d||null===_0x4a280d)return'object\x20expected';if(void 0x0===_0x29c202&&(_0x29c202=0x0),_0x29c202>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x4a280d['threads']&&_0x4a280d['hasOwnProperty']('threads')){if(!Array['isArray'](_0x4a280d['threads']))return'threads:\x20array\x20expected';for(var _0x80b825=0x0;_0x80b825<_0x4a280d['threads']['length'];++_0x80b825)if(!$util['isString'](_0x4a280d['threads'][_0x80b825]))return'threads:\x20string[]\x20expected';}if(null!=_0x4a280d['threadsV2']&&_0x4a280d['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x4a280d['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x80b825=0x0;_0x80b825<_0x4a280d['threadsV2']['length'];++_0x80b825){var _0x44c8b1=$root['CommentsThreadDescriptor']['verify'](_0x4a280d['threadsV2'][_0x80b825],_0x29c202+0x1);if(_0x44c8b1)return'threadsV2.'+_0x44c8b1;}}return null;},CommentsV2GetDocumentThreadsResponse['fromObject']=function(object,_0x2f5786){if(object instanceof $root['CommentsV2GetDocumentThreadsResponse'])return object;if(void 0x0===_0x2f5786&&(_0x2f5786=0x0),_0x2f5786>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x41ff8e=new $root['CommentsV2GetDocumentThreadsResponse']();if(object['threads']){if(!Array['isArray'](object['threads']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threads:\x20array\x20expected');_0x41ff8e['threads']=[];for(var _0x2a5c24=0x0;_0x2a5c24<object['threads']['length'];++_0x2a5c24)_0x41ff8e['threads'][_0x2a5c24]=String(object['threads'][_0x2a5c24]);}if(object['threadsV2']){if(!Array['isArray'](object['threadsV2']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20array\x20expected');_0x41ff8e['threadsV2']=[];for(_0x2a5c24=0x0;_0x2a5c24<object['threadsV2']['length'];++_0x2a5c24){if('object'!=typeof object['threadsV2'][_0x2a5c24])throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20object\x20expected');_0x41ff8e['threadsV2'][_0x2a5c24]=$root['CommentsThreadDescriptor']['fromObject'](object['threadsV2'][_0x2a5c24],_0x2f5786+0x1);}}return _0x41ff8e;},CommentsV2GetDocumentThreadsResponse['toObject']=function(_0x359b44,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['threads']=[],object['threadsV2']=[]),_0x359b44['threads']&&_0x359b44['threads']['length']){object['threads']=[];for(var _0x5eec84=0x0;_0x5eec84<_0x359b44['threads']['length'];++_0x5eec84)object['threads'][_0x5eec84]=_0x359b44['threads'][_0x5eec84];}if(_0x359b44['threadsV2']&&_0x359b44['threadsV2']['length']){object['threadsV2']=[];for(_0x5eec84=0x0;_0x5eec84<_0x359b44['threadsV2']['length'];++_0x5eec84)object['threadsV2'][_0x5eec84]=$root['CommentsThreadDescriptor']['toObject'](_0x359b44['threadsV2'][_0x5eec84],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 _0x51bf86=Object['keys'](properties),_0x52fc9f=0x0;_0x52fc9f<_0x51bf86['length'];++_0x52fc9f)null!=properties[_0x51bf86[_0x52fc9f]]&&'__proto__'!==_0x51bf86[_0x52fc9f]&&(this[_0x51bf86[_0x52fc9f]]=properties[_0x51bf86[_0x52fc9f]]);}}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(_0x310cc1,writer){if(writer||(writer=$Writer['create']()),null!=_0x310cc1['commentThreadId']&&Object['hasOwnProperty']['call'](_0x310cc1,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x310cc1['commentThreadId']),null!=_0x310cc1['comments']&&_0x310cc1['comments']['length']){for(var _0x4985bb=0x0;_0x4985bb<_0x310cc1['comments']['length'];++_0x4985bb)writer['uint32'](0x12)['string'](_0x310cc1['comments'][_0x4985bb]);}if(null!=_0x310cc1['commentsV2']&&_0x310cc1['commentsV2']['length']){for(_0x4985bb=0x0;_0x4985bb<_0x310cc1['commentsV2']['length'];++_0x4985bb)$root['CommentDescriptor']['encode'](_0x310cc1['commentsV2'][_0x4985bb],writer['uint32'](0x1a)['fork']())['ldelim']();}return null!=_0x310cc1['resolvedAt']&&Object['hasOwnProperty']['call'](_0x310cc1,'resolvedAt')&&writer['uint32'](0x22)['string'](_0x310cc1['resolvedAt']),null!=_0x310cc1['resolvedBy']&&Object['hasOwnProperty']['call'](_0x310cc1,'resolvedBy')&&writer['uint32'](0x2a)['string'](_0x310cc1['resolvedBy']),null!=_0x310cc1['context']&&Object['hasOwnProperty']['call'](_0x310cc1,'context')&&writer['uint32'](0x32)['string'](_0x310cc1['context']),null!=_0x310cc1['createdAt']&&Object['hasOwnProperty']['call'](_0x310cc1,'createdAt')&&writer['uint32'](0x3a)['string'](_0x310cc1['createdAt']),null!=_0x310cc1['deletedAt']&&Object['hasOwnProperty']['call'](_0x310cc1,'deletedAt')&&writer['uint32'](0x42)['string'](_0x310cc1['deletedAt']),null!=_0x310cc1['attributes']&&Object['hasOwnProperty']['call'](_0x310cc1,'attributes')&&writer['uint32'](0x4a)['string'](_0x310cc1['attributes']),null!=_0x310cc1['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x310cc1,'unlinkedAt')&&writer['uint32'](0x52)['string'](_0x310cc1['unlinkedAt']),writer;},CommentsV2GetCommentThreadResponse['encodeDelimited']=function(_0x2161bb,writer){return this['encode'](_0x2161bb,writer)['ldelim']();},CommentsV2GetCommentThreadResponse['decode']=function(_0x2777cc,length,_0x346019,_0x403400){if(_0x2777cc instanceof _0x28908e||(_0x2777cc=_0x28908e['create'](_0x2777cc)),void 0x0===_0x403400&&(_0x403400=0x0),_0x403400>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4bc7b2=void 0x0===length?_0x2777cc['len']:_0x2777cc['pos']+length,_0x39b786=new $root['CommentsV2GetCommentThreadResponse']();_0x2777cc['pos']<_0x4bc7b2;){var tag=_0x2777cc['uint32']();if(tag===_0x346019)break;switch(tag>>>0x3){case 0x1:_0x39b786['commentThreadId']=_0x2777cc['string']();break;case 0x2:_0x39b786['comments']&&_0x39b786['comments']['length']||(_0x39b786['comments']=[]),_0x39b786['comments']['push'](_0x2777cc['string']());break;case 0x3:_0x39b786['commentsV2']&&_0x39b786['commentsV2']['length']||(_0x39b786['commentsV2']=[]),_0x39b786['commentsV2']['push']($root['CommentDescriptor']['decode'](_0x2777cc,_0x2777cc['uint32'](),void 0x0,_0x403400+0x1));break;case 0x4:_0x39b786['resolvedAt']=_0x2777cc['string']();break;case 0x5:_0x39b786['resolvedBy']=_0x2777cc['string']();break;case 0x6:_0x39b786['context']=_0x2777cc['string']();break;case 0x7:_0x39b786['createdAt']=_0x2777cc['string']();break;case 0x8:_0x39b786['deletedAt']=_0x2777cc['string']();break;case 0x9:_0x39b786['attributes']=_0x2777cc['string']();break;case 0xa:_0x39b786['unlinkedAt']=_0x2777cc['string']();break;default:_0x2777cc['skipType'](0x7&tag,_0x403400);}}return _0x39b786;},CommentsV2GetCommentThreadResponse['decodeDelimited']=function(_0xb6e87a){return _0xb6e87a instanceof _0x28908e||(_0xb6e87a=new _0x28908e(_0xb6e87a)),this['decode'](_0xb6e87a,_0xb6e87a['uint32']());},CommentsV2GetCommentThreadResponse['verify']=function(_0x393968,_0x65055c){if('object'!=typeof _0x393968||null===_0x393968)return'object\x20expected';if(void 0x0===_0x65055c&&(_0x65055c=0x0),_0x65055c>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x393968['commentThreadId']&&_0x393968['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x393968['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x393968['comments']&&_0x393968['hasOwnProperty']('comments')){if(!Array['isArray'](_0x393968['comments']))return'comments:\x20array\x20expected';for(var _0x50342c=0x0;_0x50342c<_0x393968['comments']['length'];++_0x50342c)if(!$util['isString'](_0x393968['comments'][_0x50342c]))return'comments:\x20string[]\x20expected';}if(null!=_0x393968['commentsV2']&&_0x393968['hasOwnProperty']('commentsV2')){if(!Array['isArray'](_0x393968['commentsV2']))return'commentsV2:\x20array\x20expected';for(_0x50342c=0x0;_0x50342c<_0x393968['commentsV2']['length'];++_0x50342c){var _0x3d7050=$root['CommentDescriptor']['verify'](_0x393968['commentsV2'][_0x50342c],_0x65055c+0x1);if(_0x3d7050)return'commentsV2.'+_0x3d7050;}}return null!=_0x393968['resolvedAt']&&_0x393968['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x393968['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x393968['resolvedBy']&&_0x393968['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x393968['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x393968['context']&&_0x393968['hasOwnProperty']('context')&&!$util['isString'](_0x393968['context'])?'context:\x20string\x20expected':null!=_0x393968['createdAt']&&_0x393968['hasOwnProperty']('createdAt')&&!$util['isString'](_0x393968['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x393968['deletedAt']&&_0x393968['hasOwnProperty']('deletedAt')&&!$util['isString'](_0x393968['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x393968['attributes']&&_0x393968['hasOwnProperty']('attributes')&&!$util['isString'](_0x393968['attributes'])?'attributes:\x20string\x20expected':null!=_0x393968['unlinkedAt']&&_0x393968['hasOwnProperty']('unlinkedAt')&&!$util['isString'](_0x393968['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsV2GetCommentThreadResponse['fromObject']=function(object,_0x1cf3e1){if(object instanceof $root['CommentsV2GetCommentThreadResponse'])return object;if(void 0x0===_0x1cf3e1&&(_0x1cf3e1=0x0),_0x1cf3e1>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x77fe95=new $root['CommentsV2GetCommentThreadResponse']();if(null!=object['commentThreadId']&&(_0x77fe95['commentThreadId']=String(object['commentThreadId'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2GetCommentThreadResponse.comments:\x20array\x20expected');_0x77fe95['comments']=[];for(var _0x3c7a2c=0x0;_0x3c7a2c<object['comments']['length'];++_0x3c7a2c)_0x77fe95['comments'][_0x3c7a2c]=String(object['comments'][_0x3c7a2c]);}if(object['commentsV2']){if(!Array['isArray'](object['commentsV2']))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20array\x20expected');_0x77fe95['commentsV2']=[];for(_0x3c7a2c=0x0;_0x3c7a2c<object['commentsV2']['length'];++_0x3c7a2c){if('object'!=typeof object['commentsV2'][_0x3c7a2c])throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20object\x20expected');_0x77fe95['commentsV2'][_0x3c7a2c]=$root['CommentDescriptor']['fromObject'](object['commentsV2'][_0x3c7a2c],_0x1cf3e1+0x1);}}return null!=object['resolvedAt']&&(_0x77fe95['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x77fe95['resolvedBy']=String(object['resolvedBy'])),null!=object['context']&&(_0x77fe95['context']=String(object['context'])),null!=object['createdAt']&&(_0x77fe95['createdAt']=String(object['createdAt'])),null!=object['deletedAt']&&(_0x77fe95['deletedAt']=String(object['deletedAt'])),null!=object['attributes']&&(_0x77fe95['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x77fe95['unlinkedAt']=String(object['unlinkedAt'])),_0x77fe95;},CommentsV2GetCommentThreadResponse['toObject']=function(_0x4c1543,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!=_0x4c1543['commentThreadId']&&_0x4c1543['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x4c1543['commentThreadId']),_0x4c1543['comments']&&_0x4c1543['comments']['length']){object['comments']=[];for(var _0x16b3d2=0x0;_0x16b3d2<_0x4c1543['comments']['length'];++_0x16b3d2)object['comments'][_0x16b3d2]=_0x4c1543['comments'][_0x16b3d2];}if(_0x4c1543['commentsV2']&&_0x4c1543['commentsV2']['length']){object['commentsV2']=[];for(_0x16b3d2=0x0;_0x16b3d2<_0x4c1543['commentsV2']['length'];++_0x16b3d2)object['commentsV2'][_0x16b3d2]=$root['CommentDescriptor']['toObject'](_0x4c1543['commentsV2'][_0x16b3d2],options);}return null!=_0x4c1543['resolvedAt']&&_0x4c1543['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x4c1543['resolvedAt']),null!=_0x4c1543['resolvedBy']&&_0x4c1543['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x4c1543['resolvedBy']),null!=_0x4c1543['context']&&_0x4c1543['hasOwnProperty']('context')&&(object['context']=_0x4c1543['context']),null!=_0x4c1543['createdAt']&&_0x4c1543['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x4c1543['createdAt']),null!=_0x4c1543['deletedAt']&&_0x4c1543['hasOwnProperty']('deletedAt')&&(object['deletedAt']=_0x4c1543['deletedAt']),null!=_0x4c1543['attributes']&&_0x4c1543['hasOwnProperty']('attributes')&&(object['attributes']=_0x4c1543['attributes']),null!=_0x4c1543['unlinkedAt']&&_0x4c1543['hasOwnProperty']('unlinkedAt')&&(object['unlinkedAt']=_0x4c1543['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 _0xa39673=Object['keys'](properties),_0x37e00a=0x0;_0x37e00a<_0xa39673['length'];++_0x37e00a)null!=properties[_0xa39673[_0x37e00a]]&&'__proto__'!==_0xa39673[_0x37e00a]&&(this[_0xa39673[_0x37e00a]]=properties[_0xa39673[_0x37e00a]]);}}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(_0x169220,writer){if(writer||(writer=$Writer['create']()),null!=_0x169220['channel']&&Object['hasOwnProperty']['call'](_0x169220,'channel')&&writer['uint32'](0xa)['string'](_0x169220['channel']),null!=_0x169220['threads']&&_0x169220['threads']['length']){for(var _0x19e4b7=0x0;_0x19e4b7<_0x169220['threads']['length'];++_0x19e4b7)writer['uint32'](0x12)['string'](_0x169220['threads'][_0x19e4b7]);}if(null!=_0x169220['threadsV2']&&_0x169220['threadsV2']['length']){for(_0x19e4b7=0x0;_0x19e4b7<_0x169220['threadsV2']['length'];++_0x19e4b7)$root['CommentsThreadDescriptor']['encode'](_0x169220['threadsV2'][_0x19e4b7],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},CommentsV2ConnectResponse['encodeDelimited']=function(_0x4445bd,writer){return this['encode'](_0x4445bd,writer)['ldelim']();},CommentsV2ConnectResponse['decode']=function(_0x1df12c,length,_0x575931,_0x5c3d8b){if(_0x1df12c instanceof _0x28908e||(_0x1df12c=_0x28908e['create'](_0x1df12c)),void 0x0===_0x5c3d8b&&(_0x5c3d8b=0x0),_0x5c3d8b>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x31c06d=void 0x0===length?_0x1df12c['len']:_0x1df12c['pos']+length,_0x2d29c5=new $root['CommentsV2ConnectResponse']();_0x1df12c['pos']<_0x31c06d;){var tag=_0x1df12c['uint32']();if(tag===_0x575931)break;switch(tag>>>0x3){case 0x1:_0x2d29c5['channel']=_0x1df12c['string']();break;case 0x2:_0x2d29c5['threads']&&_0x2d29c5['threads']['length']||(_0x2d29c5['threads']=[]),_0x2d29c5['threads']['push'](_0x1df12c['string']());break;case 0x3:_0x2d29c5['threadsV2']&&_0x2d29c5['threadsV2']['length']||(_0x2d29c5['threadsV2']=[]),_0x2d29c5['threadsV2']['push']($root['CommentsThreadDescriptor']['decode'](_0x1df12c,_0x1df12c['uint32'](),void 0x0,_0x5c3d8b+0x1));break;default:_0x1df12c['skipType'](0x7&tag,_0x5c3d8b);}}return _0x2d29c5;},CommentsV2ConnectResponse['decodeDelimited']=function(_0x296bb3){return _0x296bb3 instanceof _0x28908e||(_0x296bb3=new _0x28908e(_0x296bb3)),this['decode'](_0x296bb3,_0x296bb3['uint32']());},CommentsV2ConnectResponse['verify']=function(_0x1116b1,_0x4b075a){if('object'!=typeof _0x1116b1||null===_0x1116b1)return'object\x20expected';if(void 0x0===_0x4b075a&&(_0x4b075a=0x0),_0x4b075a>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x1116b1['channel']&&_0x1116b1['hasOwnProperty']('channel')&&!$util['isString'](_0x1116b1['channel']))return'channel:\x20string\x20expected';if(null!=_0x1116b1['threads']&&_0x1116b1['hasOwnProperty']('threads')){if(!Array['isArray'](_0x1116b1['threads']))return'threads:\x20array\x20expected';for(var _0x9c3622=0x0;_0x9c3622<_0x1116b1['threads']['length'];++_0x9c3622)if(!$util['isString'](_0x1116b1['threads'][_0x9c3622]))return'threads:\x20string[]\x20expected';}if(null!=_0x1116b1['threadsV2']&&_0x1116b1['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x1116b1['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x9c3622=0x0;_0x9c3622<_0x1116b1['threadsV2']['length'];++_0x9c3622){var _0x41dcae=$root['CommentsThreadDescriptor']['verify'](_0x1116b1['threadsV2'][_0x9c3622],_0x4b075a+0x1);if(_0x41dcae)return'threadsV2.'+_0x41dcae;}}return null;},CommentsV2ConnectResponse['fromObject']=function(object,_0x31eb2a){if(object instanceof $root['CommentsV2ConnectResponse'])return object;if(void 0x0===_0x31eb2a&&(_0x31eb2a=0x0),_0x31eb2a>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x25db8a=new $root['CommentsV2ConnectResponse']();if(null!=object['channel']&&(_0x25db8a['channel']=String(object['channel'])),object['threads']){if(!Array['isArray'](object['threads']))throw TypeError('.CommentsV2ConnectResponse.threads:\x20array\x20expected');_0x25db8a['threads']=[];for(var _0x1e2d54=0x0;_0x1e2d54<object['threads']['length'];++_0x1e2d54)_0x25db8a['threads'][_0x1e2d54]=String(object['threads'][_0x1e2d54]);}if(object['threadsV2']){if(!Array['isArray'](object['threadsV2']))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20array\x20expected');_0x25db8a['threadsV2']=[];for(_0x1e2d54=0x0;_0x1e2d54<object['threadsV2']['length'];++_0x1e2d54){if('object'!=typeof object['threadsV2'][_0x1e2d54])throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20object\x20expected');_0x25db8a['threadsV2'][_0x1e2d54]=$root['CommentsThreadDescriptor']['fromObject'](object['threadsV2'][_0x1e2d54],_0x31eb2a+0x1);}}return _0x25db8a;},CommentsV2ConnectResponse['toObject']=function(_0x36cd33,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['threads']=[],object['threadsV2']=[]),options['defaults']&&(object['channel']=''),null!=_0x36cd33['channel']&&_0x36cd33['hasOwnProperty']('channel')&&(object['channel']=_0x36cd33['channel']),_0x36cd33['threads']&&_0x36cd33['threads']['length']){object['threads']=[];for(var _0x3b2162=0x0;_0x3b2162<_0x36cd33['threads']['length'];++_0x3b2162)object['threads'][_0x3b2162]=_0x36cd33['threads'][_0x3b2162];}if(_0x36cd33['threadsV2']&&_0x36cd33['threadsV2']['length']){object['threadsV2']=[];for(_0x3b2162=0x0;_0x3b2162<_0x36cd33['threadsV2']['length'];++_0x3b2162)object['threadsV2'][_0x3b2162]=$root['CommentsThreadDescriptor']['toObject'](_0x36cd33['threadsV2'][_0x3b2162],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 _0x40d013=Object['keys'](properties),_0x27d3cf=0x0;_0x27d3cf<_0x40d013['length'];++_0x27d3cf)null!=properties[_0x40d013[_0x27d3cf]]&&'__proto__'!==_0x40d013[_0x27d3cf]&&(this[_0x40d013[_0x27d3cf]]=properties[_0x40d013[_0x27d3cf]]);}}return CommentsV2AddCommentResponse['prototype']['commentThreadId']='',CommentsV2AddCommentResponse['prototype']['commentId']='',CommentsV2AddCommentResponse['prototype']['createdAt']='',CommentsV2AddCommentResponse['create']=function(properties){return new CommentsV2AddCommentResponse(properties);},CommentsV2AddCommentResponse['encode']=function(_0x3e017a,writer){return writer||(writer=$Writer['create']()),null!=_0x3e017a['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3e017a,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x3e017a['commentThreadId']),null!=_0x3e017a['commentId']&&Object['hasOwnProperty']['call'](_0x3e017a,'commentId')&&writer['uint32'](0x12)['string'](_0x3e017a['commentId']),null!=_0x3e017a['createdAt']&&Object['hasOwnProperty']['call'](_0x3e017a,'createdAt')&&writer['uint32'](0x1a)['string'](_0x3e017a['createdAt']),writer;},CommentsV2AddCommentResponse['encodeDelimited']=function(_0x3c3a1f,writer){return this['encode'](_0x3c3a1f,writer)['ldelim']();},CommentsV2AddCommentResponse['decode']=function(_0xff398d,length,_0x4fb6aa,_0x22923f){if(_0xff398d instanceof _0x28908e||(_0xff398d=_0x28908e['create'](_0xff398d)),void 0x0===_0x22923f&&(_0x22923f=0x0),_0x22923f>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x381ae9=void 0x0===length?_0xff398d['len']:_0xff398d['pos']+length,_0x4ce88c=new $root['CommentsV2AddCommentResponse']();_0xff398d['pos']<_0x381ae9;){var tag=_0xff398d['uint32']();if(tag===_0x4fb6aa)break;switch(tag>>>0x3){case 0x1:_0x4ce88c['commentThreadId']=_0xff398d['string']();break;case 0x2:_0x4ce88c['commentId']=_0xff398d['string']();break;case 0x3:_0x4ce88c['createdAt']=_0xff398d['string']();break;default:_0xff398d['skipType'](0x7&tag,_0x22923f);}}return _0x4ce88c;},CommentsV2AddCommentResponse['decodeDelimited']=function(_0x817503){return _0x817503 instanceof _0x28908e||(_0x817503=new _0x28908e(_0x817503)),this['decode'](_0x817503,_0x817503['uint32']());},CommentsV2AddCommentResponse['verify']=function(_0x579b5d,_0x5e1bfa){return'object'!=typeof _0x579b5d||null===_0x579b5d?'object\x20expected':(void 0x0===_0x5e1bfa&&(_0x5e1bfa=0x0),_0x5e1bfa>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x579b5d['commentThreadId']&&_0x579b5d['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x579b5d['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x579b5d['commentId']&&_0x579b5d['hasOwnProperty']('commentId')&&!$util['isString'](_0x579b5d['commentId'])?'commentId:\x20string\x20expected':null!=_0x579b5d['createdAt']&&_0x579b5d['hasOwnProperty']('createdAt')&&!$util['isString'](_0x579b5d['createdAt'])?'createdAt:\x20string\x20expected':null);},CommentsV2AddCommentResponse['fromObject']=function(object,_0x1f5fc9){if(object instanceof $root['CommentsV2AddCommentResponse'])return object;if(void 0x0===_0x1f5fc9&&(_0x1f5fc9=0x0),_0x1f5fc9>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x4abe62=new $root['CommentsV2AddCommentResponse']();return null!=object['commentThreadId']&&(_0x4abe62['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x4abe62['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0x4abe62['createdAt']=String(object['createdAt'])),_0x4abe62;},CommentsV2AddCommentResponse['toObject']=function(_0x40b685,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['createdAt']=''),null!=_0x40b685['commentThreadId']&&_0x40b685['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x40b685['commentThreadId']),null!=_0x40b685['commentId']&&_0x40b685['hasOwnProperty']('commentId')&&(object['commentId']=_0x40b685['commentId']),null!=_0x40b685['createdAt']&&_0x40b685['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x40b685['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 _0x8266=Object['keys'](properties),_0x20d9b5=0x0;_0x20d9b5<_0x8266['length'];++_0x20d9b5)null!=properties[_0x8266[_0x20d9b5]]&&'__proto__'!==_0x8266[_0x20d9b5]&&(this[_0x8266[_0x20d9b5]]=properties[_0x8266[_0x20d9b5]]);}}return CommentsV2ResolveCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2ResolveCommentThreadResponse['prototype']['documentId']='',CommentsV2ResolveCommentThreadResponse['prototype']['resolvedAt']='',CommentsV2ResolveCommentThreadResponse['prototype']['resolvedBy']='',CommentsV2ResolveCommentThreadResponse['create']=function(properties){return new CommentsV2ResolveCommentThreadResponse(properties);},CommentsV2ResolveCommentThreadResponse['encode']=function(_0xcb5819,writer){return writer||(writer=$Writer['create']()),null!=_0xcb5819['commentThreadId']&&Object['hasOwnProperty']['call'](_0xcb5819,'commentThreadId')&&writer['uint32'](0xa)['string'](_0xcb5819['commentThreadId']),null!=_0xcb5819['documentId']&&Object['hasOwnProperty']['call'](_0xcb5819,'documentId')&&writer['uint32'](0x12)['string'](_0xcb5819['documentId']),null!=_0xcb5819['resolvedAt']&&Object['hasOwnProperty']['call'](_0xcb5819,'resolvedAt')&&writer['uint32'](0x1a)['string'](_0xcb5819['resolvedAt']),null!=_0xcb5819['resolvedBy']&&Object['hasOwnProperty']['call'](_0xcb5819,'resolvedBy')&&writer['uint32'](0x22)['string'](_0xcb5819['resolvedBy']),writer;},CommentsV2ResolveCommentThreadResponse['encodeDelimited']=function(_0x2e6e08,writer){return this['encode'](_0x2e6e08,writer)['ldelim']();},CommentsV2ResolveCommentThreadResponse['decode']=function(_0x1652f0,length,_0x47466d,_0x327ded){if(_0x1652f0 instanceof _0x28908e||(_0x1652f0=_0x28908e['create'](_0x1652f0)),void 0x0===_0x327ded&&(_0x327ded=0x0),_0x327ded>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x292a7f=void 0x0===length?_0x1652f0['len']:_0x1652f0['pos']+length,_0x5c87ae=new $root['CommentsV2ResolveCommentThreadResponse']();_0x1652f0['pos']<_0x292a7f;){var tag=_0x1652f0['uint32']();if(tag===_0x47466d)break;switch(tag>>>0x3){case 0x1:_0x5c87ae['commentThreadId']=_0x1652f0['string']();break;case 0x2:_0x5c87ae['documentId']=_0x1652f0['string']();break;case 0x3:_0x5c87ae['resolvedAt']=_0x1652f0['string']();break;case 0x4:_0x5c87ae['resolvedBy']=_0x1652f0['string']();break;default:_0x1652f0['skipType'](0x7&tag,_0x327ded);}}return _0x5c87ae;},CommentsV2ResolveCommentThreadResponse['decodeDelimited']=function(_0x2c1043){return _0x2c1043 instanceof _0x28908e||(_0x2c1043=new _0x28908e(_0x2c1043)),this['decode'](_0x2c1043,_0x2c1043['uint32']());},CommentsV2ResolveCommentThreadResponse['verify']=function(_0x127cfb,_0x57ca3c){return'object'!=typeof _0x127cfb||null===_0x127cfb?'object\x20expected':(void 0x0===_0x57ca3c&&(_0x57ca3c=0x0),_0x57ca3c>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x127cfb['commentThreadId']&&_0x127cfb['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x127cfb['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x127cfb['documentId']&&_0x127cfb['hasOwnProperty']('documentId')&&!$util['isString'](_0x127cfb['documentId'])?'documentId:\x20string\x20expected':null!=_0x127cfb['resolvedAt']&&_0x127cfb['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x127cfb['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x127cfb['resolvedBy']&&_0x127cfb['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x127cfb['resolvedBy'])?'resolvedBy:\x20string\x20expected':null);},CommentsV2ResolveCommentThreadResponse['fromObject']=function(object,_0x17e099){if(object instanceof $root['CommentsV2ResolveCommentThreadResponse'])return object;if(void 0x0===_0x17e099&&(_0x17e099=0x0),_0x17e099>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xbaee34=new $root['CommentsV2ResolveCommentThreadResponse']();return null!=object['commentThreadId']&&(_0xbaee34['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0xbaee34['documentId']=String(object['documentId'])),null!=object['resolvedAt']&&(_0xbaee34['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0xbaee34['resolvedBy']=String(object['resolvedBy'])),_0xbaee34;},CommentsV2ResolveCommentThreadResponse['toObject']=function(_0x5eff2c,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['resolvedAt']='',object['resolvedBy']=''),null!=_0x5eff2c['commentThreadId']&&_0x5eff2c['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x5eff2c['commentThreadId']),null!=_0x5eff2c['documentId']&&_0x5eff2c['hasOwnProperty']('documentId')&&(object['documentId']=_0x5eff2c['documentId']),null!=_0x5eff2c['resolvedAt']&&_0x5eff2c['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x5eff2c['resolvedAt']),null!=_0x5eff2c['resolvedBy']&&_0x5eff2c['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x5eff2c['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 _0xcfc988=Object['keys'](properties),_0x140d87=0x0;_0x140d87<_0xcfc988['length'];++_0x140d87)null!=properties[_0xcfc988[_0x140d87]]&&'__proto__'!==_0xcfc988[_0x140d87]&&(this[_0xcfc988[_0x140d87]]=properties[_0xcfc988[_0x140d87]]);}}return CommentsV2AddCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2AddCommentThreadResponse['prototype']['createdAt']='',CommentsV2AddCommentThreadResponse['prototype']['comments']=$util['emptyArray'],CommentsV2AddCommentThreadResponse['create']=function(properties){return new CommentsV2AddCommentThreadResponse(properties);},CommentsV2AddCommentThreadResponse['encode']=function(_0x5516f5,writer){if(writer||(writer=$Writer['create']()),null!=_0x5516f5['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5516f5,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x5516f5['commentThreadId']),null!=_0x5516f5['createdAt']&&Object['hasOwnProperty']['call'](_0x5516f5,'createdAt')&&writer['uint32'](0x12)['string'](_0x5516f5['createdAt']),null!=_0x5516f5['comments']&&_0x5516f5['comments']['length']){for(var _0x52ef86=0x0;_0x52ef86<_0x5516f5['comments']['length'];++_0x52ef86)$root['CommentThreadAddedCommentDescriptor']['encode'](_0x5516f5['comments'][_0x52ef86],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},CommentsV2AddCommentThreadResponse['encodeDelimited']=function(_0x3e0638,writer){return this['encode'](_0x3e0638,writer)['ldelim']();},CommentsV2AddCommentThreadResponse['decode']=function(_0x264cb7,length,_0x78e73,_0x2ceb9f){if(_0x264cb7 instanceof _0x28908e||(_0x264cb7=_0x28908e['create'](_0x264cb7)),void 0x0===_0x2ceb9f&&(_0x2ceb9f=0x0),_0x2ceb9f>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1e41ff=void 0x0===length?_0x264cb7['len']:_0x264cb7['pos']+length,_0x7b2d5f=new $root['CommentsV2AddCommentThreadResponse']();_0x264cb7['pos']<_0x1e41ff;){var tag=_0x264cb7['uint32']();if(tag===_0x78e73)break;switch(tag>>>0x3){case 0x1:_0x7b2d5f['commentThreadId']=_0x264cb7['string']();break;case 0x2:_0x7b2d5f['createdAt']=_0x264cb7['string']();break;case 0x3:_0x7b2d5f['comments']&&_0x7b2d5f['comments']['length']||(_0x7b2d5f['comments']=[]),_0x7b2d5f['comments']['push']($root['CommentThreadAddedCommentDescriptor']['decode'](_0x264cb7,_0x264cb7['uint32'](),void 0x0,_0x2ceb9f+0x1));break;default:_0x264cb7['skipType'](0x7&tag,_0x2ceb9f);}}return _0x7b2d5f;},CommentsV2AddCommentThreadResponse['decodeDelimited']=function(_0x499b3b){return _0x499b3b instanceof _0x28908e||(_0x499b3b=new _0x28908e(_0x499b3b)),this['decode'](_0x499b3b,_0x499b3b['uint32']());},CommentsV2AddCommentThreadResponse['verify']=function(_0x28e4d9,_0x32fb51){if('object'!=typeof _0x28e4d9||null===_0x28e4d9)return'object\x20expected';if(void 0x0===_0x32fb51&&(_0x32fb51=0x0),_0x32fb51>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x28e4d9['commentThreadId']&&_0x28e4d9['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x28e4d9['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x28e4d9['createdAt']&&_0x28e4d9['hasOwnProperty']('createdAt')&&!$util['isString'](_0x28e4d9['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x28e4d9['comments']&&_0x28e4d9['hasOwnProperty']('comments')){if(!Array['isArray'](_0x28e4d9['comments']))return'comments:\x20array\x20expected';for(var _0x2c304b=0x0;_0x2c304b<_0x28e4d9['comments']['length'];++_0x2c304b){var _0x37b43a=$root['CommentThreadAddedCommentDescriptor']['verify'](_0x28e4d9['comments'][_0x2c304b],_0x32fb51+0x1);if(_0x37b43a)return'comments.'+_0x37b43a;}}return null;},CommentsV2AddCommentThreadResponse['fromObject']=function(object,_0x575507){if(object instanceof $root['CommentsV2AddCommentThreadResponse'])return object;if(void 0x0===_0x575507&&(_0x575507=0x0),_0x575507>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1566b5=new $root['CommentsV2AddCommentThreadResponse']();if(null!=object['commentThreadId']&&(_0x1566b5['commentThreadId']=String(object['commentThreadId'])),null!=object['createdAt']&&(_0x1566b5['createdAt']=String(object['createdAt'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20array\x20expected');_0x1566b5['comments']=[];for(var _0x44d7f5=0x0;_0x44d7f5<object['comments']['length'];++_0x44d7f5){if('object'!=typeof object['comments'][_0x44d7f5])throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20object\x20expected');_0x1566b5['comments'][_0x44d7f5]=$root['CommentThreadAddedCommentDescriptor']['fromObject'](object['comments'][_0x44d7f5],_0x575507+0x1);}}return _0x1566b5;},CommentsV2AddCommentThreadResponse['toObject']=function(_0x5eddf4,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[]),options['defaults']&&(object['commentThreadId']='',object['createdAt']=''),null!=_0x5eddf4['commentThreadId']&&_0x5eddf4['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x5eddf4['commentThreadId']),null!=_0x5eddf4['createdAt']&&_0x5eddf4['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x5eddf4['createdAt']),_0x5eddf4['comments']&&_0x5eddf4['comments']['length']){object['comments']=[];for(var _0x364c27=0x0;_0x364c27<_0x5eddf4['comments']['length'];++_0x364c27)object['comments'][_0x364c27]=$root['CommentThreadAddedCommentDescriptor']['toObject'](_0x5eddf4['comments'][_0x364c27],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 _0x17351a=Object['keys'](properties),_0x31953b=0x0;_0x31953b<_0x17351a['length'];++_0x31953b)null!=properties[_0x17351a[_0x31953b]]&&'__proto__'!==_0x17351a[_0x31953b]&&(this[_0x17351a[_0x31953b]]=properties[_0x17351a[_0x31953b]]);}}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(_0x4c20ec,writer){return writer||(writer=$Writer['create']()),null!=_0x4c20ec['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4c20ec,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x4c20ec['commentThreadId']),null!=_0x4c20ec['commentId']&&Object['hasOwnProperty']['call'](_0x4c20ec,'commentId')&&writer['uint32'](0x12)['string'](_0x4c20ec['commentId']),null!=_0x4c20ec['content']&&Object['hasOwnProperty']['call'](_0x4c20ec,'content')&&writer['uint32'](0x1a)['string'](_0x4c20ec['content']),null!=_0x4c20ec['documentId']&&Object['hasOwnProperty']['call'](_0x4c20ec,'documentId')&&writer['uint32'](0x22)['string'](_0x4c20ec['documentId']),null!=_0x4c20ec['attributes']&&Object['hasOwnProperty']['call'](_0x4c20ec,'attributes')&&writer['uint32'](0x2a)['string'](_0x4c20ec['attributes']),null!=_0x4c20ec['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x4c20ec,'isAttributesUpdated')&&writer['uint32'](0x30)['bool'](_0x4c20ec['isAttributesUpdated']),null!=_0x4c20ec['commentThread']&&Object['hasOwnProperty']['call'](_0x4c20ec,'commentThread')&&$root['CommentsThreadDescriptor']['encode'](_0x4c20ec['commentThread'],writer['uint32'](0x3a)['fork']())['ldelim'](),writer;},CommentsV2UpdateCommentMessage['encodeDelimited']=function(_0x297a65,writer){return this['encode'](_0x297a65,writer)['ldelim']();},CommentsV2UpdateCommentMessage['decode']=function(_0x496500,length,_0x1280c8,_0x70c296){if(_0x496500 instanceof _0x28908e||(_0x496500=_0x28908e['create'](_0x496500)),void 0x0===_0x70c296&&(_0x70c296=0x0),_0x70c296>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xd03fa0=void 0x0===length?_0x496500['len']:_0x496500['pos']+length,_0x597710=new $root['CommentsV2UpdateCommentMessage']();_0x496500['pos']<_0xd03fa0;){var tag=_0x496500['uint32']();if(tag===_0x1280c8)break;switch(tag>>>0x3){case 0x1:_0x597710['commentThreadId']=_0x496500['string']();break;case 0x2:_0x597710['commentId']=_0x496500['string']();break;case 0x3:_0x597710['content']=_0x496500['string']();break;case 0x4:_0x597710['documentId']=_0x496500['string']();break;case 0x5:_0x597710['attributes']=_0x496500['string']();break;case 0x6:_0x597710['isAttributesUpdated']=_0x496500['bool']();break;case 0x7:_0x597710['commentThread']=$root['CommentsThreadDescriptor']['decode'](_0x496500,_0x496500['uint32'](),void 0x0,_0x70c296+0x1);break;default:_0x496500['skipType'](0x7&tag,_0x70c296);}}return _0x597710;},CommentsV2UpdateCommentMessage['decodeDelimited']=function(_0x47e69c){return _0x47e69c instanceof _0x28908e||(_0x47e69c=new _0x28908e(_0x47e69c)),this['decode'](_0x47e69c,_0x47e69c['uint32']());},CommentsV2UpdateCommentMessage['verify']=function(_0x1c1ffe,_0xc4ccf1){if('object'!=typeof _0x1c1ffe||null===_0x1c1ffe)return'object\x20expected';if(void 0x0===_0xc4ccf1&&(_0xc4ccf1=0x0),_0xc4ccf1>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x1c1ffe['commentThreadId']&&_0x1c1ffe['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x1c1ffe['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x1c1ffe['commentId']&&_0x1c1ffe['hasOwnProperty']('commentId')&&!$util['isString'](_0x1c1ffe['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x1c1ffe['content']&&_0x1c1ffe['hasOwnProperty']('content')&&!$util['isString'](_0x1c1ffe['content']))return'content:\x20string\x20expected';if(null!=_0x1c1ffe['documentId']&&_0x1c1ffe['hasOwnProperty']('documentId')&&!$util['isString'](_0x1c1ffe['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x1c1ffe['attributes']&&_0x1c1ffe['hasOwnProperty']('attributes')&&!$util['isString'](_0x1c1ffe['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x1c1ffe['isAttributesUpdated']&&_0x1c1ffe['hasOwnProperty']('isAttributesUpdated')&&'boolean'!=typeof _0x1c1ffe['isAttributesUpdated'])return'isAttributesUpdated:\x20boolean\x20expected';if(null!=_0x1c1ffe['commentThread']&&_0x1c1ffe['hasOwnProperty']('commentThread')){var _0x3cd578=$root['CommentsThreadDescriptor']['verify'](_0x1c1ffe['commentThread'],_0xc4ccf1+0x1);if(_0x3cd578)return'commentThread.'+_0x3cd578;}return null;},CommentsV2UpdateCommentMessage['fromObject']=function(object,_0x397594){if(object instanceof $root['CommentsV2UpdateCommentMessage'])return object;if(void 0x0===_0x397594&&(_0x397594=0x0),_0x397594>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x496895=new $root['CommentsV2UpdateCommentMessage']();if(null!=object['commentThreadId']&&(_0x496895['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x496895['commentId']=String(object['commentId'])),null!=object['content']&&(_0x496895['content']=String(object['content'])),null!=object['documentId']&&(_0x496895['documentId']=String(object['documentId'])),null!=object['attributes']&&(_0x496895['attributes']=String(object['attributes'])),null!=object['isAttributesUpdated']&&(_0x496895['isAttributesUpdated']=Boolean(object['isAttributesUpdated'])),null!=object['commentThread']){if('object'!=typeof object['commentThread'])throw TypeError('.CommentsV2UpdateCommentMessage.commentThread:\x20object\x20expected');_0x496895['commentThread']=$root['CommentsThreadDescriptor']['fromObject'](object['commentThread'],_0x397594+0x1);}return _0x496895;},CommentsV2UpdateCommentMessage['toObject']=function(_0x3a7ced,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!=_0x3a7ced['commentThreadId']&&_0x3a7ced['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x3a7ced['commentThreadId']),null!=_0x3a7ced['commentId']&&_0x3a7ced['hasOwnProperty']('commentId')&&(object['commentId']=_0x3a7ced['commentId']),null!=_0x3a7ced['content']&&_0x3a7ced['hasOwnProperty']('content')&&(object['content']=_0x3a7ced['content']),null!=_0x3a7ced['documentId']&&_0x3a7ced['hasOwnProperty']('documentId')&&(object['documentId']=_0x3a7ced['documentId']),null!=_0x3a7ced['attributes']&&_0x3a7ced['hasOwnProperty']('attributes')&&(object['attributes']=_0x3a7ced['attributes']),null!=_0x3a7ced['isAttributesUpdated']&&_0x3a7ced['hasOwnProperty']('isAttributesUpdated')&&(object['isAttributesUpdated']=_0x3a7ced['isAttributesUpdated']),null!=_0x3a7ced['commentThread']&&_0x3a7ced['hasOwnProperty']('commentThread')&&(object['commentThread']=$root['CommentsThreadDescriptor']['toObject'](_0x3a7ced['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 _0x1b7b4b=Object['keys'](properties),_0x5ad41a=0x0;_0x5ad41a<_0x1b7b4b['length'];++_0x5ad41a)null!=properties[_0x1b7b4b[_0x5ad41a]]&&'__proto__'!==_0x1b7b4b[_0x5ad41a]&&(this[_0x1b7b4b[_0x5ad41a]]=properties[_0x1b7b4b[_0x5ad41a]]);}}return CommentsV2RemoveCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2RemoveCommentThreadMessage['prototype']['documentId']='',CommentsV2RemoveCommentThreadMessage['create']=function(properties){return new CommentsV2RemoveCommentThreadMessage(properties);},CommentsV2RemoveCommentThreadMessage['encode']=function(_0x4f9340,writer){return writer||(writer=$Writer['create']()),null!=_0x4f9340['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4f9340,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x4f9340['commentThreadId']),null!=_0x4f9340['documentId']&&Object['hasOwnProperty']['call'](_0x4f9340,'documentId')&&writer['uint32'](0x12)['string'](_0x4f9340['documentId']),writer;},CommentsV2RemoveCommentThreadMessage['encodeDelimited']=function(_0x16f05d,writer){return this['encode'](_0x16f05d,writer)['ldelim']();},CommentsV2RemoveCommentThreadMessage['decode']=function(_0x27d5d7,length,_0x134467,_0x2ca374){if(_0x27d5d7 instanceof _0x28908e||(_0x27d5d7=_0x28908e['create'](_0x27d5d7)),void 0x0===_0x2ca374&&(_0x2ca374=0x0),_0x2ca374>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x40436f=void 0x0===length?_0x27d5d7['len']:_0x27d5d7['pos']+length,_0x4d0ca9=new $root['CommentsV2RemoveCommentThreadMessage']();_0x27d5d7['pos']<_0x40436f;){var tag=_0x27d5d7['uint32']();if(tag===_0x134467)break;switch(tag>>>0x3){case 0x1:_0x4d0ca9['commentThreadId']=_0x27d5d7['string']();break;case 0x2:_0x4d0ca9['documentId']=_0x27d5d7['string']();break;default:_0x27d5d7['skipType'](0x7&tag,_0x2ca374);}}return _0x4d0ca9;},CommentsV2RemoveCommentThreadMessage['decodeDelimited']=function(_0x1e084c){return _0x1e084c instanceof _0x28908e||(_0x1e084c=new _0x28908e(_0x1e084c)),this['decode'](_0x1e084c,_0x1e084c['uint32']());},CommentsV2RemoveCommentThreadMessage['verify']=function(_0x4b1577,_0x2c06f0){return'object'!=typeof _0x4b1577||null===_0x4b1577?'object\x20expected':(void 0x0===_0x2c06f0&&(_0x2c06f0=0x0),_0x2c06f0>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x4b1577['commentThreadId']&&_0x4b1577['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x4b1577['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x4b1577['documentId']&&_0x4b1577['hasOwnProperty']('documentId')&&!$util['isString'](_0x4b1577['documentId'])?'documentId:\x20string\x20expected':null);},CommentsV2RemoveCommentThreadMessage['fromObject']=function(object,_0x4bfba4){if(object instanceof $root['CommentsV2RemoveCommentThreadMessage'])return object;if(void 0x0===_0x4bfba4&&(_0x4bfba4=0x0),_0x4bfba4>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x46f155=new $root['CommentsV2RemoveCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x46f155['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x46f155['documentId']=String(object['documentId'])),_0x46f155;},CommentsV2RemoveCommentThreadMessage['toObject']=function(_0x4e4a2e,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x4e4a2e['commentThreadId']&&_0x4e4a2e['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x4e4a2e['commentThreadId']),null!=_0x4e4a2e['documentId']&&_0x4e4a2e['hasOwnProperty']('documentId')&&(object['documentId']=_0x4e4a2e['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 _0x1cc3ac=Object['keys'](properties),_0x1b4c3f=0x0;_0x1b4c3f<_0x1cc3ac['length'];++_0x1b4c3f)null!=properties[_0x1cc3ac[_0x1b4c3f]]&&'__proto__'!==_0x1cc3ac[_0x1b4c3f]&&(this[_0x1cc3ac[_0x1b4c3f]]=properties[_0x1cc3ac[_0x1b4c3f]]);}}return CommentsV2RemoveCommentMessage['prototype']['commentThreadId']='',CommentsV2RemoveCommentMessage['prototype']['commentId']='',CommentsV2RemoveCommentMessage['prototype']['documentId']='',CommentsV2RemoveCommentMessage['create']=function(properties){return new CommentsV2RemoveCommentMessage(properties);},CommentsV2RemoveCommentMessage['encode']=function(_0x3913eb,writer){return writer||(writer=$Writer['create']()),null!=_0x3913eb['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3913eb,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x3913eb['commentThreadId']),null!=_0x3913eb['commentId']&&Object['hasOwnProperty']['call'](_0x3913eb,'commentId')&&writer['uint32'](0x12)['string'](_0x3913eb['commentId']),null!=_0x3913eb['documentId']&&Object['hasOwnProperty']['call'](_0x3913eb,'documentId')&&writer['uint32'](0x1a)['string'](_0x3913eb['documentId']),writer;},CommentsV2RemoveCommentMessage['encodeDelimited']=function(_0x341dc6,writer){return this['encode'](_0x341dc6,writer)['ldelim']();},CommentsV2RemoveCommentMessage['decode']=function(_0x5638f8,length,_0x26d80b,_0xc280ae){if(_0x5638f8 instanceof _0x28908e||(_0x5638f8=_0x28908e['create'](_0x5638f8)),void 0x0===_0xc280ae&&(_0xc280ae=0x0),_0xc280ae>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x24d917=void 0x0===length?_0x5638f8['len']:_0x5638f8['pos']+length,_0x527a33=new $root['CommentsV2RemoveCommentMessage']();_0x5638f8['pos']<_0x24d917;){var tag=_0x5638f8['uint32']();if(tag===_0x26d80b)break;switch(tag>>>0x3){case 0x1:_0x527a33['commentThreadId']=_0x5638f8['string']();break;case 0x2:_0x527a33['commentId']=_0x5638f8['string']();break;case 0x3:_0x527a33['documentId']=_0x5638f8['string']();break;default:_0x5638f8['skipType'](0x7&tag,_0xc280ae);}}return _0x527a33;},CommentsV2RemoveCommentMessage['decodeDelimited']=function(_0x55298d){return _0x55298d instanceof _0x28908e||(_0x55298d=new _0x28908e(_0x55298d)),this['decode'](_0x55298d,_0x55298d['uint32']());},CommentsV2RemoveCommentMessage['verify']=function(_0x2aabdf,_0x5e8480){return'object'!=typeof _0x2aabdf||null===_0x2aabdf?'object\x20expected':(void 0x0===_0x5e8480&&(_0x5e8480=0x0),_0x5e8480>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x2aabdf['commentThreadId']&&_0x2aabdf['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x2aabdf['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x2aabdf['commentId']&&_0x2aabdf['hasOwnProperty']('commentId')&&!$util['isString'](_0x2aabdf['commentId'])?'commentId:\x20string\x20expected':null!=_0x2aabdf['documentId']&&_0x2aabdf['hasOwnProperty']('documentId')&&!$util['isString'](_0x2aabdf['documentId'])?'documentId:\x20string\x20expected':null);},CommentsV2RemoveCommentMessage['fromObject']=function(object,_0xfcd374){if(object instanceof $root['CommentsV2RemoveCommentMessage'])return object;if(void 0x0===_0xfcd374&&(_0xfcd374=0x0),_0xfcd374>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x54fca7=new $root['CommentsV2RemoveCommentMessage']();return null!=object['commentThreadId']&&(_0x54fca7['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x54fca7['commentId']=String(object['commentId'])),null!=object['documentId']&&(_0x54fca7['documentId']=String(object['documentId'])),_0x54fca7;},CommentsV2RemoveCommentMessage['toObject']=function(_0x428d31,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['documentId']=''),null!=_0x428d31['commentThreadId']&&_0x428d31['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x428d31['commentThreadId']),null!=_0x428d31['commentId']&&_0x428d31['hasOwnProperty']('commentId')&&(object['commentId']=_0x428d31['commentId']),null!=_0x428d31['documentId']&&_0x428d31['hasOwnProperty']('documentId')&&(object['documentId']=_0x428d31['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 _0x40c029=Object['keys'](properties),_0x3ed167=0x0;_0x3ed167<_0x40c029['length'];++_0x3ed167)null!=properties[_0x40c029[_0x3ed167]]&&'__proto__'!==_0x40c029[_0x3ed167]&&(this[_0x40c029[_0x3ed167]]=properties[_0x40c029[_0x3ed167]]);}}return CommentsV2GetDocumentThreadsMessage['prototype']['documentId']='',CommentsV2GetDocumentThreadsMessage['create']=function(properties){return new CommentsV2GetDocumentThreadsMessage(properties);},CommentsV2GetDocumentThreadsMessage['encode']=function(_0x2bada7,writer){return writer||(writer=$Writer['create']()),null!=_0x2bada7['documentId']&&Object['hasOwnProperty']['call'](_0x2bada7,'documentId')&&writer['uint32'](0xa)['string'](_0x2bada7['documentId']),writer;},CommentsV2GetDocumentThreadsMessage['encodeDelimited']=function(_0x4131e3,writer){return this['encode'](_0x4131e3,writer)['ldelim']();},CommentsV2GetDocumentThreadsMessage['decode']=function(_0x5ea156,length,_0x5cce36,_0x30f46b){if(_0x5ea156 instanceof _0x28908e||(_0x5ea156=_0x28908e['create'](_0x5ea156)),void 0x0===_0x30f46b&&(_0x30f46b=0x0),_0x30f46b>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1a3e92=void 0x0===length?_0x5ea156['len']:_0x5ea156['pos']+length,_0x14f265=new $root['CommentsV2GetDocumentThreadsMessage']();_0x5ea156['pos']<_0x1a3e92;){var tag=_0x5ea156['uint32']();if(tag===_0x5cce36)break;if(tag>>>0x3==0x1)_0x14f265['documentId']=_0x5ea156['string']();else _0x5ea156['skipType'](0x7&tag,_0x30f46b);}return _0x14f265;},CommentsV2GetDocumentThreadsMessage['decodeDelimited']=function(_0x1ade30){return _0x1ade30 instanceof _0x28908e||(_0x1ade30=new _0x28908e(_0x1ade30)),this['decode'](_0x1ade30,_0x1ade30['uint32']());},CommentsV2GetDocumentThreadsMessage['verify']=function(_0x37901c,_0x39c6b6){return'object'!=typeof _0x37901c||null===_0x37901c?'object\x20expected':(void 0x0===_0x39c6b6&&(_0x39c6b6=0x0),_0x39c6b6>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x37901c['documentId']&&_0x37901c['hasOwnProperty']('documentId')&&!$util['isString'](_0x37901c['documentId'])?'documentId:\x20string\x20expected':null);},CommentsV2GetDocumentThreadsMessage['fromObject']=function(object,_0x4f868d){if(object instanceof $root['CommentsV2GetDocumentThreadsMessage'])return object;if(void 0x0===_0x4f868d&&(_0x4f868d=0x0),_0x4f868d>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5abf38=new $root['CommentsV2GetDocumentThreadsMessage']();return null!=object['documentId']&&(_0x5abf38['documentId']=String(object['documentId'])),_0x5abf38;},CommentsV2GetDocumentThreadsMessage['toObject']=function(_0x59ed0c,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x59ed0c['documentId']&&_0x59ed0c['hasOwnProperty']('documentId')&&(object['documentId']=_0x59ed0c['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 _0x2c616a=Object['keys'](properties),_0x3b45e9=0x0;_0x3b45e9<_0x2c616a['length'];++_0x3b45e9)null!=properties[_0x2c616a[_0x3b45e9]]&&'__proto__'!==_0x2c616a[_0x3b45e9]&&(this[_0x2c616a[_0x3b45e9]]=properties[_0x2c616a[_0x3b45e9]]);}}return CommentsV2GetCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2GetCommentThreadMessage['prototype']['documentId']='',CommentsV2GetCommentThreadMessage['create']=function(properties){return new CommentsV2GetCommentThreadMessage(properties);},CommentsV2GetCommentThreadMessage['encode']=function(_0x5eb668,writer){return writer||(writer=$Writer['create']()),null!=_0x5eb668['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5eb668,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x5eb668['commentThreadId']),null!=_0x5eb668['documentId']&&Object['hasOwnProperty']['call'](_0x5eb668,'documentId')&&writer['uint32'](0x12)['string'](_0x5eb668['documentId']),writer;},CommentsV2GetCommentThreadMessage['encodeDelimited']=function(_0x4fad00,writer){return this['encode'](_0x4fad00,writer)['ldelim']();},CommentsV2GetCommentThreadMessage['decode']=function(_0x3eeef2,length,_0x33e24d,_0x2d54e4){if(_0x3eeef2 instanceof _0x28908e||(_0x3eeef2=_0x28908e['create'](_0x3eeef2)),void 0x0===_0x2d54e4&&(_0x2d54e4=0x0),_0x2d54e4>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4d5262=void 0x0===length?_0x3eeef2['len']:_0x3eeef2['pos']+length,_0x396dd8=new $root['CommentsV2GetCommentThreadMessage']();_0x3eeef2['pos']<_0x4d5262;){var tag=_0x3eeef2['uint32']();if(tag===_0x33e24d)break;switch(tag>>>0x3){case 0x1:_0x396dd8['commentThreadId']=_0x3eeef2['string']();break;case 0x2:_0x396dd8['documentId']=_0x3eeef2['string']();break;default:_0x3eeef2['skipType'](0x7&tag,_0x2d54e4);}}return _0x396dd8;},CommentsV2GetCommentThreadMessage['decodeDelimited']=function(_0x5a756e){return _0x5a756e instanceof _0x28908e||(_0x5a756e=new _0x28908e(_0x5a756e)),this['decode'](_0x5a756e,_0x5a756e['uint32']());},CommentsV2GetCommentThreadMessage['verify']=function(_0x396f44,_0x2e5018){return'object'!=typeof _0x396f44||null===_0x396f44?'object\x20expected':(void 0x0===_0x2e5018&&(_0x2e5018=0x0),_0x2e5018>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x396f44['commentThreadId']&&_0x396f44['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x396f44['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x396f44['documentId']&&_0x396f44['hasOwnProperty']('documentId')&&!$util['isString'](_0x396f44['documentId'])?'documentId:\x20string\x20expected':null);},CommentsV2GetCommentThreadMessage['fromObject']=function(object,_0x3553f4){if(object instanceof $root['CommentsV2GetCommentThreadMessage'])return object;if(void 0x0===_0x3553f4&&(_0x3553f4=0x0),_0x3553f4>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x62e4d=new $root['CommentsV2GetCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x62e4d['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x62e4d['documentId']=String(object['documentId'])),_0x62e4d;},CommentsV2GetCommentThreadMessage['toObject']=function(_0x1b2c36,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x1b2c36['commentThreadId']&&_0x1b2c36['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x1b2c36['commentThreadId']),null!=_0x1b2c36['documentId']&&_0x1b2c36['hasOwnProperty']('documentId')&&(object['documentId']=_0x1b2c36['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 _0x29d57f=Object['keys'](properties),_0x1a6f66=0x0;_0x1a6f66<_0x29d57f['length'];++_0x1a6f66)null!=properties[_0x29d57f[_0x1a6f66]]&&'__proto__'!==_0x29d57f[_0x1a6f66]&&(this[_0x29d57f[_0x1a6f66]]=properties[_0x29d57f[_0x1a6f66]]);}}return CommentsV2ConnectMessage['prototype']['documentId']='',CommentsV2ConnectMessage['create']=function(properties){return new CommentsV2ConnectMessage(properties);},CommentsV2ConnectMessage['encode']=function(_0x4a5bcf,writer){return writer||(writer=$Writer['create']()),null!=_0x4a5bcf['documentId']&&Object['hasOwnProperty']['call'](_0x4a5bcf,'documentId')&&writer['uint32'](0xa)['string'](_0x4a5bcf['documentId']),writer;},CommentsV2ConnectMessage['encodeDelimited']=function(_0x1fcc5d,writer){return this['encode'](_0x1fcc5d,writer)['ldelim']();},CommentsV2ConnectMessage['decode']=function(_0xe2b8c7,length,_0x531dd7,_0x3b9984){if(_0xe2b8c7 instanceof _0x28908e||(_0xe2b8c7=_0x28908e['create'](_0xe2b8c7)),void 0x0===_0x3b9984&&(_0x3b9984=0x0),_0x3b9984>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2a61cf=void 0x0===length?_0xe2b8c7['len']:_0xe2b8c7['pos']+length,_0x2466c6=new $root['CommentsV2ConnectMessage']();_0xe2b8c7['pos']<_0x2a61cf;){var tag=_0xe2b8c7['uint32']();if(tag===_0x531dd7)break;if(tag>>>0x3==0x1)_0x2466c6['documentId']=_0xe2b8c7['string']();else _0xe2b8c7['skipType'](0x7&tag,_0x3b9984);}return _0x2466c6;},CommentsV2ConnectMessage['decodeDelimited']=function(_0x220248){return _0x220248 instanceof _0x28908e||(_0x220248=new _0x28908e(_0x220248)),this['decode'](_0x220248,_0x220248['uint32']());},CommentsV2ConnectMessage['verify']=function(_0x557b2b,_0xbb13e4){return'object'!=typeof _0x557b2b||null===_0x557b2b?'object\x20expected':(void 0x0===_0xbb13e4&&(_0xbb13e4=0x0),_0xbb13e4>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x557b2b['documentId']&&_0x557b2b['hasOwnProperty']('documentId')&&!$util['isString'](_0x557b2b['documentId'])?'documentId:\x20string\x20expected':null);},CommentsV2ConnectMessage['fromObject']=function(object,_0x125558){if(object instanceof $root['CommentsV2ConnectMessage'])return object;if(void 0x0===_0x125558&&(_0x125558=0x0),_0x125558>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x4089b6=new $root['CommentsV2ConnectMessage']();return null!=object['documentId']&&(_0x4089b6['documentId']=String(object['documentId'])),_0x4089b6;},CommentsV2ConnectMessage['toObject']=function(_0x24f57c,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x24f57c['documentId']&&_0x24f57c['hasOwnProperty']('documentId')&&(object['documentId']=_0x24f57c['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 _0x576b23=Object['keys'](properties),_0x3692b5=0x0;_0x3692b5<_0x576b23['length'];++_0x3692b5)null!=properties[_0x576b23[_0x3692b5]]&&'__proto__'!==_0x576b23[_0x3692b5]&&(this[_0x576b23[_0x3692b5]]=properties[_0x576b23[_0x3692b5]]);}}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(_0xd128c9,writer){return writer||(writer=$Writer['create']()),null!=_0xd128c9['commentThreadId']&&Object['hasOwnProperty']['call'](_0xd128c9,'commentThreadId')&&writer['uint32'](0xa)['string'](_0xd128c9['commentThreadId']),null!=_0xd128c9['content']&&Object['hasOwnProperty']['call'](_0xd128c9,'content')&&writer['uint32'](0x12)['string'](_0xd128c9['content']),null!=_0xd128c9['documentId']&&Object['hasOwnProperty']['call'](_0xd128c9,'documentId')&&writer['uint32'](0x1a)['string'](_0xd128c9['documentId']),null!=_0xd128c9['commentId']&&Object['hasOwnProperty']['call'](_0xd128c9,'commentId')&&writer['uint32'](0x22)['string'](_0xd128c9['commentId']),null!=_0xd128c9['createdAt']&&Object['hasOwnProperty']['call'](_0xd128c9,'createdAt')&&writer['uint32'](0x2a)['string'](_0xd128c9['createdAt']),null!=_0xd128c9['userId']&&Object['hasOwnProperty']['call'](_0xd128c9,'userId')&&writer['uint32'](0x32)['string'](_0xd128c9['userId']),null!=_0xd128c9['attributes']&&Object['hasOwnProperty']['call'](_0xd128c9,'attributes')&&writer['uint32'](0x3a)['string'](_0xd128c9['attributes']),null!=_0xd128c9['commentThread']&&Object['hasOwnProperty']['call'](_0xd128c9,'commentThread')&&$root['CommentsThreadDescriptor']['encode'](_0xd128c9['commentThread'],writer['uint32'](0x42)['fork']())['ldelim'](),writer;},CommentsV2AddCommentMessage['encodeDelimited']=function(_0x5b23cd,writer){return this['encode'](_0x5b23cd,writer)['ldelim']();},CommentsV2AddCommentMessage['decode']=function(_0x4e5fa9,length,_0x499061,_0x2b10e4){if(_0x4e5fa9 instanceof _0x28908e||(_0x4e5fa9=_0x28908e['create'](_0x4e5fa9)),void 0x0===_0x2b10e4&&(_0x2b10e4=0x0),_0x2b10e4>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x14dbfb=void 0x0===length?_0x4e5fa9['len']:_0x4e5fa9['pos']+length,_0x1d1873=new $root['CommentsV2AddCommentMessage']();_0x4e5fa9['pos']<_0x14dbfb;){var tag=_0x4e5fa9['uint32']();if(tag===_0x499061)break;switch(tag>>>0x3){case 0x1:_0x1d1873['commentThreadId']=_0x4e5fa9['string']();break;case 0x2:_0x1d1873['content']=_0x4e5fa9['string']();break;case 0x3:_0x1d1873['documentId']=_0x4e5fa9['string']();break;case 0x4:_0x1d1873['commentId']=_0x4e5fa9['string']();break;case 0x5:_0x1d1873['createdAt']=_0x4e5fa9['string']();break;case 0x6:_0x1d1873['userId']=_0x4e5fa9['string']();break;case 0x7:_0x1d1873['attributes']=_0x4e5fa9['string']();break;case 0x8:_0x1d1873['commentThread']=$root['CommentsThreadDescriptor']['decode'](_0x4e5fa9,_0x4e5fa9['uint32'](),void 0x0,_0x2b10e4+0x1);break;default:_0x4e5fa9['skipType'](0x7&tag,_0x2b10e4);}}return _0x1d1873;},CommentsV2AddCommentMessage['decodeDelimited']=function(_0x103390){return _0x103390 instanceof _0x28908e||(_0x103390=new _0x28908e(_0x103390)),this['decode'](_0x103390,_0x103390['uint32']());},CommentsV2AddCommentMessage['verify']=function(_0x53be81,_0x45fd03){if('object'!=typeof _0x53be81||null===_0x53be81)return'object\x20expected';if(void 0x0===_0x45fd03&&(_0x45fd03=0x0),_0x45fd03>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x53be81['commentThreadId']&&_0x53be81['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x53be81['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x53be81['content']&&_0x53be81['hasOwnProperty']('content')&&!$util['isString'](_0x53be81['content']))return'content:\x20string\x20expected';if(null!=_0x53be81['documentId']&&_0x53be81['hasOwnProperty']('documentId')&&!$util['isString'](_0x53be81['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x53be81['commentId']&&_0x53be81['hasOwnProperty']('commentId')&&!$util['isString'](_0x53be81['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x53be81['createdAt']&&_0x53be81['hasOwnProperty']('createdAt')&&!$util['isString'](_0x53be81['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x53be81['userId']&&_0x53be81['hasOwnProperty']('userId')&&!$util['isString'](_0x53be81['userId']))return'userId:\x20string\x20expected';if(null!=_0x53be81['attributes']&&_0x53be81['hasOwnProperty']('attributes')&&!$util['isString'](_0x53be81['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x53be81['commentThread']&&_0x53be81['hasOwnProperty']('commentThread')){var _0x1a6f31=$root['CommentsThreadDescriptor']['verify'](_0x53be81['commentThread'],_0x45fd03+0x1);if(_0x1a6f31)return'commentThread.'+_0x1a6f31;}return null;},CommentsV2AddCommentMessage['fromObject']=function(object,_0x106c54){if(object instanceof $root['CommentsV2AddCommentMessage'])return object;if(void 0x0===_0x106c54&&(_0x106c54=0x0),_0x106c54>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x4eb30d=new $root['CommentsV2AddCommentMessage']();if(null!=object['commentThreadId']&&(_0x4eb30d['commentThreadId']=String(object['commentThreadId'])),null!=object['content']&&(_0x4eb30d['content']=String(object['content'])),null!=object['documentId']&&(_0x4eb30d['documentId']=String(object['documentId'])),null!=object['commentId']&&(_0x4eb30d['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0x4eb30d['createdAt']=String(object['createdAt'])),null!=object['userId']&&(_0x4eb30d['userId']=String(object['userId'])),null!=object['attributes']&&(_0x4eb30d['attributes']=String(object['attributes'])),null!=object['commentThread']){if('object'!=typeof object['commentThread'])throw TypeError('.CommentsV2AddCommentMessage.commentThread:\x20object\x20expected');_0x4eb30d['commentThread']=$root['CommentsThreadDescriptor']['fromObject'](object['commentThread'],_0x106c54+0x1);}return _0x4eb30d;},CommentsV2AddCommentMessage['toObject']=function(_0x52ee63,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!=_0x52ee63['commentThreadId']&&_0x52ee63['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x52ee63['commentThreadId']),null!=_0x52ee63['content']&&_0x52ee63['hasOwnProperty']('content')&&(object['content']=_0x52ee63['content']),null!=_0x52ee63['documentId']&&_0x52ee63['hasOwnProperty']('documentId')&&(object['documentId']=_0x52ee63['documentId']),null!=_0x52ee63['commentId']&&_0x52ee63['hasOwnProperty']('commentId')&&(object['commentId']=_0x52ee63['commentId']),null!=_0x52ee63['createdAt']&&_0x52ee63['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x52ee63['createdAt']),null!=_0x52ee63['userId']&&_0x52ee63['hasOwnProperty']('userId')&&(object['userId']=_0x52ee63['userId']),null!=_0x52ee63['attributes']&&_0x52ee63['hasOwnProperty']('attributes')&&(object['attributes']=_0x52ee63['attributes']),null!=_0x52ee63['commentThread']&&_0x52ee63['hasOwnProperty']('commentThread')&&(object['commentThread']=$root['CommentsThreadDescriptor']['toObject'](_0x52ee63['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 _0x4a1b4c=Object['keys'](properties),_0x258eac=0x0;_0x258eac<_0x4a1b4c['length'];++_0x258eac)null!=properties[_0x4a1b4c[_0x258eac]]&&'__proto__'!==_0x4a1b4c[_0x258eac]&&(this[_0x4a1b4c[_0x258eac]]=properties[_0x4a1b4c[_0x258eac]]);}}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(_0x12a592,writer){return writer||(writer=$Writer['create']()),null!=_0x12a592['commentThreadId']&&Object['hasOwnProperty']['call'](_0x12a592,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x12a592['commentThreadId']),null!=_0x12a592['documentId']&&Object['hasOwnProperty']['call'](_0x12a592,'documentId')&&writer['uint32'](0x12)['string'](_0x12a592['documentId']),null!=_0x12a592['context']&&Object['hasOwnProperty']['call'](_0x12a592,'context')&&writer['uint32'](0x1a)['string'](_0x12a592['context']),null!=_0x12a592['attributes']&&Object['hasOwnProperty']['call'](_0x12a592,'attributes')&&writer['uint32'](0x22)['string'](_0x12a592['attributes']),null!=_0x12a592['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x12a592,'unlinkedAt')&&writer['uint32'](0x2a)['string'](_0x12a592['unlinkedAt']),writer;},CommentsV2UpdateCommentThreadMessage['encodeDelimited']=function(_0xf22339,writer){return this['encode'](_0xf22339,writer)['ldelim']();},CommentsV2UpdateCommentThreadMessage['decode']=function(_0x5939ab,length,_0x30e853,_0x5ea299){if(_0x5939ab instanceof _0x28908e||(_0x5939ab=_0x28908e['create'](_0x5939ab)),void 0x0===_0x5ea299&&(_0x5ea299=0x0),_0x5ea299>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xb2f8c2=void 0x0===length?_0x5939ab['len']:_0x5939ab['pos']+length,_0x312550=new $root['CommentsV2UpdateCommentThreadMessage']();_0x5939ab['pos']<_0xb2f8c2;){var tag=_0x5939ab['uint32']();if(tag===_0x30e853)break;switch(tag>>>0x3){case 0x1:_0x312550['commentThreadId']=_0x5939ab['string']();break;case 0x2:_0x312550['documentId']=_0x5939ab['string']();break;case 0x3:_0x312550['context']=_0x5939ab['string']();break;case 0x4:_0x312550['attributes']=_0x5939ab['string']();break;case 0x5:_0x312550['unlinkedAt']=_0x5939ab['string']();break;default:_0x5939ab['skipType'](0x7&tag,_0x5ea299);}}return _0x312550;},CommentsV2UpdateCommentThreadMessage['decodeDelimited']=function(_0x3aefcd){return _0x3aefcd instanceof _0x28908e||(_0x3aefcd=new _0x28908e(_0x3aefcd)),this['decode'](_0x3aefcd,_0x3aefcd['uint32']());},CommentsV2UpdateCommentThreadMessage['verify']=function(_0x27a732,_0x3a02be){return'object'!=typeof _0x27a732||null===_0x27a732?'object\x20expected':(void 0x0===_0x3a02be&&(_0x3a02be=0x0),_0x3a02be>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x27a732['commentThreadId']&&_0x27a732['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x27a732['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x27a732['documentId']&&_0x27a732['hasOwnProperty']('documentId')&&!$util['isString'](_0x27a732['documentId'])?'documentId:\x20string\x20expected':null!=_0x27a732['context']&&_0x27a732['hasOwnProperty']('context')&&!$util['isString'](_0x27a732['context'])?'context:\x20string\x20expected':null!=_0x27a732['attributes']&&_0x27a732['hasOwnProperty']('attributes')&&!$util['isString'](_0x27a732['attributes'])?'attributes:\x20string\x20expected':null!=_0x27a732['unlinkedAt']&&_0x27a732['hasOwnProperty']('unlinkedAt')&&!$util['isString'](_0x27a732['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null);},CommentsV2UpdateCommentThreadMessage['fromObject']=function(object,_0xf68200){if(object instanceof $root['CommentsV2UpdateCommentThreadMessage'])return object;if(void 0x0===_0xf68200&&(_0xf68200=0x0),_0xf68200>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x87bcc5=new $root['CommentsV2UpdateCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x87bcc5['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x87bcc5['documentId']=String(object['documentId'])),null!=object['context']&&(_0x87bcc5['context']=String(object['context'])),null!=object['attributes']&&(_0x87bcc5['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x87bcc5['unlinkedAt']=String(object['unlinkedAt'])),_0x87bcc5;},CommentsV2UpdateCommentThreadMessage['toObject']=function(_0x2b037e,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['context']='',object['attributes']='',object['unlinkedAt']=''),null!=_0x2b037e['commentThreadId']&&_0x2b037e['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x2b037e['commentThreadId']),null!=_0x2b037e['documentId']&&_0x2b037e['hasOwnProperty']('documentId')&&(object['documentId']=_0x2b037e['documentId']),null!=_0x2b037e['context']&&_0x2b037e['hasOwnProperty']('context')&&(object['context']=_0x2b037e['context']),null!=_0x2b037e['attributes']&&_0x2b037e['hasOwnProperty']('attributes')&&(object['attributes']=_0x2b037e['attributes']),null!=_0x2b037e['unlinkedAt']&&_0x2b037e['hasOwnProperty']('unlinkedAt')&&(object['unlinkedAt']=_0x2b037e['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 _0x51dab2=Object['keys'](properties),_0x2bb66f=0x0;_0x2bb66f<_0x51dab2['length'];++_0x2bb66f)null!=properties[_0x51dab2[_0x2bb66f]]&&'__proto__'!==_0x51dab2[_0x2bb66f]&&(this[_0x51dab2[_0x2bb66f]]=properties[_0x51dab2[_0x2bb66f]]);}}return CommentsV2ResolveCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2ResolveCommentThreadMessage['prototype']['documentId']='',CommentsV2ResolveCommentThreadMessage['prototype']['resolvedBy']='',CommentsV2ResolveCommentThreadMessage['prototype']['resolvedAt']='',CommentsV2ResolveCommentThreadMessage['create']=function(properties){return new CommentsV2ResolveCommentThreadMessage(properties);},CommentsV2ResolveCommentThreadMessage['encode']=function(_0x5a0706,writer){return writer||(writer=$Writer['create']()),null!=_0x5a0706['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5a0706,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x5a0706['commentThreadId']),null!=_0x5a0706['documentId']&&Object['hasOwnProperty']['call'](_0x5a0706,'documentId')&&writer['uint32'](0x12)['string'](_0x5a0706['documentId']),null!=_0x5a0706['resolvedBy']&&Object['hasOwnProperty']['call'](_0x5a0706,'resolvedBy')&&writer['uint32'](0x1a)['string'](_0x5a0706['resolvedBy']),null!=_0x5a0706['resolvedAt']&&Object['hasOwnProperty']['call'](_0x5a0706,'resolvedAt')&&writer['uint32'](0x22)['string'](_0x5a0706['resolvedAt']),writer;},CommentsV2ResolveCommentThreadMessage['encodeDelimited']=function(_0x2dc5e8,writer){return this['encode'](_0x2dc5e8,writer)['ldelim']();},CommentsV2ResolveCommentThreadMessage['decode']=function(_0x8cfac5,length,_0x186e3a,_0x434f06){if(_0x8cfac5 instanceof _0x28908e||(_0x8cfac5=_0x28908e['create'](_0x8cfac5)),void 0x0===_0x434f06&&(_0x434f06=0x0),_0x434f06>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3204ee=void 0x0===length?_0x8cfac5['len']:_0x8cfac5['pos']+length,_0x4060fa=new $root['CommentsV2ResolveCommentThreadMessage']();_0x8cfac5['pos']<_0x3204ee;){var tag=_0x8cfac5['uint32']();if(tag===_0x186e3a)break;switch(tag>>>0x3){case 0x1:_0x4060fa['commentThreadId']=_0x8cfac5['string']();break;case 0x2:_0x4060fa['documentId']=_0x8cfac5['string']();break;case 0x3:_0x4060fa['resolvedBy']=_0x8cfac5['string']();break;case 0x4:_0x4060fa['resolvedAt']=_0x8cfac5['string']();break;default:_0x8cfac5['skipType'](0x7&tag,_0x434f06);}}return _0x4060fa;},CommentsV2ResolveCommentThreadMessage['decodeDelimited']=function(_0x2f133f){return _0x2f133f instanceof _0x28908e||(_0x2f133f=new _0x28908e(_0x2f133f)),this['decode'](_0x2f133f,_0x2f133f['uint32']());},CommentsV2ResolveCommentThreadMessage['verify']=function(_0x47b3f4,_0x38e2c1){return'object'!=typeof _0x47b3f4||null===_0x47b3f4?'object\x20expected':(void 0x0===_0x38e2c1&&(_0x38e2c1=0x0),_0x38e2c1>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x47b3f4['commentThreadId']&&_0x47b3f4['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x47b3f4['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x47b3f4['documentId']&&_0x47b3f4['hasOwnProperty']('documentId')&&!$util['isString'](_0x47b3f4['documentId'])?'documentId:\x20string\x20expected':null!=_0x47b3f4['resolvedBy']&&_0x47b3f4['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x47b3f4['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x47b3f4['resolvedAt']&&_0x47b3f4['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x47b3f4['resolvedAt'])?'resolvedAt:\x20string\x20expected':null);},CommentsV2ResolveCommentThreadMessage['fromObject']=function(object,_0x4e1320){if(object instanceof $root['CommentsV2ResolveCommentThreadMessage'])return object;if(void 0x0===_0x4e1320&&(_0x4e1320=0x0),_0x4e1320>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xad02b6=new $root['CommentsV2ResolveCommentThreadMessage']();return null!=object['commentThreadId']&&(_0xad02b6['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0xad02b6['documentId']=String(object['documentId'])),null!=object['resolvedBy']&&(_0xad02b6['resolvedBy']=String(object['resolvedBy'])),null!=object['resolvedAt']&&(_0xad02b6['resolvedAt']=String(object['resolvedAt'])),_0xad02b6;},CommentsV2ResolveCommentThreadMessage['toObject']=function(_0x30a876,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['resolvedBy']='',object['resolvedAt']=''),null!=_0x30a876['commentThreadId']&&_0x30a876['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x30a876['commentThreadId']),null!=_0x30a876['documentId']&&_0x30a876['hasOwnProperty']('documentId')&&(object['documentId']=_0x30a876['documentId']),null!=_0x30a876['resolvedBy']&&_0x30a876['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x30a876['resolvedBy']),null!=_0x30a876['resolvedAt']&&_0x30a876['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x30a876['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 _0x777234=Object['keys'](properties),_0x38ca13=0x0;_0x38ca13<_0x777234['length'];++_0x38ca13)null!=properties[_0x777234[_0x38ca13]]&&'__proto__'!==_0x777234[_0x38ca13]&&(this[_0x777234[_0x38ca13]]=properties[_0x777234[_0x38ca13]]);}}return CommentsV2ReopenCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2ReopenCommentThreadMessage['prototype']['documentId']='',CommentsV2ReopenCommentThreadMessage['create']=function(properties){return new CommentsV2ReopenCommentThreadMessage(properties);},CommentsV2ReopenCommentThreadMessage['encode']=function(_0x35668d,writer){return writer||(writer=$Writer['create']()),null!=_0x35668d['commentThreadId']&&Object['hasOwnProperty']['call'](_0x35668d,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x35668d['commentThreadId']),null!=_0x35668d['documentId']&&Object['hasOwnProperty']['call'](_0x35668d,'documentId')&&writer['uint32'](0x12)['string'](_0x35668d['documentId']),writer;},CommentsV2ReopenCommentThreadMessage['encodeDelimited']=function(_0x3806b7,writer){return this['encode'](_0x3806b7,writer)['ldelim']();},CommentsV2ReopenCommentThreadMessage['decode']=function(_0x398db3,length,_0x22b720,_0x5a841f){if(_0x398db3 instanceof _0x28908e||(_0x398db3=_0x28908e['create'](_0x398db3)),void 0x0===_0x5a841f&&(_0x5a841f=0x0),_0x5a841f>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x6014b7=void 0x0===length?_0x398db3['len']:_0x398db3['pos']+length,_0x2dbdec=new $root['CommentsV2ReopenCommentThreadMessage']();_0x398db3['pos']<_0x6014b7;){var tag=_0x398db3['uint32']();if(tag===_0x22b720)break;switch(tag>>>0x3){case 0x1:_0x2dbdec['commentThreadId']=_0x398db3['string']();break;case 0x2:_0x2dbdec['documentId']=_0x398db3['string']();break;default:_0x398db3['skipType'](0x7&tag,_0x5a841f);}}return _0x2dbdec;},CommentsV2ReopenCommentThreadMessage['decodeDelimited']=function(_0x5e55e2){return _0x5e55e2 instanceof _0x28908e||(_0x5e55e2=new _0x28908e(_0x5e55e2)),this['decode'](_0x5e55e2,_0x5e55e2['uint32']());},CommentsV2ReopenCommentThreadMessage['verify']=function(_0x2cce1d,_0x500753){return'object'!=typeof _0x2cce1d||null===_0x2cce1d?'object\x20expected':(void 0x0===_0x500753&&(_0x500753=0x0),_0x500753>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x2cce1d['commentThreadId']&&_0x2cce1d['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x2cce1d['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x2cce1d['documentId']&&_0x2cce1d['hasOwnProperty']('documentId')&&!$util['isString'](_0x2cce1d['documentId'])?'documentId:\x20string\x20expected':null);},CommentsV2ReopenCommentThreadMessage['fromObject']=function(object,_0x3b7c0c){if(object instanceof $root['CommentsV2ReopenCommentThreadMessage'])return object;if(void 0x0===_0x3b7c0c&&(_0x3b7c0c=0x0),_0x3b7c0c>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1036af=new $root['CommentsV2ReopenCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x1036af['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x1036af['documentId']=String(object['documentId'])),_0x1036af;},CommentsV2ReopenCommentThreadMessage['toObject']=function(_0xb5e6ee,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0xb5e6ee['commentThreadId']&&_0xb5e6ee['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0xb5e6ee['commentThreadId']),null!=_0xb5e6ee['documentId']&&_0xb5e6ee['hasOwnProperty']('documentId')&&(object['documentId']=_0xb5e6ee['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 _0x39d936=Object['keys'](properties),_0x416d4e=0x0;_0x416d4e<_0x39d936['length'];++_0x416d4e)null!=properties[_0x39d936[_0x416d4e]]&&'__proto__'!==_0x39d936[_0x416d4e]&&(this[_0x39d936[_0x416d4e]]=properties[_0x39d936[_0x416d4e]]);}}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(_0x177de0,writer){if(writer||(writer=$Writer['create']()),null!=_0x177de0['documentId']&&Object['hasOwnProperty']['call'](_0x177de0,'documentId')&&writer['uint32'](0xa)['string'](_0x177de0['documentId']),null!=_0x177de0['commentThreadId']&&Object['hasOwnProperty']['call'](_0x177de0,'commentThreadId')&&writer['uint32'](0x12)['string'](_0x177de0['commentThreadId']),null!=_0x177de0['context']&&Object['hasOwnProperty']['call'](_0x177de0,'context')&&writer['uint32'](0x1a)['string'](_0x177de0['context']),null!=_0x177de0['createdAt']&&Object['hasOwnProperty']['call'](_0x177de0,'createdAt')&&writer['uint32'](0x22)['string'](_0x177de0['createdAt']),null!=_0x177de0['resolvedAt']&&Object['hasOwnProperty']['call'](_0x177de0,'resolvedAt')&&writer['uint32'](0x2a)['string'](_0x177de0['resolvedAt']),null!=_0x177de0['resolvedBy']&&Object['hasOwnProperty']['call'](_0x177de0,'resolvedBy')&&writer['uint32'](0x32)['string'](_0x177de0['resolvedBy']),null!=_0x177de0['attributes']&&Object['hasOwnProperty']['call'](_0x177de0,'attributes')&&writer['uint32'](0x3a)['string'](_0x177de0['attributes']),null!=_0x177de0['deletedAt']&&Object['hasOwnProperty']['call'](_0x177de0,'deletedAt')&&writer['uint32'](0x42)['string'](_0x177de0['deletedAt']),null!=_0x177de0['comments']&&_0x177de0['comments']['length']){for(var _0x5a28b3=0x0;_0x5a28b3<_0x177de0['comments']['length'];++_0x5a28b3)$root['CommentDescriptor']['encode'](_0x177de0['comments'][_0x5a28b3],writer['uint32'](0x4a)['fork']())['ldelim']();}return writer;},CommentsV2AddCommentThreadMessage['encodeDelimited']=function(_0x58492a,writer){return this['encode'](_0x58492a,writer)['ldelim']();},CommentsV2AddCommentThreadMessage['decode']=function(_0x1795f7,length,_0x5c197b,_0x26c191){if(_0x1795f7 instanceof _0x28908e||(_0x1795f7=_0x28908e['create'](_0x1795f7)),void 0x0===_0x26c191&&(_0x26c191=0x0),_0x26c191>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x28749d=void 0x0===length?_0x1795f7['len']:_0x1795f7['pos']+length,_0xff8ef=new $root['CommentsV2AddCommentThreadMessage']();_0x1795f7['pos']<_0x28749d;){var tag=_0x1795f7['uint32']();if(tag===_0x5c197b)break;switch(tag>>>0x3){case 0x1:_0xff8ef['documentId']=_0x1795f7['string']();break;case 0x2:_0xff8ef['commentThreadId']=_0x1795f7['string']();break;case 0x3:_0xff8ef['context']=_0x1795f7['string']();break;case 0x4:_0xff8ef['createdAt']=_0x1795f7['string']();break;case 0x5:_0xff8ef['resolvedAt']=_0x1795f7['string']();break;case 0x6:_0xff8ef['resolvedBy']=_0x1795f7['string']();break;case 0x7:_0xff8ef['attributes']=_0x1795f7['string']();break;case 0x8:_0xff8ef['deletedAt']=_0x1795f7['string']();break;case 0x9:_0xff8ef['comments']&&_0xff8ef['comments']['length']||(_0xff8ef['comments']=[]),_0xff8ef['comments']['push']($root['CommentDescriptor']['decode'](_0x1795f7,_0x1795f7['uint32'](),void 0x0,_0x26c191+0x1));break;default:_0x1795f7['skipType'](0x7&tag,_0x26c191);}}return _0xff8ef;},CommentsV2AddCommentThreadMessage['decodeDelimited']=function(_0x5af25c){return _0x5af25c instanceof _0x28908e||(_0x5af25c=new _0x28908e(_0x5af25c)),this['decode'](_0x5af25c,_0x5af25c['uint32']());},CommentsV2AddCommentThreadMessage['verify']=function(_0x11a320,_0x95760d){if('object'!=typeof _0x11a320||null===_0x11a320)return'object\x20expected';if(void 0x0===_0x95760d&&(_0x95760d=0x0),_0x95760d>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x11a320['documentId']&&_0x11a320['hasOwnProperty']('documentId')&&!$util['isString'](_0x11a320['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x11a320['commentThreadId']&&_0x11a320['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x11a320['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x11a320['context']&&_0x11a320['hasOwnProperty']('context')&&!$util['isString'](_0x11a320['context']))return'context:\x20string\x20expected';if(null!=_0x11a320['createdAt']&&_0x11a320['hasOwnProperty']('createdAt')&&!$util['isString'](_0x11a320['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x11a320['resolvedAt']&&_0x11a320['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x11a320['resolvedAt']))return'resolvedAt:\x20string\x20expected';if(null!=_0x11a320['resolvedBy']&&_0x11a320['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x11a320['resolvedBy']))return'resolvedBy:\x20string\x20expected';if(null!=_0x11a320['attributes']&&_0x11a320['hasOwnProperty']('attributes')&&!$util['isString'](_0x11a320['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x11a320['deletedAt']&&_0x11a320['hasOwnProperty']('deletedAt')&&!$util['isString'](_0x11a320['deletedAt']))return'deletedAt:\x20string\x20expected';if(null!=_0x11a320['comments']&&_0x11a320['hasOwnProperty']('comments')){if(!Array['isArray'](_0x11a320['comments']))return'comments:\x20array\x20expected';for(var _0x4e6371=0x0;_0x4e6371<_0x11a320['comments']['length'];++_0x4e6371){var _0x2f34fc=$root['CommentDescriptor']['verify'](_0x11a320['comments'][_0x4e6371],_0x95760d+0x1);if(_0x2f34fc)return'comments.'+_0x2f34fc;}}return null;},CommentsV2AddCommentThreadMessage['fromObject']=function(object,_0x152306){if(object instanceof $root['CommentsV2AddCommentThreadMessage'])return object;if(void 0x0===_0x152306&&(_0x152306=0x0),_0x152306>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x383476=new $root['CommentsV2AddCommentThreadMessage']();if(null!=object['documentId']&&(_0x383476['documentId']=String(object['documentId'])),null!=object['commentThreadId']&&(_0x383476['commentThreadId']=String(object['commentThreadId'])),null!=object['context']&&(_0x383476['context']=String(object['context'])),null!=object['createdAt']&&(_0x383476['createdAt']=String(object['createdAt'])),null!=object['resolvedAt']&&(_0x383476['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x383476['resolvedBy']=String(object['resolvedBy'])),null!=object['attributes']&&(_0x383476['attributes']=String(object['attributes'])),null!=object['deletedAt']&&(_0x383476['deletedAt']=String(object['deletedAt'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20array\x20expected');_0x383476['comments']=[];for(var _0x322e7a=0x0;_0x322e7a<object['comments']['length'];++_0x322e7a){if('object'!=typeof object['comments'][_0x322e7a])throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20object\x20expected');_0x383476['comments'][_0x322e7a]=$root['CommentDescriptor']['fromObject'](object['comments'][_0x322e7a],_0x152306+0x1);}}return _0x383476;},CommentsV2AddCommentThreadMessage['toObject']=function(_0x6ee989,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!=_0x6ee989['documentId']&&_0x6ee989['hasOwnProperty']('documentId')&&(object['documentId']=_0x6ee989['documentId']),null!=_0x6ee989['commentThreadId']&&_0x6ee989['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x6ee989['commentThreadId']),null!=_0x6ee989['context']&&_0x6ee989['hasOwnProperty']('context')&&(object['context']=_0x6ee989['context']),null!=_0x6ee989['createdAt']&&_0x6ee989['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x6ee989['createdAt']),null!=_0x6ee989['resolvedAt']&&_0x6ee989['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x6ee989['resolvedAt']),null!=_0x6ee989['resolvedBy']&&_0x6ee989['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x6ee989['resolvedBy']),null!=_0x6ee989['attributes']&&_0x6ee989['hasOwnProperty']('attributes')&&(object['attributes']=_0x6ee989['attributes']),null!=_0x6ee989['deletedAt']&&_0x6ee989['hasOwnProperty']('deletedAt')&&(object['deletedAt']=_0x6ee989['deletedAt']),_0x6ee989['comments']&&_0x6ee989['comments']['length']){object['comments']=[];for(var _0x3e489d=0x0;_0x3e489d<_0x6ee989['comments']['length'];++_0x3e489d)object['comments'][_0x3e489d]=$root['CommentDescriptor']['toObject'](_0x6ee989['comments'][_0x3e489d],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 _0x595434=Object['keys'](properties),_0x148457=0x0;_0x148457<_0x595434['length'];++_0x148457)null!=properties[_0x595434[_0x148457]]&&'__proto__'!==_0x595434[_0x148457]&&(this[_0x595434[_0x148457]]=properties[_0x595434[_0x148457]]);}}return CommentThreadAddedCommentDescriptor['prototype']['commentId']='',CommentThreadAddedCommentDescriptor['prototype']['createdAt']='',CommentThreadAddedCommentDescriptor['create']=function(properties){return new CommentThreadAddedCommentDescriptor(properties);},CommentThreadAddedCommentDescriptor['encode']=function(_0x56ff57,writer){return writer||(writer=$Writer['create']()),null!=_0x56ff57['commentId']&&Object['hasOwnProperty']['call'](_0x56ff57,'commentId')&&writer['uint32'](0xa)['string'](_0x56ff57['commentId']),null!=_0x56ff57['createdAt']&&Object['hasOwnProperty']['call'](_0x56ff57,'createdAt')&&writer['uint32'](0x12)['string'](_0x56ff57['createdAt']),writer;},CommentThreadAddedCommentDescriptor['encodeDelimited']=function(_0x5d2a4c,writer){return this['encode'](_0x5d2a4c,writer)['ldelim']();},CommentThreadAddedCommentDescriptor['decode']=function(_0x866f1e,length,_0x44baba,_0x22baff){if(_0x866f1e instanceof _0x28908e||(_0x866f1e=_0x28908e['create'](_0x866f1e)),void 0x0===_0x22baff&&(_0x22baff=0x0),_0x22baff>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2131ed=void 0x0===length?_0x866f1e['len']:_0x866f1e['pos']+length,_0x34ec47=new $root['CommentThreadAddedCommentDescriptor']();_0x866f1e['pos']<_0x2131ed;){var tag=_0x866f1e['uint32']();if(tag===_0x44baba)break;switch(tag>>>0x3){case 0x1:_0x34ec47['commentId']=_0x866f1e['string']();break;case 0x2:_0x34ec47['createdAt']=_0x866f1e['string']();break;default:_0x866f1e['skipType'](0x7&tag,_0x22baff);}}return _0x34ec47;},CommentThreadAddedCommentDescriptor['decodeDelimited']=function(_0x4c38c7){return _0x4c38c7 instanceof _0x28908e||(_0x4c38c7=new _0x28908e(_0x4c38c7)),this['decode'](_0x4c38c7,_0x4c38c7['uint32']());},CommentThreadAddedCommentDescriptor['verify']=function(_0xfa0050,_0x50fab9){return'object'!=typeof _0xfa0050||null===_0xfa0050?'object\x20expected':(void 0x0===_0x50fab9&&(_0x50fab9=0x0),_0x50fab9>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0xfa0050['commentId']&&_0xfa0050['hasOwnProperty']('commentId')&&!$util['isString'](_0xfa0050['commentId'])?'commentId:\x20string\x20expected':null!=_0xfa0050['createdAt']&&_0xfa0050['hasOwnProperty']('createdAt')&&!$util['isString'](_0xfa0050['createdAt'])?'createdAt:\x20string\x20expected':null);},CommentThreadAddedCommentDescriptor['fromObject']=function(object,_0x347f12){if(object instanceof $root['CommentThreadAddedCommentDescriptor'])return object;if(void 0x0===_0x347f12&&(_0x347f12=0x0),_0x347f12>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2f2277=new $root['CommentThreadAddedCommentDescriptor']();return null!=object['commentId']&&(_0x2f2277['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0x2f2277['createdAt']=String(object['createdAt'])),_0x2f2277;},CommentThreadAddedCommentDescriptor['toObject']=function(_0x19cf18,options){options||(options={});var object={};return options['defaults']&&(object['commentId']='',object['createdAt']=''),null!=_0x19cf18['commentId']&&_0x19cf18['hasOwnProperty']('commentId')&&(object['commentId']=_0x19cf18['commentId']),null!=_0x19cf18['createdAt']&&_0x19cf18['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x19cf18['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 _0x28f11d=Object['keys'](properties),_0x25e318=0x0;_0x25e318<_0x28f11d['length'];++_0x25e318)null!=properties[_0x28f11d[_0x25e318]]&&'__proto__'!==_0x28f11d[_0x25e318]&&(this[_0x28f11d[_0x25e318]]=properties[_0x28f11d[_0x25e318]]);}}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(_0xc48c29,writer){if(writer||(writer=$Writer['create']()),null!=_0xc48c29['commentThreadId']&&Object['hasOwnProperty']['call'](_0xc48c29,'commentThreadId')&&writer['uint32'](0xa)['string'](_0xc48c29['commentThreadId']),null!=_0xc48c29['comments']&&_0xc48c29['comments']['length']){for(var _0x4ee5a0=0x0;_0x4ee5a0<_0xc48c29['comments']['length'];++_0x4ee5a0)$root['CommentDescriptor']['encode'](_0xc48c29['comments'][_0x4ee5a0],writer['uint32'](0x12)['fork']())['ldelim']();}return null!=_0xc48c29['resolvedAt']&&Object['hasOwnProperty']['call'](_0xc48c29,'resolvedAt')&&writer['uint32'](0x1a)['string'](_0xc48c29['resolvedAt']),null!=_0xc48c29['resolvedBy']&&Object['hasOwnProperty']['call'](_0xc48c29,'resolvedBy')&&writer['uint32'](0x22)['string'](_0xc48c29['resolvedBy']),null!=_0xc48c29['context']&&Object['hasOwnProperty']['call'](_0xc48c29,'context')&&writer['uint32'](0x2a)['string'](_0xc48c29['context']),null!=_0xc48c29['createdAt']&&Object['hasOwnProperty']['call'](_0xc48c29,'createdAt')&&writer['uint32'](0x32)['string'](_0xc48c29['createdAt']),null!=_0xc48c29['deletedAt']&&Object['hasOwnProperty']['call'](_0xc48c29,'deletedAt')&&writer['uint32'](0x3a)['string'](_0xc48c29['deletedAt']),null!=_0xc48c29['attributes']&&Object['hasOwnProperty']['call'](_0xc48c29,'attributes')&&writer['uint32'](0x42)['string'](_0xc48c29['attributes']),null!=_0xc48c29['unlinkedAt']&&Object['hasOwnProperty']['call'](_0xc48c29,'unlinkedAt')&&writer['uint32'](0x4a)['string'](_0xc48c29['unlinkedAt']),writer;},CommentsThreadDescriptor['encodeDelimited']=function(_0x45ef6a,writer){return this['encode'](_0x45ef6a,writer)['ldelim']();},CommentsThreadDescriptor['decode']=function(_0x22c9ce,length,_0x9d35c7,_0x5a7c9f){if(_0x22c9ce instanceof _0x28908e||(_0x22c9ce=_0x28908e['create'](_0x22c9ce)),void 0x0===_0x5a7c9f&&(_0x5a7c9f=0x0),_0x5a7c9f>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1ac500=void 0x0===length?_0x22c9ce['len']:_0x22c9ce['pos']+length,_0x49b015=new $root['CommentsThreadDescriptor']();_0x22c9ce['pos']<_0x1ac500;){var tag=_0x22c9ce['uint32']();if(tag===_0x9d35c7)break;switch(tag>>>0x3){case 0x1:_0x49b015['commentThreadId']=_0x22c9ce['string']();break;case 0x2:_0x49b015['comments']&&_0x49b015['comments']['length']||(_0x49b015['comments']=[]),_0x49b015['comments']['push']($root['CommentDescriptor']['decode'](_0x22c9ce,_0x22c9ce['uint32'](),void 0x0,_0x5a7c9f+0x1));break;case 0x3:_0x49b015['resolvedAt']=_0x22c9ce['string']();break;case 0x4:_0x49b015['resolvedBy']=_0x22c9ce['string']();break;case 0x5:_0x49b015['context']=_0x22c9ce['string']();break;case 0x6:_0x49b015['createdAt']=_0x22c9ce['string']();break;case 0x7:_0x49b015['deletedAt']=_0x22c9ce['string']();break;case 0x8:_0x49b015['attributes']=_0x22c9ce['string']();break;case 0x9:_0x49b015['unlinkedAt']=_0x22c9ce['string']();break;default:_0x22c9ce['skipType'](0x7&tag,_0x5a7c9f);}}return _0x49b015;},CommentsThreadDescriptor['decodeDelimited']=function(_0x4b6aea){return _0x4b6aea instanceof _0x28908e||(_0x4b6aea=new _0x28908e(_0x4b6aea)),this['decode'](_0x4b6aea,_0x4b6aea['uint32']());},CommentsThreadDescriptor['verify']=function(_0x2a93f8,_0xf175b2){if('object'!=typeof _0x2a93f8||null===_0x2a93f8)return'object\x20expected';if(void 0x0===_0xf175b2&&(_0xf175b2=0x0),_0xf175b2>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x2a93f8['commentThreadId']&&_0x2a93f8['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x2a93f8['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x2a93f8['comments']&&_0x2a93f8['hasOwnProperty']('comments')){if(!Array['isArray'](_0x2a93f8['comments']))return'comments:\x20array\x20expected';for(var _0x324fcf=0x0;_0x324fcf<_0x2a93f8['comments']['length'];++_0x324fcf){var _0x21ef0e=$root['CommentDescriptor']['verify'](_0x2a93f8['comments'][_0x324fcf],_0xf175b2+0x1);if(_0x21ef0e)return'comments.'+_0x21ef0e;}}return null!=_0x2a93f8['resolvedAt']&&_0x2a93f8['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x2a93f8['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x2a93f8['resolvedBy']&&_0x2a93f8['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x2a93f8['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x2a93f8['context']&&_0x2a93f8['hasOwnProperty']('context')&&!$util['isString'](_0x2a93f8['context'])?'context:\x20string\x20expected':null!=_0x2a93f8['createdAt']&&_0x2a93f8['hasOwnProperty']('createdAt')&&!$util['isString'](_0x2a93f8['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x2a93f8['deletedAt']&&_0x2a93f8['hasOwnProperty']('deletedAt')&&!$util['isString'](_0x2a93f8['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x2a93f8['attributes']&&_0x2a93f8['hasOwnProperty']('attributes')&&!$util['isString'](_0x2a93f8['attributes'])?'attributes:\x20string\x20expected':null!=_0x2a93f8['unlinkedAt']&&_0x2a93f8['hasOwnProperty']('unlinkedAt')&&!$util['isString'](_0x2a93f8['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsThreadDescriptor['fromObject']=function(object,_0x4abf8f){if(object instanceof $root['CommentsThreadDescriptor'])return object;if(void 0x0===_0x4abf8f&&(_0x4abf8f=0x0),_0x4abf8f>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x249054=new $root['CommentsThreadDescriptor']();if(null!=object['commentThreadId']&&(_0x249054['commentThreadId']=String(object['commentThreadId'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsThreadDescriptor.comments:\x20array\x20expected');_0x249054['comments']=[];for(var _0x20e2bc=0x0;_0x20e2bc<object['comments']['length'];++_0x20e2bc){if('object'!=typeof object['comments'][_0x20e2bc])throw TypeError('.CommentsThreadDescriptor.comments:\x20object\x20expected');_0x249054['comments'][_0x20e2bc]=$root['CommentDescriptor']['fromObject'](object['comments'][_0x20e2bc],_0x4abf8f+0x1);}}return null!=object['resolvedAt']&&(_0x249054['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x249054['resolvedBy']=String(object['resolvedBy'])),null!=object['context']&&(_0x249054['context']=String(object['context'])),null!=object['createdAt']&&(_0x249054['createdAt']=String(object['createdAt'])),null!=object['deletedAt']&&(_0x249054['deletedAt']=String(object['deletedAt'])),null!=object['attributes']&&(_0x249054['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x249054['unlinkedAt']=String(object['unlinkedAt'])),_0x249054;},CommentsThreadDescriptor['toObject']=function(_0x2da25c,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!=_0x2da25c['commentThreadId']&&_0x2da25c['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x2da25c['commentThreadId']),_0x2da25c['comments']&&_0x2da25c['comments']['length']){object['comments']=[];for(var _0x107a65=0x0;_0x107a65<_0x2da25c['comments']['length'];++_0x107a65)object['comments'][_0x107a65]=$root['CommentDescriptor']['toObject'](_0x2da25c['comments'][_0x107a65],options);}return null!=_0x2da25c['resolvedAt']&&_0x2da25c['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x2da25c['resolvedAt']),null!=_0x2da25c['resolvedBy']&&_0x2da25c['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x2da25c['resolvedBy']),null!=_0x2da25c['context']&&_0x2da25c['hasOwnProperty']('context')&&(object['context']=_0x2da25c['context']),null!=_0x2da25c['createdAt']&&_0x2da25c['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x2da25c['createdAt']),null!=_0x2da25c['deletedAt']&&_0x2da25c['hasOwnProperty']('deletedAt')&&(object['deletedAt']=_0x2da25c['deletedAt']),null!=_0x2da25c['attributes']&&_0x2da25c['hasOwnProperty']('attributes')&&(object['attributes']=_0x2da25c['attributes']),null!=_0x2da25c['unlinkedAt']&&_0x2da25c['hasOwnProperty']('unlinkedAt')&&(object['unlinkedAt']=_0x2da25c['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 _0x14a473=Object['keys'](properties),_0x1804a3=0x0;_0x1804a3<_0x14a473['length'];++_0x1804a3)null!=properties[_0x14a473[_0x1804a3]]&&'__proto__'!==_0x14a473[_0x1804a3]&&(this[_0x14a473[_0x1804a3]]=properties[_0x14a473[_0x1804a3]]);}}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(_0x5734c2,writer){return writer||(writer=$Writer['create']()),null!=_0x5734c2['commentId']&&Object['hasOwnProperty']['call'](_0x5734c2,'commentId')&&writer['uint32'](0xa)['string'](_0x5734c2['commentId']),null!=_0x5734c2['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5734c2,'commentThreadId')&&writer['uint32'](0x12)['string'](_0x5734c2['commentThreadId']),null!=_0x5734c2['userId']&&Object['hasOwnProperty']['call'](_0x5734c2,'userId')&&writer['uint32'](0x1a)['string'](_0x5734c2['userId']),null!=_0x5734c2['content']&&Object['hasOwnProperty']['call'](_0x5734c2,'content')&&writer['uint32'](0x22)['string'](_0x5734c2['content']),null!=_0x5734c2['documentId']&&Object['hasOwnProperty']['call'](_0x5734c2,'documentId')&&writer['uint32'](0x2a)['string'](_0x5734c2['documentId']),null!=_0x5734c2['createdAt']&&Object['hasOwnProperty']['call'](_0x5734c2,'createdAt')&&writer['uint32'](0x32)['string'](_0x5734c2['createdAt']),null!=_0x5734c2['attributes']&&Object['hasOwnProperty']['call'](_0x5734c2,'attributes')&&writer['uint32'](0x3a)['string'](_0x5734c2['attributes']),writer;},CommentDescriptor['encodeDelimited']=function(_0x14b748,writer){return this['encode'](_0x14b748,writer)['ldelim']();},CommentDescriptor['decode']=function(_0x2f0638,length,_0x2fb8bc,_0x47e179){if(_0x2f0638 instanceof _0x28908e||(_0x2f0638=_0x28908e['create'](_0x2f0638)),void 0x0===_0x47e179&&(_0x47e179=0x0),_0x47e179>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1bdcd4=void 0x0===length?_0x2f0638['len']:_0x2f0638['pos']+length,_0x766afb=new $root['CommentDescriptor']();_0x2f0638['pos']<_0x1bdcd4;){var tag=_0x2f0638['uint32']();if(tag===_0x2fb8bc)break;switch(tag>>>0x3){case 0x1:_0x766afb['commentId']=_0x2f0638['string']();break;case 0x2:_0x766afb['commentThreadId']=_0x2f0638['string']();break;case 0x3:_0x766afb['userId']=_0x2f0638['string']();break;case 0x4:_0x766afb['content']=_0x2f0638['string']();break;case 0x5:_0x766afb['documentId']=_0x2f0638['string']();break;case 0x6:_0x766afb['createdAt']=_0x2f0638['string']();break;case 0x7:_0x766afb['attributes']=_0x2f0638['string']();break;default:_0x2f0638['skipType'](0x7&tag,_0x47e179);}}return _0x766afb;},CommentDescriptor['decodeDelimited']=function(_0x4621ee){return _0x4621ee instanceof _0x28908e||(_0x4621ee=new _0x28908e(_0x4621ee)),this['decode'](_0x4621ee,_0x4621ee['uint32']());},CommentDescriptor['verify']=function(_0x3f85d1,_0xc87e6a){return'object'!=typeof _0x3f85d1||null===_0x3f85d1?'object\x20expected':(void 0x0===_0xc87e6a&&(_0xc87e6a=0x0),_0xc87e6a>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3f85d1['commentId']&&_0x3f85d1['hasOwnProperty']('commentId')&&!$util['isString'](_0x3f85d1['commentId'])?'commentId:\x20string\x20expected':null!=_0x3f85d1['commentThreadId']&&_0x3f85d1['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x3f85d1['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x3f85d1['userId']&&_0x3f85d1['hasOwnProperty']('userId')&&!$util['isString'](_0x3f85d1['userId'])?'userId:\x20string\x20expected':null!=_0x3f85d1['content']&&_0x3f85d1['hasOwnProperty']('content')&&!$util['isString'](_0x3f85d1['content'])?'content:\x20string\x20expected':null!=_0x3f85d1['documentId']&&_0x3f85d1['hasOwnProperty']('documentId')&&!$util['isString'](_0x3f85d1['documentId'])?'documentId:\x20string\x20expected':null!=_0x3f85d1['createdAt']&&_0x3f85d1['hasOwnProperty']('createdAt')&&!$util['isString'](_0x3f85d1['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3f85d1['attributes']&&_0x3f85d1['hasOwnProperty']('attributes')&&!$util['isString'](_0x3f85d1['attributes'])?'attributes:\x20string\x20expected':null);},CommentDescriptor['fromObject']=function(object,_0x270461){if(object instanceof $root['CommentDescriptor'])return object;if(void 0x0===_0x270461&&(_0x270461=0x0),_0x270461>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x124c32=new $root['CommentDescriptor']();return null!=object['commentId']&&(_0x124c32['commentId']=String(object['commentId'])),null!=object['commentThreadId']&&(_0x124c32['commentThreadId']=String(object['commentThreadId'])),null!=object['userId']&&(_0x124c32['userId']=String(object['userId'])),null!=object['content']&&(_0x124c32['content']=String(object['content'])),null!=object['documentId']&&(_0x124c32['documentId']=String(object['documentId'])),null!=object['createdAt']&&(_0x124c32['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x124c32['attributes']=String(object['attributes'])),_0x124c32;},CommentDescriptor['toObject']=function(_0x3cc743,options){options||(options={});var object={};return options['defaults']&&(object['commentId']='',object['commentThreadId']='',object['userId']='',object['content']='',object['documentId']='',object['createdAt']='',object['attributes']=''),null!=_0x3cc743['commentId']&&_0x3cc743['hasOwnProperty']('commentId')&&(object['commentId']=_0x3cc743['commentId']),null!=_0x3cc743['commentThreadId']&&_0x3cc743['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x3cc743['commentThreadId']),null!=_0x3cc743['userId']&&_0x3cc743['hasOwnProperty']('userId')&&(object['userId']=_0x3cc743['userId']),null!=_0x3cc743['content']&&_0x3cc743['hasOwnProperty']('content')&&(object['content']=_0x3cc743['content']),null!=_0x3cc743['documentId']&&_0x3cc743['hasOwnProperty']('documentId')&&(object['documentId']=_0x3cc743['documentId']),null!=_0x3cc743['createdAt']&&_0x3cc743['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x3cc743['createdAt']),null!=_0x3cc743['attributes']&&_0x3cc743['hasOwnProperty']('attributes')&&(object['attributes']=_0x3cc743['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 _0x23a7c5=Object['keys'](properties),_0x21bde3=0x0;_0x21bde3<_0x23a7c5['length'];++_0x21bde3)null!=properties[_0x23a7c5[_0x21bde3]]&&'__proto__'!==_0x23a7c5[_0x21bde3]&&(this[_0x23a7c5[_0x21bde3]]=properties[_0x23a7c5[_0x21bde3]]);}}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(_0x27c3ba,writer){return writer||(writer=$Writer['create']()),null!=_0x27c3ba['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x27c3ba,'lastDocumentSessionId')&&writer['uint32'](0xa)['string'](_0x27c3ba['lastDocumentSessionId']),null!=_0x27c3ba['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x27c3ba,'lastDocumentSessionOperationId')&&writer['uint32'](0x12)['string'](_0x27c3ba['lastDocumentSessionOperationId']),null!=_0x27c3ba['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x27c3ba,'currentDocumentSessionId')&&writer['uint32'](0x1a)['string'](_0x27c3ba['currentDocumentSessionId']),null!=_0x27c3ba['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x27c3ba,'currentDocumentSessionVersion')&&writer['uint32'](0x20)['uint32'](_0x27c3ba['currentDocumentSessionVersion']),null!=_0x27c3ba['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x27c3ba,'currentDocumentSessionOperationId')&&writer['uint32'](0x2a)['string'](_0x27c3ba['currentDocumentSessionOperationId']),writer;},GetDocumentDetailsResponse['encodeDelimited']=function(_0x3da9a4,writer){return this['encode'](_0x3da9a4,writer)['ldelim']();},GetDocumentDetailsResponse['decode']=function(_0x28086a,length,_0x47b446,_0x4aba16){if(_0x28086a instanceof _0x28908e||(_0x28086a=_0x28908e['create'](_0x28086a)),void 0x0===_0x4aba16&&(_0x4aba16=0x0),_0x4aba16>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x473560=void 0x0===length?_0x28086a['len']:_0x28086a['pos']+length,_0x4482ed=new $root['GetDocumentDetailsResponse']();_0x28086a['pos']<_0x473560;){var tag=_0x28086a['uint32']();if(tag===_0x47b446)break;switch(tag>>>0x3){case 0x1:_0x4482ed['lastDocumentSessionId']=_0x28086a['string']();break;case 0x2:_0x4482ed['lastDocumentSessionOperationId']=_0x28086a['string']();break;case 0x3:_0x4482ed['currentDocumentSessionId']=_0x28086a['string']();break;case 0x4:_0x4482ed['currentDocumentSessionVersion']=_0x28086a['uint32']();break;case 0x5:_0x4482ed['currentDocumentSessionOperationId']=_0x28086a['string']();break;default:_0x28086a['skipType'](0x7&tag,_0x4aba16);}}return _0x4482ed;},GetDocumentDetailsResponse['decodeDelimited']=function(_0xfb455d){return _0xfb455d instanceof _0x28908e||(_0xfb455d=new _0x28908e(_0xfb455d)),this['decode'](_0xfb455d,_0xfb455d['uint32']());},GetDocumentDetailsResponse['verify']=function(_0x1e5f60,_0x365953){return'object'!=typeof _0x1e5f60||null===_0x1e5f60?'object\x20expected':(void 0x0===_0x365953&&(_0x365953=0x0),_0x365953>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x1e5f60['lastDocumentSessionId']&&_0x1e5f60['hasOwnProperty']('lastDocumentSessionId')&&!$util['isString'](_0x1e5f60['lastDocumentSessionId'])?'lastDocumentSessionId:\x20string\x20expected':null!=_0x1e5f60['lastDocumentSessionOperationId']&&_0x1e5f60['hasOwnProperty']('lastDocumentSessionOperationId')&&!$util['isString'](_0x1e5f60['lastDocumentSessionOperationId'])?'lastDocumentSessionOperationId:\x20string\x20expected':null!=_0x1e5f60['currentDocumentSessionId']&&_0x1e5f60['hasOwnProperty']('currentDocumentSessionId')&&!$util['isString'](_0x1e5f60['currentDocumentSessionId'])?'currentDocumentSessionId:\x20string\x20expected':null!=_0x1e5f60['currentDocumentSessionVersion']&&_0x1e5f60['hasOwnProperty']('currentDocumentSessionVersion')&&!$util['isInteger'](_0x1e5f60['currentDocumentSessionVersion'])?'currentDocumentSessionVersion:\x20integer\x20expected':null!=_0x1e5f60['currentDocumentSessionOperationId']&&_0x1e5f60['hasOwnProperty']('currentDocumentSessionOperationId')&&!$util['isString'](_0x1e5f60['currentDocumentSessionOperationId'])?'currentDocumentSessionOperationId:\x20string\x20expected':null);},GetDocumentDetailsResponse['fromObject']=function(object,_0x15844a){if(object instanceof $root['GetDocumentDetailsResponse'])return object;if(void 0x0===_0x15844a&&(_0x15844a=0x0),_0x15844a>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xc017b1=new $root['GetDocumentDetailsResponse']();return null!=object['lastDocumentSessionId']&&(_0xc017b1['lastDocumentSessionId']=String(object['lastDocumentSessionId'])),null!=object['lastDocumentSessionOperationId']&&(_0xc017b1['lastDocumentSessionOperationId']=String(object['lastDocumentSessionOperationId'])),null!=object['currentDocumentSessionId']&&(_0xc017b1['currentDocumentSessionId']=String(object['currentDocumentSessionId'])),null!=object['currentDocumentSessionVersion']&&(_0xc017b1['currentDocumentSessionVersion']=object['currentDocumentSessionVersion']>>>0x0),null!=object['currentDocumentSessionOperationId']&&(_0xc017b1['currentDocumentSessionOperationId']=String(object['currentDocumentSessionOperationId'])),_0xc017b1;},GetDocumentDetailsResponse['toObject']=function(_0x4ae0cc,options){options||(options={});var object={};return options['defaults']&&(object['lastDocumentSessionId']='',object['lastDocumentSessionOperationId']='',object['currentDocumentSessionId']='',object['currentDocumentSessionVersion']=0x0,object['currentDocumentSessionOperationId']=''),null!=_0x4ae0cc['lastDocumentSessionId']&&_0x4ae0cc['hasOwnProperty']('lastDocumentSessionId')&&(object['lastDocumentSessionId']=_0x4ae0cc['lastDocumentSessionId']),null!=_0x4ae0cc['lastDocumentSessionOperationId']&&_0x4ae0cc['hasOwnProperty']('lastDocumentSessionOperationId')&&(object['lastDocumentSessionOperationId']=_0x4ae0cc['lastDocumentSessionOperationId']),null!=_0x4ae0cc['currentDocumentSessionId']&&_0x4ae0cc['hasOwnProperty']('currentDocumentSessionId')&&(object['currentDocumentSessionId']=_0x4ae0cc['currentDocumentSessionId']),null!=_0x4ae0cc['currentDocumentSessionVersion']&&_0x4ae0cc['hasOwnProperty']('currentDocumentSessionVersion')&&(object['currentDocumentSessionVersion']=_0x4ae0cc['currentDocumentSessionVersion']),null!=_0x4ae0cc['currentDocumentSessionOperationId']&&_0x4ae0cc['hasOwnProperty']('currentDocumentSessionOperationId')&&(object['currentDocumentSessionOperationId']=_0x4ae0cc['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 _0x15a7f2=Object['keys'](properties),_0x27f303=0x0;_0x27f303<_0x15a7f2['length'];++_0x27f303)null!=properties[_0x15a7f2[_0x27f303]]&&'__proto__'!==_0x15a7f2[_0x27f303]&&(this[_0x15a7f2[_0x27f303]]=properties[_0x15a7f2[_0x27f303]]);}}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(_0x1cfff0,writer){if(writer||(writer=$Writer['create']()),null!=_0x1cfff0['version']&&Object['hasOwnProperty']['call'](_0x1cfff0,'version')&&writer['uint32'](0x8)['uint32'](_0x1cfff0['version']),null!=_0x1cfff0['buffers']&&_0x1cfff0['buffers']['length']){for(var _0x3f869f=0x0;_0x3f869f<_0x1cfff0['buffers']['length'];++_0x3f869f)writer['uint32'](0x12)['bytes'](_0x1cfff0['buffers'][_0x3f869f]);}if(null!=_0x1cfff0['types']&&_0x1cfff0['types']['length']){writer['uint32'](0x1a)['fork']();for(_0x3f869f=0x0;_0x3f869f<_0x1cfff0['types']['length'];++_0x3f869f)writer['uint32'](_0x1cfff0['types'][_0x3f869f]);writer['ldelim']();}if(null!=_0x1cfff0['metadata']&&_0x1cfff0['metadata']['length']){for(_0x3f869f=0x0;_0x3f869f<_0x1cfff0['metadata']['length'];++_0x3f869f)$root['OperationMetadataDescriptor']['encode'](_0x1cfff0['metadata'][_0x3f869f],writer['uint32'](0x2a)['fork']())['ldelim']();}return null!=_0x1cfff0['lastOperationId']&&Object['hasOwnProperty']['call'](_0x1cfff0,'lastOperationId')&&writer['uint32'](0x32)['string'](_0x1cfff0['lastOperationId']),null!=_0x1cfff0['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x1cfff0,'lastOperationAcceptedAt')&&writer['uint32'](0x3a)['string'](_0x1cfff0['lastOperationAcceptedAt']),writer;},CollaborativeEditingResponse['encodeDelimited']=function(_0x1ba3b4,writer){return this['encode'](_0x1ba3b4,writer)['ldelim']();},CollaborativeEditingResponse['decode']=function(_0x507ca8,length,_0x1c2402,_0x19bc17){if(_0x507ca8 instanceof _0x28908e||(_0x507ca8=_0x28908e['create'](_0x507ca8)),void 0x0===_0x19bc17&&(_0x19bc17=0x0),_0x19bc17>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4cc92a=void 0x0===length?_0x507ca8['len']:_0x507ca8['pos']+length,_0x4debb5=new $root['CollaborativeEditingResponse']();_0x507ca8['pos']<_0x4cc92a;){var tag=_0x507ca8['uint32']();if(tag===_0x1c2402)break;switch(tag>>>0x3){case 0x1:_0x4debb5['version']=_0x507ca8['uint32']();break;case 0x2:_0x4debb5['buffers']&&_0x4debb5['buffers']['length']||(_0x4debb5['buffers']=[]),_0x4debb5['buffers']['push'](_0x507ca8['bytes']());break;case 0x3:if(_0x4debb5['types']&&_0x4debb5['types']['length']||(_0x4debb5['types']=[]),0x2==(0x7&tag)){for(var _0x1ecb92=_0x507ca8['uint32']()+_0x507ca8['pos'];_0x507ca8['pos']<_0x1ecb92;)_0x4debb5['types']['push'](_0x507ca8['uint32']());}else _0x4debb5['types']['push'](_0x507ca8['uint32']());break;case 0x5:_0x4debb5['metadata']&&_0x4debb5['metadata']['length']||(_0x4debb5['metadata']=[]),_0x4debb5['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x507ca8,_0x507ca8['uint32'](),void 0x0,_0x19bc17+0x1));break;case 0x6:_0x4debb5['lastOperationId']=_0x507ca8['string']();break;case 0x7:_0x4debb5['lastOperationAcceptedAt']=_0x507ca8['string']();break;default:_0x507ca8['skipType'](0x7&tag,_0x19bc17);}}return _0x4debb5;},CollaborativeEditingResponse['decodeDelimited']=function(_0xd57a3c){return _0xd57a3c instanceof _0x28908e||(_0xd57a3c=new _0x28908e(_0xd57a3c)),this['decode'](_0xd57a3c,_0xd57a3c['uint32']());},CollaborativeEditingResponse['verify']=function(_0x15e7b4,_0x3e010b){if('object'!=typeof _0x15e7b4||null===_0x15e7b4)return'object\x20expected';if(void 0x0===_0x3e010b&&(_0x3e010b=0x0),_0x3e010b>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x15e7b4['version']&&_0x15e7b4['hasOwnProperty']('version')&&!$util['isInteger'](_0x15e7b4['version']))return'version:\x20integer\x20expected';if(null!=_0x15e7b4['buffers']&&_0x15e7b4['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x15e7b4['buffers']))return'buffers:\x20array\x20expected';for(var _0x50f48c=0x0;_0x50f48c<_0x15e7b4['buffers']['length'];++_0x50f48c)if(!(_0x15e7b4['buffers'][_0x50f48c]&&'number'==typeof _0x15e7b4['buffers'][_0x50f48c]['length']||$util['isString'](_0x15e7b4['buffers'][_0x50f48c])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x15e7b4['types']&&_0x15e7b4['hasOwnProperty']('types')){if(!Array['isArray'](_0x15e7b4['types']))return'types:\x20array\x20expected';for(_0x50f48c=0x0;_0x50f48c<_0x15e7b4['types']['length'];++_0x50f48c)if(!$util['isInteger'](_0x15e7b4['types'][_0x50f48c]))return'types:\x20integer[]\x20expected';}if(null!=_0x15e7b4['metadata']&&_0x15e7b4['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x15e7b4['metadata']))return'metadata:\x20array\x20expected';for(_0x50f48c=0x0;_0x50f48c<_0x15e7b4['metadata']['length'];++_0x50f48c){var _0x5ce54b=$root['OperationMetadataDescriptor']['verify'](_0x15e7b4['metadata'][_0x50f48c],_0x3e010b+0x1);if(_0x5ce54b)return'metadata.'+_0x5ce54b;}}return null!=_0x15e7b4['lastOperationId']&&_0x15e7b4['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x15e7b4['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x15e7b4['lastOperationAcceptedAt']&&_0x15e7b4['hasOwnProperty']('lastOperationAcceptedAt')&&!$util['isString'](_0x15e7b4['lastOperationAcceptedAt'])?'lastOperationAcceptedAt:\x20string\x20expected':null;},CollaborativeEditingResponse['fromObject']=function(object,_0x7ed39f){if(object instanceof $root['CollaborativeEditingResponse'])return object;if(void 0x0===_0x7ed39f&&(_0x7ed39f=0x0),_0x7ed39f>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x360f0f=new $root['CollaborativeEditingResponse']();if(null!=object['version']&&(_0x360f0f['version']=object['version']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingResponse.buffers:\x20array\x20expected');_0x360f0f['buffers']=[];for(var _0x316f1c=0x0;_0x316f1c<object['buffers']['length'];++_0x316f1c)'string'==typeof object['buffers'][_0x316f1c]?$util['base64']['decode'](object['buffers'][_0x316f1c],_0x360f0f['buffers'][_0x316f1c]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x316f1c])),0x0):object['buffers'][_0x316f1c]['length']>=0x0&&(_0x360f0f['buffers'][_0x316f1c]=object['buffers'][_0x316f1c]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingResponse.types:\x20array\x20expected');_0x360f0f['types']=[];for(_0x316f1c=0x0;_0x316f1c<object['types']['length'];++_0x316f1c)_0x360f0f['types'][_0x316f1c]=object['types'][_0x316f1c]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingResponse.metadata:\x20array\x20expected');_0x360f0f['metadata']=[];for(_0x316f1c=0x0;_0x316f1c<object['metadata']['length'];++_0x316f1c){if('object'!=typeof object['metadata'][_0x316f1c])throw TypeError('.CollaborativeEditingResponse.metadata:\x20object\x20expected');_0x360f0f['metadata'][_0x316f1c]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x316f1c],_0x7ed39f+0x1);}}return null!=object['lastOperationId']&&(_0x360f0f['lastOperationId']=String(object['lastOperationId'])),null!=object['lastOperationAcceptedAt']&&(_0x360f0f['lastOperationAcceptedAt']=String(object['lastOperationAcceptedAt'])),_0x360f0f;},CollaborativeEditingResponse['toObject']=function(_0x20fd19,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!=_0x20fd19['version']&&_0x20fd19['hasOwnProperty']('version')&&(object['version']=_0x20fd19['version']),_0x20fd19['buffers']&&_0x20fd19['buffers']['length']){object['buffers']=[];for(var _0x43a8db=0x0;_0x43a8db<_0x20fd19['buffers']['length'];++_0x43a8db)object['buffers'][_0x43a8db]=options['bytes']===String?$util['base64']['encode'](_0x20fd19['buffers'][_0x43a8db],0x0,_0x20fd19['buffers'][_0x43a8db]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x20fd19['buffers'][_0x43a8db]):_0x20fd19['buffers'][_0x43a8db];}if(_0x20fd19['types']&&_0x20fd19['types']['length']){object['types']=[];for(_0x43a8db=0x0;_0x43a8db<_0x20fd19['types']['length'];++_0x43a8db)object['types'][_0x43a8db]=_0x20fd19['types'][_0x43a8db];}if(_0x20fd19['metadata']&&_0x20fd19['metadata']['length']){object['metadata']=[];for(_0x43a8db=0x0;_0x43a8db<_0x20fd19['metadata']['length'];++_0x43a8db)object['metadata'][_0x43a8db]=$root['OperationMetadataDescriptor']['toObject'](_0x20fd19['metadata'][_0x43a8db],options);}return null!=_0x20fd19['lastOperationId']&&_0x20fd19['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x20fd19['lastOperationId']),null!=_0x20fd19['lastOperationAcceptedAt']&&_0x20fd19['hasOwnProperty']('lastOperationAcceptedAt')&&(object['lastOperationAcceptedAt']=_0x20fd19['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 _0x2f8834=Object['keys'](properties),_0xfe762b=0x0;_0xfe762b<_0x2f8834['length'];++_0xfe762b)null!=properties[_0x2f8834[_0xfe762b]]&&'__proto__'!==_0x2f8834[_0xfe762b]&&(this[_0x2f8834[_0xfe762b]]=properties[_0x2f8834[_0xfe762b]]);}}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(_0x57764c,writer){if(writer||(writer=$Writer['create']()),null!=_0x57764c['channel']&&Object['hasOwnProperty']['call'](_0x57764c,'channel')&&writer['uint32'](0xa)['string'](_0x57764c['channel']),null!=_0x57764c['offset']&&Object['hasOwnProperty']['call'](_0x57764c,'offset')&&writer['uint32'](0x10)['uint32'](_0x57764c['offset']),null!=_0x57764c['version']&&Object['hasOwnProperty']['call'](_0x57764c,'version')&&writer['uint32'](0x18)['uint32'](_0x57764c['version']),null!=_0x57764c['buffers']&&_0x57764c['buffers']['length']){for(var _0x25baf1=0x0;_0x25baf1<_0x57764c['buffers']['length'];++_0x25baf1)writer['uint32'](0x22)['bytes'](_0x57764c['buffers'][_0x25baf1]);}if(null!=_0x57764c['types']&&_0x57764c['types']['length']){writer['uint32'](0x2a)['fork']();for(_0x25baf1=0x0;_0x25baf1<_0x57764c['types']['length'];++_0x25baf1)writer['uint32'](_0x57764c['types'][_0x25baf1]);writer['ldelim']();}if(null!=_0x57764c['metadata']&&_0x57764c['metadata']['length']){for(_0x25baf1=0x0;_0x25baf1<_0x57764c['metadata']['length'];++_0x25baf1)$root['OperationMetadataDescriptor']['encode'](_0x57764c['metadata'][_0x25baf1],writer['uint32'](0x3a)['fork']())['ldelim']();}return null!=_0x57764c['initData']&&Object['hasOwnProperty']['call'](_0x57764c,'initData')&&writer['uint32'](0x42)['string'](_0x57764c['initData']),null!=_0x57764c['isInitialized']&&Object['hasOwnProperty']['call'](_0x57764c,'isInitialized')&&writer['uint32'](0x48)['bool'](_0x57764c['isInitialized']),null!=_0x57764c['sessionId']&&Object['hasOwnProperty']['call'](_0x57764c,'sessionId')&&writer['uint32'](0x52)['string'](_0x57764c['sessionId']),null!=_0x57764c['lastOperationId']&&Object['hasOwnProperty']['call'](_0x57764c,'lastOperationId')&&writer['uint32'](0x5a)['string'](_0x57764c['lastOperationId']),null!=_0x57764c['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0x57764c,'sessionCreatedAt')&&writer['uint32'](0x62)['string'](_0x57764c['sessionCreatedAt']),writer;},CollaborativeEditingConnectResponse['encodeDelimited']=function(_0x49c226,writer){return this['encode'](_0x49c226,writer)['ldelim']();},CollaborativeEditingConnectResponse['decode']=function(_0x432414,length,_0x1153ca,_0x4b0ef6){if(_0x432414 instanceof _0x28908e||(_0x432414=_0x28908e['create'](_0x432414)),void 0x0===_0x4b0ef6&&(_0x4b0ef6=0x0),_0x4b0ef6>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xe97c6b=void 0x0===length?_0x432414['len']:_0x432414['pos']+length,_0x2ed1e8=new $root['CollaborativeEditingConnectResponse']();_0x432414['pos']<_0xe97c6b;){var tag=_0x432414['uint32']();if(tag===_0x1153ca)break;switch(tag>>>0x3){case 0x1:_0x2ed1e8['channel']=_0x432414['string']();break;case 0x2:_0x2ed1e8['offset']=_0x432414['uint32']();break;case 0x3:_0x2ed1e8['version']=_0x432414['uint32']();break;case 0x4:_0x2ed1e8['buffers']&&_0x2ed1e8['buffers']['length']||(_0x2ed1e8['buffers']=[]),_0x2ed1e8['buffers']['push'](_0x432414['bytes']());break;case 0x5:if(_0x2ed1e8['types']&&_0x2ed1e8['types']['length']||(_0x2ed1e8['types']=[]),0x2==(0x7&tag)){for(var _0x463030=_0x432414['uint32']()+_0x432414['pos'];_0x432414['pos']<_0x463030;)_0x2ed1e8['types']['push'](_0x432414['uint32']());}else _0x2ed1e8['types']['push'](_0x432414['uint32']());break;case 0x7:_0x2ed1e8['metadata']&&_0x2ed1e8['metadata']['length']||(_0x2ed1e8['metadata']=[]),_0x2ed1e8['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x432414,_0x432414['uint32'](),void 0x0,_0x4b0ef6+0x1));break;case 0x8:_0x2ed1e8['initData']=_0x432414['string']();break;case 0x9:_0x2ed1e8['isInitialized']=_0x432414['bool']();break;case 0xa:_0x2ed1e8['sessionId']=_0x432414['string']();break;case 0xb:_0x2ed1e8['lastOperationId']=_0x432414['string']();break;case 0xc:_0x2ed1e8['sessionCreatedAt']=_0x432414['string']();break;default:_0x432414['skipType'](0x7&tag,_0x4b0ef6);}}return _0x2ed1e8;},CollaborativeEditingConnectResponse['decodeDelimited']=function(_0x45aa15){return _0x45aa15 instanceof _0x28908e||(_0x45aa15=new _0x28908e(_0x45aa15)),this['decode'](_0x45aa15,_0x45aa15['uint32']());},CollaborativeEditingConnectResponse['verify']=function(_0x4cf43d,_0x37fff2){if('object'!=typeof _0x4cf43d||null===_0x4cf43d)return'object\x20expected';if(void 0x0===_0x37fff2&&(_0x37fff2=0x0),_0x37fff2>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x4cf43d['channel']&&_0x4cf43d['hasOwnProperty']('channel')&&!$util['isString'](_0x4cf43d['channel']))return'channel:\x20string\x20expected';if(null!=_0x4cf43d['offset']&&_0x4cf43d['hasOwnProperty']('offset')&&!$util['isInteger'](_0x4cf43d['offset']))return'offset:\x20integer\x20expected';if(null!=_0x4cf43d['version']&&_0x4cf43d['hasOwnProperty']('version')&&!$util['isInteger'](_0x4cf43d['version']))return'version:\x20integer\x20expected';if(null!=_0x4cf43d['buffers']&&_0x4cf43d['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x4cf43d['buffers']))return'buffers:\x20array\x20expected';for(var _0x24251b=0x0;_0x24251b<_0x4cf43d['buffers']['length'];++_0x24251b)if(!(_0x4cf43d['buffers'][_0x24251b]&&'number'==typeof _0x4cf43d['buffers'][_0x24251b]['length']||$util['isString'](_0x4cf43d['buffers'][_0x24251b])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x4cf43d['types']&&_0x4cf43d['hasOwnProperty']('types')){if(!Array['isArray'](_0x4cf43d['types']))return'types:\x20array\x20expected';for(_0x24251b=0x0;_0x24251b<_0x4cf43d['types']['length'];++_0x24251b)if(!$util['isInteger'](_0x4cf43d['types'][_0x24251b]))return'types:\x20integer[]\x20expected';}if(null!=_0x4cf43d['metadata']&&_0x4cf43d['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x4cf43d['metadata']))return'metadata:\x20array\x20expected';for(_0x24251b=0x0;_0x24251b<_0x4cf43d['metadata']['length'];++_0x24251b){var _0x13fab1=$root['OperationMetadataDescriptor']['verify'](_0x4cf43d['metadata'][_0x24251b],_0x37fff2+0x1);if(_0x13fab1)return'metadata.'+_0x13fab1;}}return null!=_0x4cf43d['initData']&&_0x4cf43d['hasOwnProperty']('initData')&&!$util['isString'](_0x4cf43d['initData'])?'initData:\x20string\x20expected':null!=_0x4cf43d['isInitialized']&&_0x4cf43d['hasOwnProperty']('isInitialized')&&'boolean'!=typeof _0x4cf43d['isInitialized']?'isInitialized:\x20boolean\x20expected':null!=_0x4cf43d['sessionId']&&_0x4cf43d['hasOwnProperty']('sessionId')&&!$util['isString'](_0x4cf43d['sessionId'])?'sessionId:\x20string\x20expected':null!=_0x4cf43d['lastOperationId']&&_0x4cf43d['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x4cf43d['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x4cf43d['sessionCreatedAt']&&_0x4cf43d['hasOwnProperty']('sessionCreatedAt')&&!$util['isString'](_0x4cf43d['sessionCreatedAt'])?'sessionCreatedAt:\x20string\x20expected':null;},CollaborativeEditingConnectResponse['fromObject']=function(object,_0x2adb49){if(object instanceof $root['CollaborativeEditingConnectResponse'])return object;if(void 0x0===_0x2adb49&&(_0x2adb49=0x0),_0x2adb49>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x55422b=new $root['CollaborativeEditingConnectResponse']();if(null!=object['channel']&&(_0x55422b['channel']=String(object['channel'])),null!=object['offset']&&(_0x55422b['offset']=object['offset']>>>0x0),null!=object['version']&&(_0x55422b['version']=object['version']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingConnectResponse.buffers:\x20array\x20expected');_0x55422b['buffers']=[];for(var _0x584c58=0x0;_0x584c58<object['buffers']['length'];++_0x584c58)'string'==typeof object['buffers'][_0x584c58]?$util['base64']['decode'](object['buffers'][_0x584c58],_0x55422b['buffers'][_0x584c58]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x584c58])),0x0):object['buffers'][_0x584c58]['length']>=0x0&&(_0x55422b['buffers'][_0x584c58]=object['buffers'][_0x584c58]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingConnectResponse.types:\x20array\x20expected');_0x55422b['types']=[];for(_0x584c58=0x0;_0x584c58<object['types']['length'];++_0x584c58)_0x55422b['types'][_0x584c58]=object['types'][_0x584c58]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20array\x20expected');_0x55422b['metadata']=[];for(_0x584c58=0x0;_0x584c58<object['metadata']['length'];++_0x584c58){if('object'!=typeof object['metadata'][_0x584c58])throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20object\x20expected');_0x55422b['metadata'][_0x584c58]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x584c58],_0x2adb49+0x1);}}return null!=object['initData']&&(_0x55422b['initData']=String(object['initData'])),null!=object['isInitialized']&&(_0x55422b['isInitialized']=Boolean(object['isInitialized'])),null!=object['sessionId']&&(_0x55422b['sessionId']=String(object['sessionId'])),null!=object['lastOperationId']&&(_0x55422b['lastOperationId']=String(object['lastOperationId'])),null!=object['sessionCreatedAt']&&(_0x55422b['sessionCreatedAt']=String(object['sessionCreatedAt'])),_0x55422b;},CollaborativeEditingConnectResponse['toObject']=function(_0x5b72b4,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!=_0x5b72b4['channel']&&_0x5b72b4['hasOwnProperty']('channel')&&(object['channel']=_0x5b72b4['channel']),null!=_0x5b72b4['offset']&&_0x5b72b4['hasOwnProperty']('offset')&&(object['offset']=_0x5b72b4['offset']),null!=_0x5b72b4['version']&&_0x5b72b4['hasOwnProperty']('version')&&(object['version']=_0x5b72b4['version']),_0x5b72b4['buffers']&&_0x5b72b4['buffers']['length']){object['buffers']=[];for(var _0x4203ad=0x0;_0x4203ad<_0x5b72b4['buffers']['length'];++_0x4203ad)object['buffers'][_0x4203ad]=options['bytes']===String?$util['base64']['encode'](_0x5b72b4['buffers'][_0x4203ad],0x0,_0x5b72b4['buffers'][_0x4203ad]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x5b72b4['buffers'][_0x4203ad]):_0x5b72b4['buffers'][_0x4203ad];}if(_0x5b72b4['types']&&_0x5b72b4['types']['length']){object['types']=[];for(_0x4203ad=0x0;_0x4203ad<_0x5b72b4['types']['length'];++_0x4203ad)object['types'][_0x4203ad]=_0x5b72b4['types'][_0x4203ad];}if(_0x5b72b4['metadata']&&_0x5b72b4['metadata']['length']){object['metadata']=[];for(_0x4203ad=0x0;_0x4203ad<_0x5b72b4['metadata']['length'];++_0x4203ad)object['metadata'][_0x4203ad]=$root['OperationMetadataDescriptor']['toObject'](_0x5b72b4['metadata'][_0x4203ad],options);}return null!=_0x5b72b4['initData']&&_0x5b72b4['hasOwnProperty']('initData')&&(object['initData']=_0x5b72b4['initData']),null!=_0x5b72b4['isInitialized']&&_0x5b72b4['hasOwnProperty']('isInitialized')&&(object['isInitialized']=_0x5b72b4['isInitialized']),null!=_0x5b72b4['sessionId']&&_0x5b72b4['hasOwnProperty']('sessionId')&&(object['sessionId']=_0x5b72b4['sessionId']),null!=_0x5b72b4['lastOperationId']&&_0x5b72b4['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x5b72b4['lastOperationId']),null!=_0x5b72b4['sessionCreatedAt']&&_0x5b72b4['hasOwnProperty']('sessionCreatedAt')&&(object['sessionCreatedAt']=_0x5b72b4['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 _0x157ec0=Object['keys'](properties),_0x2db303=0x0;_0x2db303<_0x157ec0['length'];++_0x2db303)null!=properties[_0x157ec0[_0x2db303]]&&'__proto__'!==_0x157ec0[_0x2db303]&&(this[_0x157ec0[_0x2db303]]=properties[_0x157ec0[_0x2db303]]);}}return GetDocumentDetailsMessage['prototype']['documentId']='',GetDocumentDetailsMessage['prototype']['environmentId']='',GetDocumentDetailsMessage['create']=function(properties){return new GetDocumentDetailsMessage(properties);},GetDocumentDetailsMessage['encode']=function(_0x112db7,writer){return writer||(writer=$Writer['create']()),null!=_0x112db7['documentId']&&Object['hasOwnProperty']['call'](_0x112db7,'documentId')&&writer['uint32'](0xa)['string'](_0x112db7['documentId']),null!=_0x112db7['environmentId']&&Object['hasOwnProperty']['call'](_0x112db7,'environmentId')&&writer['uint32'](0x12)['string'](_0x112db7['environmentId']),writer;},GetDocumentDetailsMessage['encodeDelimited']=function(_0x3134f7,writer){return this['encode'](_0x3134f7,writer)['ldelim']();},GetDocumentDetailsMessage['decode']=function(_0x15da80,length,_0x5b12ff,_0x542ef4){if(_0x15da80 instanceof _0x28908e||(_0x15da80=_0x28908e['create'](_0x15da80)),void 0x0===_0x542ef4&&(_0x542ef4=0x0),_0x542ef4>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x52a6f2=void 0x0===length?_0x15da80['len']:_0x15da80['pos']+length,_0x50c0d0=new $root['GetDocumentDetailsMessage']();_0x15da80['pos']<_0x52a6f2;){var tag=_0x15da80['uint32']();if(tag===_0x5b12ff)break;switch(tag>>>0x3){case 0x1:_0x50c0d0['documentId']=_0x15da80['string']();break;case 0x2:_0x50c0d0['environmentId']=_0x15da80['string']();break;default:_0x15da80['skipType'](0x7&tag,_0x542ef4);}}return _0x50c0d0;},GetDocumentDetailsMessage['decodeDelimited']=function(_0x2d956d){return _0x2d956d instanceof _0x28908e||(_0x2d956d=new _0x28908e(_0x2d956d)),this['decode'](_0x2d956d,_0x2d956d['uint32']());},GetDocumentDetailsMessage['verify']=function(_0x5df892,_0x7de9d8){return'object'!=typeof _0x5df892||null===_0x5df892?'object\x20expected':(void 0x0===_0x7de9d8&&(_0x7de9d8=0x0),_0x7de9d8>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x5df892['documentId']&&_0x5df892['hasOwnProperty']('documentId')&&!$util['isString'](_0x5df892['documentId'])?'documentId:\x20string\x20expected':null!=_0x5df892['environmentId']&&_0x5df892['hasOwnProperty']('environmentId')&&!$util['isString'](_0x5df892['environmentId'])?'environmentId:\x20string\x20expected':null);},GetDocumentDetailsMessage['fromObject']=function(object,_0x142151){if(object instanceof $root['GetDocumentDetailsMessage'])return object;if(void 0x0===_0x142151&&(_0x142151=0x0),_0x142151>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xefa025=new $root['GetDocumentDetailsMessage']();return null!=object['documentId']&&(_0xefa025['documentId']=String(object['documentId'])),null!=object['environmentId']&&(_0xefa025['environmentId']=String(object['environmentId'])),_0xefa025;},GetDocumentDetailsMessage['toObject']=function(_0x228746,options){options||(options={});var object={};return options['defaults']&&(object['documentId']='',object['environmentId']=''),null!=_0x228746['documentId']&&_0x228746['hasOwnProperty']('documentId')&&(object['documentId']=_0x228746['documentId']),null!=_0x228746['environmentId']&&_0x228746['hasOwnProperty']('environmentId')&&(object['environmentId']=_0x228746['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 _0x312ba7=Object['keys'](properties),_0x456021=0x0;_0x456021<_0x312ba7['length'];++_0x456021)null!=properties[_0x312ba7[_0x456021]]&&'__proto__'!==_0x312ba7[_0x456021]&&(this[_0x312ba7[_0x456021]]=properties[_0x312ba7[_0x456021]]);}}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(_0x4699e9,writer){if(writer||(writer=$Writer['create']()),null!=_0x4699e9['id']&&Object['hasOwnProperty']['call'](_0x4699e9,'id')&&writer['uint32'](0xa)['string'](_0x4699e9['id']),null!=_0x4699e9['baseVersion']&&Object['hasOwnProperty']['call'](_0x4699e9,'baseVersion')&&writer['uint32'](0x10)['uint32'](_0x4699e9['baseVersion']),null!=_0x4699e9['buffers']&&_0x4699e9['buffers']['length']){for(var _0x2c5401=0x0;_0x2c5401<_0x4699e9['buffers']['length'];++_0x2c5401)writer['uint32'](0x1a)['bytes'](_0x4699e9['buffers'][_0x2c5401]);}if(null!=_0x4699e9['types']&&_0x4699e9['types']['length']){writer['uint32'](0x22)['fork']();for(_0x2c5401=0x0;_0x2c5401<_0x4699e9['types']['length'];++_0x2c5401)writer['uint32'](_0x4699e9['types'][_0x2c5401]);writer['ldelim']();}if(null!=_0x4699e9['metadata']&&_0x4699e9['metadata']['length']){for(_0x2c5401=0x0;_0x2c5401<_0x4699e9['metadata']['length'];++_0x2c5401)$root['OperationMetadataDescriptor']['encode'](_0x4699e9['metadata'][_0x2c5401],writer['uint32'](0x32)['fork']())['ldelim']();}return null!=_0x4699e9['lastOperationId']&&Object['hasOwnProperty']['call'](_0x4699e9,'lastOperationId')&&writer['uint32'](0x3a)['string'](_0x4699e9['lastOperationId']),writer;},CollaborativeEditingUpdateMessage['encodeDelimited']=function(_0x4ccb61,writer){return this['encode'](_0x4ccb61,writer)['ldelim']();},CollaborativeEditingUpdateMessage['decode']=function(_0x1002dc,length,_0x5f096b,_0xfb3daf){if(_0x1002dc instanceof _0x28908e||(_0x1002dc=_0x28908e['create'](_0x1002dc)),void 0x0===_0xfb3daf&&(_0xfb3daf=0x0),_0xfb3daf>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1163f8=void 0x0===length?_0x1002dc['len']:_0x1002dc['pos']+length,_0x4f40c5=new $root['CollaborativeEditingUpdateMessage']();_0x1002dc['pos']<_0x1163f8;){var tag=_0x1002dc['uint32']();if(tag===_0x5f096b)break;switch(tag>>>0x3){case 0x1:_0x4f40c5['id']=_0x1002dc['string']();break;case 0x2:_0x4f40c5['baseVersion']=_0x1002dc['uint32']();break;case 0x3:_0x4f40c5['buffers']&&_0x4f40c5['buffers']['length']||(_0x4f40c5['buffers']=[]),_0x4f40c5['buffers']['push'](_0x1002dc['bytes']());break;case 0x4:if(_0x4f40c5['types']&&_0x4f40c5['types']['length']||(_0x4f40c5['types']=[]),0x2==(0x7&tag)){for(var _0x1be121=_0x1002dc['uint32']()+_0x1002dc['pos'];_0x1002dc['pos']<_0x1be121;)_0x4f40c5['types']['push'](_0x1002dc['uint32']());}else _0x4f40c5['types']['push'](_0x1002dc['uint32']());break;case 0x6:_0x4f40c5['metadata']&&_0x4f40c5['metadata']['length']||(_0x4f40c5['metadata']=[]),_0x4f40c5['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x1002dc,_0x1002dc['uint32'](),void 0x0,_0xfb3daf+0x1));break;case 0x7:_0x4f40c5['lastOperationId']=_0x1002dc['string']();break;default:_0x1002dc['skipType'](0x7&tag,_0xfb3daf);}}return _0x4f40c5;},CollaborativeEditingUpdateMessage['decodeDelimited']=function(_0x236b63){return _0x236b63 instanceof _0x28908e||(_0x236b63=new _0x28908e(_0x236b63)),this['decode'](_0x236b63,_0x236b63['uint32']());},CollaborativeEditingUpdateMessage['verify']=function(_0x17c641,_0x380ae2){if('object'!=typeof _0x17c641||null===_0x17c641)return'object\x20expected';if(void 0x0===_0x380ae2&&(_0x380ae2=0x0),_0x380ae2>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x17c641['id']&&_0x17c641['hasOwnProperty']('id')&&!$util['isString'](_0x17c641['id']))return'id:\x20string\x20expected';if(null!=_0x17c641['baseVersion']&&_0x17c641['hasOwnProperty']('baseVersion')&&!$util['isInteger'](_0x17c641['baseVersion']))return'baseVersion:\x20integer\x20expected';if(null!=_0x17c641['buffers']&&_0x17c641['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x17c641['buffers']))return'buffers:\x20array\x20expected';for(var _0xd0deb7=0x0;_0xd0deb7<_0x17c641['buffers']['length'];++_0xd0deb7)if(!(_0x17c641['buffers'][_0xd0deb7]&&'number'==typeof _0x17c641['buffers'][_0xd0deb7]['length']||$util['isString'](_0x17c641['buffers'][_0xd0deb7])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x17c641['types']&&_0x17c641['hasOwnProperty']('types')){if(!Array['isArray'](_0x17c641['types']))return'types:\x20array\x20expected';for(_0xd0deb7=0x0;_0xd0deb7<_0x17c641['types']['length'];++_0xd0deb7)if(!$util['isInteger'](_0x17c641['types'][_0xd0deb7]))return'types:\x20integer[]\x20expected';}if(null!=_0x17c641['metadata']&&_0x17c641['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x17c641['metadata']))return'metadata:\x20array\x20expected';for(_0xd0deb7=0x0;_0xd0deb7<_0x17c641['metadata']['length'];++_0xd0deb7){var _0x1a59c3=$root['OperationMetadataDescriptor']['verify'](_0x17c641['metadata'][_0xd0deb7],_0x380ae2+0x1);if(_0x1a59c3)return'metadata.'+_0x1a59c3;}}return null!=_0x17c641['lastOperationId']&&_0x17c641['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x17c641['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},CollaborativeEditingUpdateMessage['fromObject']=function(object,_0x22db43){if(object instanceof $root['CollaborativeEditingUpdateMessage'])return object;if(void 0x0===_0x22db43&&(_0x22db43=0x0),_0x22db43>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x334beb=new $root['CollaborativeEditingUpdateMessage']();if(null!=object['id']&&(_0x334beb['id']=String(object['id'])),null!=object['baseVersion']&&(_0x334beb['baseVersion']=object['baseVersion']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingUpdateMessage.buffers:\x20array\x20expected');_0x334beb['buffers']=[];for(var _0x39c1b7=0x0;_0x39c1b7<object['buffers']['length'];++_0x39c1b7)'string'==typeof object['buffers'][_0x39c1b7]?$util['base64']['decode'](object['buffers'][_0x39c1b7],_0x334beb['buffers'][_0x39c1b7]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x39c1b7])),0x0):object['buffers'][_0x39c1b7]['length']>=0x0&&(_0x334beb['buffers'][_0x39c1b7]=object['buffers'][_0x39c1b7]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingUpdateMessage.types:\x20array\x20expected');_0x334beb['types']=[];for(_0x39c1b7=0x0;_0x39c1b7<object['types']['length'];++_0x39c1b7)_0x334beb['types'][_0x39c1b7]=object['types'][_0x39c1b7]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20array\x20expected');_0x334beb['metadata']=[];for(_0x39c1b7=0x0;_0x39c1b7<object['metadata']['length'];++_0x39c1b7){if('object'!=typeof object['metadata'][_0x39c1b7])throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20object\x20expected');_0x334beb['metadata'][_0x39c1b7]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x39c1b7],_0x22db43+0x1);}}return null!=object['lastOperationId']&&(_0x334beb['lastOperationId']=String(object['lastOperationId'])),_0x334beb;},CollaborativeEditingUpdateMessage['toObject']=function(_0x8e8d13,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!=_0x8e8d13['id']&&_0x8e8d13['hasOwnProperty']('id')&&(object['id']=_0x8e8d13['id']),null!=_0x8e8d13['baseVersion']&&_0x8e8d13['hasOwnProperty']('baseVersion')&&(object['baseVersion']=_0x8e8d13['baseVersion']),_0x8e8d13['buffers']&&_0x8e8d13['buffers']['length']){object['buffers']=[];for(var _0x4d596f=0x0;_0x4d596f<_0x8e8d13['buffers']['length'];++_0x4d596f)object['buffers'][_0x4d596f]=options['bytes']===String?$util['base64']['encode'](_0x8e8d13['buffers'][_0x4d596f],0x0,_0x8e8d13['buffers'][_0x4d596f]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x8e8d13['buffers'][_0x4d596f]):_0x8e8d13['buffers'][_0x4d596f];}if(_0x8e8d13['types']&&_0x8e8d13['types']['length']){object['types']=[];for(_0x4d596f=0x0;_0x4d596f<_0x8e8d13['types']['length'];++_0x4d596f)object['types'][_0x4d596f]=_0x8e8d13['types'][_0x4d596f];}if(_0x8e8d13['metadata']&&_0x8e8d13['metadata']['length']){object['metadata']=[];for(_0x4d596f=0x0;_0x4d596f<_0x8e8d13['metadata']['length'];++_0x4d596f)object['metadata'][_0x4d596f]=$root['OperationMetadataDescriptor']['toObject'](_0x8e8d13['metadata'][_0x4d596f],options);}return null!=_0x8e8d13['lastOperationId']&&_0x8e8d13['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x8e8d13['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 _0x20344e=Object['keys'](properties),_0x15bee3=0x0;_0x15bee3<_0x20344e['length'];++_0x15bee3)null!=properties[_0x20344e[_0x15bee3]]&&'__proto__'!==_0x20344e[_0x15bee3]&&(this[_0x20344e[_0x15bee3]]=properties[_0x20344e[_0x15bee3]]);}}return CollaborativeEditingReconnectMessage['prototype']['id']='',CollaborativeEditingReconnectMessage['prototype']['bundleVersion']='',CollaborativeEditingReconnectMessage['prototype']['lastKnowVersion']=0x0,CollaborativeEditingReconnectMessage['create']=function(properties){return new CollaborativeEditingReconnectMessage(properties);},CollaborativeEditingReconnectMessage['encode']=function(_0xaf5068,writer){return writer||(writer=$Writer['create']()),null!=_0xaf5068['id']&&Object['hasOwnProperty']['call'](_0xaf5068,'id')&&writer['uint32'](0xa)['string'](_0xaf5068['id']),null!=_0xaf5068['bundleVersion']&&Object['hasOwnProperty']['call'](_0xaf5068,'bundleVersion')&&writer['uint32'](0x12)['string'](_0xaf5068['bundleVersion']),null!=_0xaf5068['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0xaf5068,'lastKnowVersion')&&writer['uint32'](0x18)['uint32'](_0xaf5068['lastKnowVersion']),writer;},CollaborativeEditingReconnectMessage['encodeDelimited']=function(_0x2bb942,writer){return this['encode'](_0x2bb942,writer)['ldelim']();},CollaborativeEditingReconnectMessage['decode']=function(_0x40aaf6,length,_0x4c47f2,_0x1558e2){if(_0x40aaf6 instanceof _0x28908e||(_0x40aaf6=_0x28908e['create'](_0x40aaf6)),void 0x0===_0x1558e2&&(_0x1558e2=0x0),_0x1558e2>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x291401=void 0x0===length?_0x40aaf6['len']:_0x40aaf6['pos']+length,_0x497a9a=new $root['CollaborativeEditingReconnectMessage']();_0x40aaf6['pos']<_0x291401;){var tag=_0x40aaf6['uint32']();if(tag===_0x4c47f2)break;switch(tag>>>0x3){case 0x1:_0x497a9a['id']=_0x40aaf6['string']();break;case 0x2:_0x497a9a['bundleVersion']=_0x40aaf6['string']();break;case 0x3:_0x497a9a['lastKnowVersion']=_0x40aaf6['uint32']();break;default:_0x40aaf6['skipType'](0x7&tag,_0x1558e2);}}return _0x497a9a;},CollaborativeEditingReconnectMessage['decodeDelimited']=function(_0x2ee818){return _0x2ee818 instanceof _0x28908e||(_0x2ee818=new _0x28908e(_0x2ee818)),this['decode'](_0x2ee818,_0x2ee818['uint32']());},CollaborativeEditingReconnectMessage['verify']=function(_0x345ea4,_0x4bdc30){return'object'!=typeof _0x345ea4||null===_0x345ea4?'object\x20expected':(void 0x0===_0x4bdc30&&(_0x4bdc30=0x0),_0x4bdc30>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x345ea4['id']&&_0x345ea4['hasOwnProperty']('id')&&!$util['isString'](_0x345ea4['id'])?'id:\x20string\x20expected':null!=_0x345ea4['bundleVersion']&&_0x345ea4['hasOwnProperty']('bundleVersion')&&!$util['isString'](_0x345ea4['bundleVersion'])?'bundleVersion:\x20string\x20expected':null!=_0x345ea4['lastKnowVersion']&&_0x345ea4['hasOwnProperty']('lastKnowVersion')&&!$util['isInteger'](_0x345ea4['lastKnowVersion'])?'lastKnowVersion:\x20integer\x20expected':null);},CollaborativeEditingReconnectMessage['fromObject']=function(object,_0x952963){if(object instanceof $root['CollaborativeEditingReconnectMessage'])return object;if(void 0x0===_0x952963&&(_0x952963=0x0),_0x952963>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x54676f=new $root['CollaborativeEditingReconnectMessage']();return null!=object['id']&&(_0x54676f['id']=String(object['id'])),null!=object['bundleVersion']&&(_0x54676f['bundleVersion']=String(object['bundleVersion'])),null!=object['lastKnowVersion']&&(_0x54676f['lastKnowVersion']=object['lastKnowVersion']>>>0x0),_0x54676f;},CollaborativeEditingReconnectMessage['toObject']=function(_0x24a767,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['bundleVersion']='',object['lastKnowVersion']=0x0),null!=_0x24a767['id']&&_0x24a767['hasOwnProperty']('id')&&(object['id']=_0x24a767['id']),null!=_0x24a767['bundleVersion']&&_0x24a767['hasOwnProperty']('bundleVersion')&&(object['bundleVersion']=_0x24a767['bundleVersion']),null!=_0x24a767['lastKnowVersion']&&_0x24a767['hasOwnProperty']('lastKnowVersion')&&(object['lastKnowVersion']=_0x24a767['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 _0x3eaa1c=Object['keys'](properties),_0xf9d831=0x0;_0xf9d831<_0x3eaa1c['length'];++_0xf9d831)null!=properties[_0x3eaa1c[_0xf9d831]]&&'__proto__'!==_0x3eaa1c[_0xf9d831]&&(this[_0x3eaa1c[_0xf9d831]]=properties[_0x3eaa1c[_0xf9d831]]);}}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(_0x4b3327,writer){if(writer||(writer=$Writer['create']()),null!=_0x4b3327['id']&&Object['hasOwnProperty']['call'](_0x4b3327,'id')&&writer['uint32'](0xa)['string'](_0x4b3327['id']),null!=_0x4b3327['bundleVersion']&&Object['hasOwnProperty']['call'](_0x4b3327,'bundleVersion')&&writer['uint32'](0x12)['string'](_0x4b3327['bundleVersion']),null!=_0x4b3327['buffers']&&_0x4b3327['buffers']['length']){for(var _0x216db2=0x0;_0x216db2<_0x4b3327['buffers']['length'];++_0x216db2)writer['uint32'](0x1a)['bytes'](_0x4b3327['buffers'][_0x216db2]);}if(null!=_0x4b3327['types']&&_0x4b3327['types']['length']){writer['uint32'](0x22)['fork']();for(_0x216db2=0x0;_0x216db2<_0x4b3327['types']['length'];++_0x216db2)writer['uint32'](_0x4b3327['types'][_0x216db2]);writer['ldelim']();}return null!=_0x4b3327['lastOperationId']&&Object['hasOwnProperty']['call'](_0x4b3327,'lastOperationId')&&writer['uint32'](0x2a)['string'](_0x4b3327['lastOperationId']),writer;},CollaborativeEditingConnectMessage['encodeDelimited']=function(_0x4b8452,writer){return this['encode'](_0x4b8452,writer)['ldelim']();},CollaborativeEditingConnectMessage['decode']=function(_0x23da7b,length,_0x57a2e0,_0x53a92d){if(_0x23da7b instanceof _0x28908e||(_0x23da7b=_0x28908e['create'](_0x23da7b)),void 0x0===_0x53a92d&&(_0x53a92d=0x0),_0x53a92d>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x22b4df=void 0x0===length?_0x23da7b['len']:_0x23da7b['pos']+length,_0x24ceb3=new $root['CollaborativeEditingConnectMessage']();_0x23da7b['pos']<_0x22b4df;){var tag=_0x23da7b['uint32']();if(tag===_0x57a2e0)break;switch(tag>>>0x3){case 0x1:_0x24ceb3['id']=_0x23da7b['string']();break;case 0x2:_0x24ceb3['bundleVersion']=_0x23da7b['string']();break;case 0x3:_0x24ceb3['buffers']&&_0x24ceb3['buffers']['length']||(_0x24ceb3['buffers']=[]),_0x24ceb3['buffers']['push'](_0x23da7b['bytes']());break;case 0x4:if(_0x24ceb3['types']&&_0x24ceb3['types']['length']||(_0x24ceb3['types']=[]),0x2==(0x7&tag)){for(var _0xbdf880=_0x23da7b['uint32']()+_0x23da7b['pos'];_0x23da7b['pos']<_0xbdf880;)_0x24ceb3['types']['push'](_0x23da7b['uint32']());}else _0x24ceb3['types']['push'](_0x23da7b['uint32']());break;case 0x5:_0x24ceb3['lastOperationId']=_0x23da7b['string']();break;default:_0x23da7b['skipType'](0x7&tag,_0x53a92d);}}return _0x24ceb3;},CollaborativeEditingConnectMessage['decodeDelimited']=function(_0x5e8c76){return _0x5e8c76 instanceof _0x28908e||(_0x5e8c76=new _0x28908e(_0x5e8c76)),this['decode'](_0x5e8c76,_0x5e8c76['uint32']());},CollaborativeEditingConnectMessage['verify']=function(_0x39f0cf,_0x548302){if('object'!=typeof _0x39f0cf||null===_0x39f0cf)return'object\x20expected';if(void 0x0===_0x548302&&(_0x548302=0x0),_0x548302>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x39f0cf['id']&&_0x39f0cf['hasOwnProperty']('id')&&!$util['isString'](_0x39f0cf['id']))return'id:\x20string\x20expected';if(null!=_0x39f0cf['bundleVersion']&&_0x39f0cf['hasOwnProperty']('bundleVersion')&&!$util['isString'](_0x39f0cf['bundleVersion']))return'bundleVersion:\x20string\x20expected';if(null!=_0x39f0cf['buffers']&&_0x39f0cf['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x39f0cf['buffers']))return'buffers:\x20array\x20expected';for(var _0x3d0cbe=0x0;_0x3d0cbe<_0x39f0cf['buffers']['length'];++_0x3d0cbe)if(!(_0x39f0cf['buffers'][_0x3d0cbe]&&'number'==typeof _0x39f0cf['buffers'][_0x3d0cbe]['length']||$util['isString'](_0x39f0cf['buffers'][_0x3d0cbe])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x39f0cf['types']&&_0x39f0cf['hasOwnProperty']('types')){if(!Array['isArray'](_0x39f0cf['types']))return'types:\x20array\x20expected';for(_0x3d0cbe=0x0;_0x3d0cbe<_0x39f0cf['types']['length'];++_0x3d0cbe)if(!$util['isInteger'](_0x39f0cf['types'][_0x3d0cbe]))return'types:\x20integer[]\x20expected';}return null!=_0x39f0cf['lastOperationId']&&_0x39f0cf['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x39f0cf['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},CollaborativeEditingConnectMessage['fromObject']=function(object,_0x5b7717){if(object instanceof $root['CollaborativeEditingConnectMessage'])return object;if(void 0x0===_0x5b7717&&(_0x5b7717=0x0),_0x5b7717>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x538f4c=new $root['CollaborativeEditingConnectMessage']();if(null!=object['id']&&(_0x538f4c['id']=String(object['id'])),null!=object['bundleVersion']&&(_0x538f4c['bundleVersion']=String(object['bundleVersion'])),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingConnectMessage.buffers:\x20array\x20expected');_0x538f4c['buffers']=[];for(var _0x34495b=0x0;_0x34495b<object['buffers']['length'];++_0x34495b)'string'==typeof object['buffers'][_0x34495b]?$util['base64']['decode'](object['buffers'][_0x34495b],_0x538f4c['buffers'][_0x34495b]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x34495b])),0x0):object['buffers'][_0x34495b]['length']>=0x0&&(_0x538f4c['buffers'][_0x34495b]=object['buffers'][_0x34495b]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingConnectMessage.types:\x20array\x20expected');_0x538f4c['types']=[];for(_0x34495b=0x0;_0x34495b<object['types']['length'];++_0x34495b)_0x538f4c['types'][_0x34495b]=object['types'][_0x34495b]>>>0x0;}return null!=object['lastOperationId']&&(_0x538f4c['lastOperationId']=String(object['lastOperationId'])),_0x538f4c;},CollaborativeEditingConnectMessage['toObject']=function(_0x1ab650,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[]),options['defaults']&&(object['id']='',object['bundleVersion']='',object['lastOperationId']=''),null!=_0x1ab650['id']&&_0x1ab650['hasOwnProperty']('id')&&(object['id']=_0x1ab650['id']),null!=_0x1ab650['bundleVersion']&&_0x1ab650['hasOwnProperty']('bundleVersion')&&(object['bundleVersion']=_0x1ab650['bundleVersion']),_0x1ab650['buffers']&&_0x1ab650['buffers']['length']){object['buffers']=[];for(var _0x1193a0=0x0;_0x1193a0<_0x1ab650['buffers']['length'];++_0x1193a0)object['buffers'][_0x1193a0]=options['bytes']===String?$util['base64']['encode'](_0x1ab650['buffers'][_0x1193a0],0x0,_0x1ab650['buffers'][_0x1193a0]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x1ab650['buffers'][_0x1193a0]):_0x1ab650['buffers'][_0x1193a0];}if(_0x1ab650['types']&&_0x1ab650['types']['length']){object['types']=[];for(_0x1193a0=0x0;_0x1193a0<_0x1ab650['types']['length'];++_0x1193a0)object['types'][_0x1193a0]=_0x1ab650['types'][_0x1193a0];}return null!=_0x1ab650['lastOperationId']&&_0x1ab650['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x1ab650['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 _0x3c99cf=Object['keys'](properties),_0x2537f6=0x0;_0x2537f6<_0x3c99cf['length'];++_0x2537f6)null!=properties[_0x3c99cf[_0x2537f6]]&&'__proto__'!==_0x3c99cf[_0x2537f6]&&(this[_0x3c99cf[_0x2537f6]]=properties[_0x3c99cf[_0x2537f6]]);}}return OperationMetadataDescriptor['prototype']['userId']='',OperationMetadataDescriptor['prototype']['type']='',OperationMetadataDescriptor['prototype']['createdAt']='',OperationMetadataDescriptor['create']=function(properties){return new OperationMetadataDescriptor(properties);},OperationMetadataDescriptor['encode']=function(_0x1f4776,writer){return writer||(writer=$Writer['create']()),null!=_0x1f4776['userId']&&Object['hasOwnProperty']['call'](_0x1f4776,'userId')&&writer['uint32'](0xa)['string'](_0x1f4776['userId']),null!=_0x1f4776['type']&&Object['hasOwnProperty']['call'](_0x1f4776,'type')&&writer['uint32'](0x12)['string'](_0x1f4776['type']),null!=_0x1f4776['createdAt']&&Object['hasOwnProperty']['call'](_0x1f4776,'createdAt')&&writer['uint32'](0x1a)['string'](_0x1f4776['createdAt']),writer;},OperationMetadataDescriptor['encodeDelimited']=function(_0x5a1ead,writer){return this['encode'](_0x5a1ead,writer)['ldelim']();},OperationMetadataDescriptor['decode']=function(_0x29571d,length,_0x2671ae,_0x1579e8){if(_0x29571d instanceof _0x28908e||(_0x29571d=_0x28908e['create'](_0x29571d)),void 0x0===_0x1579e8&&(_0x1579e8=0x0),_0x1579e8>_0x28908e['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x29589d=void 0x0===length?_0x29571d['len']:_0x29571d['pos']+length,_0xe3dbae=new $root['OperationMetadataDescriptor']();_0x29571d['pos']<_0x29589d;){var tag=_0x29571d['uint32']();if(tag===_0x2671ae)break;switch(tag>>>0x3){case 0x1:_0xe3dbae['userId']=_0x29571d['string']();break;case 0x2:_0xe3dbae['type']=_0x29571d['string']();break;case 0x3:_0xe3dbae['createdAt']=_0x29571d['string']();break;default:_0x29571d['skipType'](0x7&tag,_0x1579e8);}}return _0xe3dbae;},OperationMetadataDescriptor['decodeDelimited']=function(_0x382e41){return _0x382e41 instanceof _0x28908e||(_0x382e41=new _0x28908e(_0x382e41)),this['decode'](_0x382e41,_0x382e41['uint32']());},OperationMetadataDescriptor['verify']=function(_0x32cd99,_0x309803){return'object'!=typeof _0x32cd99||null===_0x32cd99?'object\x20expected':(void 0x0===_0x309803&&(_0x309803=0x0),_0x309803>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x32cd99['userId']&&_0x32cd99['hasOwnProperty']('userId')&&!$util['isString'](_0x32cd99['userId'])?'userId:\x20string\x20expected':null!=_0x32cd99['type']&&_0x32cd99['hasOwnProperty']('type')&&!$util['isString'](_0x32cd99['type'])?'type:\x20string\x20expected':null!=_0x32cd99['createdAt']&&_0x32cd99['hasOwnProperty']('createdAt')&&!$util['isString'](_0x32cd99['createdAt'])?'createdAt:\x20string\x20expected':null);},OperationMetadataDescriptor['fromObject']=function(object,_0x53f53f){if(object instanceof $root['OperationMetadataDescriptor'])return object;if(void 0x0===_0x53f53f&&(_0x53f53f=0x0),_0x53f53f>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x371a98=new $root['OperationMetadataDescriptor']();return null!=object['userId']&&(_0x371a98['userId']=String(object['userId'])),null!=object['type']&&(_0x371a98['type']=String(object['type'])),null!=object['createdAt']&&(_0x371a98['createdAt']=String(object['createdAt'])),_0x371a98;},OperationMetadataDescriptor['toObject']=function(_0x1cea2e,options){options||(options={});var object={};return options['defaults']&&(object['userId']='',object['type']='',object['createdAt']=''),null!=_0x1cea2e['userId']&&_0x1cea2e['hasOwnProperty']('userId')&&(object['userId']=_0x1cea2e['userId']),null!=_0x1cea2e['type']&&_0x1cea2e['hasOwnProperty']('type')&&(object['type']=_0x1cea2e['type']),null!=_0x1cea2e['createdAt']&&_0x1cea2e['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x1cea2e['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'](_0x1d9c60,_0xf1eea){const data=_getType(_0xf1eea)['decode']('undefined'==typeof window?_0x1d9c60:new Uint8Array(_0x1d9c60));return _0xf1eea['fromJSON']({...data});}static['encode'](_0x4cac84){const protobufMessage=_getType(_0x4cac84['constructor']),data=_0x4cac84['toJSON'](),_0x4bcec4=protobufMessage['verify'](data);if(_0x4bcec4)throw Error(_0x4bcec4);return protobufMessage['encode'](protobufMessage['create'](data))['finish']();}}function _getType(_0x13ad08){return messages[_0x13ad08['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(_0x93efec){super(),this['ids']=_0x93efec;}['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(_0x4b2d24){super(),this['users']=_0x4b2d24;}['toJSON'](){return{'users':this['users']['map'](_userToJson)};}static['fromJSON'](data){return new GetManyUsersResponse(data['users']['map'](_userFromJson));}}function _userToJson(_0x34c3c4){return{'attributes':Object['keys'](_0x34c3c4)['map'](_0x3ffaa6=>({'key':_0x3ffaa6,'value':JSON['stringify'](_0x34c3c4[_0x3ffaa6])}))};}function _userFromJson(data){return data['attributes']['reduce']((result,_0x80fadf)=>(result[_0x80fadf['key']]=_0x80fadf['value']?JSON['parse'](_0x80fadf['value']):null,result),{});}class User{static ['_SERVICE']=0x2;constructor(attributes={}){this['_attributes']=new Map();for(const _0xe77532 of Object['keys'](attributes))'id'!==_0xe77532?(this['_attributes']['set'](_0xe77532,attributes[_0xe77532]),Object['defineProperty'](this,_0xe77532,{'enumerable':!0x0,'configurable':!0x1,'get':()=>this['_attributes']['get'](_0xe77532)})):this['id']=attributes['id'];}static['fromData'](data){return new User(data);}static async['get'](wsGateway,_0x1cc453){const _0x4e2e4b=new GetUserMessage(_0x1cc453);try{const _0x347d0b=await wsGateway['_sendRequest'](User['_SERVICE'],GetUserMessage['TYPE'],MessagesCompressor['encode'](_0x4e2e4b)),getUserResponse=MessagesCompressor['decode'](_0x347d0b,GetUserResponse);return new User(getUserResponse['attributes']);}catch{return new User({'id':_0x1cc453});}}static async['getMany'](wsGateway,_0x6dbd07){const _0x392ed3=new GetManyUsersMessage(_0x6dbd07);try{const _0x7bf950=await wsGateway['_sendRequest'](User['_SERVICE'],GetManyUsersMessage['TYPE'],MessagesCompressor['encode'](_0x392ed3));return MessagesCompressor['decode'](_0x7bf950,GetManyUsersResponse)['users']['map'](_0x5a4f84=>new User(_0x5a4f84));}catch{return _0x6dbd07['map'](_0x440dfc=>new User({'id':_0x440dfc}));}}}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(_0x3cd926,_wsGateway,_socket){super(),this['_channelName']=_0x3cd926,this['_wsGateway']=_wsGateway,this['_socket']=_socket,this['_subscribeToChannel']();}['remove'](){this['_socket']['off'](this['_channelName']);}['getEventName'](eventName,_0x11f641=!0x1){let fullEventName='';return _0x11f641&&(fullEventName+='all:'),fullEventName+='event',eventName&&(fullEventName+=':'+eventName),fullEventName;}['_subscribeToChannel'](){this['_socket']['on'](this['_channelName'],_0x2ebcaa=>{const _0x41ed5a=MessagesCompressor['decode'](_0x2ebcaa,ChannelMessage);this['fire'](this['getEventName'](_0x41ed5a['type'],!0x0),_0x41ed5a['data'],_0x41ed5a['socketId']),_0x41ed5a['socketId']!==this['_wsGateway']['socketId']&&this['fire'](this['getEventName'](_0x41ed5a['type']),_0x41ed5a['data'],_0x41ed5a['socketId']);});}}class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x30fdf0,context,_0x4b0177=null,data={}){super('cloud-services-internal-error:\x20'+_0x30fdf0),this['context']=context,this['code']=_0x4b0177,this['data']=data,this['name']='CKEditorError';}static['fromPublicError'](_0x1479a3){return new CKEditorCloudServicesError(function(_0x32bbcf){let _0x34e753='cloud-services-error:\x20'+_0x32bbcf['message'];return _0x32bbcf['data']&&(_0x34e753+='\x0aError\x20data:\x20'+JSON['stringify'](_0x32bbcf['data'])),_0x32bbcf['explanation']&&(_0x34e753+='\x0aExplanation:\x20'+_0x32bbcf['explanation']),_0x32bbcf['action']&&(_0x34e753+='\x0aAction:\x20'+_0x32bbcf['action']),_0x32bbcf['traceId']&&(_0x34e753+='\x0aTraceId:\x20'+_0x32bbcf['traceId']),_0x32bbcf['code']&&(_0x34e753+='\x0aCode:\x20'+_0x32bbcf['code']),_0x34e753;}(_0x1479a3),_0x1479a3);}}class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x469cbf,_0xb40423){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x469cbf,this['code']=_0xb40423['code'],this['traceId']=_0xb40423['traceId'],this['data']=_0xb40423['data'];}static['fromPublicError'](_0x5f45bb){return new CKEditorCloudServicesServerError(function(_0x52ffcf){let _0xd2f593='cloud-services-server-error:\x20'+_0x52ffcf['message'];return _0x52ffcf['explanation']&&(_0xd2f593+='\x0aExplanation:\x20'+_0x52ffcf['explanation']),_0x52ffcf['action']&&(_0xd2f593+='\x0aAction:\x20'+_0x52ffcf['action']),_0x52ffcf['traceId']&&(_0xd2f593+='\x0aTraceId:\x20'+_0x52ffcf['traceId']),_0x52ffcf['code']&&(_0xd2f593+='\x0aCode:\x20'+_0x52ffcf['code']),_0xd2f593;}(_0x5f45bb),_0x5f45bb);}}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(_0x3bc993,_0x16021f=[],except=[]){super(),this['flags']=_0x3bc993,this['rooms']=_0x16021f,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 _0x1fc9bf=0x0;for(let _0x50a5b4=0x0;_0x50a5b4<types['length'];_0x50a5b4++){_0x1fc9bf+=types[_0x50a5b4]*Math['pow'](0xa,types['length']-_0x50a5b4-0x1);}return _0x1fc9bf;}static['getType'](_0x5c28be){if(ParserUtils['isBuffer'](_0x5c28be))return MessageDataTypes_BUFFER;const type=typeof _0x5c28be;return'string'===type?MessageDataTypes_STRING:'number'===type?MessageDataTypes_NUMBER:MessageDataTypes_OBJECT;}static['isBuffer'](_0xa3cb82){return IS_NODE&&Buffer['isBuffer'](_0xa3cb82)||_0xa3cb82 instanceof ArrayBuffer||_0xa3cb82 instanceof Uint8Array||this['_isBufferView'](_0xa3cb82);}static['_isBufferView'](_0x35722e){return'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x35722e):_0x35722e['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 */
23
+ import $protobuf from'protobufjs/minimal.js';import{io}from'socket.io-client';import _0x134184 from'url-parse';import{EmitterMixin,ObservableMixin,priorities,global,Collection}from'@ckeditor/ckeditor5-utils';import{Decoder as _0x5eefe0,Encoder as _0x33e544,PacketType}from'socket.io-parser';import{v4}from'uuid';class Descriptor{static ['DESCRIPTOR_NAME'];static ['DESCRIPTOR'];constructor(..._0x34590a){}}class Message extends Descriptor{static ['TYPE']='1000';static ['READABLE_TYPE_NAME'];constructor(..._0x3b6bc6){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(_0x30a518){super(),this['id']=_0x30a518;}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'](_0x5d67e4=>({'key':_0x5d67e4,'value':JSON['stringify'](this['attributes'][_0x5d67e4])}))};}static['fromJSON'](data){const attributes=data['attributes']['reduce']((result,_0x112dc9)=>(result[_0x112dc9['key']]=_0x112dc9['value']?JSON['parse'](_0x112dc9['value']):null,result),{});return new GetUserResponse(attributes);}}const messages=/* #__PURE__ -- @preserve */
24
+ ((()=>{var _0x470ccf=$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 _0x2be0f5=Object['keys'](properties),_0x3312fc=0x0;_0x3312fc<_0x2be0f5['length'];++_0x3312fc)null!=properties[_0x2be0f5[_0x3312fc]]&&'__proto__'!==_0x2be0f5[_0x3312fc]&&(this[_0x2be0f5[_0x3312fc]]=properties[_0x2be0f5[_0x3312fc]]);}}return StringStringPacketDataMessage['prototype']['data']='',StringStringPacketDataMessage['prototype']['data1']='',StringStringPacketDataMessage['create']=function(properties){return new StringStringPacketDataMessage(properties);},StringStringPacketDataMessage['encode']=function(_0x522ed0,writer,_0x318d26){if(writer||(writer=$Writer['create']()),void 0x0===_0x318d26&&(_0x318d26=0x0),_0x318d26>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x522ed0['data']&&Object['hasOwnProperty']['call'](_0x522ed0,'data')&&writer['uint32'](0xa)['string'](_0x522ed0['data']),null!=_0x522ed0['data1']&&Object['hasOwnProperty']['call'](_0x522ed0,'data1')&&writer['uint32'](0x12)['string'](_0x522ed0['data1']),writer;},StringStringPacketDataMessage['encodeDelimited']=function(_0x29089b,writer){return this['encode'](_0x29089b,writer)['ldelim']();},StringStringPacketDataMessage['decode']=function(_0x7a2372,length,_0x45a72a,_0x346c2e){if(_0x7a2372 instanceof _0x470ccf||(_0x7a2372=_0x470ccf['create'](_0x7a2372)),void 0x0===_0x346c2e&&(_0x346c2e=0x0),_0x346c2e>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4831b1=void 0x0===length?_0x7a2372['len']:_0x7a2372['pos']+length,_0x1d3440=new $root['StringStringPacketDataMessage']();_0x7a2372['pos']<_0x4831b1;){var tag=_0x7a2372['uint32']();if(tag===_0x45a72a)break;switch(tag>>>0x3){case 0x1:_0x1d3440['data']=_0x7a2372['string']();break;case 0x2:_0x1d3440['data1']=_0x7a2372['string']();break;default:_0x7a2372['skipType'](0x7&tag,_0x346c2e);}}return _0x1d3440;},StringStringPacketDataMessage['decodeDelimited']=function(_0x392e1d){return _0x392e1d instanceof _0x470ccf||(_0x392e1d=new _0x470ccf(_0x392e1d)),this['decode'](_0x392e1d,_0x392e1d['uint32']());},StringStringPacketDataMessage['verify']=function(_0x540155,_0x5f186e){return'object'!=typeof _0x540155||null===_0x540155?'object\x20expected':(void 0x0===_0x5f186e&&(_0x5f186e=0x0),_0x5f186e>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x540155['data']&&Object['hasOwnProperty']['call'](_0x540155,'data')&&!$util['isString'](_0x540155['data'])?'data:\x20string\x20expected':null!=_0x540155['data1']&&Object['hasOwnProperty']['call'](_0x540155,'data1')&&!$util['isString'](_0x540155['data1'])?'data1:\x20string\x20expected':null);},StringStringPacketDataMessage['fromObject']=function(object,_0xdc6e3e){if(object instanceof $root['StringStringPacketDataMessage'])return object;if(!$util['isObject'](object))throw TypeError('.StringStringPacketDataMessage:\x20object\x20expected');if(void 0x0===_0xdc6e3e&&(_0xdc6e3e=0x0),_0xdc6e3e>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2760bb=new $root['StringStringPacketDataMessage']();return null!=object['data']&&(_0x2760bb['data']=String(object['data'])),null!=object['data1']&&(_0x2760bb['data1']=String(object['data1'])),_0x2760bb;},StringStringPacketDataMessage['toObject']=function(_0x4e53ac,options,_0x51ff84){if(options||(options={}),void 0x0===_0x51ff84&&(_0x51ff84=0x0),_0x51ff84>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x4e53ac['data']&&Object['hasOwnProperty']['call'](_0x4e53ac,'data')&&(object['data']=_0x4e53ac['data']),null!=_0x4e53ac['data1']&&Object['hasOwnProperty']['call'](_0x4e53ac,'data1')&&(object['data1']=_0x4e53ac['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 _0x41db2b=Object['keys'](properties),_0x1b80f0=0x0;_0x1b80f0<_0x41db2b['length'];++_0x1b80f0)null!=properties[_0x41db2b[_0x1b80f0]]&&'__proto__'!==_0x41db2b[_0x1b80f0]&&(this[_0x41db2b[_0x1b80f0]]=properties[_0x41db2b[_0x1b80f0]]);}}return StringObjectPacketDataMessage['prototype']['data']='',StringObjectPacketDataMessage['prototype']['data1']='',StringObjectPacketDataMessage['create']=function(properties){return new StringObjectPacketDataMessage(properties);},StringObjectPacketDataMessage['encode']=function(_0x927cda,writer,_0x5953d7){if(writer||(writer=$Writer['create']()),void 0x0===_0x5953d7&&(_0x5953d7=0x0),_0x5953d7>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x927cda['data']&&Object['hasOwnProperty']['call'](_0x927cda,'data')&&writer['uint32'](0xa)['string'](_0x927cda['data']),null!=_0x927cda['data1']&&Object['hasOwnProperty']['call'](_0x927cda,'data1')&&writer['uint32'](0x12)['string'](_0x927cda['data1']),writer;},StringObjectPacketDataMessage['encodeDelimited']=function(_0x2ecc14,writer){return this['encode'](_0x2ecc14,writer)['ldelim']();},StringObjectPacketDataMessage['decode']=function(_0x1aa4fb,length,_0x27a6cc,_0xbdf9d4){if(_0x1aa4fb instanceof _0x470ccf||(_0x1aa4fb=_0x470ccf['create'](_0x1aa4fb)),void 0x0===_0xbdf9d4&&(_0xbdf9d4=0x0),_0xbdf9d4>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x25b85b=void 0x0===length?_0x1aa4fb['len']:_0x1aa4fb['pos']+length,_0x2890c7=new $root['StringObjectPacketDataMessage']();_0x1aa4fb['pos']<_0x25b85b;){var tag=_0x1aa4fb['uint32']();if(tag===_0x27a6cc)break;switch(tag>>>0x3){case 0x1:_0x2890c7['data']=_0x1aa4fb['string']();break;case 0x2:_0x2890c7['data1']=_0x1aa4fb['string']();break;default:_0x1aa4fb['skipType'](0x7&tag,_0xbdf9d4);}}return _0x2890c7;},StringObjectPacketDataMessage['decodeDelimited']=function(_0x5b43fd){return _0x5b43fd instanceof _0x470ccf||(_0x5b43fd=new _0x470ccf(_0x5b43fd)),this['decode'](_0x5b43fd,_0x5b43fd['uint32']());},StringObjectPacketDataMessage['verify']=function(_0x35ec43,_0x37984c){return'object'!=typeof _0x35ec43||null===_0x35ec43?'object\x20expected':(void 0x0===_0x37984c&&(_0x37984c=0x0),_0x37984c>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x35ec43['data']&&Object['hasOwnProperty']['call'](_0x35ec43,'data')&&!$util['isString'](_0x35ec43['data'])?'data:\x20string\x20expected':null!=_0x35ec43['data1']&&Object['hasOwnProperty']['call'](_0x35ec43,'data1')&&!$util['isString'](_0x35ec43['data1'])?'data1:\x20string\x20expected':null);},StringObjectPacketDataMessage['fromObject']=function(object,_0x1b337f){if(object instanceof $root['StringObjectPacketDataMessage'])return object;if(!$util['isObject'](object))throw TypeError('.StringObjectPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x1b337f&&(_0x1b337f=0x0),_0x1b337f>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x3818c5=new $root['StringObjectPacketDataMessage']();return null!=object['data']&&(_0x3818c5['data']=String(object['data'])),null!=object['data1']&&(_0x3818c5['data1']=String(object['data1'])),_0x3818c5;},StringObjectPacketDataMessage['toObject']=function(_0x3a866f,options,_0xe12e53){if(options||(options={}),void 0x0===_0xe12e53&&(_0xe12e53=0x0),_0xe12e53>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x3a866f['data']&&Object['hasOwnProperty']['call'](_0x3a866f,'data')&&(object['data']=_0x3a866f['data']),null!=_0x3a866f['data1']&&Object['hasOwnProperty']['call'](_0x3a866f,'data1')&&(object['data1']=_0x3a866f['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 _0x1130e2=Object['keys'](properties),_0x25fa9e=0x0;_0x25fa9e<_0x1130e2['length'];++_0x25fa9e)null!=properties[_0x1130e2[_0x25fa9e]]&&'__proto__'!==_0x1130e2[_0x25fa9e]&&(this[_0x1130e2[_0x25fa9e]]=properties[_0x1130e2[_0x25fa9e]]);}}return StringNumberPacketDataMessage['prototype']['data']='',StringNumberPacketDataMessage['prototype']['data1']=0x0,StringNumberPacketDataMessage['create']=function(properties){return new StringNumberPacketDataMessage(properties);},StringNumberPacketDataMessage['encode']=function(_0x3a5bbd,writer,_0x3c8d7e){if(writer||(writer=$Writer['create']()),void 0x0===_0x3c8d7e&&(_0x3c8d7e=0x0),_0x3c8d7e>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x3a5bbd['data']&&Object['hasOwnProperty']['call'](_0x3a5bbd,'data')&&writer['uint32'](0xa)['string'](_0x3a5bbd['data']),null!=_0x3a5bbd['data1']&&Object['hasOwnProperty']['call'](_0x3a5bbd,'data1')&&writer['uint32'](0x10)['uint32'](_0x3a5bbd['data1']),writer;},StringNumberPacketDataMessage['encodeDelimited']=function(_0x5e52f8,writer){return this['encode'](_0x5e52f8,writer)['ldelim']();},StringNumberPacketDataMessage['decode']=function(_0x357e36,length,_0x382ef6,_0x2b37ab){if(_0x357e36 instanceof _0x470ccf||(_0x357e36=_0x470ccf['create'](_0x357e36)),void 0x0===_0x2b37ab&&(_0x2b37ab=0x0),_0x2b37ab>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5413b1=void 0x0===length?_0x357e36['len']:_0x357e36['pos']+length,_0x17a4f2=new $root['StringNumberPacketDataMessage']();_0x357e36['pos']<_0x5413b1;){var tag=_0x357e36['uint32']();if(tag===_0x382ef6)break;switch(tag>>>0x3){case 0x1:_0x17a4f2['data']=_0x357e36['string']();break;case 0x2:_0x17a4f2['data1']=_0x357e36['uint32']();break;default:_0x357e36['skipType'](0x7&tag,_0x2b37ab);}}return _0x17a4f2;},StringNumberPacketDataMessage['decodeDelimited']=function(_0x2164fb){return _0x2164fb instanceof _0x470ccf||(_0x2164fb=new _0x470ccf(_0x2164fb)),this['decode'](_0x2164fb,_0x2164fb['uint32']());},StringNumberPacketDataMessage['verify']=function(_0x4c1d7c,_0x529685){return'object'!=typeof _0x4c1d7c||null===_0x4c1d7c?'object\x20expected':(void 0x0===_0x529685&&(_0x529685=0x0),_0x529685>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x4c1d7c['data']&&Object['hasOwnProperty']['call'](_0x4c1d7c,'data')&&!$util['isString'](_0x4c1d7c['data'])?'data:\x20string\x20expected':null!=_0x4c1d7c['data1']&&Object['hasOwnProperty']['call'](_0x4c1d7c,'data1')&&!$util['isInteger'](_0x4c1d7c['data1'])?'data1:\x20integer\x20expected':null);},StringNumberPacketDataMessage['fromObject']=function(object,_0x459026){if(object instanceof $root['StringNumberPacketDataMessage'])return object;if(!$util['isObject'](object))throw TypeError('.StringNumberPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x459026&&(_0x459026=0x0),_0x459026>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x24cf57=new $root['StringNumberPacketDataMessage']();return null!=object['data']&&(_0x24cf57['data']=String(object['data'])),null!=object['data1']&&(_0x24cf57['data1']=object['data1']>>>0x0),_0x24cf57;},StringNumberPacketDataMessage['toObject']=function(_0x17bbbb,options,_0x3ea80c){if(options||(options={}),void 0x0===_0x3ea80c&&(_0x3ea80c=0x0),_0x3ea80c>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['data']='',object['data1']=0x0),null!=_0x17bbbb['data']&&Object['hasOwnProperty']['call'](_0x17bbbb,'data')&&(object['data']=_0x17bbbb['data']),null!=_0x17bbbb['data1']&&Object['hasOwnProperty']['call'](_0x17bbbb,'data1')&&(object['data1']=_0x17bbbb['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 _0x131c44=Object['keys'](properties),_0x459234=0x0;_0x459234<_0x131c44['length'];++_0x459234)null!=properties[_0x131c44[_0x459234]]&&'__proto__'!==_0x131c44[_0x459234]&&(this[_0x131c44[_0x459234]]=properties[_0x131c44[_0x459234]]);}}return StringBytesPacketDataMessage['prototype']['data']='',StringBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),StringBytesPacketDataMessage['create']=function(properties){return new StringBytesPacketDataMessage(properties);},StringBytesPacketDataMessage['encode']=function(_0x234f16,writer,_0x279127){if(writer||(writer=$Writer['create']()),void 0x0===_0x279127&&(_0x279127=0x0),_0x279127>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x234f16['data']&&Object['hasOwnProperty']['call'](_0x234f16,'data')&&writer['uint32'](0xa)['string'](_0x234f16['data']),null!=_0x234f16['data1']&&Object['hasOwnProperty']['call'](_0x234f16,'data1')&&writer['uint32'](0x12)['bytes'](_0x234f16['data1']),writer;},StringBytesPacketDataMessage['encodeDelimited']=function(_0x58535d,writer){return this['encode'](_0x58535d,writer)['ldelim']();},StringBytesPacketDataMessage['decode']=function(_0x180dd4,length,_0x4a16fd,_0x5442bf){if(_0x180dd4 instanceof _0x470ccf||(_0x180dd4=_0x470ccf['create'](_0x180dd4)),void 0x0===_0x5442bf&&(_0x5442bf=0x0),_0x5442bf>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2dab36=void 0x0===length?_0x180dd4['len']:_0x180dd4['pos']+length,_0x41b3f7=new $root['StringBytesPacketDataMessage']();_0x180dd4['pos']<_0x2dab36;){var tag=_0x180dd4['uint32']();if(tag===_0x4a16fd)break;switch(tag>>>0x3){case 0x1:_0x41b3f7['data']=_0x180dd4['string']();break;case 0x2:_0x41b3f7['data1']=_0x180dd4['bytes']();break;default:_0x180dd4['skipType'](0x7&tag,_0x5442bf);}}return _0x41b3f7;},StringBytesPacketDataMessage['decodeDelimited']=function(_0x430a6c){return _0x430a6c instanceof _0x470ccf||(_0x430a6c=new _0x470ccf(_0x430a6c)),this['decode'](_0x430a6c,_0x430a6c['uint32']());},StringBytesPacketDataMessage['verify']=function(_0x25fbd0,_0x3764a6){return'object'!=typeof _0x25fbd0||null===_0x25fbd0?'object\x20expected':(void 0x0===_0x3764a6&&(_0x3764a6=0x0),_0x3764a6>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x25fbd0['data']&&Object['hasOwnProperty']['call'](_0x25fbd0,'data')&&!$util['isString'](_0x25fbd0['data'])?'data:\x20string\x20expected':null!=_0x25fbd0['data1']&&Object['hasOwnProperty']['call'](_0x25fbd0,'data1')&&!(_0x25fbd0['data1']&&'number'==typeof _0x25fbd0['data1']['length']||$util['isString'](_0x25fbd0['data1']))?'data1:\x20buffer\x20expected':null);},StringBytesPacketDataMessage['fromObject']=function(object,_0x4d0115){if(object instanceof $root['StringBytesPacketDataMessage'])return object;if(!$util['isObject'](object))throw TypeError('.StringBytesPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x4d0115&&(_0x4d0115=0x0),_0x4d0115>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5e4e48=new $root['StringBytesPacketDataMessage']();return null!=object['data']&&(_0x5e4e48['data']=String(object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x5e4e48['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x5e4e48['data1']=object['data1'])),_0x5e4e48;},StringBytesPacketDataMessage['toObject']=function(_0x99e58d,options,_0x311e9a){if(options||(options={}),void 0x0===_0x311e9a&&(_0x311e9a=0x0),_0x311e9a>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['data']='',options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x99e58d['data']&&Object['hasOwnProperty']['call'](_0x99e58d,'data')&&(object['data']=_0x99e58d['data']),null!=_0x99e58d['data1']&&Object['hasOwnProperty']['call'](_0x99e58d,'data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x99e58d['data1'],0x0,_0x99e58d['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x99e58d['data1']):_0x99e58d['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 _0x3e18a0=Object['keys'](properties),_0x42b233=0x0;_0x42b233<_0x3e18a0['length'];++_0x42b233)null!=properties[_0x3e18a0[_0x42b233]]&&'__proto__'!==_0x3e18a0[_0x42b233]&&(this[_0x3e18a0[_0x42b233]]=properties[_0x3e18a0[_0x42b233]]);}}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(_0x5b217f,writer,_0x58a38a){if(writer||(writer=$Writer['create']()),void 0x0===_0x58a38a&&(_0x58a38a=0x0),_0x58a38a>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x5b217f['flags']&&Object['hasOwnProperty']['call'](_0x5b217f,'flags')&&writer['uint32'](0xa)['string'](_0x5b217f['flags']),null!=_0x5b217f['rooms']&&_0x5b217f['rooms']['length']){for(var _0x36e6a3=0x0;_0x36e6a3<_0x5b217f['rooms']['length'];++_0x36e6a3)writer['uint32'](0x12)['string'](_0x5b217f['rooms'][_0x36e6a3]);}if(null!=_0x5b217f['except']&&_0x5b217f['except']['length']){for(_0x36e6a3=0x0;_0x36e6a3<_0x5b217f['except']['length'];++_0x36e6a3)writer['uint32'](0x1a)['string'](_0x5b217f['except'][_0x36e6a3]);}return writer;},PacketOptionsMessage['encodeDelimited']=function(_0x198180,writer){return this['encode'](_0x198180,writer)['ldelim']();},PacketOptionsMessage['decode']=function(_0x194363,length,_0x483ab8,_0x438193){if(_0x194363 instanceof _0x470ccf||(_0x194363=_0x470ccf['create'](_0x194363)),void 0x0===_0x438193&&(_0x438193=0x0),_0x438193>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x55948b=void 0x0===length?_0x194363['len']:_0x194363['pos']+length,_0x33f059=new $root['PacketOptionsMessage']();_0x194363['pos']<_0x55948b;){var tag=_0x194363['uint32']();if(tag===_0x483ab8)break;switch(tag>>>0x3){case 0x1:_0x33f059['flags']=_0x194363['string']();break;case 0x2:_0x33f059['rooms']&&_0x33f059['rooms']['length']||(_0x33f059['rooms']=[]),_0x33f059['rooms']['push'](_0x194363['string']());break;case 0x3:_0x33f059['except']&&_0x33f059['except']['length']||(_0x33f059['except']=[]),_0x33f059['except']['push'](_0x194363['string']());break;default:_0x194363['skipType'](0x7&tag,_0x438193);}}return _0x33f059;},PacketOptionsMessage['decodeDelimited']=function(_0x5dcb34){return _0x5dcb34 instanceof _0x470ccf||(_0x5dcb34=new _0x470ccf(_0x5dcb34)),this['decode'](_0x5dcb34,_0x5dcb34['uint32']());},PacketOptionsMessage['verify']=function(_0x117c78,_0x388339){if('object'!=typeof _0x117c78||null===_0x117c78)return'object\x20expected';if(void 0x0===_0x388339&&(_0x388339=0x0),_0x388339>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x117c78['flags']&&Object['hasOwnProperty']['call'](_0x117c78,'flags')&&!$util['isString'](_0x117c78['flags']))return'flags:\x20string\x20expected';if(null!=_0x117c78['rooms']&&Object['hasOwnProperty']['call'](_0x117c78,'rooms')){if(!Array['isArray'](_0x117c78['rooms']))return'rooms:\x20array\x20expected';for(var _0x5205fd=0x0;_0x5205fd<_0x117c78['rooms']['length'];++_0x5205fd)if(!$util['isString'](_0x117c78['rooms'][_0x5205fd]))return'rooms:\x20string[]\x20expected';}if(null!=_0x117c78['except']&&Object['hasOwnProperty']['call'](_0x117c78,'except')){if(!Array['isArray'](_0x117c78['except']))return'except:\x20array\x20expected';for(_0x5205fd=0x0;_0x5205fd<_0x117c78['except']['length'];++_0x5205fd)if(!$util['isString'](_0x117c78['except'][_0x5205fd]))return'except:\x20string[]\x20expected';}return null;},PacketOptionsMessage['fromObject']=function(object,_0x2629d0){if(object instanceof $root['PacketOptionsMessage'])return object;if(!$util['isObject'](object))throw TypeError('.PacketOptionsMessage:\x20object\x20expected');if(void 0x0===_0x2629d0&&(_0x2629d0=0x0),_0x2629d0>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2b9a02=new $root['PacketOptionsMessage']();if(null!=object['flags']&&(_0x2b9a02['flags']=String(object['flags'])),object['rooms']){if(!Array['isArray'](object['rooms']))throw TypeError('.PacketOptionsMessage.rooms:\x20array\x20expected');_0x2b9a02['rooms']=[];for(var _0x463746=0x0;_0x463746<object['rooms']['length'];++_0x463746)_0x2b9a02['rooms'][_0x463746]=String(object['rooms'][_0x463746]);}if(object['except']){if(!Array['isArray'](object['except']))throw TypeError('.PacketOptionsMessage.except:\x20array\x20expected');_0x2b9a02['except']=[];for(_0x463746=0x0;_0x463746<object['except']['length'];++_0x463746)_0x2b9a02['except'][_0x463746]=String(object['except'][_0x463746]);}return _0x2b9a02;},PacketOptionsMessage['toObject']=function(_0x18f5d2,options,_0x4c9482){if(options||(options={}),void 0x0===_0x4c9482&&(_0x4c9482=0x0),_0x4c9482>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['rooms']=[],object['except']=[]),options['defaults']&&(object['flags']=''),null!=_0x18f5d2['flags']&&Object['hasOwnProperty']['call'](_0x18f5d2,'flags')&&(object['flags']=_0x18f5d2['flags']),_0x18f5d2['rooms']&&_0x18f5d2['rooms']['length']){object['rooms']=[];for(var _0x802539=0x0;_0x802539<_0x18f5d2['rooms']['length'];++_0x802539)object['rooms'][_0x802539]=_0x18f5d2['rooms'][_0x802539];}if(_0x18f5d2['except']&&_0x18f5d2['except']['length']){object['except']=[];for(_0x802539=0x0;_0x802539<_0x18f5d2['except']['length'];++_0x802539)object['except'][_0x802539]=_0x18f5d2['except'][_0x802539];}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 _0x4f98cb=Object['keys'](properties),_0x4990f1=0x0;_0x4990f1<_0x4f98cb['length'];++_0x4990f1)null!=properties[_0x4f98cb[_0x4990f1]]&&'__proto__'!==_0x4f98cb[_0x4990f1]&&(this[_0x4f98cb[_0x4990f1]]=properties[_0x4f98cb[_0x4990f1]]);}}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(_0x3ba90f,writer,_0x4836e8){if(writer||(writer=$Writer['create']()),void 0x0===_0x4836e8&&(_0x4836e8=0x0),_0x4836e8>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x3ba90f['type']&&Object['hasOwnProperty']['call'](_0x3ba90f,'type')&&writer['uint32'](0x8)['uint32'](_0x3ba90f['type']),null!=_0x3ba90f['id']&&Object['hasOwnProperty']['call'](_0x3ba90f,'id')&&writer['uint32'](0x10)['uint32'](_0x3ba90f['id']),null!=_0x3ba90f['nsp']&&Object['hasOwnProperty']['call'](_0x3ba90f,'nsp')&&writer['uint32'](0x1a)['string'](_0x3ba90f['nsp']),null!=_0x3ba90f['data']&&Object['hasOwnProperty']['call'](_0x3ba90f,'data')&&writer['uint32'](0x22)['bytes'](_0x3ba90f['data']),null!=_0x3ba90f['options']&&Object['hasOwnProperty']['call'](_0x3ba90f,'options')&&writer['uint32'](0x2a)['bytes'](_0x3ba90f['options']),writer;},PacketMessage['encodeDelimited']=function(_0x5177b4,writer){return this['encode'](_0x5177b4,writer)['ldelim']();},PacketMessage['decode']=function(_0x44bd5c,length,_0x2bf478,_0x1575e0){if(_0x44bd5c instanceof _0x470ccf||(_0x44bd5c=_0x470ccf['create'](_0x44bd5c)),void 0x0===_0x1575e0&&(_0x1575e0=0x0),_0x1575e0>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3b9813=void 0x0===length?_0x44bd5c['len']:_0x44bd5c['pos']+length,_0x19773f=new $root['PacketMessage']();_0x44bd5c['pos']<_0x3b9813;){var tag=_0x44bd5c['uint32']();if(tag===_0x2bf478)break;switch(tag>>>0x3){case 0x1:_0x19773f['type']=_0x44bd5c['uint32']();break;case 0x2:_0x19773f['id']=_0x44bd5c['uint32']();break;case 0x3:_0x19773f['nsp']=_0x44bd5c['string']();break;case 0x4:_0x19773f['data']=_0x44bd5c['bytes']();break;case 0x5:_0x19773f['options']=_0x44bd5c['bytes']();break;default:_0x44bd5c['skipType'](0x7&tag,_0x1575e0);}}return _0x19773f;},PacketMessage['decodeDelimited']=function(_0x196727){return _0x196727 instanceof _0x470ccf||(_0x196727=new _0x470ccf(_0x196727)),this['decode'](_0x196727,_0x196727['uint32']());},PacketMessage['verify']=function(_0x2f2855,_0x3a07e7){return'object'!=typeof _0x2f2855||null===_0x2f2855?'object\x20expected':(void 0x0===_0x3a07e7&&(_0x3a07e7=0x0),_0x3a07e7>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x2f2855['type']&&Object['hasOwnProperty']['call'](_0x2f2855,'type')&&!$util['isInteger'](_0x2f2855['type'])?'type:\x20integer\x20expected':null!=_0x2f2855['id']&&Object['hasOwnProperty']['call'](_0x2f2855,'id')&&!$util['isInteger'](_0x2f2855['id'])?'id:\x20integer\x20expected':null!=_0x2f2855['nsp']&&Object['hasOwnProperty']['call'](_0x2f2855,'nsp')&&!$util['isString'](_0x2f2855['nsp'])?'nsp:\x20string\x20expected':null!=_0x2f2855['data']&&Object['hasOwnProperty']['call'](_0x2f2855,'data')&&!(_0x2f2855['data']&&'number'==typeof _0x2f2855['data']['length']||$util['isString'](_0x2f2855['data']))?'data:\x20buffer\x20expected':null!=_0x2f2855['options']&&Object['hasOwnProperty']['call'](_0x2f2855,'options')&&!(_0x2f2855['options']&&'number'==typeof _0x2f2855['options']['length']||$util['isString'](_0x2f2855['options']))?'options:\x20buffer\x20expected':null);},PacketMessage['fromObject']=function(object,_0x44d599){if(object instanceof $root['PacketMessage'])return object;if(!$util['isObject'](object))throw TypeError('.PacketMessage:\x20object\x20expected');if(void 0x0===_0x44d599&&(_0x44d599=0x0),_0x44d599>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xf1adf6=new $root['PacketMessage']();return null!=object['type']&&(_0xf1adf6['type']=object['type']>>>0x0),null!=object['id']&&(_0xf1adf6['id']=object['id']>>>0x0),null!=object['nsp']&&(_0xf1adf6['nsp']=String(object['nsp'])),null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0xf1adf6['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0xf1adf6['data']=object['data'])),null!=object['options']&&('string'==typeof object['options']?$util['base64']['decode'](object['options'],_0xf1adf6['options']=$util['newBuffer']($util['base64']['length'](object['options'])),0x0):object['options']['length']>=0x0&&(_0xf1adf6['options']=object['options'])),_0xf1adf6;},PacketMessage['toObject']=function(_0x4b31c8,options,_0x46f24d){if(options||(options={}),void 0x0===_0x46f24d&&(_0x46f24d=0x0),_0x46f24d>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');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!=_0x4b31c8['type']&&Object['hasOwnProperty']['call'](_0x4b31c8,'type')&&(object['type']=_0x4b31c8['type']),null!=_0x4b31c8['id']&&Object['hasOwnProperty']['call'](_0x4b31c8,'id')&&(object['id']=_0x4b31c8['id']),null!=_0x4b31c8['nsp']&&Object['hasOwnProperty']['call'](_0x4b31c8,'nsp')&&(object['nsp']=_0x4b31c8['nsp']),null!=_0x4b31c8['data']&&Object['hasOwnProperty']['call'](_0x4b31c8,'data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x4b31c8['data'],0x0,_0x4b31c8['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x4b31c8['data']):_0x4b31c8['data']),null!=_0x4b31c8['options']&&Object['hasOwnProperty']['call'](_0x4b31c8,'options')&&(object['options']=options['bytes']===String?$util['base64']['encode'](_0x4b31c8['options'],0x0,_0x4b31c8['options']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x4b31c8['options']):_0x4b31c8['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 _0x9f2f22=Object['keys'](properties),_0x2dc9e5=0x0;_0x2dc9e5<_0x9f2f22['length'];++_0x2dc9e5)null!=properties[_0x9f2f22[_0x2dc9e5]]&&'__proto__'!==_0x9f2f22[_0x2dc9e5]&&(this[_0x9f2f22[_0x2dc9e5]]=properties[_0x9f2f22[_0x2dc9e5]]);}}return ObjectObjectPacketDataMessage['prototype']['data']='',ObjectObjectPacketDataMessage['prototype']['data1']='',ObjectObjectPacketDataMessage['create']=function(properties){return new ObjectObjectPacketDataMessage(properties);},ObjectObjectPacketDataMessage['encode']=function(_0x4779ac,writer,_0x58d86b){if(writer||(writer=$Writer['create']()),void 0x0===_0x58d86b&&(_0x58d86b=0x0),_0x58d86b>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x4779ac['data']&&Object['hasOwnProperty']['call'](_0x4779ac,'data')&&writer['uint32'](0xa)['string'](_0x4779ac['data']),null!=_0x4779ac['data1']&&Object['hasOwnProperty']['call'](_0x4779ac,'data1')&&writer['uint32'](0x12)['string'](_0x4779ac['data1']),writer;},ObjectObjectPacketDataMessage['encodeDelimited']=function(_0x217016,writer){return this['encode'](_0x217016,writer)['ldelim']();},ObjectObjectPacketDataMessage['decode']=function(_0x3b5c7b,length,_0x2ffab,_0x3757f3){if(_0x3b5c7b instanceof _0x470ccf||(_0x3b5c7b=_0x470ccf['create'](_0x3b5c7b)),void 0x0===_0x3757f3&&(_0x3757f3=0x0),_0x3757f3>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x566b31=void 0x0===length?_0x3b5c7b['len']:_0x3b5c7b['pos']+length,_0x447127=new $root['ObjectObjectPacketDataMessage']();_0x3b5c7b['pos']<_0x566b31;){var tag=_0x3b5c7b['uint32']();if(tag===_0x2ffab)break;switch(tag>>>0x3){case 0x1:_0x447127['data']=_0x3b5c7b['string']();break;case 0x2:_0x447127['data1']=_0x3b5c7b['string']();break;default:_0x3b5c7b['skipType'](0x7&tag,_0x3757f3);}}return _0x447127;},ObjectObjectPacketDataMessage['decodeDelimited']=function(_0xea9fbd){return _0xea9fbd instanceof _0x470ccf||(_0xea9fbd=new _0x470ccf(_0xea9fbd)),this['decode'](_0xea9fbd,_0xea9fbd['uint32']());},ObjectObjectPacketDataMessage['verify']=function(_0x2fe07d,_0x409d80){return'object'!=typeof _0x2fe07d||null===_0x2fe07d?'object\x20expected':(void 0x0===_0x409d80&&(_0x409d80=0x0),_0x409d80>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x2fe07d['data']&&Object['hasOwnProperty']['call'](_0x2fe07d,'data')&&!$util['isString'](_0x2fe07d['data'])?'data:\x20string\x20expected':null!=_0x2fe07d['data1']&&Object['hasOwnProperty']['call'](_0x2fe07d,'data1')&&!$util['isString'](_0x2fe07d['data1'])?'data1:\x20string\x20expected':null);},ObjectObjectPacketDataMessage['fromObject']=function(object,_0x52418b){if(object instanceof $root['ObjectObjectPacketDataMessage'])return object;if(!$util['isObject'](object))throw TypeError('.ObjectObjectPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x52418b&&(_0x52418b=0x0),_0x52418b>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2674dc=new $root['ObjectObjectPacketDataMessage']();return null!=object['data']&&(_0x2674dc['data']=String(object['data'])),null!=object['data1']&&(_0x2674dc['data1']=String(object['data1'])),_0x2674dc;},ObjectObjectPacketDataMessage['toObject']=function(_0x340c03,options,_0x80d3b){if(options||(options={}),void 0x0===_0x80d3b&&(_0x80d3b=0x0),_0x80d3b>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x340c03['data']&&Object['hasOwnProperty']['call'](_0x340c03,'data')&&(object['data']=_0x340c03['data']),null!=_0x340c03['data1']&&Object['hasOwnProperty']['call'](_0x340c03,'data1')&&(object['data1']=_0x340c03['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 _0x46e797=Object['keys'](properties),_0x36e51b=0x0;_0x36e51b<_0x46e797['length'];++_0x36e51b)null!=properties[_0x46e797[_0x36e51b]]&&'__proto__'!==_0x46e797[_0x36e51b]&&(this[_0x46e797[_0x36e51b]]=properties[_0x46e797[_0x36e51b]]);}}return ObjectBufferPacketDataMessage['prototype']['data']='',ObjectBufferPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),ObjectBufferPacketDataMessage['create']=function(properties){return new ObjectBufferPacketDataMessage(properties);},ObjectBufferPacketDataMessage['encode']=function(_0x9f55e3,writer,_0x280a45){if(writer||(writer=$Writer['create']()),void 0x0===_0x280a45&&(_0x280a45=0x0),_0x280a45>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x9f55e3['data']&&Object['hasOwnProperty']['call'](_0x9f55e3,'data')&&writer['uint32'](0xa)['string'](_0x9f55e3['data']),null!=_0x9f55e3['data1']&&Object['hasOwnProperty']['call'](_0x9f55e3,'data1')&&writer['uint32'](0x12)['bytes'](_0x9f55e3['data1']),writer;},ObjectBufferPacketDataMessage['encodeDelimited']=function(_0x279789,writer){return this['encode'](_0x279789,writer)['ldelim']();},ObjectBufferPacketDataMessage['decode']=function(_0x5e79ab,length,_0x9ed948,_0x131da9){if(_0x5e79ab instanceof _0x470ccf||(_0x5e79ab=_0x470ccf['create'](_0x5e79ab)),void 0x0===_0x131da9&&(_0x131da9=0x0),_0x131da9>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x127ac9=void 0x0===length?_0x5e79ab['len']:_0x5e79ab['pos']+length,_0x4d3010=new $root['ObjectBufferPacketDataMessage']();_0x5e79ab['pos']<_0x127ac9;){var tag=_0x5e79ab['uint32']();if(tag===_0x9ed948)break;switch(tag>>>0x3){case 0x1:_0x4d3010['data']=_0x5e79ab['string']();break;case 0x2:_0x4d3010['data1']=_0x5e79ab['bytes']();break;default:_0x5e79ab['skipType'](0x7&tag,_0x131da9);}}return _0x4d3010;},ObjectBufferPacketDataMessage['decodeDelimited']=function(_0x1098b7){return _0x1098b7 instanceof _0x470ccf||(_0x1098b7=new _0x470ccf(_0x1098b7)),this['decode'](_0x1098b7,_0x1098b7['uint32']());},ObjectBufferPacketDataMessage['verify']=function(_0x5cde0b,_0x1f424e){return'object'!=typeof _0x5cde0b||null===_0x5cde0b?'object\x20expected':(void 0x0===_0x1f424e&&(_0x1f424e=0x0),_0x1f424e>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x5cde0b['data']&&Object['hasOwnProperty']['call'](_0x5cde0b,'data')&&!$util['isString'](_0x5cde0b['data'])?'data:\x20string\x20expected':null!=_0x5cde0b['data1']&&Object['hasOwnProperty']['call'](_0x5cde0b,'data1')&&!(_0x5cde0b['data1']&&'number'==typeof _0x5cde0b['data1']['length']||$util['isString'](_0x5cde0b['data1']))?'data1:\x20buffer\x20expected':null);},ObjectBufferPacketDataMessage['fromObject']=function(object,_0x528091){if(object instanceof $root['ObjectBufferPacketDataMessage'])return object;if(!$util['isObject'](object))throw TypeError('.ObjectBufferPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x528091&&(_0x528091=0x0),_0x528091>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5bd69d=new $root['ObjectBufferPacketDataMessage']();return null!=object['data']&&(_0x5bd69d['data']=String(object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x5bd69d['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x5bd69d['data1']=object['data1'])),_0x5bd69d;},ObjectBufferPacketDataMessage['toObject']=function(_0x3259ab,options,_0x2a5d39){if(options||(options={}),void 0x0===_0x2a5d39&&(_0x2a5d39=0x0),_0x2a5d39>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['data']='',options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x3259ab['data']&&Object['hasOwnProperty']['call'](_0x3259ab,'data')&&(object['data']=_0x3259ab['data']),null!=_0x3259ab['data1']&&Object['hasOwnProperty']['call'](_0x3259ab,'data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x3259ab['data1'],0x0,_0x3259ab['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x3259ab['data1']):_0x3259ab['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 _0x26059d=Object['keys'](properties),_0x5136f6=0x0;_0x5136f6<_0x26059d['length'];++_0x5136f6)null!=properties[_0x26059d[_0x5136f6]]&&'__proto__'!==_0x26059d[_0x5136f6]&&(this[_0x26059d[_0x5136f6]]=properties[_0x26059d[_0x5136f6]]);}}return NumberStringPacketDataMessage['prototype']['data']=0x0,NumberStringPacketDataMessage['prototype']['data1']='',NumberStringPacketDataMessage['create']=function(properties){return new NumberStringPacketDataMessage(properties);},NumberStringPacketDataMessage['encode']=function(_0x3783c1,writer,_0x19bbb6){if(writer||(writer=$Writer['create']()),void 0x0===_0x19bbb6&&(_0x19bbb6=0x0),_0x19bbb6>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x3783c1['data']&&Object['hasOwnProperty']['call'](_0x3783c1,'data')&&writer['uint32'](0x8)['uint32'](_0x3783c1['data']),null!=_0x3783c1['data1']&&Object['hasOwnProperty']['call'](_0x3783c1,'data1')&&writer['uint32'](0x12)['string'](_0x3783c1['data1']),writer;},NumberStringPacketDataMessage['encodeDelimited']=function(_0x4b26ca,writer){return this['encode'](_0x4b26ca,writer)['ldelim']();},NumberStringPacketDataMessage['decode']=function(_0x54cbd3,length,_0x3d2c38,_0x554e30){if(_0x54cbd3 instanceof _0x470ccf||(_0x54cbd3=_0x470ccf['create'](_0x54cbd3)),void 0x0===_0x554e30&&(_0x554e30=0x0),_0x554e30>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2048ae=void 0x0===length?_0x54cbd3['len']:_0x54cbd3['pos']+length,_0x26f98e=new $root['NumberStringPacketDataMessage']();_0x54cbd3['pos']<_0x2048ae;){var tag=_0x54cbd3['uint32']();if(tag===_0x3d2c38)break;switch(tag>>>0x3){case 0x1:_0x26f98e['data']=_0x54cbd3['uint32']();break;case 0x2:_0x26f98e['data1']=_0x54cbd3['string']();break;default:_0x54cbd3['skipType'](0x7&tag,_0x554e30);}}return _0x26f98e;},NumberStringPacketDataMessage['decodeDelimited']=function(_0x36d76f){return _0x36d76f instanceof _0x470ccf||(_0x36d76f=new _0x470ccf(_0x36d76f)),this['decode'](_0x36d76f,_0x36d76f['uint32']());},NumberStringPacketDataMessage['verify']=function(_0x132c27,_0x6a9410){return'object'!=typeof _0x132c27||null===_0x132c27?'object\x20expected':(void 0x0===_0x6a9410&&(_0x6a9410=0x0),_0x6a9410>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x132c27['data']&&Object['hasOwnProperty']['call'](_0x132c27,'data')&&!$util['isInteger'](_0x132c27['data'])?'data:\x20integer\x20expected':null!=_0x132c27['data1']&&Object['hasOwnProperty']['call'](_0x132c27,'data1')&&!$util['isString'](_0x132c27['data1'])?'data1:\x20string\x20expected':null);},NumberStringPacketDataMessage['fromObject']=function(object,_0x50253d){if(object instanceof $root['NumberStringPacketDataMessage'])return object;if(!$util['isObject'](object))throw TypeError('.NumberStringPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x50253d&&(_0x50253d=0x0),_0x50253d>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x78a0f8=new $root['NumberStringPacketDataMessage']();return null!=object['data']&&(_0x78a0f8['data']=object['data']>>>0x0),null!=object['data1']&&(_0x78a0f8['data1']=String(object['data1'])),_0x78a0f8;},NumberStringPacketDataMessage['toObject']=function(_0x6893f4,options,_0x29b933){if(options||(options={}),void 0x0===_0x29b933&&(_0x29b933=0x0),_0x29b933>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['data']=0x0,object['data1']=''),null!=_0x6893f4['data']&&Object['hasOwnProperty']['call'](_0x6893f4,'data')&&(object['data']=_0x6893f4['data']),null!=_0x6893f4['data1']&&Object['hasOwnProperty']['call'](_0x6893f4,'data1')&&(object['data1']=_0x6893f4['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 _0x29498c=Object['keys'](properties),_0x3f5d29=0x0;_0x3f5d29<_0x29498c['length'];++_0x3f5d29)null!=properties[_0x29498c[_0x3f5d29]]&&'__proto__'!==_0x29498c[_0x3f5d29]&&(this[_0x29498c[_0x3f5d29]]=properties[_0x29498c[_0x3f5d29]]);}}return NumberObjectPacketDataMessage['prototype']['data']=0x0,NumberObjectPacketDataMessage['prototype']['data1']='',NumberObjectPacketDataMessage['create']=function(properties){return new NumberObjectPacketDataMessage(properties);},NumberObjectPacketDataMessage['encode']=function(_0x2dc2b4,writer,_0x185c3b){if(writer||(writer=$Writer['create']()),void 0x0===_0x185c3b&&(_0x185c3b=0x0),_0x185c3b>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x2dc2b4['data']&&Object['hasOwnProperty']['call'](_0x2dc2b4,'data')&&writer['uint32'](0x8)['uint32'](_0x2dc2b4['data']),null!=_0x2dc2b4['data1']&&Object['hasOwnProperty']['call'](_0x2dc2b4,'data1')&&writer['uint32'](0x12)['string'](_0x2dc2b4['data1']),writer;},NumberObjectPacketDataMessage['encodeDelimited']=function(_0x4815f6,writer){return this['encode'](_0x4815f6,writer)['ldelim']();},NumberObjectPacketDataMessage['decode']=function(_0x4a1395,length,_0x55a0c5,_0x3074a7){if(_0x4a1395 instanceof _0x470ccf||(_0x4a1395=_0x470ccf['create'](_0x4a1395)),void 0x0===_0x3074a7&&(_0x3074a7=0x0),_0x3074a7>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4346d1=void 0x0===length?_0x4a1395['len']:_0x4a1395['pos']+length,_0x15bb11=new $root['NumberObjectPacketDataMessage']();_0x4a1395['pos']<_0x4346d1;){var tag=_0x4a1395['uint32']();if(tag===_0x55a0c5)break;switch(tag>>>0x3){case 0x1:_0x15bb11['data']=_0x4a1395['uint32']();break;case 0x2:_0x15bb11['data1']=_0x4a1395['string']();break;default:_0x4a1395['skipType'](0x7&tag,_0x3074a7);}}return _0x15bb11;},NumberObjectPacketDataMessage['decodeDelimited']=function(_0x15ebb9){return _0x15ebb9 instanceof _0x470ccf||(_0x15ebb9=new _0x470ccf(_0x15ebb9)),this['decode'](_0x15ebb9,_0x15ebb9['uint32']());},NumberObjectPacketDataMessage['verify']=function(_0x5b4d32,_0x268712){return'object'!=typeof _0x5b4d32||null===_0x5b4d32?'object\x20expected':(void 0x0===_0x268712&&(_0x268712=0x0),_0x268712>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x5b4d32['data']&&Object['hasOwnProperty']['call'](_0x5b4d32,'data')&&!$util['isInteger'](_0x5b4d32['data'])?'data:\x20integer\x20expected':null!=_0x5b4d32['data1']&&Object['hasOwnProperty']['call'](_0x5b4d32,'data1')&&!$util['isString'](_0x5b4d32['data1'])?'data1:\x20string\x20expected':null);},NumberObjectPacketDataMessage['fromObject']=function(object,_0xae7a3f){if(object instanceof $root['NumberObjectPacketDataMessage'])return object;if(!$util['isObject'](object))throw TypeError('.NumberObjectPacketDataMessage:\x20object\x20expected');if(void 0x0===_0xae7a3f&&(_0xae7a3f=0x0),_0xae7a3f>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5f0bb3=new $root['NumberObjectPacketDataMessage']();return null!=object['data']&&(_0x5f0bb3['data']=object['data']>>>0x0),null!=object['data1']&&(_0x5f0bb3['data1']=String(object['data1'])),_0x5f0bb3;},NumberObjectPacketDataMessage['toObject']=function(_0x59bf7c,options,_0x21d25a){if(options||(options={}),void 0x0===_0x21d25a&&(_0x21d25a=0x0),_0x21d25a>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['data']=0x0,object['data1']=''),null!=_0x59bf7c['data']&&Object['hasOwnProperty']['call'](_0x59bf7c,'data')&&(object['data']=_0x59bf7c['data']),null!=_0x59bf7c['data1']&&Object['hasOwnProperty']['call'](_0x59bf7c,'data1')&&(object['data1']=_0x59bf7c['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 _0x2557ff=Object['keys'](properties),_0x53419=0x0;_0x53419<_0x2557ff['length'];++_0x53419)null!=properties[_0x2557ff[_0x53419]]&&'__proto__'!==_0x2557ff[_0x53419]&&(this[_0x2557ff[_0x53419]]=properties[_0x2557ff[_0x53419]]);}}return NumberNumberPacketDataMessage['prototype']['data']=0x0,NumberNumberPacketDataMessage['prototype']['data1']=0x0,NumberNumberPacketDataMessage['create']=function(properties){return new NumberNumberPacketDataMessage(properties);},NumberNumberPacketDataMessage['encode']=function(_0xfa0e2f,writer,_0x2fca0d){if(writer||(writer=$Writer['create']()),void 0x0===_0x2fca0d&&(_0x2fca0d=0x0),_0x2fca0d>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0xfa0e2f['data']&&Object['hasOwnProperty']['call'](_0xfa0e2f,'data')&&writer['uint32'](0x8)['uint32'](_0xfa0e2f['data']),null!=_0xfa0e2f['data1']&&Object['hasOwnProperty']['call'](_0xfa0e2f,'data1')&&writer['uint32'](0x10)['uint32'](_0xfa0e2f['data1']),writer;},NumberNumberPacketDataMessage['encodeDelimited']=function(_0x2aac19,writer){return this['encode'](_0x2aac19,writer)['ldelim']();},NumberNumberPacketDataMessage['decode']=function(_0x14d30f,length,_0x591a64,_0x451b0e){if(_0x14d30f instanceof _0x470ccf||(_0x14d30f=_0x470ccf['create'](_0x14d30f)),void 0x0===_0x451b0e&&(_0x451b0e=0x0),_0x451b0e>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x28a2fc=void 0x0===length?_0x14d30f['len']:_0x14d30f['pos']+length,_0x32f708=new $root['NumberNumberPacketDataMessage']();_0x14d30f['pos']<_0x28a2fc;){var tag=_0x14d30f['uint32']();if(tag===_0x591a64)break;switch(tag>>>0x3){case 0x1:_0x32f708['data']=_0x14d30f['uint32']();break;case 0x2:_0x32f708['data1']=_0x14d30f['uint32']();break;default:_0x14d30f['skipType'](0x7&tag,_0x451b0e);}}return _0x32f708;},NumberNumberPacketDataMessage['decodeDelimited']=function(_0x763313){return _0x763313 instanceof _0x470ccf||(_0x763313=new _0x470ccf(_0x763313)),this['decode'](_0x763313,_0x763313['uint32']());},NumberNumberPacketDataMessage['verify']=function(_0xe9b62f,_0x43d629){return'object'!=typeof _0xe9b62f||null===_0xe9b62f?'object\x20expected':(void 0x0===_0x43d629&&(_0x43d629=0x0),_0x43d629>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0xe9b62f['data']&&Object['hasOwnProperty']['call'](_0xe9b62f,'data')&&!$util['isInteger'](_0xe9b62f['data'])?'data:\x20integer\x20expected':null!=_0xe9b62f['data1']&&Object['hasOwnProperty']['call'](_0xe9b62f,'data1')&&!$util['isInteger'](_0xe9b62f['data1'])?'data1:\x20integer\x20expected':null);},NumberNumberPacketDataMessage['fromObject']=function(object,_0x356000){if(object instanceof $root['NumberNumberPacketDataMessage'])return object;if(!$util['isObject'](object))throw TypeError('.NumberNumberPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x356000&&(_0x356000=0x0),_0x356000>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x74ce44=new $root['NumberNumberPacketDataMessage']();return null!=object['data']&&(_0x74ce44['data']=object['data']>>>0x0),null!=object['data1']&&(_0x74ce44['data1']=object['data1']>>>0x0),_0x74ce44;},NumberNumberPacketDataMessage['toObject']=function(_0x32c036,options,_0x259869){if(options||(options={}),void 0x0===_0x259869&&(_0x259869=0x0),_0x259869>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['data']=0x0,object['data1']=0x0),null!=_0x32c036['data']&&Object['hasOwnProperty']['call'](_0x32c036,'data')&&(object['data']=_0x32c036['data']),null!=_0x32c036['data1']&&Object['hasOwnProperty']['call'](_0x32c036,'data1')&&(object['data1']=_0x32c036['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 _0x3dac52=Object['keys'](properties),_0x2a3de4=0x0;_0x2a3de4<_0x3dac52['length'];++_0x2a3de4)null!=properties[_0x3dac52[_0x2a3de4]]&&'__proto__'!==_0x3dac52[_0x2a3de4]&&(this[_0x3dac52[_0x2a3de4]]=properties[_0x3dac52[_0x2a3de4]]);}}return NumberBytesPacketDataMessage['prototype']['data']=0x0,NumberBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),NumberBytesPacketDataMessage['create']=function(properties){return new NumberBytesPacketDataMessage(properties);},NumberBytesPacketDataMessage['encode']=function(_0x3a5b93,writer,_0x2e1257){if(writer||(writer=$Writer['create']()),void 0x0===_0x2e1257&&(_0x2e1257=0x0),_0x2e1257>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x3a5b93['data']&&Object['hasOwnProperty']['call'](_0x3a5b93,'data')&&writer['uint32'](0x8)['uint32'](_0x3a5b93['data']),null!=_0x3a5b93['data1']&&Object['hasOwnProperty']['call'](_0x3a5b93,'data1')&&writer['uint32'](0x12)['bytes'](_0x3a5b93['data1']),writer;},NumberBytesPacketDataMessage['encodeDelimited']=function(_0x436484,writer){return this['encode'](_0x436484,writer)['ldelim']();},NumberBytesPacketDataMessage['decode']=function(_0x546195,length,_0x5d2aa5,_0x30eaed){if(_0x546195 instanceof _0x470ccf||(_0x546195=_0x470ccf['create'](_0x546195)),void 0x0===_0x30eaed&&(_0x30eaed=0x0),_0x30eaed>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2dab33=void 0x0===length?_0x546195['len']:_0x546195['pos']+length,_0x328551=new $root['NumberBytesPacketDataMessage']();_0x546195['pos']<_0x2dab33;){var tag=_0x546195['uint32']();if(tag===_0x5d2aa5)break;switch(tag>>>0x3){case 0x1:_0x328551['data']=_0x546195['uint32']();break;case 0x2:_0x328551['data1']=_0x546195['bytes']();break;default:_0x546195['skipType'](0x7&tag,_0x30eaed);}}return _0x328551;},NumberBytesPacketDataMessage['decodeDelimited']=function(_0x45a40f){return _0x45a40f instanceof _0x470ccf||(_0x45a40f=new _0x470ccf(_0x45a40f)),this['decode'](_0x45a40f,_0x45a40f['uint32']());},NumberBytesPacketDataMessage['verify']=function(_0x524508,_0x59d41a){return'object'!=typeof _0x524508||null===_0x524508?'object\x20expected':(void 0x0===_0x59d41a&&(_0x59d41a=0x0),_0x59d41a>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x524508['data']&&Object['hasOwnProperty']['call'](_0x524508,'data')&&!$util['isInteger'](_0x524508['data'])?'data:\x20integer\x20expected':null!=_0x524508['data1']&&Object['hasOwnProperty']['call'](_0x524508,'data1')&&!(_0x524508['data1']&&'number'==typeof _0x524508['data1']['length']||$util['isString'](_0x524508['data1']))?'data1:\x20buffer\x20expected':null);},NumberBytesPacketDataMessage['fromObject']=function(object,_0x3811ad){if(object instanceof $root['NumberBytesPacketDataMessage'])return object;if(!$util['isObject'](object))throw TypeError('.NumberBytesPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x3811ad&&(_0x3811ad=0x0),_0x3811ad>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x515f4e=new $root['NumberBytesPacketDataMessage']();return null!=object['data']&&(_0x515f4e['data']=object['data']>>>0x0),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x515f4e['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x515f4e['data1']=object['data1'])),_0x515f4e;},NumberBytesPacketDataMessage['toObject']=function(_0x387b08,options,_0x3bb43c){if(options||(options={}),void 0x0===_0x3bb43c&&(_0x3bb43c=0x0),_0x3bb43c>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');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!=_0x387b08['data']&&Object['hasOwnProperty']['call'](_0x387b08,'data')&&(object['data']=_0x387b08['data']),null!=_0x387b08['data1']&&Object['hasOwnProperty']['call'](_0x387b08,'data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x387b08['data1'],0x0,_0x387b08['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x387b08['data1']):_0x387b08['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 _0x45c300=Object['keys'](properties),_0x33f396=0x0;_0x33f396<_0x45c300['length'];++_0x33f396)null!=properties[_0x45c300[_0x33f396]]&&'__proto__'!==_0x45c300[_0x33f396]&&(this[_0x45c300[_0x33f396]]=properties[_0x45c300[_0x33f396]]);}}return BytesBytesPacketDataMessage['prototype']['data']=$util['newBuffer']([]),BytesBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),BytesBytesPacketDataMessage['create']=function(properties){return new BytesBytesPacketDataMessage(properties);},BytesBytesPacketDataMessage['encode']=function(_0x1a51dd,writer,_0x4f2bb7){if(writer||(writer=$Writer['create']()),void 0x0===_0x4f2bb7&&(_0x4f2bb7=0x0),_0x4f2bb7>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x1a51dd['data']&&Object['hasOwnProperty']['call'](_0x1a51dd,'data')&&writer['uint32'](0xa)['bytes'](_0x1a51dd['data']),null!=_0x1a51dd['data1']&&Object['hasOwnProperty']['call'](_0x1a51dd,'data1')&&writer['uint32'](0x12)['bytes'](_0x1a51dd['data1']),writer;},BytesBytesPacketDataMessage['encodeDelimited']=function(_0x4bd52f,writer){return this['encode'](_0x4bd52f,writer)['ldelim']();},BytesBytesPacketDataMessage['decode']=function(_0x26f7e6,length,_0x3e9dee,_0x3ed195){if(_0x26f7e6 instanceof _0x470ccf||(_0x26f7e6=_0x470ccf['create'](_0x26f7e6)),void 0x0===_0x3ed195&&(_0x3ed195=0x0),_0x3ed195>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4ef4d8=void 0x0===length?_0x26f7e6['len']:_0x26f7e6['pos']+length,_0x81443c=new $root['BytesBytesPacketDataMessage']();_0x26f7e6['pos']<_0x4ef4d8;){var tag=_0x26f7e6['uint32']();if(tag===_0x3e9dee)break;switch(tag>>>0x3){case 0x1:_0x81443c['data']=_0x26f7e6['bytes']();break;case 0x2:_0x81443c['data1']=_0x26f7e6['bytes']();break;default:_0x26f7e6['skipType'](0x7&tag,_0x3ed195);}}return _0x81443c;},BytesBytesPacketDataMessage['decodeDelimited']=function(_0xf24eb9){return _0xf24eb9 instanceof _0x470ccf||(_0xf24eb9=new _0x470ccf(_0xf24eb9)),this['decode'](_0xf24eb9,_0xf24eb9['uint32']());},BytesBytesPacketDataMessage['verify']=function(_0x20f8a0,_0x517496){return'object'!=typeof _0x20f8a0||null===_0x20f8a0?'object\x20expected':(void 0x0===_0x517496&&(_0x517496=0x0),_0x517496>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x20f8a0['data']&&Object['hasOwnProperty']['call'](_0x20f8a0,'data')&&!(_0x20f8a0['data']&&'number'==typeof _0x20f8a0['data']['length']||$util['isString'](_0x20f8a0['data']))?'data:\x20buffer\x20expected':null!=_0x20f8a0['data1']&&Object['hasOwnProperty']['call'](_0x20f8a0,'data1')&&!(_0x20f8a0['data1']&&'number'==typeof _0x20f8a0['data1']['length']||$util['isString'](_0x20f8a0['data1']))?'data1:\x20buffer\x20expected':null);},BytesBytesPacketDataMessage['fromObject']=function(object,_0x533114){if(object instanceof $root['BytesBytesPacketDataMessage'])return object;if(!$util['isObject'](object))throw TypeError('.BytesBytesPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x533114&&(_0x533114=0x0),_0x533114>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x22e69a=new $root['BytesBytesPacketDataMessage']();return null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x22e69a['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x22e69a['data']=object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x22e69a['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x22e69a['data1']=object['data1'])),_0x22e69a;},BytesBytesPacketDataMessage['toObject']=function(_0x430834,options,_0x217ba6){if(options||(options={}),void 0x0===_0x217ba6&&(_0x217ba6=0x0),_0x217ba6>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');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!=_0x430834['data']&&Object['hasOwnProperty']['call'](_0x430834,'data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x430834['data'],0x0,_0x430834['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x430834['data']):_0x430834['data']),null!=_0x430834['data1']&&Object['hasOwnProperty']['call'](_0x430834,'data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x430834['data1'],0x0,_0x430834['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x430834['data1']):_0x430834['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 _0x1d517c(properties){if(properties){for(var _0x46e6d4=Object['keys'](properties),_0x42012f=0x0;_0x42012f<_0x46e6d4['length'];++_0x42012f)null!=properties[_0x46e6d4[_0x42012f]]&&'__proto__'!==_0x46e6d4[_0x42012f]&&(this[_0x46e6d4[_0x42012f]]=properties[_0x46e6d4[_0x42012f]]);}}return _0x1d517c['prototype']['type']=0x0,_0x1d517c['prototype']['socketId']='',_0x1d517c['prototype']['data']=$util['newBuffer']([]),_0x1d517c['create']=function(properties){return new _0x1d517c(properties);},_0x1d517c['encode']=function(_0x1e3c10,writer,_0x43fbf5){if(writer||(writer=$Writer['create']()),void 0x0===_0x43fbf5&&(_0x43fbf5=0x0),_0x43fbf5>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x1e3c10['type']&&Object['hasOwnProperty']['call'](_0x1e3c10,'type')&&writer['uint32'](0x8)['uint32'](_0x1e3c10['type']),null!=_0x1e3c10['socketId']&&Object['hasOwnProperty']['call'](_0x1e3c10,'socketId')&&writer['uint32'](0x12)['string'](_0x1e3c10['socketId']),null!=_0x1e3c10['data']&&Object['hasOwnProperty']['call'](_0x1e3c10,'data')&&writer['uint32'](0x1a)['bytes'](_0x1e3c10['data']),writer;},_0x1d517c['encodeDelimited']=function(_0x536e3f,writer){return this['encode'](_0x536e3f,writer)['ldelim']();},_0x1d517c['decode']=function(_0xd8bd65,length,_0x27833c,_0x437d43){if(_0xd8bd65 instanceof _0x470ccf||(_0xd8bd65=_0x470ccf['create'](_0xd8bd65)),void 0x0===_0x437d43&&(_0x437d43=0x0),_0x437d43>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3d2635=void 0x0===length?_0xd8bd65['len']:_0xd8bd65['pos']+length,_0x34d029=new $root['ChannelMessage']();_0xd8bd65['pos']<_0x3d2635;){var tag=_0xd8bd65['uint32']();if(tag===_0x27833c)break;switch(tag>>>0x3){case 0x1:_0x34d029['type']=_0xd8bd65['uint32']();break;case 0x2:_0x34d029['socketId']=_0xd8bd65['string']();break;case 0x3:_0x34d029['data']=_0xd8bd65['bytes']();break;default:_0xd8bd65['skipType'](0x7&tag,_0x437d43);}}return _0x34d029;},_0x1d517c['decodeDelimited']=function(_0x51e156){return _0x51e156 instanceof _0x470ccf||(_0x51e156=new _0x470ccf(_0x51e156)),this['decode'](_0x51e156,_0x51e156['uint32']());},_0x1d517c['verify']=function(_0x13769e,_0x18917e){return'object'!=typeof _0x13769e||null===_0x13769e?'object\x20expected':(void 0x0===_0x18917e&&(_0x18917e=0x0),_0x18917e>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x13769e['type']&&Object['hasOwnProperty']['call'](_0x13769e,'type')&&!$util['isInteger'](_0x13769e['type'])?'type:\x20integer\x20expected':null!=_0x13769e['socketId']&&Object['hasOwnProperty']['call'](_0x13769e,'socketId')&&!$util['isString'](_0x13769e['socketId'])?'socketId:\x20string\x20expected':null!=_0x13769e['data']&&Object['hasOwnProperty']['call'](_0x13769e,'data')&&!(_0x13769e['data']&&'number'==typeof _0x13769e['data']['length']||$util['isString'](_0x13769e['data']))?'data:\x20buffer\x20expected':null);},_0x1d517c['fromObject']=function(object,_0x16d61d){if(object instanceof $root['ChannelMessage'])return object;if(!$util['isObject'](object))throw TypeError('.ChannelMessage:\x20object\x20expected');if(void 0x0===_0x16d61d&&(_0x16d61d=0x0),_0x16d61d>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x7a3661=new $root['ChannelMessage']();return null!=object['type']&&(_0x7a3661['type']=object['type']>>>0x0),null!=object['socketId']&&(_0x7a3661['socketId']=String(object['socketId'])),null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x7a3661['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x7a3661['data']=object['data'])),_0x7a3661;},_0x1d517c['toObject']=function(_0x426429,options,_0x4c019a){if(options||(options={}),void 0x0===_0x4c019a&&(_0x4c019a=0x0),_0x4c019a>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');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!=_0x426429['type']&&Object['hasOwnProperty']['call'](_0x426429,'type')&&(object['type']=_0x426429['type']),null!=_0x426429['socketId']&&Object['hasOwnProperty']['call'](_0x426429,'socketId')&&(object['socketId']=_0x426429['socketId']),null!=_0x426429['data']&&Object['hasOwnProperty']['call'](_0x426429,'data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x426429['data'],0x0,_0x426429['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x426429['data']):_0x426429['data']),object;},_0x1d517c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},_0x1d517c['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ChannelMessage';},_0x1d517c;}()),$root['ChannelDisconnectedMessage']=(function(){function ChannelDisconnectedMessage(properties){if(properties){for(var _0x2d9534=Object['keys'](properties),_0x7c005d=0x0;_0x7c005d<_0x2d9534['length'];++_0x7c005d)null!=properties[_0x2d9534[_0x7c005d]]&&'__proto__'!==_0x2d9534[_0x7c005d]&&(this[_0x2d9534[_0x7c005d]]=properties[_0x2d9534[_0x7c005d]]);}}return ChannelDisconnectedMessage['create']=function(properties){return new ChannelDisconnectedMessage(properties);},ChannelDisconnectedMessage['encode']=function(_0x12084c,writer,_0x4a4102){if(writer||(writer=$Writer['create']()),void 0x0===_0x4a4102&&(_0x4a4102=0x0),_0x4a4102>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return writer;},ChannelDisconnectedMessage['encodeDelimited']=function(_0x22017d,writer){return this['encode'](_0x22017d,writer)['ldelim']();},ChannelDisconnectedMessage['decode']=function(_0x234117,length,_0x106f16,_0x4b17b1){if(_0x234117 instanceof _0x470ccf||(_0x234117=_0x470ccf['create'](_0x234117)),void 0x0===_0x4b17b1&&(_0x4b17b1=0x0),_0x4b17b1>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3ec8ce=void 0x0===length?_0x234117['len']:_0x234117['pos']+length,_0x19c7af=new $root['ChannelDisconnectedMessage']();_0x234117['pos']<_0x3ec8ce;){var tag=_0x234117['uint32']();if(tag===_0x106f16)break;_0x234117['skipType'](0x7&tag,_0x4b17b1);}return _0x19c7af;},ChannelDisconnectedMessage['decodeDelimited']=function(_0x3483b5){return _0x3483b5 instanceof _0x470ccf||(_0x3483b5=new _0x470ccf(_0x3483b5)),this['decode'](_0x3483b5,_0x3483b5['uint32']());},ChannelDisconnectedMessage['verify']=function(_0x2666ae,_0x14d83e){return'object'!=typeof _0x2666ae||null===_0x2666ae?'object\x20expected':(void 0x0===_0x14d83e&&(_0x14d83e=0x0),_0x14d83e>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null);},ChannelDisconnectedMessage['fromObject']=function(object,_0x205b3a){return object instanceof $root['ChannelDisconnectedMessage']?object:new $root['ChannelDisconnectedMessage']();},ChannelDisconnectedMessage['toObject']=function(){return{};},ChannelDisconnectedMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},ChannelDisconnectedMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ChannelDisconnectedMessage';},ChannelDisconnectedMessage;}()),$root['GetUserResponse']=(function(){function GetUserResponse(properties){if(this['attributes']=[],properties){for(var _0x546048=Object['keys'](properties),_0x30b83d=0x0;_0x30b83d<_0x546048['length'];++_0x30b83d)null!=properties[_0x546048[_0x30b83d]]&&'__proto__'!==_0x546048[_0x30b83d]&&(this[_0x546048[_0x30b83d]]=properties[_0x546048[_0x30b83d]]);}}return GetUserResponse['prototype']['attributes']=$util['emptyArray'],GetUserResponse['create']=function(properties){return new GetUserResponse(properties);},GetUserResponse['encode']=function(_0x18b61f,writer,_0x4ad16e){if(writer||(writer=$Writer['create']()),void 0x0===_0x4ad16e&&(_0x4ad16e=0x0),_0x4ad16e>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x18b61f['attributes']&&_0x18b61f['attributes']['length']){for(var _0x1fc769=0x0;_0x1fc769<_0x18b61f['attributes']['length'];++_0x1fc769)$root['KeyValueDescriptor']['encode'](_0x18b61f['attributes'][_0x1fc769],writer['uint32'](0xa)['fork'](),_0x4ad16e+0x1)['ldelim']();}return writer;},GetUserResponse['encodeDelimited']=function(_0x46d554,writer){return this['encode'](_0x46d554,writer)['ldelim']();},GetUserResponse['decode']=function(_0x43b8c5,length,_0x166461,_0x63a52f){if(_0x43b8c5 instanceof _0x470ccf||(_0x43b8c5=_0x470ccf['create'](_0x43b8c5)),void 0x0===_0x63a52f&&(_0x63a52f=0x0),_0x63a52f>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x726064=void 0x0===length?_0x43b8c5['len']:_0x43b8c5['pos']+length,_0x2b080d=new $root['GetUserResponse']();_0x43b8c5['pos']<_0x726064;){var tag=_0x43b8c5['uint32']();if(tag===_0x166461)break;if(tag>>>0x3==0x1)_0x2b080d['attributes']&&_0x2b080d['attributes']['length']||(_0x2b080d['attributes']=[]),_0x2b080d['attributes']['push']($root['KeyValueDescriptor']['decode'](_0x43b8c5,_0x43b8c5['uint32'](),void 0x0,_0x63a52f+0x1));else _0x43b8c5['skipType'](0x7&tag,_0x63a52f);}return _0x2b080d;},GetUserResponse['decodeDelimited']=function(_0x45ac20){return _0x45ac20 instanceof _0x470ccf||(_0x45ac20=new _0x470ccf(_0x45ac20)),this['decode'](_0x45ac20,_0x45ac20['uint32']());},GetUserResponse['verify']=function(_0xa77091,_0x2d8f59){if('object'!=typeof _0xa77091||null===_0xa77091)return'object\x20expected';if(void 0x0===_0x2d8f59&&(_0x2d8f59=0x0),_0x2d8f59>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0xa77091['attributes']&&Object['hasOwnProperty']['call'](_0xa77091,'attributes')){if(!Array['isArray'](_0xa77091['attributes']))return'attributes:\x20array\x20expected';for(var _0xdb5580=0x0;_0xdb5580<_0xa77091['attributes']['length'];++_0xdb5580){var _0x325f75=$root['KeyValueDescriptor']['verify'](_0xa77091['attributes'][_0xdb5580],_0x2d8f59+0x1);if(_0x325f75)return'attributes.'+_0x325f75;}}return null;},GetUserResponse['fromObject']=function(object,_0xd6ee76){if(object instanceof $root['GetUserResponse'])return object;if(!$util['isObject'](object))throw TypeError('.GetUserResponse:\x20object\x20expected');if(void 0x0===_0xd6ee76&&(_0xd6ee76=0x0),_0xd6ee76>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x114532=new $root['GetUserResponse']();if(object['attributes']){if(!Array['isArray'](object['attributes']))throw TypeError('.GetUserResponse.attributes:\x20array\x20expected');_0x114532['attributes']=[];for(var _0x4578c2=0x0;_0x4578c2<object['attributes']['length'];++_0x4578c2){if(!$util['isObject'](object['attributes'][_0x4578c2]))throw TypeError('.GetUserResponse.attributes:\x20object\x20expected');_0x114532['attributes'][_0x4578c2]=$root['KeyValueDescriptor']['fromObject'](object['attributes'][_0x4578c2],_0xd6ee76+0x1);}}return _0x114532;},GetUserResponse['toObject']=function(_0x44bf5e,options,_0x334ed3){if(options||(options={}),void 0x0===_0x334ed3&&(_0x334ed3=0x0),_0x334ed3>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['attributes']=[]),_0x44bf5e['attributes']&&_0x44bf5e['attributes']['length']){object['attributes']=[];for(var _0x2a1014=0x0;_0x2a1014<_0x44bf5e['attributes']['length'];++_0x2a1014)object['attributes'][_0x2a1014]=$root['KeyValueDescriptor']['toObject'](_0x44bf5e['attributes'][_0x2a1014],options,_0x334ed3+0x1);}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 _0x2f4ac3=Object['keys'](properties),_0x3f4639=0x0;_0x3f4639<_0x2f4ac3['length'];++_0x3f4639)null!=properties[_0x2f4ac3[_0x3f4639]]&&'__proto__'!==_0x2f4ac3[_0x3f4639]&&(this[_0x2f4ac3[_0x3f4639]]=properties[_0x2f4ac3[_0x3f4639]]);}}return GetManyUsersResponse['prototype']['users']=$util['emptyArray'],GetManyUsersResponse['create']=function(properties){return new GetManyUsersResponse(properties);},GetManyUsersResponse['encode']=function(_0x5c66b6,writer,_0x4a585f){if(writer||(writer=$Writer['create']()),void 0x0===_0x4a585f&&(_0x4a585f=0x0),_0x4a585f>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x5c66b6['users']&&_0x5c66b6['users']['length']){for(var _0x13ba12=0x0;_0x13ba12<_0x5c66b6['users']['length'];++_0x13ba12)$root['UserDescriptor']['encode'](_0x5c66b6['users'][_0x13ba12],writer['uint32'](0xa)['fork'](),_0x4a585f+0x1)['ldelim']();}return writer;},GetManyUsersResponse['encodeDelimited']=function(_0x4405bf,writer){return this['encode'](_0x4405bf,writer)['ldelim']();},GetManyUsersResponse['decode']=function(_0x7e641,length,_0x5d5d0d,_0x3e55a9){if(_0x7e641 instanceof _0x470ccf||(_0x7e641=_0x470ccf['create'](_0x7e641)),void 0x0===_0x3e55a9&&(_0x3e55a9=0x0),_0x3e55a9>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x240a8f=void 0x0===length?_0x7e641['len']:_0x7e641['pos']+length,_0xa61d11=new $root['GetManyUsersResponse']();_0x7e641['pos']<_0x240a8f;){var tag=_0x7e641['uint32']();if(tag===_0x5d5d0d)break;if(tag>>>0x3==0x1)_0xa61d11['users']&&_0xa61d11['users']['length']||(_0xa61d11['users']=[]),_0xa61d11['users']['push']($root['UserDescriptor']['decode'](_0x7e641,_0x7e641['uint32'](),void 0x0,_0x3e55a9+0x1));else _0x7e641['skipType'](0x7&tag,_0x3e55a9);}return _0xa61d11;},GetManyUsersResponse['decodeDelimited']=function(_0xdd2fef){return _0xdd2fef instanceof _0x470ccf||(_0xdd2fef=new _0x470ccf(_0xdd2fef)),this['decode'](_0xdd2fef,_0xdd2fef['uint32']());},GetManyUsersResponse['verify']=function(_0x568f63,_0x31cc07){if('object'!=typeof _0x568f63||null===_0x568f63)return'object\x20expected';if(void 0x0===_0x31cc07&&(_0x31cc07=0x0),_0x31cc07>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x568f63['users']&&Object['hasOwnProperty']['call'](_0x568f63,'users')){if(!Array['isArray'](_0x568f63['users']))return'users:\x20array\x20expected';for(var _0x3b24ec=0x0;_0x3b24ec<_0x568f63['users']['length'];++_0x3b24ec){var _0x1510a8=$root['UserDescriptor']['verify'](_0x568f63['users'][_0x3b24ec],_0x31cc07+0x1);if(_0x1510a8)return'users.'+_0x1510a8;}}return null;},GetManyUsersResponse['fromObject']=function(object,_0x1eec01){if(object instanceof $root['GetManyUsersResponse'])return object;if(!$util['isObject'](object))throw TypeError('.GetManyUsersResponse:\x20object\x20expected');if(void 0x0===_0x1eec01&&(_0x1eec01=0x0),_0x1eec01>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x30c634=new $root['GetManyUsersResponse']();if(object['users']){if(!Array['isArray'](object['users']))throw TypeError('.GetManyUsersResponse.users:\x20array\x20expected');_0x30c634['users']=[];for(var _0x4f339c=0x0;_0x4f339c<object['users']['length'];++_0x4f339c){if(!$util['isObject'](object['users'][_0x4f339c]))throw TypeError('.GetManyUsersResponse.users:\x20object\x20expected');_0x30c634['users'][_0x4f339c]=$root['UserDescriptor']['fromObject'](object['users'][_0x4f339c],_0x1eec01+0x1);}}return _0x30c634;},GetManyUsersResponse['toObject']=function(_0x9d51c4,options,_0x963955){if(options||(options={}),void 0x0===_0x963955&&(_0x963955=0x0),_0x963955>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['users']=[]),_0x9d51c4['users']&&_0x9d51c4['users']['length']){object['users']=[];for(var _0x4d276a=0x0;_0x4d276a<_0x9d51c4['users']['length'];++_0x4d276a)object['users'][_0x4d276a]=$root['UserDescriptor']['toObject'](_0x9d51c4['users'][_0x4d276a],options,_0x963955+0x1);}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 _0x2902ea=Object['keys'](properties),_0x37f995=0x0;_0x37f995<_0x2902ea['length'];++_0x37f995)null!=properties[_0x2902ea[_0x37f995]]&&'__proto__'!==_0x2902ea[_0x37f995]&&(this[_0x2902ea[_0x37f995]]=properties[_0x2902ea[_0x37f995]]);}}return GetUserMessage['prototype']['id']='',GetUserMessage['create']=function(properties){return new GetUserMessage(properties);},GetUserMessage['encode']=function(_0xb5881,writer,_0x24f560){if(writer||(writer=$Writer['create']()),void 0x0===_0x24f560&&(_0x24f560=0x0),_0x24f560>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0xb5881['id']&&Object['hasOwnProperty']['call'](_0xb5881,'id')&&writer['uint32'](0xa)['string'](_0xb5881['id']),writer;},GetUserMessage['encodeDelimited']=function(_0x5a04fc,writer){return this['encode'](_0x5a04fc,writer)['ldelim']();},GetUserMessage['decode']=function(_0x2a90a3,length,_0x4b76fd,_0x1eaa8e){if(_0x2a90a3 instanceof _0x470ccf||(_0x2a90a3=_0x470ccf['create'](_0x2a90a3)),void 0x0===_0x1eaa8e&&(_0x1eaa8e=0x0),_0x1eaa8e>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x21912a=void 0x0===length?_0x2a90a3['len']:_0x2a90a3['pos']+length,_0x409b0a=new $root['GetUserMessage']();_0x2a90a3['pos']<_0x21912a;){var tag=_0x2a90a3['uint32']();if(tag===_0x4b76fd)break;if(tag>>>0x3==0x1)_0x409b0a['id']=_0x2a90a3['string']();else _0x2a90a3['skipType'](0x7&tag,_0x1eaa8e);}return _0x409b0a;},GetUserMessage['decodeDelimited']=function(_0x564188){return _0x564188 instanceof _0x470ccf||(_0x564188=new _0x470ccf(_0x564188)),this['decode'](_0x564188,_0x564188['uint32']());},GetUserMessage['verify']=function(_0x3293b2,_0x261e93){return'object'!=typeof _0x3293b2||null===_0x3293b2?'object\x20expected':(void 0x0===_0x261e93&&(_0x261e93=0x0),_0x261e93>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3293b2['id']&&Object['hasOwnProperty']['call'](_0x3293b2,'id')&&!$util['isString'](_0x3293b2['id'])?'id:\x20string\x20expected':null);},GetUserMessage['fromObject']=function(object,_0x1dfb63){if(object instanceof $root['GetUserMessage'])return object;if(!$util['isObject'](object))throw TypeError('.GetUserMessage:\x20object\x20expected');if(void 0x0===_0x1dfb63&&(_0x1dfb63=0x0),_0x1dfb63>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2b6bb2=new $root['GetUserMessage']();return null!=object['id']&&(_0x2b6bb2['id']=String(object['id'])),_0x2b6bb2;},GetUserMessage['toObject']=function(_0x296c32,options,_0x4318c0){if(options||(options={}),void 0x0===_0x4318c0&&(_0x4318c0=0x0),_0x4318c0>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['id']=''),null!=_0x296c32['id']&&Object['hasOwnProperty']['call'](_0x296c32,'id')&&(object['id']=_0x296c32['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 _0x59f760=Object['keys'](properties),_0x381822=0x0;_0x381822<_0x59f760['length'];++_0x381822)null!=properties[_0x59f760[_0x381822]]&&'__proto__'!==_0x59f760[_0x381822]&&(this[_0x59f760[_0x381822]]=properties[_0x59f760[_0x381822]]);}}return GetManyUsersMessage['prototype']['ids']=$util['emptyArray'],GetManyUsersMessage['create']=function(properties){return new GetManyUsersMessage(properties);},GetManyUsersMessage['encode']=function(_0x1986fd,writer,_0x4799a6){if(writer||(writer=$Writer['create']()),void 0x0===_0x4799a6&&(_0x4799a6=0x0),_0x4799a6>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x1986fd['ids']&&_0x1986fd['ids']['length']){for(var _0x4c4bd9=0x0;_0x4c4bd9<_0x1986fd['ids']['length'];++_0x4c4bd9)writer['uint32'](0xa)['string'](_0x1986fd['ids'][_0x4c4bd9]);}return writer;},GetManyUsersMessage['encodeDelimited']=function(_0x26fa8b,writer){return this['encode'](_0x26fa8b,writer)['ldelim']();},GetManyUsersMessage['decode']=function(_0x4d7683,length,_0x39b519,_0x36afd2){if(_0x4d7683 instanceof _0x470ccf||(_0x4d7683=_0x470ccf['create'](_0x4d7683)),void 0x0===_0x36afd2&&(_0x36afd2=0x0),_0x36afd2>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2e2205=void 0x0===length?_0x4d7683['len']:_0x4d7683['pos']+length,_0x57c978=new $root['GetManyUsersMessage']();_0x4d7683['pos']<_0x2e2205;){var tag=_0x4d7683['uint32']();if(tag===_0x39b519)break;if(tag>>>0x3==0x1)_0x57c978['ids']&&_0x57c978['ids']['length']||(_0x57c978['ids']=[]),_0x57c978['ids']['push'](_0x4d7683['string']());else _0x4d7683['skipType'](0x7&tag,_0x36afd2);}return _0x57c978;},GetManyUsersMessage['decodeDelimited']=function(_0x39255d){return _0x39255d instanceof _0x470ccf||(_0x39255d=new _0x470ccf(_0x39255d)),this['decode'](_0x39255d,_0x39255d['uint32']());},GetManyUsersMessage['verify']=function(_0x2a98c6,_0x35a596){if('object'!=typeof _0x2a98c6||null===_0x2a98c6)return'object\x20expected';if(void 0x0===_0x35a596&&(_0x35a596=0x0),_0x35a596>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x2a98c6['ids']&&Object['hasOwnProperty']['call'](_0x2a98c6,'ids')){if(!Array['isArray'](_0x2a98c6['ids']))return'ids:\x20array\x20expected';for(var _0x273c3b=0x0;_0x273c3b<_0x2a98c6['ids']['length'];++_0x273c3b)if(!$util['isString'](_0x2a98c6['ids'][_0x273c3b]))return'ids:\x20string[]\x20expected';}return null;},GetManyUsersMessage['fromObject']=function(object,_0x18e047){if(object instanceof $root['GetManyUsersMessage'])return object;if(!$util['isObject'](object))throw TypeError('.GetManyUsersMessage:\x20object\x20expected');if(void 0x0===_0x18e047&&(_0x18e047=0x0),_0x18e047>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5ed528=new $root['GetManyUsersMessage']();if(object['ids']){if(!Array['isArray'](object['ids']))throw TypeError('.GetManyUsersMessage.ids:\x20array\x20expected');_0x5ed528['ids']=[];for(var _0x379826=0x0;_0x379826<object['ids']['length'];++_0x379826)_0x5ed528['ids'][_0x379826]=String(object['ids'][_0x379826]);}return _0x5ed528;},GetManyUsersMessage['toObject']=function(_0x10d4b4,options,_0x1dd233){if(options||(options={}),void 0x0===_0x1dd233&&(_0x1dd233=0x0),_0x1dd233>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['ids']=[]),_0x10d4b4['ids']&&_0x10d4b4['ids']['length']){object['ids']=[];for(var _0x5d91b4=0x0;_0x5d91b4<_0x10d4b4['ids']['length'];++_0x5d91b4)object['ids'][_0x5d91b4]=_0x10d4b4['ids'][_0x5d91b4];}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 _0x12909a=Object['keys'](properties),_0x393bc6=0x0;_0x393bc6<_0x12909a['length'];++_0x393bc6)null!=properties[_0x12909a[_0x393bc6]]&&'__proto__'!==_0x12909a[_0x393bc6]&&(this[_0x12909a[_0x393bc6]]=properties[_0x12909a[_0x393bc6]]);}}return UserDescriptor['prototype']['attributes']=$util['emptyArray'],UserDescriptor['create']=function(properties){return new UserDescriptor(properties);},UserDescriptor['encode']=function(_0x1e3799,writer,_0x20912b){if(writer||(writer=$Writer['create']()),void 0x0===_0x20912b&&(_0x20912b=0x0),_0x20912b>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x1e3799['attributes']&&_0x1e3799['attributes']['length']){for(var _0x2aadd8=0x0;_0x2aadd8<_0x1e3799['attributes']['length'];++_0x2aadd8)$root['KeyValueDescriptor']['encode'](_0x1e3799['attributes'][_0x2aadd8],writer['uint32'](0xa)['fork'](),_0x20912b+0x1)['ldelim']();}return writer;},UserDescriptor['encodeDelimited']=function(_0x3f1f3d,writer){return this['encode'](_0x3f1f3d,writer)['ldelim']();},UserDescriptor['decode']=function(_0x50ab3,length,_0x3704a0,_0x4853c1){if(_0x50ab3 instanceof _0x470ccf||(_0x50ab3=_0x470ccf['create'](_0x50ab3)),void 0x0===_0x4853c1&&(_0x4853c1=0x0),_0x4853c1>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x27633b=void 0x0===length?_0x50ab3['len']:_0x50ab3['pos']+length,_0x219f7b=new $root['UserDescriptor']();_0x50ab3['pos']<_0x27633b;){var tag=_0x50ab3['uint32']();if(tag===_0x3704a0)break;if(tag>>>0x3==0x1)_0x219f7b['attributes']&&_0x219f7b['attributes']['length']||(_0x219f7b['attributes']=[]),_0x219f7b['attributes']['push']($root['KeyValueDescriptor']['decode'](_0x50ab3,_0x50ab3['uint32'](),void 0x0,_0x4853c1+0x1));else _0x50ab3['skipType'](0x7&tag,_0x4853c1);}return _0x219f7b;},UserDescriptor['decodeDelimited']=function(_0x464fe2){return _0x464fe2 instanceof _0x470ccf||(_0x464fe2=new _0x470ccf(_0x464fe2)),this['decode'](_0x464fe2,_0x464fe2['uint32']());},UserDescriptor['verify']=function(_0x489d37,_0x5f99b2){if('object'!=typeof _0x489d37||null===_0x489d37)return'object\x20expected';if(void 0x0===_0x5f99b2&&(_0x5f99b2=0x0),_0x5f99b2>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x489d37['attributes']&&Object['hasOwnProperty']['call'](_0x489d37,'attributes')){if(!Array['isArray'](_0x489d37['attributes']))return'attributes:\x20array\x20expected';for(var _0x10ca57=0x0;_0x10ca57<_0x489d37['attributes']['length'];++_0x10ca57){var _0x2f0aa5=$root['KeyValueDescriptor']['verify'](_0x489d37['attributes'][_0x10ca57],_0x5f99b2+0x1);if(_0x2f0aa5)return'attributes.'+_0x2f0aa5;}}return null;},UserDescriptor['fromObject']=function(object,_0x3dbf89){if(object instanceof $root['UserDescriptor'])return object;if(!$util['isObject'](object))throw TypeError('.UserDescriptor:\x20object\x20expected');if(void 0x0===_0x3dbf89&&(_0x3dbf89=0x0),_0x3dbf89>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x26c05a=new $root['UserDescriptor']();if(object['attributes']){if(!Array['isArray'](object['attributes']))throw TypeError('.UserDescriptor.attributes:\x20array\x20expected');_0x26c05a['attributes']=[];for(var _0x3d0323=0x0;_0x3d0323<object['attributes']['length'];++_0x3d0323){if(!$util['isObject'](object['attributes'][_0x3d0323]))throw TypeError('.UserDescriptor.attributes:\x20object\x20expected');_0x26c05a['attributes'][_0x3d0323]=$root['KeyValueDescriptor']['fromObject'](object['attributes'][_0x3d0323],_0x3dbf89+0x1);}}return _0x26c05a;},UserDescriptor['toObject']=function(_0xb33329,options,_0x550eed){if(options||(options={}),void 0x0===_0x550eed&&(_0x550eed=0x0),_0x550eed>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['attributes']=[]),_0xb33329['attributes']&&_0xb33329['attributes']['length']){object['attributes']=[];for(var _0x1272ef=0x0;_0x1272ef<_0xb33329['attributes']['length'];++_0x1272ef)object['attributes'][_0x1272ef]=$root['KeyValueDescriptor']['toObject'](_0xb33329['attributes'][_0x1272ef],options,_0x550eed+0x1);}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 _0x23c8de=Object['keys'](properties),_0x304692=0x0;_0x304692<_0x23c8de['length'];++_0x304692)null!=properties[_0x23c8de[_0x304692]]&&'__proto__'!==_0x23c8de[_0x304692]&&(this[_0x23c8de[_0x304692]]=properties[_0x23c8de[_0x304692]]);}}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(_0x5d3804,writer,_0x535d91){if(writer||(writer=$Writer['create']()),void 0x0===_0x535d91&&(_0x535d91=0x0),_0x535d91>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x5d3804['id']&&Object['hasOwnProperty']['call'](_0x5d3804,'id')&&writer['uint32'](0xa)['string'](_0x5d3804['id']),null!=_0x5d3804['authorId']&&Object['hasOwnProperty']['call'](_0x5d3804,'authorId')&&writer['uint32'](0x12)['string'](_0x5d3804['authorId']),null!=_0x5d3804['type']&&Object['hasOwnProperty']['call'](_0x5d3804,'type')&&writer['uint32'](0x1a)['string'](_0x5d3804['type']),null!=_0x5d3804['createdAt']&&Object['hasOwnProperty']['call'](_0x5d3804,'createdAt')&&writer['uint32'](0x22)['string'](_0x5d3804['createdAt']),null!=_0x5d3804['data']&&Object['hasOwnProperty']['call'](_0x5d3804,'data')&&writer['uint32'](0x2a)['string'](_0x5d3804['data']),null!=_0x5d3804['hasComments']&&Object['hasOwnProperty']['call'](_0x5d3804,'hasComments')&&writer['uint32'](0x30)['bool'](_0x5d3804['hasComments']),null!=_0x5d3804['state']&&Object['hasOwnProperty']['call'](_0x5d3804,'state')&&writer['uint32'](0x3a)['string'](_0x5d3804['state']),null!=_0x5d3804['attributes']&&Object['hasOwnProperty']['call'](_0x5d3804,'attributes')&&writer['uint32'](0x42)['string'](_0x5d3804['attributes']),writer;},TrackChangesGetSuggestionResponse['encodeDelimited']=function(_0x69f2c9,writer){return this['encode'](_0x69f2c9,writer)['ldelim']();},TrackChangesGetSuggestionResponse['decode']=function(_0x3e6b64,length,_0x70a81b,_0x345c45){if(_0x3e6b64 instanceof _0x470ccf||(_0x3e6b64=_0x470ccf['create'](_0x3e6b64)),void 0x0===_0x345c45&&(_0x345c45=0x0),_0x345c45>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x23eb7d=void 0x0===length?_0x3e6b64['len']:_0x3e6b64['pos']+length,_0xec4eb2=new $root['TrackChangesGetSuggestionResponse']();_0x3e6b64['pos']<_0x23eb7d;){var tag=_0x3e6b64['uint32']();if(tag===_0x70a81b)break;switch(tag>>>0x3){case 0x1:_0xec4eb2['id']=_0x3e6b64['string']();break;case 0x2:_0xec4eb2['authorId']=_0x3e6b64['string']();break;case 0x3:_0xec4eb2['type']=_0x3e6b64['string']();break;case 0x4:_0xec4eb2['createdAt']=_0x3e6b64['string']();break;case 0x5:_0xec4eb2['data']=_0x3e6b64['string']();break;case 0x6:_0xec4eb2['hasComments']=_0x3e6b64['bool']();break;case 0x7:_0xec4eb2['state']=_0x3e6b64['string']();break;case 0x8:_0xec4eb2['attributes']=_0x3e6b64['string']();break;default:_0x3e6b64['skipType'](0x7&tag,_0x345c45);}}return _0xec4eb2;},TrackChangesGetSuggestionResponse['decodeDelimited']=function(_0x59b8a7){return _0x59b8a7 instanceof _0x470ccf||(_0x59b8a7=new _0x470ccf(_0x59b8a7)),this['decode'](_0x59b8a7,_0x59b8a7['uint32']());},TrackChangesGetSuggestionResponse['verify']=function(_0x1d526d,_0x3fc3c1){return'object'!=typeof _0x1d526d||null===_0x1d526d?'object\x20expected':(void 0x0===_0x3fc3c1&&(_0x3fc3c1=0x0),_0x3fc3c1>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x1d526d['id']&&Object['hasOwnProperty']['call'](_0x1d526d,'id')&&!$util['isString'](_0x1d526d['id'])?'id:\x20string\x20expected':null!=_0x1d526d['authorId']&&Object['hasOwnProperty']['call'](_0x1d526d,'authorId')&&!$util['isString'](_0x1d526d['authorId'])?'authorId:\x20string\x20expected':null!=_0x1d526d['type']&&Object['hasOwnProperty']['call'](_0x1d526d,'type')&&!$util['isString'](_0x1d526d['type'])?'type:\x20string\x20expected':null!=_0x1d526d['createdAt']&&Object['hasOwnProperty']['call'](_0x1d526d,'createdAt')&&!$util['isString'](_0x1d526d['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x1d526d['data']&&Object['hasOwnProperty']['call'](_0x1d526d,'data')&&!$util['isString'](_0x1d526d['data'])?'data:\x20string\x20expected':null!=_0x1d526d['hasComments']&&Object['hasOwnProperty']['call'](_0x1d526d,'hasComments')&&'boolean'!=typeof _0x1d526d['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x1d526d['state']&&Object['hasOwnProperty']['call'](_0x1d526d,'state')&&!$util['isString'](_0x1d526d['state'])?'state:\x20string\x20expected':null!=_0x1d526d['attributes']&&Object['hasOwnProperty']['call'](_0x1d526d,'attributes')&&!$util['isString'](_0x1d526d['attributes'])?'attributes:\x20string\x20expected':null);},TrackChangesGetSuggestionResponse['fromObject']=function(object,_0x3814ea){if(object instanceof $root['TrackChangesGetSuggestionResponse'])return object;if(!$util['isObject'](object))throw TypeError('.TrackChangesGetSuggestionResponse:\x20object\x20expected');if(void 0x0===_0x3814ea&&(_0x3814ea=0x0),_0x3814ea>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xb8e45c=new $root['TrackChangesGetSuggestionResponse']();return null!=object['id']&&(_0xb8e45c['id']=String(object['id'])),null!=object['authorId']&&(_0xb8e45c['authorId']=String(object['authorId'])),null!=object['type']&&(_0xb8e45c['type']=String(object['type'])),null!=object['createdAt']&&(_0xb8e45c['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0xb8e45c['data']=String(object['data'])),null!=object['hasComments']&&(_0xb8e45c['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0xb8e45c['state']=String(object['state'])),null!=object['attributes']&&(_0xb8e45c['attributes']=String(object['attributes'])),_0xb8e45c;},TrackChangesGetSuggestionResponse['toObject']=function(_0x33a8fa,options,_0x4363f9){if(options||(options={}),void 0x0===_0x4363f9&&(_0x4363f9=0x0),_0x4363f9>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['id']='',object['authorId']='',object['type']='',object['createdAt']='',object['data']='',object['hasComments']=!0x1,object['state']='',object['attributes']=''),null!=_0x33a8fa['id']&&Object['hasOwnProperty']['call'](_0x33a8fa,'id')&&(object['id']=_0x33a8fa['id']),null!=_0x33a8fa['authorId']&&Object['hasOwnProperty']['call'](_0x33a8fa,'authorId')&&(object['authorId']=_0x33a8fa['authorId']),null!=_0x33a8fa['type']&&Object['hasOwnProperty']['call'](_0x33a8fa,'type')&&(object['type']=_0x33a8fa['type']),null!=_0x33a8fa['createdAt']&&Object['hasOwnProperty']['call'](_0x33a8fa,'createdAt')&&(object['createdAt']=_0x33a8fa['createdAt']),null!=_0x33a8fa['data']&&Object['hasOwnProperty']['call'](_0x33a8fa,'data')&&(object['data']=_0x33a8fa['data']),null!=_0x33a8fa['hasComments']&&Object['hasOwnProperty']['call'](_0x33a8fa,'hasComments')&&(object['hasComments']=_0x33a8fa['hasComments']),null!=_0x33a8fa['state']&&Object['hasOwnProperty']['call'](_0x33a8fa,'state')&&(object['state']=_0x33a8fa['state']),null!=_0x33a8fa['attributes']&&Object['hasOwnProperty']['call'](_0x33a8fa,'attributes')&&(object['attributes']=_0x33a8fa['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 _0x3d2192=Object['keys'](properties),_0x35b34e=0x0;_0x35b34e<_0x3d2192['length'];++_0x35b34e)null!=properties[_0x3d2192[_0x35b34e]]&&'__proto__'!==_0x3d2192[_0x35b34e]&&(this[_0x3d2192[_0x35b34e]]=properties[_0x3d2192[_0x35b34e]]);}}return TrackChangesGetAllSuggestionsResponse['prototype']['suggestions']=$util['emptyArray'],TrackChangesGetAllSuggestionsResponse['prototype']['suggestionsV2']=$util['emptyArray'],TrackChangesGetAllSuggestionsResponse['create']=function(properties){return new TrackChangesGetAllSuggestionsResponse(properties);},TrackChangesGetAllSuggestionsResponse['encode']=function(_0x32987b,writer,_0x1ab2e0){if(writer||(writer=$Writer['create']()),void 0x0===_0x1ab2e0&&(_0x1ab2e0=0x0),_0x1ab2e0>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x32987b['suggestions']&&_0x32987b['suggestions']['length']){for(var _0x598766=0x0;_0x598766<_0x32987b['suggestions']['length'];++_0x598766)writer['uint32'](0xa)['string'](_0x32987b['suggestions'][_0x598766]);}if(null!=_0x32987b['suggestionsV2']&&_0x32987b['suggestionsV2']['length']){for(_0x598766=0x0;_0x598766<_0x32987b['suggestionsV2']['length'];++_0x598766)$root['SuggestionDescriptor']['encode'](_0x32987b['suggestionsV2'][_0x598766],writer['uint32'](0x12)['fork'](),_0x1ab2e0+0x1)['ldelim']();}return writer;},TrackChangesGetAllSuggestionsResponse['encodeDelimited']=function(_0x223ced,writer){return this['encode'](_0x223ced,writer)['ldelim']();},TrackChangesGetAllSuggestionsResponse['decode']=function(_0x381342,length,_0x463cb1,_0x59d668){if(_0x381342 instanceof _0x470ccf||(_0x381342=_0x470ccf['create'](_0x381342)),void 0x0===_0x59d668&&(_0x59d668=0x0),_0x59d668>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1de998=void 0x0===length?_0x381342['len']:_0x381342['pos']+length,_0x15fe44=new $root['TrackChangesGetAllSuggestionsResponse']();_0x381342['pos']<_0x1de998;){var tag=_0x381342['uint32']();if(tag===_0x463cb1)break;switch(tag>>>0x3){case 0x1:_0x15fe44['suggestions']&&_0x15fe44['suggestions']['length']||(_0x15fe44['suggestions']=[]),_0x15fe44['suggestions']['push'](_0x381342['string']());break;case 0x2:_0x15fe44['suggestionsV2']&&_0x15fe44['suggestionsV2']['length']||(_0x15fe44['suggestionsV2']=[]),_0x15fe44['suggestionsV2']['push']($root['SuggestionDescriptor']['decode'](_0x381342,_0x381342['uint32'](),void 0x0,_0x59d668+0x1));break;default:_0x381342['skipType'](0x7&tag,_0x59d668);}}return _0x15fe44;},TrackChangesGetAllSuggestionsResponse['decodeDelimited']=function(_0x24906b){return _0x24906b instanceof _0x470ccf||(_0x24906b=new _0x470ccf(_0x24906b)),this['decode'](_0x24906b,_0x24906b['uint32']());},TrackChangesGetAllSuggestionsResponse['verify']=function(_0x47f4f0,_0x4f4f7f){if('object'!=typeof _0x47f4f0||null===_0x47f4f0)return'object\x20expected';if(void 0x0===_0x4f4f7f&&(_0x4f4f7f=0x0),_0x4f4f7f>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x47f4f0['suggestions']&&Object['hasOwnProperty']['call'](_0x47f4f0,'suggestions')){if(!Array['isArray'](_0x47f4f0['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x5e880b=0x0;_0x5e880b<_0x47f4f0['suggestions']['length'];++_0x5e880b)if(!$util['isString'](_0x47f4f0['suggestions'][_0x5e880b]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x47f4f0['suggestionsV2']&&Object['hasOwnProperty']['call'](_0x47f4f0,'suggestionsV2')){if(!Array['isArray'](_0x47f4f0['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x5e880b=0x0;_0x5e880b<_0x47f4f0['suggestionsV2']['length'];++_0x5e880b){var _0x728ed0=$root['SuggestionDescriptor']['verify'](_0x47f4f0['suggestionsV2'][_0x5e880b],_0x4f4f7f+0x1);if(_0x728ed0)return'suggestionsV2.'+_0x728ed0;}}return null;},TrackChangesGetAllSuggestionsResponse['fromObject']=function(object,_0x5e1d9f){if(object instanceof $root['TrackChangesGetAllSuggestionsResponse'])return object;if(!$util['isObject'](object))throw TypeError('.TrackChangesGetAllSuggestionsResponse:\x20object\x20expected');if(void 0x0===_0x5e1d9f&&(_0x5e1d9f=0x0),_0x5e1d9f>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x338fd6=new $root['TrackChangesGetAllSuggestionsResponse']();if(object['suggestions']){if(!Array['isArray'](object['suggestions']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestions:\x20array\x20expected');_0x338fd6['suggestions']=[];for(var _0x3b9574=0x0;_0x3b9574<object['suggestions']['length'];++_0x3b9574)_0x338fd6['suggestions'][_0x3b9574]=String(object['suggestions'][_0x3b9574]);}if(object['suggestionsV2']){if(!Array['isArray'](object['suggestionsV2']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20array\x20expected');_0x338fd6['suggestionsV2']=[];for(_0x3b9574=0x0;_0x3b9574<object['suggestionsV2']['length'];++_0x3b9574){if(!$util['isObject'](object['suggestionsV2'][_0x3b9574]))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20object\x20expected');_0x338fd6['suggestionsV2'][_0x3b9574]=$root['SuggestionDescriptor']['fromObject'](object['suggestionsV2'][_0x3b9574],_0x5e1d9f+0x1);}}return _0x338fd6;},TrackChangesGetAllSuggestionsResponse['toObject']=function(_0xba8391,options,_0x544bfd){if(options||(options={}),void 0x0===_0x544bfd&&(_0x544bfd=0x0),_0x544bfd>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['suggestions']=[],object['suggestionsV2']=[]),_0xba8391['suggestions']&&_0xba8391['suggestions']['length']){object['suggestions']=[];for(var _0x387209=0x0;_0x387209<_0xba8391['suggestions']['length'];++_0x387209)object['suggestions'][_0x387209]=_0xba8391['suggestions'][_0x387209];}if(_0xba8391['suggestionsV2']&&_0xba8391['suggestionsV2']['length']){object['suggestionsV2']=[];for(_0x387209=0x0;_0x387209<_0xba8391['suggestionsV2']['length'];++_0x387209)object['suggestionsV2'][_0x387209]=$root['SuggestionDescriptor']['toObject'](_0xba8391['suggestionsV2'][_0x387209],options,_0x544bfd+0x1);}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 _0x2c6ceb=Object['keys'](properties),_0x46cd90=0x0;_0x46cd90<_0x2c6ceb['length'];++_0x46cd90)null!=properties[_0x2c6ceb[_0x46cd90]]&&'__proto__'!==_0x2c6ceb[_0x46cd90]&&(this[_0x2c6ceb[_0x46cd90]]=properties[_0x2c6ceb[_0x46cd90]]);}}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(_0x49671e,writer,_0x592f08){if(writer||(writer=$Writer['create']()),void 0x0===_0x592f08&&(_0x592f08=0x0),_0x592f08>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x49671e['channel']&&Object['hasOwnProperty']['call'](_0x49671e,'channel')&&writer['uint32'](0xa)['string'](_0x49671e['channel']),null!=_0x49671e['suggestions']&&_0x49671e['suggestions']['length']){for(var _0x209551=0x0;_0x209551<_0x49671e['suggestions']['length'];++_0x209551)writer['uint32'](0x12)['string'](_0x49671e['suggestions'][_0x209551]);}if(null!=_0x49671e['suggestionsV2']&&_0x49671e['suggestionsV2']['length']){for(_0x209551=0x0;_0x209551<_0x49671e['suggestionsV2']['length'];++_0x209551)$root['SuggestionDescriptor']['encode'](_0x49671e['suggestionsV2'][_0x209551],writer['uint32'](0x1a)['fork'](),_0x592f08+0x1)['ldelim']();}return writer;},TrackChangesConnectResponse['encodeDelimited']=function(_0x3dd971,writer){return this['encode'](_0x3dd971,writer)['ldelim']();},TrackChangesConnectResponse['decode']=function(_0x352586,length,_0x5c83d6,_0x3d74c5){if(_0x352586 instanceof _0x470ccf||(_0x352586=_0x470ccf['create'](_0x352586)),void 0x0===_0x3d74c5&&(_0x3d74c5=0x0),_0x3d74c5>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x18f48d=void 0x0===length?_0x352586['len']:_0x352586['pos']+length,_0x5660b4=new $root['TrackChangesConnectResponse']();_0x352586['pos']<_0x18f48d;){var tag=_0x352586['uint32']();if(tag===_0x5c83d6)break;switch(tag>>>0x3){case 0x1:_0x5660b4['channel']=_0x352586['string']();break;case 0x2:_0x5660b4['suggestions']&&_0x5660b4['suggestions']['length']||(_0x5660b4['suggestions']=[]),_0x5660b4['suggestions']['push'](_0x352586['string']());break;case 0x3:_0x5660b4['suggestionsV2']&&_0x5660b4['suggestionsV2']['length']||(_0x5660b4['suggestionsV2']=[]),_0x5660b4['suggestionsV2']['push']($root['SuggestionDescriptor']['decode'](_0x352586,_0x352586['uint32'](),void 0x0,_0x3d74c5+0x1));break;default:_0x352586['skipType'](0x7&tag,_0x3d74c5);}}return _0x5660b4;},TrackChangesConnectResponse['decodeDelimited']=function(_0x210125){return _0x210125 instanceof _0x470ccf||(_0x210125=new _0x470ccf(_0x210125)),this['decode'](_0x210125,_0x210125['uint32']());},TrackChangesConnectResponse['verify']=function(_0x5c48c2,_0x49a2f9){if('object'!=typeof _0x5c48c2||null===_0x5c48c2)return'object\x20expected';if(void 0x0===_0x49a2f9&&(_0x49a2f9=0x0),_0x49a2f9>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x5c48c2['channel']&&Object['hasOwnProperty']['call'](_0x5c48c2,'channel')&&!$util['isString'](_0x5c48c2['channel']))return'channel:\x20string\x20expected';if(null!=_0x5c48c2['suggestions']&&Object['hasOwnProperty']['call'](_0x5c48c2,'suggestions')){if(!Array['isArray'](_0x5c48c2['suggestions']))return'suggestions:\x20array\x20expected';for(var _0xa641ff=0x0;_0xa641ff<_0x5c48c2['suggestions']['length'];++_0xa641ff)if(!$util['isString'](_0x5c48c2['suggestions'][_0xa641ff]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x5c48c2['suggestionsV2']&&Object['hasOwnProperty']['call'](_0x5c48c2,'suggestionsV2')){if(!Array['isArray'](_0x5c48c2['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0xa641ff=0x0;_0xa641ff<_0x5c48c2['suggestionsV2']['length'];++_0xa641ff){var _0x40cd2b=$root['SuggestionDescriptor']['verify'](_0x5c48c2['suggestionsV2'][_0xa641ff],_0x49a2f9+0x1);if(_0x40cd2b)return'suggestionsV2.'+_0x40cd2b;}}return null;},TrackChangesConnectResponse['fromObject']=function(object,_0x22e007){if(object instanceof $root['TrackChangesConnectResponse'])return object;if(!$util['isObject'](object))throw TypeError('.TrackChangesConnectResponse:\x20object\x20expected');if(void 0x0===_0x22e007&&(_0x22e007=0x0),_0x22e007>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x462230=new $root['TrackChangesConnectResponse']();if(null!=object['channel']&&(_0x462230['channel']=String(object['channel'])),object['suggestions']){if(!Array['isArray'](object['suggestions']))throw TypeError('.TrackChangesConnectResponse.suggestions:\x20array\x20expected');_0x462230['suggestions']=[];for(var _0x5d73a1=0x0;_0x5d73a1<object['suggestions']['length'];++_0x5d73a1)_0x462230['suggestions'][_0x5d73a1]=String(object['suggestions'][_0x5d73a1]);}if(object['suggestionsV2']){if(!Array['isArray'](object['suggestionsV2']))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20array\x20expected');_0x462230['suggestionsV2']=[];for(_0x5d73a1=0x0;_0x5d73a1<object['suggestionsV2']['length'];++_0x5d73a1){if(!$util['isObject'](object['suggestionsV2'][_0x5d73a1]))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20object\x20expected');_0x462230['suggestionsV2'][_0x5d73a1]=$root['SuggestionDescriptor']['fromObject'](object['suggestionsV2'][_0x5d73a1],_0x22e007+0x1);}}return _0x462230;},TrackChangesConnectResponse['toObject']=function(_0x18746e,options,_0x3ca4b7){if(options||(options={}),void 0x0===_0x3ca4b7&&(_0x3ca4b7=0x0),_0x3ca4b7>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['suggestions']=[],object['suggestionsV2']=[]),options['defaults']&&(object['channel']=''),null!=_0x18746e['channel']&&Object['hasOwnProperty']['call'](_0x18746e,'channel')&&(object['channel']=_0x18746e['channel']),_0x18746e['suggestions']&&_0x18746e['suggestions']['length']){object['suggestions']=[];for(var _0x48d5b0=0x0;_0x48d5b0<_0x18746e['suggestions']['length'];++_0x48d5b0)object['suggestions'][_0x48d5b0]=_0x18746e['suggestions'][_0x48d5b0];}if(_0x18746e['suggestionsV2']&&_0x18746e['suggestionsV2']['length']){object['suggestionsV2']=[];for(_0x48d5b0=0x0;_0x48d5b0<_0x18746e['suggestionsV2']['length'];++_0x48d5b0)object['suggestionsV2'][_0x48d5b0]=$root['SuggestionDescriptor']['toObject'](_0x18746e['suggestionsV2'][_0x48d5b0],options,_0x3ca4b7+0x1);}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 _0x4ead61=Object['keys'](properties),_0x23bbeb=0x0;_0x23bbeb<_0x4ead61['length'];++_0x23bbeb)null!=properties[_0x4ead61[_0x23bbeb]]&&'__proto__'!==_0x4ead61[_0x23bbeb]&&(this[_0x4ead61[_0x23bbeb]]=properties[_0x4ead61[_0x23bbeb]]);}}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(_0x2a32f1,writer,_0x3f0407){if(writer||(writer=$Writer['create']()),void 0x0===_0x3f0407&&(_0x3f0407=0x0),_0x3f0407>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x2a32f1['id']&&Object['hasOwnProperty']['call'](_0x2a32f1,'id')&&writer['uint32'](0xa)['string'](_0x2a32f1['id']),null!=_0x2a32f1['authorId']&&Object['hasOwnProperty']['call'](_0x2a32f1,'authorId')&&writer['uint32'](0x12)['string'](_0x2a32f1['authorId']),null!=_0x2a32f1['type']&&Object['hasOwnProperty']['call'](_0x2a32f1,'type')&&writer['uint32'](0x1a)['string'](_0x2a32f1['type']),null!=_0x2a32f1['createdAt']&&Object['hasOwnProperty']['call'](_0x2a32f1,'createdAt')&&writer['uint32'](0x22)['string'](_0x2a32f1['createdAt']),null!=_0x2a32f1['data']&&Object['hasOwnProperty']['call'](_0x2a32f1,'data')&&writer['uint32'](0x2a)['string'](_0x2a32f1['data']),null!=_0x2a32f1['hasComments']&&Object['hasOwnProperty']['call'](_0x2a32f1,'hasComments')&&writer['uint32'](0x30)['bool'](_0x2a32f1['hasComments']),null!=_0x2a32f1['state']&&Object['hasOwnProperty']['call'](_0x2a32f1,'state')&&writer['uint32'](0x3a)['string'](_0x2a32f1['state']),null!=_0x2a32f1['attributes']&&Object['hasOwnProperty']['call'](_0x2a32f1,'attributes')&&writer['uint32'](0x42)['string'](_0x2a32f1['attributes']),writer;},TrackChangesAddSuggestionResponse['encodeDelimited']=function(_0x532e45,writer){return this['encode'](_0x532e45,writer)['ldelim']();},TrackChangesAddSuggestionResponse['decode']=function(_0xad4492,length,_0x2875c6,_0x204794){if(_0xad4492 instanceof _0x470ccf||(_0xad4492=_0x470ccf['create'](_0xad4492)),void 0x0===_0x204794&&(_0x204794=0x0),_0x204794>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xd836ca=void 0x0===length?_0xad4492['len']:_0xad4492['pos']+length,_0x32395e=new $root['TrackChangesAddSuggestionResponse']();_0xad4492['pos']<_0xd836ca;){var tag=_0xad4492['uint32']();if(tag===_0x2875c6)break;switch(tag>>>0x3){case 0x1:_0x32395e['id']=_0xad4492['string']();break;case 0x2:_0x32395e['authorId']=_0xad4492['string']();break;case 0x3:_0x32395e['type']=_0xad4492['string']();break;case 0x4:_0x32395e['createdAt']=_0xad4492['string']();break;case 0x5:_0x32395e['data']=_0xad4492['string']();break;case 0x6:_0x32395e['hasComments']=_0xad4492['bool']();break;case 0x7:_0x32395e['state']=_0xad4492['string']();break;case 0x8:_0x32395e['attributes']=_0xad4492['string']();break;default:_0xad4492['skipType'](0x7&tag,_0x204794);}}return _0x32395e;},TrackChangesAddSuggestionResponse['decodeDelimited']=function(_0x4a2623){return _0x4a2623 instanceof _0x470ccf||(_0x4a2623=new _0x470ccf(_0x4a2623)),this['decode'](_0x4a2623,_0x4a2623['uint32']());},TrackChangesAddSuggestionResponse['verify']=function(_0x4d463e,_0x14458b){return'object'!=typeof _0x4d463e||null===_0x4d463e?'object\x20expected':(void 0x0===_0x14458b&&(_0x14458b=0x0),_0x14458b>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x4d463e['id']&&Object['hasOwnProperty']['call'](_0x4d463e,'id')&&!$util['isString'](_0x4d463e['id'])?'id:\x20string\x20expected':null!=_0x4d463e['authorId']&&Object['hasOwnProperty']['call'](_0x4d463e,'authorId')&&!$util['isString'](_0x4d463e['authorId'])?'authorId:\x20string\x20expected':null!=_0x4d463e['type']&&Object['hasOwnProperty']['call'](_0x4d463e,'type')&&!$util['isString'](_0x4d463e['type'])?'type:\x20string\x20expected':null!=_0x4d463e['createdAt']&&Object['hasOwnProperty']['call'](_0x4d463e,'createdAt')&&!$util['isString'](_0x4d463e['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x4d463e['data']&&Object['hasOwnProperty']['call'](_0x4d463e,'data')&&!$util['isString'](_0x4d463e['data'])?'data:\x20string\x20expected':null!=_0x4d463e['hasComments']&&Object['hasOwnProperty']['call'](_0x4d463e,'hasComments')&&'boolean'!=typeof _0x4d463e['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x4d463e['state']&&Object['hasOwnProperty']['call'](_0x4d463e,'state')&&!$util['isString'](_0x4d463e['state'])?'state:\x20string\x20expected':null!=_0x4d463e['attributes']&&Object['hasOwnProperty']['call'](_0x4d463e,'attributes')&&!$util['isString'](_0x4d463e['attributes'])?'attributes:\x20string\x20expected':null);},TrackChangesAddSuggestionResponse['fromObject']=function(object,_0x1ef491){if(object instanceof $root['TrackChangesAddSuggestionResponse'])return object;if(!$util['isObject'](object))throw TypeError('.TrackChangesAddSuggestionResponse:\x20object\x20expected');if(void 0x0===_0x1ef491&&(_0x1ef491=0x0),_0x1ef491>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1ebbb2=new $root['TrackChangesAddSuggestionResponse']();return null!=object['id']&&(_0x1ebbb2['id']=String(object['id'])),null!=object['authorId']&&(_0x1ebbb2['authorId']=String(object['authorId'])),null!=object['type']&&(_0x1ebbb2['type']=String(object['type'])),null!=object['createdAt']&&(_0x1ebbb2['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x1ebbb2['data']=String(object['data'])),null!=object['hasComments']&&(_0x1ebbb2['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x1ebbb2['state']=String(object['state'])),null!=object['attributes']&&(_0x1ebbb2['attributes']=String(object['attributes'])),_0x1ebbb2;},TrackChangesAddSuggestionResponse['toObject']=function(_0x39dbf4,options,_0x3643e3){if(options||(options={}),void 0x0===_0x3643e3&&(_0x3643e3=0x0),_0x3643e3>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['id']='',object['authorId']='',object['type']='',object['createdAt']='',object['data']='',object['hasComments']=!0x1,object['state']='',object['attributes']=''),null!=_0x39dbf4['id']&&Object['hasOwnProperty']['call'](_0x39dbf4,'id')&&(object['id']=_0x39dbf4['id']),null!=_0x39dbf4['authorId']&&Object['hasOwnProperty']['call'](_0x39dbf4,'authorId')&&(object['authorId']=_0x39dbf4['authorId']),null!=_0x39dbf4['type']&&Object['hasOwnProperty']['call'](_0x39dbf4,'type')&&(object['type']=_0x39dbf4['type']),null!=_0x39dbf4['createdAt']&&Object['hasOwnProperty']['call'](_0x39dbf4,'createdAt')&&(object['createdAt']=_0x39dbf4['createdAt']),null!=_0x39dbf4['data']&&Object['hasOwnProperty']['call'](_0x39dbf4,'data')&&(object['data']=_0x39dbf4['data']),null!=_0x39dbf4['hasComments']&&Object['hasOwnProperty']['call'](_0x39dbf4,'hasComments')&&(object['hasComments']=_0x39dbf4['hasComments']),null!=_0x39dbf4['state']&&Object['hasOwnProperty']['call'](_0x39dbf4,'state')&&(object['state']=_0x39dbf4['state']),null!=_0x39dbf4['attributes']&&Object['hasOwnProperty']['call'](_0x39dbf4,'attributes')&&(object['attributes']=_0x39dbf4['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 _0x47b339=Object['keys'](properties),_0x336237=0x0;_0x336237<_0x47b339['length'];++_0x336237)null!=properties[_0x47b339[_0x336237]]&&'__proto__'!==_0x47b339[_0x336237]&&(this[_0x47b339[_0x336237]]=properties[_0x47b339[_0x336237]]);}}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(_0x42a4b0,writer,_0x2a9dbc){if(writer||(writer=$Writer['create']()),void 0x0===_0x2a9dbc&&(_0x2a9dbc=0x0),_0x2a9dbc>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x42a4b0['id']&&Object['hasOwnProperty']['call'](_0x42a4b0,'id')&&writer['uint32'](0xa)['string'](_0x42a4b0['id']),null!=_0x42a4b0['documentId']&&Object['hasOwnProperty']['call'](_0x42a4b0,'documentId')&&writer['uint32'](0x12)['string'](_0x42a4b0['documentId']),null!=_0x42a4b0['hasComments']&&Object['hasOwnProperty']['call'](_0x42a4b0,'hasComments')&&writer['uint32'](0x18)['bool'](_0x42a4b0['hasComments']),null!=_0x42a4b0['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x42a4b0,'isHasCommentsModified')&&writer['uint32'](0x20)['bool'](_0x42a4b0['isHasCommentsModified']),null!=_0x42a4b0['state']&&Object['hasOwnProperty']['call'](_0x42a4b0,'state')&&writer['uint32'](0x2a)['string'](_0x42a4b0['state']),null!=_0x42a4b0['attributes']&&Object['hasOwnProperty']['call'](_0x42a4b0,'attributes')&&writer['uint32'](0x32)['string'](_0x42a4b0['attributes']),writer;},TrackChangesUpdateSuggestionMessage['encodeDelimited']=function(_0x32d780,writer){return this['encode'](_0x32d780,writer)['ldelim']();},TrackChangesUpdateSuggestionMessage['decode']=function(_0x55e980,length,_0x20f369,_0x5ba1c8){if(_0x55e980 instanceof _0x470ccf||(_0x55e980=_0x470ccf['create'](_0x55e980)),void 0x0===_0x5ba1c8&&(_0x5ba1c8=0x0),_0x5ba1c8>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xc195e9=void 0x0===length?_0x55e980['len']:_0x55e980['pos']+length,_0x34e9b1=new $root['TrackChangesUpdateSuggestionMessage']();_0x55e980['pos']<_0xc195e9;){var tag=_0x55e980['uint32']();if(tag===_0x20f369)break;switch(tag>>>0x3){case 0x1:_0x34e9b1['id']=_0x55e980['string']();break;case 0x2:_0x34e9b1['documentId']=_0x55e980['string']();break;case 0x3:_0x34e9b1['hasComments']=_0x55e980['bool']();break;case 0x4:_0x34e9b1['isHasCommentsModified']=_0x55e980['bool']();break;case 0x5:_0x34e9b1['state']=_0x55e980['string']();break;case 0x6:_0x34e9b1['attributes']=_0x55e980['string']();break;default:_0x55e980['skipType'](0x7&tag,_0x5ba1c8);}}return _0x34e9b1;},TrackChangesUpdateSuggestionMessage['decodeDelimited']=function(_0x474fea){return _0x474fea instanceof _0x470ccf||(_0x474fea=new _0x470ccf(_0x474fea)),this['decode'](_0x474fea,_0x474fea['uint32']());},TrackChangesUpdateSuggestionMessage['verify']=function(_0x5ed4ef,_0x1cee05){return'object'!=typeof _0x5ed4ef||null===_0x5ed4ef?'object\x20expected':(void 0x0===_0x1cee05&&(_0x1cee05=0x0),_0x1cee05>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x5ed4ef['id']&&Object['hasOwnProperty']['call'](_0x5ed4ef,'id')&&!$util['isString'](_0x5ed4ef['id'])?'id:\x20string\x20expected':null!=_0x5ed4ef['documentId']&&Object['hasOwnProperty']['call'](_0x5ed4ef,'documentId')&&!$util['isString'](_0x5ed4ef['documentId'])?'documentId:\x20string\x20expected':null!=_0x5ed4ef['hasComments']&&Object['hasOwnProperty']['call'](_0x5ed4ef,'hasComments')&&'boolean'!=typeof _0x5ed4ef['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x5ed4ef['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x5ed4ef,'isHasCommentsModified')&&'boolean'!=typeof _0x5ed4ef['isHasCommentsModified']?'isHasCommentsModified:\x20boolean\x20expected':null!=_0x5ed4ef['state']&&Object['hasOwnProperty']['call'](_0x5ed4ef,'state')&&!$util['isString'](_0x5ed4ef['state'])?'state:\x20string\x20expected':null!=_0x5ed4ef['attributes']&&Object['hasOwnProperty']['call'](_0x5ed4ef,'attributes')&&!$util['isString'](_0x5ed4ef['attributes'])?'attributes:\x20string\x20expected':null);},TrackChangesUpdateSuggestionMessage['fromObject']=function(object,_0x1eaf12){if(object instanceof $root['TrackChangesUpdateSuggestionMessage'])return object;if(!$util['isObject'](object))throw TypeError('.TrackChangesUpdateSuggestionMessage:\x20object\x20expected');if(void 0x0===_0x1eaf12&&(_0x1eaf12=0x0),_0x1eaf12>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x3c074b=new $root['TrackChangesUpdateSuggestionMessage']();return null!=object['id']&&(_0x3c074b['id']=String(object['id'])),null!=object['documentId']&&(_0x3c074b['documentId']=String(object['documentId'])),null!=object['hasComments']&&(_0x3c074b['hasComments']=Boolean(object['hasComments'])),null!=object['isHasCommentsModified']&&(_0x3c074b['isHasCommentsModified']=Boolean(object['isHasCommentsModified'])),null!=object['state']&&(_0x3c074b['state']=String(object['state'])),null!=object['attributes']&&(_0x3c074b['attributes']=String(object['attributes'])),_0x3c074b;},TrackChangesUpdateSuggestionMessage['toObject']=function(_0x5be325,options,_0x178d2d){if(options||(options={}),void 0x0===_0x178d2d&&(_0x178d2d=0x0),_0x178d2d>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['id']='',object['documentId']='',object['hasComments']=!0x1,object['isHasCommentsModified']=!0x1,object['state']='',object['attributes']=''),null!=_0x5be325['id']&&Object['hasOwnProperty']['call'](_0x5be325,'id')&&(object['id']=_0x5be325['id']),null!=_0x5be325['documentId']&&Object['hasOwnProperty']['call'](_0x5be325,'documentId')&&(object['documentId']=_0x5be325['documentId']),null!=_0x5be325['hasComments']&&Object['hasOwnProperty']['call'](_0x5be325,'hasComments')&&(object['hasComments']=_0x5be325['hasComments']),null!=_0x5be325['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x5be325,'isHasCommentsModified')&&(object['isHasCommentsModified']=_0x5be325['isHasCommentsModified']),null!=_0x5be325['state']&&Object['hasOwnProperty']['call'](_0x5be325,'state')&&(object['state']=_0x5be325['state']),null!=_0x5be325['attributes']&&Object['hasOwnProperty']['call'](_0x5be325,'attributes')&&(object['attributes']=_0x5be325['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 _0x335fac=Object['keys'](properties),_0x49d727=0x0;_0x49d727<_0x335fac['length'];++_0x49d727)null!=properties[_0x335fac[_0x49d727]]&&'__proto__'!==_0x335fac[_0x49d727]&&(this[_0x335fac[_0x49d727]]=properties[_0x335fac[_0x49d727]]);}}return TrackChangesGetSuggestionMessage['prototype']['id']='',TrackChangesGetSuggestionMessage['prototype']['documentId']='',TrackChangesGetSuggestionMessage['create']=function(properties){return new TrackChangesGetSuggestionMessage(properties);},TrackChangesGetSuggestionMessage['encode']=function(_0x122536,writer,_0x4b8474){if(writer||(writer=$Writer['create']()),void 0x0===_0x4b8474&&(_0x4b8474=0x0),_0x4b8474>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x122536['id']&&Object['hasOwnProperty']['call'](_0x122536,'id')&&writer['uint32'](0xa)['string'](_0x122536['id']),null!=_0x122536['documentId']&&Object['hasOwnProperty']['call'](_0x122536,'documentId')&&writer['uint32'](0x12)['string'](_0x122536['documentId']),writer;},TrackChangesGetSuggestionMessage['encodeDelimited']=function(_0x14b8ce,writer){return this['encode'](_0x14b8ce,writer)['ldelim']();},TrackChangesGetSuggestionMessage['decode']=function(_0x37e279,length,_0x3b9dbd,_0x103792){if(_0x37e279 instanceof _0x470ccf||(_0x37e279=_0x470ccf['create'](_0x37e279)),void 0x0===_0x103792&&(_0x103792=0x0),_0x103792>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x540888=void 0x0===length?_0x37e279['len']:_0x37e279['pos']+length,_0x23aeb3=new $root['TrackChangesGetSuggestionMessage']();_0x37e279['pos']<_0x540888;){var tag=_0x37e279['uint32']();if(tag===_0x3b9dbd)break;switch(tag>>>0x3){case 0x1:_0x23aeb3['id']=_0x37e279['string']();break;case 0x2:_0x23aeb3['documentId']=_0x37e279['string']();break;default:_0x37e279['skipType'](0x7&tag,_0x103792);}}return _0x23aeb3;},TrackChangesGetSuggestionMessage['decodeDelimited']=function(_0x3bb3ae){return _0x3bb3ae instanceof _0x470ccf||(_0x3bb3ae=new _0x470ccf(_0x3bb3ae)),this['decode'](_0x3bb3ae,_0x3bb3ae['uint32']());},TrackChangesGetSuggestionMessage['verify']=function(_0x5a53b9,_0x10d33d){return'object'!=typeof _0x5a53b9||null===_0x5a53b9?'object\x20expected':(void 0x0===_0x10d33d&&(_0x10d33d=0x0),_0x10d33d>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x5a53b9['id']&&Object['hasOwnProperty']['call'](_0x5a53b9,'id')&&!$util['isString'](_0x5a53b9['id'])?'id:\x20string\x20expected':null!=_0x5a53b9['documentId']&&Object['hasOwnProperty']['call'](_0x5a53b9,'documentId')&&!$util['isString'](_0x5a53b9['documentId'])?'documentId:\x20string\x20expected':null);},TrackChangesGetSuggestionMessage['fromObject']=function(object,_0x22537f){if(object instanceof $root['TrackChangesGetSuggestionMessage'])return object;if(!$util['isObject'](object))throw TypeError('.TrackChangesGetSuggestionMessage:\x20object\x20expected');if(void 0x0===_0x22537f&&(_0x22537f=0x0),_0x22537f>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x638988=new $root['TrackChangesGetSuggestionMessage']();return null!=object['id']&&(_0x638988['id']=String(object['id'])),null!=object['documentId']&&(_0x638988['documentId']=String(object['documentId'])),_0x638988;},TrackChangesGetSuggestionMessage['toObject']=function(_0x2cdf5c,options,_0x5950fb){if(options||(options={}),void 0x0===_0x5950fb&&(_0x5950fb=0x0),_0x5950fb>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['id']='',object['documentId']=''),null!=_0x2cdf5c['id']&&Object['hasOwnProperty']['call'](_0x2cdf5c,'id')&&(object['id']=_0x2cdf5c['id']),null!=_0x2cdf5c['documentId']&&Object['hasOwnProperty']['call'](_0x2cdf5c,'documentId')&&(object['documentId']=_0x2cdf5c['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 _0xb52871=Object['keys'](properties),_0x53a1aa=0x0;_0x53a1aa<_0xb52871['length'];++_0x53a1aa)null!=properties[_0xb52871[_0x53a1aa]]&&'__proto__'!==_0xb52871[_0x53a1aa]&&(this[_0xb52871[_0x53a1aa]]=properties[_0xb52871[_0x53a1aa]]);}}return TrackChangesGetAllSuggestionMessage['prototype']['documentId']='',TrackChangesGetAllSuggestionMessage['create']=function(properties){return new TrackChangesGetAllSuggestionMessage(properties);},TrackChangesGetAllSuggestionMessage['encode']=function(_0x5c97c8,writer,_0x2c5bde){if(writer||(writer=$Writer['create']()),void 0x0===_0x2c5bde&&(_0x2c5bde=0x0),_0x2c5bde>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x5c97c8['documentId']&&Object['hasOwnProperty']['call'](_0x5c97c8,'documentId')&&writer['uint32'](0xa)['string'](_0x5c97c8['documentId']),writer;},TrackChangesGetAllSuggestionMessage['encodeDelimited']=function(_0x2c7b69,writer){return this['encode'](_0x2c7b69,writer)['ldelim']();},TrackChangesGetAllSuggestionMessage['decode']=function(_0xa524b6,length,_0x388df2,_0x48836f){if(_0xa524b6 instanceof _0x470ccf||(_0xa524b6=_0x470ccf['create'](_0xa524b6)),void 0x0===_0x48836f&&(_0x48836f=0x0),_0x48836f>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2a16f3=void 0x0===length?_0xa524b6['len']:_0xa524b6['pos']+length,_0x12ee0e=new $root['TrackChangesGetAllSuggestionMessage']();_0xa524b6['pos']<_0x2a16f3;){var tag=_0xa524b6['uint32']();if(tag===_0x388df2)break;if(tag>>>0x3==0x1)_0x12ee0e['documentId']=_0xa524b6['string']();else _0xa524b6['skipType'](0x7&tag,_0x48836f);}return _0x12ee0e;},TrackChangesGetAllSuggestionMessage['decodeDelimited']=function(_0x5d4a26){return _0x5d4a26 instanceof _0x470ccf||(_0x5d4a26=new _0x470ccf(_0x5d4a26)),this['decode'](_0x5d4a26,_0x5d4a26['uint32']());},TrackChangesGetAllSuggestionMessage['verify']=function(_0x45453a,_0xc604b8){return'object'!=typeof _0x45453a||null===_0x45453a?'object\x20expected':(void 0x0===_0xc604b8&&(_0xc604b8=0x0),_0xc604b8>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x45453a['documentId']&&Object['hasOwnProperty']['call'](_0x45453a,'documentId')&&!$util['isString'](_0x45453a['documentId'])?'documentId:\x20string\x20expected':null);},TrackChangesGetAllSuggestionMessage['fromObject']=function(object,_0x121d36){if(object instanceof $root['TrackChangesGetAllSuggestionMessage'])return object;if(!$util['isObject'](object))throw TypeError('.TrackChangesGetAllSuggestionMessage:\x20object\x20expected');if(void 0x0===_0x121d36&&(_0x121d36=0x0),_0x121d36>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2d9a10=new $root['TrackChangesGetAllSuggestionMessage']();return null!=object['documentId']&&(_0x2d9a10['documentId']=String(object['documentId'])),_0x2d9a10;},TrackChangesGetAllSuggestionMessage['toObject']=function(_0x9aa6b2,options,_0x52ba70){if(options||(options={}),void 0x0===_0x52ba70&&(_0x52ba70=0x0),_0x52ba70>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['documentId']=''),null!=_0x9aa6b2['documentId']&&Object['hasOwnProperty']['call'](_0x9aa6b2,'documentId')&&(object['documentId']=_0x9aa6b2['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 _0x134fd5=Object['keys'](properties),_0x2e5d0d=0x0;_0x2e5d0d<_0x134fd5['length'];++_0x2e5d0d)null!=properties[_0x134fd5[_0x2e5d0d]]&&'__proto__'!==_0x134fd5[_0x2e5d0d]&&(this[_0x134fd5[_0x2e5d0d]]=properties[_0x134fd5[_0x2e5d0d]]);}}return TrackChangesConnectMessage['prototype']['documentId']='',TrackChangesConnectMessage['create']=function(properties){return new TrackChangesConnectMessage(properties);},TrackChangesConnectMessage['encode']=function(_0x57b7b0,writer,_0x594e97){if(writer||(writer=$Writer['create']()),void 0x0===_0x594e97&&(_0x594e97=0x0),_0x594e97>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x57b7b0['documentId']&&Object['hasOwnProperty']['call'](_0x57b7b0,'documentId')&&writer['uint32'](0xa)['string'](_0x57b7b0['documentId']),writer;},TrackChangesConnectMessage['encodeDelimited']=function(_0x2d7e5c,writer){return this['encode'](_0x2d7e5c,writer)['ldelim']();},TrackChangesConnectMessage['decode']=function(_0x4ab4e6,length,_0x43ea1e,_0x2c16f4){if(_0x4ab4e6 instanceof _0x470ccf||(_0x4ab4e6=_0x470ccf['create'](_0x4ab4e6)),void 0x0===_0x2c16f4&&(_0x2c16f4=0x0),_0x2c16f4>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x50ae8a=void 0x0===length?_0x4ab4e6['len']:_0x4ab4e6['pos']+length,_0x237137=new $root['TrackChangesConnectMessage']();_0x4ab4e6['pos']<_0x50ae8a;){var tag=_0x4ab4e6['uint32']();if(tag===_0x43ea1e)break;if(tag>>>0x3==0x1)_0x237137['documentId']=_0x4ab4e6['string']();else _0x4ab4e6['skipType'](0x7&tag,_0x2c16f4);}return _0x237137;},TrackChangesConnectMessage['decodeDelimited']=function(_0x665827){return _0x665827 instanceof _0x470ccf||(_0x665827=new _0x470ccf(_0x665827)),this['decode'](_0x665827,_0x665827['uint32']());},TrackChangesConnectMessage['verify']=function(_0x1569d8,_0x2e502a){return'object'!=typeof _0x1569d8||null===_0x1569d8?'object\x20expected':(void 0x0===_0x2e502a&&(_0x2e502a=0x0),_0x2e502a>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x1569d8['documentId']&&Object['hasOwnProperty']['call'](_0x1569d8,'documentId')&&!$util['isString'](_0x1569d8['documentId'])?'documentId:\x20string\x20expected':null);},TrackChangesConnectMessage['fromObject']=function(object,_0x19f81c){if(object instanceof $root['TrackChangesConnectMessage'])return object;if(!$util['isObject'](object))throw TypeError('.TrackChangesConnectMessage:\x20object\x20expected');if(void 0x0===_0x19f81c&&(_0x19f81c=0x0),_0x19f81c>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x228d05=new $root['TrackChangesConnectMessage']();return null!=object['documentId']&&(_0x228d05['documentId']=String(object['documentId'])),_0x228d05;},TrackChangesConnectMessage['toObject']=function(_0x4a10eb,options,_0x4d489f){if(options||(options={}),void 0x0===_0x4d489f&&(_0x4d489f=0x0),_0x4d489f>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['documentId']=''),null!=_0x4a10eb['documentId']&&Object['hasOwnProperty']['call'](_0x4a10eb,'documentId')&&(object['documentId']=_0x4a10eb['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 _0x117f0c=Object['keys'](properties),_0x220319=0x0;_0x220319<_0x117f0c['length'];++_0x220319)null!=properties[_0x117f0c[_0x220319]]&&'__proto__'!==_0x117f0c[_0x220319]&&(this[_0x117f0c[_0x220319]]=properties[_0x117f0c[_0x220319]]);}}return TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['ids']=$util['emptyArray'],TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['documentId']='',TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['state']='',TrackChangesBatchUpdateSuggestionsStateMessage['create']=function(properties){return new TrackChangesBatchUpdateSuggestionsStateMessage(properties);},TrackChangesBatchUpdateSuggestionsStateMessage['encode']=function(_0x392a60,writer,_0x4f7cda){if(writer||(writer=$Writer['create']()),void 0x0===_0x4f7cda&&(_0x4f7cda=0x0),_0x4f7cda>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x392a60['ids']&&_0x392a60['ids']['length']){for(var _0x4a2168=0x0;_0x4a2168<_0x392a60['ids']['length'];++_0x4a2168)writer['uint32'](0xa)['string'](_0x392a60['ids'][_0x4a2168]);}return null!=_0x392a60['documentId']&&Object['hasOwnProperty']['call'](_0x392a60,'documentId')&&writer['uint32'](0x12)['string'](_0x392a60['documentId']),null!=_0x392a60['state']&&Object['hasOwnProperty']['call'](_0x392a60,'state')&&writer['uint32'](0x1a)['string'](_0x392a60['state']),writer;},TrackChangesBatchUpdateSuggestionsStateMessage['encodeDelimited']=function(_0x5dd668,writer){return this['encode'](_0x5dd668,writer)['ldelim']();},TrackChangesBatchUpdateSuggestionsStateMessage['decode']=function(_0xadcb24,length,_0x17efc3,_0x91db0e){if(_0xadcb24 instanceof _0x470ccf||(_0xadcb24=_0x470ccf['create'](_0xadcb24)),void 0x0===_0x91db0e&&(_0x91db0e=0x0),_0x91db0e>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x383ec9=void 0x0===length?_0xadcb24['len']:_0xadcb24['pos']+length,_0x37acfb=new $root['TrackChangesBatchUpdateSuggestionsStateMessage']();_0xadcb24['pos']<_0x383ec9;){var tag=_0xadcb24['uint32']();if(tag===_0x17efc3)break;switch(tag>>>0x3){case 0x1:_0x37acfb['ids']&&_0x37acfb['ids']['length']||(_0x37acfb['ids']=[]),_0x37acfb['ids']['push'](_0xadcb24['string']());break;case 0x2:_0x37acfb['documentId']=_0xadcb24['string']();break;case 0x3:_0x37acfb['state']=_0xadcb24['string']();break;default:_0xadcb24['skipType'](0x7&tag,_0x91db0e);}}return _0x37acfb;},TrackChangesBatchUpdateSuggestionsStateMessage['decodeDelimited']=function(_0x2bd62f){return _0x2bd62f instanceof _0x470ccf||(_0x2bd62f=new _0x470ccf(_0x2bd62f)),this['decode'](_0x2bd62f,_0x2bd62f['uint32']());},TrackChangesBatchUpdateSuggestionsStateMessage['verify']=function(_0x52ea69,_0xc9bef4){if('object'!=typeof _0x52ea69||null===_0x52ea69)return'object\x20expected';if(void 0x0===_0xc9bef4&&(_0xc9bef4=0x0),_0xc9bef4>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x52ea69['ids']&&Object['hasOwnProperty']['call'](_0x52ea69,'ids')){if(!Array['isArray'](_0x52ea69['ids']))return'ids:\x20array\x20expected';for(var _0xb55ff4=0x0;_0xb55ff4<_0x52ea69['ids']['length'];++_0xb55ff4)if(!$util['isString'](_0x52ea69['ids'][_0xb55ff4]))return'ids:\x20string[]\x20expected';}return null!=_0x52ea69['documentId']&&Object['hasOwnProperty']['call'](_0x52ea69,'documentId')&&!$util['isString'](_0x52ea69['documentId'])?'documentId:\x20string\x20expected':null!=_0x52ea69['state']&&Object['hasOwnProperty']['call'](_0x52ea69,'state')&&!$util['isString'](_0x52ea69['state'])?'state:\x20string\x20expected':null;},TrackChangesBatchUpdateSuggestionsStateMessage['fromObject']=function(object,_0x2a6c76){if(object instanceof $root['TrackChangesBatchUpdateSuggestionsStateMessage'])return object;if(!$util['isObject'](object))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage:\x20object\x20expected');if(void 0x0===_0x2a6c76&&(_0x2a6c76=0x0),_0x2a6c76>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x11cf3c=new $root['TrackChangesBatchUpdateSuggestionsStateMessage']();if(object['ids']){if(!Array['isArray'](object['ids']))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage.ids:\x20array\x20expected');_0x11cf3c['ids']=[];for(var _0x215802=0x0;_0x215802<object['ids']['length'];++_0x215802)_0x11cf3c['ids'][_0x215802]=String(object['ids'][_0x215802]);}return null!=object['documentId']&&(_0x11cf3c['documentId']=String(object['documentId'])),null!=object['state']&&(_0x11cf3c['state']=String(object['state'])),_0x11cf3c;},TrackChangesBatchUpdateSuggestionsStateMessage['toObject']=function(_0x472106,options,_0x19e972){if(options||(options={}),void 0x0===_0x19e972&&(_0x19e972=0x0),_0x19e972>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['ids']=[]),options['defaults']&&(object['documentId']='',object['state']=''),_0x472106['ids']&&_0x472106['ids']['length']){object['ids']=[];for(var _0x435683=0x0;_0x435683<_0x472106['ids']['length'];++_0x435683)object['ids'][_0x435683]=_0x472106['ids'][_0x435683];}return null!=_0x472106['documentId']&&Object['hasOwnProperty']['call'](_0x472106,'documentId')&&(object['documentId']=_0x472106['documentId']),null!=_0x472106['state']&&Object['hasOwnProperty']['call'](_0x472106,'state')&&(object['state']=_0x472106['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 _0x56c32c=Object['keys'](properties),_0x258134=0x0;_0x258134<_0x56c32c['length'];++_0x258134)null!=properties[_0x56c32c[_0x258134]]&&'__proto__'!==_0x56c32c[_0x258134]&&(this[_0x56c32c[_0x258134]]=properties[_0x56c32c[_0x258134]]);}}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(_0x368d08,writer,_0xa2d3da){if(writer||(writer=$Writer['create']()),void 0x0===_0xa2d3da&&(_0xa2d3da=0x0),_0xa2d3da>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x368d08['id']&&Object['hasOwnProperty']['call'](_0x368d08,'id')&&writer['uint32'](0xa)['string'](_0x368d08['id']),null!=_0x368d08['documentId']&&Object['hasOwnProperty']['call'](_0x368d08,'documentId')&&writer['uint32'](0x12)['string'](_0x368d08['documentId']),null!=_0x368d08['type']&&Object['hasOwnProperty']['call'](_0x368d08,'type')&&writer['uint32'](0x1a)['string'](_0x368d08['type']),null!=_0x368d08['data']&&Object['hasOwnProperty']['call'](_0x368d08,'data')&&writer['uint32'](0x22)['string'](_0x368d08['data']),null!=_0x368d08['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x368d08,'originalSuggestionId')&&writer['uint32'](0x2a)['string'](_0x368d08['originalSuggestionId']),null!=_0x368d08['attributes']&&Object['hasOwnProperty']['call'](_0x368d08,'attributes')&&writer['uint32'](0x32)['string'](_0x368d08['attributes']),writer;},TrackChangesAddSuggestionMessage['encodeDelimited']=function(_0x902d7b,writer){return this['encode'](_0x902d7b,writer)['ldelim']();},TrackChangesAddSuggestionMessage['decode']=function(_0xf104ad,length,_0x5668d0,_0x43c0c0){if(_0xf104ad instanceof _0x470ccf||(_0xf104ad=_0x470ccf['create'](_0xf104ad)),void 0x0===_0x43c0c0&&(_0x43c0c0=0x0),_0x43c0c0>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x146b8c=void 0x0===length?_0xf104ad['len']:_0xf104ad['pos']+length,_0x17dcfd=new $root['TrackChangesAddSuggestionMessage']();_0xf104ad['pos']<_0x146b8c;){var tag=_0xf104ad['uint32']();if(tag===_0x5668d0)break;switch(tag>>>0x3){case 0x1:_0x17dcfd['id']=_0xf104ad['string']();break;case 0x2:_0x17dcfd['documentId']=_0xf104ad['string']();break;case 0x3:_0x17dcfd['type']=_0xf104ad['string']();break;case 0x4:_0x17dcfd['data']=_0xf104ad['string']();break;case 0x5:_0x17dcfd['originalSuggestionId']=_0xf104ad['string']();break;case 0x6:_0x17dcfd['attributes']=_0xf104ad['string']();break;default:_0xf104ad['skipType'](0x7&tag,_0x43c0c0);}}return _0x17dcfd;},TrackChangesAddSuggestionMessage['decodeDelimited']=function(_0x560ee7){return _0x560ee7 instanceof _0x470ccf||(_0x560ee7=new _0x470ccf(_0x560ee7)),this['decode'](_0x560ee7,_0x560ee7['uint32']());},TrackChangesAddSuggestionMessage['verify']=function(_0x338faa,_0x1127e9){return'object'!=typeof _0x338faa||null===_0x338faa?'object\x20expected':(void 0x0===_0x1127e9&&(_0x1127e9=0x0),_0x1127e9>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x338faa['id']&&Object['hasOwnProperty']['call'](_0x338faa,'id')&&!$util['isString'](_0x338faa['id'])?'id:\x20string\x20expected':null!=_0x338faa['documentId']&&Object['hasOwnProperty']['call'](_0x338faa,'documentId')&&!$util['isString'](_0x338faa['documentId'])?'documentId:\x20string\x20expected':null!=_0x338faa['type']&&Object['hasOwnProperty']['call'](_0x338faa,'type')&&!$util['isString'](_0x338faa['type'])?'type:\x20string\x20expected':null!=_0x338faa['data']&&Object['hasOwnProperty']['call'](_0x338faa,'data')&&!$util['isString'](_0x338faa['data'])?'data:\x20string\x20expected':null!=_0x338faa['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x338faa,'originalSuggestionId')&&!$util['isString'](_0x338faa['originalSuggestionId'])?'originalSuggestionId:\x20string\x20expected':null!=_0x338faa['attributes']&&Object['hasOwnProperty']['call'](_0x338faa,'attributes')&&!$util['isString'](_0x338faa['attributes'])?'attributes:\x20string\x20expected':null);},TrackChangesAddSuggestionMessage['fromObject']=function(object,_0x1bd028){if(object instanceof $root['TrackChangesAddSuggestionMessage'])return object;if(!$util['isObject'](object))throw TypeError('.TrackChangesAddSuggestionMessage:\x20object\x20expected');if(void 0x0===_0x1bd028&&(_0x1bd028=0x0),_0x1bd028>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x21e140=new $root['TrackChangesAddSuggestionMessage']();return null!=object['id']&&(_0x21e140['id']=String(object['id'])),null!=object['documentId']&&(_0x21e140['documentId']=String(object['documentId'])),null!=object['type']&&(_0x21e140['type']=String(object['type'])),null!=object['data']&&(_0x21e140['data']=String(object['data'])),null!=object['originalSuggestionId']&&(_0x21e140['originalSuggestionId']=String(object['originalSuggestionId'])),null!=object['attributes']&&(_0x21e140['attributes']=String(object['attributes'])),_0x21e140;},TrackChangesAddSuggestionMessage['toObject']=function(_0x230e16,options,_0x2a7197){if(options||(options={}),void 0x0===_0x2a7197&&(_0x2a7197=0x0),_0x2a7197>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['id']='',object['documentId']='',object['type']='',object['data']='',object['originalSuggestionId']='',object['attributes']=''),null!=_0x230e16['id']&&Object['hasOwnProperty']['call'](_0x230e16,'id')&&(object['id']=_0x230e16['id']),null!=_0x230e16['documentId']&&Object['hasOwnProperty']['call'](_0x230e16,'documentId')&&(object['documentId']=_0x230e16['documentId']),null!=_0x230e16['type']&&Object['hasOwnProperty']['call'](_0x230e16,'type')&&(object['type']=_0x230e16['type']),null!=_0x230e16['data']&&Object['hasOwnProperty']['call'](_0x230e16,'data')&&(object['data']=_0x230e16['data']),null!=_0x230e16['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x230e16,'originalSuggestionId')&&(object['originalSuggestionId']=_0x230e16['originalSuggestionId']),null!=_0x230e16['attributes']&&Object['hasOwnProperty']['call'](_0x230e16,'attributes')&&(object['attributes']=_0x230e16['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 _0x87658c=Object['keys'](properties),_0x13bb34=0x0;_0x13bb34<_0x87658c['length'];++_0x13bb34)null!=properties[_0x87658c[_0x13bb34]]&&'__proto__'!==_0x87658c[_0x13bb34]&&(this[_0x87658c[_0x13bb34]]=properties[_0x87658c[_0x13bb34]]);}}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(_0x20e3e8,writer,_0x439e29){if(writer||(writer=$Writer['create']()),void 0x0===_0x439e29&&(_0x439e29=0x0),_0x439e29>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x20e3e8['id']&&Object['hasOwnProperty']['call'](_0x20e3e8,'id')&&writer['uint32'](0xa)['string'](_0x20e3e8['id']),null!=_0x20e3e8['authorId']&&Object['hasOwnProperty']['call'](_0x20e3e8,'authorId')&&writer['uint32'](0x12)['string'](_0x20e3e8['authorId']),null!=_0x20e3e8['type']&&Object['hasOwnProperty']['call'](_0x20e3e8,'type')&&writer['uint32'](0x1a)['string'](_0x20e3e8['type']),null!=_0x20e3e8['createdAt']&&Object['hasOwnProperty']['call'](_0x20e3e8,'createdAt')&&writer['uint32'](0x22)['string'](_0x20e3e8['createdAt']),null!=_0x20e3e8['data']&&Object['hasOwnProperty']['call'](_0x20e3e8,'data')&&writer['uint32'](0x2a)['string'](_0x20e3e8['data']),null!=_0x20e3e8['hasComments']&&Object['hasOwnProperty']['call'](_0x20e3e8,'hasComments')&&writer['uint32'](0x30)['bool'](_0x20e3e8['hasComments']),null!=_0x20e3e8['state']&&Object['hasOwnProperty']['call'](_0x20e3e8,'state')&&writer['uint32'](0x3a)['string'](_0x20e3e8['state']),null!=_0x20e3e8['attributes']&&Object['hasOwnProperty']['call'](_0x20e3e8,'attributes')&&writer['uint32'](0x42)['string'](_0x20e3e8['attributes']),writer;},SuggestionDescriptor['encodeDelimited']=function(_0x5b8535,writer){return this['encode'](_0x5b8535,writer)['ldelim']();},SuggestionDescriptor['decode']=function(_0x4f21eb,length,_0x459708,_0x12c4b0){if(_0x4f21eb instanceof _0x470ccf||(_0x4f21eb=_0x470ccf['create'](_0x4f21eb)),void 0x0===_0x12c4b0&&(_0x12c4b0=0x0),_0x12c4b0>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2ee488=void 0x0===length?_0x4f21eb['len']:_0x4f21eb['pos']+length,_0x5e1e81=new $root['SuggestionDescriptor']();_0x4f21eb['pos']<_0x2ee488;){var tag=_0x4f21eb['uint32']();if(tag===_0x459708)break;switch(tag>>>0x3){case 0x1:_0x5e1e81['id']=_0x4f21eb['string']();break;case 0x2:_0x5e1e81['authorId']=_0x4f21eb['string']();break;case 0x3:_0x5e1e81['type']=_0x4f21eb['string']();break;case 0x4:_0x5e1e81['createdAt']=_0x4f21eb['string']();break;case 0x5:_0x5e1e81['data']=_0x4f21eb['string']();break;case 0x6:_0x5e1e81['hasComments']=_0x4f21eb['bool']();break;case 0x7:_0x5e1e81['state']=_0x4f21eb['string']();break;case 0x8:_0x5e1e81['attributes']=_0x4f21eb['string']();break;default:_0x4f21eb['skipType'](0x7&tag,_0x12c4b0);}}return _0x5e1e81;},SuggestionDescriptor['decodeDelimited']=function(_0x750181){return _0x750181 instanceof _0x470ccf||(_0x750181=new _0x470ccf(_0x750181)),this['decode'](_0x750181,_0x750181['uint32']());},SuggestionDescriptor['verify']=function(_0x1e18f5,_0x5511d3){return'object'!=typeof _0x1e18f5||null===_0x1e18f5?'object\x20expected':(void 0x0===_0x5511d3&&(_0x5511d3=0x0),_0x5511d3>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x1e18f5['id']&&Object['hasOwnProperty']['call'](_0x1e18f5,'id')&&!$util['isString'](_0x1e18f5['id'])?'id:\x20string\x20expected':null!=_0x1e18f5['authorId']&&Object['hasOwnProperty']['call'](_0x1e18f5,'authorId')&&!$util['isString'](_0x1e18f5['authorId'])?'authorId:\x20string\x20expected':null!=_0x1e18f5['type']&&Object['hasOwnProperty']['call'](_0x1e18f5,'type')&&!$util['isString'](_0x1e18f5['type'])?'type:\x20string\x20expected':null!=_0x1e18f5['createdAt']&&Object['hasOwnProperty']['call'](_0x1e18f5,'createdAt')&&!$util['isString'](_0x1e18f5['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x1e18f5['data']&&Object['hasOwnProperty']['call'](_0x1e18f5,'data')&&!$util['isString'](_0x1e18f5['data'])?'data:\x20string\x20expected':null!=_0x1e18f5['hasComments']&&Object['hasOwnProperty']['call'](_0x1e18f5,'hasComments')&&'boolean'!=typeof _0x1e18f5['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x1e18f5['state']&&Object['hasOwnProperty']['call'](_0x1e18f5,'state')&&!$util['isString'](_0x1e18f5['state'])?'state:\x20string\x20expected':null!=_0x1e18f5['attributes']&&Object['hasOwnProperty']['call'](_0x1e18f5,'attributes')&&!$util['isString'](_0x1e18f5['attributes'])?'attributes:\x20string\x20expected':null);},SuggestionDescriptor['fromObject']=function(object,_0x48bac7){if(object instanceof $root['SuggestionDescriptor'])return object;if(!$util['isObject'](object))throw TypeError('.SuggestionDescriptor:\x20object\x20expected');if(void 0x0===_0x48bac7&&(_0x48bac7=0x0),_0x48bac7>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x41bcc0=new $root['SuggestionDescriptor']();return null!=object['id']&&(_0x41bcc0['id']=String(object['id'])),null!=object['authorId']&&(_0x41bcc0['authorId']=String(object['authorId'])),null!=object['type']&&(_0x41bcc0['type']=String(object['type'])),null!=object['createdAt']&&(_0x41bcc0['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x41bcc0['data']=String(object['data'])),null!=object['hasComments']&&(_0x41bcc0['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x41bcc0['state']=String(object['state'])),null!=object['attributes']&&(_0x41bcc0['attributes']=String(object['attributes'])),_0x41bcc0;},SuggestionDescriptor['toObject']=function(_0x36dc3d,options,_0xeea4c6){if(options||(options={}),void 0x0===_0xeea4c6&&(_0xeea4c6=0x0),_0xeea4c6>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['id']='',object['authorId']='',object['type']='',object['createdAt']='',object['data']='',object['hasComments']=!0x1,object['state']='',object['attributes']=''),null!=_0x36dc3d['id']&&Object['hasOwnProperty']['call'](_0x36dc3d,'id')&&(object['id']=_0x36dc3d['id']),null!=_0x36dc3d['authorId']&&Object['hasOwnProperty']['call'](_0x36dc3d,'authorId')&&(object['authorId']=_0x36dc3d['authorId']),null!=_0x36dc3d['type']&&Object['hasOwnProperty']['call'](_0x36dc3d,'type')&&(object['type']=_0x36dc3d['type']),null!=_0x36dc3d['createdAt']&&Object['hasOwnProperty']['call'](_0x36dc3d,'createdAt')&&(object['createdAt']=_0x36dc3d['createdAt']),null!=_0x36dc3d['data']&&Object['hasOwnProperty']['call'](_0x36dc3d,'data')&&(object['data']=_0x36dc3d['data']),null!=_0x36dc3d['hasComments']&&Object['hasOwnProperty']['call'](_0x36dc3d,'hasComments')&&(object['hasComments']=_0x36dc3d['hasComments']),null!=_0x36dc3d['state']&&Object['hasOwnProperty']['call'](_0x36dc3d,'state')&&(object['state']=_0x36dc3d['state']),null!=_0x36dc3d['attributes']&&Object['hasOwnProperty']['call'](_0x36dc3d,'attributes')&&(object['attributes']=_0x36dc3d['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 _0x32f9da=Object['keys'](properties),_0x12b215=0x0;_0x12b215<_0x32f9da['length'];++_0x12b215)null!=properties[_0x32f9da[_0x12b215]]&&'__proto__'!==_0x32f9da[_0x12b215]&&(this[_0x32f9da[_0x12b215]]=properties[_0x32f9da[_0x12b215]]);}}return SessionsConnectResponse['prototype']['channel']='',SessionsConnectResponse['prototype']['sockets']=$util['emptyArray'],SessionsConnectResponse['create']=function(properties){return new SessionsConnectResponse(properties);},SessionsConnectResponse['encode']=function(_0x3462b7,writer,_0x25caaa){if(writer||(writer=$Writer['create']()),void 0x0===_0x25caaa&&(_0x25caaa=0x0),_0x25caaa>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x3462b7['channel']&&Object['hasOwnProperty']['call'](_0x3462b7,'channel')&&writer['uint32'](0xa)['string'](_0x3462b7['channel']),null!=_0x3462b7['sockets']&&_0x3462b7['sockets']['length']){for(var _0x5b18f7=0x0;_0x5b18f7<_0x3462b7['sockets']['length'];++_0x5b18f7)$root['SessionsSocketDescriptor']['encode'](_0x3462b7['sockets'][_0x5b18f7],writer['uint32'](0x12)['fork'](),_0x25caaa+0x1)['ldelim']();}return writer;},SessionsConnectResponse['encodeDelimited']=function(_0x3e0cbd,writer){return this['encode'](_0x3e0cbd,writer)['ldelim']();},SessionsConnectResponse['decode']=function(_0x4dd5e5,length,_0x58d5b7,_0x2f39a7){if(_0x4dd5e5 instanceof _0x470ccf||(_0x4dd5e5=_0x470ccf['create'](_0x4dd5e5)),void 0x0===_0x2f39a7&&(_0x2f39a7=0x0),_0x2f39a7>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x311769=void 0x0===length?_0x4dd5e5['len']:_0x4dd5e5['pos']+length,_0x2209cd=new $root['SessionsConnectResponse']();_0x4dd5e5['pos']<_0x311769;){var tag=_0x4dd5e5['uint32']();if(tag===_0x58d5b7)break;switch(tag>>>0x3){case 0x1:_0x2209cd['channel']=_0x4dd5e5['string']();break;case 0x2:_0x2209cd['sockets']&&_0x2209cd['sockets']['length']||(_0x2209cd['sockets']=[]),_0x2209cd['sockets']['push']($root['SessionsSocketDescriptor']['decode'](_0x4dd5e5,_0x4dd5e5['uint32'](),void 0x0,_0x2f39a7+0x1));break;default:_0x4dd5e5['skipType'](0x7&tag,_0x2f39a7);}}return _0x2209cd;},SessionsConnectResponse['decodeDelimited']=function(_0x33a3c7){return _0x33a3c7 instanceof _0x470ccf||(_0x33a3c7=new _0x470ccf(_0x33a3c7)),this['decode'](_0x33a3c7,_0x33a3c7['uint32']());},SessionsConnectResponse['verify']=function(_0x589980,_0x31d91f){if('object'!=typeof _0x589980||null===_0x589980)return'object\x20expected';if(void 0x0===_0x31d91f&&(_0x31d91f=0x0),_0x31d91f>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x589980['channel']&&Object['hasOwnProperty']['call'](_0x589980,'channel')&&!$util['isString'](_0x589980['channel']))return'channel:\x20string\x20expected';if(null!=_0x589980['sockets']&&Object['hasOwnProperty']['call'](_0x589980,'sockets')){if(!Array['isArray'](_0x589980['sockets']))return'sockets:\x20array\x20expected';for(var _0x169272=0x0;_0x169272<_0x589980['sockets']['length'];++_0x169272){var _0x55e32c=$root['SessionsSocketDescriptor']['verify'](_0x589980['sockets'][_0x169272],_0x31d91f+0x1);if(_0x55e32c)return'sockets.'+_0x55e32c;}}return null;},SessionsConnectResponse['fromObject']=function(object,_0x3f6a28){if(object instanceof $root['SessionsConnectResponse'])return object;if(!$util['isObject'](object))throw TypeError('.SessionsConnectResponse:\x20object\x20expected');if(void 0x0===_0x3f6a28&&(_0x3f6a28=0x0),_0x3f6a28>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x3a6f11=new $root['SessionsConnectResponse']();if(null!=object['channel']&&(_0x3a6f11['channel']=String(object['channel'])),object['sockets']){if(!Array['isArray'](object['sockets']))throw TypeError('.SessionsConnectResponse.sockets:\x20array\x20expected');_0x3a6f11['sockets']=[];for(var _0x4e5221=0x0;_0x4e5221<object['sockets']['length'];++_0x4e5221){if(!$util['isObject'](object['sockets'][_0x4e5221]))throw TypeError('.SessionsConnectResponse.sockets:\x20object\x20expected');_0x3a6f11['sockets'][_0x4e5221]=$root['SessionsSocketDescriptor']['fromObject'](object['sockets'][_0x4e5221],_0x3f6a28+0x1);}}return _0x3a6f11;},SessionsConnectResponse['toObject']=function(_0xd63197,options,_0x20fb03){if(options||(options={}),void 0x0===_0x20fb03&&(_0x20fb03=0x0),_0x20fb03>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['sockets']=[]),options['defaults']&&(object['channel']=''),null!=_0xd63197['channel']&&Object['hasOwnProperty']['call'](_0xd63197,'channel')&&(object['channel']=_0xd63197['channel']),_0xd63197['sockets']&&_0xd63197['sockets']['length']){object['sockets']=[];for(var _0x2196f0=0x0;_0x2196f0<_0xd63197['sockets']['length'];++_0x2196f0)object['sockets'][_0x2196f0]=$root['SessionsSocketDescriptor']['toObject'](_0xd63197['sockets'][_0x2196f0],options,_0x20fb03+0x1);}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 _0x709e8d=Object['keys'](properties),_0xb626af=0x0;_0xb626af<_0x709e8d['length'];++_0xb626af)null!=properties[_0x709e8d[_0xb626af]]&&'__proto__'!==_0x709e8d[_0xb626af]&&(this[_0x709e8d[_0xb626af]]=properties[_0x709e8d[_0xb626af]]);}}return SocketDisconnectMessage['prototype']['id']='',SocketDisconnectMessage['create']=function(properties){return new SocketDisconnectMessage(properties);},SocketDisconnectMessage['encode']=function(_0x35d7d0,writer,_0x512388){if(writer||(writer=$Writer['create']()),void 0x0===_0x512388&&(_0x512388=0x0),_0x512388>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x35d7d0['id']&&Object['hasOwnProperty']['call'](_0x35d7d0,'id')&&writer['uint32'](0xa)['string'](_0x35d7d0['id']),writer;},SocketDisconnectMessage['encodeDelimited']=function(_0x4afaae,writer){return this['encode'](_0x4afaae,writer)['ldelim']();},SocketDisconnectMessage['decode']=function(_0xa56204,length,_0x444b95,_0x4bb3b8){if(_0xa56204 instanceof _0x470ccf||(_0xa56204=_0x470ccf['create'](_0xa56204)),void 0x0===_0x4bb3b8&&(_0x4bb3b8=0x0),_0x4bb3b8>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x596f3b=void 0x0===length?_0xa56204['len']:_0xa56204['pos']+length,_0x131beb=new $root['SocketDisconnectMessage']();_0xa56204['pos']<_0x596f3b;){var tag=_0xa56204['uint32']();if(tag===_0x444b95)break;if(tag>>>0x3==0x1)_0x131beb['id']=_0xa56204['string']();else _0xa56204['skipType'](0x7&tag,_0x4bb3b8);}return _0x131beb;},SocketDisconnectMessage['decodeDelimited']=function(_0x4815ba){return _0x4815ba instanceof _0x470ccf||(_0x4815ba=new _0x470ccf(_0x4815ba)),this['decode'](_0x4815ba,_0x4815ba['uint32']());},SocketDisconnectMessage['verify']=function(_0x34fef7,_0x778220){return'object'!=typeof _0x34fef7||null===_0x34fef7?'object\x20expected':(void 0x0===_0x778220&&(_0x778220=0x0),_0x778220>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x34fef7['id']&&Object['hasOwnProperty']['call'](_0x34fef7,'id')&&!$util['isString'](_0x34fef7['id'])?'id:\x20string\x20expected':null);},SocketDisconnectMessage['fromObject']=function(object,_0x2e5c42){if(object instanceof $root['SocketDisconnectMessage'])return object;if(!$util['isObject'](object))throw TypeError('.SocketDisconnectMessage:\x20object\x20expected');if(void 0x0===_0x2e5c42&&(_0x2e5c42=0x0),_0x2e5c42>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x43e225=new $root['SocketDisconnectMessage']();return null!=object['id']&&(_0x43e225['id']=String(object['id'])),_0x43e225;},SocketDisconnectMessage['toObject']=function(_0x2bb3e9,options,_0x5e5607){if(options||(options={}),void 0x0===_0x5e5607&&(_0x5e5607=0x0),_0x5e5607>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['id']=''),null!=_0x2bb3e9['id']&&Object['hasOwnProperty']['call'](_0x2bb3e9,'id')&&(object['id']=_0x2bb3e9['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 _0x2afb4d=Object['keys'](properties),_0x5c4ef3=0x0;_0x5c4ef3<_0x2afb4d['length'];++_0x5c4ef3)null!=properties[_0x2afb4d[_0x5c4ef3]]&&'__proto__'!==_0x2afb4d[_0x5c4ef3]&&(this[_0x2afb4d[_0x5c4ef3]]=properties[_0x2afb4d[_0x5c4ef3]]);}}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(_0x1525e1,writer,_0x573a75){if(writer||(writer=$Writer['create']()),void 0x0===_0x573a75&&(_0x573a75=0x0),_0x573a75>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x1525e1['id']&&Object['hasOwnProperty']['call'](_0x1525e1,'id')&&writer['uint32'](0xa)['string'](_0x1525e1['id']),null!=_0x1525e1['userId']&&Object['hasOwnProperty']['call'](_0x1525e1,'userId')&&writer['uint32'](0x12)['string'](_0x1525e1['userId']),null!=_0x1525e1['role']&&Object['hasOwnProperty']['call'](_0x1525e1,'role')&&writer['uint32'](0x1a)['string'](_0x1525e1['role']),null!=_0x1525e1['permissions']&&_0x1525e1['permissions']['length']){for(var _0x394d69=0x0;_0x394d69<_0x1525e1['permissions']['length'];++_0x394d69)writer['uint32'](0x22)['string'](_0x1525e1['permissions'][_0x394d69]);}return writer;},SocketConnectMessage['encodeDelimited']=function(_0x57b066,writer){return this['encode'](_0x57b066,writer)['ldelim']();},SocketConnectMessage['decode']=function(_0x19995d,length,_0x3d1932,_0x45504c){if(_0x19995d instanceof _0x470ccf||(_0x19995d=_0x470ccf['create'](_0x19995d)),void 0x0===_0x45504c&&(_0x45504c=0x0),_0x45504c>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x31c5db=void 0x0===length?_0x19995d['len']:_0x19995d['pos']+length,_0x47f865=new $root['SocketConnectMessage']();_0x19995d['pos']<_0x31c5db;){var tag=_0x19995d['uint32']();if(tag===_0x3d1932)break;switch(tag>>>0x3){case 0x1:_0x47f865['id']=_0x19995d['string']();break;case 0x2:_0x47f865['userId']=_0x19995d['string']();break;case 0x3:_0x47f865['role']=_0x19995d['string']();break;case 0x4:_0x47f865['permissions']&&_0x47f865['permissions']['length']||(_0x47f865['permissions']=[]),_0x47f865['permissions']['push'](_0x19995d['string']());break;default:_0x19995d['skipType'](0x7&tag,_0x45504c);}}return _0x47f865;},SocketConnectMessage['decodeDelimited']=function(_0x1fcdf3){return _0x1fcdf3 instanceof _0x470ccf||(_0x1fcdf3=new _0x470ccf(_0x1fcdf3)),this['decode'](_0x1fcdf3,_0x1fcdf3['uint32']());},SocketConnectMessage['verify']=function(_0x10c931,_0x52d248){if('object'!=typeof _0x10c931||null===_0x10c931)return'object\x20expected';if(void 0x0===_0x52d248&&(_0x52d248=0x0),_0x52d248>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x10c931['id']&&Object['hasOwnProperty']['call'](_0x10c931,'id')&&!$util['isString'](_0x10c931['id']))return'id:\x20string\x20expected';if(null!=_0x10c931['userId']&&Object['hasOwnProperty']['call'](_0x10c931,'userId')&&!$util['isString'](_0x10c931['userId']))return'userId:\x20string\x20expected';if(null!=_0x10c931['role']&&Object['hasOwnProperty']['call'](_0x10c931,'role')&&!$util['isString'](_0x10c931['role']))return'role:\x20string\x20expected';if(null!=_0x10c931['permissions']&&Object['hasOwnProperty']['call'](_0x10c931,'permissions')){if(!Array['isArray'](_0x10c931['permissions']))return'permissions:\x20array\x20expected';for(var _0x29770b=0x0;_0x29770b<_0x10c931['permissions']['length'];++_0x29770b)if(!$util['isString'](_0x10c931['permissions'][_0x29770b]))return'permissions:\x20string[]\x20expected';}return null;},SocketConnectMessage['fromObject']=function(object,_0x2d37e0){if(object instanceof $root['SocketConnectMessage'])return object;if(!$util['isObject'](object))throw TypeError('.SocketConnectMessage:\x20object\x20expected');if(void 0x0===_0x2d37e0&&(_0x2d37e0=0x0),_0x2d37e0>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x4c596c=new $root['SocketConnectMessage']();if(null!=object['id']&&(_0x4c596c['id']=String(object['id'])),null!=object['userId']&&(_0x4c596c['userId']=String(object['userId'])),null!=object['role']&&(_0x4c596c['role']=String(object['role'])),object['permissions']){if(!Array['isArray'](object['permissions']))throw TypeError('.SocketConnectMessage.permissions:\x20array\x20expected');_0x4c596c['permissions']=[];for(var _0x1da669=0x0;_0x1da669<object['permissions']['length'];++_0x1da669)_0x4c596c['permissions'][_0x1da669]=String(object['permissions'][_0x1da669]);}return _0x4c596c;},SocketConnectMessage['toObject']=function(_0x1e90d2,options,_0x37bae9){if(options||(options={}),void 0x0===_0x37bae9&&(_0x37bae9=0x0),_0x37bae9>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['permissions']=[]),options['defaults']&&(object['id']='',object['userId']='',object['role']=''),null!=_0x1e90d2['id']&&Object['hasOwnProperty']['call'](_0x1e90d2,'id')&&(object['id']=_0x1e90d2['id']),null!=_0x1e90d2['userId']&&Object['hasOwnProperty']['call'](_0x1e90d2,'userId')&&(object['userId']=_0x1e90d2['userId']),null!=_0x1e90d2['role']&&Object['hasOwnProperty']['call'](_0x1e90d2,'role')&&(object['role']=_0x1e90d2['role']),_0x1e90d2['permissions']&&_0x1e90d2['permissions']['length']){object['permissions']=[];for(var _0x33b9cb=0x0;_0x33b9cb<_0x1e90d2['permissions']['length'];++_0x33b9cb)object['permissions'][_0x33b9cb]=_0x1e90d2['permissions'][_0x33b9cb];}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 _0x120ff4=Object['keys'](properties),_0x16eb1a=0x0;_0x16eb1a<_0x120ff4['length'];++_0x16eb1a)null!=properties[_0x120ff4[_0x16eb1a]]&&'__proto__'!==_0x120ff4[_0x16eb1a]&&(this[_0x120ff4[_0x16eb1a]]=properties[_0x120ff4[_0x16eb1a]]);}}return SessionsConnectMessage['prototype']['id']='',SessionsConnectMessage['prototype']['sessionType']=0x0,SessionsConnectMessage['create']=function(properties){return new SessionsConnectMessage(properties);},SessionsConnectMessage['encode']=function(_0x322d43,writer,_0x4ac6e8){if(writer||(writer=$Writer['create']()),void 0x0===_0x4ac6e8&&(_0x4ac6e8=0x0),_0x4ac6e8>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x322d43['id']&&Object['hasOwnProperty']['call'](_0x322d43,'id')&&writer['uint32'](0xa)['string'](_0x322d43['id']),null!=_0x322d43['sessionType']&&Object['hasOwnProperty']['call'](_0x322d43,'sessionType')&&writer['uint32'](0x10)['uint32'](_0x322d43['sessionType']),writer;},SessionsConnectMessage['encodeDelimited']=function(_0x42756b,writer){return this['encode'](_0x42756b,writer)['ldelim']();},SessionsConnectMessage['decode']=function(_0x31c4b4,length,_0x4bfc33,_0x4929ad){if(_0x31c4b4 instanceof _0x470ccf||(_0x31c4b4=_0x470ccf['create'](_0x31c4b4)),void 0x0===_0x4929ad&&(_0x4929ad=0x0),_0x4929ad>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1a59be=void 0x0===length?_0x31c4b4['len']:_0x31c4b4['pos']+length,_0x1e349a=new $root['SessionsConnectMessage']();_0x31c4b4['pos']<_0x1a59be;){var tag=_0x31c4b4['uint32']();if(tag===_0x4bfc33)break;switch(tag>>>0x3){case 0x1:_0x1e349a['id']=_0x31c4b4['string']();break;case 0x2:_0x1e349a['sessionType']=_0x31c4b4['uint32']();break;default:_0x31c4b4['skipType'](0x7&tag,_0x4929ad);}}return _0x1e349a;},SessionsConnectMessage['decodeDelimited']=function(_0x341280){return _0x341280 instanceof _0x470ccf||(_0x341280=new _0x470ccf(_0x341280)),this['decode'](_0x341280,_0x341280['uint32']());},SessionsConnectMessage['verify']=function(_0x4d491c,_0x4a43dd){return'object'!=typeof _0x4d491c||null===_0x4d491c?'object\x20expected':(void 0x0===_0x4a43dd&&(_0x4a43dd=0x0),_0x4a43dd>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x4d491c['id']&&Object['hasOwnProperty']['call'](_0x4d491c,'id')&&!$util['isString'](_0x4d491c['id'])?'id:\x20string\x20expected':null!=_0x4d491c['sessionType']&&Object['hasOwnProperty']['call'](_0x4d491c,'sessionType')&&!$util['isInteger'](_0x4d491c['sessionType'])?'sessionType:\x20integer\x20expected':null);},SessionsConnectMessage['fromObject']=function(object,_0x433ec1){if(object instanceof $root['SessionsConnectMessage'])return object;if(!$util['isObject'](object))throw TypeError('.SessionsConnectMessage:\x20object\x20expected');if(void 0x0===_0x433ec1&&(_0x433ec1=0x0),_0x433ec1>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x37a33e=new $root['SessionsConnectMessage']();return null!=object['id']&&(_0x37a33e['id']=String(object['id'])),null!=object['sessionType']&&(_0x37a33e['sessionType']=object['sessionType']>>>0x0),_0x37a33e;},SessionsConnectMessage['toObject']=function(_0x3aef77,options,_0x3e5433){if(options||(options={}),void 0x0===_0x3e5433&&(_0x3e5433=0x0),_0x3e5433>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['id']='',object['sessionType']=0x0),null!=_0x3aef77['id']&&Object['hasOwnProperty']['call'](_0x3aef77,'id')&&(object['id']=_0x3aef77['id']),null!=_0x3aef77['sessionType']&&Object['hasOwnProperty']['call'](_0x3aef77,'sessionType')&&(object['sessionType']=_0x3aef77['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 _0x21b00d=Object['keys'](properties),_0x18e5e3=0x0;_0x18e5e3<_0x21b00d['length'];++_0x18e5e3)null!=properties[_0x21b00d[_0x18e5e3]]&&'__proto__'!==_0x21b00d[_0x18e5e3]&&(this[_0x21b00d[_0x18e5e3]]=properties[_0x21b00d[_0x18e5e3]]);}}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(_0x595212,writer,_0x2db002){if(writer||(writer=$Writer['create']()),void 0x0===_0x2db002&&(_0x2db002=0x0),_0x2db002>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x595212['session']&&Object['hasOwnProperty']['call'](_0x595212,'session')&&writer['uint32'](0xa)['string'](_0x595212['session']),null!=_0x595212['user']&&Object['hasOwnProperty']['call'](_0x595212,'user')&&writer['uint32'](0x12)['string'](_0x595212['user']),null!=_0x595212['role']&&Object['hasOwnProperty']['call'](_0x595212,'role')&&writer['uint32'](0x1a)['string'](_0x595212['role']),null!=_0x595212['permissions']&&_0x595212['permissions']['length']){for(var _0xfc6f3e=0x0;_0xfc6f3e<_0x595212['permissions']['length'];++_0xfc6f3e)writer['uint32'](0x22)['string'](_0x595212['permissions'][_0xfc6f3e]);}return writer;},SessionsSocketDescriptor['encodeDelimited']=function(_0x17ce2b,writer){return this['encode'](_0x17ce2b,writer)['ldelim']();},SessionsSocketDescriptor['decode']=function(_0x4edd01,length,_0x3cc527,_0x3215dd){if(_0x4edd01 instanceof _0x470ccf||(_0x4edd01=_0x470ccf['create'](_0x4edd01)),void 0x0===_0x3215dd&&(_0x3215dd=0x0),_0x3215dd>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x585cb5=void 0x0===length?_0x4edd01['len']:_0x4edd01['pos']+length,_0x27e83b=new $root['SessionsSocketDescriptor']();_0x4edd01['pos']<_0x585cb5;){var tag=_0x4edd01['uint32']();if(tag===_0x3cc527)break;switch(tag>>>0x3){case 0x1:_0x27e83b['session']=_0x4edd01['string']();break;case 0x2:_0x27e83b['user']=_0x4edd01['string']();break;case 0x3:_0x27e83b['role']=_0x4edd01['string']();break;case 0x4:_0x27e83b['permissions']&&_0x27e83b['permissions']['length']||(_0x27e83b['permissions']=[]),_0x27e83b['permissions']['push'](_0x4edd01['string']());break;default:_0x4edd01['skipType'](0x7&tag,_0x3215dd);}}return _0x27e83b;},SessionsSocketDescriptor['decodeDelimited']=function(_0x4c3b83){return _0x4c3b83 instanceof _0x470ccf||(_0x4c3b83=new _0x470ccf(_0x4c3b83)),this['decode'](_0x4c3b83,_0x4c3b83['uint32']());},SessionsSocketDescriptor['verify']=function(_0x164625,_0x59dd2e){if('object'!=typeof _0x164625||null===_0x164625)return'object\x20expected';if(void 0x0===_0x59dd2e&&(_0x59dd2e=0x0),_0x59dd2e>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x164625['session']&&Object['hasOwnProperty']['call'](_0x164625,'session')&&!$util['isString'](_0x164625['session']))return'session:\x20string\x20expected';if(null!=_0x164625['user']&&Object['hasOwnProperty']['call'](_0x164625,'user')&&!$util['isString'](_0x164625['user']))return'user:\x20string\x20expected';if(null!=_0x164625['role']&&Object['hasOwnProperty']['call'](_0x164625,'role')&&!$util['isString'](_0x164625['role']))return'role:\x20string\x20expected';if(null!=_0x164625['permissions']&&Object['hasOwnProperty']['call'](_0x164625,'permissions')){if(!Array['isArray'](_0x164625['permissions']))return'permissions:\x20array\x20expected';for(var _0x40f8bb=0x0;_0x40f8bb<_0x164625['permissions']['length'];++_0x40f8bb)if(!$util['isString'](_0x164625['permissions'][_0x40f8bb]))return'permissions:\x20string[]\x20expected';}return null;},SessionsSocketDescriptor['fromObject']=function(object,_0x5d18e7){if(object instanceof $root['SessionsSocketDescriptor'])return object;if(!$util['isObject'](object))throw TypeError('.SessionsSocketDescriptor:\x20object\x20expected');if(void 0x0===_0x5d18e7&&(_0x5d18e7=0x0),_0x5d18e7>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x14f0d5=new $root['SessionsSocketDescriptor']();if(null!=object['session']&&(_0x14f0d5['session']=String(object['session'])),null!=object['user']&&(_0x14f0d5['user']=String(object['user'])),null!=object['role']&&(_0x14f0d5['role']=String(object['role'])),object['permissions']){if(!Array['isArray'](object['permissions']))throw TypeError('.SessionsSocketDescriptor.permissions:\x20array\x20expected');_0x14f0d5['permissions']=[];for(var _0x31d4b1=0x0;_0x31d4b1<object['permissions']['length'];++_0x31d4b1)_0x14f0d5['permissions'][_0x31d4b1]=String(object['permissions'][_0x31d4b1]);}return _0x14f0d5;},SessionsSocketDescriptor['toObject']=function(_0xf3a58d,options,_0x2cca7c){if(options||(options={}),void 0x0===_0x2cca7c&&(_0x2cca7c=0x0),_0x2cca7c>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['permissions']=[]),options['defaults']&&(object['session']='',object['user']='',object['role']=''),null!=_0xf3a58d['session']&&Object['hasOwnProperty']['call'](_0xf3a58d,'session')&&(object['session']=_0xf3a58d['session']),null!=_0xf3a58d['user']&&Object['hasOwnProperty']['call'](_0xf3a58d,'user')&&(object['user']=_0xf3a58d['user']),null!=_0xf3a58d['role']&&Object['hasOwnProperty']['call'](_0xf3a58d,'role')&&(object['role']=_0xf3a58d['role']),_0xf3a58d['permissions']&&_0xf3a58d['permissions']['length']){object['permissions']=[];for(var _0x5f3cbc=0x0;_0x5f3cbc<_0xf3a58d['permissions']['length'];++_0x5f3cbc)object['permissions'][_0x5f3cbc]=_0xf3a58d['permissions'][_0x5f3cbc];}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 _0x364fa3=Object['keys'](properties),_0x45915f=0x0;_0x45915f<_0x364fa3['length'];++_0x45915f)null!=properties[_0x364fa3[_0x45915f]]&&'__proto__'!==_0x364fa3[_0x45915f]&&(this[_0x364fa3[_0x45915f]]=properties[_0x364fa3[_0x45915f]]);}}return RevisionHistoryUpdateRevisionsResponse['prototype']['requestId']=0x0,RevisionHistoryUpdateRevisionsResponse['create']=function(properties){return new RevisionHistoryUpdateRevisionsResponse(properties);},RevisionHistoryUpdateRevisionsResponse['encode']=function(_0x31a82d,writer,_0x56ff79){if(writer||(writer=$Writer['create']()),void 0x0===_0x56ff79&&(_0x56ff79=0x0),_0x56ff79>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x31a82d['requestId']&&Object['hasOwnProperty']['call'](_0x31a82d,'requestId')&&writer['uint32'](0x8)['uint32'](_0x31a82d['requestId']),writer;},RevisionHistoryUpdateRevisionsResponse['encodeDelimited']=function(_0x1cce24,writer){return this['encode'](_0x1cce24,writer)['ldelim']();},RevisionHistoryUpdateRevisionsResponse['decode']=function(_0x163eda,length,_0x42122c,_0x280fb4){if(_0x163eda instanceof _0x470ccf||(_0x163eda=_0x470ccf['create'](_0x163eda)),void 0x0===_0x280fb4&&(_0x280fb4=0x0),_0x280fb4>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4ba91a=void 0x0===length?_0x163eda['len']:_0x163eda['pos']+length,_0x32e25a=new $root['RevisionHistoryUpdateRevisionsResponse']();_0x163eda['pos']<_0x4ba91a;){var tag=_0x163eda['uint32']();if(tag===_0x42122c)break;if(tag>>>0x3==0x1)_0x32e25a['requestId']=_0x163eda['uint32']();else _0x163eda['skipType'](0x7&tag,_0x280fb4);}return _0x32e25a;},RevisionHistoryUpdateRevisionsResponse['decodeDelimited']=function(_0x4d6526){return _0x4d6526 instanceof _0x470ccf||(_0x4d6526=new _0x470ccf(_0x4d6526)),this['decode'](_0x4d6526,_0x4d6526['uint32']());},RevisionHistoryUpdateRevisionsResponse['verify']=function(_0x3e1c96,_0x1650d3){return'object'!=typeof _0x3e1c96||null===_0x3e1c96?'object\x20expected':(void 0x0===_0x1650d3&&(_0x1650d3=0x0),_0x1650d3>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3e1c96['requestId']&&Object['hasOwnProperty']['call'](_0x3e1c96,'requestId')&&!$util['isInteger'](_0x3e1c96['requestId'])?'requestId:\x20integer\x20expected':null);},RevisionHistoryUpdateRevisionsResponse['fromObject']=function(object,_0x74e275){if(object instanceof $root['RevisionHistoryUpdateRevisionsResponse'])return object;if(!$util['isObject'](object))throw TypeError('.RevisionHistoryUpdateRevisionsResponse:\x20object\x20expected');if(void 0x0===_0x74e275&&(_0x74e275=0x0),_0x74e275>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xc050ad=new $root['RevisionHistoryUpdateRevisionsResponse']();return null!=object['requestId']&&(_0xc050ad['requestId']=object['requestId']>>>0x0),_0xc050ad;},RevisionHistoryUpdateRevisionsResponse['toObject']=function(_0x3d7a45,options,_0x5020ec){if(options||(options={}),void 0x0===_0x5020ec&&(_0x5020ec=0x0),_0x5020ec>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['requestId']=0x0),null!=_0x3d7a45['requestId']&&Object['hasOwnProperty']['call'](_0x3d7a45,'requestId')&&(object['requestId']=_0x3d7a45['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 _0x432ebc=Object['keys'](properties),_0x1ef416=0x0;_0x1ef416<_0x432ebc['length'];++_0x1ef416)null!=properties[_0x432ebc[_0x1ef416]]&&'__proto__'!==_0x432ebc[_0x1ef416]&&(this[_0x432ebc[_0x1ef416]]=properties[_0x432ebc[_0x1ef416]]);}}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(_0x5235f5,writer,_0x1ec7e6){if(writer||(writer=$Writer['create']()),void 0x0===_0x1ec7e6&&(_0x1ec7e6=0x0),_0x1ec7e6>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x5235f5['revisionId']&&Object['hasOwnProperty']['call'](_0x5235f5,'revisionId')&&writer['uint32'](0xa)['string'](_0x5235f5['revisionId']),null!=_0x5235f5['name']&&Object['hasOwnProperty']['call'](_0x5235f5,'name')&&writer['uint32'](0x12)['string'](_0x5235f5['name']),null!=_0x5235f5['creatorId']&&Object['hasOwnProperty']['call'](_0x5235f5,'creatorId')&&writer['uint32'](0x1a)['string'](_0x5235f5['creatorId']),null!=_0x5235f5['authorsIds']&&Object['hasOwnProperty']['call'](_0x5235f5,'authorsIds')&&writer['uint32'](0x22)['string'](_0x5235f5['authorsIds']),null!=_0x5235f5['diffData']&&Object['hasOwnProperty']['call'](_0x5235f5,'diffData')&&writer['uint32'](0x2a)['string'](_0x5235f5['diffData']),null!=_0x5235f5['createdAt']&&Object['hasOwnProperty']['call'](_0x5235f5,'createdAt')&&writer['uint32'](0x32)['string'](_0x5235f5['createdAt']),null!=_0x5235f5['attributes']&&Object['hasOwnProperty']['call'](_0x5235f5,'attributes')&&writer['uint32'](0x3a)['string'](_0x5235f5['attributes']),null!=_0x5235f5['toVersion']&&Object['hasOwnProperty']['call'](_0x5235f5,'toVersion')&&writer['uint32'](0x40)['uint32'](_0x5235f5['toVersion']),null!=_0x5235f5['fromVersion']&&Object['hasOwnProperty']['call'](_0x5235f5,'fromVersion')&&writer['uint32'](0x48)['uint32'](_0x5235f5['fromVersion']),null!=_0x5235f5['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x5235f5,'isEmptyCurrent')&&writer['uint32'](0x50)['bool'](_0x5235f5['isEmptyCurrent']),writer;},RevisionHistoryGetRevisionResponse['encodeDelimited']=function(_0x329012,writer){return this['encode'](_0x329012,writer)['ldelim']();},RevisionHistoryGetRevisionResponse['decode']=function(_0x3ab7ec,length,_0x5cd4e5,_0x935e6a){if(_0x3ab7ec instanceof _0x470ccf||(_0x3ab7ec=_0x470ccf['create'](_0x3ab7ec)),void 0x0===_0x935e6a&&(_0x935e6a=0x0),_0x935e6a>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x511022=void 0x0===length?_0x3ab7ec['len']:_0x3ab7ec['pos']+length,_0xa6ddf3=new $root['RevisionHistoryGetRevisionResponse']();_0x3ab7ec['pos']<_0x511022;){var tag=_0x3ab7ec['uint32']();if(tag===_0x5cd4e5)break;switch(tag>>>0x3){case 0x1:_0xa6ddf3['revisionId']=_0x3ab7ec['string']();break;case 0x2:_0xa6ddf3['name']=_0x3ab7ec['string']();break;case 0x3:_0xa6ddf3['creatorId']=_0x3ab7ec['string']();break;case 0x4:_0xa6ddf3['authorsIds']=_0x3ab7ec['string']();break;case 0x5:_0xa6ddf3['diffData']=_0x3ab7ec['string']();break;case 0x6:_0xa6ddf3['createdAt']=_0x3ab7ec['string']();break;case 0x7:_0xa6ddf3['attributes']=_0x3ab7ec['string']();break;case 0x8:_0xa6ddf3['toVersion']=_0x3ab7ec['uint32']();break;case 0x9:_0xa6ddf3['fromVersion']=_0x3ab7ec['uint32']();break;case 0xa:_0xa6ddf3['isEmptyCurrent']=_0x3ab7ec['bool']();break;default:_0x3ab7ec['skipType'](0x7&tag,_0x935e6a);}}return _0xa6ddf3;},RevisionHistoryGetRevisionResponse['decodeDelimited']=function(_0x5064f2){return _0x5064f2 instanceof _0x470ccf||(_0x5064f2=new _0x470ccf(_0x5064f2)),this['decode'](_0x5064f2,_0x5064f2['uint32']());},RevisionHistoryGetRevisionResponse['verify']=function(_0xef91f,_0xf26695){return'object'!=typeof _0xef91f||null===_0xef91f?'object\x20expected':(void 0x0===_0xf26695&&(_0xf26695=0x0),_0xf26695>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0xef91f['revisionId']&&Object['hasOwnProperty']['call'](_0xef91f,'revisionId')&&!$util['isString'](_0xef91f['revisionId'])?'revisionId:\x20string\x20expected':null!=_0xef91f['name']&&Object['hasOwnProperty']['call'](_0xef91f,'name')&&!$util['isString'](_0xef91f['name'])?'name:\x20string\x20expected':null!=_0xef91f['creatorId']&&Object['hasOwnProperty']['call'](_0xef91f,'creatorId')&&!$util['isString'](_0xef91f['creatorId'])?'creatorId:\x20string\x20expected':null!=_0xef91f['authorsIds']&&Object['hasOwnProperty']['call'](_0xef91f,'authorsIds')&&!$util['isString'](_0xef91f['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0xef91f['diffData']&&Object['hasOwnProperty']['call'](_0xef91f,'diffData')&&!$util['isString'](_0xef91f['diffData'])?'diffData:\x20string\x20expected':null!=_0xef91f['createdAt']&&Object['hasOwnProperty']['call'](_0xef91f,'createdAt')&&!$util['isString'](_0xef91f['createdAt'])?'createdAt:\x20string\x20expected':null!=_0xef91f['attributes']&&Object['hasOwnProperty']['call'](_0xef91f,'attributes')&&!$util['isString'](_0xef91f['attributes'])?'attributes:\x20string\x20expected':null!=_0xef91f['toVersion']&&Object['hasOwnProperty']['call'](_0xef91f,'toVersion')&&!$util['isInteger'](_0xef91f['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0xef91f['fromVersion']&&Object['hasOwnProperty']['call'](_0xef91f,'fromVersion')&&!$util['isInteger'](_0xef91f['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0xef91f['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0xef91f,'isEmptyCurrent')&&'boolean'!=typeof _0xef91f['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null);},RevisionHistoryGetRevisionResponse['fromObject']=function(object,_0x20f926){if(object instanceof $root['RevisionHistoryGetRevisionResponse'])return object;if(!$util['isObject'](object))throw TypeError('.RevisionHistoryGetRevisionResponse:\x20object\x20expected');if(void 0x0===_0x20f926&&(_0x20f926=0x0),_0x20f926>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x32426a=new $root['RevisionHistoryGetRevisionResponse']();return null!=object['revisionId']&&(_0x32426a['revisionId']=String(object['revisionId'])),null!=object['name']&&(_0x32426a['name']=String(object['name'])),null!=object['creatorId']&&(_0x32426a['creatorId']=String(object['creatorId'])),null!=object['authorsIds']&&(_0x32426a['authorsIds']=String(object['authorsIds'])),null!=object['diffData']&&(_0x32426a['diffData']=String(object['diffData'])),null!=object['createdAt']&&(_0x32426a['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x32426a['attributes']=String(object['attributes'])),null!=object['toVersion']&&(_0x32426a['toVersion']=object['toVersion']>>>0x0),null!=object['fromVersion']&&(_0x32426a['fromVersion']=object['fromVersion']>>>0x0),null!=object['isEmptyCurrent']&&(_0x32426a['isEmptyCurrent']=Boolean(object['isEmptyCurrent'])),_0x32426a;},RevisionHistoryGetRevisionResponse['toObject']=function(_0x2687b7,options,_0x561307){if(options||(options={}),void 0x0===_0x561307&&(_0x561307=0x0),_0x561307>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');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!=_0x2687b7['revisionId']&&Object['hasOwnProperty']['call'](_0x2687b7,'revisionId')&&(object['revisionId']=_0x2687b7['revisionId']),null!=_0x2687b7['name']&&Object['hasOwnProperty']['call'](_0x2687b7,'name')&&(object['name']=_0x2687b7['name']),null!=_0x2687b7['creatorId']&&Object['hasOwnProperty']['call'](_0x2687b7,'creatorId')&&(object['creatorId']=_0x2687b7['creatorId']),null!=_0x2687b7['authorsIds']&&Object['hasOwnProperty']['call'](_0x2687b7,'authorsIds')&&(object['authorsIds']=_0x2687b7['authorsIds']),null!=_0x2687b7['diffData']&&Object['hasOwnProperty']['call'](_0x2687b7,'diffData')&&(object['diffData']=_0x2687b7['diffData']),null!=_0x2687b7['createdAt']&&Object['hasOwnProperty']['call'](_0x2687b7,'createdAt')&&(object['createdAt']=_0x2687b7['createdAt']),null!=_0x2687b7['attributes']&&Object['hasOwnProperty']['call'](_0x2687b7,'attributes')&&(object['attributes']=_0x2687b7['attributes']),null!=_0x2687b7['toVersion']&&Object['hasOwnProperty']['call'](_0x2687b7,'toVersion')&&(object['toVersion']=_0x2687b7['toVersion']),null!=_0x2687b7['fromVersion']&&Object['hasOwnProperty']['call'](_0x2687b7,'fromVersion')&&(object['fromVersion']=_0x2687b7['fromVersion']),null!=_0x2687b7['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x2687b7,'isEmptyCurrent')&&(object['isEmptyCurrent']=_0x2687b7['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 _0x24a64e=Object['keys'](properties),_0x28a4a5=0x0;_0x28a4a5<_0x24a64e['length'];++_0x28a4a5)null!=properties[_0x24a64e[_0x28a4a5]]&&'__proto__'!==_0x24a64e[_0x28a4a5]&&(this[_0x24a64e[_0x28a4a5]]=properties[_0x24a64e[_0x28a4a5]]);}}return RevisionHistoryConnectResponse['prototype']['channel']='',RevisionHistoryConnectResponse['prototype']['requestId']=0x0,RevisionHistoryConnectResponse['prototype']['revisions']=$util['emptyArray'],RevisionHistoryConnectResponse['create']=function(properties){return new RevisionHistoryConnectResponse(properties);},RevisionHistoryConnectResponse['encode']=function(_0x1b8bbc,writer,_0x1ba1c5){if(writer||(writer=$Writer['create']()),void 0x0===_0x1ba1c5&&(_0x1ba1c5=0x0),_0x1ba1c5>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x1b8bbc['channel']&&Object['hasOwnProperty']['call'](_0x1b8bbc,'channel')&&writer['uint32'](0xa)['string'](_0x1b8bbc['channel']),null!=_0x1b8bbc['requestId']&&Object['hasOwnProperty']['call'](_0x1b8bbc,'requestId')&&writer['uint32'](0x10)['uint32'](_0x1b8bbc['requestId']),null!=_0x1b8bbc['revisions']&&_0x1b8bbc['revisions']['length']){for(var _0x336dc8=0x0;_0x336dc8<_0x1b8bbc['revisions']['length'];++_0x336dc8)$root['RevisionDescriptor']['encode'](_0x1b8bbc['revisions'][_0x336dc8],writer['uint32'](0x1a)['fork'](),_0x1ba1c5+0x1)['ldelim']();}return writer;},RevisionHistoryConnectResponse['encodeDelimited']=function(_0x7a6698,writer){return this['encode'](_0x7a6698,writer)['ldelim']();},RevisionHistoryConnectResponse['decode']=function(_0xa46d78,length,_0x11475b,_0x41706d){if(_0xa46d78 instanceof _0x470ccf||(_0xa46d78=_0x470ccf['create'](_0xa46d78)),void 0x0===_0x41706d&&(_0x41706d=0x0),_0x41706d>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5e0c26=void 0x0===length?_0xa46d78['len']:_0xa46d78['pos']+length,_0x2814ba=new $root['RevisionHistoryConnectResponse']();_0xa46d78['pos']<_0x5e0c26;){var tag=_0xa46d78['uint32']();if(tag===_0x11475b)break;switch(tag>>>0x3){case 0x1:_0x2814ba['channel']=_0xa46d78['string']();break;case 0x2:_0x2814ba['requestId']=_0xa46d78['uint32']();break;case 0x3:_0x2814ba['revisions']&&_0x2814ba['revisions']['length']||(_0x2814ba['revisions']=[]),_0x2814ba['revisions']['push']($root['RevisionDescriptor']['decode'](_0xa46d78,_0xa46d78['uint32'](),void 0x0,_0x41706d+0x1));break;default:_0xa46d78['skipType'](0x7&tag,_0x41706d);}}return _0x2814ba;},RevisionHistoryConnectResponse['decodeDelimited']=function(_0x3158a2){return _0x3158a2 instanceof _0x470ccf||(_0x3158a2=new _0x470ccf(_0x3158a2)),this['decode'](_0x3158a2,_0x3158a2['uint32']());},RevisionHistoryConnectResponse['verify']=function(_0x3438cb,_0x1297dd){if('object'!=typeof _0x3438cb||null===_0x3438cb)return'object\x20expected';if(void 0x0===_0x1297dd&&(_0x1297dd=0x0),_0x1297dd>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x3438cb['channel']&&Object['hasOwnProperty']['call'](_0x3438cb,'channel')&&!$util['isString'](_0x3438cb['channel']))return'channel:\x20string\x20expected';if(null!=_0x3438cb['requestId']&&Object['hasOwnProperty']['call'](_0x3438cb,'requestId')&&!$util['isInteger'](_0x3438cb['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x3438cb['revisions']&&Object['hasOwnProperty']['call'](_0x3438cb,'revisions')){if(!Array['isArray'](_0x3438cb['revisions']))return'revisions:\x20array\x20expected';for(var _0x4d1727=0x0;_0x4d1727<_0x3438cb['revisions']['length'];++_0x4d1727){var _0x324cb1=$root['RevisionDescriptor']['verify'](_0x3438cb['revisions'][_0x4d1727],_0x1297dd+0x1);if(_0x324cb1)return'revisions.'+_0x324cb1;}}return null;},RevisionHistoryConnectResponse['fromObject']=function(object,_0x4bf2d7){if(object instanceof $root['RevisionHistoryConnectResponse'])return object;if(!$util['isObject'](object))throw TypeError('.RevisionHistoryConnectResponse:\x20object\x20expected');if(void 0x0===_0x4bf2d7&&(_0x4bf2d7=0x0),_0x4bf2d7>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2ca560=new $root['RevisionHistoryConnectResponse']();if(null!=object['channel']&&(_0x2ca560['channel']=String(object['channel'])),null!=object['requestId']&&(_0x2ca560['requestId']=object['requestId']>>>0x0),object['revisions']){if(!Array['isArray'](object['revisions']))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20array\x20expected');_0x2ca560['revisions']=[];for(var _0x5efb43=0x0;_0x5efb43<object['revisions']['length'];++_0x5efb43){if(!$util['isObject'](object['revisions'][_0x5efb43]))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20object\x20expected');_0x2ca560['revisions'][_0x5efb43]=$root['RevisionDescriptor']['fromObject'](object['revisions'][_0x5efb43],_0x4bf2d7+0x1);}}return _0x2ca560;},RevisionHistoryConnectResponse['toObject']=function(_0x37a557,options,_0x22710c){if(options||(options={}),void 0x0===_0x22710c&&(_0x22710c=0x0),_0x22710c>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['revisions']=[]),options['defaults']&&(object['channel']='',object['requestId']=0x0),null!=_0x37a557['channel']&&Object['hasOwnProperty']['call'](_0x37a557,'channel')&&(object['channel']=_0x37a557['channel']),null!=_0x37a557['requestId']&&Object['hasOwnProperty']['call'](_0x37a557,'requestId')&&(object['requestId']=_0x37a557['requestId']),_0x37a557['revisions']&&_0x37a557['revisions']['length']){object['revisions']=[];for(var _0x198a7f=0x0;_0x198a7f<_0x37a557['revisions']['length'];++_0x198a7f)object['revisions'][_0x198a7f]=$root['RevisionDescriptor']['toObject'](_0x37a557['revisions'][_0x198a7f],options,_0x22710c+0x1);}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 _0x10a47c=Object['keys'](properties),_0x5bc434=0x0;_0x5bc434<_0x10a47c['length'];++_0x5bc434)null!=properties[_0x10a47c[_0x5bc434]]&&'__proto__'!==_0x10a47c[_0x5bc434]&&(this[_0x10a47c[_0x5bc434]]=properties[_0x10a47c[_0x5bc434]]);}}return RevisionHistoryUpdateRevisionsMessage['prototype']['documentId']='',RevisionHistoryUpdateRevisionsMessage['prototype']['requestId']=0x0,RevisionHistoryUpdateRevisionsMessage['prototype']['revisions']=$util['emptyArray'],RevisionHistoryUpdateRevisionsMessage['create']=function(properties){return new RevisionHistoryUpdateRevisionsMessage(properties);},RevisionHistoryUpdateRevisionsMessage['encode']=function(_0x11d0d2,writer,_0x1d7dd1){if(writer||(writer=$Writer['create']()),void 0x0===_0x1d7dd1&&(_0x1d7dd1=0x0),_0x1d7dd1>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x11d0d2['documentId']&&Object['hasOwnProperty']['call'](_0x11d0d2,'documentId')&&writer['uint32'](0xa)['string'](_0x11d0d2['documentId']),null!=_0x11d0d2['requestId']&&Object['hasOwnProperty']['call'](_0x11d0d2,'requestId')&&writer['uint32'](0x10)['uint32'](_0x11d0d2['requestId']),null!=_0x11d0d2['revisions']&&_0x11d0d2['revisions']['length']){for(var _0x33d75c=0x0;_0x33d75c<_0x11d0d2['revisions']['length'];++_0x33d75c)$root['RevisionDescriptor']['encode'](_0x11d0d2['revisions'][_0x33d75c],writer['uint32'](0x1a)['fork'](),_0x1d7dd1+0x1)['ldelim']();}return writer;},RevisionHistoryUpdateRevisionsMessage['encodeDelimited']=function(_0x33cf5e,writer){return this['encode'](_0x33cf5e,writer)['ldelim']();},RevisionHistoryUpdateRevisionsMessage['decode']=function(_0x41b8b7,length,_0x22b449,_0x3789db){if(_0x41b8b7 instanceof _0x470ccf||(_0x41b8b7=_0x470ccf['create'](_0x41b8b7)),void 0x0===_0x3789db&&(_0x3789db=0x0),_0x3789db>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4a5d45=void 0x0===length?_0x41b8b7['len']:_0x41b8b7['pos']+length,_0x50c712=new $root['RevisionHistoryUpdateRevisionsMessage']();_0x41b8b7['pos']<_0x4a5d45;){var tag=_0x41b8b7['uint32']();if(tag===_0x22b449)break;switch(tag>>>0x3){case 0x1:_0x50c712['documentId']=_0x41b8b7['string']();break;case 0x2:_0x50c712['requestId']=_0x41b8b7['uint32']();break;case 0x3:_0x50c712['revisions']&&_0x50c712['revisions']['length']||(_0x50c712['revisions']=[]),_0x50c712['revisions']['push']($root['RevisionDescriptor']['decode'](_0x41b8b7,_0x41b8b7['uint32'](),void 0x0,_0x3789db+0x1));break;default:_0x41b8b7['skipType'](0x7&tag,_0x3789db);}}return _0x50c712;},RevisionHistoryUpdateRevisionsMessage['decodeDelimited']=function(_0x5786aa){return _0x5786aa instanceof _0x470ccf||(_0x5786aa=new _0x470ccf(_0x5786aa)),this['decode'](_0x5786aa,_0x5786aa['uint32']());},RevisionHistoryUpdateRevisionsMessage['verify']=function(_0x5dcf74,_0x2e3f0e){if('object'!=typeof _0x5dcf74||null===_0x5dcf74)return'object\x20expected';if(void 0x0===_0x2e3f0e&&(_0x2e3f0e=0x0),_0x2e3f0e>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x5dcf74['documentId']&&Object['hasOwnProperty']['call'](_0x5dcf74,'documentId')&&!$util['isString'](_0x5dcf74['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x5dcf74['requestId']&&Object['hasOwnProperty']['call'](_0x5dcf74,'requestId')&&!$util['isInteger'](_0x5dcf74['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x5dcf74['revisions']&&Object['hasOwnProperty']['call'](_0x5dcf74,'revisions')){if(!Array['isArray'](_0x5dcf74['revisions']))return'revisions:\x20array\x20expected';for(var _0x1aba0d=0x0;_0x1aba0d<_0x5dcf74['revisions']['length'];++_0x1aba0d){var _0x3567ad=$root['RevisionDescriptor']['verify'](_0x5dcf74['revisions'][_0x1aba0d],_0x2e3f0e+0x1);if(_0x3567ad)return'revisions.'+_0x3567ad;}}return null;},RevisionHistoryUpdateRevisionsMessage['fromObject']=function(object,_0x22fc5c){if(object instanceof $root['RevisionHistoryUpdateRevisionsMessage'])return object;if(!$util['isObject'](object))throw TypeError('.RevisionHistoryUpdateRevisionsMessage:\x20object\x20expected');if(void 0x0===_0x22fc5c&&(_0x22fc5c=0x0),_0x22fc5c>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5de7e7=new $root['RevisionHistoryUpdateRevisionsMessage']();if(null!=object['documentId']&&(_0x5de7e7['documentId']=String(object['documentId'])),null!=object['requestId']&&(_0x5de7e7['requestId']=object['requestId']>>>0x0),object['revisions']){if(!Array['isArray'](object['revisions']))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20array\x20expected');_0x5de7e7['revisions']=[];for(var _0x103666=0x0;_0x103666<object['revisions']['length'];++_0x103666){if(!$util['isObject'](object['revisions'][_0x103666]))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20object\x20expected');_0x5de7e7['revisions'][_0x103666]=$root['RevisionDescriptor']['fromObject'](object['revisions'][_0x103666],_0x22fc5c+0x1);}}return _0x5de7e7;},RevisionHistoryUpdateRevisionsMessage['toObject']=function(_0x1c2830,options,_0x5eabf1){if(options||(options={}),void 0x0===_0x5eabf1&&(_0x5eabf1=0x0),_0x5eabf1>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['revisions']=[]),options['defaults']&&(object['documentId']='',object['requestId']=0x0),null!=_0x1c2830['documentId']&&Object['hasOwnProperty']['call'](_0x1c2830,'documentId')&&(object['documentId']=_0x1c2830['documentId']),null!=_0x1c2830['requestId']&&Object['hasOwnProperty']['call'](_0x1c2830,'requestId')&&(object['requestId']=_0x1c2830['requestId']),_0x1c2830['revisions']&&_0x1c2830['revisions']['length']){object['revisions']=[];for(var _0x501793=0x0;_0x501793<_0x1c2830['revisions']['length'];++_0x501793)object['revisions'][_0x501793]=$root['RevisionDescriptor']['toObject'](_0x1c2830['revisions'][_0x501793],options,_0x5eabf1+0x1);}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 _0x1241a4=Object['keys'](properties),_0x3d9cde=0x0;_0x3d9cde<_0x1241a4['length'];++_0x3d9cde)null!=properties[_0x1241a4[_0x3d9cde]]&&'__proto__'!==_0x1241a4[_0x3d9cde]&&(this[_0x1241a4[_0x3d9cde]]=properties[_0x1241a4[_0x3d9cde]]);}}return RevisionHistoryReconnectMessage['prototype']['documentId']='',RevisionHistoryReconnectMessage['prototype']['requestId']=0x0,RevisionHistoryReconnectMessage['create']=function(properties){return new RevisionHistoryReconnectMessage(properties);},RevisionHistoryReconnectMessage['encode']=function(_0x14f71a,writer,_0x19c3eb){if(writer||(writer=$Writer['create']()),void 0x0===_0x19c3eb&&(_0x19c3eb=0x0),_0x19c3eb>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x14f71a['documentId']&&Object['hasOwnProperty']['call'](_0x14f71a,'documentId')&&writer['uint32'](0xa)['string'](_0x14f71a['documentId']),null!=_0x14f71a['requestId']&&Object['hasOwnProperty']['call'](_0x14f71a,'requestId')&&writer['uint32'](0x10)['uint32'](_0x14f71a['requestId']),writer;},RevisionHistoryReconnectMessage['encodeDelimited']=function(_0x2de14c,writer){return this['encode'](_0x2de14c,writer)['ldelim']();},RevisionHistoryReconnectMessage['decode']=function(_0x33c6ac,length,_0x11ecca,_0x5ac15f){if(_0x33c6ac instanceof _0x470ccf||(_0x33c6ac=_0x470ccf['create'](_0x33c6ac)),void 0x0===_0x5ac15f&&(_0x5ac15f=0x0),_0x5ac15f>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x30f7ec=void 0x0===length?_0x33c6ac['len']:_0x33c6ac['pos']+length,_0x3944a2=new $root['RevisionHistoryReconnectMessage']();_0x33c6ac['pos']<_0x30f7ec;){var tag=_0x33c6ac['uint32']();if(tag===_0x11ecca)break;switch(tag>>>0x3){case 0x1:_0x3944a2['documentId']=_0x33c6ac['string']();break;case 0x2:_0x3944a2['requestId']=_0x33c6ac['uint32']();break;default:_0x33c6ac['skipType'](0x7&tag,_0x5ac15f);}}return _0x3944a2;},RevisionHistoryReconnectMessage['decodeDelimited']=function(_0x352fff){return _0x352fff instanceof _0x470ccf||(_0x352fff=new _0x470ccf(_0x352fff)),this['decode'](_0x352fff,_0x352fff['uint32']());},RevisionHistoryReconnectMessage['verify']=function(_0x26e28b,_0x118c0e){return'object'!=typeof _0x26e28b||null===_0x26e28b?'object\x20expected':(void 0x0===_0x118c0e&&(_0x118c0e=0x0),_0x118c0e>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x26e28b['documentId']&&Object['hasOwnProperty']['call'](_0x26e28b,'documentId')&&!$util['isString'](_0x26e28b['documentId'])?'documentId:\x20string\x20expected':null!=_0x26e28b['requestId']&&Object['hasOwnProperty']['call'](_0x26e28b,'requestId')&&!$util['isInteger'](_0x26e28b['requestId'])?'requestId:\x20integer\x20expected':null);},RevisionHistoryReconnectMessage['fromObject']=function(object,_0x497e6c){if(object instanceof $root['RevisionHistoryReconnectMessage'])return object;if(!$util['isObject'](object))throw TypeError('.RevisionHistoryReconnectMessage:\x20object\x20expected');if(void 0x0===_0x497e6c&&(_0x497e6c=0x0),_0x497e6c>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5df3b5=new $root['RevisionHistoryReconnectMessage']();return null!=object['documentId']&&(_0x5df3b5['documentId']=String(object['documentId'])),null!=object['requestId']&&(_0x5df3b5['requestId']=object['requestId']>>>0x0),_0x5df3b5;},RevisionHistoryReconnectMessage['toObject']=function(_0x370cb6,options,_0x132a8b){if(options||(options={}),void 0x0===_0x132a8b&&(_0x132a8b=0x0),_0x132a8b>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['documentId']='',object['requestId']=0x0),null!=_0x370cb6['documentId']&&Object['hasOwnProperty']['call'](_0x370cb6,'documentId')&&(object['documentId']=_0x370cb6['documentId']),null!=_0x370cb6['requestId']&&Object['hasOwnProperty']['call'](_0x370cb6,'requestId')&&(object['requestId']=_0x370cb6['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 _0x5985a4=Object['keys'](properties),_0x33e01f=0x0;_0x33e01f<_0x5985a4['length'];++_0x33e01f)null!=properties[_0x5985a4[_0x33e01f]]&&'__proto__'!==_0x5985a4[_0x33e01f]&&(this[_0x5985a4[_0x33e01f]]=properties[_0x5985a4[_0x33e01f]]);}}return RevisionHistoryGetRevisionMessage['prototype']['documentId']='',RevisionHistoryGetRevisionMessage['prototype']['revisionId']='',RevisionHistoryGetRevisionMessage['create']=function(properties){return new RevisionHistoryGetRevisionMessage(properties);},RevisionHistoryGetRevisionMessage['encode']=function(_0xd61876,writer,_0x5e2520){if(writer||(writer=$Writer['create']()),void 0x0===_0x5e2520&&(_0x5e2520=0x0),_0x5e2520>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0xd61876['documentId']&&Object['hasOwnProperty']['call'](_0xd61876,'documentId')&&writer['uint32'](0xa)['string'](_0xd61876['documentId']),null!=_0xd61876['revisionId']&&Object['hasOwnProperty']['call'](_0xd61876,'revisionId')&&writer['uint32'](0x12)['string'](_0xd61876['revisionId']),writer;},RevisionHistoryGetRevisionMessage['encodeDelimited']=function(_0x26409d,writer){return this['encode'](_0x26409d,writer)['ldelim']();},RevisionHistoryGetRevisionMessage['decode']=function(_0x1dcd53,length,_0x385933,_0x5845cd){if(_0x1dcd53 instanceof _0x470ccf||(_0x1dcd53=_0x470ccf['create'](_0x1dcd53)),void 0x0===_0x5845cd&&(_0x5845cd=0x0),_0x5845cd>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1b7dc5=void 0x0===length?_0x1dcd53['len']:_0x1dcd53['pos']+length,_0x34fb07=new $root['RevisionHistoryGetRevisionMessage']();_0x1dcd53['pos']<_0x1b7dc5;){var tag=_0x1dcd53['uint32']();if(tag===_0x385933)break;switch(tag>>>0x3){case 0x1:_0x34fb07['documentId']=_0x1dcd53['string']();break;case 0x2:_0x34fb07['revisionId']=_0x1dcd53['string']();break;default:_0x1dcd53['skipType'](0x7&tag,_0x5845cd);}}return _0x34fb07;},RevisionHistoryGetRevisionMessage['decodeDelimited']=function(_0x55d658){return _0x55d658 instanceof _0x470ccf||(_0x55d658=new _0x470ccf(_0x55d658)),this['decode'](_0x55d658,_0x55d658['uint32']());},RevisionHistoryGetRevisionMessage['verify']=function(_0x3700d1,_0xe5cda5){return'object'!=typeof _0x3700d1||null===_0x3700d1?'object\x20expected':(void 0x0===_0xe5cda5&&(_0xe5cda5=0x0),_0xe5cda5>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3700d1['documentId']&&Object['hasOwnProperty']['call'](_0x3700d1,'documentId')&&!$util['isString'](_0x3700d1['documentId'])?'documentId:\x20string\x20expected':null!=_0x3700d1['revisionId']&&Object['hasOwnProperty']['call'](_0x3700d1,'revisionId')&&!$util['isString'](_0x3700d1['revisionId'])?'revisionId:\x20string\x20expected':null);},RevisionHistoryGetRevisionMessage['fromObject']=function(object,_0x58bb5f){if(object instanceof $root['RevisionHistoryGetRevisionMessage'])return object;if(!$util['isObject'](object))throw TypeError('.RevisionHistoryGetRevisionMessage:\x20object\x20expected');if(void 0x0===_0x58bb5f&&(_0x58bb5f=0x0),_0x58bb5f>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xb7dfa7=new $root['RevisionHistoryGetRevisionMessage']();return null!=object['documentId']&&(_0xb7dfa7['documentId']=String(object['documentId'])),null!=object['revisionId']&&(_0xb7dfa7['revisionId']=String(object['revisionId'])),_0xb7dfa7;},RevisionHistoryGetRevisionMessage['toObject']=function(_0x4e079c,options,_0x1dbf7f){if(options||(options={}),void 0x0===_0x1dbf7f&&(_0x1dbf7f=0x0),_0x1dbf7f>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['documentId']='',object['revisionId']=''),null!=_0x4e079c['documentId']&&Object['hasOwnProperty']['call'](_0x4e079c,'documentId')&&(object['documentId']=_0x4e079c['documentId']),null!=_0x4e079c['revisionId']&&Object['hasOwnProperty']['call'](_0x4e079c,'revisionId')&&(object['revisionId']=_0x4e079c['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 _0x19b9c3=Object['keys'](properties),_0x3b8a86=0x0;_0x3b8a86<_0x19b9c3['length'];++_0x3b8a86)null!=properties[_0x19b9c3[_0x3b8a86]]&&'__proto__'!==_0x19b9c3[_0x3b8a86]&&(this[_0x19b9c3[_0x3b8a86]]=properties[_0x19b9c3[_0x3b8a86]]);}}return RevisionHistoryConnectMessage['prototype']['documentId']='',RevisionHistoryConnectMessage['create']=function(properties){return new RevisionHistoryConnectMessage(properties);},RevisionHistoryConnectMessage['encode']=function(_0x1a6326,writer,_0xd5eb7a){if(writer||(writer=$Writer['create']()),void 0x0===_0xd5eb7a&&(_0xd5eb7a=0x0),_0xd5eb7a>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x1a6326['documentId']&&Object['hasOwnProperty']['call'](_0x1a6326,'documentId')&&writer['uint32'](0xa)['string'](_0x1a6326['documentId']),writer;},RevisionHistoryConnectMessage['encodeDelimited']=function(_0x97f079,writer){return this['encode'](_0x97f079,writer)['ldelim']();},RevisionHistoryConnectMessage['decode']=function(_0x36cd42,length,_0xc2a43b,_0xf8ba6e){if(_0x36cd42 instanceof _0x470ccf||(_0x36cd42=_0x470ccf['create'](_0x36cd42)),void 0x0===_0xf8ba6e&&(_0xf8ba6e=0x0),_0xf8ba6e>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x21b437=void 0x0===length?_0x36cd42['len']:_0x36cd42['pos']+length,_0x28bf2f=new $root['RevisionHistoryConnectMessage']();_0x36cd42['pos']<_0x21b437;){var tag=_0x36cd42['uint32']();if(tag===_0xc2a43b)break;if(tag>>>0x3==0x1)_0x28bf2f['documentId']=_0x36cd42['string']();else _0x36cd42['skipType'](0x7&tag,_0xf8ba6e);}return _0x28bf2f;},RevisionHistoryConnectMessage['decodeDelimited']=function(_0x33af23){return _0x33af23 instanceof _0x470ccf||(_0x33af23=new _0x470ccf(_0x33af23)),this['decode'](_0x33af23,_0x33af23['uint32']());},RevisionHistoryConnectMessage['verify']=function(_0x1b6a8f,_0x41f56b){return'object'!=typeof _0x1b6a8f||null===_0x1b6a8f?'object\x20expected':(void 0x0===_0x41f56b&&(_0x41f56b=0x0),_0x41f56b>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x1b6a8f['documentId']&&Object['hasOwnProperty']['call'](_0x1b6a8f,'documentId')&&!$util['isString'](_0x1b6a8f['documentId'])?'documentId:\x20string\x20expected':null);},RevisionHistoryConnectMessage['fromObject']=function(object,_0x442efd){if(object instanceof $root['RevisionHistoryConnectMessage'])return object;if(!$util['isObject'](object))throw TypeError('.RevisionHistoryConnectMessage:\x20object\x20expected');if(void 0x0===_0x442efd&&(_0x442efd=0x0),_0x442efd>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xd290a4=new $root['RevisionHistoryConnectMessage']();return null!=object['documentId']&&(_0xd290a4['documentId']=String(object['documentId'])),_0xd290a4;},RevisionHistoryConnectMessage['toObject']=function(_0x1ee9f6,options,_0x4fd777){if(options||(options={}),void 0x0===_0x4fd777&&(_0x4fd777=0x0),_0x4fd777>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['documentId']=''),null!=_0x1ee9f6['documentId']&&Object['hasOwnProperty']['call'](_0x1ee9f6,'documentId')&&(object['documentId']=_0x1ee9f6['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 _0x57dfbb=Object['keys'](properties),_0x55cbfd=0x0;_0x55cbfd<_0x57dfbb['length'];++_0x55cbfd)null!=properties[_0x57dfbb[_0x55cbfd]]&&'__proto__'!==_0x57dfbb[_0x55cbfd]&&(this[_0x57dfbb[_0x55cbfd]]=properties[_0x57dfbb[_0x55cbfd]]);}}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(_0x207d6a,writer,_0x3ec2ba){if(writer||(writer=$Writer['create']()),void 0x0===_0x3ec2ba&&(_0x3ec2ba=0x0),_0x3ec2ba>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x207d6a['revisionId']&&Object['hasOwnProperty']['call'](_0x207d6a,'revisionId')&&writer['uint32'](0xa)['string'](_0x207d6a['revisionId']),null!=_0x207d6a['name']&&Object['hasOwnProperty']['call'](_0x207d6a,'name')&&writer['uint32'](0x12)['string'](_0x207d6a['name']),null!=_0x207d6a['creatorId']&&Object['hasOwnProperty']['call'](_0x207d6a,'creatorId')&&writer['uint32'](0x1a)['string'](_0x207d6a['creatorId']),null!=_0x207d6a['authorsIds']&&Object['hasOwnProperty']['call'](_0x207d6a,'authorsIds')&&writer['uint32'](0x22)['string'](_0x207d6a['authorsIds']),null!=_0x207d6a['diffData']&&Object['hasOwnProperty']['call'](_0x207d6a,'diffData')&&writer['uint32'](0x2a)['string'](_0x207d6a['diffData']),null!=_0x207d6a['createdAt']&&Object['hasOwnProperty']['call'](_0x207d6a,'createdAt')&&writer['uint32'](0x32)['string'](_0x207d6a['createdAt']),null!=_0x207d6a['attributes']&&Object['hasOwnProperty']['call'](_0x207d6a,'attributes')&&writer['uint32'](0x3a)['string'](_0x207d6a['attributes']),null!=_0x207d6a['toVersion']&&Object['hasOwnProperty']['call'](_0x207d6a,'toVersion')&&writer['uint32'](0x40)['uint32'](_0x207d6a['toVersion']),null!=_0x207d6a['fromVersion']&&Object['hasOwnProperty']['call'](_0x207d6a,'fromVersion')&&writer['uint32'](0x48)['uint32'](_0x207d6a['fromVersion']),null!=_0x207d6a['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x207d6a,'isEmptyCurrent')&&writer['uint32'](0x50)['bool'](_0x207d6a['isEmptyCurrent']),writer;},RevisionDescriptor['encodeDelimited']=function(_0x3e96a1,writer){return this['encode'](_0x3e96a1,writer)['ldelim']();},RevisionDescriptor['decode']=function(_0xa47b2b,length,_0x58a7d5,_0x49134e){if(_0xa47b2b instanceof _0x470ccf||(_0xa47b2b=_0x470ccf['create'](_0xa47b2b)),void 0x0===_0x49134e&&(_0x49134e=0x0),_0x49134e>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xfb6b34=void 0x0===length?_0xa47b2b['len']:_0xa47b2b['pos']+length,_0x3ee182=new $root['RevisionDescriptor']();_0xa47b2b['pos']<_0xfb6b34;){var tag=_0xa47b2b['uint32']();if(tag===_0x58a7d5)break;switch(tag>>>0x3){case 0x1:_0x3ee182['revisionId']=_0xa47b2b['string']();break;case 0x2:_0x3ee182['name']=_0xa47b2b['string']();break;case 0x3:_0x3ee182['creatorId']=_0xa47b2b['string']();break;case 0x4:_0x3ee182['authorsIds']=_0xa47b2b['string']();break;case 0x5:_0x3ee182['diffData']=_0xa47b2b['string']();break;case 0x6:_0x3ee182['createdAt']=_0xa47b2b['string']();break;case 0x7:_0x3ee182['attributes']=_0xa47b2b['string']();break;case 0x8:_0x3ee182['toVersion']=_0xa47b2b['uint32']();break;case 0x9:_0x3ee182['fromVersion']=_0xa47b2b['uint32']();break;case 0xa:_0x3ee182['isEmptyCurrent']=_0xa47b2b['bool']();break;default:_0xa47b2b['skipType'](0x7&tag,_0x49134e);}}return _0x3ee182;},RevisionDescriptor['decodeDelimited']=function(_0x50144c){return _0x50144c instanceof _0x470ccf||(_0x50144c=new _0x470ccf(_0x50144c)),this['decode'](_0x50144c,_0x50144c['uint32']());},RevisionDescriptor['verify']=function(_0x156d76,_0x18427d){return'object'!=typeof _0x156d76||null===_0x156d76?'object\x20expected':(void 0x0===_0x18427d&&(_0x18427d=0x0),_0x18427d>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x156d76['revisionId']&&Object['hasOwnProperty']['call'](_0x156d76,'revisionId')&&!$util['isString'](_0x156d76['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x156d76['name']&&Object['hasOwnProperty']['call'](_0x156d76,'name')&&!$util['isString'](_0x156d76['name'])?'name:\x20string\x20expected':null!=_0x156d76['creatorId']&&Object['hasOwnProperty']['call'](_0x156d76,'creatorId')&&!$util['isString'](_0x156d76['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x156d76['authorsIds']&&Object['hasOwnProperty']['call'](_0x156d76,'authorsIds')&&!$util['isString'](_0x156d76['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x156d76['diffData']&&Object['hasOwnProperty']['call'](_0x156d76,'diffData')&&!$util['isString'](_0x156d76['diffData'])?'diffData:\x20string\x20expected':null!=_0x156d76['createdAt']&&Object['hasOwnProperty']['call'](_0x156d76,'createdAt')&&!$util['isString'](_0x156d76['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x156d76['attributes']&&Object['hasOwnProperty']['call'](_0x156d76,'attributes')&&!$util['isString'](_0x156d76['attributes'])?'attributes:\x20string\x20expected':null!=_0x156d76['toVersion']&&Object['hasOwnProperty']['call'](_0x156d76,'toVersion')&&!$util['isInteger'](_0x156d76['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x156d76['fromVersion']&&Object['hasOwnProperty']['call'](_0x156d76,'fromVersion')&&!$util['isInteger'](_0x156d76['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x156d76['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x156d76,'isEmptyCurrent')&&'boolean'!=typeof _0x156d76['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null);},RevisionDescriptor['fromObject']=function(object,_0x23ad25){if(object instanceof $root['RevisionDescriptor'])return object;if(!$util['isObject'](object))throw TypeError('.RevisionDescriptor:\x20object\x20expected');if(void 0x0===_0x23ad25&&(_0x23ad25=0x0),_0x23ad25>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x592233=new $root['RevisionDescriptor']();return null!=object['revisionId']&&(_0x592233['revisionId']=String(object['revisionId'])),null!=object['name']&&(_0x592233['name']=String(object['name'])),null!=object['creatorId']&&(_0x592233['creatorId']=String(object['creatorId'])),null!=object['authorsIds']&&(_0x592233['authorsIds']=String(object['authorsIds'])),null!=object['diffData']&&(_0x592233['diffData']=String(object['diffData'])),null!=object['createdAt']&&(_0x592233['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x592233['attributes']=String(object['attributes'])),null!=object['toVersion']&&(_0x592233['toVersion']=object['toVersion']>>>0x0),null!=object['fromVersion']&&(_0x592233['fromVersion']=object['fromVersion']>>>0x0),null!=object['isEmptyCurrent']&&(_0x592233['isEmptyCurrent']=Boolean(object['isEmptyCurrent'])),_0x592233;},RevisionDescriptor['toObject']=function(_0x5ca23b,options,_0x1066f1){if(options||(options={}),void 0x0===_0x1066f1&&(_0x1066f1=0x0),_0x1066f1>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');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!=_0x5ca23b['revisionId']&&Object['hasOwnProperty']['call'](_0x5ca23b,'revisionId')&&(object['revisionId']=_0x5ca23b['revisionId']),null!=_0x5ca23b['name']&&Object['hasOwnProperty']['call'](_0x5ca23b,'name')&&(object['name']=_0x5ca23b['name']),null!=_0x5ca23b['creatorId']&&Object['hasOwnProperty']['call'](_0x5ca23b,'creatorId')&&(object['creatorId']=_0x5ca23b['creatorId']),null!=_0x5ca23b['authorsIds']&&Object['hasOwnProperty']['call'](_0x5ca23b,'authorsIds')&&(object['authorsIds']=_0x5ca23b['authorsIds']),null!=_0x5ca23b['diffData']&&Object['hasOwnProperty']['call'](_0x5ca23b,'diffData')&&(object['diffData']=_0x5ca23b['diffData']),null!=_0x5ca23b['createdAt']&&Object['hasOwnProperty']['call'](_0x5ca23b,'createdAt')&&(object['createdAt']=_0x5ca23b['createdAt']),null!=_0x5ca23b['attributes']&&Object['hasOwnProperty']['call'](_0x5ca23b,'attributes')&&(object['attributes']=_0x5ca23b['attributes']),null!=_0x5ca23b['toVersion']&&Object['hasOwnProperty']['call'](_0x5ca23b,'toVersion')&&(object['toVersion']=_0x5ca23b['toVersion']),null!=_0x5ca23b['fromVersion']&&Object['hasOwnProperty']['call'](_0x5ca23b,'fromVersion')&&(object['fromVersion']=_0x5ca23b['fromVersion']),null!=_0x5ca23b['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x5ca23b,'isEmptyCurrent')&&(object['isEmptyCurrent']=_0x5ca23b['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 _0x76e5cd=Object['keys'](properties),_0x50ced0=0x0;_0x50ced0<_0x76e5cd['length'];++_0x50ced0)null!=properties[_0x76e5cd[_0x50ced0]]&&'__proto__'!==_0x76e5cd[_0x50ced0]&&(this[_0x76e5cd[_0x50ced0]]=properties[_0x76e5cd[_0x50ced0]]);}}return IsEditorBundleUploadedResponse['prototype']['isUploaded']=!0x1,IsEditorBundleUploadedResponse['create']=function(properties){return new IsEditorBundleUploadedResponse(properties);},IsEditorBundleUploadedResponse['encode']=function(_0xa0604d,writer,_0x17809a){if(writer||(writer=$Writer['create']()),void 0x0===_0x17809a&&(_0x17809a=0x0),_0x17809a>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0xa0604d['isUploaded']&&Object['hasOwnProperty']['call'](_0xa0604d,'isUploaded')&&writer['uint32'](0x8)['bool'](_0xa0604d['isUploaded']),writer;},IsEditorBundleUploadedResponse['encodeDelimited']=function(_0x519178,writer){return this['encode'](_0x519178,writer)['ldelim']();},IsEditorBundleUploadedResponse['decode']=function(_0x3f48e6,length,_0x3943f7,_0x18a834){if(_0x3f48e6 instanceof _0x470ccf||(_0x3f48e6=_0x470ccf['create'](_0x3f48e6)),void 0x0===_0x18a834&&(_0x18a834=0x0),_0x18a834>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x374440=void 0x0===length?_0x3f48e6['len']:_0x3f48e6['pos']+length,_0xe09f4e=new $root['IsEditorBundleUploadedResponse']();_0x3f48e6['pos']<_0x374440;){var tag=_0x3f48e6['uint32']();if(tag===_0x3943f7)break;if(tag>>>0x3==0x1)_0xe09f4e['isUploaded']=_0x3f48e6['bool']();else _0x3f48e6['skipType'](0x7&tag,_0x18a834);}return _0xe09f4e;},IsEditorBundleUploadedResponse['decodeDelimited']=function(_0xca1e85){return _0xca1e85 instanceof _0x470ccf||(_0xca1e85=new _0x470ccf(_0xca1e85)),this['decode'](_0xca1e85,_0xca1e85['uint32']());},IsEditorBundleUploadedResponse['verify']=function(_0x544857,_0x2f1bb1){return'object'!=typeof _0x544857||null===_0x544857?'object\x20expected':(void 0x0===_0x2f1bb1&&(_0x2f1bb1=0x0),_0x2f1bb1>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x544857['isUploaded']&&Object['hasOwnProperty']['call'](_0x544857,'isUploaded')&&'boolean'!=typeof _0x544857['isUploaded']?'isUploaded:\x20boolean\x20expected':null);},IsEditorBundleUploadedResponse['fromObject']=function(object,_0x46635d){if(object instanceof $root['IsEditorBundleUploadedResponse'])return object;if(!$util['isObject'](object))throw TypeError('.IsEditorBundleUploadedResponse:\x20object\x20expected');if(void 0x0===_0x46635d&&(_0x46635d=0x0),_0x46635d>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5ac0c3=new $root['IsEditorBundleUploadedResponse']();return null!=object['isUploaded']&&(_0x5ac0c3['isUploaded']=Boolean(object['isUploaded'])),_0x5ac0c3;},IsEditorBundleUploadedResponse['toObject']=function(_0x20fc30,options,_0x57d5c9){if(options||(options={}),void 0x0===_0x57d5c9&&(_0x57d5c9=0x0),_0x57d5c9>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['isUploaded']=!0x1),null!=_0x20fc30['isUploaded']&&Object['hasOwnProperty']['call'](_0x20fc30,'isUploaded')&&(object['isUploaded']=_0x20fc30['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 _0x11b955=Object['keys'](properties),_0x4ac912=0x0;_0x4ac912<_0x11b955['length'];++_0x4ac912)null!=properties[_0x11b955[_0x4ac912]]&&'__proto__'!==_0x11b955[_0x4ac912]&&(this[_0x11b955[_0x4ac912]]=properties[_0x11b955[_0x4ac912]]);}}return IsEditorBundleUploadedMessage['prototype']['bundleVersion']='',IsEditorBundleUploadedMessage['create']=function(properties){return new IsEditorBundleUploadedMessage(properties);},IsEditorBundleUploadedMessage['encode']=function(_0x324755,writer,_0x265772){if(writer||(writer=$Writer['create']()),void 0x0===_0x265772&&(_0x265772=0x0),_0x265772>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x324755['bundleVersion']&&Object['hasOwnProperty']['call'](_0x324755,'bundleVersion')&&writer['uint32'](0xa)['string'](_0x324755['bundleVersion']),writer;},IsEditorBundleUploadedMessage['encodeDelimited']=function(_0x44d542,writer){return this['encode'](_0x44d542,writer)['ldelim']();},IsEditorBundleUploadedMessage['decode']=function(_0xef12a3,length,_0x351794,_0x1551e1){if(_0xef12a3 instanceof _0x470ccf||(_0xef12a3=_0x470ccf['create'](_0xef12a3)),void 0x0===_0x1551e1&&(_0x1551e1=0x0),_0x1551e1>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1179be=void 0x0===length?_0xef12a3['len']:_0xef12a3['pos']+length,_0x22c767=new $root['IsEditorBundleUploadedMessage']();_0xef12a3['pos']<_0x1179be;){var tag=_0xef12a3['uint32']();if(tag===_0x351794)break;if(tag>>>0x3==0x1)_0x22c767['bundleVersion']=_0xef12a3['string']();else _0xef12a3['skipType'](0x7&tag,_0x1551e1);}return _0x22c767;},IsEditorBundleUploadedMessage['decodeDelimited']=function(_0x4584ff){return _0x4584ff instanceof _0x470ccf||(_0x4584ff=new _0x470ccf(_0x4584ff)),this['decode'](_0x4584ff,_0x4584ff['uint32']());},IsEditorBundleUploadedMessage['verify']=function(_0x107c3d,_0x434f20){return'object'!=typeof _0x107c3d||null===_0x107c3d?'object\x20expected':(void 0x0===_0x434f20&&(_0x434f20=0x0),_0x434f20>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x107c3d['bundleVersion']&&Object['hasOwnProperty']['call'](_0x107c3d,'bundleVersion')&&!$util['isString'](_0x107c3d['bundleVersion'])?'bundleVersion:\x20string\x20expected':null);},IsEditorBundleUploadedMessage['fromObject']=function(object,_0x44b005){if(object instanceof $root['IsEditorBundleUploadedMessage'])return object;if(!$util['isObject'](object))throw TypeError('.IsEditorBundleUploadedMessage:\x20object\x20expected');if(void 0x0===_0x44b005&&(_0x44b005=0x0),_0x44b005>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x44f43e=new $root['IsEditorBundleUploadedMessage']();return null!=object['bundleVersion']&&(_0x44f43e['bundleVersion']=String(object['bundleVersion'])),_0x44f43e;},IsEditorBundleUploadedMessage['toObject']=function(_0x377b99,options,_0x3076b6){if(options||(options={}),void 0x0===_0x3076b6&&(_0x3076b6=0x0),_0x3076b6>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['bundleVersion']=''),null!=_0x377b99['bundleVersion']&&Object['hasOwnProperty']['call'](_0x377b99,'bundleVersion')&&(object['bundleVersion']=_0x377b99['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 _0x41ce89=Object['keys'](properties),_0x2ae3c8=0x0;_0x2ae3c8<_0x41ce89['length'];++_0x2ae3c8)null!=properties[_0x41ce89[_0x2ae3c8]]&&'__proto__'!==_0x41ce89[_0x2ae3c8]&&(this[_0x41ce89[_0x2ae3c8]]=properties[_0x41ce89[_0x2ae3c8]]);}}return KeyValueDescriptor['prototype']['key']='',KeyValueDescriptor['prototype']['value']='',KeyValueDescriptor['create']=function(properties){return new KeyValueDescriptor(properties);},KeyValueDescriptor['encode']=function(_0x18c9e8,writer,_0x85cc91){if(writer||(writer=$Writer['create']()),void 0x0===_0x85cc91&&(_0x85cc91=0x0),_0x85cc91>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x18c9e8['key']&&Object['hasOwnProperty']['call'](_0x18c9e8,'key')&&writer['uint32'](0xa)['string'](_0x18c9e8['key']),null!=_0x18c9e8['value']&&Object['hasOwnProperty']['call'](_0x18c9e8,'value')&&writer['uint32'](0x12)['string'](_0x18c9e8['value']),writer;},KeyValueDescriptor['encodeDelimited']=function(_0x5539ce,writer){return this['encode'](_0x5539ce,writer)['ldelim']();},KeyValueDescriptor['decode']=function(_0x55012f,length,_0x29f433,_0x53704c){if(_0x55012f instanceof _0x470ccf||(_0x55012f=_0x470ccf['create'](_0x55012f)),void 0x0===_0x53704c&&(_0x53704c=0x0),_0x53704c>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2f1bfb=void 0x0===length?_0x55012f['len']:_0x55012f['pos']+length,_0x108740=new $root['KeyValueDescriptor']();_0x55012f['pos']<_0x2f1bfb;){var tag=_0x55012f['uint32']();if(tag===_0x29f433)break;switch(tag>>>0x3){case 0x1:_0x108740['key']=_0x55012f['string']();break;case 0x2:_0x108740['value']=_0x55012f['string']();break;default:_0x55012f['skipType'](0x7&tag,_0x53704c);}}return _0x108740;},KeyValueDescriptor['decodeDelimited']=function(_0x342a7e){return _0x342a7e instanceof _0x470ccf||(_0x342a7e=new _0x470ccf(_0x342a7e)),this['decode'](_0x342a7e,_0x342a7e['uint32']());},KeyValueDescriptor['verify']=function(_0x251336,_0x86aee4){return'object'!=typeof _0x251336||null===_0x251336?'object\x20expected':(void 0x0===_0x86aee4&&(_0x86aee4=0x0),_0x86aee4>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x251336['key']&&Object['hasOwnProperty']['call'](_0x251336,'key')&&!$util['isString'](_0x251336['key'])?'key:\x20string\x20expected':null!=_0x251336['value']&&Object['hasOwnProperty']['call'](_0x251336,'value')&&!$util['isString'](_0x251336['value'])?'value:\x20string\x20expected':null);},KeyValueDescriptor['fromObject']=function(object,_0x85de76){if(object instanceof $root['KeyValueDescriptor'])return object;if(!$util['isObject'](object))throw TypeError('.KeyValueDescriptor:\x20object\x20expected');if(void 0x0===_0x85de76&&(_0x85de76=0x0),_0x85de76>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x33b05d=new $root['KeyValueDescriptor']();return null!=object['key']&&(_0x33b05d['key']=String(object['key'])),null!=object['value']&&(_0x33b05d['value']=String(object['value'])),_0x33b05d;},KeyValueDescriptor['toObject']=function(_0x1b5fe8,options,_0x11a644){if(options||(options={}),void 0x0===_0x11a644&&(_0x11a644=0x0),_0x11a644>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['key']='',object['value']=''),null!=_0x1b5fe8['key']&&Object['hasOwnProperty']['call'](_0x1b5fe8,'key')&&(object['key']=_0x1b5fe8['key']),null!=_0x1b5fe8['value']&&Object['hasOwnProperty']['call'](_0x1b5fe8,'value')&&(object['value']=_0x1b5fe8['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 _0x5efa4f=Object['keys'](properties),_0xc69c4a=0x0;_0xc69c4a<_0x5efa4f['length'];++_0xc69c4a)null!=properties[_0x5efa4f[_0xc69c4a]]&&'__proto__'!==_0x5efa4f[_0xc69c4a]&&(this[_0x5efa4f[_0xc69c4a]]=properties[_0x5efa4f[_0xc69c4a]]);}}return CommentsV2GetDocumentThreadsResponse['prototype']['threads']=$util['emptyArray'],CommentsV2GetDocumentThreadsResponse['prototype']['threadsV2']=$util['emptyArray'],CommentsV2GetDocumentThreadsResponse['create']=function(properties){return new CommentsV2GetDocumentThreadsResponse(properties);},CommentsV2GetDocumentThreadsResponse['encode']=function(_0x440018,writer,_0xc7da5c){if(writer||(writer=$Writer['create']()),void 0x0===_0xc7da5c&&(_0xc7da5c=0x0),_0xc7da5c>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x440018['threads']&&_0x440018['threads']['length']){for(var _0x4c2dc3=0x0;_0x4c2dc3<_0x440018['threads']['length'];++_0x4c2dc3)writer['uint32'](0xa)['string'](_0x440018['threads'][_0x4c2dc3]);}if(null!=_0x440018['threadsV2']&&_0x440018['threadsV2']['length']){for(_0x4c2dc3=0x0;_0x4c2dc3<_0x440018['threadsV2']['length'];++_0x4c2dc3)$root['CommentsThreadDescriptor']['encode'](_0x440018['threadsV2'][_0x4c2dc3],writer['uint32'](0x12)['fork'](),_0xc7da5c+0x1)['ldelim']();}return writer;},CommentsV2GetDocumentThreadsResponse['encodeDelimited']=function(_0x33cd9c,writer){return this['encode'](_0x33cd9c,writer)['ldelim']();},CommentsV2GetDocumentThreadsResponse['decode']=function(_0x2fb268,length,_0x47c4f5,_0x2dd9e4){if(_0x2fb268 instanceof _0x470ccf||(_0x2fb268=_0x470ccf['create'](_0x2fb268)),void 0x0===_0x2dd9e4&&(_0x2dd9e4=0x0),_0x2dd9e4>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x26cbcd=void 0x0===length?_0x2fb268['len']:_0x2fb268['pos']+length,_0x1876ce=new $root['CommentsV2GetDocumentThreadsResponse']();_0x2fb268['pos']<_0x26cbcd;){var tag=_0x2fb268['uint32']();if(tag===_0x47c4f5)break;switch(tag>>>0x3){case 0x1:_0x1876ce['threads']&&_0x1876ce['threads']['length']||(_0x1876ce['threads']=[]),_0x1876ce['threads']['push'](_0x2fb268['string']());break;case 0x2:_0x1876ce['threadsV2']&&_0x1876ce['threadsV2']['length']||(_0x1876ce['threadsV2']=[]),_0x1876ce['threadsV2']['push']($root['CommentsThreadDescriptor']['decode'](_0x2fb268,_0x2fb268['uint32'](),void 0x0,_0x2dd9e4+0x1));break;default:_0x2fb268['skipType'](0x7&tag,_0x2dd9e4);}}return _0x1876ce;},CommentsV2GetDocumentThreadsResponse['decodeDelimited']=function(_0x1df719){return _0x1df719 instanceof _0x470ccf||(_0x1df719=new _0x470ccf(_0x1df719)),this['decode'](_0x1df719,_0x1df719['uint32']());},CommentsV2GetDocumentThreadsResponse['verify']=function(_0x257464,_0x2a4b6a){if('object'!=typeof _0x257464||null===_0x257464)return'object\x20expected';if(void 0x0===_0x2a4b6a&&(_0x2a4b6a=0x0),_0x2a4b6a>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x257464['threads']&&Object['hasOwnProperty']['call'](_0x257464,'threads')){if(!Array['isArray'](_0x257464['threads']))return'threads:\x20array\x20expected';for(var _0x48bd80=0x0;_0x48bd80<_0x257464['threads']['length'];++_0x48bd80)if(!$util['isString'](_0x257464['threads'][_0x48bd80]))return'threads:\x20string[]\x20expected';}if(null!=_0x257464['threadsV2']&&Object['hasOwnProperty']['call'](_0x257464,'threadsV2')){if(!Array['isArray'](_0x257464['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x48bd80=0x0;_0x48bd80<_0x257464['threadsV2']['length'];++_0x48bd80){var _0x59347c=$root['CommentsThreadDescriptor']['verify'](_0x257464['threadsV2'][_0x48bd80],_0x2a4b6a+0x1);if(_0x59347c)return'threadsV2.'+_0x59347c;}}return null;},CommentsV2GetDocumentThreadsResponse['fromObject']=function(object,_0x197b44){if(object instanceof $root['CommentsV2GetDocumentThreadsResponse'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2GetDocumentThreadsResponse:\x20object\x20expected');if(void 0x0===_0x197b44&&(_0x197b44=0x0),_0x197b44>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1b5da9=new $root['CommentsV2GetDocumentThreadsResponse']();if(object['threads']){if(!Array['isArray'](object['threads']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threads:\x20array\x20expected');_0x1b5da9['threads']=[];for(var _0x429737=0x0;_0x429737<object['threads']['length'];++_0x429737)_0x1b5da9['threads'][_0x429737]=String(object['threads'][_0x429737]);}if(object['threadsV2']){if(!Array['isArray'](object['threadsV2']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20array\x20expected');_0x1b5da9['threadsV2']=[];for(_0x429737=0x0;_0x429737<object['threadsV2']['length'];++_0x429737){if(!$util['isObject'](object['threadsV2'][_0x429737]))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20object\x20expected');_0x1b5da9['threadsV2'][_0x429737]=$root['CommentsThreadDescriptor']['fromObject'](object['threadsV2'][_0x429737],_0x197b44+0x1);}}return _0x1b5da9;},CommentsV2GetDocumentThreadsResponse['toObject']=function(_0xaae83c,options,_0x402c76){if(options||(options={}),void 0x0===_0x402c76&&(_0x402c76=0x0),_0x402c76>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['threads']=[],object['threadsV2']=[]),_0xaae83c['threads']&&_0xaae83c['threads']['length']){object['threads']=[];for(var _0x5810c8=0x0;_0x5810c8<_0xaae83c['threads']['length'];++_0x5810c8)object['threads'][_0x5810c8]=_0xaae83c['threads'][_0x5810c8];}if(_0xaae83c['threadsV2']&&_0xaae83c['threadsV2']['length']){object['threadsV2']=[];for(_0x5810c8=0x0;_0x5810c8<_0xaae83c['threadsV2']['length'];++_0x5810c8)object['threadsV2'][_0x5810c8]=$root['CommentsThreadDescriptor']['toObject'](_0xaae83c['threadsV2'][_0x5810c8],options,_0x402c76+0x1);}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 _0x373c84=Object['keys'](properties),_0x268a59=0x0;_0x268a59<_0x373c84['length'];++_0x268a59)null!=properties[_0x373c84[_0x268a59]]&&'__proto__'!==_0x373c84[_0x268a59]&&(this[_0x373c84[_0x268a59]]=properties[_0x373c84[_0x268a59]]);}}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(_0x5c51ee,writer,_0x1f4600){if(writer||(writer=$Writer['create']()),void 0x0===_0x1f4600&&(_0x1f4600=0x0),_0x1f4600>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x5c51ee['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5c51ee,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x5c51ee['commentThreadId']),null!=_0x5c51ee['comments']&&_0x5c51ee['comments']['length']){for(var _0x25101a=0x0;_0x25101a<_0x5c51ee['comments']['length'];++_0x25101a)writer['uint32'](0x12)['string'](_0x5c51ee['comments'][_0x25101a]);}if(null!=_0x5c51ee['commentsV2']&&_0x5c51ee['commentsV2']['length']){for(_0x25101a=0x0;_0x25101a<_0x5c51ee['commentsV2']['length'];++_0x25101a)$root['CommentDescriptor']['encode'](_0x5c51ee['commentsV2'][_0x25101a],writer['uint32'](0x1a)['fork'](),_0x1f4600+0x1)['ldelim']();}return null!=_0x5c51ee['resolvedAt']&&Object['hasOwnProperty']['call'](_0x5c51ee,'resolvedAt')&&writer['uint32'](0x22)['string'](_0x5c51ee['resolvedAt']),null!=_0x5c51ee['resolvedBy']&&Object['hasOwnProperty']['call'](_0x5c51ee,'resolvedBy')&&writer['uint32'](0x2a)['string'](_0x5c51ee['resolvedBy']),null!=_0x5c51ee['context']&&Object['hasOwnProperty']['call'](_0x5c51ee,'context')&&writer['uint32'](0x32)['string'](_0x5c51ee['context']),null!=_0x5c51ee['createdAt']&&Object['hasOwnProperty']['call'](_0x5c51ee,'createdAt')&&writer['uint32'](0x3a)['string'](_0x5c51ee['createdAt']),null!=_0x5c51ee['deletedAt']&&Object['hasOwnProperty']['call'](_0x5c51ee,'deletedAt')&&writer['uint32'](0x42)['string'](_0x5c51ee['deletedAt']),null!=_0x5c51ee['attributes']&&Object['hasOwnProperty']['call'](_0x5c51ee,'attributes')&&writer['uint32'](0x4a)['string'](_0x5c51ee['attributes']),null!=_0x5c51ee['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x5c51ee,'unlinkedAt')&&writer['uint32'](0x52)['string'](_0x5c51ee['unlinkedAt']),writer;},CommentsV2GetCommentThreadResponse['encodeDelimited']=function(_0x313930,writer){return this['encode'](_0x313930,writer)['ldelim']();},CommentsV2GetCommentThreadResponse['decode']=function(_0x437100,length,_0x39d4af,_0x4e9e04){if(_0x437100 instanceof _0x470ccf||(_0x437100=_0x470ccf['create'](_0x437100)),void 0x0===_0x4e9e04&&(_0x4e9e04=0x0),_0x4e9e04>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x626a32=void 0x0===length?_0x437100['len']:_0x437100['pos']+length,_0x562450=new $root['CommentsV2GetCommentThreadResponse']();_0x437100['pos']<_0x626a32;){var tag=_0x437100['uint32']();if(tag===_0x39d4af)break;switch(tag>>>0x3){case 0x1:_0x562450['commentThreadId']=_0x437100['string']();break;case 0x2:_0x562450['comments']&&_0x562450['comments']['length']||(_0x562450['comments']=[]),_0x562450['comments']['push'](_0x437100['string']());break;case 0x3:_0x562450['commentsV2']&&_0x562450['commentsV2']['length']||(_0x562450['commentsV2']=[]),_0x562450['commentsV2']['push']($root['CommentDescriptor']['decode'](_0x437100,_0x437100['uint32'](),void 0x0,_0x4e9e04+0x1));break;case 0x4:_0x562450['resolvedAt']=_0x437100['string']();break;case 0x5:_0x562450['resolvedBy']=_0x437100['string']();break;case 0x6:_0x562450['context']=_0x437100['string']();break;case 0x7:_0x562450['createdAt']=_0x437100['string']();break;case 0x8:_0x562450['deletedAt']=_0x437100['string']();break;case 0x9:_0x562450['attributes']=_0x437100['string']();break;case 0xa:_0x562450['unlinkedAt']=_0x437100['string']();break;default:_0x437100['skipType'](0x7&tag,_0x4e9e04);}}return _0x562450;},CommentsV2GetCommentThreadResponse['decodeDelimited']=function(_0x1885ff){return _0x1885ff instanceof _0x470ccf||(_0x1885ff=new _0x470ccf(_0x1885ff)),this['decode'](_0x1885ff,_0x1885ff['uint32']());},CommentsV2GetCommentThreadResponse['verify']=function(_0x313c8e,_0x4c097e){if('object'!=typeof _0x313c8e||null===_0x313c8e)return'object\x20expected';if(void 0x0===_0x4c097e&&(_0x4c097e=0x0),_0x4c097e>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x313c8e['commentThreadId']&&Object['hasOwnProperty']['call'](_0x313c8e,'commentThreadId')&&!$util['isString'](_0x313c8e['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x313c8e['comments']&&Object['hasOwnProperty']['call'](_0x313c8e,'comments')){if(!Array['isArray'](_0x313c8e['comments']))return'comments:\x20array\x20expected';for(var _0x59def2=0x0;_0x59def2<_0x313c8e['comments']['length'];++_0x59def2)if(!$util['isString'](_0x313c8e['comments'][_0x59def2]))return'comments:\x20string[]\x20expected';}if(null!=_0x313c8e['commentsV2']&&Object['hasOwnProperty']['call'](_0x313c8e,'commentsV2')){if(!Array['isArray'](_0x313c8e['commentsV2']))return'commentsV2:\x20array\x20expected';for(_0x59def2=0x0;_0x59def2<_0x313c8e['commentsV2']['length'];++_0x59def2){var _0x324f81=$root['CommentDescriptor']['verify'](_0x313c8e['commentsV2'][_0x59def2],_0x4c097e+0x1);if(_0x324f81)return'commentsV2.'+_0x324f81;}}return null!=_0x313c8e['resolvedAt']&&Object['hasOwnProperty']['call'](_0x313c8e,'resolvedAt')&&!$util['isString'](_0x313c8e['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x313c8e['resolvedBy']&&Object['hasOwnProperty']['call'](_0x313c8e,'resolvedBy')&&!$util['isString'](_0x313c8e['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x313c8e['context']&&Object['hasOwnProperty']['call'](_0x313c8e,'context')&&!$util['isString'](_0x313c8e['context'])?'context:\x20string\x20expected':null!=_0x313c8e['createdAt']&&Object['hasOwnProperty']['call'](_0x313c8e,'createdAt')&&!$util['isString'](_0x313c8e['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x313c8e['deletedAt']&&Object['hasOwnProperty']['call'](_0x313c8e,'deletedAt')&&!$util['isString'](_0x313c8e['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x313c8e['attributes']&&Object['hasOwnProperty']['call'](_0x313c8e,'attributes')&&!$util['isString'](_0x313c8e['attributes'])?'attributes:\x20string\x20expected':null!=_0x313c8e['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x313c8e,'unlinkedAt')&&!$util['isString'](_0x313c8e['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsV2GetCommentThreadResponse['fromObject']=function(object,_0x34c15e){if(object instanceof $root['CommentsV2GetCommentThreadResponse'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2GetCommentThreadResponse:\x20object\x20expected');if(void 0x0===_0x34c15e&&(_0x34c15e=0x0),_0x34c15e>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x222eae=new $root['CommentsV2GetCommentThreadResponse']();if(null!=object['commentThreadId']&&(_0x222eae['commentThreadId']=String(object['commentThreadId'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2GetCommentThreadResponse.comments:\x20array\x20expected');_0x222eae['comments']=[];for(var _0x49a3eb=0x0;_0x49a3eb<object['comments']['length'];++_0x49a3eb)_0x222eae['comments'][_0x49a3eb]=String(object['comments'][_0x49a3eb]);}if(object['commentsV2']){if(!Array['isArray'](object['commentsV2']))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20array\x20expected');_0x222eae['commentsV2']=[];for(_0x49a3eb=0x0;_0x49a3eb<object['commentsV2']['length'];++_0x49a3eb){if(!$util['isObject'](object['commentsV2'][_0x49a3eb]))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20object\x20expected');_0x222eae['commentsV2'][_0x49a3eb]=$root['CommentDescriptor']['fromObject'](object['commentsV2'][_0x49a3eb],_0x34c15e+0x1);}}return null!=object['resolvedAt']&&(_0x222eae['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x222eae['resolvedBy']=String(object['resolvedBy'])),null!=object['context']&&(_0x222eae['context']=String(object['context'])),null!=object['createdAt']&&(_0x222eae['createdAt']=String(object['createdAt'])),null!=object['deletedAt']&&(_0x222eae['deletedAt']=String(object['deletedAt'])),null!=object['attributes']&&(_0x222eae['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x222eae['unlinkedAt']=String(object['unlinkedAt'])),_0x222eae;},CommentsV2GetCommentThreadResponse['toObject']=function(_0x3247db,options,_0x1cb596){if(options||(options={}),void 0x0===_0x1cb596&&(_0x1cb596=0x0),_0x1cb596>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');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!=_0x3247db['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3247db,'commentThreadId')&&(object['commentThreadId']=_0x3247db['commentThreadId']),_0x3247db['comments']&&_0x3247db['comments']['length']){object['comments']=[];for(var _0xc97b13=0x0;_0xc97b13<_0x3247db['comments']['length'];++_0xc97b13)object['comments'][_0xc97b13]=_0x3247db['comments'][_0xc97b13];}if(_0x3247db['commentsV2']&&_0x3247db['commentsV2']['length']){object['commentsV2']=[];for(_0xc97b13=0x0;_0xc97b13<_0x3247db['commentsV2']['length'];++_0xc97b13)object['commentsV2'][_0xc97b13]=$root['CommentDescriptor']['toObject'](_0x3247db['commentsV2'][_0xc97b13],options,_0x1cb596+0x1);}return null!=_0x3247db['resolvedAt']&&Object['hasOwnProperty']['call'](_0x3247db,'resolvedAt')&&(object['resolvedAt']=_0x3247db['resolvedAt']),null!=_0x3247db['resolvedBy']&&Object['hasOwnProperty']['call'](_0x3247db,'resolvedBy')&&(object['resolvedBy']=_0x3247db['resolvedBy']),null!=_0x3247db['context']&&Object['hasOwnProperty']['call'](_0x3247db,'context')&&(object['context']=_0x3247db['context']),null!=_0x3247db['createdAt']&&Object['hasOwnProperty']['call'](_0x3247db,'createdAt')&&(object['createdAt']=_0x3247db['createdAt']),null!=_0x3247db['deletedAt']&&Object['hasOwnProperty']['call'](_0x3247db,'deletedAt')&&(object['deletedAt']=_0x3247db['deletedAt']),null!=_0x3247db['attributes']&&Object['hasOwnProperty']['call'](_0x3247db,'attributes')&&(object['attributes']=_0x3247db['attributes']),null!=_0x3247db['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x3247db,'unlinkedAt')&&(object['unlinkedAt']=_0x3247db['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 _0x1f0cb7=Object['keys'](properties),_0x46cd33=0x0;_0x46cd33<_0x1f0cb7['length'];++_0x46cd33)null!=properties[_0x1f0cb7[_0x46cd33]]&&'__proto__'!==_0x1f0cb7[_0x46cd33]&&(this[_0x1f0cb7[_0x46cd33]]=properties[_0x1f0cb7[_0x46cd33]]);}}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(_0x4cd25e,writer,_0x23564d){if(writer||(writer=$Writer['create']()),void 0x0===_0x23564d&&(_0x23564d=0x0),_0x23564d>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x4cd25e['channel']&&Object['hasOwnProperty']['call'](_0x4cd25e,'channel')&&writer['uint32'](0xa)['string'](_0x4cd25e['channel']),null!=_0x4cd25e['threads']&&_0x4cd25e['threads']['length']){for(var _0x568fd0=0x0;_0x568fd0<_0x4cd25e['threads']['length'];++_0x568fd0)writer['uint32'](0x12)['string'](_0x4cd25e['threads'][_0x568fd0]);}if(null!=_0x4cd25e['threadsV2']&&_0x4cd25e['threadsV2']['length']){for(_0x568fd0=0x0;_0x568fd0<_0x4cd25e['threadsV2']['length'];++_0x568fd0)$root['CommentsThreadDescriptor']['encode'](_0x4cd25e['threadsV2'][_0x568fd0],writer['uint32'](0x1a)['fork'](),_0x23564d+0x1)['ldelim']();}return writer;},CommentsV2ConnectResponse['encodeDelimited']=function(_0x5c5ed5,writer){return this['encode'](_0x5c5ed5,writer)['ldelim']();},CommentsV2ConnectResponse['decode']=function(_0x2398c2,length,_0x5cfc11,_0xccf4ad){if(_0x2398c2 instanceof _0x470ccf||(_0x2398c2=_0x470ccf['create'](_0x2398c2)),void 0x0===_0xccf4ad&&(_0xccf4ad=0x0),_0xccf4ad>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1c6b5e=void 0x0===length?_0x2398c2['len']:_0x2398c2['pos']+length,_0x1ad454=new $root['CommentsV2ConnectResponse']();_0x2398c2['pos']<_0x1c6b5e;){var tag=_0x2398c2['uint32']();if(tag===_0x5cfc11)break;switch(tag>>>0x3){case 0x1:_0x1ad454['channel']=_0x2398c2['string']();break;case 0x2:_0x1ad454['threads']&&_0x1ad454['threads']['length']||(_0x1ad454['threads']=[]),_0x1ad454['threads']['push'](_0x2398c2['string']());break;case 0x3:_0x1ad454['threadsV2']&&_0x1ad454['threadsV2']['length']||(_0x1ad454['threadsV2']=[]),_0x1ad454['threadsV2']['push']($root['CommentsThreadDescriptor']['decode'](_0x2398c2,_0x2398c2['uint32'](),void 0x0,_0xccf4ad+0x1));break;default:_0x2398c2['skipType'](0x7&tag,_0xccf4ad);}}return _0x1ad454;},CommentsV2ConnectResponse['decodeDelimited']=function(_0x53b769){return _0x53b769 instanceof _0x470ccf||(_0x53b769=new _0x470ccf(_0x53b769)),this['decode'](_0x53b769,_0x53b769['uint32']());},CommentsV2ConnectResponse['verify']=function(_0x276e7f,_0x424238){if('object'!=typeof _0x276e7f||null===_0x276e7f)return'object\x20expected';if(void 0x0===_0x424238&&(_0x424238=0x0),_0x424238>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x276e7f['channel']&&Object['hasOwnProperty']['call'](_0x276e7f,'channel')&&!$util['isString'](_0x276e7f['channel']))return'channel:\x20string\x20expected';if(null!=_0x276e7f['threads']&&Object['hasOwnProperty']['call'](_0x276e7f,'threads')){if(!Array['isArray'](_0x276e7f['threads']))return'threads:\x20array\x20expected';for(var _0x39f05e=0x0;_0x39f05e<_0x276e7f['threads']['length'];++_0x39f05e)if(!$util['isString'](_0x276e7f['threads'][_0x39f05e]))return'threads:\x20string[]\x20expected';}if(null!=_0x276e7f['threadsV2']&&Object['hasOwnProperty']['call'](_0x276e7f,'threadsV2')){if(!Array['isArray'](_0x276e7f['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x39f05e=0x0;_0x39f05e<_0x276e7f['threadsV2']['length'];++_0x39f05e){var _0x17abef=$root['CommentsThreadDescriptor']['verify'](_0x276e7f['threadsV2'][_0x39f05e],_0x424238+0x1);if(_0x17abef)return'threadsV2.'+_0x17abef;}}return null;},CommentsV2ConnectResponse['fromObject']=function(object,_0x124378){if(object instanceof $root['CommentsV2ConnectResponse'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2ConnectResponse:\x20object\x20expected');if(void 0x0===_0x124378&&(_0x124378=0x0),_0x124378>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1af34e=new $root['CommentsV2ConnectResponse']();if(null!=object['channel']&&(_0x1af34e['channel']=String(object['channel'])),object['threads']){if(!Array['isArray'](object['threads']))throw TypeError('.CommentsV2ConnectResponse.threads:\x20array\x20expected');_0x1af34e['threads']=[];for(var _0xae0f47=0x0;_0xae0f47<object['threads']['length'];++_0xae0f47)_0x1af34e['threads'][_0xae0f47]=String(object['threads'][_0xae0f47]);}if(object['threadsV2']){if(!Array['isArray'](object['threadsV2']))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20array\x20expected');_0x1af34e['threadsV2']=[];for(_0xae0f47=0x0;_0xae0f47<object['threadsV2']['length'];++_0xae0f47){if(!$util['isObject'](object['threadsV2'][_0xae0f47]))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20object\x20expected');_0x1af34e['threadsV2'][_0xae0f47]=$root['CommentsThreadDescriptor']['fromObject'](object['threadsV2'][_0xae0f47],_0x124378+0x1);}}return _0x1af34e;},CommentsV2ConnectResponse['toObject']=function(_0x4f932f,options,_0x5a24d7){if(options||(options={}),void 0x0===_0x5a24d7&&(_0x5a24d7=0x0),_0x5a24d7>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['threads']=[],object['threadsV2']=[]),options['defaults']&&(object['channel']=''),null!=_0x4f932f['channel']&&Object['hasOwnProperty']['call'](_0x4f932f,'channel')&&(object['channel']=_0x4f932f['channel']),_0x4f932f['threads']&&_0x4f932f['threads']['length']){object['threads']=[];for(var _0x18a0c5=0x0;_0x18a0c5<_0x4f932f['threads']['length'];++_0x18a0c5)object['threads'][_0x18a0c5]=_0x4f932f['threads'][_0x18a0c5];}if(_0x4f932f['threadsV2']&&_0x4f932f['threadsV2']['length']){object['threadsV2']=[];for(_0x18a0c5=0x0;_0x18a0c5<_0x4f932f['threadsV2']['length'];++_0x18a0c5)object['threadsV2'][_0x18a0c5]=$root['CommentsThreadDescriptor']['toObject'](_0x4f932f['threadsV2'][_0x18a0c5],options,_0x5a24d7+0x1);}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 _0x833cc1=Object['keys'](properties),_0x45538d=0x0;_0x45538d<_0x833cc1['length'];++_0x45538d)null!=properties[_0x833cc1[_0x45538d]]&&'__proto__'!==_0x833cc1[_0x45538d]&&(this[_0x833cc1[_0x45538d]]=properties[_0x833cc1[_0x45538d]]);}}return CommentsV2AddCommentResponse['prototype']['commentThreadId']='',CommentsV2AddCommentResponse['prototype']['commentId']='',CommentsV2AddCommentResponse['prototype']['createdAt']='',CommentsV2AddCommentResponse['create']=function(properties){return new CommentsV2AddCommentResponse(properties);},CommentsV2AddCommentResponse['encode']=function(_0x57b6d4,writer,_0xb31373){if(writer||(writer=$Writer['create']()),void 0x0===_0xb31373&&(_0xb31373=0x0),_0xb31373>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x57b6d4['commentThreadId']&&Object['hasOwnProperty']['call'](_0x57b6d4,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x57b6d4['commentThreadId']),null!=_0x57b6d4['commentId']&&Object['hasOwnProperty']['call'](_0x57b6d4,'commentId')&&writer['uint32'](0x12)['string'](_0x57b6d4['commentId']),null!=_0x57b6d4['createdAt']&&Object['hasOwnProperty']['call'](_0x57b6d4,'createdAt')&&writer['uint32'](0x1a)['string'](_0x57b6d4['createdAt']),writer;},CommentsV2AddCommentResponse['encodeDelimited']=function(_0x2c132d,writer){return this['encode'](_0x2c132d,writer)['ldelim']();},CommentsV2AddCommentResponse['decode']=function(_0x23be2a,length,_0x33862d,_0x1ca36f){if(_0x23be2a instanceof _0x470ccf||(_0x23be2a=_0x470ccf['create'](_0x23be2a)),void 0x0===_0x1ca36f&&(_0x1ca36f=0x0),_0x1ca36f>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x52a319=void 0x0===length?_0x23be2a['len']:_0x23be2a['pos']+length,_0x3f73ac=new $root['CommentsV2AddCommentResponse']();_0x23be2a['pos']<_0x52a319;){var tag=_0x23be2a['uint32']();if(tag===_0x33862d)break;switch(tag>>>0x3){case 0x1:_0x3f73ac['commentThreadId']=_0x23be2a['string']();break;case 0x2:_0x3f73ac['commentId']=_0x23be2a['string']();break;case 0x3:_0x3f73ac['createdAt']=_0x23be2a['string']();break;default:_0x23be2a['skipType'](0x7&tag,_0x1ca36f);}}return _0x3f73ac;},CommentsV2AddCommentResponse['decodeDelimited']=function(_0x3c67b1){return _0x3c67b1 instanceof _0x470ccf||(_0x3c67b1=new _0x470ccf(_0x3c67b1)),this['decode'](_0x3c67b1,_0x3c67b1['uint32']());},CommentsV2AddCommentResponse['verify']=function(_0x5a34ec,_0x2d972a){return'object'!=typeof _0x5a34ec||null===_0x5a34ec?'object\x20expected':(void 0x0===_0x2d972a&&(_0x2d972a=0x0),_0x2d972a>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x5a34ec['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5a34ec,'commentThreadId')&&!$util['isString'](_0x5a34ec['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x5a34ec['commentId']&&Object['hasOwnProperty']['call'](_0x5a34ec,'commentId')&&!$util['isString'](_0x5a34ec['commentId'])?'commentId:\x20string\x20expected':null!=_0x5a34ec['createdAt']&&Object['hasOwnProperty']['call'](_0x5a34ec,'createdAt')&&!$util['isString'](_0x5a34ec['createdAt'])?'createdAt:\x20string\x20expected':null);},CommentsV2AddCommentResponse['fromObject']=function(object,_0x3b1ea2){if(object instanceof $root['CommentsV2AddCommentResponse'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2AddCommentResponse:\x20object\x20expected');if(void 0x0===_0x3b1ea2&&(_0x3b1ea2=0x0),_0x3b1ea2>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2ac9fb=new $root['CommentsV2AddCommentResponse']();return null!=object['commentThreadId']&&(_0x2ac9fb['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x2ac9fb['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0x2ac9fb['createdAt']=String(object['createdAt'])),_0x2ac9fb;},CommentsV2AddCommentResponse['toObject']=function(_0x1e06f1,options,_0x7e9750){if(options||(options={}),void 0x0===_0x7e9750&&(_0x7e9750=0x0),_0x7e9750>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['createdAt']=''),null!=_0x1e06f1['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1e06f1,'commentThreadId')&&(object['commentThreadId']=_0x1e06f1['commentThreadId']),null!=_0x1e06f1['commentId']&&Object['hasOwnProperty']['call'](_0x1e06f1,'commentId')&&(object['commentId']=_0x1e06f1['commentId']),null!=_0x1e06f1['createdAt']&&Object['hasOwnProperty']['call'](_0x1e06f1,'createdAt')&&(object['createdAt']=_0x1e06f1['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 _0x421ce4=Object['keys'](properties),_0x326ab3=0x0;_0x326ab3<_0x421ce4['length'];++_0x326ab3)null!=properties[_0x421ce4[_0x326ab3]]&&'__proto__'!==_0x421ce4[_0x326ab3]&&(this[_0x421ce4[_0x326ab3]]=properties[_0x421ce4[_0x326ab3]]);}}return CommentsV2ResolveCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2ResolveCommentThreadResponse['prototype']['documentId']='',CommentsV2ResolveCommentThreadResponse['prototype']['resolvedAt']='',CommentsV2ResolveCommentThreadResponse['prototype']['resolvedBy']='',CommentsV2ResolveCommentThreadResponse['create']=function(properties){return new CommentsV2ResolveCommentThreadResponse(properties);},CommentsV2ResolveCommentThreadResponse['encode']=function(_0x11fcc0,writer,_0x3c826d){if(writer||(writer=$Writer['create']()),void 0x0===_0x3c826d&&(_0x3c826d=0x0),_0x3c826d>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x11fcc0['commentThreadId']&&Object['hasOwnProperty']['call'](_0x11fcc0,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x11fcc0['commentThreadId']),null!=_0x11fcc0['documentId']&&Object['hasOwnProperty']['call'](_0x11fcc0,'documentId')&&writer['uint32'](0x12)['string'](_0x11fcc0['documentId']),null!=_0x11fcc0['resolvedAt']&&Object['hasOwnProperty']['call'](_0x11fcc0,'resolvedAt')&&writer['uint32'](0x1a)['string'](_0x11fcc0['resolvedAt']),null!=_0x11fcc0['resolvedBy']&&Object['hasOwnProperty']['call'](_0x11fcc0,'resolvedBy')&&writer['uint32'](0x22)['string'](_0x11fcc0['resolvedBy']),writer;},CommentsV2ResolveCommentThreadResponse['encodeDelimited']=function(_0x2dbfcc,writer){return this['encode'](_0x2dbfcc,writer)['ldelim']();},CommentsV2ResolveCommentThreadResponse['decode']=function(_0x25ee0f,length,_0x1867a4,_0x33441f){if(_0x25ee0f instanceof _0x470ccf||(_0x25ee0f=_0x470ccf['create'](_0x25ee0f)),void 0x0===_0x33441f&&(_0x33441f=0x0),_0x33441f>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x8f6c8a=void 0x0===length?_0x25ee0f['len']:_0x25ee0f['pos']+length,_0x42b787=new $root['CommentsV2ResolveCommentThreadResponse']();_0x25ee0f['pos']<_0x8f6c8a;){var tag=_0x25ee0f['uint32']();if(tag===_0x1867a4)break;switch(tag>>>0x3){case 0x1:_0x42b787['commentThreadId']=_0x25ee0f['string']();break;case 0x2:_0x42b787['documentId']=_0x25ee0f['string']();break;case 0x3:_0x42b787['resolvedAt']=_0x25ee0f['string']();break;case 0x4:_0x42b787['resolvedBy']=_0x25ee0f['string']();break;default:_0x25ee0f['skipType'](0x7&tag,_0x33441f);}}return _0x42b787;},CommentsV2ResolveCommentThreadResponse['decodeDelimited']=function(_0x34ca44){return _0x34ca44 instanceof _0x470ccf||(_0x34ca44=new _0x470ccf(_0x34ca44)),this['decode'](_0x34ca44,_0x34ca44['uint32']());},CommentsV2ResolveCommentThreadResponse['verify']=function(_0x3b1123,_0x39b11c){return'object'!=typeof _0x3b1123||null===_0x3b1123?'object\x20expected':(void 0x0===_0x39b11c&&(_0x39b11c=0x0),_0x39b11c>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3b1123['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3b1123,'commentThreadId')&&!$util['isString'](_0x3b1123['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x3b1123['documentId']&&Object['hasOwnProperty']['call'](_0x3b1123,'documentId')&&!$util['isString'](_0x3b1123['documentId'])?'documentId:\x20string\x20expected':null!=_0x3b1123['resolvedAt']&&Object['hasOwnProperty']['call'](_0x3b1123,'resolvedAt')&&!$util['isString'](_0x3b1123['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x3b1123['resolvedBy']&&Object['hasOwnProperty']['call'](_0x3b1123,'resolvedBy')&&!$util['isString'](_0x3b1123['resolvedBy'])?'resolvedBy:\x20string\x20expected':null);},CommentsV2ResolveCommentThreadResponse['fromObject']=function(object,_0x1d9161){if(object instanceof $root['CommentsV2ResolveCommentThreadResponse'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2ResolveCommentThreadResponse:\x20object\x20expected');if(void 0x0===_0x1d9161&&(_0x1d9161=0x0),_0x1d9161>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x54cced=new $root['CommentsV2ResolveCommentThreadResponse']();return null!=object['commentThreadId']&&(_0x54cced['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x54cced['documentId']=String(object['documentId'])),null!=object['resolvedAt']&&(_0x54cced['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x54cced['resolvedBy']=String(object['resolvedBy'])),_0x54cced;},CommentsV2ResolveCommentThreadResponse['toObject']=function(_0x499b0f,options,_0x21dbb4){if(options||(options={}),void 0x0===_0x21dbb4&&(_0x21dbb4=0x0),_0x21dbb4>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['resolvedAt']='',object['resolvedBy']=''),null!=_0x499b0f['commentThreadId']&&Object['hasOwnProperty']['call'](_0x499b0f,'commentThreadId')&&(object['commentThreadId']=_0x499b0f['commentThreadId']),null!=_0x499b0f['documentId']&&Object['hasOwnProperty']['call'](_0x499b0f,'documentId')&&(object['documentId']=_0x499b0f['documentId']),null!=_0x499b0f['resolvedAt']&&Object['hasOwnProperty']['call'](_0x499b0f,'resolvedAt')&&(object['resolvedAt']=_0x499b0f['resolvedAt']),null!=_0x499b0f['resolvedBy']&&Object['hasOwnProperty']['call'](_0x499b0f,'resolvedBy')&&(object['resolvedBy']=_0x499b0f['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 _0x4494fb=Object['keys'](properties),_0x30542f=0x0;_0x30542f<_0x4494fb['length'];++_0x30542f)null!=properties[_0x4494fb[_0x30542f]]&&'__proto__'!==_0x4494fb[_0x30542f]&&(this[_0x4494fb[_0x30542f]]=properties[_0x4494fb[_0x30542f]]);}}return CommentsV2AddCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2AddCommentThreadResponse['prototype']['createdAt']='',CommentsV2AddCommentThreadResponse['prototype']['comments']=$util['emptyArray'],CommentsV2AddCommentThreadResponse['create']=function(properties){return new CommentsV2AddCommentThreadResponse(properties);},CommentsV2AddCommentThreadResponse['encode']=function(_0x21fbb0,writer,_0x5b0f75){if(writer||(writer=$Writer['create']()),void 0x0===_0x5b0f75&&(_0x5b0f75=0x0),_0x5b0f75>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x21fbb0['commentThreadId']&&Object['hasOwnProperty']['call'](_0x21fbb0,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x21fbb0['commentThreadId']),null!=_0x21fbb0['createdAt']&&Object['hasOwnProperty']['call'](_0x21fbb0,'createdAt')&&writer['uint32'](0x12)['string'](_0x21fbb0['createdAt']),null!=_0x21fbb0['comments']&&_0x21fbb0['comments']['length']){for(var _0x3f5fb1=0x0;_0x3f5fb1<_0x21fbb0['comments']['length'];++_0x3f5fb1)$root['CommentThreadAddedCommentDescriptor']['encode'](_0x21fbb0['comments'][_0x3f5fb1],writer['uint32'](0x1a)['fork'](),_0x5b0f75+0x1)['ldelim']();}return writer;},CommentsV2AddCommentThreadResponse['encodeDelimited']=function(_0x14c6c9,writer){return this['encode'](_0x14c6c9,writer)['ldelim']();},CommentsV2AddCommentThreadResponse['decode']=function(_0x554953,length,_0x466081,_0x33a601){if(_0x554953 instanceof _0x470ccf||(_0x554953=_0x470ccf['create'](_0x554953)),void 0x0===_0x33a601&&(_0x33a601=0x0),_0x33a601>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3cfa87=void 0x0===length?_0x554953['len']:_0x554953['pos']+length,_0x50aeb2=new $root['CommentsV2AddCommentThreadResponse']();_0x554953['pos']<_0x3cfa87;){var tag=_0x554953['uint32']();if(tag===_0x466081)break;switch(tag>>>0x3){case 0x1:_0x50aeb2['commentThreadId']=_0x554953['string']();break;case 0x2:_0x50aeb2['createdAt']=_0x554953['string']();break;case 0x3:_0x50aeb2['comments']&&_0x50aeb2['comments']['length']||(_0x50aeb2['comments']=[]),_0x50aeb2['comments']['push']($root['CommentThreadAddedCommentDescriptor']['decode'](_0x554953,_0x554953['uint32'](),void 0x0,_0x33a601+0x1));break;default:_0x554953['skipType'](0x7&tag,_0x33a601);}}return _0x50aeb2;},CommentsV2AddCommentThreadResponse['decodeDelimited']=function(_0x433b30){return _0x433b30 instanceof _0x470ccf||(_0x433b30=new _0x470ccf(_0x433b30)),this['decode'](_0x433b30,_0x433b30['uint32']());},CommentsV2AddCommentThreadResponse['verify']=function(_0xd172b3,_0x47b2eb){if('object'!=typeof _0xd172b3||null===_0xd172b3)return'object\x20expected';if(void 0x0===_0x47b2eb&&(_0x47b2eb=0x0),_0x47b2eb>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0xd172b3['commentThreadId']&&Object['hasOwnProperty']['call'](_0xd172b3,'commentThreadId')&&!$util['isString'](_0xd172b3['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0xd172b3['createdAt']&&Object['hasOwnProperty']['call'](_0xd172b3,'createdAt')&&!$util['isString'](_0xd172b3['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0xd172b3['comments']&&Object['hasOwnProperty']['call'](_0xd172b3,'comments')){if(!Array['isArray'](_0xd172b3['comments']))return'comments:\x20array\x20expected';for(var _0xf4ad32=0x0;_0xf4ad32<_0xd172b3['comments']['length'];++_0xf4ad32){var _0x4ff5b2=$root['CommentThreadAddedCommentDescriptor']['verify'](_0xd172b3['comments'][_0xf4ad32],_0x47b2eb+0x1);if(_0x4ff5b2)return'comments.'+_0x4ff5b2;}}return null;},CommentsV2AddCommentThreadResponse['fromObject']=function(object,_0x5e59a1){if(object instanceof $root['CommentsV2AddCommentThreadResponse'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2AddCommentThreadResponse:\x20object\x20expected');if(void 0x0===_0x5e59a1&&(_0x5e59a1=0x0),_0x5e59a1>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x11dba7=new $root['CommentsV2AddCommentThreadResponse']();if(null!=object['commentThreadId']&&(_0x11dba7['commentThreadId']=String(object['commentThreadId'])),null!=object['createdAt']&&(_0x11dba7['createdAt']=String(object['createdAt'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20array\x20expected');_0x11dba7['comments']=[];for(var _0x38c6ac=0x0;_0x38c6ac<object['comments']['length'];++_0x38c6ac){if(!$util['isObject'](object['comments'][_0x38c6ac]))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20object\x20expected');_0x11dba7['comments'][_0x38c6ac]=$root['CommentThreadAddedCommentDescriptor']['fromObject'](object['comments'][_0x38c6ac],_0x5e59a1+0x1);}}return _0x11dba7;},CommentsV2AddCommentThreadResponse['toObject']=function(_0x1a7f50,options,_0x26dd15){if(options||(options={}),void 0x0===_0x26dd15&&(_0x26dd15=0x0),_0x26dd15>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[]),options['defaults']&&(object['commentThreadId']='',object['createdAt']=''),null!=_0x1a7f50['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1a7f50,'commentThreadId')&&(object['commentThreadId']=_0x1a7f50['commentThreadId']),null!=_0x1a7f50['createdAt']&&Object['hasOwnProperty']['call'](_0x1a7f50,'createdAt')&&(object['createdAt']=_0x1a7f50['createdAt']),_0x1a7f50['comments']&&_0x1a7f50['comments']['length']){object['comments']=[];for(var _0x352ec4=0x0;_0x352ec4<_0x1a7f50['comments']['length'];++_0x352ec4)object['comments'][_0x352ec4]=$root['CommentThreadAddedCommentDescriptor']['toObject'](_0x1a7f50['comments'][_0x352ec4],options,_0x26dd15+0x1);}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 _0x8a92e1=Object['keys'](properties),_0x23e835=0x0;_0x23e835<_0x8a92e1['length'];++_0x23e835)null!=properties[_0x8a92e1[_0x23e835]]&&'__proto__'!==_0x8a92e1[_0x23e835]&&(this[_0x8a92e1[_0x23e835]]=properties[_0x8a92e1[_0x23e835]]);}}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(_0x365b38,writer,_0x339f0c){if(writer||(writer=$Writer['create']()),void 0x0===_0x339f0c&&(_0x339f0c=0x0),_0x339f0c>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x365b38['commentThreadId']&&Object['hasOwnProperty']['call'](_0x365b38,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x365b38['commentThreadId']),null!=_0x365b38['commentId']&&Object['hasOwnProperty']['call'](_0x365b38,'commentId')&&writer['uint32'](0x12)['string'](_0x365b38['commentId']),null!=_0x365b38['content']&&Object['hasOwnProperty']['call'](_0x365b38,'content')&&writer['uint32'](0x1a)['string'](_0x365b38['content']),null!=_0x365b38['documentId']&&Object['hasOwnProperty']['call'](_0x365b38,'documentId')&&writer['uint32'](0x22)['string'](_0x365b38['documentId']),null!=_0x365b38['attributes']&&Object['hasOwnProperty']['call'](_0x365b38,'attributes')&&writer['uint32'](0x2a)['string'](_0x365b38['attributes']),null!=_0x365b38['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x365b38,'isAttributesUpdated')&&writer['uint32'](0x30)['bool'](_0x365b38['isAttributesUpdated']),null!=_0x365b38['commentThread']&&Object['hasOwnProperty']['call'](_0x365b38,'commentThread')&&$root['CommentsThreadDescriptor']['encode'](_0x365b38['commentThread'],writer['uint32'](0x3a)['fork'](),_0x339f0c+0x1)['ldelim'](),writer;},CommentsV2UpdateCommentMessage['encodeDelimited']=function(_0x2cc80c,writer){return this['encode'](_0x2cc80c,writer)['ldelim']();},CommentsV2UpdateCommentMessage['decode']=function(_0x500939,length,_0x3445f7,_0xea02b6){if(_0x500939 instanceof _0x470ccf||(_0x500939=_0x470ccf['create'](_0x500939)),void 0x0===_0xea02b6&&(_0xea02b6=0x0),_0xea02b6>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1ba311=void 0x0===length?_0x500939['len']:_0x500939['pos']+length,_0x2f24ef=new $root['CommentsV2UpdateCommentMessage']();_0x500939['pos']<_0x1ba311;){var tag=_0x500939['uint32']();if(tag===_0x3445f7)break;switch(tag>>>0x3){case 0x1:_0x2f24ef['commentThreadId']=_0x500939['string']();break;case 0x2:_0x2f24ef['commentId']=_0x500939['string']();break;case 0x3:_0x2f24ef['content']=_0x500939['string']();break;case 0x4:_0x2f24ef['documentId']=_0x500939['string']();break;case 0x5:_0x2f24ef['attributes']=_0x500939['string']();break;case 0x6:_0x2f24ef['isAttributesUpdated']=_0x500939['bool']();break;case 0x7:_0x2f24ef['commentThread']=$root['CommentsThreadDescriptor']['decode'](_0x500939,_0x500939['uint32'](),void 0x0,_0xea02b6+0x1);break;default:_0x500939['skipType'](0x7&tag,_0xea02b6);}}return _0x2f24ef;},CommentsV2UpdateCommentMessage['decodeDelimited']=function(_0xb54ed8){return _0xb54ed8 instanceof _0x470ccf||(_0xb54ed8=new _0x470ccf(_0xb54ed8)),this['decode'](_0xb54ed8,_0xb54ed8['uint32']());},CommentsV2UpdateCommentMessage['verify']=function(_0x2e07b6,_0x5b5a9e){if('object'!=typeof _0x2e07b6||null===_0x2e07b6)return'object\x20expected';if(void 0x0===_0x5b5a9e&&(_0x5b5a9e=0x0),_0x5b5a9e>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x2e07b6['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2e07b6,'commentThreadId')&&!$util['isString'](_0x2e07b6['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x2e07b6['commentId']&&Object['hasOwnProperty']['call'](_0x2e07b6,'commentId')&&!$util['isString'](_0x2e07b6['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x2e07b6['content']&&Object['hasOwnProperty']['call'](_0x2e07b6,'content')&&!$util['isString'](_0x2e07b6['content']))return'content:\x20string\x20expected';if(null!=_0x2e07b6['documentId']&&Object['hasOwnProperty']['call'](_0x2e07b6,'documentId')&&!$util['isString'](_0x2e07b6['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x2e07b6['attributes']&&Object['hasOwnProperty']['call'](_0x2e07b6,'attributes')&&!$util['isString'](_0x2e07b6['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x2e07b6['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x2e07b6,'isAttributesUpdated')&&'boolean'!=typeof _0x2e07b6['isAttributesUpdated'])return'isAttributesUpdated:\x20boolean\x20expected';if(null!=_0x2e07b6['commentThread']&&Object['hasOwnProperty']['call'](_0x2e07b6,'commentThread')){var _0x53a20e=$root['CommentsThreadDescriptor']['verify'](_0x2e07b6['commentThread'],_0x5b5a9e+0x1);if(_0x53a20e)return'commentThread.'+_0x53a20e;}return null;},CommentsV2UpdateCommentMessage['fromObject']=function(object,_0x4a06a9){if(object instanceof $root['CommentsV2UpdateCommentMessage'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2UpdateCommentMessage:\x20object\x20expected');if(void 0x0===_0x4a06a9&&(_0x4a06a9=0x0),_0x4a06a9>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x361476=new $root['CommentsV2UpdateCommentMessage']();if(null!=object['commentThreadId']&&(_0x361476['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x361476['commentId']=String(object['commentId'])),null!=object['content']&&(_0x361476['content']=String(object['content'])),null!=object['documentId']&&(_0x361476['documentId']=String(object['documentId'])),null!=object['attributes']&&(_0x361476['attributes']=String(object['attributes'])),null!=object['isAttributesUpdated']&&(_0x361476['isAttributesUpdated']=Boolean(object['isAttributesUpdated'])),null!=object['commentThread']){if(!$util['isObject'](object['commentThread']))throw TypeError('.CommentsV2UpdateCommentMessage.commentThread:\x20object\x20expected');_0x361476['commentThread']=$root['CommentsThreadDescriptor']['fromObject'](object['commentThread'],_0x4a06a9+0x1);}return _0x361476;},CommentsV2UpdateCommentMessage['toObject']=function(_0x12cc2a,options,_0x345709){if(options||(options={}),void 0x0===_0x345709&&(_0x345709=0x0),_0x345709>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['content']='',object['documentId']='',object['attributes']='',object['isAttributesUpdated']=!0x1,object['commentThread']=null),null!=_0x12cc2a['commentThreadId']&&Object['hasOwnProperty']['call'](_0x12cc2a,'commentThreadId')&&(object['commentThreadId']=_0x12cc2a['commentThreadId']),null!=_0x12cc2a['commentId']&&Object['hasOwnProperty']['call'](_0x12cc2a,'commentId')&&(object['commentId']=_0x12cc2a['commentId']),null!=_0x12cc2a['content']&&Object['hasOwnProperty']['call'](_0x12cc2a,'content')&&(object['content']=_0x12cc2a['content']),null!=_0x12cc2a['documentId']&&Object['hasOwnProperty']['call'](_0x12cc2a,'documentId')&&(object['documentId']=_0x12cc2a['documentId']),null!=_0x12cc2a['attributes']&&Object['hasOwnProperty']['call'](_0x12cc2a,'attributes')&&(object['attributes']=_0x12cc2a['attributes']),null!=_0x12cc2a['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x12cc2a,'isAttributesUpdated')&&(object['isAttributesUpdated']=_0x12cc2a['isAttributesUpdated']),null!=_0x12cc2a['commentThread']&&Object['hasOwnProperty']['call'](_0x12cc2a,'commentThread')&&(object['commentThread']=$root['CommentsThreadDescriptor']['toObject'](_0x12cc2a['commentThread'],options,_0x345709+0x1)),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 _0x28696f=Object['keys'](properties),_0x56f800=0x0;_0x56f800<_0x28696f['length'];++_0x56f800)null!=properties[_0x28696f[_0x56f800]]&&'__proto__'!==_0x28696f[_0x56f800]&&(this[_0x28696f[_0x56f800]]=properties[_0x28696f[_0x56f800]]);}}return CommentsV2RemoveCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2RemoveCommentThreadMessage['prototype']['documentId']='',CommentsV2RemoveCommentThreadMessage['create']=function(properties){return new CommentsV2RemoveCommentThreadMessage(properties);},CommentsV2RemoveCommentThreadMessage['encode']=function(_0xcd83fb,writer,_0x1baaed){if(writer||(writer=$Writer['create']()),void 0x0===_0x1baaed&&(_0x1baaed=0x0),_0x1baaed>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0xcd83fb['commentThreadId']&&Object['hasOwnProperty']['call'](_0xcd83fb,'commentThreadId')&&writer['uint32'](0xa)['string'](_0xcd83fb['commentThreadId']),null!=_0xcd83fb['documentId']&&Object['hasOwnProperty']['call'](_0xcd83fb,'documentId')&&writer['uint32'](0x12)['string'](_0xcd83fb['documentId']),writer;},CommentsV2RemoveCommentThreadMessage['encodeDelimited']=function(_0x25a394,writer){return this['encode'](_0x25a394,writer)['ldelim']();},CommentsV2RemoveCommentThreadMessage['decode']=function(_0x8be5b7,length,_0x3a5b08,_0x4170bf){if(_0x8be5b7 instanceof _0x470ccf||(_0x8be5b7=_0x470ccf['create'](_0x8be5b7)),void 0x0===_0x4170bf&&(_0x4170bf=0x0),_0x4170bf>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x6f9312=void 0x0===length?_0x8be5b7['len']:_0x8be5b7['pos']+length,_0x3f919e=new $root['CommentsV2RemoveCommentThreadMessage']();_0x8be5b7['pos']<_0x6f9312;){var tag=_0x8be5b7['uint32']();if(tag===_0x3a5b08)break;switch(tag>>>0x3){case 0x1:_0x3f919e['commentThreadId']=_0x8be5b7['string']();break;case 0x2:_0x3f919e['documentId']=_0x8be5b7['string']();break;default:_0x8be5b7['skipType'](0x7&tag,_0x4170bf);}}return _0x3f919e;},CommentsV2RemoveCommentThreadMessage['decodeDelimited']=function(_0x5cdb6b){return _0x5cdb6b instanceof _0x470ccf||(_0x5cdb6b=new _0x470ccf(_0x5cdb6b)),this['decode'](_0x5cdb6b,_0x5cdb6b['uint32']());},CommentsV2RemoveCommentThreadMessage['verify']=function(_0x1dd75a,_0xa82674){return'object'!=typeof _0x1dd75a||null===_0x1dd75a?'object\x20expected':(void 0x0===_0xa82674&&(_0xa82674=0x0),_0xa82674>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x1dd75a['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1dd75a,'commentThreadId')&&!$util['isString'](_0x1dd75a['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x1dd75a['documentId']&&Object['hasOwnProperty']['call'](_0x1dd75a,'documentId')&&!$util['isString'](_0x1dd75a['documentId'])?'documentId:\x20string\x20expected':null);},CommentsV2RemoveCommentThreadMessage['fromObject']=function(object,_0x22f253){if(object instanceof $root['CommentsV2RemoveCommentThreadMessage'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2RemoveCommentThreadMessage:\x20object\x20expected');if(void 0x0===_0x22f253&&(_0x22f253=0x0),_0x22f253>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x477a1f=new $root['CommentsV2RemoveCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x477a1f['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x477a1f['documentId']=String(object['documentId'])),_0x477a1f;},CommentsV2RemoveCommentThreadMessage['toObject']=function(_0x550b43,options,_0x3093f4){if(options||(options={}),void 0x0===_0x3093f4&&(_0x3093f4=0x0),_0x3093f4>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x550b43['commentThreadId']&&Object['hasOwnProperty']['call'](_0x550b43,'commentThreadId')&&(object['commentThreadId']=_0x550b43['commentThreadId']),null!=_0x550b43['documentId']&&Object['hasOwnProperty']['call'](_0x550b43,'documentId')&&(object['documentId']=_0x550b43['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 _0x340722=Object['keys'](properties),_0x4d589=0x0;_0x4d589<_0x340722['length'];++_0x4d589)null!=properties[_0x340722[_0x4d589]]&&'__proto__'!==_0x340722[_0x4d589]&&(this[_0x340722[_0x4d589]]=properties[_0x340722[_0x4d589]]);}}return CommentsV2RemoveCommentMessage['prototype']['commentThreadId']='',CommentsV2RemoveCommentMessage['prototype']['commentId']='',CommentsV2RemoveCommentMessage['prototype']['documentId']='',CommentsV2RemoveCommentMessage['create']=function(properties){return new CommentsV2RemoveCommentMessage(properties);},CommentsV2RemoveCommentMessage['encode']=function(_0x295c8c,writer,_0x2f6a77){if(writer||(writer=$Writer['create']()),void 0x0===_0x2f6a77&&(_0x2f6a77=0x0),_0x2f6a77>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x295c8c['commentThreadId']&&Object['hasOwnProperty']['call'](_0x295c8c,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x295c8c['commentThreadId']),null!=_0x295c8c['commentId']&&Object['hasOwnProperty']['call'](_0x295c8c,'commentId')&&writer['uint32'](0x12)['string'](_0x295c8c['commentId']),null!=_0x295c8c['documentId']&&Object['hasOwnProperty']['call'](_0x295c8c,'documentId')&&writer['uint32'](0x1a)['string'](_0x295c8c['documentId']),writer;},CommentsV2RemoveCommentMessage['encodeDelimited']=function(_0x5a08df,writer){return this['encode'](_0x5a08df,writer)['ldelim']();},CommentsV2RemoveCommentMessage['decode']=function(_0x2a7d6a,length,_0xa8d07f,_0x15bd5b){if(_0x2a7d6a instanceof _0x470ccf||(_0x2a7d6a=_0x470ccf['create'](_0x2a7d6a)),void 0x0===_0x15bd5b&&(_0x15bd5b=0x0),_0x15bd5b>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1ca3b2=void 0x0===length?_0x2a7d6a['len']:_0x2a7d6a['pos']+length,_0x5532c1=new $root['CommentsV2RemoveCommentMessage']();_0x2a7d6a['pos']<_0x1ca3b2;){var tag=_0x2a7d6a['uint32']();if(tag===_0xa8d07f)break;switch(tag>>>0x3){case 0x1:_0x5532c1['commentThreadId']=_0x2a7d6a['string']();break;case 0x2:_0x5532c1['commentId']=_0x2a7d6a['string']();break;case 0x3:_0x5532c1['documentId']=_0x2a7d6a['string']();break;default:_0x2a7d6a['skipType'](0x7&tag,_0x15bd5b);}}return _0x5532c1;},CommentsV2RemoveCommentMessage['decodeDelimited']=function(_0x3132a0){return _0x3132a0 instanceof _0x470ccf||(_0x3132a0=new _0x470ccf(_0x3132a0)),this['decode'](_0x3132a0,_0x3132a0['uint32']());},CommentsV2RemoveCommentMessage['verify']=function(_0x5b224e,_0x1a123d){return'object'!=typeof _0x5b224e||null===_0x5b224e?'object\x20expected':(void 0x0===_0x1a123d&&(_0x1a123d=0x0),_0x1a123d>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x5b224e['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5b224e,'commentThreadId')&&!$util['isString'](_0x5b224e['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x5b224e['commentId']&&Object['hasOwnProperty']['call'](_0x5b224e,'commentId')&&!$util['isString'](_0x5b224e['commentId'])?'commentId:\x20string\x20expected':null!=_0x5b224e['documentId']&&Object['hasOwnProperty']['call'](_0x5b224e,'documentId')&&!$util['isString'](_0x5b224e['documentId'])?'documentId:\x20string\x20expected':null);},CommentsV2RemoveCommentMessage['fromObject']=function(object,_0x500d9a){if(object instanceof $root['CommentsV2RemoveCommentMessage'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2RemoveCommentMessage:\x20object\x20expected');if(void 0x0===_0x500d9a&&(_0x500d9a=0x0),_0x500d9a>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x594b22=new $root['CommentsV2RemoveCommentMessage']();return null!=object['commentThreadId']&&(_0x594b22['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x594b22['commentId']=String(object['commentId'])),null!=object['documentId']&&(_0x594b22['documentId']=String(object['documentId'])),_0x594b22;},CommentsV2RemoveCommentMessage['toObject']=function(_0x17f0c7,options,_0x3dc65d){if(options||(options={}),void 0x0===_0x3dc65d&&(_0x3dc65d=0x0),_0x3dc65d>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['documentId']=''),null!=_0x17f0c7['commentThreadId']&&Object['hasOwnProperty']['call'](_0x17f0c7,'commentThreadId')&&(object['commentThreadId']=_0x17f0c7['commentThreadId']),null!=_0x17f0c7['commentId']&&Object['hasOwnProperty']['call'](_0x17f0c7,'commentId')&&(object['commentId']=_0x17f0c7['commentId']),null!=_0x17f0c7['documentId']&&Object['hasOwnProperty']['call'](_0x17f0c7,'documentId')&&(object['documentId']=_0x17f0c7['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 _0xa11944=Object['keys'](properties),_0x12a8d6=0x0;_0x12a8d6<_0xa11944['length'];++_0x12a8d6)null!=properties[_0xa11944[_0x12a8d6]]&&'__proto__'!==_0xa11944[_0x12a8d6]&&(this[_0xa11944[_0x12a8d6]]=properties[_0xa11944[_0x12a8d6]]);}}return CommentsV2GetDocumentThreadsMessage['prototype']['documentId']='',CommentsV2GetDocumentThreadsMessage['create']=function(properties){return new CommentsV2GetDocumentThreadsMessage(properties);},CommentsV2GetDocumentThreadsMessage['encode']=function(_0x32cb26,writer,_0x26cd24){if(writer||(writer=$Writer['create']()),void 0x0===_0x26cd24&&(_0x26cd24=0x0),_0x26cd24>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x32cb26['documentId']&&Object['hasOwnProperty']['call'](_0x32cb26,'documentId')&&writer['uint32'](0xa)['string'](_0x32cb26['documentId']),writer;},CommentsV2GetDocumentThreadsMessage['encodeDelimited']=function(_0x26e524,writer){return this['encode'](_0x26e524,writer)['ldelim']();},CommentsV2GetDocumentThreadsMessage['decode']=function(_0x34026d,length,_0x50bb8f,_0x15f86b){if(_0x34026d instanceof _0x470ccf||(_0x34026d=_0x470ccf['create'](_0x34026d)),void 0x0===_0x15f86b&&(_0x15f86b=0x0),_0x15f86b>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x535f33=void 0x0===length?_0x34026d['len']:_0x34026d['pos']+length,_0x4c13ca=new $root['CommentsV2GetDocumentThreadsMessage']();_0x34026d['pos']<_0x535f33;){var tag=_0x34026d['uint32']();if(tag===_0x50bb8f)break;if(tag>>>0x3==0x1)_0x4c13ca['documentId']=_0x34026d['string']();else _0x34026d['skipType'](0x7&tag,_0x15f86b);}return _0x4c13ca;},CommentsV2GetDocumentThreadsMessage['decodeDelimited']=function(_0x510ad3){return _0x510ad3 instanceof _0x470ccf||(_0x510ad3=new _0x470ccf(_0x510ad3)),this['decode'](_0x510ad3,_0x510ad3['uint32']());},CommentsV2GetDocumentThreadsMessage['verify']=function(_0x29e2ff,_0x276cf7){return'object'!=typeof _0x29e2ff||null===_0x29e2ff?'object\x20expected':(void 0x0===_0x276cf7&&(_0x276cf7=0x0),_0x276cf7>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x29e2ff['documentId']&&Object['hasOwnProperty']['call'](_0x29e2ff,'documentId')&&!$util['isString'](_0x29e2ff['documentId'])?'documentId:\x20string\x20expected':null);},CommentsV2GetDocumentThreadsMessage['fromObject']=function(object,_0x12a6a7){if(object instanceof $root['CommentsV2GetDocumentThreadsMessage'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2GetDocumentThreadsMessage:\x20object\x20expected');if(void 0x0===_0x12a6a7&&(_0x12a6a7=0x0),_0x12a6a7>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x23309f=new $root['CommentsV2GetDocumentThreadsMessage']();return null!=object['documentId']&&(_0x23309f['documentId']=String(object['documentId'])),_0x23309f;},CommentsV2GetDocumentThreadsMessage['toObject']=function(_0x2f778e,options,_0x1df4e8){if(options||(options={}),void 0x0===_0x1df4e8&&(_0x1df4e8=0x0),_0x1df4e8>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['documentId']=''),null!=_0x2f778e['documentId']&&Object['hasOwnProperty']['call'](_0x2f778e,'documentId')&&(object['documentId']=_0x2f778e['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 _0x2bbe8f=Object['keys'](properties),_0x47d186=0x0;_0x47d186<_0x2bbe8f['length'];++_0x47d186)null!=properties[_0x2bbe8f[_0x47d186]]&&'__proto__'!==_0x2bbe8f[_0x47d186]&&(this[_0x2bbe8f[_0x47d186]]=properties[_0x2bbe8f[_0x47d186]]);}}return CommentsV2GetCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2GetCommentThreadMessage['prototype']['documentId']='',CommentsV2GetCommentThreadMessage['create']=function(properties){return new CommentsV2GetCommentThreadMessage(properties);},CommentsV2GetCommentThreadMessage['encode']=function(_0x1b08b6,writer,_0xda6c60){if(writer||(writer=$Writer['create']()),void 0x0===_0xda6c60&&(_0xda6c60=0x0),_0xda6c60>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x1b08b6['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1b08b6,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x1b08b6['commentThreadId']),null!=_0x1b08b6['documentId']&&Object['hasOwnProperty']['call'](_0x1b08b6,'documentId')&&writer['uint32'](0x12)['string'](_0x1b08b6['documentId']),writer;},CommentsV2GetCommentThreadMessage['encodeDelimited']=function(_0x3ed0ed,writer){return this['encode'](_0x3ed0ed,writer)['ldelim']();},CommentsV2GetCommentThreadMessage['decode']=function(_0x42613c,length,_0x4c6512,_0x278027){if(_0x42613c instanceof _0x470ccf||(_0x42613c=_0x470ccf['create'](_0x42613c)),void 0x0===_0x278027&&(_0x278027=0x0),_0x278027>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2e5635=void 0x0===length?_0x42613c['len']:_0x42613c['pos']+length,_0x23e0df=new $root['CommentsV2GetCommentThreadMessage']();_0x42613c['pos']<_0x2e5635;){var tag=_0x42613c['uint32']();if(tag===_0x4c6512)break;switch(tag>>>0x3){case 0x1:_0x23e0df['commentThreadId']=_0x42613c['string']();break;case 0x2:_0x23e0df['documentId']=_0x42613c['string']();break;default:_0x42613c['skipType'](0x7&tag,_0x278027);}}return _0x23e0df;},CommentsV2GetCommentThreadMessage['decodeDelimited']=function(_0x326901){return _0x326901 instanceof _0x470ccf||(_0x326901=new _0x470ccf(_0x326901)),this['decode'](_0x326901,_0x326901['uint32']());},CommentsV2GetCommentThreadMessage['verify']=function(_0x505bf8,_0x109361){return'object'!=typeof _0x505bf8||null===_0x505bf8?'object\x20expected':(void 0x0===_0x109361&&(_0x109361=0x0),_0x109361>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x505bf8['commentThreadId']&&Object['hasOwnProperty']['call'](_0x505bf8,'commentThreadId')&&!$util['isString'](_0x505bf8['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x505bf8['documentId']&&Object['hasOwnProperty']['call'](_0x505bf8,'documentId')&&!$util['isString'](_0x505bf8['documentId'])?'documentId:\x20string\x20expected':null);},CommentsV2GetCommentThreadMessage['fromObject']=function(object,_0x8f8dc6){if(object instanceof $root['CommentsV2GetCommentThreadMessage'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2GetCommentThreadMessage:\x20object\x20expected');if(void 0x0===_0x8f8dc6&&(_0x8f8dc6=0x0),_0x8f8dc6>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1965e3=new $root['CommentsV2GetCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x1965e3['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x1965e3['documentId']=String(object['documentId'])),_0x1965e3;},CommentsV2GetCommentThreadMessage['toObject']=function(_0x558f67,options,_0x4a36f6){if(options||(options={}),void 0x0===_0x4a36f6&&(_0x4a36f6=0x0),_0x4a36f6>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x558f67['commentThreadId']&&Object['hasOwnProperty']['call'](_0x558f67,'commentThreadId')&&(object['commentThreadId']=_0x558f67['commentThreadId']),null!=_0x558f67['documentId']&&Object['hasOwnProperty']['call'](_0x558f67,'documentId')&&(object['documentId']=_0x558f67['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 _0x1aa31d=Object['keys'](properties),_0x3d4bcb=0x0;_0x3d4bcb<_0x1aa31d['length'];++_0x3d4bcb)null!=properties[_0x1aa31d[_0x3d4bcb]]&&'__proto__'!==_0x1aa31d[_0x3d4bcb]&&(this[_0x1aa31d[_0x3d4bcb]]=properties[_0x1aa31d[_0x3d4bcb]]);}}return CommentsV2ConnectMessage['prototype']['documentId']='',CommentsV2ConnectMessage['create']=function(properties){return new CommentsV2ConnectMessage(properties);},CommentsV2ConnectMessage['encode']=function(_0x2267ee,writer,_0x3cf370){if(writer||(writer=$Writer['create']()),void 0x0===_0x3cf370&&(_0x3cf370=0x0),_0x3cf370>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x2267ee['documentId']&&Object['hasOwnProperty']['call'](_0x2267ee,'documentId')&&writer['uint32'](0xa)['string'](_0x2267ee['documentId']),writer;},CommentsV2ConnectMessage['encodeDelimited']=function(_0x4022f8,writer){return this['encode'](_0x4022f8,writer)['ldelim']();},CommentsV2ConnectMessage['decode']=function(_0x2d408f,length,_0x2a1d61,_0x4cb18e){if(_0x2d408f instanceof _0x470ccf||(_0x2d408f=_0x470ccf['create'](_0x2d408f)),void 0x0===_0x4cb18e&&(_0x4cb18e=0x0),_0x4cb18e>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x551baa=void 0x0===length?_0x2d408f['len']:_0x2d408f['pos']+length,_0xff4fd2=new $root['CommentsV2ConnectMessage']();_0x2d408f['pos']<_0x551baa;){var tag=_0x2d408f['uint32']();if(tag===_0x2a1d61)break;if(tag>>>0x3==0x1)_0xff4fd2['documentId']=_0x2d408f['string']();else _0x2d408f['skipType'](0x7&tag,_0x4cb18e);}return _0xff4fd2;},CommentsV2ConnectMessage['decodeDelimited']=function(_0x44c81d){return _0x44c81d instanceof _0x470ccf||(_0x44c81d=new _0x470ccf(_0x44c81d)),this['decode'](_0x44c81d,_0x44c81d['uint32']());},CommentsV2ConnectMessage['verify']=function(_0x1cb601,_0x3a643b){return'object'!=typeof _0x1cb601||null===_0x1cb601?'object\x20expected':(void 0x0===_0x3a643b&&(_0x3a643b=0x0),_0x3a643b>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x1cb601['documentId']&&Object['hasOwnProperty']['call'](_0x1cb601,'documentId')&&!$util['isString'](_0x1cb601['documentId'])?'documentId:\x20string\x20expected':null);},CommentsV2ConnectMessage['fromObject']=function(object,_0x2fe127){if(object instanceof $root['CommentsV2ConnectMessage'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2ConnectMessage:\x20object\x20expected');if(void 0x0===_0x2fe127&&(_0x2fe127=0x0),_0x2fe127>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x6fe94a=new $root['CommentsV2ConnectMessage']();return null!=object['documentId']&&(_0x6fe94a['documentId']=String(object['documentId'])),_0x6fe94a;},CommentsV2ConnectMessage['toObject']=function(_0x25e1f9,options,_0x1e2605){if(options||(options={}),void 0x0===_0x1e2605&&(_0x1e2605=0x0),_0x1e2605>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['documentId']=''),null!=_0x25e1f9['documentId']&&Object['hasOwnProperty']['call'](_0x25e1f9,'documentId')&&(object['documentId']=_0x25e1f9['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 _0x3adf20=Object['keys'](properties),_0x33f93c=0x0;_0x33f93c<_0x3adf20['length'];++_0x33f93c)null!=properties[_0x3adf20[_0x33f93c]]&&'__proto__'!==_0x3adf20[_0x33f93c]&&(this[_0x3adf20[_0x33f93c]]=properties[_0x3adf20[_0x33f93c]]);}}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(_0x32c699,writer,_0x2f6186){if(writer||(writer=$Writer['create']()),void 0x0===_0x2f6186&&(_0x2f6186=0x0),_0x2f6186>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x32c699['commentThreadId']&&Object['hasOwnProperty']['call'](_0x32c699,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x32c699['commentThreadId']),null!=_0x32c699['content']&&Object['hasOwnProperty']['call'](_0x32c699,'content')&&writer['uint32'](0x12)['string'](_0x32c699['content']),null!=_0x32c699['documentId']&&Object['hasOwnProperty']['call'](_0x32c699,'documentId')&&writer['uint32'](0x1a)['string'](_0x32c699['documentId']),null!=_0x32c699['commentId']&&Object['hasOwnProperty']['call'](_0x32c699,'commentId')&&writer['uint32'](0x22)['string'](_0x32c699['commentId']),null!=_0x32c699['createdAt']&&Object['hasOwnProperty']['call'](_0x32c699,'createdAt')&&writer['uint32'](0x2a)['string'](_0x32c699['createdAt']),null!=_0x32c699['userId']&&Object['hasOwnProperty']['call'](_0x32c699,'userId')&&writer['uint32'](0x32)['string'](_0x32c699['userId']),null!=_0x32c699['attributes']&&Object['hasOwnProperty']['call'](_0x32c699,'attributes')&&writer['uint32'](0x3a)['string'](_0x32c699['attributes']),null!=_0x32c699['commentThread']&&Object['hasOwnProperty']['call'](_0x32c699,'commentThread')&&$root['CommentsThreadDescriptor']['encode'](_0x32c699['commentThread'],writer['uint32'](0x42)['fork'](),_0x2f6186+0x1)['ldelim'](),writer;},CommentsV2AddCommentMessage['encodeDelimited']=function(_0x37e81f,writer){return this['encode'](_0x37e81f,writer)['ldelim']();},CommentsV2AddCommentMessage['decode']=function(_0x155c77,length,_0x309b9f,_0x203ce3){if(_0x155c77 instanceof _0x470ccf||(_0x155c77=_0x470ccf['create'](_0x155c77)),void 0x0===_0x203ce3&&(_0x203ce3=0x0),_0x203ce3>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5303bb=void 0x0===length?_0x155c77['len']:_0x155c77['pos']+length,_0x2f281a=new $root['CommentsV2AddCommentMessage']();_0x155c77['pos']<_0x5303bb;){var tag=_0x155c77['uint32']();if(tag===_0x309b9f)break;switch(tag>>>0x3){case 0x1:_0x2f281a['commentThreadId']=_0x155c77['string']();break;case 0x2:_0x2f281a['content']=_0x155c77['string']();break;case 0x3:_0x2f281a['documentId']=_0x155c77['string']();break;case 0x4:_0x2f281a['commentId']=_0x155c77['string']();break;case 0x5:_0x2f281a['createdAt']=_0x155c77['string']();break;case 0x6:_0x2f281a['userId']=_0x155c77['string']();break;case 0x7:_0x2f281a['attributes']=_0x155c77['string']();break;case 0x8:_0x2f281a['commentThread']=$root['CommentsThreadDescriptor']['decode'](_0x155c77,_0x155c77['uint32'](),void 0x0,_0x203ce3+0x1);break;default:_0x155c77['skipType'](0x7&tag,_0x203ce3);}}return _0x2f281a;},CommentsV2AddCommentMessage['decodeDelimited']=function(_0x5065b3){return _0x5065b3 instanceof _0x470ccf||(_0x5065b3=new _0x470ccf(_0x5065b3)),this['decode'](_0x5065b3,_0x5065b3['uint32']());},CommentsV2AddCommentMessage['verify']=function(_0x3e68e6,_0x376c53){if('object'!=typeof _0x3e68e6||null===_0x3e68e6)return'object\x20expected';if(void 0x0===_0x376c53&&(_0x376c53=0x0),_0x376c53>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x3e68e6['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3e68e6,'commentThreadId')&&!$util['isString'](_0x3e68e6['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x3e68e6['content']&&Object['hasOwnProperty']['call'](_0x3e68e6,'content')&&!$util['isString'](_0x3e68e6['content']))return'content:\x20string\x20expected';if(null!=_0x3e68e6['documentId']&&Object['hasOwnProperty']['call'](_0x3e68e6,'documentId')&&!$util['isString'](_0x3e68e6['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x3e68e6['commentId']&&Object['hasOwnProperty']['call'](_0x3e68e6,'commentId')&&!$util['isString'](_0x3e68e6['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x3e68e6['createdAt']&&Object['hasOwnProperty']['call'](_0x3e68e6,'createdAt')&&!$util['isString'](_0x3e68e6['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x3e68e6['userId']&&Object['hasOwnProperty']['call'](_0x3e68e6,'userId')&&!$util['isString'](_0x3e68e6['userId']))return'userId:\x20string\x20expected';if(null!=_0x3e68e6['attributes']&&Object['hasOwnProperty']['call'](_0x3e68e6,'attributes')&&!$util['isString'](_0x3e68e6['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x3e68e6['commentThread']&&Object['hasOwnProperty']['call'](_0x3e68e6,'commentThread')){var _0x5a5206=$root['CommentsThreadDescriptor']['verify'](_0x3e68e6['commentThread'],_0x376c53+0x1);if(_0x5a5206)return'commentThread.'+_0x5a5206;}return null;},CommentsV2AddCommentMessage['fromObject']=function(object,_0x546dd5){if(object instanceof $root['CommentsV2AddCommentMessage'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2AddCommentMessage:\x20object\x20expected');if(void 0x0===_0x546dd5&&(_0x546dd5=0x0),_0x546dd5>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x4669b8=new $root['CommentsV2AddCommentMessage']();if(null!=object['commentThreadId']&&(_0x4669b8['commentThreadId']=String(object['commentThreadId'])),null!=object['content']&&(_0x4669b8['content']=String(object['content'])),null!=object['documentId']&&(_0x4669b8['documentId']=String(object['documentId'])),null!=object['commentId']&&(_0x4669b8['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0x4669b8['createdAt']=String(object['createdAt'])),null!=object['userId']&&(_0x4669b8['userId']=String(object['userId'])),null!=object['attributes']&&(_0x4669b8['attributes']=String(object['attributes'])),null!=object['commentThread']){if(!$util['isObject'](object['commentThread']))throw TypeError('.CommentsV2AddCommentMessage.commentThread:\x20object\x20expected');_0x4669b8['commentThread']=$root['CommentsThreadDescriptor']['fromObject'](object['commentThread'],_0x546dd5+0x1);}return _0x4669b8;},CommentsV2AddCommentMessage['toObject']=function(_0x5470a1,options,_0x1e4d09){if(options||(options={}),void 0x0===_0x1e4d09&&(_0x1e4d09=0x0),_0x1e4d09>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['commentThreadId']='',object['content']='',object['documentId']='',object['commentId']='',object['createdAt']='',object['userId']='',object['attributes']='',object['commentThread']=null),null!=_0x5470a1['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5470a1,'commentThreadId')&&(object['commentThreadId']=_0x5470a1['commentThreadId']),null!=_0x5470a1['content']&&Object['hasOwnProperty']['call'](_0x5470a1,'content')&&(object['content']=_0x5470a1['content']),null!=_0x5470a1['documentId']&&Object['hasOwnProperty']['call'](_0x5470a1,'documentId')&&(object['documentId']=_0x5470a1['documentId']),null!=_0x5470a1['commentId']&&Object['hasOwnProperty']['call'](_0x5470a1,'commentId')&&(object['commentId']=_0x5470a1['commentId']),null!=_0x5470a1['createdAt']&&Object['hasOwnProperty']['call'](_0x5470a1,'createdAt')&&(object['createdAt']=_0x5470a1['createdAt']),null!=_0x5470a1['userId']&&Object['hasOwnProperty']['call'](_0x5470a1,'userId')&&(object['userId']=_0x5470a1['userId']),null!=_0x5470a1['attributes']&&Object['hasOwnProperty']['call'](_0x5470a1,'attributes')&&(object['attributes']=_0x5470a1['attributes']),null!=_0x5470a1['commentThread']&&Object['hasOwnProperty']['call'](_0x5470a1,'commentThread')&&(object['commentThread']=$root['CommentsThreadDescriptor']['toObject'](_0x5470a1['commentThread'],options,_0x1e4d09+0x1)),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 _0x337452=Object['keys'](properties),_0x1ba4a5=0x0;_0x1ba4a5<_0x337452['length'];++_0x1ba4a5)null!=properties[_0x337452[_0x1ba4a5]]&&'__proto__'!==_0x337452[_0x1ba4a5]&&(this[_0x337452[_0x1ba4a5]]=properties[_0x337452[_0x1ba4a5]]);}}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(_0x4f6479,writer,_0x4b5e80){if(writer||(writer=$Writer['create']()),void 0x0===_0x4b5e80&&(_0x4b5e80=0x0),_0x4b5e80>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x4f6479['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4f6479,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x4f6479['commentThreadId']),null!=_0x4f6479['documentId']&&Object['hasOwnProperty']['call'](_0x4f6479,'documentId')&&writer['uint32'](0x12)['string'](_0x4f6479['documentId']),null!=_0x4f6479['context']&&Object['hasOwnProperty']['call'](_0x4f6479,'context')&&writer['uint32'](0x1a)['string'](_0x4f6479['context']),null!=_0x4f6479['attributes']&&Object['hasOwnProperty']['call'](_0x4f6479,'attributes')&&writer['uint32'](0x22)['string'](_0x4f6479['attributes']),null!=_0x4f6479['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x4f6479,'unlinkedAt')&&writer['uint32'](0x2a)['string'](_0x4f6479['unlinkedAt']),writer;},CommentsV2UpdateCommentThreadMessage['encodeDelimited']=function(_0x568071,writer){return this['encode'](_0x568071,writer)['ldelim']();},CommentsV2UpdateCommentThreadMessage['decode']=function(_0x488381,length,_0x17cb29,_0x4afe75){if(_0x488381 instanceof _0x470ccf||(_0x488381=_0x470ccf['create'](_0x488381)),void 0x0===_0x4afe75&&(_0x4afe75=0x0),_0x4afe75>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xd78a27=void 0x0===length?_0x488381['len']:_0x488381['pos']+length,_0x5f0ef7=new $root['CommentsV2UpdateCommentThreadMessage']();_0x488381['pos']<_0xd78a27;){var tag=_0x488381['uint32']();if(tag===_0x17cb29)break;switch(tag>>>0x3){case 0x1:_0x5f0ef7['commentThreadId']=_0x488381['string']();break;case 0x2:_0x5f0ef7['documentId']=_0x488381['string']();break;case 0x3:_0x5f0ef7['context']=_0x488381['string']();break;case 0x4:_0x5f0ef7['attributes']=_0x488381['string']();break;case 0x5:_0x5f0ef7['unlinkedAt']=_0x488381['string']();break;default:_0x488381['skipType'](0x7&tag,_0x4afe75);}}return _0x5f0ef7;},CommentsV2UpdateCommentThreadMessage['decodeDelimited']=function(_0x33af84){return _0x33af84 instanceof _0x470ccf||(_0x33af84=new _0x470ccf(_0x33af84)),this['decode'](_0x33af84,_0x33af84['uint32']());},CommentsV2UpdateCommentThreadMessage['verify']=function(_0x14b081,_0xf01a73){return'object'!=typeof _0x14b081||null===_0x14b081?'object\x20expected':(void 0x0===_0xf01a73&&(_0xf01a73=0x0),_0xf01a73>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x14b081['commentThreadId']&&Object['hasOwnProperty']['call'](_0x14b081,'commentThreadId')&&!$util['isString'](_0x14b081['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x14b081['documentId']&&Object['hasOwnProperty']['call'](_0x14b081,'documentId')&&!$util['isString'](_0x14b081['documentId'])?'documentId:\x20string\x20expected':null!=_0x14b081['context']&&Object['hasOwnProperty']['call'](_0x14b081,'context')&&!$util['isString'](_0x14b081['context'])?'context:\x20string\x20expected':null!=_0x14b081['attributes']&&Object['hasOwnProperty']['call'](_0x14b081,'attributes')&&!$util['isString'](_0x14b081['attributes'])?'attributes:\x20string\x20expected':null!=_0x14b081['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x14b081,'unlinkedAt')&&!$util['isString'](_0x14b081['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null);},CommentsV2UpdateCommentThreadMessage['fromObject']=function(object,_0x24e6b4){if(object instanceof $root['CommentsV2UpdateCommentThreadMessage'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2UpdateCommentThreadMessage:\x20object\x20expected');if(void 0x0===_0x24e6b4&&(_0x24e6b4=0x0),_0x24e6b4>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xcd5da1=new $root['CommentsV2UpdateCommentThreadMessage']();return null!=object['commentThreadId']&&(_0xcd5da1['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0xcd5da1['documentId']=String(object['documentId'])),null!=object['context']&&(_0xcd5da1['context']=String(object['context'])),null!=object['attributes']&&(_0xcd5da1['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0xcd5da1['unlinkedAt']=String(object['unlinkedAt'])),_0xcd5da1;},CommentsV2UpdateCommentThreadMessage['toObject']=function(_0x1ff923,options,_0x8e0dfc){if(options||(options={}),void 0x0===_0x8e0dfc&&(_0x8e0dfc=0x0),_0x8e0dfc>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['context']='',object['attributes']='',object['unlinkedAt']=''),null!=_0x1ff923['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1ff923,'commentThreadId')&&(object['commentThreadId']=_0x1ff923['commentThreadId']),null!=_0x1ff923['documentId']&&Object['hasOwnProperty']['call'](_0x1ff923,'documentId')&&(object['documentId']=_0x1ff923['documentId']),null!=_0x1ff923['context']&&Object['hasOwnProperty']['call'](_0x1ff923,'context')&&(object['context']=_0x1ff923['context']),null!=_0x1ff923['attributes']&&Object['hasOwnProperty']['call'](_0x1ff923,'attributes')&&(object['attributes']=_0x1ff923['attributes']),null!=_0x1ff923['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x1ff923,'unlinkedAt')&&(object['unlinkedAt']=_0x1ff923['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 _0x46fca8=Object['keys'](properties),_0x2b8aac=0x0;_0x2b8aac<_0x46fca8['length'];++_0x2b8aac)null!=properties[_0x46fca8[_0x2b8aac]]&&'__proto__'!==_0x46fca8[_0x2b8aac]&&(this[_0x46fca8[_0x2b8aac]]=properties[_0x46fca8[_0x2b8aac]]);}}return CommentsV2ResolveCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2ResolveCommentThreadMessage['prototype']['documentId']='',CommentsV2ResolveCommentThreadMessage['prototype']['resolvedBy']='',CommentsV2ResolveCommentThreadMessage['prototype']['resolvedAt']='',CommentsV2ResolveCommentThreadMessage['create']=function(properties){return new CommentsV2ResolveCommentThreadMessage(properties);},CommentsV2ResolveCommentThreadMessage['encode']=function(_0x189cce,writer,_0x54a22e){if(writer||(writer=$Writer['create']()),void 0x0===_0x54a22e&&(_0x54a22e=0x0),_0x54a22e>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x189cce['commentThreadId']&&Object['hasOwnProperty']['call'](_0x189cce,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x189cce['commentThreadId']),null!=_0x189cce['documentId']&&Object['hasOwnProperty']['call'](_0x189cce,'documentId')&&writer['uint32'](0x12)['string'](_0x189cce['documentId']),null!=_0x189cce['resolvedBy']&&Object['hasOwnProperty']['call'](_0x189cce,'resolvedBy')&&writer['uint32'](0x1a)['string'](_0x189cce['resolvedBy']),null!=_0x189cce['resolvedAt']&&Object['hasOwnProperty']['call'](_0x189cce,'resolvedAt')&&writer['uint32'](0x22)['string'](_0x189cce['resolvedAt']),writer;},CommentsV2ResolveCommentThreadMessage['encodeDelimited']=function(_0x1b01d2,writer){return this['encode'](_0x1b01d2,writer)['ldelim']();},CommentsV2ResolveCommentThreadMessage['decode']=function(_0x4fc572,length,_0x4c8d83,_0x5c8599){if(_0x4fc572 instanceof _0x470ccf||(_0x4fc572=_0x470ccf['create'](_0x4fc572)),void 0x0===_0x5c8599&&(_0x5c8599=0x0),_0x5c8599>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x55cbc7=void 0x0===length?_0x4fc572['len']:_0x4fc572['pos']+length,_0x4af1db=new $root['CommentsV2ResolveCommentThreadMessage']();_0x4fc572['pos']<_0x55cbc7;){var tag=_0x4fc572['uint32']();if(tag===_0x4c8d83)break;switch(tag>>>0x3){case 0x1:_0x4af1db['commentThreadId']=_0x4fc572['string']();break;case 0x2:_0x4af1db['documentId']=_0x4fc572['string']();break;case 0x3:_0x4af1db['resolvedBy']=_0x4fc572['string']();break;case 0x4:_0x4af1db['resolvedAt']=_0x4fc572['string']();break;default:_0x4fc572['skipType'](0x7&tag,_0x5c8599);}}return _0x4af1db;},CommentsV2ResolveCommentThreadMessage['decodeDelimited']=function(_0x164cd4){return _0x164cd4 instanceof _0x470ccf||(_0x164cd4=new _0x470ccf(_0x164cd4)),this['decode'](_0x164cd4,_0x164cd4['uint32']());},CommentsV2ResolveCommentThreadMessage['verify']=function(_0x31ef3b,_0x5cac27){return'object'!=typeof _0x31ef3b||null===_0x31ef3b?'object\x20expected':(void 0x0===_0x5cac27&&(_0x5cac27=0x0),_0x5cac27>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x31ef3b['commentThreadId']&&Object['hasOwnProperty']['call'](_0x31ef3b,'commentThreadId')&&!$util['isString'](_0x31ef3b['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x31ef3b['documentId']&&Object['hasOwnProperty']['call'](_0x31ef3b,'documentId')&&!$util['isString'](_0x31ef3b['documentId'])?'documentId:\x20string\x20expected':null!=_0x31ef3b['resolvedBy']&&Object['hasOwnProperty']['call'](_0x31ef3b,'resolvedBy')&&!$util['isString'](_0x31ef3b['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x31ef3b['resolvedAt']&&Object['hasOwnProperty']['call'](_0x31ef3b,'resolvedAt')&&!$util['isString'](_0x31ef3b['resolvedAt'])?'resolvedAt:\x20string\x20expected':null);},CommentsV2ResolveCommentThreadMessage['fromObject']=function(object,_0x45e7fb){if(object instanceof $root['CommentsV2ResolveCommentThreadMessage'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2ResolveCommentThreadMessage:\x20object\x20expected');if(void 0x0===_0x45e7fb&&(_0x45e7fb=0x0),_0x45e7fb>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x281ab3=new $root['CommentsV2ResolveCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x281ab3['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x281ab3['documentId']=String(object['documentId'])),null!=object['resolvedBy']&&(_0x281ab3['resolvedBy']=String(object['resolvedBy'])),null!=object['resolvedAt']&&(_0x281ab3['resolvedAt']=String(object['resolvedAt'])),_0x281ab3;},CommentsV2ResolveCommentThreadMessage['toObject']=function(_0x343677,options,_0x30555c){if(options||(options={}),void 0x0===_0x30555c&&(_0x30555c=0x0),_0x30555c>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['resolvedBy']='',object['resolvedAt']=''),null!=_0x343677['commentThreadId']&&Object['hasOwnProperty']['call'](_0x343677,'commentThreadId')&&(object['commentThreadId']=_0x343677['commentThreadId']),null!=_0x343677['documentId']&&Object['hasOwnProperty']['call'](_0x343677,'documentId')&&(object['documentId']=_0x343677['documentId']),null!=_0x343677['resolvedBy']&&Object['hasOwnProperty']['call'](_0x343677,'resolvedBy')&&(object['resolvedBy']=_0x343677['resolvedBy']),null!=_0x343677['resolvedAt']&&Object['hasOwnProperty']['call'](_0x343677,'resolvedAt')&&(object['resolvedAt']=_0x343677['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 _0x491587=Object['keys'](properties),_0x5c2220=0x0;_0x5c2220<_0x491587['length'];++_0x5c2220)null!=properties[_0x491587[_0x5c2220]]&&'__proto__'!==_0x491587[_0x5c2220]&&(this[_0x491587[_0x5c2220]]=properties[_0x491587[_0x5c2220]]);}}return CommentsV2ReopenCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2ReopenCommentThreadMessage['prototype']['documentId']='',CommentsV2ReopenCommentThreadMessage['create']=function(properties){return new CommentsV2ReopenCommentThreadMessage(properties);},CommentsV2ReopenCommentThreadMessage['encode']=function(_0xf54293,writer,_0x900974){if(writer||(writer=$Writer['create']()),void 0x0===_0x900974&&(_0x900974=0x0),_0x900974>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0xf54293['commentThreadId']&&Object['hasOwnProperty']['call'](_0xf54293,'commentThreadId')&&writer['uint32'](0xa)['string'](_0xf54293['commentThreadId']),null!=_0xf54293['documentId']&&Object['hasOwnProperty']['call'](_0xf54293,'documentId')&&writer['uint32'](0x12)['string'](_0xf54293['documentId']),writer;},CommentsV2ReopenCommentThreadMessage['encodeDelimited']=function(_0x5c2a92,writer){return this['encode'](_0x5c2a92,writer)['ldelim']();},CommentsV2ReopenCommentThreadMessage['decode']=function(_0x4ece3d,length,_0xa1628d,_0x537b72){if(_0x4ece3d instanceof _0x470ccf||(_0x4ece3d=_0x470ccf['create'](_0x4ece3d)),void 0x0===_0x537b72&&(_0x537b72=0x0),_0x537b72>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x16d096=void 0x0===length?_0x4ece3d['len']:_0x4ece3d['pos']+length,_0x5f1e6b=new $root['CommentsV2ReopenCommentThreadMessage']();_0x4ece3d['pos']<_0x16d096;){var tag=_0x4ece3d['uint32']();if(tag===_0xa1628d)break;switch(tag>>>0x3){case 0x1:_0x5f1e6b['commentThreadId']=_0x4ece3d['string']();break;case 0x2:_0x5f1e6b['documentId']=_0x4ece3d['string']();break;default:_0x4ece3d['skipType'](0x7&tag,_0x537b72);}}return _0x5f1e6b;},CommentsV2ReopenCommentThreadMessage['decodeDelimited']=function(_0x1c786e){return _0x1c786e instanceof _0x470ccf||(_0x1c786e=new _0x470ccf(_0x1c786e)),this['decode'](_0x1c786e,_0x1c786e['uint32']());},CommentsV2ReopenCommentThreadMessage['verify']=function(_0x3d4346,_0x29c5cb){return'object'!=typeof _0x3d4346||null===_0x3d4346?'object\x20expected':(void 0x0===_0x29c5cb&&(_0x29c5cb=0x0),_0x29c5cb>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3d4346['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3d4346,'commentThreadId')&&!$util['isString'](_0x3d4346['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x3d4346['documentId']&&Object['hasOwnProperty']['call'](_0x3d4346,'documentId')&&!$util['isString'](_0x3d4346['documentId'])?'documentId:\x20string\x20expected':null);},CommentsV2ReopenCommentThreadMessage['fromObject']=function(object,_0x490d06){if(object instanceof $root['CommentsV2ReopenCommentThreadMessage'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2ReopenCommentThreadMessage:\x20object\x20expected');if(void 0x0===_0x490d06&&(_0x490d06=0x0),_0x490d06>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x3ab8bc=new $root['CommentsV2ReopenCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x3ab8bc['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x3ab8bc['documentId']=String(object['documentId'])),_0x3ab8bc;},CommentsV2ReopenCommentThreadMessage['toObject']=function(_0x58ea51,options,_0x3276fb){if(options||(options={}),void 0x0===_0x3276fb&&(_0x3276fb=0x0),_0x3276fb>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x58ea51['commentThreadId']&&Object['hasOwnProperty']['call'](_0x58ea51,'commentThreadId')&&(object['commentThreadId']=_0x58ea51['commentThreadId']),null!=_0x58ea51['documentId']&&Object['hasOwnProperty']['call'](_0x58ea51,'documentId')&&(object['documentId']=_0x58ea51['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 _0x58f6a1=Object['keys'](properties),_0x1c3546=0x0;_0x1c3546<_0x58f6a1['length'];++_0x1c3546)null!=properties[_0x58f6a1[_0x1c3546]]&&'__proto__'!==_0x58f6a1[_0x1c3546]&&(this[_0x58f6a1[_0x1c3546]]=properties[_0x58f6a1[_0x1c3546]]);}}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(_0x271f6b,writer,_0x35cde5){if(writer||(writer=$Writer['create']()),void 0x0===_0x35cde5&&(_0x35cde5=0x0),_0x35cde5>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x271f6b['documentId']&&Object['hasOwnProperty']['call'](_0x271f6b,'documentId')&&writer['uint32'](0xa)['string'](_0x271f6b['documentId']),null!=_0x271f6b['commentThreadId']&&Object['hasOwnProperty']['call'](_0x271f6b,'commentThreadId')&&writer['uint32'](0x12)['string'](_0x271f6b['commentThreadId']),null!=_0x271f6b['context']&&Object['hasOwnProperty']['call'](_0x271f6b,'context')&&writer['uint32'](0x1a)['string'](_0x271f6b['context']),null!=_0x271f6b['createdAt']&&Object['hasOwnProperty']['call'](_0x271f6b,'createdAt')&&writer['uint32'](0x22)['string'](_0x271f6b['createdAt']),null!=_0x271f6b['resolvedAt']&&Object['hasOwnProperty']['call'](_0x271f6b,'resolvedAt')&&writer['uint32'](0x2a)['string'](_0x271f6b['resolvedAt']),null!=_0x271f6b['resolvedBy']&&Object['hasOwnProperty']['call'](_0x271f6b,'resolvedBy')&&writer['uint32'](0x32)['string'](_0x271f6b['resolvedBy']),null!=_0x271f6b['attributes']&&Object['hasOwnProperty']['call'](_0x271f6b,'attributes')&&writer['uint32'](0x3a)['string'](_0x271f6b['attributes']),null!=_0x271f6b['deletedAt']&&Object['hasOwnProperty']['call'](_0x271f6b,'deletedAt')&&writer['uint32'](0x42)['string'](_0x271f6b['deletedAt']),null!=_0x271f6b['comments']&&_0x271f6b['comments']['length']){for(var _0x4f7253=0x0;_0x4f7253<_0x271f6b['comments']['length'];++_0x4f7253)$root['CommentDescriptor']['encode'](_0x271f6b['comments'][_0x4f7253],writer['uint32'](0x4a)['fork'](),_0x35cde5+0x1)['ldelim']();}return writer;},CommentsV2AddCommentThreadMessage['encodeDelimited']=function(_0x3e1bbe,writer){return this['encode'](_0x3e1bbe,writer)['ldelim']();},CommentsV2AddCommentThreadMessage['decode']=function(_0x2eaf22,length,_0x5b6432,_0x551c59){if(_0x2eaf22 instanceof _0x470ccf||(_0x2eaf22=_0x470ccf['create'](_0x2eaf22)),void 0x0===_0x551c59&&(_0x551c59=0x0),_0x551c59>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2a755c=void 0x0===length?_0x2eaf22['len']:_0x2eaf22['pos']+length,_0x587b58=new $root['CommentsV2AddCommentThreadMessage']();_0x2eaf22['pos']<_0x2a755c;){var tag=_0x2eaf22['uint32']();if(tag===_0x5b6432)break;switch(tag>>>0x3){case 0x1:_0x587b58['documentId']=_0x2eaf22['string']();break;case 0x2:_0x587b58['commentThreadId']=_0x2eaf22['string']();break;case 0x3:_0x587b58['context']=_0x2eaf22['string']();break;case 0x4:_0x587b58['createdAt']=_0x2eaf22['string']();break;case 0x5:_0x587b58['resolvedAt']=_0x2eaf22['string']();break;case 0x6:_0x587b58['resolvedBy']=_0x2eaf22['string']();break;case 0x7:_0x587b58['attributes']=_0x2eaf22['string']();break;case 0x8:_0x587b58['deletedAt']=_0x2eaf22['string']();break;case 0x9:_0x587b58['comments']&&_0x587b58['comments']['length']||(_0x587b58['comments']=[]),_0x587b58['comments']['push']($root['CommentDescriptor']['decode'](_0x2eaf22,_0x2eaf22['uint32'](),void 0x0,_0x551c59+0x1));break;default:_0x2eaf22['skipType'](0x7&tag,_0x551c59);}}return _0x587b58;},CommentsV2AddCommentThreadMessage['decodeDelimited']=function(_0x132f10){return _0x132f10 instanceof _0x470ccf||(_0x132f10=new _0x470ccf(_0x132f10)),this['decode'](_0x132f10,_0x132f10['uint32']());},CommentsV2AddCommentThreadMessage['verify']=function(_0x45727c,_0x294da7){if('object'!=typeof _0x45727c||null===_0x45727c)return'object\x20expected';if(void 0x0===_0x294da7&&(_0x294da7=0x0),_0x294da7>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x45727c['documentId']&&Object['hasOwnProperty']['call'](_0x45727c,'documentId')&&!$util['isString'](_0x45727c['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x45727c['commentThreadId']&&Object['hasOwnProperty']['call'](_0x45727c,'commentThreadId')&&!$util['isString'](_0x45727c['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x45727c['context']&&Object['hasOwnProperty']['call'](_0x45727c,'context')&&!$util['isString'](_0x45727c['context']))return'context:\x20string\x20expected';if(null!=_0x45727c['createdAt']&&Object['hasOwnProperty']['call'](_0x45727c,'createdAt')&&!$util['isString'](_0x45727c['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x45727c['resolvedAt']&&Object['hasOwnProperty']['call'](_0x45727c,'resolvedAt')&&!$util['isString'](_0x45727c['resolvedAt']))return'resolvedAt:\x20string\x20expected';if(null!=_0x45727c['resolvedBy']&&Object['hasOwnProperty']['call'](_0x45727c,'resolvedBy')&&!$util['isString'](_0x45727c['resolvedBy']))return'resolvedBy:\x20string\x20expected';if(null!=_0x45727c['attributes']&&Object['hasOwnProperty']['call'](_0x45727c,'attributes')&&!$util['isString'](_0x45727c['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x45727c['deletedAt']&&Object['hasOwnProperty']['call'](_0x45727c,'deletedAt')&&!$util['isString'](_0x45727c['deletedAt']))return'deletedAt:\x20string\x20expected';if(null!=_0x45727c['comments']&&Object['hasOwnProperty']['call'](_0x45727c,'comments')){if(!Array['isArray'](_0x45727c['comments']))return'comments:\x20array\x20expected';for(var _0xcb6f76=0x0;_0xcb6f76<_0x45727c['comments']['length'];++_0xcb6f76){var _0x1c2c92=$root['CommentDescriptor']['verify'](_0x45727c['comments'][_0xcb6f76],_0x294da7+0x1);if(_0x1c2c92)return'comments.'+_0x1c2c92;}}return null;},CommentsV2AddCommentThreadMessage['fromObject']=function(object,_0x45e2ab){if(object instanceof $root['CommentsV2AddCommentThreadMessage'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsV2AddCommentThreadMessage:\x20object\x20expected');if(void 0x0===_0x45e2ab&&(_0x45e2ab=0x0),_0x45e2ab>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x337e35=new $root['CommentsV2AddCommentThreadMessage']();if(null!=object['documentId']&&(_0x337e35['documentId']=String(object['documentId'])),null!=object['commentThreadId']&&(_0x337e35['commentThreadId']=String(object['commentThreadId'])),null!=object['context']&&(_0x337e35['context']=String(object['context'])),null!=object['createdAt']&&(_0x337e35['createdAt']=String(object['createdAt'])),null!=object['resolvedAt']&&(_0x337e35['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x337e35['resolvedBy']=String(object['resolvedBy'])),null!=object['attributes']&&(_0x337e35['attributes']=String(object['attributes'])),null!=object['deletedAt']&&(_0x337e35['deletedAt']=String(object['deletedAt'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20array\x20expected');_0x337e35['comments']=[];for(var _0x2ba32d=0x0;_0x2ba32d<object['comments']['length'];++_0x2ba32d){if(!$util['isObject'](object['comments'][_0x2ba32d]))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20object\x20expected');_0x337e35['comments'][_0x2ba32d]=$root['CommentDescriptor']['fromObject'](object['comments'][_0x2ba32d],_0x45e2ab+0x1);}}return _0x337e35;},CommentsV2AddCommentThreadMessage['toObject']=function(_0x1216d5,options,_0x14b6f){if(options||(options={}),void 0x0===_0x14b6f&&(_0x14b6f=0x0),_0x14b6f>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');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!=_0x1216d5['documentId']&&Object['hasOwnProperty']['call'](_0x1216d5,'documentId')&&(object['documentId']=_0x1216d5['documentId']),null!=_0x1216d5['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1216d5,'commentThreadId')&&(object['commentThreadId']=_0x1216d5['commentThreadId']),null!=_0x1216d5['context']&&Object['hasOwnProperty']['call'](_0x1216d5,'context')&&(object['context']=_0x1216d5['context']),null!=_0x1216d5['createdAt']&&Object['hasOwnProperty']['call'](_0x1216d5,'createdAt')&&(object['createdAt']=_0x1216d5['createdAt']),null!=_0x1216d5['resolvedAt']&&Object['hasOwnProperty']['call'](_0x1216d5,'resolvedAt')&&(object['resolvedAt']=_0x1216d5['resolvedAt']),null!=_0x1216d5['resolvedBy']&&Object['hasOwnProperty']['call'](_0x1216d5,'resolvedBy')&&(object['resolvedBy']=_0x1216d5['resolvedBy']),null!=_0x1216d5['attributes']&&Object['hasOwnProperty']['call'](_0x1216d5,'attributes')&&(object['attributes']=_0x1216d5['attributes']),null!=_0x1216d5['deletedAt']&&Object['hasOwnProperty']['call'](_0x1216d5,'deletedAt')&&(object['deletedAt']=_0x1216d5['deletedAt']),_0x1216d5['comments']&&_0x1216d5['comments']['length']){object['comments']=[];for(var _0xe00917=0x0;_0xe00917<_0x1216d5['comments']['length'];++_0xe00917)object['comments'][_0xe00917]=$root['CommentDescriptor']['toObject'](_0x1216d5['comments'][_0xe00917],options,_0x14b6f+0x1);}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 _0x13c108=Object['keys'](properties),_0x16aeec=0x0;_0x16aeec<_0x13c108['length'];++_0x16aeec)null!=properties[_0x13c108[_0x16aeec]]&&'__proto__'!==_0x13c108[_0x16aeec]&&(this[_0x13c108[_0x16aeec]]=properties[_0x13c108[_0x16aeec]]);}}return CommentThreadAddedCommentDescriptor['prototype']['commentId']='',CommentThreadAddedCommentDescriptor['prototype']['createdAt']='',CommentThreadAddedCommentDescriptor['create']=function(properties){return new CommentThreadAddedCommentDescriptor(properties);},CommentThreadAddedCommentDescriptor['encode']=function(_0x138def,writer,_0x26aa86){if(writer||(writer=$Writer['create']()),void 0x0===_0x26aa86&&(_0x26aa86=0x0),_0x26aa86>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x138def['commentId']&&Object['hasOwnProperty']['call'](_0x138def,'commentId')&&writer['uint32'](0xa)['string'](_0x138def['commentId']),null!=_0x138def['createdAt']&&Object['hasOwnProperty']['call'](_0x138def,'createdAt')&&writer['uint32'](0x12)['string'](_0x138def['createdAt']),writer;},CommentThreadAddedCommentDescriptor['encodeDelimited']=function(_0x484788,writer){return this['encode'](_0x484788,writer)['ldelim']();},CommentThreadAddedCommentDescriptor['decode']=function(_0x228e52,length,_0x324342,_0xace818){if(_0x228e52 instanceof _0x470ccf||(_0x228e52=_0x470ccf['create'](_0x228e52)),void 0x0===_0xace818&&(_0xace818=0x0),_0xace818>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x218368=void 0x0===length?_0x228e52['len']:_0x228e52['pos']+length,_0x1fde03=new $root['CommentThreadAddedCommentDescriptor']();_0x228e52['pos']<_0x218368;){var tag=_0x228e52['uint32']();if(tag===_0x324342)break;switch(tag>>>0x3){case 0x1:_0x1fde03['commentId']=_0x228e52['string']();break;case 0x2:_0x1fde03['createdAt']=_0x228e52['string']();break;default:_0x228e52['skipType'](0x7&tag,_0xace818);}}return _0x1fde03;},CommentThreadAddedCommentDescriptor['decodeDelimited']=function(_0x3f2af3){return _0x3f2af3 instanceof _0x470ccf||(_0x3f2af3=new _0x470ccf(_0x3f2af3)),this['decode'](_0x3f2af3,_0x3f2af3['uint32']());},CommentThreadAddedCommentDescriptor['verify']=function(_0x2aac42,_0x213d4b){return'object'!=typeof _0x2aac42||null===_0x2aac42?'object\x20expected':(void 0x0===_0x213d4b&&(_0x213d4b=0x0),_0x213d4b>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x2aac42['commentId']&&Object['hasOwnProperty']['call'](_0x2aac42,'commentId')&&!$util['isString'](_0x2aac42['commentId'])?'commentId:\x20string\x20expected':null!=_0x2aac42['createdAt']&&Object['hasOwnProperty']['call'](_0x2aac42,'createdAt')&&!$util['isString'](_0x2aac42['createdAt'])?'createdAt:\x20string\x20expected':null);},CommentThreadAddedCommentDescriptor['fromObject']=function(object,_0x2006f4){if(object instanceof $root['CommentThreadAddedCommentDescriptor'])return object;if(!$util['isObject'](object))throw TypeError('.CommentThreadAddedCommentDescriptor:\x20object\x20expected');if(void 0x0===_0x2006f4&&(_0x2006f4=0x0),_0x2006f4>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5dbbf0=new $root['CommentThreadAddedCommentDescriptor']();return null!=object['commentId']&&(_0x5dbbf0['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0x5dbbf0['createdAt']=String(object['createdAt'])),_0x5dbbf0;},CommentThreadAddedCommentDescriptor['toObject']=function(_0x169ffa,options,_0x37b381){if(options||(options={}),void 0x0===_0x37b381&&(_0x37b381=0x0),_0x37b381>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['commentId']='',object['createdAt']=''),null!=_0x169ffa['commentId']&&Object['hasOwnProperty']['call'](_0x169ffa,'commentId')&&(object['commentId']=_0x169ffa['commentId']),null!=_0x169ffa['createdAt']&&Object['hasOwnProperty']['call'](_0x169ffa,'createdAt')&&(object['createdAt']=_0x169ffa['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 _0x32c2d8=Object['keys'](properties),_0x35f5aa=0x0;_0x35f5aa<_0x32c2d8['length'];++_0x35f5aa)null!=properties[_0x32c2d8[_0x35f5aa]]&&'__proto__'!==_0x32c2d8[_0x35f5aa]&&(this[_0x32c2d8[_0x35f5aa]]=properties[_0x32c2d8[_0x35f5aa]]);}}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(_0x37283c,writer,_0x52a271){if(writer||(writer=$Writer['create']()),void 0x0===_0x52a271&&(_0x52a271=0x0),_0x52a271>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x37283c['commentThreadId']&&Object['hasOwnProperty']['call'](_0x37283c,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x37283c['commentThreadId']),null!=_0x37283c['comments']&&_0x37283c['comments']['length']){for(var _0x29a393=0x0;_0x29a393<_0x37283c['comments']['length'];++_0x29a393)$root['CommentDescriptor']['encode'](_0x37283c['comments'][_0x29a393],writer['uint32'](0x12)['fork'](),_0x52a271+0x1)['ldelim']();}return null!=_0x37283c['resolvedAt']&&Object['hasOwnProperty']['call'](_0x37283c,'resolvedAt')&&writer['uint32'](0x1a)['string'](_0x37283c['resolvedAt']),null!=_0x37283c['resolvedBy']&&Object['hasOwnProperty']['call'](_0x37283c,'resolvedBy')&&writer['uint32'](0x22)['string'](_0x37283c['resolvedBy']),null!=_0x37283c['context']&&Object['hasOwnProperty']['call'](_0x37283c,'context')&&writer['uint32'](0x2a)['string'](_0x37283c['context']),null!=_0x37283c['createdAt']&&Object['hasOwnProperty']['call'](_0x37283c,'createdAt')&&writer['uint32'](0x32)['string'](_0x37283c['createdAt']),null!=_0x37283c['deletedAt']&&Object['hasOwnProperty']['call'](_0x37283c,'deletedAt')&&writer['uint32'](0x3a)['string'](_0x37283c['deletedAt']),null!=_0x37283c['attributes']&&Object['hasOwnProperty']['call'](_0x37283c,'attributes')&&writer['uint32'](0x42)['string'](_0x37283c['attributes']),null!=_0x37283c['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x37283c,'unlinkedAt')&&writer['uint32'](0x4a)['string'](_0x37283c['unlinkedAt']),writer;},CommentsThreadDescriptor['encodeDelimited']=function(_0x3d0996,writer){return this['encode'](_0x3d0996,writer)['ldelim']();},CommentsThreadDescriptor['decode']=function(_0x1d761e,length,_0x1802c3,_0x5109d9){if(_0x1d761e instanceof _0x470ccf||(_0x1d761e=_0x470ccf['create'](_0x1d761e)),void 0x0===_0x5109d9&&(_0x5109d9=0x0),_0x5109d9>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1e2f33=void 0x0===length?_0x1d761e['len']:_0x1d761e['pos']+length,_0x4f185d=new $root['CommentsThreadDescriptor']();_0x1d761e['pos']<_0x1e2f33;){var tag=_0x1d761e['uint32']();if(tag===_0x1802c3)break;switch(tag>>>0x3){case 0x1:_0x4f185d['commentThreadId']=_0x1d761e['string']();break;case 0x2:_0x4f185d['comments']&&_0x4f185d['comments']['length']||(_0x4f185d['comments']=[]),_0x4f185d['comments']['push']($root['CommentDescriptor']['decode'](_0x1d761e,_0x1d761e['uint32'](),void 0x0,_0x5109d9+0x1));break;case 0x3:_0x4f185d['resolvedAt']=_0x1d761e['string']();break;case 0x4:_0x4f185d['resolvedBy']=_0x1d761e['string']();break;case 0x5:_0x4f185d['context']=_0x1d761e['string']();break;case 0x6:_0x4f185d['createdAt']=_0x1d761e['string']();break;case 0x7:_0x4f185d['deletedAt']=_0x1d761e['string']();break;case 0x8:_0x4f185d['attributes']=_0x1d761e['string']();break;case 0x9:_0x4f185d['unlinkedAt']=_0x1d761e['string']();break;default:_0x1d761e['skipType'](0x7&tag,_0x5109d9);}}return _0x4f185d;},CommentsThreadDescriptor['decodeDelimited']=function(_0x59e705){return _0x59e705 instanceof _0x470ccf||(_0x59e705=new _0x470ccf(_0x59e705)),this['decode'](_0x59e705,_0x59e705['uint32']());},CommentsThreadDescriptor['verify']=function(_0x41e47,_0x51d576){if('object'!=typeof _0x41e47||null===_0x41e47)return'object\x20expected';if(void 0x0===_0x51d576&&(_0x51d576=0x0),_0x51d576>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x41e47['commentThreadId']&&Object['hasOwnProperty']['call'](_0x41e47,'commentThreadId')&&!$util['isString'](_0x41e47['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x41e47['comments']&&Object['hasOwnProperty']['call'](_0x41e47,'comments')){if(!Array['isArray'](_0x41e47['comments']))return'comments:\x20array\x20expected';for(var _0x4191b8=0x0;_0x4191b8<_0x41e47['comments']['length'];++_0x4191b8){var _0x1280a6=$root['CommentDescriptor']['verify'](_0x41e47['comments'][_0x4191b8],_0x51d576+0x1);if(_0x1280a6)return'comments.'+_0x1280a6;}}return null!=_0x41e47['resolvedAt']&&Object['hasOwnProperty']['call'](_0x41e47,'resolvedAt')&&!$util['isString'](_0x41e47['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x41e47['resolvedBy']&&Object['hasOwnProperty']['call'](_0x41e47,'resolvedBy')&&!$util['isString'](_0x41e47['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x41e47['context']&&Object['hasOwnProperty']['call'](_0x41e47,'context')&&!$util['isString'](_0x41e47['context'])?'context:\x20string\x20expected':null!=_0x41e47['createdAt']&&Object['hasOwnProperty']['call'](_0x41e47,'createdAt')&&!$util['isString'](_0x41e47['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x41e47['deletedAt']&&Object['hasOwnProperty']['call'](_0x41e47,'deletedAt')&&!$util['isString'](_0x41e47['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x41e47['attributes']&&Object['hasOwnProperty']['call'](_0x41e47,'attributes')&&!$util['isString'](_0x41e47['attributes'])?'attributes:\x20string\x20expected':null!=_0x41e47['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x41e47,'unlinkedAt')&&!$util['isString'](_0x41e47['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsThreadDescriptor['fromObject']=function(object,_0x4db15b){if(object instanceof $root['CommentsThreadDescriptor'])return object;if(!$util['isObject'](object))throw TypeError('.CommentsThreadDescriptor:\x20object\x20expected');if(void 0x0===_0x4db15b&&(_0x4db15b=0x0),_0x4db15b>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x3e6d61=new $root['CommentsThreadDescriptor']();if(null!=object['commentThreadId']&&(_0x3e6d61['commentThreadId']=String(object['commentThreadId'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsThreadDescriptor.comments:\x20array\x20expected');_0x3e6d61['comments']=[];for(var _0x4b9aa9=0x0;_0x4b9aa9<object['comments']['length'];++_0x4b9aa9){if(!$util['isObject'](object['comments'][_0x4b9aa9]))throw TypeError('.CommentsThreadDescriptor.comments:\x20object\x20expected');_0x3e6d61['comments'][_0x4b9aa9]=$root['CommentDescriptor']['fromObject'](object['comments'][_0x4b9aa9],_0x4db15b+0x1);}}return null!=object['resolvedAt']&&(_0x3e6d61['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x3e6d61['resolvedBy']=String(object['resolvedBy'])),null!=object['context']&&(_0x3e6d61['context']=String(object['context'])),null!=object['createdAt']&&(_0x3e6d61['createdAt']=String(object['createdAt'])),null!=object['deletedAt']&&(_0x3e6d61['deletedAt']=String(object['deletedAt'])),null!=object['attributes']&&(_0x3e6d61['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x3e6d61['unlinkedAt']=String(object['unlinkedAt'])),_0x3e6d61;},CommentsThreadDescriptor['toObject']=function(_0x16bba4,options,_0x452eb0){if(options||(options={}),void 0x0===_0x452eb0&&(_0x452eb0=0x0),_0x452eb0>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');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!=_0x16bba4['commentThreadId']&&Object['hasOwnProperty']['call'](_0x16bba4,'commentThreadId')&&(object['commentThreadId']=_0x16bba4['commentThreadId']),_0x16bba4['comments']&&_0x16bba4['comments']['length']){object['comments']=[];for(var _0x145e9b=0x0;_0x145e9b<_0x16bba4['comments']['length'];++_0x145e9b)object['comments'][_0x145e9b]=$root['CommentDescriptor']['toObject'](_0x16bba4['comments'][_0x145e9b],options,_0x452eb0+0x1);}return null!=_0x16bba4['resolvedAt']&&Object['hasOwnProperty']['call'](_0x16bba4,'resolvedAt')&&(object['resolvedAt']=_0x16bba4['resolvedAt']),null!=_0x16bba4['resolvedBy']&&Object['hasOwnProperty']['call'](_0x16bba4,'resolvedBy')&&(object['resolvedBy']=_0x16bba4['resolvedBy']),null!=_0x16bba4['context']&&Object['hasOwnProperty']['call'](_0x16bba4,'context')&&(object['context']=_0x16bba4['context']),null!=_0x16bba4['createdAt']&&Object['hasOwnProperty']['call'](_0x16bba4,'createdAt')&&(object['createdAt']=_0x16bba4['createdAt']),null!=_0x16bba4['deletedAt']&&Object['hasOwnProperty']['call'](_0x16bba4,'deletedAt')&&(object['deletedAt']=_0x16bba4['deletedAt']),null!=_0x16bba4['attributes']&&Object['hasOwnProperty']['call'](_0x16bba4,'attributes')&&(object['attributes']=_0x16bba4['attributes']),null!=_0x16bba4['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x16bba4,'unlinkedAt')&&(object['unlinkedAt']=_0x16bba4['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 _0x4d3c63=Object['keys'](properties),_0x4aaa0b=0x0;_0x4aaa0b<_0x4d3c63['length'];++_0x4aaa0b)null!=properties[_0x4d3c63[_0x4aaa0b]]&&'__proto__'!==_0x4d3c63[_0x4aaa0b]&&(this[_0x4d3c63[_0x4aaa0b]]=properties[_0x4d3c63[_0x4aaa0b]]);}}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(_0x24ae3b,writer,_0x797b38){if(writer||(writer=$Writer['create']()),void 0x0===_0x797b38&&(_0x797b38=0x0),_0x797b38>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x24ae3b['commentId']&&Object['hasOwnProperty']['call'](_0x24ae3b,'commentId')&&writer['uint32'](0xa)['string'](_0x24ae3b['commentId']),null!=_0x24ae3b['commentThreadId']&&Object['hasOwnProperty']['call'](_0x24ae3b,'commentThreadId')&&writer['uint32'](0x12)['string'](_0x24ae3b['commentThreadId']),null!=_0x24ae3b['userId']&&Object['hasOwnProperty']['call'](_0x24ae3b,'userId')&&writer['uint32'](0x1a)['string'](_0x24ae3b['userId']),null!=_0x24ae3b['content']&&Object['hasOwnProperty']['call'](_0x24ae3b,'content')&&writer['uint32'](0x22)['string'](_0x24ae3b['content']),null!=_0x24ae3b['documentId']&&Object['hasOwnProperty']['call'](_0x24ae3b,'documentId')&&writer['uint32'](0x2a)['string'](_0x24ae3b['documentId']),null!=_0x24ae3b['createdAt']&&Object['hasOwnProperty']['call'](_0x24ae3b,'createdAt')&&writer['uint32'](0x32)['string'](_0x24ae3b['createdAt']),null!=_0x24ae3b['attributes']&&Object['hasOwnProperty']['call'](_0x24ae3b,'attributes')&&writer['uint32'](0x3a)['string'](_0x24ae3b['attributes']),writer;},CommentDescriptor['encodeDelimited']=function(_0x121bb9,writer){return this['encode'](_0x121bb9,writer)['ldelim']();},CommentDescriptor['decode']=function(_0x739e12,length,_0x41ba50,_0x2c2e92){if(_0x739e12 instanceof _0x470ccf||(_0x739e12=_0x470ccf['create'](_0x739e12)),void 0x0===_0x2c2e92&&(_0x2c2e92=0x0),_0x2c2e92>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x202d81=void 0x0===length?_0x739e12['len']:_0x739e12['pos']+length,_0x438002=new $root['CommentDescriptor']();_0x739e12['pos']<_0x202d81;){var tag=_0x739e12['uint32']();if(tag===_0x41ba50)break;switch(tag>>>0x3){case 0x1:_0x438002['commentId']=_0x739e12['string']();break;case 0x2:_0x438002['commentThreadId']=_0x739e12['string']();break;case 0x3:_0x438002['userId']=_0x739e12['string']();break;case 0x4:_0x438002['content']=_0x739e12['string']();break;case 0x5:_0x438002['documentId']=_0x739e12['string']();break;case 0x6:_0x438002['createdAt']=_0x739e12['string']();break;case 0x7:_0x438002['attributes']=_0x739e12['string']();break;default:_0x739e12['skipType'](0x7&tag,_0x2c2e92);}}return _0x438002;},CommentDescriptor['decodeDelimited']=function(_0xa96a85){return _0xa96a85 instanceof _0x470ccf||(_0xa96a85=new _0x470ccf(_0xa96a85)),this['decode'](_0xa96a85,_0xa96a85['uint32']());},CommentDescriptor['verify']=function(_0x120907,_0x3846c9){return'object'!=typeof _0x120907||null===_0x120907?'object\x20expected':(void 0x0===_0x3846c9&&(_0x3846c9=0x0),_0x3846c9>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x120907['commentId']&&Object['hasOwnProperty']['call'](_0x120907,'commentId')&&!$util['isString'](_0x120907['commentId'])?'commentId:\x20string\x20expected':null!=_0x120907['commentThreadId']&&Object['hasOwnProperty']['call'](_0x120907,'commentThreadId')&&!$util['isString'](_0x120907['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x120907['userId']&&Object['hasOwnProperty']['call'](_0x120907,'userId')&&!$util['isString'](_0x120907['userId'])?'userId:\x20string\x20expected':null!=_0x120907['content']&&Object['hasOwnProperty']['call'](_0x120907,'content')&&!$util['isString'](_0x120907['content'])?'content:\x20string\x20expected':null!=_0x120907['documentId']&&Object['hasOwnProperty']['call'](_0x120907,'documentId')&&!$util['isString'](_0x120907['documentId'])?'documentId:\x20string\x20expected':null!=_0x120907['createdAt']&&Object['hasOwnProperty']['call'](_0x120907,'createdAt')&&!$util['isString'](_0x120907['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x120907['attributes']&&Object['hasOwnProperty']['call'](_0x120907,'attributes')&&!$util['isString'](_0x120907['attributes'])?'attributes:\x20string\x20expected':null);},CommentDescriptor['fromObject']=function(object,_0x475d95){if(object instanceof $root['CommentDescriptor'])return object;if(!$util['isObject'](object))throw TypeError('.CommentDescriptor:\x20object\x20expected');if(void 0x0===_0x475d95&&(_0x475d95=0x0),_0x475d95>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x4ed00e=new $root['CommentDescriptor']();return null!=object['commentId']&&(_0x4ed00e['commentId']=String(object['commentId'])),null!=object['commentThreadId']&&(_0x4ed00e['commentThreadId']=String(object['commentThreadId'])),null!=object['userId']&&(_0x4ed00e['userId']=String(object['userId'])),null!=object['content']&&(_0x4ed00e['content']=String(object['content'])),null!=object['documentId']&&(_0x4ed00e['documentId']=String(object['documentId'])),null!=object['createdAt']&&(_0x4ed00e['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x4ed00e['attributes']=String(object['attributes'])),_0x4ed00e;},CommentDescriptor['toObject']=function(_0x56358a,options,_0x24365f){if(options||(options={}),void 0x0===_0x24365f&&(_0x24365f=0x0),_0x24365f>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['commentId']='',object['commentThreadId']='',object['userId']='',object['content']='',object['documentId']='',object['createdAt']='',object['attributes']=''),null!=_0x56358a['commentId']&&Object['hasOwnProperty']['call'](_0x56358a,'commentId')&&(object['commentId']=_0x56358a['commentId']),null!=_0x56358a['commentThreadId']&&Object['hasOwnProperty']['call'](_0x56358a,'commentThreadId')&&(object['commentThreadId']=_0x56358a['commentThreadId']),null!=_0x56358a['userId']&&Object['hasOwnProperty']['call'](_0x56358a,'userId')&&(object['userId']=_0x56358a['userId']),null!=_0x56358a['content']&&Object['hasOwnProperty']['call'](_0x56358a,'content')&&(object['content']=_0x56358a['content']),null!=_0x56358a['documentId']&&Object['hasOwnProperty']['call'](_0x56358a,'documentId')&&(object['documentId']=_0x56358a['documentId']),null!=_0x56358a['createdAt']&&Object['hasOwnProperty']['call'](_0x56358a,'createdAt')&&(object['createdAt']=_0x56358a['createdAt']),null!=_0x56358a['attributes']&&Object['hasOwnProperty']['call'](_0x56358a,'attributes')&&(object['attributes']=_0x56358a['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 _0x4e3672=Object['keys'](properties),_0x4c57f0=0x0;_0x4c57f0<_0x4e3672['length'];++_0x4c57f0)null!=properties[_0x4e3672[_0x4c57f0]]&&'__proto__'!==_0x4e3672[_0x4c57f0]&&(this[_0x4e3672[_0x4c57f0]]=properties[_0x4e3672[_0x4c57f0]]);}}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(_0x48ce75,writer,_0x587d47){if(writer||(writer=$Writer['create']()),void 0x0===_0x587d47&&(_0x587d47=0x0),_0x587d47>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x48ce75['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x48ce75,'lastDocumentSessionId')&&writer['uint32'](0xa)['string'](_0x48ce75['lastDocumentSessionId']),null!=_0x48ce75['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x48ce75,'lastDocumentSessionOperationId')&&writer['uint32'](0x12)['string'](_0x48ce75['lastDocumentSessionOperationId']),null!=_0x48ce75['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x48ce75,'currentDocumentSessionId')&&writer['uint32'](0x1a)['string'](_0x48ce75['currentDocumentSessionId']),null!=_0x48ce75['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x48ce75,'currentDocumentSessionVersion')&&writer['uint32'](0x20)['uint32'](_0x48ce75['currentDocumentSessionVersion']),null!=_0x48ce75['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x48ce75,'currentDocumentSessionOperationId')&&writer['uint32'](0x2a)['string'](_0x48ce75['currentDocumentSessionOperationId']),writer;},GetDocumentDetailsResponse['encodeDelimited']=function(_0xc2da8d,writer){return this['encode'](_0xc2da8d,writer)['ldelim']();},GetDocumentDetailsResponse['decode']=function(_0x1c4d21,length,_0x5d6d8a,_0x3e2d6d){if(_0x1c4d21 instanceof _0x470ccf||(_0x1c4d21=_0x470ccf['create'](_0x1c4d21)),void 0x0===_0x3e2d6d&&(_0x3e2d6d=0x0),_0x3e2d6d>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3624e8=void 0x0===length?_0x1c4d21['len']:_0x1c4d21['pos']+length,_0x345c77=new $root['GetDocumentDetailsResponse']();_0x1c4d21['pos']<_0x3624e8;){var tag=_0x1c4d21['uint32']();if(tag===_0x5d6d8a)break;switch(tag>>>0x3){case 0x1:_0x345c77['lastDocumentSessionId']=_0x1c4d21['string']();break;case 0x2:_0x345c77['lastDocumentSessionOperationId']=_0x1c4d21['string']();break;case 0x3:_0x345c77['currentDocumentSessionId']=_0x1c4d21['string']();break;case 0x4:_0x345c77['currentDocumentSessionVersion']=_0x1c4d21['uint32']();break;case 0x5:_0x345c77['currentDocumentSessionOperationId']=_0x1c4d21['string']();break;default:_0x1c4d21['skipType'](0x7&tag,_0x3e2d6d);}}return _0x345c77;},GetDocumentDetailsResponse['decodeDelimited']=function(_0x51aac0){return _0x51aac0 instanceof _0x470ccf||(_0x51aac0=new _0x470ccf(_0x51aac0)),this['decode'](_0x51aac0,_0x51aac0['uint32']());},GetDocumentDetailsResponse['verify']=function(_0x1c34ae,_0x42d07f){return'object'!=typeof _0x1c34ae||null===_0x1c34ae?'object\x20expected':(void 0x0===_0x42d07f&&(_0x42d07f=0x0),_0x42d07f>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x1c34ae['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x1c34ae,'lastDocumentSessionId')&&!$util['isString'](_0x1c34ae['lastDocumentSessionId'])?'lastDocumentSessionId:\x20string\x20expected':null!=_0x1c34ae['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x1c34ae,'lastDocumentSessionOperationId')&&!$util['isString'](_0x1c34ae['lastDocumentSessionOperationId'])?'lastDocumentSessionOperationId:\x20string\x20expected':null!=_0x1c34ae['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x1c34ae,'currentDocumentSessionId')&&!$util['isString'](_0x1c34ae['currentDocumentSessionId'])?'currentDocumentSessionId:\x20string\x20expected':null!=_0x1c34ae['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x1c34ae,'currentDocumentSessionVersion')&&!$util['isInteger'](_0x1c34ae['currentDocumentSessionVersion'])?'currentDocumentSessionVersion:\x20integer\x20expected':null!=_0x1c34ae['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x1c34ae,'currentDocumentSessionOperationId')&&!$util['isString'](_0x1c34ae['currentDocumentSessionOperationId'])?'currentDocumentSessionOperationId:\x20string\x20expected':null);},GetDocumentDetailsResponse['fromObject']=function(object,_0xdda93e){if(object instanceof $root['GetDocumentDetailsResponse'])return object;if(!$util['isObject'](object))throw TypeError('.GetDocumentDetailsResponse:\x20object\x20expected');if(void 0x0===_0xdda93e&&(_0xdda93e=0x0),_0xdda93e>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x214984=new $root['GetDocumentDetailsResponse']();return null!=object['lastDocumentSessionId']&&(_0x214984['lastDocumentSessionId']=String(object['lastDocumentSessionId'])),null!=object['lastDocumentSessionOperationId']&&(_0x214984['lastDocumentSessionOperationId']=String(object['lastDocumentSessionOperationId'])),null!=object['currentDocumentSessionId']&&(_0x214984['currentDocumentSessionId']=String(object['currentDocumentSessionId'])),null!=object['currentDocumentSessionVersion']&&(_0x214984['currentDocumentSessionVersion']=object['currentDocumentSessionVersion']>>>0x0),null!=object['currentDocumentSessionOperationId']&&(_0x214984['currentDocumentSessionOperationId']=String(object['currentDocumentSessionOperationId'])),_0x214984;},GetDocumentDetailsResponse['toObject']=function(_0x3ec9e6,options,_0x10b5de){if(options||(options={}),void 0x0===_0x10b5de&&(_0x10b5de=0x0),_0x10b5de>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['lastDocumentSessionId']='',object['lastDocumentSessionOperationId']='',object['currentDocumentSessionId']='',object['currentDocumentSessionVersion']=0x0,object['currentDocumentSessionOperationId']=''),null!=_0x3ec9e6['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x3ec9e6,'lastDocumentSessionId')&&(object['lastDocumentSessionId']=_0x3ec9e6['lastDocumentSessionId']),null!=_0x3ec9e6['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x3ec9e6,'lastDocumentSessionOperationId')&&(object['lastDocumentSessionOperationId']=_0x3ec9e6['lastDocumentSessionOperationId']),null!=_0x3ec9e6['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x3ec9e6,'currentDocumentSessionId')&&(object['currentDocumentSessionId']=_0x3ec9e6['currentDocumentSessionId']),null!=_0x3ec9e6['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x3ec9e6,'currentDocumentSessionVersion')&&(object['currentDocumentSessionVersion']=_0x3ec9e6['currentDocumentSessionVersion']),null!=_0x3ec9e6['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x3ec9e6,'currentDocumentSessionOperationId')&&(object['currentDocumentSessionOperationId']=_0x3ec9e6['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 _0x318cd7=Object['keys'](properties),_0x3dfa4f=0x0;_0x3dfa4f<_0x318cd7['length'];++_0x3dfa4f)null!=properties[_0x318cd7[_0x3dfa4f]]&&'__proto__'!==_0x318cd7[_0x3dfa4f]&&(this[_0x318cd7[_0x3dfa4f]]=properties[_0x318cd7[_0x3dfa4f]]);}}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(_0x1d3ae0,writer,_0x1e6130){if(writer||(writer=$Writer['create']()),void 0x0===_0x1e6130&&(_0x1e6130=0x0),_0x1e6130>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x1d3ae0['version']&&Object['hasOwnProperty']['call'](_0x1d3ae0,'version')&&writer['uint32'](0x8)['uint32'](_0x1d3ae0['version']),null!=_0x1d3ae0['buffers']&&_0x1d3ae0['buffers']['length']){for(var _0x502e4c=0x0;_0x502e4c<_0x1d3ae0['buffers']['length'];++_0x502e4c)writer['uint32'](0x12)['bytes'](_0x1d3ae0['buffers'][_0x502e4c]);}if(null!=_0x1d3ae0['types']&&_0x1d3ae0['types']['length']){writer['uint32'](0x1a)['fork']();for(_0x502e4c=0x0;_0x502e4c<_0x1d3ae0['types']['length'];++_0x502e4c)writer['uint32'](_0x1d3ae0['types'][_0x502e4c]);writer['ldelim']();}if(null!=_0x1d3ae0['metadata']&&_0x1d3ae0['metadata']['length']){for(_0x502e4c=0x0;_0x502e4c<_0x1d3ae0['metadata']['length'];++_0x502e4c)$root['OperationMetadataDescriptor']['encode'](_0x1d3ae0['metadata'][_0x502e4c],writer['uint32'](0x2a)['fork'](),_0x1e6130+0x1)['ldelim']();}return null!=_0x1d3ae0['lastOperationId']&&Object['hasOwnProperty']['call'](_0x1d3ae0,'lastOperationId')&&writer['uint32'](0x32)['string'](_0x1d3ae0['lastOperationId']),null!=_0x1d3ae0['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x1d3ae0,'lastOperationAcceptedAt')&&writer['uint32'](0x3a)['string'](_0x1d3ae0['lastOperationAcceptedAt']),writer;},CollaborativeEditingResponse['encodeDelimited']=function(_0x2b1bc4,writer){return this['encode'](_0x2b1bc4,writer)['ldelim']();},CollaborativeEditingResponse['decode']=function(_0x6b8238,length,_0x9776e,_0x142288){if(_0x6b8238 instanceof _0x470ccf||(_0x6b8238=_0x470ccf['create'](_0x6b8238)),void 0x0===_0x142288&&(_0x142288=0x0),_0x142288>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2791cd=void 0x0===length?_0x6b8238['len']:_0x6b8238['pos']+length,_0x1f613d=new $root['CollaborativeEditingResponse']();_0x6b8238['pos']<_0x2791cd;){var tag=_0x6b8238['uint32']();if(tag===_0x9776e)break;switch(tag>>>0x3){case 0x1:_0x1f613d['version']=_0x6b8238['uint32']();break;case 0x2:_0x1f613d['buffers']&&_0x1f613d['buffers']['length']||(_0x1f613d['buffers']=[]),_0x1f613d['buffers']['push'](_0x6b8238['bytes']());break;case 0x3:if(_0x1f613d['types']&&_0x1f613d['types']['length']||(_0x1f613d['types']=[]),0x2==(0x7&tag)){for(var _0x361181=_0x6b8238['uint32']()+_0x6b8238['pos'];_0x6b8238['pos']<_0x361181;)_0x1f613d['types']['push'](_0x6b8238['uint32']());}else _0x1f613d['types']['push'](_0x6b8238['uint32']());break;case 0x5:_0x1f613d['metadata']&&_0x1f613d['metadata']['length']||(_0x1f613d['metadata']=[]),_0x1f613d['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x6b8238,_0x6b8238['uint32'](),void 0x0,_0x142288+0x1));break;case 0x6:_0x1f613d['lastOperationId']=_0x6b8238['string']();break;case 0x7:_0x1f613d['lastOperationAcceptedAt']=_0x6b8238['string']();break;default:_0x6b8238['skipType'](0x7&tag,_0x142288);}}return _0x1f613d;},CollaborativeEditingResponse['decodeDelimited']=function(_0xfbbc33){return _0xfbbc33 instanceof _0x470ccf||(_0xfbbc33=new _0x470ccf(_0xfbbc33)),this['decode'](_0xfbbc33,_0xfbbc33['uint32']());},CollaborativeEditingResponse['verify']=function(_0xe4ed73,_0x1e976c){if('object'!=typeof _0xe4ed73||null===_0xe4ed73)return'object\x20expected';if(void 0x0===_0x1e976c&&(_0x1e976c=0x0),_0x1e976c>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0xe4ed73['version']&&Object['hasOwnProperty']['call'](_0xe4ed73,'version')&&!$util['isInteger'](_0xe4ed73['version']))return'version:\x20integer\x20expected';if(null!=_0xe4ed73['buffers']&&Object['hasOwnProperty']['call'](_0xe4ed73,'buffers')){if(!Array['isArray'](_0xe4ed73['buffers']))return'buffers:\x20array\x20expected';for(var _0x3caafc=0x0;_0x3caafc<_0xe4ed73['buffers']['length'];++_0x3caafc)if(!(_0xe4ed73['buffers'][_0x3caafc]&&'number'==typeof _0xe4ed73['buffers'][_0x3caafc]['length']||$util['isString'](_0xe4ed73['buffers'][_0x3caafc])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0xe4ed73['types']&&Object['hasOwnProperty']['call'](_0xe4ed73,'types')){if(!Array['isArray'](_0xe4ed73['types']))return'types:\x20array\x20expected';for(_0x3caafc=0x0;_0x3caafc<_0xe4ed73['types']['length'];++_0x3caafc)if(!$util['isInteger'](_0xe4ed73['types'][_0x3caafc]))return'types:\x20integer[]\x20expected';}if(null!=_0xe4ed73['metadata']&&Object['hasOwnProperty']['call'](_0xe4ed73,'metadata')){if(!Array['isArray'](_0xe4ed73['metadata']))return'metadata:\x20array\x20expected';for(_0x3caafc=0x0;_0x3caafc<_0xe4ed73['metadata']['length'];++_0x3caafc){var _0x202c7d=$root['OperationMetadataDescriptor']['verify'](_0xe4ed73['metadata'][_0x3caafc],_0x1e976c+0x1);if(_0x202c7d)return'metadata.'+_0x202c7d;}}return null!=_0xe4ed73['lastOperationId']&&Object['hasOwnProperty']['call'](_0xe4ed73,'lastOperationId')&&!$util['isString'](_0xe4ed73['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0xe4ed73['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0xe4ed73,'lastOperationAcceptedAt')&&!$util['isString'](_0xe4ed73['lastOperationAcceptedAt'])?'lastOperationAcceptedAt:\x20string\x20expected':null;},CollaborativeEditingResponse['fromObject']=function(object,_0x4d2e5c){if(object instanceof $root['CollaborativeEditingResponse'])return object;if(!$util['isObject'](object))throw TypeError('.CollaborativeEditingResponse:\x20object\x20expected');if(void 0x0===_0x4d2e5c&&(_0x4d2e5c=0x0),_0x4d2e5c>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x19c231=new $root['CollaborativeEditingResponse']();if(null!=object['version']&&(_0x19c231['version']=object['version']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingResponse.buffers:\x20array\x20expected');_0x19c231['buffers']=[];for(var _0x48494b=0x0;_0x48494b<object['buffers']['length'];++_0x48494b)'string'==typeof object['buffers'][_0x48494b]?$util['base64']['decode'](object['buffers'][_0x48494b],_0x19c231['buffers'][_0x48494b]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x48494b])),0x0):object['buffers'][_0x48494b]['length']>=0x0&&(_0x19c231['buffers'][_0x48494b]=object['buffers'][_0x48494b]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingResponse.types:\x20array\x20expected');_0x19c231['types']=[];for(_0x48494b=0x0;_0x48494b<object['types']['length'];++_0x48494b)_0x19c231['types'][_0x48494b]=object['types'][_0x48494b]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingResponse.metadata:\x20array\x20expected');_0x19c231['metadata']=[];for(_0x48494b=0x0;_0x48494b<object['metadata']['length'];++_0x48494b){if(!$util['isObject'](object['metadata'][_0x48494b]))throw TypeError('.CollaborativeEditingResponse.metadata:\x20object\x20expected');_0x19c231['metadata'][_0x48494b]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x48494b],_0x4d2e5c+0x1);}}return null!=object['lastOperationId']&&(_0x19c231['lastOperationId']=String(object['lastOperationId'])),null!=object['lastOperationAcceptedAt']&&(_0x19c231['lastOperationAcceptedAt']=String(object['lastOperationAcceptedAt'])),_0x19c231;},CollaborativeEditingResponse['toObject']=function(_0x278061,options,_0x167873){if(options||(options={}),void 0x0===_0x167873&&(_0x167873=0x0),_0x167873>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[],object['metadata']=[]),options['defaults']&&(object['version']=0x0,object['lastOperationId']='',object['lastOperationAcceptedAt']=''),null!=_0x278061['version']&&Object['hasOwnProperty']['call'](_0x278061,'version')&&(object['version']=_0x278061['version']),_0x278061['buffers']&&_0x278061['buffers']['length']){object['buffers']=[];for(var _0x289dab=0x0;_0x289dab<_0x278061['buffers']['length'];++_0x289dab)object['buffers'][_0x289dab]=options['bytes']===String?$util['base64']['encode'](_0x278061['buffers'][_0x289dab],0x0,_0x278061['buffers'][_0x289dab]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x278061['buffers'][_0x289dab]):_0x278061['buffers'][_0x289dab];}if(_0x278061['types']&&_0x278061['types']['length']){object['types']=[];for(_0x289dab=0x0;_0x289dab<_0x278061['types']['length'];++_0x289dab)object['types'][_0x289dab]=_0x278061['types'][_0x289dab];}if(_0x278061['metadata']&&_0x278061['metadata']['length']){object['metadata']=[];for(_0x289dab=0x0;_0x289dab<_0x278061['metadata']['length'];++_0x289dab)object['metadata'][_0x289dab]=$root['OperationMetadataDescriptor']['toObject'](_0x278061['metadata'][_0x289dab],options,_0x167873+0x1);}return null!=_0x278061['lastOperationId']&&Object['hasOwnProperty']['call'](_0x278061,'lastOperationId')&&(object['lastOperationId']=_0x278061['lastOperationId']),null!=_0x278061['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x278061,'lastOperationAcceptedAt')&&(object['lastOperationAcceptedAt']=_0x278061['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 _0x21f84d=Object['keys'](properties),_0x3740bf=0x0;_0x3740bf<_0x21f84d['length'];++_0x3740bf)null!=properties[_0x21f84d[_0x3740bf]]&&'__proto__'!==_0x21f84d[_0x3740bf]&&(this[_0x21f84d[_0x3740bf]]=properties[_0x21f84d[_0x3740bf]]);}}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(_0x41c303,writer,_0x3ba606){if(writer||(writer=$Writer['create']()),void 0x0===_0x3ba606&&(_0x3ba606=0x0),_0x3ba606>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x41c303['channel']&&Object['hasOwnProperty']['call'](_0x41c303,'channel')&&writer['uint32'](0xa)['string'](_0x41c303['channel']),null!=_0x41c303['offset']&&Object['hasOwnProperty']['call'](_0x41c303,'offset')&&writer['uint32'](0x10)['uint32'](_0x41c303['offset']),null!=_0x41c303['version']&&Object['hasOwnProperty']['call'](_0x41c303,'version')&&writer['uint32'](0x18)['uint32'](_0x41c303['version']),null!=_0x41c303['buffers']&&_0x41c303['buffers']['length']){for(var _0x514755=0x0;_0x514755<_0x41c303['buffers']['length'];++_0x514755)writer['uint32'](0x22)['bytes'](_0x41c303['buffers'][_0x514755]);}if(null!=_0x41c303['types']&&_0x41c303['types']['length']){writer['uint32'](0x2a)['fork']();for(_0x514755=0x0;_0x514755<_0x41c303['types']['length'];++_0x514755)writer['uint32'](_0x41c303['types'][_0x514755]);writer['ldelim']();}if(null!=_0x41c303['metadata']&&_0x41c303['metadata']['length']){for(_0x514755=0x0;_0x514755<_0x41c303['metadata']['length'];++_0x514755)$root['OperationMetadataDescriptor']['encode'](_0x41c303['metadata'][_0x514755],writer['uint32'](0x3a)['fork'](),_0x3ba606+0x1)['ldelim']();}return null!=_0x41c303['initData']&&Object['hasOwnProperty']['call'](_0x41c303,'initData')&&writer['uint32'](0x42)['string'](_0x41c303['initData']),null!=_0x41c303['isInitialized']&&Object['hasOwnProperty']['call'](_0x41c303,'isInitialized')&&writer['uint32'](0x48)['bool'](_0x41c303['isInitialized']),null!=_0x41c303['sessionId']&&Object['hasOwnProperty']['call'](_0x41c303,'sessionId')&&writer['uint32'](0x52)['string'](_0x41c303['sessionId']),null!=_0x41c303['lastOperationId']&&Object['hasOwnProperty']['call'](_0x41c303,'lastOperationId')&&writer['uint32'](0x5a)['string'](_0x41c303['lastOperationId']),null!=_0x41c303['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0x41c303,'sessionCreatedAt')&&writer['uint32'](0x62)['string'](_0x41c303['sessionCreatedAt']),writer;},CollaborativeEditingConnectResponse['encodeDelimited']=function(_0x28ab40,writer){return this['encode'](_0x28ab40,writer)['ldelim']();},CollaborativeEditingConnectResponse['decode']=function(_0x14d933,length,_0x23f2eb,_0x157266){if(_0x14d933 instanceof _0x470ccf||(_0x14d933=_0x470ccf['create'](_0x14d933)),void 0x0===_0x157266&&(_0x157266=0x0),_0x157266>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4e9efe=void 0x0===length?_0x14d933['len']:_0x14d933['pos']+length,_0x319edd=new $root['CollaborativeEditingConnectResponse']();_0x14d933['pos']<_0x4e9efe;){var tag=_0x14d933['uint32']();if(tag===_0x23f2eb)break;switch(tag>>>0x3){case 0x1:_0x319edd['channel']=_0x14d933['string']();break;case 0x2:_0x319edd['offset']=_0x14d933['uint32']();break;case 0x3:_0x319edd['version']=_0x14d933['uint32']();break;case 0x4:_0x319edd['buffers']&&_0x319edd['buffers']['length']||(_0x319edd['buffers']=[]),_0x319edd['buffers']['push'](_0x14d933['bytes']());break;case 0x5:if(_0x319edd['types']&&_0x319edd['types']['length']||(_0x319edd['types']=[]),0x2==(0x7&tag)){for(var _0x3114bd=_0x14d933['uint32']()+_0x14d933['pos'];_0x14d933['pos']<_0x3114bd;)_0x319edd['types']['push'](_0x14d933['uint32']());}else _0x319edd['types']['push'](_0x14d933['uint32']());break;case 0x7:_0x319edd['metadata']&&_0x319edd['metadata']['length']||(_0x319edd['metadata']=[]),_0x319edd['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x14d933,_0x14d933['uint32'](),void 0x0,_0x157266+0x1));break;case 0x8:_0x319edd['initData']=_0x14d933['string']();break;case 0x9:_0x319edd['isInitialized']=_0x14d933['bool']();break;case 0xa:_0x319edd['sessionId']=_0x14d933['string']();break;case 0xb:_0x319edd['lastOperationId']=_0x14d933['string']();break;case 0xc:_0x319edd['sessionCreatedAt']=_0x14d933['string']();break;default:_0x14d933['skipType'](0x7&tag,_0x157266);}}return _0x319edd;},CollaborativeEditingConnectResponse['decodeDelimited']=function(_0x28a35c){return _0x28a35c instanceof _0x470ccf||(_0x28a35c=new _0x470ccf(_0x28a35c)),this['decode'](_0x28a35c,_0x28a35c['uint32']());},CollaborativeEditingConnectResponse['verify']=function(_0x5cb33d,_0x68a4dc){if('object'!=typeof _0x5cb33d||null===_0x5cb33d)return'object\x20expected';if(void 0x0===_0x68a4dc&&(_0x68a4dc=0x0),_0x68a4dc>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x5cb33d['channel']&&Object['hasOwnProperty']['call'](_0x5cb33d,'channel')&&!$util['isString'](_0x5cb33d['channel']))return'channel:\x20string\x20expected';if(null!=_0x5cb33d['offset']&&Object['hasOwnProperty']['call'](_0x5cb33d,'offset')&&!$util['isInteger'](_0x5cb33d['offset']))return'offset:\x20integer\x20expected';if(null!=_0x5cb33d['version']&&Object['hasOwnProperty']['call'](_0x5cb33d,'version')&&!$util['isInteger'](_0x5cb33d['version']))return'version:\x20integer\x20expected';if(null!=_0x5cb33d['buffers']&&Object['hasOwnProperty']['call'](_0x5cb33d,'buffers')){if(!Array['isArray'](_0x5cb33d['buffers']))return'buffers:\x20array\x20expected';for(var _0x55e4f6=0x0;_0x55e4f6<_0x5cb33d['buffers']['length'];++_0x55e4f6)if(!(_0x5cb33d['buffers'][_0x55e4f6]&&'number'==typeof _0x5cb33d['buffers'][_0x55e4f6]['length']||$util['isString'](_0x5cb33d['buffers'][_0x55e4f6])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x5cb33d['types']&&Object['hasOwnProperty']['call'](_0x5cb33d,'types')){if(!Array['isArray'](_0x5cb33d['types']))return'types:\x20array\x20expected';for(_0x55e4f6=0x0;_0x55e4f6<_0x5cb33d['types']['length'];++_0x55e4f6)if(!$util['isInteger'](_0x5cb33d['types'][_0x55e4f6]))return'types:\x20integer[]\x20expected';}if(null!=_0x5cb33d['metadata']&&Object['hasOwnProperty']['call'](_0x5cb33d,'metadata')){if(!Array['isArray'](_0x5cb33d['metadata']))return'metadata:\x20array\x20expected';for(_0x55e4f6=0x0;_0x55e4f6<_0x5cb33d['metadata']['length'];++_0x55e4f6){var _0x4fb7e4=$root['OperationMetadataDescriptor']['verify'](_0x5cb33d['metadata'][_0x55e4f6],_0x68a4dc+0x1);if(_0x4fb7e4)return'metadata.'+_0x4fb7e4;}}return null!=_0x5cb33d['initData']&&Object['hasOwnProperty']['call'](_0x5cb33d,'initData')&&!$util['isString'](_0x5cb33d['initData'])?'initData:\x20string\x20expected':null!=_0x5cb33d['isInitialized']&&Object['hasOwnProperty']['call'](_0x5cb33d,'isInitialized')&&'boolean'!=typeof _0x5cb33d['isInitialized']?'isInitialized:\x20boolean\x20expected':null!=_0x5cb33d['sessionId']&&Object['hasOwnProperty']['call'](_0x5cb33d,'sessionId')&&!$util['isString'](_0x5cb33d['sessionId'])?'sessionId:\x20string\x20expected':null!=_0x5cb33d['lastOperationId']&&Object['hasOwnProperty']['call'](_0x5cb33d,'lastOperationId')&&!$util['isString'](_0x5cb33d['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x5cb33d['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0x5cb33d,'sessionCreatedAt')&&!$util['isString'](_0x5cb33d['sessionCreatedAt'])?'sessionCreatedAt:\x20string\x20expected':null;},CollaborativeEditingConnectResponse['fromObject']=function(object,_0x1d326b){if(object instanceof $root['CollaborativeEditingConnectResponse'])return object;if(!$util['isObject'](object))throw TypeError('.CollaborativeEditingConnectResponse:\x20object\x20expected');if(void 0x0===_0x1d326b&&(_0x1d326b=0x0),_0x1d326b>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x24378c=new $root['CollaborativeEditingConnectResponse']();if(null!=object['channel']&&(_0x24378c['channel']=String(object['channel'])),null!=object['offset']&&(_0x24378c['offset']=object['offset']>>>0x0),null!=object['version']&&(_0x24378c['version']=object['version']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingConnectResponse.buffers:\x20array\x20expected');_0x24378c['buffers']=[];for(var _0x3bd0a9=0x0;_0x3bd0a9<object['buffers']['length'];++_0x3bd0a9)'string'==typeof object['buffers'][_0x3bd0a9]?$util['base64']['decode'](object['buffers'][_0x3bd0a9],_0x24378c['buffers'][_0x3bd0a9]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x3bd0a9])),0x0):object['buffers'][_0x3bd0a9]['length']>=0x0&&(_0x24378c['buffers'][_0x3bd0a9]=object['buffers'][_0x3bd0a9]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingConnectResponse.types:\x20array\x20expected');_0x24378c['types']=[];for(_0x3bd0a9=0x0;_0x3bd0a9<object['types']['length'];++_0x3bd0a9)_0x24378c['types'][_0x3bd0a9]=object['types'][_0x3bd0a9]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20array\x20expected');_0x24378c['metadata']=[];for(_0x3bd0a9=0x0;_0x3bd0a9<object['metadata']['length'];++_0x3bd0a9){if(!$util['isObject'](object['metadata'][_0x3bd0a9]))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20object\x20expected');_0x24378c['metadata'][_0x3bd0a9]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x3bd0a9],_0x1d326b+0x1);}}return null!=object['initData']&&(_0x24378c['initData']=String(object['initData'])),null!=object['isInitialized']&&(_0x24378c['isInitialized']=Boolean(object['isInitialized'])),null!=object['sessionId']&&(_0x24378c['sessionId']=String(object['sessionId'])),null!=object['lastOperationId']&&(_0x24378c['lastOperationId']=String(object['lastOperationId'])),null!=object['sessionCreatedAt']&&(_0x24378c['sessionCreatedAt']=String(object['sessionCreatedAt'])),_0x24378c;},CollaborativeEditingConnectResponse['toObject']=function(_0xb3bd09,options,_0x3537b7){if(options||(options={}),void 0x0===_0x3537b7&&(_0x3537b7=0x0),_0x3537b7>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');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!=_0xb3bd09['channel']&&Object['hasOwnProperty']['call'](_0xb3bd09,'channel')&&(object['channel']=_0xb3bd09['channel']),null!=_0xb3bd09['offset']&&Object['hasOwnProperty']['call'](_0xb3bd09,'offset')&&(object['offset']=_0xb3bd09['offset']),null!=_0xb3bd09['version']&&Object['hasOwnProperty']['call'](_0xb3bd09,'version')&&(object['version']=_0xb3bd09['version']),_0xb3bd09['buffers']&&_0xb3bd09['buffers']['length']){object['buffers']=[];for(var _0x4c08ee=0x0;_0x4c08ee<_0xb3bd09['buffers']['length'];++_0x4c08ee)object['buffers'][_0x4c08ee]=options['bytes']===String?$util['base64']['encode'](_0xb3bd09['buffers'][_0x4c08ee],0x0,_0xb3bd09['buffers'][_0x4c08ee]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0xb3bd09['buffers'][_0x4c08ee]):_0xb3bd09['buffers'][_0x4c08ee];}if(_0xb3bd09['types']&&_0xb3bd09['types']['length']){object['types']=[];for(_0x4c08ee=0x0;_0x4c08ee<_0xb3bd09['types']['length'];++_0x4c08ee)object['types'][_0x4c08ee]=_0xb3bd09['types'][_0x4c08ee];}if(_0xb3bd09['metadata']&&_0xb3bd09['metadata']['length']){object['metadata']=[];for(_0x4c08ee=0x0;_0x4c08ee<_0xb3bd09['metadata']['length'];++_0x4c08ee)object['metadata'][_0x4c08ee]=$root['OperationMetadataDescriptor']['toObject'](_0xb3bd09['metadata'][_0x4c08ee],options,_0x3537b7+0x1);}return null!=_0xb3bd09['initData']&&Object['hasOwnProperty']['call'](_0xb3bd09,'initData')&&(object['initData']=_0xb3bd09['initData']),null!=_0xb3bd09['isInitialized']&&Object['hasOwnProperty']['call'](_0xb3bd09,'isInitialized')&&(object['isInitialized']=_0xb3bd09['isInitialized']),null!=_0xb3bd09['sessionId']&&Object['hasOwnProperty']['call'](_0xb3bd09,'sessionId')&&(object['sessionId']=_0xb3bd09['sessionId']),null!=_0xb3bd09['lastOperationId']&&Object['hasOwnProperty']['call'](_0xb3bd09,'lastOperationId')&&(object['lastOperationId']=_0xb3bd09['lastOperationId']),null!=_0xb3bd09['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0xb3bd09,'sessionCreatedAt')&&(object['sessionCreatedAt']=_0xb3bd09['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 _0xc6e301=Object['keys'](properties),_0x5d43f5=0x0;_0x5d43f5<_0xc6e301['length'];++_0x5d43f5)null!=properties[_0xc6e301[_0x5d43f5]]&&'__proto__'!==_0xc6e301[_0x5d43f5]&&(this[_0xc6e301[_0x5d43f5]]=properties[_0xc6e301[_0x5d43f5]]);}}return GetDocumentDetailsMessage['prototype']['documentId']='',GetDocumentDetailsMessage['prototype']['environmentId']='',GetDocumentDetailsMessage['create']=function(properties){return new GetDocumentDetailsMessage(properties);},GetDocumentDetailsMessage['encode']=function(_0x4c5754,writer,_0x2f8a93){if(writer||(writer=$Writer['create']()),void 0x0===_0x2f8a93&&(_0x2f8a93=0x0),_0x2f8a93>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x4c5754['documentId']&&Object['hasOwnProperty']['call'](_0x4c5754,'documentId')&&writer['uint32'](0xa)['string'](_0x4c5754['documentId']),null!=_0x4c5754['environmentId']&&Object['hasOwnProperty']['call'](_0x4c5754,'environmentId')&&writer['uint32'](0x12)['string'](_0x4c5754['environmentId']),writer;},GetDocumentDetailsMessage['encodeDelimited']=function(_0x120659,writer){return this['encode'](_0x120659,writer)['ldelim']();},GetDocumentDetailsMessage['decode']=function(_0x1960a0,length,_0x512e03,_0x16b805){if(_0x1960a0 instanceof _0x470ccf||(_0x1960a0=_0x470ccf['create'](_0x1960a0)),void 0x0===_0x16b805&&(_0x16b805=0x0),_0x16b805>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1a54ef=void 0x0===length?_0x1960a0['len']:_0x1960a0['pos']+length,_0x185a91=new $root['GetDocumentDetailsMessage']();_0x1960a0['pos']<_0x1a54ef;){var tag=_0x1960a0['uint32']();if(tag===_0x512e03)break;switch(tag>>>0x3){case 0x1:_0x185a91['documentId']=_0x1960a0['string']();break;case 0x2:_0x185a91['environmentId']=_0x1960a0['string']();break;default:_0x1960a0['skipType'](0x7&tag,_0x16b805);}}return _0x185a91;},GetDocumentDetailsMessage['decodeDelimited']=function(_0x1bbf32){return _0x1bbf32 instanceof _0x470ccf||(_0x1bbf32=new _0x470ccf(_0x1bbf32)),this['decode'](_0x1bbf32,_0x1bbf32['uint32']());},GetDocumentDetailsMessage['verify']=function(_0x38099d,_0x5a6ef6){return'object'!=typeof _0x38099d||null===_0x38099d?'object\x20expected':(void 0x0===_0x5a6ef6&&(_0x5a6ef6=0x0),_0x5a6ef6>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x38099d['documentId']&&Object['hasOwnProperty']['call'](_0x38099d,'documentId')&&!$util['isString'](_0x38099d['documentId'])?'documentId:\x20string\x20expected':null!=_0x38099d['environmentId']&&Object['hasOwnProperty']['call'](_0x38099d,'environmentId')&&!$util['isString'](_0x38099d['environmentId'])?'environmentId:\x20string\x20expected':null);},GetDocumentDetailsMessage['fromObject']=function(object,_0x15b755){if(object instanceof $root['GetDocumentDetailsMessage'])return object;if(!$util['isObject'](object))throw TypeError('.GetDocumentDetailsMessage:\x20object\x20expected');if(void 0x0===_0x15b755&&(_0x15b755=0x0),_0x15b755>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x174635=new $root['GetDocumentDetailsMessage']();return null!=object['documentId']&&(_0x174635['documentId']=String(object['documentId'])),null!=object['environmentId']&&(_0x174635['environmentId']=String(object['environmentId'])),_0x174635;},GetDocumentDetailsMessage['toObject']=function(_0x2dadbd,options,_0x36fa12){if(options||(options={}),void 0x0===_0x36fa12&&(_0x36fa12=0x0),_0x36fa12>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['documentId']='',object['environmentId']=''),null!=_0x2dadbd['documentId']&&Object['hasOwnProperty']['call'](_0x2dadbd,'documentId')&&(object['documentId']=_0x2dadbd['documentId']),null!=_0x2dadbd['environmentId']&&Object['hasOwnProperty']['call'](_0x2dadbd,'environmentId')&&(object['environmentId']=_0x2dadbd['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 _0x584a10=Object['keys'](properties),_0x2e9bf1=0x0;_0x2e9bf1<_0x584a10['length'];++_0x2e9bf1)null!=properties[_0x584a10[_0x2e9bf1]]&&'__proto__'!==_0x584a10[_0x2e9bf1]&&(this[_0x584a10[_0x2e9bf1]]=properties[_0x584a10[_0x2e9bf1]]);}}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(_0x1ceac6,writer,_0x31e467){if(writer||(writer=$Writer['create']()),void 0x0===_0x31e467&&(_0x31e467=0x0),_0x31e467>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x1ceac6['id']&&Object['hasOwnProperty']['call'](_0x1ceac6,'id')&&writer['uint32'](0xa)['string'](_0x1ceac6['id']),null!=_0x1ceac6['baseVersion']&&Object['hasOwnProperty']['call'](_0x1ceac6,'baseVersion')&&writer['uint32'](0x10)['uint32'](_0x1ceac6['baseVersion']),null!=_0x1ceac6['buffers']&&_0x1ceac6['buffers']['length']){for(var _0x126709=0x0;_0x126709<_0x1ceac6['buffers']['length'];++_0x126709)writer['uint32'](0x1a)['bytes'](_0x1ceac6['buffers'][_0x126709]);}if(null!=_0x1ceac6['types']&&_0x1ceac6['types']['length']){writer['uint32'](0x22)['fork']();for(_0x126709=0x0;_0x126709<_0x1ceac6['types']['length'];++_0x126709)writer['uint32'](_0x1ceac6['types'][_0x126709]);writer['ldelim']();}if(null!=_0x1ceac6['metadata']&&_0x1ceac6['metadata']['length']){for(_0x126709=0x0;_0x126709<_0x1ceac6['metadata']['length'];++_0x126709)$root['OperationMetadataDescriptor']['encode'](_0x1ceac6['metadata'][_0x126709],writer['uint32'](0x32)['fork'](),_0x31e467+0x1)['ldelim']();}return null!=_0x1ceac6['lastOperationId']&&Object['hasOwnProperty']['call'](_0x1ceac6,'lastOperationId')&&writer['uint32'](0x3a)['string'](_0x1ceac6['lastOperationId']),writer;},CollaborativeEditingUpdateMessage['encodeDelimited']=function(_0x3c9ce0,writer){return this['encode'](_0x3c9ce0,writer)['ldelim']();},CollaborativeEditingUpdateMessage['decode']=function(_0x383c43,length,_0x4b0434,_0x413c30){if(_0x383c43 instanceof _0x470ccf||(_0x383c43=_0x470ccf['create'](_0x383c43)),void 0x0===_0x413c30&&(_0x413c30=0x0),_0x413c30>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x48c9aa=void 0x0===length?_0x383c43['len']:_0x383c43['pos']+length,_0xc8b456=new $root['CollaborativeEditingUpdateMessage']();_0x383c43['pos']<_0x48c9aa;){var tag=_0x383c43['uint32']();if(tag===_0x4b0434)break;switch(tag>>>0x3){case 0x1:_0xc8b456['id']=_0x383c43['string']();break;case 0x2:_0xc8b456['baseVersion']=_0x383c43['uint32']();break;case 0x3:_0xc8b456['buffers']&&_0xc8b456['buffers']['length']||(_0xc8b456['buffers']=[]),_0xc8b456['buffers']['push'](_0x383c43['bytes']());break;case 0x4:if(_0xc8b456['types']&&_0xc8b456['types']['length']||(_0xc8b456['types']=[]),0x2==(0x7&tag)){for(var _0x13f6ef=_0x383c43['uint32']()+_0x383c43['pos'];_0x383c43['pos']<_0x13f6ef;)_0xc8b456['types']['push'](_0x383c43['uint32']());}else _0xc8b456['types']['push'](_0x383c43['uint32']());break;case 0x6:_0xc8b456['metadata']&&_0xc8b456['metadata']['length']||(_0xc8b456['metadata']=[]),_0xc8b456['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x383c43,_0x383c43['uint32'](),void 0x0,_0x413c30+0x1));break;case 0x7:_0xc8b456['lastOperationId']=_0x383c43['string']();break;default:_0x383c43['skipType'](0x7&tag,_0x413c30);}}return _0xc8b456;},CollaborativeEditingUpdateMessage['decodeDelimited']=function(_0xf66272){return _0xf66272 instanceof _0x470ccf||(_0xf66272=new _0x470ccf(_0xf66272)),this['decode'](_0xf66272,_0xf66272['uint32']());},CollaborativeEditingUpdateMessage['verify']=function(_0x34cf40,_0xd678d5){if('object'!=typeof _0x34cf40||null===_0x34cf40)return'object\x20expected';if(void 0x0===_0xd678d5&&(_0xd678d5=0x0),_0xd678d5>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x34cf40['id']&&Object['hasOwnProperty']['call'](_0x34cf40,'id')&&!$util['isString'](_0x34cf40['id']))return'id:\x20string\x20expected';if(null!=_0x34cf40['baseVersion']&&Object['hasOwnProperty']['call'](_0x34cf40,'baseVersion')&&!$util['isInteger'](_0x34cf40['baseVersion']))return'baseVersion:\x20integer\x20expected';if(null!=_0x34cf40['buffers']&&Object['hasOwnProperty']['call'](_0x34cf40,'buffers')){if(!Array['isArray'](_0x34cf40['buffers']))return'buffers:\x20array\x20expected';for(var _0x377bcd=0x0;_0x377bcd<_0x34cf40['buffers']['length'];++_0x377bcd)if(!(_0x34cf40['buffers'][_0x377bcd]&&'number'==typeof _0x34cf40['buffers'][_0x377bcd]['length']||$util['isString'](_0x34cf40['buffers'][_0x377bcd])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x34cf40['types']&&Object['hasOwnProperty']['call'](_0x34cf40,'types')){if(!Array['isArray'](_0x34cf40['types']))return'types:\x20array\x20expected';for(_0x377bcd=0x0;_0x377bcd<_0x34cf40['types']['length'];++_0x377bcd)if(!$util['isInteger'](_0x34cf40['types'][_0x377bcd]))return'types:\x20integer[]\x20expected';}if(null!=_0x34cf40['metadata']&&Object['hasOwnProperty']['call'](_0x34cf40,'metadata')){if(!Array['isArray'](_0x34cf40['metadata']))return'metadata:\x20array\x20expected';for(_0x377bcd=0x0;_0x377bcd<_0x34cf40['metadata']['length'];++_0x377bcd){var _0x52e06b=$root['OperationMetadataDescriptor']['verify'](_0x34cf40['metadata'][_0x377bcd],_0xd678d5+0x1);if(_0x52e06b)return'metadata.'+_0x52e06b;}}return null!=_0x34cf40['lastOperationId']&&Object['hasOwnProperty']['call'](_0x34cf40,'lastOperationId')&&!$util['isString'](_0x34cf40['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},CollaborativeEditingUpdateMessage['fromObject']=function(object,_0x544a83){if(object instanceof $root['CollaborativeEditingUpdateMessage'])return object;if(!$util['isObject'](object))throw TypeError('.CollaborativeEditingUpdateMessage:\x20object\x20expected');if(void 0x0===_0x544a83&&(_0x544a83=0x0),_0x544a83>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xcd6226=new $root['CollaborativeEditingUpdateMessage']();if(null!=object['id']&&(_0xcd6226['id']=String(object['id'])),null!=object['baseVersion']&&(_0xcd6226['baseVersion']=object['baseVersion']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingUpdateMessage.buffers:\x20array\x20expected');_0xcd6226['buffers']=[];for(var _0xc15ae8=0x0;_0xc15ae8<object['buffers']['length'];++_0xc15ae8)'string'==typeof object['buffers'][_0xc15ae8]?$util['base64']['decode'](object['buffers'][_0xc15ae8],_0xcd6226['buffers'][_0xc15ae8]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0xc15ae8])),0x0):object['buffers'][_0xc15ae8]['length']>=0x0&&(_0xcd6226['buffers'][_0xc15ae8]=object['buffers'][_0xc15ae8]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingUpdateMessage.types:\x20array\x20expected');_0xcd6226['types']=[];for(_0xc15ae8=0x0;_0xc15ae8<object['types']['length'];++_0xc15ae8)_0xcd6226['types'][_0xc15ae8]=object['types'][_0xc15ae8]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20array\x20expected');_0xcd6226['metadata']=[];for(_0xc15ae8=0x0;_0xc15ae8<object['metadata']['length'];++_0xc15ae8){if(!$util['isObject'](object['metadata'][_0xc15ae8]))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20object\x20expected');_0xcd6226['metadata'][_0xc15ae8]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0xc15ae8],_0x544a83+0x1);}}return null!=object['lastOperationId']&&(_0xcd6226['lastOperationId']=String(object['lastOperationId'])),_0xcd6226;},CollaborativeEditingUpdateMessage['toObject']=function(_0x1ed537,options,_0x53be8e){if(options||(options={}),void 0x0===_0x53be8e&&(_0x53be8e=0x0),_0x53be8e>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[],object['metadata']=[]),options['defaults']&&(object['id']='',object['baseVersion']=0x0,object['lastOperationId']=''),null!=_0x1ed537['id']&&Object['hasOwnProperty']['call'](_0x1ed537,'id')&&(object['id']=_0x1ed537['id']),null!=_0x1ed537['baseVersion']&&Object['hasOwnProperty']['call'](_0x1ed537,'baseVersion')&&(object['baseVersion']=_0x1ed537['baseVersion']),_0x1ed537['buffers']&&_0x1ed537['buffers']['length']){object['buffers']=[];for(var _0x3dd0c0=0x0;_0x3dd0c0<_0x1ed537['buffers']['length'];++_0x3dd0c0)object['buffers'][_0x3dd0c0]=options['bytes']===String?$util['base64']['encode'](_0x1ed537['buffers'][_0x3dd0c0],0x0,_0x1ed537['buffers'][_0x3dd0c0]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x1ed537['buffers'][_0x3dd0c0]):_0x1ed537['buffers'][_0x3dd0c0];}if(_0x1ed537['types']&&_0x1ed537['types']['length']){object['types']=[];for(_0x3dd0c0=0x0;_0x3dd0c0<_0x1ed537['types']['length'];++_0x3dd0c0)object['types'][_0x3dd0c0]=_0x1ed537['types'][_0x3dd0c0];}if(_0x1ed537['metadata']&&_0x1ed537['metadata']['length']){object['metadata']=[];for(_0x3dd0c0=0x0;_0x3dd0c0<_0x1ed537['metadata']['length'];++_0x3dd0c0)object['metadata'][_0x3dd0c0]=$root['OperationMetadataDescriptor']['toObject'](_0x1ed537['metadata'][_0x3dd0c0],options,_0x53be8e+0x1);}return null!=_0x1ed537['lastOperationId']&&Object['hasOwnProperty']['call'](_0x1ed537,'lastOperationId')&&(object['lastOperationId']=_0x1ed537['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 _0x3318d8=Object['keys'](properties),_0x1935ed=0x0;_0x1935ed<_0x3318d8['length'];++_0x1935ed)null!=properties[_0x3318d8[_0x1935ed]]&&'__proto__'!==_0x3318d8[_0x1935ed]&&(this[_0x3318d8[_0x1935ed]]=properties[_0x3318d8[_0x1935ed]]);}}return CollaborativeEditingReconnectMessage['prototype']['id']='',CollaborativeEditingReconnectMessage['prototype']['bundleVersion']='',CollaborativeEditingReconnectMessage['prototype']['lastKnowVersion']=0x0,CollaborativeEditingReconnectMessage['create']=function(properties){return new CollaborativeEditingReconnectMessage(properties);},CollaborativeEditingReconnectMessage['encode']=function(_0x2351ac,writer,_0x947e80){if(writer||(writer=$Writer['create']()),void 0x0===_0x947e80&&(_0x947e80=0x0),_0x947e80>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x2351ac['id']&&Object['hasOwnProperty']['call'](_0x2351ac,'id')&&writer['uint32'](0xa)['string'](_0x2351ac['id']),null!=_0x2351ac['bundleVersion']&&Object['hasOwnProperty']['call'](_0x2351ac,'bundleVersion')&&writer['uint32'](0x12)['string'](_0x2351ac['bundleVersion']),null!=_0x2351ac['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x2351ac,'lastKnowVersion')&&writer['uint32'](0x18)['uint32'](_0x2351ac['lastKnowVersion']),writer;},CollaborativeEditingReconnectMessage['encodeDelimited']=function(_0x3c68b5,writer){return this['encode'](_0x3c68b5,writer)['ldelim']();},CollaborativeEditingReconnectMessage['decode']=function(_0x2cabd0,length,_0x9a778d,_0x45e326){if(_0x2cabd0 instanceof _0x470ccf||(_0x2cabd0=_0x470ccf['create'](_0x2cabd0)),void 0x0===_0x45e326&&(_0x45e326=0x0),_0x45e326>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x249a23=void 0x0===length?_0x2cabd0['len']:_0x2cabd0['pos']+length,_0x4f47db=new $root['CollaborativeEditingReconnectMessage']();_0x2cabd0['pos']<_0x249a23;){var tag=_0x2cabd0['uint32']();if(tag===_0x9a778d)break;switch(tag>>>0x3){case 0x1:_0x4f47db['id']=_0x2cabd0['string']();break;case 0x2:_0x4f47db['bundleVersion']=_0x2cabd0['string']();break;case 0x3:_0x4f47db['lastKnowVersion']=_0x2cabd0['uint32']();break;default:_0x2cabd0['skipType'](0x7&tag,_0x45e326);}}return _0x4f47db;},CollaborativeEditingReconnectMessage['decodeDelimited']=function(_0xacb7b8){return _0xacb7b8 instanceof _0x470ccf||(_0xacb7b8=new _0x470ccf(_0xacb7b8)),this['decode'](_0xacb7b8,_0xacb7b8['uint32']());},CollaborativeEditingReconnectMessage['verify']=function(_0x335ec7,_0x16702c){return'object'!=typeof _0x335ec7||null===_0x335ec7?'object\x20expected':(void 0x0===_0x16702c&&(_0x16702c=0x0),_0x16702c>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x335ec7['id']&&Object['hasOwnProperty']['call'](_0x335ec7,'id')&&!$util['isString'](_0x335ec7['id'])?'id:\x20string\x20expected':null!=_0x335ec7['bundleVersion']&&Object['hasOwnProperty']['call'](_0x335ec7,'bundleVersion')&&!$util['isString'](_0x335ec7['bundleVersion'])?'bundleVersion:\x20string\x20expected':null!=_0x335ec7['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x335ec7,'lastKnowVersion')&&!$util['isInteger'](_0x335ec7['lastKnowVersion'])?'lastKnowVersion:\x20integer\x20expected':null);},CollaborativeEditingReconnectMessage['fromObject']=function(object,_0x198421){if(object instanceof $root['CollaborativeEditingReconnectMessage'])return object;if(!$util['isObject'](object))throw TypeError('.CollaborativeEditingReconnectMessage:\x20object\x20expected');if(void 0x0===_0x198421&&(_0x198421=0x0),_0x198421>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x187249=new $root['CollaborativeEditingReconnectMessage']();return null!=object['id']&&(_0x187249['id']=String(object['id'])),null!=object['bundleVersion']&&(_0x187249['bundleVersion']=String(object['bundleVersion'])),null!=object['lastKnowVersion']&&(_0x187249['lastKnowVersion']=object['lastKnowVersion']>>>0x0),_0x187249;},CollaborativeEditingReconnectMessage['toObject']=function(_0x351a1d,options,_0xd822ed){if(options||(options={}),void 0x0===_0xd822ed&&(_0xd822ed=0x0),_0xd822ed>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['id']='',object['bundleVersion']='',object['lastKnowVersion']=0x0),null!=_0x351a1d['id']&&Object['hasOwnProperty']['call'](_0x351a1d,'id')&&(object['id']=_0x351a1d['id']),null!=_0x351a1d['bundleVersion']&&Object['hasOwnProperty']['call'](_0x351a1d,'bundleVersion')&&(object['bundleVersion']=_0x351a1d['bundleVersion']),null!=_0x351a1d['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x351a1d,'lastKnowVersion')&&(object['lastKnowVersion']=_0x351a1d['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 _0x4d74ab=Object['keys'](properties),_0x1ae95d=0x0;_0x1ae95d<_0x4d74ab['length'];++_0x1ae95d)null!=properties[_0x4d74ab[_0x1ae95d]]&&'__proto__'!==_0x4d74ab[_0x1ae95d]&&(this[_0x4d74ab[_0x1ae95d]]=properties[_0x4d74ab[_0x1ae95d]]);}}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(_0x345ca8,writer,_0x1c777f){if(writer||(writer=$Writer['create']()),void 0x0===_0x1c777f&&(_0x1c777f=0x0),_0x1c777f>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x345ca8['id']&&Object['hasOwnProperty']['call'](_0x345ca8,'id')&&writer['uint32'](0xa)['string'](_0x345ca8['id']),null!=_0x345ca8['bundleVersion']&&Object['hasOwnProperty']['call'](_0x345ca8,'bundleVersion')&&writer['uint32'](0x12)['string'](_0x345ca8['bundleVersion']),null!=_0x345ca8['buffers']&&_0x345ca8['buffers']['length']){for(var _0x4a8dd4=0x0;_0x4a8dd4<_0x345ca8['buffers']['length'];++_0x4a8dd4)writer['uint32'](0x1a)['bytes'](_0x345ca8['buffers'][_0x4a8dd4]);}if(null!=_0x345ca8['types']&&_0x345ca8['types']['length']){writer['uint32'](0x22)['fork']();for(_0x4a8dd4=0x0;_0x4a8dd4<_0x345ca8['types']['length'];++_0x4a8dd4)writer['uint32'](_0x345ca8['types'][_0x4a8dd4]);writer['ldelim']();}return null!=_0x345ca8['lastOperationId']&&Object['hasOwnProperty']['call'](_0x345ca8,'lastOperationId')&&writer['uint32'](0x2a)['string'](_0x345ca8['lastOperationId']),writer;},CollaborativeEditingConnectMessage['encodeDelimited']=function(_0x2666ba,writer){return this['encode'](_0x2666ba,writer)['ldelim']();},CollaborativeEditingConnectMessage['decode']=function(_0x1d4789,length,_0x372041,_0x3b1f44){if(_0x1d4789 instanceof _0x470ccf||(_0x1d4789=_0x470ccf['create'](_0x1d4789)),void 0x0===_0x3b1f44&&(_0x3b1f44=0x0),_0x3b1f44>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xa9bfa0=void 0x0===length?_0x1d4789['len']:_0x1d4789['pos']+length,_0x56cbcb=new $root['CollaborativeEditingConnectMessage']();_0x1d4789['pos']<_0xa9bfa0;){var tag=_0x1d4789['uint32']();if(tag===_0x372041)break;switch(tag>>>0x3){case 0x1:_0x56cbcb['id']=_0x1d4789['string']();break;case 0x2:_0x56cbcb['bundleVersion']=_0x1d4789['string']();break;case 0x3:_0x56cbcb['buffers']&&_0x56cbcb['buffers']['length']||(_0x56cbcb['buffers']=[]),_0x56cbcb['buffers']['push'](_0x1d4789['bytes']());break;case 0x4:if(_0x56cbcb['types']&&_0x56cbcb['types']['length']||(_0x56cbcb['types']=[]),0x2==(0x7&tag)){for(var _0x54ae28=_0x1d4789['uint32']()+_0x1d4789['pos'];_0x1d4789['pos']<_0x54ae28;)_0x56cbcb['types']['push'](_0x1d4789['uint32']());}else _0x56cbcb['types']['push'](_0x1d4789['uint32']());break;case 0x5:_0x56cbcb['lastOperationId']=_0x1d4789['string']();break;default:_0x1d4789['skipType'](0x7&tag,_0x3b1f44);}}return _0x56cbcb;},CollaborativeEditingConnectMessage['decodeDelimited']=function(_0x115140){return _0x115140 instanceof _0x470ccf||(_0x115140=new _0x470ccf(_0x115140)),this['decode'](_0x115140,_0x115140['uint32']());},CollaborativeEditingConnectMessage['verify']=function(_0x213a31,_0x5a820a){if('object'!=typeof _0x213a31||null===_0x213a31)return'object\x20expected';if(void 0x0===_0x5a820a&&(_0x5a820a=0x0),_0x5a820a>$util['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x213a31['id']&&Object['hasOwnProperty']['call'](_0x213a31,'id')&&!$util['isString'](_0x213a31['id']))return'id:\x20string\x20expected';if(null!=_0x213a31['bundleVersion']&&Object['hasOwnProperty']['call'](_0x213a31,'bundleVersion')&&!$util['isString'](_0x213a31['bundleVersion']))return'bundleVersion:\x20string\x20expected';if(null!=_0x213a31['buffers']&&Object['hasOwnProperty']['call'](_0x213a31,'buffers')){if(!Array['isArray'](_0x213a31['buffers']))return'buffers:\x20array\x20expected';for(var _0x280a8f=0x0;_0x280a8f<_0x213a31['buffers']['length'];++_0x280a8f)if(!(_0x213a31['buffers'][_0x280a8f]&&'number'==typeof _0x213a31['buffers'][_0x280a8f]['length']||$util['isString'](_0x213a31['buffers'][_0x280a8f])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x213a31['types']&&Object['hasOwnProperty']['call'](_0x213a31,'types')){if(!Array['isArray'](_0x213a31['types']))return'types:\x20array\x20expected';for(_0x280a8f=0x0;_0x280a8f<_0x213a31['types']['length'];++_0x280a8f)if(!$util['isInteger'](_0x213a31['types'][_0x280a8f]))return'types:\x20integer[]\x20expected';}return null!=_0x213a31['lastOperationId']&&Object['hasOwnProperty']['call'](_0x213a31,'lastOperationId')&&!$util['isString'](_0x213a31['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},CollaborativeEditingConnectMessage['fromObject']=function(object,_0x1d8b3b){if(object instanceof $root['CollaborativeEditingConnectMessage'])return object;if(!$util['isObject'](object))throw TypeError('.CollaborativeEditingConnectMessage:\x20object\x20expected');if(void 0x0===_0x1d8b3b&&(_0x1d8b3b=0x0),_0x1d8b3b>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x417666=new $root['CollaborativeEditingConnectMessage']();if(null!=object['id']&&(_0x417666['id']=String(object['id'])),null!=object['bundleVersion']&&(_0x417666['bundleVersion']=String(object['bundleVersion'])),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingConnectMessage.buffers:\x20array\x20expected');_0x417666['buffers']=[];for(var _0x89389=0x0;_0x89389<object['buffers']['length'];++_0x89389)'string'==typeof object['buffers'][_0x89389]?$util['base64']['decode'](object['buffers'][_0x89389],_0x417666['buffers'][_0x89389]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x89389])),0x0):object['buffers'][_0x89389]['length']>=0x0&&(_0x417666['buffers'][_0x89389]=object['buffers'][_0x89389]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingConnectMessage.types:\x20array\x20expected');_0x417666['types']=[];for(_0x89389=0x0;_0x89389<object['types']['length'];++_0x89389)_0x417666['types'][_0x89389]=object['types'][_0x89389]>>>0x0;}return null!=object['lastOperationId']&&(_0x417666['lastOperationId']=String(object['lastOperationId'])),_0x417666;},CollaborativeEditingConnectMessage['toObject']=function(_0x9c0e3d,options,_0x5e2fa9){if(options||(options={}),void 0x0===_0x5e2fa9&&(_0x5e2fa9=0x0),_0x5e2fa9>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[]),options['defaults']&&(object['id']='',object['bundleVersion']='',object['lastOperationId']=''),null!=_0x9c0e3d['id']&&Object['hasOwnProperty']['call'](_0x9c0e3d,'id')&&(object['id']=_0x9c0e3d['id']),null!=_0x9c0e3d['bundleVersion']&&Object['hasOwnProperty']['call'](_0x9c0e3d,'bundleVersion')&&(object['bundleVersion']=_0x9c0e3d['bundleVersion']),_0x9c0e3d['buffers']&&_0x9c0e3d['buffers']['length']){object['buffers']=[];for(var _0x2c8077=0x0;_0x2c8077<_0x9c0e3d['buffers']['length'];++_0x2c8077)object['buffers'][_0x2c8077]=options['bytes']===String?$util['base64']['encode'](_0x9c0e3d['buffers'][_0x2c8077],0x0,_0x9c0e3d['buffers'][_0x2c8077]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x9c0e3d['buffers'][_0x2c8077]):_0x9c0e3d['buffers'][_0x2c8077];}if(_0x9c0e3d['types']&&_0x9c0e3d['types']['length']){object['types']=[];for(_0x2c8077=0x0;_0x2c8077<_0x9c0e3d['types']['length'];++_0x2c8077)object['types'][_0x2c8077]=_0x9c0e3d['types'][_0x2c8077];}return null!=_0x9c0e3d['lastOperationId']&&Object['hasOwnProperty']['call'](_0x9c0e3d,'lastOperationId')&&(object['lastOperationId']=_0x9c0e3d['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 _0x3c44be=Object['keys'](properties),_0x1e946e=0x0;_0x1e946e<_0x3c44be['length'];++_0x1e946e)null!=properties[_0x3c44be[_0x1e946e]]&&'__proto__'!==_0x3c44be[_0x1e946e]&&(this[_0x3c44be[_0x1e946e]]=properties[_0x3c44be[_0x1e946e]]);}}return OperationMetadataDescriptor['prototype']['userId']='',OperationMetadataDescriptor['prototype']['type']='',OperationMetadataDescriptor['prototype']['createdAt']='',OperationMetadataDescriptor['create']=function(properties){return new OperationMetadataDescriptor(properties);},OperationMetadataDescriptor['encode']=function(_0x5b3ab5,writer,_0x255d7b){if(writer||(writer=$Writer['create']()),void 0x0===_0x255d7b&&(_0x255d7b=0x0),_0x255d7b>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x5b3ab5['userId']&&Object['hasOwnProperty']['call'](_0x5b3ab5,'userId')&&writer['uint32'](0xa)['string'](_0x5b3ab5['userId']),null!=_0x5b3ab5['type']&&Object['hasOwnProperty']['call'](_0x5b3ab5,'type')&&writer['uint32'](0x12)['string'](_0x5b3ab5['type']),null!=_0x5b3ab5['createdAt']&&Object['hasOwnProperty']['call'](_0x5b3ab5,'createdAt')&&writer['uint32'](0x1a)['string'](_0x5b3ab5['createdAt']),writer;},OperationMetadataDescriptor['encodeDelimited']=function(_0x1e20f9,writer){return this['encode'](_0x1e20f9,writer)['ldelim']();},OperationMetadataDescriptor['decode']=function(_0x10634c,length,_0x2da2bd,_0x5ba54d){if(_0x10634c instanceof _0x470ccf||(_0x10634c=_0x470ccf['create'](_0x10634c)),void 0x0===_0x5ba54d&&(_0x5ba54d=0x0),_0x5ba54d>_0x470ccf['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5e87ec=void 0x0===length?_0x10634c['len']:_0x10634c['pos']+length,_0x22e9fe=new $root['OperationMetadataDescriptor']();_0x10634c['pos']<_0x5e87ec;){var tag=_0x10634c['uint32']();if(tag===_0x2da2bd)break;switch(tag>>>0x3){case 0x1:_0x22e9fe['userId']=_0x10634c['string']();break;case 0x2:_0x22e9fe['type']=_0x10634c['string']();break;case 0x3:_0x22e9fe['createdAt']=_0x10634c['string']();break;default:_0x10634c['skipType'](0x7&tag,_0x5ba54d);}}return _0x22e9fe;},OperationMetadataDescriptor['decodeDelimited']=function(_0xae39ef){return _0xae39ef instanceof _0x470ccf||(_0xae39ef=new _0x470ccf(_0xae39ef)),this['decode'](_0xae39ef,_0xae39ef['uint32']());},OperationMetadataDescriptor['verify']=function(_0x21c6eb,_0x476b1f){return'object'!=typeof _0x21c6eb||null===_0x21c6eb?'object\x20expected':(void 0x0===_0x476b1f&&(_0x476b1f=0x0),_0x476b1f>$util['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x21c6eb['userId']&&Object['hasOwnProperty']['call'](_0x21c6eb,'userId')&&!$util['isString'](_0x21c6eb['userId'])?'userId:\x20string\x20expected':null!=_0x21c6eb['type']&&Object['hasOwnProperty']['call'](_0x21c6eb,'type')&&!$util['isString'](_0x21c6eb['type'])?'type:\x20string\x20expected':null!=_0x21c6eb['createdAt']&&Object['hasOwnProperty']['call'](_0x21c6eb,'createdAt')&&!$util['isString'](_0x21c6eb['createdAt'])?'createdAt:\x20string\x20expected':null);},OperationMetadataDescriptor['fromObject']=function(object,_0x13854a){if(object instanceof $root['OperationMetadataDescriptor'])return object;if(!$util['isObject'](object))throw TypeError('.OperationMetadataDescriptor:\x20object\x20expected');if(void 0x0===_0x13854a&&(_0x13854a=0x0),_0x13854a>$util['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x99c18c=new $root['OperationMetadataDescriptor']();return null!=object['userId']&&(_0x99c18c['userId']=String(object['userId'])),null!=object['type']&&(_0x99c18c['type']=String(object['type'])),null!=object['createdAt']&&(_0x99c18c['createdAt']=String(object['createdAt'])),_0x99c18c;},OperationMetadataDescriptor['toObject']=function(_0x21098a,options,_0x42ef43){if(options||(options={}),void 0x0===_0x42ef43&&(_0x42ef43=0x0),_0x42ef43>$util['recursionLimit'])throw Error('max\x20depth\x20exceeded');var object={};return options['defaults']&&(object['userId']='',object['type']='',object['createdAt']=''),null!=_0x21098a['userId']&&Object['hasOwnProperty']['call'](_0x21098a,'userId')&&(object['userId']=_0x21098a['userId']),null!=_0x21098a['type']&&Object['hasOwnProperty']['call'](_0x21098a,'type')&&(object['type']=_0x21098a['type']),null!=_0x21098a['createdAt']&&Object['hasOwnProperty']['call'](_0x21098a,'createdAt')&&(object['createdAt']=_0x21098a['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'](_0x26b60f,_0x5028d6){const data=_getType(_0x5028d6)['decode']('undefined'==typeof window?_0x26b60f:new Uint8Array(_0x26b60f));return _0x5028d6['fromJSON']({...data});}static['encode'](_0x3a92b5){const protobufMessage=_getType(_0x3a92b5['constructor']),data=_0x3a92b5['toJSON'](),_0x2a3db2=protobufMessage['verify'](data);if(_0x2a3db2)throw Error(_0x2a3db2);return protobufMessage['encode'](protobufMessage['create'](data))['finish']();}}function _getType(_0x15688f){return messages[_0x15688f['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(_0x17d480){super(),this['ids']=_0x17d480;}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(_0xbc13e4){super(),this['users']=_0xbc13e4;}toJSON(){return{'users':this['users']['map'](_userToJson)};}static['fromJSON'](data){return new GetManyUsersResponse(data['users']['map'](_userFromJson));}}function _userToJson(_0x70bdf0){return{'attributes':Object['keys'](_0x70bdf0)['map'](_0x5d5053=>({'key':_0x5d5053,'value':JSON['stringify'](_0x70bdf0[_0x5d5053])}))};}function _userFromJson(data){return data['attributes']['reduce']((result,_0x7f7950)=>(result[_0x7f7950['key']]=_0x7f7950['value']?JSON['parse'](_0x7f7950['value']):null,result),{});}class User{static ['_SERVICE']=0x2;constructor(attributes={}){this['_attributes']=new Map();for(const _0x44073b of Object['keys'](attributes))'id'!==_0x44073b?(this['_attributes']['set'](_0x44073b,attributes[_0x44073b]),Object['defineProperty'](this,_0x44073b,{'enumerable':!0x0,'configurable':!0x1,'get':()=>this['_attributes']['get'](_0x44073b)})):this['id']=attributes['id'];}static fromData(data){return new User(data);}static async get(wsGateway,_0xa8f9d2){const _0x50cec0=new GetUserMessage(_0xa8f9d2);try{const _0x3a120e=await wsGateway['_sendRequest'](User['_SERVICE'],GetUserMessage['TYPE'],MessagesCompressor['encode'](_0x50cec0)),getUserResponse=MessagesCompressor['decode'](_0x3a120e,GetUserResponse);return new User(getUserResponse['attributes']);}catch{return new User({'id':_0xa8f9d2});}}static async getMany(wsGateway,_0x32e639){const _0x235f7c=new GetManyUsersMessage(_0x32e639);try{const _0x1a95a9=await wsGateway['_sendRequest'](User['_SERVICE'],GetManyUsersMessage['TYPE'],MessagesCompressor['encode'](_0x235f7c));return MessagesCompressor['decode'](_0x1a95a9,GetManyUsersResponse)['users']['map'](_0x2418d0=>new User(_0x2418d0));}catch{return _0x32e639['map'](_0x18dfc5=>new User({'id':_0x18dfc5}));}}}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(_0x133323,_wsGateway,_socket){super(),this['_channelName']=_0x133323,this['_wsGateway']=_wsGateway,this['_socket']=_socket,this['_subscribeToChannel']();}['remove'](){this['_socket']['off'](this['_channelName']);}getEventName(eventName,_0x19f317=!0x1){let fullEventName='';return _0x19f317&&(fullEventName+='all:'),fullEventName+='event',eventName&&(fullEventName+=':'+eventName),fullEventName;}['_subscribeToChannel'](){this['_socket']['on'](this['_channelName'],_0x3166f2=>{const _0x4a990c=MessagesCompressor['decode'](_0x3166f2,ChannelMessage);this['fire'](this['getEventName'](_0x4a990c['type'],!0x0),_0x4a990c['data'],_0x4a990c['socketId']),_0x4a990c['socketId']!==this['_wsGateway']['socketId']&&this['fire'](this['getEventName'](_0x4a990c['type']),_0x4a990c['data'],_0x4a990c['socketId']);});}}class CKEditorCloudServicesError extends Error{context;['code'];data;constructor(_0x51094e,context,_0x7ef634=null,data={}){super('cloud-services-internal-error:\x20'+_0x51094e),this['context']=context,this['code']=_0x7ef634,this['data']=data,this['name']='CKEditorError';}static['fromPublicError'](_0x5bba56){return new CKEditorCloudServicesError(function(_0x1131f0){let _0x368ea7='cloud-services-error:\x20'+_0x1131f0['message'];return _0x1131f0['data']&&(_0x368ea7+='\x0aError\x20data:\x20'+JSON['stringify'](_0x1131f0['data'])),_0x1131f0['explanation']&&(_0x368ea7+='\x0aExplanation:\x20'+_0x1131f0['explanation']),_0x1131f0['action']&&(_0x368ea7+='\x0aAction:\x20'+_0x1131f0['action']),_0x1131f0['traceId']&&(_0x368ea7+='\x0aTraceId:\x20'+_0x1131f0['traceId']),_0x1131f0['code']&&(_0x368ea7+='\x0aCode:\x20'+_0x1131f0['code']),_0x368ea7;}(_0x5bba56),_0x5bba56);}}class CKEditorCloudServicesServerError extends Error{['code'];traceId;data;constructor(_0x557336,_0x560d01){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x557336,this['code']=_0x560d01['code'],this['traceId']=_0x560d01['traceId'],this['data']=_0x560d01['data'];}static['fromPublicError'](_0x923e2){return new CKEditorCloudServicesServerError(function(_0x1fa83e){let _0x39d88c='cloud-services-server-error:\x20'+_0x1fa83e['message'];return _0x1fa83e['explanation']&&(_0x39d88c+='\x0aExplanation:\x20'+_0x1fa83e['explanation']),_0x1fa83e['action']&&(_0x39d88c+='\x0aAction:\x20'+_0x1fa83e['action']),_0x1fa83e['traceId']&&(_0x39d88c+='\x0aTraceId:\x20'+_0x1fa83e['traceId']),_0x1fa83e['code']&&(_0x39d88c+='\x0aCode:\x20'+_0x1fa83e['code']),_0x39d88c;}(_0x923e2),_0x923e2);}}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(_0x211a3a,_0x3ee91f=[],except=[]){super(),this['flags']=_0x211a3a,this['rooms']=_0x3ee91f,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 _0x27af8d=0x0;for(let _0x39359=0x0;_0x39359<types['length'];_0x39359++){_0x27af8d+=types[_0x39359]*Math['pow'](0xa,types['length']-_0x39359-0x1);}return _0x27af8d;}static getType(_0xbddcf9){if(ParserUtils['isBuffer'](_0xbddcf9))return MessageDataTypes_BUFFER;const type=typeof _0xbddcf9;return'string'===type?MessageDataTypes_STRING:'number'===type?MessageDataTypes_NUMBER:MessageDataTypes_OBJECT;}static['isBuffer'](_0x4416db){return IS_NODE&&Buffer['isBuffer'](_0x4416db)||_0x4416db instanceof ArrayBuffer||_0x4416db instanceof Uint8Array||this['_isBufferView'](_0x4416db);}static['_isBufferView'](_0x52bc1e){return'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x52bc1e):_0x52bc1e['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
- ((()=>({'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 */
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 */
31
- ((()=>({'fields':{'data':{'type':'string','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 StringBytesPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new StringBytesPacketDataMessage(data,data1);}}class BytesBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
31
+ ((()=>({'fields':{'data':{'type':'string','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 StringBytesPacketDataMessage(data['data'],data['data1']);}static create(data,data1){return new StringBytesPacketDataMessage(data,data1);}}class BytesBytesPacketDataMessage extends PackageDataMessage{data;data1;static ['TYPE']=/* #__PURE__ -- @preserve */
32
32
  ((()=>ParserUtils['getPacketType'](MessageDataTypes_BUFFER,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='BytesBytesPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
33
- ((()=>({'fields':{'data':{'type':'bytes','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 BytesBytesPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new BytesBytesPacketDataMessage(data,data1);}}class StringObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
33
+ ((()=>({'fields':{'data':{'type':'bytes','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 BytesBytesPacketDataMessage(data['data'],data['data1']);}static create(data,data1){return new BytesBytesPacketDataMessage(data,data1);}}class StringObjectPacketDataMessage extends PackageDataMessage{data;data1;static ['TYPE']=/* #__PURE__ -- @preserve */
34
34
  ((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_OBJECT))());static ['DESCRIPTOR_NAME']='StringObjectPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
35
- ((()=>({'fields':{'data':{'type':'string','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']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](data){return new StringObjectPacketDataMessage(data['data'],data['data1']&&JSON['parse'](data['data1']));}static['create'](data,data1){return new StringObjectPacketDataMessage(data,data1);}}class NumberObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
35
+ ((()=>({'fields':{'data':{'type':'string','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']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](data){return new StringObjectPacketDataMessage(data['data'],data['data1']&&JSON['parse'](data['data1']));}static create(data,data1){return new StringObjectPacketDataMessage(data,data1);}}class NumberObjectPacketDataMessage extends PackageDataMessage{data;data1;static ['TYPE']=/* #__PURE__ -- @preserve */
36
36
  ((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_OBJECT))());static ['DESCRIPTOR_NAME']='NumberObjectPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
37
- ((()=>({'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']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](data){return new NumberObjectPacketDataMessage(data['data'],data['data1']&&JSON['parse'](data['data1']));}static['create'](data,data1){return new NumberObjectPacketDataMessage(data,data1);}}class ObjectObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
37
+ ((()=>({'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']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](data){return new NumberObjectPacketDataMessage(data['data'],data['data1']&&JSON['parse'](data['data1']));}static create(data,data1){return new NumberObjectPacketDataMessage(data,data1);}}class ObjectObjectPacketDataMessage extends PackageDataMessage{data;data1;static ['TYPE']=/* #__PURE__ -- @preserve */
38
38
  ((()=>ParserUtils['getPacketType'](MessageDataTypes_OBJECT,MessageDataTypes_OBJECT))());static ['DESCRIPTOR_NAME']='ObjectObjectPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
39
- ((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](data){return new ObjectObjectPacketDataMessage(data['data']&&JSON['parse'](data['data']),data['data1']&&JSON['parse'](data['data1']));}static['create'](data,data1){return new ObjectObjectPacketDataMessage(data,data1);}}class ObjectBufferPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
39
+ ((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}toJSON(){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](data){return new ObjectObjectPacketDataMessage(data['data']&&JSON['parse'](data['data']),data['data1']&&JSON['parse'](data['data1']));}static create(data,data1){return new ObjectObjectPacketDataMessage(data,data1);}}class ObjectBufferPacketDataMessage extends PackageDataMessage{data;data1;static ['TYPE']=/* #__PURE__ -- @preserve */
40
40
  ((()=>ParserUtils['getPacketType'](MessageDataTypes_OBJECT,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='ObjectBufferPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
41
- ((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']};}static['fromJSON'](data){return new ObjectBufferPacketDataMessage(data['data']&&JSON['parse'](data['data']),data['data1']);}static['create'](data,data1){return new ObjectBufferPacketDataMessage(data,data1);}}class StringStringPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
41
+ ((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}toJSON(){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']};}static['fromJSON'](data){return new ObjectBufferPacketDataMessage(data['data']&&JSON['parse'](data['data']),data['data1']);}static create(data,data1){return new ObjectBufferPacketDataMessage(data,data1);}}class StringStringPacketDataMessage extends PackageDataMessage{data;data1;static ['TYPE']=/* #__PURE__ -- @preserve */
42
42
  ((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_STRING))());static ['DESCRIPTOR_NAME']='StringStringPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
43
- ((()=>({'fields':{'data':{'type':'string','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 StringStringPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new StringStringPacketDataMessage(data,data1);}}class StringNumberPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
43
+ ((()=>({'fields':{'data':{'type':'string','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 StringStringPacketDataMessage(data['data'],data['data1']);}static create(data,data1){return new StringStringPacketDataMessage(data,data1);}}class StringNumberPacketDataMessage extends PackageDataMessage{data;data1;static ['TYPE']=/* #__PURE__ -- @preserve */
44
44
  ((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_NUMBER))());static ['DESCRIPTOR_NAME']='StringNumberPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
45
- ((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'uint32','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 StringNumberPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new StringNumberPacketDataMessage(data,data1);}}class NumberNumberPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
46
- ((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_NUMBER))());static ['DESCRIPTOR_NAME']='NumberNumberPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'uint32','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 NumberNumberPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new NumberNumberPacketDataMessage(data,data1);}}class NumberStringPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
45
+ ((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'uint32','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 StringNumberPacketDataMessage(data['data'],data['data1']);}static create(data,data1){return new StringNumberPacketDataMessage(data,data1);}}class NumberNumberPacketDataMessage extends PackageDataMessage{data;data1;static ['TYPE']=/* #__PURE__ -- @preserve */
46
+ ((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_NUMBER))());static ['DESCRIPTOR_NAME']='NumberNumberPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'uint32','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 NumberNumberPacketDataMessage(data['data'],data['data1']);}static create(data,data1){return new NumberNumberPacketDataMessage(data,data1);}}class NumberStringPacketDataMessage extends PackageDataMessage{data;data1;static ['TYPE']=/* #__PURE__ -- @preserve */
47
47
  ((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_STRING))());static ['DESCRIPTOR_NAME']='NumberStringPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
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
- ((()=>[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,_0x3c89d2,_0x44fe18='/',options){super(),this['type']=type,this['data']=data,this['id']=_0x3c89d2,this['nsp']=_0x44fe18,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,_0x7215d6,_0x13f7d2='/',options={}){if(data['length']>0x2)throw new Error('PacketParser\x20supports\x20only\x202\x20elements\x20in\x20data');const packet={'type':type,'data':data,'id':_0x7215d6,'nsp':_0x13f7d2};return MessagesCompressor['encode'](PacketMessage['create'](packet,options));}['decode'](_0x2e8a91){const packetMessage=MessagesCompressor['decode'](_0x2e8a91,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 _0x3bc9b1{['_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(_0x5178d7){console['error']('Can\x20not\x20properly\x20serialize\x20or\x20deserialize\x20messages.\x20Check\x20the\x20original\x20error.',{'originalError':{'message':_0x5178d7['message']}});}return super['encode'](packet);}}class Decoder extends _0xd2d2ee{['_packetParser'];constructor(packetParser){super(),this['_packetParser']=packetParser??new PacketParser();}['add'](_0x2d174a){if(!ParserUtils['isBuffer'](_0x2d174a))return super['add'](_0x2d174a);let packet;try{packet=this['_packetParser']['decode'](_0x2d174a)['packet'];}catch{return super['add'](_0x2d174a);}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'](_0x190f11){this['_deferredPromise']['resolve'](_0x190f11);}['error'](_0x7ee4cf){this['_deferredPromise']['reject'](_0x7ee4cf);}}class WebSocketGatewayRequestsManager{['_context'];['_requests']=new Set();constructor(_context){this['_context']=_context;}async['send'](sendFunction,timeoutMs=0xafc8){const _0xc79367=this['_createRequest'](timeoutMs);try{return sendFunction(_0xc79367),await _0xc79367['promise'];}finally{this['_finishRequest'](_0xc79367);}}['errorAll'](_0xeae157){for(const _0xbfa46 of this['_requests'])_0xbfa46['error'](_0xeae157);}['waitForAllRequests'](time=0xafc8){return this['_waitForRequests'](time);}['_createRequest'](timeoutMs){const _0x2eb353=new WebSocketRequest(this['_context'],timeoutMs);return this['_requests']['add'](_0x2eb353),_0x2eb353;}['_finishRequest'](_0x2dcc0d){this['_requests']['delete'](_0x2dcc0d),clearTimeout(_0x2dcc0d['timeout']);}async['_waitForRequests'](time=0x1388,attempt=0x0){return!this['_requests']['size']||attempt>=time/0x1f4?Promise['resolve']():(await new Promise(_0x52f31d=>{setTimeout(_0x52f31d,0x1f4);}),this['_waitForRequests'](time,attempt++));}}function _deferPromise(){let _0x5e8fe8,reject;const _0x510982=new Promise((_0x4555a8,promiseReject)=>{_0x5e8fe8=_0x4555a8,reject=promiseReject;});return{'resolve':_0x5e8fe8,'reject':reject,'promise':_0x510982};}const WEB_SOCKET_GATEWAY_STATES={'DISCONNECTED':'disconnected','CONNECTING':'connecting','CONNECTED':'connected'};class WebSocketGateway extends/* #__PURE__ -- @preserve */
53
- ObservableMixin(){['_requestsManager'];['_url'];['_socket'];['_socketAuth'];['_channels'];['_connectionAttempt']=0x0;['_token'];['_options'];['_connectionProvider'];['_userFactory'];static ['STATE_DISCONNECTED']=/* #__PURE__ -- @preserve */
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
+ ((()=>[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,_0x35c398,_0x412921='/',options){super(),this['type']=type,this['data']=data,this['id']=_0x35c398,this['nsp']=_0x412921,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,_0xc90baf,_0x3f18b8='/',options={}){if(data['length']>0x2)throw new Error('PacketParser\x20supports\x20only\x202\x20elements\x20in\x20data');const packet={'type':type,'data':data,'id':_0xc90baf,'nsp':_0x3f18b8};return MessagesCompressor['encode'](PacketMessage['create'](packet,options));}['decode'](_0x1ac462){const packetMessage=MessagesCompressor['decode'](_0x1ac462,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 _0x33e544{_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(_0x4dd8b8){console['error']('Can\x20not\x20properly\x20serialize\x20or\x20deserialize\x20messages.\x20Check\x20the\x20original\x20error.',{'originalError':{'message':_0x4dd8b8['message']}});}return super['encode'](packet);}}class Decoder extends _0x5eefe0{_packetParser;constructor(packetParser){super(),this['_packetParser']=packetParser??new PacketParser();}['add'](_0x5d5671){if(!ParserUtils['isBuffer'](_0x5d5671))return super['add'](_0x5d5671);let packet;try{packet=this['_packetParser']['decode'](_0x5d5671)['packet'];}catch{return super['add'](_0x5d5671);}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'](_0x3c228a){this['_deferredPromise']['resolve'](_0x3c228a);}['error'](_0x4c937b){this['_deferredPromise']['reject'](_0x4c937b);}}class WebSocketGatewayRequestsManager{_context;_requests=new Set();constructor(_context){this['_context']=_context;}async['send'](sendFunction,timeoutMs=0xafc8){const _0x4f9e74=this['_createRequest'](timeoutMs);try{return sendFunction(_0x4f9e74),await _0x4f9e74['promise'];}finally{this['_finishRequest'](_0x4f9e74);}}['errorAll'](_0x438639){for(const _0x2b2b89 of this['_requests'])_0x2b2b89['error'](_0x438639);}waitForAllRequests(time=0xafc8){return this['_waitForRequests'](time);}_createRequest(timeoutMs){const _0x2dc452=new WebSocketRequest(this['_context'],timeoutMs);return this['_requests']['add'](_0x2dc452),_0x2dc452;}_finishRequest(_0x5d7429){this['_requests']['delete'](_0x5d7429),clearTimeout(_0x5d7429['timeout']);}async _waitForRequests(time=0x1388,attempt=0x0){return!this['_requests']['size']||attempt>=time/0x1f4?Promise['resolve']():(await new Promise(_0x249479=>{setTimeout(_0x249479,0x1f4);}),this['_waitForRequests'](time,attempt++));}}function _deferPromise(){let _0x50111f,reject;const _0x35f941=new Promise((_0x727853,promiseReject)=>{_0x50111f=_0x727853,reject=promiseReject;});return{'resolve':_0x50111f,'reject':reject,'promise':_0x35f941};}const WEB_SOCKET_GATEWAY_STATES={'DISCONNECTED':'disconnected','CONNECTING':'connecting','CONNECTED':'connected'};class WebSocketGateway extends/* #__PURE__ -- @preserve */
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(_0x4cc187,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(),!_0x4cc187)throw new TypeError('Api\x20address\x20must\x20be\x20provided.');if(!this['_token'])throw new TypeError('Token\x20must\x20be\x20provided.');this['_options']['requestTimeout']??=0x4e20,this['_url']=_0x4082fa(_0x4cc187['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,_0x37f7f3,_0x1ef9a3)=>{if(this['_debugEvent']('ws-gw:change:state',_0x1ef9a3),_0x1ef9a3!==WebSocketGateway['STATE_CONNECTED']){if(_0x1ef9a3===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{}},{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['on']('error',(event,_0x48f5f5)=>{this['_options']['onError']?this['_options']['onError'](_0x48f5f5):console['error'](_0x48f5f5);});}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,_0x4e1554='local.cs.dev:443/ws-v2',options={},_0x19a89c=io,userFactory=User['get']){const webSocketGateway=new this(_0x4e1554,token,options,_0x19a89c,userFactory);return await webSocketGateway['_connect'](),webSocketGateway;}['_sendRequest'](_0x43e869,method,_0x1fb8f3){if(!_0x43e869)throw new CKEditorCloudServicesError('`serviceName`\x20must\x20be\x20provided.',this);if(this['state']!==WebSocketGateway['STATE_CONNECTED'])throw new CKEditorCloudServicesError('Not\x20connected.',this);if(!this['_socketAuth']?.['isAuthenticated'])throw new CKEditorCloudServicesError('Not\x20authenticated.',this);const _0x352f2e=new ArrayBuffer(_0x1fb8f3['length']+0x2),_0x3a9d3e=new Uint8Array(_0x352f2e);return _0x3a9d3e[0x0]=_0x43e869,_0x3a9d3e[0x1]=parseInt(method),_0x3a9d3e['set'](_0x1fb8f3,0x2),this['_emit'](0x1,_0x3a9d3e);}['_getChannel'](_0x3a592f,_0x3ac3d0){const _0x3d6e60=''+_0x3a592f+_0x3ac3d0;return!this['_channels']['has'](_0x3d6e60)&&this['_socket']&&this['_channels']['set'](_0x3d6e60,new Channel(_0x3d6e60,this,this['_socket'])),this['_channels']['get'](_0x3d6e60);}['_connect'](){return new Promise((_0x2b044c,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'](),_0x2b044c();}catch(_0x407651){reject(_0x407651);}}),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']),_0x207005=(this['_url']['protocol']||'https:')+'//'+this['_url']['hostname']+':'+port,pathPrefix=this['_url']['pathname']['match'](/^\/.*\/ws/)?this['_url']['pathname']['split']('/ws')[0x0]:'',socket=this['_connectionProvider'](_0x207005,{'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':'54.2.2'},'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',_0xd7b8a0=>{this['_debugEvent']('connect_error',_0xd7b8a0);}),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,_0x505072){const socket=this['_socket'];return this['_requestsManager']['send'](_0x2088f7=>{socket['emit'](eventName,_0x505072,(_0x2b4e44,_0x4433d7)=>{if(_0x2b4e44)return _0x2088f7['error'](CKEditorCloudServicesServerError['fromPublicError'](_0x2b4e44));_0x2088f7['response'](_0x4433d7);});},this['_options']['requestTimeout']);}['_addAuthData'](environmentId,_0x3ad9ea){this['_socketAuth']={'environmentId':environmentId,'userId':_0x3ad9ea,'isAuthenticated':!0x0};}['_removeAuthData'](){this['_socketAuth']=void 0x0;}async['_onConnect'](){await this['_authenticate'](this['_token']['value']),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'];const _0x4677a0=async(event,_0x571f26,_0x147710)=>{this['_debugEvent']('token:value:change');try{await this['_authenticate'](_0x147710);}catch{}};this['_token']['on']('change:value',_0x4677a0),this['_socket']['io']['off']('reconnect_error'),this['on']('disconnect',()=>{this['_token']['off']('change:value',_0x4677a0);});}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 _0x2bfd5d of this['_channels']['values']())_0x2bfd5d['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'](_0x216525){this['_connectionAttempt']>=0x2&&(this['disconnect'](),_0x216525(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:_0x215ff8}){this['_removeAuthData'](),this['fire']('error',CKEditorCloudServicesServerError['fromPublicError'](_0x215ff8));}async['_authenticate'](token){try{this['_debugEvent']('authenticate:start');const _0x5e62db=await this['_emit'](0x2,{'token':token});this['_debugEvent']('authenticate:success','envId:\x20'+_0x5e62db['environmentId']+',\x20userId:\x20'+_0x5e62db['userId']),this['_addAuthData'](_0x5e62db['environmentId'],_0x5e62db['userId']);}catch(_0x4b5a6e){throw this['_debugEvent']('authenticate:error',_0x4b5a6e['message']),this['_removeAuthData'](),_0x4b5a6e;}}['_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(_0xbe4404){super(),this['bundleVersion']=_0xbe4404;}['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(_0x50dc3f){super(),this['isUploaded']=_0x50dc3f;}['toJSON'](){return{'isUploaded':this['isUploaded']};}static['fromJSON'](_0xbeda26){return new IsEditorBundleUploadedResponse(_0xbeda26['isUploaded']);}}class EditorService extends/* #__PURE__ -- @preserve */
58
- EmitterMixin(){static ['_SERVICE']=0xd;static async['isBundleUploaded'](wsGateway,_0x5a6199){const _0x3c343e=new IsEditorBundleUploadedMessage(_0x5a6199);if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);const _0x3c50fa=await wsGateway['_sendRequest'](EditorService['_SERVICE'],IsEditorBundleUploadedMessage['TYPE'],MessagesCompressor['encode'](_0x3c343e));return MessagesCompressor['decode'](_0x3c50fa,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,_0x497e24){super(),this['documentId']=documentId,this['revisionId']=_0x497e24;}['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'](_0x56e7c9){return{'revisionId':_0x56e7c9['revisionId'],'name':_0x56e7c9['name'],'creatorId':_0x56e7c9['creatorId'],'authorsIds':_0x56e7c9['authorsIds']?JSON['stringify'](_0x56e7c9['authorsIds']):void 0x0,'diffData':_0x56e7c9['diffData'],'createdAt':_0x56e7c9['createdAt']?.['toISOString'](),'attributes':_0x56e7c9['attributes']?JSON['stringify'](_0x56e7c9['attributes']):void 0x0,'toVersion':_0x56e7c9['toVersion'],'fromVersion':_0x56e7c9['fromVersion'],'isEmptyCurrent':_0x56e7c9['isEmptyCurrent']};}static['fromJSON'](_0x5e962d){return{'revisionId':(_0x5e962d={..._0x5e962d})['revisionId'],'name':_0x5e962d['name'],'creatorId':_0x5e962d['creatorId'],'authorsIds':_0x5e962d['authorsIds']?JSON['parse'](_0x5e962d['authorsIds']):void 0x0,'diffData':_0x5e962d['diffData'],'createdAt':_0x5e962d['createdAt']?new Date(_0x5e962d['createdAt']):void 0x0,'attributes':_0x5e962d['attributes']?JSON['parse'](_0x5e962d['attributes']):void 0x0,'toVersion':_0x5e962d['toVersion'],'fromVersion':_0x5e962d['fromVersion'],'isEmptyCurrent':_0x5e962d['isEmptyCurrent']};}static['toObject'](_0x37fa8d){return function(revisionObject){for(const [_0x27f645,_0x2344c1]of Object['entries'](revisionObject))void 0x0===_0x2344c1&&delete revisionObject[_0x27f645];return revisionObject;}({'id':_0x37fa8d['revisionId'],'name':_0x37fa8d['name'],'creatorId':_0x37fa8d['creatorId'],'createdAt':_0x37fa8d['createdAt'],'fromVersion':_0x37fa8d['fromVersion'],'toVersion':_0x37fa8d['toVersion'],'isEmptyCurrent':_0x37fa8d['isEmptyCurrent'],'diffData':_0x37fa8d['diffData']?JSON['parse'](_0x37fa8d['diffData']):void 0x0,'attributes':_0x37fa8d['attributes'],'authorsIds':_0x37fa8d['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(_0x1b95a7,_0x47bc0c,creatorId,authorsIds,createdAt,diffData,attributes,_0x338fc2,toVersion,isEmptyCurrent){super(),this['revisionId']=_0x1b95a7,this['name']=_0x47bc0c,this['creatorId']=creatorId,this['authorsIds']=authorsIds,this['createdAt']=createdAt,this['diffData']=diffData,this['attributes']=attributes,this['fromVersion']=_0x338fc2,this['toVersion']=toVersion,this['isEmptyCurrent']=isEmptyCurrent;}['toJSON'](){return RevisionDescriptor['toJSON'](this);}['toObject'](){return RevisionDescriptor['toObject'](this);}static['create'](_0x485c6e){return new RevisionHistoryGetRevisionResponse(_0x485c6e['revisionId'],_0x485c6e['name'],_0x485c6e['creatorId'],_0x485c6e['authorsIds'],_0x485c6e['createdAt'],_0x485c6e['diffData'],_0x485c6e['attributes'],_0x485c6e['fromVersion'],_0x485c6e['toVersion'],_0x485c6e['isEmptyCurrent']);}static['fromJSON'](_0x2eb058){return new RevisionHistoryGetRevisionResponse(_0x2eb058['revisionId'],_0x2eb058['name'],_0x2eb058['creatorId'],_0x2eb058['authorsIds']?JSON['parse'](_0x2eb058['authorsIds']):void 0x0,_0x2eb058['createdAt']?new Date(_0x2eb058['createdAt']):void 0x0,_0x2eb058['diffData'],_0x2eb058['attributes']?JSON['parse'](_0x2eb058['attributes']):void 0x0,_0x2eb058['fromVersion'],_0x2eb058['toVersion'],_0x2eb058['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,_0x26e04b){super(),this['documentId']=documentId,this['requestId']=requestId,this['revisions']=_0x26e04b;}['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'](_0x35dace){return new RevisionHistoryUpdateRevisionsMessage(_0x35dace['documentId'],_0x35dace['requestId'],_0x35dace['revisions']['map'](RevisionDescriptor['create']));}static['fromJSON'](_0x4c1b3c){return new RevisionHistoryUpdateRevisionsMessage(_0x4c1b3c['documentId'],_0x4c1b3c['requestId'],_0x4c1b3c['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'](_0xa45133){return new RevisionHistoryUpdateRevisionsResponse(_0xa45133['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(_0x33adad,requestId,_0x286e3b){super(),this['channel']=_0x33adad,this['requestId']=requestId,this['revisions']=_0x286e3b;}['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'](_0x53d460){return new RevisionHistoryConnectResponse(_0x53d460['channel'],_0x53d460['requestId'],_0x53d460['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 ChannelDisconnectedMessage extends Message{static ['TYPE']='15';static ['READABLE_TYPE_NAME']='channelDisconnected';static ['DESCRIPTOR_NAME']='ChannelDisconnectedMessage';static ['DESCRIPTOR']={'fields':{}};['toJSON'](){return{};}static['fromJSON'](){return new ChannelDisconnectedMessage();}}class ServiceNotConnectedError extends CKEditorCloudServicesError{constructor(_0x3f5e54,context){super(_0x3f5e54+'\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'](_0x2ca9ed,lastRequestId){const _0x538e2d=RevisionHistoryUpdateRevisionsMessage['create']({'documentId':this['_documentId'],'requestId':lastRequestId,'revisions':_0x2ca9ed}),_0x584e37=await this['_sendRequest'](RevisionHistoryUpdateRevisionsMessage['TYPE'],_0x538e2d),{requestId:requestId}=MessagesCompressor['decode'](_0x584e37,RevisionHistoryUpdateRevisionsResponse);return requestId;}async['getRevision'](_0x284ebf){const _0xa5f6f=new RevisionHistoryGetRevisionMessage(this['_documentId'],_0x284ebf),_0x6fd425=await this['_sendRequest'](RevisionHistoryGetRevisionMessage['TYPE'],_0xa5f6f);return MessagesCompressor['decode'](_0x6fd425,RevisionHistoryGetRevisionResponse)['toObject']();}async['_connect'](wsGateway,_0x4f1975){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 _0xedb9a0=await wsGateway['_sendRequest'](0xc,_0x4f1975['constructor']['TYPE'],MessagesCompressor['encode'](_0x4f1975)),{channel:_0x89fa41,requestId:requestId,revisions:_0x40639a}=MessagesCompressor['decode'](_0xedb9a0,RevisionHistoryConnectResponse)['toObject']();return this['listenTo'](wsGateway,'change:state',(_0x18aba8,_0xd4797b,state)=>this['_onWsGatewayStateChange'](state),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,_0x89fa41),this['_isConnected']=!0x0,this['fire']('connected'),{'revisions':_0x40639a,'requestId':requestId};}['_connectToChannel'](wsGateway,_0x4cc57e){this['_channel']=wsGateway['_getChannel'](RevisionHistoryService['_SERVICE'],_0x4cc57e),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](RevisionHistoryUpdateRevisionsMessage['TYPE']),(event,data)=>{const {documentId:documentId,requestId:requestId,revisions:_0x36b82f}=MessagesCompressor['decode'](data,RevisionHistoryUpdateRevisionsMessage)['toObject']();this['fire']('revisionsUpdated',{'documentId':documentId,'requestId':requestId,'revisionsData':_0x36b82f});}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ChannelDisconnectedMessage['TYPE']),()=>{this['disconnect']();}));}['_onWsGatewayStateChange'](_0x39bb84){_0x39bb84===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](method,_0x1ea0dd){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Revision\x20History',this);return this['_wsGateway']['_sendRequest'](0xc,method,MessagesCompressor['encode'](_0x1ea0dd));}}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(_0x46889e,documentId,type,data={},originalSuggestionId=null,attributes=null){super(),this['id']=_0x46889e,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(_0x115f17,authorId,type,createdAt,hasComments,state,data={},attributes=null){super(),this['id']=_0x115f17,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(_0x393c2f,documentId){super(),this['id']=_0x393c2f,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(_0x1e309e,authorId,type,createdAt,hasComments,state,data={},attributes=null){super(),this['id']=_0x1e309e,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(_0x2731eb,documentId,hasComments,isHasCommentsModified,state,attributes=null){super(),this['id']=_0x2731eb,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(_0x3f753d,_suggestions,_suggestionsV2){super(),this['channel']=_0x3f753d,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(_0x26cb7f,documentId,state){super(),this['ids']=_0x26cb7f,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 _0xa07c5e=await wsGateway['_sendRequest'](0xa,ConnectMessage$1['TYPE'],MessagesCompressor['encode'](connectMessage)),connectResponse=MessagesCompressor['decode'](_0xa07c5e,ConnectResponse$1);return this['listenTo'](wsGateway,'change:state',(_0x5bded1,_0x46dfcf,_0x4a4753)=>this['_onWsGatewayStateChange'](_0x4a4753),{'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'](_0x354f9a,type,data,originalSuggestionId=null,attributes){const _0x35cbf7=new AddSuggestionMessage(_0x354f9a,this['_documentId'],type,data,originalSuggestionId,attributes),_0x582e5a=await this['_sendRequest'](AddSuggestionMessage['TYPE'],_0x35cbf7);return MessagesCompressor['decode'](_0x582e5a,AddSuggestionResponse);}async['get'](_0x404a4a,attempt=0x1){const _0x5be734=new GetSuggestionMessage(_0x404a4a,this['_documentId']);try{const _0x49d552=await this['_sendRequest'](GetSuggestionMessage['TYPE'],_0x5be734);return MessagesCompressor['decode'](_0x49d552,GetSuggestionResponse);}catch(_0xf2969a){if('CKEditorCloudServicesServerError'===_0xf2969a['name']&&'404'===_0xf2969a['code']&&attempt<0x5)return await(time=0x64*attempt,new Promise(_0x4c0a1b=>{setTimeout(_0x4c0a1b,time);})),this['get'](_0x404a4a,attempt+0x1);if('CKEditorCloudServicesServerError'===_0xf2969a['name'])throw _0xf2969a;throw CKEditorCloudServicesServerError['fromPublicError'](_0xf2969a);}var time;}async['getAll'](){const _0x5aa7c2=new GetAllSuggestionsMessage(this['_documentId']),_0x3328d6=await this['_sendRequest'](GetAllSuggestionsMessage['TYPE'],_0x5aa7c2),{suggestions:suggestions}=MessagesCompressor['decode'](_0x3328d6,GetAllSuggestionResponse);return suggestions;}async['update'](_0x52bafb,_0x344544={}){const {hasComments:hasComments,state:state,attributes:attributes}=_0x344544,isHasCommentsUpdated=void 0x0!==hasComments,_0xa06295=new UpdateSuggestionMessage(_0x52bafb,this['_documentId'],hasComments,isHasCommentsUpdated,state,attributes);await this['_sendRequest'](UpdateSuggestionMessage['TYPE'],_0xa06295);}async['batchUpdateState'](_0x4fe182){const _0x3da654=new BatchUpdateSuggestionsStateMessage(_0x4fe182['ids'],this['_documentId'],_0x4fe182['state']);await this['_sendRequest'](BatchUpdateSuggestionsStateMessage['TYPE'],_0x3da654);}['_connectToChannel'](wsGateway,_0x1de15e){this['_channel']=wsGateway['_getChannel'](TrackChangesService['_SERVICE'],_0x1de15e),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateSuggestionMessage['TYPE']),(event,data)=>{const updateSuggestionMessage=MessagesCompressor['decode'](data,UpdateSuggestionMessage);this['fire']('suggestionUpdated',updateSuggestionMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ChannelDisconnectedMessage['TYPE']),()=>{this['disconnect']();}));}['_onWsGatewayStateChange'](_0xa2349e){_0xa2349e===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](method,_0x382e43){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Track\x20Changes',this);return this['_wsGateway']['_sendRequest'](0xa,method,MessagesCompressor['encode'](_0x382e43));}}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(_0x327a58,sockets=[]){super(),this['channel']=_0x327a58,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(_0x265bc8,_0x4b3b63){super(),this['id']=_0x265bc8,this['sessionType']=_0x4b3b63;}['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(_0x22602b,_0xecd21,_0x1eadf8,_0x5b7501){super(),this['id']=_0x22602b,this['userId']=_0xecd21,this['role']=_0x1eadf8,this['permissions']=_0x5b7501;}['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(_0x3d60bf){super(),this['id']=_0x3d60bf;}['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(_0x28a8f9,_0x14db9d){super({'idProperty':'id'}),this['_id']=_0x28a8f9,this['_sessionType']=_0x14db9d;}async['connect'](wsGateway){this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x4d7948=new SessionsConnectMessage(this['_id'],this['_sessionType']);let sessionsConnectResponse;try{const _0x1e6c54=await this['_wsGateway']['_sendRequest'](0x3,SessionsConnectMessage['TYPE'],MessagesCompressor['encode'](_0x4d7948));sessionsConnectResponse=MessagesCompressor['decode'](_0x1e6c54,SessionsConnectResponse);}catch{sessionsConnectResponse=new SessionsConnectResponse(this['_id'],[]);}this['_connectToChannel'](this['_wsGateway'],sessionsConnectResponse['channel'],this['_sessionType']);const _0x16f9e8=await async function(wsGateway,_0x3cdfad){const _0x11ab24=_0x3cdfad['map'](socket=>socket['userId']),_0x544abb=_0x11ab24['length']?await User['getMany'](wsGateway,_0x11ab24):[];return _0x3cdfad['map'](socket=>{const item={'id':socket['id'],'role':socket['role'],'permissions':socket['permissions']};return item['user']=socket['userId']&&_0x544abb['find'](_0x1db832=>_0x1db832['id']===socket['userId'])||new User(),item;});}(this['_wsGateway'],sessionsConnectResponse['sockets']);for(const _0x154b81 of _0x16f9e8)super['add'](_0x154b81);this['_connected']=!0x0,this['fire']('connected'),this['listenTo'](this['_wsGateway'],'change:state',(_0x55c4e3,_0xe4a14c,_0x54287a)=>this['_onWsGatewayStateChange'](_0x54287a),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),await this['_runQueue']();}['disconnect'](_0xd85515=!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']&&_0xd85515&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['fire']('disconnected'),_0xd85515&&this['stopListening']();}}['add'](_0x580c32,_0x326d29){throw new TypeError('The\x20collection\x20is\x20read-only.');}['remove'](_0xa2a44b){throw new TypeError('The\x20collection\x20is\x20read-only.');}['_connectToChannel'](wsGateway,_0x5e4a0c,_0x35d4d3){this['_channel']=wsGateway['_getChannel'](_0x35d4d3,_0x5e4a0c),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']);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ChannelDisconnectedMessage['TYPE']),()=>{this['disconnect']();}));}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 _0xa3619c=this['_handlers']['get'](event['eventName']);_0xa3619c&&await _0xa3619c(event['data']);}this['_isRunning']=!0x1;}['_addHandler'](_0x42a751,eventType,_0xc25a5e){const eventName=_0x42a751['getEventName'](eventType,!0x0);this['listenTo'](_0x42a751,eventName,async(event,data)=>{const _0x47c25d=event['name'];this['_eventsQueue']['push']({'eventName':_0x47c25d,'data':data}),await this['_runQueue']();}),this['_handlers']['set'](eventName,_0xc25a5e);}}class Sessions{static async['getConnectedSessions'](wsGateway,_0x27e22b,_0x1b0f04){const sessionCollection=new SessionCollection(_0x27e22b,_0x1b0f04);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(_0x37580b,_0x4a5a73,types,_0x18ed6f,lastOperationId=''){super(),this['id']=_0x37580b,this['buffers']=_0x4a5a73,this['types']=types,this['bundleVersion']=_0x18ed6f,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 _0x29f553=0x0;for(const type of types)if(0x0!==type){if(!metadata[_0x29f553])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');result['push'](metadata[_0x29f553]),_0x29f553++;}else result['push'](result[result['length']-0x1]);return result;}static['removeUnnecessaryMetadata'](types,metadata){if(!types?.['length']||!metadata?.['length'])return[];const result=[];for(let _0x402bf3=0x0;_0x402bf3<types['length'];_0x402bf3++)if(0x0!==types[_0x402bf3]){if(!metadata[_0x402bf3])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');result['push'](metadata[_0x402bf3]);}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(_0x2508d4,_0x4bbd6a,types,_0x2237b9,metadata=[],lastOperationId=''){super(),this['id']=_0x2508d4,this['buffers']=_0x4bbd6a,this['types']=types,this['baseVersion']=_0x2237b9,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(_0x232549,lastKnowVersion,_0x521651){super(),this['id']=_0x232549,this['lastKnowVersion']=lastKnowVersion,this['bundleVersion']=_0x521651;}['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(_0x4c8b97,_0x12f4e0=[],types=[],metadata=[],lastOperationId='',lastOperationAcceptedAt=null){super(),this['version']=_0x4c8b97,this['buffers']=_0x12f4e0,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(_0x3b8f66,_0x4051d1,_0x41672e=[],types=[],offset=0x0,metadata=[],initData=null,_0x56dae4='',lastOperationId='',sessionCreatedAt=null){super(),this['channel']=_0x3b8f66,this['version']=_0x4051d1,this['buffers']=_0x41672e,this['types']=types,this['offset']=offset,this['metadata']=metadata,this['initData']=initData,this['sessionId']=_0x56dae4,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'](_0x474e79){return new CollaborativeEditingConnectResponse(_0x474e79['channel'],_0x474e79['version'],_0x474e79['buffers'],_0x474e79['types'],_0x474e79['offset'],_0x474e79['metadata'],_0x474e79['initData'],_0x474e79['sessionId'],_0x474e79['lastOperationId'],_0x474e79['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(_0x3c06f8,_0x495b8c){if(super(),!_0x3c06f8)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x495b8c??v4(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x3c06f8;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](wsGateway,data={'buffers':[],'types':[]},lastOperationId){const _0x1bba26=new CollaborativeEditingConnectMessage(this['getId'](),data['buffers'],data['types'],this['_bundleVersion'],lastOperationId);return this['_connect'](wsGateway,_0x1bba26);}['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 _0x5c7305=new GetDocumentDetailsMessage(this['getId']());if(!this['_wsGateway'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x5b6e53=await this['_wsGateway']['_sendRequest'](0x1,GetDocumentDetailsMessage['TYPE'],MessagesCompressor['encode'](_0x5c7305));return MessagesCompressor['decode'](_0x5b6e53,GetDocumentDetailsResponse);}async['sendOperations'](data,_0x54e6d7,lastOperationId){if(!data?.['types']?.['length'])throw new CKEditorCloudServicesError('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x10edeb='number'==typeof _0x54e6d7?_0x54e6d7:parseInt(_0x54e6d7);if(!Number['isInteger'](_0x10edeb)||_0x10edeb<0x0)throw new CKEditorCloudServicesError('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x3752d4=new CollaborativeEditingUpdateMessage(this['getId'](),data['buffers'],data['types'],_0x10edeb,[],lastOperationId);if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x3fd1c7=await this['_wsGateway']['_sendRequest'](0x1,CollaborativeEditingUpdateMessage['TYPE'],MessagesCompressor['encode'](_0x3752d4));return MessagesCompressor['decode'](_0x3fd1c7,CollaborativeEditingResponse);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);return this['_connectedSessions']??=await Sessions['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1),this['_connectedSessions'];}static['getConnectedSessions'](wsGateway,_0x12a0d9){return Sessions['getConnectedSessions'](wsGateway,_0x12a0d9,0x1);}async['_connect'](wsGateway,_0x466868){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 _0x251163=await wsGateway['_sendRequest'](0x1,_0x466868['constructor']['TYPE'],MessagesCompressor['encode'](_0x466868)),collaborativeEditingConnectResponse=MessagesCompressor['decode'](_0x251163,CollaborativeEditingConnectResponse);return this['listenTo'](wsGateway,'change:state',(_0x4b4c87,_0xdfc22c,_0x124c13)=>this['_onWsGatewayStateChange'](_0x124c13),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,collaborativeEditingConnectResponse['channel']),this['_isConnected']=!0x0,this['fire']('connected'),collaborativeEditingConnectResponse;}['_connectToChannel'](wsGateway,_0x158492){this['_channel']=wsGateway['_getChannel'](0x1,_0x158492),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']);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ChannelDisconnectedMessage['TYPE']),()=>{this['disconnect']();});}['_onWsGatewayStateChange'](_0x1e40b0){_0x1e40b0===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,_0xf77845='',attributes=null,commentThread){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['content']=content,this['commentId']=commentId,this['userId']=_0xf77845,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(_0xda23f4,_threads,_threadsV2){super(),this['channel']=_0xda23f4,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,_0x197386,context,createdAt,deletedAt,resolvedAt,unlinkedAt){super(),this['commentThreadId']=commentThreadId,this['_comments']=_comments,this['_commentsV2']=_commentsV2,this['resolvedBy']=_0x197386,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,_0xfb07b9=null,createdAt=null,resolvedAt=null,deletedAt=null,attributes=null){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['comments']=comments,this['context']=context,this['resolvedBy']=_0xfb07b9,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'](_0x1b9a7e=>CommentDescriptor['toJSON'](_0x1b9a7e))};}static['fromJSON'](object){return new AddCommentThreadMessage(object['documentId'],object['commentThreadId'],object['comments']?.['map'](_0x29d8a5=>CommentDescriptor['fromJSON']({..._0x29d8a5,'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,_0x2b3c0c,resolvedAt){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['resolvedBy']=_0x2b3c0c,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,_0x3d1b0b,resolvedAt){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['resolvedBy']=_0x3d1b0b,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 _0x5e382a=await wsGateway['_sendRequest'](0x9,ConnectMessage['TYPE'],MessagesCompressor['encode'](connectMessage)),{channel:_0x416413,threads:threads}=MessagesCompressor['decode'](_0x5e382a,ConnectResponse);return this['listenTo'](wsGateway,'change:state',(_0x261e76,_0x3e1538,_0x1c0dce)=>this['_onWsGatewayStateChange'](_0x1c0dce),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,_0x416413),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 _0x183b07=new AddCommentMessage(this['_documentId'],commentThreadId,content,commentId,void 0x0,void 0x0,attributes),_0x536b1d=await this['_sendRequest'](AddCommentMessage['TYPE'],_0x183b07);return MessagesCompressor['decode'](_0x536b1d,AddCommentResponse);}async['updateComment'](commentThreadId,commentId,content,attributes){const isAttributesUpdated=void 0x0!==attributes,_0xd8e109=new UpdateCommentMessage(this['_documentId'],commentThreadId,commentId,content,attributes,isAttributesUpdated);await this['_sendRequest'](UpdateCommentMessage['TYPE'],_0xd8e109);}async['removeComment'](commentThreadId,commentId){const _0x33297d=new RemoveCommentMessage(this['_documentId'],commentThreadId,commentId);await this['_sendRequest'](RemoveCommentMessage['TYPE'],_0x33297d);}async['removeCommentThread'](commentThreadId){const _0x1c5742=new RemoveCommentThreadMessage(this['_documentId'],commentThreadId);await this['_sendRequest'](RemoveCommentThreadMessage['TYPE'],_0x1c5742);}async['addCommentThread'](addCommentThreadParams){const _0x146077=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']),_0x2c80b1=await this['_sendRequest'](AddCommentThreadMessage['TYPE'],_0x146077);return MessagesCompressor['decode'](_0x2c80b1,AddCommentThreadResponse);}async['resolveCommentThread'](commentThreadId){const _0x384620=new ResolveCommentThreadMessage(commentThreadId,this['_documentId']),_0x4ee4e1=await this['_sendRequest'](ResolveCommentThreadMessage['TYPE'],_0x384620);return MessagesCompressor['decode'](_0x4ee4e1,ResolveCommentThreadResponse);}async['reopenCommentThread'](commentThreadId){const _0x1b839a=new ReopenCommentThreadMessage(commentThreadId,this['_documentId']);await this['_sendRequest'](ReopenCommentThreadMessage['TYPE'],_0x1b839a);}async['updateCommentThread'](_0x16f520){const _0x4bee9a=new UpdateCommentThreadMessage(_0x16f520['commentThreadId'],this['_documentId'],_0x16f520['context'],_0x16f520['attributes'],_0x16f520['unlinkedAt']);await this['_sendRequest'](UpdateCommentThreadMessage['TYPE'],_0x4bee9a);}async['getCommentThread'](commentThreadId,attempt=0x1){const _0x6b2993=new GetCommentThreadMessage(commentThreadId,this['_documentId']);try{const _0x55a9d2=await this['_sendRequest'](GetCommentThreadMessage['TYPE'],_0x6b2993),commentThreadResponse=MessagesCompressor['decode'](_0x55a9d2,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(_0x5c1628){if('CKEditorCloudServicesServerError'===_0x5c1628['name']&&'404'===_0x5c1628['code']&&attempt<0x5)return await(time=0x64*attempt,new Promise(_0x1055a7=>{setTimeout(_0x1055a7,time);})),this['getCommentThread'](commentThreadId,attempt+0x1);if('CKEditorCloudServicesServerError'===_0x5c1628['name'])throw _0x5c1628;throw CKEditorCloudServicesServerError['fromPublicError'](_0x5c1628);}var time;}async['getDocumentThreads'](){const _0x351ec0=new GetDocumentThreadsMessage(this['_documentId']),_0x354094=await this['_sendRequest'](GetDocumentThreadsMessage['TYPE'],_0x351ec0),{threads:threads}=MessagesCompressor['decode'](_0x354094,GetDocumentThreadsResponse);return{'threads':threads};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_connectedSessions']??=await Sessions['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9),this['_connectedSessions'];}['_connectToChannel'](wsGateway,_0xd4ca85){this['_channel']=wsGateway['_getChannel'](CommentsService['_SERVICE'],_0xd4ca85),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);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ChannelDisconnectedMessage['TYPE']),()=>{this['disconnect']();}));}['_onWsGatewayStateChange'](_0x4c99fa){_0x4c99fa===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](method,_0x1f7c7a){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,method,MessagesCompressor['encode'](_0x1f7c7a));}}export{CKEditorCloudServicesError,CollaborativeEditingService,CommentsService,EditorService,RevisionHistoryService,TrackChangesService,User,WEB_SOCKET_GATEWAY_STATES,WebSocketGateway};
57
+ ((()=>priorities['get']('highest')+0xf423f)());constructor(_0x4ad70e,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(),!_0x4ad70e)throw new TypeError('Api\x20address\x20must\x20be\x20provided.');if(!this['_token'])throw new TypeError('Token\x20must\x20be\x20provided.');this['_options']['requestTimeout']??=0x4e20,this['_url']=_0x134184(_0x4ad70e['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,_0x111685,_0x5b3123)=>{if(this['_debugEvent']('ws-gw:change:state',_0x5b3123),_0x5b3123!==WebSocketGateway['STATE_CONNECTED']){if(_0x5b3123===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{}},{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['on']('error',(event,_0x28b185)=>{this['_options']['onError']?this['_options']['onError'](_0x28b185):console['error'](_0x28b185);});}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,_0x39af9c='local.cs.dev:443/ws-v2',options={},_0x4ca5b3=io,userFactory=User['get']){const webSocketGateway=new this(_0x39af9c,token,options,_0x4ca5b3,userFactory);return await webSocketGateway['_connect'](),webSocketGateway;}_sendRequest(_0x349c1c,method,_0x258669){if(!_0x349c1c)throw new CKEditorCloudServicesError('`serviceName`\x20must\x20be\x20provided.',this);if(this['state']!==WebSocketGateway['STATE_CONNECTED'])throw new CKEditorCloudServicesError('Not\x20connected.',this);if(!this['_socketAuth']?.['isAuthenticated'])throw new CKEditorCloudServicesError('Not\x20authenticated.',this);const _0x2a3676=new ArrayBuffer(_0x258669['length']+0x2),_0x3aa8e0=new Uint8Array(_0x2a3676);return _0x3aa8e0[0x0]=_0x349c1c,_0x3aa8e0[0x1]=parseInt(method),_0x3aa8e0['set'](_0x258669,0x2),this['_emit'](0x1,_0x3aa8e0);}_getChannel(_0x41a925,_0x414b34){const _0x52a99d=''+_0x41a925+_0x414b34;return!this['_channels']['has'](_0x52a99d)&&this['_socket']&&this['_channels']['set'](_0x52a99d,new Channel(_0x52a99d,this,this['_socket'])),this['_channels']['get'](_0x52a99d);}_connect(){return new Promise((_0x49510c,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'](),_0x49510c();}catch(_0x33f65e){reject(_0x33f65e);}}),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']),_0x29212d=(this['_url']['protocol']||'https:')+'//'+this['_url']['hostname']+':'+port,pathPrefix=this['_url']['pathname']['match'](/^\/.*\/ws/)?this['_url']['pathname']['split']('/ws')[0x0]:'',socket=this['_connectionProvider'](_0x29212d,{'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':'54.2.6'},'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',_0x32e77f=>{this['_debugEvent']('connect_error',_0x32e77f);}),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,_0x452e9a){const socket=this['_socket'];return this['_requestsManager']['send'](_0x1ddcac=>{socket['emit'](eventName,_0x452e9a,(_0x2e1728,_0x5e3f1a)=>{if(_0x2e1728)return _0x1ddcac['error'](CKEditorCloudServicesServerError['fromPublicError'](_0x2e1728));_0x1ddcac['response'](_0x5e3f1a);});},this['_options']['requestTimeout']);}_addAuthData(environmentId,_0x59679f){this['_socketAuth']={'environmentId':environmentId,'userId':_0x59679f,'isAuthenticated':!0x0};}_removeAuthData(){this['_socketAuth']=void 0x0;}async _onConnect(){await this['_authenticate'](this['_token']['value']),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'];const _0x2497c5=async(event,_0x5cc837,_0x4a68b3)=>{this['_debugEvent']('token:value:change');try{await this['_authenticate'](_0x4a68b3);}catch{}};this['_token']['on']('change:value',_0x2497c5),this['_socket']['io']['off']('reconnect_error'),this['on']('disconnect',()=>{this['_token']['off']('change:value',_0x2497c5);});}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 _0x4ac04f of this['_channels']['values']())_0x4ac04f['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(_0xf64d81){this['_connectionAttempt']>=0x2&&(this['disconnect'](),_0xf64d81(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:_0x3fa2eb}){this['_removeAuthData'](),this['fire']('error',CKEditorCloudServicesServerError['fromPublicError'](_0x3fa2eb));}async _authenticate(token){try{this['_debugEvent']('authenticate:start');const _0x3269e2=await this['_emit'](0x2,{'token':token});this['_debugEvent']('authenticate:success','envId:\x20'+_0x3269e2['environmentId']+',\x20userId:\x20'+_0x3269e2['userId']),this['_addAuthData'](_0x3269e2['environmentId'],_0x3269e2['userId']);}catch(_0x2493c4){throw this['_debugEvent']('authenticate:error',_0x2493c4['message']),this['_removeAuthData'](),_0x2493c4;}}['_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(_0x2f63de){super(),this['bundleVersion']=_0x2f63de;}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(_0x71bfd4){super(),this['isUploaded']=_0x71bfd4;}toJSON(){return{'isUploaded':this['isUploaded']};}static['fromJSON'](_0x51988a){return new IsEditorBundleUploadedResponse(_0x51988a['isUploaded']);}}class EditorService extends/* #__PURE__ -- @preserve */
58
+ EmitterMixin(){static ['_SERVICE']=0xd;static async['isBundleUploaded'](wsGateway,_0x57741e){const _0x24fbbf=new IsEditorBundleUploadedMessage(_0x57741e);if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);const _0x151725=await wsGateway['_sendRequest'](EditorService['_SERVICE'],IsEditorBundleUploadedMessage['TYPE'],MessagesCompressor['encode'](_0x24fbbf));return MessagesCompressor['decode'](_0x151725,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,_0xfb2e12){super(),this['documentId']=documentId,this['revisionId']=_0xfb2e12;}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(_0x5ec3b2){return{'revisionId':_0x5ec3b2['revisionId'],'name':_0x5ec3b2['name'],'creatorId':_0x5ec3b2['creatorId'],'authorsIds':_0x5ec3b2['authorsIds']?JSON['stringify'](_0x5ec3b2['authorsIds']):void 0x0,'diffData':_0x5ec3b2['diffData'],'createdAt':_0x5ec3b2['createdAt']?.['toISOString'](),'attributes':_0x5ec3b2['attributes']?JSON['stringify'](_0x5ec3b2['attributes']):void 0x0,'toVersion':_0x5ec3b2['toVersion'],'fromVersion':_0x5ec3b2['fromVersion'],'isEmptyCurrent':_0x5ec3b2['isEmptyCurrent']};}static['fromJSON'](_0x3120be){return{'revisionId':(_0x3120be={..._0x3120be})['revisionId'],'name':_0x3120be['name'],'creatorId':_0x3120be['creatorId'],'authorsIds':_0x3120be['authorsIds']?JSON['parse'](_0x3120be['authorsIds']):void 0x0,'diffData':_0x3120be['diffData'],'createdAt':_0x3120be['createdAt']?new Date(_0x3120be['createdAt']):void 0x0,'attributes':_0x3120be['attributes']?JSON['parse'](_0x3120be['attributes']):void 0x0,'toVersion':_0x3120be['toVersion'],'fromVersion':_0x3120be['fromVersion'],'isEmptyCurrent':_0x3120be['isEmptyCurrent']};}static toObject(_0x45ee9f){return function(revisionObject){for(const [_0x38a51d,_0x4bc404]of Object['entries'](revisionObject))void 0x0===_0x4bc404&&delete revisionObject[_0x38a51d];return revisionObject;}({'id':_0x45ee9f['revisionId'],'name':_0x45ee9f['name'],'creatorId':_0x45ee9f['creatorId'],'createdAt':_0x45ee9f['createdAt'],'fromVersion':_0x45ee9f['fromVersion'],'toVersion':_0x45ee9f['toVersion'],'isEmptyCurrent':_0x45ee9f['isEmptyCurrent'],'diffData':_0x45ee9f['diffData']?JSON['parse'](_0x45ee9f['diffData']):void 0x0,'attributes':_0x45ee9f['attributes'],'authorsIds':_0x45ee9f['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(_0x435f64,_0x4087e2,creatorId,authorsIds,createdAt,diffData,attributes,_0x17b4d0,toVersion,isEmptyCurrent){super(),this['revisionId']=_0x435f64,this['name']=_0x4087e2,this['creatorId']=creatorId,this['authorsIds']=authorsIds,this['createdAt']=createdAt,this['diffData']=diffData,this['attributes']=attributes,this['fromVersion']=_0x17b4d0,this['toVersion']=toVersion,this['isEmptyCurrent']=isEmptyCurrent;}toJSON(){return RevisionDescriptor['toJSON'](this);}toObject(){return RevisionDescriptor['toObject'](this);}static create(_0x734dd4){return new RevisionHistoryGetRevisionResponse(_0x734dd4['revisionId'],_0x734dd4['name'],_0x734dd4['creatorId'],_0x734dd4['authorsIds'],_0x734dd4['createdAt'],_0x734dd4['diffData'],_0x734dd4['attributes'],_0x734dd4['fromVersion'],_0x734dd4['toVersion'],_0x734dd4['isEmptyCurrent']);}static['fromJSON'](_0xe987){return new RevisionHistoryGetRevisionResponse(_0xe987['revisionId'],_0xe987['name'],_0xe987['creatorId'],_0xe987['authorsIds']?JSON['parse'](_0xe987['authorsIds']):void 0x0,_0xe987['createdAt']?new Date(_0xe987['createdAt']):void 0x0,_0xe987['diffData'],_0xe987['attributes']?JSON['parse'](_0xe987['attributes']):void 0x0,_0xe987['fromVersion'],_0xe987['toVersion'],_0xe987['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,_0x26a431){super(),this['documentId']=documentId,this['requestId']=requestId,this['revisions']=_0x26a431;}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(_0x4c9563){return new RevisionHistoryUpdateRevisionsMessage(_0x4c9563['documentId'],_0x4c9563['requestId'],_0x4c9563['revisions']['map'](RevisionDescriptor['create']));}static['fromJSON'](_0x46b9b8){return new RevisionHistoryUpdateRevisionsMessage(_0x46b9b8['documentId'],_0x46b9b8['requestId'],_0x46b9b8['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'](_0x57ea25){return new RevisionHistoryUpdateRevisionsResponse(_0x57ea25['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(_0x21f904,requestId,_0x2a20b8){super(),this['channel']=_0x21f904,this['requestId']=requestId,this['revisions']=_0x2a20b8;}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'](_0x49b983){return new RevisionHistoryConnectResponse(_0x49b983['channel'],_0x49b983['requestId'],_0x49b983['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 ChannelDisconnectedMessage extends Message{static ['TYPE']='15';static ['READABLE_TYPE_NAME']='channelDisconnected';static ['DESCRIPTOR_NAME']='ChannelDisconnectedMessage';static ['DESCRIPTOR']={'fields':{}};toJSON(){return{};}static['fromJSON'](){return new ChannelDisconnectedMessage();}}class ServiceNotConnectedError extends CKEditorCloudServicesError{constructor(_0x3e9fe0,context){super(_0x3e9fe0+'\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(_0x59ad20,lastRequestId){const _0x84e73c=RevisionHistoryUpdateRevisionsMessage['create']({'documentId':this['_documentId'],'requestId':lastRequestId,'revisions':_0x59ad20}),_0x39b3fa=await this['_sendRequest'](RevisionHistoryUpdateRevisionsMessage['TYPE'],_0x84e73c),{requestId:requestId}=MessagesCompressor['decode'](_0x39b3fa,RevisionHistoryUpdateRevisionsResponse);return requestId;}async getRevision(_0x4080a5){const _0xdee594=new RevisionHistoryGetRevisionMessage(this['_documentId'],_0x4080a5),_0x279c7b=await this['_sendRequest'](RevisionHistoryGetRevisionMessage['TYPE'],_0xdee594);return MessagesCompressor['decode'](_0x279c7b,RevisionHistoryGetRevisionResponse)['toObject']();}async _connect(wsGateway,_0x1868bc){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 _0x326dd2=await wsGateway['_sendRequest'](0xc,_0x1868bc['constructor']['TYPE'],MessagesCompressor['encode'](_0x1868bc)),{channel:_0x28cb22,requestId:requestId,revisions:_0x109a54}=MessagesCompressor['decode'](_0x326dd2,RevisionHistoryConnectResponse)['toObject']();return this['listenTo'](wsGateway,'change:state',(_0x1239fe,_0x23ec8f,state)=>this['_onWsGatewayStateChange'](state),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,_0x28cb22),this['_isConnected']=!0x0,this['fire']('connected'),{'revisions':_0x109a54,'requestId':requestId};}_connectToChannel(wsGateway,_0x3680e5){this['_channel']=wsGateway['_getChannel'](RevisionHistoryService['_SERVICE'],_0x3680e5),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](RevisionHistoryUpdateRevisionsMessage['TYPE']),(event,data)=>{const {documentId:documentId,requestId:requestId,revisions:_0x168570}=MessagesCompressor['decode'](data,RevisionHistoryUpdateRevisionsMessage)['toObject']();this['fire']('revisionsUpdated',{'documentId':documentId,'requestId':requestId,'revisionsData':_0x168570});}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ChannelDisconnectedMessage['TYPE']),()=>{this['disconnect']();}));}_onWsGatewayStateChange(_0x1f3c6b){_0x1f3c6b===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}_sendRequest(method,_0x3a448a){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Revision\x20History',this);return this['_wsGateway']['_sendRequest'](0xc,method,MessagesCompressor['encode'](_0x3a448a));}}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(_0x119571,documentId,type,data={},originalSuggestionId=null,attributes=null){super(),this['id']=_0x119571,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(_0x5e39ef,authorId,type,createdAt,hasComments,state,data={},attributes=null){super(),this['id']=_0x5e39ef,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(_0x47629f,documentId){super(),this['id']=_0x47629f,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(_0x8e6c29,authorId,type,createdAt,hasComments,state,data={},attributes=null){super(),this['id']=_0x8e6c29,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(_0x40ccd8,documentId,hasComments,isHasCommentsModified,state,attributes=null){super(),this['id']=_0x40ccd8,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(_0x4f6640,_suggestions,_suggestionsV2){super(),this['channel']=_0x4f6640,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(_0x2045b8,documentId,state){super(),this['ids']=_0x2045b8,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 _0x2451cd=await wsGateway['_sendRequest'](0xa,ConnectMessage$1['TYPE'],MessagesCompressor['encode'](connectMessage)),connectResponse=MessagesCompressor['decode'](_0x2451cd,ConnectResponse$1);return this['listenTo'](wsGateway,'change:state',(_0x961221,_0x3d7f98,_0xd6ea6)=>this['_onWsGatewayStateChange'](_0xd6ea6),{'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'](_0x5e25b6,type,data,originalSuggestionId=null,attributes){const _0x3a4812=new AddSuggestionMessage(_0x5e25b6,this['_documentId'],type,data,originalSuggestionId,attributes),_0x2243dc=await this['_sendRequest'](AddSuggestionMessage['TYPE'],_0x3a4812);return MessagesCompressor['decode'](_0x2243dc,AddSuggestionResponse);}async get(_0x55b0f9,attempt=0x1){const _0x1e58cd=new GetSuggestionMessage(_0x55b0f9,this['_documentId']);try{const _0x3429d8=await this['_sendRequest'](GetSuggestionMessage['TYPE'],_0x1e58cd);return MessagesCompressor['decode'](_0x3429d8,GetSuggestionResponse);}catch(_0x3475e3){if('CKEditorCloudServicesServerError'===_0x3475e3['name']&&'404'===_0x3475e3['code']&&attempt<0x5)return await(time=0x64*attempt,new Promise(_0x1dceb9=>{setTimeout(_0x1dceb9,time);})),this['get'](_0x55b0f9,attempt+0x1);if('CKEditorCloudServicesServerError'===_0x3475e3['name'])throw _0x3475e3;throw CKEditorCloudServicesServerError['fromPublicError'](_0x3475e3);}var time;}async getAll(){const _0x1b019b=new GetAllSuggestionsMessage(this['_documentId']),_0x4a491c=await this['_sendRequest'](GetAllSuggestionsMessage['TYPE'],_0x1b019b),{suggestions:suggestions}=MessagesCompressor['decode'](_0x4a491c,GetAllSuggestionResponse);return suggestions;}async update(_0x212e05,_0xd98351={}){const {hasComments:hasComments,state:state,attributes:attributes}=_0xd98351,isHasCommentsUpdated=void 0x0!==hasComments,_0x16931e=new UpdateSuggestionMessage(_0x212e05,this['_documentId'],hasComments,isHasCommentsUpdated,state,attributes);await this['_sendRequest'](UpdateSuggestionMessage['TYPE'],_0x16931e);}async batchUpdateState(_0x1e60d7){const _0x87660b=new BatchUpdateSuggestionsStateMessage(_0x1e60d7['ids'],this['_documentId'],_0x1e60d7['state']);await this['_sendRequest'](BatchUpdateSuggestionsStateMessage['TYPE'],_0x87660b);}_connectToChannel(wsGateway,_0x3298fd){this['_channel']=wsGateway['_getChannel'](TrackChangesService['_SERVICE'],_0x3298fd),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateSuggestionMessage['TYPE']),(event,data)=>{const updateSuggestionMessage=MessagesCompressor['decode'](data,UpdateSuggestionMessage);this['fire']('suggestionUpdated',updateSuggestionMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ChannelDisconnectedMessage['TYPE']),()=>{this['disconnect']();}));}_onWsGatewayStateChange(_0x27b731){_0x27b731===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}_sendRequest(method,_0x4f1100){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Track\x20Changes',this);return this['_wsGateway']['_sendRequest'](0xa,method,MessagesCompressor['encode'](_0x4f1100));}}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(_0x27f44a,sockets=[]){super(),this['channel']=_0x27f44a,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(_0x38c63c,_0x4a764b){super(),this['id']=_0x38c63c,this['sessionType']=_0x4a764b;}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(_0x54800d,_0x25c4c9,_0x207ba1,_0x5ab2ab){super(),this['id']=_0x54800d,this['userId']=_0x25c4c9,this['role']=_0x207ba1,this['permissions']=_0x5ab2ab;}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(_0x1d10bd){super(),this['id']=_0x1d10bd;}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(_0x50f6d0,_0xb4a177){super({'idProperty':'id'}),this['_id']=_0x50f6d0,this['_sessionType']=_0xb4a177;}async connect(wsGateway){this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x535ed5=new SessionsConnectMessage(this['_id'],this['_sessionType']);let sessionsConnectResponse;try{const _0xde797a=await this['_wsGateway']['_sendRequest'](0x3,SessionsConnectMessage['TYPE'],MessagesCompressor['encode'](_0x535ed5));sessionsConnectResponse=MessagesCompressor['decode'](_0xde797a,SessionsConnectResponse);}catch{sessionsConnectResponse=new SessionsConnectResponse(this['_id'],[]);}this['_connectToChannel'](this['_wsGateway'],sessionsConnectResponse['channel'],this['_sessionType']);const _0x1576dc=await async function(wsGateway,_0x2db27e){const _0x5d4087=_0x2db27e['map'](socket=>socket['userId']),_0x5aac48=_0x5d4087['length']?await User['getMany'](wsGateway,_0x5d4087):[];return _0x2db27e['map'](socket=>{const item={'id':socket['id'],'role':socket['role'],'permissions':socket['permissions']};return item['user']=socket['userId']&&_0x5aac48['find'](_0x20cbbe=>_0x20cbbe['id']===socket['userId'])||new User(),item;});}(this['_wsGateway'],sessionsConnectResponse['sockets']);for(const _0x4996d2 of _0x1576dc)super['add'](_0x4996d2);this['_connected']=!0x0,this['fire']('connected'),this['listenTo'](this['_wsGateway'],'change:state',(_0x424cbe,_0x24a079,_0x383e8f)=>this['_onWsGatewayStateChange'](_0x383e8f),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),await this['_runQueue']();}disconnect(_0x4b607a=!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']&&_0x4b607a&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['fire']('disconnected'),_0x4b607a&&this['stopListening']();}}['add'](_0x58776c,_0x487fa6){throw new TypeError('The\x20collection\x20is\x20read-only.');}['remove'](_0xc0b463){throw new TypeError('The\x20collection\x20is\x20read-only.');}_connectToChannel(wsGateway,_0xd3ad32,_0x1bdbd1){this['_channel']=wsGateway['_getChannel'](_0x1bdbd1,_0xd3ad32),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']);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ChannelDisconnectedMessage['TYPE']),()=>{this['disconnect']();}));}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 _0x7f7f96=this['_handlers']['get'](event['eventName']);_0x7f7f96&&await _0x7f7f96(event['data']);}this['_isRunning']=!0x1;}['_addHandler'](_0x57225d,eventType,_0x4c7da6){const eventName=_0x57225d['getEventName'](eventType,!0x0);this['listenTo'](_0x57225d,eventName,async(event,data)=>{const _0x1da473=event['name'];this['_eventsQueue']['push']({'eventName':_0x1da473,'data':data}),await this['_runQueue']();}),this['_handlers']['set'](eventName,_0x4c7da6);}}class Sessions{static async getConnectedSessions(wsGateway,_0x18567d,_0x590f25){const sessionCollection=new SessionCollection(_0x18567d,_0x590f25);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(_0x1af7ab,_0x32e1f5,types,_0x57a09c,lastOperationId=''){super(),this['id']=_0x1af7ab,this['buffers']=_0x32e1f5,this['types']=types,this['bundleVersion']=_0x57a09c,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 _0xc0ef65=0x0;for(const type of types)if(0x0!==type){if(!metadata[_0xc0ef65])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');result['push'](metadata[_0xc0ef65]),_0xc0ef65++;}else result['push'](result[result['length']-0x1]);return result;}static removeUnnecessaryMetadata(types,metadata){if(!types?.['length']||!metadata?.['length'])return[];const result=[];for(let _0x1bb9c1=0x0;_0x1bb9c1<types['length'];_0x1bb9c1++)if(0x0!==types[_0x1bb9c1]){if(!metadata[_0x1bb9c1])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');result['push'](metadata[_0x1bb9c1]);}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(_0x32535a,_0x1e82f1,types,_0x3392c2,metadata=[],lastOperationId=''){super(),this['id']=_0x32535a,this['buffers']=_0x1e82f1,this['types']=types,this['baseVersion']=_0x3392c2,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(_0x129664,lastKnowVersion,_0x57f5a3){super(),this['id']=_0x129664,this['lastKnowVersion']=lastKnowVersion,this['bundleVersion']=_0x57f5a3;}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(_0x2f7d67,_0xb35c47=[],types=[],metadata=[],lastOperationId='',lastOperationAcceptedAt=null){super(),this['version']=_0x2f7d67,this['buffers']=_0xb35c47,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(_0x5620c1,_0x5d7e03,_0x2251ef=[],types=[],offset=0x0,metadata=[],initData=null,_0x24f1a9='',lastOperationId='',sessionCreatedAt=null){super(),this['channel']=_0x5620c1,this['version']=_0x5d7e03,this['buffers']=_0x2251ef,this['types']=types,this['offset']=offset,this['metadata']=metadata,this['initData']=initData,this['sessionId']=_0x24f1a9,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(_0x30855d){return new CollaborativeEditingConnectResponse(_0x30855d['channel'],_0x30855d['version'],_0x30855d['buffers'],_0x30855d['types'],_0x30855d['offset'],_0x30855d['metadata'],_0x30855d['initData'],_0x30855d['sessionId'],_0x30855d['lastOperationId'],_0x30855d['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(_0x30fa4e,_0x577180){if(super(),!_0x30fa4e)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x577180??v4(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x30fa4e;}getId(){return this['_id'];}isConnected(){return this['_isConnected'];}connect(wsGateway,data={'buffers':[],'types':[]},lastOperationId){const _0x5d0f60=new CollaborativeEditingConnectMessage(this['getId'](),data['buffers'],data['types'],this['_bundleVersion'],lastOperationId);return this['_connect'](wsGateway,_0x5d0f60);}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 _0x8a5fc9=new GetDocumentDetailsMessage(this['getId']());if(!this['_wsGateway'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x384ddd=await this['_wsGateway']['_sendRequest'](0x1,GetDocumentDetailsMessage['TYPE'],MessagesCompressor['encode'](_0x8a5fc9));return MessagesCompressor['decode'](_0x384ddd,GetDocumentDetailsResponse);}async sendOperations(data,_0x197afa,lastOperationId){if(!data?.['types']?.['length'])throw new CKEditorCloudServicesError('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x3313c9='number'==typeof _0x197afa?_0x197afa:parseInt(_0x197afa);if(!Number['isInteger'](_0x3313c9)||_0x3313c9<0x0)throw new CKEditorCloudServicesError('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x3c5193=new CollaborativeEditingUpdateMessage(this['getId'](),data['buffers'],data['types'],_0x3313c9,[],lastOperationId);if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x14876b=await this['_wsGateway']['_sendRequest'](0x1,CollaborativeEditingUpdateMessage['TYPE'],MessagesCompressor['encode'](_0x3c5193));return MessagesCompressor['decode'](_0x14876b,CollaborativeEditingResponse);}async getConnectedSessions(){if(!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);return this['_connectedSessions']??=await Sessions['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1),this['_connectedSessions'];}static getConnectedSessions(wsGateway,_0x42cc4b){return Sessions['getConnectedSessions'](wsGateway,_0x42cc4b,0x1);}async _connect(wsGateway,_0x39d0d6){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 _0x419647=await wsGateway['_sendRequest'](0x1,_0x39d0d6['constructor']['TYPE'],MessagesCompressor['encode'](_0x39d0d6)),collaborativeEditingConnectResponse=MessagesCompressor['decode'](_0x419647,CollaborativeEditingConnectResponse);return this['listenTo'](wsGateway,'change:state',(_0x367f16,_0x212bba,_0x48f3ba)=>this['_onWsGatewayStateChange'](_0x48f3ba),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,collaborativeEditingConnectResponse['channel']),this['_isConnected']=!0x0,this['fire']('connected'),collaborativeEditingConnectResponse;}_connectToChannel(wsGateway,_0x372b12){this['_channel']=wsGateway['_getChannel'](0x1,_0x372b12),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']);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ChannelDisconnectedMessage['TYPE']),()=>{this['disconnect']();});}_onWsGatewayStateChange(_0x26a839){_0x26a839===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,_0x5147dd='',attributes=null,commentThread){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['content']=content,this['commentId']=commentId,this['userId']=_0x5147dd,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(_0x2f15ed,_threads,_threadsV2){super(),this['channel']=_0x2f15ed,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,_0x43e85e,context,createdAt,deletedAt,resolvedAt,unlinkedAt){super(),this['commentThreadId']=commentThreadId,this['_comments']=_comments,this['_commentsV2']=_commentsV2,this['resolvedBy']=_0x43e85e,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,_0x79a8e2=null,createdAt=null,resolvedAt=null,deletedAt=null,attributes=null){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['comments']=comments,this['context']=context,this['resolvedBy']=_0x79a8e2,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'](_0x5d5082=>CommentDescriptor['toJSON'](_0x5d5082))};}static['fromJSON'](object){return new AddCommentThreadMessage(object['documentId'],object['commentThreadId'],object['comments']?.['map'](_0x46dbd6=>CommentDescriptor['fromJSON']({..._0x46dbd6,'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,_0x5e1665,resolvedAt){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['resolvedBy']=_0x5e1665,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,_0x46e6e9,resolvedAt){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['resolvedBy']=_0x46e6e9,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 _0x4a1049=await wsGateway['_sendRequest'](0x9,ConnectMessage['TYPE'],MessagesCompressor['encode'](connectMessage)),{channel:_0x1694e2,threads:threads}=MessagesCompressor['decode'](_0x4a1049,ConnectResponse);return this['listenTo'](wsGateway,'change:state',(_0x55d398,_0x56c236,_0x3024f6)=>this['_onWsGatewayStateChange'](_0x3024f6),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,_0x1694e2),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 _0x1edbac=new AddCommentMessage(this['_documentId'],commentThreadId,content,commentId,void 0x0,void 0x0,attributes),_0x3af44a=await this['_sendRequest'](AddCommentMessage['TYPE'],_0x1edbac);return MessagesCompressor['decode'](_0x3af44a,AddCommentResponse);}async updateComment(commentThreadId,commentId,content,attributes){const isAttributesUpdated=void 0x0!==attributes,_0xf0d5dc=new UpdateCommentMessage(this['_documentId'],commentThreadId,commentId,content,attributes,isAttributesUpdated);await this['_sendRequest'](UpdateCommentMessage['TYPE'],_0xf0d5dc);}async removeComment(commentThreadId,commentId){const _0x3d838f=new RemoveCommentMessage(this['_documentId'],commentThreadId,commentId);await this['_sendRequest'](RemoveCommentMessage['TYPE'],_0x3d838f);}async removeCommentThread(commentThreadId){const _0x54e4fa=new RemoveCommentThreadMessage(this['_documentId'],commentThreadId);await this['_sendRequest'](RemoveCommentThreadMessage['TYPE'],_0x54e4fa);}async addCommentThread(addCommentThreadParams){const _0x33b5ef=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']),_0x5e04cf=await this['_sendRequest'](AddCommentThreadMessage['TYPE'],_0x33b5ef);return MessagesCompressor['decode'](_0x5e04cf,AddCommentThreadResponse);}async resolveCommentThread(commentThreadId){const _0x12dfb9=new ResolveCommentThreadMessage(commentThreadId,this['_documentId']),_0x412905=await this['_sendRequest'](ResolveCommentThreadMessage['TYPE'],_0x12dfb9);return MessagesCompressor['decode'](_0x412905,ResolveCommentThreadResponse);}async reopenCommentThread(commentThreadId){const _0x2e4e98=new ReopenCommentThreadMessage(commentThreadId,this['_documentId']);await this['_sendRequest'](ReopenCommentThreadMessage['TYPE'],_0x2e4e98);}async updateCommentThread(_0x115ad5){const _0x15e57c=new UpdateCommentThreadMessage(_0x115ad5['commentThreadId'],this['_documentId'],_0x115ad5['context'],_0x115ad5['attributes'],_0x115ad5['unlinkedAt']);await this['_sendRequest'](UpdateCommentThreadMessage['TYPE'],_0x15e57c);}async getCommentThread(commentThreadId,attempt=0x1){const _0x1ea481=new GetCommentThreadMessage(commentThreadId,this['_documentId']);try{const _0x2ed7bc=await this['_sendRequest'](GetCommentThreadMessage['TYPE'],_0x1ea481),commentThreadResponse=MessagesCompressor['decode'](_0x2ed7bc,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(_0x4aac36){if('CKEditorCloudServicesServerError'===_0x4aac36['name']&&'404'===_0x4aac36['code']&&attempt<0x5)return await(time=0x64*attempt,new Promise(_0x201c2e=>{setTimeout(_0x201c2e,time);})),this['getCommentThread'](commentThreadId,attempt+0x1);if('CKEditorCloudServicesServerError'===_0x4aac36['name'])throw _0x4aac36;throw CKEditorCloudServicesServerError['fromPublicError'](_0x4aac36);}var time;}async getDocumentThreads(){const _0x54d064=new GetDocumentThreadsMessage(this['_documentId']),_0x11ddf6=await this['_sendRequest'](GetDocumentThreadsMessage['TYPE'],_0x54d064),{threads:threads}=MessagesCompressor['decode'](_0x11ddf6,GetDocumentThreadsResponse);return{'threads':threads};}async getConnectedSessions(){if(!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_connectedSessions']??=await Sessions['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9),this['_connectedSessions'];}_connectToChannel(wsGateway,_0x56fdd2){this['_channel']=wsGateway['_getChannel'](CommentsService['_SERVICE'],_0x56fdd2),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);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ChannelDisconnectedMessage['TYPE']),()=>{this['disconnect']();}));}_onWsGatewayStateChange(_0xe49880){_0xe49880===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}_sendRequest(method,_0x4158c6){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,method,MessagesCompressor['encode'](_0x4158c6));}}export{CKEditorCloudServicesError,CollaborativeEditingService,CommentsService,EditorService,RevisionHistoryService,TrackChangesService,User,WEB_SOCKET_GATEWAY_STATES,WebSocketGateway};