"use strict";var wrappers=exports,Message=require("./message");wrappers[".google.protobuf.Any"]={fromObject:function(e){if(e&&e["@type"]){var t=e["@type"].substring(e["@type"].lastIndexOf("/")+1),r=this.lookup(t);if(r){var s="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return -1===s.indexOf("/")&&(s="/"+s),this.create({type_url:s,value:r.encode(r.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,t){var r="",s="";if(t&&t.json&&e.type_url&&e.value){s=e.type_url.substring(e.type_url.lastIndexOf("/")+1),r=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var p=this.lookup(s);p&&(e=p.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof Message){var o=e.$type.toObject(e,t);return""===r&&(r="type.googleapis.com/"),s=r+("."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName),o["@type"]=s,o}return this.toObject(e,t)}};