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