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