protobuf-platform 1.0.226 → 1.0.227

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.226",
3
+ "version": "1.0.227",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -187,6 +187,7 @@ message GetSegmentRequest {
187
187
  optional int32 id = 1;
188
188
  repeated int32 user_ids = 2;
189
189
  repeated int32 segments_ids = 3;
190
+ optional string geo = 4;
190
191
  }
191
192
  message SegmentResponse {
192
193
  optional int32 id = 1;
package/user/user_pb.js CHANGED
@@ -7478,7 +7478,8 @@ proto.user.GetSegmentRequest.toObject = function(includeInstance, msg) {
7478
7478
  var f, obj = {
7479
7479
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
7480
7480
  userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
7481
- segmentsIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
7481
+ segmentsIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
7482
+ geo: jspb.Message.getFieldWithDefault(msg, 4, "")
7482
7483
  };
7483
7484
 
7484
7485
  if (includeInstance) {
@@ -7531,6 +7532,10 @@ proto.user.GetSegmentRequest.deserializeBinaryFromReader = function(msg, reader)
7531
7532
  msg.addSegmentsIds(values[i]);
7532
7533
  }
7533
7534
  break;
7535
+ case 4:
7536
+ var value = /** @type {string} */ (reader.readString());
7537
+ msg.setGeo(value);
7538
+ break;
7534
7539
  default:
7535
7540
  reader.skipField();
7536
7541
  break;
@@ -7581,6 +7586,13 @@ proto.user.GetSegmentRequest.serializeBinaryToWriter = function(message, writer)
7581
7586
  f
7582
7587
  );
7583
7588
  }
7589
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
7590
+ if (f != null) {
7591
+ writer.writeString(
7592
+ 4,
7593
+ f
7594
+ );
7595
+ }
7584
7596
  };
7585
7597
 
7586
7598
 
@@ -7694,6 +7706,42 @@ proto.user.GetSegmentRequest.prototype.clearSegmentsIdsList = function() {
7694
7706
  };
7695
7707
 
7696
7708
 
7709
+ /**
7710
+ * optional string geo = 4;
7711
+ * @return {string}
7712
+ */
7713
+ proto.user.GetSegmentRequest.prototype.getGeo = function() {
7714
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
7715
+ };
7716
+
7717
+
7718
+ /**
7719
+ * @param {string} value
7720
+ * @return {!proto.user.GetSegmentRequest} returns this
7721
+ */
7722
+ proto.user.GetSegmentRequest.prototype.setGeo = function(value) {
7723
+ return jspb.Message.setField(this, 4, value);
7724
+ };
7725
+
7726
+
7727
+ /**
7728
+ * Clears the field making it undefined.
7729
+ * @return {!proto.user.GetSegmentRequest} returns this
7730
+ */
7731
+ proto.user.GetSegmentRequest.prototype.clearGeo = function() {
7732
+ return jspb.Message.setField(this, 4, undefined);
7733
+ };
7734
+
7735
+
7736
+ /**
7737
+ * Returns whether this field is set.
7738
+ * @return {boolean}
7739
+ */
7740
+ proto.user.GetSegmentRequest.prototype.hasGeo = function() {
7741
+ return jspb.Message.getField(this, 4) != null;
7742
+ };
7743
+
7744
+
7697
7745
 
7698
7746
 
7699
7747