protobuf-platform 1.0.242 → 1.0.243

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/log/log.proto CHANGED
@@ -12,8 +12,8 @@ message PingRequest { string ping = 1; }
12
12
  message PongResponse { string pong = 1; }
13
13
  message PaginationRequest { int32 limit = 1; int32 offset = 2; optional LogSearchRequest log_search_params = 3; }
14
14
  message LogSearchRequest {
15
- optional string service_name = 1;
16
- optional string type = 2;
15
+ repeated string service = 1;
16
+ repeated string type = 2;
17
17
  }
18
18
  message IssueItem {
19
19
  string hash = 1;
package/log/log_pb.js CHANGED
@@ -101,7 +101,7 @@ if (goog.DEBUG && !COMPILED) {
101
101
  * @constructor
102
102
  */
103
103
  proto.log.LogSearchRequest = function(opt_data) {
104
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
104
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.log.LogSearchRequest.repeatedFields_, null);
105
105
  };
106
106
  goog.inherits(proto.log.LogSearchRequest, jspb.Message);
107
107
  if (goog.DEBUG && !COMPILED) {
@@ -625,6 +625,13 @@ proto.log.PaginationRequest.prototype.hasLogSearchParams = function() {
625
625
 
626
626
 
627
627
 
628
+ /**
629
+ * List of repeated fields within this message type.
630
+ * @private {!Array<number>}
631
+ * @const
632
+ */
633
+ proto.log.LogSearchRequest.repeatedFields_ = [1,2];
634
+
628
635
 
629
636
 
630
637
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -656,8 +663,8 @@ proto.log.LogSearchRequest.prototype.toObject = function(opt_includeInstance) {
656
663
  */
657
664
  proto.log.LogSearchRequest.toObject = function(includeInstance, msg) {
658
665
  var f, obj = {
659
- serviceName: jspb.Message.getFieldWithDefault(msg, 1, ""),
660
- type: jspb.Message.getFieldWithDefault(msg, 2, "")
666
+ serviceList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
667
+ typeList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
661
668
  };
662
669
 
663
670
  if (includeInstance) {
@@ -696,11 +703,11 @@ proto.log.LogSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
696
703
  switch (field) {
697
704
  case 1:
698
705
  var value = /** @type {string} */ (reader.readString());
699
- msg.setServiceName(value);
706
+ msg.addService(value);
700
707
  break;
701
708
  case 2:
702
709
  var value = /** @type {string} */ (reader.readString());
703
- msg.setType(value);
710
+ msg.addType(value);
704
711
  break;
705
712
  default:
706
713
  reader.skipField();
@@ -731,16 +738,16 @@ proto.log.LogSearchRequest.prototype.serializeBinary = function() {
731
738
  */
732
739
  proto.log.LogSearchRequest.serializeBinaryToWriter = function(message, writer) {
733
740
  var f = undefined;
734
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
735
- if (f != null) {
736
- writer.writeString(
741
+ f = message.getServiceList();
742
+ if (f.length > 0) {
743
+ writer.writeRepeatedString(
737
744
  1,
738
745
  f
739
746
  );
740
747
  }
741
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
742
- if (f != null) {
743
- writer.writeString(
748
+ f = message.getTypeList();
749
+ if (f.length > 0) {
750
+ writer.writeRepeatedString(
744
751
  2,
745
752
  f
746
753
  );
@@ -749,74 +756,76 @@ proto.log.LogSearchRequest.serializeBinaryToWriter = function(message, writer) {
749
756
 
750
757
 
751
758
  /**
752
- * optional string service_name = 1;
753
- * @return {string}
759
+ * repeated string service = 1;
760
+ * @return {!Array<string>}
754
761
  */
755
- proto.log.LogSearchRequest.prototype.getServiceName = function() {
756
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
762
+ proto.log.LogSearchRequest.prototype.getServiceList = function() {
763
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
757
764
  };
758
765
 
759
766
 
760
767
  /**
761
- * @param {string} value
768
+ * @param {!Array<string>} value
762
769
  * @return {!proto.log.LogSearchRequest} returns this
763
770
  */
764
- proto.log.LogSearchRequest.prototype.setServiceName = function(value) {
765
- return jspb.Message.setField(this, 1, value);
771
+ proto.log.LogSearchRequest.prototype.setServiceList = function(value) {
772
+ return jspb.Message.setField(this, 1, value || []);
766
773
  };
767
774
 
768
775
 
769
776
  /**
770
- * Clears the field making it undefined.
777
+ * @param {string} value
778
+ * @param {number=} opt_index
771
779
  * @return {!proto.log.LogSearchRequest} returns this
772
780
  */
773
- proto.log.LogSearchRequest.prototype.clearServiceName = function() {
774
- return jspb.Message.setField(this, 1, undefined);
781
+ proto.log.LogSearchRequest.prototype.addService = function(value, opt_index) {
782
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
775
783
  };
776
784
 
777
785
 
778
786
  /**
779
- * Returns whether this field is set.
780
- * @return {boolean}
787
+ * Clears the list making it empty but non-null.
788
+ * @return {!proto.log.LogSearchRequest} returns this
781
789
  */
782
- proto.log.LogSearchRequest.prototype.hasServiceName = function() {
783
- return jspb.Message.getField(this, 1) != null;
790
+ proto.log.LogSearchRequest.prototype.clearServiceList = function() {
791
+ return this.setServiceList([]);
784
792
  };
785
793
 
786
794
 
787
795
  /**
788
- * optional string type = 2;
789
- * @return {string}
796
+ * repeated string type = 2;
797
+ * @return {!Array<string>}
790
798
  */
791
- proto.log.LogSearchRequest.prototype.getType = function() {
792
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
799
+ proto.log.LogSearchRequest.prototype.getTypeList = function() {
800
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
793
801
  };
794
802
 
795
803
 
796
804
  /**
797
- * @param {string} value
805
+ * @param {!Array<string>} value
798
806
  * @return {!proto.log.LogSearchRequest} returns this
799
807
  */
800
- proto.log.LogSearchRequest.prototype.setType = function(value) {
801
- return jspb.Message.setField(this, 2, value);
808
+ proto.log.LogSearchRequest.prototype.setTypeList = function(value) {
809
+ return jspb.Message.setField(this, 2, value || []);
802
810
  };
803
811
 
804
812
 
805
813
  /**
806
- * Clears the field making it undefined.
814
+ * @param {string} value
815
+ * @param {number=} opt_index
807
816
  * @return {!proto.log.LogSearchRequest} returns this
808
817
  */
809
- proto.log.LogSearchRequest.prototype.clearType = function() {
810
- return jspb.Message.setField(this, 2, undefined);
818
+ proto.log.LogSearchRequest.prototype.addType = function(value, opt_index) {
819
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
811
820
  };
812
821
 
813
822
 
814
823
  /**
815
- * Returns whether this field is set.
816
- * @return {boolean}
824
+ * Clears the list making it empty but non-null.
825
+ * @return {!proto.log.LogSearchRequest} returns this
817
826
  */
818
- proto.log.LogSearchRequest.prototype.hasType = function() {
819
- return jspb.Message.getField(this, 2) != null;
827
+ proto.log.LogSearchRequest.prototype.clearTypeList = function() {
828
+ return this.setTypeList([]);
820
829
  };
821
830
 
822
831
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.242",
3
+ "version": "1.0.243",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {