blob: 25f18ef260a092386162f6f436137eabc791f2b5 [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();
1226 return this;};
1227
1228
1229
1230
1231
1232if (jspb.Message.GENERATE_TO_OBJECT) {
1233/**
1234 * Creates an object representation of this proto.
1235 * Field names that are reserved in JavaScript and will be renamed to pb_name.
1236 * Optional fields that are not set will be set to undefined.
1237 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1238 * For the list of reserved names please see:
1239 * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1240 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1241 * JSPB instance for transitional soy proto support:
1242 * http://goto/soy-param-migration
1243 * @return {!Object}
1244 */
1245proto.workflows.Action.MarkDuplicateAction.prototype.toObject = function(opt_includeInstance) {
1246 return proto.workflows.Action.MarkDuplicateAction.toObject(opt_includeInstance, this);
1247};
1248
1249
1250/**
1251 * Static version of the {@see toObject} method.
1252 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1253 * the JSPB instance for transitional soy proto support:
1254 * http://goto/soy-param-migration
1255 * @param {!proto.workflows.Action.MarkDuplicateAction} msg The msg instance to transform.
1256 * @return {!Object}
1257 * @suppress {unusedLocalVariables} f is only used for nested messages
1258 */
1259proto.workflows.Action.MarkDuplicateAction.toObject = function(includeInstance, msg) {
1260 var f, obj = {
1261 destination: (f = msg.getDestination()) && proto.workflows.Thread.toObject(includeInstance, f)
1262 };
1263
1264 if (includeInstance) {
1265 obj.$jspbMessageInstance = msg;
1266 }
1267 return obj;
1268};
1269}
1270
1271
1272/**
1273 * Deserializes binary data (in protobuf wire format).
1274 * @param {jspb.ByteSource} bytes The bytes to deserialize.
1275 * @return {!proto.workflows.Action.MarkDuplicateAction}
1276 */
1277proto.workflows.Action.MarkDuplicateAction.deserializeBinary = function(bytes) {
1278 var reader = new jspb.BinaryReader(bytes);
1279 var msg = new proto.workflows.Action.MarkDuplicateAction;
1280 return proto.workflows.Action.MarkDuplicateAction.deserializeBinaryFromReader(msg, reader);
1281};
1282
1283
1284/**
1285 * Deserializes binary data (in protobuf wire format) from the
1286 * given reader into the given message object.
1287 * @param {!proto.workflows.Action.MarkDuplicateAction} msg The message object to deserialize into.
1288 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1289 * @return {!proto.workflows.Action.MarkDuplicateAction}
1290 */
1291proto.workflows.Action.MarkDuplicateAction.deserializeBinaryFromReader = function(msg, reader) {
1292 while (reader.nextField()) {
1293 if (reader.isEndGroup()) {
1294 break;
1295 }
1296 var field = reader.getFieldNumber();
1297 switch (field) {
1298 case 1:
1299 var value = new proto.workflows.Thread;
1300 reader.readMessage(value,proto.workflows.Thread.deserializeBinaryFromReader);
1301 msg.setDestination(value);
1302 break;
1303 default:
1304 reader.skipField();
1305 break;
1306 }
1307 }
1308 return msg;
1309};
1310
1311
1312/**
1313 * Serializes the message to binary data (in protobuf wire format).
1314 * @return {!Uint8Array}
1315 */
1316proto.workflows.Action.MarkDuplicateAction.prototype.serializeBinary = function() {
1317 var writer = new jspb.BinaryWriter();
1318 proto.workflows.Action.MarkDuplicateAction.serializeBinaryToWriter(this, writer);
1319 return writer.getResultBuffer();
1320};
1321
1322
1323/**
1324 * Serializes the given message to binary data (in protobuf wire
1325 * format), writing to the given BinaryWriter.
1326 * @param {!proto.workflows.Action.MarkDuplicateAction} message
1327 * @param {!jspb.BinaryWriter} writer
1328 * @suppress {unusedLocalVariables} f is only used for nested messages
1329 */
1330proto.workflows.Action.MarkDuplicateAction.serializeBinaryToWriter = function(message, writer) {
1331 var f = undefined;
1332 f = message.getDestination();
1333 if (f != null) {
1334 writer.writeMessage(
1335 1,
1336 f,
1337 proto.workflows.Thread.serializeBinaryToWriter
1338 );
1339 }
1340};
1341
1342
1343/**
1344 * optional Thread destination = 1;
1345 * @return {?proto.workflows.Thread}
1346 */
1347proto.workflows.Action.MarkDuplicateAction.prototype.getDestination = function() {
1348 return /** @type{?proto.workflows.Thread} */ (
1349 jspb.Message.getWrapperField(this, proto.workflows.Thread, 1));
1350};
1351
1352
1353/**
1354 * @param {?proto.workflows.Thread|undefined} value
1355 * @return {!proto.workflows.Action.MarkDuplicateAction} returns this
1356*/
1357proto.workflows.Action.MarkDuplicateAction.prototype.setDestination = function(value) {
1358 return jspb.Message.setWrapperField(this, 1, value);
1359};
1360
1361
1362/**
1363 * Clears the message field making it undefined.
1364 * @return {!proto.workflows.Action.MarkDuplicateAction} returns this
1365 */
1366proto.workflows.Action.MarkDuplicateAction.prototype.clearDestination = function() {
1367 return this.setDestination(undefined);
1368};
1369
1370
1371/**
1372 * Returns whether this field is set.
1373 * @return {boolean}
1374 */
1375proto.workflows.Action.MarkDuplicateAction.prototype.hasDestination = function() {
1376 return jspb.Message.getField(this, 1) != null;
1377};
1378
1379
1380
1381
1382
1383if (jspb.Message.GENERATE_TO_OBJECT) {
1384/**
1385 * Creates an object representation of this proto.
1386 * Field names that are reserved in JavaScript and will be renamed to pb_name.
1387 * Optional fields that are not set will be set to undefined.
1388 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1389 * For the list of reserved names please see:
1390 * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1391 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1392 * JSPB instance for transitional soy proto support:
1393 * http://goto/soy-param-migration
1394 * @return {!Object}
1395 */
1396proto.workflows.Action.UnmarkDuplicateAction.prototype.toObject = function(opt_includeInstance) {
1397 return proto.workflows.Action.UnmarkDuplicateAction.toObject(opt_includeInstance, this);
1398};
1399
1400
1401/**
1402 * Static version of the {@see toObject} method.
1403 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1404 * the JSPB instance for transitional soy proto support:
1405 * http://goto/soy-param-migration
1406 * @param {!proto.workflows.Action.UnmarkDuplicateAction} msg The msg instance to transform.
1407 * @return {!Object}
1408 * @suppress {unusedLocalVariables} f is only used for nested messages
1409 */
1410proto.workflows.Action.UnmarkDuplicateAction.toObject = function(includeInstance, msg) {
1411 var f, obj = {
1412
1413 };
1414
1415 if (includeInstance) {
1416 obj.$jspbMessageInstance = msg;
1417 }
1418 return obj;
1419};
1420}
1421
1422
1423/**
1424 * Deserializes binary data (in protobuf wire format).
1425 * @param {jspb.ByteSource} bytes The bytes to deserialize.
1426 * @return {!proto.workflows.Action.UnmarkDuplicateAction}
1427 */
1428proto.workflows.Action.UnmarkDuplicateAction.deserializeBinary = function(bytes) {
1429 var reader = new jspb.BinaryReader(bytes);
1430 var msg = new proto.workflows.Action.UnmarkDuplicateAction;
1431 return proto.workflows.Action.UnmarkDuplicateAction.deserializeBinaryFromReader(msg, reader);
1432};
1433
1434
1435/**
1436 * Deserializes binary data (in protobuf wire format) from the
1437 * given reader into the given message object.
1438 * @param {!proto.workflows.Action.UnmarkDuplicateAction} msg The message object to deserialize into.
1439 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1440 * @return {!proto.workflows.Action.UnmarkDuplicateAction}
1441 */
1442proto.workflows.Action.UnmarkDuplicateAction.deserializeBinaryFromReader = function(msg, reader) {
1443 while (reader.nextField()) {
1444 if (reader.isEndGroup()) {
1445 break;
1446 }
1447 var field = reader.getFieldNumber();
1448 switch (field) {
1449 default:
1450 reader.skipField();
1451 break;
1452 }
1453 }
1454 return msg;
1455};
1456
1457
1458/**
1459 * Serializes the message to binary data (in protobuf wire format).
1460 * @return {!Uint8Array}
1461 */
1462proto.workflows.Action.UnmarkDuplicateAction.prototype.serializeBinary = function() {
1463 var writer = new jspb.BinaryWriter();
1464 proto.workflows.Action.UnmarkDuplicateAction.serializeBinaryToWriter(this, writer);
1465 return writer.getResultBuffer();
1466};
1467
1468
1469/**
1470 * Serializes the given message to binary data (in protobuf wire
1471 * format), writing to the given BinaryWriter.
1472 * @param {!proto.workflows.Action.UnmarkDuplicateAction} message
1473 * @param {!jspb.BinaryWriter} writer
1474 * @suppress {unusedLocalVariables} f is only used for nested messages
1475 */
1476proto.workflows.Action.UnmarkDuplicateAction.serializeBinaryToWriter = function(message, writer) {
1477 var f = undefined;
1478};
1479
1480
1481
1482
1483
1484if (jspb.Message.GENERATE_TO_OBJECT) {
1485/**
1486 * Creates an object representation of this proto.
1487 * Field names that are reserved in JavaScript and will be renamed to pb_name.
1488 * Optional fields that are not set will be set to undefined.
1489 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1490 * For the list of reserved names please see:
1491 * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1492 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1493 * JSPB instance for transitional soy proto support:
1494 * http://goto/soy-param-migration
1495 * @return {!Object}
1496 */
Adrià Vilanova Martínezf5147982022-10-13 22:07:36 +02001497proto.workflows.Action.ReplyWithCRAction.prototype.toObject = function(opt_includeInstance) {
1498 return proto.workflows.Action.ReplyWithCRAction.toObject(opt_includeInstance, this);
1499};
1500
1501
1502/**
1503 * Static version of the {@see toObject} method.
1504 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1505 * the JSPB instance for transitional soy proto support:
1506 * http://goto/soy-param-migration
1507 * @param {!proto.workflows.Action.ReplyWithCRAction} msg The msg instance to transform.
1508 * @return {!Object}
1509 * @suppress {unusedLocalVariables} f is only used for nested messages
1510 */
1511proto.workflows.Action.ReplyWithCRAction.toObject = function(includeInstance, msg) {
1512 var f, obj = {
1513 cannedResponseId: jspb.Message.getFieldWithDefault(msg, 1, 0),
1514 subscribe: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
1515 markAsAnswer: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
1516 };
1517
1518 if (includeInstance) {
1519 obj.$jspbMessageInstance = msg;
1520 }
1521 return obj;
1522};
1523}
1524
1525
1526/**
1527 * Deserializes binary data (in protobuf wire format).
1528 * @param {jspb.ByteSource} bytes The bytes to deserialize.
1529 * @return {!proto.workflows.Action.ReplyWithCRAction}
1530 */
1531proto.workflows.Action.ReplyWithCRAction.deserializeBinary = function(bytes) {
1532 var reader = new jspb.BinaryReader(bytes);
1533 var msg = new proto.workflows.Action.ReplyWithCRAction;
1534 return proto.workflows.Action.ReplyWithCRAction.deserializeBinaryFromReader(msg, reader);
1535};
1536
1537
1538/**
1539 * Deserializes binary data (in protobuf wire format) from the
1540 * given reader into the given message object.
1541 * @param {!proto.workflows.Action.ReplyWithCRAction} msg The message object to deserialize into.
1542 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1543 * @return {!proto.workflows.Action.ReplyWithCRAction}
1544 */
1545proto.workflows.Action.ReplyWithCRAction.deserializeBinaryFromReader = function(msg, reader) {
1546 while (reader.nextField()) {
1547 if (reader.isEndGroup()) {
1548 break;
1549 }
1550 var field = reader.getFieldNumber();
1551 switch (field) {
1552 case 1:
1553 var value = /** @type {number} */ (reader.readInt64());
1554 msg.setCannedResponseId(value);
1555 break;
1556 case 2:
1557 var value = /** @type {boolean} */ (reader.readBool());
1558 msg.setSubscribe(value);
1559 break;
1560 case 3:
1561 var value = /** @type {boolean} */ (reader.readBool());
1562 msg.setMarkAsAnswer(value);
1563 break;
1564 default:
1565 reader.skipField();
1566 break;
1567 }
1568 }
1569 return msg;
1570};
1571
1572
1573/**
1574 * Serializes the message to binary data (in protobuf wire format).
1575 * @return {!Uint8Array}
1576 */
1577proto.workflows.Action.ReplyWithCRAction.prototype.serializeBinary = function() {
1578 var writer = new jspb.BinaryWriter();
1579 proto.workflows.Action.ReplyWithCRAction.serializeBinaryToWriter(this, writer);
1580 return writer.getResultBuffer();
1581};
1582
1583
1584/**
1585 * Serializes the given message to binary data (in protobuf wire
1586 * format), writing to the given BinaryWriter.
1587 * @param {!proto.workflows.Action.ReplyWithCRAction} message
1588 * @param {!jspb.BinaryWriter} writer
1589 * @suppress {unusedLocalVariables} f is only used for nested messages
1590 */
1591proto.workflows.Action.ReplyWithCRAction.serializeBinaryToWriter = function(message, writer) {
1592 var f = undefined;
1593 f = message.getCannedResponseId();
1594 if (f !== 0) {
1595 writer.writeInt64(
1596 1,
1597 f
1598 );
1599 }
1600 f = message.getSubscribe();
1601 if (f) {
1602 writer.writeBool(
1603 2,
1604 f
1605 );
1606 }
1607 f = message.getMarkAsAnswer();
1608 if (f) {
1609 writer.writeBool(
1610 3,
1611 f
1612 );
1613 }
1614};
1615
1616
1617/**
1618 * optional int64 canned_response_id = 1;
1619 * @return {number}
1620 */
1621proto.workflows.Action.ReplyWithCRAction.prototype.getCannedResponseId = function() {
1622 return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1623};
1624
1625
1626/**
1627 * @param {number} value
1628 * @return {!proto.workflows.Action.ReplyWithCRAction} returns this
1629 */
1630proto.workflows.Action.ReplyWithCRAction.prototype.setCannedResponseId = function(value) {
1631 return jspb.Message.setProto3IntField(this, 1, value);
1632};
1633
1634
1635/**
1636 * optional bool subscribe = 2;
1637 * @return {boolean}
1638 */
1639proto.workflows.Action.ReplyWithCRAction.prototype.getSubscribe = function() {
1640 return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
1641};
1642
1643
1644/**
1645 * @param {boolean} value
1646 * @return {!proto.workflows.Action.ReplyWithCRAction} returns this
1647 */
1648proto.workflows.Action.ReplyWithCRAction.prototype.setSubscribe = function(value) {
1649 return jspb.Message.setProto3BooleanField(this, 2, value);
1650};
1651
1652
1653/**
1654 * optional bool mark_as_answer = 3;
1655 * @return {boolean}
1656 */
1657proto.workflows.Action.ReplyWithCRAction.prototype.getMarkAsAnswer = function() {
1658 return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
1659};
1660
1661
1662/**
1663 * @param {boolean} value
1664 * @return {!proto.workflows.Action.ReplyWithCRAction} returns this
1665 */
1666proto.workflows.Action.ReplyWithCRAction.prototype.setMarkAsAnswer = function(value) {
1667 return jspb.Message.setProto3BooleanField(this, 3, value);
1668};
1669
1670
1671
1672
1673
1674if (jspb.Message.GENERATE_TO_OBJECT) {
1675/**
1676 * Creates an object representation of this proto.
1677 * Field names that are reserved in JavaScript and will be renamed to pb_name.
1678 * Optional fields that are not set will be set to undefined.
1679 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1680 * For the list of reserved names please see:
1681 * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1682 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1683 * JSPB instance for transitional soy proto support:
1684 * http://goto/soy-param-migration
1685 * @return {!Object}
1686 */
Adrià Vilanova Martínez41188592022-01-21 19:47:41 +01001687proto.workflows.Action.StarAction.prototype.toObject = function(opt_includeInstance) {
1688 return proto.workflows.Action.StarAction.toObject(opt_includeInstance, this);
1689};
1690
1691
1692/**
1693 * Static version of the {@see toObject} method.
1694 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1695 * the JSPB instance for transitional soy proto support:
1696 * http://goto/soy-param-migration
1697 * @param {!proto.workflows.Action.StarAction} msg The msg instance to transform.
1698 * @return {!Object}
1699 * @suppress {unusedLocalVariables} f is only used for nested messages
1700 */
1701proto.workflows.Action.StarAction.toObject = function(includeInstance, msg) {
1702 var f, obj = {
1703 star: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
1704 };
1705
1706 if (includeInstance) {
1707 obj.$jspbMessageInstance = msg;
1708 }
1709 return obj;
1710};
1711}
1712
1713
1714/**
1715 * Deserializes binary data (in protobuf wire format).
1716 * @param {jspb.ByteSource} bytes The bytes to deserialize.
1717 * @return {!proto.workflows.Action.StarAction}
1718 */
1719proto.workflows.Action.StarAction.deserializeBinary = function(bytes) {
1720 var reader = new jspb.BinaryReader(bytes);
1721 var msg = new proto.workflows.Action.StarAction;
1722 return proto.workflows.Action.StarAction.deserializeBinaryFromReader(msg, reader);
1723};
1724
1725
1726/**
1727 * Deserializes binary data (in protobuf wire format) from the
1728 * given reader into the given message object.
1729 * @param {!proto.workflows.Action.StarAction} msg The message object to deserialize into.
1730 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1731 * @return {!proto.workflows.Action.StarAction}
1732 */
1733proto.workflows.Action.StarAction.deserializeBinaryFromReader = function(msg, reader) {
1734 while (reader.nextField()) {
1735 if (reader.isEndGroup()) {
1736 break;
1737 }
1738 var field = reader.getFieldNumber();
1739 switch (field) {
1740 case 1:
1741 var value = /** @type {boolean} */ (reader.readBool());
1742 msg.setStar(value);
1743 break;
1744 default:
1745 reader.skipField();
1746 break;
1747 }
1748 }
1749 return msg;
1750};
1751
1752
1753/**
1754 * Serializes the message to binary data (in protobuf wire format).
1755 * @return {!Uint8Array}
1756 */
1757proto.workflows.Action.StarAction.prototype.serializeBinary = function() {
1758 var writer = new jspb.BinaryWriter();
1759 proto.workflows.Action.StarAction.serializeBinaryToWriter(this, writer);
1760 return writer.getResultBuffer();
1761};
1762
1763
1764/**
1765 * Serializes the given message to binary data (in protobuf wire
1766 * format), writing to the given BinaryWriter.
1767 * @param {!proto.workflows.Action.StarAction} message
1768 * @param {!jspb.BinaryWriter} writer
1769 * @suppress {unusedLocalVariables} f is only used for nested messages
1770 */
1771proto.workflows.Action.StarAction.serializeBinaryToWriter = function(message, writer) {
1772 var f = undefined;
1773 f = message.getStar();
1774 if (f) {
1775 writer.writeBool(
1776 1,
1777 f
1778 );
1779 }
1780};
1781
1782
1783/**
1784 * optional bool star = 1;
1785 * @return {boolean}
1786 */
1787proto.workflows.Action.StarAction.prototype.getStar = function() {
1788 return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
1789};
1790
1791
1792/**
1793 * @param {boolean} value
1794 * @return {!proto.workflows.Action.StarAction} returns this
1795 */
1796proto.workflows.Action.StarAction.prototype.setStar = function(value) {
1797 return jspb.Message.setProto3BooleanField(this, 1, value);
1798};
1799
1800
1801
1802
1803
1804if (jspb.Message.GENERATE_TO_OBJECT) {
1805/**
1806 * Creates an object representation of this proto.
1807 * Field names that are reserved in JavaScript and will be renamed to pb_name.
1808 * Optional fields that are not set will be set to undefined.
1809 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1810 * For the list of reserved names please see:
1811 * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1812 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1813 * JSPB instance for transitional soy proto support:
1814 * http://goto/soy-param-migration
1815 * @return {!Object}
1816 */
1817proto.workflows.Action.SubscribeAction.prototype.toObject = function(opt_includeInstance) {
1818 return proto.workflows.Action.SubscribeAction.toObject(opt_includeInstance, this);
1819};
1820
1821
1822/**
1823 * Static version of the {@see toObject} method.
1824 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1825 * the JSPB instance for transitional soy proto support:
1826 * http://goto/soy-param-migration
1827 * @param {!proto.workflows.Action.SubscribeAction} msg The msg instance to transform.
1828 * @return {!Object}
1829 * @suppress {unusedLocalVariables} f is only used for nested messages
1830 */
1831proto.workflows.Action.SubscribeAction.toObject = function(includeInstance, msg) {
1832 var f, obj = {
1833 subscribe: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
1834 };
1835
1836 if (includeInstance) {
1837 obj.$jspbMessageInstance = msg;
1838 }
1839 return obj;
1840};
1841}
1842
1843
1844/**
1845 * Deserializes binary data (in protobuf wire format).
1846 * @param {jspb.ByteSource} bytes The bytes to deserialize.
1847 * @return {!proto.workflows.Action.SubscribeAction}
1848 */
1849proto.workflows.Action.SubscribeAction.deserializeBinary = function(bytes) {
1850 var reader = new jspb.BinaryReader(bytes);
1851 var msg = new proto.workflows.Action.SubscribeAction;
1852 return proto.workflows.Action.SubscribeAction.deserializeBinaryFromReader(msg, reader);
1853};
1854
1855
1856/**
1857 * Deserializes binary data (in protobuf wire format) from the
1858 * given reader into the given message object.
1859 * @param {!proto.workflows.Action.SubscribeAction} msg The message object to deserialize into.
1860 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1861 * @return {!proto.workflows.Action.SubscribeAction}
1862 */
1863proto.workflows.Action.SubscribeAction.deserializeBinaryFromReader = function(msg, reader) {
1864 while (reader.nextField()) {
1865 if (reader.isEndGroup()) {
1866 break;
1867 }
1868 var field = reader.getFieldNumber();
1869 switch (field) {
1870 case 1:
1871 var value = /** @type {boolean} */ (reader.readBool());
1872 msg.setSubscribe(value);
1873 break;
1874 default:
1875 reader.skipField();
1876 break;
1877 }
1878 }
1879 return msg;
1880};
1881
1882
1883/**
1884 * Serializes the message to binary data (in protobuf wire format).
1885 * @return {!Uint8Array}
1886 */
1887proto.workflows.Action.SubscribeAction.prototype.serializeBinary = function() {
1888 var writer = new jspb.BinaryWriter();
1889 proto.workflows.Action.SubscribeAction.serializeBinaryToWriter(this, writer);
1890 return writer.getResultBuffer();
1891};
1892
1893
1894/**
1895 * Serializes the given message to binary data (in protobuf wire
1896 * format), writing to the given BinaryWriter.
1897 * @param {!proto.workflows.Action.SubscribeAction} message
1898 * @param {!jspb.BinaryWriter} writer
1899 * @suppress {unusedLocalVariables} f is only used for nested messages
1900 */
1901proto.workflows.Action.SubscribeAction.serializeBinaryToWriter = function(message, writer) {
1902 var f = undefined;
1903 f = message.getSubscribe();
1904 if (f) {
1905 writer.writeBool(
1906 1,
1907 f
1908 );
1909 }
1910};
1911
1912
1913/**
1914 * optional bool subscribe = 1;
1915 * @return {boolean}
1916 */
1917proto.workflows.Action.SubscribeAction.prototype.getSubscribe = function() {
1918 return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
1919};
1920
1921
1922/**
1923 * @param {boolean} value
1924 * @return {!proto.workflows.Action.SubscribeAction} returns this
1925 */
1926proto.workflows.Action.SubscribeAction.prototype.setSubscribe = function(value) {
1927 return jspb.Message.setProto3BooleanField(this, 1, value);
1928};
1929
1930
1931
1932
1933
1934if (jspb.Message.GENERATE_TO_OBJECT) {
1935/**
1936 * Creates an object representation of this proto.
1937 * Field names that are reserved in JavaScript and will be renamed to pb_name.
1938 * Optional fields that are not set will be set to undefined.
1939 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1940 * For the list of reserved names please see:
1941 * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1942 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1943 * JSPB instance for transitional soy proto support:
1944 * http://goto/soy-param-migration
1945 * @return {!Object}
1946 */
1947proto.workflows.Action.VoteAction.prototype.toObject = function(opt_includeInstance) {
1948 return proto.workflows.Action.VoteAction.toObject(opt_includeInstance, this);
1949};
1950
1951
1952/**
1953 * Static version of the {@see toObject} method.
1954 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1955 * the JSPB instance for transitional soy proto support:
1956 * http://goto/soy-param-migration
1957 * @param {!proto.workflows.Action.VoteAction} msg The msg instance to transform.
1958 * @return {!Object}
1959 * @suppress {unusedLocalVariables} f is only used for nested messages
1960 */
1961proto.workflows.Action.VoteAction.toObject = function(includeInstance, msg) {
1962 var f, obj = {
1963 vote: jspb.Message.getFieldWithDefault(msg, 1, 0)
1964 };
1965
1966 if (includeInstance) {
1967 obj.$jspbMessageInstance = msg;
1968 }
1969 return obj;
1970};
1971}
1972
1973
1974/**
1975 * Deserializes binary data (in protobuf wire format).
1976 * @param {jspb.ByteSource} bytes The bytes to deserialize.
1977 * @return {!proto.workflows.Action.VoteAction}
1978 */
1979proto.workflows.Action.VoteAction.deserializeBinary = function(bytes) {
1980 var reader = new jspb.BinaryReader(bytes);
1981 var msg = new proto.workflows.Action.VoteAction;
1982 return proto.workflows.Action.VoteAction.deserializeBinaryFromReader(msg, reader);
1983};
1984
1985
1986/**
1987 * Deserializes binary data (in protobuf wire format) from the
1988 * given reader into the given message object.
1989 * @param {!proto.workflows.Action.VoteAction} msg The message object to deserialize into.
1990 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1991 * @return {!proto.workflows.Action.VoteAction}
1992 */
1993proto.workflows.Action.VoteAction.deserializeBinaryFromReader = function(msg, reader) {
1994 while (reader.nextField()) {
1995 if (reader.isEndGroup()) {
1996 break;
1997 }
1998 var field = reader.getFieldNumber();
1999 switch (field) {
2000 case 1:
2001 var value = /** @type {!proto.workflows.Action.VoteAction.Vote} */ (reader.readEnum());
2002 msg.setVote(value);
2003 break;
2004 default:
2005 reader.skipField();
2006 break;
2007 }
2008 }
2009 return msg;
2010};
2011
2012
2013/**
2014 * Serializes the message to binary data (in protobuf wire format).
2015 * @return {!Uint8Array}
2016 */
2017proto.workflows.Action.VoteAction.prototype.serializeBinary = function() {
2018 var writer = new jspb.BinaryWriter();
2019 proto.workflows.Action.VoteAction.serializeBinaryToWriter(this, writer);
2020 return writer.getResultBuffer();
2021};
2022
2023
2024/**
2025 * Serializes the given message to binary data (in protobuf wire
2026 * format), writing to the given BinaryWriter.
2027 * @param {!proto.workflows.Action.VoteAction} message
2028 * @param {!jspb.BinaryWriter} writer
2029 * @suppress {unusedLocalVariables} f is only used for nested messages
2030 */
2031proto.workflows.Action.VoteAction.serializeBinaryToWriter = function(message, writer) {
2032 var f = undefined;
2033 f = message.getVote();
2034 if (f !== 0.0) {
2035 writer.writeEnum(
2036 1,
2037 f
2038 );
2039 }
2040};
2041
2042
2043/**
2044 * @enum {number}
2045 */
2046proto.workflows.Action.VoteAction.Vote = {
2047 NONE: 0,
2048 UP: 1,
2049 DOWN: -1
2050};
2051
2052/**
2053 * optional Vote vote = 1;
2054 * @return {!proto.workflows.Action.VoteAction.Vote}
2055 */
2056proto.workflows.Action.VoteAction.prototype.getVote = function() {
2057 return /** @type {!proto.workflows.Action.VoteAction.Vote} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2058};
2059
2060
2061/**
2062 * @param {!proto.workflows.Action.VoteAction.Vote} value
2063 * @return {!proto.workflows.Action.VoteAction} returns this
2064 */
2065proto.workflows.Action.VoteAction.prototype.setVote = function(value) {
2066 return jspb.Message.setProto3EnumField(this, 1, value);
2067};
2068
2069
2070
2071
2072
2073if (jspb.Message.GENERATE_TO_OBJECT) {
2074/**
2075 * Creates an object representation of this proto.
2076 * Field names that are reserved in JavaScript and will be renamed to pb_name.
2077 * Optional fields that are not set will be set to undefined.
2078 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2079 * For the list of reserved names please see:
2080 * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2081 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2082 * JSPB instance for transitional soy proto support:
2083 * http://goto/soy-param-migration
2084 * @return {!Object}
2085 */
2086proto.workflows.Action.AttributeAction.prototype.toObject = function(opt_includeInstance) {
2087 return proto.workflows.Action.AttributeAction.toObject(opt_includeInstance, this);
2088};
2089
2090
2091/**
2092 * Static version of the {@see toObject} method.
2093 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2094 * the JSPB instance for transitional soy proto support:
2095 * http://goto/soy-param-migration
2096 * @param {!proto.workflows.Action.AttributeAction} msg The msg instance to transform.
2097 * @return {!Object}
2098 * @suppress {unusedLocalVariables} f is only used for nested messages
2099 */
2100proto.workflows.Action.AttributeAction.toObject = function(includeInstance, msg) {
2101 var f, obj = {
2102 attributeAction: jspb.Message.getFieldWithDefault(msg, 1, 0)
2103 };
2104
2105 if (includeInstance) {
2106 obj.$jspbMessageInstance = msg;
2107 }
2108 return obj;
2109};
2110}
2111
2112
2113/**
2114 * Deserializes binary data (in protobuf wire format).
2115 * @param {jspb.ByteSource} bytes The bytes to deserialize.
2116 * @return {!proto.workflows.Action.AttributeAction}
2117 */
2118proto.workflows.Action.AttributeAction.deserializeBinary = function(bytes) {
2119 var reader = new jspb.BinaryReader(bytes);
2120 var msg = new proto.workflows.Action.AttributeAction;
2121 return proto.workflows.Action.AttributeAction.deserializeBinaryFromReader(msg, reader);
2122};
2123
2124
2125/**
2126 * Deserializes binary data (in protobuf wire format) from the
2127 * given reader into the given message object.
2128 * @param {!proto.workflows.Action.AttributeAction} msg The message object to deserialize into.
2129 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2130 * @return {!proto.workflows.Action.AttributeAction}
2131 */
2132proto.workflows.Action.AttributeAction.deserializeBinaryFromReader = function(msg, reader) {
2133 while (reader.nextField()) {
2134 if (reader.isEndGroup()) {
2135 break;
2136 }
2137 var field = reader.getFieldNumber();
2138 switch (field) {
2139 case 1:
2140 var value = /** @type {!proto.workflows.Action.AttributeAction.AttributeAction} */ (reader.readEnum());
2141 msg.setAttributeAction(value);
2142 break;
2143 default:
2144 reader.skipField();
2145 break;
2146 }
2147 }
2148 return msg;
2149};
2150
2151
2152/**
2153 * Serializes the message to binary data (in protobuf wire format).
2154 * @return {!Uint8Array}
2155 */
2156proto.workflows.Action.AttributeAction.prototype.serializeBinary = function() {
2157 var writer = new jspb.BinaryWriter();
2158 proto.workflows.Action.AttributeAction.serializeBinaryToWriter(this, writer);
2159 return writer.getResultBuffer();
2160};
2161
2162
2163/**
2164 * Serializes the given message to binary data (in protobuf wire
2165 * format), writing to the given BinaryWriter.
2166 * @param {!proto.workflows.Action.AttributeAction} message
2167 * @param {!jspb.BinaryWriter} writer
2168 * @suppress {unusedLocalVariables} f is only used for nested messages
2169 */
2170proto.workflows.Action.AttributeAction.serializeBinaryToWriter = function(message, writer) {
2171 var f = undefined;
2172 f = message.getAttributeAction();
2173 if (f !== 0.0) {
2174 writer.writeEnum(
2175 1,
2176 f
2177 );
2178 }
2179};
2180
2181
2182/**
2183 * @enum {number}
2184 */
2185proto.workflows.Action.AttributeAction.AttributeAction = {
2186 AA_NONE: 0,
2187 AA_LOCK: 1,
2188 AA_UNLOCK: 2,
2189 AA_PIN: 3,
2190 AA_UNPIN: 4,
2191 AA_NON_ISSUE: 5,
2192 AA_OBSOLETE: 6,
2193 AA_REVERT: 7,
2194 AA_SET_TRENDING: 8,
2195 AA_UNSET_TRENDING: 9,
2196 AA_SET_ISSUE_RESOLVED: 10,
2197 AA_UNSET_ISSUE_RESOLVED: 11
2198};
2199
2200/**
2201 * optional AttributeAction attribute_action = 1;
2202 * @return {!proto.workflows.Action.AttributeAction.AttributeAction}
2203 */
2204proto.workflows.Action.AttributeAction.prototype.getAttributeAction = function() {
2205 return /** @type {!proto.workflows.Action.AttributeAction.AttributeAction} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2206};
2207
2208
2209/**
2210 * @param {!proto.workflows.Action.AttributeAction.AttributeAction} value
2211 * @return {!proto.workflows.Action.AttributeAction} returns this
2212 */
2213proto.workflows.Action.AttributeAction.prototype.setAttributeAction = function(value) {
2214 return jspb.Message.setProto3EnumField(this, 1, value);
2215};
2216
2217
2218
2219
2220
2221if (jspb.Message.GENERATE_TO_OBJECT) {
2222/**
2223 * Creates an object representation of this proto.
2224 * Field names that are reserved in JavaScript and will be renamed to pb_name.
2225 * Optional fields that are not set will be set to undefined.
2226 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2227 * For the list of reserved names please see:
2228 * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2229 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2230 * JSPB instance for transitional soy proto support:
2231 * http://goto/soy-param-migration
2232 * @return {!Object}
2233 */
2234proto.workflows.Action.ReportAction.prototype.toObject = function(opt_includeInstance) {
2235 return proto.workflows.Action.ReportAction.toObject(opt_includeInstance, this);
2236};
2237
2238
2239/**
2240 * Static version of the {@see toObject} method.
2241 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2242 * the JSPB instance for transitional soy proto support:
2243 * http://goto/soy-param-migration
2244 * @param {!proto.workflows.Action.ReportAction} msg The msg instance to transform.
2245 * @return {!Object}
2246 * @suppress {unusedLocalVariables} f is only used for nested messages
2247 */
2248proto.workflows.Action.ReportAction.toObject = function(includeInstance, msg) {
2249 var f, obj = {
2250 reportType: jspb.Message.getFieldWithDefault(msg, 1, 0)
2251 };
2252
2253 if (includeInstance) {
2254 obj.$jspbMessageInstance = msg;
2255 }
2256 return obj;
2257};
2258}
2259
2260
2261/**
2262 * Deserializes binary data (in protobuf wire format).
2263 * @param {jspb.ByteSource} bytes The bytes to deserialize.
2264 * @return {!proto.workflows.Action.ReportAction}
2265 */
2266proto.workflows.Action.ReportAction.deserializeBinary = function(bytes) {
2267 var reader = new jspb.BinaryReader(bytes);
2268 var msg = new proto.workflows.Action.ReportAction;
2269 return proto.workflows.Action.ReportAction.deserializeBinaryFromReader(msg, reader);
2270};
2271
2272
2273/**
2274 * Deserializes binary data (in protobuf wire format) from the
2275 * given reader into the given message object.
2276 * @param {!proto.workflows.Action.ReportAction} msg The message object to deserialize into.
2277 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2278 * @return {!proto.workflows.Action.ReportAction}
2279 */
2280proto.workflows.Action.ReportAction.deserializeBinaryFromReader = function(msg, reader) {
2281 while (reader.nextField()) {
2282 if (reader.isEndGroup()) {
2283 break;
2284 }
2285 var field = reader.getFieldNumber();
2286 switch (field) {
2287 case 1:
2288 var value = /** @type {!proto.workflows.Action.ReportAction.ReportType} */ (reader.readEnum());
2289 msg.setReportType(value);
2290 break;
2291 default:
2292 reader.skipField();
2293 break;
2294 }
2295 }
2296 return msg;
2297};
2298
2299
2300/**
2301 * Serializes the message to binary data (in protobuf wire format).
2302 * @return {!Uint8Array}
2303 */
2304proto.workflows.Action.ReportAction.prototype.serializeBinary = function() {
2305 var writer = new jspb.BinaryWriter();
2306 proto.workflows.Action.ReportAction.serializeBinaryToWriter(this, writer);
2307 return writer.getResultBuffer();
2308};
2309
2310
2311/**
2312 * Serializes the given message to binary data (in protobuf wire
2313 * format), writing to the given BinaryWriter.
2314 * @param {!proto.workflows.Action.ReportAction} message
2315 * @param {!jspb.BinaryWriter} writer
2316 * @suppress {unusedLocalVariables} f is only used for nested messages
2317 */
2318proto.workflows.Action.ReportAction.serializeBinaryToWriter = function(message, writer) {
2319 var f = undefined;
2320 f = message.getReportType();
2321 if (f !== 0.0) {
2322 writer.writeEnum(
2323 1,
2324 f
2325 );
2326 }
2327};
2328
2329
2330/**
2331 * @enum {number}
2332 */
2333proto.workflows.Action.ReportAction.ReportType = {
2334 RT_UNKNOWN: 0,
2335 RT_OFF_TOPIC: 1,
2336 RT_ABUSE: 2
2337};
2338
2339/**
2340 * optional ReportType report_type = 1;
2341 * @return {!proto.workflows.Action.ReportAction.ReportType}
2342 */
2343proto.workflows.Action.ReportAction.prototype.getReportType = function() {
2344 return /** @type {!proto.workflows.Action.ReportAction.ReportType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2345};
2346
2347
2348/**
2349 * @param {!proto.workflows.Action.ReportAction.ReportType} value
2350 * @return {!proto.workflows.Action.ReportAction} returns this
2351 */
2352proto.workflows.Action.ReportAction.prototype.setReportType = function(value) {
2353 return jspb.Message.setProto3EnumField(this, 1, value);
2354};
2355
2356
Adrià Vilanova Martínez6c4739a2022-11-07 00:11:53 +01002357
2358
2359
2360if (jspb.Message.GENERATE_TO_OBJECT) {
2361/**
2362 * Creates an object representation of this proto.
2363 * Field names that are reserved in JavaScript and will be renamed to pb_name.
2364 * Optional fields that are not set will be set to undefined.
2365 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2366 * For the list of reserved names please see:
2367 * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2368 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2369 * JSPB instance for transitional soy proto support:
2370 * http://goto/soy-param-migration
2371 * @return {!Object}
2372 */
2373proto.workflows.Action.MarkAsReadAction.prototype.toObject = function(opt_includeInstance) {
2374 return proto.workflows.Action.MarkAsReadAction.toObject(opt_includeInstance, this);
2375};
2376
2377
2378/**
2379 * Static version of the {@see toObject} method.
2380 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2381 * the JSPB instance for transitional soy proto support:
2382 * http://goto/soy-param-migration
2383 * @param {!proto.workflows.Action.MarkAsReadAction} msg The msg instance to transform.
2384 * @return {!Object}
2385 * @suppress {unusedLocalVariables} f is only used for nested messages
2386 */
2387proto.workflows.Action.MarkAsReadAction.toObject = function(includeInstance, msg) {
2388 var f, obj = {
2389
2390 };
2391
2392 if (includeInstance) {
2393 obj.$jspbMessageInstance = msg;
2394 }
2395 return obj;
2396};
2397}
2398
2399
2400/**
2401 * Deserializes binary data (in protobuf wire format).
2402 * @param {jspb.ByteSource} bytes The bytes to deserialize.
2403 * @return {!proto.workflows.Action.MarkAsReadAction}
2404 */
2405proto.workflows.Action.MarkAsReadAction.deserializeBinary = function(bytes) {
2406 var reader = new jspb.BinaryReader(bytes);
2407 var msg = new proto.workflows.Action.MarkAsReadAction;
2408 return proto.workflows.Action.MarkAsReadAction.deserializeBinaryFromReader(msg, reader);
2409};
2410
2411
2412/**
2413 * Deserializes binary data (in protobuf wire format) from the
2414 * given reader into the given message object.
2415 * @param {!proto.workflows.Action.MarkAsReadAction} msg The message object to deserialize into.
2416 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2417 * @return {!proto.workflows.Action.MarkAsReadAction}
2418 */
2419proto.workflows.Action.MarkAsReadAction.deserializeBinaryFromReader = function(msg, reader) {
2420 while (reader.nextField()) {
2421 if (reader.isEndGroup()) {
2422 break;
2423 }
2424 var field = reader.getFieldNumber();
2425 switch (field) {
2426 default:
2427 reader.skipField();
2428 break;
2429 }
2430 }
2431 return msg;
2432};
2433
2434
2435/**
2436 * Serializes the message to binary data (in protobuf wire format).
2437 * @return {!Uint8Array}
2438 */
2439proto.workflows.Action.MarkAsReadAction.prototype.serializeBinary = function() {
2440 var writer = new jspb.BinaryWriter();
2441 proto.workflows.Action.MarkAsReadAction.serializeBinaryToWriter(this, writer);
2442 return writer.getResultBuffer();
2443};
2444
2445
2446/**
2447 * Serializes the given message to binary data (in protobuf wire
2448 * format), writing to the given BinaryWriter.
2449 * @param {!proto.workflows.Action.MarkAsReadAction} message
2450 * @param {!jspb.BinaryWriter} writer
2451 * @suppress {unusedLocalVariables} f is only used for nested messages
2452 */
2453proto.workflows.Action.MarkAsReadAction.serializeBinaryToWriter = function(message, writer) {
2454 var f = undefined;
2455};
2456
2457
2458
2459
2460
2461if (jspb.Message.GENERATE_TO_OBJECT) {
2462/**
2463 * Creates an object representation of this proto.
2464 * Field names that are reserved in JavaScript and will be renamed to pb_name.
2465 * Optional fields that are not set will be set to undefined.
2466 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2467 * For the list of reserved names please see:
2468 * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2469 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2470 * JSPB instance for transitional soy proto support:
2471 * http://goto/soy-param-migration
2472 * @return {!Object}
2473 */
2474proto.workflows.Action.MarkAsUnreadAction.prototype.toObject = function(opt_includeInstance) {
2475 return proto.workflows.Action.MarkAsUnreadAction.toObject(opt_includeInstance, this);
2476};
2477
2478
2479/**
2480 * Static version of the {@see toObject} method.
2481 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2482 * the JSPB instance for transitional soy proto support:
2483 * http://goto/soy-param-migration
2484 * @param {!proto.workflows.Action.MarkAsUnreadAction} msg The msg instance to transform.
2485 * @return {!Object}
2486 * @suppress {unusedLocalVariables} f is only used for nested messages
2487 */
2488proto.workflows.Action.MarkAsUnreadAction.toObject = function(includeInstance, msg) {
2489 var f, obj = {
2490
2491 };
2492
2493 if (includeInstance) {
2494 obj.$jspbMessageInstance = msg;
2495 }
2496 return obj;
2497};
2498}
2499
2500
2501/**
2502 * Deserializes binary data (in protobuf wire format).
2503 * @param {jspb.ByteSource} bytes The bytes to deserialize.
2504 * @return {!proto.workflows.Action.MarkAsUnreadAction}
2505 */
2506proto.workflows.Action.MarkAsUnreadAction.deserializeBinary = function(bytes) {
2507 var reader = new jspb.BinaryReader(bytes);
2508 var msg = new proto.workflows.Action.MarkAsUnreadAction;
2509 return proto.workflows.Action.MarkAsUnreadAction.deserializeBinaryFromReader(msg, reader);
2510};
2511
2512
2513/**
2514 * Deserializes binary data (in protobuf wire format) from the
2515 * given reader into the given message object.
2516 * @param {!proto.workflows.Action.MarkAsUnreadAction} msg The message object to deserialize into.
2517 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2518 * @return {!proto.workflows.Action.MarkAsUnreadAction}
2519 */
2520proto.workflows.Action.MarkAsUnreadAction.deserializeBinaryFromReader = function(msg, reader) {
2521 while (reader.nextField()) {
2522 if (reader.isEndGroup()) {
2523 break;
2524 }
2525 var field = reader.getFieldNumber();
2526 switch (field) {
2527 default:
2528 reader.skipField();
2529 break;
2530 }
2531 }
2532 return msg;
2533};
2534
2535
2536/**
2537 * Serializes the message to binary data (in protobuf wire format).
2538 * @return {!Uint8Array}
2539 */
2540proto.workflows.Action.MarkAsUnreadAction.prototype.serializeBinary = function() {
2541 var writer = new jspb.BinaryWriter();
2542 proto.workflows.Action.MarkAsUnreadAction.serializeBinaryToWriter(this, writer);
2543 return writer.getResultBuffer();
2544};
2545
2546
2547/**
2548 * Serializes the given message to binary data (in protobuf wire
2549 * format), writing to the given BinaryWriter.
2550 * @param {!proto.workflows.Action.MarkAsUnreadAction} message
2551 * @param {!jspb.BinaryWriter} writer
2552 * @suppress {unusedLocalVariables} f is only used for nested messages
2553 */
2554proto.workflows.Action.MarkAsUnreadAction.serializeBinaryToWriter = function(message, writer) {
2555 var f = undefined;
2556};
2557
2558
Adrià Vilanova Martínez41188592022-01-21 19:47:41 +01002559/**
2560 * optional ReplyAction reply_action = 1;
2561 * @return {?proto.workflows.Action.ReplyAction}
2562 */
2563proto.workflows.Action.prototype.getReplyAction = function() {
2564 return /** @type{?proto.workflows.Action.ReplyAction} */ (
2565 jspb.Message.getWrapperField(this, proto.workflows.Action.ReplyAction, 1));
2566};
2567
2568
2569/**
2570 * @param {?proto.workflows.Action.ReplyAction|undefined} value
2571 * @return {!proto.workflows.Action} returns this
2572*/
2573proto.workflows.Action.prototype.setReplyAction = function(value) {
2574 return jspb.Message.setOneofWrapperField(this, 1, proto.workflows.Action.oneofGroups_[0], value);
2575};
2576
2577
2578/**
2579 * Clears the message field making it undefined.
2580 * @return {!proto.workflows.Action} returns this
2581 */
2582proto.workflows.Action.prototype.clearReplyAction = function() {
2583 return this.setReplyAction(undefined);
2584};
2585
2586
2587/**
2588 * Returns whether this field is set.
2589 * @return {boolean}
2590 */
2591proto.workflows.Action.prototype.hasReplyAction = function() {
2592 return jspb.Message.getField(this, 1) != null;
2593};
2594
2595
2596/**
2597 * optional MoveAction move_action = 2;
2598 * @return {?proto.workflows.Action.MoveAction}
2599 */
2600proto.workflows.Action.prototype.getMoveAction = function() {
2601 return /** @type{?proto.workflows.Action.MoveAction} */ (
2602 jspb.Message.getWrapperField(this, proto.workflows.Action.MoveAction, 2));
2603};
2604
2605
2606/**
2607 * @param {?proto.workflows.Action.MoveAction|undefined} value
2608 * @return {!proto.workflows.Action} returns this
2609*/
2610proto.workflows.Action.prototype.setMoveAction = function(value) {
2611 return jspb.Message.setOneofWrapperField(this, 2, proto.workflows.Action.oneofGroups_[0], value);
2612};
2613
2614
2615/**
2616 * Clears the message field making it undefined.
2617 * @return {!proto.workflows.Action} returns this
2618 */
2619proto.workflows.Action.prototype.clearMoveAction = function() {
2620 return this.setMoveAction(undefined);
2621};
2622
2623
2624/**
2625 * Returns whether this field is set.
2626 * @return {boolean}
2627 */
2628proto.workflows.Action.prototype.hasMoveAction = function() {
2629 return jspb.Message.getField(this, 2) != null;
2630};
2631
2632
2633/**
2634 * optional MarkDuplicateAction mark_duplicate_action = 3;
2635 * @return {?proto.workflows.Action.MarkDuplicateAction}
2636 */
2637proto.workflows.Action.prototype.getMarkDuplicateAction = function() {
2638 return /** @type{?proto.workflows.Action.MarkDuplicateAction} */ (
2639 jspb.Message.getWrapperField(this, proto.workflows.Action.MarkDuplicateAction, 3));
2640};
2641
2642
2643/**
2644 * @param {?proto.workflows.Action.MarkDuplicateAction|undefined} value
2645 * @return {!proto.workflows.Action} returns this
2646*/
2647proto.workflows.Action.prototype.setMarkDuplicateAction = function(value) {
2648 return jspb.Message.setOneofWrapperField(this, 3, proto.workflows.Action.oneofGroups_[0], value);
2649};
2650
2651
2652/**
2653 * Clears the message field making it undefined.
2654 * @return {!proto.workflows.Action} returns this
2655 */
2656proto.workflows.Action.prototype.clearMarkDuplicateAction = function() {
2657 return this.setMarkDuplicateAction(undefined);
2658};
2659
2660
2661/**
2662 * Returns whether this field is set.
2663 * @return {boolean}
2664 */
2665proto.workflows.Action.prototype.hasMarkDuplicateAction = function() {
2666 return jspb.Message.getField(this, 3) != null;
2667};
2668
2669
2670/**
2671 * optional UnmarkDuplicateAction unmark_duplicate_action = 4;
2672 * @return {?proto.workflows.Action.UnmarkDuplicateAction}
2673 */
2674proto.workflows.Action.prototype.getUnmarkDuplicateAction = function() {
2675 return /** @type{?proto.workflows.Action.UnmarkDuplicateAction} */ (
2676 jspb.Message.getWrapperField(this, proto.workflows.Action.UnmarkDuplicateAction, 4));
2677};
2678
2679
2680/**
2681 * @param {?proto.workflows.Action.UnmarkDuplicateAction|undefined} value
2682 * @return {!proto.workflows.Action} returns this
2683*/
2684proto.workflows.Action.prototype.setUnmarkDuplicateAction = function(value) {
2685 return jspb.Message.setOneofWrapperField(this, 4, proto.workflows.Action.oneofGroups_[0], value);
2686};
2687
2688
2689/**
2690 * Clears the message field making it undefined.
2691 * @return {!proto.workflows.Action} returns this
2692 */
2693proto.workflows.Action.prototype.clearUnmarkDuplicateAction = function() {
2694 return this.setUnmarkDuplicateAction(undefined);
2695};
2696
2697
2698/**
2699 * Returns whether this field is set.
2700 * @return {boolean}
2701 */
2702proto.workflows.Action.prototype.hasUnmarkDuplicateAction = function() {
2703 return jspb.Message.getField(this, 4) != null;
2704};
2705
2706
2707/**
2708 * optional AttributeAction attribute_action = 5;
2709 * @return {?proto.workflows.Action.AttributeAction}
2710 */
2711proto.workflows.Action.prototype.getAttributeAction = function() {
2712 return /** @type{?proto.workflows.Action.AttributeAction} */ (
2713 jspb.Message.getWrapperField(this, proto.workflows.Action.AttributeAction, 5));
2714};
2715
2716
2717/**
2718 * @param {?proto.workflows.Action.AttributeAction|undefined} value
2719 * @return {!proto.workflows.Action} returns this
2720*/
2721proto.workflows.Action.prototype.setAttributeAction = function(value) {
2722 return jspb.Message.setOneofWrapperField(this, 5, proto.workflows.Action.oneofGroups_[0], value);
2723};
2724
2725
2726/**
2727 * Clears the message field making it undefined.
2728 * @return {!proto.workflows.Action} returns this
2729 */
2730proto.workflows.Action.prototype.clearAttributeAction = function() {
2731 return this.setAttributeAction(undefined);
2732};
2733
2734
2735/**
2736 * Returns whether this field is set.
2737 * @return {boolean}
2738 */
2739proto.workflows.Action.prototype.hasAttributeAction = function() {
2740 return jspb.Message.getField(this, 5) != null;
2741};
2742
2743
2744/**
Adrià Vilanova Martínezf5147982022-10-13 22:07:36 +02002745 * optional ReplyWithCRAction reply_with_cr_action = 6;
2746 * @return {?proto.workflows.Action.ReplyWithCRAction}
2747 */
2748proto.workflows.Action.prototype.getReplyWithCrAction = function() {
2749 return /** @type{?proto.workflows.Action.ReplyWithCRAction} */ (
2750 jspb.Message.getWrapperField(this, proto.workflows.Action.ReplyWithCRAction, 6));
2751};
2752
2753
2754/**
2755 * @param {?proto.workflows.Action.ReplyWithCRAction|undefined} value
2756 * @return {!proto.workflows.Action} returns this
2757*/
2758proto.workflows.Action.prototype.setReplyWithCrAction = function(value) {
2759 return jspb.Message.setOneofWrapperField(this, 6, proto.workflows.Action.oneofGroups_[0], value);
2760};
2761
2762
2763/**
2764 * Clears the message field making it undefined.
2765 * @return {!proto.workflows.Action} returns this
2766 */
2767proto.workflows.Action.prototype.clearReplyWithCrAction = function() {
2768 return this.setReplyWithCrAction(undefined);
2769};
2770
2771
2772/**
2773 * Returns whether this field is set.
2774 * @return {boolean}
2775 */
2776proto.workflows.Action.prototype.hasReplyWithCrAction = function() {
2777 return jspb.Message.getField(this, 6) != null;
2778};
2779
2780
2781/**
Adrià Vilanova Martínez41188592022-01-21 19:47:41 +01002782 * optional StarAction star_action = 16;
2783 * @return {?proto.workflows.Action.StarAction}
2784 */
2785proto.workflows.Action.prototype.getStarAction = function() {
2786 return /** @type{?proto.workflows.Action.StarAction} */ (
2787 jspb.Message.getWrapperField(this, proto.workflows.Action.StarAction, 16));
2788};
2789
2790
2791/**
2792 * @param {?proto.workflows.Action.StarAction|undefined} value
2793 * @return {!proto.workflows.Action} returns this
2794*/
2795proto.workflows.Action.prototype.setStarAction = function(value) {
2796 return jspb.Message.setOneofWrapperField(this, 16, proto.workflows.Action.oneofGroups_[0], value);
2797};
2798
2799
2800/**
2801 * Clears the message field making it undefined.
2802 * @return {!proto.workflows.Action} returns this
2803 */
2804proto.workflows.Action.prototype.clearStarAction = function() {
2805 return this.setStarAction(undefined);
2806};
2807
2808
2809/**
2810 * Returns whether this field is set.
2811 * @return {boolean}
2812 */
2813proto.workflows.Action.prototype.hasStarAction = function() {
2814 return jspb.Message.getField(this, 16) != null;
2815};
2816
2817
2818/**
2819 * optional SubscribeAction subscribe_action = 17;
2820 * @return {?proto.workflows.Action.SubscribeAction}
2821 */
2822proto.workflows.Action.prototype.getSubscribeAction = function() {
2823 return /** @type{?proto.workflows.Action.SubscribeAction} */ (
2824 jspb.Message.getWrapperField(this, proto.workflows.Action.SubscribeAction, 17));
2825};
2826
2827
2828/**
2829 * @param {?proto.workflows.Action.SubscribeAction|undefined} value
2830 * @return {!proto.workflows.Action} returns this
2831*/
2832proto.workflows.Action.prototype.setSubscribeAction = function(value) {
2833 return jspb.Message.setOneofWrapperField(this, 17, proto.workflows.Action.oneofGroups_[0], value);
2834};
2835
2836
2837/**
2838 * Clears the message field making it undefined.
2839 * @return {!proto.workflows.Action} returns this
2840 */
2841proto.workflows.Action.prototype.clearSubscribeAction = function() {
2842 return this.setSubscribeAction(undefined);
2843};
2844
2845
2846/**
2847 * Returns whether this field is set.
2848 * @return {boolean}
2849 */
2850proto.workflows.Action.prototype.hasSubscribeAction = function() {
2851 return jspb.Message.getField(this, 17) != null;
2852};
2853
2854
2855/**
2856 * optional VoteAction vote_action = 18;
2857 * @return {?proto.workflows.Action.VoteAction}
2858 */
2859proto.workflows.Action.prototype.getVoteAction = function() {
2860 return /** @type{?proto.workflows.Action.VoteAction} */ (
2861 jspb.Message.getWrapperField(this, proto.workflows.Action.VoteAction, 18));
2862};
2863
2864
2865/**
2866 * @param {?proto.workflows.Action.VoteAction|undefined} value
2867 * @return {!proto.workflows.Action} returns this
2868*/
2869proto.workflows.Action.prototype.setVoteAction = function(value) {
2870 return jspb.Message.setOneofWrapperField(this, 18, proto.workflows.Action.oneofGroups_[0], value);
2871};
2872
2873
2874/**
2875 * Clears the message field making it undefined.
2876 * @return {!proto.workflows.Action} returns this
2877 */
2878proto.workflows.Action.prototype.clearVoteAction = function() {
2879 return this.setVoteAction(undefined);
2880};
2881
2882
2883/**
2884 * Returns whether this field is set.
2885 * @return {boolean}
2886 */
2887proto.workflows.Action.prototype.hasVoteAction = function() {
2888 return jspb.Message.getField(this, 18) != null;
2889};
2890
2891
2892/**
2893 * optional ReportAction report_action = 19;
2894 * @return {?proto.workflows.Action.ReportAction}
2895 */
2896proto.workflows.Action.prototype.getReportAction = function() {
2897 return /** @type{?proto.workflows.Action.ReportAction} */ (
2898 jspb.Message.getWrapperField(this, proto.workflows.Action.ReportAction, 19));
2899};
2900
2901
2902/**
2903 * @param {?proto.workflows.Action.ReportAction|undefined} value
2904 * @return {!proto.workflows.Action} returns this
2905*/
2906proto.workflows.Action.prototype.setReportAction = function(value) {
2907 return jspb.Message.setOneofWrapperField(this, 19, proto.workflows.Action.oneofGroups_[0], value);
2908};
2909
2910
2911/**
2912 * Clears the message field making it undefined.
2913 * @return {!proto.workflows.Action} returns this
2914 */
2915proto.workflows.Action.prototype.clearReportAction = function() {
2916 return this.setReportAction(undefined);
2917};
2918
2919
2920/**
2921 * Returns whether this field is set.
2922 * @return {boolean}
2923 */
2924proto.workflows.Action.prototype.hasReportAction = function() {
2925 return jspb.Message.getField(this, 19) != null;
2926};
2927
2928
Adrià Vilanova Martínez6c4739a2022-11-07 00:11:53 +01002929/**
2930 * optional MarkAsReadAction mark_as_read_action = 20;
2931 * @return {?proto.workflows.Action.MarkAsReadAction}
2932 */
2933proto.workflows.Action.prototype.getMarkAsReadAction = function() {
2934 return /** @type{?proto.workflows.Action.MarkAsReadAction} */ (
2935 jspb.Message.getWrapperField(this, proto.workflows.Action.MarkAsReadAction, 20));
2936};
2937
2938
2939/**
2940 * @param {?proto.workflows.Action.MarkAsReadAction|undefined} value
2941 * @return {!proto.workflows.Action} returns this
2942*/
2943proto.workflows.Action.prototype.setMarkAsReadAction = function(value) {
2944 return jspb.Message.setOneofWrapperField(this, 20, proto.workflows.Action.oneofGroups_[0], value);
2945};
2946
2947
2948/**
2949 * Clears the message field making it undefined.
2950 * @return {!proto.workflows.Action} returns this
2951 */
2952proto.workflows.Action.prototype.clearMarkAsReadAction = function() {
2953 return this.setMarkAsReadAction(undefined);
2954};
2955
2956
2957/**
2958 * Returns whether this field is set.
2959 * @return {boolean}
2960 */
2961proto.workflows.Action.prototype.hasMarkAsReadAction = function() {
2962 return jspb.Message.getField(this, 20) != null;
2963};
2964
2965
2966/**
2967 * optional MarkAsUnreadAction mark_as_unread_action = 21;
2968 * @return {?proto.workflows.Action.MarkAsUnreadAction}
2969 */
2970proto.workflows.Action.prototype.getMarkAsUnreadAction = function() {
2971 return /** @type{?proto.workflows.Action.MarkAsUnreadAction} */ (
2972 jspb.Message.getWrapperField(this, proto.workflows.Action.MarkAsUnreadAction, 21));
2973};
2974
2975
2976/**
2977 * @param {?proto.workflows.Action.MarkAsUnreadAction|undefined} value
2978 * @return {!proto.workflows.Action} returns this
2979*/
2980proto.workflows.Action.prototype.setMarkAsUnreadAction = function(value) {
2981 return jspb.Message.setOneofWrapperField(this, 21, proto.workflows.Action.oneofGroups_[0], value);
2982};
2983
2984
2985/**
2986 * Clears the message field making it undefined.
2987 * @return {!proto.workflows.Action} returns this
2988 */
2989proto.workflows.Action.prototype.clearMarkAsUnreadAction = function() {
2990 return this.setMarkAsUnreadAction(undefined);
2991};
2992
2993
2994/**
2995 * Returns whether this field is set.
2996 * @return {boolean}
2997 */
2998proto.workflows.Action.prototype.hasMarkAsUnreadAction = function() {
2999 return jspb.Message.getField(this, 21) != null;
3000};
3001
3002
Adrià Vilanova Martínez41188592022-01-21 19:47:41 +01003003
3004/**
3005 * List of repeated fields within this message type.
3006 * @private {!Array<number>}
3007 * @const
3008 */
3009proto.workflows.Workflow.repeatedFields_ = [4];
3010
3011
3012
3013if (jspb.Message.GENERATE_TO_OBJECT) {
3014/**
3015 * Creates an object representation of this proto.
3016 * Field names that are reserved in JavaScript and will be renamed to pb_name.
3017 * Optional fields that are not set will be set to undefined.
3018 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3019 * For the list of reserved names please see:
3020 * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3021 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3022 * JSPB instance for transitional soy proto support:
3023 * http://goto/soy-param-migration
3024 * @return {!Object}
3025 */
3026proto.workflows.Workflow.prototype.toObject = function(opt_includeInstance) {
3027 return proto.workflows.Workflow.toObject(opt_includeInstance, this);
3028};
3029
3030
3031/**
3032 * Static version of the {@see toObject} method.
3033 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3034 * the JSPB instance for transitional soy proto support:
3035 * http://goto/soy-param-migration
3036 * @param {!proto.workflows.Workflow} msg The msg instance to transform.
3037 * @return {!Object}
3038 * @suppress {unusedLocalVariables} f is only used for nested messages
3039 */
3040proto.workflows.Workflow.toObject = function(includeInstance, msg) {
3041 var f, obj = {
3042 name: jspb.Message.getFieldWithDefault(msg, 1, ""),
3043 description: jspb.Message.getFieldWithDefault(msg, 2, ""),
3044 index: jspb.Message.getFieldWithDefault(msg, 3, 0),
3045 actionsList: jspb.Message.toObjectList(msg.getActionsList(),
3046 proto.workflows.Action.toObject, includeInstance)
3047 };
3048
3049 if (includeInstance) {
3050 obj.$jspbMessageInstance = msg;
3051 }
3052 return obj;
3053};
3054}
3055
3056
3057/**
3058 * Deserializes binary data (in protobuf wire format).
3059 * @param {jspb.ByteSource} bytes The bytes to deserialize.
3060 * @return {!proto.workflows.Workflow}
3061 */
3062proto.workflows.Workflow.deserializeBinary = function(bytes) {
3063 var reader = new jspb.BinaryReader(bytes);
3064 var msg = new proto.workflows.Workflow;
3065 return proto.workflows.Workflow.deserializeBinaryFromReader(msg, reader);
3066};
3067
3068
3069/**
3070 * Deserializes binary data (in protobuf wire format) from the
3071 * given reader into the given message object.
3072 * @param {!proto.workflows.Workflow} msg The message object to deserialize into.
3073 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3074 * @return {!proto.workflows.Workflow}
3075 */
3076proto.workflows.Workflow.deserializeBinaryFromReader = function(msg, reader) {
3077 while (reader.nextField()) {
3078 if (reader.isEndGroup()) {
3079 break;
3080 }
3081 var field = reader.getFieldNumber();
3082 switch (field) {
3083 case 1:
3084 var value = /** @type {string} */ (reader.readString());
3085 msg.setName(value);
3086 break;
3087 case 2:
3088 var value = /** @type {string} */ (reader.readString());
3089 msg.setDescription(value);
3090 break;
3091 case 3:
3092 var value = /** @type {number} */ (reader.readInt32());
3093 msg.setIndex(value);
3094 break;
3095 case 4:
3096 var value = new proto.workflows.Action;
3097 reader.readMessage(value,proto.workflows.Action.deserializeBinaryFromReader);
3098 msg.addActions(value);
3099 break;
3100 default:
3101 reader.skipField();
3102 break;
3103 }
3104 }
3105 return msg;
3106};
3107
3108
3109/**
3110 * Serializes the message to binary data (in protobuf wire format).
3111 * @return {!Uint8Array}
3112 */
3113proto.workflows.Workflow.prototype.serializeBinary = function() {
3114 var writer = new jspb.BinaryWriter();
3115 proto.workflows.Workflow.serializeBinaryToWriter(this, writer);
3116 return writer.getResultBuffer();
3117};
3118
3119
3120/**
3121 * Serializes the given message to binary data (in protobuf wire
3122 * format), writing to the given BinaryWriter.
3123 * @param {!proto.workflows.Workflow} message
3124 * @param {!jspb.BinaryWriter} writer
3125 * @suppress {unusedLocalVariables} f is only used for nested messages
3126 */
3127proto.workflows.Workflow.serializeBinaryToWriter = function(message, writer) {
3128 var f = undefined;
3129 f = message.getName();
3130 if (f.length > 0) {
3131 writer.writeString(
3132 1,
3133 f
3134 );
3135 }
3136 f = message.getDescription();
3137 if (f.length > 0) {
3138 writer.writeString(
3139 2,
3140 f
3141 );
3142 }
3143 f = message.getIndex();
3144 if (f !== 0) {
3145 writer.writeInt32(
3146 3,
3147 f
3148 );
3149 }
3150 f = message.getActionsList();
3151 if (f.length > 0) {
3152 writer.writeRepeatedMessage(
3153 4,
3154 f,
3155 proto.workflows.Action.serializeBinaryToWriter
3156 );
3157 }
3158};
3159
3160
3161/**
3162 * optional string name = 1;
3163 * @return {string}
3164 */
3165proto.workflows.Workflow.prototype.getName = function() {
3166 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3167};
3168
3169
3170/**
3171 * @param {string} value
3172 * @return {!proto.workflows.Workflow} returns this
3173 */
3174proto.workflows.Workflow.prototype.setName = function(value) {
3175 return jspb.Message.setProto3StringField(this, 1, value);
3176};
3177
3178
3179/**
3180 * optional string description = 2;
3181 * @return {string}
3182 */
3183proto.workflows.Workflow.prototype.getDescription = function() {
3184 return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3185};
3186
3187
3188/**
3189 * @param {string} value
3190 * @return {!proto.workflows.Workflow} returns this
3191 */
3192proto.workflows.Workflow.prototype.setDescription = function(value) {
3193 return jspb.Message.setProto3StringField(this, 2, value);
3194};
3195
3196
3197/**
3198 * optional int32 index = 3;
3199 * @return {number}
3200 */
3201proto.workflows.Workflow.prototype.getIndex = function() {
3202 return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3203};
3204
3205
3206/**
3207 * @param {number} value
3208 * @return {!proto.workflows.Workflow} returns this
3209 */
3210proto.workflows.Workflow.prototype.setIndex = function(value) {
3211 return jspb.Message.setProto3IntField(this, 3, value);
3212};
3213
3214
3215/**
3216 * repeated Action actions = 4;
3217 * @return {!Array<!proto.workflows.Action>}
3218 */
3219proto.workflows.Workflow.prototype.getActionsList = function() {
3220 return /** @type{!Array<!proto.workflows.Action>} */ (
3221 jspb.Message.getRepeatedWrapperField(this, proto.workflows.Action, 4));
3222};
3223
3224
3225/**
3226 * @param {!Array<!proto.workflows.Action>} value
3227 * @return {!proto.workflows.Workflow} returns this
3228*/
3229proto.workflows.Workflow.prototype.setActionsList = function(value) {
3230 return jspb.Message.setRepeatedWrapperField(this, 4, value);
3231};
3232
3233
3234/**
3235 * @param {!proto.workflows.Action=} opt_value
3236 * @param {number=} opt_index
3237 * @return {!proto.workflows.Action}
3238 */
3239proto.workflows.Workflow.prototype.addActions = function(opt_value, opt_index) {
3240 return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.workflows.Action, opt_index);
3241};
3242
3243
3244/**
3245 * Clears the list making it empty but non-null.
3246 * @return {!proto.workflows.Workflow} returns this
3247 */
3248proto.workflows.Workflow.prototype.clearActionsList = function() {
3249 return this.setActionsList([]);
3250};
3251
3252
3253goog.object.extend(exports, proto);