@miradorlabs/web-grpc 3.9.0 → 3.11.0

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.
@@ -17,6 +17,8 @@ var global = globalThis;
17
17
 
18
18
  var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
19
19
  goog.object.extend(proto, proto_gateway_common_v1_status_pb);
20
+ goog.exportSymbol('proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest', null, global);
21
+ goog.exportSymbol('proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse', null, global);
20
22
  goog.exportSymbol('proto.gateway.web.v1.GitHubBeginResponse', null, global);
21
23
  goog.exportSymbol('proto.gateway.web.v1.GitHubCompleteRequest', null, global);
22
24
  goog.exportSymbol('proto.gateway.web.v1.GitHubConnection', null, global);
@@ -38,6 +40,10 @@ goog.exportSymbol('proto.gateway.web.v1.GitHubRepository', null, global);
38
40
  goog.exportSymbol('proto.gateway.web.v1.GitHubScopeRequest', null, global);
39
41
  goog.exportSymbol('proto.gateway.web.v1.GitHubStatusResponse', null, global);
40
42
  goog.exportSymbol('proto.gateway.web.v1.GitHubWebhookRequest', null, global);
43
+ goog.exportSymbol('proto.gateway.web.v1.InstallTermaPullRequest', null, global);
44
+ goog.exportSymbol('proto.gateway.web.v1.InstallTermaPullRequestResult', null, global);
45
+ goog.exportSymbol('proto.gateway.web.v1.ListInstallTermaPullRequestsRequest', null, global);
46
+ goog.exportSymbol('proto.gateway.web.v1.ListInstallTermaPullRequestsResponse', null, global);
41
47
  /**
42
48
  * Generated by JsPbCodeGenerator.
43
49
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -458,6 +464,132 @@ if (goog.DEBUG && !COMPILED) {
458
464
  */
459
465
  proto.gateway.web.v1.GitHubFilesResponse.displayName = 'proto.gateway.web.v1.GitHubFilesResponse';
460
466
  }
467
+ /**
468
+ * Generated by JsPbCodeGenerator.
469
+ * @param {Array=} opt_data Optional initial data array, typically from a
470
+ * server response, or constructed directly in Javascript. The array is used
471
+ * in place and becomes part of the constructed object. It is not cloned.
472
+ * If no data is provided, the constructed object will be empty, but still
473
+ * valid.
474
+ * @extends {jspb.Message}
475
+ * @constructor
476
+ */
477
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest = function(opt_data) {
478
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.repeatedFields_, null);
479
+ };
480
+ goog.inherits(proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest, jspb.Message);
481
+ if (goog.DEBUG && !COMPILED) {
482
+ /**
483
+ * @public
484
+ * @override
485
+ */
486
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.displayName = 'proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest';
487
+ }
488
+ /**
489
+ * Generated by JsPbCodeGenerator.
490
+ * @param {Array=} opt_data Optional initial data array, typically from a
491
+ * server response, or constructed directly in Javascript. The array is used
492
+ * in place and becomes part of the constructed object. It is not cloned.
493
+ * If no data is provided, the constructed object will be empty, but still
494
+ * valid.
495
+ * @extends {jspb.Message}
496
+ * @constructor
497
+ */
498
+ proto.gateway.web.v1.InstallTermaPullRequestResult = function(opt_data) {
499
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
500
+ };
501
+ goog.inherits(proto.gateway.web.v1.InstallTermaPullRequestResult, jspb.Message);
502
+ if (goog.DEBUG && !COMPILED) {
503
+ /**
504
+ * @public
505
+ * @override
506
+ */
507
+ proto.gateway.web.v1.InstallTermaPullRequestResult.displayName = 'proto.gateway.web.v1.InstallTermaPullRequestResult';
508
+ }
509
+ /**
510
+ * Generated by JsPbCodeGenerator.
511
+ * @param {Array=} opt_data Optional initial data array, typically from a
512
+ * server response, or constructed directly in Javascript. The array is used
513
+ * in place and becomes part of the constructed object. It is not cloned.
514
+ * If no data is provided, the constructed object will be empty, but still
515
+ * valid.
516
+ * @extends {jspb.Message}
517
+ * @constructor
518
+ */
519
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse = function(opt_data) {
520
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.repeatedFields_, null);
521
+ };
522
+ goog.inherits(proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse, jspb.Message);
523
+ if (goog.DEBUG && !COMPILED) {
524
+ /**
525
+ * @public
526
+ * @override
527
+ */
528
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.displayName = 'proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse';
529
+ }
530
+ /**
531
+ * Generated by JsPbCodeGenerator.
532
+ * @param {Array=} opt_data Optional initial data array, typically from a
533
+ * server response, or constructed directly in Javascript. The array is used
534
+ * in place and becomes part of the constructed object. It is not cloned.
535
+ * If no data is provided, the constructed object will be empty, but still
536
+ * valid.
537
+ * @extends {jspb.Message}
538
+ * @constructor
539
+ */
540
+ proto.gateway.web.v1.ListInstallTermaPullRequestsRequest = function(opt_data) {
541
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
542
+ };
543
+ goog.inherits(proto.gateway.web.v1.ListInstallTermaPullRequestsRequest, jspb.Message);
544
+ if (goog.DEBUG && !COMPILED) {
545
+ /**
546
+ * @public
547
+ * @override
548
+ */
549
+ proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.displayName = 'proto.gateway.web.v1.ListInstallTermaPullRequestsRequest';
550
+ }
551
+ /**
552
+ * Generated by JsPbCodeGenerator.
553
+ * @param {Array=} opt_data Optional initial data array, typically from a
554
+ * server response, or constructed directly in Javascript. The array is used
555
+ * in place and becomes part of the constructed object. It is not cloned.
556
+ * If no data is provided, the constructed object will be empty, but still
557
+ * valid.
558
+ * @extends {jspb.Message}
559
+ * @constructor
560
+ */
561
+ proto.gateway.web.v1.InstallTermaPullRequest = function(opt_data) {
562
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
563
+ };
564
+ goog.inherits(proto.gateway.web.v1.InstallTermaPullRequest, jspb.Message);
565
+ if (goog.DEBUG && !COMPILED) {
566
+ /**
567
+ * @public
568
+ * @override
569
+ */
570
+ proto.gateway.web.v1.InstallTermaPullRequest.displayName = 'proto.gateway.web.v1.InstallTermaPullRequest';
571
+ }
572
+ /**
573
+ * Generated by JsPbCodeGenerator.
574
+ * @param {Array=} opt_data Optional initial data array, typically from a
575
+ * server response, or constructed directly in Javascript. The array is used
576
+ * in place and becomes part of the constructed object. It is not cloned.
577
+ * If no data is provided, the constructed object will be empty, but still
578
+ * valid.
579
+ * @extends {jspb.Message}
580
+ * @constructor
581
+ */
582
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse = function(opt_data) {
583
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.repeatedFields_, null);
584
+ };
585
+ goog.inherits(proto.gateway.web.v1.ListInstallTermaPullRequestsResponse, jspb.Message);
586
+ if (goog.DEBUG && !COMPILED) {
587
+ /**
588
+ * @public
589
+ * @override
590
+ */
591
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.displayName = 'proto.gateway.web.v1.ListInstallTermaPullRequestsResponse';
592
+ }
461
593
 
462
594
 
463
595
 
@@ -5148,4 +5280,1302 @@ proto.gateway.web.v1.GitHubFilesResponse.prototype.clearFilesList = function() {
5148
5280
  };
5149
5281
 
5150
5282
 
5283
+
5284
+ /**
5285
+ * List of repeated fields within this message type.
5286
+ * @private {!Array<number>}
5287
+ * @const
5288
+ */
5289
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.repeatedFields_ = [3];
5290
+
5291
+
5292
+
5293
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5294
+ /**
5295
+ * Creates an object representation of this proto.
5296
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5297
+ * Optional fields that are not set will be set to undefined.
5298
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5299
+ * For the list of reserved names please see:
5300
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5301
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5302
+ * JSPB instance for transitional soy proto support:
5303
+ * http://goto/soy-param-migration
5304
+ * @return {!Object}
5305
+ */
5306
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.toObject = function(opt_includeInstance) {
5307
+ return proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.toObject(opt_includeInstance, this);
5308
+ };
5309
+
5310
+
5311
+ /**
5312
+ * Static version of the {@see toObject} method.
5313
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5314
+ * the JSPB instance for transitional soy proto support:
5315
+ * http://goto/soy-param-migration
5316
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} msg The msg instance to transform.
5317
+ * @return {!Object}
5318
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5319
+ */
5320
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.toObject = function(includeInstance, msg) {
5321
+ var f, obj = {
5322
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
5323
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
5324
+ repositoriesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
5325
+ };
5326
+
5327
+ if (includeInstance) {
5328
+ obj.$jspbMessageInstance = msg;
5329
+ }
5330
+ return obj;
5331
+ };
5332
+ }
5333
+
5334
+
5335
+ /**
5336
+ * Deserializes binary data (in protobuf wire format).
5337
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5338
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest}
5339
+ */
5340
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.deserializeBinary = function(bytes) {
5341
+ var reader = new jspb.BinaryReader(bytes);
5342
+ var msg = new proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest;
5343
+ return proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.deserializeBinaryFromReader(msg, reader);
5344
+ };
5345
+
5346
+
5347
+ /**
5348
+ * Deserializes binary data (in protobuf wire format) from the
5349
+ * given reader into the given message object.
5350
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} msg The message object to deserialize into.
5351
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5352
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest}
5353
+ */
5354
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.deserializeBinaryFromReader = function(msg, reader) {
5355
+ while (reader.nextField()) {
5356
+ if (reader.isEndGroup()) {
5357
+ break;
5358
+ }
5359
+ var field = reader.getFieldNumber();
5360
+ switch (field) {
5361
+ case 1:
5362
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5363
+ msg.setOrganizationId(value);
5364
+ break;
5365
+ case 2:
5366
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5367
+ msg.setProjectId(value);
5368
+ break;
5369
+ case 3:
5370
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5371
+ msg.addRepositories(value);
5372
+ break;
5373
+ default:
5374
+ reader.skipField();
5375
+ break;
5376
+ }
5377
+ }
5378
+ return msg;
5379
+ };
5380
+
5381
+
5382
+ /**
5383
+ * Serializes the message to binary data (in protobuf wire format).
5384
+ * @return {!Uint8Array}
5385
+ */
5386
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.serializeBinary = function() {
5387
+ var writer = new jspb.BinaryWriter();
5388
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.serializeBinaryToWriter(this, writer);
5389
+ return writer.getResultBuffer();
5390
+ };
5391
+
5392
+
5393
+ /**
5394
+ * Serializes the given message to binary data (in protobuf wire
5395
+ * format), writing to the given BinaryWriter.
5396
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} message
5397
+ * @param {!jspb.BinaryWriter} writer
5398
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5399
+ */
5400
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.serializeBinaryToWriter = function(message, writer) {
5401
+ var f = undefined;
5402
+ f = message.getOrganizationId();
5403
+ if (f.length > 0) {
5404
+ writer.writeString(
5405
+ 1,
5406
+ f
5407
+ );
5408
+ }
5409
+ f = message.getProjectId();
5410
+ if (f.length > 0) {
5411
+ writer.writeString(
5412
+ 2,
5413
+ f
5414
+ );
5415
+ }
5416
+ f = message.getRepositoriesList();
5417
+ if (f.length > 0) {
5418
+ writer.writeRepeatedString(
5419
+ 3,
5420
+ f
5421
+ );
5422
+ }
5423
+ };
5424
+
5425
+
5426
+ /**
5427
+ * optional string organization_id = 1;
5428
+ * @return {string}
5429
+ */
5430
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.getOrganizationId = function() {
5431
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5432
+ };
5433
+
5434
+
5435
+ /**
5436
+ * @param {string} value
5437
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5438
+ */
5439
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.setOrganizationId = function(value) {
5440
+ return jspb.Message.setProto3StringField(this, 1, value);
5441
+ };
5442
+
5443
+
5444
+ /**
5445
+ * optional string project_id = 2;
5446
+ * @return {string}
5447
+ */
5448
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.getProjectId = function() {
5449
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5450
+ };
5451
+
5452
+
5453
+ /**
5454
+ * @param {string} value
5455
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5456
+ */
5457
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.setProjectId = function(value) {
5458
+ return jspb.Message.setProto3StringField(this, 2, value);
5459
+ };
5460
+
5461
+
5462
+ /**
5463
+ * repeated string repositories = 3;
5464
+ * @return {!Array<string>}
5465
+ */
5466
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.getRepositoriesList = function() {
5467
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
5468
+ };
5469
+
5470
+
5471
+ /**
5472
+ * @param {!Array<string>} value
5473
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5474
+ */
5475
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.setRepositoriesList = function(value) {
5476
+ return jspb.Message.setField(this, 3, value || []);
5477
+ };
5478
+
5479
+
5480
+ /**
5481
+ * @param {string} value
5482
+ * @param {number=} opt_index
5483
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5484
+ */
5485
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.addRepositories = function(value, opt_index) {
5486
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
5487
+ };
5488
+
5489
+
5490
+ /**
5491
+ * Clears the list making it empty but non-null.
5492
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5493
+ */
5494
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.clearRepositoriesList = function() {
5495
+ return this.setRepositoriesList([]);
5496
+ };
5497
+
5498
+
5499
+
5500
+
5501
+
5502
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5503
+ /**
5504
+ * Creates an object representation of this proto.
5505
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5506
+ * Optional fields that are not set will be set to undefined.
5507
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5508
+ * For the list of reserved names please see:
5509
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5510
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5511
+ * JSPB instance for transitional soy proto support:
5512
+ * http://goto/soy-param-migration
5513
+ * @return {!Object}
5514
+ */
5515
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.toObject = function(opt_includeInstance) {
5516
+ return proto.gateway.web.v1.InstallTermaPullRequestResult.toObject(opt_includeInstance, this);
5517
+ };
5518
+
5519
+
5520
+ /**
5521
+ * Static version of the {@see toObject} method.
5522
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5523
+ * the JSPB instance for transitional soy proto support:
5524
+ * http://goto/soy-param-migration
5525
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult} msg The msg instance to transform.
5526
+ * @return {!Object}
5527
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5528
+ */
5529
+ proto.gateway.web.v1.InstallTermaPullRequestResult.toObject = function(includeInstance, msg) {
5530
+ var f, obj = {
5531
+ repository: jspb.Message.getFieldWithDefault(msg, 1, ""),
5532
+ number: jspb.Message.getFieldWithDefault(msg, 2, 0),
5533
+ url: jspb.Message.getFieldWithDefault(msg, 3, ""),
5534
+ errorMessage: jspb.Message.getFieldWithDefault(msg, 4, ""),
5535
+ alreadyInstalled: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
5536
+ };
5537
+
5538
+ if (includeInstance) {
5539
+ obj.$jspbMessageInstance = msg;
5540
+ }
5541
+ return obj;
5542
+ };
5543
+ }
5544
+
5545
+
5546
+ /**
5547
+ * Deserializes binary data (in protobuf wire format).
5548
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5549
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult}
5550
+ */
5551
+ proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinary = function(bytes) {
5552
+ var reader = new jspb.BinaryReader(bytes);
5553
+ var msg = new proto.gateway.web.v1.InstallTermaPullRequestResult;
5554
+ return proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinaryFromReader(msg, reader);
5555
+ };
5556
+
5557
+
5558
+ /**
5559
+ * Deserializes binary data (in protobuf wire format) from the
5560
+ * given reader into the given message object.
5561
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult} msg The message object to deserialize into.
5562
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5563
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult}
5564
+ */
5565
+ proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinaryFromReader = function(msg, reader) {
5566
+ while (reader.nextField()) {
5567
+ if (reader.isEndGroup()) {
5568
+ break;
5569
+ }
5570
+ var field = reader.getFieldNumber();
5571
+ switch (field) {
5572
+ case 1:
5573
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5574
+ msg.setRepository(value);
5575
+ break;
5576
+ case 2:
5577
+ var value = /** @type {number} */ (reader.readInt64());
5578
+ msg.setNumber(value);
5579
+ break;
5580
+ case 3:
5581
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5582
+ msg.setUrl(value);
5583
+ break;
5584
+ case 4:
5585
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5586
+ msg.setErrorMessage(value);
5587
+ break;
5588
+ case 5:
5589
+ var value = /** @type {boolean} */ (reader.readBool());
5590
+ msg.setAlreadyInstalled(value);
5591
+ break;
5592
+ default:
5593
+ reader.skipField();
5594
+ break;
5595
+ }
5596
+ }
5597
+ return msg;
5598
+ };
5599
+
5600
+
5601
+ /**
5602
+ * Serializes the message to binary data (in protobuf wire format).
5603
+ * @return {!Uint8Array}
5604
+ */
5605
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.serializeBinary = function() {
5606
+ var writer = new jspb.BinaryWriter();
5607
+ proto.gateway.web.v1.InstallTermaPullRequestResult.serializeBinaryToWriter(this, writer);
5608
+ return writer.getResultBuffer();
5609
+ };
5610
+
5611
+
5612
+ /**
5613
+ * Serializes the given message to binary data (in protobuf wire
5614
+ * format), writing to the given BinaryWriter.
5615
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult} message
5616
+ * @param {!jspb.BinaryWriter} writer
5617
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5618
+ */
5619
+ proto.gateway.web.v1.InstallTermaPullRequestResult.serializeBinaryToWriter = function(message, writer) {
5620
+ var f = undefined;
5621
+ f = message.getRepository();
5622
+ if (f.length > 0) {
5623
+ writer.writeString(
5624
+ 1,
5625
+ f
5626
+ );
5627
+ }
5628
+ f = message.getNumber();
5629
+ if (f !== 0) {
5630
+ writer.writeInt64(
5631
+ 2,
5632
+ f
5633
+ );
5634
+ }
5635
+ f = message.getUrl();
5636
+ if (f.length > 0) {
5637
+ writer.writeString(
5638
+ 3,
5639
+ f
5640
+ );
5641
+ }
5642
+ f = message.getErrorMessage();
5643
+ if (f.length > 0) {
5644
+ writer.writeString(
5645
+ 4,
5646
+ f
5647
+ );
5648
+ }
5649
+ f = message.getAlreadyInstalled();
5650
+ if (f) {
5651
+ writer.writeBool(
5652
+ 5,
5653
+ f
5654
+ );
5655
+ }
5656
+ };
5657
+
5658
+
5659
+ /**
5660
+ * optional string repository = 1;
5661
+ * @return {string}
5662
+ */
5663
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getRepository = function() {
5664
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5665
+ };
5666
+
5667
+
5668
+ /**
5669
+ * @param {string} value
5670
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5671
+ */
5672
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setRepository = function(value) {
5673
+ return jspb.Message.setProto3StringField(this, 1, value);
5674
+ };
5675
+
5676
+
5677
+ /**
5678
+ * optional int64 number = 2;
5679
+ * @return {number}
5680
+ */
5681
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getNumber = function() {
5682
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5683
+ };
5684
+
5685
+
5686
+ /**
5687
+ * @param {number} value
5688
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5689
+ */
5690
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setNumber = function(value) {
5691
+ return jspb.Message.setProto3IntField(this, 2, value);
5692
+ };
5693
+
5694
+
5695
+ /**
5696
+ * optional string url = 3;
5697
+ * @return {string}
5698
+ */
5699
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getUrl = function() {
5700
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5701
+ };
5702
+
5703
+
5704
+ /**
5705
+ * @param {string} value
5706
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5707
+ */
5708
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setUrl = function(value) {
5709
+ return jspb.Message.setProto3StringField(this, 3, value);
5710
+ };
5711
+
5712
+
5713
+ /**
5714
+ * optional string error_message = 4;
5715
+ * @return {string}
5716
+ */
5717
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getErrorMessage = function() {
5718
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5719
+ };
5720
+
5721
+
5722
+ /**
5723
+ * @param {string} value
5724
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5725
+ */
5726
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setErrorMessage = function(value) {
5727
+ return jspb.Message.setProto3StringField(this, 4, value);
5728
+ };
5729
+
5730
+
5731
+ /**
5732
+ * optional bool already_installed = 5;
5733
+ * @return {boolean}
5734
+ */
5735
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getAlreadyInstalled = function() {
5736
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
5737
+ };
5738
+
5739
+
5740
+ /**
5741
+ * @param {boolean} value
5742
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5743
+ */
5744
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setAlreadyInstalled = function(value) {
5745
+ return jspb.Message.setProto3BooleanField(this, 5, value);
5746
+ };
5747
+
5748
+
5749
+
5750
+ /**
5751
+ * List of repeated fields within this message type.
5752
+ * @private {!Array<number>}
5753
+ * @const
5754
+ */
5755
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.repeatedFields_ = [2];
5756
+
5757
+
5758
+
5759
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5760
+ /**
5761
+ * Creates an object representation of this proto.
5762
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5763
+ * Optional fields that are not set will be set to undefined.
5764
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5765
+ * For the list of reserved names please see:
5766
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5767
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5768
+ * JSPB instance for transitional soy proto support:
5769
+ * http://goto/soy-param-migration
5770
+ * @return {!Object}
5771
+ */
5772
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.toObject = function(opt_includeInstance) {
5773
+ return proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.toObject(opt_includeInstance, this);
5774
+ };
5775
+
5776
+
5777
+ /**
5778
+ * Static version of the {@see toObject} method.
5779
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5780
+ * the JSPB instance for transitional soy proto support:
5781
+ * http://goto/soy-param-migration
5782
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} msg The msg instance to transform.
5783
+ * @return {!Object}
5784
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5785
+ */
5786
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.toObject = function(includeInstance, msg) {
5787
+ var f, obj = {
5788
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
5789
+ resultsList: jspb.Message.toObjectList(msg.getResultsList(),
5790
+ proto.gateway.web.v1.InstallTermaPullRequestResult.toObject, includeInstance)
5791
+ };
5792
+
5793
+ if (includeInstance) {
5794
+ obj.$jspbMessageInstance = msg;
5795
+ }
5796
+ return obj;
5797
+ };
5798
+ }
5799
+
5800
+
5801
+ /**
5802
+ * Deserializes binary data (in protobuf wire format).
5803
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5804
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse}
5805
+ */
5806
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.deserializeBinary = function(bytes) {
5807
+ var reader = new jspb.BinaryReader(bytes);
5808
+ var msg = new proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse;
5809
+ return proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.deserializeBinaryFromReader(msg, reader);
5810
+ };
5811
+
5812
+
5813
+ /**
5814
+ * Deserializes binary data (in protobuf wire format) from the
5815
+ * given reader into the given message object.
5816
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} msg The message object to deserialize into.
5817
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5818
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse}
5819
+ */
5820
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.deserializeBinaryFromReader = function(msg, reader) {
5821
+ while (reader.nextField()) {
5822
+ if (reader.isEndGroup()) {
5823
+ break;
5824
+ }
5825
+ var field = reader.getFieldNumber();
5826
+ switch (field) {
5827
+ case 1:
5828
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
5829
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
5830
+ msg.setStatus(value);
5831
+ break;
5832
+ case 2:
5833
+ var value = new proto.gateway.web.v1.InstallTermaPullRequestResult;
5834
+ reader.readMessage(value,proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinaryFromReader);
5835
+ msg.addResults(value);
5836
+ break;
5837
+ default:
5838
+ reader.skipField();
5839
+ break;
5840
+ }
5841
+ }
5842
+ return msg;
5843
+ };
5844
+
5845
+
5846
+ /**
5847
+ * Serializes the message to binary data (in protobuf wire format).
5848
+ * @return {!Uint8Array}
5849
+ */
5850
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.serializeBinary = function() {
5851
+ var writer = new jspb.BinaryWriter();
5852
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.serializeBinaryToWriter(this, writer);
5853
+ return writer.getResultBuffer();
5854
+ };
5855
+
5856
+
5857
+ /**
5858
+ * Serializes the given message to binary data (in protobuf wire
5859
+ * format), writing to the given BinaryWriter.
5860
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} message
5861
+ * @param {!jspb.BinaryWriter} writer
5862
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5863
+ */
5864
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.serializeBinaryToWriter = function(message, writer) {
5865
+ var f = undefined;
5866
+ f = message.getStatus();
5867
+ if (f != null) {
5868
+ writer.writeMessage(
5869
+ 1,
5870
+ f,
5871
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
5872
+ );
5873
+ }
5874
+ f = message.getResultsList();
5875
+ if (f.length > 0) {
5876
+ writer.writeRepeatedMessage(
5877
+ 2,
5878
+ f,
5879
+ proto.gateway.web.v1.InstallTermaPullRequestResult.serializeBinaryToWriter
5880
+ );
5881
+ }
5882
+ };
5883
+
5884
+
5885
+ /**
5886
+ * optional gateway.common.v1.ResponseStatus status = 1;
5887
+ * @return {?proto.gateway.common.v1.ResponseStatus}
5888
+ */
5889
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.getStatus = function() {
5890
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
5891
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
5892
+ };
5893
+
5894
+
5895
+ /**
5896
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
5897
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5898
+ */
5899
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.setStatus = function(value) {
5900
+ return jspb.Message.setWrapperField(this, 1, value);
5901
+ };
5902
+
5903
+
5904
+ /**
5905
+ * Clears the message field making it undefined.
5906
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5907
+ */
5908
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.clearStatus = function() {
5909
+ return this.setStatus(undefined);
5910
+ };
5911
+
5912
+
5913
+ /**
5914
+ * Returns whether this field is set.
5915
+ * @return {boolean}
5916
+ */
5917
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.hasStatus = function() {
5918
+ return jspb.Message.getField(this, 1) != null;
5919
+ };
5920
+
5921
+
5922
+ /**
5923
+ * repeated InstallTermaPullRequestResult results = 2;
5924
+ * @return {!Array<!proto.gateway.web.v1.InstallTermaPullRequestResult>}
5925
+ */
5926
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.getResultsList = function() {
5927
+ return /** @type{!Array<!proto.gateway.web.v1.InstallTermaPullRequestResult>} */ (
5928
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.InstallTermaPullRequestResult, 2));
5929
+ };
5930
+
5931
+
5932
+ /**
5933
+ * @param {!Array<!proto.gateway.web.v1.InstallTermaPullRequestResult>} value
5934
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5935
+ */
5936
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.setResultsList = function(value) {
5937
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
5938
+ };
5939
+
5940
+
5941
+ /**
5942
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult=} opt_value
5943
+ * @param {number=} opt_index
5944
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult}
5945
+ */
5946
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.addResults = function(opt_value, opt_index) {
5947
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.InstallTermaPullRequestResult, opt_index);
5948
+ };
5949
+
5950
+
5951
+ /**
5952
+ * Clears the list making it empty but non-null.
5953
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5954
+ */
5955
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.clearResultsList = function() {
5956
+ return this.setResultsList([]);
5957
+ };
5958
+
5959
+
5960
+
5961
+
5962
+
5963
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5964
+ /**
5965
+ * Creates an object representation of this proto.
5966
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5967
+ * Optional fields that are not set will be set to undefined.
5968
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5969
+ * For the list of reserved names please see:
5970
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5971
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5972
+ * JSPB instance for transitional soy proto support:
5973
+ * http://goto/soy-param-migration
5974
+ * @return {!Object}
5975
+ */
5976
+ proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.toObject = function(opt_includeInstance) {
5977
+ return proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.toObject(opt_includeInstance, this);
5978
+ };
5979
+
5980
+
5981
+ /**
5982
+ * Static version of the {@see toObject} method.
5983
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5984
+ * the JSPB instance for transitional soy proto support:
5985
+ * http://goto/soy-param-migration
5986
+ * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} msg The msg instance to transform.
5987
+ * @return {!Object}
5988
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5989
+ */
5990
+ proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.toObject = function(includeInstance, msg) {
5991
+ var f, obj = {
5992
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
5993
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, "")
5994
+ };
5995
+
5996
+ if (includeInstance) {
5997
+ obj.$jspbMessageInstance = msg;
5998
+ }
5999
+ return obj;
6000
+ };
6001
+ }
6002
+
6003
+
6004
+ /**
6005
+ * Deserializes binary data (in protobuf wire format).
6006
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
6007
+ * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest}
6008
+ */
6009
+ proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.deserializeBinary = function(bytes) {
6010
+ var reader = new jspb.BinaryReader(bytes);
6011
+ var msg = new proto.gateway.web.v1.ListInstallTermaPullRequestsRequest;
6012
+ return proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.deserializeBinaryFromReader(msg, reader);
6013
+ };
6014
+
6015
+
6016
+ /**
6017
+ * Deserializes binary data (in protobuf wire format) from the
6018
+ * given reader into the given message object.
6019
+ * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} msg The message object to deserialize into.
6020
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6021
+ * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest}
6022
+ */
6023
+ proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.deserializeBinaryFromReader = function(msg, reader) {
6024
+ while (reader.nextField()) {
6025
+ if (reader.isEndGroup()) {
6026
+ break;
6027
+ }
6028
+ var field = reader.getFieldNumber();
6029
+ switch (field) {
6030
+ case 1:
6031
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6032
+ msg.setOrganizationId(value);
6033
+ break;
6034
+ case 2:
6035
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6036
+ msg.setProjectId(value);
6037
+ break;
6038
+ default:
6039
+ reader.skipField();
6040
+ break;
6041
+ }
6042
+ }
6043
+ return msg;
6044
+ };
6045
+
6046
+
6047
+ /**
6048
+ * Serializes the message to binary data (in protobuf wire format).
6049
+ * @return {!Uint8Array}
6050
+ */
6051
+ proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.serializeBinary = function() {
6052
+ var writer = new jspb.BinaryWriter();
6053
+ proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.serializeBinaryToWriter(this, writer);
6054
+ return writer.getResultBuffer();
6055
+ };
6056
+
6057
+
6058
+ /**
6059
+ * Serializes the given message to binary data (in protobuf wire
6060
+ * format), writing to the given BinaryWriter.
6061
+ * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} message
6062
+ * @param {!jspb.BinaryWriter} writer
6063
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6064
+ */
6065
+ proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.serializeBinaryToWriter = function(message, writer) {
6066
+ var f = undefined;
6067
+ f = message.getOrganizationId();
6068
+ if (f.length > 0) {
6069
+ writer.writeString(
6070
+ 1,
6071
+ f
6072
+ );
6073
+ }
6074
+ f = message.getProjectId();
6075
+ if (f.length > 0) {
6076
+ writer.writeString(
6077
+ 2,
6078
+ f
6079
+ );
6080
+ }
6081
+ };
6082
+
6083
+
6084
+ /**
6085
+ * optional string organization_id = 1;
6086
+ * @return {string}
6087
+ */
6088
+ proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.getOrganizationId = function() {
6089
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6090
+ };
6091
+
6092
+
6093
+ /**
6094
+ * @param {string} value
6095
+ * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} returns this
6096
+ */
6097
+ proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.setOrganizationId = function(value) {
6098
+ return jspb.Message.setProto3StringField(this, 1, value);
6099
+ };
6100
+
6101
+
6102
+ /**
6103
+ * optional string project_id = 2;
6104
+ * @return {string}
6105
+ */
6106
+ proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.getProjectId = function() {
6107
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6108
+ };
6109
+
6110
+
6111
+ /**
6112
+ * @param {string} value
6113
+ * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} returns this
6114
+ */
6115
+ proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.setProjectId = function(value) {
6116
+ return jspb.Message.setProto3StringField(this, 2, value);
6117
+ };
6118
+
6119
+
6120
+
6121
+
6122
+
6123
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6124
+ /**
6125
+ * Creates an object representation of this proto.
6126
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6127
+ * Optional fields that are not set will be set to undefined.
6128
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6129
+ * For the list of reserved names please see:
6130
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6131
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6132
+ * JSPB instance for transitional soy proto support:
6133
+ * http://goto/soy-param-migration
6134
+ * @return {!Object}
6135
+ */
6136
+ proto.gateway.web.v1.InstallTermaPullRequest.prototype.toObject = function(opt_includeInstance) {
6137
+ return proto.gateway.web.v1.InstallTermaPullRequest.toObject(opt_includeInstance, this);
6138
+ };
6139
+
6140
+
6141
+ /**
6142
+ * Static version of the {@see toObject} method.
6143
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6144
+ * the JSPB instance for transitional soy proto support:
6145
+ * http://goto/soy-param-migration
6146
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequest} msg The msg instance to transform.
6147
+ * @return {!Object}
6148
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6149
+ */
6150
+ proto.gateway.web.v1.InstallTermaPullRequest.toObject = function(includeInstance, msg) {
6151
+ var f, obj = {
6152
+ repository: jspb.Message.getFieldWithDefault(msg, 1, ""),
6153
+ number: jspb.Message.getFieldWithDefault(msg, 2, 0),
6154
+ url: jspb.Message.getFieldWithDefault(msg, 3, ""),
6155
+ state: jspb.Message.getFieldWithDefault(msg, 4, ""),
6156
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 5, "")
6157
+ };
6158
+
6159
+ if (includeInstance) {
6160
+ obj.$jspbMessageInstance = msg;
6161
+ }
6162
+ return obj;
6163
+ };
6164
+ }
6165
+
6166
+
6167
+ /**
6168
+ * Deserializes binary data (in protobuf wire format).
6169
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
6170
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequest}
6171
+ */
6172
+ proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinary = function(bytes) {
6173
+ var reader = new jspb.BinaryReader(bytes);
6174
+ var msg = new proto.gateway.web.v1.InstallTermaPullRequest;
6175
+ return proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinaryFromReader(msg, reader);
6176
+ };
6177
+
6178
+
6179
+ /**
6180
+ * Deserializes binary data (in protobuf wire format) from the
6181
+ * given reader into the given message object.
6182
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequest} msg The message object to deserialize into.
6183
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6184
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequest}
6185
+ */
6186
+ proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinaryFromReader = function(msg, reader) {
6187
+ while (reader.nextField()) {
6188
+ if (reader.isEndGroup()) {
6189
+ break;
6190
+ }
6191
+ var field = reader.getFieldNumber();
6192
+ switch (field) {
6193
+ case 1:
6194
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6195
+ msg.setRepository(value);
6196
+ break;
6197
+ case 2:
6198
+ var value = /** @type {number} */ (reader.readInt64());
6199
+ msg.setNumber(value);
6200
+ break;
6201
+ case 3:
6202
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6203
+ msg.setUrl(value);
6204
+ break;
6205
+ case 4:
6206
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6207
+ msg.setState(value);
6208
+ break;
6209
+ case 5:
6210
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6211
+ msg.setUpdatedAt(value);
6212
+ break;
6213
+ default:
6214
+ reader.skipField();
6215
+ break;
6216
+ }
6217
+ }
6218
+ return msg;
6219
+ };
6220
+
6221
+
6222
+ /**
6223
+ * Serializes the message to binary data (in protobuf wire format).
6224
+ * @return {!Uint8Array}
6225
+ */
6226
+ proto.gateway.web.v1.InstallTermaPullRequest.prototype.serializeBinary = function() {
6227
+ var writer = new jspb.BinaryWriter();
6228
+ proto.gateway.web.v1.InstallTermaPullRequest.serializeBinaryToWriter(this, writer);
6229
+ return writer.getResultBuffer();
6230
+ };
6231
+
6232
+
6233
+ /**
6234
+ * Serializes the given message to binary data (in protobuf wire
6235
+ * format), writing to the given BinaryWriter.
6236
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequest} message
6237
+ * @param {!jspb.BinaryWriter} writer
6238
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6239
+ */
6240
+ proto.gateway.web.v1.InstallTermaPullRequest.serializeBinaryToWriter = function(message, writer) {
6241
+ var f = undefined;
6242
+ f = message.getRepository();
6243
+ if (f.length > 0) {
6244
+ writer.writeString(
6245
+ 1,
6246
+ f
6247
+ );
6248
+ }
6249
+ f = message.getNumber();
6250
+ if (f !== 0) {
6251
+ writer.writeInt64(
6252
+ 2,
6253
+ f
6254
+ );
6255
+ }
6256
+ f = message.getUrl();
6257
+ if (f.length > 0) {
6258
+ writer.writeString(
6259
+ 3,
6260
+ f
6261
+ );
6262
+ }
6263
+ f = message.getState();
6264
+ if (f.length > 0) {
6265
+ writer.writeString(
6266
+ 4,
6267
+ f
6268
+ );
6269
+ }
6270
+ f = message.getUpdatedAt();
6271
+ if (f.length > 0) {
6272
+ writer.writeString(
6273
+ 5,
6274
+ f
6275
+ );
6276
+ }
6277
+ };
6278
+
6279
+
6280
+ /**
6281
+ * optional string repository = 1;
6282
+ * @return {string}
6283
+ */
6284
+ proto.gateway.web.v1.InstallTermaPullRequest.prototype.getRepository = function() {
6285
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6286
+ };
6287
+
6288
+
6289
+ /**
6290
+ * @param {string} value
6291
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
6292
+ */
6293
+ proto.gateway.web.v1.InstallTermaPullRequest.prototype.setRepository = function(value) {
6294
+ return jspb.Message.setProto3StringField(this, 1, value);
6295
+ };
6296
+
6297
+
6298
+ /**
6299
+ * optional int64 number = 2;
6300
+ * @return {number}
6301
+ */
6302
+ proto.gateway.web.v1.InstallTermaPullRequest.prototype.getNumber = function() {
6303
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
6304
+ };
6305
+
6306
+
6307
+ /**
6308
+ * @param {number} value
6309
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
6310
+ */
6311
+ proto.gateway.web.v1.InstallTermaPullRequest.prototype.setNumber = function(value) {
6312
+ return jspb.Message.setProto3IntField(this, 2, value);
6313
+ };
6314
+
6315
+
6316
+ /**
6317
+ * optional string url = 3;
6318
+ * @return {string}
6319
+ */
6320
+ proto.gateway.web.v1.InstallTermaPullRequest.prototype.getUrl = function() {
6321
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6322
+ };
6323
+
6324
+
6325
+ /**
6326
+ * @param {string} value
6327
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
6328
+ */
6329
+ proto.gateway.web.v1.InstallTermaPullRequest.prototype.setUrl = function(value) {
6330
+ return jspb.Message.setProto3StringField(this, 3, value);
6331
+ };
6332
+
6333
+
6334
+ /**
6335
+ * optional string state = 4;
6336
+ * @return {string}
6337
+ */
6338
+ proto.gateway.web.v1.InstallTermaPullRequest.prototype.getState = function() {
6339
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
6340
+ };
6341
+
6342
+
6343
+ /**
6344
+ * @param {string} value
6345
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
6346
+ */
6347
+ proto.gateway.web.v1.InstallTermaPullRequest.prototype.setState = function(value) {
6348
+ return jspb.Message.setProto3StringField(this, 4, value);
6349
+ };
6350
+
6351
+
6352
+ /**
6353
+ * optional string updated_at = 5;
6354
+ * @return {string}
6355
+ */
6356
+ proto.gateway.web.v1.InstallTermaPullRequest.prototype.getUpdatedAt = function() {
6357
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
6358
+ };
6359
+
6360
+
6361
+ /**
6362
+ * @param {string} value
6363
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
6364
+ */
6365
+ proto.gateway.web.v1.InstallTermaPullRequest.prototype.setUpdatedAt = function(value) {
6366
+ return jspb.Message.setProto3StringField(this, 5, value);
6367
+ };
6368
+
6369
+
6370
+
6371
+ /**
6372
+ * List of repeated fields within this message type.
6373
+ * @private {!Array<number>}
6374
+ * @const
6375
+ */
6376
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.repeatedFields_ = [2];
6377
+
6378
+
6379
+
6380
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6381
+ /**
6382
+ * Creates an object representation of this proto.
6383
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6384
+ * Optional fields that are not set will be set to undefined.
6385
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6386
+ * For the list of reserved names please see:
6387
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6388
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6389
+ * JSPB instance for transitional soy proto support:
6390
+ * http://goto/soy-param-migration
6391
+ * @return {!Object}
6392
+ */
6393
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.toObject = function(opt_includeInstance) {
6394
+ return proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.toObject(opt_includeInstance, this);
6395
+ };
6396
+
6397
+
6398
+ /**
6399
+ * Static version of the {@see toObject} method.
6400
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6401
+ * the JSPB instance for transitional soy proto support:
6402
+ * http://goto/soy-param-migration
6403
+ * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} msg The msg instance to transform.
6404
+ * @return {!Object}
6405
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6406
+ */
6407
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.toObject = function(includeInstance, msg) {
6408
+ var f, obj = {
6409
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
6410
+ pullRequestsList: jspb.Message.toObjectList(msg.getPullRequestsList(),
6411
+ proto.gateway.web.v1.InstallTermaPullRequest.toObject, includeInstance)
6412
+ };
6413
+
6414
+ if (includeInstance) {
6415
+ obj.$jspbMessageInstance = msg;
6416
+ }
6417
+ return obj;
6418
+ };
6419
+ }
6420
+
6421
+
6422
+ /**
6423
+ * Deserializes binary data (in protobuf wire format).
6424
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
6425
+ * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse}
6426
+ */
6427
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.deserializeBinary = function(bytes) {
6428
+ var reader = new jspb.BinaryReader(bytes);
6429
+ var msg = new proto.gateway.web.v1.ListInstallTermaPullRequestsResponse;
6430
+ return proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.deserializeBinaryFromReader(msg, reader);
6431
+ };
6432
+
6433
+
6434
+ /**
6435
+ * Deserializes binary data (in protobuf wire format) from the
6436
+ * given reader into the given message object.
6437
+ * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} msg The message object to deserialize into.
6438
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6439
+ * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse}
6440
+ */
6441
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.deserializeBinaryFromReader = function(msg, reader) {
6442
+ while (reader.nextField()) {
6443
+ if (reader.isEndGroup()) {
6444
+ break;
6445
+ }
6446
+ var field = reader.getFieldNumber();
6447
+ switch (field) {
6448
+ case 1:
6449
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
6450
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
6451
+ msg.setStatus(value);
6452
+ break;
6453
+ case 2:
6454
+ var value = new proto.gateway.web.v1.InstallTermaPullRequest;
6455
+ reader.readMessage(value,proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinaryFromReader);
6456
+ msg.addPullRequests(value);
6457
+ break;
6458
+ default:
6459
+ reader.skipField();
6460
+ break;
6461
+ }
6462
+ }
6463
+ return msg;
6464
+ };
6465
+
6466
+
6467
+ /**
6468
+ * Serializes the message to binary data (in protobuf wire format).
6469
+ * @return {!Uint8Array}
6470
+ */
6471
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.serializeBinary = function() {
6472
+ var writer = new jspb.BinaryWriter();
6473
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.serializeBinaryToWriter(this, writer);
6474
+ return writer.getResultBuffer();
6475
+ };
6476
+
6477
+
6478
+ /**
6479
+ * Serializes the given message to binary data (in protobuf wire
6480
+ * format), writing to the given BinaryWriter.
6481
+ * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} message
6482
+ * @param {!jspb.BinaryWriter} writer
6483
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6484
+ */
6485
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.serializeBinaryToWriter = function(message, writer) {
6486
+ var f = undefined;
6487
+ f = message.getStatus();
6488
+ if (f != null) {
6489
+ writer.writeMessage(
6490
+ 1,
6491
+ f,
6492
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
6493
+ );
6494
+ }
6495
+ f = message.getPullRequestsList();
6496
+ if (f.length > 0) {
6497
+ writer.writeRepeatedMessage(
6498
+ 2,
6499
+ f,
6500
+ proto.gateway.web.v1.InstallTermaPullRequest.serializeBinaryToWriter
6501
+ );
6502
+ }
6503
+ };
6504
+
6505
+
6506
+ /**
6507
+ * optional gateway.common.v1.ResponseStatus status = 1;
6508
+ * @return {?proto.gateway.common.v1.ResponseStatus}
6509
+ */
6510
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.getStatus = function() {
6511
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
6512
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
6513
+ };
6514
+
6515
+
6516
+ /**
6517
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
6518
+ * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
6519
+ */
6520
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.setStatus = function(value) {
6521
+ return jspb.Message.setWrapperField(this, 1, value);
6522
+ };
6523
+
6524
+
6525
+ /**
6526
+ * Clears the message field making it undefined.
6527
+ * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
6528
+ */
6529
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.clearStatus = function() {
6530
+ return this.setStatus(undefined);
6531
+ };
6532
+
6533
+
6534
+ /**
6535
+ * Returns whether this field is set.
6536
+ * @return {boolean}
6537
+ */
6538
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.hasStatus = function() {
6539
+ return jspb.Message.getField(this, 1) != null;
6540
+ };
6541
+
6542
+
6543
+ /**
6544
+ * repeated InstallTermaPullRequest pull_requests = 2;
6545
+ * @return {!Array<!proto.gateway.web.v1.InstallTermaPullRequest>}
6546
+ */
6547
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.getPullRequestsList = function() {
6548
+ return /** @type{!Array<!proto.gateway.web.v1.InstallTermaPullRequest>} */ (
6549
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.InstallTermaPullRequest, 2));
6550
+ };
6551
+
6552
+
6553
+ /**
6554
+ * @param {!Array<!proto.gateway.web.v1.InstallTermaPullRequest>} value
6555
+ * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
6556
+ */
6557
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.setPullRequestsList = function(value) {
6558
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
6559
+ };
6560
+
6561
+
6562
+ /**
6563
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequest=} opt_value
6564
+ * @param {number=} opt_index
6565
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequest}
6566
+ */
6567
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.addPullRequests = function(opt_value, opt_index) {
6568
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.InstallTermaPullRequest, opt_index);
6569
+ };
6570
+
6571
+
6572
+ /**
6573
+ * Clears the list making it empty but non-null.
6574
+ * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
6575
+ */
6576
+ proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.clearPullRequestsList = function() {
6577
+ return this.setPullRequestsList([]);
6578
+ };
6579
+
6580
+
5151
6581
  goog.object.extend(exports, proto.gateway.web.v1);