|
2 | 2 | /**
|
3 | 3 | * @fileoverview
|
4 | 4 | * @enhanceable
|
| 5 | + * @suppress {missingRequire} reports error on implicit type usages. |
5 | 6 | * @suppress {messageConventions} JS Compiler reports an error if a variable or
|
6 | 7 | * field starts with 'MSG_' and isn't a translatable message.
|
7 | 8 | * @public
|
@@ -93,15 +94,16 @@ if (goog.DEBUG && !COMPILED) {
|
93 | 94 | * @private {!Array<!Array<number>>}
|
94 | 95 | * @const
|
95 | 96 | */
|
96 |
| -proto.cc.arduino.cli.monitor.StreamingOpenReq.oneofGroups_ = [[1,2]]; |
| 97 | +proto.cc.arduino.cli.monitor.StreamingOpenReq.oneofGroups_ = [[1,2,3]]; |
97 | 98 |
|
98 | 99 | /**
|
99 | 100 | * @enum {number}
|
100 | 101 | */
|
101 | 102 | proto.cc.arduino.cli.monitor.StreamingOpenReq.ContentCase = {
|
102 | 103 | CONTENT_NOT_SET: 0,
|
103 | 104 | MONITORCONFIG: 1,
|
104 |
| - DATA: 2 |
| 105 | + DATA: 2, |
| 106 | + RECV_ACKNOWLEDGE: 3 |
105 | 107 | };
|
106 | 108 |
|
107 | 109 | /**
|
@@ -143,7 +145,8 @@ proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.toObject = function(opt_
|
143 | 145 | proto.cc.arduino.cli.monitor.StreamingOpenReq.toObject = function(includeInstance, msg) {
|
144 | 146 | var f, obj = {
|
145 | 147 | monitorconfig: (f = msg.getMonitorconfig()) && proto.cc.arduino.cli.monitor.MonitorConfig.toObject(includeInstance, f),
|
146 |
| - data: msg.getData_asB64() |
| 148 | + data: msg.getData_asB64(), |
| 149 | + recvAcknowledge: jspb.Message.getFieldWithDefault(msg, 3, 0) |
147 | 150 | };
|
148 | 151 |
|
149 | 152 | if (includeInstance) {
|
@@ -189,6 +192,10 @@ proto.cc.arduino.cli.monitor.StreamingOpenReq.deserializeBinaryFromReader = func
|
189 | 192 | var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
190 | 193 | msg.setData(value);
|
191 | 194 | break;
|
| 195 | + case 3: |
| 196 | + var value = /** @type {number} */ (reader.readInt32()); |
| 197 | + msg.setRecvAcknowledge(value); |
| 198 | + break; |
192 | 199 | default:
|
193 | 200 | reader.skipField();
|
194 | 201 | break;
|
@@ -233,6 +240,13 @@ proto.cc.arduino.cli.monitor.StreamingOpenReq.serializeBinaryToWriter = function
|
233 | 240 | f
|
234 | 241 | );
|
235 | 242 | }
|
| 243 | + f = /** @type {number} */ (jspb.Message.getField(message, 3)); |
| 244 | + if (f != null) { |
| 245 | + writer.writeInt32( |
| 246 | + 3, |
| 247 | + f |
| 248 | + ); |
| 249 | + } |
236 | 250 | };
|
237 | 251 |
|
238 | 252 |
|
@@ -333,6 +347,42 @@ proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.hasData = function() {
|
333 | 347 | };
|
334 | 348 |
|
335 | 349 |
|
| 350 | +/** |
| 351 | + * optional int32 recv_acknowledge = 3; |
| 352 | + * @return {number} |
| 353 | + */ |
| 354 | +proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.getRecvAcknowledge = function() { |
| 355 | + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); |
| 356 | +}; |
| 357 | + |
| 358 | + |
| 359 | +/** |
| 360 | + * @param {number} value |
| 361 | + * @return {!proto.cc.arduino.cli.monitor.StreamingOpenReq} returns this |
| 362 | + */ |
| 363 | +proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.setRecvAcknowledge = function(value) { |
| 364 | + return jspb.Message.setOneofField(this, 3, proto.cc.arduino.cli.monitor.StreamingOpenReq.oneofGroups_[0], value); |
| 365 | +}; |
| 366 | + |
| 367 | + |
| 368 | +/** |
| 369 | + * Clears the field making it undefined. |
| 370 | + * @return {!proto.cc.arduino.cli.monitor.StreamingOpenReq} returns this |
| 371 | + */ |
| 372 | +proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.clearRecvAcknowledge = function() { |
| 373 | + return jspb.Message.setOneofField(this, 3, proto.cc.arduino.cli.monitor.StreamingOpenReq.oneofGroups_[0], undefined); |
| 374 | +}; |
| 375 | + |
| 376 | + |
| 377 | +/** |
| 378 | + * Returns whether this field is set. |
| 379 | + * @return {boolean} |
| 380 | + */ |
| 381 | +proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.hasRecvAcknowledge = function() { |
| 382 | + return jspb.Message.getField(this, 3) != null; |
| 383 | +}; |
| 384 | + |
| 385 | + |
336 | 386 |
|
337 | 387 |
|
338 | 388 |
|
@@ -367,7 +417,8 @@ proto.cc.arduino.cli.monitor.MonitorConfig.toObject = function(includeInstance,
|
367 | 417 | var f, obj = {
|
368 | 418 | target: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
369 | 419 | type: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
370 |
| - additionalconfig: (f = msg.getAdditionalconfig()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) |
| 420 | + additionalconfig: (f = msg.getAdditionalconfig()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), |
| 421 | + recvRateLimitBuffer: jspb.Message.getFieldWithDefault(msg, 4, 0) |
371 | 422 | };
|
372 | 423 |
|
373 | 424 | if (includeInstance) {
|
@@ -417,6 +468,10 @@ proto.cc.arduino.cli.monitor.MonitorConfig.deserializeBinaryFromReader = functio
|
417 | 468 | reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
418 | 469 | msg.setAdditionalconfig(value);
|
419 | 470 | break;
|
| 471 | + case 4: |
| 472 | + var value = /** @type {number} */ (reader.readInt32()); |
| 473 | + msg.setRecvRateLimitBuffer(value); |
| 474 | + break; |
420 | 475 | default:
|
421 | 476 | reader.skipField();
|
422 | 477 | break;
|
@@ -468,14 +523,22 @@ proto.cc.arduino.cli.monitor.MonitorConfig.serializeBinaryToWriter = function(me
|
468 | 523 | google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
469 | 524 | );
|
470 | 525 | }
|
| 526 | + f = message.getRecvRateLimitBuffer(); |
| 527 | + if (f !== 0) { |
| 528 | + writer.writeInt32( |
| 529 | + 4, |
| 530 | + f |
| 531 | + ); |
| 532 | + } |
471 | 533 | };
|
472 | 534 |
|
473 | 535 |
|
474 | 536 | /**
|
475 | 537 | * @enum {number}
|
476 | 538 | */
|
477 | 539 | proto.cc.arduino.cli.monitor.MonitorConfig.TargetType = {
|
478 |
| - SERIAL: 0 |
| 540 | + SERIAL: 0, |
| 541 | + NULL: 99 |
479 | 542 | };
|
480 | 543 |
|
481 | 544 | /**
|
@@ -551,6 +614,24 @@ proto.cc.arduino.cli.monitor.MonitorConfig.prototype.hasAdditionalconfig = funct
|
551 | 614 | };
|
552 | 615 |
|
553 | 616 |
|
| 617 | +/** |
| 618 | + * optional int32 recv_rate_limit_buffer = 4; |
| 619 | + * @return {number} |
| 620 | + */ |
| 621 | +proto.cc.arduino.cli.monitor.MonitorConfig.prototype.getRecvRateLimitBuffer = function() { |
| 622 | + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); |
| 623 | +}; |
| 624 | + |
| 625 | + |
| 626 | +/** |
| 627 | + * @param {number} value |
| 628 | + * @return {!proto.cc.arduino.cli.monitor.MonitorConfig} returns this |
| 629 | + */ |
| 630 | +proto.cc.arduino.cli.monitor.MonitorConfig.prototype.setRecvRateLimitBuffer = function(value) { |
| 631 | + return jspb.Message.setProto3IntField(this, 4, value); |
| 632 | +}; |
| 633 | + |
| 634 | + |
554 | 635 |
|
555 | 636 |
|
556 | 637 |
|
@@ -583,7 +664,8 @@ proto.cc.arduino.cli.monitor.StreamingOpenResp.prototype.toObject = function(opt
|
583 | 664 | */
|
584 | 665 | proto.cc.arduino.cli.monitor.StreamingOpenResp.toObject = function(includeInstance, msg) {
|
585 | 666 | var f, obj = {
|
586 |
| - data: msg.getData_asB64() |
| 667 | + data: msg.getData_asB64(), |
| 668 | + dropped: jspb.Message.getFieldWithDefault(msg, 2, 0) |
587 | 669 | };
|
588 | 670 |
|
589 | 671 | if (includeInstance) {
|
@@ -624,6 +706,10 @@ proto.cc.arduino.cli.monitor.StreamingOpenResp.deserializeBinaryFromReader = fun
|
624 | 706 | var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
625 | 707 | msg.setData(value);
|
626 | 708 | break;
|
| 709 | + case 2: |
| 710 | + var value = /** @type {number} */ (reader.readInt32()); |
| 711 | + msg.setDropped(value); |
| 712 | + break; |
627 | 713 | default:
|
628 | 714 | reader.skipField();
|
629 | 715 | break;
|
@@ -660,6 +746,13 @@ proto.cc.arduino.cli.monitor.StreamingOpenResp.serializeBinaryToWriter = functio
|
660 | 746 | f
|
661 | 747 | );
|
662 | 748 | }
|
| 749 | + f = message.getDropped(); |
| 750 | + if (f !== 0) { |
| 751 | + writer.writeInt32( |
| 752 | + 2, |
| 753 | + f |
| 754 | + ); |
| 755 | + } |
663 | 756 | };
|
664 | 757 |
|
665 | 758 |
|
@@ -705,4 +798,22 @@ proto.cc.arduino.cli.monitor.StreamingOpenResp.prototype.setData = function(valu
|
705 | 798 | };
|
706 | 799 |
|
707 | 800 |
|
| 801 | +/** |
| 802 | + * optional int32 dropped = 2; |
| 803 | + * @return {number} |
| 804 | + */ |
| 805 | +proto.cc.arduino.cli.monitor.StreamingOpenResp.prototype.getDropped = function() { |
| 806 | + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); |
| 807 | +}; |
| 808 | + |
| 809 | + |
| 810 | +/** |
| 811 | + * @param {number} value |
| 812 | + * @return {!proto.cc.arduino.cli.monitor.StreamingOpenResp} returns this |
| 813 | + */ |
| 814 | +proto.cc.arduino.cli.monitor.StreamingOpenResp.prototype.setDropped = function(value) { |
| 815 | + return jspb.Message.setProto3IntField(this, 2, value); |
| 816 | +}; |
| 817 | + |
| 818 | + |
708 | 819 | goog.object.extend(exports, proto.cc.arduino.cli.monitor);
|
0 commit comments