@miradorlabs/web-grpc 3.8.0 → 3.10.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,7 @@ 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.InstallTermaPullRequestResult', null, global);
41
44
  /**
42
45
  * Generated by JsPbCodeGenerator.
43
46
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -458,6 +461,69 @@ if (goog.DEBUG && !COMPILED) {
458
461
  */
459
462
  proto.gateway.web.v1.GitHubFilesResponse.displayName = 'proto.gateway.web.v1.GitHubFilesResponse';
460
463
  }
464
+ /**
465
+ * Generated by JsPbCodeGenerator.
466
+ * @param {Array=} opt_data Optional initial data array, typically from a
467
+ * server response, or constructed directly in Javascript. The array is used
468
+ * in place and becomes part of the constructed object. It is not cloned.
469
+ * If no data is provided, the constructed object will be empty, but still
470
+ * valid.
471
+ * @extends {jspb.Message}
472
+ * @constructor
473
+ */
474
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest = function(opt_data) {
475
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.repeatedFields_, null);
476
+ };
477
+ goog.inherits(proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest, jspb.Message);
478
+ if (goog.DEBUG && !COMPILED) {
479
+ /**
480
+ * @public
481
+ * @override
482
+ */
483
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.displayName = 'proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest';
484
+ }
485
+ /**
486
+ * Generated by JsPbCodeGenerator.
487
+ * @param {Array=} opt_data Optional initial data array, typically from a
488
+ * server response, or constructed directly in Javascript. The array is used
489
+ * in place and becomes part of the constructed object. It is not cloned.
490
+ * If no data is provided, the constructed object will be empty, but still
491
+ * valid.
492
+ * @extends {jspb.Message}
493
+ * @constructor
494
+ */
495
+ proto.gateway.web.v1.InstallTermaPullRequestResult = function(opt_data) {
496
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
497
+ };
498
+ goog.inherits(proto.gateway.web.v1.InstallTermaPullRequestResult, jspb.Message);
499
+ if (goog.DEBUG && !COMPILED) {
500
+ /**
501
+ * @public
502
+ * @override
503
+ */
504
+ proto.gateway.web.v1.InstallTermaPullRequestResult.displayName = 'proto.gateway.web.v1.InstallTermaPullRequestResult';
505
+ }
506
+ /**
507
+ * Generated by JsPbCodeGenerator.
508
+ * @param {Array=} opt_data Optional initial data array, typically from a
509
+ * server response, or constructed directly in Javascript. The array is used
510
+ * in place and becomes part of the constructed object. It is not cloned.
511
+ * If no data is provided, the constructed object will be empty, but still
512
+ * valid.
513
+ * @extends {jspb.Message}
514
+ * @constructor
515
+ */
516
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse = function(opt_data) {
517
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.repeatedFields_, null);
518
+ };
519
+ goog.inherits(proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse, jspb.Message);
520
+ if (goog.DEBUG && !COMPILED) {
521
+ /**
522
+ * @public
523
+ * @override
524
+ */
525
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.displayName = 'proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse';
526
+ }
461
527
 
462
528
 
463
529
 
@@ -5148,4 +5214,681 @@ proto.gateway.web.v1.GitHubFilesResponse.prototype.clearFilesList = function() {
5148
5214
  };
5149
5215
 
5150
5216
 
5217
+
5218
+ /**
5219
+ * List of repeated fields within this message type.
5220
+ * @private {!Array<number>}
5221
+ * @const
5222
+ */
5223
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.repeatedFields_ = [3];
5224
+
5225
+
5226
+
5227
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5228
+ /**
5229
+ * Creates an object representation of this proto.
5230
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5231
+ * Optional fields that are not set will be set to undefined.
5232
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5233
+ * For the list of reserved names please see:
5234
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5235
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5236
+ * JSPB instance for transitional soy proto support:
5237
+ * http://goto/soy-param-migration
5238
+ * @return {!Object}
5239
+ */
5240
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.toObject = function(opt_includeInstance) {
5241
+ return proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.toObject(opt_includeInstance, this);
5242
+ };
5243
+
5244
+
5245
+ /**
5246
+ * Static version of the {@see toObject} method.
5247
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5248
+ * the JSPB instance for transitional soy proto support:
5249
+ * http://goto/soy-param-migration
5250
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} msg The msg instance to transform.
5251
+ * @return {!Object}
5252
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5253
+ */
5254
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.toObject = function(includeInstance, msg) {
5255
+ var f, obj = {
5256
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
5257
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
5258
+ repositoriesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
5259
+ };
5260
+
5261
+ if (includeInstance) {
5262
+ obj.$jspbMessageInstance = msg;
5263
+ }
5264
+ return obj;
5265
+ };
5266
+ }
5267
+
5268
+
5269
+ /**
5270
+ * Deserializes binary data (in protobuf wire format).
5271
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5272
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest}
5273
+ */
5274
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.deserializeBinary = function(bytes) {
5275
+ var reader = new jspb.BinaryReader(bytes);
5276
+ var msg = new proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest;
5277
+ return proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.deserializeBinaryFromReader(msg, reader);
5278
+ };
5279
+
5280
+
5281
+ /**
5282
+ * Deserializes binary data (in protobuf wire format) from the
5283
+ * given reader into the given message object.
5284
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} msg The message object to deserialize into.
5285
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5286
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest}
5287
+ */
5288
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.deserializeBinaryFromReader = function(msg, reader) {
5289
+ while (reader.nextField()) {
5290
+ if (reader.isEndGroup()) {
5291
+ break;
5292
+ }
5293
+ var field = reader.getFieldNumber();
5294
+ switch (field) {
5295
+ case 1:
5296
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5297
+ msg.setOrganizationId(value);
5298
+ break;
5299
+ case 2:
5300
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5301
+ msg.setProjectId(value);
5302
+ break;
5303
+ case 3:
5304
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5305
+ msg.addRepositories(value);
5306
+ break;
5307
+ default:
5308
+ reader.skipField();
5309
+ break;
5310
+ }
5311
+ }
5312
+ return msg;
5313
+ };
5314
+
5315
+
5316
+ /**
5317
+ * Serializes the message to binary data (in protobuf wire format).
5318
+ * @return {!Uint8Array}
5319
+ */
5320
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.serializeBinary = function() {
5321
+ var writer = new jspb.BinaryWriter();
5322
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.serializeBinaryToWriter(this, writer);
5323
+ return writer.getResultBuffer();
5324
+ };
5325
+
5326
+
5327
+ /**
5328
+ * Serializes the given message to binary data (in protobuf wire
5329
+ * format), writing to the given BinaryWriter.
5330
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} message
5331
+ * @param {!jspb.BinaryWriter} writer
5332
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5333
+ */
5334
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.serializeBinaryToWriter = function(message, writer) {
5335
+ var f = undefined;
5336
+ f = message.getOrganizationId();
5337
+ if (f.length > 0) {
5338
+ writer.writeString(
5339
+ 1,
5340
+ f
5341
+ );
5342
+ }
5343
+ f = message.getProjectId();
5344
+ if (f.length > 0) {
5345
+ writer.writeString(
5346
+ 2,
5347
+ f
5348
+ );
5349
+ }
5350
+ f = message.getRepositoriesList();
5351
+ if (f.length > 0) {
5352
+ writer.writeRepeatedString(
5353
+ 3,
5354
+ f
5355
+ );
5356
+ }
5357
+ };
5358
+
5359
+
5360
+ /**
5361
+ * optional string organization_id = 1;
5362
+ * @return {string}
5363
+ */
5364
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.getOrganizationId = function() {
5365
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5366
+ };
5367
+
5368
+
5369
+ /**
5370
+ * @param {string} value
5371
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5372
+ */
5373
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.setOrganizationId = function(value) {
5374
+ return jspb.Message.setProto3StringField(this, 1, value);
5375
+ };
5376
+
5377
+
5378
+ /**
5379
+ * optional string project_id = 2;
5380
+ * @return {string}
5381
+ */
5382
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.getProjectId = function() {
5383
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5384
+ };
5385
+
5386
+
5387
+ /**
5388
+ * @param {string} value
5389
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5390
+ */
5391
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.setProjectId = function(value) {
5392
+ return jspb.Message.setProto3StringField(this, 2, value);
5393
+ };
5394
+
5395
+
5396
+ /**
5397
+ * repeated string repositories = 3;
5398
+ * @return {!Array<string>}
5399
+ */
5400
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.getRepositoriesList = function() {
5401
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
5402
+ };
5403
+
5404
+
5405
+ /**
5406
+ * @param {!Array<string>} value
5407
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5408
+ */
5409
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.setRepositoriesList = function(value) {
5410
+ return jspb.Message.setField(this, 3, value || []);
5411
+ };
5412
+
5413
+
5414
+ /**
5415
+ * @param {string} value
5416
+ * @param {number=} opt_index
5417
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5418
+ */
5419
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.addRepositories = function(value, opt_index) {
5420
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
5421
+ };
5422
+
5423
+
5424
+ /**
5425
+ * Clears the list making it empty but non-null.
5426
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5427
+ */
5428
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.clearRepositoriesList = function() {
5429
+ return this.setRepositoriesList([]);
5430
+ };
5431
+
5432
+
5433
+
5434
+
5435
+
5436
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5437
+ /**
5438
+ * Creates an object representation of this proto.
5439
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5440
+ * Optional fields that are not set will be set to undefined.
5441
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5442
+ * For the list of reserved names please see:
5443
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5444
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5445
+ * JSPB instance for transitional soy proto support:
5446
+ * http://goto/soy-param-migration
5447
+ * @return {!Object}
5448
+ */
5449
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.toObject = function(opt_includeInstance) {
5450
+ return proto.gateway.web.v1.InstallTermaPullRequestResult.toObject(opt_includeInstance, this);
5451
+ };
5452
+
5453
+
5454
+ /**
5455
+ * Static version of the {@see toObject} method.
5456
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5457
+ * the JSPB instance for transitional soy proto support:
5458
+ * http://goto/soy-param-migration
5459
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult} msg The msg instance to transform.
5460
+ * @return {!Object}
5461
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5462
+ */
5463
+ proto.gateway.web.v1.InstallTermaPullRequestResult.toObject = function(includeInstance, msg) {
5464
+ var f, obj = {
5465
+ repository: jspb.Message.getFieldWithDefault(msg, 1, ""),
5466
+ number: jspb.Message.getFieldWithDefault(msg, 2, 0),
5467
+ url: jspb.Message.getFieldWithDefault(msg, 3, ""),
5468
+ errorMessage: jspb.Message.getFieldWithDefault(msg, 4, ""),
5469
+ alreadyInstalled: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
5470
+ };
5471
+
5472
+ if (includeInstance) {
5473
+ obj.$jspbMessageInstance = msg;
5474
+ }
5475
+ return obj;
5476
+ };
5477
+ }
5478
+
5479
+
5480
+ /**
5481
+ * Deserializes binary data (in protobuf wire format).
5482
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5483
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult}
5484
+ */
5485
+ proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinary = function(bytes) {
5486
+ var reader = new jspb.BinaryReader(bytes);
5487
+ var msg = new proto.gateway.web.v1.InstallTermaPullRequestResult;
5488
+ return proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinaryFromReader(msg, reader);
5489
+ };
5490
+
5491
+
5492
+ /**
5493
+ * Deserializes binary data (in protobuf wire format) from the
5494
+ * given reader into the given message object.
5495
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult} msg The message object to deserialize into.
5496
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5497
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult}
5498
+ */
5499
+ proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinaryFromReader = function(msg, reader) {
5500
+ while (reader.nextField()) {
5501
+ if (reader.isEndGroup()) {
5502
+ break;
5503
+ }
5504
+ var field = reader.getFieldNumber();
5505
+ switch (field) {
5506
+ case 1:
5507
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5508
+ msg.setRepository(value);
5509
+ break;
5510
+ case 2:
5511
+ var value = /** @type {number} */ (reader.readInt64());
5512
+ msg.setNumber(value);
5513
+ break;
5514
+ case 3:
5515
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5516
+ msg.setUrl(value);
5517
+ break;
5518
+ case 4:
5519
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5520
+ msg.setErrorMessage(value);
5521
+ break;
5522
+ case 5:
5523
+ var value = /** @type {boolean} */ (reader.readBool());
5524
+ msg.setAlreadyInstalled(value);
5525
+ break;
5526
+ default:
5527
+ reader.skipField();
5528
+ break;
5529
+ }
5530
+ }
5531
+ return msg;
5532
+ };
5533
+
5534
+
5535
+ /**
5536
+ * Serializes the message to binary data (in protobuf wire format).
5537
+ * @return {!Uint8Array}
5538
+ */
5539
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.serializeBinary = function() {
5540
+ var writer = new jspb.BinaryWriter();
5541
+ proto.gateway.web.v1.InstallTermaPullRequestResult.serializeBinaryToWriter(this, writer);
5542
+ return writer.getResultBuffer();
5543
+ };
5544
+
5545
+
5546
+ /**
5547
+ * Serializes the given message to binary data (in protobuf wire
5548
+ * format), writing to the given BinaryWriter.
5549
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult} message
5550
+ * @param {!jspb.BinaryWriter} writer
5551
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5552
+ */
5553
+ proto.gateway.web.v1.InstallTermaPullRequestResult.serializeBinaryToWriter = function(message, writer) {
5554
+ var f = undefined;
5555
+ f = message.getRepository();
5556
+ if (f.length > 0) {
5557
+ writer.writeString(
5558
+ 1,
5559
+ f
5560
+ );
5561
+ }
5562
+ f = message.getNumber();
5563
+ if (f !== 0) {
5564
+ writer.writeInt64(
5565
+ 2,
5566
+ f
5567
+ );
5568
+ }
5569
+ f = message.getUrl();
5570
+ if (f.length > 0) {
5571
+ writer.writeString(
5572
+ 3,
5573
+ f
5574
+ );
5575
+ }
5576
+ f = message.getErrorMessage();
5577
+ if (f.length > 0) {
5578
+ writer.writeString(
5579
+ 4,
5580
+ f
5581
+ );
5582
+ }
5583
+ f = message.getAlreadyInstalled();
5584
+ if (f) {
5585
+ writer.writeBool(
5586
+ 5,
5587
+ f
5588
+ );
5589
+ }
5590
+ };
5591
+
5592
+
5593
+ /**
5594
+ * optional string repository = 1;
5595
+ * @return {string}
5596
+ */
5597
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getRepository = function() {
5598
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5599
+ };
5600
+
5601
+
5602
+ /**
5603
+ * @param {string} value
5604
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5605
+ */
5606
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setRepository = function(value) {
5607
+ return jspb.Message.setProto3StringField(this, 1, value);
5608
+ };
5609
+
5610
+
5611
+ /**
5612
+ * optional int64 number = 2;
5613
+ * @return {number}
5614
+ */
5615
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getNumber = function() {
5616
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5617
+ };
5618
+
5619
+
5620
+ /**
5621
+ * @param {number} value
5622
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5623
+ */
5624
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setNumber = function(value) {
5625
+ return jspb.Message.setProto3IntField(this, 2, value);
5626
+ };
5627
+
5628
+
5629
+ /**
5630
+ * optional string url = 3;
5631
+ * @return {string}
5632
+ */
5633
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getUrl = function() {
5634
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5635
+ };
5636
+
5637
+
5638
+ /**
5639
+ * @param {string} value
5640
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5641
+ */
5642
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setUrl = function(value) {
5643
+ return jspb.Message.setProto3StringField(this, 3, value);
5644
+ };
5645
+
5646
+
5647
+ /**
5648
+ * optional string error_message = 4;
5649
+ * @return {string}
5650
+ */
5651
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getErrorMessage = function() {
5652
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5653
+ };
5654
+
5655
+
5656
+ /**
5657
+ * @param {string} value
5658
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5659
+ */
5660
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setErrorMessage = function(value) {
5661
+ return jspb.Message.setProto3StringField(this, 4, value);
5662
+ };
5663
+
5664
+
5665
+ /**
5666
+ * optional bool already_installed = 5;
5667
+ * @return {boolean}
5668
+ */
5669
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getAlreadyInstalled = function() {
5670
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
5671
+ };
5672
+
5673
+
5674
+ /**
5675
+ * @param {boolean} value
5676
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5677
+ */
5678
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setAlreadyInstalled = function(value) {
5679
+ return jspb.Message.setProto3BooleanField(this, 5, value);
5680
+ };
5681
+
5682
+
5683
+
5684
+ /**
5685
+ * List of repeated fields within this message type.
5686
+ * @private {!Array<number>}
5687
+ * @const
5688
+ */
5689
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.repeatedFields_ = [2];
5690
+
5691
+
5692
+
5693
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5694
+ /**
5695
+ * Creates an object representation of this proto.
5696
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5697
+ * Optional fields that are not set will be set to undefined.
5698
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5699
+ * For the list of reserved names please see:
5700
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5701
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5702
+ * JSPB instance for transitional soy proto support:
5703
+ * http://goto/soy-param-migration
5704
+ * @return {!Object}
5705
+ */
5706
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.toObject = function(opt_includeInstance) {
5707
+ return proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.toObject(opt_includeInstance, this);
5708
+ };
5709
+
5710
+
5711
+ /**
5712
+ * Static version of the {@see toObject} method.
5713
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5714
+ * the JSPB instance for transitional soy proto support:
5715
+ * http://goto/soy-param-migration
5716
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} msg The msg instance to transform.
5717
+ * @return {!Object}
5718
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5719
+ */
5720
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.toObject = function(includeInstance, msg) {
5721
+ var f, obj = {
5722
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
5723
+ resultsList: jspb.Message.toObjectList(msg.getResultsList(),
5724
+ proto.gateway.web.v1.InstallTermaPullRequestResult.toObject, includeInstance)
5725
+ };
5726
+
5727
+ if (includeInstance) {
5728
+ obj.$jspbMessageInstance = msg;
5729
+ }
5730
+ return obj;
5731
+ };
5732
+ }
5733
+
5734
+
5735
+ /**
5736
+ * Deserializes binary data (in protobuf wire format).
5737
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5738
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse}
5739
+ */
5740
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.deserializeBinary = function(bytes) {
5741
+ var reader = new jspb.BinaryReader(bytes);
5742
+ var msg = new proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse;
5743
+ return proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.deserializeBinaryFromReader(msg, reader);
5744
+ };
5745
+
5746
+
5747
+ /**
5748
+ * Deserializes binary data (in protobuf wire format) from the
5749
+ * given reader into the given message object.
5750
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} msg The message object to deserialize into.
5751
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5752
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse}
5753
+ */
5754
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.deserializeBinaryFromReader = function(msg, reader) {
5755
+ while (reader.nextField()) {
5756
+ if (reader.isEndGroup()) {
5757
+ break;
5758
+ }
5759
+ var field = reader.getFieldNumber();
5760
+ switch (field) {
5761
+ case 1:
5762
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
5763
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
5764
+ msg.setStatus(value);
5765
+ break;
5766
+ case 2:
5767
+ var value = new proto.gateway.web.v1.InstallTermaPullRequestResult;
5768
+ reader.readMessage(value,proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinaryFromReader);
5769
+ msg.addResults(value);
5770
+ break;
5771
+ default:
5772
+ reader.skipField();
5773
+ break;
5774
+ }
5775
+ }
5776
+ return msg;
5777
+ };
5778
+
5779
+
5780
+ /**
5781
+ * Serializes the message to binary data (in protobuf wire format).
5782
+ * @return {!Uint8Array}
5783
+ */
5784
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.serializeBinary = function() {
5785
+ var writer = new jspb.BinaryWriter();
5786
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.serializeBinaryToWriter(this, writer);
5787
+ return writer.getResultBuffer();
5788
+ };
5789
+
5790
+
5791
+ /**
5792
+ * Serializes the given message to binary data (in protobuf wire
5793
+ * format), writing to the given BinaryWriter.
5794
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} message
5795
+ * @param {!jspb.BinaryWriter} writer
5796
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5797
+ */
5798
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.serializeBinaryToWriter = function(message, writer) {
5799
+ var f = undefined;
5800
+ f = message.getStatus();
5801
+ if (f != null) {
5802
+ writer.writeMessage(
5803
+ 1,
5804
+ f,
5805
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
5806
+ );
5807
+ }
5808
+ f = message.getResultsList();
5809
+ if (f.length > 0) {
5810
+ writer.writeRepeatedMessage(
5811
+ 2,
5812
+ f,
5813
+ proto.gateway.web.v1.InstallTermaPullRequestResult.serializeBinaryToWriter
5814
+ );
5815
+ }
5816
+ };
5817
+
5818
+
5819
+ /**
5820
+ * optional gateway.common.v1.ResponseStatus status = 1;
5821
+ * @return {?proto.gateway.common.v1.ResponseStatus}
5822
+ */
5823
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.getStatus = function() {
5824
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
5825
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
5826
+ };
5827
+
5828
+
5829
+ /**
5830
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
5831
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5832
+ */
5833
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.setStatus = function(value) {
5834
+ return jspb.Message.setWrapperField(this, 1, value);
5835
+ };
5836
+
5837
+
5838
+ /**
5839
+ * Clears the message field making it undefined.
5840
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5841
+ */
5842
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.clearStatus = function() {
5843
+ return this.setStatus(undefined);
5844
+ };
5845
+
5846
+
5847
+ /**
5848
+ * Returns whether this field is set.
5849
+ * @return {boolean}
5850
+ */
5851
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.hasStatus = function() {
5852
+ return jspb.Message.getField(this, 1) != null;
5853
+ };
5854
+
5855
+
5856
+ /**
5857
+ * repeated InstallTermaPullRequestResult results = 2;
5858
+ * @return {!Array<!proto.gateway.web.v1.InstallTermaPullRequestResult>}
5859
+ */
5860
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.getResultsList = function() {
5861
+ return /** @type{!Array<!proto.gateway.web.v1.InstallTermaPullRequestResult>} */ (
5862
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.InstallTermaPullRequestResult, 2));
5863
+ };
5864
+
5865
+
5866
+ /**
5867
+ * @param {!Array<!proto.gateway.web.v1.InstallTermaPullRequestResult>} value
5868
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5869
+ */
5870
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.setResultsList = function(value) {
5871
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
5872
+ };
5873
+
5874
+
5875
+ /**
5876
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult=} opt_value
5877
+ * @param {number=} opt_index
5878
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult}
5879
+ */
5880
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.addResults = function(opt_value, opt_index) {
5881
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.InstallTermaPullRequestResult, opt_index);
5882
+ };
5883
+
5884
+
5885
+ /**
5886
+ * Clears the list making it empty but non-null.
5887
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5888
+ */
5889
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.clearResultsList = function() {
5890
+ return this.setResultsList([]);
5891
+ };
5892
+
5893
+
5151
5894
  goog.object.extend(exports, proto.gateway.web.v1);