protobuf-platform 1.2.68 → 1.2.70

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.
package/cms/cms.proto CHANGED
@@ -203,11 +203,13 @@ message UserBannerItem {
203
203
  optional string title = 1;
204
204
  optional string content = 2;
205
205
  optional string image_big = 3;
206
- optional string image_small = 4;
207
- optional string anchor = 5;
208
- optional string cta_type = 6;
209
- optional string cta_text = 7;
210
- optional string note = 8;
206
+ optional string image_big_cdn = 4;
207
+ optional string image_small = 5;
208
+ optional string image_small_cdn = 6;
209
+ optional string anchor = 7;
210
+ optional string cta_type = 8;
211
+ optional string cta_text = 9;
212
+ optional string note = 10;
211
213
  }
212
214
  message UserBannerGroupResponse {
213
215
  repeated UserBannerItem items = 1;
package/cms/cms_pb.js CHANGED
@@ -8372,11 +8372,13 @@ proto.cms.UserBannerItem.toObject = function(includeInstance, msg) {
8372
8372
  title: jspb.Message.getFieldWithDefault(msg, 1, ""),
8373
8373
  content: jspb.Message.getFieldWithDefault(msg, 2, ""),
8374
8374
  imageBig: jspb.Message.getFieldWithDefault(msg, 3, ""),
8375
- imageSmall: jspb.Message.getFieldWithDefault(msg, 4, ""),
8376
- anchor: jspb.Message.getFieldWithDefault(msg, 5, ""),
8377
- ctaType: jspb.Message.getFieldWithDefault(msg, 6, ""),
8378
- ctaText: jspb.Message.getFieldWithDefault(msg, 7, ""),
8379
- note: jspb.Message.getFieldWithDefault(msg, 8, "")
8375
+ imageBigCdn: jspb.Message.getFieldWithDefault(msg, 4, ""),
8376
+ imageSmall: jspb.Message.getFieldWithDefault(msg, 5, ""),
8377
+ imageSmallCdn: jspb.Message.getFieldWithDefault(msg, 6, ""),
8378
+ anchor: jspb.Message.getFieldWithDefault(msg, 7, ""),
8379
+ ctaType: jspb.Message.getFieldWithDefault(msg, 8, ""),
8380
+ ctaText: jspb.Message.getFieldWithDefault(msg, 9, ""),
8381
+ note: jspb.Message.getFieldWithDefault(msg, 10, "")
8380
8382
  };
8381
8383
 
8382
8384
  if (includeInstance) {
@@ -8427,21 +8429,29 @@ proto.cms.UserBannerItem.deserializeBinaryFromReader = function(msg, reader) {
8427
8429
  break;
8428
8430
  case 4:
8429
8431
  var value = /** @type {string} */ (reader.readString());
8430
- msg.setImageSmall(value);
8432
+ msg.setImageBigCdn(value);
8431
8433
  break;
8432
8434
  case 5:
8433
8435
  var value = /** @type {string} */ (reader.readString());
8434
- msg.setAnchor(value);
8436
+ msg.setImageSmall(value);
8435
8437
  break;
8436
8438
  case 6:
8437
8439
  var value = /** @type {string} */ (reader.readString());
8438
- msg.setCtaType(value);
8440
+ msg.setImageSmallCdn(value);
8439
8441
  break;
8440
8442
  case 7:
8441
8443
  var value = /** @type {string} */ (reader.readString());
8442
- msg.setCtaText(value);
8444
+ msg.setAnchor(value);
8443
8445
  break;
8444
8446
  case 8:
8447
+ var value = /** @type {string} */ (reader.readString());
8448
+ msg.setCtaType(value);
8449
+ break;
8450
+ case 9:
8451
+ var value = /** @type {string} */ (reader.readString());
8452
+ msg.setCtaText(value);
8453
+ break;
8454
+ case 10:
8445
8455
  var value = /** @type {string} */ (reader.readString());
8446
8456
  msg.setNote(value);
8447
8457
  break;
@@ -8530,6 +8540,20 @@ proto.cms.UserBannerItem.serializeBinaryToWriter = function(message, writer) {
8530
8540
  f
8531
8541
  );
8532
8542
  }
8543
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
8544
+ if (f != null) {
8545
+ writer.writeString(
8546
+ 9,
8547
+ f
8548
+ );
8549
+ }
8550
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
8551
+ if (f != null) {
8552
+ writer.writeString(
8553
+ 10,
8554
+ f
8555
+ );
8556
+ }
8533
8557
  };
8534
8558
 
8535
8559
 
@@ -8642,10 +8666,10 @@ proto.cms.UserBannerItem.prototype.hasImageBig = function() {
8642
8666
 
8643
8667
 
8644
8668
  /**
8645
- * optional string image_small = 4;
8669
+ * optional string image_big_cdn = 4;
8646
8670
  * @return {string}
8647
8671
  */
8648
- proto.cms.UserBannerItem.prototype.getImageSmall = function() {
8672
+ proto.cms.UserBannerItem.prototype.getImageBigCdn = function() {
8649
8673
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
8650
8674
  };
8651
8675
 
@@ -8654,7 +8678,7 @@ proto.cms.UserBannerItem.prototype.getImageSmall = function() {
8654
8678
  * @param {string} value
8655
8679
  * @return {!proto.cms.UserBannerItem} returns this
8656
8680
  */
8657
- proto.cms.UserBannerItem.prototype.setImageSmall = function(value) {
8681
+ proto.cms.UserBannerItem.prototype.setImageBigCdn = function(value) {
8658
8682
  return jspb.Message.setField(this, 4, value);
8659
8683
  };
8660
8684
 
@@ -8663,7 +8687,7 @@ proto.cms.UserBannerItem.prototype.setImageSmall = function(value) {
8663
8687
  * Clears the field making it undefined.
8664
8688
  * @return {!proto.cms.UserBannerItem} returns this
8665
8689
  */
8666
- proto.cms.UserBannerItem.prototype.clearImageSmall = function() {
8690
+ proto.cms.UserBannerItem.prototype.clearImageBigCdn = function() {
8667
8691
  return jspb.Message.setField(this, 4, undefined);
8668
8692
  };
8669
8693
 
@@ -8672,16 +8696,16 @@ proto.cms.UserBannerItem.prototype.clearImageSmall = function() {
8672
8696
  * Returns whether this field is set.
8673
8697
  * @return {boolean}
8674
8698
  */
8675
- proto.cms.UserBannerItem.prototype.hasImageSmall = function() {
8699
+ proto.cms.UserBannerItem.prototype.hasImageBigCdn = function() {
8676
8700
  return jspb.Message.getField(this, 4) != null;
8677
8701
  };
8678
8702
 
8679
8703
 
8680
8704
  /**
8681
- * optional string anchor = 5;
8705
+ * optional string image_small = 5;
8682
8706
  * @return {string}
8683
8707
  */
8684
- proto.cms.UserBannerItem.prototype.getAnchor = function() {
8708
+ proto.cms.UserBannerItem.prototype.getImageSmall = function() {
8685
8709
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
8686
8710
  };
8687
8711
 
@@ -8690,7 +8714,7 @@ proto.cms.UserBannerItem.prototype.getAnchor = function() {
8690
8714
  * @param {string} value
8691
8715
  * @return {!proto.cms.UserBannerItem} returns this
8692
8716
  */
8693
- proto.cms.UserBannerItem.prototype.setAnchor = function(value) {
8717
+ proto.cms.UserBannerItem.prototype.setImageSmall = function(value) {
8694
8718
  return jspb.Message.setField(this, 5, value);
8695
8719
  };
8696
8720
 
@@ -8699,7 +8723,7 @@ proto.cms.UserBannerItem.prototype.setAnchor = function(value) {
8699
8723
  * Clears the field making it undefined.
8700
8724
  * @return {!proto.cms.UserBannerItem} returns this
8701
8725
  */
8702
- proto.cms.UserBannerItem.prototype.clearAnchor = function() {
8726
+ proto.cms.UserBannerItem.prototype.clearImageSmall = function() {
8703
8727
  return jspb.Message.setField(this, 5, undefined);
8704
8728
  };
8705
8729
 
@@ -8708,16 +8732,16 @@ proto.cms.UserBannerItem.prototype.clearAnchor = function() {
8708
8732
  * Returns whether this field is set.
8709
8733
  * @return {boolean}
8710
8734
  */
8711
- proto.cms.UserBannerItem.prototype.hasAnchor = function() {
8735
+ proto.cms.UserBannerItem.prototype.hasImageSmall = function() {
8712
8736
  return jspb.Message.getField(this, 5) != null;
8713
8737
  };
8714
8738
 
8715
8739
 
8716
8740
  /**
8717
- * optional string cta_type = 6;
8741
+ * optional string image_small_cdn = 6;
8718
8742
  * @return {string}
8719
8743
  */
8720
- proto.cms.UserBannerItem.prototype.getCtaType = function() {
8744
+ proto.cms.UserBannerItem.prototype.getImageSmallCdn = function() {
8721
8745
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
8722
8746
  };
8723
8747
 
@@ -8726,7 +8750,7 @@ proto.cms.UserBannerItem.prototype.getCtaType = function() {
8726
8750
  * @param {string} value
8727
8751
  * @return {!proto.cms.UserBannerItem} returns this
8728
8752
  */
8729
- proto.cms.UserBannerItem.prototype.setCtaType = function(value) {
8753
+ proto.cms.UserBannerItem.prototype.setImageSmallCdn = function(value) {
8730
8754
  return jspb.Message.setField(this, 6, value);
8731
8755
  };
8732
8756
 
@@ -8735,7 +8759,7 @@ proto.cms.UserBannerItem.prototype.setCtaType = function(value) {
8735
8759
  * Clears the field making it undefined.
8736
8760
  * @return {!proto.cms.UserBannerItem} returns this
8737
8761
  */
8738
- proto.cms.UserBannerItem.prototype.clearCtaType = function() {
8762
+ proto.cms.UserBannerItem.prototype.clearImageSmallCdn = function() {
8739
8763
  return jspb.Message.setField(this, 6, undefined);
8740
8764
  };
8741
8765
 
@@ -8744,16 +8768,16 @@ proto.cms.UserBannerItem.prototype.clearCtaType = function() {
8744
8768
  * Returns whether this field is set.
8745
8769
  * @return {boolean}
8746
8770
  */
8747
- proto.cms.UserBannerItem.prototype.hasCtaType = function() {
8771
+ proto.cms.UserBannerItem.prototype.hasImageSmallCdn = function() {
8748
8772
  return jspb.Message.getField(this, 6) != null;
8749
8773
  };
8750
8774
 
8751
8775
 
8752
8776
  /**
8753
- * optional string cta_text = 7;
8777
+ * optional string anchor = 7;
8754
8778
  * @return {string}
8755
8779
  */
8756
- proto.cms.UserBannerItem.prototype.getCtaText = function() {
8780
+ proto.cms.UserBannerItem.prototype.getAnchor = function() {
8757
8781
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
8758
8782
  };
8759
8783
 
@@ -8762,7 +8786,7 @@ proto.cms.UserBannerItem.prototype.getCtaText = function() {
8762
8786
  * @param {string} value
8763
8787
  * @return {!proto.cms.UserBannerItem} returns this
8764
8788
  */
8765
- proto.cms.UserBannerItem.prototype.setCtaText = function(value) {
8789
+ proto.cms.UserBannerItem.prototype.setAnchor = function(value) {
8766
8790
  return jspb.Message.setField(this, 7, value);
8767
8791
  };
8768
8792
 
@@ -8771,7 +8795,7 @@ proto.cms.UserBannerItem.prototype.setCtaText = function(value) {
8771
8795
  * Clears the field making it undefined.
8772
8796
  * @return {!proto.cms.UserBannerItem} returns this
8773
8797
  */
8774
- proto.cms.UserBannerItem.prototype.clearCtaText = function() {
8798
+ proto.cms.UserBannerItem.prototype.clearAnchor = function() {
8775
8799
  return jspb.Message.setField(this, 7, undefined);
8776
8800
  };
8777
8801
 
@@ -8780,16 +8804,16 @@ proto.cms.UserBannerItem.prototype.clearCtaText = function() {
8780
8804
  * Returns whether this field is set.
8781
8805
  * @return {boolean}
8782
8806
  */
8783
- proto.cms.UserBannerItem.prototype.hasCtaText = function() {
8807
+ proto.cms.UserBannerItem.prototype.hasAnchor = function() {
8784
8808
  return jspb.Message.getField(this, 7) != null;
8785
8809
  };
8786
8810
 
8787
8811
 
8788
8812
  /**
8789
- * optional string note = 8;
8813
+ * optional string cta_type = 8;
8790
8814
  * @return {string}
8791
8815
  */
8792
- proto.cms.UserBannerItem.prototype.getNote = function() {
8816
+ proto.cms.UserBannerItem.prototype.getCtaType = function() {
8793
8817
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
8794
8818
  };
8795
8819
 
@@ -8798,7 +8822,7 @@ proto.cms.UserBannerItem.prototype.getNote = function() {
8798
8822
  * @param {string} value
8799
8823
  * @return {!proto.cms.UserBannerItem} returns this
8800
8824
  */
8801
- proto.cms.UserBannerItem.prototype.setNote = function(value) {
8825
+ proto.cms.UserBannerItem.prototype.setCtaType = function(value) {
8802
8826
  return jspb.Message.setField(this, 8, value);
8803
8827
  };
8804
8828
 
@@ -8807,7 +8831,7 @@ proto.cms.UserBannerItem.prototype.setNote = function(value) {
8807
8831
  * Clears the field making it undefined.
8808
8832
  * @return {!proto.cms.UserBannerItem} returns this
8809
8833
  */
8810
- proto.cms.UserBannerItem.prototype.clearNote = function() {
8834
+ proto.cms.UserBannerItem.prototype.clearCtaType = function() {
8811
8835
  return jspb.Message.setField(this, 8, undefined);
8812
8836
  };
8813
8837
 
@@ -8816,11 +8840,83 @@ proto.cms.UserBannerItem.prototype.clearNote = function() {
8816
8840
  * Returns whether this field is set.
8817
8841
  * @return {boolean}
8818
8842
  */
8819
- proto.cms.UserBannerItem.prototype.hasNote = function() {
8843
+ proto.cms.UserBannerItem.prototype.hasCtaType = function() {
8820
8844
  return jspb.Message.getField(this, 8) != null;
8821
8845
  };
8822
8846
 
8823
8847
 
8848
+ /**
8849
+ * optional string cta_text = 9;
8850
+ * @return {string}
8851
+ */
8852
+ proto.cms.UserBannerItem.prototype.getCtaText = function() {
8853
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
8854
+ };
8855
+
8856
+
8857
+ /**
8858
+ * @param {string} value
8859
+ * @return {!proto.cms.UserBannerItem} returns this
8860
+ */
8861
+ proto.cms.UserBannerItem.prototype.setCtaText = function(value) {
8862
+ return jspb.Message.setField(this, 9, value);
8863
+ };
8864
+
8865
+
8866
+ /**
8867
+ * Clears the field making it undefined.
8868
+ * @return {!proto.cms.UserBannerItem} returns this
8869
+ */
8870
+ proto.cms.UserBannerItem.prototype.clearCtaText = function() {
8871
+ return jspb.Message.setField(this, 9, undefined);
8872
+ };
8873
+
8874
+
8875
+ /**
8876
+ * Returns whether this field is set.
8877
+ * @return {boolean}
8878
+ */
8879
+ proto.cms.UserBannerItem.prototype.hasCtaText = function() {
8880
+ return jspb.Message.getField(this, 9) != null;
8881
+ };
8882
+
8883
+
8884
+ /**
8885
+ * optional string note = 10;
8886
+ * @return {string}
8887
+ */
8888
+ proto.cms.UserBannerItem.prototype.getNote = function() {
8889
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
8890
+ };
8891
+
8892
+
8893
+ /**
8894
+ * @param {string} value
8895
+ * @return {!proto.cms.UserBannerItem} returns this
8896
+ */
8897
+ proto.cms.UserBannerItem.prototype.setNote = function(value) {
8898
+ return jspb.Message.setField(this, 10, value);
8899
+ };
8900
+
8901
+
8902
+ /**
8903
+ * Clears the field making it undefined.
8904
+ * @return {!proto.cms.UserBannerItem} returns this
8905
+ */
8906
+ proto.cms.UserBannerItem.prototype.clearNote = function() {
8907
+ return jspb.Message.setField(this, 10, undefined);
8908
+ };
8909
+
8910
+
8911
+ /**
8912
+ * Returns whether this field is set.
8913
+ * @return {boolean}
8914
+ */
8915
+ proto.cms.UserBannerItem.prototype.hasNote = function() {
8916
+ return jspb.Message.getField(this, 10) != null;
8917
+ };
8918
+
8919
+
8824
8920
 
8825
8921
  /**
8826
8922
  * List of repeated fields within this message type.
@@ -20,6 +20,7 @@ service Config {
20
20
  rpc getCountries(CommonCountriesRequest) returns (CommonCountriesResponse);
21
21
  //File Uploads: R2
22
22
  rpc uploadR2File(R2FileRequest) returns (R2FileResponse);
23
+ rpc getR2FilesList(R2FileListRequest) returns (R2FileListResponse);
23
24
  }
24
25
 
25
26
  message PingRequest { string ping = 1; }
@@ -115,4 +116,10 @@ message R2FileRequest {
115
116
  message R2FileResponse {
116
117
  string key = 1;
117
118
  string url = 2;
119
+ }
120
+ message R2FileListRequest {
121
+ string directory = 1;
122
+ }
123
+ message R2FileListResponse {
124
+ repeated string filename = 1;
118
125
  }
@@ -158,6 +158,28 @@ function deserialize_config_PromptRequest(buffer_arg) {
158
158
  return config_pb.PromptRequest.deserializeBinary(new Uint8Array(buffer_arg));
159
159
  }
160
160
 
161
+ function serialize_config_R2FileListRequest(arg) {
162
+ if (!(arg instanceof config_pb.R2FileListRequest)) {
163
+ throw new Error('Expected argument of type config.R2FileListRequest');
164
+ }
165
+ return Buffer.from(arg.serializeBinary());
166
+ }
167
+
168
+ function deserialize_config_R2FileListRequest(buffer_arg) {
169
+ return config_pb.R2FileListRequest.deserializeBinary(new Uint8Array(buffer_arg));
170
+ }
171
+
172
+ function serialize_config_R2FileListResponse(arg) {
173
+ if (!(arg instanceof config_pb.R2FileListResponse)) {
174
+ throw new Error('Expected argument of type config.R2FileListResponse');
175
+ }
176
+ return Buffer.from(arg.serializeBinary());
177
+ }
178
+
179
+ function deserialize_config_R2FileListResponse(buffer_arg) {
180
+ return config_pb.R2FileListResponse.deserializeBinary(new Uint8Array(buffer_arg));
181
+ }
182
+
161
183
  function serialize_config_R2FileRequest(arg) {
162
184
  if (!(arg instanceof config_pb.R2FileRequest)) {
163
185
  throw new Error('Expected argument of type config.R2FileRequest');
@@ -321,6 +343,17 @@ uploadR2File: {
321
343
  responseSerialize: serialize_config_R2FileResponse,
322
344
  responseDeserialize: deserialize_config_R2FileResponse,
323
345
  },
346
+ getR2FilesList: {
347
+ path: '/config.Config/getR2FilesList',
348
+ requestStream: false,
349
+ responseStream: false,
350
+ requestType: config_pb.R2FileListRequest,
351
+ responseType: config_pb.R2FileListResponse,
352
+ requestSerialize: serialize_config_R2FileListRequest,
353
+ requestDeserialize: deserialize_config_R2FileListRequest,
354
+ responseSerialize: serialize_config_R2FileListResponse,
355
+ responseDeserialize: deserialize_config_R2FileListResponse,
356
+ },
324
357
  };
325
358
 
326
359
  exports.ConfigClient = grpc.makeGenericClientConstructor(ConfigService, 'Config');
@@ -36,6 +36,8 @@ goog.exportSymbol('proto.config.GlobalDataRequest', null, global);
36
36
  goog.exportSymbol('proto.config.PingRequest', null, global);
37
37
  goog.exportSymbol('proto.config.PongResponse', null, global);
38
38
  goog.exportSymbol('proto.config.PromptRequest', null, global);
39
+ goog.exportSymbol('proto.config.R2FileListRequest', null, global);
40
+ goog.exportSymbol('proto.config.R2FileListResponse', null, global);
39
41
  goog.exportSymbol('proto.config.R2FileRequest', null, global);
40
42
  goog.exportSymbol('proto.config.R2FileResponse', null, global);
41
43
  goog.exportSymbol('proto.config.SettingsRequest', null, global);
@@ -439,6 +441,48 @@ if (goog.DEBUG && !COMPILED) {
439
441
  */
440
442
  proto.config.R2FileResponse.displayName = 'proto.config.R2FileResponse';
441
443
  }
444
+ /**
445
+ * Generated by JsPbCodeGenerator.
446
+ * @param {Array=} opt_data Optional initial data array, typically from a
447
+ * server response, or constructed directly in Javascript. The array is used
448
+ * in place and becomes part of the constructed object. It is not cloned.
449
+ * If no data is provided, the constructed object will be empty, but still
450
+ * valid.
451
+ * @extends {jspb.Message}
452
+ * @constructor
453
+ */
454
+ proto.config.R2FileListRequest = function(opt_data) {
455
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
456
+ };
457
+ goog.inherits(proto.config.R2FileListRequest, jspb.Message);
458
+ if (goog.DEBUG && !COMPILED) {
459
+ /**
460
+ * @public
461
+ * @override
462
+ */
463
+ proto.config.R2FileListRequest.displayName = 'proto.config.R2FileListRequest';
464
+ }
465
+ /**
466
+ * Generated by JsPbCodeGenerator.
467
+ * @param {Array=} opt_data Optional initial data array, typically from a
468
+ * server response, or constructed directly in Javascript. The array is used
469
+ * in place and becomes part of the constructed object. It is not cloned.
470
+ * If no data is provided, the constructed object will be empty, but still
471
+ * valid.
472
+ * @extends {jspb.Message}
473
+ * @constructor
474
+ */
475
+ proto.config.R2FileListResponse = function(opt_data) {
476
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.config.R2FileListResponse.repeatedFields_, null);
477
+ };
478
+ goog.inherits(proto.config.R2FileListResponse, jspb.Message);
479
+ if (goog.DEBUG && !COMPILED) {
480
+ /**
481
+ * @public
482
+ * @override
483
+ */
484
+ proto.config.R2FileListResponse.displayName = 'proto.config.R2FileListResponse';
485
+ }
442
486
 
443
487
 
444
488
 
@@ -4306,4 +4350,290 @@ proto.config.R2FileResponse.prototype.setUrl = function(value) {
4306
4350
  };
4307
4351
 
4308
4352
 
4353
+
4354
+
4355
+
4356
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4357
+ /**
4358
+ * Creates an object representation of this proto.
4359
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4360
+ * Optional fields that are not set will be set to undefined.
4361
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4362
+ * For the list of reserved names please see:
4363
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4364
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4365
+ * JSPB instance for transitional soy proto support:
4366
+ * http://goto/soy-param-migration
4367
+ * @return {!Object}
4368
+ */
4369
+ proto.config.R2FileListRequest.prototype.toObject = function(opt_includeInstance) {
4370
+ return proto.config.R2FileListRequest.toObject(opt_includeInstance, this);
4371
+ };
4372
+
4373
+
4374
+ /**
4375
+ * Static version of the {@see toObject} method.
4376
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4377
+ * the JSPB instance for transitional soy proto support:
4378
+ * http://goto/soy-param-migration
4379
+ * @param {!proto.config.R2FileListRequest} msg The msg instance to transform.
4380
+ * @return {!Object}
4381
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4382
+ */
4383
+ proto.config.R2FileListRequest.toObject = function(includeInstance, msg) {
4384
+ var f, obj = {
4385
+ directory: jspb.Message.getFieldWithDefault(msg, 1, "")
4386
+ };
4387
+
4388
+ if (includeInstance) {
4389
+ obj.$jspbMessageInstance = msg;
4390
+ }
4391
+ return obj;
4392
+ };
4393
+ }
4394
+
4395
+
4396
+ /**
4397
+ * Deserializes binary data (in protobuf wire format).
4398
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4399
+ * @return {!proto.config.R2FileListRequest}
4400
+ */
4401
+ proto.config.R2FileListRequest.deserializeBinary = function(bytes) {
4402
+ var reader = new jspb.BinaryReader(bytes);
4403
+ var msg = new proto.config.R2FileListRequest;
4404
+ return proto.config.R2FileListRequest.deserializeBinaryFromReader(msg, reader);
4405
+ };
4406
+
4407
+
4408
+ /**
4409
+ * Deserializes binary data (in protobuf wire format) from the
4410
+ * given reader into the given message object.
4411
+ * @param {!proto.config.R2FileListRequest} msg The message object to deserialize into.
4412
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4413
+ * @return {!proto.config.R2FileListRequest}
4414
+ */
4415
+ proto.config.R2FileListRequest.deserializeBinaryFromReader = function(msg, reader) {
4416
+ while (reader.nextField()) {
4417
+ if (reader.isEndGroup()) {
4418
+ break;
4419
+ }
4420
+ var field = reader.getFieldNumber();
4421
+ switch (field) {
4422
+ case 1:
4423
+ var value = /** @type {string} */ (reader.readString());
4424
+ msg.setDirectory(value);
4425
+ break;
4426
+ default:
4427
+ reader.skipField();
4428
+ break;
4429
+ }
4430
+ }
4431
+ return msg;
4432
+ };
4433
+
4434
+
4435
+ /**
4436
+ * Serializes the message to binary data (in protobuf wire format).
4437
+ * @return {!Uint8Array}
4438
+ */
4439
+ proto.config.R2FileListRequest.prototype.serializeBinary = function() {
4440
+ var writer = new jspb.BinaryWriter();
4441
+ proto.config.R2FileListRequest.serializeBinaryToWriter(this, writer);
4442
+ return writer.getResultBuffer();
4443
+ };
4444
+
4445
+
4446
+ /**
4447
+ * Serializes the given message to binary data (in protobuf wire
4448
+ * format), writing to the given BinaryWriter.
4449
+ * @param {!proto.config.R2FileListRequest} message
4450
+ * @param {!jspb.BinaryWriter} writer
4451
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4452
+ */
4453
+ proto.config.R2FileListRequest.serializeBinaryToWriter = function(message, writer) {
4454
+ var f = undefined;
4455
+ f = message.getDirectory();
4456
+ if (f.length > 0) {
4457
+ writer.writeString(
4458
+ 1,
4459
+ f
4460
+ );
4461
+ }
4462
+ };
4463
+
4464
+
4465
+ /**
4466
+ * optional string directory = 1;
4467
+ * @return {string}
4468
+ */
4469
+ proto.config.R2FileListRequest.prototype.getDirectory = function() {
4470
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4471
+ };
4472
+
4473
+
4474
+ /**
4475
+ * @param {string} value
4476
+ * @return {!proto.config.R2FileListRequest} returns this
4477
+ */
4478
+ proto.config.R2FileListRequest.prototype.setDirectory = function(value) {
4479
+ return jspb.Message.setProto3StringField(this, 1, value);
4480
+ };
4481
+
4482
+
4483
+
4484
+ /**
4485
+ * List of repeated fields within this message type.
4486
+ * @private {!Array<number>}
4487
+ * @const
4488
+ */
4489
+ proto.config.R2FileListResponse.repeatedFields_ = [1];
4490
+
4491
+
4492
+
4493
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4494
+ /**
4495
+ * Creates an object representation of this proto.
4496
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4497
+ * Optional fields that are not set will be set to undefined.
4498
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4499
+ * For the list of reserved names please see:
4500
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4501
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4502
+ * JSPB instance for transitional soy proto support:
4503
+ * http://goto/soy-param-migration
4504
+ * @return {!Object}
4505
+ */
4506
+ proto.config.R2FileListResponse.prototype.toObject = function(opt_includeInstance) {
4507
+ return proto.config.R2FileListResponse.toObject(opt_includeInstance, this);
4508
+ };
4509
+
4510
+
4511
+ /**
4512
+ * Static version of the {@see toObject} method.
4513
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4514
+ * the JSPB instance for transitional soy proto support:
4515
+ * http://goto/soy-param-migration
4516
+ * @param {!proto.config.R2FileListResponse} msg The msg instance to transform.
4517
+ * @return {!Object}
4518
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4519
+ */
4520
+ proto.config.R2FileListResponse.toObject = function(includeInstance, msg) {
4521
+ var f, obj = {
4522
+ filenameList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
4523
+ };
4524
+
4525
+ if (includeInstance) {
4526
+ obj.$jspbMessageInstance = msg;
4527
+ }
4528
+ return obj;
4529
+ };
4530
+ }
4531
+
4532
+
4533
+ /**
4534
+ * Deserializes binary data (in protobuf wire format).
4535
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4536
+ * @return {!proto.config.R2FileListResponse}
4537
+ */
4538
+ proto.config.R2FileListResponse.deserializeBinary = function(bytes) {
4539
+ var reader = new jspb.BinaryReader(bytes);
4540
+ var msg = new proto.config.R2FileListResponse;
4541
+ return proto.config.R2FileListResponse.deserializeBinaryFromReader(msg, reader);
4542
+ };
4543
+
4544
+
4545
+ /**
4546
+ * Deserializes binary data (in protobuf wire format) from the
4547
+ * given reader into the given message object.
4548
+ * @param {!proto.config.R2FileListResponse} msg The message object to deserialize into.
4549
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4550
+ * @return {!proto.config.R2FileListResponse}
4551
+ */
4552
+ proto.config.R2FileListResponse.deserializeBinaryFromReader = function(msg, reader) {
4553
+ while (reader.nextField()) {
4554
+ if (reader.isEndGroup()) {
4555
+ break;
4556
+ }
4557
+ var field = reader.getFieldNumber();
4558
+ switch (field) {
4559
+ case 1:
4560
+ var value = /** @type {string} */ (reader.readString());
4561
+ msg.addFilename(value);
4562
+ break;
4563
+ default:
4564
+ reader.skipField();
4565
+ break;
4566
+ }
4567
+ }
4568
+ return msg;
4569
+ };
4570
+
4571
+
4572
+ /**
4573
+ * Serializes the message to binary data (in protobuf wire format).
4574
+ * @return {!Uint8Array}
4575
+ */
4576
+ proto.config.R2FileListResponse.prototype.serializeBinary = function() {
4577
+ var writer = new jspb.BinaryWriter();
4578
+ proto.config.R2FileListResponse.serializeBinaryToWriter(this, writer);
4579
+ return writer.getResultBuffer();
4580
+ };
4581
+
4582
+
4583
+ /**
4584
+ * Serializes the given message to binary data (in protobuf wire
4585
+ * format), writing to the given BinaryWriter.
4586
+ * @param {!proto.config.R2FileListResponse} message
4587
+ * @param {!jspb.BinaryWriter} writer
4588
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4589
+ */
4590
+ proto.config.R2FileListResponse.serializeBinaryToWriter = function(message, writer) {
4591
+ var f = undefined;
4592
+ f = message.getFilenameList();
4593
+ if (f.length > 0) {
4594
+ writer.writeRepeatedString(
4595
+ 1,
4596
+ f
4597
+ );
4598
+ }
4599
+ };
4600
+
4601
+
4602
+ /**
4603
+ * repeated string filename = 1;
4604
+ * @return {!Array<string>}
4605
+ */
4606
+ proto.config.R2FileListResponse.prototype.getFilenameList = function() {
4607
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
4608
+ };
4609
+
4610
+
4611
+ /**
4612
+ * @param {!Array<string>} value
4613
+ * @return {!proto.config.R2FileListResponse} returns this
4614
+ */
4615
+ proto.config.R2FileListResponse.prototype.setFilenameList = function(value) {
4616
+ return jspb.Message.setField(this, 1, value || []);
4617
+ };
4618
+
4619
+
4620
+ /**
4621
+ * @param {string} value
4622
+ * @param {number=} opt_index
4623
+ * @return {!proto.config.R2FileListResponse} returns this
4624
+ */
4625
+ proto.config.R2FileListResponse.prototype.addFilename = function(value, opt_index) {
4626
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
4627
+ };
4628
+
4629
+
4630
+ /**
4631
+ * Clears the list making it empty but non-null.
4632
+ * @return {!proto.config.R2FileListResponse} returns this
4633
+ */
4634
+ proto.config.R2FileListResponse.prototype.clearFilenameList = function() {
4635
+ return this.setFilenameList([]);
4636
+ };
4637
+
4638
+
4309
4639
  goog.object.extend(exports, proto.config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.68",
3
+ "version": "1.2.70",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {