@miradorlabs/web-grpc 2.72.0 → 2.75.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.
@@ -22,6 +22,10 @@ goog.exportSymbol('proto.gateway.web.v1.GitHubCompleteRequest', null, global);
22
22
  goog.exportSymbol('proto.gateway.web.v1.GitHubConnection', null, global);
23
23
  goog.exportSymbol('proto.gateway.web.v1.GitHubDisconnectRequest', null, global);
24
24
  goog.exportSymbol('proto.gateway.web.v1.GitHubEmptyResponse', null, global);
25
+ goog.exportSymbol('proto.gateway.web.v1.GitHubFileResult', null, global);
26
+ goog.exportSymbol('proto.gateway.web.v1.GitHubFileResult.Code', null, global);
27
+ goog.exportSymbol('proto.gateway.web.v1.GitHubFilesRequest', null, global);
28
+ goog.exportSymbol('proto.gateway.web.v1.GitHubFilesResponse', null, global);
25
29
  goog.exportSymbol('proto.gateway.web.v1.GitHubInstallation', null, global);
26
30
  goog.exportSymbol('proto.gateway.web.v1.GitHubIssue', null, global);
27
31
  goog.exportSymbol('proto.gateway.web.v1.GitHubIssuesRequest', null, global);
@@ -391,6 +395,69 @@ if (goog.DEBUG && !COMPILED) {
391
395
  */
392
396
  proto.gateway.web.v1.GitHubEmptyResponse.displayName = 'proto.gateway.web.v1.GitHubEmptyResponse';
393
397
  }
398
+ /**
399
+ * Generated by JsPbCodeGenerator.
400
+ * @param {Array=} opt_data Optional initial data array, typically from a
401
+ * server response, or constructed directly in Javascript. The array is used
402
+ * in place and becomes part of the constructed object. It is not cloned.
403
+ * If no data is provided, the constructed object will be empty, but still
404
+ * valid.
405
+ * @extends {jspb.Message}
406
+ * @constructor
407
+ */
408
+ proto.gateway.web.v1.GitHubFilesRequest = function(opt_data) {
409
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.GitHubFilesRequest.repeatedFields_, null);
410
+ };
411
+ goog.inherits(proto.gateway.web.v1.GitHubFilesRequest, jspb.Message);
412
+ if (goog.DEBUG && !COMPILED) {
413
+ /**
414
+ * @public
415
+ * @override
416
+ */
417
+ proto.gateway.web.v1.GitHubFilesRequest.displayName = 'proto.gateway.web.v1.GitHubFilesRequest';
418
+ }
419
+ /**
420
+ * Generated by JsPbCodeGenerator.
421
+ * @param {Array=} opt_data Optional initial data array, typically from a
422
+ * server response, or constructed directly in Javascript. The array is used
423
+ * in place and becomes part of the constructed object. It is not cloned.
424
+ * If no data is provided, the constructed object will be empty, but still
425
+ * valid.
426
+ * @extends {jspb.Message}
427
+ * @constructor
428
+ */
429
+ proto.gateway.web.v1.GitHubFileResult = function(opt_data) {
430
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
431
+ };
432
+ goog.inherits(proto.gateway.web.v1.GitHubFileResult, jspb.Message);
433
+ if (goog.DEBUG && !COMPILED) {
434
+ /**
435
+ * @public
436
+ * @override
437
+ */
438
+ proto.gateway.web.v1.GitHubFileResult.displayName = 'proto.gateway.web.v1.GitHubFileResult';
439
+ }
440
+ /**
441
+ * Generated by JsPbCodeGenerator.
442
+ * @param {Array=} opt_data Optional initial data array, typically from a
443
+ * server response, or constructed directly in Javascript. The array is used
444
+ * in place and becomes part of the constructed object. It is not cloned.
445
+ * If no data is provided, the constructed object will be empty, but still
446
+ * valid.
447
+ * @extends {jspb.Message}
448
+ * @constructor
449
+ */
450
+ proto.gateway.web.v1.GitHubFilesResponse = function(opt_data) {
451
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.GitHubFilesResponse.repeatedFields_, null);
452
+ };
453
+ goog.inherits(proto.gateway.web.v1.GitHubFilesResponse, jspb.Message);
454
+ if (goog.DEBUG && !COMPILED) {
455
+ /**
456
+ * @public
457
+ * @override
458
+ */
459
+ proto.gateway.web.v1.GitHubFilesResponse.displayName = 'proto.gateway.web.v1.GitHubFilesResponse';
460
+ }
394
461
 
395
462
 
396
463
 
@@ -4302,4 +4369,783 @@ proto.gateway.web.v1.GitHubEmptyResponse.prototype.hasStatus = function() {
4302
4369
  };
4303
4370
 
4304
4371
 
4372
+
4373
+ /**
4374
+ * List of repeated fields within this message type.
4375
+ * @private {!Array<number>}
4376
+ * @const
4377
+ */
4378
+ proto.gateway.web.v1.GitHubFilesRequest.repeatedFields_ = [3];
4379
+
4380
+
4381
+
4382
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4383
+ /**
4384
+ * Creates an object representation of this proto.
4385
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4386
+ * Optional fields that are not set will be set to undefined.
4387
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4388
+ * For the list of reserved names please see:
4389
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4390
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4391
+ * JSPB instance for transitional soy proto support:
4392
+ * http://goto/soy-param-migration
4393
+ * @return {!Object}
4394
+ */
4395
+ proto.gateway.web.v1.GitHubFilesRequest.prototype.toObject = function(opt_includeInstance) {
4396
+ return proto.gateway.web.v1.GitHubFilesRequest.toObject(opt_includeInstance, this);
4397
+ };
4398
+
4399
+
4400
+ /**
4401
+ * Static version of the {@see toObject} method.
4402
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4403
+ * the JSPB instance for transitional soy proto support:
4404
+ * http://goto/soy-param-migration
4405
+ * @param {!proto.gateway.web.v1.GitHubFilesRequest} msg The msg instance to transform.
4406
+ * @return {!Object}
4407
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4408
+ */
4409
+ proto.gateway.web.v1.GitHubFilesRequest.toObject = function(includeInstance, msg) {
4410
+ var f, obj = {
4411
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4412
+ repositoryFullName: jspb.Message.getFieldWithDefault(msg, 2, ""),
4413
+ pathsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
4414
+ commitSha: jspb.Message.getFieldWithDefault(msg, 4, "")
4415
+ };
4416
+
4417
+ if (includeInstance) {
4418
+ obj.$jspbMessageInstance = msg;
4419
+ }
4420
+ return obj;
4421
+ };
4422
+ }
4423
+
4424
+
4425
+ /**
4426
+ * Deserializes binary data (in protobuf wire format).
4427
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4428
+ * @return {!proto.gateway.web.v1.GitHubFilesRequest}
4429
+ */
4430
+ proto.gateway.web.v1.GitHubFilesRequest.deserializeBinary = function(bytes) {
4431
+ var reader = new jspb.BinaryReader(bytes);
4432
+ var msg = new proto.gateway.web.v1.GitHubFilesRequest;
4433
+ return proto.gateway.web.v1.GitHubFilesRequest.deserializeBinaryFromReader(msg, reader);
4434
+ };
4435
+
4436
+
4437
+ /**
4438
+ * Deserializes binary data (in protobuf wire format) from the
4439
+ * given reader into the given message object.
4440
+ * @param {!proto.gateway.web.v1.GitHubFilesRequest} msg The message object to deserialize into.
4441
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4442
+ * @return {!proto.gateway.web.v1.GitHubFilesRequest}
4443
+ */
4444
+ proto.gateway.web.v1.GitHubFilesRequest.deserializeBinaryFromReader = function(msg, reader) {
4445
+ while (reader.nextField()) {
4446
+ if (reader.isEndGroup()) {
4447
+ break;
4448
+ }
4449
+ var field = reader.getFieldNumber();
4450
+ switch (field) {
4451
+ case 1:
4452
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4453
+ msg.setOrganizationId(value);
4454
+ break;
4455
+ case 2:
4456
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4457
+ msg.setRepositoryFullName(value);
4458
+ break;
4459
+ case 3:
4460
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4461
+ msg.addPaths(value);
4462
+ break;
4463
+ case 4:
4464
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4465
+ msg.setCommitSha(value);
4466
+ break;
4467
+ default:
4468
+ reader.skipField();
4469
+ break;
4470
+ }
4471
+ }
4472
+ return msg;
4473
+ };
4474
+
4475
+
4476
+ /**
4477
+ * Serializes the message to binary data (in protobuf wire format).
4478
+ * @return {!Uint8Array}
4479
+ */
4480
+ proto.gateway.web.v1.GitHubFilesRequest.prototype.serializeBinary = function() {
4481
+ var writer = new jspb.BinaryWriter();
4482
+ proto.gateway.web.v1.GitHubFilesRequest.serializeBinaryToWriter(this, writer);
4483
+ return writer.getResultBuffer();
4484
+ };
4485
+
4486
+
4487
+ /**
4488
+ * Serializes the given message to binary data (in protobuf wire
4489
+ * format), writing to the given BinaryWriter.
4490
+ * @param {!proto.gateway.web.v1.GitHubFilesRequest} message
4491
+ * @param {!jspb.BinaryWriter} writer
4492
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4493
+ */
4494
+ proto.gateway.web.v1.GitHubFilesRequest.serializeBinaryToWriter = function(message, writer) {
4495
+ var f = undefined;
4496
+ f = message.getOrganizationId();
4497
+ if (f.length > 0) {
4498
+ writer.writeString(
4499
+ 1,
4500
+ f
4501
+ );
4502
+ }
4503
+ f = message.getRepositoryFullName();
4504
+ if (f.length > 0) {
4505
+ writer.writeString(
4506
+ 2,
4507
+ f
4508
+ );
4509
+ }
4510
+ f = message.getPathsList();
4511
+ if (f.length > 0) {
4512
+ writer.writeRepeatedString(
4513
+ 3,
4514
+ f
4515
+ );
4516
+ }
4517
+ f = message.getCommitSha();
4518
+ if (f.length > 0) {
4519
+ writer.writeString(
4520
+ 4,
4521
+ f
4522
+ );
4523
+ }
4524
+ };
4525
+
4526
+
4527
+ /**
4528
+ * optional string organization_id = 1;
4529
+ * @return {string}
4530
+ */
4531
+ proto.gateway.web.v1.GitHubFilesRequest.prototype.getOrganizationId = function() {
4532
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4533
+ };
4534
+
4535
+
4536
+ /**
4537
+ * @param {string} value
4538
+ * @return {!proto.gateway.web.v1.GitHubFilesRequest} returns this
4539
+ */
4540
+ proto.gateway.web.v1.GitHubFilesRequest.prototype.setOrganizationId = function(value) {
4541
+ return jspb.Message.setProto3StringField(this, 1, value);
4542
+ };
4543
+
4544
+
4545
+ /**
4546
+ * optional string repository_full_name = 2;
4547
+ * @return {string}
4548
+ */
4549
+ proto.gateway.web.v1.GitHubFilesRequest.prototype.getRepositoryFullName = function() {
4550
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4551
+ };
4552
+
4553
+
4554
+ /**
4555
+ * @param {string} value
4556
+ * @return {!proto.gateway.web.v1.GitHubFilesRequest} returns this
4557
+ */
4558
+ proto.gateway.web.v1.GitHubFilesRequest.prototype.setRepositoryFullName = function(value) {
4559
+ return jspb.Message.setProto3StringField(this, 2, value);
4560
+ };
4561
+
4562
+
4563
+ /**
4564
+ * repeated string paths = 3;
4565
+ * @return {!Array<string>}
4566
+ */
4567
+ proto.gateway.web.v1.GitHubFilesRequest.prototype.getPathsList = function() {
4568
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
4569
+ };
4570
+
4571
+
4572
+ /**
4573
+ * @param {!Array<string>} value
4574
+ * @return {!proto.gateway.web.v1.GitHubFilesRequest} returns this
4575
+ */
4576
+ proto.gateway.web.v1.GitHubFilesRequest.prototype.setPathsList = function(value) {
4577
+ return jspb.Message.setField(this, 3, value || []);
4578
+ };
4579
+
4580
+
4581
+ /**
4582
+ * @param {string} value
4583
+ * @param {number=} opt_index
4584
+ * @return {!proto.gateway.web.v1.GitHubFilesRequest} returns this
4585
+ */
4586
+ proto.gateway.web.v1.GitHubFilesRequest.prototype.addPaths = function(value, opt_index) {
4587
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
4588
+ };
4589
+
4590
+
4591
+ /**
4592
+ * Clears the list making it empty but non-null.
4593
+ * @return {!proto.gateway.web.v1.GitHubFilesRequest} returns this
4594
+ */
4595
+ proto.gateway.web.v1.GitHubFilesRequest.prototype.clearPathsList = function() {
4596
+ return this.setPathsList([]);
4597
+ };
4598
+
4599
+
4600
+ /**
4601
+ * optional string commit_sha = 4;
4602
+ * @return {string}
4603
+ */
4604
+ proto.gateway.web.v1.GitHubFilesRequest.prototype.getCommitSha = function() {
4605
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4606
+ };
4607
+
4608
+
4609
+ /**
4610
+ * @param {string} value
4611
+ * @return {!proto.gateway.web.v1.GitHubFilesRequest} returns this
4612
+ */
4613
+ proto.gateway.web.v1.GitHubFilesRequest.prototype.setCommitSha = function(value) {
4614
+ return jspb.Message.setProto3StringField(this, 4, value);
4615
+ };
4616
+
4617
+
4618
+
4619
+
4620
+
4621
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4622
+ /**
4623
+ * Creates an object representation of this proto.
4624
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4625
+ * Optional fields that are not set will be set to undefined.
4626
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4627
+ * For the list of reserved names please see:
4628
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4629
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4630
+ * JSPB instance for transitional soy proto support:
4631
+ * http://goto/soy-param-migration
4632
+ * @return {!Object}
4633
+ */
4634
+ proto.gateway.web.v1.GitHubFileResult.prototype.toObject = function(opt_includeInstance) {
4635
+ return proto.gateway.web.v1.GitHubFileResult.toObject(opt_includeInstance, this);
4636
+ };
4637
+
4638
+
4639
+ /**
4640
+ * Static version of the {@see toObject} method.
4641
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4642
+ * the JSPB instance for transitional soy proto support:
4643
+ * http://goto/soy-param-migration
4644
+ * @param {!proto.gateway.web.v1.GitHubFileResult} msg The msg instance to transform.
4645
+ * @return {!Object}
4646
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4647
+ */
4648
+ proto.gateway.web.v1.GitHubFileResult.toObject = function(includeInstance, msg) {
4649
+ var f, obj = {
4650
+ path: jspb.Message.getFieldWithDefault(msg, 1, ""),
4651
+ code: jspb.Message.getFieldWithDefault(msg, 2, 0),
4652
+ errorMessage: jspb.Message.getFieldWithDefault(msg, 3, ""),
4653
+ blobSha: jspb.Message.getFieldWithDefault(msg, 4, ""),
4654
+ content: jspb.Message.getFieldWithDefault(msg, 5, "")
4655
+ };
4656
+
4657
+ if (includeInstance) {
4658
+ obj.$jspbMessageInstance = msg;
4659
+ }
4660
+ return obj;
4661
+ };
4662
+ }
4663
+
4664
+
4665
+ /**
4666
+ * Deserializes binary data (in protobuf wire format).
4667
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4668
+ * @return {!proto.gateway.web.v1.GitHubFileResult}
4669
+ */
4670
+ proto.gateway.web.v1.GitHubFileResult.deserializeBinary = function(bytes) {
4671
+ var reader = new jspb.BinaryReader(bytes);
4672
+ var msg = new proto.gateway.web.v1.GitHubFileResult;
4673
+ return proto.gateway.web.v1.GitHubFileResult.deserializeBinaryFromReader(msg, reader);
4674
+ };
4675
+
4676
+
4677
+ /**
4678
+ * Deserializes binary data (in protobuf wire format) from the
4679
+ * given reader into the given message object.
4680
+ * @param {!proto.gateway.web.v1.GitHubFileResult} msg The message object to deserialize into.
4681
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4682
+ * @return {!proto.gateway.web.v1.GitHubFileResult}
4683
+ */
4684
+ proto.gateway.web.v1.GitHubFileResult.deserializeBinaryFromReader = function(msg, reader) {
4685
+ while (reader.nextField()) {
4686
+ if (reader.isEndGroup()) {
4687
+ break;
4688
+ }
4689
+ var field = reader.getFieldNumber();
4690
+ switch (field) {
4691
+ case 1:
4692
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4693
+ msg.setPath(value);
4694
+ break;
4695
+ case 2:
4696
+ var value = /** @type {!proto.gateway.web.v1.GitHubFileResult.Code} */ (reader.readEnum());
4697
+ msg.setCode(value);
4698
+ break;
4699
+ case 3:
4700
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4701
+ msg.setErrorMessage(value);
4702
+ break;
4703
+ case 4:
4704
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4705
+ msg.setBlobSha(value);
4706
+ break;
4707
+ case 5:
4708
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4709
+ msg.setContent(value);
4710
+ break;
4711
+ default:
4712
+ reader.skipField();
4713
+ break;
4714
+ }
4715
+ }
4716
+ return msg;
4717
+ };
4718
+
4719
+
4720
+ /**
4721
+ * Serializes the message to binary data (in protobuf wire format).
4722
+ * @return {!Uint8Array}
4723
+ */
4724
+ proto.gateway.web.v1.GitHubFileResult.prototype.serializeBinary = function() {
4725
+ var writer = new jspb.BinaryWriter();
4726
+ proto.gateway.web.v1.GitHubFileResult.serializeBinaryToWriter(this, writer);
4727
+ return writer.getResultBuffer();
4728
+ };
4729
+
4730
+
4731
+ /**
4732
+ * Serializes the given message to binary data (in protobuf wire
4733
+ * format), writing to the given BinaryWriter.
4734
+ * @param {!proto.gateway.web.v1.GitHubFileResult} message
4735
+ * @param {!jspb.BinaryWriter} writer
4736
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4737
+ */
4738
+ proto.gateway.web.v1.GitHubFileResult.serializeBinaryToWriter = function(message, writer) {
4739
+ var f = undefined;
4740
+ f = message.getPath();
4741
+ if (f.length > 0) {
4742
+ writer.writeString(
4743
+ 1,
4744
+ f
4745
+ );
4746
+ }
4747
+ f = message.getCode();
4748
+ if (f !== 0.0) {
4749
+ writer.writeEnum(
4750
+ 2,
4751
+ f
4752
+ );
4753
+ }
4754
+ f = message.getErrorMessage();
4755
+ if (f.length > 0) {
4756
+ writer.writeString(
4757
+ 3,
4758
+ f
4759
+ );
4760
+ }
4761
+ f = message.getBlobSha();
4762
+ if (f.length > 0) {
4763
+ writer.writeString(
4764
+ 4,
4765
+ f
4766
+ );
4767
+ }
4768
+ f = message.getContent();
4769
+ if (f.length > 0) {
4770
+ writer.writeString(
4771
+ 5,
4772
+ f
4773
+ );
4774
+ }
4775
+ };
4776
+
4777
+
4778
+ /**
4779
+ * @enum {number}
4780
+ */
4781
+ proto.gateway.web.v1.GitHubFileResult.Code = {
4782
+ CODE_UNSPECIFIED: 0,
4783
+ CODE_OK: 1,
4784
+ CODE_NOT_FOUND: 2,
4785
+ CODE_UNSUPPORTED: 3,
4786
+ CODE_TOO_LARGE: 4,
4787
+ CODE_UNAVAILABLE: 5
4788
+ };
4789
+
4790
+ /**
4791
+ * optional string path = 1;
4792
+ * @return {string}
4793
+ */
4794
+ proto.gateway.web.v1.GitHubFileResult.prototype.getPath = function() {
4795
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4796
+ };
4797
+
4798
+
4799
+ /**
4800
+ * @param {string} value
4801
+ * @return {!proto.gateway.web.v1.GitHubFileResult} returns this
4802
+ */
4803
+ proto.gateway.web.v1.GitHubFileResult.prototype.setPath = function(value) {
4804
+ return jspb.Message.setProto3StringField(this, 1, value);
4805
+ };
4806
+
4807
+
4808
+ /**
4809
+ * optional Code code = 2;
4810
+ * @return {!proto.gateway.web.v1.GitHubFileResult.Code}
4811
+ */
4812
+ proto.gateway.web.v1.GitHubFileResult.prototype.getCode = function() {
4813
+ return /** @type {!proto.gateway.web.v1.GitHubFileResult.Code} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4814
+ };
4815
+
4816
+
4817
+ /**
4818
+ * @param {!proto.gateway.web.v1.GitHubFileResult.Code} value
4819
+ * @return {!proto.gateway.web.v1.GitHubFileResult} returns this
4820
+ */
4821
+ proto.gateway.web.v1.GitHubFileResult.prototype.setCode = function(value) {
4822
+ return jspb.Message.setProto3EnumField(this, 2, value);
4823
+ };
4824
+
4825
+
4826
+ /**
4827
+ * optional string error_message = 3;
4828
+ * @return {string}
4829
+ */
4830
+ proto.gateway.web.v1.GitHubFileResult.prototype.getErrorMessage = function() {
4831
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4832
+ };
4833
+
4834
+
4835
+ /**
4836
+ * @param {string} value
4837
+ * @return {!proto.gateway.web.v1.GitHubFileResult} returns this
4838
+ */
4839
+ proto.gateway.web.v1.GitHubFileResult.prototype.setErrorMessage = function(value) {
4840
+ return jspb.Message.setProto3StringField(this, 3, value);
4841
+ };
4842
+
4843
+
4844
+ /**
4845
+ * optional string blob_sha = 4;
4846
+ * @return {string}
4847
+ */
4848
+ proto.gateway.web.v1.GitHubFileResult.prototype.getBlobSha = function() {
4849
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4850
+ };
4851
+
4852
+
4853
+ /**
4854
+ * @param {string} value
4855
+ * @return {!proto.gateway.web.v1.GitHubFileResult} returns this
4856
+ */
4857
+ proto.gateway.web.v1.GitHubFileResult.prototype.setBlobSha = function(value) {
4858
+ return jspb.Message.setProto3StringField(this, 4, value);
4859
+ };
4860
+
4861
+
4862
+ /**
4863
+ * optional string content = 5;
4864
+ * @return {string}
4865
+ */
4866
+ proto.gateway.web.v1.GitHubFileResult.prototype.getContent = function() {
4867
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
4868
+ };
4869
+
4870
+
4871
+ /**
4872
+ * @param {string} value
4873
+ * @return {!proto.gateway.web.v1.GitHubFileResult} returns this
4874
+ */
4875
+ proto.gateway.web.v1.GitHubFileResult.prototype.setContent = function(value) {
4876
+ return jspb.Message.setProto3StringField(this, 5, value);
4877
+ };
4878
+
4879
+
4880
+
4881
+ /**
4882
+ * List of repeated fields within this message type.
4883
+ * @private {!Array<number>}
4884
+ * @const
4885
+ */
4886
+ proto.gateway.web.v1.GitHubFilesResponse.repeatedFields_ = [4];
4887
+
4888
+
4889
+
4890
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4891
+ /**
4892
+ * Creates an object representation of this proto.
4893
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4894
+ * Optional fields that are not set will be set to undefined.
4895
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4896
+ * For the list of reserved names please see:
4897
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4898
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4899
+ * JSPB instance for transitional soy proto support:
4900
+ * http://goto/soy-param-migration
4901
+ * @return {!Object}
4902
+ */
4903
+ proto.gateway.web.v1.GitHubFilesResponse.prototype.toObject = function(opt_includeInstance) {
4904
+ return proto.gateway.web.v1.GitHubFilesResponse.toObject(opt_includeInstance, this);
4905
+ };
4906
+
4907
+
4908
+ /**
4909
+ * Static version of the {@see toObject} method.
4910
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4911
+ * the JSPB instance for transitional soy proto support:
4912
+ * http://goto/soy-param-migration
4913
+ * @param {!proto.gateway.web.v1.GitHubFilesResponse} msg The msg instance to transform.
4914
+ * @return {!Object}
4915
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4916
+ */
4917
+ proto.gateway.web.v1.GitHubFilesResponse.toObject = function(includeInstance, msg) {
4918
+ var f, obj = {
4919
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
4920
+ repositoryFullName: jspb.Message.getFieldWithDefault(msg, 2, ""),
4921
+ commitSha: jspb.Message.getFieldWithDefault(msg, 3, ""),
4922
+ filesList: jspb.Message.toObjectList(msg.getFilesList(),
4923
+ proto.gateway.web.v1.GitHubFileResult.toObject, includeInstance)
4924
+ };
4925
+
4926
+ if (includeInstance) {
4927
+ obj.$jspbMessageInstance = msg;
4928
+ }
4929
+ return obj;
4930
+ };
4931
+ }
4932
+
4933
+
4934
+ /**
4935
+ * Deserializes binary data (in protobuf wire format).
4936
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4937
+ * @return {!proto.gateway.web.v1.GitHubFilesResponse}
4938
+ */
4939
+ proto.gateway.web.v1.GitHubFilesResponse.deserializeBinary = function(bytes) {
4940
+ var reader = new jspb.BinaryReader(bytes);
4941
+ var msg = new proto.gateway.web.v1.GitHubFilesResponse;
4942
+ return proto.gateway.web.v1.GitHubFilesResponse.deserializeBinaryFromReader(msg, reader);
4943
+ };
4944
+
4945
+
4946
+ /**
4947
+ * Deserializes binary data (in protobuf wire format) from the
4948
+ * given reader into the given message object.
4949
+ * @param {!proto.gateway.web.v1.GitHubFilesResponse} msg The message object to deserialize into.
4950
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4951
+ * @return {!proto.gateway.web.v1.GitHubFilesResponse}
4952
+ */
4953
+ proto.gateway.web.v1.GitHubFilesResponse.deserializeBinaryFromReader = function(msg, reader) {
4954
+ while (reader.nextField()) {
4955
+ if (reader.isEndGroup()) {
4956
+ break;
4957
+ }
4958
+ var field = reader.getFieldNumber();
4959
+ switch (field) {
4960
+ case 1:
4961
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
4962
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
4963
+ msg.setStatus(value);
4964
+ break;
4965
+ case 2:
4966
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4967
+ msg.setRepositoryFullName(value);
4968
+ break;
4969
+ case 3:
4970
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4971
+ msg.setCommitSha(value);
4972
+ break;
4973
+ case 4:
4974
+ var value = new proto.gateway.web.v1.GitHubFileResult;
4975
+ reader.readMessage(value,proto.gateway.web.v1.GitHubFileResult.deserializeBinaryFromReader);
4976
+ msg.addFiles(value);
4977
+ break;
4978
+ default:
4979
+ reader.skipField();
4980
+ break;
4981
+ }
4982
+ }
4983
+ return msg;
4984
+ };
4985
+
4986
+
4987
+ /**
4988
+ * Serializes the message to binary data (in protobuf wire format).
4989
+ * @return {!Uint8Array}
4990
+ */
4991
+ proto.gateway.web.v1.GitHubFilesResponse.prototype.serializeBinary = function() {
4992
+ var writer = new jspb.BinaryWriter();
4993
+ proto.gateway.web.v1.GitHubFilesResponse.serializeBinaryToWriter(this, writer);
4994
+ return writer.getResultBuffer();
4995
+ };
4996
+
4997
+
4998
+ /**
4999
+ * Serializes the given message to binary data (in protobuf wire
5000
+ * format), writing to the given BinaryWriter.
5001
+ * @param {!proto.gateway.web.v1.GitHubFilesResponse} message
5002
+ * @param {!jspb.BinaryWriter} writer
5003
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5004
+ */
5005
+ proto.gateway.web.v1.GitHubFilesResponse.serializeBinaryToWriter = function(message, writer) {
5006
+ var f = undefined;
5007
+ f = message.getStatus();
5008
+ if (f != null) {
5009
+ writer.writeMessage(
5010
+ 1,
5011
+ f,
5012
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
5013
+ );
5014
+ }
5015
+ f = message.getRepositoryFullName();
5016
+ if (f.length > 0) {
5017
+ writer.writeString(
5018
+ 2,
5019
+ f
5020
+ );
5021
+ }
5022
+ f = message.getCommitSha();
5023
+ if (f.length > 0) {
5024
+ writer.writeString(
5025
+ 3,
5026
+ f
5027
+ );
5028
+ }
5029
+ f = message.getFilesList();
5030
+ if (f.length > 0) {
5031
+ writer.writeRepeatedMessage(
5032
+ 4,
5033
+ f,
5034
+ proto.gateway.web.v1.GitHubFileResult.serializeBinaryToWriter
5035
+ );
5036
+ }
5037
+ };
5038
+
5039
+
5040
+ /**
5041
+ * optional gateway.common.v1.ResponseStatus status = 1;
5042
+ * @return {?proto.gateway.common.v1.ResponseStatus}
5043
+ */
5044
+ proto.gateway.web.v1.GitHubFilesResponse.prototype.getStatus = function() {
5045
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
5046
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
5047
+ };
5048
+
5049
+
5050
+ /**
5051
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
5052
+ * @return {!proto.gateway.web.v1.GitHubFilesResponse} returns this
5053
+ */
5054
+ proto.gateway.web.v1.GitHubFilesResponse.prototype.setStatus = function(value) {
5055
+ return jspb.Message.setWrapperField(this, 1, value);
5056
+ };
5057
+
5058
+
5059
+ /**
5060
+ * Clears the message field making it undefined.
5061
+ * @return {!proto.gateway.web.v1.GitHubFilesResponse} returns this
5062
+ */
5063
+ proto.gateway.web.v1.GitHubFilesResponse.prototype.clearStatus = function() {
5064
+ return this.setStatus(undefined);
5065
+ };
5066
+
5067
+
5068
+ /**
5069
+ * Returns whether this field is set.
5070
+ * @return {boolean}
5071
+ */
5072
+ proto.gateway.web.v1.GitHubFilesResponse.prototype.hasStatus = function() {
5073
+ return jspb.Message.getField(this, 1) != null;
5074
+ };
5075
+
5076
+
5077
+ /**
5078
+ * optional string repository_full_name = 2;
5079
+ * @return {string}
5080
+ */
5081
+ proto.gateway.web.v1.GitHubFilesResponse.prototype.getRepositoryFullName = function() {
5082
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5083
+ };
5084
+
5085
+
5086
+ /**
5087
+ * @param {string} value
5088
+ * @return {!proto.gateway.web.v1.GitHubFilesResponse} returns this
5089
+ */
5090
+ proto.gateway.web.v1.GitHubFilesResponse.prototype.setRepositoryFullName = function(value) {
5091
+ return jspb.Message.setProto3StringField(this, 2, value);
5092
+ };
5093
+
5094
+
5095
+ /**
5096
+ * optional string commit_sha = 3;
5097
+ * @return {string}
5098
+ */
5099
+ proto.gateway.web.v1.GitHubFilesResponse.prototype.getCommitSha = function() {
5100
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5101
+ };
5102
+
5103
+
5104
+ /**
5105
+ * @param {string} value
5106
+ * @return {!proto.gateway.web.v1.GitHubFilesResponse} returns this
5107
+ */
5108
+ proto.gateway.web.v1.GitHubFilesResponse.prototype.setCommitSha = function(value) {
5109
+ return jspb.Message.setProto3StringField(this, 3, value);
5110
+ };
5111
+
5112
+
5113
+ /**
5114
+ * repeated GitHubFileResult files = 4;
5115
+ * @return {!Array<!proto.gateway.web.v1.GitHubFileResult>}
5116
+ */
5117
+ proto.gateway.web.v1.GitHubFilesResponse.prototype.getFilesList = function() {
5118
+ return /** @type{!Array<!proto.gateway.web.v1.GitHubFileResult>} */ (
5119
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.GitHubFileResult, 4));
5120
+ };
5121
+
5122
+
5123
+ /**
5124
+ * @param {!Array<!proto.gateway.web.v1.GitHubFileResult>} value
5125
+ * @return {!proto.gateway.web.v1.GitHubFilesResponse} returns this
5126
+ */
5127
+ proto.gateway.web.v1.GitHubFilesResponse.prototype.setFilesList = function(value) {
5128
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
5129
+ };
5130
+
5131
+
5132
+ /**
5133
+ * @param {!proto.gateway.web.v1.GitHubFileResult=} opt_value
5134
+ * @param {number=} opt_index
5135
+ * @return {!proto.gateway.web.v1.GitHubFileResult}
5136
+ */
5137
+ proto.gateway.web.v1.GitHubFilesResponse.prototype.addFiles = function(opt_value, opt_index) {
5138
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.gateway.web.v1.GitHubFileResult, opt_index);
5139
+ };
5140
+
5141
+
5142
+ /**
5143
+ * Clears the list making it empty but non-null.
5144
+ * @return {!proto.gateway.web.v1.GitHubFilesResponse} returns this
5145
+ */
5146
+ proto.gateway.web.v1.GitHubFilesResponse.prototype.clearFilesList = function() {
5147
+ return this.setFilesList([]);
5148
+ };
5149
+
5150
+
4305
5151
  goog.object.extend(exports, proto.gateway.web.v1);