@aiot-toolkit/shared-utils 1.0.17-binary-beta.1 → 1.0.17-binary-beta.2

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.
@@ -1,2 +1,2786 @@
1
- "use strict";var jspb=require("google-protobuf"),goog=jspb,global=Function("return this")();goog.exportSymbol("proto.CssCell",null,global),goog.exportSymbol("proto.ExportArr",null,global),goog.exportSymbol("proto.ExportCell",null,global),goog.exportSymbol("proto.OneStyleValue",null,global),goog.exportSymbol("proto.StringArr",null,global),goog.exportSymbol("proto.StyleKey",null,global),goog.exportSymbol("proto.StyleValueArr",null,global),goog.exportSymbol("proto.TemplateCC",null,global),goog.exportSymbol("proto.TemplateCE",null,global),goog.exportSymbol("proto.TemplateCF",null,global),goog.exportSymbol("proto.TemplateCI",null,global),goog.exportSymbol("proto.TemplateOne",null,global),goog.exportSymbol("proto.Version",null,global),proto.StringArr=function(e){jspb.Message.initialize(this,e,0,-1,proto.StringArr.repeatedFields_,null)},goog.inherits(proto.StringArr,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.StringArr.displayName="proto.StringArr"),proto.StringArr.repeatedFields_=[1],jspb.Message.GENERATE_TO_OBJECT&&(proto.StringArr.prototype.toObject=function(e){return proto.StringArr.toObject(e,this)},proto.StringArr.toObject=function(e,t){var r={stringvlarrList:jspb.Message.getRepeatedField(t,1)};return e&&(r.$jspbMessageInstance=t),r}),proto.StringArr.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.StringArr;return proto.StringArr.deserializeBinaryFromReader(r,t)},proto.StringArr.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.addStringvlarr(r);break;default:t.skipField()}}return e},proto.StringArr.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.StringArr.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.StringArr.serializeBinaryToWriter=function(e,t){var r;(r=e.getStringvlarrList()).length>0&&t.writeRepeatedString(1,r)},proto.StringArr.prototype.getStringvlarrList=function(){return jspb.Message.getRepeatedField(this,1)},proto.StringArr.prototype.setStringvlarrList=function(e){jspb.Message.setField(this,1,e||[])},proto.StringArr.prototype.addStringvlarr=function(e,t){jspb.Message.addToRepeatedField(this,1,e,t)},proto.StringArr.prototype.clearStringvlarrList=function(){this.setStringvlarrList([])},proto.StyleKey=function(e){jspb.Message.initialize(this,e,0,-1,null,null)},goog.inherits(proto.StyleKey,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.StyleKey.displayName="proto.StyleKey"),jspb.Message.GENERATE_TO_OBJECT&&(proto.StyleKey.prototype.toObject=function(e){return proto.StyleKey.toObject(e,this)},proto.StyleKey.toObject=function(e,t){var r={index:jspb.Message.getFieldWithDefault(t,1,0),value:jspb.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.StyleKey.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.StyleKey;return proto.StyleKey.deserializeBinaryFromReader(r,t)},proto.StyleKey.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setIndex(r);break;case 2:r=t.readString();e.setValue(r);break;default:t.skipField()}}return e},proto.StyleKey.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.StyleKey.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.StyleKey.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getIndex())&&t.writeInt32(1,r),(r=e.getValue()).length>0&&t.writeString(2,r)},proto.StyleKey.prototype.getIndex=function(){return jspb.Message.getFieldWithDefault(this,1,0)},proto.StyleKey.prototype.setIndex=function(e){jspb.Message.setProto3IntField(this,1,e)},proto.StyleKey.prototype.getValue=function(){return jspb.Message.getFieldWithDefault(this,2,"")},proto.StyleKey.prototype.setValue=function(e){jspb.Message.setProto3StringField(this,2,e)},proto.OneStyleValue=function(e){jspb.Message.initialize(this,e,0,-1,null,proto.OneStyleValue.oneofGroups_)},goog.inherits(proto.OneStyleValue,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.OneStyleValue.displayName="proto.OneStyleValue"),proto.OneStyleValue.oneofGroups_=[[2,3,4,5,6,7,8]],proto.OneStyleValue.ValueCase={VALUE_NOT_SET:0,INT32VL:2,BOOLVL:3,FUNCID:4,DOUBLEVL:5,STRINGVL:6,STRINGARR:7,STYLEVLARR:8},proto.OneStyleValue.prototype.getValueCase=function(){return jspb.Message.computeOneofCase(this,proto.OneStyleValue.oneofGroups_[0])},jspb.Message.GENERATE_TO_OBJECT&&(proto.OneStyleValue.prototype.toObject=function(e){return proto.OneStyleValue.toObject(e,this)},proto.OneStyleValue.toObject=function(e,t){var r,o={key:(r=t.getKey())&&proto.StyleKey.toObject(e,r),int32vl:jspb.Message.getFieldWithDefault(t,2,0),boolvl:jspb.Message.getFieldWithDefault(t,3,!1),funcid:jspb.Message.getFieldWithDefault(t,4,0),doublevl:+jspb.Message.getFieldWithDefault(t,5,0),stringvl:jspb.Message.getFieldWithDefault(t,6,""),stringarr:(r=t.getStringarr())&&proto.StringArr.toObject(e,r),stylevlarr:(r=t.getStylevlarr())&&proto.StyleValueArr.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.OneStyleValue.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.OneStyleValue;return proto.OneStyleValue.deserializeBinaryFromReader(r,t)},proto.OneStyleValue.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.StyleKey;t.readMessage(r,proto.StyleKey.deserializeBinaryFromReader),e.setKey(r);break;case 2:r=t.readInt32();e.setInt32vl(r);break;case 3:r=t.readBool();e.setBoolvl(r);break;case 4:r=t.readInt32();e.setFuncid(r);break;case 5:r=t.readDouble();e.setDoublevl(r);break;case 6:r=t.readString();e.setStringvl(r);break;case 7:r=new proto.StringArr;t.readMessage(r,proto.StringArr.deserializeBinaryFromReader),e.setStringarr(r);break;case 8:r=new proto.StyleValueArr;t.readMessage(r,proto.StyleValueArr.deserializeBinaryFromReader),e.setStylevlarr(r);break;default:t.skipField()}}return e},proto.OneStyleValue.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.OneStyleValue.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.OneStyleValue.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getKey())&&t.writeMessage(1,r,proto.StyleKey.serializeBinaryToWriter),null!=(r=jspb.Message.getField(e,2))&&t.writeInt32(2,r),null!=(r=jspb.Message.getField(e,3))&&t.writeBool(3,r),null!=(r=jspb.Message.getField(e,4))&&t.writeInt32(4,r),null!=(r=jspb.Message.getField(e,5))&&t.writeDouble(5,r),null!=(r=jspb.Message.getField(e,6))&&t.writeString(6,r),null!=(r=e.getStringarr())&&t.writeMessage(7,r,proto.StringArr.serializeBinaryToWriter),null!=(r=e.getStylevlarr())&&t.writeMessage(8,r,proto.StyleValueArr.serializeBinaryToWriter)},proto.OneStyleValue.prototype.getKey=function(){return jspb.Message.getWrapperField(this,proto.StyleKey,1)},proto.OneStyleValue.prototype.setKey=function(e){jspb.Message.setWrapperField(this,1,e)},proto.OneStyleValue.prototype.clearKey=function(){this.setKey(void 0)},proto.OneStyleValue.prototype.hasKey=function(){return null!=jspb.Message.getField(this,1)},proto.OneStyleValue.prototype.getInt32vl=function(){return jspb.Message.getFieldWithDefault(this,2,0)},proto.OneStyleValue.prototype.setInt32vl=function(e){jspb.Message.setOneofField(this,2,proto.OneStyleValue.oneofGroups_[0],e)},proto.OneStyleValue.prototype.clearInt32vl=function(){jspb.Message.setOneofField(this,2,proto.OneStyleValue.oneofGroups_[0],void 0)},proto.OneStyleValue.prototype.hasInt32vl=function(){return null!=jspb.Message.getField(this,2)},proto.OneStyleValue.prototype.getBoolvl=function(){return jspb.Message.getFieldWithDefault(this,3,!1)},proto.OneStyleValue.prototype.setBoolvl=function(e){jspb.Message.setOneofField(this,3,proto.OneStyleValue.oneofGroups_[0],e)},proto.OneStyleValue.prototype.clearBoolvl=function(){jspb.Message.setOneofField(this,3,proto.OneStyleValue.oneofGroups_[0],void 0)},proto.OneStyleValue.prototype.hasBoolvl=function(){return null!=jspb.Message.getField(this,3)},proto.OneStyleValue.prototype.getFuncid=function(){return jspb.Message.getFieldWithDefault(this,4,0)},proto.OneStyleValue.prototype.setFuncid=function(e){jspb.Message.setOneofField(this,4,proto.OneStyleValue.oneofGroups_[0],e)},proto.OneStyleValue.prototype.clearFuncid=function(){jspb.Message.setOneofField(this,4,proto.OneStyleValue.oneofGroups_[0],void 0)},proto.OneStyleValue.prototype.hasFuncid=function(){return null!=jspb.Message.getField(this,4)},proto.OneStyleValue.prototype.getDoublevl=function(){return+jspb.Message.getFieldWithDefault(this,5,0)},proto.OneStyleValue.prototype.setDoublevl=function(e){jspb.Message.setOneofField(this,5,proto.OneStyleValue.oneofGroups_[0],e)},proto.OneStyleValue.prototype.clearDoublevl=function(){jspb.Message.setOneofField(this,5,proto.OneStyleValue.oneofGroups_[0],void 0)},proto.OneStyleValue.prototype.hasDoublevl=function(){return null!=jspb.Message.getField(this,5)},proto.OneStyleValue.prototype.getStringvl=function(){return jspb.Message.getFieldWithDefault(this,6,"")},proto.OneStyleValue.prototype.setStringvl=function(e){jspb.Message.setOneofField(this,6,proto.OneStyleValue.oneofGroups_[0],e)},proto.OneStyleValue.prototype.clearStringvl=function(){jspb.Message.setOneofField(this,6,proto.OneStyleValue.oneofGroups_[0],void 0)},proto.OneStyleValue.prototype.hasStringvl=function(){return null!=jspb.Message.getField(this,6)},proto.OneStyleValue.prototype.getStringarr=function(){return jspb.Message.getWrapperField(this,proto.StringArr,7)},proto.OneStyleValue.prototype.setStringarr=function(e){jspb.Message.setOneofWrapperField(this,7,proto.OneStyleValue.oneofGroups_[0],e)},proto.OneStyleValue.prototype.clearStringarr=function(){this.setStringarr(void 0)},proto.OneStyleValue.prototype.hasStringarr=function(){return null!=jspb.Message.getField(this,7)},proto.OneStyleValue.prototype.getStylevlarr=function(){return jspb.Message.getWrapperField(this,proto.StyleValueArr,8)},proto.OneStyleValue.prototype.setStylevlarr=function(e){jspb.Message.setOneofWrapperField(this,8,proto.OneStyleValue.oneofGroups_[0],e)},proto.OneStyleValue.prototype.clearStylevlarr=function(){this.setStylevlarr(void 0)},proto.OneStyleValue.prototype.hasStylevlarr=function(){return null!=jspb.Message.getField(this,8)},proto.StyleValueArr=function(e){jspb.Message.initialize(this,e,0,-1,proto.StyleValueArr.repeatedFields_,null)},goog.inherits(proto.StyleValueArr,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.StyleValueArr.displayName="proto.StyleValueArr"),proto.StyleValueArr.repeatedFields_=[1],jspb.Message.GENERATE_TO_OBJECT&&(proto.StyleValueArr.prototype.toObject=function(e){return proto.StyleValueArr.toObject(e,this)},proto.StyleValueArr.toObject=function(e,t){var r={vlarrList:jspb.Message.toObjectList(t.getVlarrList(),proto.OneStyleValue.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.StyleValueArr.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.StyleValueArr;return proto.StyleValueArr.deserializeBinaryFromReader(r,t)},proto.StyleValueArr.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.OneStyleValue;t.readMessage(r,proto.OneStyleValue.deserializeBinaryFromReader),e.addVlarr(r);break;default:t.skipField()}}return e},proto.StyleValueArr.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.StyleValueArr.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.StyleValueArr.serializeBinaryToWriter=function(e,t){var r;(r=e.getVlarrList()).length>0&&t.writeRepeatedMessage(1,r,proto.OneStyleValue.serializeBinaryToWriter)},proto.StyleValueArr.prototype.getVlarrList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.OneStyleValue,1)},proto.StyleValueArr.prototype.setVlarrList=function(e){jspb.Message.setRepeatedWrapperField(this,1,e)},proto.StyleValueArr.prototype.addVlarr=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,1,e,proto.OneStyleValue,t)},proto.StyleValueArr.prototype.clearVlarrList=function(){this.setVlarrList([])},proto.CssCell=function(e){jspb.Message.initialize(this,e,0,-1,proto.CssCell.repeatedFields_,null)},goog.inherits(proto.CssCell,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.CssCell.displayName="proto.CssCell"),proto.CssCell.repeatedFields_=[3],jspb.Message.GENERATE_TO_OBJECT&&(proto.CssCell.prototype.toObject=function(e){return proto.CssCell.toObject(e,this)},proto.CssCell.toObject=function(e,t){var r={id:jspb.Message.getFieldWithDefault(t,1,0),name:jspb.Message.getFieldWithDefault(t,2,""),stylearrList:jspb.Message.toObjectList(t.getStylearrList(),proto.OneStyleValue.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.CssCell.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.CssCell;return proto.CssCell.deserializeBinaryFromReader(r,t)},proto.CssCell.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setId(r);break;case 2:r=t.readString();e.setName(r);break;case 3:r=new proto.OneStyleValue;t.readMessage(r,proto.OneStyleValue.deserializeBinaryFromReader),e.addStylearr(r);break;default:t.skipField()}}return e},proto.CssCell.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.CssCell.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.CssCell.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getId())&&t.writeInt32(1,r),(r=e.getName()).length>0&&t.writeString(2,r),(r=e.getStylearrList()).length>0&&t.writeRepeatedMessage(3,r,proto.OneStyleValue.serializeBinaryToWriter)},proto.CssCell.prototype.getId=function(){return jspb.Message.getFieldWithDefault(this,1,0)},proto.CssCell.prototype.setId=function(e){jspb.Message.setProto3IntField(this,1,e)},proto.CssCell.prototype.getName=function(){return jspb.Message.getFieldWithDefault(this,2,"")},proto.CssCell.prototype.setName=function(e){jspb.Message.setProto3StringField(this,2,e)},proto.CssCell.prototype.getStylearrList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.OneStyleValue,3)},proto.CssCell.prototype.setStylearrList=function(e){jspb.Message.setRepeatedWrapperField(this,3,e)},proto.CssCell.prototype.addStylearr=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,3,e,proto.OneStyleValue,t)},proto.CssCell.prototype.clearStylearrList=function(){this.setStylearrList([])},proto.TemplateCE=function(e){jspb.Message.initialize(this,e,0,-1,proto.TemplateCE.repeatedFields_,null)},goog.inherits(proto.TemplateCE,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.TemplateCE.displayName="proto.TemplateCE"),proto.TemplateCE.repeatedFields_=[2],jspb.Message.GENERATE_TO_OBJECT&&(proto.TemplateCE.prototype.toObject=function(e){return proto.TemplateCE.toObject(e,this)},proto.TemplateCE.toObject=function(e,t){var r={tag:jspb.Message.getFieldWithDefault(t,1,""),optsarrList:jspb.Message.toObjectList(t.getOptsarrList(),proto.OneStyleValue.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.TemplateCE.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.TemplateCE;return proto.TemplateCE.deserializeBinaryFromReader(r,t)},proto.TemplateCE.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setTag(r);break;case 2:r=new proto.OneStyleValue;t.readMessage(r,proto.OneStyleValue.deserializeBinaryFromReader),e.addOptsarr(r);break;default:t.skipField()}}return e},proto.TemplateCE.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.TemplateCE.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.TemplateCE.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getTag()).length>0&&t.writeString(1,r),(r=e.getOptsarrList()).length>0&&t.writeRepeatedMessage(2,r,proto.OneStyleValue.serializeBinaryToWriter)},proto.TemplateCE.prototype.getTag=function(){return jspb.Message.getFieldWithDefault(this,1,"")},proto.TemplateCE.prototype.setTag=function(e){jspb.Message.setProto3StringField(this,1,e)},proto.TemplateCE.prototype.getOptsarrList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.OneStyleValue,2)},proto.TemplateCE.prototype.setOptsarrList=function(e){jspb.Message.setRepeatedWrapperField(this,2,e)},proto.TemplateCE.prototype.addOptsarr=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,2,e,proto.OneStyleValue,t)},proto.TemplateCE.prototype.clearOptsarrList=function(){this.setOptsarrList([])},proto.TemplateCI=function(e){jspb.Message.initialize(this,e,0,-1,proto.TemplateCI.repeatedFields_,null)},goog.inherits(proto.TemplateCI,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.TemplateCI.displayName="proto.TemplateCI"),proto.TemplateCI.repeatedFields_=[3],jspb.Message.GENERATE_TO_OBJECT&&(proto.TemplateCI.prototype.toObject=function(e){return proto.TemplateCI.toObject(e,this)},proto.TemplateCI.toObject=function(e,t){var r={shownid:jspb.Message.getFieldWithDefault(t,1,0),funcrender:jspb.Message.getFieldWithDefault(t,2,0),templaterenderList:jspb.Message.toObjectList(t.getTemplaterenderList(),proto.TemplateOne.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.TemplateCI.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.TemplateCI;return proto.TemplateCI.deserializeBinaryFromReader(r,t)},proto.TemplateCI.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setShownid(r);break;case 2:r=t.readInt32();e.setFuncrender(r);break;case 3:r=new proto.TemplateOne;t.readMessage(r,proto.TemplateOne.deserializeBinaryFromReader),e.addTemplaterender(r);break;default:t.skipField()}}return e},proto.TemplateCI.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.TemplateCI.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.TemplateCI.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getShownid())&&t.writeInt32(1,r),0!==(r=e.getFuncrender())&&t.writeInt32(2,r),(r=e.getTemplaterenderList()).length>0&&t.writeRepeatedMessage(3,r,proto.TemplateOne.serializeBinaryToWriter)},proto.TemplateCI.prototype.getShownid=function(){return jspb.Message.getFieldWithDefault(this,1,0)},proto.TemplateCI.prototype.setShownid=function(e){jspb.Message.setProto3IntField(this,1,e)},proto.TemplateCI.prototype.getFuncrender=function(){return jspb.Message.getFieldWithDefault(this,2,0)},proto.TemplateCI.prototype.setFuncrender=function(e){jspb.Message.setProto3IntField(this,2,e)},proto.TemplateCI.prototype.getTemplaterenderList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.TemplateOne,3)},proto.TemplateCI.prototype.setTemplaterenderList=function(e){jspb.Message.setRepeatedWrapperField(this,3,e)},proto.TemplateCI.prototype.addTemplaterender=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,3,e,proto.TemplateOne,t)},proto.TemplateCI.prototype.clearTemplaterenderList=function(){this.setTemplaterenderList([])},proto.TemplateCF=function(e){jspb.Message.initialize(this,e,0,-1,proto.TemplateCF.repeatedFields_,null)},goog.inherits(proto.TemplateCF,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.TemplateCF.displayName="proto.TemplateCF"),proto.TemplateCF.repeatedFields_=[5],jspb.Message.GENERATE_TO_OBJECT&&(proto.TemplateCF.prototype.toObject=function(e){return proto.TemplateCF.toObject(e,this)},proto.TemplateCF.toObject=function(e,t){var r,o={expid:jspb.Message.getFieldWithDefault(t,1,0),key:(r=t.getKey())&&proto.OneStyleValue.toObject(e,r),value:(r=t.getValue())&&proto.OneStyleValue.toObject(e,r),funcrender:jspb.Message.getFieldWithDefault(t,4,0),templaterenderList:jspb.Message.toObjectList(t.getTemplaterenderList(),proto.TemplateOne.toObject,e)};return e&&(o.$jspbMessageInstance=t),o}),proto.TemplateCF.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.TemplateCF;return proto.TemplateCF.deserializeBinaryFromReader(r,t)},proto.TemplateCF.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setExpid(r);break;case 2:r=new proto.OneStyleValue;t.readMessage(r,proto.OneStyleValue.deserializeBinaryFromReader),e.setKey(r);break;case 3:r=new proto.OneStyleValue;t.readMessage(r,proto.OneStyleValue.deserializeBinaryFromReader),e.setValue(r);break;case 4:r=t.readInt32();e.setFuncrender(r);break;case 5:r=new proto.TemplateOne;t.readMessage(r,proto.TemplateOne.deserializeBinaryFromReader),e.addTemplaterender(r);break;default:t.skipField()}}return e},proto.TemplateCF.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.TemplateCF.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.TemplateCF.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getExpid())&&t.writeInt32(1,r),null!=(r=e.getKey())&&t.writeMessage(2,r,proto.OneStyleValue.serializeBinaryToWriter),null!=(r=e.getValue())&&t.writeMessage(3,r,proto.OneStyleValue.serializeBinaryToWriter),0!==(r=e.getFuncrender())&&t.writeInt32(4,r),(r=e.getTemplaterenderList()).length>0&&t.writeRepeatedMessage(5,r,proto.TemplateOne.serializeBinaryToWriter)},proto.TemplateCF.prototype.getExpid=function(){return jspb.Message.getFieldWithDefault(this,1,0)},proto.TemplateCF.prototype.setExpid=function(e){jspb.Message.setProto3IntField(this,1,e)},proto.TemplateCF.prototype.getKey=function(){return jspb.Message.getWrapperField(this,proto.OneStyleValue,2)},proto.TemplateCF.prototype.setKey=function(e){jspb.Message.setWrapperField(this,2,e)},proto.TemplateCF.prototype.clearKey=function(){this.setKey(void 0)},proto.TemplateCF.prototype.hasKey=function(){return null!=jspb.Message.getField(this,2)},proto.TemplateCF.prototype.getValue=function(){return jspb.Message.getWrapperField(this,proto.OneStyleValue,3)},proto.TemplateCF.prototype.setValue=function(e){jspb.Message.setWrapperField(this,3,e)},proto.TemplateCF.prototype.clearValue=function(){this.setValue(void 0)},proto.TemplateCF.prototype.hasValue=function(){return null!=jspb.Message.getField(this,3)},proto.TemplateCF.prototype.getFuncrender=function(){return jspb.Message.getFieldWithDefault(this,4,0)},proto.TemplateCF.prototype.setFuncrender=function(e){jspb.Message.setProto3IntField(this,4,e)},proto.TemplateCF.prototype.getTemplaterenderList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.TemplateOne,5)},proto.TemplateCF.prototype.setTemplaterenderList=function(e){jspb.Message.setRepeatedWrapperField(this,5,e)},proto.TemplateCF.prototype.addTemplaterender=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,5,e,proto.TemplateOne,t)},proto.TemplateCF.prototype.clearTemplaterenderList=function(){this.setTemplaterenderList([])},proto.TemplateCC=function(e){jspb.Message.initialize(this,e,0,-1,proto.TemplateCC.repeatedFields_,null)},goog.inherits(proto.TemplateCC,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.TemplateCC.displayName="proto.TemplateCC"),proto.TemplateCC.repeatedFields_=[3],jspb.Message.GENERATE_TO_OBJECT&&(proto.TemplateCC.prototype.toObject=function(e){return proto.TemplateCC.toObject(e,this)},proto.TemplateCC.toObject=function(e,t){var r={tag:jspb.Message.getFieldWithDefault(t,1,""),exportarrid:jspb.Message.getFieldWithDefault(t,2,0),optsarrList:jspb.Message.toObjectList(t.getOptsarrList(),proto.OneStyleValue.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.TemplateCC.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.TemplateCC;return proto.TemplateCC.deserializeBinaryFromReader(r,t)},proto.TemplateCC.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setTag(r);break;case 2:r=t.readInt32();e.setExportarrid(r);break;case 3:r=new proto.OneStyleValue;t.readMessage(r,proto.OneStyleValue.deserializeBinaryFromReader),e.addOptsarr(r);break;default:t.skipField()}}return e},proto.TemplateCC.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.TemplateCC.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.TemplateCC.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getTag()).length>0&&t.writeString(1,r),0!==(r=e.getExportarrid())&&t.writeInt32(2,r),(r=e.getOptsarrList()).length>0&&t.writeRepeatedMessage(3,r,proto.OneStyleValue.serializeBinaryToWriter)},proto.TemplateCC.prototype.getTag=function(){return jspb.Message.getFieldWithDefault(this,1,"")},proto.TemplateCC.prototype.setTag=function(e){jspb.Message.setProto3StringField(this,1,e)},proto.TemplateCC.prototype.getExportarrid=function(){return jspb.Message.getFieldWithDefault(this,2,0)},proto.TemplateCC.prototype.setExportarrid=function(e){jspb.Message.setProto3IntField(this,2,e)},proto.TemplateCC.prototype.getOptsarrList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.OneStyleValue,3)},proto.TemplateCC.prototype.setOptsarrList=function(e){jspb.Message.setRepeatedWrapperField(this,3,e)},proto.TemplateCC.prototype.addOptsarr=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,3,e,proto.OneStyleValue,t)},proto.TemplateCC.prototype.clearOptsarrList=function(){this.setOptsarrList([])},proto.TemplateOne=function(e){jspb.Message.initialize(this,e,0,-1,proto.TemplateOne.repeatedFields_,proto.TemplateOne.oneofGroups_)},goog.inherits(proto.TemplateOne,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.TemplateOne.displayName="proto.TemplateOne"),proto.TemplateOne.repeatedFields_=[6],proto.TemplateOne.oneofGroups_=[[1,2,3,4]],proto.TemplateOne.ValueCase={VALUE_NOT_SET:0,__CE__:1,__CI__:2,__CF__:3,__CC__:4},proto.TemplateOne.prototype.getValueCase=function(){return jspb.Message.computeOneofCase(this,proto.TemplateOne.oneofGroups_[0])},jspb.Message.GENERATE_TO_OBJECT&&(proto.TemplateOne.prototype.toObject=function(e){return proto.TemplateOne.toObject(e,this)},proto.TemplateOne.toObject=function(e,t){var r,o={ce:(r=t.getCe())&&proto.TemplateCE.toObject(e,r),ci:(r=t.getCi())&&proto.TemplateCI.toObject(e,r),cf:(r=t.getCf())&&proto.TemplateCF.toObject(e,r),cc:(r=t.getCc())&&proto.TemplateCC.toObject(e,r),id:jspb.Message.getFieldWithDefault(t,5,0),chldsidList:jspb.Message.getRepeatedField(t,6)};return e&&(o.$jspbMessageInstance=t),o}),proto.TemplateOne.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.TemplateOne;return proto.TemplateOne.deserializeBinaryFromReader(r,t)},proto.TemplateOne.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.TemplateCE;t.readMessage(r,proto.TemplateCE.deserializeBinaryFromReader),e.setCe(r);break;case 2:r=new proto.TemplateCI;t.readMessage(r,proto.TemplateCI.deserializeBinaryFromReader),e.setCi(r);break;case 3:r=new proto.TemplateCF;t.readMessage(r,proto.TemplateCF.deserializeBinaryFromReader),e.setCf(r);break;case 4:r=new proto.TemplateCC;t.readMessage(r,proto.TemplateCC.deserializeBinaryFromReader),e.setCc(r);break;case 5:r=t.readInt32();e.setId(r);break;case 6:r=t.readPackedInt32();e.setChldsidList(r);break;default:t.skipField()}}return e},proto.TemplateOne.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.TemplateOne.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.TemplateOne.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getCe())&&t.writeMessage(1,r,proto.TemplateCE.serializeBinaryToWriter),null!=(r=e.getCi())&&t.writeMessage(2,r,proto.TemplateCI.serializeBinaryToWriter),null!=(r=e.getCf())&&t.writeMessage(3,r,proto.TemplateCF.serializeBinaryToWriter),null!=(r=e.getCc())&&t.writeMessage(4,r,proto.TemplateCC.serializeBinaryToWriter),0!==(r=e.getId())&&t.writeInt32(5,r),(r=e.getChldsidList()).length>0&&t.writePackedInt32(6,r)},proto.TemplateOne.prototype.getCe=function(){return jspb.Message.getWrapperField(this,proto.TemplateCE,1)},proto.TemplateOne.prototype.setCe=function(e){jspb.Message.setOneofWrapperField(this,1,proto.TemplateOne.oneofGroups_[0],e)},proto.TemplateOne.prototype.clearCe=function(){this.setCe(void 0)},proto.TemplateOne.prototype.hasCe=function(){return null!=jspb.Message.getField(this,1)},proto.TemplateOne.prototype.getCi=function(){return jspb.Message.getWrapperField(this,proto.TemplateCI,2)},proto.TemplateOne.prototype.setCi=function(e){jspb.Message.setOneofWrapperField(this,2,proto.TemplateOne.oneofGroups_[0],e)},proto.TemplateOne.prototype.clearCi=function(){this.setCi(void 0)},proto.TemplateOne.prototype.hasCi=function(){return null!=jspb.Message.getField(this,2)},proto.TemplateOne.prototype.getCf=function(){return jspb.Message.getWrapperField(this,proto.TemplateCF,3)},proto.TemplateOne.prototype.setCf=function(e){jspb.Message.setOneofWrapperField(this,3,proto.TemplateOne.oneofGroups_[0],e)},proto.TemplateOne.prototype.clearCf=function(){this.setCf(void 0)},proto.TemplateOne.prototype.hasCf=function(){return null!=jspb.Message.getField(this,3)},proto.TemplateOne.prototype.getCc=function(){return jspb.Message.getWrapperField(this,proto.TemplateCC,4)},proto.TemplateOne.prototype.setCc=function(e){jspb.Message.setOneofWrapperField(this,4,proto.TemplateOne.oneofGroups_[0],e)},proto.TemplateOne.prototype.clearCc=function(){this.setCc(void 0)},proto.TemplateOne.prototype.hasCc=function(){return null!=jspb.Message.getField(this,4)},proto.TemplateOne.prototype.getId=function(){return jspb.Message.getFieldWithDefault(this,5,0)},proto.TemplateOne.prototype.setId=function(e){jspb.Message.setProto3IntField(this,5,e)},proto.TemplateOne.prototype.getChldsidList=function(){return jspb.Message.getRepeatedField(this,6)},proto.TemplateOne.prototype.setChldsidList=function(e){jspb.Message.setField(this,6,e||[])},proto.TemplateOne.prototype.addChldsid=function(e,t){jspb.Message.addToRepeatedField(this,6,e,t)},proto.TemplateOne.prototype.clearChldsidList=function(){this.setChldsidList([])},proto.ExportCell=function(e){jspb.Message.initialize(this,e,0,-1,proto.ExportCell.repeatedFields_,null)},goog.inherits(proto.ExportCell,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.ExportCell.displayName="proto.ExportCell"),proto.ExportCell.repeatedFields_=[2,3],jspb.Message.GENERATE_TO_OBJECT&&(proto.ExportCell.prototype.toObject=function(e){return proto.ExportCell.toObject(e,this)},proto.ExportCell.toObject=function(e,t){var r={tagname:jspb.Message.getFieldWithDefault(t,1,""),cssarrList:jspb.Message.toObjectList(t.getCssarrList(),proto.CssCell.toObject,e),templatearrList:jspb.Message.toObjectList(t.getTemplatearrList(),proto.TemplateOne.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.ExportCell.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.ExportCell;return proto.ExportCell.deserializeBinaryFromReader(r,t)},proto.ExportCell.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setTagname(r);break;case 2:r=new proto.CssCell;t.readMessage(r,proto.CssCell.deserializeBinaryFromReader),e.addCssarr(r);break;case 3:r=new proto.TemplateOne;t.readMessage(r,proto.TemplateOne.deserializeBinaryFromReader),e.addTemplatearr(r);break;default:t.skipField()}}return e},proto.ExportCell.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.ExportCell.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.ExportCell.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getTagname()).length>0&&t.writeString(1,r),(r=e.getCssarrList()).length>0&&t.writeRepeatedMessage(2,r,proto.CssCell.serializeBinaryToWriter),(r=e.getTemplatearrList()).length>0&&t.writeRepeatedMessage(3,r,proto.TemplateOne.serializeBinaryToWriter)},proto.ExportCell.prototype.getTagname=function(){return jspb.Message.getFieldWithDefault(this,1,"")},proto.ExportCell.prototype.setTagname=function(e){jspb.Message.setProto3StringField(this,1,e)},proto.ExportCell.prototype.getCssarrList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.CssCell,2)},proto.ExportCell.prototype.setCssarrList=function(e){jspb.Message.setRepeatedWrapperField(this,2,e)},proto.ExportCell.prototype.addCssarr=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,2,e,proto.CssCell,t)},proto.ExportCell.prototype.clearCssarrList=function(){this.setCssarrList([])},proto.ExportCell.prototype.getTemplatearrList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.TemplateOne,3)},proto.ExportCell.prototype.setTemplatearrList=function(e){jspb.Message.setRepeatedWrapperField(this,3,e)},proto.ExportCell.prototype.addTemplatearr=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,3,e,proto.TemplateOne,t)},proto.ExportCell.prototype.clearTemplatearrList=function(){this.setTemplatearrList([])},proto.Version=function(e){jspb.Message.initialize(this,e,0,-1,null,null)},goog.inherits(proto.Version,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.Version.displayName="proto.Version"),jspb.Message.GENERATE_TO_OBJECT&&(proto.Version.prototype.toObject=function(e){return proto.Version.toObject(e,this)},proto.Version.toObject=function(e,t){var r={versionname:jspb.Message.getFieldWithDefault(t,1,""),versioncode:jspb.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.Version.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.Version;return proto.Version.deserializeBinaryFromReader(r,t)},proto.Version.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setVersionname(r);break;case 2:r=t.readInt32();e.setVersioncode(r);break;default:t.skipField()}}return e},proto.Version.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.Version.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.Version.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getVersionname()).length>0&&t.writeString(1,r),0!==(r=e.getVersioncode())&&t.writeInt32(2,r)},proto.Version.prototype.getVersionname=function(){return jspb.Message.getFieldWithDefault(this,1,"")},proto.Version.prototype.setVersionname=function(e){jspb.Message.setProto3StringField(this,1,e)},proto.Version.prototype.getVersioncode=function(){return jspb.Message.getFieldWithDefault(this,2,0)},proto.Version.prototype.setVersioncode=function(e){jspb.Message.setProto3IntField(this,2,e)},proto.ExportArr=function(e){jspb.Message.initialize(this,e,0,-1,proto.ExportArr.repeatedFields_,null)},goog.inherits(proto.ExportArr,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.ExportArr.displayName="proto.ExportArr"),proto.ExportArr.repeatedFields_=[2],jspb.Message.GENERATE_TO_OBJECT&&(proto.ExportArr.prototype.toObject=function(e){return proto.ExportArr.toObject(e,this)},proto.ExportArr.toObject=function(e,t){var r,o={ver:(r=t.getVer())&&proto.Version.toObject(e,r),valuearrList:jspb.Message.toObjectList(t.getValuearrList(),proto.ExportCell.toObject,e)};return e&&(o.$jspbMessageInstance=t),o}),proto.ExportArr.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.ExportArr;return proto.ExportArr.deserializeBinaryFromReader(r,t)},proto.ExportArr.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.Version;t.readMessage(r,proto.Version.deserializeBinaryFromReader),e.setVer(r);break;case 2:r=new proto.ExportCell;t.readMessage(r,proto.ExportCell.deserializeBinaryFromReader),e.addValuearr(r);break;default:t.skipField()}}return e},proto.ExportArr.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.ExportArr.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.ExportArr.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getVer())&&t.writeMessage(1,r,proto.Version.serializeBinaryToWriter),(r=e.getValuearrList()).length>0&&t.writeRepeatedMessage(2,r,proto.ExportCell.serializeBinaryToWriter)},proto.ExportArr.prototype.getVer=function(){return jspb.Message.getWrapperField(this,proto.Version,1)},proto.ExportArr.prototype.setVer=function(e){jspb.Message.setWrapperField(this,1,e)},proto.ExportArr.prototype.clearVer=function(){this.setVer(void 0)},proto.ExportArr.prototype.hasVer=function(){return null!=jspb.Message.getField(this,1)},proto.ExportArr.prototype.getValuearrList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.ExportCell,2)},proto.ExportArr.prototype.setValuearrList=function(e){jspb.Message.setRepeatedWrapperField(this,2,e)},proto.ExportArr.prototype.addValuearr=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,2,e,proto.ExportCell,t)},proto.ExportArr.prototype.clearValuearrList=function(){this.setValuearrList([])},goog.object.extend(exports,proto);
1
+ "use strict";
2
+
3
+ /**
4
+ * @fileoverview
5
+ * @enhanceable
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ var jspb = require('google-protobuf');
13
+ var goog = jspb;
14
+ var global = Function('return this')();
15
+ goog.exportSymbol('proto.CssCell', null, global);
16
+ goog.exportSymbol('proto.ExportArr', null, global);
17
+ goog.exportSymbol('proto.ExportCell', null, global);
18
+ goog.exportSymbol('proto.OneStyleValue', null, global);
19
+ goog.exportSymbol('proto.StringArr', null, global);
20
+ goog.exportSymbol('proto.StyleKey', null, global);
21
+ goog.exportSymbol('proto.StyleValueArr', null, global);
22
+ goog.exportSymbol('proto.TemplateCC', null, global);
23
+ goog.exportSymbol('proto.TemplateCE', null, global);
24
+ goog.exportSymbol('proto.TemplateCF', null, global);
25
+ goog.exportSymbol('proto.TemplateCI', null, global);
26
+ goog.exportSymbol('proto.TemplateOne', null, global);
27
+ goog.exportSymbol('proto.Version', null, global);
28
+
29
+ /**
30
+ * Generated by JsPbCodeGenerator.
31
+ * @param {Array=} opt_data Optional initial data array, typically from a
32
+ * server response, or constructed directly in Javascript. The array is used
33
+ * in place and becomes part of the constructed object. It is not cloned.
34
+ * If no data is provided, the constructed object will be empty, but still
35
+ * valid.
36
+ * @extends {jspb.Message}
37
+ * @constructor
38
+ */
39
+ proto.StringArr = function (opt_data) {
40
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.StringArr.repeatedFields_, null);
41
+ };
42
+ goog.inherits(proto.StringArr, jspb.Message);
43
+ if (goog.DEBUG && !COMPILED) {
44
+ proto.StringArr.displayName = 'proto.StringArr';
45
+ }
46
+ /**
47
+ * List of repeated fields within this message type.
48
+ * @private {!Array<number>}
49
+ * @const
50
+ */
51
+ proto.StringArr.repeatedFields_ = [1];
52
+ if (jspb.Message.GENERATE_TO_OBJECT) {
53
+ /**
54
+ * Creates an object representation of this proto suitable for use in Soy templates.
55
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
57
+ * For the list of reserved names please see:
58
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
59
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
60
+ * for transitional soy proto support: http://goto/soy-param-migration
61
+ * @return {!Object}
62
+ */
63
+ proto.StringArr.prototype.toObject = function (opt_includeInstance) {
64
+ return proto.StringArr.toObject(opt_includeInstance, this);
65
+ };
66
+
67
+ /**
68
+ * Static version of the {@see toObject} method.
69
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
70
+ * instance for transitional soy proto support:
71
+ * http://goto/soy-param-migration
72
+ * @param {!proto.StringArr} msg The msg instance to transform.
73
+ * @return {!Object}
74
+ * @suppress {unusedLocalVariables} f is only used for nested messages
75
+ */
76
+ proto.StringArr.toObject = function (includeInstance, msg) {
77
+ var f,
78
+ obj = {
79
+ stringvlarrList: jspb.Message.getRepeatedField(msg, 1)
80
+ };
81
+ if (includeInstance) {
82
+ obj.$jspbMessageInstance = msg;
83
+ }
84
+ return obj;
85
+ };
86
+ }
87
+
88
+ /**
89
+ * Deserializes binary data (in protobuf wire format).
90
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
91
+ * @return {!proto.StringArr}
92
+ */
93
+ proto.StringArr.deserializeBinary = function (bytes) {
94
+ var reader = new jspb.BinaryReader(bytes);
95
+ var msg = new proto.StringArr();
96
+ return proto.StringArr.deserializeBinaryFromReader(msg, reader);
97
+ };
98
+
99
+ /**
100
+ * Deserializes binary data (in protobuf wire format) from the
101
+ * given reader into the given message object.
102
+ * @param {!proto.StringArr} msg The message object to deserialize into.
103
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
104
+ * @return {!proto.StringArr}
105
+ */
106
+ proto.StringArr.deserializeBinaryFromReader = function (msg, reader) {
107
+ while (reader.nextField()) {
108
+ if (reader.isEndGroup()) {
109
+ break;
110
+ }
111
+ var field = reader.getFieldNumber();
112
+ switch (field) {
113
+ case 1:
114
+ var value = /** @type {string} */reader.readString();
115
+ msg.addStringvlarr(value);
116
+ break;
117
+ default:
118
+ reader.skipField();
119
+ break;
120
+ }
121
+ }
122
+ return msg;
123
+ };
124
+
125
+ /**
126
+ * Serializes the message to binary data (in protobuf wire format).
127
+ * @return {!Uint8Array}
128
+ */
129
+ proto.StringArr.prototype.serializeBinary = function () {
130
+ var writer = new jspb.BinaryWriter();
131
+ proto.StringArr.serializeBinaryToWriter(this, writer);
132
+ return writer.getResultBuffer();
133
+ };
134
+
135
+ /**
136
+ * Serializes the given message to binary data (in protobuf wire
137
+ * format), writing to the given BinaryWriter.
138
+ * @param {!proto.StringArr} message
139
+ * @param {!jspb.BinaryWriter} writer
140
+ * @suppress {unusedLocalVariables} f is only used for nested messages
141
+ */
142
+ proto.StringArr.serializeBinaryToWriter = function (message, writer) {
143
+ var f = undefined;
144
+ f = message.getStringvlarrList();
145
+ if (f.length > 0) {
146
+ writer.writeRepeatedString(1, f);
147
+ }
148
+ };
149
+
150
+ /**
151
+ * repeated string stringVlArr = 1;
152
+ * @return {!Array<string>}
153
+ */
154
+ proto.StringArr.prototype.getStringvlarrList = function () {
155
+ return (/** @type {!Array<string>} */jspb.Message.getRepeatedField(this, 1)
156
+ );
157
+ };
158
+
159
+ /** @param {!Array<string>} value */
160
+ proto.StringArr.prototype.setStringvlarrList = function (value) {
161
+ jspb.Message.setField(this, 1, value || []);
162
+ };
163
+
164
+ /**
165
+ * @param {!string} value
166
+ * @param {number=} opt_index
167
+ */
168
+ proto.StringArr.prototype.addStringvlarr = function (value, opt_index) {
169
+ jspb.Message.addToRepeatedField(this, 1, value, opt_index);
170
+ };
171
+ proto.StringArr.prototype.clearStringvlarrList = function () {
172
+ this.setStringvlarrList([]);
173
+ };
174
+
175
+ /**
176
+ * Generated by JsPbCodeGenerator.
177
+ * @param {Array=} opt_data Optional initial data array, typically from a
178
+ * server response, or constructed directly in Javascript. The array is used
179
+ * in place and becomes part of the constructed object. It is not cloned.
180
+ * If no data is provided, the constructed object will be empty, but still
181
+ * valid.
182
+ * @extends {jspb.Message}
183
+ * @constructor
184
+ */
185
+ proto.StyleKey = function (opt_data) {
186
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
187
+ };
188
+ goog.inherits(proto.StyleKey, jspb.Message);
189
+ if (goog.DEBUG && !COMPILED) {
190
+ proto.StyleKey.displayName = 'proto.StyleKey';
191
+ }
192
+ if (jspb.Message.GENERATE_TO_OBJECT) {
193
+ /**
194
+ * Creates an object representation of this proto suitable for use in Soy templates.
195
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
196
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
197
+ * For the list of reserved names please see:
198
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
199
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
200
+ * for transitional soy proto support: http://goto/soy-param-migration
201
+ * @return {!Object}
202
+ */
203
+ proto.StyleKey.prototype.toObject = function (opt_includeInstance) {
204
+ return proto.StyleKey.toObject(opt_includeInstance, this);
205
+ };
206
+
207
+ /**
208
+ * Static version of the {@see toObject} method.
209
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
210
+ * instance for transitional soy proto support:
211
+ * http://goto/soy-param-migration
212
+ * @param {!proto.StyleKey} msg The msg instance to transform.
213
+ * @return {!Object}
214
+ * @suppress {unusedLocalVariables} f is only used for nested messages
215
+ */
216
+ proto.StyleKey.toObject = function (includeInstance, msg) {
217
+ var f,
218
+ obj = {
219
+ index: jspb.Message.getFieldWithDefault(msg, 1, 0),
220
+ value: jspb.Message.getFieldWithDefault(msg, 2, '')
221
+ };
222
+ if (includeInstance) {
223
+ obj.$jspbMessageInstance = msg;
224
+ }
225
+ return obj;
226
+ };
227
+ }
228
+
229
+ /**
230
+ * Deserializes binary data (in protobuf wire format).
231
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
232
+ * @return {!proto.StyleKey}
233
+ */
234
+ proto.StyleKey.deserializeBinary = function (bytes) {
235
+ var reader = new jspb.BinaryReader(bytes);
236
+ var msg = new proto.StyleKey();
237
+ return proto.StyleKey.deserializeBinaryFromReader(msg, reader);
238
+ };
239
+
240
+ /**
241
+ * Deserializes binary data (in protobuf wire format) from the
242
+ * given reader into the given message object.
243
+ * @param {!proto.StyleKey} msg The message object to deserialize into.
244
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
245
+ * @return {!proto.StyleKey}
246
+ */
247
+ proto.StyleKey.deserializeBinaryFromReader = function (msg, reader) {
248
+ while (reader.nextField()) {
249
+ if (reader.isEndGroup()) {
250
+ break;
251
+ }
252
+ var field = reader.getFieldNumber();
253
+ switch (field) {
254
+ case 1:
255
+ var value = /** @type {number} */reader.readInt32();
256
+ msg.setIndex(value);
257
+ break;
258
+ case 2:
259
+ var value = /** @type {string} */reader.readString();
260
+ msg.setValue(value);
261
+ break;
262
+ default:
263
+ reader.skipField();
264
+ break;
265
+ }
266
+ }
267
+ return msg;
268
+ };
269
+
270
+ /**
271
+ * Serializes the message to binary data (in protobuf wire format).
272
+ * @return {!Uint8Array}
273
+ */
274
+ proto.StyleKey.prototype.serializeBinary = function () {
275
+ var writer = new jspb.BinaryWriter();
276
+ proto.StyleKey.serializeBinaryToWriter(this, writer);
277
+ return writer.getResultBuffer();
278
+ };
279
+
280
+ /**
281
+ * Serializes the given message to binary data (in protobuf wire
282
+ * format), writing to the given BinaryWriter.
283
+ * @param {!proto.StyleKey} message
284
+ * @param {!jspb.BinaryWriter} writer
285
+ * @suppress {unusedLocalVariables} f is only used for nested messages
286
+ */
287
+ proto.StyleKey.serializeBinaryToWriter = function (message, writer) {
288
+ var f = undefined;
289
+ f = message.getIndex();
290
+ if (f !== 0) {
291
+ writer.writeInt32(1, f);
292
+ }
293
+ f = message.getValue();
294
+ if (f.length > 0) {
295
+ writer.writeString(2, f);
296
+ }
297
+ };
298
+
299
+ /**
300
+ * optional int32 index = 1;
301
+ * @return {number}
302
+ */
303
+ proto.StyleKey.prototype.getIndex = function () {
304
+ return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 1, 0)
305
+ );
306
+ };
307
+
308
+ /** @param {number} value */
309
+ proto.StyleKey.prototype.setIndex = function (value) {
310
+ jspb.Message.setProto3IntField(this, 1, value);
311
+ };
312
+
313
+ /**
314
+ * optional string value = 2;
315
+ * @return {string}
316
+ */
317
+ proto.StyleKey.prototype.getValue = function () {
318
+ return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 2, '')
319
+ );
320
+ };
321
+
322
+ /** @param {string} value */
323
+ proto.StyleKey.prototype.setValue = function (value) {
324
+ jspb.Message.setProto3StringField(this, 2, value);
325
+ };
326
+
327
+ /**
328
+ * Generated by JsPbCodeGenerator.
329
+ * @param {Array=} opt_data Optional initial data array, typically from a
330
+ * server response, or constructed directly in Javascript. The array is used
331
+ * in place and becomes part of the constructed object. It is not cloned.
332
+ * If no data is provided, the constructed object will be empty, but still
333
+ * valid.
334
+ * @extends {jspb.Message}
335
+ * @constructor
336
+ */
337
+ proto.OneStyleValue = function (opt_data) {
338
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.OneStyleValue.oneofGroups_);
339
+ };
340
+ goog.inherits(proto.OneStyleValue, jspb.Message);
341
+ if (goog.DEBUG && !COMPILED) {
342
+ proto.OneStyleValue.displayName = 'proto.OneStyleValue';
343
+ }
344
+ /**
345
+ * Oneof group definitions for this message. Each group defines the field
346
+ * numbers belonging to that group. When of these fields' value is set, all
347
+ * other fields in the group are cleared. During deserialization, if multiple
348
+ * fields are encountered for a group, only the last value seen will be kept.
349
+ * @private {!Array<!Array<number>>}
350
+ * @const
351
+ */
352
+ proto.OneStyleValue.oneofGroups_ = [[2, 3, 4, 5, 6, 7, 8]];
353
+
354
+ /**
355
+ * @enum {number}
356
+ */
357
+ proto.OneStyleValue.ValueCase = {
358
+ VALUE_NOT_SET: 0,
359
+ INT32VL: 2,
360
+ BOOLVL: 3,
361
+ FUNCID: 4,
362
+ DOUBLEVL: 5,
363
+ STRINGVL: 6,
364
+ STRINGARR: 7,
365
+ STYLEVLARR: 8
366
+ };
367
+
368
+ /**
369
+ * @return {proto.OneStyleValue.ValueCase}
370
+ */
371
+ proto.OneStyleValue.prototype.getValueCase = function () {
372
+ return (/** @type {proto.OneStyleValue.ValueCase} */jspb.Message.computeOneofCase(this, proto.OneStyleValue.oneofGroups_[0])
373
+ );
374
+ };
375
+ if (jspb.Message.GENERATE_TO_OBJECT) {
376
+ /**
377
+ * Creates an object representation of this proto suitable for use in Soy templates.
378
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
379
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
380
+ * For the list of reserved names please see:
381
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
382
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
383
+ * for transitional soy proto support: http://goto/soy-param-migration
384
+ * @return {!Object}
385
+ */
386
+ proto.OneStyleValue.prototype.toObject = function (opt_includeInstance) {
387
+ return proto.OneStyleValue.toObject(opt_includeInstance, this);
388
+ };
389
+
390
+ /**
391
+ * Static version of the {@see toObject} method.
392
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
393
+ * instance for transitional soy proto support:
394
+ * http://goto/soy-param-migration
395
+ * @param {!proto.OneStyleValue} msg The msg instance to transform.
396
+ * @return {!Object}
397
+ * @suppress {unusedLocalVariables} f is only used for nested messages
398
+ */
399
+ proto.OneStyleValue.toObject = function (includeInstance, msg) {
400
+ var f,
401
+ obj = {
402
+ key: (f = msg.getKey()) && proto.StyleKey.toObject(includeInstance, f),
403
+ int32vl: jspb.Message.getFieldWithDefault(msg, 2, 0),
404
+ boolvl: jspb.Message.getFieldWithDefault(msg, 3, false),
405
+ funcid: jspb.Message.getFieldWithDefault(msg, 4, 0),
406
+ doublevl: +jspb.Message.getFieldWithDefault(msg, 5, 0.0),
407
+ stringvl: jspb.Message.getFieldWithDefault(msg, 6, ''),
408
+ stringarr: (f = msg.getStringarr()) && proto.StringArr.toObject(includeInstance, f),
409
+ stylevlarr: (f = msg.getStylevlarr()) && proto.StyleValueArr.toObject(includeInstance, f)
410
+ };
411
+ if (includeInstance) {
412
+ obj.$jspbMessageInstance = msg;
413
+ }
414
+ return obj;
415
+ };
416
+ }
417
+
418
+ /**
419
+ * Deserializes binary data (in protobuf wire format).
420
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
421
+ * @return {!proto.OneStyleValue}
422
+ */
423
+ proto.OneStyleValue.deserializeBinary = function (bytes) {
424
+ var reader = new jspb.BinaryReader(bytes);
425
+ var msg = new proto.OneStyleValue();
426
+ return proto.OneStyleValue.deserializeBinaryFromReader(msg, reader);
427
+ };
428
+
429
+ /**
430
+ * Deserializes binary data (in protobuf wire format) from the
431
+ * given reader into the given message object.
432
+ * @param {!proto.OneStyleValue} msg The message object to deserialize into.
433
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
434
+ * @return {!proto.OneStyleValue}
435
+ */
436
+ proto.OneStyleValue.deserializeBinaryFromReader = function (msg, reader) {
437
+ while (reader.nextField()) {
438
+ if (reader.isEndGroup()) {
439
+ break;
440
+ }
441
+ var field = reader.getFieldNumber();
442
+ switch (field) {
443
+ case 1:
444
+ var value = new proto.StyleKey();
445
+ reader.readMessage(value, proto.StyleKey.deserializeBinaryFromReader);
446
+ msg.setKey(value);
447
+ break;
448
+ case 2:
449
+ var value = /** @type {number} */reader.readInt32();
450
+ msg.setInt32vl(value);
451
+ break;
452
+ case 3:
453
+ var value = /** @type {boolean} */reader.readBool();
454
+ msg.setBoolvl(value);
455
+ break;
456
+ case 4:
457
+ var value = /** @type {number} */reader.readInt32();
458
+ msg.setFuncid(value);
459
+ break;
460
+ case 5:
461
+ var value = /** @type {number} */reader.readDouble();
462
+ msg.setDoublevl(value);
463
+ break;
464
+ case 6:
465
+ var value = /** @type {string} */reader.readString();
466
+ msg.setStringvl(value);
467
+ break;
468
+ case 7:
469
+ var value = new proto.StringArr();
470
+ reader.readMessage(value, proto.StringArr.deserializeBinaryFromReader);
471
+ msg.setStringarr(value);
472
+ break;
473
+ case 8:
474
+ var value = new proto.StyleValueArr();
475
+ reader.readMessage(value, proto.StyleValueArr.deserializeBinaryFromReader);
476
+ msg.setStylevlarr(value);
477
+ break;
478
+ default:
479
+ reader.skipField();
480
+ break;
481
+ }
482
+ }
483
+ return msg;
484
+ };
485
+
486
+ /**
487
+ * Serializes the message to binary data (in protobuf wire format).
488
+ * @return {!Uint8Array}
489
+ */
490
+ proto.OneStyleValue.prototype.serializeBinary = function () {
491
+ var writer = new jspb.BinaryWriter();
492
+ proto.OneStyleValue.serializeBinaryToWriter(this, writer);
493
+ return writer.getResultBuffer();
494
+ };
495
+
496
+ /**
497
+ * Serializes the given message to binary data (in protobuf wire
498
+ * format), writing to the given BinaryWriter.
499
+ * @param {!proto.OneStyleValue} message
500
+ * @param {!jspb.BinaryWriter} writer
501
+ * @suppress {unusedLocalVariables} f is only used for nested messages
502
+ */
503
+ proto.OneStyleValue.serializeBinaryToWriter = function (message, writer) {
504
+ var f = undefined;
505
+ f = message.getKey();
506
+ if (f != null) {
507
+ writer.writeMessage(1, f, proto.StyleKey.serializeBinaryToWriter);
508
+ }
509
+ f = /** @type {number} */jspb.Message.getField(message, 2);
510
+ if (f != null) {
511
+ writer.writeInt32(2, f);
512
+ }
513
+ f = /** @type {boolean} */jspb.Message.getField(message, 3);
514
+ if (f != null) {
515
+ writer.writeBool(3, f);
516
+ }
517
+ f = /** @type {number} */jspb.Message.getField(message, 4);
518
+ if (f != null) {
519
+ writer.writeInt32(4, f);
520
+ }
521
+ f = /** @type {number} */jspb.Message.getField(message, 5);
522
+ if (f != null) {
523
+ writer.writeDouble(5, f);
524
+ }
525
+ f = /** @type {string} */jspb.Message.getField(message, 6);
526
+ if (f != null) {
527
+ writer.writeString(6, f);
528
+ }
529
+ f = message.getStringarr();
530
+ if (f != null) {
531
+ writer.writeMessage(7, f, proto.StringArr.serializeBinaryToWriter);
532
+ }
533
+ f = message.getStylevlarr();
534
+ if (f != null) {
535
+ writer.writeMessage(8, f, proto.StyleValueArr.serializeBinaryToWriter);
536
+ }
537
+ };
538
+
539
+ /**
540
+ * optional StyleKey key = 1;
541
+ * @return {?proto.StyleKey}
542
+ */
543
+ proto.OneStyleValue.prototype.getKey = function () {
544
+ return (/** @type{?proto.StyleKey} */jspb.Message.getWrapperField(this, proto.StyleKey, 1)
545
+ );
546
+ };
547
+
548
+ /** @param {?proto.StyleKey|undefined} value */
549
+ proto.OneStyleValue.prototype.setKey = function (value) {
550
+ jspb.Message.setWrapperField(this, 1, value);
551
+ };
552
+ proto.OneStyleValue.prototype.clearKey = function () {
553
+ this.setKey(undefined);
554
+ };
555
+
556
+ /**
557
+ * Returns whether this field is set.
558
+ * @return {!boolean}
559
+ */
560
+ proto.OneStyleValue.prototype.hasKey = function () {
561
+ return jspb.Message.getField(this, 1) != null;
562
+ };
563
+
564
+ /**
565
+ * optional int32 int32Vl = 2;
566
+ * @return {number}
567
+ */
568
+ proto.OneStyleValue.prototype.getInt32vl = function () {
569
+ return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 2, 0)
570
+ );
571
+ };
572
+
573
+ /** @param {number} value */
574
+ proto.OneStyleValue.prototype.setInt32vl = function (value) {
575
+ jspb.Message.setOneofField(this, 2, proto.OneStyleValue.oneofGroups_[0], value);
576
+ };
577
+ proto.OneStyleValue.prototype.clearInt32vl = function () {
578
+ jspb.Message.setOneofField(this, 2, proto.OneStyleValue.oneofGroups_[0], undefined);
579
+ };
580
+
581
+ /**
582
+ * Returns whether this field is set.
583
+ * @return {!boolean}
584
+ */
585
+ proto.OneStyleValue.prototype.hasInt32vl = function () {
586
+ return jspb.Message.getField(this, 2) != null;
587
+ };
588
+
589
+ /**
590
+ * optional bool boolVl = 3;
591
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
592
+ * You should avoid comparisons like {@code val === true/false} in those cases.
593
+ * @return {boolean}
594
+ */
595
+ proto.OneStyleValue.prototype.getBoolvl = function () {
596
+ return (/** @type {boolean} */jspb.Message.getFieldWithDefault(this, 3, false)
597
+ );
598
+ };
599
+
600
+ /** @param {boolean} value */
601
+ proto.OneStyleValue.prototype.setBoolvl = function (value) {
602
+ jspb.Message.setOneofField(this, 3, proto.OneStyleValue.oneofGroups_[0], value);
603
+ };
604
+ proto.OneStyleValue.prototype.clearBoolvl = function () {
605
+ jspb.Message.setOneofField(this, 3, proto.OneStyleValue.oneofGroups_[0], undefined);
606
+ };
607
+
608
+ /**
609
+ * Returns whether this field is set.
610
+ * @return {!boolean}
611
+ */
612
+ proto.OneStyleValue.prototype.hasBoolvl = function () {
613
+ return jspb.Message.getField(this, 3) != null;
614
+ };
615
+
616
+ /**
617
+ * optional int32 funcId = 4;
618
+ * @return {number}
619
+ */
620
+ proto.OneStyleValue.prototype.getFuncid = function () {
621
+ return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 4, 0)
622
+ );
623
+ };
624
+
625
+ /** @param {number} value */
626
+ proto.OneStyleValue.prototype.setFuncid = function (value) {
627
+ jspb.Message.setOneofField(this, 4, proto.OneStyleValue.oneofGroups_[0], value);
628
+ };
629
+ proto.OneStyleValue.prototype.clearFuncid = function () {
630
+ jspb.Message.setOneofField(this, 4, proto.OneStyleValue.oneofGroups_[0], undefined);
631
+ };
632
+
633
+ /**
634
+ * Returns whether this field is set.
635
+ * @return {!boolean}
636
+ */
637
+ proto.OneStyleValue.prototype.hasFuncid = function () {
638
+ return jspb.Message.getField(this, 4) != null;
639
+ };
640
+
641
+ /**
642
+ * optional double doubleVl = 5;
643
+ * @return {number}
644
+ */
645
+ proto.OneStyleValue.prototype.getDoublevl = function () {
646
+ return (/** @type {number} */+jspb.Message.getFieldWithDefault(this, 5, 0.0)
647
+ );
648
+ };
649
+
650
+ /** @param {number} value */
651
+ proto.OneStyleValue.prototype.setDoublevl = function (value) {
652
+ jspb.Message.setOneofField(this, 5, proto.OneStyleValue.oneofGroups_[0], value);
653
+ };
654
+ proto.OneStyleValue.prototype.clearDoublevl = function () {
655
+ jspb.Message.setOneofField(this, 5, proto.OneStyleValue.oneofGroups_[0], undefined);
656
+ };
657
+
658
+ /**
659
+ * Returns whether this field is set.
660
+ * @return {!boolean}
661
+ */
662
+ proto.OneStyleValue.prototype.hasDoublevl = function () {
663
+ return jspb.Message.getField(this, 5) != null;
664
+ };
665
+
666
+ /**
667
+ * optional string stringVl = 6;
668
+ * @return {string}
669
+ */
670
+ proto.OneStyleValue.prototype.getStringvl = function () {
671
+ return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 6, '')
672
+ );
673
+ };
674
+
675
+ /** @param {string} value */
676
+ proto.OneStyleValue.prototype.setStringvl = function (value) {
677
+ jspb.Message.setOneofField(this, 6, proto.OneStyleValue.oneofGroups_[0], value);
678
+ };
679
+ proto.OneStyleValue.prototype.clearStringvl = function () {
680
+ jspb.Message.setOneofField(this, 6, proto.OneStyleValue.oneofGroups_[0], undefined);
681
+ };
682
+
683
+ /**
684
+ * Returns whether this field is set.
685
+ * @return {!boolean}
686
+ */
687
+ proto.OneStyleValue.prototype.hasStringvl = function () {
688
+ return jspb.Message.getField(this, 6) != null;
689
+ };
690
+
691
+ /**
692
+ * optional StringArr stringArr = 7;
693
+ * @return {?proto.StringArr}
694
+ */
695
+ proto.OneStyleValue.prototype.getStringarr = function () {
696
+ return (/** @type{?proto.StringArr} */jspb.Message.getWrapperField(this, proto.StringArr, 7)
697
+ );
698
+ };
699
+
700
+ /** @param {?proto.StringArr|undefined} value */
701
+ proto.OneStyleValue.prototype.setStringarr = function (value) {
702
+ jspb.Message.setOneofWrapperField(this, 7, proto.OneStyleValue.oneofGroups_[0], value);
703
+ };
704
+ proto.OneStyleValue.prototype.clearStringarr = function () {
705
+ this.setStringarr(undefined);
706
+ };
707
+
708
+ /**
709
+ * Returns whether this field is set.
710
+ * @return {!boolean}
711
+ */
712
+ proto.OneStyleValue.prototype.hasStringarr = function () {
713
+ return jspb.Message.getField(this, 7) != null;
714
+ };
715
+
716
+ /**
717
+ * optional StyleValueArr styleVlArr = 8;
718
+ * @return {?proto.StyleValueArr}
719
+ */
720
+ proto.OneStyleValue.prototype.getStylevlarr = function () {
721
+ return (/** @type{?proto.StyleValueArr} */jspb.Message.getWrapperField(this, proto.StyleValueArr, 8)
722
+ );
723
+ };
724
+
725
+ /** @param {?proto.StyleValueArr|undefined} value */
726
+ proto.OneStyleValue.prototype.setStylevlarr = function (value) {
727
+ jspb.Message.setOneofWrapperField(this, 8, proto.OneStyleValue.oneofGroups_[0], value);
728
+ };
729
+ proto.OneStyleValue.prototype.clearStylevlarr = function () {
730
+ this.setStylevlarr(undefined);
731
+ };
732
+
733
+ /**
734
+ * Returns whether this field is set.
735
+ * @return {!boolean}
736
+ */
737
+ proto.OneStyleValue.prototype.hasStylevlarr = function () {
738
+ return jspb.Message.getField(this, 8) != null;
739
+ };
740
+
741
+ /**
742
+ * Generated by JsPbCodeGenerator.
743
+ * @param {Array=} opt_data Optional initial data array, typically from a
744
+ * server response, or constructed directly in Javascript. The array is used
745
+ * in place and becomes part of the constructed object. It is not cloned.
746
+ * If no data is provided, the constructed object will be empty, but still
747
+ * valid.
748
+ * @extends {jspb.Message}
749
+ * @constructor
750
+ */
751
+ proto.StyleValueArr = function (opt_data) {
752
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.StyleValueArr.repeatedFields_, null);
753
+ };
754
+ goog.inherits(proto.StyleValueArr, jspb.Message);
755
+ if (goog.DEBUG && !COMPILED) {
756
+ proto.StyleValueArr.displayName = 'proto.StyleValueArr';
757
+ }
758
+ /**
759
+ * List of repeated fields within this message type.
760
+ * @private {!Array<number>}
761
+ * @const
762
+ */
763
+ proto.StyleValueArr.repeatedFields_ = [1];
764
+ if (jspb.Message.GENERATE_TO_OBJECT) {
765
+ /**
766
+ * Creates an object representation of this proto suitable for use in Soy templates.
767
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
768
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
769
+ * For the list of reserved names please see:
770
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
771
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
772
+ * for transitional soy proto support: http://goto/soy-param-migration
773
+ * @return {!Object}
774
+ */
775
+ proto.StyleValueArr.prototype.toObject = function (opt_includeInstance) {
776
+ return proto.StyleValueArr.toObject(opt_includeInstance, this);
777
+ };
778
+
779
+ /**
780
+ * Static version of the {@see toObject} method.
781
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
782
+ * instance for transitional soy proto support:
783
+ * http://goto/soy-param-migration
784
+ * @param {!proto.StyleValueArr} msg The msg instance to transform.
785
+ * @return {!Object}
786
+ * @suppress {unusedLocalVariables} f is only used for nested messages
787
+ */
788
+ proto.StyleValueArr.toObject = function (includeInstance, msg) {
789
+ var f,
790
+ obj = {
791
+ vlarrList: jspb.Message.toObjectList(msg.getVlarrList(), proto.OneStyleValue.toObject, includeInstance)
792
+ };
793
+ if (includeInstance) {
794
+ obj.$jspbMessageInstance = msg;
795
+ }
796
+ return obj;
797
+ };
798
+ }
799
+
800
+ /**
801
+ * Deserializes binary data (in protobuf wire format).
802
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
803
+ * @return {!proto.StyleValueArr}
804
+ */
805
+ proto.StyleValueArr.deserializeBinary = function (bytes) {
806
+ var reader = new jspb.BinaryReader(bytes);
807
+ var msg = new proto.StyleValueArr();
808
+ return proto.StyleValueArr.deserializeBinaryFromReader(msg, reader);
809
+ };
810
+
811
+ /**
812
+ * Deserializes binary data (in protobuf wire format) from the
813
+ * given reader into the given message object.
814
+ * @param {!proto.StyleValueArr} msg The message object to deserialize into.
815
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
816
+ * @return {!proto.StyleValueArr}
817
+ */
818
+ proto.StyleValueArr.deserializeBinaryFromReader = function (msg, reader) {
819
+ while (reader.nextField()) {
820
+ if (reader.isEndGroup()) {
821
+ break;
822
+ }
823
+ var field = reader.getFieldNumber();
824
+ switch (field) {
825
+ case 1:
826
+ var value = new proto.OneStyleValue();
827
+ reader.readMessage(value, proto.OneStyleValue.deserializeBinaryFromReader);
828
+ msg.addVlarr(value);
829
+ break;
830
+ default:
831
+ reader.skipField();
832
+ break;
833
+ }
834
+ }
835
+ return msg;
836
+ };
837
+
838
+ /**
839
+ * Serializes the message to binary data (in protobuf wire format).
840
+ * @return {!Uint8Array}
841
+ */
842
+ proto.StyleValueArr.prototype.serializeBinary = function () {
843
+ var writer = new jspb.BinaryWriter();
844
+ proto.StyleValueArr.serializeBinaryToWriter(this, writer);
845
+ return writer.getResultBuffer();
846
+ };
847
+
848
+ /**
849
+ * Serializes the given message to binary data (in protobuf wire
850
+ * format), writing to the given BinaryWriter.
851
+ * @param {!proto.StyleValueArr} message
852
+ * @param {!jspb.BinaryWriter} writer
853
+ * @suppress {unusedLocalVariables} f is only used for nested messages
854
+ */
855
+ proto.StyleValueArr.serializeBinaryToWriter = function (message, writer) {
856
+ var f = undefined;
857
+ f = message.getVlarrList();
858
+ if (f.length > 0) {
859
+ writer.writeRepeatedMessage(1, f, proto.OneStyleValue.serializeBinaryToWriter);
860
+ }
861
+ };
862
+
863
+ /**
864
+ * repeated OneStyleValue vlArr = 1;
865
+ * @return {!Array<!proto.OneStyleValue>}
866
+ */
867
+ proto.StyleValueArr.prototype.getVlarrList = function () {
868
+ return (/** @type{!Array<!proto.OneStyleValue>} */jspb.Message.getRepeatedWrapperField(this, proto.OneStyleValue, 1)
869
+ );
870
+ };
871
+
872
+ /** @param {!Array<!proto.OneStyleValue>} value */
873
+ proto.StyleValueArr.prototype.setVlarrList = function (value) {
874
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
875
+ };
876
+
877
+ /**
878
+ * @param {!proto.OneStyleValue=} opt_value
879
+ * @param {number=} opt_index
880
+ * @return {!proto.OneStyleValue}
881
+ */
882
+ proto.StyleValueArr.prototype.addVlarr = function (opt_value, opt_index) {
883
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.OneStyleValue, opt_index);
884
+ };
885
+ proto.StyleValueArr.prototype.clearVlarrList = function () {
886
+ this.setVlarrList([]);
887
+ };
888
+
889
+ /**
890
+ * Generated by JsPbCodeGenerator.
891
+ * @param {Array=} opt_data Optional initial data array, typically from a
892
+ * server response, or constructed directly in Javascript. The array is used
893
+ * in place and becomes part of the constructed object. It is not cloned.
894
+ * If no data is provided, the constructed object will be empty, but still
895
+ * valid.
896
+ * @extends {jspb.Message}
897
+ * @constructor
898
+ */
899
+ proto.CssCell = function (opt_data) {
900
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.CssCell.repeatedFields_, null);
901
+ };
902
+ goog.inherits(proto.CssCell, jspb.Message);
903
+ if (goog.DEBUG && !COMPILED) {
904
+ proto.CssCell.displayName = 'proto.CssCell';
905
+ }
906
+ /**
907
+ * List of repeated fields within this message type.
908
+ * @private {!Array<number>}
909
+ * @const
910
+ */
911
+ proto.CssCell.repeatedFields_ = [3];
912
+ if (jspb.Message.GENERATE_TO_OBJECT) {
913
+ /**
914
+ * Creates an object representation of this proto suitable for use in Soy templates.
915
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
916
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
917
+ * For the list of reserved names please see:
918
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
919
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
920
+ * for transitional soy proto support: http://goto/soy-param-migration
921
+ * @return {!Object}
922
+ */
923
+ proto.CssCell.prototype.toObject = function (opt_includeInstance) {
924
+ return proto.CssCell.toObject(opt_includeInstance, this);
925
+ };
926
+
927
+ /**
928
+ * Static version of the {@see toObject} method.
929
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
930
+ * instance for transitional soy proto support:
931
+ * http://goto/soy-param-migration
932
+ * @param {!proto.CssCell} msg The msg instance to transform.
933
+ * @return {!Object}
934
+ * @suppress {unusedLocalVariables} f is only used for nested messages
935
+ */
936
+ proto.CssCell.toObject = function (includeInstance, msg) {
937
+ var f,
938
+ obj = {
939
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
940
+ name: jspb.Message.getFieldWithDefault(msg, 2, ''),
941
+ stylearrList: jspb.Message.toObjectList(msg.getStylearrList(), proto.OneStyleValue.toObject, includeInstance)
942
+ };
943
+ if (includeInstance) {
944
+ obj.$jspbMessageInstance = msg;
945
+ }
946
+ return obj;
947
+ };
948
+ }
949
+
950
+ /**
951
+ * Deserializes binary data (in protobuf wire format).
952
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
953
+ * @return {!proto.CssCell}
954
+ */
955
+ proto.CssCell.deserializeBinary = function (bytes) {
956
+ var reader = new jspb.BinaryReader(bytes);
957
+ var msg = new proto.CssCell();
958
+ return proto.CssCell.deserializeBinaryFromReader(msg, reader);
959
+ };
960
+
961
+ /**
962
+ * Deserializes binary data (in protobuf wire format) from the
963
+ * given reader into the given message object.
964
+ * @param {!proto.CssCell} msg The message object to deserialize into.
965
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
966
+ * @return {!proto.CssCell}
967
+ */
968
+ proto.CssCell.deserializeBinaryFromReader = function (msg, reader) {
969
+ while (reader.nextField()) {
970
+ if (reader.isEndGroup()) {
971
+ break;
972
+ }
973
+ var field = reader.getFieldNumber();
974
+ switch (field) {
975
+ case 1:
976
+ var value = /** @type {number} */reader.readInt32();
977
+ msg.setId(value);
978
+ break;
979
+ case 2:
980
+ var value = /** @type {string} */reader.readString();
981
+ msg.setName(value);
982
+ break;
983
+ case 3:
984
+ var value = new proto.OneStyleValue();
985
+ reader.readMessage(value, proto.OneStyleValue.deserializeBinaryFromReader);
986
+ msg.addStylearr(value);
987
+ break;
988
+ default:
989
+ reader.skipField();
990
+ break;
991
+ }
992
+ }
993
+ return msg;
994
+ };
995
+
996
+ /**
997
+ * Serializes the message to binary data (in protobuf wire format).
998
+ * @return {!Uint8Array}
999
+ */
1000
+ proto.CssCell.prototype.serializeBinary = function () {
1001
+ var writer = new jspb.BinaryWriter();
1002
+ proto.CssCell.serializeBinaryToWriter(this, writer);
1003
+ return writer.getResultBuffer();
1004
+ };
1005
+
1006
+ /**
1007
+ * Serializes the given message to binary data (in protobuf wire
1008
+ * format), writing to the given BinaryWriter.
1009
+ * @param {!proto.CssCell} message
1010
+ * @param {!jspb.BinaryWriter} writer
1011
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1012
+ */
1013
+ proto.CssCell.serializeBinaryToWriter = function (message, writer) {
1014
+ var f = undefined;
1015
+ f = message.getId();
1016
+ if (f !== 0) {
1017
+ writer.writeInt32(1, f);
1018
+ }
1019
+ f = message.getName();
1020
+ if (f.length > 0) {
1021
+ writer.writeString(2, f);
1022
+ }
1023
+ f = message.getStylearrList();
1024
+ if (f.length > 0) {
1025
+ writer.writeRepeatedMessage(3, f, proto.OneStyleValue.serializeBinaryToWriter);
1026
+ }
1027
+ };
1028
+
1029
+ /**
1030
+ * optional int32 id = 1;
1031
+ * @return {number}
1032
+ */
1033
+ proto.CssCell.prototype.getId = function () {
1034
+ return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 1, 0)
1035
+ );
1036
+ };
1037
+
1038
+ /** @param {number} value */
1039
+ proto.CssCell.prototype.setId = function (value) {
1040
+ jspb.Message.setProto3IntField(this, 1, value);
1041
+ };
1042
+
1043
+ /**
1044
+ * optional string name = 2;
1045
+ * @return {string}
1046
+ */
1047
+ proto.CssCell.prototype.getName = function () {
1048
+ return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 2, '')
1049
+ );
1050
+ };
1051
+
1052
+ /** @param {string} value */
1053
+ proto.CssCell.prototype.setName = function (value) {
1054
+ jspb.Message.setProto3StringField(this, 2, value);
1055
+ };
1056
+
1057
+ /**
1058
+ * repeated OneStyleValue styleArr = 3;
1059
+ * @return {!Array<!proto.OneStyleValue>}
1060
+ */
1061
+ proto.CssCell.prototype.getStylearrList = function () {
1062
+ return (/** @type{!Array<!proto.OneStyleValue>} */jspb.Message.getRepeatedWrapperField(this, proto.OneStyleValue, 3)
1063
+ );
1064
+ };
1065
+
1066
+ /** @param {!Array<!proto.OneStyleValue>} value */
1067
+ proto.CssCell.prototype.setStylearrList = function (value) {
1068
+ jspb.Message.setRepeatedWrapperField(this, 3, value);
1069
+ };
1070
+
1071
+ /**
1072
+ * @param {!proto.OneStyleValue=} opt_value
1073
+ * @param {number=} opt_index
1074
+ * @return {!proto.OneStyleValue}
1075
+ */
1076
+ proto.CssCell.prototype.addStylearr = function (opt_value, opt_index) {
1077
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.OneStyleValue, opt_index);
1078
+ };
1079
+ proto.CssCell.prototype.clearStylearrList = function () {
1080
+ this.setStylearrList([]);
1081
+ };
1082
+
1083
+ /**
1084
+ * Generated by JsPbCodeGenerator.
1085
+ * @param {Array=} opt_data Optional initial data array, typically from a
1086
+ * server response, or constructed directly in Javascript. The array is used
1087
+ * in place and becomes part of the constructed object. It is not cloned.
1088
+ * If no data is provided, the constructed object will be empty, but still
1089
+ * valid.
1090
+ * @extends {jspb.Message}
1091
+ * @constructor
1092
+ */
1093
+ proto.TemplateCE = function (opt_data) {
1094
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.TemplateCE.repeatedFields_, null);
1095
+ };
1096
+ goog.inherits(proto.TemplateCE, jspb.Message);
1097
+ if (goog.DEBUG && !COMPILED) {
1098
+ proto.TemplateCE.displayName = 'proto.TemplateCE';
1099
+ }
1100
+ /**
1101
+ * List of repeated fields within this message type.
1102
+ * @private {!Array<number>}
1103
+ * @const
1104
+ */
1105
+ proto.TemplateCE.repeatedFields_ = [2];
1106
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1107
+ /**
1108
+ * Creates an object representation of this proto suitable for use in Soy templates.
1109
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1110
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1111
+ * For the list of reserved names please see:
1112
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1113
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1114
+ * for transitional soy proto support: http://goto/soy-param-migration
1115
+ * @return {!Object}
1116
+ */
1117
+ proto.TemplateCE.prototype.toObject = function (opt_includeInstance) {
1118
+ return proto.TemplateCE.toObject(opt_includeInstance, this);
1119
+ };
1120
+
1121
+ /**
1122
+ * Static version of the {@see toObject} method.
1123
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1124
+ * instance for transitional soy proto support:
1125
+ * http://goto/soy-param-migration
1126
+ * @param {!proto.TemplateCE} msg The msg instance to transform.
1127
+ * @return {!Object}
1128
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1129
+ */
1130
+ proto.TemplateCE.toObject = function (includeInstance, msg) {
1131
+ var f,
1132
+ obj = {
1133
+ tag: jspb.Message.getFieldWithDefault(msg, 1, ''),
1134
+ optsarrList: jspb.Message.toObjectList(msg.getOptsarrList(), proto.OneStyleValue.toObject, includeInstance)
1135
+ };
1136
+ if (includeInstance) {
1137
+ obj.$jspbMessageInstance = msg;
1138
+ }
1139
+ return obj;
1140
+ };
1141
+ }
1142
+
1143
+ /**
1144
+ * Deserializes binary data (in protobuf wire format).
1145
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1146
+ * @return {!proto.TemplateCE}
1147
+ */
1148
+ proto.TemplateCE.deserializeBinary = function (bytes) {
1149
+ var reader = new jspb.BinaryReader(bytes);
1150
+ var msg = new proto.TemplateCE();
1151
+ return proto.TemplateCE.deserializeBinaryFromReader(msg, reader);
1152
+ };
1153
+
1154
+ /**
1155
+ * Deserializes binary data (in protobuf wire format) from the
1156
+ * given reader into the given message object.
1157
+ * @param {!proto.TemplateCE} msg The message object to deserialize into.
1158
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1159
+ * @return {!proto.TemplateCE}
1160
+ */
1161
+ proto.TemplateCE.deserializeBinaryFromReader = function (msg, reader) {
1162
+ while (reader.nextField()) {
1163
+ if (reader.isEndGroup()) {
1164
+ break;
1165
+ }
1166
+ var field = reader.getFieldNumber();
1167
+ switch (field) {
1168
+ case 1:
1169
+ var value = /** @type {string} */reader.readString();
1170
+ msg.setTag(value);
1171
+ break;
1172
+ case 2:
1173
+ var value = new proto.OneStyleValue();
1174
+ reader.readMessage(value, proto.OneStyleValue.deserializeBinaryFromReader);
1175
+ msg.addOptsarr(value);
1176
+ break;
1177
+ default:
1178
+ reader.skipField();
1179
+ break;
1180
+ }
1181
+ }
1182
+ return msg;
1183
+ };
1184
+
1185
+ /**
1186
+ * Serializes the message to binary data (in protobuf wire format).
1187
+ * @return {!Uint8Array}
1188
+ */
1189
+ proto.TemplateCE.prototype.serializeBinary = function () {
1190
+ var writer = new jspb.BinaryWriter();
1191
+ proto.TemplateCE.serializeBinaryToWriter(this, writer);
1192
+ return writer.getResultBuffer();
1193
+ };
1194
+
1195
+ /**
1196
+ * Serializes the given message to binary data (in protobuf wire
1197
+ * format), writing to the given BinaryWriter.
1198
+ * @param {!proto.TemplateCE} message
1199
+ * @param {!jspb.BinaryWriter} writer
1200
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1201
+ */
1202
+ proto.TemplateCE.serializeBinaryToWriter = function (message, writer) {
1203
+ var f = undefined;
1204
+ f = message.getTag();
1205
+ if (f.length > 0) {
1206
+ writer.writeString(1, f);
1207
+ }
1208
+ f = message.getOptsarrList();
1209
+ if (f.length > 0) {
1210
+ writer.writeRepeatedMessage(2, f, proto.OneStyleValue.serializeBinaryToWriter);
1211
+ }
1212
+ };
1213
+
1214
+ /**
1215
+ * optional string tag = 1;
1216
+ * @return {string}
1217
+ */
1218
+ proto.TemplateCE.prototype.getTag = function () {
1219
+ return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 1, '')
1220
+ );
1221
+ };
1222
+
1223
+ /** @param {string} value */
1224
+ proto.TemplateCE.prototype.setTag = function (value) {
1225
+ jspb.Message.setProto3StringField(this, 1, value);
1226
+ };
1227
+
1228
+ /**
1229
+ * repeated OneStyleValue optsArr = 2;
1230
+ * @return {!Array<!proto.OneStyleValue>}
1231
+ */
1232
+ proto.TemplateCE.prototype.getOptsarrList = function () {
1233
+ return (/** @type{!Array<!proto.OneStyleValue>} */jspb.Message.getRepeatedWrapperField(this, proto.OneStyleValue, 2)
1234
+ );
1235
+ };
1236
+
1237
+ /** @param {!Array<!proto.OneStyleValue>} value */
1238
+ proto.TemplateCE.prototype.setOptsarrList = function (value) {
1239
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
1240
+ };
1241
+
1242
+ /**
1243
+ * @param {!proto.OneStyleValue=} opt_value
1244
+ * @param {number=} opt_index
1245
+ * @return {!proto.OneStyleValue}
1246
+ */
1247
+ proto.TemplateCE.prototype.addOptsarr = function (opt_value, opt_index) {
1248
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.OneStyleValue, opt_index);
1249
+ };
1250
+ proto.TemplateCE.prototype.clearOptsarrList = function () {
1251
+ this.setOptsarrList([]);
1252
+ };
1253
+
1254
+ /**
1255
+ * Generated by JsPbCodeGenerator.
1256
+ * @param {Array=} opt_data Optional initial data array, typically from a
1257
+ * server response, or constructed directly in Javascript. The array is used
1258
+ * in place and becomes part of the constructed object. It is not cloned.
1259
+ * If no data is provided, the constructed object will be empty, but still
1260
+ * valid.
1261
+ * @extends {jspb.Message}
1262
+ * @constructor
1263
+ */
1264
+ proto.TemplateCI = function (opt_data) {
1265
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.TemplateCI.repeatedFields_, null);
1266
+ };
1267
+ goog.inherits(proto.TemplateCI, jspb.Message);
1268
+ if (goog.DEBUG && !COMPILED) {
1269
+ proto.TemplateCI.displayName = 'proto.TemplateCI';
1270
+ }
1271
+ /**
1272
+ * List of repeated fields within this message type.
1273
+ * @private {!Array<number>}
1274
+ * @const
1275
+ */
1276
+ proto.TemplateCI.repeatedFields_ = [3];
1277
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1278
+ /**
1279
+ * Creates an object representation of this proto suitable for use in Soy templates.
1280
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1281
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1282
+ * For the list of reserved names please see:
1283
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1284
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1285
+ * for transitional soy proto support: http://goto/soy-param-migration
1286
+ * @return {!Object}
1287
+ */
1288
+ proto.TemplateCI.prototype.toObject = function (opt_includeInstance) {
1289
+ return proto.TemplateCI.toObject(opt_includeInstance, this);
1290
+ };
1291
+
1292
+ /**
1293
+ * Static version of the {@see toObject} method.
1294
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1295
+ * instance for transitional soy proto support:
1296
+ * http://goto/soy-param-migration
1297
+ * @param {!proto.TemplateCI} msg The msg instance to transform.
1298
+ * @return {!Object}
1299
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1300
+ */
1301
+ proto.TemplateCI.toObject = function (includeInstance, msg) {
1302
+ var f,
1303
+ obj = {
1304
+ shownid: jspb.Message.getFieldWithDefault(msg, 1, 0),
1305
+ funcrender: jspb.Message.getFieldWithDefault(msg, 2, 0),
1306
+ templaterenderList: jspb.Message.toObjectList(msg.getTemplaterenderList(), proto.TemplateOne.toObject, includeInstance)
1307
+ };
1308
+ if (includeInstance) {
1309
+ obj.$jspbMessageInstance = msg;
1310
+ }
1311
+ return obj;
1312
+ };
1313
+ }
1314
+
1315
+ /**
1316
+ * Deserializes binary data (in protobuf wire format).
1317
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1318
+ * @return {!proto.TemplateCI}
1319
+ */
1320
+ proto.TemplateCI.deserializeBinary = function (bytes) {
1321
+ var reader = new jspb.BinaryReader(bytes);
1322
+ var msg = new proto.TemplateCI();
1323
+ return proto.TemplateCI.deserializeBinaryFromReader(msg, reader);
1324
+ };
1325
+
1326
+ /**
1327
+ * Deserializes binary data (in protobuf wire format) from the
1328
+ * given reader into the given message object.
1329
+ * @param {!proto.TemplateCI} msg The message object to deserialize into.
1330
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1331
+ * @return {!proto.TemplateCI}
1332
+ */
1333
+ proto.TemplateCI.deserializeBinaryFromReader = function (msg, reader) {
1334
+ while (reader.nextField()) {
1335
+ if (reader.isEndGroup()) {
1336
+ break;
1337
+ }
1338
+ var field = reader.getFieldNumber();
1339
+ switch (field) {
1340
+ case 1:
1341
+ var value = /** @type {number} */reader.readInt32();
1342
+ msg.setShownid(value);
1343
+ break;
1344
+ case 2:
1345
+ var value = /** @type {number} */reader.readInt32();
1346
+ msg.setFuncrender(value);
1347
+ break;
1348
+ case 3:
1349
+ var value = new proto.TemplateOne();
1350
+ reader.readMessage(value, proto.TemplateOne.deserializeBinaryFromReader);
1351
+ msg.addTemplaterender(value);
1352
+ break;
1353
+ default:
1354
+ reader.skipField();
1355
+ break;
1356
+ }
1357
+ }
1358
+ return msg;
1359
+ };
1360
+
1361
+ /**
1362
+ * Serializes the message to binary data (in protobuf wire format).
1363
+ * @return {!Uint8Array}
1364
+ */
1365
+ proto.TemplateCI.prototype.serializeBinary = function () {
1366
+ var writer = new jspb.BinaryWriter();
1367
+ proto.TemplateCI.serializeBinaryToWriter(this, writer);
1368
+ return writer.getResultBuffer();
1369
+ };
1370
+
1371
+ /**
1372
+ * Serializes the given message to binary data (in protobuf wire
1373
+ * format), writing to the given BinaryWriter.
1374
+ * @param {!proto.TemplateCI} message
1375
+ * @param {!jspb.BinaryWriter} writer
1376
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1377
+ */
1378
+ proto.TemplateCI.serializeBinaryToWriter = function (message, writer) {
1379
+ var f = undefined;
1380
+ f = message.getShownid();
1381
+ if (f !== 0) {
1382
+ writer.writeInt32(1, f);
1383
+ }
1384
+ f = message.getFuncrender();
1385
+ if (f !== 0) {
1386
+ writer.writeInt32(2, f);
1387
+ }
1388
+ f = message.getTemplaterenderList();
1389
+ if (f.length > 0) {
1390
+ writer.writeRepeatedMessage(3, f, proto.TemplateOne.serializeBinaryToWriter);
1391
+ }
1392
+ };
1393
+
1394
+ /**
1395
+ * optional int32 shownId = 1;
1396
+ * @return {number}
1397
+ */
1398
+ proto.TemplateCI.prototype.getShownid = function () {
1399
+ return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 1, 0)
1400
+ );
1401
+ };
1402
+
1403
+ /** @param {number} value */
1404
+ proto.TemplateCI.prototype.setShownid = function (value) {
1405
+ jspb.Message.setProto3IntField(this, 1, value);
1406
+ };
1407
+
1408
+ /**
1409
+ * optional int32 funcRender = 2;
1410
+ * @return {number}
1411
+ */
1412
+ proto.TemplateCI.prototype.getFuncrender = function () {
1413
+ return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 2, 0)
1414
+ );
1415
+ };
1416
+
1417
+ /** @param {number} value */
1418
+ proto.TemplateCI.prototype.setFuncrender = function (value) {
1419
+ jspb.Message.setProto3IntField(this, 2, value);
1420
+ };
1421
+
1422
+ /**
1423
+ * repeated TemplateOne templateRender = 3;
1424
+ * @return {!Array<!proto.TemplateOne>}
1425
+ */
1426
+ proto.TemplateCI.prototype.getTemplaterenderList = function () {
1427
+ return (/** @type{!Array<!proto.TemplateOne>} */jspb.Message.getRepeatedWrapperField(this, proto.TemplateOne, 3)
1428
+ );
1429
+ };
1430
+
1431
+ /** @param {!Array<!proto.TemplateOne>} value */
1432
+ proto.TemplateCI.prototype.setTemplaterenderList = function (value) {
1433
+ jspb.Message.setRepeatedWrapperField(this, 3, value);
1434
+ };
1435
+
1436
+ /**
1437
+ * @param {!proto.TemplateOne=} opt_value
1438
+ * @param {number=} opt_index
1439
+ * @return {!proto.TemplateOne}
1440
+ */
1441
+ proto.TemplateCI.prototype.addTemplaterender = function (opt_value, opt_index) {
1442
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.TemplateOne, opt_index);
1443
+ };
1444
+ proto.TemplateCI.prototype.clearTemplaterenderList = function () {
1445
+ this.setTemplaterenderList([]);
1446
+ };
1447
+
1448
+ /**
1449
+ * Generated by JsPbCodeGenerator.
1450
+ * @param {Array=} opt_data Optional initial data array, typically from a
1451
+ * server response, or constructed directly in Javascript. The array is used
1452
+ * in place and becomes part of the constructed object. It is not cloned.
1453
+ * If no data is provided, the constructed object will be empty, but still
1454
+ * valid.
1455
+ * @extends {jspb.Message}
1456
+ * @constructor
1457
+ */
1458
+ proto.TemplateCF = function (opt_data) {
1459
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.TemplateCF.repeatedFields_, null);
1460
+ };
1461
+ goog.inherits(proto.TemplateCF, jspb.Message);
1462
+ if (goog.DEBUG && !COMPILED) {
1463
+ proto.TemplateCF.displayName = 'proto.TemplateCF';
1464
+ }
1465
+ /**
1466
+ * List of repeated fields within this message type.
1467
+ * @private {!Array<number>}
1468
+ * @const
1469
+ */
1470
+ proto.TemplateCF.repeatedFields_ = [5];
1471
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1472
+ /**
1473
+ * Creates an object representation of this proto suitable for use in Soy templates.
1474
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1475
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1476
+ * For the list of reserved names please see:
1477
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1478
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1479
+ * for transitional soy proto support: http://goto/soy-param-migration
1480
+ * @return {!Object}
1481
+ */
1482
+ proto.TemplateCF.prototype.toObject = function (opt_includeInstance) {
1483
+ return proto.TemplateCF.toObject(opt_includeInstance, this);
1484
+ };
1485
+
1486
+ /**
1487
+ * Static version of the {@see toObject} method.
1488
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1489
+ * instance for transitional soy proto support:
1490
+ * http://goto/soy-param-migration
1491
+ * @param {!proto.TemplateCF} msg The msg instance to transform.
1492
+ * @return {!Object}
1493
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1494
+ */
1495
+ proto.TemplateCF.toObject = function (includeInstance, msg) {
1496
+ var f,
1497
+ obj = {
1498
+ expid: jspb.Message.getFieldWithDefault(msg, 1, 0),
1499
+ key: (f = msg.getKey()) && proto.OneStyleValue.toObject(includeInstance, f),
1500
+ value: (f = msg.getValue()) && proto.OneStyleValue.toObject(includeInstance, f),
1501
+ funcrender: jspb.Message.getFieldWithDefault(msg, 4, 0),
1502
+ templaterenderList: jspb.Message.toObjectList(msg.getTemplaterenderList(), proto.TemplateOne.toObject, includeInstance)
1503
+ };
1504
+ if (includeInstance) {
1505
+ obj.$jspbMessageInstance = msg;
1506
+ }
1507
+ return obj;
1508
+ };
1509
+ }
1510
+
1511
+ /**
1512
+ * Deserializes binary data (in protobuf wire format).
1513
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1514
+ * @return {!proto.TemplateCF}
1515
+ */
1516
+ proto.TemplateCF.deserializeBinary = function (bytes) {
1517
+ var reader = new jspb.BinaryReader(bytes);
1518
+ var msg = new proto.TemplateCF();
1519
+ return proto.TemplateCF.deserializeBinaryFromReader(msg, reader);
1520
+ };
1521
+
1522
+ /**
1523
+ * Deserializes binary data (in protobuf wire format) from the
1524
+ * given reader into the given message object.
1525
+ * @param {!proto.TemplateCF} msg The message object to deserialize into.
1526
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1527
+ * @return {!proto.TemplateCF}
1528
+ */
1529
+ proto.TemplateCF.deserializeBinaryFromReader = function (msg, reader) {
1530
+ while (reader.nextField()) {
1531
+ if (reader.isEndGroup()) {
1532
+ break;
1533
+ }
1534
+ var field = reader.getFieldNumber();
1535
+ switch (field) {
1536
+ case 1:
1537
+ var value = /** @type {number} */reader.readInt32();
1538
+ msg.setExpid(value);
1539
+ break;
1540
+ case 2:
1541
+ var value = new proto.OneStyleValue();
1542
+ reader.readMessage(value, proto.OneStyleValue.deserializeBinaryFromReader);
1543
+ msg.setKey(value);
1544
+ break;
1545
+ case 3:
1546
+ var value = new proto.OneStyleValue();
1547
+ reader.readMessage(value, proto.OneStyleValue.deserializeBinaryFromReader);
1548
+ msg.setValue(value);
1549
+ break;
1550
+ case 4:
1551
+ var value = /** @type {number} */reader.readInt32();
1552
+ msg.setFuncrender(value);
1553
+ break;
1554
+ case 5:
1555
+ var value = new proto.TemplateOne();
1556
+ reader.readMessage(value, proto.TemplateOne.deserializeBinaryFromReader);
1557
+ msg.addTemplaterender(value);
1558
+ break;
1559
+ default:
1560
+ reader.skipField();
1561
+ break;
1562
+ }
1563
+ }
1564
+ return msg;
1565
+ };
1566
+
1567
+ /**
1568
+ * Serializes the message to binary data (in protobuf wire format).
1569
+ * @return {!Uint8Array}
1570
+ */
1571
+ proto.TemplateCF.prototype.serializeBinary = function () {
1572
+ var writer = new jspb.BinaryWriter();
1573
+ proto.TemplateCF.serializeBinaryToWriter(this, writer);
1574
+ return writer.getResultBuffer();
1575
+ };
1576
+
1577
+ /**
1578
+ * Serializes the given message to binary data (in protobuf wire
1579
+ * format), writing to the given BinaryWriter.
1580
+ * @param {!proto.TemplateCF} message
1581
+ * @param {!jspb.BinaryWriter} writer
1582
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1583
+ */
1584
+ proto.TemplateCF.serializeBinaryToWriter = function (message, writer) {
1585
+ var f = undefined;
1586
+ f = message.getExpid();
1587
+ if (f !== 0) {
1588
+ writer.writeInt32(1, f);
1589
+ }
1590
+ f = message.getKey();
1591
+ if (f != null) {
1592
+ writer.writeMessage(2, f, proto.OneStyleValue.serializeBinaryToWriter);
1593
+ }
1594
+ f = message.getValue();
1595
+ if (f != null) {
1596
+ writer.writeMessage(3, f, proto.OneStyleValue.serializeBinaryToWriter);
1597
+ }
1598
+ f = message.getFuncrender();
1599
+ if (f !== 0) {
1600
+ writer.writeInt32(4, f);
1601
+ }
1602
+ f = message.getTemplaterenderList();
1603
+ if (f.length > 0) {
1604
+ writer.writeRepeatedMessage(5, f, proto.TemplateOne.serializeBinaryToWriter);
1605
+ }
1606
+ };
1607
+
1608
+ /**
1609
+ * optional int32 expId = 1;
1610
+ * @return {number}
1611
+ */
1612
+ proto.TemplateCF.prototype.getExpid = function () {
1613
+ return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 1, 0)
1614
+ );
1615
+ };
1616
+
1617
+ /** @param {number} value */
1618
+ proto.TemplateCF.prototype.setExpid = function (value) {
1619
+ jspb.Message.setProto3IntField(this, 1, value);
1620
+ };
1621
+
1622
+ /**
1623
+ * optional OneStyleValue key = 2;
1624
+ * @return {?proto.OneStyleValue}
1625
+ */
1626
+ proto.TemplateCF.prototype.getKey = function () {
1627
+ return (/** @type{?proto.OneStyleValue} */jspb.Message.getWrapperField(this, proto.OneStyleValue, 2)
1628
+ );
1629
+ };
1630
+
1631
+ /** @param {?proto.OneStyleValue|undefined} value */
1632
+ proto.TemplateCF.prototype.setKey = function (value) {
1633
+ jspb.Message.setWrapperField(this, 2, value);
1634
+ };
1635
+ proto.TemplateCF.prototype.clearKey = function () {
1636
+ this.setKey(undefined);
1637
+ };
1638
+
1639
+ /**
1640
+ * Returns whether this field is set.
1641
+ * @return {!boolean}
1642
+ */
1643
+ proto.TemplateCF.prototype.hasKey = function () {
1644
+ return jspb.Message.getField(this, 2) != null;
1645
+ };
1646
+
1647
+ /**
1648
+ * optional OneStyleValue value = 3;
1649
+ * @return {?proto.OneStyleValue}
1650
+ */
1651
+ proto.TemplateCF.prototype.getValue = function () {
1652
+ return (/** @type{?proto.OneStyleValue} */jspb.Message.getWrapperField(this, proto.OneStyleValue, 3)
1653
+ );
1654
+ };
1655
+
1656
+ /** @param {?proto.OneStyleValue|undefined} value */
1657
+ proto.TemplateCF.prototype.setValue = function (value) {
1658
+ jspb.Message.setWrapperField(this, 3, value);
1659
+ };
1660
+ proto.TemplateCF.prototype.clearValue = function () {
1661
+ this.setValue(undefined);
1662
+ };
1663
+
1664
+ /**
1665
+ * Returns whether this field is set.
1666
+ * @return {!boolean}
1667
+ */
1668
+ proto.TemplateCF.prototype.hasValue = function () {
1669
+ return jspb.Message.getField(this, 3) != null;
1670
+ };
1671
+
1672
+ /**
1673
+ * optional int32 funcRender = 4;
1674
+ * @return {number}
1675
+ */
1676
+ proto.TemplateCF.prototype.getFuncrender = function () {
1677
+ return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 4, 0)
1678
+ );
1679
+ };
1680
+
1681
+ /** @param {number} value */
1682
+ proto.TemplateCF.prototype.setFuncrender = function (value) {
1683
+ jspb.Message.setProto3IntField(this, 4, value);
1684
+ };
1685
+
1686
+ /**
1687
+ * repeated TemplateOne templateRender = 5;
1688
+ * @return {!Array<!proto.TemplateOne>}
1689
+ */
1690
+ proto.TemplateCF.prototype.getTemplaterenderList = function () {
1691
+ return (/** @type{!Array<!proto.TemplateOne>} */jspb.Message.getRepeatedWrapperField(this, proto.TemplateOne, 5)
1692
+ );
1693
+ };
1694
+
1695
+ /** @param {!Array<!proto.TemplateOne>} value */
1696
+ proto.TemplateCF.prototype.setTemplaterenderList = function (value) {
1697
+ jspb.Message.setRepeatedWrapperField(this, 5, value);
1698
+ };
1699
+
1700
+ /**
1701
+ * @param {!proto.TemplateOne=} opt_value
1702
+ * @param {number=} opt_index
1703
+ * @return {!proto.TemplateOne}
1704
+ */
1705
+ proto.TemplateCF.prototype.addTemplaterender = function (opt_value, opt_index) {
1706
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.TemplateOne, opt_index);
1707
+ };
1708
+ proto.TemplateCF.prototype.clearTemplaterenderList = function () {
1709
+ this.setTemplaterenderList([]);
1710
+ };
1711
+
1712
+ /**
1713
+ * Generated by JsPbCodeGenerator.
1714
+ * @param {Array=} opt_data Optional initial data array, typically from a
1715
+ * server response, or constructed directly in Javascript. The array is used
1716
+ * in place and becomes part of the constructed object. It is not cloned.
1717
+ * If no data is provided, the constructed object will be empty, but still
1718
+ * valid.
1719
+ * @extends {jspb.Message}
1720
+ * @constructor
1721
+ */
1722
+ proto.TemplateCC = function (opt_data) {
1723
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.TemplateCC.repeatedFields_, null);
1724
+ };
1725
+ goog.inherits(proto.TemplateCC, jspb.Message);
1726
+ if (goog.DEBUG && !COMPILED) {
1727
+ proto.TemplateCC.displayName = 'proto.TemplateCC';
1728
+ }
1729
+ /**
1730
+ * List of repeated fields within this message type.
1731
+ * @private {!Array<number>}
1732
+ * @const
1733
+ */
1734
+ proto.TemplateCC.repeatedFields_ = [3];
1735
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1736
+ /**
1737
+ * Creates an object representation of this proto suitable for use in Soy templates.
1738
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1739
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1740
+ * For the list of reserved names please see:
1741
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1742
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1743
+ * for transitional soy proto support: http://goto/soy-param-migration
1744
+ * @return {!Object}
1745
+ */
1746
+ proto.TemplateCC.prototype.toObject = function (opt_includeInstance) {
1747
+ return proto.TemplateCC.toObject(opt_includeInstance, this);
1748
+ };
1749
+
1750
+ /**
1751
+ * Static version of the {@see toObject} method.
1752
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1753
+ * instance for transitional soy proto support:
1754
+ * http://goto/soy-param-migration
1755
+ * @param {!proto.TemplateCC} msg The msg instance to transform.
1756
+ * @return {!Object}
1757
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1758
+ */
1759
+ proto.TemplateCC.toObject = function (includeInstance, msg) {
1760
+ var f,
1761
+ obj = {
1762
+ tag: jspb.Message.getFieldWithDefault(msg, 1, ''),
1763
+ exportarrid: jspb.Message.getFieldWithDefault(msg, 2, 0),
1764
+ optsarrList: jspb.Message.toObjectList(msg.getOptsarrList(), proto.OneStyleValue.toObject, includeInstance)
1765
+ };
1766
+ if (includeInstance) {
1767
+ obj.$jspbMessageInstance = msg;
1768
+ }
1769
+ return obj;
1770
+ };
1771
+ }
1772
+
1773
+ /**
1774
+ * Deserializes binary data (in protobuf wire format).
1775
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1776
+ * @return {!proto.TemplateCC}
1777
+ */
1778
+ proto.TemplateCC.deserializeBinary = function (bytes) {
1779
+ var reader = new jspb.BinaryReader(bytes);
1780
+ var msg = new proto.TemplateCC();
1781
+ return proto.TemplateCC.deserializeBinaryFromReader(msg, reader);
1782
+ };
1783
+
1784
+ /**
1785
+ * Deserializes binary data (in protobuf wire format) from the
1786
+ * given reader into the given message object.
1787
+ * @param {!proto.TemplateCC} msg The message object to deserialize into.
1788
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1789
+ * @return {!proto.TemplateCC}
1790
+ */
1791
+ proto.TemplateCC.deserializeBinaryFromReader = function (msg, reader) {
1792
+ while (reader.nextField()) {
1793
+ if (reader.isEndGroup()) {
1794
+ break;
1795
+ }
1796
+ var field = reader.getFieldNumber();
1797
+ switch (field) {
1798
+ case 1:
1799
+ var value = /** @type {string} */reader.readString();
1800
+ msg.setTag(value);
1801
+ break;
1802
+ case 2:
1803
+ var value = /** @type {number} */reader.readInt32();
1804
+ msg.setExportarrid(value);
1805
+ break;
1806
+ case 3:
1807
+ var value = new proto.OneStyleValue();
1808
+ reader.readMessage(value, proto.OneStyleValue.deserializeBinaryFromReader);
1809
+ msg.addOptsarr(value);
1810
+ break;
1811
+ default:
1812
+ reader.skipField();
1813
+ break;
1814
+ }
1815
+ }
1816
+ return msg;
1817
+ };
1818
+
1819
+ /**
1820
+ * Serializes the message to binary data (in protobuf wire format).
1821
+ * @return {!Uint8Array}
1822
+ */
1823
+ proto.TemplateCC.prototype.serializeBinary = function () {
1824
+ var writer = new jspb.BinaryWriter();
1825
+ proto.TemplateCC.serializeBinaryToWriter(this, writer);
1826
+ return writer.getResultBuffer();
1827
+ };
1828
+
1829
+ /**
1830
+ * Serializes the given message to binary data (in protobuf wire
1831
+ * format), writing to the given BinaryWriter.
1832
+ * @param {!proto.TemplateCC} message
1833
+ * @param {!jspb.BinaryWriter} writer
1834
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1835
+ */
1836
+ proto.TemplateCC.serializeBinaryToWriter = function (message, writer) {
1837
+ var f = undefined;
1838
+ f = message.getTag();
1839
+ if (f.length > 0) {
1840
+ writer.writeString(1, f);
1841
+ }
1842
+ f = message.getExportarrid();
1843
+ if (f !== 0) {
1844
+ writer.writeInt32(2, f);
1845
+ }
1846
+ f = message.getOptsarrList();
1847
+ if (f.length > 0) {
1848
+ writer.writeRepeatedMessage(3, f, proto.OneStyleValue.serializeBinaryToWriter);
1849
+ }
1850
+ };
1851
+
1852
+ /**
1853
+ * optional string tag = 1;
1854
+ * @return {string}
1855
+ */
1856
+ proto.TemplateCC.prototype.getTag = function () {
1857
+ return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 1, '')
1858
+ );
1859
+ };
1860
+
1861
+ /** @param {string} value */
1862
+ proto.TemplateCC.prototype.setTag = function (value) {
1863
+ jspb.Message.setProto3StringField(this, 1, value);
1864
+ };
1865
+
1866
+ /**
1867
+ * optional int32 exportArrId = 2;
1868
+ * @return {number}
1869
+ */
1870
+ proto.TemplateCC.prototype.getExportarrid = function () {
1871
+ return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 2, 0)
1872
+ );
1873
+ };
1874
+
1875
+ /** @param {number} value */
1876
+ proto.TemplateCC.prototype.setExportarrid = function (value) {
1877
+ jspb.Message.setProto3IntField(this, 2, value);
1878
+ };
1879
+
1880
+ /**
1881
+ * repeated OneStyleValue optsArr = 3;
1882
+ * @return {!Array<!proto.OneStyleValue>}
1883
+ */
1884
+ proto.TemplateCC.prototype.getOptsarrList = function () {
1885
+ return (/** @type{!Array<!proto.OneStyleValue>} */jspb.Message.getRepeatedWrapperField(this, proto.OneStyleValue, 3)
1886
+ );
1887
+ };
1888
+
1889
+ /** @param {!Array<!proto.OneStyleValue>} value */
1890
+ proto.TemplateCC.prototype.setOptsarrList = function (value) {
1891
+ jspb.Message.setRepeatedWrapperField(this, 3, value);
1892
+ };
1893
+
1894
+ /**
1895
+ * @param {!proto.OneStyleValue=} opt_value
1896
+ * @param {number=} opt_index
1897
+ * @return {!proto.OneStyleValue}
1898
+ */
1899
+ proto.TemplateCC.prototype.addOptsarr = function (opt_value, opt_index) {
1900
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.OneStyleValue, opt_index);
1901
+ };
1902
+ proto.TemplateCC.prototype.clearOptsarrList = function () {
1903
+ this.setOptsarrList([]);
1904
+ };
1905
+
1906
+ /**
1907
+ * Generated by JsPbCodeGenerator.
1908
+ * @param {Array=} opt_data Optional initial data array, typically from a
1909
+ * server response, or constructed directly in Javascript. The array is used
1910
+ * in place and becomes part of the constructed object. It is not cloned.
1911
+ * If no data is provided, the constructed object will be empty, but still
1912
+ * valid.
1913
+ * @extends {jspb.Message}
1914
+ * @constructor
1915
+ */
1916
+ proto.TemplateOne = function (opt_data) {
1917
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.TemplateOne.repeatedFields_, proto.TemplateOne.oneofGroups_);
1918
+ };
1919
+ goog.inherits(proto.TemplateOne, jspb.Message);
1920
+ if (goog.DEBUG && !COMPILED) {
1921
+ proto.TemplateOne.displayName = 'proto.TemplateOne';
1922
+ }
1923
+ /**
1924
+ * List of repeated fields within this message type.
1925
+ * @private {!Array<number>}
1926
+ * @const
1927
+ */
1928
+ proto.TemplateOne.repeatedFields_ = [6];
1929
+
1930
+ /**
1931
+ * Oneof group definitions for this message. Each group defines the field
1932
+ * numbers belonging to that group. When of these fields' value is set, all
1933
+ * other fields in the group are cleared. During deserialization, if multiple
1934
+ * fields are encountered for a group, only the last value seen will be kept.
1935
+ * @private {!Array<!Array<number>>}
1936
+ * @const
1937
+ */
1938
+ proto.TemplateOne.oneofGroups_ = [[1, 2, 3, 4]];
1939
+
1940
+ /**
1941
+ * @enum {number}
1942
+ */
1943
+ proto.TemplateOne.ValueCase = {
1944
+ VALUE_NOT_SET: 0,
1945
+ __CE__: 1,
1946
+ __CI__: 2,
1947
+ __CF__: 3,
1948
+ __CC__: 4
1949
+ };
1950
+
1951
+ /**
1952
+ * @return {proto.TemplateOne.ValueCase}
1953
+ */
1954
+ proto.TemplateOne.prototype.getValueCase = function () {
1955
+ return (/** @type {proto.TemplateOne.ValueCase} */jspb.Message.computeOneofCase(this, proto.TemplateOne.oneofGroups_[0])
1956
+ );
1957
+ };
1958
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1959
+ /**
1960
+ * Creates an object representation of this proto suitable for use in Soy templates.
1961
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1962
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1963
+ * For the list of reserved names please see:
1964
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1965
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1966
+ * for transitional soy proto support: http://goto/soy-param-migration
1967
+ * @return {!Object}
1968
+ */
1969
+ proto.TemplateOne.prototype.toObject = function (opt_includeInstance) {
1970
+ return proto.TemplateOne.toObject(opt_includeInstance, this);
1971
+ };
1972
+
1973
+ /**
1974
+ * Static version of the {@see toObject} method.
1975
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1976
+ * instance for transitional soy proto support:
1977
+ * http://goto/soy-param-migration
1978
+ * @param {!proto.TemplateOne} msg The msg instance to transform.
1979
+ * @return {!Object}
1980
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1981
+ */
1982
+ proto.TemplateOne.toObject = function (includeInstance, msg) {
1983
+ var f,
1984
+ obj = {
1985
+ ce: (f = msg.getCe()) && proto.TemplateCE.toObject(includeInstance, f),
1986
+ ci: (f = msg.getCi()) && proto.TemplateCI.toObject(includeInstance, f),
1987
+ cf: (f = msg.getCf()) && proto.TemplateCF.toObject(includeInstance, f),
1988
+ cc: (f = msg.getCc()) && proto.TemplateCC.toObject(includeInstance, f),
1989
+ id: jspb.Message.getFieldWithDefault(msg, 5, 0),
1990
+ chldsidList: jspb.Message.getRepeatedField(msg, 6)
1991
+ };
1992
+ if (includeInstance) {
1993
+ obj.$jspbMessageInstance = msg;
1994
+ }
1995
+ return obj;
1996
+ };
1997
+ }
1998
+
1999
+ /**
2000
+ * Deserializes binary data (in protobuf wire format).
2001
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2002
+ * @return {!proto.TemplateOne}
2003
+ */
2004
+ proto.TemplateOne.deserializeBinary = function (bytes) {
2005
+ var reader = new jspb.BinaryReader(bytes);
2006
+ var msg = new proto.TemplateOne();
2007
+ return proto.TemplateOne.deserializeBinaryFromReader(msg, reader);
2008
+ };
2009
+
2010
+ /**
2011
+ * Deserializes binary data (in protobuf wire format) from the
2012
+ * given reader into the given message object.
2013
+ * @param {!proto.TemplateOne} msg The message object to deserialize into.
2014
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2015
+ * @return {!proto.TemplateOne}
2016
+ */
2017
+ proto.TemplateOne.deserializeBinaryFromReader = function (msg, reader) {
2018
+ while (reader.nextField()) {
2019
+ if (reader.isEndGroup()) {
2020
+ break;
2021
+ }
2022
+ var field = reader.getFieldNumber();
2023
+ switch (field) {
2024
+ case 1:
2025
+ var value = new proto.TemplateCE();
2026
+ reader.readMessage(value, proto.TemplateCE.deserializeBinaryFromReader);
2027
+ msg.setCe(value);
2028
+ break;
2029
+ case 2:
2030
+ var value = new proto.TemplateCI();
2031
+ reader.readMessage(value, proto.TemplateCI.deserializeBinaryFromReader);
2032
+ msg.setCi(value);
2033
+ break;
2034
+ case 3:
2035
+ var value = new proto.TemplateCF();
2036
+ reader.readMessage(value, proto.TemplateCF.deserializeBinaryFromReader);
2037
+ msg.setCf(value);
2038
+ break;
2039
+ case 4:
2040
+ var value = new proto.TemplateCC();
2041
+ reader.readMessage(value, proto.TemplateCC.deserializeBinaryFromReader);
2042
+ msg.setCc(value);
2043
+ break;
2044
+ case 5:
2045
+ var value = /** @type {number} */reader.readInt32();
2046
+ msg.setId(value);
2047
+ break;
2048
+ case 6:
2049
+ var value = /** @type {!Array<number>} */reader.readPackedInt32();
2050
+ msg.setChldsidList(value);
2051
+ break;
2052
+ default:
2053
+ reader.skipField();
2054
+ break;
2055
+ }
2056
+ }
2057
+ return msg;
2058
+ };
2059
+
2060
+ /**
2061
+ * Serializes the message to binary data (in protobuf wire format).
2062
+ * @return {!Uint8Array}
2063
+ */
2064
+ proto.TemplateOne.prototype.serializeBinary = function () {
2065
+ var writer = new jspb.BinaryWriter();
2066
+ proto.TemplateOne.serializeBinaryToWriter(this, writer);
2067
+ return writer.getResultBuffer();
2068
+ };
2069
+
2070
+ /**
2071
+ * Serializes the given message to binary data (in protobuf wire
2072
+ * format), writing to the given BinaryWriter.
2073
+ * @param {!proto.TemplateOne} message
2074
+ * @param {!jspb.BinaryWriter} writer
2075
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2076
+ */
2077
+ proto.TemplateOne.serializeBinaryToWriter = function (message, writer) {
2078
+ var f = undefined;
2079
+ f = message.getCe();
2080
+ if (f != null) {
2081
+ writer.writeMessage(1, f, proto.TemplateCE.serializeBinaryToWriter);
2082
+ }
2083
+ f = message.getCi();
2084
+ if (f != null) {
2085
+ writer.writeMessage(2, f, proto.TemplateCI.serializeBinaryToWriter);
2086
+ }
2087
+ f = message.getCf();
2088
+ if (f != null) {
2089
+ writer.writeMessage(3, f, proto.TemplateCF.serializeBinaryToWriter);
2090
+ }
2091
+ f = message.getCc();
2092
+ if (f != null) {
2093
+ writer.writeMessage(4, f, proto.TemplateCC.serializeBinaryToWriter);
2094
+ }
2095
+ f = message.getId();
2096
+ if (f !== 0) {
2097
+ writer.writeInt32(5, f);
2098
+ }
2099
+ f = message.getChldsidList();
2100
+ if (f.length > 0) {
2101
+ writer.writePackedInt32(6, f);
2102
+ }
2103
+ };
2104
+
2105
+ /**
2106
+ * optional TemplateCE __ce__ = 1;
2107
+ * @return {?proto.TemplateCE}
2108
+ */
2109
+ proto.TemplateOne.prototype.getCe = function () {
2110
+ return (/** @type{?proto.TemplateCE} */jspb.Message.getWrapperField(this, proto.TemplateCE, 1)
2111
+ );
2112
+ };
2113
+
2114
+ /** @param {?proto.TemplateCE|undefined} value */
2115
+ proto.TemplateOne.prototype.setCe = function (value) {
2116
+ jspb.Message.setOneofWrapperField(this, 1, proto.TemplateOne.oneofGroups_[0], value);
2117
+ };
2118
+ proto.TemplateOne.prototype.clearCe = function () {
2119
+ this.setCe(undefined);
2120
+ };
2121
+
2122
+ /**
2123
+ * Returns whether this field is set.
2124
+ * @return {!boolean}
2125
+ */
2126
+ proto.TemplateOne.prototype.hasCe = function () {
2127
+ return jspb.Message.getField(this, 1) != null;
2128
+ };
2129
+
2130
+ /**
2131
+ * optional TemplateCI __ci__ = 2;
2132
+ * @return {?proto.TemplateCI}
2133
+ */
2134
+ proto.TemplateOne.prototype.getCi = function () {
2135
+ return (/** @type{?proto.TemplateCI} */jspb.Message.getWrapperField(this, proto.TemplateCI, 2)
2136
+ );
2137
+ };
2138
+
2139
+ /** @param {?proto.TemplateCI|undefined} value */
2140
+ proto.TemplateOne.prototype.setCi = function (value) {
2141
+ jspb.Message.setOneofWrapperField(this, 2, proto.TemplateOne.oneofGroups_[0], value);
2142
+ };
2143
+ proto.TemplateOne.prototype.clearCi = function () {
2144
+ this.setCi(undefined);
2145
+ };
2146
+
2147
+ /**
2148
+ * Returns whether this field is set.
2149
+ * @return {!boolean}
2150
+ */
2151
+ proto.TemplateOne.prototype.hasCi = function () {
2152
+ return jspb.Message.getField(this, 2) != null;
2153
+ };
2154
+
2155
+ /**
2156
+ * optional TemplateCF __cf__ = 3;
2157
+ * @return {?proto.TemplateCF}
2158
+ */
2159
+ proto.TemplateOne.prototype.getCf = function () {
2160
+ return (/** @type{?proto.TemplateCF} */jspb.Message.getWrapperField(this, proto.TemplateCF, 3)
2161
+ );
2162
+ };
2163
+
2164
+ /** @param {?proto.TemplateCF|undefined} value */
2165
+ proto.TemplateOne.prototype.setCf = function (value) {
2166
+ jspb.Message.setOneofWrapperField(this, 3, proto.TemplateOne.oneofGroups_[0], value);
2167
+ };
2168
+ proto.TemplateOne.prototype.clearCf = function () {
2169
+ this.setCf(undefined);
2170
+ };
2171
+
2172
+ /**
2173
+ * Returns whether this field is set.
2174
+ * @return {!boolean}
2175
+ */
2176
+ proto.TemplateOne.prototype.hasCf = function () {
2177
+ return jspb.Message.getField(this, 3) != null;
2178
+ };
2179
+
2180
+ /**
2181
+ * optional TemplateCC __cc__ = 4;
2182
+ * @return {?proto.TemplateCC}
2183
+ */
2184
+ proto.TemplateOne.prototype.getCc = function () {
2185
+ return (/** @type{?proto.TemplateCC} */jspb.Message.getWrapperField(this, proto.TemplateCC, 4)
2186
+ );
2187
+ };
2188
+
2189
+ /** @param {?proto.TemplateCC|undefined} value */
2190
+ proto.TemplateOne.prototype.setCc = function (value) {
2191
+ jspb.Message.setOneofWrapperField(this, 4, proto.TemplateOne.oneofGroups_[0], value);
2192
+ };
2193
+ proto.TemplateOne.prototype.clearCc = function () {
2194
+ this.setCc(undefined);
2195
+ };
2196
+
2197
+ /**
2198
+ * Returns whether this field is set.
2199
+ * @return {!boolean}
2200
+ */
2201
+ proto.TemplateOne.prototype.hasCc = function () {
2202
+ return jspb.Message.getField(this, 4) != null;
2203
+ };
2204
+
2205
+ /**
2206
+ * optional int32 id = 5;
2207
+ * @return {number}
2208
+ */
2209
+ proto.TemplateOne.prototype.getId = function () {
2210
+ return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 5, 0)
2211
+ );
2212
+ };
2213
+
2214
+ /** @param {number} value */
2215
+ proto.TemplateOne.prototype.setId = function (value) {
2216
+ jspb.Message.setProto3IntField(this, 5, value);
2217
+ };
2218
+
2219
+ /**
2220
+ * repeated int32 chldsId = 6;
2221
+ * @return {!Array<number>}
2222
+ */
2223
+ proto.TemplateOne.prototype.getChldsidList = function () {
2224
+ return (/** @type {!Array<number>} */jspb.Message.getRepeatedField(this, 6)
2225
+ );
2226
+ };
2227
+
2228
+ /** @param {!Array<number>} value */
2229
+ proto.TemplateOne.prototype.setChldsidList = function (value) {
2230
+ jspb.Message.setField(this, 6, value || []);
2231
+ };
2232
+
2233
+ /**
2234
+ * @param {!number} value
2235
+ * @param {number=} opt_index
2236
+ */
2237
+ proto.TemplateOne.prototype.addChldsid = function (value, opt_index) {
2238
+ jspb.Message.addToRepeatedField(this, 6, value, opt_index);
2239
+ };
2240
+ proto.TemplateOne.prototype.clearChldsidList = function () {
2241
+ this.setChldsidList([]);
2242
+ };
2243
+
2244
+ /**
2245
+ * Generated by JsPbCodeGenerator.
2246
+ * @param {Array=} opt_data Optional initial data array, typically from a
2247
+ * server response, or constructed directly in Javascript. The array is used
2248
+ * in place and becomes part of the constructed object. It is not cloned.
2249
+ * If no data is provided, the constructed object will be empty, but still
2250
+ * valid.
2251
+ * @extends {jspb.Message}
2252
+ * @constructor
2253
+ */
2254
+ proto.ExportCell = function (opt_data) {
2255
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ExportCell.repeatedFields_, null);
2256
+ };
2257
+ goog.inherits(proto.ExportCell, jspb.Message);
2258
+ if (goog.DEBUG && !COMPILED) {
2259
+ proto.ExportCell.displayName = 'proto.ExportCell';
2260
+ }
2261
+ /**
2262
+ * List of repeated fields within this message type.
2263
+ * @private {!Array<number>}
2264
+ * @const
2265
+ */
2266
+ proto.ExportCell.repeatedFields_ = [2, 3];
2267
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2268
+ /**
2269
+ * Creates an object representation of this proto suitable for use in Soy templates.
2270
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2271
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2272
+ * For the list of reserved names please see:
2273
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2274
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2275
+ * for transitional soy proto support: http://goto/soy-param-migration
2276
+ * @return {!Object}
2277
+ */
2278
+ proto.ExportCell.prototype.toObject = function (opt_includeInstance) {
2279
+ return proto.ExportCell.toObject(opt_includeInstance, this);
2280
+ };
2281
+
2282
+ /**
2283
+ * Static version of the {@see toObject} method.
2284
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
2285
+ * instance for transitional soy proto support:
2286
+ * http://goto/soy-param-migration
2287
+ * @param {!proto.ExportCell} msg The msg instance to transform.
2288
+ * @return {!Object}
2289
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2290
+ */
2291
+ proto.ExportCell.toObject = function (includeInstance, msg) {
2292
+ var f,
2293
+ obj = {
2294
+ tagname: jspb.Message.getFieldWithDefault(msg, 1, ''),
2295
+ cssarrList: jspb.Message.toObjectList(msg.getCssarrList(), proto.CssCell.toObject, includeInstance),
2296
+ templatearrList: jspb.Message.toObjectList(msg.getTemplatearrList(), proto.TemplateOne.toObject, includeInstance)
2297
+ };
2298
+ if (includeInstance) {
2299
+ obj.$jspbMessageInstance = msg;
2300
+ }
2301
+ return obj;
2302
+ };
2303
+ }
2304
+
2305
+ /**
2306
+ * Deserializes binary data (in protobuf wire format).
2307
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2308
+ * @return {!proto.ExportCell}
2309
+ */
2310
+ proto.ExportCell.deserializeBinary = function (bytes) {
2311
+ var reader = new jspb.BinaryReader(bytes);
2312
+ var msg = new proto.ExportCell();
2313
+ return proto.ExportCell.deserializeBinaryFromReader(msg, reader);
2314
+ };
2315
+
2316
+ /**
2317
+ * Deserializes binary data (in protobuf wire format) from the
2318
+ * given reader into the given message object.
2319
+ * @param {!proto.ExportCell} msg The message object to deserialize into.
2320
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2321
+ * @return {!proto.ExportCell}
2322
+ */
2323
+ proto.ExportCell.deserializeBinaryFromReader = function (msg, reader) {
2324
+ while (reader.nextField()) {
2325
+ if (reader.isEndGroup()) {
2326
+ break;
2327
+ }
2328
+ var field = reader.getFieldNumber();
2329
+ switch (field) {
2330
+ case 1:
2331
+ var value = /** @type {string} */reader.readString();
2332
+ msg.setTagname(value);
2333
+ break;
2334
+ case 2:
2335
+ var value = new proto.CssCell();
2336
+ reader.readMessage(value, proto.CssCell.deserializeBinaryFromReader);
2337
+ msg.addCssarr(value);
2338
+ break;
2339
+ case 3:
2340
+ var value = new proto.TemplateOne();
2341
+ reader.readMessage(value, proto.TemplateOne.deserializeBinaryFromReader);
2342
+ msg.addTemplatearr(value);
2343
+ break;
2344
+ default:
2345
+ reader.skipField();
2346
+ break;
2347
+ }
2348
+ }
2349
+ return msg;
2350
+ };
2351
+
2352
+ /**
2353
+ * Serializes the message to binary data (in protobuf wire format).
2354
+ * @return {!Uint8Array}
2355
+ */
2356
+ proto.ExportCell.prototype.serializeBinary = function () {
2357
+ var writer = new jspb.BinaryWriter();
2358
+ proto.ExportCell.serializeBinaryToWriter(this, writer);
2359
+ return writer.getResultBuffer();
2360
+ };
2361
+
2362
+ /**
2363
+ * Serializes the given message to binary data (in protobuf wire
2364
+ * format), writing to the given BinaryWriter.
2365
+ * @param {!proto.ExportCell} message
2366
+ * @param {!jspb.BinaryWriter} writer
2367
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2368
+ */
2369
+ proto.ExportCell.serializeBinaryToWriter = function (message, writer) {
2370
+ var f = undefined;
2371
+ f = message.getTagname();
2372
+ if (f.length > 0) {
2373
+ writer.writeString(1, f);
2374
+ }
2375
+ f = message.getCssarrList();
2376
+ if (f.length > 0) {
2377
+ writer.writeRepeatedMessage(2, f, proto.CssCell.serializeBinaryToWriter);
2378
+ }
2379
+ f = message.getTemplatearrList();
2380
+ if (f.length > 0) {
2381
+ writer.writeRepeatedMessage(3, f, proto.TemplateOne.serializeBinaryToWriter);
2382
+ }
2383
+ };
2384
+
2385
+ /**
2386
+ * optional string tagName = 1;
2387
+ * @return {string}
2388
+ */
2389
+ proto.ExportCell.prototype.getTagname = function () {
2390
+ return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 1, '')
2391
+ );
2392
+ };
2393
+
2394
+ /** @param {string} value */
2395
+ proto.ExportCell.prototype.setTagname = function (value) {
2396
+ jspb.Message.setProto3StringField(this, 1, value);
2397
+ };
2398
+
2399
+ /**
2400
+ * repeated CssCell cssArr = 2;
2401
+ * @return {!Array<!proto.CssCell>}
2402
+ */
2403
+ proto.ExportCell.prototype.getCssarrList = function () {
2404
+ return (/** @type{!Array<!proto.CssCell>} */jspb.Message.getRepeatedWrapperField(this, proto.CssCell, 2)
2405
+ );
2406
+ };
2407
+
2408
+ /** @param {!Array<!proto.CssCell>} value */
2409
+ proto.ExportCell.prototype.setCssarrList = function (value) {
2410
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
2411
+ };
2412
+
2413
+ /**
2414
+ * @param {!proto.CssCell=} opt_value
2415
+ * @param {number=} opt_index
2416
+ * @return {!proto.CssCell}
2417
+ */
2418
+ proto.ExportCell.prototype.addCssarr = function (opt_value, opt_index) {
2419
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.CssCell, opt_index);
2420
+ };
2421
+ proto.ExportCell.prototype.clearCssarrList = function () {
2422
+ this.setCssarrList([]);
2423
+ };
2424
+
2425
+ /**
2426
+ * repeated TemplateOne templateArr = 3;
2427
+ * @return {!Array<!proto.TemplateOne>}
2428
+ */
2429
+ proto.ExportCell.prototype.getTemplatearrList = function () {
2430
+ return (/** @type{!Array<!proto.TemplateOne>} */jspb.Message.getRepeatedWrapperField(this, proto.TemplateOne, 3)
2431
+ );
2432
+ };
2433
+
2434
+ /** @param {!Array<!proto.TemplateOne>} value */
2435
+ proto.ExportCell.prototype.setTemplatearrList = function (value) {
2436
+ jspb.Message.setRepeatedWrapperField(this, 3, value);
2437
+ };
2438
+
2439
+ /**
2440
+ * @param {!proto.TemplateOne=} opt_value
2441
+ * @param {number=} opt_index
2442
+ * @return {!proto.TemplateOne}
2443
+ */
2444
+ proto.ExportCell.prototype.addTemplatearr = function (opt_value, opt_index) {
2445
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.TemplateOne, opt_index);
2446
+ };
2447
+ proto.ExportCell.prototype.clearTemplatearrList = function () {
2448
+ this.setTemplatearrList([]);
2449
+ };
2450
+
2451
+ /**
2452
+ * Generated by JsPbCodeGenerator.
2453
+ * @param {Array=} opt_data Optional initial data array, typically from a
2454
+ * server response, or constructed directly in Javascript. The array is used
2455
+ * in place and becomes part of the constructed object. It is not cloned.
2456
+ * If no data is provided, the constructed object will be empty, but still
2457
+ * valid.
2458
+ * @extends {jspb.Message}
2459
+ * @constructor
2460
+ */
2461
+ proto.Version = function (opt_data) {
2462
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2463
+ };
2464
+ goog.inherits(proto.Version, jspb.Message);
2465
+ if (goog.DEBUG && !COMPILED) {
2466
+ proto.Version.displayName = 'proto.Version';
2467
+ }
2468
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2469
+ /**
2470
+ * Creates an object representation of this proto suitable for use in Soy templates.
2471
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2472
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2473
+ * For the list of reserved names please see:
2474
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2475
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2476
+ * for transitional soy proto support: http://goto/soy-param-migration
2477
+ * @return {!Object}
2478
+ */
2479
+ proto.Version.prototype.toObject = function (opt_includeInstance) {
2480
+ return proto.Version.toObject(opt_includeInstance, this);
2481
+ };
2482
+
2483
+ /**
2484
+ * Static version of the {@see toObject} method.
2485
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
2486
+ * instance for transitional soy proto support:
2487
+ * http://goto/soy-param-migration
2488
+ * @param {!proto.Version} msg The msg instance to transform.
2489
+ * @return {!Object}
2490
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2491
+ */
2492
+ proto.Version.toObject = function (includeInstance, msg) {
2493
+ var f,
2494
+ obj = {
2495
+ versionname: jspb.Message.getFieldWithDefault(msg, 1, ''),
2496
+ versioncode: jspb.Message.getFieldWithDefault(msg, 2, 0)
2497
+ };
2498
+ if (includeInstance) {
2499
+ obj.$jspbMessageInstance = msg;
2500
+ }
2501
+ return obj;
2502
+ };
2503
+ }
2504
+
2505
+ /**
2506
+ * Deserializes binary data (in protobuf wire format).
2507
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2508
+ * @return {!proto.Version}
2509
+ */
2510
+ proto.Version.deserializeBinary = function (bytes) {
2511
+ var reader = new jspb.BinaryReader(bytes);
2512
+ var msg = new proto.Version();
2513
+ return proto.Version.deserializeBinaryFromReader(msg, reader);
2514
+ };
2515
+
2516
+ /**
2517
+ * Deserializes binary data (in protobuf wire format) from the
2518
+ * given reader into the given message object.
2519
+ * @param {!proto.Version} msg The message object to deserialize into.
2520
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2521
+ * @return {!proto.Version}
2522
+ */
2523
+ proto.Version.deserializeBinaryFromReader = function (msg, reader) {
2524
+ while (reader.nextField()) {
2525
+ if (reader.isEndGroup()) {
2526
+ break;
2527
+ }
2528
+ var field = reader.getFieldNumber();
2529
+ switch (field) {
2530
+ case 1:
2531
+ var value = /** @type {string} */reader.readString();
2532
+ msg.setVersionname(value);
2533
+ break;
2534
+ case 2:
2535
+ var value = /** @type {number} */reader.readInt32();
2536
+ msg.setVersioncode(value);
2537
+ break;
2538
+ default:
2539
+ reader.skipField();
2540
+ break;
2541
+ }
2542
+ }
2543
+ return msg;
2544
+ };
2545
+
2546
+ /**
2547
+ * Serializes the message to binary data (in protobuf wire format).
2548
+ * @return {!Uint8Array}
2549
+ */
2550
+ proto.Version.prototype.serializeBinary = function () {
2551
+ var writer = new jspb.BinaryWriter();
2552
+ proto.Version.serializeBinaryToWriter(this, writer);
2553
+ return writer.getResultBuffer();
2554
+ };
2555
+
2556
+ /**
2557
+ * Serializes the given message to binary data (in protobuf wire
2558
+ * format), writing to the given BinaryWriter.
2559
+ * @param {!proto.Version} message
2560
+ * @param {!jspb.BinaryWriter} writer
2561
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2562
+ */
2563
+ proto.Version.serializeBinaryToWriter = function (message, writer) {
2564
+ var f = undefined;
2565
+ f = message.getVersionname();
2566
+ if (f.length > 0) {
2567
+ writer.writeString(1, f);
2568
+ }
2569
+ f = message.getVersioncode();
2570
+ if (f !== 0) {
2571
+ writer.writeInt32(2, f);
2572
+ }
2573
+ };
2574
+
2575
+ /**
2576
+ * optional string versionName = 1;
2577
+ * @return {string}
2578
+ */
2579
+ proto.Version.prototype.getVersionname = function () {
2580
+ return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 1, '')
2581
+ );
2582
+ };
2583
+
2584
+ /** @param {string} value */
2585
+ proto.Version.prototype.setVersionname = function (value) {
2586
+ jspb.Message.setProto3StringField(this, 1, value);
2587
+ };
2588
+
2589
+ /**
2590
+ * optional int32 versionCode = 2;
2591
+ * @return {number}
2592
+ */
2593
+ proto.Version.prototype.getVersioncode = function () {
2594
+ return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 2, 0)
2595
+ );
2596
+ };
2597
+
2598
+ /** @param {number} value */
2599
+ proto.Version.prototype.setVersioncode = function (value) {
2600
+ jspb.Message.setProto3IntField(this, 2, value);
2601
+ };
2602
+
2603
+ /**
2604
+ * Generated by JsPbCodeGenerator.
2605
+ * @param {Array=} opt_data Optional initial data array, typically from a
2606
+ * server response, or constructed directly in Javascript. The array is used
2607
+ * in place and becomes part of the constructed object. It is not cloned.
2608
+ * If no data is provided, the constructed object will be empty, but still
2609
+ * valid.
2610
+ * @extends {jspb.Message}
2611
+ * @constructor
2612
+ */
2613
+ proto.ExportArr = function (opt_data) {
2614
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ExportArr.repeatedFields_, null);
2615
+ };
2616
+ goog.inherits(proto.ExportArr, jspb.Message);
2617
+ if (goog.DEBUG && !COMPILED) {
2618
+ proto.ExportArr.displayName = 'proto.ExportArr';
2619
+ }
2620
+ /**
2621
+ * List of repeated fields within this message type.
2622
+ * @private {!Array<number>}
2623
+ * @const
2624
+ */
2625
+ proto.ExportArr.repeatedFields_ = [2];
2626
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2627
+ /**
2628
+ * Creates an object representation of this proto suitable for use in Soy templates.
2629
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2630
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2631
+ * For the list of reserved names please see:
2632
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2633
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2634
+ * for transitional soy proto support: http://goto/soy-param-migration
2635
+ * @return {!Object}
2636
+ */
2637
+ proto.ExportArr.prototype.toObject = function (opt_includeInstance) {
2638
+ return proto.ExportArr.toObject(opt_includeInstance, this);
2639
+ };
2640
+
2641
+ /**
2642
+ * Static version of the {@see toObject} method.
2643
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
2644
+ * instance for transitional soy proto support:
2645
+ * http://goto/soy-param-migration
2646
+ * @param {!proto.ExportArr} msg The msg instance to transform.
2647
+ * @return {!Object}
2648
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2649
+ */
2650
+ proto.ExportArr.toObject = function (includeInstance, msg) {
2651
+ var f,
2652
+ obj = {
2653
+ ver: (f = msg.getVer()) && proto.Version.toObject(includeInstance, f),
2654
+ valuearrList: jspb.Message.toObjectList(msg.getValuearrList(), proto.ExportCell.toObject, includeInstance)
2655
+ };
2656
+ if (includeInstance) {
2657
+ obj.$jspbMessageInstance = msg;
2658
+ }
2659
+ return obj;
2660
+ };
2661
+ }
2662
+
2663
+ /**
2664
+ * Deserializes binary data (in protobuf wire format).
2665
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2666
+ * @return {!proto.ExportArr}
2667
+ */
2668
+ proto.ExportArr.deserializeBinary = function (bytes) {
2669
+ var reader = new jspb.BinaryReader(bytes);
2670
+ var msg = new proto.ExportArr();
2671
+ return proto.ExportArr.deserializeBinaryFromReader(msg, reader);
2672
+ };
2673
+
2674
+ /**
2675
+ * Deserializes binary data (in protobuf wire format) from the
2676
+ * given reader into the given message object.
2677
+ * @param {!proto.ExportArr} msg The message object to deserialize into.
2678
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2679
+ * @return {!proto.ExportArr}
2680
+ */
2681
+ proto.ExportArr.deserializeBinaryFromReader = function (msg, reader) {
2682
+ while (reader.nextField()) {
2683
+ if (reader.isEndGroup()) {
2684
+ break;
2685
+ }
2686
+ var field = reader.getFieldNumber();
2687
+ switch (field) {
2688
+ case 1:
2689
+ var value = new proto.Version();
2690
+ reader.readMessage(value, proto.Version.deserializeBinaryFromReader);
2691
+ msg.setVer(value);
2692
+ break;
2693
+ case 2:
2694
+ var value = new proto.ExportCell();
2695
+ reader.readMessage(value, proto.ExportCell.deserializeBinaryFromReader);
2696
+ msg.addValuearr(value);
2697
+ break;
2698
+ default:
2699
+ reader.skipField();
2700
+ break;
2701
+ }
2702
+ }
2703
+ return msg;
2704
+ };
2705
+
2706
+ /**
2707
+ * Serializes the message to binary data (in protobuf wire format).
2708
+ * @return {!Uint8Array}
2709
+ */
2710
+ proto.ExportArr.prototype.serializeBinary = function () {
2711
+ var writer = new jspb.BinaryWriter();
2712
+ proto.ExportArr.serializeBinaryToWriter(this, writer);
2713
+ return writer.getResultBuffer();
2714
+ };
2715
+
2716
+ /**
2717
+ * Serializes the given message to binary data (in protobuf wire
2718
+ * format), writing to the given BinaryWriter.
2719
+ * @param {!proto.ExportArr} message
2720
+ * @param {!jspb.BinaryWriter} writer
2721
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2722
+ */
2723
+ proto.ExportArr.serializeBinaryToWriter = function (message, writer) {
2724
+ var f = undefined;
2725
+ f = message.getVer();
2726
+ if (f != null) {
2727
+ writer.writeMessage(1, f, proto.Version.serializeBinaryToWriter);
2728
+ }
2729
+ f = message.getValuearrList();
2730
+ if (f.length > 0) {
2731
+ writer.writeRepeatedMessage(2, f, proto.ExportCell.serializeBinaryToWriter);
2732
+ }
2733
+ };
2734
+
2735
+ /**
2736
+ * optional Version ver = 1;
2737
+ * @return {?proto.Version}
2738
+ */
2739
+ proto.ExportArr.prototype.getVer = function () {
2740
+ return (/** @type{?proto.Version} */jspb.Message.getWrapperField(this, proto.Version, 1)
2741
+ );
2742
+ };
2743
+
2744
+ /** @param {?proto.Version|undefined} value */
2745
+ proto.ExportArr.prototype.setVer = function (value) {
2746
+ jspb.Message.setWrapperField(this, 1, value);
2747
+ };
2748
+ proto.ExportArr.prototype.clearVer = function () {
2749
+ this.setVer(undefined);
2750
+ };
2751
+
2752
+ /**
2753
+ * Returns whether this field is set.
2754
+ * @return {!boolean}
2755
+ */
2756
+ proto.ExportArr.prototype.hasVer = function () {
2757
+ return jspb.Message.getField(this, 1) != null;
2758
+ };
2759
+
2760
+ /**
2761
+ * repeated ExportCell valueArr = 2;
2762
+ * @return {!Array<!proto.ExportCell>}
2763
+ */
2764
+ proto.ExportArr.prototype.getValuearrList = function () {
2765
+ return (/** @type{!Array<!proto.ExportCell>} */jspb.Message.getRepeatedWrapperField(this, proto.ExportCell, 2)
2766
+ );
2767
+ };
2768
+
2769
+ /** @param {!Array<!proto.ExportCell>} value */
2770
+ proto.ExportArr.prototype.setValuearrList = function (value) {
2771
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
2772
+ };
2773
+
2774
+ /**
2775
+ * @param {!proto.ExportCell=} opt_value
2776
+ * @param {number=} opt_index
2777
+ * @return {!proto.ExportCell}
2778
+ */
2779
+ proto.ExportArr.prototype.addValuearr = function (opt_value, opt_index) {
2780
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ExportCell, opt_index);
2781
+ };
2782
+ proto.ExportArr.prototype.clearValuearrList = function () {
2783
+ this.setValuearrList([]);
2784
+ };
2785
+ goog.object.extend(exports, proto);
2
2786
  //# sourceMappingURL=vdom_pb.js.map