UNPKG

294 kBJavaScriptView Raw
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
10var jspb = require('google-protobuf');
11var goog = jspb;
12var global = Function('return this')();
13
14goog.exportSymbol('proto.co.treelab.api.AddColumnInput', null, global);
15goog.exportSymbol('proto.co.treelab.api.AddCoreInput', null, global);
16goog.exportSymbol('proto.co.treelab.api.AddRowInput', null, global);
17goog.exportSymbol('proto.co.treelab.api.AddTableInput', null, global);
18goog.exportSymbol('proto.co.treelab.api.AddViewInput', null, global);
19goog.exportSymbol('proto.co.treelab.api.Attachment', null, global);
20goog.exportSymbol('proto.co.treelab.api.CellData', null, global);
21goog.exportSymbol('proto.co.treelab.api.CellValueInput', null, global);
22goog.exportSymbol('proto.co.treelab.api.Choice', null, global);
23goog.exportSymbol('proto.co.treelab.api.ColumnConfig', null, global);
24goog.exportSymbol('proto.co.treelab.api.ColumnConfigInput', null, global);
25goog.exportSymbol('proto.co.treelab.api.ColumnDefinition', null, global);
26goog.exportSymbol('proto.co.treelab.api.ColumnId', null, global);
27goog.exportSymbol('proto.co.treelab.api.CoreId', null, global);
28goog.exportSymbol('proto.co.treelab.api.CoreProjection', null, global);
29goog.exportSymbol('proto.co.treelab.api.CoresResult', null, global);
30goog.exportSymbol('proto.co.treelab.api.CreateWorkspaceInput', null, global);
31goog.exportSymbol('proto.co.treelab.api.EmptyInput', null, global);
32goog.exportSymbol('proto.co.treelab.api.EventMetadata', null, global);
33goog.exportSymbol('proto.co.treelab.api.EventPayload', null, global);
34goog.exportSymbol('proto.co.treelab.api.ForeignRowValue', null, global);
35goog.exportSymbol('proto.co.treelab.api.ForeignRowVisibleNameValue', null, global);
36goog.exportSymbol('proto.co.treelab.api.GetCoreInput', null, global);
37goog.exportSymbol('proto.co.treelab.api.GetCoresInput', null, global);
38goog.exportSymbol('proto.co.treelab.api.GetTableInput', null, global);
39goog.exportSymbol('proto.co.treelab.api.GetTablesInput', null, global);
40goog.exportSymbol('proto.co.treelab.api.GetWorkspaceInput', null, global);
41goog.exportSymbol('proto.co.treelab.api.RemoveCoreInput', null, global);
42goog.exportSymbol('proto.co.treelab.api.RowData', null, global);
43goog.exportSymbol('proto.co.treelab.api.RowId', null, global);
44goog.exportSymbol('proto.co.treelab.api.TableData', null, global);
45goog.exportSymbol('proto.co.treelab.api.TableId', null, global);
46goog.exportSymbol('proto.co.treelab.api.TableProjection', null, global);
47goog.exportSymbol('proto.co.treelab.api.TablesResult', null, global);
48goog.exportSymbol('proto.co.treelab.api.UpdateCellActionInput', null, global);
49goog.exportSymbol('proto.co.treelab.api.UpdateCellInput', null, global);
50goog.exportSymbol('proto.co.treelab.api.UpdateCoreInput', null, global);
51goog.exportSymbol('proto.co.treelab.api.ViewData', null, global);
52goog.exportSymbol('proto.co.treelab.api.ViewDefinition', null, global);
53goog.exportSymbol('proto.co.treelab.api.ViewDefinitionInput', null, global);
54goog.exportSymbol('proto.co.treelab.api.ViewId', null, global);
55goog.exportSymbol('proto.co.treelab.api.WorkspaceId', null, global);
56goog.exportSymbol('proto.co.treelab.api.WorkspaceProjection', null, global);
57goog.exportSymbol('proto.co.treelab.api.WorkspaceSubscriptionInput', null, global);
58goog.exportSymbol('proto.co.treelab.api.WorkspacesResult', null, global);
59
60/**
61 * Generated by JsPbCodeGenerator.
62 * @param {Array=} opt_data Optional initial data array, typically from a
63 * server response, or constructed directly in Javascript. The array is used
64 * in place and becomes part of the constructed object. It is not cloned.
65 * If no data is provided, the constructed object will be empty, but still
66 * valid.
67 * @extends {jspb.Message}
68 * @constructor
69 */
70proto.co.treelab.api.EmptyInput = function(opt_data) {
71 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
72};
73goog.inherits(proto.co.treelab.api.EmptyInput, jspb.Message);
74if (goog.DEBUG && !COMPILED) {
75 proto.co.treelab.api.EmptyInput.displayName = 'proto.co.treelab.api.EmptyInput';
76}
77
78
79if (jspb.Message.GENERATE_TO_OBJECT) {
80/**
81 * Creates an object representation of this proto suitable for use in Soy templates.
82 * Field names that are reserved in JavaScript and will be renamed to pb_name.
83 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
84 * For the list of reserved names please see:
85 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
86 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
87 * for transitional soy proto support: http://goto/soy-param-migration
88 * @return {!Object}
89 */
90proto.co.treelab.api.EmptyInput.prototype.toObject = function(opt_includeInstance) {
91 return proto.co.treelab.api.EmptyInput.toObject(opt_includeInstance, this);
92};
93
94
95/**
96 * Static version of the {@see toObject} method.
97 * @param {boolean|undefined} includeInstance Whether to include the JSPB
98 * instance for transitional soy proto support:
99 * http://goto/soy-param-migration
100 * @param {!proto.co.treelab.api.EmptyInput} msg The msg instance to transform.
101 * @return {!Object}
102 * @suppress {unusedLocalVariables} f is only used for nested messages
103 */
104proto.co.treelab.api.EmptyInput.toObject = function(includeInstance, msg) {
105 var f, obj = {
106
107 };
108
109 if (includeInstance) {
110 obj.$jspbMessageInstance = msg;
111 }
112 return obj;
113};
114}
115
116
117/**
118 * Deserializes binary data (in protobuf wire format).
119 * @param {jspb.ByteSource} bytes The bytes to deserialize.
120 * @return {!proto.co.treelab.api.EmptyInput}
121 */
122proto.co.treelab.api.EmptyInput.deserializeBinary = function(bytes) {
123 var reader = new jspb.BinaryReader(bytes);
124 var msg = new proto.co.treelab.api.EmptyInput;
125 return proto.co.treelab.api.EmptyInput.deserializeBinaryFromReader(msg, reader);
126};
127
128
129/**
130 * Deserializes binary data (in protobuf wire format) from the
131 * given reader into the given message object.
132 * @param {!proto.co.treelab.api.EmptyInput} msg The message object to deserialize into.
133 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
134 * @return {!proto.co.treelab.api.EmptyInput}
135 */
136proto.co.treelab.api.EmptyInput.deserializeBinaryFromReader = function(msg, reader) {
137 while (reader.nextField()) {
138 if (reader.isEndGroup()) {
139 break;
140 }
141 var field = reader.getFieldNumber();
142 switch (field) {
143 default:
144 reader.skipField();
145 break;
146 }
147 }
148 return msg;
149};
150
151
152/**
153 * Serializes the message to binary data (in protobuf wire format).
154 * @return {!Uint8Array}
155 */
156proto.co.treelab.api.EmptyInput.prototype.serializeBinary = function() {
157 var writer = new jspb.BinaryWriter();
158 proto.co.treelab.api.EmptyInput.serializeBinaryToWriter(this, writer);
159 return writer.getResultBuffer();
160};
161
162
163/**
164 * Serializes the given message to binary data (in protobuf wire
165 * format), writing to the given BinaryWriter.
166 * @param {!proto.co.treelab.api.EmptyInput} message
167 * @param {!jspb.BinaryWriter} writer
168 * @suppress {unusedLocalVariables} f is only used for nested messages
169 */
170proto.co.treelab.api.EmptyInput.serializeBinaryToWriter = function(message, writer) {
171 var f = undefined;
172};
173
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 */
186proto.co.treelab.api.WorkspacesResult = function(opt_data) {
187 jspb.Message.initialize(this, opt_data, 0, -1, proto.co.treelab.api.WorkspacesResult.repeatedFields_, null);
188};
189goog.inherits(proto.co.treelab.api.WorkspacesResult, jspb.Message);
190if (goog.DEBUG && !COMPILED) {
191 proto.co.treelab.api.WorkspacesResult.displayName = 'proto.co.treelab.api.WorkspacesResult';
192}
193/**
194 * List of repeated fields within this message type.
195 * @private {!Array<number>}
196 * @const
197 */
198proto.co.treelab.api.WorkspacesResult.repeatedFields_ = [1];
199
200
201
202if (jspb.Message.GENERATE_TO_OBJECT) {
203/**
204 * Creates an object representation of this proto suitable for use in Soy templates.
205 * Field names that are reserved in JavaScript and will be renamed to pb_name.
206 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
207 * For the list of reserved names please see:
208 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
209 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
210 * for transitional soy proto support: http://goto/soy-param-migration
211 * @return {!Object}
212 */
213proto.co.treelab.api.WorkspacesResult.prototype.toObject = function(opt_includeInstance) {
214 return proto.co.treelab.api.WorkspacesResult.toObject(opt_includeInstance, this);
215};
216
217
218/**
219 * Static version of the {@see toObject} method.
220 * @param {boolean|undefined} includeInstance Whether to include the JSPB
221 * instance for transitional soy proto support:
222 * http://goto/soy-param-migration
223 * @param {!proto.co.treelab.api.WorkspacesResult} msg The msg instance to transform.
224 * @return {!Object}
225 * @suppress {unusedLocalVariables} f is only used for nested messages
226 */
227proto.co.treelab.api.WorkspacesResult.toObject = function(includeInstance, msg) {
228 var f, obj = {
229 resultList: jspb.Message.toObjectList(msg.getResultList(),
230 proto.co.treelab.api.WorkspaceProjection.toObject, includeInstance)
231 };
232
233 if (includeInstance) {
234 obj.$jspbMessageInstance = msg;
235 }
236 return obj;
237};
238}
239
240
241/**
242 * Deserializes binary data (in protobuf wire format).
243 * @param {jspb.ByteSource} bytes The bytes to deserialize.
244 * @return {!proto.co.treelab.api.WorkspacesResult}
245 */
246proto.co.treelab.api.WorkspacesResult.deserializeBinary = function(bytes) {
247 var reader = new jspb.BinaryReader(bytes);
248 var msg = new proto.co.treelab.api.WorkspacesResult;
249 return proto.co.treelab.api.WorkspacesResult.deserializeBinaryFromReader(msg, reader);
250};
251
252
253/**
254 * Deserializes binary data (in protobuf wire format) from the
255 * given reader into the given message object.
256 * @param {!proto.co.treelab.api.WorkspacesResult} msg The message object to deserialize into.
257 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
258 * @return {!proto.co.treelab.api.WorkspacesResult}
259 */
260proto.co.treelab.api.WorkspacesResult.deserializeBinaryFromReader = function(msg, reader) {
261 while (reader.nextField()) {
262 if (reader.isEndGroup()) {
263 break;
264 }
265 var field = reader.getFieldNumber();
266 switch (field) {
267 case 1:
268 var value = new proto.co.treelab.api.WorkspaceProjection;
269 reader.readMessage(value,proto.co.treelab.api.WorkspaceProjection.deserializeBinaryFromReader);
270 msg.addResult(value);
271 break;
272 default:
273 reader.skipField();
274 break;
275 }
276 }
277 return msg;
278};
279
280
281/**
282 * Serializes the message to binary data (in protobuf wire format).
283 * @return {!Uint8Array}
284 */
285proto.co.treelab.api.WorkspacesResult.prototype.serializeBinary = function() {
286 var writer = new jspb.BinaryWriter();
287 proto.co.treelab.api.WorkspacesResult.serializeBinaryToWriter(this, writer);
288 return writer.getResultBuffer();
289};
290
291
292/**
293 * Serializes the given message to binary data (in protobuf wire
294 * format), writing to the given BinaryWriter.
295 * @param {!proto.co.treelab.api.WorkspacesResult} message
296 * @param {!jspb.BinaryWriter} writer
297 * @suppress {unusedLocalVariables} f is only used for nested messages
298 */
299proto.co.treelab.api.WorkspacesResult.serializeBinaryToWriter = function(message, writer) {
300 var f = undefined;
301 f = message.getResultList();
302 if (f.length > 0) {
303 writer.writeRepeatedMessage(
304 1,
305 f,
306 proto.co.treelab.api.WorkspaceProjection.serializeBinaryToWriter
307 );
308 }
309};
310
311
312/**
313 * repeated WorkspaceProjection result = 1;
314 * @return {!Array<!proto.co.treelab.api.WorkspaceProjection>}
315 */
316proto.co.treelab.api.WorkspacesResult.prototype.getResultList = function() {
317 return /** @type{!Array<!proto.co.treelab.api.WorkspaceProjection>} */ (
318 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.WorkspaceProjection, 1));
319};
320
321
322/** @param {!Array<!proto.co.treelab.api.WorkspaceProjection>} value */
323proto.co.treelab.api.WorkspacesResult.prototype.setResultList = function(value) {
324 jspb.Message.setRepeatedWrapperField(this, 1, value);
325};
326
327
328/**
329 * @param {!proto.co.treelab.api.WorkspaceProjection=} opt_value
330 * @param {number=} opt_index
331 * @return {!proto.co.treelab.api.WorkspaceProjection}
332 */
333proto.co.treelab.api.WorkspacesResult.prototype.addResult = function(opt_value, opt_index) {
334 return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.co.treelab.api.WorkspaceProjection, opt_index);
335};
336
337
338proto.co.treelab.api.WorkspacesResult.prototype.clearResultList = function() {
339 this.setResultList([]);
340};
341
342
343
344/**
345 * Generated by JsPbCodeGenerator.
346 * @param {Array=} opt_data Optional initial data array, typically from a
347 * server response, or constructed directly in Javascript. The array is used
348 * in place and becomes part of the constructed object. It is not cloned.
349 * If no data is provided, the constructed object will be empty, but still
350 * valid.
351 * @extends {jspb.Message}
352 * @constructor
353 */
354proto.co.treelab.api.CoresResult = function(opt_data) {
355 jspb.Message.initialize(this, opt_data, 0, -1, proto.co.treelab.api.CoresResult.repeatedFields_, null);
356};
357goog.inherits(proto.co.treelab.api.CoresResult, jspb.Message);
358if (goog.DEBUG && !COMPILED) {
359 proto.co.treelab.api.CoresResult.displayName = 'proto.co.treelab.api.CoresResult';
360}
361/**
362 * List of repeated fields within this message type.
363 * @private {!Array<number>}
364 * @const
365 */
366proto.co.treelab.api.CoresResult.repeatedFields_ = [1];
367
368
369
370if (jspb.Message.GENERATE_TO_OBJECT) {
371/**
372 * Creates an object representation of this proto suitable for use in Soy templates.
373 * Field names that are reserved in JavaScript and will be renamed to pb_name.
374 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
375 * For the list of reserved names please see:
376 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
377 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
378 * for transitional soy proto support: http://goto/soy-param-migration
379 * @return {!Object}
380 */
381proto.co.treelab.api.CoresResult.prototype.toObject = function(opt_includeInstance) {
382 return proto.co.treelab.api.CoresResult.toObject(opt_includeInstance, this);
383};
384
385
386/**
387 * Static version of the {@see toObject} method.
388 * @param {boolean|undefined} includeInstance Whether to include the JSPB
389 * instance for transitional soy proto support:
390 * http://goto/soy-param-migration
391 * @param {!proto.co.treelab.api.CoresResult} msg The msg instance to transform.
392 * @return {!Object}
393 * @suppress {unusedLocalVariables} f is only used for nested messages
394 */
395proto.co.treelab.api.CoresResult.toObject = function(includeInstance, msg) {
396 var f, obj = {
397 resultList: jspb.Message.toObjectList(msg.getResultList(),
398 proto.co.treelab.api.CoreProjection.toObject, includeInstance)
399 };
400
401 if (includeInstance) {
402 obj.$jspbMessageInstance = msg;
403 }
404 return obj;
405};
406}
407
408
409/**
410 * Deserializes binary data (in protobuf wire format).
411 * @param {jspb.ByteSource} bytes The bytes to deserialize.
412 * @return {!proto.co.treelab.api.CoresResult}
413 */
414proto.co.treelab.api.CoresResult.deserializeBinary = function(bytes) {
415 var reader = new jspb.BinaryReader(bytes);
416 var msg = new proto.co.treelab.api.CoresResult;
417 return proto.co.treelab.api.CoresResult.deserializeBinaryFromReader(msg, reader);
418};
419
420
421/**
422 * Deserializes binary data (in protobuf wire format) from the
423 * given reader into the given message object.
424 * @param {!proto.co.treelab.api.CoresResult} msg The message object to deserialize into.
425 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
426 * @return {!proto.co.treelab.api.CoresResult}
427 */
428proto.co.treelab.api.CoresResult.deserializeBinaryFromReader = function(msg, reader) {
429 while (reader.nextField()) {
430 if (reader.isEndGroup()) {
431 break;
432 }
433 var field = reader.getFieldNumber();
434 switch (field) {
435 case 1:
436 var value = new proto.co.treelab.api.CoreProjection;
437 reader.readMessage(value,proto.co.treelab.api.CoreProjection.deserializeBinaryFromReader);
438 msg.addResult(value);
439 break;
440 default:
441 reader.skipField();
442 break;
443 }
444 }
445 return msg;
446};
447
448
449/**
450 * Serializes the message to binary data (in protobuf wire format).
451 * @return {!Uint8Array}
452 */
453proto.co.treelab.api.CoresResult.prototype.serializeBinary = function() {
454 var writer = new jspb.BinaryWriter();
455 proto.co.treelab.api.CoresResult.serializeBinaryToWriter(this, writer);
456 return writer.getResultBuffer();
457};
458
459
460/**
461 * Serializes the given message to binary data (in protobuf wire
462 * format), writing to the given BinaryWriter.
463 * @param {!proto.co.treelab.api.CoresResult} message
464 * @param {!jspb.BinaryWriter} writer
465 * @suppress {unusedLocalVariables} f is only used for nested messages
466 */
467proto.co.treelab.api.CoresResult.serializeBinaryToWriter = function(message, writer) {
468 var f = undefined;
469 f = message.getResultList();
470 if (f.length > 0) {
471 writer.writeRepeatedMessage(
472 1,
473 f,
474 proto.co.treelab.api.CoreProjection.serializeBinaryToWriter
475 );
476 }
477};
478
479
480/**
481 * repeated CoreProjection result = 1;
482 * @return {!Array<!proto.co.treelab.api.CoreProjection>}
483 */
484proto.co.treelab.api.CoresResult.prototype.getResultList = function() {
485 return /** @type{!Array<!proto.co.treelab.api.CoreProjection>} */ (
486 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.CoreProjection, 1));
487};
488
489
490/** @param {!Array<!proto.co.treelab.api.CoreProjection>} value */
491proto.co.treelab.api.CoresResult.prototype.setResultList = function(value) {
492 jspb.Message.setRepeatedWrapperField(this, 1, value);
493};
494
495
496/**
497 * @param {!proto.co.treelab.api.CoreProjection=} opt_value
498 * @param {number=} opt_index
499 * @return {!proto.co.treelab.api.CoreProjection}
500 */
501proto.co.treelab.api.CoresResult.prototype.addResult = function(opt_value, opt_index) {
502 return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.co.treelab.api.CoreProjection, opt_index);
503};
504
505
506proto.co.treelab.api.CoresResult.prototype.clearResultList = function() {
507 this.setResultList([]);
508};
509
510
511
512/**
513 * Generated by JsPbCodeGenerator.
514 * @param {Array=} opt_data Optional initial data array, typically from a
515 * server response, or constructed directly in Javascript. The array is used
516 * in place and becomes part of the constructed object. It is not cloned.
517 * If no data is provided, the constructed object will be empty, but still
518 * valid.
519 * @extends {jspb.Message}
520 * @constructor
521 */
522proto.co.treelab.api.TablesResult = function(opt_data) {
523 jspb.Message.initialize(this, opt_data, 0, -1, proto.co.treelab.api.TablesResult.repeatedFields_, null);
524};
525goog.inherits(proto.co.treelab.api.TablesResult, jspb.Message);
526if (goog.DEBUG && !COMPILED) {
527 proto.co.treelab.api.TablesResult.displayName = 'proto.co.treelab.api.TablesResult';
528}
529/**
530 * List of repeated fields within this message type.
531 * @private {!Array<number>}
532 * @const
533 */
534proto.co.treelab.api.TablesResult.repeatedFields_ = [1];
535
536
537
538if (jspb.Message.GENERATE_TO_OBJECT) {
539/**
540 * Creates an object representation of this proto suitable for use in Soy templates.
541 * Field names that are reserved in JavaScript and will be renamed to pb_name.
542 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
543 * For the list of reserved names please see:
544 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
545 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
546 * for transitional soy proto support: http://goto/soy-param-migration
547 * @return {!Object}
548 */
549proto.co.treelab.api.TablesResult.prototype.toObject = function(opt_includeInstance) {
550 return proto.co.treelab.api.TablesResult.toObject(opt_includeInstance, this);
551};
552
553
554/**
555 * Static version of the {@see toObject} method.
556 * @param {boolean|undefined} includeInstance Whether to include the JSPB
557 * instance for transitional soy proto support:
558 * http://goto/soy-param-migration
559 * @param {!proto.co.treelab.api.TablesResult} msg The msg instance to transform.
560 * @return {!Object}
561 * @suppress {unusedLocalVariables} f is only used for nested messages
562 */
563proto.co.treelab.api.TablesResult.toObject = function(includeInstance, msg) {
564 var f, obj = {
565 resultList: jspb.Message.toObjectList(msg.getResultList(),
566 proto.co.treelab.api.TableProjection.toObject, includeInstance)
567 };
568
569 if (includeInstance) {
570 obj.$jspbMessageInstance = msg;
571 }
572 return obj;
573};
574}
575
576
577/**
578 * Deserializes binary data (in protobuf wire format).
579 * @param {jspb.ByteSource} bytes The bytes to deserialize.
580 * @return {!proto.co.treelab.api.TablesResult}
581 */
582proto.co.treelab.api.TablesResult.deserializeBinary = function(bytes) {
583 var reader = new jspb.BinaryReader(bytes);
584 var msg = new proto.co.treelab.api.TablesResult;
585 return proto.co.treelab.api.TablesResult.deserializeBinaryFromReader(msg, reader);
586};
587
588
589/**
590 * Deserializes binary data (in protobuf wire format) from the
591 * given reader into the given message object.
592 * @param {!proto.co.treelab.api.TablesResult} msg The message object to deserialize into.
593 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
594 * @return {!proto.co.treelab.api.TablesResult}
595 */
596proto.co.treelab.api.TablesResult.deserializeBinaryFromReader = function(msg, reader) {
597 while (reader.nextField()) {
598 if (reader.isEndGroup()) {
599 break;
600 }
601 var field = reader.getFieldNumber();
602 switch (field) {
603 case 1:
604 var value = new proto.co.treelab.api.TableProjection;
605 reader.readMessage(value,proto.co.treelab.api.TableProjection.deserializeBinaryFromReader);
606 msg.addResult(value);
607 break;
608 default:
609 reader.skipField();
610 break;
611 }
612 }
613 return msg;
614};
615
616
617/**
618 * Serializes the message to binary data (in protobuf wire format).
619 * @return {!Uint8Array}
620 */
621proto.co.treelab.api.TablesResult.prototype.serializeBinary = function() {
622 var writer = new jspb.BinaryWriter();
623 proto.co.treelab.api.TablesResult.serializeBinaryToWriter(this, writer);
624 return writer.getResultBuffer();
625};
626
627
628/**
629 * Serializes the given message to binary data (in protobuf wire
630 * format), writing to the given BinaryWriter.
631 * @param {!proto.co.treelab.api.TablesResult} message
632 * @param {!jspb.BinaryWriter} writer
633 * @suppress {unusedLocalVariables} f is only used for nested messages
634 */
635proto.co.treelab.api.TablesResult.serializeBinaryToWriter = function(message, writer) {
636 var f = undefined;
637 f = message.getResultList();
638 if (f.length > 0) {
639 writer.writeRepeatedMessage(
640 1,
641 f,
642 proto.co.treelab.api.TableProjection.serializeBinaryToWriter
643 );
644 }
645};
646
647
648/**
649 * repeated TableProjection result = 1;
650 * @return {!Array<!proto.co.treelab.api.TableProjection>}
651 */
652proto.co.treelab.api.TablesResult.prototype.getResultList = function() {
653 return /** @type{!Array<!proto.co.treelab.api.TableProjection>} */ (
654 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.TableProjection, 1));
655};
656
657
658/** @param {!Array<!proto.co.treelab.api.TableProjection>} value */
659proto.co.treelab.api.TablesResult.prototype.setResultList = function(value) {
660 jspb.Message.setRepeatedWrapperField(this, 1, value);
661};
662
663
664/**
665 * @param {!proto.co.treelab.api.TableProjection=} opt_value
666 * @param {number=} opt_index
667 * @return {!proto.co.treelab.api.TableProjection}
668 */
669proto.co.treelab.api.TablesResult.prototype.addResult = function(opt_value, opt_index) {
670 return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.co.treelab.api.TableProjection, opt_index);
671};
672
673
674proto.co.treelab.api.TablesResult.prototype.clearResultList = function() {
675 this.setResultList([]);
676};
677
678
679
680/**
681 * Generated by JsPbCodeGenerator.
682 * @param {Array=} opt_data Optional initial data array, typically from a
683 * server response, or constructed directly in Javascript. The array is used
684 * in place and becomes part of the constructed object. It is not cloned.
685 * If no data is provided, the constructed object will be empty, but still
686 * valid.
687 * @extends {jspb.Message}
688 * @constructor
689 */
690proto.co.treelab.api.TableProjection = function(opt_data) {
691 jspb.Message.initialize(this, opt_data, 0, -1, proto.co.treelab.api.TableProjection.repeatedFields_, null);
692};
693goog.inherits(proto.co.treelab.api.TableProjection, jspb.Message);
694if (goog.DEBUG && !COMPILED) {
695 proto.co.treelab.api.TableProjection.displayName = 'proto.co.treelab.api.TableProjection';
696}
697/**
698 * List of repeated fields within this message type.
699 * @private {!Array<number>}
700 * @const
701 */
702proto.co.treelab.api.TableProjection.repeatedFields_ = [5];
703
704
705
706if (jspb.Message.GENERATE_TO_OBJECT) {
707/**
708 * Creates an object representation of this proto suitable for use in Soy templates.
709 * Field names that are reserved in JavaScript and will be renamed to pb_name.
710 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
711 * For the list of reserved names please see:
712 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
713 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
714 * for transitional soy proto support: http://goto/soy-param-migration
715 * @return {!Object}
716 */
717proto.co.treelab.api.TableProjection.prototype.toObject = function(opt_includeInstance) {
718 return proto.co.treelab.api.TableProjection.toObject(opt_includeInstance, this);
719};
720
721
722/**
723 * Static version of the {@see toObject} method.
724 * @param {boolean|undefined} includeInstance Whether to include the JSPB
725 * instance for transitional soy proto support:
726 * http://goto/soy-param-migration
727 * @param {!proto.co.treelab.api.TableProjection} msg The msg instance to transform.
728 * @return {!Object}
729 * @suppress {unusedLocalVariables} f is only used for nested messages
730 */
731proto.co.treelab.api.TableProjection.toObject = function(includeInstance, msg) {
732 var f, obj = {
733 id: jspb.Message.getFieldWithDefault(msg, 3, ""),
734 name: jspb.Message.getFieldWithDefault(msg, 4, ""),
735 viewsList: jspb.Message.toObjectList(msg.getViewsList(),
736 proto.co.treelab.api.ViewData.toObject, includeInstance)
737 };
738
739 if (includeInstance) {
740 obj.$jspbMessageInstance = msg;
741 }
742 return obj;
743};
744}
745
746
747/**
748 * Deserializes binary data (in protobuf wire format).
749 * @param {jspb.ByteSource} bytes The bytes to deserialize.
750 * @return {!proto.co.treelab.api.TableProjection}
751 */
752proto.co.treelab.api.TableProjection.deserializeBinary = function(bytes) {
753 var reader = new jspb.BinaryReader(bytes);
754 var msg = new proto.co.treelab.api.TableProjection;
755 return proto.co.treelab.api.TableProjection.deserializeBinaryFromReader(msg, reader);
756};
757
758
759/**
760 * Deserializes binary data (in protobuf wire format) from the
761 * given reader into the given message object.
762 * @param {!proto.co.treelab.api.TableProjection} msg The message object to deserialize into.
763 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
764 * @return {!proto.co.treelab.api.TableProjection}
765 */
766proto.co.treelab.api.TableProjection.deserializeBinaryFromReader = function(msg, reader) {
767 while (reader.nextField()) {
768 if (reader.isEndGroup()) {
769 break;
770 }
771 var field = reader.getFieldNumber();
772 switch (field) {
773 case 3:
774 var value = /** @type {string} */ (reader.readString());
775 msg.setId(value);
776 break;
777 case 4:
778 var value = /** @type {string} */ (reader.readString());
779 msg.setName(value);
780 break;
781 case 5:
782 var value = new proto.co.treelab.api.ViewData;
783 reader.readMessage(value,proto.co.treelab.api.ViewData.deserializeBinaryFromReader);
784 msg.addViews(value);
785 break;
786 default:
787 reader.skipField();
788 break;
789 }
790 }
791 return msg;
792};
793
794
795/**
796 * Serializes the message to binary data (in protobuf wire format).
797 * @return {!Uint8Array}
798 */
799proto.co.treelab.api.TableProjection.prototype.serializeBinary = function() {
800 var writer = new jspb.BinaryWriter();
801 proto.co.treelab.api.TableProjection.serializeBinaryToWriter(this, writer);
802 return writer.getResultBuffer();
803};
804
805
806/**
807 * Serializes the given message to binary data (in protobuf wire
808 * format), writing to the given BinaryWriter.
809 * @param {!proto.co.treelab.api.TableProjection} message
810 * @param {!jspb.BinaryWriter} writer
811 * @suppress {unusedLocalVariables} f is only used for nested messages
812 */
813proto.co.treelab.api.TableProjection.serializeBinaryToWriter = function(message, writer) {
814 var f = undefined;
815 f = message.getId();
816 if (f.length > 0) {
817 writer.writeString(
818 3,
819 f
820 );
821 }
822 f = message.getName();
823 if (f.length > 0) {
824 writer.writeString(
825 4,
826 f
827 );
828 }
829 f = message.getViewsList();
830 if (f.length > 0) {
831 writer.writeRepeatedMessage(
832 5,
833 f,
834 proto.co.treelab.api.ViewData.serializeBinaryToWriter
835 );
836 }
837};
838
839
840/**
841 * optional string id = 3;
842 * @return {string}
843 */
844proto.co.treelab.api.TableProjection.prototype.getId = function() {
845 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
846};
847
848
849/** @param {string} value */
850proto.co.treelab.api.TableProjection.prototype.setId = function(value) {
851 jspb.Message.setProto3StringField(this, 3, value);
852};
853
854
855/**
856 * optional string name = 4;
857 * @return {string}
858 */
859proto.co.treelab.api.TableProjection.prototype.getName = function() {
860 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
861};
862
863
864/** @param {string} value */
865proto.co.treelab.api.TableProjection.prototype.setName = function(value) {
866 jspb.Message.setProto3StringField(this, 4, value);
867};
868
869
870/**
871 * repeated ViewData views = 5;
872 * @return {!Array<!proto.co.treelab.api.ViewData>}
873 */
874proto.co.treelab.api.TableProjection.prototype.getViewsList = function() {
875 return /** @type{!Array<!proto.co.treelab.api.ViewData>} */ (
876 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.ViewData, 5));
877};
878
879
880/** @param {!Array<!proto.co.treelab.api.ViewData>} value */
881proto.co.treelab.api.TableProjection.prototype.setViewsList = function(value) {
882 jspb.Message.setRepeatedWrapperField(this, 5, value);
883};
884
885
886/**
887 * @param {!proto.co.treelab.api.ViewData=} opt_value
888 * @param {number=} opt_index
889 * @return {!proto.co.treelab.api.ViewData}
890 */
891proto.co.treelab.api.TableProjection.prototype.addViews = function(opt_value, opt_index) {
892 return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.co.treelab.api.ViewData, opt_index);
893};
894
895
896proto.co.treelab.api.TableProjection.prototype.clearViewsList = function() {
897 this.setViewsList([]);
898};
899
900
901
902/**
903 * Generated by JsPbCodeGenerator.
904 * @param {Array=} opt_data Optional initial data array, typically from a
905 * server response, or constructed directly in Javascript. The array is used
906 * in place and becomes part of the constructed object. It is not cloned.
907 * If no data is provided, the constructed object will be empty, but still
908 * valid.
909 * @extends {jspb.Message}
910 * @constructor
911 */
912proto.co.treelab.api.TableData = function(opt_data) {
913 jspb.Message.initialize(this, opt_data, 0, -1, proto.co.treelab.api.TableData.repeatedFields_, null);
914};
915goog.inherits(proto.co.treelab.api.TableData, jspb.Message);
916if (goog.DEBUG && !COMPILED) {
917 proto.co.treelab.api.TableData.displayName = 'proto.co.treelab.api.TableData';
918}
919/**
920 * List of repeated fields within this message type.
921 * @private {!Array<number>}
922 * @const
923 */
924proto.co.treelab.api.TableData.repeatedFields_ = [1];
925
926
927
928if (jspb.Message.GENERATE_TO_OBJECT) {
929/**
930 * Creates an object representation of this proto suitable for use in Soy templates.
931 * Field names that are reserved in JavaScript and will be renamed to pb_name.
932 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
933 * For the list of reserved names please see:
934 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
935 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
936 * for transitional soy proto support: http://goto/soy-param-migration
937 * @return {!Object}
938 */
939proto.co.treelab.api.TableData.prototype.toObject = function(opt_includeInstance) {
940 return proto.co.treelab.api.TableData.toObject(opt_includeInstance, this);
941};
942
943
944/**
945 * Static version of the {@see toObject} method.
946 * @param {boolean|undefined} includeInstance Whether to include the JSPB
947 * instance for transitional soy proto support:
948 * http://goto/soy-param-migration
949 * @param {!proto.co.treelab.api.TableData} msg The msg instance to transform.
950 * @return {!Object}
951 * @suppress {unusedLocalVariables} f is only used for nested messages
952 */
953proto.co.treelab.api.TableData.toObject = function(includeInstance, msg) {
954 var f, obj = {
955 rowsList: jspb.Message.toObjectList(msg.getRowsList(),
956 proto.co.treelab.api.RowData.toObject, includeInstance)
957 };
958
959 if (includeInstance) {
960 obj.$jspbMessageInstance = msg;
961 }
962 return obj;
963};
964}
965
966
967/**
968 * Deserializes binary data (in protobuf wire format).
969 * @param {jspb.ByteSource} bytes The bytes to deserialize.
970 * @return {!proto.co.treelab.api.TableData}
971 */
972proto.co.treelab.api.TableData.deserializeBinary = function(bytes) {
973 var reader = new jspb.BinaryReader(bytes);
974 var msg = new proto.co.treelab.api.TableData;
975 return proto.co.treelab.api.TableData.deserializeBinaryFromReader(msg, reader);
976};
977
978
979/**
980 * Deserializes binary data (in protobuf wire format) from the
981 * given reader into the given message object.
982 * @param {!proto.co.treelab.api.TableData} msg The message object to deserialize into.
983 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
984 * @return {!proto.co.treelab.api.TableData}
985 */
986proto.co.treelab.api.TableData.deserializeBinaryFromReader = function(msg, reader) {
987 while (reader.nextField()) {
988 if (reader.isEndGroup()) {
989 break;
990 }
991 var field = reader.getFieldNumber();
992 switch (field) {
993 case 1:
994 var value = new proto.co.treelab.api.RowData;
995 reader.readMessage(value,proto.co.treelab.api.RowData.deserializeBinaryFromReader);
996 msg.addRows(value);
997 break;
998 default:
999 reader.skipField();
1000 break;
1001 }
1002 }
1003 return msg;
1004};
1005
1006
1007/**
1008 * Serializes the message to binary data (in protobuf wire format).
1009 * @return {!Uint8Array}
1010 */
1011proto.co.treelab.api.TableData.prototype.serializeBinary = function() {
1012 var writer = new jspb.BinaryWriter();
1013 proto.co.treelab.api.TableData.serializeBinaryToWriter(this, writer);
1014 return writer.getResultBuffer();
1015};
1016
1017
1018/**
1019 * Serializes the given message to binary data (in protobuf wire
1020 * format), writing to the given BinaryWriter.
1021 * @param {!proto.co.treelab.api.TableData} message
1022 * @param {!jspb.BinaryWriter} writer
1023 * @suppress {unusedLocalVariables} f is only used for nested messages
1024 */
1025proto.co.treelab.api.TableData.serializeBinaryToWriter = function(message, writer) {
1026 var f = undefined;
1027 f = message.getRowsList();
1028 if (f.length > 0) {
1029 writer.writeRepeatedMessage(
1030 1,
1031 f,
1032 proto.co.treelab.api.RowData.serializeBinaryToWriter
1033 );
1034 }
1035};
1036
1037
1038/**
1039 * repeated RowData rows = 1;
1040 * @return {!Array<!proto.co.treelab.api.RowData>}
1041 */
1042proto.co.treelab.api.TableData.prototype.getRowsList = function() {
1043 return /** @type{!Array<!proto.co.treelab.api.RowData>} */ (
1044 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.RowData, 1));
1045};
1046
1047
1048/** @param {!Array<!proto.co.treelab.api.RowData>} value */
1049proto.co.treelab.api.TableData.prototype.setRowsList = function(value) {
1050 jspb.Message.setRepeatedWrapperField(this, 1, value);
1051};
1052
1053
1054/**
1055 * @param {!proto.co.treelab.api.RowData=} opt_value
1056 * @param {number=} opt_index
1057 * @return {!proto.co.treelab.api.RowData}
1058 */
1059proto.co.treelab.api.TableData.prototype.addRows = function(opt_value, opt_index) {
1060 return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.co.treelab.api.RowData, opt_index);
1061};
1062
1063
1064proto.co.treelab.api.TableData.prototype.clearRowsList = function() {
1065 this.setRowsList([]);
1066};
1067
1068
1069
1070/**
1071 * Generated by JsPbCodeGenerator.
1072 * @param {Array=} opt_data Optional initial data array, typically from a
1073 * server response, or constructed directly in Javascript. The array is used
1074 * in place and becomes part of the constructed object. It is not cloned.
1075 * If no data is provided, the constructed object will be empty, but still
1076 * valid.
1077 * @extends {jspb.Message}
1078 * @constructor
1079 */
1080proto.co.treelab.api.RowData = function(opt_data) {
1081 jspb.Message.initialize(this, opt_data, 0, -1, proto.co.treelab.api.RowData.repeatedFields_, null);
1082};
1083goog.inherits(proto.co.treelab.api.RowData, jspb.Message);
1084if (goog.DEBUG && !COMPILED) {
1085 proto.co.treelab.api.RowData.displayName = 'proto.co.treelab.api.RowData';
1086}
1087/**
1088 * List of repeated fields within this message type.
1089 * @private {!Array<number>}
1090 * @const
1091 */
1092proto.co.treelab.api.RowData.repeatedFields_ = [3];
1093
1094
1095
1096if (jspb.Message.GENERATE_TO_OBJECT) {
1097/**
1098 * Creates an object representation of this proto suitable for use in Soy templates.
1099 * Field names that are reserved in JavaScript and will be renamed to pb_name.
1100 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1101 * For the list of reserved names please see:
1102 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1103 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1104 * for transitional soy proto support: http://goto/soy-param-migration
1105 * @return {!Object}
1106 */
1107proto.co.treelab.api.RowData.prototype.toObject = function(opt_includeInstance) {
1108 return proto.co.treelab.api.RowData.toObject(opt_includeInstance, this);
1109};
1110
1111
1112/**
1113 * Static version of the {@see toObject} method.
1114 * @param {boolean|undefined} includeInstance Whether to include the JSPB
1115 * instance for transitional soy proto support:
1116 * http://goto/soy-param-migration
1117 * @param {!proto.co.treelab.api.RowData} msg The msg instance to transform.
1118 * @return {!Object}
1119 * @suppress {unusedLocalVariables} f is only used for nested messages
1120 */
1121proto.co.treelab.api.RowData.toObject = function(includeInstance, msg) {
1122 var f, obj = {
1123 id: jspb.Message.getFieldWithDefault(msg, 1, ""),
1124 order: jspb.Message.getFieldWithDefault(msg, 2, 0),
1125 cellsList: jspb.Message.toObjectList(msg.getCellsList(),
1126 proto.co.treelab.api.CellData.toObject, includeInstance)
1127 };
1128
1129 if (includeInstance) {
1130 obj.$jspbMessageInstance = msg;
1131 }
1132 return obj;
1133};
1134}
1135
1136
1137/**
1138 * Deserializes binary data (in protobuf wire format).
1139 * @param {jspb.ByteSource} bytes The bytes to deserialize.
1140 * @return {!proto.co.treelab.api.RowData}
1141 */
1142proto.co.treelab.api.RowData.deserializeBinary = function(bytes) {
1143 var reader = new jspb.BinaryReader(bytes);
1144 var msg = new proto.co.treelab.api.RowData;
1145 return proto.co.treelab.api.RowData.deserializeBinaryFromReader(msg, reader);
1146};
1147
1148
1149/**
1150 * Deserializes binary data (in protobuf wire format) from the
1151 * given reader into the given message object.
1152 * @param {!proto.co.treelab.api.RowData} msg The message object to deserialize into.
1153 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1154 * @return {!proto.co.treelab.api.RowData}
1155 */
1156proto.co.treelab.api.RowData.deserializeBinaryFromReader = function(msg, reader) {
1157 while (reader.nextField()) {
1158 if (reader.isEndGroup()) {
1159 break;
1160 }
1161 var field = reader.getFieldNumber();
1162 switch (field) {
1163 case 1:
1164 var value = /** @type {string} */ (reader.readString());
1165 msg.setId(value);
1166 break;
1167 case 2:
1168 var value = /** @type {number} */ (reader.readInt32());
1169 msg.setOrder(value);
1170 break;
1171 case 3:
1172 var value = new proto.co.treelab.api.CellData;
1173 reader.readMessage(value,proto.co.treelab.api.CellData.deserializeBinaryFromReader);
1174 msg.addCells(value);
1175 break;
1176 default:
1177 reader.skipField();
1178 break;
1179 }
1180 }
1181 return msg;
1182};
1183
1184
1185/**
1186 * Serializes the message to binary data (in protobuf wire format).
1187 * @return {!Uint8Array}
1188 */
1189proto.co.treelab.api.RowData.prototype.serializeBinary = function() {
1190 var writer = new jspb.BinaryWriter();
1191 proto.co.treelab.api.RowData.serializeBinaryToWriter(this, writer);
1192 return writer.getResultBuffer();
1193};
1194
1195
1196/**
1197 * Serializes the given message to binary data (in protobuf wire
1198 * format), writing to the given BinaryWriter.
1199 * @param {!proto.co.treelab.api.RowData} message
1200 * @param {!jspb.BinaryWriter} writer
1201 * @suppress {unusedLocalVariables} f is only used for nested messages
1202 */
1203proto.co.treelab.api.RowData.serializeBinaryToWriter = function(message, writer) {
1204 var f = undefined;
1205 f = message.getId();
1206 if (f.length > 0) {
1207 writer.writeString(
1208 1,
1209 f
1210 );
1211 }
1212 f = message.getOrder();
1213 if (f !== 0) {
1214 writer.writeInt32(
1215 2,
1216 f
1217 );
1218 }
1219 f = message.getCellsList();
1220 if (f.length > 0) {
1221 writer.writeRepeatedMessage(
1222 3,
1223 f,
1224 proto.co.treelab.api.CellData.serializeBinaryToWriter
1225 );
1226 }
1227};
1228
1229
1230/**
1231 * optional string id = 1;
1232 * @return {string}
1233 */
1234proto.co.treelab.api.RowData.prototype.getId = function() {
1235 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1236};
1237
1238
1239/** @param {string} value */
1240proto.co.treelab.api.RowData.prototype.setId = function(value) {
1241 jspb.Message.setProto3StringField(this, 1, value);
1242};
1243
1244
1245/**
1246 * optional int32 order = 2;
1247 * @return {number}
1248 */
1249proto.co.treelab.api.RowData.prototype.getOrder = function() {
1250 return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1251};
1252
1253
1254/** @param {number} value */
1255proto.co.treelab.api.RowData.prototype.setOrder = function(value) {
1256 jspb.Message.setProto3IntField(this, 2, value);
1257};
1258
1259
1260/**
1261 * repeated CellData cells = 3;
1262 * @return {!Array<!proto.co.treelab.api.CellData>}
1263 */
1264proto.co.treelab.api.RowData.prototype.getCellsList = function() {
1265 return /** @type{!Array<!proto.co.treelab.api.CellData>} */ (
1266 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.CellData, 3));
1267};
1268
1269
1270/** @param {!Array<!proto.co.treelab.api.CellData>} value */
1271proto.co.treelab.api.RowData.prototype.setCellsList = function(value) {
1272 jspb.Message.setRepeatedWrapperField(this, 3, value);
1273};
1274
1275
1276/**
1277 * @param {!proto.co.treelab.api.CellData=} opt_value
1278 * @param {number=} opt_index
1279 * @return {!proto.co.treelab.api.CellData}
1280 */
1281proto.co.treelab.api.RowData.prototype.addCells = function(opt_value, opt_index) {
1282 return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.co.treelab.api.CellData, opt_index);
1283};
1284
1285
1286proto.co.treelab.api.RowData.prototype.clearCellsList = function() {
1287 this.setCellsList([]);
1288};
1289
1290
1291
1292/**
1293 * Generated by JsPbCodeGenerator.
1294 * @param {Array=} opt_data Optional initial data array, typically from a
1295 * server response, or constructed directly in Javascript. The array is used
1296 * in place and becomes part of the constructed object. It is not cloned.
1297 * If no data is provided, the constructed object will be empty, but still
1298 * valid.
1299 * @extends {jspb.Message}
1300 * @constructor
1301 */
1302proto.co.treelab.api.CellData = function(opt_data) {
1303 jspb.Message.initialize(this, opt_data, 0, -1, proto.co.treelab.api.CellData.repeatedFields_, null);
1304};
1305goog.inherits(proto.co.treelab.api.CellData, jspb.Message);
1306if (goog.DEBUG && !COMPILED) {
1307 proto.co.treelab.api.CellData.displayName = 'proto.co.treelab.api.CellData';
1308}
1309/**
1310 * List of repeated fields within this message type.
1311 * @private {!Array<number>}
1312 * @const
1313 */
1314proto.co.treelab.api.CellData.repeatedFields_ = [4,7,8];
1315
1316
1317
1318if (jspb.Message.GENERATE_TO_OBJECT) {
1319/**
1320 * Creates an object representation of this proto suitable for use in Soy templates.
1321 * Field names that are reserved in JavaScript and will be renamed to pb_name.
1322 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1323 * For the list of reserved names please see:
1324 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1325 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1326 * for transitional soy proto support: http://goto/soy-param-migration
1327 * @return {!Object}
1328 */
1329proto.co.treelab.api.CellData.prototype.toObject = function(opt_includeInstance) {
1330 return proto.co.treelab.api.CellData.toObject(opt_includeInstance, this);
1331};
1332
1333
1334/**
1335 * Static version of the {@see toObject} method.
1336 * @param {boolean|undefined} includeInstance Whether to include the JSPB
1337 * instance for transitional soy proto support:
1338 * http://goto/soy-param-migration
1339 * @param {!proto.co.treelab.api.CellData} msg The msg instance to transform.
1340 * @return {!Object}
1341 * @suppress {unusedLocalVariables} f is only used for nested messages
1342 */
1343proto.co.treelab.api.CellData.toObject = function(includeInstance, msg) {
1344 var f, obj = {
1345 columnid: jspb.Message.getFieldWithDefault(msg, 1, ""),
1346 type: jspb.Message.getFieldWithDefault(msg, 2, ""),
1347 text: jspb.Message.getFieldWithDefault(msg, 3, ""),
1348 foreignrowList: jspb.Message.toObjectList(msg.getForeignrowList(),
1349 proto.co.treelab.api.ForeignRowValue.toObject, includeInstance),
1350 number: +jspb.Message.getFieldWithDefault(msg, 5, 0.0),
1351 selecteditem: (f = msg.getSelecteditem()) && proto.co.treelab.api.Choice.toObject(includeInstance, f),
1352 selecteditemsList: jspb.Message.toObjectList(msg.getSelecteditemsList(),
1353 proto.co.treelab.api.Choice.toObject, includeInstance),
1354 attachmentsList: jspb.Message.toObjectList(msg.getAttachmentsList(),
1355 proto.co.treelab.api.Attachment.toObject, includeInstance),
1356 datetime: jspb.Message.getFieldWithDefault(msg, 9, "")
1357 };
1358
1359 if (includeInstance) {
1360 obj.$jspbMessageInstance = msg;
1361 }
1362 return obj;
1363};
1364}
1365
1366
1367/**
1368 * Deserializes binary data (in protobuf wire format).
1369 * @param {jspb.ByteSource} bytes The bytes to deserialize.
1370 * @return {!proto.co.treelab.api.CellData}
1371 */
1372proto.co.treelab.api.CellData.deserializeBinary = function(bytes) {
1373 var reader = new jspb.BinaryReader(bytes);
1374 var msg = new proto.co.treelab.api.CellData;
1375 return proto.co.treelab.api.CellData.deserializeBinaryFromReader(msg, reader);
1376};
1377
1378
1379/**
1380 * Deserializes binary data (in protobuf wire format) from the
1381 * given reader into the given message object.
1382 * @param {!proto.co.treelab.api.CellData} msg The message object to deserialize into.
1383 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1384 * @return {!proto.co.treelab.api.CellData}
1385 */
1386proto.co.treelab.api.CellData.deserializeBinaryFromReader = function(msg, reader) {
1387 while (reader.nextField()) {
1388 if (reader.isEndGroup()) {
1389 break;
1390 }
1391 var field = reader.getFieldNumber();
1392 switch (field) {
1393 case 1:
1394 var value = /** @type {string} */ (reader.readString());
1395 msg.setColumnid(value);
1396 break;
1397 case 2:
1398 var value = /** @type {string} */ (reader.readString());
1399 msg.setType(value);
1400 break;
1401 case 3:
1402 var value = /** @type {string} */ (reader.readString());
1403 msg.setText(value);
1404 break;
1405 case 4:
1406 var value = new proto.co.treelab.api.ForeignRowValue;
1407 reader.readMessage(value,proto.co.treelab.api.ForeignRowValue.deserializeBinaryFromReader);
1408 msg.addForeignrow(value);
1409 break;
1410 case 5:
1411 var value = /** @type {number} */ (reader.readFloat());
1412 msg.setNumber(value);
1413 break;
1414 case 6:
1415 var value = new proto.co.treelab.api.Choice;
1416 reader.readMessage(value,proto.co.treelab.api.Choice.deserializeBinaryFromReader);
1417 msg.setSelecteditem(value);
1418 break;
1419 case 7:
1420 var value = new proto.co.treelab.api.Choice;
1421 reader.readMessage(value,proto.co.treelab.api.Choice.deserializeBinaryFromReader);
1422 msg.addSelecteditems(value);
1423 break;
1424 case 8:
1425 var value = new proto.co.treelab.api.Attachment;
1426 reader.readMessage(value,proto.co.treelab.api.Attachment.deserializeBinaryFromReader);
1427 msg.addAttachments(value);
1428 break;
1429 case 9:
1430 var value = /** @type {string} */ (reader.readString());
1431 msg.setDatetime(value);
1432 break;
1433 default:
1434 reader.skipField();
1435 break;
1436 }
1437 }
1438 return msg;
1439};
1440
1441
1442/**
1443 * Serializes the message to binary data (in protobuf wire format).
1444 * @return {!Uint8Array}
1445 */
1446proto.co.treelab.api.CellData.prototype.serializeBinary = function() {
1447 var writer = new jspb.BinaryWriter();
1448 proto.co.treelab.api.CellData.serializeBinaryToWriter(this, writer);
1449 return writer.getResultBuffer();
1450};
1451
1452
1453/**
1454 * Serializes the given message to binary data (in protobuf wire
1455 * format), writing to the given BinaryWriter.
1456 * @param {!proto.co.treelab.api.CellData} message
1457 * @param {!jspb.BinaryWriter} writer
1458 * @suppress {unusedLocalVariables} f is only used for nested messages
1459 */
1460proto.co.treelab.api.CellData.serializeBinaryToWriter = function(message, writer) {
1461 var f = undefined;
1462 f = message.getColumnid();
1463 if (f.length > 0) {
1464 writer.writeString(
1465 1,
1466 f
1467 );
1468 }
1469 f = message.getType();
1470 if (f.length > 0) {
1471 writer.writeString(
1472 2,
1473 f
1474 );
1475 }
1476 f = message.getText();
1477 if (f.length > 0) {
1478 writer.writeString(
1479 3,
1480 f
1481 );
1482 }
1483 f = message.getForeignrowList();
1484 if (f.length > 0) {
1485 writer.writeRepeatedMessage(
1486 4,
1487 f,
1488 proto.co.treelab.api.ForeignRowValue.serializeBinaryToWriter
1489 );
1490 }
1491 f = message.getNumber();
1492 if (f !== 0.0) {
1493 writer.writeFloat(
1494 5,
1495 f
1496 );
1497 }
1498 f = message.getSelecteditem();
1499 if (f != null) {
1500 writer.writeMessage(
1501 6,
1502 f,
1503 proto.co.treelab.api.Choice.serializeBinaryToWriter
1504 );
1505 }
1506 f = message.getSelecteditemsList();
1507 if (f.length > 0) {
1508 writer.writeRepeatedMessage(
1509 7,
1510 f,
1511 proto.co.treelab.api.Choice.serializeBinaryToWriter
1512 );
1513 }
1514 f = message.getAttachmentsList();
1515 if (f.length > 0) {
1516 writer.writeRepeatedMessage(
1517 8,
1518 f,
1519 proto.co.treelab.api.Attachment.serializeBinaryToWriter
1520 );
1521 }
1522 f = message.getDatetime();
1523 if (f.length > 0) {
1524 writer.writeString(
1525 9,
1526 f
1527 );
1528 }
1529};
1530
1531
1532/**
1533 * optional string columnId = 1;
1534 * @return {string}
1535 */
1536proto.co.treelab.api.CellData.prototype.getColumnid = function() {
1537 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1538};
1539
1540
1541/** @param {string} value */
1542proto.co.treelab.api.CellData.prototype.setColumnid = function(value) {
1543 jspb.Message.setProto3StringField(this, 1, value);
1544};
1545
1546
1547/**
1548 * optional string type = 2;
1549 * @return {string}
1550 */
1551proto.co.treelab.api.CellData.prototype.getType = function() {
1552 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1553};
1554
1555
1556/** @param {string} value */
1557proto.co.treelab.api.CellData.prototype.setType = function(value) {
1558 jspb.Message.setProto3StringField(this, 2, value);
1559};
1560
1561
1562/**
1563 * optional string text = 3;
1564 * @return {string}
1565 */
1566proto.co.treelab.api.CellData.prototype.getText = function() {
1567 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1568};
1569
1570
1571/** @param {string} value */
1572proto.co.treelab.api.CellData.prototype.setText = function(value) {
1573 jspb.Message.setProto3StringField(this, 3, value);
1574};
1575
1576
1577/**
1578 * repeated ForeignRowValue foreignRow = 4;
1579 * @return {!Array<!proto.co.treelab.api.ForeignRowValue>}
1580 */
1581proto.co.treelab.api.CellData.prototype.getForeignrowList = function() {
1582 return /** @type{!Array<!proto.co.treelab.api.ForeignRowValue>} */ (
1583 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.ForeignRowValue, 4));
1584};
1585
1586
1587/** @param {!Array<!proto.co.treelab.api.ForeignRowValue>} value */
1588proto.co.treelab.api.CellData.prototype.setForeignrowList = function(value) {
1589 jspb.Message.setRepeatedWrapperField(this, 4, value);
1590};
1591
1592
1593/**
1594 * @param {!proto.co.treelab.api.ForeignRowValue=} opt_value
1595 * @param {number=} opt_index
1596 * @return {!proto.co.treelab.api.ForeignRowValue}
1597 */
1598proto.co.treelab.api.CellData.prototype.addForeignrow = function(opt_value, opt_index) {
1599 return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.co.treelab.api.ForeignRowValue, opt_index);
1600};
1601
1602
1603proto.co.treelab.api.CellData.prototype.clearForeignrowList = function() {
1604 this.setForeignrowList([]);
1605};
1606
1607
1608/**
1609 * optional float number = 5;
1610 * @return {number}
1611 */
1612proto.co.treelab.api.CellData.prototype.getNumber = function() {
1613 return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 5, 0.0));
1614};
1615
1616
1617/** @param {number} value */
1618proto.co.treelab.api.CellData.prototype.setNumber = function(value) {
1619 jspb.Message.setProto3FloatField(this, 5, value);
1620};
1621
1622
1623/**
1624 * optional Choice selectedItem = 6;
1625 * @return {?proto.co.treelab.api.Choice}
1626 */
1627proto.co.treelab.api.CellData.prototype.getSelecteditem = function() {
1628 return /** @type{?proto.co.treelab.api.Choice} */ (
1629 jspb.Message.getWrapperField(this, proto.co.treelab.api.Choice, 6));
1630};
1631
1632
1633/** @param {?proto.co.treelab.api.Choice|undefined} value */
1634proto.co.treelab.api.CellData.prototype.setSelecteditem = function(value) {
1635 jspb.Message.setWrapperField(this, 6, value);
1636};
1637
1638
1639proto.co.treelab.api.CellData.prototype.clearSelecteditem = function() {
1640 this.setSelecteditem(undefined);
1641};
1642
1643
1644/**
1645 * Returns whether this field is set.
1646 * @return {boolean}
1647 */
1648proto.co.treelab.api.CellData.prototype.hasSelecteditem = function() {
1649 return jspb.Message.getField(this, 6) != null;
1650};
1651
1652
1653/**
1654 * repeated Choice selectedItems = 7;
1655 * @return {!Array<!proto.co.treelab.api.Choice>}
1656 */
1657proto.co.treelab.api.CellData.prototype.getSelecteditemsList = function() {
1658 return /** @type{!Array<!proto.co.treelab.api.Choice>} */ (
1659 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.Choice, 7));
1660};
1661
1662
1663/** @param {!Array<!proto.co.treelab.api.Choice>} value */
1664proto.co.treelab.api.CellData.prototype.setSelecteditemsList = function(value) {
1665 jspb.Message.setRepeatedWrapperField(this, 7, value);
1666};
1667
1668
1669/**
1670 * @param {!proto.co.treelab.api.Choice=} opt_value
1671 * @param {number=} opt_index
1672 * @return {!proto.co.treelab.api.Choice}
1673 */
1674proto.co.treelab.api.CellData.prototype.addSelecteditems = function(opt_value, opt_index) {
1675 return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.co.treelab.api.Choice, opt_index);
1676};
1677
1678
1679proto.co.treelab.api.CellData.prototype.clearSelecteditemsList = function() {
1680 this.setSelecteditemsList([]);
1681};
1682
1683
1684/**
1685 * repeated Attachment attachments = 8;
1686 * @return {!Array<!proto.co.treelab.api.Attachment>}
1687 */
1688proto.co.treelab.api.CellData.prototype.getAttachmentsList = function() {
1689 return /** @type{!Array<!proto.co.treelab.api.Attachment>} */ (
1690 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.Attachment, 8));
1691};
1692
1693
1694/** @param {!Array<!proto.co.treelab.api.Attachment>} value */
1695proto.co.treelab.api.CellData.prototype.setAttachmentsList = function(value) {
1696 jspb.Message.setRepeatedWrapperField(this, 8, value);
1697};
1698
1699
1700/**
1701 * @param {!proto.co.treelab.api.Attachment=} opt_value
1702 * @param {number=} opt_index
1703 * @return {!proto.co.treelab.api.Attachment}
1704 */
1705proto.co.treelab.api.CellData.prototype.addAttachments = function(opt_value, opt_index) {
1706 return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.co.treelab.api.Attachment, opt_index);
1707};
1708
1709
1710proto.co.treelab.api.CellData.prototype.clearAttachmentsList = function() {
1711 this.setAttachmentsList([]);
1712};
1713
1714
1715/**
1716 * optional string dateTime = 9;
1717 * @return {string}
1718 */
1719proto.co.treelab.api.CellData.prototype.getDatetime = function() {
1720 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1721};
1722
1723
1724/** @param {string} value */
1725proto.co.treelab.api.CellData.prototype.setDatetime = function(value) {
1726 jspb.Message.setProto3StringField(this, 9, value);
1727};
1728
1729
1730
1731/**
1732 * Generated by JsPbCodeGenerator.
1733 * @param {Array=} opt_data Optional initial data array, typically from a
1734 * server response, or constructed directly in Javascript. The array is used
1735 * in place and becomes part of the constructed object. It is not cloned.
1736 * If no data is provided, the constructed object will be empty, but still
1737 * valid.
1738 * @extends {jspb.Message}
1739 * @constructor
1740 */
1741proto.co.treelab.api.ViewData = function(opt_data) {
1742 jspb.Message.initialize(this, opt_data, 0, -1, proto.co.treelab.api.ViewData.repeatedFields_, null);
1743};
1744goog.inherits(proto.co.treelab.api.ViewData, jspb.Message);
1745if (goog.DEBUG && !COMPILED) {
1746 proto.co.treelab.api.ViewData.displayName = 'proto.co.treelab.api.ViewData';
1747}
1748/**
1749 * List of repeated fields within this message type.
1750 * @private {!Array<number>}
1751 * @const
1752 */
1753proto.co.treelab.api.ViewData.repeatedFields_ = [4,5];
1754
1755
1756
1757if (jspb.Message.GENERATE_TO_OBJECT) {
1758/**
1759 * Creates an object representation of this proto suitable for use in Soy templates.
1760 * Field names that are reserved in JavaScript and will be renamed to pb_name.
1761 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1762 * For the list of reserved names please see:
1763 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1764 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1765 * for transitional soy proto support: http://goto/soy-param-migration
1766 * @return {!Object}
1767 */
1768proto.co.treelab.api.ViewData.prototype.toObject = function(opt_includeInstance) {
1769 return proto.co.treelab.api.ViewData.toObject(opt_includeInstance, this);
1770};
1771
1772
1773/**
1774 * Static version of the {@see toObject} method.
1775 * @param {boolean|undefined} includeInstance Whether to include the JSPB
1776 * instance for transitional soy proto support:
1777 * http://goto/soy-param-migration
1778 * @param {!proto.co.treelab.api.ViewData} msg The msg instance to transform.
1779 * @return {!Object}
1780 * @suppress {unusedLocalVariables} f is only used for nested messages
1781 */
1782proto.co.treelab.api.ViewData.toObject = function(includeInstance, msg) {
1783 var f, obj = {
1784 id: jspb.Message.getFieldWithDefault(msg, 1, ""),
1785 type: jspb.Message.getFieldWithDefault(msg, 2, ""),
1786 name: jspb.Message.getFieldWithDefault(msg, 3, ""),
1787 rowsList: jspb.Message.toObjectList(msg.getRowsList(),
1788 proto.co.treelab.api.RowData.toObject, includeInstance),
1789 columnsList: jspb.Message.toObjectList(msg.getColumnsList(),
1790 proto.co.treelab.api.ColumnDefinition.toObject, includeInstance)
1791 };
1792
1793 if (includeInstance) {
1794 obj.$jspbMessageInstance = msg;
1795 }
1796 return obj;
1797};
1798}
1799
1800
1801/**
1802 * Deserializes binary data (in protobuf wire format).
1803 * @param {jspb.ByteSource} bytes The bytes to deserialize.
1804 * @return {!proto.co.treelab.api.ViewData}
1805 */
1806proto.co.treelab.api.ViewData.deserializeBinary = function(bytes) {
1807 var reader = new jspb.BinaryReader(bytes);
1808 var msg = new proto.co.treelab.api.ViewData;
1809 return proto.co.treelab.api.ViewData.deserializeBinaryFromReader(msg, reader);
1810};
1811
1812
1813/**
1814 * Deserializes binary data (in protobuf wire format) from the
1815 * given reader into the given message object.
1816 * @param {!proto.co.treelab.api.ViewData} msg The message object to deserialize into.
1817 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1818 * @return {!proto.co.treelab.api.ViewData}
1819 */
1820proto.co.treelab.api.ViewData.deserializeBinaryFromReader = function(msg, reader) {
1821 while (reader.nextField()) {
1822 if (reader.isEndGroup()) {
1823 break;
1824 }
1825 var field = reader.getFieldNumber();
1826 switch (field) {
1827 case 1:
1828 var value = /** @type {string} */ (reader.readString());
1829 msg.setId(value);
1830 break;
1831 case 2:
1832 var value = /** @type {string} */ (reader.readString());
1833 msg.setType(value);
1834 break;
1835 case 3:
1836 var value = /** @type {string} */ (reader.readString());
1837 msg.setName(value);
1838 break;
1839 case 4:
1840 var value = new proto.co.treelab.api.RowData;
1841 reader.readMessage(value,proto.co.treelab.api.RowData.deserializeBinaryFromReader);
1842 msg.addRows(value);
1843 break;
1844 case 5:
1845 var value = new proto.co.treelab.api.ColumnDefinition;
1846 reader.readMessage(value,proto.co.treelab.api.ColumnDefinition.deserializeBinaryFromReader);
1847 msg.addColumns(value);
1848 break;
1849 default:
1850 reader.skipField();
1851 break;
1852 }
1853 }
1854 return msg;
1855};
1856
1857
1858/**
1859 * Serializes the message to binary data (in protobuf wire format).
1860 * @return {!Uint8Array}
1861 */
1862proto.co.treelab.api.ViewData.prototype.serializeBinary = function() {
1863 var writer = new jspb.BinaryWriter();
1864 proto.co.treelab.api.ViewData.serializeBinaryToWriter(this, writer);
1865 return writer.getResultBuffer();
1866};
1867
1868
1869/**
1870 * Serializes the given message to binary data (in protobuf wire
1871 * format), writing to the given BinaryWriter.
1872 * @param {!proto.co.treelab.api.ViewData} message
1873 * @param {!jspb.BinaryWriter} writer
1874 * @suppress {unusedLocalVariables} f is only used for nested messages
1875 */
1876proto.co.treelab.api.ViewData.serializeBinaryToWriter = function(message, writer) {
1877 var f = undefined;
1878 f = message.getId();
1879 if (f.length > 0) {
1880 writer.writeString(
1881 1,
1882 f
1883 );
1884 }
1885 f = message.getType();
1886 if (f.length > 0) {
1887 writer.writeString(
1888 2,
1889 f
1890 );
1891 }
1892 f = message.getName();
1893 if (f.length > 0) {
1894 writer.writeString(
1895 3,
1896 f
1897 );
1898 }
1899 f = message.getRowsList();
1900 if (f.length > 0) {
1901 writer.writeRepeatedMessage(
1902 4,
1903 f,
1904 proto.co.treelab.api.RowData.serializeBinaryToWriter
1905 );
1906 }
1907 f = message.getColumnsList();
1908 if (f.length > 0) {
1909 writer.writeRepeatedMessage(
1910 5,
1911 f,
1912 proto.co.treelab.api.ColumnDefinition.serializeBinaryToWriter
1913 );
1914 }
1915};
1916
1917
1918/**
1919 * optional string id = 1;
1920 * @return {string}
1921 */
1922proto.co.treelab.api.ViewData.prototype.getId = function() {
1923 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1924};
1925
1926
1927/** @param {string} value */
1928proto.co.treelab.api.ViewData.prototype.setId = function(value) {
1929 jspb.Message.setProto3StringField(this, 1, value);
1930};
1931
1932
1933/**
1934 * optional string type = 2;
1935 * @return {string}
1936 */
1937proto.co.treelab.api.ViewData.prototype.getType = function() {
1938 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1939};
1940
1941
1942/** @param {string} value */
1943proto.co.treelab.api.ViewData.prototype.setType = function(value) {
1944 jspb.Message.setProto3StringField(this, 2, value);
1945};
1946
1947
1948/**
1949 * optional string name = 3;
1950 * @return {string}
1951 */
1952proto.co.treelab.api.ViewData.prototype.getName = function() {
1953 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1954};
1955
1956
1957/** @param {string} value */
1958proto.co.treelab.api.ViewData.prototype.setName = function(value) {
1959 jspb.Message.setProto3StringField(this, 3, value);
1960};
1961
1962
1963/**
1964 * repeated RowData rows = 4;
1965 * @return {!Array<!proto.co.treelab.api.RowData>}
1966 */
1967proto.co.treelab.api.ViewData.prototype.getRowsList = function() {
1968 return /** @type{!Array<!proto.co.treelab.api.RowData>} */ (
1969 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.RowData, 4));
1970};
1971
1972
1973/** @param {!Array<!proto.co.treelab.api.RowData>} value */
1974proto.co.treelab.api.ViewData.prototype.setRowsList = function(value) {
1975 jspb.Message.setRepeatedWrapperField(this, 4, value);
1976};
1977
1978
1979/**
1980 * @param {!proto.co.treelab.api.RowData=} opt_value
1981 * @param {number=} opt_index
1982 * @return {!proto.co.treelab.api.RowData}
1983 */
1984proto.co.treelab.api.ViewData.prototype.addRows = function(opt_value, opt_index) {
1985 return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.co.treelab.api.RowData, opt_index);
1986};
1987
1988
1989proto.co.treelab.api.ViewData.prototype.clearRowsList = function() {
1990 this.setRowsList([]);
1991};
1992
1993
1994/**
1995 * repeated ColumnDefinition columns = 5;
1996 * @return {!Array<!proto.co.treelab.api.ColumnDefinition>}
1997 */
1998proto.co.treelab.api.ViewData.prototype.getColumnsList = function() {
1999 return /** @type{!Array<!proto.co.treelab.api.ColumnDefinition>} */ (
2000 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.ColumnDefinition, 5));
2001};
2002
2003
2004/** @param {!Array<!proto.co.treelab.api.ColumnDefinition>} value */
2005proto.co.treelab.api.ViewData.prototype.setColumnsList = function(value) {
2006 jspb.Message.setRepeatedWrapperField(this, 5, value);
2007};
2008
2009
2010/**
2011 * @param {!proto.co.treelab.api.ColumnDefinition=} opt_value
2012 * @param {number=} opt_index
2013 * @return {!proto.co.treelab.api.ColumnDefinition}
2014 */
2015proto.co.treelab.api.ViewData.prototype.addColumns = function(opt_value, opt_index) {
2016 return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.co.treelab.api.ColumnDefinition, opt_index);
2017};
2018
2019
2020proto.co.treelab.api.ViewData.prototype.clearColumnsList = function() {
2021 this.setColumnsList([]);
2022};
2023
2024
2025
2026/**
2027 * Generated by JsPbCodeGenerator.
2028 * @param {Array=} opt_data Optional initial data array, typically from a
2029 * server response, or constructed directly in Javascript. The array is used
2030 * in place and becomes part of the constructed object. It is not cloned.
2031 * If no data is provided, the constructed object will be empty, but still
2032 * valid.
2033 * @extends {jspb.Message}
2034 * @constructor
2035 */
2036proto.co.treelab.api.ColumnDefinition = function(opt_data) {
2037 jspb.Message.initialize(this, opt_data, 0, -1, proto.co.treelab.api.ColumnDefinition.repeatedFields_, null);
2038};
2039goog.inherits(proto.co.treelab.api.ColumnDefinition, jspb.Message);
2040if (goog.DEBUG && !COMPILED) {
2041 proto.co.treelab.api.ColumnDefinition.displayName = 'proto.co.treelab.api.ColumnDefinition';
2042}
2043/**
2044 * List of repeated fields within this message type.
2045 * @private {!Array<number>}
2046 * @const
2047 */
2048proto.co.treelab.api.ColumnDefinition.repeatedFields_ = [9];
2049
2050
2051
2052if (jspb.Message.GENERATE_TO_OBJECT) {
2053/**
2054 * Creates an object representation of this proto suitable for use in Soy templates.
2055 * Field names that are reserved in JavaScript and will be renamed to pb_name.
2056 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2057 * For the list of reserved names please see:
2058 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2059 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2060 * for transitional soy proto support: http://goto/soy-param-migration
2061 * @return {!Object}
2062 */
2063proto.co.treelab.api.ColumnDefinition.prototype.toObject = function(opt_includeInstance) {
2064 return proto.co.treelab.api.ColumnDefinition.toObject(opt_includeInstance, this);
2065};
2066
2067
2068/**
2069 * Static version of the {@see toObject} method.
2070 * @param {boolean|undefined} includeInstance Whether to include the JSPB
2071 * instance for transitional soy proto support:
2072 * http://goto/soy-param-migration
2073 * @param {!proto.co.treelab.api.ColumnDefinition} msg The msg instance to transform.
2074 * @return {!Object}
2075 * @suppress {unusedLocalVariables} f is only used for nested messages
2076 */
2077proto.co.treelab.api.ColumnDefinition.toObject = function(includeInstance, msg) {
2078 var f, obj = {
2079 id: jspb.Message.getFieldWithDefault(msg, 1, ""),
2080 type: jspb.Message.getFieldWithDefault(msg, 2, ""),
2081 name: jspb.Message.getFieldWithDefault(msg, 3, ""),
2082 order: jspb.Message.getFieldWithDefault(msg, 4, 0),
2083 visibility: jspb.Message.getFieldWithDefault(msg, 5, false),
2084 foreigntableid: jspb.Message.getFieldWithDefault(msg, 6, ""),
2085 defaultnumber: +jspb.Message.getFieldWithDefault(msg, 7, 0.0),
2086 precision: jspb.Message.getFieldWithDefault(msg, 8, 0),
2087 choicesList: jspb.Message.toObjectList(msg.getChoicesList(),
2088 proto.co.treelab.api.Choice.toObject, includeInstance),
2089 dateformat: jspb.Message.getFieldWithDefault(msg, 10, ""),
2090 includetime: jspb.Message.getFieldWithDefault(msg, 11, false),
2091 timeformat: jspb.Message.getFieldWithDefault(msg, 12, ""),
2092 usegmt: jspb.Message.getFieldWithDefault(msg, 13, false)
2093 };
2094
2095 if (includeInstance) {
2096 obj.$jspbMessageInstance = msg;
2097 }
2098 return obj;
2099};
2100}
2101
2102
2103/**
2104 * Deserializes binary data (in protobuf wire format).
2105 * @param {jspb.ByteSource} bytes The bytes to deserialize.
2106 * @return {!proto.co.treelab.api.ColumnDefinition}
2107 */
2108proto.co.treelab.api.ColumnDefinition.deserializeBinary = function(bytes) {
2109 var reader = new jspb.BinaryReader(bytes);
2110 var msg = new proto.co.treelab.api.ColumnDefinition;
2111 return proto.co.treelab.api.ColumnDefinition.deserializeBinaryFromReader(msg, reader);
2112};
2113
2114
2115/**
2116 * Deserializes binary data (in protobuf wire format) from the
2117 * given reader into the given message object.
2118 * @param {!proto.co.treelab.api.ColumnDefinition} msg The message object to deserialize into.
2119 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2120 * @return {!proto.co.treelab.api.ColumnDefinition}
2121 */
2122proto.co.treelab.api.ColumnDefinition.deserializeBinaryFromReader = function(msg, reader) {
2123 while (reader.nextField()) {
2124 if (reader.isEndGroup()) {
2125 break;
2126 }
2127 var field = reader.getFieldNumber();
2128 switch (field) {
2129 case 1:
2130 var value = /** @type {string} */ (reader.readString());
2131 msg.setId(value);
2132 break;
2133 case 2:
2134 var value = /** @type {string} */ (reader.readString());
2135 msg.setType(value);
2136 break;
2137 case 3:
2138 var value = /** @type {string} */ (reader.readString());
2139 msg.setName(value);
2140 break;
2141 case 4:
2142 var value = /** @type {number} */ (reader.readInt32());
2143 msg.setOrder(value);
2144 break;
2145 case 5:
2146 var value = /** @type {boolean} */ (reader.readBool());
2147 msg.setVisibility(value);
2148 break;
2149 case 6:
2150 var value = /** @type {string} */ (reader.readString());
2151 msg.setForeigntableid(value);
2152 break;
2153 case 7:
2154 var value = /** @type {number} */ (reader.readFloat());
2155 msg.setDefaultnumber(value);
2156 break;
2157 case 8:
2158 var value = /** @type {number} */ (reader.readInt32());
2159 msg.setPrecision(value);
2160 break;
2161 case 9:
2162 var value = new proto.co.treelab.api.Choice;
2163 reader.readMessage(value,proto.co.treelab.api.Choice.deserializeBinaryFromReader);
2164 msg.addChoices(value);
2165 break;
2166 case 10:
2167 var value = /** @type {string} */ (reader.readString());
2168 msg.setDateformat(value);
2169 break;
2170 case 11:
2171 var value = /** @type {boolean} */ (reader.readBool());
2172 msg.setIncludetime(value);
2173 break;
2174 case 12:
2175 var value = /** @type {string} */ (reader.readString());
2176 msg.setTimeformat(value);
2177 break;
2178 case 13:
2179 var value = /** @type {boolean} */ (reader.readBool());
2180 msg.setUsegmt(value);
2181 break;
2182 default:
2183 reader.skipField();
2184 break;
2185 }
2186 }
2187 return msg;
2188};
2189
2190
2191/**
2192 * Serializes the message to binary data (in protobuf wire format).
2193 * @return {!Uint8Array}
2194 */
2195proto.co.treelab.api.ColumnDefinition.prototype.serializeBinary = function() {
2196 var writer = new jspb.BinaryWriter();
2197 proto.co.treelab.api.ColumnDefinition.serializeBinaryToWriter(this, writer);
2198 return writer.getResultBuffer();
2199};
2200
2201
2202/**
2203 * Serializes the given message to binary data (in protobuf wire
2204 * format), writing to the given BinaryWriter.
2205 * @param {!proto.co.treelab.api.ColumnDefinition} message
2206 * @param {!jspb.BinaryWriter} writer
2207 * @suppress {unusedLocalVariables} f is only used for nested messages
2208 */
2209proto.co.treelab.api.ColumnDefinition.serializeBinaryToWriter = function(message, writer) {
2210 var f = undefined;
2211 f = message.getId();
2212 if (f.length > 0) {
2213 writer.writeString(
2214 1,
2215 f
2216 );
2217 }
2218 f = message.getType();
2219 if (f.length > 0) {
2220 writer.writeString(
2221 2,
2222 f
2223 );
2224 }
2225 f = message.getName();
2226 if (f.length > 0) {
2227 writer.writeString(
2228 3,
2229 f
2230 );
2231 }
2232 f = message.getOrder();
2233 if (f !== 0) {
2234 writer.writeInt32(
2235 4,
2236 f
2237 );
2238 }
2239 f = message.getVisibility();
2240 if (f) {
2241 writer.writeBool(
2242 5,
2243 f
2244 );
2245 }
2246 f = message.getForeigntableid();
2247 if (f.length > 0) {
2248 writer.writeString(
2249 6,
2250 f
2251 );
2252 }
2253 f = message.getDefaultnumber();
2254 if (f !== 0.0) {
2255 writer.writeFloat(
2256 7,
2257 f
2258 );
2259 }
2260 f = message.getPrecision();
2261 if (f !== 0) {
2262 writer.writeInt32(
2263 8,
2264 f
2265 );
2266 }
2267 f = message.getChoicesList();
2268 if (f.length > 0) {
2269 writer.writeRepeatedMessage(
2270 9,
2271 f,
2272 proto.co.treelab.api.Choice.serializeBinaryToWriter
2273 );
2274 }
2275 f = message.getDateformat();
2276 if (f.length > 0) {
2277 writer.writeString(
2278 10,
2279 f
2280 );
2281 }
2282 f = message.getIncludetime();
2283 if (f) {
2284 writer.writeBool(
2285 11,
2286 f
2287 );
2288 }
2289 f = message.getTimeformat();
2290 if (f.length > 0) {
2291 writer.writeString(
2292 12,
2293 f
2294 );
2295 }
2296 f = message.getUsegmt();
2297 if (f) {
2298 writer.writeBool(
2299 13,
2300 f
2301 );
2302 }
2303};
2304
2305
2306/**
2307 * optional string id = 1;
2308 * @return {string}
2309 */
2310proto.co.treelab.api.ColumnDefinition.prototype.getId = function() {
2311 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2312};
2313
2314
2315/** @param {string} value */
2316proto.co.treelab.api.ColumnDefinition.prototype.setId = function(value) {
2317 jspb.Message.setProto3StringField(this, 1, value);
2318};
2319
2320
2321/**
2322 * optional string type = 2;
2323 * @return {string}
2324 */
2325proto.co.treelab.api.ColumnDefinition.prototype.getType = function() {
2326 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2327};
2328
2329
2330/** @param {string} value */
2331proto.co.treelab.api.ColumnDefinition.prototype.setType = function(value) {
2332 jspb.Message.setProto3StringField(this, 2, value);
2333};
2334
2335
2336/**
2337 * optional string name = 3;
2338 * @return {string}
2339 */
2340proto.co.treelab.api.ColumnDefinition.prototype.getName = function() {
2341 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2342};
2343
2344
2345/** @param {string} value */
2346proto.co.treelab.api.ColumnDefinition.prototype.setName = function(value) {
2347 jspb.Message.setProto3StringField(this, 3, value);
2348};
2349
2350
2351/**
2352 * optional int32 order = 4;
2353 * @return {number}
2354 */
2355proto.co.treelab.api.ColumnDefinition.prototype.getOrder = function() {
2356 return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2357};
2358
2359
2360/** @param {number} value */
2361proto.co.treelab.api.ColumnDefinition.prototype.setOrder = function(value) {
2362 jspb.Message.setProto3IntField(this, 4, value);
2363};
2364
2365
2366/**
2367 * optional bool visibility = 5;
2368 * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
2369 * You should avoid comparisons like {@code val === true/false} in those cases.
2370 * @return {boolean}
2371 */
2372proto.co.treelab.api.ColumnDefinition.prototype.getVisibility = function() {
2373 return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false));
2374};
2375
2376
2377/** @param {boolean} value */
2378proto.co.treelab.api.ColumnDefinition.prototype.setVisibility = function(value) {
2379 jspb.Message.setProto3BooleanField(this, 5, value);
2380};
2381
2382
2383/**
2384 * optional string foreignTableId = 6;
2385 * @return {string}
2386 */
2387proto.co.treelab.api.ColumnDefinition.prototype.getForeigntableid = function() {
2388 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2389};
2390
2391
2392/** @param {string} value */
2393proto.co.treelab.api.ColumnDefinition.prototype.setForeigntableid = function(value) {
2394 jspb.Message.setProto3StringField(this, 6, value);
2395};
2396
2397
2398/**
2399 * optional float defaultNumber = 7;
2400 * @return {number}
2401 */
2402proto.co.treelab.api.ColumnDefinition.prototype.getDefaultnumber = function() {
2403 return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 7, 0.0));
2404};
2405
2406
2407/** @param {number} value */
2408proto.co.treelab.api.ColumnDefinition.prototype.setDefaultnumber = function(value) {
2409 jspb.Message.setProto3FloatField(this, 7, value);
2410};
2411
2412
2413/**
2414 * optional int32 precision = 8;
2415 * @return {number}
2416 */
2417proto.co.treelab.api.ColumnDefinition.prototype.getPrecision = function() {
2418 return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
2419};
2420
2421
2422/** @param {number} value */
2423proto.co.treelab.api.ColumnDefinition.prototype.setPrecision = function(value) {
2424 jspb.Message.setProto3IntField(this, 8, value);
2425};
2426
2427
2428/**
2429 * repeated Choice choices = 9;
2430 * @return {!Array<!proto.co.treelab.api.Choice>}
2431 */
2432proto.co.treelab.api.ColumnDefinition.prototype.getChoicesList = function() {
2433 return /** @type{!Array<!proto.co.treelab.api.Choice>} */ (
2434 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.Choice, 9));
2435};
2436
2437
2438/** @param {!Array<!proto.co.treelab.api.Choice>} value */
2439proto.co.treelab.api.ColumnDefinition.prototype.setChoicesList = function(value) {
2440 jspb.Message.setRepeatedWrapperField(this, 9, value);
2441};
2442
2443
2444/**
2445 * @param {!proto.co.treelab.api.Choice=} opt_value
2446 * @param {number=} opt_index
2447 * @return {!proto.co.treelab.api.Choice}
2448 */
2449proto.co.treelab.api.ColumnDefinition.prototype.addChoices = function(opt_value, opt_index) {
2450 return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.co.treelab.api.Choice, opt_index);
2451};
2452
2453
2454proto.co.treelab.api.ColumnDefinition.prototype.clearChoicesList = function() {
2455 this.setChoicesList([]);
2456};
2457
2458
2459/**
2460 * optional string dateFormat = 10;
2461 * @return {string}
2462 */
2463proto.co.treelab.api.ColumnDefinition.prototype.getDateformat = function() {
2464 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
2465};
2466
2467
2468/** @param {string} value */
2469proto.co.treelab.api.ColumnDefinition.prototype.setDateformat = function(value) {
2470 jspb.Message.setProto3StringField(this, 10, value);
2471};
2472
2473
2474/**
2475 * optional bool includeTime = 11;
2476 * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
2477 * You should avoid comparisons like {@code val === true/false} in those cases.
2478 * @return {boolean}
2479 */
2480proto.co.treelab.api.ColumnDefinition.prototype.getIncludetime = function() {
2481 return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 11, false));
2482};
2483
2484
2485/** @param {boolean} value */
2486proto.co.treelab.api.ColumnDefinition.prototype.setIncludetime = function(value) {
2487 jspb.Message.setProto3BooleanField(this, 11, value);
2488};
2489
2490
2491/**
2492 * optional string timeFormat = 12;
2493 * @return {string}
2494 */
2495proto.co.treelab.api.ColumnDefinition.prototype.getTimeformat = function() {
2496 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
2497};
2498
2499
2500/** @param {string} value */
2501proto.co.treelab.api.ColumnDefinition.prototype.setTimeformat = function(value) {
2502 jspb.Message.setProto3StringField(this, 12, value);
2503};
2504
2505
2506/**
2507 * optional bool useGMT = 13;
2508 * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
2509 * You should avoid comparisons like {@code val === true/false} in those cases.
2510 * @return {boolean}
2511 */
2512proto.co.treelab.api.ColumnDefinition.prototype.getUsegmt = function() {
2513 return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 13, false));
2514};
2515
2516
2517/** @param {boolean} value */
2518proto.co.treelab.api.ColumnDefinition.prototype.setUsegmt = function(value) {
2519 jspb.Message.setProto3BooleanField(this, 13, value);
2520};
2521
2522
2523
2524/**
2525 * Generated by JsPbCodeGenerator.
2526 * @param {Array=} opt_data Optional initial data array, typically from a
2527 * server response, or constructed directly in Javascript. The array is used
2528 * in place and becomes part of the constructed object. It is not cloned.
2529 * If no data is provided, the constructed object will be empty, but still
2530 * valid.
2531 * @extends {jspb.Message}
2532 * @constructor
2533 */
2534proto.co.treelab.api.Choice = function(opt_data) {
2535 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2536};
2537goog.inherits(proto.co.treelab.api.Choice, jspb.Message);
2538if (goog.DEBUG && !COMPILED) {
2539 proto.co.treelab.api.Choice.displayName = 'proto.co.treelab.api.Choice';
2540}
2541
2542
2543if (jspb.Message.GENERATE_TO_OBJECT) {
2544/**
2545 * Creates an object representation of this proto suitable for use in Soy templates.
2546 * Field names that are reserved in JavaScript and will be renamed to pb_name.
2547 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2548 * For the list of reserved names please see:
2549 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2550 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2551 * for transitional soy proto support: http://goto/soy-param-migration
2552 * @return {!Object}
2553 */
2554proto.co.treelab.api.Choice.prototype.toObject = function(opt_includeInstance) {
2555 return proto.co.treelab.api.Choice.toObject(opt_includeInstance, this);
2556};
2557
2558
2559/**
2560 * Static version of the {@see toObject} method.
2561 * @param {boolean|undefined} includeInstance Whether to include the JSPB
2562 * instance for transitional soy proto support:
2563 * http://goto/soy-param-migration
2564 * @param {!proto.co.treelab.api.Choice} msg The msg instance to transform.
2565 * @return {!Object}
2566 * @suppress {unusedLocalVariables} f is only used for nested messages
2567 */
2568proto.co.treelab.api.Choice.toObject = function(includeInstance, msg) {
2569 var f, obj = {
2570 id: jspb.Message.getFieldWithDefault(msg, 1, ""),
2571 name: jspb.Message.getFieldWithDefault(msg, 2, ""),
2572 color: jspb.Message.getFieldWithDefault(msg, 3, "")
2573 };
2574
2575 if (includeInstance) {
2576 obj.$jspbMessageInstance = msg;
2577 }
2578 return obj;
2579};
2580}
2581
2582
2583/**
2584 * Deserializes binary data (in protobuf wire format).
2585 * @param {jspb.ByteSource} bytes The bytes to deserialize.
2586 * @return {!proto.co.treelab.api.Choice}
2587 */
2588proto.co.treelab.api.Choice.deserializeBinary = function(bytes) {
2589 var reader = new jspb.BinaryReader(bytes);
2590 var msg = new proto.co.treelab.api.Choice;
2591 return proto.co.treelab.api.Choice.deserializeBinaryFromReader(msg, reader);
2592};
2593
2594
2595/**
2596 * Deserializes binary data (in protobuf wire format) from the
2597 * given reader into the given message object.
2598 * @param {!proto.co.treelab.api.Choice} msg The message object to deserialize into.
2599 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2600 * @return {!proto.co.treelab.api.Choice}
2601 */
2602proto.co.treelab.api.Choice.deserializeBinaryFromReader = function(msg, reader) {
2603 while (reader.nextField()) {
2604 if (reader.isEndGroup()) {
2605 break;
2606 }
2607 var field = reader.getFieldNumber();
2608 switch (field) {
2609 case 1:
2610 var value = /** @type {string} */ (reader.readString());
2611 msg.setId(value);
2612 break;
2613 case 2:
2614 var value = /** @type {string} */ (reader.readString());
2615 msg.setName(value);
2616 break;
2617 case 3:
2618 var value = /** @type {string} */ (reader.readString());
2619 msg.setColor(value);
2620 break;
2621 default:
2622 reader.skipField();
2623 break;
2624 }
2625 }
2626 return msg;
2627};
2628
2629
2630/**
2631 * Serializes the message to binary data (in protobuf wire format).
2632 * @return {!Uint8Array}
2633 */
2634proto.co.treelab.api.Choice.prototype.serializeBinary = function() {
2635 var writer = new jspb.BinaryWriter();
2636 proto.co.treelab.api.Choice.serializeBinaryToWriter(this, writer);
2637 return writer.getResultBuffer();
2638};
2639
2640
2641/**
2642 * Serializes the given message to binary data (in protobuf wire
2643 * format), writing to the given BinaryWriter.
2644 * @param {!proto.co.treelab.api.Choice} message
2645 * @param {!jspb.BinaryWriter} writer
2646 * @suppress {unusedLocalVariables} f is only used for nested messages
2647 */
2648proto.co.treelab.api.Choice.serializeBinaryToWriter = function(message, writer) {
2649 var f = undefined;
2650 f = message.getId();
2651 if (f.length > 0) {
2652 writer.writeString(
2653 1,
2654 f
2655 );
2656 }
2657 f = message.getName();
2658 if (f.length > 0) {
2659 writer.writeString(
2660 2,
2661 f
2662 );
2663 }
2664 f = message.getColor();
2665 if (f.length > 0) {
2666 writer.writeString(
2667 3,
2668 f
2669 );
2670 }
2671};
2672
2673
2674/**
2675 * optional string id = 1;
2676 * @return {string}
2677 */
2678proto.co.treelab.api.Choice.prototype.getId = function() {
2679 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2680};
2681
2682
2683/** @param {string} value */
2684proto.co.treelab.api.Choice.prototype.setId = function(value) {
2685 jspb.Message.setProto3StringField(this, 1, value);
2686};
2687
2688
2689/**
2690 * optional string name = 2;
2691 * @return {string}
2692 */
2693proto.co.treelab.api.Choice.prototype.getName = function() {
2694 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2695};
2696
2697
2698/** @param {string} value */
2699proto.co.treelab.api.Choice.prototype.setName = function(value) {
2700 jspb.Message.setProto3StringField(this, 2, value);
2701};
2702
2703
2704/**
2705 * optional string color = 3;
2706 * @return {string}
2707 */
2708proto.co.treelab.api.Choice.prototype.getColor = function() {
2709 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2710};
2711
2712
2713/** @param {string} value */
2714proto.co.treelab.api.Choice.prototype.setColor = function(value) {
2715 jspb.Message.setProto3StringField(this, 3, value);
2716};
2717
2718
2719
2720/**
2721 * Generated by JsPbCodeGenerator.
2722 * @param {Array=} opt_data Optional initial data array, typically from a
2723 * server response, or constructed directly in Javascript. The array is used
2724 * in place and becomes part of the constructed object. It is not cloned.
2725 * If no data is provided, the constructed object will be empty, but still
2726 * valid.
2727 * @extends {jspb.Message}
2728 * @constructor
2729 */
2730proto.co.treelab.api.WorkspaceProjection = function(opt_data) {
2731 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2732};
2733goog.inherits(proto.co.treelab.api.WorkspaceProjection, jspb.Message);
2734if (goog.DEBUG && !COMPILED) {
2735 proto.co.treelab.api.WorkspaceProjection.displayName = 'proto.co.treelab.api.WorkspaceProjection';
2736}
2737
2738
2739if (jspb.Message.GENERATE_TO_OBJECT) {
2740/**
2741 * Creates an object representation of this proto suitable for use in Soy templates.
2742 * Field names that are reserved in JavaScript and will be renamed to pb_name.
2743 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2744 * For the list of reserved names please see:
2745 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2746 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2747 * for transitional soy proto support: http://goto/soy-param-migration
2748 * @return {!Object}
2749 */
2750proto.co.treelab.api.WorkspaceProjection.prototype.toObject = function(opt_includeInstance) {
2751 return proto.co.treelab.api.WorkspaceProjection.toObject(opt_includeInstance, this);
2752};
2753
2754
2755/**
2756 * Static version of the {@see toObject} method.
2757 * @param {boolean|undefined} includeInstance Whether to include the JSPB
2758 * instance for transitional soy proto support:
2759 * http://goto/soy-param-migration
2760 * @param {!proto.co.treelab.api.WorkspaceProjection} msg The msg instance to transform.
2761 * @return {!Object}
2762 * @suppress {unusedLocalVariables} f is only used for nested messages
2763 */
2764proto.co.treelab.api.WorkspaceProjection.toObject = function(includeInstance, msg) {
2765 var f, obj = {
2766 id: jspb.Message.getFieldWithDefault(msg, 1, ""),
2767 name: jspb.Message.getFieldWithDefault(msg, 2, "")
2768 };
2769
2770 if (includeInstance) {
2771 obj.$jspbMessageInstance = msg;
2772 }
2773 return obj;
2774};
2775}
2776
2777
2778/**
2779 * Deserializes binary data (in protobuf wire format).
2780 * @param {jspb.ByteSource} bytes The bytes to deserialize.
2781 * @return {!proto.co.treelab.api.WorkspaceProjection}
2782 */
2783proto.co.treelab.api.WorkspaceProjection.deserializeBinary = function(bytes) {
2784 var reader = new jspb.BinaryReader(bytes);
2785 var msg = new proto.co.treelab.api.WorkspaceProjection;
2786 return proto.co.treelab.api.WorkspaceProjection.deserializeBinaryFromReader(msg, reader);
2787};
2788
2789
2790/**
2791 * Deserializes binary data (in protobuf wire format) from the
2792 * given reader into the given message object.
2793 * @param {!proto.co.treelab.api.WorkspaceProjection} msg The message object to deserialize into.
2794 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2795 * @return {!proto.co.treelab.api.WorkspaceProjection}
2796 */
2797proto.co.treelab.api.WorkspaceProjection.deserializeBinaryFromReader = function(msg, reader) {
2798 while (reader.nextField()) {
2799 if (reader.isEndGroup()) {
2800 break;
2801 }
2802 var field = reader.getFieldNumber();
2803 switch (field) {
2804 case 1:
2805 var value = /** @type {string} */ (reader.readString());
2806 msg.setId(value);
2807 break;
2808 case 2:
2809 var value = /** @type {string} */ (reader.readString());
2810 msg.setName(value);
2811 break;
2812 default:
2813 reader.skipField();
2814 break;
2815 }
2816 }
2817 return msg;
2818};
2819
2820
2821/**
2822 * Serializes the message to binary data (in protobuf wire format).
2823 * @return {!Uint8Array}
2824 */
2825proto.co.treelab.api.WorkspaceProjection.prototype.serializeBinary = function() {
2826 var writer = new jspb.BinaryWriter();
2827 proto.co.treelab.api.WorkspaceProjection.serializeBinaryToWriter(this, writer);
2828 return writer.getResultBuffer();
2829};
2830
2831
2832/**
2833 * Serializes the given message to binary data (in protobuf wire
2834 * format), writing to the given BinaryWriter.
2835 * @param {!proto.co.treelab.api.WorkspaceProjection} message
2836 * @param {!jspb.BinaryWriter} writer
2837 * @suppress {unusedLocalVariables} f is only used for nested messages
2838 */
2839proto.co.treelab.api.WorkspaceProjection.serializeBinaryToWriter = function(message, writer) {
2840 var f = undefined;
2841 f = message.getId();
2842 if (f.length > 0) {
2843 writer.writeString(
2844 1,
2845 f
2846 );
2847 }
2848 f = message.getName();
2849 if (f.length > 0) {
2850 writer.writeString(
2851 2,
2852 f
2853 );
2854 }
2855};
2856
2857
2858/**
2859 * optional string id = 1;
2860 * @return {string}
2861 */
2862proto.co.treelab.api.WorkspaceProjection.prototype.getId = function() {
2863 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2864};
2865
2866
2867/** @param {string} value */
2868proto.co.treelab.api.WorkspaceProjection.prototype.setId = function(value) {
2869 jspb.Message.setProto3StringField(this, 1, value);
2870};
2871
2872
2873/**
2874 * optional string name = 2;
2875 * @return {string}
2876 */
2877proto.co.treelab.api.WorkspaceProjection.prototype.getName = function() {
2878 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2879};
2880
2881
2882/** @param {string} value */
2883proto.co.treelab.api.WorkspaceProjection.prototype.setName = function(value) {
2884 jspb.Message.setProto3StringField(this, 2, value);
2885};
2886
2887
2888
2889/**
2890 * Generated by JsPbCodeGenerator.
2891 * @param {Array=} opt_data Optional initial data array, typically from a
2892 * server response, or constructed directly in Javascript. The array is used
2893 * in place and becomes part of the constructed object. It is not cloned.
2894 * If no data is provided, the constructed object will be empty, but still
2895 * valid.
2896 * @extends {jspb.Message}
2897 * @constructor
2898 */
2899proto.co.treelab.api.CoreProjection = function(opt_data) {
2900 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2901};
2902goog.inherits(proto.co.treelab.api.CoreProjection, jspb.Message);
2903if (goog.DEBUG && !COMPILED) {
2904 proto.co.treelab.api.CoreProjection.displayName = 'proto.co.treelab.api.CoreProjection';
2905}
2906
2907
2908if (jspb.Message.GENERATE_TO_OBJECT) {
2909/**
2910 * Creates an object representation of this proto suitable for use in Soy templates.
2911 * Field names that are reserved in JavaScript and will be renamed to pb_name.
2912 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2913 * For the list of reserved names please see:
2914 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2915 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2916 * for transitional soy proto support: http://goto/soy-param-migration
2917 * @return {!Object}
2918 */
2919proto.co.treelab.api.CoreProjection.prototype.toObject = function(opt_includeInstance) {
2920 return proto.co.treelab.api.CoreProjection.toObject(opt_includeInstance, this);
2921};
2922
2923
2924/**
2925 * Static version of the {@see toObject} method.
2926 * @param {boolean|undefined} includeInstance Whether to include the JSPB
2927 * instance for transitional soy proto support:
2928 * http://goto/soy-param-migration
2929 * @param {!proto.co.treelab.api.CoreProjection} msg The msg instance to transform.
2930 * @return {!Object}
2931 * @suppress {unusedLocalVariables} f is only used for nested messages
2932 */
2933proto.co.treelab.api.CoreProjection.toObject = function(includeInstance, msg) {
2934 var f, obj = {
2935 id: jspb.Message.getFieldWithDefault(msg, 2, ""),
2936 name: jspb.Message.getFieldWithDefault(msg, 3, ""),
2937 color: jspb.Message.getFieldWithDefault(msg, 4, ""),
2938 icon: jspb.Message.getFieldWithDefault(msg, 5, "")
2939 };
2940
2941 if (includeInstance) {
2942 obj.$jspbMessageInstance = msg;
2943 }
2944 return obj;
2945};
2946}
2947
2948
2949/**
2950 * Deserializes binary data (in protobuf wire format).
2951 * @param {jspb.ByteSource} bytes The bytes to deserialize.
2952 * @return {!proto.co.treelab.api.CoreProjection}
2953 */
2954proto.co.treelab.api.CoreProjection.deserializeBinary = function(bytes) {
2955 var reader = new jspb.BinaryReader(bytes);
2956 var msg = new proto.co.treelab.api.CoreProjection;
2957 return proto.co.treelab.api.CoreProjection.deserializeBinaryFromReader(msg, reader);
2958};
2959
2960
2961/**
2962 * Deserializes binary data (in protobuf wire format) from the
2963 * given reader into the given message object.
2964 * @param {!proto.co.treelab.api.CoreProjection} msg The message object to deserialize into.
2965 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2966 * @return {!proto.co.treelab.api.CoreProjection}
2967 */
2968proto.co.treelab.api.CoreProjection.deserializeBinaryFromReader = function(msg, reader) {
2969 while (reader.nextField()) {
2970 if (reader.isEndGroup()) {
2971 break;
2972 }
2973 var field = reader.getFieldNumber();
2974 switch (field) {
2975 case 2:
2976 var value = /** @type {string} */ (reader.readString());
2977 msg.setId(value);
2978 break;
2979 case 3:
2980 var value = /** @type {string} */ (reader.readString());
2981 msg.setName(value);
2982 break;
2983 case 4:
2984 var value = /** @type {string} */ (reader.readString());
2985 msg.setColor(value);
2986 break;
2987 case 5:
2988 var value = /** @type {string} */ (reader.readString());
2989 msg.setIcon(value);
2990 break;
2991 default:
2992 reader.skipField();
2993 break;
2994 }
2995 }
2996 return msg;
2997};
2998
2999
3000/**
3001 * Serializes the message to binary data (in protobuf wire format).
3002 * @return {!Uint8Array}
3003 */
3004proto.co.treelab.api.CoreProjection.prototype.serializeBinary = function() {
3005 var writer = new jspb.BinaryWriter();
3006 proto.co.treelab.api.CoreProjection.serializeBinaryToWriter(this, writer);
3007 return writer.getResultBuffer();
3008};
3009
3010
3011/**
3012 * Serializes the given message to binary data (in protobuf wire
3013 * format), writing to the given BinaryWriter.
3014 * @param {!proto.co.treelab.api.CoreProjection} message
3015 * @param {!jspb.BinaryWriter} writer
3016 * @suppress {unusedLocalVariables} f is only used for nested messages
3017 */
3018proto.co.treelab.api.CoreProjection.serializeBinaryToWriter = function(message, writer) {
3019 var f = undefined;
3020 f = message.getId();
3021 if (f.length > 0) {
3022 writer.writeString(
3023 2,
3024 f
3025 );
3026 }
3027 f = message.getName();
3028 if (f.length > 0) {
3029 writer.writeString(
3030 3,
3031 f
3032 );
3033 }
3034 f = message.getColor();
3035 if (f.length > 0) {
3036 writer.writeString(
3037 4,
3038 f
3039 );
3040 }
3041 f = message.getIcon();
3042 if (f.length > 0) {
3043 writer.writeString(
3044 5,
3045 f
3046 );
3047 }
3048};
3049
3050
3051/**
3052 * optional string id = 2;
3053 * @return {string}
3054 */
3055proto.co.treelab.api.CoreProjection.prototype.getId = function() {
3056 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3057};
3058
3059
3060/** @param {string} value */
3061proto.co.treelab.api.CoreProjection.prototype.setId = function(value) {
3062 jspb.Message.setProto3StringField(this, 2, value);
3063};
3064
3065
3066/**
3067 * optional string name = 3;
3068 * @return {string}
3069 */
3070proto.co.treelab.api.CoreProjection.prototype.getName = function() {
3071 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3072};
3073
3074
3075/** @param {string} value */
3076proto.co.treelab.api.CoreProjection.prototype.setName = function(value) {
3077 jspb.Message.setProto3StringField(this, 3, value);
3078};
3079
3080
3081/**
3082 * optional string color = 4;
3083 * @return {string}
3084 */
3085proto.co.treelab.api.CoreProjection.prototype.getColor = function() {
3086 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3087};
3088
3089
3090/** @param {string} value */
3091proto.co.treelab.api.CoreProjection.prototype.setColor = function(value) {
3092 jspb.Message.setProto3StringField(this, 4, value);
3093};
3094
3095
3096/**
3097 * optional string icon = 5;
3098 * @return {string}
3099 */
3100proto.co.treelab.api.CoreProjection.prototype.getIcon = function() {
3101 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3102};
3103
3104
3105/** @param {string} value */
3106proto.co.treelab.api.CoreProjection.prototype.setIcon = function(value) {
3107 jspb.Message.setProto3StringField(this, 5, value);
3108};
3109
3110
3111
3112/**
3113 * Generated by JsPbCodeGenerator.
3114 * @param {Array=} opt_data Optional initial data array, typically from a
3115 * server response, or constructed directly in Javascript. The array is used
3116 * in place and becomes part of the constructed object. It is not cloned.
3117 * If no data is provided, the constructed object will be empty, but still
3118 * valid.
3119 * @extends {jspb.Message}
3120 * @constructor
3121 */
3122proto.co.treelab.api.ForeignRowVisibleNameValue = function(opt_data) {
3123 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3124};
3125goog.inherits(proto.co.treelab.api.ForeignRowVisibleNameValue, jspb.Message);
3126if (goog.DEBUG && !COMPILED) {
3127 proto.co.treelab.api.ForeignRowVisibleNameValue.displayName = 'proto.co.treelab.api.ForeignRowVisibleNameValue';
3128}
3129
3130
3131if (jspb.Message.GENERATE_TO_OBJECT) {
3132/**
3133 * Creates an object representation of this proto suitable for use in Soy templates.
3134 * Field names that are reserved in JavaScript and will be renamed to pb_name.
3135 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3136 * For the list of reserved names please see:
3137 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
3138 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
3139 * for transitional soy proto support: http://goto/soy-param-migration
3140 * @return {!Object}
3141 */
3142proto.co.treelab.api.ForeignRowVisibleNameValue.prototype.toObject = function(opt_includeInstance) {
3143 return proto.co.treelab.api.ForeignRowVisibleNameValue.toObject(opt_includeInstance, this);
3144};
3145
3146
3147/**
3148 * Static version of the {@see toObject} method.
3149 * @param {boolean|undefined} includeInstance Whether to include the JSPB
3150 * instance for transitional soy proto support:
3151 * http://goto/soy-param-migration
3152 * @param {!proto.co.treelab.api.ForeignRowVisibleNameValue} msg The msg instance to transform.
3153 * @return {!Object}
3154 * @suppress {unusedLocalVariables} f is only used for nested messages
3155 */
3156proto.co.treelab.api.ForeignRowVisibleNameValue.toObject = function(includeInstance, msg) {
3157 var f, obj = {
3158 value: jspb.Message.getFieldWithDefault(msg, 1, "")
3159 };
3160
3161 if (includeInstance) {
3162 obj.$jspbMessageInstance = msg;
3163 }
3164 return obj;
3165};
3166}
3167
3168
3169/**
3170 * Deserializes binary data (in protobuf wire format).
3171 * @param {jspb.ByteSource} bytes The bytes to deserialize.
3172 * @return {!proto.co.treelab.api.ForeignRowVisibleNameValue}
3173 */
3174proto.co.treelab.api.ForeignRowVisibleNameValue.deserializeBinary = function(bytes) {
3175 var reader = new jspb.BinaryReader(bytes);
3176 var msg = new proto.co.treelab.api.ForeignRowVisibleNameValue;
3177 return proto.co.treelab.api.ForeignRowVisibleNameValue.deserializeBinaryFromReader(msg, reader);
3178};
3179
3180
3181/**
3182 * Deserializes binary data (in protobuf wire format) from the
3183 * given reader into the given message object.
3184 * @param {!proto.co.treelab.api.ForeignRowVisibleNameValue} msg The message object to deserialize into.
3185 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3186 * @return {!proto.co.treelab.api.ForeignRowVisibleNameValue}
3187 */
3188proto.co.treelab.api.ForeignRowVisibleNameValue.deserializeBinaryFromReader = function(msg, reader) {
3189 while (reader.nextField()) {
3190 if (reader.isEndGroup()) {
3191 break;
3192 }
3193 var field = reader.getFieldNumber();
3194 switch (field) {
3195 case 1:
3196 var value = /** @type {string} */ (reader.readString());
3197 msg.setValue(value);
3198 break;
3199 default:
3200 reader.skipField();
3201 break;
3202 }
3203 }
3204 return msg;
3205};
3206
3207
3208/**
3209 * Serializes the message to binary data (in protobuf wire format).
3210 * @return {!Uint8Array}
3211 */
3212proto.co.treelab.api.ForeignRowVisibleNameValue.prototype.serializeBinary = function() {
3213 var writer = new jspb.BinaryWriter();
3214 proto.co.treelab.api.ForeignRowVisibleNameValue.serializeBinaryToWriter(this, writer);
3215 return writer.getResultBuffer();
3216};
3217
3218
3219/**
3220 * Serializes the given message to binary data (in protobuf wire
3221 * format), writing to the given BinaryWriter.
3222 * @param {!proto.co.treelab.api.ForeignRowVisibleNameValue} message
3223 * @param {!jspb.BinaryWriter} writer
3224 * @suppress {unusedLocalVariables} f is only used for nested messages
3225 */
3226proto.co.treelab.api.ForeignRowVisibleNameValue.serializeBinaryToWriter = function(message, writer) {
3227 var f = undefined;
3228 f = message.getValue();
3229 if (f.length > 0) {
3230 writer.writeString(
3231 1,
3232 f
3233 );
3234 }
3235};
3236
3237
3238/**
3239 * optional string value = 1;
3240 * @return {string}
3241 */
3242proto.co.treelab.api.ForeignRowVisibleNameValue.prototype.getValue = function() {
3243 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3244};
3245
3246
3247/** @param {string} value */
3248proto.co.treelab.api.ForeignRowVisibleNameValue.prototype.setValue = function(value) {
3249 jspb.Message.setProto3StringField(this, 1, value);
3250};
3251
3252
3253
3254/**
3255 * Generated by JsPbCodeGenerator.
3256 * @param {Array=} opt_data Optional initial data array, typically from a
3257 * server response, or constructed directly in Javascript. The array is used
3258 * in place and becomes part of the constructed object. It is not cloned.
3259 * If no data is provided, the constructed object will be empty, but still
3260 * valid.
3261 * @extends {jspb.Message}
3262 * @constructor
3263 */
3264proto.co.treelab.api.ForeignRowValue = function(opt_data) {
3265 jspb.Message.initialize(this, opt_data, 0, -1, proto.co.treelab.api.ForeignRowValue.repeatedFields_, null);
3266};
3267goog.inherits(proto.co.treelab.api.ForeignRowValue, jspb.Message);
3268if (goog.DEBUG && !COMPILED) {
3269 proto.co.treelab.api.ForeignRowValue.displayName = 'proto.co.treelab.api.ForeignRowValue';
3270}
3271/**
3272 * List of repeated fields within this message type.
3273 * @private {!Array<number>}
3274 * @const
3275 */
3276proto.co.treelab.api.ForeignRowValue.repeatedFields_ = [2];
3277
3278
3279
3280if (jspb.Message.GENERATE_TO_OBJECT) {
3281/**
3282 * Creates an object representation of this proto suitable for use in Soy templates.
3283 * Field names that are reserved in JavaScript and will be renamed to pb_name.
3284 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3285 * For the list of reserved names please see:
3286 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
3287 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
3288 * for transitional soy proto support: http://goto/soy-param-migration
3289 * @return {!Object}
3290 */
3291proto.co.treelab.api.ForeignRowValue.prototype.toObject = function(opt_includeInstance) {
3292 return proto.co.treelab.api.ForeignRowValue.toObject(opt_includeInstance, this);
3293};
3294
3295
3296/**
3297 * Static version of the {@see toObject} method.
3298 * @param {boolean|undefined} includeInstance Whether to include the JSPB
3299 * instance for transitional soy proto support:
3300 * http://goto/soy-param-migration
3301 * @param {!proto.co.treelab.api.ForeignRowValue} msg The msg instance to transform.
3302 * @return {!Object}
3303 * @suppress {unusedLocalVariables} f is only used for nested messages
3304 */
3305proto.co.treelab.api.ForeignRowValue.toObject = function(includeInstance, msg) {
3306 var f, obj = {
3307 id: jspb.Message.getFieldWithDefault(msg, 1, ""),
3308 visiblenameList: jspb.Message.toObjectList(msg.getVisiblenameList(),
3309 proto.co.treelab.api.ForeignRowVisibleNameValue.toObject, includeInstance)
3310 };
3311
3312 if (includeInstance) {
3313 obj.$jspbMessageInstance = msg;
3314 }
3315 return obj;
3316};
3317}
3318
3319
3320/**
3321 * Deserializes binary data (in protobuf wire format).
3322 * @param {jspb.ByteSource} bytes The bytes to deserialize.
3323 * @return {!proto.co.treelab.api.ForeignRowValue}
3324 */
3325proto.co.treelab.api.ForeignRowValue.deserializeBinary = function(bytes) {
3326 var reader = new jspb.BinaryReader(bytes);
3327 var msg = new proto.co.treelab.api.ForeignRowValue;
3328 return proto.co.treelab.api.ForeignRowValue.deserializeBinaryFromReader(msg, reader);
3329};
3330
3331
3332/**
3333 * Deserializes binary data (in protobuf wire format) from the
3334 * given reader into the given message object.
3335 * @param {!proto.co.treelab.api.ForeignRowValue} msg The message object to deserialize into.
3336 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3337 * @return {!proto.co.treelab.api.ForeignRowValue}
3338 */
3339proto.co.treelab.api.ForeignRowValue.deserializeBinaryFromReader = function(msg, reader) {
3340 while (reader.nextField()) {
3341 if (reader.isEndGroup()) {
3342 break;
3343 }
3344 var field = reader.getFieldNumber();
3345 switch (field) {
3346 case 1:
3347 var value = /** @type {string} */ (reader.readString());
3348 msg.setId(value);
3349 break;
3350 case 2:
3351 var value = new proto.co.treelab.api.ForeignRowVisibleNameValue;
3352 reader.readMessage(value,proto.co.treelab.api.ForeignRowVisibleNameValue.deserializeBinaryFromReader);
3353 msg.addVisiblename(value);
3354 break;
3355 default:
3356 reader.skipField();
3357 break;
3358 }
3359 }
3360 return msg;
3361};
3362
3363
3364/**
3365 * Serializes the message to binary data (in protobuf wire format).
3366 * @return {!Uint8Array}
3367 */
3368proto.co.treelab.api.ForeignRowValue.prototype.serializeBinary = function() {
3369 var writer = new jspb.BinaryWriter();
3370 proto.co.treelab.api.ForeignRowValue.serializeBinaryToWriter(this, writer);
3371 return writer.getResultBuffer();
3372};
3373
3374
3375/**
3376 * Serializes the given message to binary data (in protobuf wire
3377 * format), writing to the given BinaryWriter.
3378 * @param {!proto.co.treelab.api.ForeignRowValue} message
3379 * @param {!jspb.BinaryWriter} writer
3380 * @suppress {unusedLocalVariables} f is only used for nested messages
3381 */
3382proto.co.treelab.api.ForeignRowValue.serializeBinaryToWriter = function(message, writer) {
3383 var f = undefined;
3384 f = message.getId();
3385 if (f.length > 0) {
3386 writer.writeString(
3387 1,
3388 f
3389 );
3390 }
3391 f = message.getVisiblenameList();
3392 if (f.length > 0) {
3393 writer.writeRepeatedMessage(
3394 2,
3395 f,
3396 proto.co.treelab.api.ForeignRowVisibleNameValue.serializeBinaryToWriter
3397 );
3398 }
3399};
3400
3401
3402/**
3403 * optional string id = 1;
3404 * @return {string}
3405 */
3406proto.co.treelab.api.ForeignRowValue.prototype.getId = function() {
3407 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3408};
3409
3410
3411/** @param {string} value */
3412proto.co.treelab.api.ForeignRowValue.prototype.setId = function(value) {
3413 jspb.Message.setProto3StringField(this, 1, value);
3414};
3415
3416
3417/**
3418 * repeated ForeignRowVisibleNameValue visibleName = 2;
3419 * @return {!Array<!proto.co.treelab.api.ForeignRowVisibleNameValue>}
3420 */
3421proto.co.treelab.api.ForeignRowValue.prototype.getVisiblenameList = function() {
3422 return /** @type{!Array<!proto.co.treelab.api.ForeignRowVisibleNameValue>} */ (
3423 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.ForeignRowVisibleNameValue, 2));
3424};
3425
3426
3427/** @param {!Array<!proto.co.treelab.api.ForeignRowVisibleNameValue>} value */
3428proto.co.treelab.api.ForeignRowValue.prototype.setVisiblenameList = function(value) {
3429 jspb.Message.setRepeatedWrapperField(this, 2, value);
3430};
3431
3432
3433/**
3434 * @param {!proto.co.treelab.api.ForeignRowVisibleNameValue=} opt_value
3435 * @param {number=} opt_index
3436 * @return {!proto.co.treelab.api.ForeignRowVisibleNameValue}
3437 */
3438proto.co.treelab.api.ForeignRowValue.prototype.addVisiblename = function(opt_value, opt_index) {
3439 return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.co.treelab.api.ForeignRowVisibleNameValue, opt_index);
3440};
3441
3442
3443proto.co.treelab.api.ForeignRowValue.prototype.clearVisiblenameList = function() {
3444 this.setVisiblenameList([]);
3445};
3446
3447
3448
3449/**
3450 * Generated by JsPbCodeGenerator.
3451 * @param {Array=} opt_data Optional initial data array, typically from a
3452 * server response, or constructed directly in Javascript. The array is used
3453 * in place and becomes part of the constructed object. It is not cloned.
3454 * If no data is provided, the constructed object will be empty, but still
3455 * valid.
3456 * @extends {jspb.Message}
3457 * @constructor
3458 */
3459proto.co.treelab.api.Attachment = function(opt_data) {
3460 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3461};
3462goog.inherits(proto.co.treelab.api.Attachment, jspb.Message);
3463if (goog.DEBUG && !COMPILED) {
3464 proto.co.treelab.api.Attachment.displayName = 'proto.co.treelab.api.Attachment';
3465}
3466
3467
3468if (jspb.Message.GENERATE_TO_OBJECT) {
3469/**
3470 * Creates an object representation of this proto suitable for use in Soy templates.
3471 * Field names that are reserved in JavaScript and will be renamed to pb_name.
3472 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3473 * For the list of reserved names please see:
3474 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
3475 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
3476 * for transitional soy proto support: http://goto/soy-param-migration
3477 * @return {!Object}
3478 */
3479proto.co.treelab.api.Attachment.prototype.toObject = function(opt_includeInstance) {
3480 return proto.co.treelab.api.Attachment.toObject(opt_includeInstance, this);
3481};
3482
3483
3484/**
3485 * Static version of the {@see toObject} method.
3486 * @param {boolean|undefined} includeInstance Whether to include the JSPB
3487 * instance for transitional soy proto support:
3488 * http://goto/soy-param-migration
3489 * @param {!proto.co.treelab.api.Attachment} msg The msg instance to transform.
3490 * @return {!Object}
3491 * @suppress {unusedLocalVariables} f is only used for nested messages
3492 */
3493proto.co.treelab.api.Attachment.toObject = function(includeInstance, msg) {
3494 var f, obj = {
3495 name: jspb.Message.getFieldWithDefault(msg, 1, ""),
3496 url: jspb.Message.getFieldWithDefault(msg, 2, "")
3497 };
3498
3499 if (includeInstance) {
3500 obj.$jspbMessageInstance = msg;
3501 }
3502 return obj;
3503};
3504}
3505
3506
3507/**
3508 * Deserializes binary data (in protobuf wire format).
3509 * @param {jspb.ByteSource} bytes The bytes to deserialize.
3510 * @return {!proto.co.treelab.api.Attachment}
3511 */
3512proto.co.treelab.api.Attachment.deserializeBinary = function(bytes) {
3513 var reader = new jspb.BinaryReader(bytes);
3514 var msg = new proto.co.treelab.api.Attachment;
3515 return proto.co.treelab.api.Attachment.deserializeBinaryFromReader(msg, reader);
3516};
3517
3518
3519/**
3520 * Deserializes binary data (in protobuf wire format) from the
3521 * given reader into the given message object.
3522 * @param {!proto.co.treelab.api.Attachment} msg The message object to deserialize into.
3523 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3524 * @return {!proto.co.treelab.api.Attachment}
3525 */
3526proto.co.treelab.api.Attachment.deserializeBinaryFromReader = function(msg, reader) {
3527 while (reader.nextField()) {
3528 if (reader.isEndGroup()) {
3529 break;
3530 }
3531 var field = reader.getFieldNumber();
3532 switch (field) {
3533 case 1:
3534 var value = /** @type {string} */ (reader.readString());
3535 msg.setName(value);
3536 break;
3537 case 2:
3538 var value = /** @type {string} */ (reader.readString());
3539 msg.setUrl(value);
3540 break;
3541 default:
3542 reader.skipField();
3543 break;
3544 }
3545 }
3546 return msg;
3547};
3548
3549
3550/**
3551 * Serializes the message to binary data (in protobuf wire format).
3552 * @return {!Uint8Array}
3553 */
3554proto.co.treelab.api.Attachment.prototype.serializeBinary = function() {
3555 var writer = new jspb.BinaryWriter();
3556 proto.co.treelab.api.Attachment.serializeBinaryToWriter(this, writer);
3557 return writer.getResultBuffer();
3558};
3559
3560
3561/**
3562 * Serializes the given message to binary data (in protobuf wire
3563 * format), writing to the given BinaryWriter.
3564 * @param {!proto.co.treelab.api.Attachment} message
3565 * @param {!jspb.BinaryWriter} writer
3566 * @suppress {unusedLocalVariables} f is only used for nested messages
3567 */
3568proto.co.treelab.api.Attachment.serializeBinaryToWriter = function(message, writer) {
3569 var f = undefined;
3570 f = message.getName();
3571 if (f.length > 0) {
3572 writer.writeString(
3573 1,
3574 f
3575 );
3576 }
3577 f = message.getUrl();
3578 if (f.length > 0) {
3579 writer.writeString(
3580 2,
3581 f
3582 );
3583 }
3584};
3585
3586
3587/**
3588 * optional string name = 1;
3589 * @return {string}
3590 */
3591proto.co.treelab.api.Attachment.prototype.getName = function() {
3592 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3593};
3594
3595
3596/** @param {string} value */
3597proto.co.treelab.api.Attachment.prototype.setName = function(value) {
3598 jspb.Message.setProto3StringField(this, 1, value);
3599};
3600
3601
3602/**
3603 * optional string url = 2;
3604 * @return {string}
3605 */
3606proto.co.treelab.api.Attachment.prototype.getUrl = function() {
3607 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3608};
3609
3610
3611/** @param {string} value */
3612proto.co.treelab.api.Attachment.prototype.setUrl = function(value) {
3613 jspb.Message.setProto3StringField(this, 2, value);
3614};
3615
3616
3617
3618/**
3619 * Generated by JsPbCodeGenerator.
3620 * @param {Array=} opt_data Optional initial data array, typically from a
3621 * server response, or constructed directly in Javascript. The array is used
3622 * in place and becomes part of the constructed object. It is not cloned.
3623 * If no data is provided, the constructed object will be empty, but still
3624 * valid.
3625 * @extends {jspb.Message}
3626 * @constructor
3627 */
3628proto.co.treelab.api.ColumnConfig = function(opt_data) {
3629 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3630};
3631goog.inherits(proto.co.treelab.api.ColumnConfig, jspb.Message);
3632if (goog.DEBUG && !COMPILED) {
3633 proto.co.treelab.api.ColumnConfig.displayName = 'proto.co.treelab.api.ColumnConfig';
3634}
3635
3636
3637if (jspb.Message.GENERATE_TO_OBJECT) {
3638/**
3639 * Creates an object representation of this proto suitable for use in Soy templates.
3640 * Field names that are reserved in JavaScript and will be renamed to pb_name.
3641 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3642 * For the list of reserved names please see:
3643 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
3644 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
3645 * for transitional soy proto support: http://goto/soy-param-migration
3646 * @return {!Object}
3647 */
3648proto.co.treelab.api.ColumnConfig.prototype.toObject = function(opt_includeInstance) {
3649 return proto.co.treelab.api.ColumnConfig.toObject(opt_includeInstance, this);
3650};
3651
3652
3653/**
3654 * Static version of the {@see toObject} method.
3655 * @param {boolean|undefined} includeInstance Whether to include the JSPB
3656 * instance for transitional soy proto support:
3657 * http://goto/soy-param-migration
3658 * @param {!proto.co.treelab.api.ColumnConfig} msg The msg instance to transform.
3659 * @return {!Object}
3660 * @suppress {unusedLocalVariables} f is only used for nested messages
3661 */
3662proto.co.treelab.api.ColumnConfig.toObject = function(includeInstance, msg) {
3663 var f, obj = {
3664 name: jspb.Message.getFieldWithDefault(msg, 1, ""),
3665 type: jspb.Message.getFieldWithDefault(msg, 2, ""),
3666 order: jspb.Message.getFieldWithDefault(msg, 3, 0)
3667 };
3668
3669 if (includeInstance) {
3670 obj.$jspbMessageInstance = msg;
3671 }
3672 return obj;
3673};
3674}
3675
3676
3677/**
3678 * Deserializes binary data (in protobuf wire format).
3679 * @param {jspb.ByteSource} bytes The bytes to deserialize.
3680 * @return {!proto.co.treelab.api.ColumnConfig}
3681 */
3682proto.co.treelab.api.ColumnConfig.deserializeBinary = function(bytes) {
3683 var reader = new jspb.BinaryReader(bytes);
3684 var msg = new proto.co.treelab.api.ColumnConfig;
3685 return proto.co.treelab.api.ColumnConfig.deserializeBinaryFromReader(msg, reader);
3686};
3687
3688
3689/**
3690 * Deserializes binary data (in protobuf wire format) from the
3691 * given reader into the given message object.
3692 * @param {!proto.co.treelab.api.ColumnConfig} msg The message object to deserialize into.
3693 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3694 * @return {!proto.co.treelab.api.ColumnConfig}
3695 */
3696proto.co.treelab.api.ColumnConfig.deserializeBinaryFromReader = function(msg, reader) {
3697 while (reader.nextField()) {
3698 if (reader.isEndGroup()) {
3699 break;
3700 }
3701 var field = reader.getFieldNumber();
3702 switch (field) {
3703 case 1:
3704 var value = /** @type {string} */ (reader.readString());
3705 msg.setName(value);
3706 break;
3707 case 2:
3708 var value = /** @type {string} */ (reader.readString());
3709 msg.setType(value);
3710 break;
3711 case 3:
3712 var value = /** @type {number} */ (reader.readInt32());
3713 msg.setOrder(value);
3714 break;
3715 default:
3716 reader.skipField();
3717 break;
3718 }
3719 }
3720 return msg;
3721};
3722
3723
3724/**
3725 * Serializes the message to binary data (in protobuf wire format).
3726 * @return {!Uint8Array}
3727 */
3728proto.co.treelab.api.ColumnConfig.prototype.serializeBinary = function() {
3729 var writer = new jspb.BinaryWriter();
3730 proto.co.treelab.api.ColumnConfig.serializeBinaryToWriter(this, writer);
3731 return writer.getResultBuffer();
3732};
3733
3734
3735/**
3736 * Serializes the given message to binary data (in protobuf wire
3737 * format), writing to the given BinaryWriter.
3738 * @param {!proto.co.treelab.api.ColumnConfig} message
3739 * @param {!jspb.BinaryWriter} writer
3740 * @suppress {unusedLocalVariables} f is only used for nested messages
3741 */
3742proto.co.treelab.api.ColumnConfig.serializeBinaryToWriter = function(message, writer) {
3743 var f = undefined;
3744 f = message.getName();
3745 if (f.length > 0) {
3746 writer.writeString(
3747 1,
3748 f
3749 );
3750 }
3751 f = message.getType();
3752 if (f.length > 0) {
3753 writer.writeString(
3754 2,
3755 f
3756 );
3757 }
3758 f = message.getOrder();
3759 if (f !== 0) {
3760 writer.writeInt32(
3761 3,
3762 f
3763 );
3764 }
3765};
3766
3767
3768/**
3769 * optional string name = 1;
3770 * @return {string}
3771 */
3772proto.co.treelab.api.ColumnConfig.prototype.getName = function() {
3773 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3774};
3775
3776
3777/** @param {string} value */
3778proto.co.treelab.api.ColumnConfig.prototype.setName = function(value) {
3779 jspb.Message.setProto3StringField(this, 1, value);
3780};
3781
3782
3783/**
3784 * optional string type = 2;
3785 * @return {string}
3786 */
3787proto.co.treelab.api.ColumnConfig.prototype.getType = function() {
3788 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3789};
3790
3791
3792/** @param {string} value */
3793proto.co.treelab.api.ColumnConfig.prototype.setType = function(value) {
3794 jspb.Message.setProto3StringField(this, 2, value);
3795};
3796
3797
3798/**
3799 * optional int32 order = 3;
3800 * @return {number}
3801 */
3802proto.co.treelab.api.ColumnConfig.prototype.getOrder = function() {
3803 return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3804};
3805
3806
3807/** @param {number} value */
3808proto.co.treelab.api.ColumnConfig.prototype.setOrder = function(value) {
3809 jspb.Message.setProto3IntField(this, 3, value);
3810};
3811
3812
3813
3814/**
3815 * Generated by JsPbCodeGenerator.
3816 * @param {Array=} opt_data Optional initial data array, typically from a
3817 * server response, or constructed directly in Javascript. The array is used
3818 * in place and becomes part of the constructed object. It is not cloned.
3819 * If no data is provided, the constructed object will be empty, but still
3820 * valid.
3821 * @extends {jspb.Message}
3822 * @constructor
3823 */
3824proto.co.treelab.api.ViewDefinition = function(opt_data) {
3825 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3826};
3827goog.inherits(proto.co.treelab.api.ViewDefinition, jspb.Message);
3828if (goog.DEBUG && !COMPILED) {
3829 proto.co.treelab.api.ViewDefinition.displayName = 'proto.co.treelab.api.ViewDefinition';
3830}
3831
3832
3833if (jspb.Message.GENERATE_TO_OBJECT) {
3834/**
3835 * Creates an object representation of this proto suitable for use in Soy templates.
3836 * Field names that are reserved in JavaScript and will be renamed to pb_name.
3837 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3838 * For the list of reserved names please see:
3839 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
3840 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
3841 * for transitional soy proto support: http://goto/soy-param-migration
3842 * @return {!Object}
3843 */
3844proto.co.treelab.api.ViewDefinition.prototype.toObject = function(opt_includeInstance) {
3845 return proto.co.treelab.api.ViewDefinition.toObject(opt_includeInstance, this);
3846};
3847
3848
3849/**
3850 * Static version of the {@see toObject} method.
3851 * @param {boolean|undefined} includeInstance Whether to include the JSPB
3852 * instance for transitional soy proto support:
3853 * http://goto/soy-param-migration
3854 * @param {!proto.co.treelab.api.ViewDefinition} msg The msg instance to transform.
3855 * @return {!Object}
3856 * @suppress {unusedLocalVariables} f is only used for nested messages
3857 */
3858proto.co.treelab.api.ViewDefinition.toObject = function(includeInstance, msg) {
3859 var f, obj = {
3860 id: jspb.Message.getFieldWithDefault(msg, 1, ""),
3861 name: jspb.Message.getFieldWithDefault(msg, 2, ""),
3862 type: jspb.Message.getFieldWithDefault(msg, 3, "")
3863 };
3864
3865 if (includeInstance) {
3866 obj.$jspbMessageInstance = msg;
3867 }
3868 return obj;
3869};
3870}
3871
3872
3873/**
3874 * Deserializes binary data (in protobuf wire format).
3875 * @param {jspb.ByteSource} bytes The bytes to deserialize.
3876 * @return {!proto.co.treelab.api.ViewDefinition}
3877 */
3878proto.co.treelab.api.ViewDefinition.deserializeBinary = function(bytes) {
3879 var reader = new jspb.BinaryReader(bytes);
3880 var msg = new proto.co.treelab.api.ViewDefinition;
3881 return proto.co.treelab.api.ViewDefinition.deserializeBinaryFromReader(msg, reader);
3882};
3883
3884
3885/**
3886 * Deserializes binary data (in protobuf wire format) from the
3887 * given reader into the given message object.
3888 * @param {!proto.co.treelab.api.ViewDefinition} msg The message object to deserialize into.
3889 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3890 * @return {!proto.co.treelab.api.ViewDefinition}
3891 */
3892proto.co.treelab.api.ViewDefinition.deserializeBinaryFromReader = function(msg, reader) {
3893 while (reader.nextField()) {
3894 if (reader.isEndGroup()) {
3895 break;
3896 }
3897 var field = reader.getFieldNumber();
3898 switch (field) {
3899 case 1:
3900 var value = /** @type {string} */ (reader.readString());
3901 msg.setId(value);
3902 break;
3903 case 2:
3904 var value = /** @type {string} */ (reader.readString());
3905 msg.setName(value);
3906 break;
3907 case 3:
3908 var value = /** @type {string} */ (reader.readString());
3909 msg.setType(value);
3910 break;
3911 default:
3912 reader.skipField();
3913 break;
3914 }
3915 }
3916 return msg;
3917};
3918
3919
3920/**
3921 * Serializes the message to binary data (in protobuf wire format).
3922 * @return {!Uint8Array}
3923 */
3924proto.co.treelab.api.ViewDefinition.prototype.serializeBinary = function() {
3925 var writer = new jspb.BinaryWriter();
3926 proto.co.treelab.api.ViewDefinition.serializeBinaryToWriter(this, writer);
3927 return writer.getResultBuffer();
3928};
3929
3930
3931/**
3932 * Serializes the given message to binary data (in protobuf wire
3933 * format), writing to the given BinaryWriter.
3934 * @param {!proto.co.treelab.api.ViewDefinition} message
3935 * @param {!jspb.BinaryWriter} writer
3936 * @suppress {unusedLocalVariables} f is only used for nested messages
3937 */
3938proto.co.treelab.api.ViewDefinition.serializeBinaryToWriter = function(message, writer) {
3939 var f = undefined;
3940 f = message.getId();
3941 if (f.length > 0) {
3942 writer.writeString(
3943 1,
3944 f
3945 );
3946 }
3947 f = message.getName();
3948 if (f.length > 0) {
3949 writer.writeString(
3950 2,
3951 f
3952 );
3953 }
3954 f = message.getType();
3955 if (f.length > 0) {
3956 writer.writeString(
3957 3,
3958 f
3959 );
3960 }
3961};
3962
3963
3964/**
3965 * optional string id = 1;
3966 * @return {string}
3967 */
3968proto.co.treelab.api.ViewDefinition.prototype.getId = function() {
3969 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3970};
3971
3972
3973/** @param {string} value */
3974proto.co.treelab.api.ViewDefinition.prototype.setId = function(value) {
3975 jspb.Message.setProto3StringField(this, 1, value);
3976};
3977
3978
3979/**
3980 * optional string name = 2;
3981 * @return {string}
3982 */
3983proto.co.treelab.api.ViewDefinition.prototype.getName = function() {
3984 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3985};
3986
3987
3988/** @param {string} value */
3989proto.co.treelab.api.ViewDefinition.prototype.setName = function(value) {
3990 jspb.Message.setProto3StringField(this, 2, value);
3991};
3992
3993
3994/**
3995 * optional string type = 3;
3996 * @return {string}
3997 */
3998proto.co.treelab.api.ViewDefinition.prototype.getType = function() {
3999 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4000};
4001
4002
4003/** @param {string} value */
4004proto.co.treelab.api.ViewDefinition.prototype.setType = function(value) {
4005 jspb.Message.setProto3StringField(this, 3, value);
4006};
4007
4008
4009
4010/**
4011 * Generated by JsPbCodeGenerator.
4012 * @param {Array=} opt_data Optional initial data array, typically from a
4013 * server response, or constructed directly in Javascript. The array is used
4014 * in place and becomes part of the constructed object. It is not cloned.
4015 * If no data is provided, the constructed object will be empty, but still
4016 * valid.
4017 * @extends {jspb.Message}
4018 * @constructor
4019 */
4020proto.co.treelab.api.EventMetadata = function(opt_data) {
4021 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4022};
4023goog.inherits(proto.co.treelab.api.EventMetadata, jspb.Message);
4024if (goog.DEBUG && !COMPILED) {
4025 proto.co.treelab.api.EventMetadata.displayName = 'proto.co.treelab.api.EventMetadata';
4026}
4027
4028
4029if (jspb.Message.GENERATE_TO_OBJECT) {
4030/**
4031 * Creates an object representation of this proto suitable for use in Soy templates.
4032 * Field names that are reserved in JavaScript and will be renamed to pb_name.
4033 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4034 * For the list of reserved names please see:
4035 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4036 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4037 * for transitional soy proto support: http://goto/soy-param-migration
4038 * @return {!Object}
4039 */
4040proto.co.treelab.api.EventMetadata.prototype.toObject = function(opt_includeInstance) {
4041 return proto.co.treelab.api.EventMetadata.toObject(opt_includeInstance, this);
4042};
4043
4044
4045/**
4046 * Static version of the {@see toObject} method.
4047 * @param {boolean|undefined} includeInstance Whether to include the JSPB
4048 * instance for transitional soy proto support:
4049 * http://goto/soy-param-migration
4050 * @param {!proto.co.treelab.api.EventMetadata} msg The msg instance to transform.
4051 * @return {!Object}
4052 * @suppress {unusedLocalVariables} f is only used for nested messages
4053 */
4054proto.co.treelab.api.EventMetadata.toObject = function(includeInstance, msg) {
4055 var f, obj = {
4056 source: jspb.Message.getFieldWithDefault(msg, 1, "")
4057 };
4058
4059 if (includeInstance) {
4060 obj.$jspbMessageInstance = msg;
4061 }
4062 return obj;
4063};
4064}
4065
4066
4067/**
4068 * Deserializes binary data (in protobuf wire format).
4069 * @param {jspb.ByteSource} bytes The bytes to deserialize.
4070 * @return {!proto.co.treelab.api.EventMetadata}
4071 */
4072proto.co.treelab.api.EventMetadata.deserializeBinary = function(bytes) {
4073 var reader = new jspb.BinaryReader(bytes);
4074 var msg = new proto.co.treelab.api.EventMetadata;
4075 return proto.co.treelab.api.EventMetadata.deserializeBinaryFromReader(msg, reader);
4076};
4077
4078
4079/**
4080 * Deserializes binary data (in protobuf wire format) from the
4081 * given reader into the given message object.
4082 * @param {!proto.co.treelab.api.EventMetadata} msg The message object to deserialize into.
4083 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4084 * @return {!proto.co.treelab.api.EventMetadata}
4085 */
4086proto.co.treelab.api.EventMetadata.deserializeBinaryFromReader = function(msg, reader) {
4087 while (reader.nextField()) {
4088 if (reader.isEndGroup()) {
4089 break;
4090 }
4091 var field = reader.getFieldNumber();
4092 switch (field) {
4093 case 1:
4094 var value = /** @type {string} */ (reader.readString());
4095 msg.setSource(value);
4096 break;
4097 default:
4098 reader.skipField();
4099 break;
4100 }
4101 }
4102 return msg;
4103};
4104
4105
4106/**
4107 * Serializes the message to binary data (in protobuf wire format).
4108 * @return {!Uint8Array}
4109 */
4110proto.co.treelab.api.EventMetadata.prototype.serializeBinary = function() {
4111 var writer = new jspb.BinaryWriter();
4112 proto.co.treelab.api.EventMetadata.serializeBinaryToWriter(this, writer);
4113 return writer.getResultBuffer();
4114};
4115
4116
4117/**
4118 * Serializes the given message to binary data (in protobuf wire
4119 * format), writing to the given BinaryWriter.
4120 * @param {!proto.co.treelab.api.EventMetadata} message
4121 * @param {!jspb.BinaryWriter} writer
4122 * @suppress {unusedLocalVariables} f is only used for nested messages
4123 */
4124proto.co.treelab.api.EventMetadata.serializeBinaryToWriter = function(message, writer) {
4125 var f = undefined;
4126 f = message.getSource();
4127 if (f.length > 0) {
4128 writer.writeString(
4129 1,
4130 f
4131 );
4132 }
4133};
4134
4135
4136/**
4137 * optional string source = 1;
4138 * @return {string}
4139 */
4140proto.co.treelab.api.EventMetadata.prototype.getSource = function() {
4141 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4142};
4143
4144
4145/** @param {string} value */
4146proto.co.treelab.api.EventMetadata.prototype.setSource = function(value) {
4147 jspb.Message.setProto3StringField(this, 1, value);
4148};
4149
4150
4151
4152/**
4153 * Generated by JsPbCodeGenerator.
4154 * @param {Array=} opt_data Optional initial data array, typically from a
4155 * server response, or constructed directly in Javascript. The array is used
4156 * in place and becomes part of the constructed object. It is not cloned.
4157 * If no data is provided, the constructed object will be empty, but still
4158 * valid.
4159 * @extends {jspb.Message}
4160 * @constructor
4161 */
4162proto.co.treelab.api.EventPayload = function(opt_data) {
4163 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4164};
4165goog.inherits(proto.co.treelab.api.EventPayload, jspb.Message);
4166if (goog.DEBUG && !COMPILED) {
4167 proto.co.treelab.api.EventPayload.displayName = 'proto.co.treelab.api.EventPayload';
4168}
4169
4170
4171if (jspb.Message.GENERATE_TO_OBJECT) {
4172/**
4173 * Creates an object representation of this proto suitable for use in Soy templates.
4174 * Field names that are reserved in JavaScript and will be renamed to pb_name.
4175 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4176 * For the list of reserved names please see:
4177 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4178 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4179 * for transitional soy proto support: http://goto/soy-param-migration
4180 * @return {!Object}
4181 */
4182proto.co.treelab.api.EventPayload.prototype.toObject = function(opt_includeInstance) {
4183 return proto.co.treelab.api.EventPayload.toObject(opt_includeInstance, this);
4184};
4185
4186
4187/**
4188 * Static version of the {@see toObject} method.
4189 * @param {boolean|undefined} includeInstance Whether to include the JSPB
4190 * instance for transitional soy proto support:
4191 * http://goto/soy-param-migration
4192 * @param {!proto.co.treelab.api.EventPayload} msg The msg instance to transform.
4193 * @return {!Object}
4194 * @suppress {unusedLocalVariables} f is only used for nested messages
4195 */
4196proto.co.treelab.api.EventPayload.toObject = function(includeInstance, msg) {
4197 var f, obj = {
4198 eventname: jspb.Message.getFieldWithDefault(msg, 1, ""),
4199 workspaceid: jspb.Message.getFieldWithDefault(msg, 2, ""),
4200 coreid: jspb.Message.getFieldWithDefault(msg, 3, ""),
4201 tableid: jspb.Message.getFieldWithDefault(msg, 4, ""),
4202 columnid: jspb.Message.getFieldWithDefault(msg, 5, ""),
4203 rowid: jspb.Message.getFieldWithDefault(msg, 6, ""),
4204 corename: jspb.Message.getFieldWithDefault(msg, 7, ""),
4205 color: jspb.Message.getFieldWithDefault(msg, 8, ""),
4206 icon: jspb.Message.getFieldWithDefault(msg, 9, ""),
4207 tablename: jspb.Message.getFieldWithDefault(msg, 10, ""),
4208 columnconfig: (f = msg.getColumnconfig()) && proto.co.treelab.api.ColumnConfig.toObject(includeInstance, f),
4209 view: (f = msg.getView()) && proto.co.treelab.api.ViewDefinition.toObject(includeInstance, f),
4210 action: (f = msg.getAction()) && proto.co.treelab.api.UpdateCellActionInput.toObject(includeInstance, f),
4211 metadata: (f = msg.getMetadata()) && proto.co.treelab.api.EventMetadata.toObject(includeInstance, f)
4212 };
4213
4214 if (includeInstance) {
4215 obj.$jspbMessageInstance = msg;
4216 }
4217 return obj;
4218};
4219}
4220
4221
4222/**
4223 * Deserializes binary data (in protobuf wire format).
4224 * @param {jspb.ByteSource} bytes The bytes to deserialize.
4225 * @return {!proto.co.treelab.api.EventPayload}
4226 */
4227proto.co.treelab.api.EventPayload.deserializeBinary = function(bytes) {
4228 var reader = new jspb.BinaryReader(bytes);
4229 var msg = new proto.co.treelab.api.EventPayload;
4230 return proto.co.treelab.api.EventPayload.deserializeBinaryFromReader(msg, reader);
4231};
4232
4233
4234/**
4235 * Deserializes binary data (in protobuf wire format) from the
4236 * given reader into the given message object.
4237 * @param {!proto.co.treelab.api.EventPayload} msg The message object to deserialize into.
4238 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4239 * @return {!proto.co.treelab.api.EventPayload}
4240 */
4241proto.co.treelab.api.EventPayload.deserializeBinaryFromReader = function(msg, reader) {
4242 while (reader.nextField()) {
4243 if (reader.isEndGroup()) {
4244 break;
4245 }
4246 var field = reader.getFieldNumber();
4247 switch (field) {
4248 case 1:
4249 var value = /** @type {string} */ (reader.readString());
4250 msg.setEventname(value);
4251 break;
4252 case 2:
4253 var value = /** @type {string} */ (reader.readString());
4254 msg.setWorkspaceid(value);
4255 break;
4256 case 3:
4257 var value = /** @type {string} */ (reader.readString());
4258 msg.setCoreid(value);
4259 break;
4260 case 4:
4261 var value = /** @type {string} */ (reader.readString());
4262 msg.setTableid(value);
4263 break;
4264 case 5:
4265 var value = /** @type {string} */ (reader.readString());
4266 msg.setColumnid(value);
4267 break;
4268 case 6:
4269 var value = /** @type {string} */ (reader.readString());
4270 msg.setRowid(value);
4271 break;
4272 case 7:
4273 var value = /** @type {string} */ (reader.readString());
4274 msg.setCorename(value);
4275 break;
4276 case 8:
4277 var value = /** @type {string} */ (reader.readString());
4278 msg.setColor(value);
4279 break;
4280 case 9:
4281 var value = /** @type {string} */ (reader.readString());
4282 msg.setIcon(value);
4283 break;
4284 case 10:
4285 var value = /** @type {string} */ (reader.readString());
4286 msg.setTablename(value);
4287 break;
4288 case 11:
4289 var value = new proto.co.treelab.api.ColumnConfig;
4290 reader.readMessage(value,proto.co.treelab.api.ColumnConfig.deserializeBinaryFromReader);
4291 msg.setColumnconfig(value);
4292 break;
4293 case 12:
4294 var value = new proto.co.treelab.api.ViewDefinition;
4295 reader.readMessage(value,proto.co.treelab.api.ViewDefinition.deserializeBinaryFromReader);
4296 msg.setView(value);
4297 break;
4298 case 13:
4299 var value = new proto.co.treelab.api.UpdateCellActionInput;
4300 reader.readMessage(value,proto.co.treelab.api.UpdateCellActionInput.deserializeBinaryFromReader);
4301 msg.setAction(value);
4302 break;
4303 case 14:
4304 var value = new proto.co.treelab.api.EventMetadata;
4305 reader.readMessage(value,proto.co.treelab.api.EventMetadata.deserializeBinaryFromReader);
4306 msg.setMetadata(value);
4307 break;
4308 default:
4309 reader.skipField();
4310 break;
4311 }
4312 }
4313 return msg;
4314};
4315
4316
4317/**
4318 * Serializes the message to binary data (in protobuf wire format).
4319 * @return {!Uint8Array}
4320 */
4321proto.co.treelab.api.EventPayload.prototype.serializeBinary = function() {
4322 var writer = new jspb.BinaryWriter();
4323 proto.co.treelab.api.EventPayload.serializeBinaryToWriter(this, writer);
4324 return writer.getResultBuffer();
4325};
4326
4327
4328/**
4329 * Serializes the given message to binary data (in protobuf wire
4330 * format), writing to the given BinaryWriter.
4331 * @param {!proto.co.treelab.api.EventPayload} message
4332 * @param {!jspb.BinaryWriter} writer
4333 * @suppress {unusedLocalVariables} f is only used for nested messages
4334 */
4335proto.co.treelab.api.EventPayload.serializeBinaryToWriter = function(message, writer) {
4336 var f = undefined;
4337 f = message.getEventname();
4338 if (f.length > 0) {
4339 writer.writeString(
4340 1,
4341 f
4342 );
4343 }
4344 f = message.getWorkspaceid();
4345 if (f.length > 0) {
4346 writer.writeString(
4347 2,
4348 f
4349 );
4350 }
4351 f = message.getCoreid();
4352 if (f.length > 0) {
4353 writer.writeString(
4354 3,
4355 f
4356 );
4357 }
4358 f = message.getTableid();
4359 if (f.length > 0) {
4360 writer.writeString(
4361 4,
4362 f
4363 );
4364 }
4365 f = message.getColumnid();
4366 if (f.length > 0) {
4367 writer.writeString(
4368 5,
4369 f
4370 );
4371 }
4372 f = message.getRowid();
4373 if (f.length > 0) {
4374 writer.writeString(
4375 6,
4376 f
4377 );
4378 }
4379 f = message.getCorename();
4380 if (f.length > 0) {
4381 writer.writeString(
4382 7,
4383 f
4384 );
4385 }
4386 f = message.getColor();
4387 if (f.length > 0) {
4388 writer.writeString(
4389 8,
4390 f
4391 );
4392 }
4393 f = message.getIcon();
4394 if (f.length > 0) {
4395 writer.writeString(
4396 9,
4397 f
4398 );
4399 }
4400 f = message.getTablename();
4401 if (f.length > 0) {
4402 writer.writeString(
4403 10,
4404 f
4405 );
4406 }
4407 f = message.getColumnconfig();
4408 if (f != null) {
4409 writer.writeMessage(
4410 11,
4411 f,
4412 proto.co.treelab.api.ColumnConfig.serializeBinaryToWriter
4413 );
4414 }
4415 f = message.getView();
4416 if (f != null) {
4417 writer.writeMessage(
4418 12,
4419 f,
4420 proto.co.treelab.api.ViewDefinition.serializeBinaryToWriter
4421 );
4422 }
4423 f = message.getAction();
4424 if (f != null) {
4425 writer.writeMessage(
4426 13,
4427 f,
4428 proto.co.treelab.api.UpdateCellActionInput.serializeBinaryToWriter
4429 );
4430 }
4431 f = message.getMetadata();
4432 if (f != null) {
4433 writer.writeMessage(
4434 14,
4435 f,
4436 proto.co.treelab.api.EventMetadata.serializeBinaryToWriter
4437 );
4438 }
4439};
4440
4441
4442/**
4443 * optional string eventName = 1;
4444 * @return {string}
4445 */
4446proto.co.treelab.api.EventPayload.prototype.getEventname = function() {
4447 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4448};
4449
4450
4451/** @param {string} value */
4452proto.co.treelab.api.EventPayload.prototype.setEventname = function(value) {
4453 jspb.Message.setProto3StringField(this, 1, value);
4454};
4455
4456
4457/**
4458 * optional string workspaceId = 2;
4459 * @return {string}
4460 */
4461proto.co.treelab.api.EventPayload.prototype.getWorkspaceid = function() {
4462 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4463};
4464
4465
4466/** @param {string} value */
4467proto.co.treelab.api.EventPayload.prototype.setWorkspaceid = function(value) {
4468 jspb.Message.setProto3StringField(this, 2, value);
4469};
4470
4471
4472/**
4473 * optional string coreId = 3;
4474 * @return {string}
4475 */
4476proto.co.treelab.api.EventPayload.prototype.getCoreid = function() {
4477 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4478};
4479
4480
4481/** @param {string} value */
4482proto.co.treelab.api.EventPayload.prototype.setCoreid = function(value) {
4483 jspb.Message.setProto3StringField(this, 3, value);
4484};
4485
4486
4487/**
4488 * optional string tableId = 4;
4489 * @return {string}
4490 */
4491proto.co.treelab.api.EventPayload.prototype.getTableid = function() {
4492 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4493};
4494
4495
4496/** @param {string} value */
4497proto.co.treelab.api.EventPayload.prototype.setTableid = function(value) {
4498 jspb.Message.setProto3StringField(this, 4, value);
4499};
4500
4501
4502/**
4503 * optional string columnId = 5;
4504 * @return {string}
4505 */
4506proto.co.treelab.api.EventPayload.prototype.getColumnid = function() {
4507 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
4508};
4509
4510
4511/** @param {string} value */
4512proto.co.treelab.api.EventPayload.prototype.setColumnid = function(value) {
4513 jspb.Message.setProto3StringField(this, 5, value);
4514};
4515
4516
4517/**
4518 * optional string rowId = 6;
4519 * @return {string}
4520 */
4521proto.co.treelab.api.EventPayload.prototype.getRowid = function() {
4522 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
4523};
4524
4525
4526/** @param {string} value */
4527proto.co.treelab.api.EventPayload.prototype.setRowid = function(value) {
4528 jspb.Message.setProto3StringField(this, 6, value);
4529};
4530
4531
4532/**
4533 * optional string coreName = 7;
4534 * @return {string}
4535 */
4536proto.co.treelab.api.EventPayload.prototype.getCorename = function() {
4537 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
4538};
4539
4540
4541/** @param {string} value */
4542proto.co.treelab.api.EventPayload.prototype.setCorename = function(value) {
4543 jspb.Message.setProto3StringField(this, 7, value);
4544};
4545
4546
4547/**
4548 * optional string color = 8;
4549 * @return {string}
4550 */
4551proto.co.treelab.api.EventPayload.prototype.getColor = function() {
4552 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
4553};
4554
4555
4556/** @param {string} value */
4557proto.co.treelab.api.EventPayload.prototype.setColor = function(value) {
4558 jspb.Message.setProto3StringField(this, 8, value);
4559};
4560
4561
4562/**
4563 * optional string icon = 9;
4564 * @return {string}
4565 */
4566proto.co.treelab.api.EventPayload.prototype.getIcon = function() {
4567 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
4568};
4569
4570
4571/** @param {string} value */
4572proto.co.treelab.api.EventPayload.prototype.setIcon = function(value) {
4573 jspb.Message.setProto3StringField(this, 9, value);
4574};
4575
4576
4577/**
4578 * optional string tableName = 10;
4579 * @return {string}
4580 */
4581proto.co.treelab.api.EventPayload.prototype.getTablename = function() {
4582 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
4583};
4584
4585
4586/** @param {string} value */
4587proto.co.treelab.api.EventPayload.prototype.setTablename = function(value) {
4588 jspb.Message.setProto3StringField(this, 10, value);
4589};
4590
4591
4592/**
4593 * optional ColumnConfig columnConfig = 11;
4594 * @return {?proto.co.treelab.api.ColumnConfig}
4595 */
4596proto.co.treelab.api.EventPayload.prototype.getColumnconfig = function() {
4597 return /** @type{?proto.co.treelab.api.ColumnConfig} */ (
4598 jspb.Message.getWrapperField(this, proto.co.treelab.api.ColumnConfig, 11));
4599};
4600
4601
4602/** @param {?proto.co.treelab.api.ColumnConfig|undefined} value */
4603proto.co.treelab.api.EventPayload.prototype.setColumnconfig = function(value) {
4604 jspb.Message.setWrapperField(this, 11, value);
4605};
4606
4607
4608proto.co.treelab.api.EventPayload.prototype.clearColumnconfig = function() {
4609 this.setColumnconfig(undefined);
4610};
4611
4612
4613/**
4614 * Returns whether this field is set.
4615 * @return {boolean}
4616 */
4617proto.co.treelab.api.EventPayload.prototype.hasColumnconfig = function() {
4618 return jspb.Message.getField(this, 11) != null;
4619};
4620
4621
4622/**
4623 * optional ViewDefinition view = 12;
4624 * @return {?proto.co.treelab.api.ViewDefinition}
4625 */
4626proto.co.treelab.api.EventPayload.prototype.getView = function() {
4627 return /** @type{?proto.co.treelab.api.ViewDefinition} */ (
4628 jspb.Message.getWrapperField(this, proto.co.treelab.api.ViewDefinition, 12));
4629};
4630
4631
4632/** @param {?proto.co.treelab.api.ViewDefinition|undefined} value */
4633proto.co.treelab.api.EventPayload.prototype.setView = function(value) {
4634 jspb.Message.setWrapperField(this, 12, value);
4635};
4636
4637
4638proto.co.treelab.api.EventPayload.prototype.clearView = function() {
4639 this.setView(undefined);
4640};
4641
4642
4643/**
4644 * Returns whether this field is set.
4645 * @return {boolean}
4646 */
4647proto.co.treelab.api.EventPayload.prototype.hasView = function() {
4648 return jspb.Message.getField(this, 12) != null;
4649};
4650
4651
4652/**
4653 * optional UpdateCellActionInput action = 13;
4654 * @return {?proto.co.treelab.api.UpdateCellActionInput}
4655 */
4656proto.co.treelab.api.EventPayload.prototype.getAction = function() {
4657 return /** @type{?proto.co.treelab.api.UpdateCellActionInput} */ (
4658 jspb.Message.getWrapperField(this, proto.co.treelab.api.UpdateCellActionInput, 13));
4659};
4660
4661
4662/** @param {?proto.co.treelab.api.UpdateCellActionInput|undefined} value */
4663proto.co.treelab.api.EventPayload.prototype.setAction = function(value) {
4664 jspb.Message.setWrapperField(this, 13, value);
4665};
4666
4667
4668proto.co.treelab.api.EventPayload.prototype.clearAction = function() {
4669 this.setAction(undefined);
4670};
4671
4672
4673/**
4674 * Returns whether this field is set.
4675 * @return {boolean}
4676 */
4677proto.co.treelab.api.EventPayload.prototype.hasAction = function() {
4678 return jspb.Message.getField(this, 13) != null;
4679};
4680
4681
4682/**
4683 * optional EventMetadata _metadata = 14;
4684 * @return {?proto.co.treelab.api.EventMetadata}
4685 */
4686proto.co.treelab.api.EventPayload.prototype.getMetadata = function() {
4687 return /** @type{?proto.co.treelab.api.EventMetadata} */ (
4688 jspb.Message.getWrapperField(this, proto.co.treelab.api.EventMetadata, 14));
4689};
4690
4691
4692/** @param {?proto.co.treelab.api.EventMetadata|undefined} value */
4693proto.co.treelab.api.EventPayload.prototype.setMetadata = function(value) {
4694 jspb.Message.setWrapperField(this, 14, value);
4695};
4696
4697
4698proto.co.treelab.api.EventPayload.prototype.clearMetadata = function() {
4699 this.setMetadata(undefined);
4700};
4701
4702
4703/**
4704 * Returns whether this field is set.
4705 * @return {boolean}
4706 */
4707proto.co.treelab.api.EventPayload.prototype.hasMetadata = function() {
4708 return jspb.Message.getField(this, 14) != null;
4709};
4710
4711
4712
4713/**
4714 * Generated by JsPbCodeGenerator.
4715 * @param {Array=} opt_data Optional initial data array, typically from a
4716 * server response, or constructed directly in Javascript. The array is used
4717 * in place and becomes part of the constructed object. It is not cloned.
4718 * If no data is provided, the constructed object will be empty, but still
4719 * valid.
4720 * @extends {jspb.Message}
4721 * @constructor
4722 */
4723proto.co.treelab.api.WorkspaceSubscriptionInput = function(opt_data) {
4724 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4725};
4726goog.inherits(proto.co.treelab.api.WorkspaceSubscriptionInput, jspb.Message);
4727if (goog.DEBUG && !COMPILED) {
4728 proto.co.treelab.api.WorkspaceSubscriptionInput.displayName = 'proto.co.treelab.api.WorkspaceSubscriptionInput';
4729}
4730
4731
4732if (jspb.Message.GENERATE_TO_OBJECT) {
4733/**
4734 * Creates an object representation of this proto suitable for use in Soy templates.
4735 * Field names that are reserved in JavaScript and will be renamed to pb_name.
4736 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4737 * For the list of reserved names please see:
4738 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4739 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4740 * for transitional soy proto support: http://goto/soy-param-migration
4741 * @return {!Object}
4742 */
4743proto.co.treelab.api.WorkspaceSubscriptionInput.prototype.toObject = function(opt_includeInstance) {
4744 return proto.co.treelab.api.WorkspaceSubscriptionInput.toObject(opt_includeInstance, this);
4745};
4746
4747
4748/**
4749 * Static version of the {@see toObject} method.
4750 * @param {boolean|undefined} includeInstance Whether to include the JSPB
4751 * instance for transitional soy proto support:
4752 * http://goto/soy-param-migration
4753 * @param {!proto.co.treelab.api.WorkspaceSubscriptionInput} msg The msg instance to transform.
4754 * @return {!Object}
4755 * @suppress {unusedLocalVariables} f is only used for nested messages
4756 */
4757proto.co.treelab.api.WorkspaceSubscriptionInput.toObject = function(includeInstance, msg) {
4758 var f, obj = {
4759 workspaceid: jspb.Message.getFieldWithDefault(msg, 1, ""),
4760 topic: jspb.Message.getFieldWithDefault(msg, 2, "")
4761 };
4762
4763 if (includeInstance) {
4764 obj.$jspbMessageInstance = msg;
4765 }
4766 return obj;
4767};
4768}
4769
4770
4771/**
4772 * Deserializes binary data (in protobuf wire format).
4773 * @param {jspb.ByteSource} bytes The bytes to deserialize.
4774 * @return {!proto.co.treelab.api.WorkspaceSubscriptionInput}
4775 */
4776proto.co.treelab.api.WorkspaceSubscriptionInput.deserializeBinary = function(bytes) {
4777 var reader = new jspb.BinaryReader(bytes);
4778 var msg = new proto.co.treelab.api.WorkspaceSubscriptionInput;
4779 return proto.co.treelab.api.WorkspaceSubscriptionInput.deserializeBinaryFromReader(msg, reader);
4780};
4781
4782
4783/**
4784 * Deserializes binary data (in protobuf wire format) from the
4785 * given reader into the given message object.
4786 * @param {!proto.co.treelab.api.WorkspaceSubscriptionInput} msg The message object to deserialize into.
4787 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4788 * @return {!proto.co.treelab.api.WorkspaceSubscriptionInput}
4789 */
4790proto.co.treelab.api.WorkspaceSubscriptionInput.deserializeBinaryFromReader = function(msg, reader) {
4791 while (reader.nextField()) {
4792 if (reader.isEndGroup()) {
4793 break;
4794 }
4795 var field = reader.getFieldNumber();
4796 switch (field) {
4797 case 1:
4798 var value = /** @type {string} */ (reader.readString());
4799 msg.setWorkspaceid(value);
4800 break;
4801 case 2:
4802 var value = /** @type {string} */ (reader.readString());
4803 msg.setTopic(value);
4804 break;
4805 default:
4806 reader.skipField();
4807 break;
4808 }
4809 }
4810 return msg;
4811};
4812
4813
4814/**
4815 * Serializes the message to binary data (in protobuf wire format).
4816 * @return {!Uint8Array}
4817 */
4818proto.co.treelab.api.WorkspaceSubscriptionInput.prototype.serializeBinary = function() {
4819 var writer = new jspb.BinaryWriter();
4820 proto.co.treelab.api.WorkspaceSubscriptionInput.serializeBinaryToWriter(this, writer);
4821 return writer.getResultBuffer();
4822};
4823
4824
4825/**
4826 * Serializes the given message to binary data (in protobuf wire
4827 * format), writing to the given BinaryWriter.
4828 * @param {!proto.co.treelab.api.WorkspaceSubscriptionInput} message
4829 * @param {!jspb.BinaryWriter} writer
4830 * @suppress {unusedLocalVariables} f is only used for nested messages
4831 */
4832proto.co.treelab.api.WorkspaceSubscriptionInput.serializeBinaryToWriter = function(message, writer) {
4833 var f = undefined;
4834 f = message.getWorkspaceid();
4835 if (f.length > 0) {
4836 writer.writeString(
4837 1,
4838 f
4839 );
4840 }
4841 f = message.getTopic();
4842 if (f.length > 0) {
4843 writer.writeString(
4844 2,
4845 f
4846 );
4847 }
4848};
4849
4850
4851/**
4852 * optional string workspaceId = 1;
4853 * @return {string}
4854 */
4855proto.co.treelab.api.WorkspaceSubscriptionInput.prototype.getWorkspaceid = function() {
4856 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4857};
4858
4859
4860/** @param {string} value */
4861proto.co.treelab.api.WorkspaceSubscriptionInput.prototype.setWorkspaceid = function(value) {
4862 jspb.Message.setProto3StringField(this, 1, value);
4863};
4864
4865
4866/**
4867 * optional string topic = 2;
4868 * @return {string}
4869 */
4870proto.co.treelab.api.WorkspaceSubscriptionInput.prototype.getTopic = function() {
4871 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4872};
4873
4874
4875/** @param {string} value */
4876proto.co.treelab.api.WorkspaceSubscriptionInput.prototype.setTopic = function(value) {
4877 jspb.Message.setProto3StringField(this, 2, value);
4878};
4879
4880
4881
4882/**
4883 * Generated by JsPbCodeGenerator.
4884 * @param {Array=} opt_data Optional initial data array, typically from a
4885 * server response, or constructed directly in Javascript. The array is used
4886 * in place and becomes part of the constructed object. It is not cloned.
4887 * If no data is provided, the constructed object will be empty, but still
4888 * valid.
4889 * @extends {jspb.Message}
4890 * @constructor
4891 */
4892proto.co.treelab.api.ViewDefinitionInput = function(opt_data) {
4893 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4894};
4895goog.inherits(proto.co.treelab.api.ViewDefinitionInput, jspb.Message);
4896if (goog.DEBUG && !COMPILED) {
4897 proto.co.treelab.api.ViewDefinitionInput.displayName = 'proto.co.treelab.api.ViewDefinitionInput';
4898}
4899
4900
4901if (jspb.Message.GENERATE_TO_OBJECT) {
4902/**
4903 * Creates an object representation of this proto suitable for use in Soy templates.
4904 * Field names that are reserved in JavaScript and will be renamed to pb_name.
4905 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4906 * For the list of reserved names please see:
4907 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4908 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4909 * for transitional soy proto support: http://goto/soy-param-migration
4910 * @return {!Object}
4911 */
4912proto.co.treelab.api.ViewDefinitionInput.prototype.toObject = function(opt_includeInstance) {
4913 return proto.co.treelab.api.ViewDefinitionInput.toObject(opt_includeInstance, this);
4914};
4915
4916
4917/**
4918 * Static version of the {@see toObject} method.
4919 * @param {boolean|undefined} includeInstance Whether to include the JSPB
4920 * instance for transitional soy proto support:
4921 * http://goto/soy-param-migration
4922 * @param {!proto.co.treelab.api.ViewDefinitionInput} msg The msg instance to transform.
4923 * @return {!Object}
4924 * @suppress {unusedLocalVariables} f is only used for nested messages
4925 */
4926proto.co.treelab.api.ViewDefinitionInput.toObject = function(includeInstance, msg) {
4927 var f, obj = {
4928 name: jspb.Message.getFieldWithDefault(msg, 1, ""),
4929 type: jspb.Message.getFieldWithDefault(msg, 2, "")
4930 };
4931
4932 if (includeInstance) {
4933 obj.$jspbMessageInstance = msg;
4934 }
4935 return obj;
4936};
4937}
4938
4939
4940/**
4941 * Deserializes binary data (in protobuf wire format).
4942 * @param {jspb.ByteSource} bytes The bytes to deserialize.
4943 * @return {!proto.co.treelab.api.ViewDefinitionInput}
4944 */
4945proto.co.treelab.api.ViewDefinitionInput.deserializeBinary = function(bytes) {
4946 var reader = new jspb.BinaryReader(bytes);
4947 var msg = new proto.co.treelab.api.ViewDefinitionInput;
4948 return proto.co.treelab.api.ViewDefinitionInput.deserializeBinaryFromReader(msg, reader);
4949};
4950
4951
4952/**
4953 * Deserializes binary data (in protobuf wire format) from the
4954 * given reader into the given message object.
4955 * @param {!proto.co.treelab.api.ViewDefinitionInput} msg The message object to deserialize into.
4956 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4957 * @return {!proto.co.treelab.api.ViewDefinitionInput}
4958 */
4959proto.co.treelab.api.ViewDefinitionInput.deserializeBinaryFromReader = function(msg, reader) {
4960 while (reader.nextField()) {
4961 if (reader.isEndGroup()) {
4962 break;
4963 }
4964 var field = reader.getFieldNumber();
4965 switch (field) {
4966 case 1:
4967 var value = /** @type {string} */ (reader.readString());
4968 msg.setName(value);
4969 break;
4970 case 2:
4971 var value = /** @type {string} */ (reader.readString());
4972 msg.setType(value);
4973 break;
4974 default:
4975 reader.skipField();
4976 break;
4977 }
4978 }
4979 return msg;
4980};
4981
4982
4983/**
4984 * Serializes the message to binary data (in protobuf wire format).
4985 * @return {!Uint8Array}
4986 */
4987proto.co.treelab.api.ViewDefinitionInput.prototype.serializeBinary = function() {
4988 var writer = new jspb.BinaryWriter();
4989 proto.co.treelab.api.ViewDefinitionInput.serializeBinaryToWriter(this, writer);
4990 return writer.getResultBuffer();
4991};
4992
4993
4994/**
4995 * Serializes the given message to binary data (in protobuf wire
4996 * format), writing to the given BinaryWriter.
4997 * @param {!proto.co.treelab.api.ViewDefinitionInput} message
4998 * @param {!jspb.BinaryWriter} writer
4999 * @suppress {unusedLocalVariables} f is only used for nested messages
5000 */
5001proto.co.treelab.api.ViewDefinitionInput.serializeBinaryToWriter = function(message, writer) {
5002 var f = undefined;
5003 f = message.getName();
5004 if (f.length > 0) {
5005 writer.writeString(
5006 1,
5007 f
5008 );
5009 }
5010 f = message.getType();
5011 if (f.length > 0) {
5012 writer.writeString(
5013 2,
5014 f
5015 );
5016 }
5017};
5018
5019
5020/**
5021 * optional string name = 1;
5022 * @return {string}
5023 */
5024proto.co.treelab.api.ViewDefinitionInput.prototype.getName = function() {
5025 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5026};
5027
5028
5029/** @param {string} value */
5030proto.co.treelab.api.ViewDefinitionInput.prototype.setName = function(value) {
5031 jspb.Message.setProto3StringField(this, 1, value);
5032};
5033
5034
5035/**
5036 * optional string type = 2;
5037 * @return {string}
5038 */
5039proto.co.treelab.api.ViewDefinitionInput.prototype.getType = function() {
5040 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5041};
5042
5043
5044/** @param {string} value */
5045proto.co.treelab.api.ViewDefinitionInput.prototype.setType = function(value) {
5046 jspb.Message.setProto3StringField(this, 2, value);
5047};
5048
5049
5050
5051/**
5052 * Generated by JsPbCodeGenerator.
5053 * @param {Array=} opt_data Optional initial data array, typically from a
5054 * server response, or constructed directly in Javascript. The array is used
5055 * in place and becomes part of the constructed object. It is not cloned.
5056 * If no data is provided, the constructed object will be empty, but still
5057 * valid.
5058 * @extends {jspb.Message}
5059 * @constructor
5060 */
5061proto.co.treelab.api.AddViewInput = function(opt_data) {
5062 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5063};
5064goog.inherits(proto.co.treelab.api.AddViewInput, jspb.Message);
5065if (goog.DEBUG && !COMPILED) {
5066 proto.co.treelab.api.AddViewInput.displayName = 'proto.co.treelab.api.AddViewInput';
5067}
5068
5069
5070if (jspb.Message.GENERATE_TO_OBJECT) {
5071/**
5072 * Creates an object representation of this proto suitable for use in Soy templates.
5073 * Field names that are reserved in JavaScript and will be renamed to pb_name.
5074 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5075 * For the list of reserved names please see:
5076 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
5077 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
5078 * for transitional soy proto support: http://goto/soy-param-migration
5079 * @return {!Object}
5080 */
5081proto.co.treelab.api.AddViewInput.prototype.toObject = function(opt_includeInstance) {
5082 return proto.co.treelab.api.AddViewInput.toObject(opt_includeInstance, this);
5083};
5084
5085
5086/**
5087 * Static version of the {@see toObject} method.
5088 * @param {boolean|undefined} includeInstance Whether to include the JSPB
5089 * instance for transitional soy proto support:
5090 * http://goto/soy-param-migration
5091 * @param {!proto.co.treelab.api.AddViewInput} msg The msg instance to transform.
5092 * @return {!Object}
5093 * @suppress {unusedLocalVariables} f is only used for nested messages
5094 */
5095proto.co.treelab.api.AddViewInput.toObject = function(includeInstance, msg) {
5096 var f, obj = {
5097 workspaceid: jspb.Message.getFieldWithDefault(msg, 1, ""),
5098 coreid: jspb.Message.getFieldWithDefault(msg, 2, ""),
5099 tableid: jspb.Message.getFieldWithDefault(msg, 3, ""),
5100 view: (f = msg.getView()) && proto.co.treelab.api.ViewDefinitionInput.toObject(includeInstance, f)
5101 };
5102
5103 if (includeInstance) {
5104 obj.$jspbMessageInstance = msg;
5105 }
5106 return obj;
5107};
5108}
5109
5110
5111/**
5112 * Deserializes binary data (in protobuf wire format).
5113 * @param {jspb.ByteSource} bytes The bytes to deserialize.
5114 * @return {!proto.co.treelab.api.AddViewInput}
5115 */
5116proto.co.treelab.api.AddViewInput.deserializeBinary = function(bytes) {
5117 var reader = new jspb.BinaryReader(bytes);
5118 var msg = new proto.co.treelab.api.AddViewInput;
5119 return proto.co.treelab.api.AddViewInput.deserializeBinaryFromReader(msg, reader);
5120};
5121
5122
5123/**
5124 * Deserializes binary data (in protobuf wire format) from the
5125 * given reader into the given message object.
5126 * @param {!proto.co.treelab.api.AddViewInput} msg The message object to deserialize into.
5127 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5128 * @return {!proto.co.treelab.api.AddViewInput}
5129 */
5130proto.co.treelab.api.AddViewInput.deserializeBinaryFromReader = function(msg, reader) {
5131 while (reader.nextField()) {
5132 if (reader.isEndGroup()) {
5133 break;
5134 }
5135 var field = reader.getFieldNumber();
5136 switch (field) {
5137 case 1:
5138 var value = /** @type {string} */ (reader.readString());
5139 msg.setWorkspaceid(value);
5140 break;
5141 case 2:
5142 var value = /** @type {string} */ (reader.readString());
5143 msg.setCoreid(value);
5144 break;
5145 case 3:
5146 var value = /** @type {string} */ (reader.readString());
5147 msg.setTableid(value);
5148 break;
5149 case 4:
5150 var value = new proto.co.treelab.api.ViewDefinitionInput;
5151 reader.readMessage(value,proto.co.treelab.api.ViewDefinitionInput.deserializeBinaryFromReader);
5152 msg.setView(value);
5153 break;
5154 default:
5155 reader.skipField();
5156 break;
5157 }
5158 }
5159 return msg;
5160};
5161
5162
5163/**
5164 * Serializes the message to binary data (in protobuf wire format).
5165 * @return {!Uint8Array}
5166 */
5167proto.co.treelab.api.AddViewInput.prototype.serializeBinary = function() {
5168 var writer = new jspb.BinaryWriter();
5169 proto.co.treelab.api.AddViewInput.serializeBinaryToWriter(this, writer);
5170 return writer.getResultBuffer();
5171};
5172
5173
5174/**
5175 * Serializes the given message to binary data (in protobuf wire
5176 * format), writing to the given BinaryWriter.
5177 * @param {!proto.co.treelab.api.AddViewInput} message
5178 * @param {!jspb.BinaryWriter} writer
5179 * @suppress {unusedLocalVariables} f is only used for nested messages
5180 */
5181proto.co.treelab.api.AddViewInput.serializeBinaryToWriter = function(message, writer) {
5182 var f = undefined;
5183 f = message.getWorkspaceid();
5184 if (f.length > 0) {
5185 writer.writeString(
5186 1,
5187 f
5188 );
5189 }
5190 f = message.getCoreid();
5191 if (f.length > 0) {
5192 writer.writeString(
5193 2,
5194 f
5195 );
5196 }
5197 f = message.getTableid();
5198 if (f.length > 0) {
5199 writer.writeString(
5200 3,
5201 f
5202 );
5203 }
5204 f = message.getView();
5205 if (f != null) {
5206 writer.writeMessage(
5207 4,
5208 f,
5209 proto.co.treelab.api.ViewDefinitionInput.serializeBinaryToWriter
5210 );
5211 }
5212};
5213
5214
5215/**
5216 * optional string workspaceId = 1;
5217 * @return {string}
5218 */
5219proto.co.treelab.api.AddViewInput.prototype.getWorkspaceid = function() {
5220 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5221};
5222
5223
5224/** @param {string} value */
5225proto.co.treelab.api.AddViewInput.prototype.setWorkspaceid = function(value) {
5226 jspb.Message.setProto3StringField(this, 1, value);
5227};
5228
5229
5230/**
5231 * optional string coreId = 2;
5232 * @return {string}
5233 */
5234proto.co.treelab.api.AddViewInput.prototype.getCoreid = function() {
5235 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5236};
5237
5238
5239/** @param {string} value */
5240proto.co.treelab.api.AddViewInput.prototype.setCoreid = function(value) {
5241 jspb.Message.setProto3StringField(this, 2, value);
5242};
5243
5244
5245/**
5246 * optional string tableId = 3;
5247 * @return {string}
5248 */
5249proto.co.treelab.api.AddViewInput.prototype.getTableid = function() {
5250 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5251};
5252
5253
5254/** @param {string} value */
5255proto.co.treelab.api.AddViewInput.prototype.setTableid = function(value) {
5256 jspb.Message.setProto3StringField(this, 3, value);
5257};
5258
5259
5260/**
5261 * optional ViewDefinitionInput view = 4;
5262 * @return {?proto.co.treelab.api.ViewDefinitionInput}
5263 */
5264proto.co.treelab.api.AddViewInput.prototype.getView = function() {
5265 return /** @type{?proto.co.treelab.api.ViewDefinitionInput} */ (
5266 jspb.Message.getWrapperField(this, proto.co.treelab.api.ViewDefinitionInput, 4));
5267};
5268
5269
5270/** @param {?proto.co.treelab.api.ViewDefinitionInput|undefined} value */
5271proto.co.treelab.api.AddViewInput.prototype.setView = function(value) {
5272 jspb.Message.setWrapperField(this, 4, value);
5273};
5274
5275
5276proto.co.treelab.api.AddViewInput.prototype.clearView = function() {
5277 this.setView(undefined);
5278};
5279
5280
5281/**
5282 * Returns whether this field is set.
5283 * @return {boolean}
5284 */
5285proto.co.treelab.api.AddViewInput.prototype.hasView = function() {
5286 return jspb.Message.getField(this, 4) != null;
5287};
5288
5289
5290
5291/**
5292 * Generated by JsPbCodeGenerator.
5293 * @param {Array=} opt_data Optional initial data array, typically from a
5294 * server response, or constructed directly in Javascript. The array is used
5295 * in place and becomes part of the constructed object. It is not cloned.
5296 * If no data is provided, the constructed object will be empty, but still
5297 * valid.
5298 * @extends {jspb.Message}
5299 * @constructor
5300 */
5301proto.co.treelab.api.AddColumnInput = function(opt_data) {
5302 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5303};
5304goog.inherits(proto.co.treelab.api.AddColumnInput, jspb.Message);
5305if (goog.DEBUG && !COMPILED) {
5306 proto.co.treelab.api.AddColumnInput.displayName = 'proto.co.treelab.api.AddColumnInput';
5307}
5308
5309
5310if (jspb.Message.GENERATE_TO_OBJECT) {
5311/**
5312 * Creates an object representation of this proto suitable for use in Soy templates.
5313 * Field names that are reserved in JavaScript and will be renamed to pb_name.
5314 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5315 * For the list of reserved names please see:
5316 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
5317 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
5318 * for transitional soy proto support: http://goto/soy-param-migration
5319 * @return {!Object}
5320 */
5321proto.co.treelab.api.AddColumnInput.prototype.toObject = function(opt_includeInstance) {
5322 return proto.co.treelab.api.AddColumnInput.toObject(opt_includeInstance, this);
5323};
5324
5325
5326/**
5327 * Static version of the {@see toObject} method.
5328 * @param {boolean|undefined} includeInstance Whether to include the JSPB
5329 * instance for transitional soy proto support:
5330 * http://goto/soy-param-migration
5331 * @param {!proto.co.treelab.api.AddColumnInput} msg The msg instance to transform.
5332 * @return {!Object}
5333 * @suppress {unusedLocalVariables} f is only used for nested messages
5334 */
5335proto.co.treelab.api.AddColumnInput.toObject = function(includeInstance, msg) {
5336 var f, obj = {
5337 workspaceid: jspb.Message.getFieldWithDefault(msg, 1, ""),
5338 coreid: jspb.Message.getFieldWithDefault(msg, 2, ""),
5339 tableid: jspb.Message.getFieldWithDefault(msg, 3, ""),
5340 columnconfig: (f = msg.getColumnconfig()) && proto.co.treelab.api.ColumnConfigInput.toObject(includeInstance, f)
5341 };
5342
5343 if (includeInstance) {
5344 obj.$jspbMessageInstance = msg;
5345 }
5346 return obj;
5347};
5348}
5349
5350
5351/**
5352 * Deserializes binary data (in protobuf wire format).
5353 * @param {jspb.ByteSource} bytes The bytes to deserialize.
5354 * @return {!proto.co.treelab.api.AddColumnInput}
5355 */
5356proto.co.treelab.api.AddColumnInput.deserializeBinary = function(bytes) {
5357 var reader = new jspb.BinaryReader(bytes);
5358 var msg = new proto.co.treelab.api.AddColumnInput;
5359 return proto.co.treelab.api.AddColumnInput.deserializeBinaryFromReader(msg, reader);
5360};
5361
5362
5363/**
5364 * Deserializes binary data (in protobuf wire format) from the
5365 * given reader into the given message object.
5366 * @param {!proto.co.treelab.api.AddColumnInput} msg The message object to deserialize into.
5367 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5368 * @return {!proto.co.treelab.api.AddColumnInput}
5369 */
5370proto.co.treelab.api.AddColumnInput.deserializeBinaryFromReader = function(msg, reader) {
5371 while (reader.nextField()) {
5372 if (reader.isEndGroup()) {
5373 break;
5374 }
5375 var field = reader.getFieldNumber();
5376 switch (field) {
5377 case 1:
5378 var value = /** @type {string} */ (reader.readString());
5379 msg.setWorkspaceid(value);
5380 break;
5381 case 2:
5382 var value = /** @type {string} */ (reader.readString());
5383 msg.setCoreid(value);
5384 break;
5385 case 3:
5386 var value = /** @type {string} */ (reader.readString());
5387 msg.setTableid(value);
5388 break;
5389 case 4:
5390 var value = new proto.co.treelab.api.ColumnConfigInput;
5391 reader.readMessage(value,proto.co.treelab.api.ColumnConfigInput.deserializeBinaryFromReader);
5392 msg.setColumnconfig(value);
5393 break;
5394 default:
5395 reader.skipField();
5396 break;
5397 }
5398 }
5399 return msg;
5400};
5401
5402
5403/**
5404 * Serializes the message to binary data (in protobuf wire format).
5405 * @return {!Uint8Array}
5406 */
5407proto.co.treelab.api.AddColumnInput.prototype.serializeBinary = function() {
5408 var writer = new jspb.BinaryWriter();
5409 proto.co.treelab.api.AddColumnInput.serializeBinaryToWriter(this, writer);
5410 return writer.getResultBuffer();
5411};
5412
5413
5414/**
5415 * Serializes the given message to binary data (in protobuf wire
5416 * format), writing to the given BinaryWriter.
5417 * @param {!proto.co.treelab.api.AddColumnInput} message
5418 * @param {!jspb.BinaryWriter} writer
5419 * @suppress {unusedLocalVariables} f is only used for nested messages
5420 */
5421proto.co.treelab.api.AddColumnInput.serializeBinaryToWriter = function(message, writer) {
5422 var f = undefined;
5423 f = message.getWorkspaceid();
5424 if (f.length > 0) {
5425 writer.writeString(
5426 1,
5427 f
5428 );
5429 }
5430 f = message.getCoreid();
5431 if (f.length > 0) {
5432 writer.writeString(
5433 2,
5434 f
5435 );
5436 }
5437 f = message.getTableid();
5438 if (f.length > 0) {
5439 writer.writeString(
5440 3,
5441 f
5442 );
5443 }
5444 f = message.getColumnconfig();
5445 if (f != null) {
5446 writer.writeMessage(
5447 4,
5448 f,
5449 proto.co.treelab.api.ColumnConfigInput.serializeBinaryToWriter
5450 );
5451 }
5452};
5453
5454
5455/**
5456 * optional string workspaceId = 1;
5457 * @return {string}
5458 */
5459proto.co.treelab.api.AddColumnInput.prototype.getWorkspaceid = function() {
5460 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5461};
5462
5463
5464/** @param {string} value */
5465proto.co.treelab.api.AddColumnInput.prototype.setWorkspaceid = function(value) {
5466 jspb.Message.setProto3StringField(this, 1, value);
5467};
5468
5469
5470/**
5471 * optional string coreId = 2;
5472 * @return {string}
5473 */
5474proto.co.treelab.api.AddColumnInput.prototype.getCoreid = function() {
5475 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5476};
5477
5478
5479/** @param {string} value */
5480proto.co.treelab.api.AddColumnInput.prototype.setCoreid = function(value) {
5481 jspb.Message.setProto3StringField(this, 2, value);
5482};
5483
5484
5485/**
5486 * optional string tableId = 3;
5487 * @return {string}
5488 */
5489proto.co.treelab.api.AddColumnInput.prototype.getTableid = function() {
5490 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5491};
5492
5493
5494/** @param {string} value */
5495proto.co.treelab.api.AddColumnInput.prototype.setTableid = function(value) {
5496 jspb.Message.setProto3StringField(this, 3, value);
5497};
5498
5499
5500/**
5501 * optional ColumnConfigInput columnConfig = 4;
5502 * @return {?proto.co.treelab.api.ColumnConfigInput}
5503 */
5504proto.co.treelab.api.AddColumnInput.prototype.getColumnconfig = function() {
5505 return /** @type{?proto.co.treelab.api.ColumnConfigInput} */ (
5506 jspb.Message.getWrapperField(this, proto.co.treelab.api.ColumnConfigInput, 4));
5507};
5508
5509
5510/** @param {?proto.co.treelab.api.ColumnConfigInput|undefined} value */
5511proto.co.treelab.api.AddColumnInput.prototype.setColumnconfig = function(value) {
5512 jspb.Message.setWrapperField(this, 4, value);
5513};
5514
5515
5516proto.co.treelab.api.AddColumnInput.prototype.clearColumnconfig = function() {
5517 this.setColumnconfig(undefined);
5518};
5519
5520
5521/**
5522 * Returns whether this field is set.
5523 * @return {boolean}
5524 */
5525proto.co.treelab.api.AddColumnInput.prototype.hasColumnconfig = function() {
5526 return jspb.Message.getField(this, 4) != null;
5527};
5528
5529
5530
5531/**
5532 * Generated by JsPbCodeGenerator.
5533 * @param {Array=} opt_data Optional initial data array, typically from a
5534 * server response, or constructed directly in Javascript. The array is used
5535 * in place and becomes part of the constructed object. It is not cloned.
5536 * If no data is provided, the constructed object will be empty, but still
5537 * valid.
5538 * @extends {jspb.Message}
5539 * @constructor
5540 */
5541proto.co.treelab.api.ColumnConfigInput = function(opt_data) {
5542 jspb.Message.initialize(this, opt_data, 0, -1, proto.co.treelab.api.ColumnConfigInput.repeatedFields_, null);
5543};
5544goog.inherits(proto.co.treelab.api.ColumnConfigInput, jspb.Message);
5545if (goog.DEBUG && !COMPILED) {
5546 proto.co.treelab.api.ColumnConfigInput.displayName = 'proto.co.treelab.api.ColumnConfigInput';
5547}
5548/**
5549 * List of repeated fields within this message type.
5550 * @private {!Array<number>}
5551 * @const
5552 */
5553proto.co.treelab.api.ColumnConfigInput.repeatedFields_ = [9];
5554
5555
5556
5557if (jspb.Message.GENERATE_TO_OBJECT) {
5558/**
5559 * Creates an object representation of this proto suitable for use in Soy templates.
5560 * Field names that are reserved in JavaScript and will be renamed to pb_name.
5561 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5562 * For the list of reserved names please see:
5563 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
5564 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
5565 * for transitional soy proto support: http://goto/soy-param-migration
5566 * @return {!Object}
5567 */
5568proto.co.treelab.api.ColumnConfigInput.prototype.toObject = function(opt_includeInstance) {
5569 return proto.co.treelab.api.ColumnConfigInput.toObject(opt_includeInstance, this);
5570};
5571
5572
5573/**
5574 * Static version of the {@see toObject} method.
5575 * @param {boolean|undefined} includeInstance Whether to include the JSPB
5576 * instance for transitional soy proto support:
5577 * http://goto/soy-param-migration
5578 * @param {!proto.co.treelab.api.ColumnConfigInput} msg The msg instance to transform.
5579 * @return {!Object}
5580 * @suppress {unusedLocalVariables} f is only used for nested messages
5581 */
5582proto.co.treelab.api.ColumnConfigInput.toObject = function(includeInstance, msg) {
5583 var f, obj = {
5584 type: jspb.Message.getFieldWithDefault(msg, 1, ""),
5585 name: jspb.Message.getFieldWithDefault(msg, 2, ""),
5586 order: jspb.Message.getFieldWithDefault(msg, 3, 0),
5587 foreigntableid: jspb.Message.getFieldWithDefault(msg, 4, ""),
5588 defaultnumber: +jspb.Message.getFieldWithDefault(msg, 5, 0.0),
5589 precision: jspb.Message.getFieldWithDefault(msg, 6, 0),
5590 choicesList: jspb.Message.toObjectList(msg.getChoicesList(),
5591 proto.co.treelab.api.Choice.toObject, includeInstance),
5592 dateformat: jspb.Message.getFieldWithDefault(msg, 10, ""),
5593 includetime: jspb.Message.getFieldWithDefault(msg, 11, false),
5594 timeformat: jspb.Message.getFieldWithDefault(msg, 12, ""),
5595 usegmt: jspb.Message.getFieldWithDefault(msg, 13, false)
5596 };
5597
5598 if (includeInstance) {
5599 obj.$jspbMessageInstance = msg;
5600 }
5601 return obj;
5602};
5603}
5604
5605
5606/**
5607 * Deserializes binary data (in protobuf wire format).
5608 * @param {jspb.ByteSource} bytes The bytes to deserialize.
5609 * @return {!proto.co.treelab.api.ColumnConfigInput}
5610 */
5611proto.co.treelab.api.ColumnConfigInput.deserializeBinary = function(bytes) {
5612 var reader = new jspb.BinaryReader(bytes);
5613 var msg = new proto.co.treelab.api.ColumnConfigInput;
5614 return proto.co.treelab.api.ColumnConfigInput.deserializeBinaryFromReader(msg, reader);
5615};
5616
5617
5618/**
5619 * Deserializes binary data (in protobuf wire format) from the
5620 * given reader into the given message object.
5621 * @param {!proto.co.treelab.api.ColumnConfigInput} msg The message object to deserialize into.
5622 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5623 * @return {!proto.co.treelab.api.ColumnConfigInput}
5624 */
5625proto.co.treelab.api.ColumnConfigInput.deserializeBinaryFromReader = function(msg, reader) {
5626 while (reader.nextField()) {
5627 if (reader.isEndGroup()) {
5628 break;
5629 }
5630 var field = reader.getFieldNumber();
5631 switch (field) {
5632 case 1:
5633 var value = /** @type {string} */ (reader.readString());
5634 msg.setType(value);
5635 break;
5636 case 2:
5637 var value = /** @type {string} */ (reader.readString());
5638 msg.setName(value);
5639 break;
5640 case 3:
5641 var value = /** @type {number} */ (reader.readInt32());
5642 msg.setOrder(value);
5643 break;
5644 case 4:
5645 var value = /** @type {string} */ (reader.readString());
5646 msg.setForeigntableid(value);
5647 break;
5648 case 5:
5649 var value = /** @type {number} */ (reader.readFloat());
5650 msg.setDefaultnumber(value);
5651 break;
5652 case 6:
5653 var value = /** @type {number} */ (reader.readInt32());
5654 msg.setPrecision(value);
5655 break;
5656 case 9:
5657 var value = new proto.co.treelab.api.Choice;
5658 reader.readMessage(value,proto.co.treelab.api.Choice.deserializeBinaryFromReader);
5659 msg.addChoices(value);
5660 break;
5661 case 10:
5662 var value = /** @type {string} */ (reader.readString());
5663 msg.setDateformat(value);
5664 break;
5665 case 11:
5666 var value = /** @type {boolean} */ (reader.readBool());
5667 msg.setIncludetime(value);
5668 break;
5669 case 12:
5670 var value = /** @type {string} */ (reader.readString());
5671 msg.setTimeformat(value);
5672 break;
5673 case 13:
5674 var value = /** @type {boolean} */ (reader.readBool());
5675 msg.setUsegmt(value);
5676 break;
5677 default:
5678 reader.skipField();
5679 break;
5680 }
5681 }
5682 return msg;
5683};
5684
5685
5686/**
5687 * Serializes the message to binary data (in protobuf wire format).
5688 * @return {!Uint8Array}
5689 */
5690proto.co.treelab.api.ColumnConfigInput.prototype.serializeBinary = function() {
5691 var writer = new jspb.BinaryWriter();
5692 proto.co.treelab.api.ColumnConfigInput.serializeBinaryToWriter(this, writer);
5693 return writer.getResultBuffer();
5694};
5695
5696
5697/**
5698 * Serializes the given message to binary data (in protobuf wire
5699 * format), writing to the given BinaryWriter.
5700 * @param {!proto.co.treelab.api.ColumnConfigInput} message
5701 * @param {!jspb.BinaryWriter} writer
5702 * @suppress {unusedLocalVariables} f is only used for nested messages
5703 */
5704proto.co.treelab.api.ColumnConfigInput.serializeBinaryToWriter = function(message, writer) {
5705 var f = undefined;
5706 f = message.getType();
5707 if (f.length > 0) {
5708 writer.writeString(
5709 1,
5710 f
5711 );
5712 }
5713 f = message.getName();
5714 if (f.length > 0) {
5715 writer.writeString(
5716 2,
5717 f
5718 );
5719 }
5720 f = message.getOrder();
5721 if (f !== 0) {
5722 writer.writeInt32(
5723 3,
5724 f
5725 );
5726 }
5727 f = message.getForeigntableid();
5728 if (f.length > 0) {
5729 writer.writeString(
5730 4,
5731 f
5732 );
5733 }
5734 f = message.getDefaultnumber();
5735 if (f !== 0.0) {
5736 writer.writeFloat(
5737 5,
5738 f
5739 );
5740 }
5741 f = message.getPrecision();
5742 if (f !== 0) {
5743 writer.writeInt32(
5744 6,
5745 f
5746 );
5747 }
5748 f = message.getChoicesList();
5749 if (f.length > 0) {
5750 writer.writeRepeatedMessage(
5751 9,
5752 f,
5753 proto.co.treelab.api.Choice.serializeBinaryToWriter
5754 );
5755 }
5756 f = message.getDateformat();
5757 if (f.length > 0) {
5758 writer.writeString(
5759 10,
5760 f
5761 );
5762 }
5763 f = message.getIncludetime();
5764 if (f) {
5765 writer.writeBool(
5766 11,
5767 f
5768 );
5769 }
5770 f = message.getTimeformat();
5771 if (f.length > 0) {
5772 writer.writeString(
5773 12,
5774 f
5775 );
5776 }
5777 f = message.getUsegmt();
5778 if (f) {
5779 writer.writeBool(
5780 13,
5781 f
5782 );
5783 }
5784};
5785
5786
5787/**
5788 * optional string type = 1;
5789 * @return {string}
5790 */
5791proto.co.treelab.api.ColumnConfigInput.prototype.getType = function() {
5792 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5793};
5794
5795
5796/** @param {string} value */
5797proto.co.treelab.api.ColumnConfigInput.prototype.setType = function(value) {
5798 jspb.Message.setProto3StringField(this, 1, value);
5799};
5800
5801
5802/**
5803 * optional string name = 2;
5804 * @return {string}
5805 */
5806proto.co.treelab.api.ColumnConfigInput.prototype.getName = function() {
5807 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5808};
5809
5810
5811/** @param {string} value */
5812proto.co.treelab.api.ColumnConfigInput.prototype.setName = function(value) {
5813 jspb.Message.setProto3StringField(this, 2, value);
5814};
5815
5816
5817/**
5818 * optional int32 order = 3;
5819 * @return {number}
5820 */
5821proto.co.treelab.api.ColumnConfigInput.prototype.getOrder = function() {
5822 return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
5823};
5824
5825
5826/** @param {number} value */
5827proto.co.treelab.api.ColumnConfigInput.prototype.setOrder = function(value) {
5828 jspb.Message.setProto3IntField(this, 3, value);
5829};
5830
5831
5832/**
5833 * optional string foreignTableId = 4;
5834 * @return {string}
5835 */
5836proto.co.treelab.api.ColumnConfigInput.prototype.getForeigntableid = function() {
5837 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5838};
5839
5840
5841/** @param {string} value */
5842proto.co.treelab.api.ColumnConfigInput.prototype.setForeigntableid = function(value) {
5843 jspb.Message.setProto3StringField(this, 4, value);
5844};
5845
5846
5847/**
5848 * optional float defaultNumber = 5;
5849 * @return {number}
5850 */
5851proto.co.treelab.api.ColumnConfigInput.prototype.getDefaultnumber = function() {
5852 return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 5, 0.0));
5853};
5854
5855
5856/** @param {number} value */
5857proto.co.treelab.api.ColumnConfigInput.prototype.setDefaultnumber = function(value) {
5858 jspb.Message.setProto3FloatField(this, 5, value);
5859};
5860
5861
5862/**
5863 * optional int32 precision = 6;
5864 * @return {number}
5865 */
5866proto.co.treelab.api.ColumnConfigInput.prototype.getPrecision = function() {
5867 return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
5868};
5869
5870
5871/** @param {number} value */
5872proto.co.treelab.api.ColumnConfigInput.prototype.setPrecision = function(value) {
5873 jspb.Message.setProto3IntField(this, 6, value);
5874};
5875
5876
5877/**
5878 * repeated Choice choices = 9;
5879 * @return {!Array<!proto.co.treelab.api.Choice>}
5880 */
5881proto.co.treelab.api.ColumnConfigInput.prototype.getChoicesList = function() {
5882 return /** @type{!Array<!proto.co.treelab.api.Choice>} */ (
5883 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.Choice, 9));
5884};
5885
5886
5887/** @param {!Array<!proto.co.treelab.api.Choice>} value */
5888proto.co.treelab.api.ColumnConfigInput.prototype.setChoicesList = function(value) {
5889 jspb.Message.setRepeatedWrapperField(this, 9, value);
5890};
5891
5892
5893/**
5894 * @param {!proto.co.treelab.api.Choice=} opt_value
5895 * @param {number=} opt_index
5896 * @return {!proto.co.treelab.api.Choice}
5897 */
5898proto.co.treelab.api.ColumnConfigInput.prototype.addChoices = function(opt_value, opt_index) {
5899 return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.co.treelab.api.Choice, opt_index);
5900};
5901
5902
5903proto.co.treelab.api.ColumnConfigInput.prototype.clearChoicesList = function() {
5904 this.setChoicesList([]);
5905};
5906
5907
5908/**
5909 * optional string dateFormat = 10;
5910 * @return {string}
5911 */
5912proto.co.treelab.api.ColumnConfigInput.prototype.getDateformat = function() {
5913 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
5914};
5915
5916
5917/** @param {string} value */
5918proto.co.treelab.api.ColumnConfigInput.prototype.setDateformat = function(value) {
5919 jspb.Message.setProto3StringField(this, 10, value);
5920};
5921
5922
5923/**
5924 * optional bool includeTime = 11;
5925 * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
5926 * You should avoid comparisons like {@code val === true/false} in those cases.
5927 * @return {boolean}
5928 */
5929proto.co.treelab.api.ColumnConfigInput.prototype.getIncludetime = function() {
5930 return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 11, false));
5931};
5932
5933
5934/** @param {boolean} value */
5935proto.co.treelab.api.ColumnConfigInput.prototype.setIncludetime = function(value) {
5936 jspb.Message.setProto3BooleanField(this, 11, value);
5937};
5938
5939
5940/**
5941 * optional string timeFormat = 12;
5942 * @return {string}
5943 */
5944proto.co.treelab.api.ColumnConfigInput.prototype.getTimeformat = function() {
5945 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
5946};
5947
5948
5949/** @param {string} value */
5950proto.co.treelab.api.ColumnConfigInput.prototype.setTimeformat = function(value) {
5951 jspb.Message.setProto3StringField(this, 12, value);
5952};
5953
5954
5955/**
5956 * optional bool useGMT = 13;
5957 * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
5958 * You should avoid comparisons like {@code val === true/false} in those cases.
5959 * @return {boolean}
5960 */
5961proto.co.treelab.api.ColumnConfigInput.prototype.getUsegmt = function() {
5962 return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 13, false));
5963};
5964
5965
5966/** @param {boolean} value */
5967proto.co.treelab.api.ColumnConfigInput.prototype.setUsegmt = function(value) {
5968 jspb.Message.setProto3BooleanField(this, 13, value);
5969};
5970
5971
5972
5973/**
5974 * Generated by JsPbCodeGenerator.
5975 * @param {Array=} opt_data Optional initial data array, typically from a
5976 * server response, or constructed directly in Javascript. The array is used
5977 * in place and becomes part of the constructed object. It is not cloned.
5978 * If no data is provided, the constructed object will be empty, but still
5979 * valid.
5980 * @extends {jspb.Message}
5981 * @constructor
5982 */
5983proto.co.treelab.api.AddRowInput = function(opt_data) {
5984 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5985};
5986goog.inherits(proto.co.treelab.api.AddRowInput, jspb.Message);
5987if (goog.DEBUG && !COMPILED) {
5988 proto.co.treelab.api.AddRowInput.displayName = 'proto.co.treelab.api.AddRowInput';
5989}
5990
5991
5992if (jspb.Message.GENERATE_TO_OBJECT) {
5993/**
5994 * Creates an object representation of this proto suitable for use in Soy templates.
5995 * Field names that are reserved in JavaScript and will be renamed to pb_name.
5996 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5997 * For the list of reserved names please see:
5998 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
5999 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
6000 * for transitional soy proto support: http://goto/soy-param-migration
6001 * @return {!Object}
6002 */
6003proto.co.treelab.api.AddRowInput.prototype.toObject = function(opt_includeInstance) {
6004 return proto.co.treelab.api.AddRowInput.toObject(opt_includeInstance, this);
6005};
6006
6007
6008/**
6009 * Static version of the {@see toObject} method.
6010 * @param {boolean|undefined} includeInstance Whether to include the JSPB
6011 * instance for transitional soy proto support:
6012 * http://goto/soy-param-migration
6013 * @param {!proto.co.treelab.api.AddRowInput} msg The msg instance to transform.
6014 * @return {!Object}
6015 * @suppress {unusedLocalVariables} f is only used for nested messages
6016 */
6017proto.co.treelab.api.AddRowInput.toObject = function(includeInstance, msg) {
6018 var f, obj = {
6019 workspaceid: jspb.Message.getFieldWithDefault(msg, 1, ""),
6020 coreid: jspb.Message.getFieldWithDefault(msg, 2, ""),
6021 tableid: jspb.Message.getFieldWithDefault(msg, 3, "")
6022 };
6023
6024 if (includeInstance) {
6025 obj.$jspbMessageInstance = msg;
6026 }
6027 return obj;
6028};
6029}
6030
6031
6032/**
6033 * Deserializes binary data (in protobuf wire format).
6034 * @param {jspb.ByteSource} bytes The bytes to deserialize.
6035 * @return {!proto.co.treelab.api.AddRowInput}
6036 */
6037proto.co.treelab.api.AddRowInput.deserializeBinary = function(bytes) {
6038 var reader = new jspb.BinaryReader(bytes);
6039 var msg = new proto.co.treelab.api.AddRowInput;
6040 return proto.co.treelab.api.AddRowInput.deserializeBinaryFromReader(msg, reader);
6041};
6042
6043
6044/**
6045 * Deserializes binary data (in protobuf wire format) from the
6046 * given reader into the given message object.
6047 * @param {!proto.co.treelab.api.AddRowInput} msg The message object to deserialize into.
6048 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6049 * @return {!proto.co.treelab.api.AddRowInput}
6050 */
6051proto.co.treelab.api.AddRowInput.deserializeBinaryFromReader = function(msg, reader) {
6052 while (reader.nextField()) {
6053 if (reader.isEndGroup()) {
6054 break;
6055 }
6056 var field = reader.getFieldNumber();
6057 switch (field) {
6058 case 1:
6059 var value = /** @type {string} */ (reader.readString());
6060 msg.setWorkspaceid(value);
6061 break;
6062 case 2:
6063 var value = /** @type {string} */ (reader.readString());
6064 msg.setCoreid(value);
6065 break;
6066 case 3:
6067 var value = /** @type {string} */ (reader.readString());
6068 msg.setTableid(value);
6069 break;
6070 default:
6071 reader.skipField();
6072 break;
6073 }
6074 }
6075 return msg;
6076};
6077
6078
6079/**
6080 * Serializes the message to binary data (in protobuf wire format).
6081 * @return {!Uint8Array}
6082 */
6083proto.co.treelab.api.AddRowInput.prototype.serializeBinary = function() {
6084 var writer = new jspb.BinaryWriter();
6085 proto.co.treelab.api.AddRowInput.serializeBinaryToWriter(this, writer);
6086 return writer.getResultBuffer();
6087};
6088
6089
6090/**
6091 * Serializes the given message to binary data (in protobuf wire
6092 * format), writing to the given BinaryWriter.
6093 * @param {!proto.co.treelab.api.AddRowInput} message
6094 * @param {!jspb.BinaryWriter} writer
6095 * @suppress {unusedLocalVariables} f is only used for nested messages
6096 */
6097proto.co.treelab.api.AddRowInput.serializeBinaryToWriter = function(message, writer) {
6098 var f = undefined;
6099 f = message.getWorkspaceid();
6100 if (f.length > 0) {
6101 writer.writeString(
6102 1,
6103 f
6104 );
6105 }
6106 f = message.getCoreid();
6107 if (f.length > 0) {
6108 writer.writeString(
6109 2,
6110 f
6111 );
6112 }
6113 f = message.getTableid();
6114 if (f.length > 0) {
6115 writer.writeString(
6116 3,
6117 f
6118 );
6119 }
6120};
6121
6122
6123/**
6124 * optional string workspaceId = 1;
6125 * @return {string}
6126 */
6127proto.co.treelab.api.AddRowInput.prototype.getWorkspaceid = function() {
6128 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6129};
6130
6131
6132/** @param {string} value */
6133proto.co.treelab.api.AddRowInput.prototype.setWorkspaceid = function(value) {
6134 jspb.Message.setProto3StringField(this, 1, value);
6135};
6136
6137
6138/**
6139 * optional string coreId = 2;
6140 * @return {string}
6141 */
6142proto.co.treelab.api.AddRowInput.prototype.getCoreid = function() {
6143 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6144};
6145
6146
6147/** @param {string} value */
6148proto.co.treelab.api.AddRowInput.prototype.setCoreid = function(value) {
6149 jspb.Message.setProto3StringField(this, 2, value);
6150};
6151
6152
6153/**
6154 * optional string tableId = 3;
6155 * @return {string}
6156 */
6157proto.co.treelab.api.AddRowInput.prototype.getTableid = function() {
6158 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6159};
6160
6161
6162/** @param {string} value */
6163proto.co.treelab.api.AddRowInput.prototype.setTableid = function(value) {
6164 jspb.Message.setProto3StringField(this, 3, value);
6165};
6166
6167
6168
6169/**
6170 * Generated by JsPbCodeGenerator.
6171 * @param {Array=} opt_data Optional initial data array, typically from a
6172 * server response, or constructed directly in Javascript. The array is used
6173 * in place and becomes part of the constructed object. It is not cloned.
6174 * If no data is provided, the constructed object will be empty, but still
6175 * valid.
6176 * @extends {jspb.Message}
6177 * @constructor
6178 */
6179proto.co.treelab.api.CellValueInput = function(opt_data) {
6180 jspb.Message.initialize(this, opt_data, 0, -1, proto.co.treelab.api.CellValueInput.repeatedFields_, null);
6181};
6182goog.inherits(proto.co.treelab.api.CellValueInput, jspb.Message);
6183if (goog.DEBUG && !COMPILED) {
6184 proto.co.treelab.api.CellValueInput.displayName = 'proto.co.treelab.api.CellValueInput';
6185}
6186/**
6187 * List of repeated fields within this message type.
6188 * @private {!Array<number>}
6189 * @const
6190 */
6191proto.co.treelab.api.CellValueInput.repeatedFields_ = [6,7];
6192
6193
6194
6195if (jspb.Message.GENERATE_TO_OBJECT) {
6196/**
6197 * Creates an object representation of this proto suitable for use in Soy templates.
6198 * Field names that are reserved in JavaScript and will be renamed to pb_name.
6199 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6200 * For the list of reserved names please see:
6201 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
6202 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
6203 * for transitional soy proto support: http://goto/soy-param-migration
6204 * @return {!Object}
6205 */
6206proto.co.treelab.api.CellValueInput.prototype.toObject = function(opt_includeInstance) {
6207 return proto.co.treelab.api.CellValueInput.toObject(opt_includeInstance, this);
6208};
6209
6210
6211/**
6212 * Static version of the {@see toObject} method.
6213 * @param {boolean|undefined} includeInstance Whether to include the JSPB
6214 * instance for transitional soy proto support:
6215 * http://goto/soy-param-migration
6216 * @param {!proto.co.treelab.api.CellValueInput} msg The msg instance to transform.
6217 * @return {!Object}
6218 * @suppress {unusedLocalVariables} f is only used for nested messages
6219 */
6220proto.co.treelab.api.CellValueInput.toObject = function(includeInstance, msg) {
6221 var f, obj = {
6222 type: jspb.Message.getFieldWithDefault(msg, 1, ""),
6223 text: jspb.Message.getFieldWithDefault(msg, 2, ""),
6224 foreignrowid: jspb.Message.getFieldWithDefault(msg, 3, ""),
6225 number: +jspb.Message.getFieldWithDefault(msg, 4, 0.0),
6226 selecteditem: (f = msg.getSelecteditem()) && proto.co.treelab.api.Choice.toObject(includeInstance, f),
6227 selecteditemsList: jspb.Message.toObjectList(msg.getSelecteditemsList(),
6228 proto.co.treelab.api.Choice.toObject, includeInstance),
6229 attachmentsList: jspb.Message.toObjectList(msg.getAttachmentsList(),
6230 proto.co.treelab.api.Attachment.toObject, includeInstance),
6231 datetime: jspb.Message.getFieldWithDefault(msg, 8, "")
6232 };
6233
6234 if (includeInstance) {
6235 obj.$jspbMessageInstance = msg;
6236 }
6237 return obj;
6238};
6239}
6240
6241
6242/**
6243 * Deserializes binary data (in protobuf wire format).
6244 * @param {jspb.ByteSource} bytes The bytes to deserialize.
6245 * @return {!proto.co.treelab.api.CellValueInput}
6246 */
6247proto.co.treelab.api.CellValueInput.deserializeBinary = function(bytes) {
6248 var reader = new jspb.BinaryReader(bytes);
6249 var msg = new proto.co.treelab.api.CellValueInput;
6250 return proto.co.treelab.api.CellValueInput.deserializeBinaryFromReader(msg, reader);
6251};
6252
6253
6254/**
6255 * Deserializes binary data (in protobuf wire format) from the
6256 * given reader into the given message object.
6257 * @param {!proto.co.treelab.api.CellValueInput} msg The message object to deserialize into.
6258 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6259 * @return {!proto.co.treelab.api.CellValueInput}
6260 */
6261proto.co.treelab.api.CellValueInput.deserializeBinaryFromReader = function(msg, reader) {
6262 while (reader.nextField()) {
6263 if (reader.isEndGroup()) {
6264 break;
6265 }
6266 var field = reader.getFieldNumber();
6267 switch (field) {
6268 case 1:
6269 var value = /** @type {string} */ (reader.readString());
6270 msg.setType(value);
6271 break;
6272 case 2:
6273 var value = /** @type {string} */ (reader.readString());
6274 msg.setText(value);
6275 break;
6276 case 3:
6277 var value = /** @type {string} */ (reader.readString());
6278 msg.setForeignrowid(value);
6279 break;
6280 case 4:
6281 var value = /** @type {number} */ (reader.readFloat());
6282 msg.setNumber(value);
6283 break;
6284 case 5:
6285 var value = new proto.co.treelab.api.Choice;
6286 reader.readMessage(value,proto.co.treelab.api.Choice.deserializeBinaryFromReader);
6287 msg.setSelecteditem(value);
6288 break;
6289 case 6:
6290 var value = new proto.co.treelab.api.Choice;
6291 reader.readMessage(value,proto.co.treelab.api.Choice.deserializeBinaryFromReader);
6292 msg.addSelecteditems(value);
6293 break;
6294 case 7:
6295 var value = new proto.co.treelab.api.Attachment;
6296 reader.readMessage(value,proto.co.treelab.api.Attachment.deserializeBinaryFromReader);
6297 msg.addAttachments(value);
6298 break;
6299 case 8:
6300 var value = /** @type {string} */ (reader.readString());
6301 msg.setDatetime(value);
6302 break;
6303 default:
6304 reader.skipField();
6305 break;
6306 }
6307 }
6308 return msg;
6309};
6310
6311
6312/**
6313 * Serializes the message to binary data (in protobuf wire format).
6314 * @return {!Uint8Array}
6315 */
6316proto.co.treelab.api.CellValueInput.prototype.serializeBinary = function() {
6317 var writer = new jspb.BinaryWriter();
6318 proto.co.treelab.api.CellValueInput.serializeBinaryToWriter(this, writer);
6319 return writer.getResultBuffer();
6320};
6321
6322
6323/**
6324 * Serializes the given message to binary data (in protobuf wire
6325 * format), writing to the given BinaryWriter.
6326 * @param {!proto.co.treelab.api.CellValueInput} message
6327 * @param {!jspb.BinaryWriter} writer
6328 * @suppress {unusedLocalVariables} f is only used for nested messages
6329 */
6330proto.co.treelab.api.CellValueInput.serializeBinaryToWriter = function(message, writer) {
6331 var f = undefined;
6332 f = message.getType();
6333 if (f.length > 0) {
6334 writer.writeString(
6335 1,
6336 f
6337 );
6338 }
6339 f = message.getText();
6340 if (f.length > 0) {
6341 writer.writeString(
6342 2,
6343 f
6344 );
6345 }
6346 f = message.getForeignrowid();
6347 if (f.length > 0) {
6348 writer.writeString(
6349 3,
6350 f
6351 );
6352 }
6353 f = message.getNumber();
6354 if (f !== 0.0) {
6355 writer.writeFloat(
6356 4,
6357 f
6358 );
6359 }
6360 f = message.getSelecteditem();
6361 if (f != null) {
6362 writer.writeMessage(
6363 5,
6364 f,
6365 proto.co.treelab.api.Choice.serializeBinaryToWriter
6366 );
6367 }
6368 f = message.getSelecteditemsList();
6369 if (f.length > 0) {
6370 writer.writeRepeatedMessage(
6371 6,
6372 f,
6373 proto.co.treelab.api.Choice.serializeBinaryToWriter
6374 );
6375 }
6376 f = message.getAttachmentsList();
6377 if (f.length > 0) {
6378 writer.writeRepeatedMessage(
6379 7,
6380 f,
6381 proto.co.treelab.api.Attachment.serializeBinaryToWriter
6382 );
6383 }
6384 f = message.getDatetime();
6385 if (f.length > 0) {
6386 writer.writeString(
6387 8,
6388 f
6389 );
6390 }
6391};
6392
6393
6394/**
6395 * optional string type = 1;
6396 * @return {string}
6397 */
6398proto.co.treelab.api.CellValueInput.prototype.getType = function() {
6399 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6400};
6401
6402
6403/** @param {string} value */
6404proto.co.treelab.api.CellValueInput.prototype.setType = function(value) {
6405 jspb.Message.setProto3StringField(this, 1, value);
6406};
6407
6408
6409/**
6410 * optional string text = 2;
6411 * @return {string}
6412 */
6413proto.co.treelab.api.CellValueInput.prototype.getText = function() {
6414 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6415};
6416
6417
6418/** @param {string} value */
6419proto.co.treelab.api.CellValueInput.prototype.setText = function(value) {
6420 jspb.Message.setProto3StringField(this, 2, value);
6421};
6422
6423
6424/**
6425 * optional string foreignRowId = 3;
6426 * @return {string}
6427 */
6428proto.co.treelab.api.CellValueInput.prototype.getForeignrowid = function() {
6429 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6430};
6431
6432
6433/** @param {string} value */
6434proto.co.treelab.api.CellValueInput.prototype.setForeignrowid = function(value) {
6435 jspb.Message.setProto3StringField(this, 3, value);
6436};
6437
6438
6439/**
6440 * optional float number = 4;
6441 * @return {number}
6442 */
6443proto.co.treelab.api.CellValueInput.prototype.getNumber = function() {
6444 return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 4, 0.0));
6445};
6446
6447
6448/** @param {number} value */
6449proto.co.treelab.api.CellValueInput.prototype.setNumber = function(value) {
6450 jspb.Message.setProto3FloatField(this, 4, value);
6451};
6452
6453
6454/**
6455 * optional Choice selectedItem = 5;
6456 * @return {?proto.co.treelab.api.Choice}
6457 */
6458proto.co.treelab.api.CellValueInput.prototype.getSelecteditem = function() {
6459 return /** @type{?proto.co.treelab.api.Choice} */ (
6460 jspb.Message.getWrapperField(this, proto.co.treelab.api.Choice, 5));
6461};
6462
6463
6464/** @param {?proto.co.treelab.api.Choice|undefined} value */
6465proto.co.treelab.api.CellValueInput.prototype.setSelecteditem = function(value) {
6466 jspb.Message.setWrapperField(this, 5, value);
6467};
6468
6469
6470proto.co.treelab.api.CellValueInput.prototype.clearSelecteditem = function() {
6471 this.setSelecteditem(undefined);
6472};
6473
6474
6475/**
6476 * Returns whether this field is set.
6477 * @return {boolean}
6478 */
6479proto.co.treelab.api.CellValueInput.prototype.hasSelecteditem = function() {
6480 return jspb.Message.getField(this, 5) != null;
6481};
6482
6483
6484/**
6485 * repeated Choice selectedItems = 6;
6486 * @return {!Array<!proto.co.treelab.api.Choice>}
6487 */
6488proto.co.treelab.api.CellValueInput.prototype.getSelecteditemsList = function() {
6489 return /** @type{!Array<!proto.co.treelab.api.Choice>} */ (
6490 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.Choice, 6));
6491};
6492
6493
6494/** @param {!Array<!proto.co.treelab.api.Choice>} value */
6495proto.co.treelab.api.CellValueInput.prototype.setSelecteditemsList = function(value) {
6496 jspb.Message.setRepeatedWrapperField(this, 6, value);
6497};
6498
6499
6500/**
6501 * @param {!proto.co.treelab.api.Choice=} opt_value
6502 * @param {number=} opt_index
6503 * @return {!proto.co.treelab.api.Choice}
6504 */
6505proto.co.treelab.api.CellValueInput.prototype.addSelecteditems = function(opt_value, opt_index) {
6506 return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.co.treelab.api.Choice, opt_index);
6507};
6508
6509
6510proto.co.treelab.api.CellValueInput.prototype.clearSelecteditemsList = function() {
6511 this.setSelecteditemsList([]);
6512};
6513
6514
6515/**
6516 * repeated Attachment attachments = 7;
6517 * @return {!Array<!proto.co.treelab.api.Attachment>}
6518 */
6519proto.co.treelab.api.CellValueInput.prototype.getAttachmentsList = function() {
6520 return /** @type{!Array<!proto.co.treelab.api.Attachment>} */ (
6521 jspb.Message.getRepeatedWrapperField(this, proto.co.treelab.api.Attachment, 7));
6522};
6523
6524
6525/** @param {!Array<!proto.co.treelab.api.Attachment>} value */
6526proto.co.treelab.api.CellValueInput.prototype.setAttachmentsList = function(value) {
6527 jspb.Message.setRepeatedWrapperField(this, 7, value);
6528};
6529
6530
6531/**
6532 * @param {!proto.co.treelab.api.Attachment=} opt_value
6533 * @param {number=} opt_index
6534 * @return {!proto.co.treelab.api.Attachment}
6535 */
6536proto.co.treelab.api.CellValueInput.prototype.addAttachments = function(opt_value, opt_index) {
6537 return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.co.treelab.api.Attachment, opt_index);
6538};
6539
6540
6541proto.co.treelab.api.CellValueInput.prototype.clearAttachmentsList = function() {
6542 this.setAttachmentsList([]);
6543};
6544
6545
6546/**
6547 * optional string dateTime = 8;
6548 * @return {string}
6549 */
6550proto.co.treelab.api.CellValueInput.prototype.getDatetime = function() {
6551 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
6552};
6553
6554
6555/** @param {string} value */
6556proto.co.treelab.api.CellValueInput.prototype.setDatetime = function(value) {
6557 jspb.Message.setProto3StringField(this, 8, value);
6558};
6559
6560
6561
6562/**
6563 * Generated by JsPbCodeGenerator.
6564 * @param {Array=} opt_data Optional initial data array, typically from a
6565 * server response, or constructed directly in Javascript. The array is used
6566 * in place and becomes part of the constructed object. It is not cloned.
6567 * If no data is provided, the constructed object will be empty, but still
6568 * valid.
6569 * @extends {jspb.Message}
6570 * @constructor
6571 */
6572proto.co.treelab.api.UpdateCellActionInput = function(opt_data) {
6573 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
6574};
6575goog.inherits(proto.co.treelab.api.UpdateCellActionInput, jspb.Message);
6576if (goog.DEBUG && !COMPILED) {
6577 proto.co.treelab.api.UpdateCellActionInput.displayName = 'proto.co.treelab.api.UpdateCellActionInput';
6578}
6579
6580
6581if (jspb.Message.GENERATE_TO_OBJECT) {
6582/**
6583 * Creates an object representation of this proto suitable for use in Soy templates.
6584 * Field names that are reserved in JavaScript and will be renamed to pb_name.
6585 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6586 * For the list of reserved names please see:
6587 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
6588 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
6589 * for transitional soy proto support: http://goto/soy-param-migration
6590 * @return {!Object}
6591 */
6592proto.co.treelab.api.UpdateCellActionInput.prototype.toObject = function(opt_includeInstance) {
6593 return proto.co.treelab.api.UpdateCellActionInput.toObject(opt_includeInstance, this);
6594};
6595
6596
6597/**
6598 * Static version of the {@see toObject} method.
6599 * @param {boolean|undefined} includeInstance Whether to include the JSPB
6600 * instance for transitional soy proto support:
6601 * http://goto/soy-param-migration
6602 * @param {!proto.co.treelab.api.UpdateCellActionInput} msg The msg instance to transform.
6603 * @return {!Object}
6604 * @suppress {unusedLocalVariables} f is only used for nested messages
6605 */
6606proto.co.treelab.api.UpdateCellActionInput.toObject = function(includeInstance, msg) {
6607 var f, obj = {
6608 type: jspb.Message.getFieldWithDefault(msg, 1, ""),
6609 value: (f = msg.getValue()) && proto.co.treelab.api.CellValueInput.toObject(includeInstance, f)
6610 };
6611
6612 if (includeInstance) {
6613 obj.$jspbMessageInstance = msg;
6614 }
6615 return obj;
6616};
6617}
6618
6619
6620/**
6621 * Deserializes binary data (in protobuf wire format).
6622 * @param {jspb.ByteSource} bytes The bytes to deserialize.
6623 * @return {!proto.co.treelab.api.UpdateCellActionInput}
6624 */
6625proto.co.treelab.api.UpdateCellActionInput.deserializeBinary = function(bytes) {
6626 var reader = new jspb.BinaryReader(bytes);
6627 var msg = new proto.co.treelab.api.UpdateCellActionInput;
6628 return proto.co.treelab.api.UpdateCellActionInput.deserializeBinaryFromReader(msg, reader);
6629};
6630
6631
6632/**
6633 * Deserializes binary data (in protobuf wire format) from the
6634 * given reader into the given message object.
6635 * @param {!proto.co.treelab.api.UpdateCellActionInput} msg The message object to deserialize into.
6636 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6637 * @return {!proto.co.treelab.api.UpdateCellActionInput}
6638 */
6639proto.co.treelab.api.UpdateCellActionInput.deserializeBinaryFromReader = function(msg, reader) {
6640 while (reader.nextField()) {
6641 if (reader.isEndGroup()) {
6642 break;
6643 }
6644 var field = reader.getFieldNumber();
6645 switch (field) {
6646 case 1:
6647 var value = /** @type {string} */ (reader.readString());
6648 msg.setType(value);
6649 break;
6650 case 2:
6651 var value = new proto.co.treelab.api.CellValueInput;
6652 reader.readMessage(value,proto.co.treelab.api.CellValueInput.deserializeBinaryFromReader);
6653 msg.setValue(value);
6654 break;
6655 default:
6656 reader.skipField();
6657 break;
6658 }
6659 }
6660 return msg;
6661};
6662
6663
6664/**
6665 * Serializes the message to binary data (in protobuf wire format).
6666 * @return {!Uint8Array}
6667 */
6668proto.co.treelab.api.UpdateCellActionInput.prototype.serializeBinary = function() {
6669 var writer = new jspb.BinaryWriter();
6670 proto.co.treelab.api.UpdateCellActionInput.serializeBinaryToWriter(this, writer);
6671 return writer.getResultBuffer();
6672};
6673
6674
6675/**
6676 * Serializes the given message to binary data (in protobuf wire
6677 * format), writing to the given BinaryWriter.
6678 * @param {!proto.co.treelab.api.UpdateCellActionInput} message
6679 * @param {!jspb.BinaryWriter} writer
6680 * @suppress {unusedLocalVariables} f is only used for nested messages
6681 */
6682proto.co.treelab.api.UpdateCellActionInput.serializeBinaryToWriter = function(message, writer) {
6683 var f = undefined;
6684 f = message.getType();
6685 if (f.length > 0) {
6686 writer.writeString(
6687 1,
6688 f
6689 );
6690 }
6691 f = message.getValue();
6692 if (f != null) {
6693 writer.writeMessage(
6694 2,
6695 f,
6696 proto.co.treelab.api.CellValueInput.serializeBinaryToWriter
6697 );
6698 }
6699};
6700
6701
6702/**
6703 * optional string type = 1;
6704 * @return {string}
6705 */
6706proto.co.treelab.api.UpdateCellActionInput.prototype.getType = function() {
6707 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6708};
6709
6710
6711/** @param {string} value */
6712proto.co.treelab.api.UpdateCellActionInput.prototype.setType = function(value) {
6713 jspb.Message.setProto3StringField(this, 1, value);
6714};
6715
6716
6717/**
6718 * optional CellValueInput value = 2;
6719 * @return {?proto.co.treelab.api.CellValueInput}
6720 */
6721proto.co.treelab.api.UpdateCellActionInput.prototype.getValue = function() {
6722 return /** @type{?proto.co.treelab.api.CellValueInput} */ (
6723 jspb.Message.getWrapperField(this, proto.co.treelab.api.CellValueInput, 2));
6724};
6725
6726
6727/** @param {?proto.co.treelab.api.CellValueInput|undefined} value */
6728proto.co.treelab.api.UpdateCellActionInput.prototype.setValue = function(value) {
6729 jspb.Message.setWrapperField(this, 2, value);
6730};
6731
6732
6733proto.co.treelab.api.UpdateCellActionInput.prototype.clearValue = function() {
6734 this.setValue(undefined);
6735};
6736
6737
6738/**
6739 * Returns whether this field is set.
6740 * @return {boolean}
6741 */
6742proto.co.treelab.api.UpdateCellActionInput.prototype.hasValue = function() {
6743 return jspb.Message.getField(this, 2) != null;
6744};
6745
6746
6747
6748/**
6749 * Generated by JsPbCodeGenerator.
6750 * @param {Array=} opt_data Optional initial data array, typically from a
6751 * server response, or constructed directly in Javascript. The array is used
6752 * in place and becomes part of the constructed object. It is not cloned.
6753 * If no data is provided, the constructed object will be empty, but still
6754 * valid.
6755 * @extends {jspb.Message}
6756 * @constructor
6757 */
6758proto.co.treelab.api.UpdateCellInput = function(opt_data) {
6759 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
6760};
6761goog.inherits(proto.co.treelab.api.UpdateCellInput, jspb.Message);
6762if (goog.DEBUG && !COMPILED) {
6763 proto.co.treelab.api.UpdateCellInput.displayName = 'proto.co.treelab.api.UpdateCellInput';
6764}
6765
6766
6767if (jspb.Message.GENERATE_TO_OBJECT) {
6768/**
6769 * Creates an object representation of this proto suitable for use in Soy templates.
6770 * Field names that are reserved in JavaScript and will be renamed to pb_name.
6771 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6772 * For the list of reserved names please see:
6773 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
6774 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
6775 * for transitional soy proto support: http://goto/soy-param-migration
6776 * @return {!Object}
6777 */
6778proto.co.treelab.api.UpdateCellInput.prototype.toObject = function(opt_includeInstance) {
6779 return proto.co.treelab.api.UpdateCellInput.toObject(opt_includeInstance, this);
6780};
6781
6782
6783/**
6784 * Static version of the {@see toObject} method.
6785 * @param {boolean|undefined} includeInstance Whether to include the JSPB
6786 * instance for transitional soy proto support:
6787 * http://goto/soy-param-migration
6788 * @param {!proto.co.treelab.api.UpdateCellInput} msg The msg instance to transform.
6789 * @return {!Object}
6790 * @suppress {unusedLocalVariables} f is only used for nested messages
6791 */
6792proto.co.treelab.api.UpdateCellInput.toObject = function(includeInstance, msg) {
6793 var f, obj = {
6794 workspaceid: jspb.Message.getFieldWithDefault(msg, 1, ""),
6795 coreid: jspb.Message.getFieldWithDefault(msg, 2, ""),
6796 tableid: jspb.Message.getFieldWithDefault(msg, 3, ""),
6797 columnid: jspb.Message.getFieldWithDefault(msg, 4, ""),
6798 rowid: jspb.Message.getFieldWithDefault(msg, 5, ""),
6799 action: (f = msg.getAction()) && proto.co.treelab.api.UpdateCellActionInput.toObject(includeInstance, f)
6800 };
6801
6802 if (includeInstance) {
6803 obj.$jspbMessageInstance = msg;
6804 }
6805 return obj;
6806};
6807}
6808
6809
6810/**
6811 * Deserializes binary data (in protobuf wire format).
6812 * @param {jspb.ByteSource} bytes The bytes to deserialize.
6813 * @return {!proto.co.treelab.api.UpdateCellInput}
6814 */
6815proto.co.treelab.api.UpdateCellInput.deserializeBinary = function(bytes) {
6816 var reader = new jspb.BinaryReader(bytes);
6817 var msg = new proto.co.treelab.api.UpdateCellInput;
6818 return proto.co.treelab.api.UpdateCellInput.deserializeBinaryFromReader(msg, reader);
6819};
6820
6821
6822/**
6823 * Deserializes binary data (in protobuf wire format) from the
6824 * given reader into the given message object.
6825 * @param {!proto.co.treelab.api.UpdateCellInput} msg The message object to deserialize into.
6826 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6827 * @return {!proto.co.treelab.api.UpdateCellInput}
6828 */
6829proto.co.treelab.api.UpdateCellInput.deserializeBinaryFromReader = function(msg, reader) {
6830 while (reader.nextField()) {
6831 if (reader.isEndGroup()) {
6832 break;
6833 }
6834 var field = reader.getFieldNumber();
6835 switch (field) {
6836 case 1:
6837 var value = /** @type {string} */ (reader.readString());
6838 msg.setWorkspaceid(value);
6839 break;
6840 case 2:
6841 var value = /** @type {string} */ (reader.readString());
6842 msg.setCoreid(value);
6843 break;
6844 case 3:
6845 var value = /** @type {string} */ (reader.readString());
6846 msg.setTableid(value);
6847 break;
6848 case 4:
6849 var value = /** @type {string} */ (reader.readString());
6850 msg.setColumnid(value);
6851 break;
6852 case 5:
6853 var value = /** @type {string} */ (reader.readString());
6854 msg.setRowid(value);
6855 break;
6856 case 6:
6857 var value = new proto.co.treelab.api.UpdateCellActionInput;
6858 reader.readMessage(value,proto.co.treelab.api.UpdateCellActionInput.deserializeBinaryFromReader);
6859 msg.setAction(value);
6860 break;
6861 default:
6862 reader.skipField();
6863 break;
6864 }
6865 }
6866 return msg;
6867};
6868
6869
6870/**
6871 * Serializes the message to binary data (in protobuf wire format).
6872 * @return {!Uint8Array}
6873 */
6874proto.co.treelab.api.UpdateCellInput.prototype.serializeBinary = function() {
6875 var writer = new jspb.BinaryWriter();
6876 proto.co.treelab.api.UpdateCellInput.serializeBinaryToWriter(this, writer);
6877 return writer.getResultBuffer();
6878};
6879
6880
6881/**
6882 * Serializes the given message to binary data (in protobuf wire
6883 * format), writing to the given BinaryWriter.
6884 * @param {!proto.co.treelab.api.UpdateCellInput} message
6885 * @param {!jspb.BinaryWriter} writer
6886 * @suppress {unusedLocalVariables} f is only used for nested messages
6887 */
6888proto.co.treelab.api.UpdateCellInput.serializeBinaryToWriter = function(message, writer) {
6889 var f = undefined;
6890 f = message.getWorkspaceid();
6891 if (f.length > 0) {
6892 writer.writeString(
6893 1,
6894 f
6895 );
6896 }
6897 f = message.getCoreid();
6898 if (f.length > 0) {
6899 writer.writeString(
6900 2,
6901 f
6902 );
6903 }
6904 f = message.getTableid();
6905 if (f.length > 0) {
6906 writer.writeString(
6907 3,
6908 f
6909 );
6910 }
6911 f = message.getColumnid();
6912 if (f.length > 0) {
6913 writer.writeString(
6914 4,
6915 f
6916 );
6917 }
6918 f = message.getRowid();
6919 if (f.length > 0) {
6920 writer.writeString(
6921 5,
6922 f
6923 );
6924 }
6925 f = message.getAction();
6926 if (f != null) {
6927 writer.writeMessage(
6928 6,
6929 f,
6930 proto.co.treelab.api.UpdateCellActionInput.serializeBinaryToWriter
6931 );
6932 }
6933};
6934
6935
6936/**
6937 * optional string workspaceId = 1;
6938 * @return {string}
6939 */
6940proto.co.treelab.api.UpdateCellInput.prototype.getWorkspaceid = function() {
6941 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6942};
6943
6944
6945/** @param {string} value */
6946proto.co.treelab.api.UpdateCellInput.prototype.setWorkspaceid = function(value) {
6947 jspb.Message.setProto3StringField(this, 1, value);
6948};
6949
6950
6951/**
6952 * optional string coreId = 2;
6953 * @return {string}
6954 */
6955proto.co.treelab.api.UpdateCellInput.prototype.getCoreid = function() {
6956 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6957};
6958
6959
6960/** @param {string} value */
6961proto.co.treelab.api.UpdateCellInput.prototype.setCoreid = function(value) {
6962 jspb.Message.setProto3StringField(this, 2, value);
6963};
6964
6965
6966/**
6967 * optional string tableId = 3;
6968 * @return {string}
6969 */
6970proto.co.treelab.api.UpdateCellInput.prototype.getTableid = function() {
6971 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6972};
6973
6974
6975/** @param {string} value */
6976proto.co.treelab.api.UpdateCellInput.prototype.setTableid = function(value) {
6977 jspb.Message.setProto3StringField(this, 3, value);
6978};
6979
6980
6981/**
6982 * optional string columnId = 4;
6983 * @return {string}
6984 */
6985proto.co.treelab.api.UpdateCellInput.prototype.getColumnid = function() {
6986 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
6987};
6988
6989
6990/** @param {string} value */
6991proto.co.treelab.api.UpdateCellInput.prototype.setColumnid = function(value) {
6992 jspb.Message.setProto3StringField(this, 4, value);
6993};
6994
6995
6996/**
6997 * optional string rowId = 5;
6998 * @return {string}
6999 */
7000proto.co.treelab.api.UpdateCellInput.prototype.getRowid = function() {
7001 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
7002};
7003
7004
7005/** @param {string} value */
7006proto.co.treelab.api.UpdateCellInput.prototype.setRowid = function(value) {
7007 jspb.Message.setProto3StringField(this, 5, value);
7008};
7009
7010
7011/**
7012 * optional UpdateCellActionInput action = 6;
7013 * @return {?proto.co.treelab.api.UpdateCellActionInput}
7014 */
7015proto.co.treelab.api.UpdateCellInput.prototype.getAction = function() {
7016 return /** @type{?proto.co.treelab.api.UpdateCellActionInput} */ (
7017 jspb.Message.getWrapperField(this, proto.co.treelab.api.UpdateCellActionInput, 6));
7018};
7019
7020
7021/** @param {?proto.co.treelab.api.UpdateCellActionInput|undefined} value */
7022proto.co.treelab.api.UpdateCellInput.prototype.setAction = function(value) {
7023 jspb.Message.setWrapperField(this, 6, value);
7024};
7025
7026
7027proto.co.treelab.api.UpdateCellInput.prototype.clearAction = function() {
7028 this.setAction(undefined);
7029};
7030
7031
7032/**
7033 * Returns whether this field is set.
7034 * @return {boolean}
7035 */
7036proto.co.treelab.api.UpdateCellInput.prototype.hasAction = function() {
7037 return jspb.Message.getField(this, 6) != null;
7038};
7039
7040
7041
7042/**
7043 * Generated by JsPbCodeGenerator.
7044 * @param {Array=} opt_data Optional initial data array, typically from a
7045 * server response, or constructed directly in Javascript. The array is used
7046 * in place and becomes part of the constructed object. It is not cloned.
7047 * If no data is provided, the constructed object will be empty, but still
7048 * valid.
7049 * @extends {jspb.Message}
7050 * @constructor
7051 */
7052proto.co.treelab.api.CreateWorkspaceInput = function(opt_data) {
7053 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
7054};
7055goog.inherits(proto.co.treelab.api.CreateWorkspaceInput, jspb.Message);
7056if (goog.DEBUG && !COMPILED) {
7057 proto.co.treelab.api.CreateWorkspaceInput.displayName = 'proto.co.treelab.api.CreateWorkspaceInput';
7058}
7059
7060
7061if (jspb.Message.GENERATE_TO_OBJECT) {
7062/**
7063 * Creates an object representation of this proto suitable for use in Soy templates.
7064 * Field names that are reserved in JavaScript and will be renamed to pb_name.
7065 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7066 * For the list of reserved names please see:
7067 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
7068 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
7069 * for transitional soy proto support: http://goto/soy-param-migration
7070 * @return {!Object}
7071 */
7072proto.co.treelab.api.CreateWorkspaceInput.prototype.toObject = function(opt_includeInstance) {
7073 return proto.co.treelab.api.CreateWorkspaceInput.toObject(opt_includeInstance, this);
7074};
7075
7076
7077/**
7078 * Static version of the {@see toObject} method.
7079 * @param {boolean|undefined} includeInstance Whether to include the JSPB
7080 * instance for transitional soy proto support:
7081 * http://goto/soy-param-migration
7082 * @param {!proto.co.treelab.api.CreateWorkspaceInput} msg The msg instance to transform.
7083 * @return {!Object}
7084 * @suppress {unusedLocalVariables} f is only used for nested messages
7085 */
7086proto.co.treelab.api.CreateWorkspaceInput.toObject = function(includeInstance, msg) {
7087 var f, obj = {
7088 name: jspb.Message.getFieldWithDefault(msg, 1, "")
7089 };
7090
7091 if (includeInstance) {
7092 obj.$jspbMessageInstance = msg;
7093 }
7094 return obj;
7095};
7096}
7097
7098
7099/**
7100 * Deserializes binary data (in protobuf wire format).
7101 * @param {jspb.ByteSource} bytes The bytes to deserialize.
7102 * @return {!proto.co.treelab.api.CreateWorkspaceInput}
7103 */
7104proto.co.treelab.api.CreateWorkspaceInput.deserializeBinary = function(bytes) {
7105 var reader = new jspb.BinaryReader(bytes);
7106 var msg = new proto.co.treelab.api.CreateWorkspaceInput;
7107 return proto.co.treelab.api.CreateWorkspaceInput.deserializeBinaryFromReader(msg, reader);
7108};
7109
7110
7111/**
7112 * Deserializes binary data (in protobuf wire format) from the
7113 * given reader into the given message object.
7114 * @param {!proto.co.treelab.api.CreateWorkspaceInput} msg The message object to deserialize into.
7115 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7116 * @return {!proto.co.treelab.api.CreateWorkspaceInput}
7117 */
7118proto.co.treelab.api.CreateWorkspaceInput.deserializeBinaryFromReader = function(msg, reader) {
7119 while (reader.nextField()) {
7120 if (reader.isEndGroup()) {
7121 break;
7122 }
7123 var field = reader.getFieldNumber();
7124 switch (field) {
7125 case 1:
7126 var value = /** @type {string} */ (reader.readString());
7127 msg.setName(value);
7128 break;
7129 default:
7130 reader.skipField();
7131 break;
7132 }
7133 }
7134 return msg;
7135};
7136
7137
7138/**
7139 * Serializes the message to binary data (in protobuf wire format).
7140 * @return {!Uint8Array}
7141 */
7142proto.co.treelab.api.CreateWorkspaceInput.prototype.serializeBinary = function() {
7143 var writer = new jspb.BinaryWriter();
7144 proto.co.treelab.api.CreateWorkspaceInput.serializeBinaryToWriter(this, writer);
7145 return writer.getResultBuffer();
7146};
7147
7148
7149/**
7150 * Serializes the given message to binary data (in protobuf wire
7151 * format), writing to the given BinaryWriter.
7152 * @param {!proto.co.treelab.api.CreateWorkspaceInput} message
7153 * @param {!jspb.BinaryWriter} writer
7154 * @suppress {unusedLocalVariables} f is only used for nested messages
7155 */
7156proto.co.treelab.api.CreateWorkspaceInput.serializeBinaryToWriter = function(message, writer) {
7157 var f = undefined;
7158 f = message.getName();
7159 if (f.length > 0) {
7160 writer.writeString(
7161 1,
7162 f
7163 );
7164 }
7165};
7166
7167
7168/**
7169 * optional string name = 1;
7170 * @return {string}
7171 */
7172proto.co.treelab.api.CreateWorkspaceInput.prototype.getName = function() {
7173 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7174};
7175
7176
7177/** @param {string} value */
7178proto.co.treelab.api.CreateWorkspaceInput.prototype.setName = function(value) {
7179 jspb.Message.setProto3StringField(this, 1, value);
7180};
7181
7182
7183
7184/**
7185 * Generated by JsPbCodeGenerator.
7186 * @param {Array=} opt_data Optional initial data array, typically from a
7187 * server response, or constructed directly in Javascript. The array is used
7188 * in place and becomes part of the constructed object. It is not cloned.
7189 * If no data is provided, the constructed object will be empty, but still
7190 * valid.
7191 * @extends {jspb.Message}
7192 * @constructor
7193 */
7194proto.co.treelab.api.AddCoreInput = function(opt_data) {
7195 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
7196};
7197goog.inherits(proto.co.treelab.api.AddCoreInput, jspb.Message);
7198if (goog.DEBUG && !COMPILED) {
7199 proto.co.treelab.api.AddCoreInput.displayName = 'proto.co.treelab.api.AddCoreInput';
7200}
7201
7202
7203if (jspb.Message.GENERATE_TO_OBJECT) {
7204/**
7205 * Creates an object representation of this proto suitable for use in Soy templates.
7206 * Field names that are reserved in JavaScript and will be renamed to pb_name.
7207 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7208 * For the list of reserved names please see:
7209 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
7210 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
7211 * for transitional soy proto support: http://goto/soy-param-migration
7212 * @return {!Object}
7213 */
7214proto.co.treelab.api.AddCoreInput.prototype.toObject = function(opt_includeInstance) {
7215 return proto.co.treelab.api.AddCoreInput.toObject(opt_includeInstance, this);
7216};
7217
7218
7219/**
7220 * Static version of the {@see toObject} method.
7221 * @param {boolean|undefined} includeInstance Whether to include the JSPB
7222 * instance for transitional soy proto support:
7223 * http://goto/soy-param-migration
7224 * @param {!proto.co.treelab.api.AddCoreInput} msg The msg instance to transform.
7225 * @return {!Object}
7226 * @suppress {unusedLocalVariables} f is only used for nested messages
7227 */
7228proto.co.treelab.api.AddCoreInput.toObject = function(includeInstance, msg) {
7229 var f, obj = {
7230 workspaceid: jspb.Message.getFieldWithDefault(msg, 1, ""),
7231 corename: jspb.Message.getFieldWithDefault(msg, 2, ""),
7232 color: jspb.Message.getFieldWithDefault(msg, 3, ""),
7233 icon: jspb.Message.getFieldWithDefault(msg, 4, "")
7234 };
7235
7236 if (includeInstance) {
7237 obj.$jspbMessageInstance = msg;
7238 }
7239 return obj;
7240};
7241}
7242
7243
7244/**
7245 * Deserializes binary data (in protobuf wire format).
7246 * @param {jspb.ByteSource} bytes The bytes to deserialize.
7247 * @return {!proto.co.treelab.api.AddCoreInput}
7248 */
7249proto.co.treelab.api.AddCoreInput.deserializeBinary = function(bytes) {
7250 var reader = new jspb.BinaryReader(bytes);
7251 var msg = new proto.co.treelab.api.AddCoreInput;
7252 return proto.co.treelab.api.AddCoreInput.deserializeBinaryFromReader(msg, reader);
7253};
7254
7255
7256/**
7257 * Deserializes binary data (in protobuf wire format) from the
7258 * given reader into the given message object.
7259 * @param {!proto.co.treelab.api.AddCoreInput} msg The message object to deserialize into.
7260 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7261 * @return {!proto.co.treelab.api.AddCoreInput}
7262 */
7263proto.co.treelab.api.AddCoreInput.deserializeBinaryFromReader = function(msg, reader) {
7264 while (reader.nextField()) {
7265 if (reader.isEndGroup()) {
7266 break;
7267 }
7268 var field = reader.getFieldNumber();
7269 switch (field) {
7270 case 1:
7271 var value = /** @type {string} */ (reader.readString());
7272 msg.setWorkspaceid(value);
7273 break;
7274 case 2:
7275 var value = /** @type {string} */ (reader.readString());
7276 msg.setCorename(value);
7277 break;
7278 case 3:
7279 var value = /** @type {string} */ (reader.readString());
7280 msg.setColor(value);
7281 break;
7282 case 4:
7283 var value = /** @type {string} */ (reader.readString());
7284 msg.setIcon(value);
7285 break;
7286 default:
7287 reader.skipField();
7288 break;
7289 }
7290 }
7291 return msg;
7292};
7293
7294
7295/**
7296 * Serializes the message to binary data (in protobuf wire format).
7297 * @return {!Uint8Array}
7298 */
7299proto.co.treelab.api.AddCoreInput.prototype.serializeBinary = function() {
7300 var writer = new jspb.BinaryWriter();
7301 proto.co.treelab.api.AddCoreInput.serializeBinaryToWriter(this, writer);
7302 return writer.getResultBuffer();
7303};
7304
7305
7306/**
7307 * Serializes the given message to binary data (in protobuf wire
7308 * format), writing to the given BinaryWriter.
7309 * @param {!proto.co.treelab.api.AddCoreInput} message
7310 * @param {!jspb.BinaryWriter} writer
7311 * @suppress {unusedLocalVariables} f is only used for nested messages
7312 */
7313proto.co.treelab.api.AddCoreInput.serializeBinaryToWriter = function(message, writer) {
7314 var f = undefined;
7315 f = message.getWorkspaceid();
7316 if (f.length > 0) {
7317 writer.writeString(
7318 1,
7319 f
7320 );
7321 }
7322 f = message.getCorename();
7323 if (f.length > 0) {
7324 writer.writeString(
7325 2,
7326 f
7327 );
7328 }
7329 f = message.getColor();
7330 if (f.length > 0) {
7331 writer.writeString(
7332 3,
7333 f
7334 );
7335 }
7336 f = message.getIcon();
7337 if (f.length > 0) {
7338 writer.writeString(
7339 4,
7340 f
7341 );
7342 }
7343};
7344
7345
7346/**
7347 * optional string workspaceId = 1;
7348 * @return {string}
7349 */
7350proto.co.treelab.api.AddCoreInput.prototype.getWorkspaceid = function() {
7351 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7352};
7353
7354
7355/** @param {string} value */
7356proto.co.treelab.api.AddCoreInput.prototype.setWorkspaceid = function(value) {
7357 jspb.Message.setProto3StringField(this, 1, value);
7358};
7359
7360
7361/**
7362 * optional string coreName = 2;
7363 * @return {string}
7364 */
7365proto.co.treelab.api.AddCoreInput.prototype.getCorename = function() {
7366 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7367};
7368
7369
7370/** @param {string} value */
7371proto.co.treelab.api.AddCoreInput.prototype.setCorename = function(value) {
7372 jspb.Message.setProto3StringField(this, 2, value);
7373};
7374
7375
7376/**
7377 * optional string color = 3;
7378 * @return {string}
7379 */
7380proto.co.treelab.api.AddCoreInput.prototype.getColor = function() {
7381 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7382};
7383
7384
7385/** @param {string} value */
7386proto.co.treelab.api.AddCoreInput.prototype.setColor = function(value) {
7387 jspb.Message.setProto3StringField(this, 3, value);
7388};
7389
7390
7391/**
7392 * optional string icon = 4;
7393 * @return {string}
7394 */
7395proto.co.treelab.api.AddCoreInput.prototype.getIcon = function() {
7396 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
7397};
7398
7399
7400/** @param {string} value */
7401proto.co.treelab.api.AddCoreInput.prototype.setIcon = function(value) {
7402 jspb.Message.setProto3StringField(this, 4, value);
7403};
7404
7405
7406
7407/**
7408 * Generated by JsPbCodeGenerator.
7409 * @param {Array=} opt_data Optional initial data array, typically from a
7410 * server response, or constructed directly in Javascript. The array is used
7411 * in place and becomes part of the constructed object. It is not cloned.
7412 * If no data is provided, the constructed object will be empty, but still
7413 * valid.
7414 * @extends {jspb.Message}
7415 * @constructor
7416 */
7417proto.co.treelab.api.UpdateCoreInput = function(opt_data) {
7418 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
7419};
7420goog.inherits(proto.co.treelab.api.UpdateCoreInput, jspb.Message);
7421if (goog.DEBUG && !COMPILED) {
7422 proto.co.treelab.api.UpdateCoreInput.displayName = 'proto.co.treelab.api.UpdateCoreInput';
7423}
7424
7425
7426if (jspb.Message.GENERATE_TO_OBJECT) {
7427/**
7428 * Creates an object representation of this proto suitable for use in Soy templates.
7429 * Field names that are reserved in JavaScript and will be renamed to pb_name.
7430 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7431 * For the list of reserved names please see:
7432 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
7433 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
7434 * for transitional soy proto support: http://goto/soy-param-migration
7435 * @return {!Object}
7436 */
7437proto.co.treelab.api.UpdateCoreInput.prototype.toObject = function(opt_includeInstance) {
7438 return proto.co.treelab.api.UpdateCoreInput.toObject(opt_includeInstance, this);
7439};
7440
7441
7442/**
7443 * Static version of the {@see toObject} method.
7444 * @param {boolean|undefined} includeInstance Whether to include the JSPB
7445 * instance for transitional soy proto support:
7446 * http://goto/soy-param-migration
7447 * @param {!proto.co.treelab.api.UpdateCoreInput} msg The msg instance to transform.
7448 * @return {!Object}
7449 * @suppress {unusedLocalVariables} f is only used for nested messages
7450 */
7451proto.co.treelab.api.UpdateCoreInput.toObject = function(includeInstance, msg) {
7452 var f, obj = {
7453 workspaceid: jspb.Message.getFieldWithDefault(msg, 1, ""),
7454 coreid: jspb.Message.getFieldWithDefault(msg, 2, ""),
7455 corename: jspb.Message.getFieldWithDefault(msg, 3, ""),
7456 color: jspb.Message.getFieldWithDefault(msg, 4, ""),
7457 icon: jspb.Message.getFieldWithDefault(msg, 5, "")
7458 };
7459
7460 if (includeInstance) {
7461 obj.$jspbMessageInstance = msg;
7462 }
7463 return obj;
7464};
7465}
7466
7467
7468/**
7469 * Deserializes binary data (in protobuf wire format).
7470 * @param {jspb.ByteSource} bytes The bytes to deserialize.
7471 * @return {!proto.co.treelab.api.UpdateCoreInput}
7472 */
7473proto.co.treelab.api.UpdateCoreInput.deserializeBinary = function(bytes) {
7474 var reader = new jspb.BinaryReader(bytes);
7475 var msg = new proto.co.treelab.api.UpdateCoreInput;
7476 return proto.co.treelab.api.UpdateCoreInput.deserializeBinaryFromReader(msg, reader);
7477};
7478
7479
7480/**
7481 * Deserializes binary data (in protobuf wire format) from the
7482 * given reader into the given message object.
7483 * @param {!proto.co.treelab.api.UpdateCoreInput} msg The message object to deserialize into.
7484 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7485 * @return {!proto.co.treelab.api.UpdateCoreInput}
7486 */
7487proto.co.treelab.api.UpdateCoreInput.deserializeBinaryFromReader = function(msg, reader) {
7488 while (reader.nextField()) {
7489 if (reader.isEndGroup()) {
7490 break;
7491 }
7492 var field = reader.getFieldNumber();
7493 switch (field) {
7494 case 1:
7495 var value = /** @type {string} */ (reader.readString());
7496 msg.setWorkspaceid(value);
7497 break;
7498 case 2:
7499 var value = /** @type {string} */ (reader.readString());
7500 msg.setCoreid(value);
7501 break;
7502 case 3:
7503 var value = /** @type {string} */ (reader.readString());
7504 msg.setCorename(value);
7505 break;
7506 case 4:
7507 var value = /** @type {string} */ (reader.readString());
7508 msg.setColor(value);
7509 break;
7510 case 5:
7511 var value = /** @type {string} */ (reader.readString());
7512 msg.setIcon(value);
7513 break;
7514 default:
7515 reader.skipField();
7516 break;
7517 }
7518 }
7519 return msg;
7520};
7521
7522
7523/**
7524 * Serializes the message to binary data (in protobuf wire format).
7525 * @return {!Uint8Array}
7526 */
7527proto.co.treelab.api.UpdateCoreInput.prototype.serializeBinary = function() {
7528 var writer = new jspb.BinaryWriter();
7529 proto.co.treelab.api.UpdateCoreInput.serializeBinaryToWriter(this, writer);
7530 return writer.getResultBuffer();
7531};
7532
7533
7534/**
7535 * Serializes the given message to binary data (in protobuf wire
7536 * format), writing to the given BinaryWriter.
7537 * @param {!proto.co.treelab.api.UpdateCoreInput} message
7538 * @param {!jspb.BinaryWriter} writer
7539 * @suppress {unusedLocalVariables} f is only used for nested messages
7540 */
7541proto.co.treelab.api.UpdateCoreInput.serializeBinaryToWriter = function(message, writer) {
7542 var f = undefined;
7543 f = message.getWorkspaceid();
7544 if (f.length > 0) {
7545 writer.writeString(
7546 1,
7547 f
7548 );
7549 }
7550 f = message.getCoreid();
7551 if (f.length > 0) {
7552 writer.writeString(
7553 2,
7554 f
7555 );
7556 }
7557 f = message.getCorename();
7558 if (f.length > 0) {
7559 writer.writeString(
7560 3,
7561 f
7562 );
7563 }
7564 f = message.getColor();
7565 if (f.length > 0) {
7566 writer.writeString(
7567 4,
7568 f
7569 );
7570 }
7571 f = message.getIcon();
7572 if (f.length > 0) {
7573 writer.writeString(
7574 5,
7575 f
7576 );
7577 }
7578};
7579
7580
7581/**
7582 * optional string workspaceId = 1;
7583 * @return {string}
7584 */
7585proto.co.treelab.api.UpdateCoreInput.prototype.getWorkspaceid = function() {
7586 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7587};
7588
7589
7590/** @param {string} value */
7591proto.co.treelab.api.UpdateCoreInput.prototype.setWorkspaceid = function(value) {
7592 jspb.Message.setProto3StringField(this, 1, value);
7593};
7594
7595
7596/**
7597 * optional string coreId = 2;
7598 * @return {string}
7599 */
7600proto.co.treelab.api.UpdateCoreInput.prototype.getCoreid = function() {
7601 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7602};
7603
7604
7605/** @param {string} value */
7606proto.co.treelab.api.UpdateCoreInput.prototype.setCoreid = function(value) {
7607 jspb.Message.setProto3StringField(this, 2, value);
7608};
7609
7610
7611/**
7612 * optional string coreName = 3;
7613 * @return {string}
7614 */
7615proto.co.treelab.api.UpdateCoreInput.prototype.getCorename = function() {
7616 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7617};
7618
7619
7620/** @param {string} value */
7621proto.co.treelab.api.UpdateCoreInput.prototype.setCorename = function(value) {
7622 jspb.Message.setProto3StringField(this, 3, value);
7623};
7624
7625
7626/**
7627 * optional string color = 4;
7628 * @return {string}
7629 */
7630proto.co.treelab.api.UpdateCoreInput.prototype.getColor = function() {
7631 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
7632};
7633
7634
7635/** @param {string} value */
7636proto.co.treelab.api.UpdateCoreInput.prototype.setColor = function(value) {
7637 jspb.Message.setProto3StringField(this, 4, value);
7638};
7639
7640
7641/**
7642 * optional string icon = 5;
7643 * @return {string}
7644 */
7645proto.co.treelab.api.UpdateCoreInput.prototype.getIcon = function() {
7646 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
7647};
7648
7649
7650/** @param {string} value */
7651proto.co.treelab.api.UpdateCoreInput.prototype.setIcon = function(value) {
7652 jspb.Message.setProto3StringField(this, 5, value);
7653};
7654
7655
7656
7657/**
7658 * Generated by JsPbCodeGenerator.
7659 * @param {Array=} opt_data Optional initial data array, typically from a
7660 * server response, or constructed directly in Javascript. The array is used
7661 * in place and becomes part of the constructed object. It is not cloned.
7662 * If no data is provided, the constructed object will be empty, but still
7663 * valid.
7664 * @extends {jspb.Message}
7665 * @constructor
7666 */
7667proto.co.treelab.api.RemoveCoreInput = function(opt_data) {
7668 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
7669};
7670goog.inherits(proto.co.treelab.api.RemoveCoreInput, jspb.Message);
7671if (goog.DEBUG && !COMPILED) {
7672 proto.co.treelab.api.RemoveCoreInput.displayName = 'proto.co.treelab.api.RemoveCoreInput';
7673}
7674
7675
7676if (jspb.Message.GENERATE_TO_OBJECT) {
7677/**
7678 * Creates an object representation of this proto suitable for use in Soy templates.
7679 * Field names that are reserved in JavaScript and will be renamed to pb_name.
7680 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7681 * For the list of reserved names please see:
7682 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
7683 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
7684 * for transitional soy proto support: http://goto/soy-param-migration
7685 * @return {!Object}
7686 */
7687proto.co.treelab.api.RemoveCoreInput.prototype.toObject = function(opt_includeInstance) {
7688 return proto.co.treelab.api.RemoveCoreInput.toObject(opt_includeInstance, this);
7689};
7690
7691
7692/**
7693 * Static version of the {@see toObject} method.
7694 * @param {boolean|undefined} includeInstance Whether to include the JSPB
7695 * instance for transitional soy proto support:
7696 * http://goto/soy-param-migration
7697 * @param {!proto.co.treelab.api.RemoveCoreInput} msg The msg instance to transform.
7698 * @return {!Object}
7699 * @suppress {unusedLocalVariables} f is only used for nested messages
7700 */
7701proto.co.treelab.api.RemoveCoreInput.toObject = function(includeInstance, msg) {
7702 var f, obj = {
7703 workspaceid: jspb.Message.getFieldWithDefault(msg, 1, ""),
7704 coreid: jspb.Message.getFieldWithDefault(msg, 2, "")
7705 };
7706
7707 if (includeInstance) {
7708 obj.$jspbMessageInstance = msg;
7709 }
7710 return obj;
7711};
7712}
7713
7714
7715/**
7716 * Deserializes binary data (in protobuf wire format).
7717 * @param {jspb.ByteSource} bytes The bytes to deserialize.
7718 * @return {!proto.co.treelab.api.RemoveCoreInput}
7719 */
7720proto.co.treelab.api.RemoveCoreInput.deserializeBinary = function(bytes) {
7721 var reader = new jspb.BinaryReader(bytes);
7722 var msg = new proto.co.treelab.api.RemoveCoreInput;
7723 return proto.co.treelab.api.RemoveCoreInput.deserializeBinaryFromReader(msg, reader);
7724};
7725
7726
7727/**
7728 * Deserializes binary data (in protobuf wire format) from the
7729 * given reader into the given message object.
7730 * @param {!proto.co.treelab.api.RemoveCoreInput} msg The message object to deserialize into.
7731 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7732 * @return {!proto.co.treelab.api.RemoveCoreInput}
7733 */
7734proto.co.treelab.api.RemoveCoreInput.deserializeBinaryFromReader = function(msg, reader) {
7735 while (reader.nextField()) {
7736 if (reader.isEndGroup()) {
7737 break;
7738 }
7739 var field = reader.getFieldNumber();
7740 switch (field) {
7741 case 1:
7742 var value = /** @type {string} */ (reader.readString());
7743 msg.setWorkspaceid(value);
7744 break;
7745 case 2:
7746 var value = /** @type {string} */ (reader.readString());
7747 msg.setCoreid(value);
7748 break;
7749 default:
7750 reader.skipField();
7751 break;
7752 }
7753 }
7754 return msg;
7755};
7756
7757
7758/**
7759 * Serializes the message to binary data (in protobuf wire format).
7760 * @return {!Uint8Array}
7761 */
7762proto.co.treelab.api.RemoveCoreInput.prototype.serializeBinary = function() {
7763 var writer = new jspb.BinaryWriter();
7764 proto.co.treelab.api.RemoveCoreInput.serializeBinaryToWriter(this, writer);
7765 return writer.getResultBuffer();
7766};
7767
7768
7769/**
7770 * Serializes the given message to binary data (in protobuf wire
7771 * format), writing to the given BinaryWriter.
7772 * @param {!proto.co.treelab.api.RemoveCoreInput} message
7773 * @param {!jspb.BinaryWriter} writer
7774 * @suppress {unusedLocalVariables} f is only used for nested messages
7775 */
7776proto.co.treelab.api.RemoveCoreInput.serializeBinaryToWriter = function(message, writer) {
7777 var f = undefined;
7778 f = message.getWorkspaceid();
7779 if (f.length > 0) {
7780 writer.writeString(
7781 1,
7782 f
7783 );
7784 }
7785 f = message.getCoreid();
7786 if (f.length > 0) {
7787 writer.writeString(
7788 2,
7789 f
7790 );
7791 }
7792};
7793
7794
7795/**
7796 * optional string workspaceId = 1;
7797 * @return {string}
7798 */
7799proto.co.treelab.api.RemoveCoreInput.prototype.getWorkspaceid = function() {
7800 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7801};
7802
7803
7804/** @param {string} value */
7805proto.co.treelab.api.RemoveCoreInput.prototype.setWorkspaceid = function(value) {
7806 jspb.Message.setProto3StringField(this, 1, value);
7807};
7808
7809
7810/**
7811 * optional string coreId = 2;
7812 * @return {string}
7813 */
7814proto.co.treelab.api.RemoveCoreInput.prototype.getCoreid = function() {
7815 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7816};
7817
7818
7819/** @param {string} value */
7820proto.co.treelab.api.RemoveCoreInput.prototype.setCoreid = function(value) {
7821 jspb.Message.setProto3StringField(this, 2, value);
7822};
7823
7824
7825
7826/**
7827 * Generated by JsPbCodeGenerator.
7828 * @param {Array=} opt_data Optional initial data array, typically from a
7829 * server response, or constructed directly in Javascript. The array is used
7830 * in place and becomes part of the constructed object. It is not cloned.
7831 * If no data is provided, the constructed object will be empty, but still
7832 * valid.
7833 * @extends {jspb.Message}
7834 * @constructor
7835 */
7836proto.co.treelab.api.AddTableInput = function(opt_data) {
7837 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
7838};
7839goog.inherits(proto.co.treelab.api.AddTableInput, jspb.Message);
7840if (goog.DEBUG && !COMPILED) {
7841 proto.co.treelab.api.AddTableInput.displayName = 'proto.co.treelab.api.AddTableInput';
7842}
7843
7844
7845if (jspb.Message.GENERATE_TO_OBJECT) {
7846/**
7847 * Creates an object representation of this proto suitable for use in Soy templates.
7848 * Field names that are reserved in JavaScript and will be renamed to pb_name.
7849 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7850 * For the list of reserved names please see:
7851 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
7852 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
7853 * for transitional soy proto support: http://goto/soy-param-migration
7854 * @return {!Object}
7855 */
7856proto.co.treelab.api.AddTableInput.prototype.toObject = function(opt_includeInstance) {
7857 return proto.co.treelab.api.AddTableInput.toObject(opt_includeInstance, this);
7858};
7859
7860
7861/**
7862 * Static version of the {@see toObject} method.
7863 * @param {boolean|undefined} includeInstance Whether to include the JSPB
7864 * instance for transitional soy proto support:
7865 * http://goto/soy-param-migration
7866 * @param {!proto.co.treelab.api.AddTableInput} msg The msg instance to transform.
7867 * @return {!Object}
7868 * @suppress {unusedLocalVariables} f is only used for nested messages
7869 */
7870proto.co.treelab.api.AddTableInput.toObject = function(includeInstance, msg) {
7871 var f, obj = {
7872 workspaceid: jspb.Message.getFieldWithDefault(msg, 1, ""),
7873 coreid: jspb.Message.getFieldWithDefault(msg, 2, ""),
7874 tablename: jspb.Message.getFieldWithDefault(msg, 3, "")
7875 };
7876
7877 if (includeInstance) {
7878 obj.$jspbMessageInstance = msg;
7879 }
7880 return obj;
7881};
7882}
7883
7884
7885/**
7886 * Deserializes binary data (in protobuf wire format).
7887 * @param {jspb.ByteSource} bytes The bytes to deserialize.
7888 * @return {!proto.co.treelab.api.AddTableInput}
7889 */
7890proto.co.treelab.api.AddTableInput.deserializeBinary = function(bytes) {
7891 var reader = new jspb.BinaryReader(bytes);
7892 var msg = new proto.co.treelab.api.AddTableInput;
7893 return proto.co.treelab.api.AddTableInput.deserializeBinaryFromReader(msg, reader);
7894};
7895
7896
7897/**
7898 * Deserializes binary data (in protobuf wire format) from the
7899 * given reader into the given message object.
7900 * @param {!proto.co.treelab.api.AddTableInput} msg The message object to deserialize into.
7901 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7902 * @return {!proto.co.treelab.api.AddTableInput}
7903 */
7904proto.co.treelab.api.AddTableInput.deserializeBinaryFromReader = function(msg, reader) {
7905 while (reader.nextField()) {
7906 if (reader.isEndGroup()) {
7907 break;
7908 }
7909 var field = reader.getFieldNumber();
7910 switch (field) {
7911 case 1:
7912 var value = /** @type {string} */ (reader.readString());
7913 msg.setWorkspaceid(value);
7914 break;
7915 case 2:
7916 var value = /** @type {string} */ (reader.readString());
7917 msg.setCoreid(value);
7918 break;
7919 case 3:
7920 var value = /** @type {string} */ (reader.readString());
7921 msg.setTablename(value);
7922 break;
7923 default:
7924 reader.skipField();
7925 break;
7926 }
7927 }
7928 return msg;
7929};
7930
7931
7932/**
7933 * Serializes the message to binary data (in protobuf wire format).
7934 * @return {!Uint8Array}
7935 */
7936proto.co.treelab.api.AddTableInput.prototype.serializeBinary = function() {
7937 var writer = new jspb.BinaryWriter();
7938 proto.co.treelab.api.AddTableInput.serializeBinaryToWriter(this, writer);
7939 return writer.getResultBuffer();
7940};
7941
7942
7943/**
7944 * Serializes the given message to binary data (in protobuf wire
7945 * format), writing to the given BinaryWriter.
7946 * @param {!proto.co.treelab.api.AddTableInput} message
7947 * @param {!jspb.BinaryWriter} writer
7948 * @suppress {unusedLocalVariables} f is only used for nested messages
7949 */
7950proto.co.treelab.api.AddTableInput.serializeBinaryToWriter = function(message, writer) {
7951 var f = undefined;
7952 f = message.getWorkspaceid();
7953 if (f.length > 0) {
7954 writer.writeString(
7955 1,
7956 f
7957 );
7958 }
7959 f = message.getCoreid();
7960 if (f.length > 0) {
7961 writer.writeString(
7962 2,
7963 f
7964 );
7965 }
7966 f = message.getTablename();
7967 if (f.length > 0) {
7968 writer.writeString(
7969 3,
7970 f
7971 );
7972 }
7973};
7974
7975
7976/**
7977 * optional string workspaceId = 1;
7978 * @return {string}
7979 */
7980proto.co.treelab.api.AddTableInput.prototype.getWorkspaceid = function() {
7981 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7982};
7983
7984
7985/** @param {string} value */
7986proto.co.treelab.api.AddTableInput.prototype.setWorkspaceid = function(value) {
7987 jspb.Message.setProto3StringField(this, 1, value);
7988};
7989
7990
7991/**
7992 * optional string coreId = 2;
7993 * @return {string}
7994 */
7995proto.co.treelab.api.AddTableInput.prototype.getCoreid = function() {
7996 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7997};
7998
7999
8000/** @param {string} value */
8001proto.co.treelab.api.AddTableInput.prototype.setCoreid = function(value) {
8002 jspb.Message.setProto3StringField(this, 2, value);
8003};
8004
8005
8006/**
8007 * optional string tableName = 3;
8008 * @return {string}
8009 */
8010proto.co.treelab.api.AddTableInput.prototype.getTablename = function() {
8011 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8012};
8013
8014
8015/** @param {string} value */
8016proto.co.treelab.api.AddTableInput.prototype.setTablename = function(value) {
8017 jspb.Message.setProto3StringField(this, 3, value);
8018};
8019
8020
8021
8022/**
8023 * Generated by JsPbCodeGenerator.
8024 * @param {Array=} opt_data Optional initial data array, typically from a
8025 * server response, or constructed directly in Javascript. The array is used
8026 * in place and becomes part of the constructed object. It is not cloned.
8027 * If no data is provided, the constructed object will be empty, but still
8028 * valid.
8029 * @extends {jspb.Message}
8030 * @constructor
8031 */
8032proto.co.treelab.api.GetTableInput = function(opt_data) {
8033 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
8034};
8035goog.inherits(proto.co.treelab.api.GetTableInput, jspb.Message);
8036if (goog.DEBUG && !COMPILED) {
8037 proto.co.treelab.api.GetTableInput.displayName = 'proto.co.treelab.api.GetTableInput';
8038}
8039
8040
8041if (jspb.Message.GENERATE_TO_OBJECT) {
8042/**
8043 * Creates an object representation of this proto suitable for use in Soy templates.
8044 * Field names that are reserved in JavaScript and will be renamed to pb_name.
8045 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8046 * For the list of reserved names please see:
8047 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
8048 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
8049 * for transitional soy proto support: http://goto/soy-param-migration
8050 * @return {!Object}
8051 */
8052proto.co.treelab.api.GetTableInput.prototype.toObject = function(opt_includeInstance) {
8053 return proto.co.treelab.api.GetTableInput.toObject(opt_includeInstance, this);
8054};
8055
8056
8057/**
8058 * Static version of the {@see toObject} method.
8059 * @param {boolean|undefined} includeInstance Whether to include the JSPB
8060 * instance for transitional soy proto support:
8061 * http://goto/soy-param-migration
8062 * @param {!proto.co.treelab.api.GetTableInput} msg The msg instance to transform.
8063 * @return {!Object}
8064 * @suppress {unusedLocalVariables} f is only used for nested messages
8065 */
8066proto.co.treelab.api.GetTableInput.toObject = function(includeInstance, msg) {
8067 var f, obj = {
8068 workspaceid: jspb.Message.getFieldWithDefault(msg, 1, ""),
8069 coreid: jspb.Message.getFieldWithDefault(msg, 2, ""),
8070 tableid: jspb.Message.getFieldWithDefault(msg, 3, "")
8071 };
8072
8073 if (includeInstance) {
8074 obj.$jspbMessageInstance = msg;
8075 }
8076 return obj;
8077};
8078}
8079
8080
8081/**
8082 * Deserializes binary data (in protobuf wire format).
8083 * @param {jspb.ByteSource} bytes The bytes to deserialize.
8084 * @return {!proto.co.treelab.api.GetTableInput}
8085 */
8086proto.co.treelab.api.GetTableInput.deserializeBinary = function(bytes) {
8087 var reader = new jspb.BinaryReader(bytes);
8088 var msg = new proto.co.treelab.api.GetTableInput;
8089 return proto.co.treelab.api.GetTableInput.deserializeBinaryFromReader(msg, reader);
8090};
8091
8092
8093/**
8094 * Deserializes binary data (in protobuf wire format) from the
8095 * given reader into the given message object.
8096 * @param {!proto.co.treelab.api.GetTableInput} msg The message object to deserialize into.
8097 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8098 * @return {!proto.co.treelab.api.GetTableInput}
8099 */
8100proto.co.treelab.api.GetTableInput.deserializeBinaryFromReader = function(msg, reader) {
8101 while (reader.nextField()) {
8102 if (reader.isEndGroup()) {
8103 break;
8104 }
8105 var field = reader.getFieldNumber();
8106 switch (field) {
8107 case 1:
8108 var value = /** @type {string} */ (reader.readString());
8109 msg.setWorkspaceid(value);
8110 break;
8111 case 2:
8112 var value = /** @type {string} */ (reader.readString());
8113 msg.setCoreid(value);
8114 break;
8115 case 3:
8116 var value = /** @type {string} */ (reader.readString());
8117 msg.setTableid(value);
8118 break;
8119 default:
8120 reader.skipField();
8121 break;
8122 }
8123 }
8124 return msg;
8125};
8126
8127
8128/**
8129 * Serializes the message to binary data (in protobuf wire format).
8130 * @return {!Uint8Array}
8131 */
8132proto.co.treelab.api.GetTableInput.prototype.serializeBinary = function() {
8133 var writer = new jspb.BinaryWriter();
8134 proto.co.treelab.api.GetTableInput.serializeBinaryToWriter(this, writer);
8135 return writer.getResultBuffer();
8136};
8137
8138
8139/**
8140 * Serializes the given message to binary data (in protobuf wire
8141 * format), writing to the given BinaryWriter.
8142 * @param {!proto.co.treelab.api.GetTableInput} message
8143 * @param {!jspb.BinaryWriter} writer
8144 * @suppress {unusedLocalVariables} f is only used for nested messages
8145 */
8146proto.co.treelab.api.GetTableInput.serializeBinaryToWriter = function(message, writer) {
8147 var f = undefined;
8148 f = message.getWorkspaceid();
8149 if (f.length > 0) {
8150 writer.writeString(
8151 1,
8152 f
8153 );
8154 }
8155 f = message.getCoreid();
8156 if (f.length > 0) {
8157 writer.writeString(
8158 2,
8159 f
8160 );
8161 }
8162 f = message.getTableid();
8163 if (f.length > 0) {
8164 writer.writeString(
8165 3,
8166 f
8167 );
8168 }
8169};
8170
8171
8172/**
8173 * optional string workspaceId = 1;
8174 * @return {string}
8175 */
8176proto.co.treelab.api.GetTableInput.prototype.getWorkspaceid = function() {
8177 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8178};
8179
8180
8181/** @param {string} value */
8182proto.co.treelab.api.GetTableInput.prototype.setWorkspaceid = function(value) {
8183 jspb.Message.setProto3StringField(this, 1, value);
8184};
8185
8186
8187/**
8188 * optional string coreId = 2;
8189 * @return {string}
8190 */
8191proto.co.treelab.api.GetTableInput.prototype.getCoreid = function() {
8192 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8193};
8194
8195
8196/** @param {string} value */
8197proto.co.treelab.api.GetTableInput.prototype.setCoreid = function(value) {
8198 jspb.Message.setProto3StringField(this, 2, value);
8199};
8200
8201
8202/**
8203 * optional string tableId = 3;
8204 * @return {string}
8205 */
8206proto.co.treelab.api.GetTableInput.prototype.getTableid = function() {
8207 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8208};
8209
8210
8211/** @param {string} value */
8212proto.co.treelab.api.GetTableInput.prototype.setTableid = function(value) {
8213 jspb.Message.setProto3StringField(this, 3, value);
8214};
8215
8216
8217
8218/**
8219 * Generated by JsPbCodeGenerator.
8220 * @param {Array=} opt_data Optional initial data array, typically from a
8221 * server response, or constructed directly in Javascript. The array is used
8222 * in place and becomes part of the constructed object. It is not cloned.
8223 * If no data is provided, the constructed object will be empty, but still
8224 * valid.
8225 * @extends {jspb.Message}
8226 * @constructor
8227 */
8228proto.co.treelab.api.GetWorkspaceInput = function(opt_data) {
8229 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
8230};
8231goog.inherits(proto.co.treelab.api.GetWorkspaceInput, jspb.Message);
8232if (goog.DEBUG && !COMPILED) {
8233 proto.co.treelab.api.GetWorkspaceInput.displayName = 'proto.co.treelab.api.GetWorkspaceInput';
8234}
8235
8236
8237if (jspb.Message.GENERATE_TO_OBJECT) {
8238/**
8239 * Creates an object representation of this proto suitable for use in Soy templates.
8240 * Field names that are reserved in JavaScript and will be renamed to pb_name.
8241 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8242 * For the list of reserved names please see:
8243 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
8244 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
8245 * for transitional soy proto support: http://goto/soy-param-migration
8246 * @return {!Object}
8247 */
8248proto.co.treelab.api.GetWorkspaceInput.prototype.toObject = function(opt_includeInstance) {
8249 return proto.co.treelab.api.GetWorkspaceInput.toObject(opt_includeInstance, this);
8250};
8251
8252
8253/**
8254 * Static version of the {@see toObject} method.
8255 * @param {boolean|undefined} includeInstance Whether to include the JSPB
8256 * instance for transitional soy proto support:
8257 * http://goto/soy-param-migration
8258 * @param {!proto.co.treelab.api.GetWorkspaceInput} msg The msg instance to transform.
8259 * @return {!Object}
8260 * @suppress {unusedLocalVariables} f is only used for nested messages
8261 */
8262proto.co.treelab.api.GetWorkspaceInput.toObject = function(includeInstance, msg) {
8263 var f, obj = {
8264 id: jspb.Message.getFieldWithDefault(msg, 1, "")
8265 };
8266
8267 if (includeInstance) {
8268 obj.$jspbMessageInstance = msg;
8269 }
8270 return obj;
8271};
8272}
8273
8274
8275/**
8276 * Deserializes binary data (in protobuf wire format).
8277 * @param {jspb.ByteSource} bytes The bytes to deserialize.
8278 * @return {!proto.co.treelab.api.GetWorkspaceInput}
8279 */
8280proto.co.treelab.api.GetWorkspaceInput.deserializeBinary = function(bytes) {
8281 var reader = new jspb.BinaryReader(bytes);
8282 var msg = new proto.co.treelab.api.GetWorkspaceInput;
8283 return proto.co.treelab.api.GetWorkspaceInput.deserializeBinaryFromReader(msg, reader);
8284};
8285
8286
8287/**
8288 * Deserializes binary data (in protobuf wire format) from the
8289 * given reader into the given message object.
8290 * @param {!proto.co.treelab.api.GetWorkspaceInput} msg The message object to deserialize into.
8291 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8292 * @return {!proto.co.treelab.api.GetWorkspaceInput}
8293 */
8294proto.co.treelab.api.GetWorkspaceInput.deserializeBinaryFromReader = function(msg, reader) {
8295 while (reader.nextField()) {
8296 if (reader.isEndGroup()) {
8297 break;
8298 }
8299 var field = reader.getFieldNumber();
8300 switch (field) {
8301 case 1:
8302 var value = /** @type {string} */ (reader.readString());
8303 msg.setId(value);
8304 break;
8305 default:
8306 reader.skipField();
8307 break;
8308 }
8309 }
8310 return msg;
8311};
8312
8313
8314/**
8315 * Serializes the message to binary data (in protobuf wire format).
8316 * @return {!Uint8Array}
8317 */
8318proto.co.treelab.api.GetWorkspaceInput.prototype.serializeBinary = function() {
8319 var writer = new jspb.BinaryWriter();
8320 proto.co.treelab.api.GetWorkspaceInput.serializeBinaryToWriter(this, writer);
8321 return writer.getResultBuffer();
8322};
8323
8324
8325/**
8326 * Serializes the given message to binary data (in protobuf wire
8327 * format), writing to the given BinaryWriter.
8328 * @param {!proto.co.treelab.api.GetWorkspaceInput} message
8329 * @param {!jspb.BinaryWriter} writer
8330 * @suppress {unusedLocalVariables} f is only used for nested messages
8331 */
8332proto.co.treelab.api.GetWorkspaceInput.serializeBinaryToWriter = function(message, writer) {
8333 var f = undefined;
8334 f = message.getId();
8335 if (f.length > 0) {
8336 writer.writeString(
8337 1,
8338 f
8339 );
8340 }
8341};
8342
8343
8344/**
8345 * optional string id = 1;
8346 * @return {string}
8347 */
8348proto.co.treelab.api.GetWorkspaceInput.prototype.getId = function() {
8349 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8350};
8351
8352
8353/** @param {string} value */
8354proto.co.treelab.api.GetWorkspaceInput.prototype.setId = function(value) {
8355 jspb.Message.setProto3StringField(this, 1, value);
8356};
8357
8358
8359
8360/**
8361 * Generated by JsPbCodeGenerator.
8362 * @param {Array=} opt_data Optional initial data array, typically from a
8363 * server response, or constructed directly in Javascript. The array is used
8364 * in place and becomes part of the constructed object. It is not cloned.
8365 * If no data is provided, the constructed object will be empty, but still
8366 * valid.
8367 * @extends {jspb.Message}
8368 * @constructor
8369 */
8370proto.co.treelab.api.GetCoreInput = function(opt_data) {
8371 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
8372};
8373goog.inherits(proto.co.treelab.api.GetCoreInput, jspb.Message);
8374if (goog.DEBUG && !COMPILED) {
8375 proto.co.treelab.api.GetCoreInput.displayName = 'proto.co.treelab.api.GetCoreInput';
8376}
8377
8378
8379if (jspb.Message.GENERATE_TO_OBJECT) {
8380/**
8381 * Creates an object representation of this proto suitable for use in Soy templates.
8382 * Field names that are reserved in JavaScript and will be renamed to pb_name.
8383 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8384 * For the list of reserved names please see:
8385 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
8386 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
8387 * for transitional soy proto support: http://goto/soy-param-migration
8388 * @return {!Object}
8389 */
8390proto.co.treelab.api.GetCoreInput.prototype.toObject = function(opt_includeInstance) {
8391 return proto.co.treelab.api.GetCoreInput.toObject(opt_includeInstance, this);
8392};
8393
8394
8395/**
8396 * Static version of the {@see toObject} method.
8397 * @param {boolean|undefined} includeInstance Whether to include the JSPB
8398 * instance for transitional soy proto support:
8399 * http://goto/soy-param-migration
8400 * @param {!proto.co.treelab.api.GetCoreInput} msg The msg instance to transform.
8401 * @return {!Object}
8402 * @suppress {unusedLocalVariables} f is only used for nested messages
8403 */
8404proto.co.treelab.api.GetCoreInput.toObject = function(includeInstance, msg) {
8405 var f, obj = {
8406 workspaceid: jspb.Message.getFieldWithDefault(msg, 1, ""),
8407 coreid: jspb.Message.getFieldWithDefault(msg, 2, "")
8408 };
8409
8410 if (includeInstance) {
8411 obj.$jspbMessageInstance = msg;
8412 }
8413 return obj;
8414};
8415}
8416
8417
8418/**
8419 * Deserializes binary data (in protobuf wire format).
8420 * @param {jspb.ByteSource} bytes The bytes to deserialize.
8421 * @return {!proto.co.treelab.api.GetCoreInput}
8422 */
8423proto.co.treelab.api.GetCoreInput.deserializeBinary = function(bytes) {
8424 var reader = new jspb.BinaryReader(bytes);
8425 var msg = new proto.co.treelab.api.GetCoreInput;
8426 return proto.co.treelab.api.GetCoreInput.deserializeBinaryFromReader(msg, reader);
8427};
8428
8429
8430/**
8431 * Deserializes binary data (in protobuf wire format) from the
8432 * given reader into the given message object.
8433 * @param {!proto.co.treelab.api.GetCoreInput} msg The message object to deserialize into.
8434 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8435 * @return {!proto.co.treelab.api.GetCoreInput}
8436 */
8437proto.co.treelab.api.GetCoreInput.deserializeBinaryFromReader = function(msg, reader) {
8438 while (reader.nextField()) {
8439 if (reader.isEndGroup()) {
8440 break;
8441 }
8442 var field = reader.getFieldNumber();
8443 switch (field) {
8444 case 1:
8445 var value = /** @type {string} */ (reader.readString());
8446 msg.setWorkspaceid(value);
8447 break;
8448 case 2:
8449 var value = /** @type {string} */ (reader.readString());
8450 msg.setCoreid(value);
8451 break;
8452 default:
8453 reader.skipField();
8454 break;
8455 }
8456 }
8457 return msg;
8458};
8459
8460
8461/**
8462 * Serializes the message to binary data (in protobuf wire format).
8463 * @return {!Uint8Array}
8464 */
8465proto.co.treelab.api.GetCoreInput.prototype.serializeBinary = function() {
8466 var writer = new jspb.BinaryWriter();
8467 proto.co.treelab.api.GetCoreInput.serializeBinaryToWriter(this, writer);
8468 return writer.getResultBuffer();
8469};
8470
8471
8472/**
8473 * Serializes the given message to binary data (in protobuf wire
8474 * format), writing to the given BinaryWriter.
8475 * @param {!proto.co.treelab.api.GetCoreInput} message
8476 * @param {!jspb.BinaryWriter} writer
8477 * @suppress {unusedLocalVariables} f is only used for nested messages
8478 */
8479proto.co.treelab.api.GetCoreInput.serializeBinaryToWriter = function(message, writer) {
8480 var f = undefined;
8481 f = message.getWorkspaceid();
8482 if (f.length > 0) {
8483 writer.writeString(
8484 1,
8485 f
8486 );
8487 }
8488 f = message.getCoreid();
8489 if (f.length > 0) {
8490 writer.writeString(
8491 2,
8492 f
8493 );
8494 }
8495};
8496
8497
8498/**
8499 * optional string workspaceId = 1;
8500 * @return {string}
8501 */
8502proto.co.treelab.api.GetCoreInput.prototype.getWorkspaceid = function() {
8503 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8504};
8505
8506
8507/** @param {string} value */
8508proto.co.treelab.api.GetCoreInput.prototype.setWorkspaceid = function(value) {
8509 jspb.Message.setProto3StringField(this, 1, value);
8510};
8511
8512
8513/**
8514 * optional string coreId = 2;
8515 * @return {string}
8516 */
8517proto.co.treelab.api.GetCoreInput.prototype.getCoreid = function() {
8518 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8519};
8520
8521
8522/** @param {string} value */
8523proto.co.treelab.api.GetCoreInput.prototype.setCoreid = function(value) {
8524 jspb.Message.setProto3StringField(this, 2, value);
8525};
8526
8527
8528
8529/**
8530 * Generated by JsPbCodeGenerator.
8531 * @param {Array=} opt_data Optional initial data array, typically from a
8532 * server response, or constructed directly in Javascript. The array is used
8533 * in place and becomes part of the constructed object. It is not cloned.
8534 * If no data is provided, the constructed object will be empty, but still
8535 * valid.
8536 * @extends {jspb.Message}
8537 * @constructor
8538 */
8539proto.co.treelab.api.GetCoresInput = function(opt_data) {
8540 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
8541};
8542goog.inherits(proto.co.treelab.api.GetCoresInput, jspb.Message);
8543if (goog.DEBUG && !COMPILED) {
8544 proto.co.treelab.api.GetCoresInput.displayName = 'proto.co.treelab.api.GetCoresInput';
8545}
8546
8547
8548if (jspb.Message.GENERATE_TO_OBJECT) {
8549/**
8550 * Creates an object representation of this proto suitable for use in Soy templates.
8551 * Field names that are reserved in JavaScript and will be renamed to pb_name.
8552 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8553 * For the list of reserved names please see:
8554 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
8555 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
8556 * for transitional soy proto support: http://goto/soy-param-migration
8557 * @return {!Object}
8558 */
8559proto.co.treelab.api.GetCoresInput.prototype.toObject = function(opt_includeInstance) {
8560 return proto.co.treelab.api.GetCoresInput.toObject(opt_includeInstance, this);
8561};
8562
8563
8564/**
8565 * Static version of the {@see toObject} method.
8566 * @param {boolean|undefined} includeInstance Whether to include the JSPB
8567 * instance for transitional soy proto support:
8568 * http://goto/soy-param-migration
8569 * @param {!proto.co.treelab.api.GetCoresInput} msg The msg instance to transform.
8570 * @return {!Object}
8571 * @suppress {unusedLocalVariables} f is only used for nested messages
8572 */
8573proto.co.treelab.api.GetCoresInput.toObject = function(includeInstance, msg) {
8574 var f, obj = {
8575 workspaceid: jspb.Message.getFieldWithDefault(msg, 1, "")
8576 };
8577
8578 if (includeInstance) {
8579 obj.$jspbMessageInstance = msg;
8580 }
8581 return obj;
8582};
8583}
8584
8585
8586/**
8587 * Deserializes binary data (in protobuf wire format).
8588 * @param {jspb.ByteSource} bytes The bytes to deserialize.
8589 * @return {!proto.co.treelab.api.GetCoresInput}
8590 */
8591proto.co.treelab.api.GetCoresInput.deserializeBinary = function(bytes) {
8592 var reader = new jspb.BinaryReader(bytes);
8593 var msg = new proto.co.treelab.api.GetCoresInput;
8594 return proto.co.treelab.api.GetCoresInput.deserializeBinaryFromReader(msg, reader);
8595};
8596
8597
8598/**
8599 * Deserializes binary data (in protobuf wire format) from the
8600 * given reader into the given message object.
8601 * @param {!proto.co.treelab.api.GetCoresInput} msg The message object to deserialize into.
8602 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8603 * @return {!proto.co.treelab.api.GetCoresInput}
8604 */
8605proto.co.treelab.api.GetCoresInput.deserializeBinaryFromReader = function(msg, reader) {
8606 while (reader.nextField()) {
8607 if (reader.isEndGroup()) {
8608 break;
8609 }
8610 var field = reader.getFieldNumber();
8611 switch (field) {
8612 case 1:
8613 var value = /** @type {string} */ (reader.readString());
8614 msg.setWorkspaceid(value);
8615 break;
8616 default:
8617 reader.skipField();
8618 break;
8619 }
8620 }
8621 return msg;
8622};
8623
8624
8625/**
8626 * Serializes the message to binary data (in protobuf wire format).
8627 * @return {!Uint8Array}
8628 */
8629proto.co.treelab.api.GetCoresInput.prototype.serializeBinary = function() {
8630 var writer = new jspb.BinaryWriter();
8631 proto.co.treelab.api.GetCoresInput.serializeBinaryToWriter(this, writer);
8632 return writer.getResultBuffer();
8633};
8634
8635
8636/**
8637 * Serializes the given message to binary data (in protobuf wire
8638 * format), writing to the given BinaryWriter.
8639 * @param {!proto.co.treelab.api.GetCoresInput} message
8640 * @param {!jspb.BinaryWriter} writer
8641 * @suppress {unusedLocalVariables} f is only used for nested messages
8642 */
8643proto.co.treelab.api.GetCoresInput.serializeBinaryToWriter = function(message, writer) {
8644 var f = undefined;
8645 f = message.getWorkspaceid();
8646 if (f.length > 0) {
8647 writer.writeString(
8648 1,
8649 f
8650 );
8651 }
8652};
8653
8654
8655/**
8656 * optional string workspaceId = 1;
8657 * @return {string}
8658 */
8659proto.co.treelab.api.GetCoresInput.prototype.getWorkspaceid = function() {
8660 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8661};
8662
8663
8664/** @param {string} value */
8665proto.co.treelab.api.GetCoresInput.prototype.setWorkspaceid = function(value) {
8666 jspb.Message.setProto3StringField(this, 1, value);
8667};
8668
8669
8670
8671/**
8672 * Generated by JsPbCodeGenerator.
8673 * @param {Array=} opt_data Optional initial data array, typically from a
8674 * server response, or constructed directly in Javascript. The array is used
8675 * in place and becomes part of the constructed object. It is not cloned.
8676 * If no data is provided, the constructed object will be empty, but still
8677 * valid.
8678 * @extends {jspb.Message}
8679 * @constructor
8680 */
8681proto.co.treelab.api.GetTablesInput = function(opt_data) {
8682 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
8683};
8684goog.inherits(proto.co.treelab.api.GetTablesInput, jspb.Message);
8685if (goog.DEBUG && !COMPILED) {
8686 proto.co.treelab.api.GetTablesInput.displayName = 'proto.co.treelab.api.GetTablesInput';
8687}
8688
8689
8690if (jspb.Message.GENERATE_TO_OBJECT) {
8691/**
8692 * Creates an object representation of this proto suitable for use in Soy templates.
8693 * Field names that are reserved in JavaScript and will be renamed to pb_name.
8694 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8695 * For the list of reserved names please see:
8696 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
8697 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
8698 * for transitional soy proto support: http://goto/soy-param-migration
8699 * @return {!Object}
8700 */
8701proto.co.treelab.api.GetTablesInput.prototype.toObject = function(opt_includeInstance) {
8702 return proto.co.treelab.api.GetTablesInput.toObject(opt_includeInstance, this);
8703};
8704
8705
8706/**
8707 * Static version of the {@see toObject} method.
8708 * @param {boolean|undefined} includeInstance Whether to include the JSPB
8709 * instance for transitional soy proto support:
8710 * http://goto/soy-param-migration
8711 * @param {!proto.co.treelab.api.GetTablesInput} msg The msg instance to transform.
8712 * @return {!Object}
8713 * @suppress {unusedLocalVariables} f is only used for nested messages
8714 */
8715proto.co.treelab.api.GetTablesInput.toObject = function(includeInstance, msg) {
8716 var f, obj = {
8717 workspaceid: jspb.Message.getFieldWithDefault(msg, 1, ""),
8718 coreid: jspb.Message.getFieldWithDefault(msg, 2, "")
8719 };
8720
8721 if (includeInstance) {
8722 obj.$jspbMessageInstance = msg;
8723 }
8724 return obj;
8725};
8726}
8727
8728
8729/**
8730 * Deserializes binary data (in protobuf wire format).
8731 * @param {jspb.ByteSource} bytes The bytes to deserialize.
8732 * @return {!proto.co.treelab.api.GetTablesInput}
8733 */
8734proto.co.treelab.api.GetTablesInput.deserializeBinary = function(bytes) {
8735 var reader = new jspb.BinaryReader(bytes);
8736 var msg = new proto.co.treelab.api.GetTablesInput;
8737 return proto.co.treelab.api.GetTablesInput.deserializeBinaryFromReader(msg, reader);
8738};
8739
8740
8741/**
8742 * Deserializes binary data (in protobuf wire format) from the
8743 * given reader into the given message object.
8744 * @param {!proto.co.treelab.api.GetTablesInput} msg The message object to deserialize into.
8745 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8746 * @return {!proto.co.treelab.api.GetTablesInput}
8747 */
8748proto.co.treelab.api.GetTablesInput.deserializeBinaryFromReader = function(msg, reader) {
8749 while (reader.nextField()) {
8750 if (reader.isEndGroup()) {
8751 break;
8752 }
8753 var field = reader.getFieldNumber();
8754 switch (field) {
8755 case 1:
8756 var value = /** @type {string} */ (reader.readString());
8757 msg.setWorkspaceid(value);
8758 break;
8759 case 2:
8760 var value = /** @type {string} */ (reader.readString());
8761 msg.setCoreid(value);
8762 break;
8763 default:
8764 reader.skipField();
8765 break;
8766 }
8767 }
8768 return msg;
8769};
8770
8771
8772/**
8773 * Serializes the message to binary data (in protobuf wire format).
8774 * @return {!Uint8Array}
8775 */
8776proto.co.treelab.api.GetTablesInput.prototype.serializeBinary = function() {
8777 var writer = new jspb.BinaryWriter();
8778 proto.co.treelab.api.GetTablesInput.serializeBinaryToWriter(this, writer);
8779 return writer.getResultBuffer();
8780};
8781
8782
8783/**
8784 * Serializes the given message to binary data (in protobuf wire
8785 * format), writing to the given BinaryWriter.
8786 * @param {!proto.co.treelab.api.GetTablesInput} message
8787 * @param {!jspb.BinaryWriter} writer
8788 * @suppress {unusedLocalVariables} f is only used for nested messages
8789 */
8790proto.co.treelab.api.GetTablesInput.serializeBinaryToWriter = function(message, writer) {
8791 var f = undefined;
8792 f = message.getWorkspaceid();
8793 if (f.length > 0) {
8794 writer.writeString(
8795 1,
8796 f
8797 );
8798 }
8799 f = message.getCoreid();
8800 if (f.length > 0) {
8801 writer.writeString(
8802 2,
8803 f
8804 );
8805 }
8806};
8807
8808
8809/**
8810 * optional string workspaceId = 1;
8811 * @return {string}
8812 */
8813proto.co.treelab.api.GetTablesInput.prototype.getWorkspaceid = function() {
8814 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8815};
8816
8817
8818/** @param {string} value */
8819proto.co.treelab.api.GetTablesInput.prototype.setWorkspaceid = function(value) {
8820 jspb.Message.setProto3StringField(this, 1, value);
8821};
8822
8823
8824/**
8825 * optional string coreId = 2;
8826 * @return {string}
8827 */
8828proto.co.treelab.api.GetTablesInput.prototype.getCoreid = function() {
8829 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8830};
8831
8832
8833/** @param {string} value */
8834proto.co.treelab.api.GetTablesInput.prototype.setCoreid = function(value) {
8835 jspb.Message.setProto3StringField(this, 2, value);
8836};
8837
8838
8839
8840/**
8841 * Generated by JsPbCodeGenerator.
8842 * @param {Array=} opt_data Optional initial data array, typically from a
8843 * server response, or constructed directly in Javascript. The array is used
8844 * in place and becomes part of the constructed object. It is not cloned.
8845 * If no data is provided, the constructed object will be empty, but still
8846 * valid.
8847 * @extends {jspb.Message}
8848 * @constructor
8849 */
8850proto.co.treelab.api.WorkspaceId = function(opt_data) {
8851 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
8852};
8853goog.inherits(proto.co.treelab.api.WorkspaceId, jspb.Message);
8854if (goog.DEBUG && !COMPILED) {
8855 proto.co.treelab.api.WorkspaceId.displayName = 'proto.co.treelab.api.WorkspaceId';
8856}
8857
8858
8859if (jspb.Message.GENERATE_TO_OBJECT) {
8860/**
8861 * Creates an object representation of this proto suitable for use in Soy templates.
8862 * Field names that are reserved in JavaScript and will be renamed to pb_name.
8863 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8864 * For the list of reserved names please see:
8865 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
8866 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
8867 * for transitional soy proto support: http://goto/soy-param-migration
8868 * @return {!Object}
8869 */
8870proto.co.treelab.api.WorkspaceId.prototype.toObject = function(opt_includeInstance) {
8871 return proto.co.treelab.api.WorkspaceId.toObject(opt_includeInstance, this);
8872};
8873
8874
8875/**
8876 * Static version of the {@see toObject} method.
8877 * @param {boolean|undefined} includeInstance Whether to include the JSPB
8878 * instance for transitional soy proto support:
8879 * http://goto/soy-param-migration
8880 * @param {!proto.co.treelab.api.WorkspaceId} msg The msg instance to transform.
8881 * @return {!Object}
8882 * @suppress {unusedLocalVariables} f is only used for nested messages
8883 */
8884proto.co.treelab.api.WorkspaceId.toObject = function(includeInstance, msg) {
8885 var f, obj = {
8886 id: jspb.Message.getFieldWithDefault(msg, 1, "")
8887 };
8888
8889 if (includeInstance) {
8890 obj.$jspbMessageInstance = msg;
8891 }
8892 return obj;
8893};
8894}
8895
8896
8897/**
8898 * Deserializes binary data (in protobuf wire format).
8899 * @param {jspb.ByteSource} bytes The bytes to deserialize.
8900 * @return {!proto.co.treelab.api.WorkspaceId}
8901 */
8902proto.co.treelab.api.WorkspaceId.deserializeBinary = function(bytes) {
8903 var reader = new jspb.BinaryReader(bytes);
8904 var msg = new proto.co.treelab.api.WorkspaceId;
8905 return proto.co.treelab.api.WorkspaceId.deserializeBinaryFromReader(msg, reader);
8906};
8907
8908
8909/**
8910 * Deserializes binary data (in protobuf wire format) from the
8911 * given reader into the given message object.
8912 * @param {!proto.co.treelab.api.WorkspaceId} msg The message object to deserialize into.
8913 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8914 * @return {!proto.co.treelab.api.WorkspaceId}
8915 */
8916proto.co.treelab.api.WorkspaceId.deserializeBinaryFromReader = function(msg, reader) {
8917 while (reader.nextField()) {
8918 if (reader.isEndGroup()) {
8919 break;
8920 }
8921 var field = reader.getFieldNumber();
8922 switch (field) {
8923 case 1:
8924 var value = /** @type {string} */ (reader.readString());
8925 msg.setId(value);
8926 break;
8927 default:
8928 reader.skipField();
8929 break;
8930 }
8931 }
8932 return msg;
8933};
8934
8935
8936/**
8937 * Serializes the message to binary data (in protobuf wire format).
8938 * @return {!Uint8Array}
8939 */
8940proto.co.treelab.api.WorkspaceId.prototype.serializeBinary = function() {
8941 var writer = new jspb.BinaryWriter();
8942 proto.co.treelab.api.WorkspaceId.serializeBinaryToWriter(this, writer);
8943 return writer.getResultBuffer();
8944};
8945
8946
8947/**
8948 * Serializes the given message to binary data (in protobuf wire
8949 * format), writing to the given BinaryWriter.
8950 * @param {!proto.co.treelab.api.WorkspaceId} message
8951 * @param {!jspb.BinaryWriter} writer
8952 * @suppress {unusedLocalVariables} f is only used for nested messages
8953 */
8954proto.co.treelab.api.WorkspaceId.serializeBinaryToWriter = function(message, writer) {
8955 var f = undefined;
8956 f = message.getId();
8957 if (f.length > 0) {
8958 writer.writeString(
8959 1,
8960 f
8961 );
8962 }
8963};
8964
8965
8966/**
8967 * optional string id = 1;
8968 * @return {string}
8969 */
8970proto.co.treelab.api.WorkspaceId.prototype.getId = function() {
8971 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8972};
8973
8974
8975/** @param {string} value */
8976proto.co.treelab.api.WorkspaceId.prototype.setId = function(value) {
8977 jspb.Message.setProto3StringField(this, 1, value);
8978};
8979
8980
8981
8982/**
8983 * Generated by JsPbCodeGenerator.
8984 * @param {Array=} opt_data Optional initial data array, typically from a
8985 * server response, or constructed directly in Javascript. The array is used
8986 * in place and becomes part of the constructed object. It is not cloned.
8987 * If no data is provided, the constructed object will be empty, but still
8988 * valid.
8989 * @extends {jspb.Message}
8990 * @constructor
8991 */
8992proto.co.treelab.api.CoreId = function(opt_data) {
8993 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
8994};
8995goog.inherits(proto.co.treelab.api.CoreId, jspb.Message);
8996if (goog.DEBUG && !COMPILED) {
8997 proto.co.treelab.api.CoreId.displayName = 'proto.co.treelab.api.CoreId';
8998}
8999
9000
9001if (jspb.Message.GENERATE_TO_OBJECT) {
9002/**
9003 * Creates an object representation of this proto suitable for use in Soy templates.
9004 * Field names that are reserved in JavaScript and will be renamed to pb_name.
9005 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9006 * For the list of reserved names please see:
9007 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
9008 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
9009 * for transitional soy proto support: http://goto/soy-param-migration
9010 * @return {!Object}
9011 */
9012proto.co.treelab.api.CoreId.prototype.toObject = function(opt_includeInstance) {
9013 return proto.co.treelab.api.CoreId.toObject(opt_includeInstance, this);
9014};
9015
9016
9017/**
9018 * Static version of the {@see toObject} method.
9019 * @param {boolean|undefined} includeInstance Whether to include the JSPB
9020 * instance for transitional soy proto support:
9021 * http://goto/soy-param-migration
9022 * @param {!proto.co.treelab.api.CoreId} msg The msg instance to transform.
9023 * @return {!Object}
9024 * @suppress {unusedLocalVariables} f is only used for nested messages
9025 */
9026proto.co.treelab.api.CoreId.toObject = function(includeInstance, msg) {
9027 var f, obj = {
9028 id: jspb.Message.getFieldWithDefault(msg, 1, "")
9029 };
9030
9031 if (includeInstance) {
9032 obj.$jspbMessageInstance = msg;
9033 }
9034 return obj;
9035};
9036}
9037
9038
9039/**
9040 * Deserializes binary data (in protobuf wire format).
9041 * @param {jspb.ByteSource} bytes The bytes to deserialize.
9042 * @return {!proto.co.treelab.api.CoreId}
9043 */
9044proto.co.treelab.api.CoreId.deserializeBinary = function(bytes) {
9045 var reader = new jspb.BinaryReader(bytes);
9046 var msg = new proto.co.treelab.api.CoreId;
9047 return proto.co.treelab.api.CoreId.deserializeBinaryFromReader(msg, reader);
9048};
9049
9050
9051/**
9052 * Deserializes binary data (in protobuf wire format) from the
9053 * given reader into the given message object.
9054 * @param {!proto.co.treelab.api.CoreId} msg The message object to deserialize into.
9055 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9056 * @return {!proto.co.treelab.api.CoreId}
9057 */
9058proto.co.treelab.api.CoreId.deserializeBinaryFromReader = function(msg, reader) {
9059 while (reader.nextField()) {
9060 if (reader.isEndGroup()) {
9061 break;
9062 }
9063 var field = reader.getFieldNumber();
9064 switch (field) {
9065 case 1:
9066 var value = /** @type {string} */ (reader.readString());
9067 msg.setId(value);
9068 break;
9069 default:
9070 reader.skipField();
9071 break;
9072 }
9073 }
9074 return msg;
9075};
9076
9077
9078/**
9079 * Serializes the message to binary data (in protobuf wire format).
9080 * @return {!Uint8Array}
9081 */
9082proto.co.treelab.api.CoreId.prototype.serializeBinary = function() {
9083 var writer = new jspb.BinaryWriter();
9084 proto.co.treelab.api.CoreId.serializeBinaryToWriter(this, writer);
9085 return writer.getResultBuffer();
9086};
9087
9088
9089/**
9090 * Serializes the given message to binary data (in protobuf wire
9091 * format), writing to the given BinaryWriter.
9092 * @param {!proto.co.treelab.api.CoreId} message
9093 * @param {!jspb.BinaryWriter} writer
9094 * @suppress {unusedLocalVariables} f is only used for nested messages
9095 */
9096proto.co.treelab.api.CoreId.serializeBinaryToWriter = function(message, writer) {
9097 var f = undefined;
9098 f = message.getId();
9099 if (f.length > 0) {
9100 writer.writeString(
9101 1,
9102 f
9103 );
9104 }
9105};
9106
9107
9108/**
9109 * optional string id = 1;
9110 * @return {string}
9111 */
9112proto.co.treelab.api.CoreId.prototype.getId = function() {
9113 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9114};
9115
9116
9117/** @param {string} value */
9118proto.co.treelab.api.CoreId.prototype.setId = function(value) {
9119 jspb.Message.setProto3StringField(this, 1, value);
9120};
9121
9122
9123
9124/**
9125 * Generated by JsPbCodeGenerator.
9126 * @param {Array=} opt_data Optional initial data array, typically from a
9127 * server response, or constructed directly in Javascript. The array is used
9128 * in place and becomes part of the constructed object. It is not cloned.
9129 * If no data is provided, the constructed object will be empty, but still
9130 * valid.
9131 * @extends {jspb.Message}
9132 * @constructor
9133 */
9134proto.co.treelab.api.TableId = function(opt_data) {
9135 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
9136};
9137goog.inherits(proto.co.treelab.api.TableId, jspb.Message);
9138if (goog.DEBUG && !COMPILED) {
9139 proto.co.treelab.api.TableId.displayName = 'proto.co.treelab.api.TableId';
9140}
9141
9142
9143if (jspb.Message.GENERATE_TO_OBJECT) {
9144/**
9145 * Creates an object representation of this proto suitable for use in Soy templates.
9146 * Field names that are reserved in JavaScript and will be renamed to pb_name.
9147 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9148 * For the list of reserved names please see:
9149 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
9150 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
9151 * for transitional soy proto support: http://goto/soy-param-migration
9152 * @return {!Object}
9153 */
9154proto.co.treelab.api.TableId.prototype.toObject = function(opt_includeInstance) {
9155 return proto.co.treelab.api.TableId.toObject(opt_includeInstance, this);
9156};
9157
9158
9159/**
9160 * Static version of the {@see toObject} method.
9161 * @param {boolean|undefined} includeInstance Whether to include the JSPB
9162 * instance for transitional soy proto support:
9163 * http://goto/soy-param-migration
9164 * @param {!proto.co.treelab.api.TableId} msg The msg instance to transform.
9165 * @return {!Object}
9166 * @suppress {unusedLocalVariables} f is only used for nested messages
9167 */
9168proto.co.treelab.api.TableId.toObject = function(includeInstance, msg) {
9169 var f, obj = {
9170 id: jspb.Message.getFieldWithDefault(msg, 1, "")
9171 };
9172
9173 if (includeInstance) {
9174 obj.$jspbMessageInstance = msg;
9175 }
9176 return obj;
9177};
9178}
9179
9180
9181/**
9182 * Deserializes binary data (in protobuf wire format).
9183 * @param {jspb.ByteSource} bytes The bytes to deserialize.
9184 * @return {!proto.co.treelab.api.TableId}
9185 */
9186proto.co.treelab.api.TableId.deserializeBinary = function(bytes) {
9187 var reader = new jspb.BinaryReader(bytes);
9188 var msg = new proto.co.treelab.api.TableId;
9189 return proto.co.treelab.api.TableId.deserializeBinaryFromReader(msg, reader);
9190};
9191
9192
9193/**
9194 * Deserializes binary data (in protobuf wire format) from the
9195 * given reader into the given message object.
9196 * @param {!proto.co.treelab.api.TableId} msg The message object to deserialize into.
9197 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9198 * @return {!proto.co.treelab.api.TableId}
9199 */
9200proto.co.treelab.api.TableId.deserializeBinaryFromReader = function(msg, reader) {
9201 while (reader.nextField()) {
9202 if (reader.isEndGroup()) {
9203 break;
9204 }
9205 var field = reader.getFieldNumber();
9206 switch (field) {
9207 case 1:
9208 var value = /** @type {string} */ (reader.readString());
9209 msg.setId(value);
9210 break;
9211 default:
9212 reader.skipField();
9213 break;
9214 }
9215 }
9216 return msg;
9217};
9218
9219
9220/**
9221 * Serializes the message to binary data (in protobuf wire format).
9222 * @return {!Uint8Array}
9223 */
9224proto.co.treelab.api.TableId.prototype.serializeBinary = function() {
9225 var writer = new jspb.BinaryWriter();
9226 proto.co.treelab.api.TableId.serializeBinaryToWriter(this, writer);
9227 return writer.getResultBuffer();
9228};
9229
9230
9231/**
9232 * Serializes the given message to binary data (in protobuf wire
9233 * format), writing to the given BinaryWriter.
9234 * @param {!proto.co.treelab.api.TableId} message
9235 * @param {!jspb.BinaryWriter} writer
9236 * @suppress {unusedLocalVariables} f is only used for nested messages
9237 */
9238proto.co.treelab.api.TableId.serializeBinaryToWriter = function(message, writer) {
9239 var f = undefined;
9240 f = message.getId();
9241 if (f.length > 0) {
9242 writer.writeString(
9243 1,
9244 f
9245 );
9246 }
9247};
9248
9249
9250/**
9251 * optional string id = 1;
9252 * @return {string}
9253 */
9254proto.co.treelab.api.TableId.prototype.getId = function() {
9255 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9256};
9257
9258
9259/** @param {string} value */
9260proto.co.treelab.api.TableId.prototype.setId = function(value) {
9261 jspb.Message.setProto3StringField(this, 1, value);
9262};
9263
9264
9265
9266/**
9267 * Generated by JsPbCodeGenerator.
9268 * @param {Array=} opt_data Optional initial data array, typically from a
9269 * server response, or constructed directly in Javascript. The array is used
9270 * in place and becomes part of the constructed object. It is not cloned.
9271 * If no data is provided, the constructed object will be empty, but still
9272 * valid.
9273 * @extends {jspb.Message}
9274 * @constructor
9275 */
9276proto.co.treelab.api.ColumnId = function(opt_data) {
9277 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
9278};
9279goog.inherits(proto.co.treelab.api.ColumnId, jspb.Message);
9280if (goog.DEBUG && !COMPILED) {
9281 proto.co.treelab.api.ColumnId.displayName = 'proto.co.treelab.api.ColumnId';
9282}
9283
9284
9285if (jspb.Message.GENERATE_TO_OBJECT) {
9286/**
9287 * Creates an object representation of this proto suitable for use in Soy templates.
9288 * Field names that are reserved in JavaScript and will be renamed to pb_name.
9289 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9290 * For the list of reserved names please see:
9291 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
9292 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
9293 * for transitional soy proto support: http://goto/soy-param-migration
9294 * @return {!Object}
9295 */
9296proto.co.treelab.api.ColumnId.prototype.toObject = function(opt_includeInstance) {
9297 return proto.co.treelab.api.ColumnId.toObject(opt_includeInstance, this);
9298};
9299
9300
9301/**
9302 * Static version of the {@see toObject} method.
9303 * @param {boolean|undefined} includeInstance Whether to include the JSPB
9304 * instance for transitional soy proto support:
9305 * http://goto/soy-param-migration
9306 * @param {!proto.co.treelab.api.ColumnId} msg The msg instance to transform.
9307 * @return {!Object}
9308 * @suppress {unusedLocalVariables} f is only used for nested messages
9309 */
9310proto.co.treelab.api.ColumnId.toObject = function(includeInstance, msg) {
9311 var f, obj = {
9312 id: jspb.Message.getFieldWithDefault(msg, 1, "")
9313 };
9314
9315 if (includeInstance) {
9316 obj.$jspbMessageInstance = msg;
9317 }
9318 return obj;
9319};
9320}
9321
9322
9323/**
9324 * Deserializes binary data (in protobuf wire format).
9325 * @param {jspb.ByteSource} bytes The bytes to deserialize.
9326 * @return {!proto.co.treelab.api.ColumnId}
9327 */
9328proto.co.treelab.api.ColumnId.deserializeBinary = function(bytes) {
9329 var reader = new jspb.BinaryReader(bytes);
9330 var msg = new proto.co.treelab.api.ColumnId;
9331 return proto.co.treelab.api.ColumnId.deserializeBinaryFromReader(msg, reader);
9332};
9333
9334
9335/**
9336 * Deserializes binary data (in protobuf wire format) from the
9337 * given reader into the given message object.
9338 * @param {!proto.co.treelab.api.ColumnId} msg The message object to deserialize into.
9339 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9340 * @return {!proto.co.treelab.api.ColumnId}
9341 */
9342proto.co.treelab.api.ColumnId.deserializeBinaryFromReader = function(msg, reader) {
9343 while (reader.nextField()) {
9344 if (reader.isEndGroup()) {
9345 break;
9346 }
9347 var field = reader.getFieldNumber();
9348 switch (field) {
9349 case 1:
9350 var value = /** @type {string} */ (reader.readString());
9351 msg.setId(value);
9352 break;
9353 default:
9354 reader.skipField();
9355 break;
9356 }
9357 }
9358 return msg;
9359};
9360
9361
9362/**
9363 * Serializes the message to binary data (in protobuf wire format).
9364 * @return {!Uint8Array}
9365 */
9366proto.co.treelab.api.ColumnId.prototype.serializeBinary = function() {
9367 var writer = new jspb.BinaryWriter();
9368 proto.co.treelab.api.ColumnId.serializeBinaryToWriter(this, writer);
9369 return writer.getResultBuffer();
9370};
9371
9372
9373/**
9374 * Serializes the given message to binary data (in protobuf wire
9375 * format), writing to the given BinaryWriter.
9376 * @param {!proto.co.treelab.api.ColumnId} message
9377 * @param {!jspb.BinaryWriter} writer
9378 * @suppress {unusedLocalVariables} f is only used for nested messages
9379 */
9380proto.co.treelab.api.ColumnId.serializeBinaryToWriter = function(message, writer) {
9381 var f = undefined;
9382 f = message.getId();
9383 if (f.length > 0) {
9384 writer.writeString(
9385 1,
9386 f
9387 );
9388 }
9389};
9390
9391
9392/**
9393 * optional string id = 1;
9394 * @return {string}
9395 */
9396proto.co.treelab.api.ColumnId.prototype.getId = function() {
9397 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9398};
9399
9400
9401/** @param {string} value */
9402proto.co.treelab.api.ColumnId.prototype.setId = function(value) {
9403 jspb.Message.setProto3StringField(this, 1, value);
9404};
9405
9406
9407
9408/**
9409 * Generated by JsPbCodeGenerator.
9410 * @param {Array=} opt_data Optional initial data array, typically from a
9411 * server response, or constructed directly in Javascript. The array is used
9412 * in place and becomes part of the constructed object. It is not cloned.
9413 * If no data is provided, the constructed object will be empty, but still
9414 * valid.
9415 * @extends {jspb.Message}
9416 * @constructor
9417 */
9418proto.co.treelab.api.RowId = function(opt_data) {
9419 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
9420};
9421goog.inherits(proto.co.treelab.api.RowId, jspb.Message);
9422if (goog.DEBUG && !COMPILED) {
9423 proto.co.treelab.api.RowId.displayName = 'proto.co.treelab.api.RowId';
9424}
9425
9426
9427if (jspb.Message.GENERATE_TO_OBJECT) {
9428/**
9429 * Creates an object representation of this proto suitable for use in Soy templates.
9430 * Field names that are reserved in JavaScript and will be renamed to pb_name.
9431 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9432 * For the list of reserved names please see:
9433 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
9434 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
9435 * for transitional soy proto support: http://goto/soy-param-migration
9436 * @return {!Object}
9437 */
9438proto.co.treelab.api.RowId.prototype.toObject = function(opt_includeInstance) {
9439 return proto.co.treelab.api.RowId.toObject(opt_includeInstance, this);
9440};
9441
9442
9443/**
9444 * Static version of the {@see toObject} method.
9445 * @param {boolean|undefined} includeInstance Whether to include the JSPB
9446 * instance for transitional soy proto support:
9447 * http://goto/soy-param-migration
9448 * @param {!proto.co.treelab.api.RowId} msg The msg instance to transform.
9449 * @return {!Object}
9450 * @suppress {unusedLocalVariables} f is only used for nested messages
9451 */
9452proto.co.treelab.api.RowId.toObject = function(includeInstance, msg) {
9453 var f, obj = {
9454 id: jspb.Message.getFieldWithDefault(msg, 1, "")
9455 };
9456
9457 if (includeInstance) {
9458 obj.$jspbMessageInstance = msg;
9459 }
9460 return obj;
9461};
9462}
9463
9464
9465/**
9466 * Deserializes binary data (in protobuf wire format).
9467 * @param {jspb.ByteSource} bytes The bytes to deserialize.
9468 * @return {!proto.co.treelab.api.RowId}
9469 */
9470proto.co.treelab.api.RowId.deserializeBinary = function(bytes) {
9471 var reader = new jspb.BinaryReader(bytes);
9472 var msg = new proto.co.treelab.api.RowId;
9473 return proto.co.treelab.api.RowId.deserializeBinaryFromReader(msg, reader);
9474};
9475
9476
9477/**
9478 * Deserializes binary data (in protobuf wire format) from the
9479 * given reader into the given message object.
9480 * @param {!proto.co.treelab.api.RowId} msg The message object to deserialize into.
9481 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9482 * @return {!proto.co.treelab.api.RowId}
9483 */
9484proto.co.treelab.api.RowId.deserializeBinaryFromReader = function(msg, reader) {
9485 while (reader.nextField()) {
9486 if (reader.isEndGroup()) {
9487 break;
9488 }
9489 var field = reader.getFieldNumber();
9490 switch (field) {
9491 case 1:
9492 var value = /** @type {string} */ (reader.readString());
9493 msg.setId(value);
9494 break;
9495 default:
9496 reader.skipField();
9497 break;
9498 }
9499 }
9500 return msg;
9501};
9502
9503
9504/**
9505 * Serializes the message to binary data (in protobuf wire format).
9506 * @return {!Uint8Array}
9507 */
9508proto.co.treelab.api.RowId.prototype.serializeBinary = function() {
9509 var writer = new jspb.BinaryWriter();
9510 proto.co.treelab.api.RowId.serializeBinaryToWriter(this, writer);
9511 return writer.getResultBuffer();
9512};
9513
9514
9515/**
9516 * Serializes the given message to binary data (in protobuf wire
9517 * format), writing to the given BinaryWriter.
9518 * @param {!proto.co.treelab.api.RowId} message
9519 * @param {!jspb.BinaryWriter} writer
9520 * @suppress {unusedLocalVariables} f is only used for nested messages
9521 */
9522proto.co.treelab.api.RowId.serializeBinaryToWriter = function(message, writer) {
9523 var f = undefined;
9524 f = message.getId();
9525 if (f.length > 0) {
9526 writer.writeString(
9527 1,
9528 f
9529 );
9530 }
9531};
9532
9533
9534/**
9535 * optional string id = 1;
9536 * @return {string}
9537 */
9538proto.co.treelab.api.RowId.prototype.getId = function() {
9539 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9540};
9541
9542
9543/** @param {string} value */
9544proto.co.treelab.api.RowId.prototype.setId = function(value) {
9545 jspb.Message.setProto3StringField(this, 1, value);
9546};
9547
9548
9549
9550/**
9551 * Generated by JsPbCodeGenerator.
9552 * @param {Array=} opt_data Optional initial data array, typically from a
9553 * server response, or constructed directly in Javascript. The array is used
9554 * in place and becomes part of the constructed object. It is not cloned.
9555 * If no data is provided, the constructed object will be empty, but still
9556 * valid.
9557 * @extends {jspb.Message}
9558 * @constructor
9559 */
9560proto.co.treelab.api.ViewId = function(opt_data) {
9561 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
9562};
9563goog.inherits(proto.co.treelab.api.ViewId, jspb.Message);
9564if (goog.DEBUG && !COMPILED) {
9565 proto.co.treelab.api.ViewId.displayName = 'proto.co.treelab.api.ViewId';
9566}
9567
9568
9569if (jspb.Message.GENERATE_TO_OBJECT) {
9570/**
9571 * Creates an object representation of this proto suitable for use in Soy templates.
9572 * Field names that are reserved in JavaScript and will be renamed to pb_name.
9573 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9574 * For the list of reserved names please see:
9575 * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
9576 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
9577 * for transitional soy proto support: http://goto/soy-param-migration
9578 * @return {!Object}
9579 */
9580proto.co.treelab.api.ViewId.prototype.toObject = function(opt_includeInstance) {
9581 return proto.co.treelab.api.ViewId.toObject(opt_includeInstance, this);
9582};
9583
9584
9585/**
9586 * Static version of the {@see toObject} method.
9587 * @param {boolean|undefined} includeInstance Whether to include the JSPB
9588 * instance for transitional soy proto support:
9589 * http://goto/soy-param-migration
9590 * @param {!proto.co.treelab.api.ViewId} msg The msg instance to transform.
9591 * @return {!Object}
9592 * @suppress {unusedLocalVariables} f is only used for nested messages
9593 */
9594proto.co.treelab.api.ViewId.toObject = function(includeInstance, msg) {
9595 var f, obj = {
9596 id: jspb.Message.getFieldWithDefault(msg, 1, "")
9597 };
9598
9599 if (includeInstance) {
9600 obj.$jspbMessageInstance = msg;
9601 }
9602 return obj;
9603};
9604}
9605
9606
9607/**
9608 * Deserializes binary data (in protobuf wire format).
9609 * @param {jspb.ByteSource} bytes The bytes to deserialize.
9610 * @return {!proto.co.treelab.api.ViewId}
9611 */
9612proto.co.treelab.api.ViewId.deserializeBinary = function(bytes) {
9613 var reader = new jspb.BinaryReader(bytes);
9614 var msg = new proto.co.treelab.api.ViewId;
9615 return proto.co.treelab.api.ViewId.deserializeBinaryFromReader(msg, reader);
9616};
9617
9618
9619/**
9620 * Deserializes binary data (in protobuf wire format) from the
9621 * given reader into the given message object.
9622 * @param {!proto.co.treelab.api.ViewId} msg The message object to deserialize into.
9623 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9624 * @return {!proto.co.treelab.api.ViewId}
9625 */
9626proto.co.treelab.api.ViewId.deserializeBinaryFromReader = function(msg, reader) {
9627 while (reader.nextField()) {
9628 if (reader.isEndGroup()) {
9629 break;
9630 }
9631 var field = reader.getFieldNumber();
9632 switch (field) {
9633 case 1:
9634 var value = /** @type {string} */ (reader.readString());
9635 msg.setId(value);
9636 break;
9637 default:
9638 reader.skipField();
9639 break;
9640 }
9641 }
9642 return msg;
9643};
9644
9645
9646/**
9647 * Serializes the message to binary data (in protobuf wire format).
9648 * @return {!Uint8Array}
9649 */
9650proto.co.treelab.api.ViewId.prototype.serializeBinary = function() {
9651 var writer = new jspb.BinaryWriter();
9652 proto.co.treelab.api.ViewId.serializeBinaryToWriter(this, writer);
9653 return writer.getResultBuffer();
9654};
9655
9656
9657/**
9658 * Serializes the given message to binary data (in protobuf wire
9659 * format), writing to the given BinaryWriter.
9660 * @param {!proto.co.treelab.api.ViewId} message
9661 * @param {!jspb.BinaryWriter} writer
9662 * @suppress {unusedLocalVariables} f is only used for nested messages
9663 */
9664proto.co.treelab.api.ViewId.serializeBinaryToWriter = function(message, writer) {
9665 var f = undefined;
9666 f = message.getId();
9667 if (f.length > 0) {
9668 writer.writeString(
9669 1,
9670 f
9671 );
9672 }
9673};
9674
9675
9676/**
9677 * optional string id = 1;
9678 * @return {string}
9679 */
9680proto.co.treelab.api.ViewId.prototype.getId = function() {
9681 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9682};
9683
9684
9685/** @param {string} value */
9686proto.co.treelab.api.ViewId.prototype.setId = function(value) {
9687 jspb.Message.setProto3StringField(this, 1, value);
9688};
9689
9690
9691goog.object.extend(exports, proto.co.treelab.api);