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