@miradorlabs/web-grpc 3.28.0 → 3.29.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.
Files changed (31) hide show
  1. package/google/api/field_behavior.ts +1 -1
  2. package/google/protobuf/descriptor.ts +24 -14
  3. package/google/protobuf/duration.ts +1 -1
  4. package/google/protobuf/timestamp.ts +1 -1
  5. package/package.json +1 -1
  6. package/proto/gateway/common/v1/attribute_value.ts +6 -2
  7. package/proto/gateway/common/v1/status.ts +1 -1
  8. package/proto/gateway/common/v1/types.ts +1 -1
  9. package/proto/gateway/web/v1/account_gateway.ts +6 -2
  10. package/proto/gateway/web/v1/admin_gateway.ts +1 -1
  11. package/proto/gateway/web/v1/ai_gateway.ts +44 -40
  12. package/proto/gateway/web/v1/attribute_value.ts +6 -2
  13. package/proto/gateway/web/v1/beta_gateway.ts +1 -1
  14. package/proto/gateway/web/v1/chain_gateway.ts +6 -2
  15. package/proto/gateway/web/v1/common.ts +1 -1
  16. package/proto/gateway/web/v1/derived_metric_gateway.ts +6 -2
  17. package/proto/gateway/web/v1/github_connector.ts +65 -824
  18. package/proto/gateway/web/v1/github_connector_grpc_pb.js +0 -69
  19. package/proto/gateway/web/v1/github_connector_pb.js +0 -1430
  20. package/proto/gateway/web/v1/integration_gateway.ts +1 -1
  21. package/proto/gateway/web/v1/log_gateway.ts +1 -1
  22. package/proto/gateway/web/v1/market_gateway.ts +6 -2
  23. package/proto/gateway/web/v1/metric_gateway.ts +6 -2
  24. package/proto/gateway/web/v1/oauth_gateway.ts +1 -1
  25. package/proto/gateway/web/v1/plan_gateway.ts +1 -1
  26. package/proto/gateway/web/v1/policy_gateway.ts +1 -1
  27. package/proto/gateway/web/v1/reference_gateway.ts +1 -1
  28. package/proto/gateway/web/v1/rule_gateway.ts +7 -3
  29. package/proto/gateway/web/v1/slo_gateway.ts +12 -8
  30. package/proto/gateway/web/v1/trace_gateway.ts +21 -15
  31. package/proto/gateway/web/v1/trace_measure_gateway.ts +6 -2
@@ -19,8 +19,6 @@ var google_api_field_behavior_pb = require('../../../../google/api/field_behavio
19
19
  goog.object.extend(proto, google_api_field_behavior_pb);
20
20
  var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
21
21
  goog.object.extend(proto, proto_gateway_common_v1_status_pb);
22
- goog.exportSymbol('proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest', null, global);
23
- goog.exportSymbol('proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse', null, global);
24
22
  goog.exportSymbol('proto.gateway.web.v1.GitHubBeginResponse', null, global);
25
23
  goog.exportSymbol('proto.gateway.web.v1.GitHubCompleteRequest', null, global);
26
24
  goog.exportSymbol('proto.gateway.web.v1.GitHubConnection', null, global);
@@ -41,10 +39,6 @@ goog.exportSymbol('proto.gateway.web.v1.GitHubRepositoriesResponse', null, globa
41
39
  goog.exportSymbol('proto.gateway.web.v1.GitHubRepository', null, global);
42
40
  goog.exportSymbol('proto.gateway.web.v1.GitHubScopeRequest', null, global);
43
41
  goog.exportSymbol('proto.gateway.web.v1.GitHubStatusResponse', null, global);
44
- goog.exportSymbol('proto.gateway.web.v1.InstallTermaPullRequest', null, global);
45
- goog.exportSymbol('proto.gateway.web.v1.InstallTermaPullRequestResult', null, global);
46
- goog.exportSymbol('proto.gateway.web.v1.ListInstallTermaPullRequestsRequest', null, global);
47
- goog.exportSymbol('proto.gateway.web.v1.ListInstallTermaPullRequestsResponse', null, global);
48
42
  /**
49
43
  * Generated by JsPbCodeGenerator.
50
44
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -444,132 +438,6 @@ if (goog.DEBUG && !COMPILED) {
444
438
  */
445
439
  proto.gateway.web.v1.GitHubFilesResponse.displayName = 'proto.gateway.web.v1.GitHubFilesResponse';
446
440
  }
447
- /**
448
- * Generated by JsPbCodeGenerator.
449
- * @param {Array=} opt_data Optional initial data array, typically from a
450
- * server response, or constructed directly in Javascript. The array is used
451
- * in place and becomes part of the constructed object. It is not cloned.
452
- * If no data is provided, the constructed object will be empty, but still
453
- * valid.
454
- * @extends {jspb.Message}
455
- * @constructor
456
- */
457
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest = function(opt_data) {
458
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.repeatedFields_, null);
459
- };
460
- goog.inherits(proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest, jspb.Message);
461
- if (goog.DEBUG && !COMPILED) {
462
- /**
463
- * @public
464
- * @override
465
- */
466
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.displayName = 'proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest';
467
- }
468
- /**
469
- * Generated by JsPbCodeGenerator.
470
- * @param {Array=} opt_data Optional initial data array, typically from a
471
- * server response, or constructed directly in Javascript. The array is used
472
- * in place and becomes part of the constructed object. It is not cloned.
473
- * If no data is provided, the constructed object will be empty, but still
474
- * valid.
475
- * @extends {jspb.Message}
476
- * @constructor
477
- */
478
- proto.gateway.web.v1.InstallTermaPullRequestResult = function(opt_data) {
479
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
480
- };
481
- goog.inherits(proto.gateway.web.v1.InstallTermaPullRequestResult, jspb.Message);
482
- if (goog.DEBUG && !COMPILED) {
483
- /**
484
- * @public
485
- * @override
486
- */
487
- proto.gateway.web.v1.InstallTermaPullRequestResult.displayName = 'proto.gateway.web.v1.InstallTermaPullRequestResult';
488
- }
489
- /**
490
- * Generated by JsPbCodeGenerator.
491
- * @param {Array=} opt_data Optional initial data array, typically from a
492
- * server response, or constructed directly in Javascript. The array is used
493
- * in place and becomes part of the constructed object. It is not cloned.
494
- * If no data is provided, the constructed object will be empty, but still
495
- * valid.
496
- * @extends {jspb.Message}
497
- * @constructor
498
- */
499
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse = function(opt_data) {
500
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.repeatedFields_, null);
501
- };
502
- goog.inherits(proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse, jspb.Message);
503
- if (goog.DEBUG && !COMPILED) {
504
- /**
505
- * @public
506
- * @override
507
- */
508
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.displayName = 'proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse';
509
- }
510
- /**
511
- * Generated by JsPbCodeGenerator.
512
- * @param {Array=} opt_data Optional initial data array, typically from a
513
- * server response, or constructed directly in Javascript. The array is used
514
- * in place and becomes part of the constructed object. It is not cloned.
515
- * If no data is provided, the constructed object will be empty, but still
516
- * valid.
517
- * @extends {jspb.Message}
518
- * @constructor
519
- */
520
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest = function(opt_data) {
521
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
522
- };
523
- goog.inherits(proto.gateway.web.v1.ListInstallTermaPullRequestsRequest, jspb.Message);
524
- if (goog.DEBUG && !COMPILED) {
525
- /**
526
- * @public
527
- * @override
528
- */
529
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.displayName = 'proto.gateway.web.v1.ListInstallTermaPullRequestsRequest';
530
- }
531
- /**
532
- * Generated by JsPbCodeGenerator.
533
- * @param {Array=} opt_data Optional initial data array, typically from a
534
- * server response, or constructed directly in Javascript. The array is used
535
- * in place and becomes part of the constructed object. It is not cloned.
536
- * If no data is provided, the constructed object will be empty, but still
537
- * valid.
538
- * @extends {jspb.Message}
539
- * @constructor
540
- */
541
- proto.gateway.web.v1.InstallTermaPullRequest = function(opt_data) {
542
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
543
- };
544
- goog.inherits(proto.gateway.web.v1.InstallTermaPullRequest, jspb.Message);
545
- if (goog.DEBUG && !COMPILED) {
546
- /**
547
- * @public
548
- * @override
549
- */
550
- proto.gateway.web.v1.InstallTermaPullRequest.displayName = 'proto.gateway.web.v1.InstallTermaPullRequest';
551
- }
552
- /**
553
- * Generated by JsPbCodeGenerator.
554
- * @param {Array=} opt_data Optional initial data array, typically from a
555
- * server response, or constructed directly in Javascript. The array is used
556
- * in place and becomes part of the constructed object. It is not cloned.
557
- * If no data is provided, the constructed object will be empty, but still
558
- * valid.
559
- * @extends {jspb.Message}
560
- * @constructor
561
- */
562
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse = function(opt_data) {
563
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.repeatedFields_, null);
564
- };
565
- goog.inherits(proto.gateway.web.v1.ListInstallTermaPullRequestsResponse, jspb.Message);
566
- if (goog.DEBUG && !COMPILED) {
567
- /**
568
- * @public
569
- * @override
570
- */
571
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.displayName = 'proto.gateway.web.v1.ListInstallTermaPullRequestsResponse';
572
- }
573
441
 
574
442
 
575
443
 
@@ -5016,1302 +4884,4 @@ proto.gateway.web.v1.GitHubFilesResponse.prototype.clearFilesList = function() {
5016
4884
  };
5017
4885
 
5018
4886
 
5019
-
5020
- /**
5021
- * List of repeated fields within this message type.
5022
- * @private {!Array<number>}
5023
- * @const
5024
- */
5025
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.repeatedFields_ = [3];
5026
-
5027
-
5028
-
5029
- if (jspb.Message.GENERATE_TO_OBJECT) {
5030
- /**
5031
- * Creates an object representation of this proto.
5032
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
5033
- * Optional fields that are not set will be set to undefined.
5034
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5035
- * For the list of reserved names please see:
5036
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5037
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5038
- * JSPB instance for transitional soy proto support:
5039
- * http://goto/soy-param-migration
5040
- * @return {!Object}
5041
- */
5042
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.toObject = function(opt_includeInstance) {
5043
- return proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.toObject(opt_includeInstance, this);
5044
- };
5045
-
5046
-
5047
- /**
5048
- * Static version of the {@see toObject} method.
5049
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5050
- * the JSPB instance for transitional soy proto support:
5051
- * http://goto/soy-param-migration
5052
- * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} msg The msg instance to transform.
5053
- * @return {!Object}
5054
- * @suppress {unusedLocalVariables} f is only used for nested messages
5055
- */
5056
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.toObject = function(includeInstance, msg) {
5057
- var f, obj = {
5058
- organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
5059
- projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
5060
- repositoriesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
5061
- };
5062
-
5063
- if (includeInstance) {
5064
- obj.$jspbMessageInstance = msg;
5065
- }
5066
- return obj;
5067
- };
5068
- }
5069
-
5070
-
5071
- /**
5072
- * Deserializes binary data (in protobuf wire format).
5073
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5074
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest}
5075
- */
5076
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.deserializeBinary = function(bytes) {
5077
- var reader = new jspb.BinaryReader(bytes);
5078
- var msg = new proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest;
5079
- return proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.deserializeBinaryFromReader(msg, reader);
5080
- };
5081
-
5082
-
5083
- /**
5084
- * Deserializes binary data (in protobuf wire format) from the
5085
- * given reader into the given message object.
5086
- * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} msg The message object to deserialize into.
5087
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5088
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest}
5089
- */
5090
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.deserializeBinaryFromReader = function(msg, reader) {
5091
- while (reader.nextField()) {
5092
- if (reader.isEndGroup()) {
5093
- break;
5094
- }
5095
- var field = reader.getFieldNumber();
5096
- switch (field) {
5097
- case 1:
5098
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5099
- msg.setOrganizationId(value);
5100
- break;
5101
- case 2:
5102
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5103
- msg.setProjectId(value);
5104
- break;
5105
- case 3:
5106
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5107
- msg.addRepositories(value);
5108
- break;
5109
- default:
5110
- reader.skipField();
5111
- break;
5112
- }
5113
- }
5114
- return msg;
5115
- };
5116
-
5117
-
5118
- /**
5119
- * Serializes the message to binary data (in protobuf wire format).
5120
- * @return {!Uint8Array}
5121
- */
5122
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.serializeBinary = function() {
5123
- var writer = new jspb.BinaryWriter();
5124
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.serializeBinaryToWriter(this, writer);
5125
- return writer.getResultBuffer();
5126
- };
5127
-
5128
-
5129
- /**
5130
- * Serializes the given message to binary data (in protobuf wire
5131
- * format), writing to the given BinaryWriter.
5132
- * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} message
5133
- * @param {!jspb.BinaryWriter} writer
5134
- * @suppress {unusedLocalVariables} f is only used for nested messages
5135
- */
5136
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.serializeBinaryToWriter = function(message, writer) {
5137
- var f = undefined;
5138
- f = message.getOrganizationId();
5139
- if (f.length > 0) {
5140
- writer.writeString(
5141
- 1,
5142
- f
5143
- );
5144
- }
5145
- f = message.getProjectId();
5146
- if (f.length > 0) {
5147
- writer.writeString(
5148
- 2,
5149
- f
5150
- );
5151
- }
5152
- f = message.getRepositoriesList();
5153
- if (f.length > 0) {
5154
- writer.writeRepeatedString(
5155
- 3,
5156
- f
5157
- );
5158
- }
5159
- };
5160
-
5161
-
5162
- /**
5163
- * optional string organization_id = 1;
5164
- * @return {string}
5165
- */
5166
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.getOrganizationId = function() {
5167
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5168
- };
5169
-
5170
-
5171
- /**
5172
- * @param {string} value
5173
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5174
- */
5175
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.setOrganizationId = function(value) {
5176
- return jspb.Message.setProto3StringField(this, 1, value);
5177
- };
5178
-
5179
-
5180
- /**
5181
- * optional string project_id = 2;
5182
- * @return {string}
5183
- */
5184
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.getProjectId = function() {
5185
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5186
- };
5187
-
5188
-
5189
- /**
5190
- * @param {string} value
5191
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5192
- */
5193
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.setProjectId = function(value) {
5194
- return jspb.Message.setProto3StringField(this, 2, value);
5195
- };
5196
-
5197
-
5198
- /**
5199
- * repeated string repositories = 3;
5200
- * @return {!Array<string>}
5201
- */
5202
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.getRepositoriesList = function() {
5203
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
5204
- };
5205
-
5206
-
5207
- /**
5208
- * @param {!Array<string>} value
5209
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5210
- */
5211
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.setRepositoriesList = function(value) {
5212
- return jspb.Message.setField(this, 3, value || []);
5213
- };
5214
-
5215
-
5216
- /**
5217
- * @param {string} value
5218
- * @param {number=} opt_index
5219
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5220
- */
5221
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.addRepositories = function(value, opt_index) {
5222
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
5223
- };
5224
-
5225
-
5226
- /**
5227
- * Clears the list making it empty but non-null.
5228
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5229
- */
5230
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.clearRepositoriesList = function() {
5231
- return this.setRepositoriesList([]);
5232
- };
5233
-
5234
-
5235
-
5236
-
5237
-
5238
- if (jspb.Message.GENERATE_TO_OBJECT) {
5239
- /**
5240
- * Creates an object representation of this proto.
5241
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
5242
- * Optional fields that are not set will be set to undefined.
5243
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5244
- * For the list of reserved names please see:
5245
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5246
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5247
- * JSPB instance for transitional soy proto support:
5248
- * http://goto/soy-param-migration
5249
- * @return {!Object}
5250
- */
5251
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.toObject = function(opt_includeInstance) {
5252
- return proto.gateway.web.v1.InstallTermaPullRequestResult.toObject(opt_includeInstance, this);
5253
- };
5254
-
5255
-
5256
- /**
5257
- * Static version of the {@see toObject} method.
5258
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5259
- * the JSPB instance for transitional soy proto support:
5260
- * http://goto/soy-param-migration
5261
- * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult} msg The msg instance to transform.
5262
- * @return {!Object}
5263
- * @suppress {unusedLocalVariables} f is only used for nested messages
5264
- */
5265
- proto.gateway.web.v1.InstallTermaPullRequestResult.toObject = function(includeInstance, msg) {
5266
- var f, obj = {
5267
- repository: jspb.Message.getFieldWithDefault(msg, 1, ""),
5268
- number: jspb.Message.getFieldWithDefault(msg, 2, 0),
5269
- url: jspb.Message.getFieldWithDefault(msg, 3, ""),
5270
- errorMessage: jspb.Message.getFieldWithDefault(msg, 4, ""),
5271
- alreadyInstalled: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
5272
- };
5273
-
5274
- if (includeInstance) {
5275
- obj.$jspbMessageInstance = msg;
5276
- }
5277
- return obj;
5278
- };
5279
- }
5280
-
5281
-
5282
- /**
5283
- * Deserializes binary data (in protobuf wire format).
5284
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5285
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult}
5286
- */
5287
- proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinary = function(bytes) {
5288
- var reader = new jspb.BinaryReader(bytes);
5289
- var msg = new proto.gateway.web.v1.InstallTermaPullRequestResult;
5290
- return proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinaryFromReader(msg, reader);
5291
- };
5292
-
5293
-
5294
- /**
5295
- * Deserializes binary data (in protobuf wire format) from the
5296
- * given reader into the given message object.
5297
- * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult} msg The message object to deserialize into.
5298
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5299
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult}
5300
- */
5301
- proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinaryFromReader = function(msg, reader) {
5302
- while (reader.nextField()) {
5303
- if (reader.isEndGroup()) {
5304
- break;
5305
- }
5306
- var field = reader.getFieldNumber();
5307
- switch (field) {
5308
- case 1:
5309
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5310
- msg.setRepository(value);
5311
- break;
5312
- case 2:
5313
- var value = /** @type {number} */ (reader.readInt64());
5314
- msg.setNumber(value);
5315
- break;
5316
- case 3:
5317
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5318
- msg.setUrl(value);
5319
- break;
5320
- case 4:
5321
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5322
- msg.setErrorMessage(value);
5323
- break;
5324
- case 5:
5325
- var value = /** @type {boolean} */ (reader.readBool());
5326
- msg.setAlreadyInstalled(value);
5327
- break;
5328
- default:
5329
- reader.skipField();
5330
- break;
5331
- }
5332
- }
5333
- return msg;
5334
- };
5335
-
5336
-
5337
- /**
5338
- * Serializes the message to binary data (in protobuf wire format).
5339
- * @return {!Uint8Array}
5340
- */
5341
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.serializeBinary = function() {
5342
- var writer = new jspb.BinaryWriter();
5343
- proto.gateway.web.v1.InstallTermaPullRequestResult.serializeBinaryToWriter(this, writer);
5344
- return writer.getResultBuffer();
5345
- };
5346
-
5347
-
5348
- /**
5349
- * Serializes the given message to binary data (in protobuf wire
5350
- * format), writing to the given BinaryWriter.
5351
- * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult} message
5352
- * @param {!jspb.BinaryWriter} writer
5353
- * @suppress {unusedLocalVariables} f is only used for nested messages
5354
- */
5355
- proto.gateway.web.v1.InstallTermaPullRequestResult.serializeBinaryToWriter = function(message, writer) {
5356
- var f = undefined;
5357
- f = message.getRepository();
5358
- if (f.length > 0) {
5359
- writer.writeString(
5360
- 1,
5361
- f
5362
- );
5363
- }
5364
- f = message.getNumber();
5365
- if (f !== 0) {
5366
- writer.writeInt64(
5367
- 2,
5368
- f
5369
- );
5370
- }
5371
- f = message.getUrl();
5372
- if (f.length > 0) {
5373
- writer.writeString(
5374
- 3,
5375
- f
5376
- );
5377
- }
5378
- f = message.getErrorMessage();
5379
- if (f.length > 0) {
5380
- writer.writeString(
5381
- 4,
5382
- f
5383
- );
5384
- }
5385
- f = message.getAlreadyInstalled();
5386
- if (f) {
5387
- writer.writeBool(
5388
- 5,
5389
- f
5390
- );
5391
- }
5392
- };
5393
-
5394
-
5395
- /**
5396
- * optional string repository = 1;
5397
- * @return {string}
5398
- */
5399
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getRepository = function() {
5400
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5401
- };
5402
-
5403
-
5404
- /**
5405
- * @param {string} value
5406
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5407
- */
5408
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setRepository = function(value) {
5409
- return jspb.Message.setProto3StringField(this, 1, value);
5410
- };
5411
-
5412
-
5413
- /**
5414
- * optional int64 number = 2;
5415
- * @return {number}
5416
- */
5417
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getNumber = function() {
5418
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5419
- };
5420
-
5421
-
5422
- /**
5423
- * @param {number} value
5424
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5425
- */
5426
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setNumber = function(value) {
5427
- return jspb.Message.setProto3IntField(this, 2, value);
5428
- };
5429
-
5430
-
5431
- /**
5432
- * optional string url = 3;
5433
- * @return {string}
5434
- */
5435
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getUrl = function() {
5436
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5437
- };
5438
-
5439
-
5440
- /**
5441
- * @param {string} value
5442
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5443
- */
5444
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setUrl = function(value) {
5445
- return jspb.Message.setProto3StringField(this, 3, value);
5446
- };
5447
-
5448
-
5449
- /**
5450
- * optional string error_message = 4;
5451
- * @return {string}
5452
- */
5453
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getErrorMessage = function() {
5454
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5455
- };
5456
-
5457
-
5458
- /**
5459
- * @param {string} value
5460
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5461
- */
5462
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setErrorMessage = function(value) {
5463
- return jspb.Message.setProto3StringField(this, 4, value);
5464
- };
5465
-
5466
-
5467
- /**
5468
- * optional bool already_installed = 5;
5469
- * @return {boolean}
5470
- */
5471
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getAlreadyInstalled = function() {
5472
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
5473
- };
5474
-
5475
-
5476
- /**
5477
- * @param {boolean} value
5478
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5479
- */
5480
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setAlreadyInstalled = function(value) {
5481
- return jspb.Message.setProto3BooleanField(this, 5, value);
5482
- };
5483
-
5484
-
5485
-
5486
- /**
5487
- * List of repeated fields within this message type.
5488
- * @private {!Array<number>}
5489
- * @const
5490
- */
5491
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.repeatedFields_ = [2];
5492
-
5493
-
5494
-
5495
- if (jspb.Message.GENERATE_TO_OBJECT) {
5496
- /**
5497
- * Creates an object representation of this proto.
5498
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
5499
- * Optional fields that are not set will be set to undefined.
5500
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5501
- * For the list of reserved names please see:
5502
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5503
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5504
- * JSPB instance for transitional soy proto support:
5505
- * http://goto/soy-param-migration
5506
- * @return {!Object}
5507
- */
5508
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.toObject = function(opt_includeInstance) {
5509
- return proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.toObject(opt_includeInstance, this);
5510
- };
5511
-
5512
-
5513
- /**
5514
- * Static version of the {@see toObject} method.
5515
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5516
- * the JSPB instance for transitional soy proto support:
5517
- * http://goto/soy-param-migration
5518
- * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} msg The msg instance to transform.
5519
- * @return {!Object}
5520
- * @suppress {unusedLocalVariables} f is only used for nested messages
5521
- */
5522
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.toObject = function(includeInstance, msg) {
5523
- var f, obj = {
5524
- status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
5525
- resultsList: jspb.Message.toObjectList(msg.getResultsList(),
5526
- proto.gateway.web.v1.InstallTermaPullRequestResult.toObject, includeInstance)
5527
- };
5528
-
5529
- if (includeInstance) {
5530
- obj.$jspbMessageInstance = msg;
5531
- }
5532
- return obj;
5533
- };
5534
- }
5535
-
5536
-
5537
- /**
5538
- * Deserializes binary data (in protobuf wire format).
5539
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5540
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse}
5541
- */
5542
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.deserializeBinary = function(bytes) {
5543
- var reader = new jspb.BinaryReader(bytes);
5544
- var msg = new proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse;
5545
- return proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.deserializeBinaryFromReader(msg, reader);
5546
- };
5547
-
5548
-
5549
- /**
5550
- * Deserializes binary data (in protobuf wire format) from the
5551
- * given reader into the given message object.
5552
- * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} msg The message object to deserialize into.
5553
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5554
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse}
5555
- */
5556
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.deserializeBinaryFromReader = function(msg, reader) {
5557
- while (reader.nextField()) {
5558
- if (reader.isEndGroup()) {
5559
- break;
5560
- }
5561
- var field = reader.getFieldNumber();
5562
- switch (field) {
5563
- case 1:
5564
- var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
5565
- reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
5566
- msg.setStatus(value);
5567
- break;
5568
- case 2:
5569
- var value = new proto.gateway.web.v1.InstallTermaPullRequestResult;
5570
- reader.readMessage(value,proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinaryFromReader);
5571
- msg.addResults(value);
5572
- break;
5573
- default:
5574
- reader.skipField();
5575
- break;
5576
- }
5577
- }
5578
- return msg;
5579
- };
5580
-
5581
-
5582
- /**
5583
- * Serializes the message to binary data (in protobuf wire format).
5584
- * @return {!Uint8Array}
5585
- */
5586
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.serializeBinary = function() {
5587
- var writer = new jspb.BinaryWriter();
5588
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.serializeBinaryToWriter(this, writer);
5589
- return writer.getResultBuffer();
5590
- };
5591
-
5592
-
5593
- /**
5594
- * Serializes the given message to binary data (in protobuf wire
5595
- * format), writing to the given BinaryWriter.
5596
- * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} message
5597
- * @param {!jspb.BinaryWriter} writer
5598
- * @suppress {unusedLocalVariables} f is only used for nested messages
5599
- */
5600
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.serializeBinaryToWriter = function(message, writer) {
5601
- var f = undefined;
5602
- f = message.getStatus();
5603
- if (f != null) {
5604
- writer.writeMessage(
5605
- 1,
5606
- f,
5607
- proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
5608
- );
5609
- }
5610
- f = message.getResultsList();
5611
- if (f.length > 0) {
5612
- writer.writeRepeatedMessage(
5613
- 2,
5614
- f,
5615
- proto.gateway.web.v1.InstallTermaPullRequestResult.serializeBinaryToWriter
5616
- );
5617
- }
5618
- };
5619
-
5620
-
5621
- /**
5622
- * optional gateway.common.v1.ResponseStatus status = 1;
5623
- * @return {?proto.gateway.common.v1.ResponseStatus}
5624
- */
5625
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.getStatus = function() {
5626
- return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
5627
- jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
5628
- };
5629
-
5630
-
5631
- /**
5632
- * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
5633
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5634
- */
5635
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.setStatus = function(value) {
5636
- return jspb.Message.setWrapperField(this, 1, value);
5637
- };
5638
-
5639
-
5640
- /**
5641
- * Clears the message field making it undefined.
5642
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5643
- */
5644
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.clearStatus = function() {
5645
- return this.setStatus(undefined);
5646
- };
5647
-
5648
-
5649
- /**
5650
- * Returns whether this field is set.
5651
- * @return {boolean}
5652
- */
5653
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.hasStatus = function() {
5654
- return jspb.Message.getField(this, 1) != null;
5655
- };
5656
-
5657
-
5658
- /**
5659
- * repeated InstallTermaPullRequestResult results = 2;
5660
- * @return {!Array<!proto.gateway.web.v1.InstallTermaPullRequestResult>}
5661
- */
5662
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.getResultsList = function() {
5663
- return /** @type{!Array<!proto.gateway.web.v1.InstallTermaPullRequestResult>} */ (
5664
- jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.InstallTermaPullRequestResult, 2));
5665
- };
5666
-
5667
-
5668
- /**
5669
- * @param {!Array<!proto.gateway.web.v1.InstallTermaPullRequestResult>} value
5670
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5671
- */
5672
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.setResultsList = function(value) {
5673
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
5674
- };
5675
-
5676
-
5677
- /**
5678
- * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult=} opt_value
5679
- * @param {number=} opt_index
5680
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult}
5681
- */
5682
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.addResults = function(opt_value, opt_index) {
5683
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.InstallTermaPullRequestResult, opt_index);
5684
- };
5685
-
5686
-
5687
- /**
5688
- * Clears the list making it empty but non-null.
5689
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5690
- */
5691
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.clearResultsList = function() {
5692
- return this.setResultsList([]);
5693
- };
5694
-
5695
-
5696
-
5697
-
5698
-
5699
- if (jspb.Message.GENERATE_TO_OBJECT) {
5700
- /**
5701
- * Creates an object representation of this proto.
5702
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
5703
- * Optional fields that are not set will be set to undefined.
5704
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5705
- * For the list of reserved names please see:
5706
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5707
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5708
- * JSPB instance for transitional soy proto support:
5709
- * http://goto/soy-param-migration
5710
- * @return {!Object}
5711
- */
5712
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.toObject = function(opt_includeInstance) {
5713
- return proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.toObject(opt_includeInstance, this);
5714
- };
5715
-
5716
-
5717
- /**
5718
- * Static version of the {@see toObject} method.
5719
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5720
- * the JSPB instance for transitional soy proto support:
5721
- * http://goto/soy-param-migration
5722
- * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} msg The msg instance to transform.
5723
- * @return {!Object}
5724
- * @suppress {unusedLocalVariables} f is only used for nested messages
5725
- */
5726
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.toObject = function(includeInstance, msg) {
5727
- var f, obj = {
5728
- organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
5729
- projectId: jspb.Message.getFieldWithDefault(msg, 2, "")
5730
- };
5731
-
5732
- if (includeInstance) {
5733
- obj.$jspbMessageInstance = msg;
5734
- }
5735
- return obj;
5736
- };
5737
- }
5738
-
5739
-
5740
- /**
5741
- * Deserializes binary data (in protobuf wire format).
5742
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5743
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest}
5744
- */
5745
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.deserializeBinary = function(bytes) {
5746
- var reader = new jspb.BinaryReader(bytes);
5747
- var msg = new proto.gateway.web.v1.ListInstallTermaPullRequestsRequest;
5748
- return proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.deserializeBinaryFromReader(msg, reader);
5749
- };
5750
-
5751
-
5752
- /**
5753
- * Deserializes binary data (in protobuf wire format) from the
5754
- * given reader into the given message object.
5755
- * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} msg The message object to deserialize into.
5756
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5757
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest}
5758
- */
5759
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.deserializeBinaryFromReader = function(msg, reader) {
5760
- while (reader.nextField()) {
5761
- if (reader.isEndGroup()) {
5762
- break;
5763
- }
5764
- var field = reader.getFieldNumber();
5765
- switch (field) {
5766
- case 1:
5767
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5768
- msg.setOrganizationId(value);
5769
- break;
5770
- case 2:
5771
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5772
- msg.setProjectId(value);
5773
- break;
5774
- default:
5775
- reader.skipField();
5776
- break;
5777
- }
5778
- }
5779
- return msg;
5780
- };
5781
-
5782
-
5783
- /**
5784
- * Serializes the message to binary data (in protobuf wire format).
5785
- * @return {!Uint8Array}
5786
- */
5787
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.serializeBinary = function() {
5788
- var writer = new jspb.BinaryWriter();
5789
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.serializeBinaryToWriter(this, writer);
5790
- return writer.getResultBuffer();
5791
- };
5792
-
5793
-
5794
- /**
5795
- * Serializes the given message to binary data (in protobuf wire
5796
- * format), writing to the given BinaryWriter.
5797
- * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} message
5798
- * @param {!jspb.BinaryWriter} writer
5799
- * @suppress {unusedLocalVariables} f is only used for nested messages
5800
- */
5801
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.serializeBinaryToWriter = function(message, writer) {
5802
- var f = undefined;
5803
- f = message.getOrganizationId();
5804
- if (f.length > 0) {
5805
- writer.writeString(
5806
- 1,
5807
- f
5808
- );
5809
- }
5810
- f = message.getProjectId();
5811
- if (f.length > 0) {
5812
- writer.writeString(
5813
- 2,
5814
- f
5815
- );
5816
- }
5817
- };
5818
-
5819
-
5820
- /**
5821
- * optional string organization_id = 1;
5822
- * @return {string}
5823
- */
5824
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.getOrganizationId = function() {
5825
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5826
- };
5827
-
5828
-
5829
- /**
5830
- * @param {string} value
5831
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} returns this
5832
- */
5833
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.setOrganizationId = function(value) {
5834
- return jspb.Message.setProto3StringField(this, 1, value);
5835
- };
5836
-
5837
-
5838
- /**
5839
- * optional string project_id = 2;
5840
- * @return {string}
5841
- */
5842
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.getProjectId = function() {
5843
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5844
- };
5845
-
5846
-
5847
- /**
5848
- * @param {string} value
5849
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} returns this
5850
- */
5851
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.setProjectId = function(value) {
5852
- return jspb.Message.setProto3StringField(this, 2, value);
5853
- };
5854
-
5855
-
5856
-
5857
-
5858
-
5859
- if (jspb.Message.GENERATE_TO_OBJECT) {
5860
- /**
5861
- * Creates an object representation of this proto.
5862
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
5863
- * Optional fields that are not set will be set to undefined.
5864
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5865
- * For the list of reserved names please see:
5866
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5867
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5868
- * JSPB instance for transitional soy proto support:
5869
- * http://goto/soy-param-migration
5870
- * @return {!Object}
5871
- */
5872
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.toObject = function(opt_includeInstance) {
5873
- return proto.gateway.web.v1.InstallTermaPullRequest.toObject(opt_includeInstance, this);
5874
- };
5875
-
5876
-
5877
- /**
5878
- * Static version of the {@see toObject} method.
5879
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5880
- * the JSPB instance for transitional soy proto support:
5881
- * http://goto/soy-param-migration
5882
- * @param {!proto.gateway.web.v1.InstallTermaPullRequest} msg The msg instance to transform.
5883
- * @return {!Object}
5884
- * @suppress {unusedLocalVariables} f is only used for nested messages
5885
- */
5886
- proto.gateway.web.v1.InstallTermaPullRequest.toObject = function(includeInstance, msg) {
5887
- var f, obj = {
5888
- repository: jspb.Message.getFieldWithDefault(msg, 1, ""),
5889
- number: jspb.Message.getFieldWithDefault(msg, 2, 0),
5890
- url: jspb.Message.getFieldWithDefault(msg, 3, ""),
5891
- state: jspb.Message.getFieldWithDefault(msg, 4, ""),
5892
- updatedAt: jspb.Message.getFieldWithDefault(msg, 5, "")
5893
- };
5894
-
5895
- if (includeInstance) {
5896
- obj.$jspbMessageInstance = msg;
5897
- }
5898
- return obj;
5899
- };
5900
- }
5901
-
5902
-
5903
- /**
5904
- * Deserializes binary data (in protobuf wire format).
5905
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5906
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest}
5907
- */
5908
- proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinary = function(bytes) {
5909
- var reader = new jspb.BinaryReader(bytes);
5910
- var msg = new proto.gateway.web.v1.InstallTermaPullRequest;
5911
- return proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinaryFromReader(msg, reader);
5912
- };
5913
-
5914
-
5915
- /**
5916
- * Deserializes binary data (in protobuf wire format) from the
5917
- * given reader into the given message object.
5918
- * @param {!proto.gateway.web.v1.InstallTermaPullRequest} msg The message object to deserialize into.
5919
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5920
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest}
5921
- */
5922
- proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinaryFromReader = function(msg, reader) {
5923
- while (reader.nextField()) {
5924
- if (reader.isEndGroup()) {
5925
- break;
5926
- }
5927
- var field = reader.getFieldNumber();
5928
- switch (field) {
5929
- case 1:
5930
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5931
- msg.setRepository(value);
5932
- break;
5933
- case 2:
5934
- var value = /** @type {number} */ (reader.readInt64());
5935
- msg.setNumber(value);
5936
- break;
5937
- case 3:
5938
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5939
- msg.setUrl(value);
5940
- break;
5941
- case 4:
5942
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5943
- msg.setState(value);
5944
- break;
5945
- case 5:
5946
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5947
- msg.setUpdatedAt(value);
5948
- break;
5949
- default:
5950
- reader.skipField();
5951
- break;
5952
- }
5953
- }
5954
- return msg;
5955
- };
5956
-
5957
-
5958
- /**
5959
- * Serializes the message to binary data (in protobuf wire format).
5960
- * @return {!Uint8Array}
5961
- */
5962
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.serializeBinary = function() {
5963
- var writer = new jspb.BinaryWriter();
5964
- proto.gateway.web.v1.InstallTermaPullRequest.serializeBinaryToWriter(this, writer);
5965
- return writer.getResultBuffer();
5966
- };
5967
-
5968
-
5969
- /**
5970
- * Serializes the given message to binary data (in protobuf wire
5971
- * format), writing to the given BinaryWriter.
5972
- * @param {!proto.gateway.web.v1.InstallTermaPullRequest} message
5973
- * @param {!jspb.BinaryWriter} writer
5974
- * @suppress {unusedLocalVariables} f is only used for nested messages
5975
- */
5976
- proto.gateway.web.v1.InstallTermaPullRequest.serializeBinaryToWriter = function(message, writer) {
5977
- var f = undefined;
5978
- f = message.getRepository();
5979
- if (f.length > 0) {
5980
- writer.writeString(
5981
- 1,
5982
- f
5983
- );
5984
- }
5985
- f = message.getNumber();
5986
- if (f !== 0) {
5987
- writer.writeInt64(
5988
- 2,
5989
- f
5990
- );
5991
- }
5992
- f = message.getUrl();
5993
- if (f.length > 0) {
5994
- writer.writeString(
5995
- 3,
5996
- f
5997
- );
5998
- }
5999
- f = message.getState();
6000
- if (f.length > 0) {
6001
- writer.writeString(
6002
- 4,
6003
- f
6004
- );
6005
- }
6006
- f = message.getUpdatedAt();
6007
- if (f.length > 0) {
6008
- writer.writeString(
6009
- 5,
6010
- f
6011
- );
6012
- }
6013
- };
6014
-
6015
-
6016
- /**
6017
- * optional string repository = 1;
6018
- * @return {string}
6019
- */
6020
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.getRepository = function() {
6021
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6022
- };
6023
-
6024
-
6025
- /**
6026
- * @param {string} value
6027
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
6028
- */
6029
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.setRepository = function(value) {
6030
- return jspb.Message.setProto3StringField(this, 1, value);
6031
- };
6032
-
6033
-
6034
- /**
6035
- * optional int64 number = 2;
6036
- * @return {number}
6037
- */
6038
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.getNumber = function() {
6039
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
6040
- };
6041
-
6042
-
6043
- /**
6044
- * @param {number} value
6045
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
6046
- */
6047
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.setNumber = function(value) {
6048
- return jspb.Message.setProto3IntField(this, 2, value);
6049
- };
6050
-
6051
-
6052
- /**
6053
- * optional string url = 3;
6054
- * @return {string}
6055
- */
6056
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.getUrl = function() {
6057
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6058
- };
6059
-
6060
-
6061
- /**
6062
- * @param {string} value
6063
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
6064
- */
6065
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.setUrl = function(value) {
6066
- return jspb.Message.setProto3StringField(this, 3, value);
6067
- };
6068
-
6069
-
6070
- /**
6071
- * optional string state = 4;
6072
- * @return {string}
6073
- */
6074
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.getState = function() {
6075
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
6076
- };
6077
-
6078
-
6079
- /**
6080
- * @param {string} value
6081
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
6082
- */
6083
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.setState = function(value) {
6084
- return jspb.Message.setProto3StringField(this, 4, value);
6085
- };
6086
-
6087
-
6088
- /**
6089
- * optional string updated_at = 5;
6090
- * @return {string}
6091
- */
6092
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.getUpdatedAt = function() {
6093
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
6094
- };
6095
-
6096
-
6097
- /**
6098
- * @param {string} value
6099
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
6100
- */
6101
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.setUpdatedAt = function(value) {
6102
- return jspb.Message.setProto3StringField(this, 5, value);
6103
- };
6104
-
6105
-
6106
-
6107
- /**
6108
- * List of repeated fields within this message type.
6109
- * @private {!Array<number>}
6110
- * @const
6111
- */
6112
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.repeatedFields_ = [2];
6113
-
6114
-
6115
-
6116
- if (jspb.Message.GENERATE_TO_OBJECT) {
6117
- /**
6118
- * Creates an object representation of this proto.
6119
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
6120
- * Optional fields that are not set will be set to undefined.
6121
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6122
- * For the list of reserved names please see:
6123
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6124
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6125
- * JSPB instance for transitional soy proto support:
6126
- * http://goto/soy-param-migration
6127
- * @return {!Object}
6128
- */
6129
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.toObject = function(opt_includeInstance) {
6130
- return proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.toObject(opt_includeInstance, this);
6131
- };
6132
-
6133
-
6134
- /**
6135
- * Static version of the {@see toObject} method.
6136
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6137
- * the JSPB instance for transitional soy proto support:
6138
- * http://goto/soy-param-migration
6139
- * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} msg The msg instance to transform.
6140
- * @return {!Object}
6141
- * @suppress {unusedLocalVariables} f is only used for nested messages
6142
- */
6143
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.toObject = function(includeInstance, msg) {
6144
- var f, obj = {
6145
- status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
6146
- pullRequestsList: jspb.Message.toObjectList(msg.getPullRequestsList(),
6147
- proto.gateway.web.v1.InstallTermaPullRequest.toObject, includeInstance)
6148
- };
6149
-
6150
- if (includeInstance) {
6151
- obj.$jspbMessageInstance = msg;
6152
- }
6153
- return obj;
6154
- };
6155
- }
6156
-
6157
-
6158
- /**
6159
- * Deserializes binary data (in protobuf wire format).
6160
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
6161
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse}
6162
- */
6163
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.deserializeBinary = function(bytes) {
6164
- var reader = new jspb.BinaryReader(bytes);
6165
- var msg = new proto.gateway.web.v1.ListInstallTermaPullRequestsResponse;
6166
- return proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.deserializeBinaryFromReader(msg, reader);
6167
- };
6168
-
6169
-
6170
- /**
6171
- * Deserializes binary data (in protobuf wire format) from the
6172
- * given reader into the given message object.
6173
- * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} msg The message object to deserialize into.
6174
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6175
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse}
6176
- */
6177
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.deserializeBinaryFromReader = function(msg, reader) {
6178
- while (reader.nextField()) {
6179
- if (reader.isEndGroup()) {
6180
- break;
6181
- }
6182
- var field = reader.getFieldNumber();
6183
- switch (field) {
6184
- case 1:
6185
- var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
6186
- reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
6187
- msg.setStatus(value);
6188
- break;
6189
- case 2:
6190
- var value = new proto.gateway.web.v1.InstallTermaPullRequest;
6191
- reader.readMessage(value,proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinaryFromReader);
6192
- msg.addPullRequests(value);
6193
- break;
6194
- default:
6195
- reader.skipField();
6196
- break;
6197
- }
6198
- }
6199
- return msg;
6200
- };
6201
-
6202
-
6203
- /**
6204
- * Serializes the message to binary data (in protobuf wire format).
6205
- * @return {!Uint8Array}
6206
- */
6207
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.serializeBinary = function() {
6208
- var writer = new jspb.BinaryWriter();
6209
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.serializeBinaryToWriter(this, writer);
6210
- return writer.getResultBuffer();
6211
- };
6212
-
6213
-
6214
- /**
6215
- * Serializes the given message to binary data (in protobuf wire
6216
- * format), writing to the given BinaryWriter.
6217
- * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} message
6218
- * @param {!jspb.BinaryWriter} writer
6219
- * @suppress {unusedLocalVariables} f is only used for nested messages
6220
- */
6221
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.serializeBinaryToWriter = function(message, writer) {
6222
- var f = undefined;
6223
- f = message.getStatus();
6224
- if (f != null) {
6225
- writer.writeMessage(
6226
- 1,
6227
- f,
6228
- proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
6229
- );
6230
- }
6231
- f = message.getPullRequestsList();
6232
- if (f.length > 0) {
6233
- writer.writeRepeatedMessage(
6234
- 2,
6235
- f,
6236
- proto.gateway.web.v1.InstallTermaPullRequest.serializeBinaryToWriter
6237
- );
6238
- }
6239
- };
6240
-
6241
-
6242
- /**
6243
- * optional gateway.common.v1.ResponseStatus status = 1;
6244
- * @return {?proto.gateway.common.v1.ResponseStatus}
6245
- */
6246
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.getStatus = function() {
6247
- return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
6248
- jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
6249
- };
6250
-
6251
-
6252
- /**
6253
- * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
6254
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
6255
- */
6256
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.setStatus = function(value) {
6257
- return jspb.Message.setWrapperField(this, 1, value);
6258
- };
6259
-
6260
-
6261
- /**
6262
- * Clears the message field making it undefined.
6263
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
6264
- */
6265
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.clearStatus = function() {
6266
- return this.setStatus(undefined);
6267
- };
6268
-
6269
-
6270
- /**
6271
- * Returns whether this field is set.
6272
- * @return {boolean}
6273
- */
6274
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.hasStatus = function() {
6275
- return jspb.Message.getField(this, 1) != null;
6276
- };
6277
-
6278
-
6279
- /**
6280
- * repeated InstallTermaPullRequest pull_requests = 2;
6281
- * @return {!Array<!proto.gateway.web.v1.InstallTermaPullRequest>}
6282
- */
6283
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.getPullRequestsList = function() {
6284
- return /** @type{!Array<!proto.gateway.web.v1.InstallTermaPullRequest>} */ (
6285
- jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.InstallTermaPullRequest, 2));
6286
- };
6287
-
6288
-
6289
- /**
6290
- * @param {!Array<!proto.gateway.web.v1.InstallTermaPullRequest>} value
6291
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
6292
- */
6293
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.setPullRequestsList = function(value) {
6294
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
6295
- };
6296
-
6297
-
6298
- /**
6299
- * @param {!proto.gateway.web.v1.InstallTermaPullRequest=} opt_value
6300
- * @param {number=} opt_index
6301
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest}
6302
- */
6303
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.addPullRequests = function(opt_value, opt_index) {
6304
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.InstallTermaPullRequest, opt_index);
6305
- };
6306
-
6307
-
6308
- /**
6309
- * Clears the list making it empty but non-null.
6310
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
6311
- */
6312
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.clearPullRequestsList = function() {
6313
- return this.setPullRequestsList([]);
6314
- };
6315
-
6316
-
6317
4887
  goog.object.extend(exports, proto.gateway.web.v1);