@gitpod/supervisor-api-grpcweb 0.1.5-test2 → 0.1.5-to-new-image.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  goog.exportSymbol('proto.supervisor.GetTerminalRequest', null, global);
19
25
  goog.exportSymbol('proto.supervisor.ListTerminalsRequest', null, global);
@@ -26,10 +32,15 @@ goog.exportSymbol('proto.supervisor.OpenTerminalResponse', null, global);
26
32
  goog.exportSymbol('proto.supervisor.SetTerminalSizeRequest', null, global);
27
33
  goog.exportSymbol('proto.supervisor.SetTerminalSizeRequest.PriorityCase', null, global);
28
34
  goog.exportSymbol('proto.supervisor.SetTerminalSizeResponse', null, global);
35
+ goog.exportSymbol('proto.supervisor.SetTerminalTitleRequest', null, global);
36
+ goog.exportSymbol('proto.supervisor.SetTerminalTitleResponse', null, global);
29
37
  goog.exportSymbol('proto.supervisor.ShutdownTerminalRequest', null, global);
30
38
  goog.exportSymbol('proto.supervisor.ShutdownTerminalResponse', null, global);
31
39
  goog.exportSymbol('proto.supervisor.Terminal', null, global);
32
40
  goog.exportSymbol('proto.supervisor.TerminalSize', null, global);
41
+ goog.exportSymbol('proto.supervisor.TerminalTitleSource', null, global);
42
+ goog.exportSymbol('proto.supervisor.UpdateTerminalAnnotationsRequest', null, global);
43
+ goog.exportSymbol('proto.supervisor.UpdateTerminalAnnotationsResponse', null, global);
33
44
  goog.exportSymbol('proto.supervisor.WriteTerminalRequest', null, global);
34
45
  goog.exportSymbol('proto.supervisor.WriteTerminalResponse', null, global);
35
46
  /**
@@ -347,6 +358,90 @@ if (goog.DEBUG && !COMPILED) {
347
358
  */
348
359
  proto.supervisor.SetTerminalSizeResponse.displayName = 'proto.supervisor.SetTerminalSizeResponse';
349
360
  }
361
+ /**
362
+ * Generated by JsPbCodeGenerator.
363
+ * @param {Array=} opt_data Optional initial data array, typically from a
364
+ * server response, or constructed directly in Javascript. The array is used
365
+ * in place and becomes part of the constructed object. It is not cloned.
366
+ * If no data is provided, the constructed object will be empty, but still
367
+ * valid.
368
+ * @extends {jspb.Message}
369
+ * @constructor
370
+ */
371
+ proto.supervisor.SetTerminalTitleRequest = function(opt_data) {
372
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
373
+ };
374
+ goog.inherits(proto.supervisor.SetTerminalTitleRequest, jspb.Message);
375
+ if (goog.DEBUG && !COMPILED) {
376
+ /**
377
+ * @public
378
+ * @override
379
+ */
380
+ proto.supervisor.SetTerminalTitleRequest.displayName = 'proto.supervisor.SetTerminalTitleRequest';
381
+ }
382
+ /**
383
+ * Generated by JsPbCodeGenerator.
384
+ * @param {Array=} opt_data Optional initial data array, typically from a
385
+ * server response, or constructed directly in Javascript. The array is used
386
+ * in place and becomes part of the constructed object. It is not cloned.
387
+ * If no data is provided, the constructed object will be empty, but still
388
+ * valid.
389
+ * @extends {jspb.Message}
390
+ * @constructor
391
+ */
392
+ proto.supervisor.SetTerminalTitleResponse = function(opt_data) {
393
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
394
+ };
395
+ goog.inherits(proto.supervisor.SetTerminalTitleResponse, jspb.Message);
396
+ if (goog.DEBUG && !COMPILED) {
397
+ /**
398
+ * @public
399
+ * @override
400
+ */
401
+ proto.supervisor.SetTerminalTitleResponse.displayName = 'proto.supervisor.SetTerminalTitleResponse';
402
+ }
403
+ /**
404
+ * Generated by JsPbCodeGenerator.
405
+ * @param {Array=} opt_data Optional initial data array, typically from a
406
+ * server response, or constructed directly in Javascript. The array is used
407
+ * in place and becomes part of the constructed object. It is not cloned.
408
+ * If no data is provided, the constructed object will be empty, but still
409
+ * valid.
410
+ * @extends {jspb.Message}
411
+ * @constructor
412
+ */
413
+ proto.supervisor.UpdateTerminalAnnotationsRequest = function(opt_data) {
414
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.supervisor.UpdateTerminalAnnotationsRequest.repeatedFields_, null);
415
+ };
416
+ goog.inherits(proto.supervisor.UpdateTerminalAnnotationsRequest, jspb.Message);
417
+ if (goog.DEBUG && !COMPILED) {
418
+ /**
419
+ * @public
420
+ * @override
421
+ */
422
+ proto.supervisor.UpdateTerminalAnnotationsRequest.displayName = 'proto.supervisor.UpdateTerminalAnnotationsRequest';
423
+ }
424
+ /**
425
+ * Generated by JsPbCodeGenerator.
426
+ * @param {Array=} opt_data Optional initial data array, typically from a
427
+ * server response, or constructed directly in Javascript. The array is used
428
+ * in place and becomes part of the constructed object. It is not cloned.
429
+ * If no data is provided, the constructed object will be empty, but still
430
+ * valid.
431
+ * @extends {jspb.Message}
432
+ * @constructor
433
+ */
434
+ proto.supervisor.UpdateTerminalAnnotationsResponse = function(opt_data) {
435
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
436
+ };
437
+ goog.inherits(proto.supervisor.UpdateTerminalAnnotationsResponse, jspb.Message);
438
+ if (goog.DEBUG && !COMPILED) {
439
+ /**
440
+ * @public
441
+ * @override
442
+ */
443
+ proto.supervisor.UpdateTerminalAnnotationsResponse.displayName = 'proto.supervisor.UpdateTerminalAnnotationsResponse';
444
+ }
350
445
 
351
446
 
352
447
 
@@ -1357,7 +1452,8 @@ proto.supervisor.Terminal.toObject = function(includeInstance, msg) {
1357
1452
  pid: jspb.Message.getFieldWithDefault(msg, 4, 0),
1358
1453
  initialWorkdir: jspb.Message.getFieldWithDefault(msg, 5, ""),
1359
1454
  currentWorkdir: jspb.Message.getFieldWithDefault(msg, 6, ""),
1360
- annotationsMap: (f = msg.getAnnotationsMap()) ? f.toObject(includeInstance, undefined) : []
1455
+ annotationsMap: (f = msg.getAnnotationsMap()) ? f.toObject(includeInstance, undefined) : [],
1456
+ titleSource: jspb.Message.getFieldWithDefault(msg, 8, 0)
1361
1457
  };
1362
1458
 
1363
1459
  if (includeInstance) {
@@ -1424,6 +1520,10 @@ proto.supervisor.Terminal.deserializeBinaryFromReader = function(msg, reader) {
1424
1520
  jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1425
1521
  });
1426
1522
  break;
1523
+ case 8:
1524
+ var value = /** @type {!proto.supervisor.TerminalTitleSource} */ (reader.readEnum());
1525
+ msg.setTitleSource(value);
1526
+ break;
1427
1527
  default:
1428
1528
  reader.skipField();
1429
1529
  break;
@@ -1499,6 +1599,13 @@ proto.supervisor.Terminal.serializeBinaryToWriter = function(message, writer) {
1499
1599
  if (f && f.getLength() > 0) {
1500
1600
  f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1501
1601
  }
1602
+ f = message.getTitleSource();
1603
+ if (f !== 0.0) {
1604
+ writer.writeEnum(
1605
+ 8,
1606
+ f
1607
+ );
1608
+ }
1502
1609
  };
1503
1610
 
1504
1611
 
@@ -1651,6 +1758,24 @@ proto.supervisor.Terminal.prototype.clearAnnotationsMap = function() {
1651
1758
  return this;};
1652
1759
 
1653
1760
 
1761
+ /**
1762
+ * optional TerminalTitleSource title_source = 8;
1763
+ * @return {!proto.supervisor.TerminalTitleSource}
1764
+ */
1765
+ proto.supervisor.Terminal.prototype.getTitleSource = function() {
1766
+ return /** @type {!proto.supervisor.TerminalTitleSource} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
1767
+ };
1768
+
1769
+
1770
+ /**
1771
+ * @param {!proto.supervisor.TerminalTitleSource} value
1772
+ * @return {!proto.supervisor.Terminal} returns this
1773
+ */
1774
+ proto.supervisor.Terminal.prototype.setTitleSource = function(value) {
1775
+ return jspb.Message.setProto3EnumField(this, 8, value);
1776
+ };
1777
+
1778
+
1654
1779
 
1655
1780
 
1656
1781
 
@@ -2233,7 +2358,8 @@ proto.supervisor.ListenTerminalResponse.toObject = function(includeInstance, msg
2233
2358
  var f, obj = {
2234
2359
  data: msg.getData_asB64(),
2235
2360
  exitCode: jspb.Message.getFieldWithDefault(msg, 2, 0),
2236
- title: jspb.Message.getFieldWithDefault(msg, 3, "")
2361
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
2362
+ titleSource: jspb.Message.getFieldWithDefault(msg, 4, 0)
2237
2363
  };
2238
2364
 
2239
2365
  if (includeInstance) {
@@ -2282,6 +2408,10 @@ proto.supervisor.ListenTerminalResponse.deserializeBinaryFromReader = function(m
2282
2408
  var value = /** @type {string} */ (reader.readString());
2283
2409
  msg.setTitle(value);
2284
2410
  break;
2411
+ case 4:
2412
+ var value = /** @type {!proto.supervisor.TerminalTitleSource} */ (reader.readEnum());
2413
+ msg.setTitleSource(value);
2414
+ break;
2285
2415
  default:
2286
2416
  reader.skipField();
2287
2417
  break;
@@ -2332,6 +2462,13 @@ proto.supervisor.ListenTerminalResponse.serializeBinaryToWriter = function(messa
2332
2462
  f
2333
2463
  );
2334
2464
  }
2465
+ f = message.getTitleSource();
2466
+ if (f !== 0.0) {
2467
+ writer.writeEnum(
2468
+ 4,
2469
+ f
2470
+ );
2471
+ }
2335
2472
  };
2336
2473
 
2337
2474
 
@@ -2467,6 +2604,24 @@ proto.supervisor.ListenTerminalResponse.prototype.hasTitle = function() {
2467
2604
  };
2468
2605
 
2469
2606
 
2607
+ /**
2608
+ * optional TerminalTitleSource title_source = 4;
2609
+ * @return {!proto.supervisor.TerminalTitleSource}
2610
+ */
2611
+ proto.supervisor.ListenTerminalResponse.prototype.getTitleSource = function() {
2612
+ return /** @type {!proto.supervisor.TerminalTitleSource} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2613
+ };
2614
+
2615
+
2616
+ /**
2617
+ * @param {!proto.supervisor.TerminalTitleSource} value
2618
+ * @return {!proto.supervisor.ListenTerminalResponse} returns this
2619
+ */
2620
+ proto.supervisor.ListenTerminalResponse.prototype.setTitleSource = function(value) {
2621
+ return jspb.Message.setProto3EnumField(this, 4, value);
2622
+ };
2623
+
2624
+
2470
2625
 
2471
2626
 
2472
2627
 
@@ -3185,4 +3340,593 @@ proto.supervisor.SetTerminalSizeResponse.serializeBinaryToWriter = function(mess
3185
3340
  };
3186
3341
 
3187
3342
 
3343
+
3344
+
3345
+
3346
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3347
+ /**
3348
+ * Creates an object representation of this proto.
3349
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3350
+ * Optional fields that are not set will be set to undefined.
3351
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3352
+ * For the list of reserved names please see:
3353
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3354
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3355
+ * JSPB instance for transitional soy proto support:
3356
+ * http://goto/soy-param-migration
3357
+ * @return {!Object}
3358
+ */
3359
+ proto.supervisor.SetTerminalTitleRequest.prototype.toObject = function(opt_includeInstance) {
3360
+ return proto.supervisor.SetTerminalTitleRequest.toObject(opt_includeInstance, this);
3361
+ };
3362
+
3363
+
3364
+ /**
3365
+ * Static version of the {@see toObject} method.
3366
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3367
+ * the JSPB instance for transitional soy proto support:
3368
+ * http://goto/soy-param-migration
3369
+ * @param {!proto.supervisor.SetTerminalTitleRequest} msg The msg instance to transform.
3370
+ * @return {!Object}
3371
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3372
+ */
3373
+ proto.supervisor.SetTerminalTitleRequest.toObject = function(includeInstance, msg) {
3374
+ var f, obj = {
3375
+ alias: jspb.Message.getFieldWithDefault(msg, 1, ""),
3376
+ title: jspb.Message.getFieldWithDefault(msg, 2, "")
3377
+ };
3378
+
3379
+ if (includeInstance) {
3380
+ obj.$jspbMessageInstance = msg;
3381
+ }
3382
+ return obj;
3383
+ };
3384
+ }
3385
+
3386
+
3387
+ /**
3388
+ * Deserializes binary data (in protobuf wire format).
3389
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3390
+ * @return {!proto.supervisor.SetTerminalTitleRequest}
3391
+ */
3392
+ proto.supervisor.SetTerminalTitleRequest.deserializeBinary = function(bytes) {
3393
+ var reader = new jspb.BinaryReader(bytes);
3394
+ var msg = new proto.supervisor.SetTerminalTitleRequest;
3395
+ return proto.supervisor.SetTerminalTitleRequest.deserializeBinaryFromReader(msg, reader);
3396
+ };
3397
+
3398
+
3399
+ /**
3400
+ * Deserializes binary data (in protobuf wire format) from the
3401
+ * given reader into the given message object.
3402
+ * @param {!proto.supervisor.SetTerminalTitleRequest} msg The message object to deserialize into.
3403
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3404
+ * @return {!proto.supervisor.SetTerminalTitleRequest}
3405
+ */
3406
+ proto.supervisor.SetTerminalTitleRequest.deserializeBinaryFromReader = function(msg, reader) {
3407
+ while (reader.nextField()) {
3408
+ if (reader.isEndGroup()) {
3409
+ break;
3410
+ }
3411
+ var field = reader.getFieldNumber();
3412
+ switch (field) {
3413
+ case 1:
3414
+ var value = /** @type {string} */ (reader.readString());
3415
+ msg.setAlias(value);
3416
+ break;
3417
+ case 2:
3418
+ var value = /** @type {string} */ (reader.readString());
3419
+ msg.setTitle(value);
3420
+ break;
3421
+ default:
3422
+ reader.skipField();
3423
+ break;
3424
+ }
3425
+ }
3426
+ return msg;
3427
+ };
3428
+
3429
+
3430
+ /**
3431
+ * Serializes the message to binary data (in protobuf wire format).
3432
+ * @return {!Uint8Array}
3433
+ */
3434
+ proto.supervisor.SetTerminalTitleRequest.prototype.serializeBinary = function() {
3435
+ var writer = new jspb.BinaryWriter();
3436
+ proto.supervisor.SetTerminalTitleRequest.serializeBinaryToWriter(this, writer);
3437
+ return writer.getResultBuffer();
3438
+ };
3439
+
3440
+
3441
+ /**
3442
+ * Serializes the given message to binary data (in protobuf wire
3443
+ * format), writing to the given BinaryWriter.
3444
+ * @param {!proto.supervisor.SetTerminalTitleRequest} message
3445
+ * @param {!jspb.BinaryWriter} writer
3446
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3447
+ */
3448
+ proto.supervisor.SetTerminalTitleRequest.serializeBinaryToWriter = function(message, writer) {
3449
+ var f = undefined;
3450
+ f = message.getAlias();
3451
+ if (f.length > 0) {
3452
+ writer.writeString(
3453
+ 1,
3454
+ f
3455
+ );
3456
+ }
3457
+ f = message.getTitle();
3458
+ if (f.length > 0) {
3459
+ writer.writeString(
3460
+ 2,
3461
+ f
3462
+ );
3463
+ }
3464
+ };
3465
+
3466
+
3467
+ /**
3468
+ * optional string alias = 1;
3469
+ * @return {string}
3470
+ */
3471
+ proto.supervisor.SetTerminalTitleRequest.prototype.getAlias = function() {
3472
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3473
+ };
3474
+
3475
+
3476
+ /**
3477
+ * @param {string} value
3478
+ * @return {!proto.supervisor.SetTerminalTitleRequest} returns this
3479
+ */
3480
+ proto.supervisor.SetTerminalTitleRequest.prototype.setAlias = function(value) {
3481
+ return jspb.Message.setProto3StringField(this, 1, value);
3482
+ };
3483
+
3484
+
3485
+ /**
3486
+ * optional string title = 2;
3487
+ * @return {string}
3488
+ */
3489
+ proto.supervisor.SetTerminalTitleRequest.prototype.getTitle = function() {
3490
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3491
+ };
3492
+
3493
+
3494
+ /**
3495
+ * @param {string} value
3496
+ * @return {!proto.supervisor.SetTerminalTitleRequest} returns this
3497
+ */
3498
+ proto.supervisor.SetTerminalTitleRequest.prototype.setTitle = function(value) {
3499
+ return jspb.Message.setProto3StringField(this, 2, value);
3500
+ };
3501
+
3502
+
3503
+
3504
+
3505
+
3506
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3507
+ /**
3508
+ * Creates an object representation of this proto.
3509
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3510
+ * Optional fields that are not set will be set to undefined.
3511
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3512
+ * For the list of reserved names please see:
3513
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3514
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3515
+ * JSPB instance for transitional soy proto support:
3516
+ * http://goto/soy-param-migration
3517
+ * @return {!Object}
3518
+ */
3519
+ proto.supervisor.SetTerminalTitleResponse.prototype.toObject = function(opt_includeInstance) {
3520
+ return proto.supervisor.SetTerminalTitleResponse.toObject(opt_includeInstance, this);
3521
+ };
3522
+
3523
+
3524
+ /**
3525
+ * Static version of the {@see toObject} method.
3526
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3527
+ * the JSPB instance for transitional soy proto support:
3528
+ * http://goto/soy-param-migration
3529
+ * @param {!proto.supervisor.SetTerminalTitleResponse} msg The msg instance to transform.
3530
+ * @return {!Object}
3531
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3532
+ */
3533
+ proto.supervisor.SetTerminalTitleResponse.toObject = function(includeInstance, msg) {
3534
+ var f, obj = {
3535
+
3536
+ };
3537
+
3538
+ if (includeInstance) {
3539
+ obj.$jspbMessageInstance = msg;
3540
+ }
3541
+ return obj;
3542
+ };
3543
+ }
3544
+
3545
+
3546
+ /**
3547
+ * Deserializes binary data (in protobuf wire format).
3548
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3549
+ * @return {!proto.supervisor.SetTerminalTitleResponse}
3550
+ */
3551
+ proto.supervisor.SetTerminalTitleResponse.deserializeBinary = function(bytes) {
3552
+ var reader = new jspb.BinaryReader(bytes);
3553
+ var msg = new proto.supervisor.SetTerminalTitleResponse;
3554
+ return proto.supervisor.SetTerminalTitleResponse.deserializeBinaryFromReader(msg, reader);
3555
+ };
3556
+
3557
+
3558
+ /**
3559
+ * Deserializes binary data (in protobuf wire format) from the
3560
+ * given reader into the given message object.
3561
+ * @param {!proto.supervisor.SetTerminalTitleResponse} msg The message object to deserialize into.
3562
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3563
+ * @return {!proto.supervisor.SetTerminalTitleResponse}
3564
+ */
3565
+ proto.supervisor.SetTerminalTitleResponse.deserializeBinaryFromReader = function(msg, reader) {
3566
+ while (reader.nextField()) {
3567
+ if (reader.isEndGroup()) {
3568
+ break;
3569
+ }
3570
+ var field = reader.getFieldNumber();
3571
+ switch (field) {
3572
+ default:
3573
+ reader.skipField();
3574
+ break;
3575
+ }
3576
+ }
3577
+ return msg;
3578
+ };
3579
+
3580
+
3581
+ /**
3582
+ * Serializes the message to binary data (in protobuf wire format).
3583
+ * @return {!Uint8Array}
3584
+ */
3585
+ proto.supervisor.SetTerminalTitleResponse.prototype.serializeBinary = function() {
3586
+ var writer = new jspb.BinaryWriter();
3587
+ proto.supervisor.SetTerminalTitleResponse.serializeBinaryToWriter(this, writer);
3588
+ return writer.getResultBuffer();
3589
+ };
3590
+
3591
+
3592
+ /**
3593
+ * Serializes the given message to binary data (in protobuf wire
3594
+ * format), writing to the given BinaryWriter.
3595
+ * @param {!proto.supervisor.SetTerminalTitleResponse} message
3596
+ * @param {!jspb.BinaryWriter} writer
3597
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3598
+ */
3599
+ proto.supervisor.SetTerminalTitleResponse.serializeBinaryToWriter = function(message, writer) {
3600
+ var f = undefined;
3601
+ };
3602
+
3603
+
3604
+
3605
+ /**
3606
+ * List of repeated fields within this message type.
3607
+ * @private {!Array<number>}
3608
+ * @const
3609
+ */
3610
+ proto.supervisor.UpdateTerminalAnnotationsRequest.repeatedFields_ = [3];
3611
+
3612
+
3613
+
3614
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3615
+ /**
3616
+ * Creates an object representation of this proto.
3617
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3618
+ * Optional fields that are not set will be set to undefined.
3619
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3620
+ * For the list of reserved names please see:
3621
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3622
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3623
+ * JSPB instance for transitional soy proto support:
3624
+ * http://goto/soy-param-migration
3625
+ * @return {!Object}
3626
+ */
3627
+ proto.supervisor.UpdateTerminalAnnotationsRequest.prototype.toObject = function(opt_includeInstance) {
3628
+ return proto.supervisor.UpdateTerminalAnnotationsRequest.toObject(opt_includeInstance, this);
3629
+ };
3630
+
3631
+
3632
+ /**
3633
+ * Static version of the {@see toObject} method.
3634
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3635
+ * the JSPB instance for transitional soy proto support:
3636
+ * http://goto/soy-param-migration
3637
+ * @param {!proto.supervisor.UpdateTerminalAnnotationsRequest} msg The msg instance to transform.
3638
+ * @return {!Object}
3639
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3640
+ */
3641
+ proto.supervisor.UpdateTerminalAnnotationsRequest.toObject = function(includeInstance, msg) {
3642
+ var f, obj = {
3643
+ alias: jspb.Message.getFieldWithDefault(msg, 1, ""),
3644
+ changedMap: (f = msg.getChangedMap()) ? f.toObject(includeInstance, undefined) : [],
3645
+ deletedList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
3646
+ };
3647
+
3648
+ if (includeInstance) {
3649
+ obj.$jspbMessageInstance = msg;
3650
+ }
3651
+ return obj;
3652
+ };
3653
+ }
3654
+
3655
+
3656
+ /**
3657
+ * Deserializes binary data (in protobuf wire format).
3658
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3659
+ * @return {!proto.supervisor.UpdateTerminalAnnotationsRequest}
3660
+ */
3661
+ proto.supervisor.UpdateTerminalAnnotationsRequest.deserializeBinary = function(bytes) {
3662
+ var reader = new jspb.BinaryReader(bytes);
3663
+ var msg = new proto.supervisor.UpdateTerminalAnnotationsRequest;
3664
+ return proto.supervisor.UpdateTerminalAnnotationsRequest.deserializeBinaryFromReader(msg, reader);
3665
+ };
3666
+
3667
+
3668
+ /**
3669
+ * Deserializes binary data (in protobuf wire format) from the
3670
+ * given reader into the given message object.
3671
+ * @param {!proto.supervisor.UpdateTerminalAnnotationsRequest} msg The message object to deserialize into.
3672
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3673
+ * @return {!proto.supervisor.UpdateTerminalAnnotationsRequest}
3674
+ */
3675
+ proto.supervisor.UpdateTerminalAnnotationsRequest.deserializeBinaryFromReader = function(msg, reader) {
3676
+ while (reader.nextField()) {
3677
+ if (reader.isEndGroup()) {
3678
+ break;
3679
+ }
3680
+ var field = reader.getFieldNumber();
3681
+ switch (field) {
3682
+ case 1:
3683
+ var value = /** @type {string} */ (reader.readString());
3684
+ msg.setAlias(value);
3685
+ break;
3686
+ case 2:
3687
+ var value = msg.getChangedMap();
3688
+ reader.readMessage(value, function(message, reader) {
3689
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
3690
+ });
3691
+ break;
3692
+ case 3:
3693
+ var value = /** @type {string} */ (reader.readString());
3694
+ msg.addDeleted(value);
3695
+ break;
3696
+ default:
3697
+ reader.skipField();
3698
+ break;
3699
+ }
3700
+ }
3701
+ return msg;
3702
+ };
3703
+
3704
+
3705
+ /**
3706
+ * Serializes the message to binary data (in protobuf wire format).
3707
+ * @return {!Uint8Array}
3708
+ */
3709
+ proto.supervisor.UpdateTerminalAnnotationsRequest.prototype.serializeBinary = function() {
3710
+ var writer = new jspb.BinaryWriter();
3711
+ proto.supervisor.UpdateTerminalAnnotationsRequest.serializeBinaryToWriter(this, writer);
3712
+ return writer.getResultBuffer();
3713
+ };
3714
+
3715
+
3716
+ /**
3717
+ * Serializes the given message to binary data (in protobuf wire
3718
+ * format), writing to the given BinaryWriter.
3719
+ * @param {!proto.supervisor.UpdateTerminalAnnotationsRequest} message
3720
+ * @param {!jspb.BinaryWriter} writer
3721
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3722
+ */
3723
+ proto.supervisor.UpdateTerminalAnnotationsRequest.serializeBinaryToWriter = function(message, writer) {
3724
+ var f = undefined;
3725
+ f = message.getAlias();
3726
+ if (f.length > 0) {
3727
+ writer.writeString(
3728
+ 1,
3729
+ f
3730
+ );
3731
+ }
3732
+ f = message.getChangedMap(true);
3733
+ if (f && f.getLength() > 0) {
3734
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
3735
+ }
3736
+ f = message.getDeletedList();
3737
+ if (f.length > 0) {
3738
+ writer.writeRepeatedString(
3739
+ 3,
3740
+ f
3741
+ );
3742
+ }
3743
+ };
3744
+
3745
+
3746
+ /**
3747
+ * optional string alias = 1;
3748
+ * @return {string}
3749
+ */
3750
+ proto.supervisor.UpdateTerminalAnnotationsRequest.prototype.getAlias = function() {
3751
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3752
+ };
3753
+
3754
+
3755
+ /**
3756
+ * @param {string} value
3757
+ * @return {!proto.supervisor.UpdateTerminalAnnotationsRequest} returns this
3758
+ */
3759
+ proto.supervisor.UpdateTerminalAnnotationsRequest.prototype.setAlias = function(value) {
3760
+ return jspb.Message.setProto3StringField(this, 1, value);
3761
+ };
3762
+
3763
+
3764
+ /**
3765
+ * map<string, string> changed = 2;
3766
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
3767
+ * empty, instead returning `undefined`
3768
+ * @return {!jspb.Map<string,string>}
3769
+ */
3770
+ proto.supervisor.UpdateTerminalAnnotationsRequest.prototype.getChangedMap = function(opt_noLazyCreate) {
3771
+ return /** @type {!jspb.Map<string,string>} */ (
3772
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
3773
+ null));
3774
+ };
3775
+
3776
+
3777
+ /**
3778
+ * Clears values from the map. The map will be non-null.
3779
+ * @return {!proto.supervisor.UpdateTerminalAnnotationsRequest} returns this
3780
+ */
3781
+ proto.supervisor.UpdateTerminalAnnotationsRequest.prototype.clearChangedMap = function() {
3782
+ this.getChangedMap().clear();
3783
+ return this;};
3784
+
3785
+
3786
+ /**
3787
+ * repeated string deleted = 3;
3788
+ * @return {!Array<string>}
3789
+ */
3790
+ proto.supervisor.UpdateTerminalAnnotationsRequest.prototype.getDeletedList = function() {
3791
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
3792
+ };
3793
+
3794
+
3795
+ /**
3796
+ * @param {!Array<string>} value
3797
+ * @return {!proto.supervisor.UpdateTerminalAnnotationsRequest} returns this
3798
+ */
3799
+ proto.supervisor.UpdateTerminalAnnotationsRequest.prototype.setDeletedList = function(value) {
3800
+ return jspb.Message.setField(this, 3, value || []);
3801
+ };
3802
+
3803
+
3804
+ /**
3805
+ * @param {string} value
3806
+ * @param {number=} opt_index
3807
+ * @return {!proto.supervisor.UpdateTerminalAnnotationsRequest} returns this
3808
+ */
3809
+ proto.supervisor.UpdateTerminalAnnotationsRequest.prototype.addDeleted = function(value, opt_index) {
3810
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
3811
+ };
3812
+
3813
+
3814
+ /**
3815
+ * Clears the list making it empty but non-null.
3816
+ * @return {!proto.supervisor.UpdateTerminalAnnotationsRequest} returns this
3817
+ */
3818
+ proto.supervisor.UpdateTerminalAnnotationsRequest.prototype.clearDeletedList = function() {
3819
+ return this.setDeletedList([]);
3820
+ };
3821
+
3822
+
3823
+
3824
+
3825
+
3826
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3827
+ /**
3828
+ * Creates an object representation of this proto.
3829
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3830
+ * Optional fields that are not set will be set to undefined.
3831
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3832
+ * For the list of reserved names please see:
3833
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3834
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3835
+ * JSPB instance for transitional soy proto support:
3836
+ * http://goto/soy-param-migration
3837
+ * @return {!Object}
3838
+ */
3839
+ proto.supervisor.UpdateTerminalAnnotationsResponse.prototype.toObject = function(opt_includeInstance) {
3840
+ return proto.supervisor.UpdateTerminalAnnotationsResponse.toObject(opt_includeInstance, this);
3841
+ };
3842
+
3843
+
3844
+ /**
3845
+ * Static version of the {@see toObject} method.
3846
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3847
+ * the JSPB instance for transitional soy proto support:
3848
+ * http://goto/soy-param-migration
3849
+ * @param {!proto.supervisor.UpdateTerminalAnnotationsResponse} msg The msg instance to transform.
3850
+ * @return {!Object}
3851
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3852
+ */
3853
+ proto.supervisor.UpdateTerminalAnnotationsResponse.toObject = function(includeInstance, msg) {
3854
+ var f, obj = {
3855
+
3856
+ };
3857
+
3858
+ if (includeInstance) {
3859
+ obj.$jspbMessageInstance = msg;
3860
+ }
3861
+ return obj;
3862
+ };
3863
+ }
3864
+
3865
+
3866
+ /**
3867
+ * Deserializes binary data (in protobuf wire format).
3868
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3869
+ * @return {!proto.supervisor.UpdateTerminalAnnotationsResponse}
3870
+ */
3871
+ proto.supervisor.UpdateTerminalAnnotationsResponse.deserializeBinary = function(bytes) {
3872
+ var reader = new jspb.BinaryReader(bytes);
3873
+ var msg = new proto.supervisor.UpdateTerminalAnnotationsResponse;
3874
+ return proto.supervisor.UpdateTerminalAnnotationsResponse.deserializeBinaryFromReader(msg, reader);
3875
+ };
3876
+
3877
+
3878
+ /**
3879
+ * Deserializes binary data (in protobuf wire format) from the
3880
+ * given reader into the given message object.
3881
+ * @param {!proto.supervisor.UpdateTerminalAnnotationsResponse} msg The message object to deserialize into.
3882
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3883
+ * @return {!proto.supervisor.UpdateTerminalAnnotationsResponse}
3884
+ */
3885
+ proto.supervisor.UpdateTerminalAnnotationsResponse.deserializeBinaryFromReader = function(msg, reader) {
3886
+ while (reader.nextField()) {
3887
+ if (reader.isEndGroup()) {
3888
+ break;
3889
+ }
3890
+ var field = reader.getFieldNumber();
3891
+ switch (field) {
3892
+ default:
3893
+ reader.skipField();
3894
+ break;
3895
+ }
3896
+ }
3897
+ return msg;
3898
+ };
3899
+
3900
+
3901
+ /**
3902
+ * Serializes the message to binary data (in protobuf wire format).
3903
+ * @return {!Uint8Array}
3904
+ */
3905
+ proto.supervisor.UpdateTerminalAnnotationsResponse.prototype.serializeBinary = function() {
3906
+ var writer = new jspb.BinaryWriter();
3907
+ proto.supervisor.UpdateTerminalAnnotationsResponse.serializeBinaryToWriter(this, writer);
3908
+ return writer.getResultBuffer();
3909
+ };
3910
+
3911
+
3912
+ /**
3913
+ * Serializes the given message to binary data (in protobuf wire
3914
+ * format), writing to the given BinaryWriter.
3915
+ * @param {!proto.supervisor.UpdateTerminalAnnotationsResponse} message
3916
+ * @param {!jspb.BinaryWriter} writer
3917
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3918
+ */
3919
+ proto.supervisor.UpdateTerminalAnnotationsResponse.serializeBinaryToWriter = function(message, writer) {
3920
+ var f = undefined;
3921
+ };
3922
+
3923
+
3924
+ /**
3925
+ * @enum {number}
3926
+ */
3927
+ proto.supervisor.TerminalTitleSource = {
3928
+ PROCESS: 0,
3929
+ API: 1
3930
+ };
3931
+
3188
3932
  goog.object.extend(exports, proto.supervisor);