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