function OAuthServiceUrlParameters(e,t,n,r){function f(){l(e),c(t),h(n),a.oAuthServiceUrl.val=r}function l(e){i=e}function c(e){s=e}function h(e){o=g(e)}function p(e){h(e)}function d(){return i}function v(){return s}function m(){return o}function g(e){var t=OAuthServiceUrlParameters.Constants.CREDITNAL_TYPE_REGEXP,n,r=parseInt(e,10);if(typeof r=="number"&&!isNaN(r))n=r;else{var i=t.exec(e);i===null?n=OAuthServiceUrlParameters.Constants.DEFAULT_VERSION:n=parseInt(i[1],10)}return n}function y(){var e={margeStreamingAccountId:d(),unitIdentifier:v(),clientSecretVersion:m(),oAuthServiceUrl:u.val};return JSON.stringify(e)}function b(e){var t;!e||(t=JSON.parse(e),l(t.margeStreamingAccountId),c(t.unitIdentifier),p(t.clientSecretVersion),u.val=t.oAuthServiceUrl)}this.setMargeStreamingAccountId=l,this.setUnitIdentifier=c,this.setClientSecretVersionByType=h,this.setClientSecretVersion=p,this.getMargeStreamingAccountId=d,this.getUnitIdentifier=v,this.getClientSecretVersion=m,this.toJSON=y,this.fromJSON=b;var i,s,o,u={value:"",get val(){return this.value},set val(e){this.value=e}};this.oAuthServiceUrl=u;var a=this;f()}OAuthServiceUrlParameters.Constants={DEFAULT_VERSION:1,CREDITNAL_TYPE_REGEXP:/token_version_(\d+)$/i,VERSION_REGEXP:/\d+$/},Object.freeze(OAuthServiceUrlParameters.Constants);