@miradorlabs/web-grpc 3.27.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 +70 -990
  18. package/proto/gateway/web/v1/github_connector_grpc_pb.js +0 -91
  19. package/proto/gateway/web/v1/github_connector_pb.js +55 -1751
  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,11 +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.GitHubWebhookRequest', null, global);
45
- goog.exportSymbol('proto.gateway.web.v1.InstallTermaPullRequest', null, global);
46
- goog.exportSymbol('proto.gateway.web.v1.InstallTermaPullRequestResult', null, global);
47
- goog.exportSymbol('proto.gateway.web.v1.ListInstallTermaPullRequestsRequest', null, global);
48
- goog.exportSymbol('proto.gateway.web.v1.ListInstallTermaPullRequestsResponse', null, global);
49
42
  /**
50
43
  * Generated by JsPbCodeGenerator.
51
44
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -361,27 +354,6 @@ if (goog.DEBUG && !COMPILED) {
361
354
  */
362
355
  proto.gateway.web.v1.GitHubIssuesResponse.displayName = 'proto.gateway.web.v1.GitHubIssuesResponse';
363
356
  }
364
- /**
365
- * Generated by JsPbCodeGenerator.
366
- * @param {Array=} opt_data Optional initial data array, typically from a
367
- * server response, or constructed directly in Javascript. The array is used
368
- * in place and becomes part of the constructed object. It is not cloned.
369
- * If no data is provided, the constructed object will be empty, but still
370
- * valid.
371
- * @extends {jspb.Message}
372
- * @constructor
373
- */
374
- proto.gateway.web.v1.GitHubWebhookRequest = function(opt_data) {
375
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
376
- };
377
- goog.inherits(proto.gateway.web.v1.GitHubWebhookRequest, jspb.Message);
378
- if (goog.DEBUG && !COMPILED) {
379
- /**
380
- * @public
381
- * @override
382
- */
383
- proto.gateway.web.v1.GitHubWebhookRequest.displayName = 'proto.gateway.web.v1.GitHubWebhookRequest';
384
- }
385
357
  /**
386
358
  * Generated by JsPbCodeGenerator.
387
359
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -466,132 +438,6 @@ if (goog.DEBUG && !COMPILED) {
466
438
  */
467
439
  proto.gateway.web.v1.GitHubFilesResponse.displayName = 'proto.gateway.web.v1.GitHubFilesResponse';
468
440
  }
469
- /**
470
- * Generated by JsPbCodeGenerator.
471
- * @param {Array=} opt_data Optional initial data array, typically from a
472
- * server response, or constructed directly in Javascript. The array is used
473
- * in place and becomes part of the constructed object. It is not cloned.
474
- * If no data is provided, the constructed object will be empty, but still
475
- * valid.
476
- * @extends {jspb.Message}
477
- * @constructor
478
- */
479
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest = function(opt_data) {
480
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.repeatedFields_, null);
481
- };
482
- goog.inherits(proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest, jspb.Message);
483
- if (goog.DEBUG && !COMPILED) {
484
- /**
485
- * @public
486
- * @override
487
- */
488
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.displayName = 'proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest';
489
- }
490
- /**
491
- * Generated by JsPbCodeGenerator.
492
- * @param {Array=} opt_data Optional initial data array, typically from a
493
- * server response, or constructed directly in Javascript. The array is used
494
- * in place and becomes part of the constructed object. It is not cloned.
495
- * If no data is provided, the constructed object will be empty, but still
496
- * valid.
497
- * @extends {jspb.Message}
498
- * @constructor
499
- */
500
- proto.gateway.web.v1.InstallTermaPullRequestResult = function(opt_data) {
501
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
502
- };
503
- goog.inherits(proto.gateway.web.v1.InstallTermaPullRequestResult, jspb.Message);
504
- if (goog.DEBUG && !COMPILED) {
505
- /**
506
- * @public
507
- * @override
508
- */
509
- proto.gateway.web.v1.InstallTermaPullRequestResult.displayName = 'proto.gateway.web.v1.InstallTermaPullRequestResult';
510
- }
511
- /**
512
- * Generated by JsPbCodeGenerator.
513
- * @param {Array=} opt_data Optional initial data array, typically from a
514
- * server response, or constructed directly in Javascript. The array is used
515
- * in place and becomes part of the constructed object. It is not cloned.
516
- * If no data is provided, the constructed object will be empty, but still
517
- * valid.
518
- * @extends {jspb.Message}
519
- * @constructor
520
- */
521
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse = function(opt_data) {
522
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.repeatedFields_, null);
523
- };
524
- goog.inherits(proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse, jspb.Message);
525
- if (goog.DEBUG && !COMPILED) {
526
- /**
527
- * @public
528
- * @override
529
- */
530
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.displayName = 'proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse';
531
- }
532
- /**
533
- * Generated by JsPbCodeGenerator.
534
- * @param {Array=} opt_data Optional initial data array, typically from a
535
- * server response, or constructed directly in Javascript. The array is used
536
- * in place and becomes part of the constructed object. It is not cloned.
537
- * If no data is provided, the constructed object will be empty, but still
538
- * valid.
539
- * @extends {jspb.Message}
540
- * @constructor
541
- */
542
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest = function(opt_data) {
543
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
544
- };
545
- goog.inherits(proto.gateway.web.v1.ListInstallTermaPullRequestsRequest, jspb.Message);
546
- if (goog.DEBUG && !COMPILED) {
547
- /**
548
- * @public
549
- * @override
550
- */
551
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.displayName = 'proto.gateway.web.v1.ListInstallTermaPullRequestsRequest';
552
- }
553
- /**
554
- * Generated by JsPbCodeGenerator.
555
- * @param {Array=} opt_data Optional initial data array, typically from a
556
- * server response, or constructed directly in Javascript. The array is used
557
- * in place and becomes part of the constructed object. It is not cloned.
558
- * If no data is provided, the constructed object will be empty, but still
559
- * valid.
560
- * @extends {jspb.Message}
561
- * @constructor
562
- */
563
- proto.gateway.web.v1.InstallTermaPullRequest = function(opt_data) {
564
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
565
- };
566
- goog.inherits(proto.gateway.web.v1.InstallTermaPullRequest, jspb.Message);
567
- if (goog.DEBUG && !COMPILED) {
568
- /**
569
- * @public
570
- * @override
571
- */
572
- proto.gateway.web.v1.InstallTermaPullRequest.displayName = 'proto.gateway.web.v1.InstallTermaPullRequest';
573
- }
574
- /**
575
- * Generated by JsPbCodeGenerator.
576
- * @param {Array=} opt_data Optional initial data array, typically from a
577
- * server response, or constructed directly in Javascript. The array is used
578
- * in place and becomes part of the constructed object. It is not cloned.
579
- * If no data is provided, the constructed object will be empty, but still
580
- * valid.
581
- * @extends {jspb.Message}
582
- * @constructor
583
- */
584
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse = function(opt_data) {
585
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.repeatedFields_, null);
586
- };
587
- goog.inherits(proto.gateway.web.v1.ListInstallTermaPullRequestsResponse, jspb.Message);
588
- if (goog.DEBUG && !COMPILED) {
589
- /**
590
- * @public
591
- * @override
592
- */
593
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.displayName = 'proto.gateway.web.v1.ListInstallTermaPullRequestsResponse';
594
- }
595
441
 
596
442
 
597
443
 
@@ -4124,8 +3970,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
4124
3970
  * http://goto/soy-param-migration
4125
3971
  * @return {!Object}
4126
3972
  */
4127
- proto.gateway.web.v1.GitHubWebhookRequest.prototype.toObject = function(opt_includeInstance) {
4128
- return proto.gateway.web.v1.GitHubWebhookRequest.toObject(opt_includeInstance, this);
3973
+ proto.gateway.web.v1.GitHubEmptyResponse.prototype.toObject = function(opt_includeInstance) {
3974
+ return proto.gateway.web.v1.GitHubEmptyResponse.toObject(opt_includeInstance, this);
4129
3975
  };
4130
3976
 
4131
3977
 
@@ -4134,16 +3980,13 @@ proto.gateway.web.v1.GitHubWebhookRequest.prototype.toObject = function(opt_incl
4134
3980
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4135
3981
  * the JSPB instance for transitional soy proto support:
4136
3982
  * http://goto/soy-param-migration
4137
- * @param {!proto.gateway.web.v1.GitHubWebhookRequest} msg The msg instance to transform.
3983
+ * @param {!proto.gateway.web.v1.GitHubEmptyResponse} msg The msg instance to transform.
4138
3984
  * @return {!Object}
4139
3985
  * @suppress {unusedLocalVariables} f is only used for nested messages
4140
3986
  */
4141
- proto.gateway.web.v1.GitHubWebhookRequest.toObject = function(includeInstance, msg) {
3987
+ proto.gateway.web.v1.GitHubEmptyResponse.toObject = function(includeInstance, msg) {
4142
3988
  var f, obj = {
4143
- body: msg.getBody_asB64(),
4144
- signature: jspb.Message.getFieldWithDefault(msg, 2, ""),
4145
- deliveryId: jspb.Message.getFieldWithDefault(msg, 3, ""),
4146
- event: jspb.Message.getFieldWithDefault(msg, 4, "")
3989
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
4147
3990
  };
4148
3991
 
4149
3992
  if (includeInstance) {
@@ -4157,23 +4000,23 @@ event: jspb.Message.getFieldWithDefault(msg, 4, "")
4157
4000
  /**
4158
4001
  * Deserializes binary data (in protobuf wire format).
4159
4002
  * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4160
- * @return {!proto.gateway.web.v1.GitHubWebhookRequest}
4003
+ * @return {!proto.gateway.web.v1.GitHubEmptyResponse}
4161
4004
  */
4162
- proto.gateway.web.v1.GitHubWebhookRequest.deserializeBinary = function(bytes) {
4005
+ proto.gateway.web.v1.GitHubEmptyResponse.deserializeBinary = function(bytes) {
4163
4006
  var reader = new jspb.BinaryReader(bytes);
4164
- var msg = new proto.gateway.web.v1.GitHubWebhookRequest;
4165
- return proto.gateway.web.v1.GitHubWebhookRequest.deserializeBinaryFromReader(msg, reader);
4007
+ var msg = new proto.gateway.web.v1.GitHubEmptyResponse;
4008
+ return proto.gateway.web.v1.GitHubEmptyResponse.deserializeBinaryFromReader(msg, reader);
4166
4009
  };
4167
4010
 
4168
4011
 
4169
4012
  /**
4170
4013
  * Deserializes binary data (in protobuf wire format) from the
4171
4014
  * given reader into the given message object.
4172
- * @param {!proto.gateway.web.v1.GitHubWebhookRequest} msg The message object to deserialize into.
4015
+ * @param {!proto.gateway.web.v1.GitHubEmptyResponse} msg The message object to deserialize into.
4173
4016
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4174
- * @return {!proto.gateway.web.v1.GitHubWebhookRequest}
4017
+ * @return {!proto.gateway.web.v1.GitHubEmptyResponse}
4175
4018
  */
4176
- proto.gateway.web.v1.GitHubWebhookRequest.deserializeBinaryFromReader = function(msg, reader) {
4019
+ proto.gateway.web.v1.GitHubEmptyResponse.deserializeBinaryFromReader = function(msg, reader) {
4177
4020
  while (reader.nextField()) {
4178
4021
  if (reader.isEndGroup()) {
4179
4022
  break;
@@ -4181,20 +4024,9 @@ proto.gateway.web.v1.GitHubWebhookRequest.deserializeBinaryFromReader = function
4181
4024
  var field = reader.getFieldNumber();
4182
4025
  switch (field) {
4183
4026
  case 1:
4184
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
4185
- msg.setBody(value);
4186
- break;
4187
- case 2:
4188
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
4189
- msg.setSignature(value);
4190
- break;
4191
- case 3:
4192
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
4193
- msg.setDeliveryId(value);
4194
- break;
4195
- case 4:
4196
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
4197
- msg.setEvent(value);
4027
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
4028
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
4029
+ msg.setStatus(value);
4198
4030
  break;
4199
4031
  default:
4200
4032
  reader.skipField();
@@ -4209,9 +4041,9 @@ proto.gateway.web.v1.GitHubWebhookRequest.deserializeBinaryFromReader = function
4209
4041
  * Serializes the message to binary data (in protobuf wire format).
4210
4042
  * @return {!Uint8Array}
4211
4043
  */
4212
- proto.gateway.web.v1.GitHubWebhookRequest.prototype.serializeBinary = function() {
4044
+ proto.gateway.web.v1.GitHubEmptyResponse.prototype.serializeBinary = function() {
4213
4045
  var writer = new jspb.BinaryWriter();
4214
- proto.gateway.web.v1.GitHubWebhookRequest.serializeBinaryToWriter(this, writer);
4046
+ proto.gateway.web.v1.GitHubEmptyResponse.serializeBinaryToWriter(this, writer);
4215
4047
  return writer.getResultBuffer();
4216
4048
  };
4217
4049
 
@@ -4219,139 +4051,67 @@ proto.gateway.web.v1.GitHubWebhookRequest.prototype.serializeBinary = function()
4219
4051
  /**
4220
4052
  * Serializes the given message to binary data (in protobuf wire
4221
4053
  * format), writing to the given BinaryWriter.
4222
- * @param {!proto.gateway.web.v1.GitHubWebhookRequest} message
4054
+ * @param {!proto.gateway.web.v1.GitHubEmptyResponse} message
4223
4055
  * @param {!jspb.BinaryWriter} writer
4224
4056
  * @suppress {unusedLocalVariables} f is only used for nested messages
4225
4057
  */
4226
- proto.gateway.web.v1.GitHubWebhookRequest.serializeBinaryToWriter = function(message, writer) {
4058
+ proto.gateway.web.v1.GitHubEmptyResponse.serializeBinaryToWriter = function(message, writer) {
4227
4059
  var f = undefined;
4228
- f = message.getBody_asU8();
4229
- if (f.length > 0) {
4230
- writer.writeBytes(
4060
+ f = message.getStatus();
4061
+ if (f != null) {
4062
+ writer.writeMessage(
4231
4063
  1,
4232
- f
4233
- );
4234
- }
4235
- f = message.getSignature();
4236
- if (f.length > 0) {
4237
- writer.writeString(
4238
- 2,
4239
- f
4240
- );
4241
- }
4242
- f = message.getDeliveryId();
4243
- if (f.length > 0) {
4244
- writer.writeString(
4245
- 3,
4246
- f
4247
- );
4248
- }
4249
- f = message.getEvent();
4250
- if (f.length > 0) {
4251
- writer.writeString(
4252
- 4,
4253
- f
4064
+ f,
4065
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
4254
4066
  );
4255
4067
  }
4256
4068
  };
4257
4069
 
4258
4070
 
4259
4071
  /**
4260
- * optional bytes body = 1;
4261
- * @return {!(string|Uint8Array)}
4262
- */
4263
- proto.gateway.web.v1.GitHubWebhookRequest.prototype.getBody = function() {
4264
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4265
- };
4266
-
4267
-
4268
- /**
4269
- * optional bytes body = 1;
4270
- * This is a type-conversion wrapper around `getBody()`
4271
- * @return {string}
4272
- */
4273
- proto.gateway.web.v1.GitHubWebhookRequest.prototype.getBody_asB64 = function() {
4274
- return /** @type {string} */ (jspb.Message.bytesAsB64(
4275
- this.getBody()));
4276
- };
4277
-
4278
-
4279
- /**
4280
- * optional bytes body = 1;
4281
- * Note that Uint8Array is not supported on all browsers.
4282
- * @see http://caniuse.com/Uint8Array
4283
- * This is a type-conversion wrapper around `getBody()`
4284
- * @return {!Uint8Array}
4285
- */
4286
- proto.gateway.web.v1.GitHubWebhookRequest.prototype.getBody_asU8 = function() {
4287
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
4288
- this.getBody()));
4289
- };
4290
-
4291
-
4292
- /**
4293
- * @param {!(string|Uint8Array)} value
4294
- * @return {!proto.gateway.web.v1.GitHubWebhookRequest} returns this
4295
- */
4296
- proto.gateway.web.v1.GitHubWebhookRequest.prototype.setBody = function(value) {
4297
- return jspb.Message.setProto3BytesField(this, 1, value);
4298
- };
4299
-
4300
-
4301
- /**
4302
- * optional string signature = 2;
4303
- * @return {string}
4072
+ * optional gateway.common.v1.ResponseStatus status = 1;
4073
+ * @return {?proto.gateway.common.v1.ResponseStatus}
4304
4074
  */
4305
- proto.gateway.web.v1.GitHubWebhookRequest.prototype.getSignature = function() {
4306
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4075
+ proto.gateway.web.v1.GitHubEmptyResponse.prototype.getStatus = function() {
4076
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
4077
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
4307
4078
  };
4308
4079
 
4309
4080
 
4310
4081
  /**
4311
- * @param {string} value
4312
- * @return {!proto.gateway.web.v1.GitHubWebhookRequest} returns this
4313
- */
4314
- proto.gateway.web.v1.GitHubWebhookRequest.prototype.setSignature = function(value) {
4315
- return jspb.Message.setProto3StringField(this, 2, value);
4082
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
4083
+ * @return {!proto.gateway.web.v1.GitHubEmptyResponse} returns this
4084
+ */
4085
+ proto.gateway.web.v1.GitHubEmptyResponse.prototype.setStatus = function(value) {
4086
+ return jspb.Message.setWrapperField(this, 1, value);
4316
4087
  };
4317
4088
 
4318
4089
 
4319
4090
  /**
4320
- * optional string delivery_id = 3;
4321
- * @return {string}
4091
+ * Clears the message field making it undefined.
4092
+ * @return {!proto.gateway.web.v1.GitHubEmptyResponse} returns this
4322
4093
  */
4323
- proto.gateway.web.v1.GitHubWebhookRequest.prototype.getDeliveryId = function() {
4324
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4094
+ proto.gateway.web.v1.GitHubEmptyResponse.prototype.clearStatus = function() {
4095
+ return this.setStatus(undefined);
4325
4096
  };
4326
4097
 
4327
4098
 
4328
4099
  /**
4329
- * @param {string} value
4330
- * @return {!proto.gateway.web.v1.GitHubWebhookRequest} returns this
4100
+ * Returns whether this field is set.
4101
+ * @return {boolean}
4331
4102
  */
4332
- proto.gateway.web.v1.GitHubWebhookRequest.prototype.setDeliveryId = function(value) {
4333
- return jspb.Message.setProto3StringField(this, 3, value);
4103
+ proto.gateway.web.v1.GitHubEmptyResponse.prototype.hasStatus = function() {
4104
+ return jspb.Message.getField(this, 1) != null;
4334
4105
  };
4335
4106
 
4336
4107
 
4337
- /**
4338
- * optional string event = 4;
4339
- * @return {string}
4340
- */
4341
- proto.gateway.web.v1.GitHubWebhookRequest.prototype.getEvent = function() {
4342
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4343
- };
4344
-
4345
4108
 
4346
4109
  /**
4347
- * @param {string} value
4348
- * @return {!proto.gateway.web.v1.GitHubWebhookRequest} returns this
4110
+ * List of repeated fields within this message type.
4111
+ * @private {!Array<number>}
4112
+ * @const
4349
4113
  */
4350
- proto.gateway.web.v1.GitHubWebhookRequest.prototype.setEvent = function(value) {
4351
- return jspb.Message.setProto3StringField(this, 4, value);
4352
- };
4353
-
4354
-
4114
+ proto.gateway.web.v1.GitHubFilesRequest.repeatedFields_ = [3];
4355
4115
 
4356
4116
 
4357
4117
 
@@ -4368,8 +4128,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
4368
4128
  * http://goto/soy-param-migration
4369
4129
  * @return {!Object}
4370
4130
  */
4371
- proto.gateway.web.v1.GitHubEmptyResponse.prototype.toObject = function(opt_includeInstance) {
4372
- return proto.gateway.web.v1.GitHubEmptyResponse.toObject(opt_includeInstance, this);
4131
+ proto.gateway.web.v1.GitHubFilesRequest.prototype.toObject = function(opt_includeInstance) {
4132
+ return proto.gateway.web.v1.GitHubFilesRequest.toObject(opt_includeInstance, this);
4373
4133
  };
4374
4134
 
4375
4135
 
@@ -4378,13 +4138,16 @@ proto.gateway.web.v1.GitHubEmptyResponse.prototype.toObject = function(opt_inclu
4378
4138
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4379
4139
  * the JSPB instance for transitional soy proto support:
4380
4140
  * http://goto/soy-param-migration
4381
- * @param {!proto.gateway.web.v1.GitHubEmptyResponse} msg The msg instance to transform.
4141
+ * @param {!proto.gateway.web.v1.GitHubFilesRequest} msg The msg instance to transform.
4382
4142
  * @return {!Object}
4383
4143
  * @suppress {unusedLocalVariables} f is only used for nested messages
4384
4144
  */
4385
- proto.gateway.web.v1.GitHubEmptyResponse.toObject = function(includeInstance, msg) {
4145
+ proto.gateway.web.v1.GitHubFilesRequest.toObject = function(includeInstance, msg) {
4386
4146
  var f, obj = {
4387
- status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
4147
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4148
+ repositoryFullName: jspb.Message.getFieldWithDefault(msg, 2, ""),
4149
+ pathsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
4150
+ commitSha: jspb.Message.getFieldWithDefault(msg, 4, "")
4388
4151
  };
4389
4152
 
4390
4153
  if (includeInstance) {
@@ -4398,168 +4161,7 @@ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatu
4398
4161
  /**
4399
4162
  * Deserializes binary data (in protobuf wire format).
4400
4163
  * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4401
- * @return {!proto.gateway.web.v1.GitHubEmptyResponse}
4402
- */
4403
- proto.gateway.web.v1.GitHubEmptyResponse.deserializeBinary = function(bytes) {
4404
- var reader = new jspb.BinaryReader(bytes);
4405
- var msg = new proto.gateway.web.v1.GitHubEmptyResponse;
4406
- return proto.gateway.web.v1.GitHubEmptyResponse.deserializeBinaryFromReader(msg, reader);
4407
- };
4408
-
4409
-
4410
- /**
4411
- * Deserializes binary data (in protobuf wire format) from the
4412
- * given reader into the given message object.
4413
- * @param {!proto.gateway.web.v1.GitHubEmptyResponse} msg The message object to deserialize into.
4414
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4415
- * @return {!proto.gateway.web.v1.GitHubEmptyResponse}
4416
- */
4417
- proto.gateway.web.v1.GitHubEmptyResponse.deserializeBinaryFromReader = function(msg, reader) {
4418
- while (reader.nextField()) {
4419
- if (reader.isEndGroup()) {
4420
- break;
4421
- }
4422
- var field = reader.getFieldNumber();
4423
- switch (field) {
4424
- case 1:
4425
- var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
4426
- reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
4427
- msg.setStatus(value);
4428
- break;
4429
- default:
4430
- reader.skipField();
4431
- break;
4432
- }
4433
- }
4434
- return msg;
4435
- };
4436
-
4437
-
4438
- /**
4439
- * Serializes the message to binary data (in protobuf wire format).
4440
- * @return {!Uint8Array}
4441
- */
4442
- proto.gateway.web.v1.GitHubEmptyResponse.prototype.serializeBinary = function() {
4443
- var writer = new jspb.BinaryWriter();
4444
- proto.gateway.web.v1.GitHubEmptyResponse.serializeBinaryToWriter(this, writer);
4445
- return writer.getResultBuffer();
4446
- };
4447
-
4448
-
4449
- /**
4450
- * Serializes the given message to binary data (in protobuf wire
4451
- * format), writing to the given BinaryWriter.
4452
- * @param {!proto.gateway.web.v1.GitHubEmptyResponse} message
4453
- * @param {!jspb.BinaryWriter} writer
4454
- * @suppress {unusedLocalVariables} f is only used for nested messages
4455
- */
4456
- proto.gateway.web.v1.GitHubEmptyResponse.serializeBinaryToWriter = function(message, writer) {
4457
- var f = undefined;
4458
- f = message.getStatus();
4459
- if (f != null) {
4460
- writer.writeMessage(
4461
- 1,
4462
- f,
4463
- proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
4464
- );
4465
- }
4466
- };
4467
-
4468
-
4469
- /**
4470
- * optional gateway.common.v1.ResponseStatus status = 1;
4471
- * @return {?proto.gateway.common.v1.ResponseStatus}
4472
- */
4473
- proto.gateway.web.v1.GitHubEmptyResponse.prototype.getStatus = function() {
4474
- return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
4475
- jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
4476
- };
4477
-
4478
-
4479
- /**
4480
- * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
4481
- * @return {!proto.gateway.web.v1.GitHubEmptyResponse} returns this
4482
- */
4483
- proto.gateway.web.v1.GitHubEmptyResponse.prototype.setStatus = function(value) {
4484
- return jspb.Message.setWrapperField(this, 1, value);
4485
- };
4486
-
4487
-
4488
- /**
4489
- * Clears the message field making it undefined.
4490
- * @return {!proto.gateway.web.v1.GitHubEmptyResponse} returns this
4491
- */
4492
- proto.gateway.web.v1.GitHubEmptyResponse.prototype.clearStatus = function() {
4493
- return this.setStatus(undefined);
4494
- };
4495
-
4496
-
4497
- /**
4498
- * Returns whether this field is set.
4499
- * @return {boolean}
4500
- */
4501
- proto.gateway.web.v1.GitHubEmptyResponse.prototype.hasStatus = function() {
4502
- return jspb.Message.getField(this, 1) != null;
4503
- };
4504
-
4505
-
4506
-
4507
- /**
4508
- * List of repeated fields within this message type.
4509
- * @private {!Array<number>}
4510
- * @const
4511
- */
4512
- proto.gateway.web.v1.GitHubFilesRequest.repeatedFields_ = [3];
4513
-
4514
-
4515
-
4516
- if (jspb.Message.GENERATE_TO_OBJECT) {
4517
- /**
4518
- * Creates an object representation of this proto.
4519
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4520
- * Optional fields that are not set will be set to undefined.
4521
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4522
- * For the list of reserved names please see:
4523
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4524
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4525
- * JSPB instance for transitional soy proto support:
4526
- * http://goto/soy-param-migration
4527
- * @return {!Object}
4528
- */
4529
- proto.gateway.web.v1.GitHubFilesRequest.prototype.toObject = function(opt_includeInstance) {
4530
- return proto.gateway.web.v1.GitHubFilesRequest.toObject(opt_includeInstance, this);
4531
- };
4532
-
4533
-
4534
- /**
4535
- * Static version of the {@see toObject} method.
4536
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4537
- * the JSPB instance for transitional soy proto support:
4538
- * http://goto/soy-param-migration
4539
- * @param {!proto.gateway.web.v1.GitHubFilesRequest} msg The msg instance to transform.
4540
- * @return {!Object}
4541
- * @suppress {unusedLocalVariables} f is only used for nested messages
4542
- */
4543
- proto.gateway.web.v1.GitHubFilesRequest.toObject = function(includeInstance, msg) {
4544
- var f, obj = {
4545
- organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4546
- repositoryFullName: jspb.Message.getFieldWithDefault(msg, 2, ""),
4547
- pathsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
4548
- commitSha: jspb.Message.getFieldWithDefault(msg, 4, "")
4549
- };
4550
-
4551
- if (includeInstance) {
4552
- obj.$jspbMessageInstance = msg;
4553
- }
4554
- return obj;
4555
- };
4556
- }
4557
-
4558
-
4559
- /**
4560
- * Deserializes binary data (in protobuf wire format).
4561
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4562
- * @return {!proto.gateway.web.v1.GitHubFilesRequest}
4164
+ * @return {!proto.gateway.web.v1.GitHubFilesRequest}
4563
4165
  */
4564
4166
  proto.gateway.web.v1.GitHubFilesRequest.deserializeBinary = function(bytes) {
4565
4167
  var reader = new jspb.BinaryReader(bytes);
@@ -5282,1302 +4884,4 @@ proto.gateway.web.v1.GitHubFilesResponse.prototype.clearFilesList = function() {
5282
4884
  };
5283
4885
 
5284
4886
 
5285
-
5286
- /**
5287
- * List of repeated fields within this message type.
5288
- * @private {!Array<number>}
5289
- * @const
5290
- */
5291
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.repeatedFields_ = [3];
5292
-
5293
-
5294
-
5295
- if (jspb.Message.GENERATE_TO_OBJECT) {
5296
- /**
5297
- * Creates an object representation of this proto.
5298
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
5299
- * Optional fields that are not set will be set to undefined.
5300
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5301
- * For the list of reserved names please see:
5302
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5303
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5304
- * JSPB instance for transitional soy proto support:
5305
- * http://goto/soy-param-migration
5306
- * @return {!Object}
5307
- */
5308
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.toObject = function(opt_includeInstance) {
5309
- return proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.toObject(opt_includeInstance, this);
5310
- };
5311
-
5312
-
5313
- /**
5314
- * Static version of the {@see toObject} method.
5315
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5316
- * the JSPB instance for transitional soy proto support:
5317
- * http://goto/soy-param-migration
5318
- * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} msg The msg instance to transform.
5319
- * @return {!Object}
5320
- * @suppress {unusedLocalVariables} f is only used for nested messages
5321
- */
5322
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.toObject = function(includeInstance, msg) {
5323
- var f, obj = {
5324
- organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
5325
- projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
5326
- repositoriesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
5327
- };
5328
-
5329
- if (includeInstance) {
5330
- obj.$jspbMessageInstance = msg;
5331
- }
5332
- return obj;
5333
- };
5334
- }
5335
-
5336
-
5337
- /**
5338
- * Deserializes binary data (in protobuf wire format).
5339
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5340
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest}
5341
- */
5342
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.deserializeBinary = function(bytes) {
5343
- var reader = new jspb.BinaryReader(bytes);
5344
- var msg = new proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest;
5345
- return proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.deserializeBinaryFromReader(msg, reader);
5346
- };
5347
-
5348
-
5349
- /**
5350
- * Deserializes binary data (in protobuf wire format) from the
5351
- * given reader into the given message object.
5352
- * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} msg The message object to deserialize into.
5353
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5354
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest}
5355
- */
5356
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.deserializeBinaryFromReader = function(msg, reader) {
5357
- while (reader.nextField()) {
5358
- if (reader.isEndGroup()) {
5359
- break;
5360
- }
5361
- var field = reader.getFieldNumber();
5362
- switch (field) {
5363
- case 1:
5364
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5365
- msg.setOrganizationId(value);
5366
- break;
5367
- case 2:
5368
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5369
- msg.setProjectId(value);
5370
- break;
5371
- case 3:
5372
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5373
- msg.addRepositories(value);
5374
- break;
5375
- default:
5376
- reader.skipField();
5377
- break;
5378
- }
5379
- }
5380
- return msg;
5381
- };
5382
-
5383
-
5384
- /**
5385
- * Serializes the message to binary data (in protobuf wire format).
5386
- * @return {!Uint8Array}
5387
- */
5388
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.serializeBinary = function() {
5389
- var writer = new jspb.BinaryWriter();
5390
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.serializeBinaryToWriter(this, writer);
5391
- return writer.getResultBuffer();
5392
- };
5393
-
5394
-
5395
- /**
5396
- * Serializes the given message to binary data (in protobuf wire
5397
- * format), writing to the given BinaryWriter.
5398
- * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} message
5399
- * @param {!jspb.BinaryWriter} writer
5400
- * @suppress {unusedLocalVariables} f is only used for nested messages
5401
- */
5402
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.serializeBinaryToWriter = function(message, writer) {
5403
- var f = undefined;
5404
- f = message.getOrganizationId();
5405
- if (f.length > 0) {
5406
- writer.writeString(
5407
- 1,
5408
- f
5409
- );
5410
- }
5411
- f = message.getProjectId();
5412
- if (f.length > 0) {
5413
- writer.writeString(
5414
- 2,
5415
- f
5416
- );
5417
- }
5418
- f = message.getRepositoriesList();
5419
- if (f.length > 0) {
5420
- writer.writeRepeatedString(
5421
- 3,
5422
- f
5423
- );
5424
- }
5425
- };
5426
-
5427
-
5428
- /**
5429
- * optional string organization_id = 1;
5430
- * @return {string}
5431
- */
5432
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.getOrganizationId = function() {
5433
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5434
- };
5435
-
5436
-
5437
- /**
5438
- * @param {string} value
5439
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5440
- */
5441
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.setOrganizationId = function(value) {
5442
- return jspb.Message.setProto3StringField(this, 1, value);
5443
- };
5444
-
5445
-
5446
- /**
5447
- * optional string project_id = 2;
5448
- * @return {string}
5449
- */
5450
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.getProjectId = function() {
5451
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5452
- };
5453
-
5454
-
5455
- /**
5456
- * @param {string} value
5457
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5458
- */
5459
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.setProjectId = function(value) {
5460
- return jspb.Message.setProto3StringField(this, 2, value);
5461
- };
5462
-
5463
-
5464
- /**
5465
- * repeated string repositories = 3;
5466
- * @return {!Array<string>}
5467
- */
5468
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.getRepositoriesList = function() {
5469
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
5470
- };
5471
-
5472
-
5473
- /**
5474
- * @param {!Array<string>} value
5475
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5476
- */
5477
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.setRepositoriesList = function(value) {
5478
- return jspb.Message.setField(this, 3, value || []);
5479
- };
5480
-
5481
-
5482
- /**
5483
- * @param {string} value
5484
- * @param {number=} opt_index
5485
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5486
- */
5487
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.addRepositories = function(value, opt_index) {
5488
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
5489
- };
5490
-
5491
-
5492
- /**
5493
- * Clears the list making it empty but non-null.
5494
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5495
- */
5496
- proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.clearRepositoriesList = function() {
5497
- return this.setRepositoriesList([]);
5498
- };
5499
-
5500
-
5501
-
5502
-
5503
-
5504
- if (jspb.Message.GENERATE_TO_OBJECT) {
5505
- /**
5506
- * Creates an object representation of this proto.
5507
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
5508
- * Optional fields that are not set will be set to undefined.
5509
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5510
- * For the list of reserved names please see:
5511
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5512
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5513
- * JSPB instance for transitional soy proto support:
5514
- * http://goto/soy-param-migration
5515
- * @return {!Object}
5516
- */
5517
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.toObject = function(opt_includeInstance) {
5518
- return proto.gateway.web.v1.InstallTermaPullRequestResult.toObject(opt_includeInstance, this);
5519
- };
5520
-
5521
-
5522
- /**
5523
- * Static version of the {@see toObject} method.
5524
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5525
- * the JSPB instance for transitional soy proto support:
5526
- * http://goto/soy-param-migration
5527
- * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult} msg The msg instance to transform.
5528
- * @return {!Object}
5529
- * @suppress {unusedLocalVariables} f is only used for nested messages
5530
- */
5531
- proto.gateway.web.v1.InstallTermaPullRequestResult.toObject = function(includeInstance, msg) {
5532
- var f, obj = {
5533
- repository: jspb.Message.getFieldWithDefault(msg, 1, ""),
5534
- number: jspb.Message.getFieldWithDefault(msg, 2, 0),
5535
- url: jspb.Message.getFieldWithDefault(msg, 3, ""),
5536
- errorMessage: jspb.Message.getFieldWithDefault(msg, 4, ""),
5537
- alreadyInstalled: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
5538
- };
5539
-
5540
- if (includeInstance) {
5541
- obj.$jspbMessageInstance = msg;
5542
- }
5543
- return obj;
5544
- };
5545
- }
5546
-
5547
-
5548
- /**
5549
- * Deserializes binary data (in protobuf wire format).
5550
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5551
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult}
5552
- */
5553
- proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinary = function(bytes) {
5554
- var reader = new jspb.BinaryReader(bytes);
5555
- var msg = new proto.gateway.web.v1.InstallTermaPullRequestResult;
5556
- return proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinaryFromReader(msg, reader);
5557
- };
5558
-
5559
-
5560
- /**
5561
- * Deserializes binary data (in protobuf wire format) from the
5562
- * given reader into the given message object.
5563
- * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult} msg The message object to deserialize into.
5564
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5565
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult}
5566
- */
5567
- proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinaryFromReader = function(msg, reader) {
5568
- while (reader.nextField()) {
5569
- if (reader.isEndGroup()) {
5570
- break;
5571
- }
5572
- var field = reader.getFieldNumber();
5573
- switch (field) {
5574
- case 1:
5575
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5576
- msg.setRepository(value);
5577
- break;
5578
- case 2:
5579
- var value = /** @type {number} */ (reader.readInt64());
5580
- msg.setNumber(value);
5581
- break;
5582
- case 3:
5583
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5584
- msg.setUrl(value);
5585
- break;
5586
- case 4:
5587
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
5588
- msg.setErrorMessage(value);
5589
- break;
5590
- case 5:
5591
- var value = /** @type {boolean} */ (reader.readBool());
5592
- msg.setAlreadyInstalled(value);
5593
- break;
5594
- default:
5595
- reader.skipField();
5596
- break;
5597
- }
5598
- }
5599
- return msg;
5600
- };
5601
-
5602
-
5603
- /**
5604
- * Serializes the message to binary data (in protobuf wire format).
5605
- * @return {!Uint8Array}
5606
- */
5607
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.serializeBinary = function() {
5608
- var writer = new jspb.BinaryWriter();
5609
- proto.gateway.web.v1.InstallTermaPullRequestResult.serializeBinaryToWriter(this, writer);
5610
- return writer.getResultBuffer();
5611
- };
5612
-
5613
-
5614
- /**
5615
- * Serializes the given message to binary data (in protobuf wire
5616
- * format), writing to the given BinaryWriter.
5617
- * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult} message
5618
- * @param {!jspb.BinaryWriter} writer
5619
- * @suppress {unusedLocalVariables} f is only used for nested messages
5620
- */
5621
- proto.gateway.web.v1.InstallTermaPullRequestResult.serializeBinaryToWriter = function(message, writer) {
5622
- var f = undefined;
5623
- f = message.getRepository();
5624
- if (f.length > 0) {
5625
- writer.writeString(
5626
- 1,
5627
- f
5628
- );
5629
- }
5630
- f = message.getNumber();
5631
- if (f !== 0) {
5632
- writer.writeInt64(
5633
- 2,
5634
- f
5635
- );
5636
- }
5637
- f = message.getUrl();
5638
- if (f.length > 0) {
5639
- writer.writeString(
5640
- 3,
5641
- f
5642
- );
5643
- }
5644
- f = message.getErrorMessage();
5645
- if (f.length > 0) {
5646
- writer.writeString(
5647
- 4,
5648
- f
5649
- );
5650
- }
5651
- f = message.getAlreadyInstalled();
5652
- if (f) {
5653
- writer.writeBool(
5654
- 5,
5655
- f
5656
- );
5657
- }
5658
- };
5659
-
5660
-
5661
- /**
5662
- * optional string repository = 1;
5663
- * @return {string}
5664
- */
5665
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getRepository = function() {
5666
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5667
- };
5668
-
5669
-
5670
- /**
5671
- * @param {string} value
5672
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5673
- */
5674
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setRepository = function(value) {
5675
- return jspb.Message.setProto3StringField(this, 1, value);
5676
- };
5677
-
5678
-
5679
- /**
5680
- * optional int64 number = 2;
5681
- * @return {number}
5682
- */
5683
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getNumber = function() {
5684
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5685
- };
5686
-
5687
-
5688
- /**
5689
- * @param {number} value
5690
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5691
- */
5692
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setNumber = function(value) {
5693
- return jspb.Message.setProto3IntField(this, 2, value);
5694
- };
5695
-
5696
-
5697
- /**
5698
- * optional string url = 3;
5699
- * @return {string}
5700
- */
5701
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getUrl = function() {
5702
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5703
- };
5704
-
5705
-
5706
- /**
5707
- * @param {string} value
5708
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5709
- */
5710
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setUrl = function(value) {
5711
- return jspb.Message.setProto3StringField(this, 3, value);
5712
- };
5713
-
5714
-
5715
- /**
5716
- * optional string error_message = 4;
5717
- * @return {string}
5718
- */
5719
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getErrorMessage = function() {
5720
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5721
- };
5722
-
5723
-
5724
- /**
5725
- * @param {string} value
5726
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5727
- */
5728
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setErrorMessage = function(value) {
5729
- return jspb.Message.setProto3StringField(this, 4, value);
5730
- };
5731
-
5732
-
5733
- /**
5734
- * optional bool already_installed = 5;
5735
- * @return {boolean}
5736
- */
5737
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getAlreadyInstalled = function() {
5738
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
5739
- };
5740
-
5741
-
5742
- /**
5743
- * @param {boolean} value
5744
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5745
- */
5746
- proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setAlreadyInstalled = function(value) {
5747
- return jspb.Message.setProto3BooleanField(this, 5, value);
5748
- };
5749
-
5750
-
5751
-
5752
- /**
5753
- * List of repeated fields within this message type.
5754
- * @private {!Array<number>}
5755
- * @const
5756
- */
5757
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.repeatedFields_ = [2];
5758
-
5759
-
5760
-
5761
- if (jspb.Message.GENERATE_TO_OBJECT) {
5762
- /**
5763
- * Creates an object representation of this proto.
5764
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
5765
- * Optional fields that are not set will be set to undefined.
5766
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5767
- * For the list of reserved names please see:
5768
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5769
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5770
- * JSPB instance for transitional soy proto support:
5771
- * http://goto/soy-param-migration
5772
- * @return {!Object}
5773
- */
5774
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.toObject = function(opt_includeInstance) {
5775
- return proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.toObject(opt_includeInstance, this);
5776
- };
5777
-
5778
-
5779
- /**
5780
- * Static version of the {@see toObject} method.
5781
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5782
- * the JSPB instance for transitional soy proto support:
5783
- * http://goto/soy-param-migration
5784
- * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} msg The msg instance to transform.
5785
- * @return {!Object}
5786
- * @suppress {unusedLocalVariables} f is only used for nested messages
5787
- */
5788
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.toObject = function(includeInstance, msg) {
5789
- var f, obj = {
5790
- status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
5791
- resultsList: jspb.Message.toObjectList(msg.getResultsList(),
5792
- proto.gateway.web.v1.InstallTermaPullRequestResult.toObject, includeInstance)
5793
- };
5794
-
5795
- if (includeInstance) {
5796
- obj.$jspbMessageInstance = msg;
5797
- }
5798
- return obj;
5799
- };
5800
- }
5801
-
5802
-
5803
- /**
5804
- * Deserializes binary data (in protobuf wire format).
5805
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5806
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse}
5807
- */
5808
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.deserializeBinary = function(bytes) {
5809
- var reader = new jspb.BinaryReader(bytes);
5810
- var msg = new proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse;
5811
- return proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.deserializeBinaryFromReader(msg, reader);
5812
- };
5813
-
5814
-
5815
- /**
5816
- * Deserializes binary data (in protobuf wire format) from the
5817
- * given reader into the given message object.
5818
- * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} msg The message object to deserialize into.
5819
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5820
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse}
5821
- */
5822
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.deserializeBinaryFromReader = function(msg, reader) {
5823
- while (reader.nextField()) {
5824
- if (reader.isEndGroup()) {
5825
- break;
5826
- }
5827
- var field = reader.getFieldNumber();
5828
- switch (field) {
5829
- case 1:
5830
- var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
5831
- reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
5832
- msg.setStatus(value);
5833
- break;
5834
- case 2:
5835
- var value = new proto.gateway.web.v1.InstallTermaPullRequestResult;
5836
- reader.readMessage(value,proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinaryFromReader);
5837
- msg.addResults(value);
5838
- break;
5839
- default:
5840
- reader.skipField();
5841
- break;
5842
- }
5843
- }
5844
- return msg;
5845
- };
5846
-
5847
-
5848
- /**
5849
- * Serializes the message to binary data (in protobuf wire format).
5850
- * @return {!Uint8Array}
5851
- */
5852
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.serializeBinary = function() {
5853
- var writer = new jspb.BinaryWriter();
5854
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.serializeBinaryToWriter(this, writer);
5855
- return writer.getResultBuffer();
5856
- };
5857
-
5858
-
5859
- /**
5860
- * Serializes the given message to binary data (in protobuf wire
5861
- * format), writing to the given BinaryWriter.
5862
- * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} message
5863
- * @param {!jspb.BinaryWriter} writer
5864
- * @suppress {unusedLocalVariables} f is only used for nested messages
5865
- */
5866
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.serializeBinaryToWriter = function(message, writer) {
5867
- var f = undefined;
5868
- f = message.getStatus();
5869
- if (f != null) {
5870
- writer.writeMessage(
5871
- 1,
5872
- f,
5873
- proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
5874
- );
5875
- }
5876
- f = message.getResultsList();
5877
- if (f.length > 0) {
5878
- writer.writeRepeatedMessage(
5879
- 2,
5880
- f,
5881
- proto.gateway.web.v1.InstallTermaPullRequestResult.serializeBinaryToWriter
5882
- );
5883
- }
5884
- };
5885
-
5886
-
5887
- /**
5888
- * optional gateway.common.v1.ResponseStatus status = 1;
5889
- * @return {?proto.gateway.common.v1.ResponseStatus}
5890
- */
5891
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.getStatus = function() {
5892
- return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
5893
- jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
5894
- };
5895
-
5896
-
5897
- /**
5898
- * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
5899
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5900
- */
5901
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.setStatus = function(value) {
5902
- return jspb.Message.setWrapperField(this, 1, value);
5903
- };
5904
-
5905
-
5906
- /**
5907
- * Clears the message field making it undefined.
5908
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5909
- */
5910
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.clearStatus = function() {
5911
- return this.setStatus(undefined);
5912
- };
5913
-
5914
-
5915
- /**
5916
- * Returns whether this field is set.
5917
- * @return {boolean}
5918
- */
5919
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.hasStatus = function() {
5920
- return jspb.Message.getField(this, 1) != null;
5921
- };
5922
-
5923
-
5924
- /**
5925
- * repeated InstallTermaPullRequestResult results = 2;
5926
- * @return {!Array<!proto.gateway.web.v1.InstallTermaPullRequestResult>}
5927
- */
5928
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.getResultsList = function() {
5929
- return /** @type{!Array<!proto.gateway.web.v1.InstallTermaPullRequestResult>} */ (
5930
- jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.InstallTermaPullRequestResult, 2));
5931
- };
5932
-
5933
-
5934
- /**
5935
- * @param {!Array<!proto.gateway.web.v1.InstallTermaPullRequestResult>} value
5936
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5937
- */
5938
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.setResultsList = function(value) {
5939
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
5940
- };
5941
-
5942
-
5943
- /**
5944
- * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult=} opt_value
5945
- * @param {number=} opt_index
5946
- * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult}
5947
- */
5948
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.addResults = function(opt_value, opt_index) {
5949
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.InstallTermaPullRequestResult, opt_index);
5950
- };
5951
-
5952
-
5953
- /**
5954
- * Clears the list making it empty but non-null.
5955
- * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5956
- */
5957
- proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.clearResultsList = function() {
5958
- return this.setResultsList([]);
5959
- };
5960
-
5961
-
5962
-
5963
-
5964
-
5965
- if (jspb.Message.GENERATE_TO_OBJECT) {
5966
- /**
5967
- * Creates an object representation of this proto.
5968
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
5969
- * Optional fields that are not set will be set to undefined.
5970
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5971
- * For the list of reserved names please see:
5972
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5973
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5974
- * JSPB instance for transitional soy proto support:
5975
- * http://goto/soy-param-migration
5976
- * @return {!Object}
5977
- */
5978
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.toObject = function(opt_includeInstance) {
5979
- return proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.toObject(opt_includeInstance, this);
5980
- };
5981
-
5982
-
5983
- /**
5984
- * Static version of the {@see toObject} method.
5985
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5986
- * the JSPB instance for transitional soy proto support:
5987
- * http://goto/soy-param-migration
5988
- * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} msg The msg instance to transform.
5989
- * @return {!Object}
5990
- * @suppress {unusedLocalVariables} f is only used for nested messages
5991
- */
5992
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.toObject = function(includeInstance, msg) {
5993
- var f, obj = {
5994
- organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
5995
- projectId: jspb.Message.getFieldWithDefault(msg, 2, "")
5996
- };
5997
-
5998
- if (includeInstance) {
5999
- obj.$jspbMessageInstance = msg;
6000
- }
6001
- return obj;
6002
- };
6003
- }
6004
-
6005
-
6006
- /**
6007
- * Deserializes binary data (in protobuf wire format).
6008
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
6009
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest}
6010
- */
6011
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.deserializeBinary = function(bytes) {
6012
- var reader = new jspb.BinaryReader(bytes);
6013
- var msg = new proto.gateway.web.v1.ListInstallTermaPullRequestsRequest;
6014
- return proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.deserializeBinaryFromReader(msg, reader);
6015
- };
6016
-
6017
-
6018
- /**
6019
- * Deserializes binary data (in protobuf wire format) from the
6020
- * given reader into the given message object.
6021
- * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} msg The message object to deserialize into.
6022
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6023
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest}
6024
- */
6025
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.deserializeBinaryFromReader = function(msg, reader) {
6026
- while (reader.nextField()) {
6027
- if (reader.isEndGroup()) {
6028
- break;
6029
- }
6030
- var field = reader.getFieldNumber();
6031
- switch (field) {
6032
- case 1:
6033
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
6034
- msg.setOrganizationId(value);
6035
- break;
6036
- case 2:
6037
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
6038
- msg.setProjectId(value);
6039
- break;
6040
- default:
6041
- reader.skipField();
6042
- break;
6043
- }
6044
- }
6045
- return msg;
6046
- };
6047
-
6048
-
6049
- /**
6050
- * Serializes the message to binary data (in protobuf wire format).
6051
- * @return {!Uint8Array}
6052
- */
6053
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.serializeBinary = function() {
6054
- var writer = new jspb.BinaryWriter();
6055
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.serializeBinaryToWriter(this, writer);
6056
- return writer.getResultBuffer();
6057
- };
6058
-
6059
-
6060
- /**
6061
- * Serializes the given message to binary data (in protobuf wire
6062
- * format), writing to the given BinaryWriter.
6063
- * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} message
6064
- * @param {!jspb.BinaryWriter} writer
6065
- * @suppress {unusedLocalVariables} f is only used for nested messages
6066
- */
6067
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.serializeBinaryToWriter = function(message, writer) {
6068
- var f = undefined;
6069
- f = message.getOrganizationId();
6070
- if (f.length > 0) {
6071
- writer.writeString(
6072
- 1,
6073
- f
6074
- );
6075
- }
6076
- f = message.getProjectId();
6077
- if (f.length > 0) {
6078
- writer.writeString(
6079
- 2,
6080
- f
6081
- );
6082
- }
6083
- };
6084
-
6085
-
6086
- /**
6087
- * optional string organization_id = 1;
6088
- * @return {string}
6089
- */
6090
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.getOrganizationId = function() {
6091
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6092
- };
6093
-
6094
-
6095
- /**
6096
- * @param {string} value
6097
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} returns this
6098
- */
6099
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.setOrganizationId = function(value) {
6100
- return jspb.Message.setProto3StringField(this, 1, value);
6101
- };
6102
-
6103
-
6104
- /**
6105
- * optional string project_id = 2;
6106
- * @return {string}
6107
- */
6108
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.getProjectId = function() {
6109
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6110
- };
6111
-
6112
-
6113
- /**
6114
- * @param {string} value
6115
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} returns this
6116
- */
6117
- proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.setProjectId = function(value) {
6118
- return jspb.Message.setProto3StringField(this, 2, value);
6119
- };
6120
-
6121
-
6122
-
6123
-
6124
-
6125
- if (jspb.Message.GENERATE_TO_OBJECT) {
6126
- /**
6127
- * Creates an object representation of this proto.
6128
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
6129
- * Optional fields that are not set will be set to undefined.
6130
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6131
- * For the list of reserved names please see:
6132
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6133
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6134
- * JSPB instance for transitional soy proto support:
6135
- * http://goto/soy-param-migration
6136
- * @return {!Object}
6137
- */
6138
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.toObject = function(opt_includeInstance) {
6139
- return proto.gateway.web.v1.InstallTermaPullRequest.toObject(opt_includeInstance, this);
6140
- };
6141
-
6142
-
6143
- /**
6144
- * Static version of the {@see toObject} method.
6145
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6146
- * the JSPB instance for transitional soy proto support:
6147
- * http://goto/soy-param-migration
6148
- * @param {!proto.gateway.web.v1.InstallTermaPullRequest} msg The msg instance to transform.
6149
- * @return {!Object}
6150
- * @suppress {unusedLocalVariables} f is only used for nested messages
6151
- */
6152
- proto.gateway.web.v1.InstallTermaPullRequest.toObject = function(includeInstance, msg) {
6153
- var f, obj = {
6154
- repository: jspb.Message.getFieldWithDefault(msg, 1, ""),
6155
- number: jspb.Message.getFieldWithDefault(msg, 2, 0),
6156
- url: jspb.Message.getFieldWithDefault(msg, 3, ""),
6157
- state: jspb.Message.getFieldWithDefault(msg, 4, ""),
6158
- updatedAt: jspb.Message.getFieldWithDefault(msg, 5, "")
6159
- };
6160
-
6161
- if (includeInstance) {
6162
- obj.$jspbMessageInstance = msg;
6163
- }
6164
- return obj;
6165
- };
6166
- }
6167
-
6168
-
6169
- /**
6170
- * Deserializes binary data (in protobuf wire format).
6171
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
6172
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest}
6173
- */
6174
- proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinary = function(bytes) {
6175
- var reader = new jspb.BinaryReader(bytes);
6176
- var msg = new proto.gateway.web.v1.InstallTermaPullRequest;
6177
- return proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinaryFromReader(msg, reader);
6178
- };
6179
-
6180
-
6181
- /**
6182
- * Deserializes binary data (in protobuf wire format) from the
6183
- * given reader into the given message object.
6184
- * @param {!proto.gateway.web.v1.InstallTermaPullRequest} msg The message object to deserialize into.
6185
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6186
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest}
6187
- */
6188
- proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinaryFromReader = function(msg, reader) {
6189
- while (reader.nextField()) {
6190
- if (reader.isEndGroup()) {
6191
- break;
6192
- }
6193
- var field = reader.getFieldNumber();
6194
- switch (field) {
6195
- case 1:
6196
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
6197
- msg.setRepository(value);
6198
- break;
6199
- case 2:
6200
- var value = /** @type {number} */ (reader.readInt64());
6201
- msg.setNumber(value);
6202
- break;
6203
- case 3:
6204
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
6205
- msg.setUrl(value);
6206
- break;
6207
- case 4:
6208
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
6209
- msg.setState(value);
6210
- break;
6211
- case 5:
6212
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
6213
- msg.setUpdatedAt(value);
6214
- break;
6215
- default:
6216
- reader.skipField();
6217
- break;
6218
- }
6219
- }
6220
- return msg;
6221
- };
6222
-
6223
-
6224
- /**
6225
- * Serializes the message to binary data (in protobuf wire format).
6226
- * @return {!Uint8Array}
6227
- */
6228
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.serializeBinary = function() {
6229
- var writer = new jspb.BinaryWriter();
6230
- proto.gateway.web.v1.InstallTermaPullRequest.serializeBinaryToWriter(this, writer);
6231
- return writer.getResultBuffer();
6232
- };
6233
-
6234
-
6235
- /**
6236
- * Serializes the given message to binary data (in protobuf wire
6237
- * format), writing to the given BinaryWriter.
6238
- * @param {!proto.gateway.web.v1.InstallTermaPullRequest} message
6239
- * @param {!jspb.BinaryWriter} writer
6240
- * @suppress {unusedLocalVariables} f is only used for nested messages
6241
- */
6242
- proto.gateway.web.v1.InstallTermaPullRequest.serializeBinaryToWriter = function(message, writer) {
6243
- var f = undefined;
6244
- f = message.getRepository();
6245
- if (f.length > 0) {
6246
- writer.writeString(
6247
- 1,
6248
- f
6249
- );
6250
- }
6251
- f = message.getNumber();
6252
- if (f !== 0) {
6253
- writer.writeInt64(
6254
- 2,
6255
- f
6256
- );
6257
- }
6258
- f = message.getUrl();
6259
- if (f.length > 0) {
6260
- writer.writeString(
6261
- 3,
6262
- f
6263
- );
6264
- }
6265
- f = message.getState();
6266
- if (f.length > 0) {
6267
- writer.writeString(
6268
- 4,
6269
- f
6270
- );
6271
- }
6272
- f = message.getUpdatedAt();
6273
- if (f.length > 0) {
6274
- writer.writeString(
6275
- 5,
6276
- f
6277
- );
6278
- }
6279
- };
6280
-
6281
-
6282
- /**
6283
- * optional string repository = 1;
6284
- * @return {string}
6285
- */
6286
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.getRepository = function() {
6287
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6288
- };
6289
-
6290
-
6291
- /**
6292
- * @param {string} value
6293
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
6294
- */
6295
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.setRepository = function(value) {
6296
- return jspb.Message.setProto3StringField(this, 1, value);
6297
- };
6298
-
6299
-
6300
- /**
6301
- * optional int64 number = 2;
6302
- * @return {number}
6303
- */
6304
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.getNumber = function() {
6305
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
6306
- };
6307
-
6308
-
6309
- /**
6310
- * @param {number} value
6311
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
6312
- */
6313
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.setNumber = function(value) {
6314
- return jspb.Message.setProto3IntField(this, 2, value);
6315
- };
6316
-
6317
-
6318
- /**
6319
- * optional string url = 3;
6320
- * @return {string}
6321
- */
6322
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.getUrl = function() {
6323
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6324
- };
6325
-
6326
-
6327
- /**
6328
- * @param {string} value
6329
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
6330
- */
6331
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.setUrl = function(value) {
6332
- return jspb.Message.setProto3StringField(this, 3, value);
6333
- };
6334
-
6335
-
6336
- /**
6337
- * optional string state = 4;
6338
- * @return {string}
6339
- */
6340
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.getState = function() {
6341
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
6342
- };
6343
-
6344
-
6345
- /**
6346
- * @param {string} value
6347
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
6348
- */
6349
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.setState = function(value) {
6350
- return jspb.Message.setProto3StringField(this, 4, value);
6351
- };
6352
-
6353
-
6354
- /**
6355
- * optional string updated_at = 5;
6356
- * @return {string}
6357
- */
6358
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.getUpdatedAt = function() {
6359
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
6360
- };
6361
-
6362
-
6363
- /**
6364
- * @param {string} value
6365
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
6366
- */
6367
- proto.gateway.web.v1.InstallTermaPullRequest.prototype.setUpdatedAt = function(value) {
6368
- return jspb.Message.setProto3StringField(this, 5, value);
6369
- };
6370
-
6371
-
6372
-
6373
- /**
6374
- * List of repeated fields within this message type.
6375
- * @private {!Array<number>}
6376
- * @const
6377
- */
6378
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.repeatedFields_ = [2];
6379
-
6380
-
6381
-
6382
- if (jspb.Message.GENERATE_TO_OBJECT) {
6383
- /**
6384
- * Creates an object representation of this proto.
6385
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
6386
- * Optional fields that are not set will be set to undefined.
6387
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6388
- * For the list of reserved names please see:
6389
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6390
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6391
- * JSPB instance for transitional soy proto support:
6392
- * http://goto/soy-param-migration
6393
- * @return {!Object}
6394
- */
6395
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.toObject = function(opt_includeInstance) {
6396
- return proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.toObject(opt_includeInstance, this);
6397
- };
6398
-
6399
-
6400
- /**
6401
- * Static version of the {@see toObject} method.
6402
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6403
- * the JSPB instance for transitional soy proto support:
6404
- * http://goto/soy-param-migration
6405
- * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} msg The msg instance to transform.
6406
- * @return {!Object}
6407
- * @suppress {unusedLocalVariables} f is only used for nested messages
6408
- */
6409
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.toObject = function(includeInstance, msg) {
6410
- var f, obj = {
6411
- status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
6412
- pullRequestsList: jspb.Message.toObjectList(msg.getPullRequestsList(),
6413
- proto.gateway.web.v1.InstallTermaPullRequest.toObject, includeInstance)
6414
- };
6415
-
6416
- if (includeInstance) {
6417
- obj.$jspbMessageInstance = msg;
6418
- }
6419
- return obj;
6420
- };
6421
- }
6422
-
6423
-
6424
- /**
6425
- * Deserializes binary data (in protobuf wire format).
6426
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
6427
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse}
6428
- */
6429
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.deserializeBinary = function(bytes) {
6430
- var reader = new jspb.BinaryReader(bytes);
6431
- var msg = new proto.gateway.web.v1.ListInstallTermaPullRequestsResponse;
6432
- return proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.deserializeBinaryFromReader(msg, reader);
6433
- };
6434
-
6435
-
6436
- /**
6437
- * Deserializes binary data (in protobuf wire format) from the
6438
- * given reader into the given message object.
6439
- * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} msg The message object to deserialize into.
6440
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6441
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse}
6442
- */
6443
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.deserializeBinaryFromReader = function(msg, reader) {
6444
- while (reader.nextField()) {
6445
- if (reader.isEndGroup()) {
6446
- break;
6447
- }
6448
- var field = reader.getFieldNumber();
6449
- switch (field) {
6450
- case 1:
6451
- var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
6452
- reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
6453
- msg.setStatus(value);
6454
- break;
6455
- case 2:
6456
- var value = new proto.gateway.web.v1.InstallTermaPullRequest;
6457
- reader.readMessage(value,proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinaryFromReader);
6458
- msg.addPullRequests(value);
6459
- break;
6460
- default:
6461
- reader.skipField();
6462
- break;
6463
- }
6464
- }
6465
- return msg;
6466
- };
6467
-
6468
-
6469
- /**
6470
- * Serializes the message to binary data (in protobuf wire format).
6471
- * @return {!Uint8Array}
6472
- */
6473
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.serializeBinary = function() {
6474
- var writer = new jspb.BinaryWriter();
6475
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.serializeBinaryToWriter(this, writer);
6476
- return writer.getResultBuffer();
6477
- };
6478
-
6479
-
6480
- /**
6481
- * Serializes the given message to binary data (in protobuf wire
6482
- * format), writing to the given BinaryWriter.
6483
- * @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} message
6484
- * @param {!jspb.BinaryWriter} writer
6485
- * @suppress {unusedLocalVariables} f is only used for nested messages
6486
- */
6487
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.serializeBinaryToWriter = function(message, writer) {
6488
- var f = undefined;
6489
- f = message.getStatus();
6490
- if (f != null) {
6491
- writer.writeMessage(
6492
- 1,
6493
- f,
6494
- proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
6495
- );
6496
- }
6497
- f = message.getPullRequestsList();
6498
- if (f.length > 0) {
6499
- writer.writeRepeatedMessage(
6500
- 2,
6501
- f,
6502
- proto.gateway.web.v1.InstallTermaPullRequest.serializeBinaryToWriter
6503
- );
6504
- }
6505
- };
6506
-
6507
-
6508
- /**
6509
- * optional gateway.common.v1.ResponseStatus status = 1;
6510
- * @return {?proto.gateway.common.v1.ResponseStatus}
6511
- */
6512
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.getStatus = function() {
6513
- return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
6514
- jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
6515
- };
6516
-
6517
-
6518
- /**
6519
- * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
6520
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
6521
- */
6522
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.setStatus = function(value) {
6523
- return jspb.Message.setWrapperField(this, 1, value);
6524
- };
6525
-
6526
-
6527
- /**
6528
- * Clears the message field making it undefined.
6529
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
6530
- */
6531
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.clearStatus = function() {
6532
- return this.setStatus(undefined);
6533
- };
6534
-
6535
-
6536
- /**
6537
- * Returns whether this field is set.
6538
- * @return {boolean}
6539
- */
6540
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.hasStatus = function() {
6541
- return jspb.Message.getField(this, 1) != null;
6542
- };
6543
-
6544
-
6545
- /**
6546
- * repeated InstallTermaPullRequest pull_requests = 2;
6547
- * @return {!Array<!proto.gateway.web.v1.InstallTermaPullRequest>}
6548
- */
6549
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.getPullRequestsList = function() {
6550
- return /** @type{!Array<!proto.gateway.web.v1.InstallTermaPullRequest>} */ (
6551
- jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.InstallTermaPullRequest, 2));
6552
- };
6553
-
6554
-
6555
- /**
6556
- * @param {!Array<!proto.gateway.web.v1.InstallTermaPullRequest>} value
6557
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
6558
- */
6559
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.setPullRequestsList = function(value) {
6560
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
6561
- };
6562
-
6563
-
6564
- /**
6565
- * @param {!proto.gateway.web.v1.InstallTermaPullRequest=} opt_value
6566
- * @param {number=} opt_index
6567
- * @return {!proto.gateway.web.v1.InstallTermaPullRequest}
6568
- */
6569
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.addPullRequests = function(opt_value, opt_index) {
6570
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.InstallTermaPullRequest, opt_index);
6571
- };
6572
-
6573
-
6574
- /**
6575
- * Clears the list making it empty but non-null.
6576
- * @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
6577
- */
6578
- proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.clearPullRequestsList = function() {
6579
- return this.setPullRequestsList([]);
6580
- };
6581
-
6582
-
6583
4887
  goog.object.extend(exports, proto.gateway.web.v1);