protobuf-platform 1.0.280 → 1.0.281

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,11 +12,19 @@ service Log {
12
12
 
13
13
  message PingRequest { string ping = 1; }
14
14
  message PongResponse { string pong = 1; }
15
- message PaginationRequest { int32 limit = 1; int32 offset = 2; optional LogSearchRequest log_search_params = 3; }
15
+ message PaginationRequest {
16
+ int32 limit = 1;
17
+ int32 offset = 2;
18
+ optional LogSearchRequest log_search_params = 3;
19
+ optional UserSearchRequest user_search_params = 4;
20
+ }
16
21
  message LogSearchRequest {
17
22
  repeated string service = 1;
18
23
  repeated string type = 2;
19
24
  }
25
+ message UserSearchRequest {
26
+ int32 user_id = 1;
27
+ }
20
28
  //Issues
21
29
  message IssueItem {
22
30
  string hash = 1;
package/log/log_pb.js CHANGED
@@ -29,6 +29,7 @@ goog.exportSymbol('proto.log.PingRequest', null, global);
29
29
  goog.exportSymbol('proto.log.PongResponse', null, global);
30
30
  goog.exportSymbol('proto.log.UserActivitiesItemsResponse', null, global);
31
31
  goog.exportSymbol('proto.log.UserActivityItem', null, global);
32
+ goog.exportSymbol('proto.log.UserSearchRequest', null, global);
32
33
  /**
33
34
  * Generated by JsPbCodeGenerator.
34
35
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -113,6 +114,27 @@ if (goog.DEBUG && !COMPILED) {
113
114
  */
114
115
  proto.log.LogSearchRequest.displayName = 'proto.log.LogSearchRequest';
115
116
  }
117
+ /**
118
+ * Generated by JsPbCodeGenerator.
119
+ * @param {Array=} opt_data Optional initial data array, typically from a
120
+ * server response, or constructed directly in Javascript. The array is used
121
+ * in place and becomes part of the constructed object. It is not cloned.
122
+ * If no data is provided, the constructed object will be empty, but still
123
+ * valid.
124
+ * @extends {jspb.Message}
125
+ * @constructor
126
+ */
127
+ proto.log.UserSearchRequest = function(opt_data) {
128
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
129
+ };
130
+ goog.inherits(proto.log.UserSearchRequest, jspb.Message);
131
+ if (goog.DEBUG && !COMPILED) {
132
+ /**
133
+ * @public
134
+ * @override
135
+ */
136
+ proto.log.UserSearchRequest.displayName = 'proto.log.UserSearchRequest';
137
+ }
116
138
  /**
117
139
  * Generated by JsPbCodeGenerator.
118
140
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -491,7 +513,8 @@ proto.log.PaginationRequest.toObject = function(includeInstance, msg) {
491
513
  var f, obj = {
492
514
  limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
493
515
  offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
494
- logSearchParams: (f = msg.getLogSearchParams()) && proto.log.LogSearchRequest.toObject(includeInstance, f)
516
+ logSearchParams: (f = msg.getLogSearchParams()) && proto.log.LogSearchRequest.toObject(includeInstance, f),
517
+ userSearchParams: (f = msg.getUserSearchParams()) && proto.log.UserSearchRequest.toObject(includeInstance, f)
495
518
  };
496
519
 
497
520
  if (includeInstance) {
@@ -541,6 +564,11 @@ proto.log.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
541
564
  reader.readMessage(value,proto.log.LogSearchRequest.deserializeBinaryFromReader);
542
565
  msg.setLogSearchParams(value);
543
566
  break;
567
+ case 4:
568
+ var value = new proto.log.UserSearchRequest;
569
+ reader.readMessage(value,proto.log.UserSearchRequest.deserializeBinaryFromReader);
570
+ msg.setUserSearchParams(value);
571
+ break;
544
572
  default:
545
573
  reader.skipField();
546
574
  break;
@@ -592,6 +620,14 @@ proto.log.PaginationRequest.serializeBinaryToWriter = function(message, writer)
592
620
  proto.log.LogSearchRequest.serializeBinaryToWriter
593
621
  );
594
622
  }
623
+ f = message.getUserSearchParams();
624
+ if (f != null) {
625
+ writer.writeMessage(
626
+ 4,
627
+ f,
628
+ proto.log.UserSearchRequest.serializeBinaryToWriter
629
+ );
630
+ }
595
631
  };
596
632
 
597
633
 
@@ -668,6 +704,43 @@ proto.log.PaginationRequest.prototype.hasLogSearchParams = function() {
668
704
  };
669
705
 
670
706
 
707
+ /**
708
+ * optional UserSearchRequest user_search_params = 4;
709
+ * @return {?proto.log.UserSearchRequest}
710
+ */
711
+ proto.log.PaginationRequest.prototype.getUserSearchParams = function() {
712
+ return /** @type{?proto.log.UserSearchRequest} */ (
713
+ jspb.Message.getWrapperField(this, proto.log.UserSearchRequest, 4));
714
+ };
715
+
716
+
717
+ /**
718
+ * @param {?proto.log.UserSearchRequest|undefined} value
719
+ * @return {!proto.log.PaginationRequest} returns this
720
+ */
721
+ proto.log.PaginationRequest.prototype.setUserSearchParams = function(value) {
722
+ return jspb.Message.setWrapperField(this, 4, value);
723
+ };
724
+
725
+
726
+ /**
727
+ * Clears the message field making it undefined.
728
+ * @return {!proto.log.PaginationRequest} returns this
729
+ */
730
+ proto.log.PaginationRequest.prototype.clearUserSearchParams = function() {
731
+ return this.setUserSearchParams(undefined);
732
+ };
733
+
734
+
735
+ /**
736
+ * Returns whether this field is set.
737
+ * @return {boolean}
738
+ */
739
+ proto.log.PaginationRequest.prototype.hasUserSearchParams = function() {
740
+ return jspb.Message.getField(this, 4) != null;
741
+ };
742
+
743
+
671
744
 
672
745
  /**
673
746
  * List of repeated fields within this message type.
@@ -876,6 +949,136 @@ proto.log.LogSearchRequest.prototype.clearTypeList = function() {
876
949
 
877
950
 
878
951
 
952
+ if (jspb.Message.GENERATE_TO_OBJECT) {
953
+ /**
954
+ * Creates an object representation of this proto.
955
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
956
+ * Optional fields that are not set will be set to undefined.
957
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
958
+ * For the list of reserved names please see:
959
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
960
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
961
+ * JSPB instance for transitional soy proto support:
962
+ * http://goto/soy-param-migration
963
+ * @return {!Object}
964
+ */
965
+ proto.log.UserSearchRequest.prototype.toObject = function(opt_includeInstance) {
966
+ return proto.log.UserSearchRequest.toObject(opt_includeInstance, this);
967
+ };
968
+
969
+
970
+ /**
971
+ * Static version of the {@see toObject} method.
972
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
973
+ * the JSPB instance for transitional soy proto support:
974
+ * http://goto/soy-param-migration
975
+ * @param {!proto.log.UserSearchRequest} msg The msg instance to transform.
976
+ * @return {!Object}
977
+ * @suppress {unusedLocalVariables} f is only used for nested messages
978
+ */
979
+ proto.log.UserSearchRequest.toObject = function(includeInstance, msg) {
980
+ var f, obj = {
981
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
982
+ };
983
+
984
+ if (includeInstance) {
985
+ obj.$jspbMessageInstance = msg;
986
+ }
987
+ return obj;
988
+ };
989
+ }
990
+
991
+
992
+ /**
993
+ * Deserializes binary data (in protobuf wire format).
994
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
995
+ * @return {!proto.log.UserSearchRequest}
996
+ */
997
+ proto.log.UserSearchRequest.deserializeBinary = function(bytes) {
998
+ var reader = new jspb.BinaryReader(bytes);
999
+ var msg = new proto.log.UserSearchRequest;
1000
+ return proto.log.UserSearchRequest.deserializeBinaryFromReader(msg, reader);
1001
+ };
1002
+
1003
+
1004
+ /**
1005
+ * Deserializes binary data (in protobuf wire format) from the
1006
+ * given reader into the given message object.
1007
+ * @param {!proto.log.UserSearchRequest} msg The message object to deserialize into.
1008
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1009
+ * @return {!proto.log.UserSearchRequest}
1010
+ */
1011
+ proto.log.UserSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
1012
+ while (reader.nextField()) {
1013
+ if (reader.isEndGroup()) {
1014
+ break;
1015
+ }
1016
+ var field = reader.getFieldNumber();
1017
+ switch (field) {
1018
+ case 1:
1019
+ var value = /** @type {number} */ (reader.readInt32());
1020
+ msg.setUserId(value);
1021
+ break;
1022
+ default:
1023
+ reader.skipField();
1024
+ break;
1025
+ }
1026
+ }
1027
+ return msg;
1028
+ };
1029
+
1030
+
1031
+ /**
1032
+ * Serializes the message to binary data (in protobuf wire format).
1033
+ * @return {!Uint8Array}
1034
+ */
1035
+ proto.log.UserSearchRequest.prototype.serializeBinary = function() {
1036
+ var writer = new jspb.BinaryWriter();
1037
+ proto.log.UserSearchRequest.serializeBinaryToWriter(this, writer);
1038
+ return writer.getResultBuffer();
1039
+ };
1040
+
1041
+
1042
+ /**
1043
+ * Serializes the given message to binary data (in protobuf wire
1044
+ * format), writing to the given BinaryWriter.
1045
+ * @param {!proto.log.UserSearchRequest} message
1046
+ * @param {!jspb.BinaryWriter} writer
1047
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1048
+ */
1049
+ proto.log.UserSearchRequest.serializeBinaryToWriter = function(message, writer) {
1050
+ var f = undefined;
1051
+ f = message.getUserId();
1052
+ if (f !== 0) {
1053
+ writer.writeInt32(
1054
+ 1,
1055
+ f
1056
+ );
1057
+ }
1058
+ };
1059
+
1060
+
1061
+ /**
1062
+ * optional int32 user_id = 1;
1063
+ * @return {number}
1064
+ */
1065
+ proto.log.UserSearchRequest.prototype.getUserId = function() {
1066
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1067
+ };
1068
+
1069
+
1070
+ /**
1071
+ * @param {number} value
1072
+ * @return {!proto.log.UserSearchRequest} returns this
1073
+ */
1074
+ proto.log.UserSearchRequest.prototype.setUserId = function(value) {
1075
+ return jspb.Message.setProto3IntField(this, 1, value);
1076
+ };
1077
+
1078
+
1079
+
1080
+
1081
+
879
1082
  if (jspb.Message.GENERATE_TO_OBJECT) {
880
1083
  /**
881
1084
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.280",
3
+ "version": "1.0.281",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {