protobuf-platform 1.0.163 → 1.0.164
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 +1 -1
- package/user/user.proto +3 -1
- package/user/user_grpc_pb.js +11 -0
- package/user/user_pb.js +74 -5
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -21,6 +21,7 @@ service User {
|
|
21
21
|
rpc deleteSingleSegment(GetSegmentRequest) returns (SegmentStatusResponse);
|
22
22
|
rpc readListSegments(PaginationRequest) returns (SegmentItemsResponse);
|
23
23
|
rpc addUsersIntoSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
24
|
+
rpc addUsersIntoMultiSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
24
25
|
rpc removeUsersFromSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
25
26
|
}
|
26
27
|
|
@@ -139,8 +140,9 @@ message SegmentRequest {
|
|
139
140
|
optional bool is_active = 5;
|
140
141
|
}
|
141
142
|
message GetSegmentRequest {
|
142
|
-
int32 id = 1;
|
143
|
+
optional int32 id = 1;
|
143
144
|
repeated int32 user_ids = 2;
|
145
|
+
repeated int32 segments_ids = 3;
|
144
146
|
}
|
145
147
|
message SegmentResponse {
|
146
148
|
optional int32 id = 1;
|
package/user/user_grpc_pb.js
CHANGED
@@ -373,6 +373,17 @@ createSingleSegment: {
|
|
373
373
|
responseSerialize: serialize_user_SegmentStatusResponse,
|
374
374
|
responseDeserialize: deserialize_user_SegmentStatusResponse,
|
375
375
|
},
|
376
|
+
addUsersIntoMultiSegments: {
|
377
|
+
path: '/user.User/addUsersIntoMultiSegments',
|
378
|
+
requestStream: false,
|
379
|
+
responseStream: false,
|
380
|
+
requestType: user_pb.GetSegmentRequest,
|
381
|
+
responseType: user_pb.SegmentStatusResponse,
|
382
|
+
requestSerialize: serialize_user_GetSegmentRequest,
|
383
|
+
requestDeserialize: deserialize_user_GetSegmentRequest,
|
384
|
+
responseSerialize: serialize_user_SegmentStatusResponse,
|
385
|
+
responseDeserialize: deserialize_user_SegmentStatusResponse,
|
386
|
+
},
|
376
387
|
removeUsersFromSegments: {
|
377
388
|
path: '/user.User/removeUsersFromSegments',
|
378
389
|
requestStream: false,
|
package/user/user_pb.js
CHANGED
@@ -5542,7 +5542,7 @@ proto.user.SegmentRequest.prototype.hasIsActive = function() {
|
|
5542
5542
|
* @private {!Array<number>}
|
5543
5543
|
* @const
|
5544
5544
|
*/
|
5545
|
-
proto.user.GetSegmentRequest.repeatedFields_ = [2];
|
5545
|
+
proto.user.GetSegmentRequest.repeatedFields_ = [2,3];
|
5546
5546
|
|
5547
5547
|
|
5548
5548
|
|
@@ -5576,7 +5576,8 @@ proto.user.GetSegmentRequest.prototype.toObject = function(opt_includeInstance)
|
|
5576
5576
|
proto.user.GetSegmentRequest.toObject = function(includeInstance, msg) {
|
5577
5577
|
var f, obj = {
|
5578
5578
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5579
|
-
userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
5579
|
+
userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
5580
|
+
segmentsIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
5580
5581
|
};
|
5581
5582
|
|
5582
5583
|
if (includeInstance) {
|
@@ -5623,6 +5624,12 @@ proto.user.GetSegmentRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
5623
5624
|
msg.addUserIds(values[i]);
|
5624
5625
|
}
|
5625
5626
|
break;
|
5627
|
+
case 3:
|
5628
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
5629
|
+
for (var i = 0; i < values.length; i++) {
|
5630
|
+
msg.addSegmentsIds(values[i]);
|
5631
|
+
}
|
5632
|
+
break;
|
5626
5633
|
default:
|
5627
5634
|
reader.skipField();
|
5628
5635
|
break;
|
@@ -5652,8 +5659,8 @@ proto.user.GetSegmentRequest.prototype.serializeBinary = function() {
|
|
5652
5659
|
*/
|
5653
5660
|
proto.user.GetSegmentRequest.serializeBinaryToWriter = function(message, writer) {
|
5654
5661
|
var f = undefined;
|
5655
|
-
f =
|
5656
|
-
if (f
|
5662
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
5663
|
+
if (f != null) {
|
5657
5664
|
writer.writeInt32(
|
5658
5665
|
1,
|
5659
5666
|
f
|
@@ -5666,6 +5673,13 @@ proto.user.GetSegmentRequest.serializeBinaryToWriter = function(message, writer)
|
|
5666
5673
|
f
|
5667
5674
|
);
|
5668
5675
|
}
|
5676
|
+
f = message.getSegmentsIdsList();
|
5677
|
+
if (f.length > 0) {
|
5678
|
+
writer.writePackedInt32(
|
5679
|
+
3,
|
5680
|
+
f
|
5681
|
+
);
|
5682
|
+
}
|
5669
5683
|
};
|
5670
5684
|
|
5671
5685
|
|
@@ -5683,7 +5697,25 @@ proto.user.GetSegmentRequest.prototype.getId = function() {
|
|
5683
5697
|
* @return {!proto.user.GetSegmentRequest} returns this
|
5684
5698
|
*/
|
5685
5699
|
proto.user.GetSegmentRequest.prototype.setId = function(value) {
|
5686
|
-
return jspb.Message.
|
5700
|
+
return jspb.Message.setField(this, 1, value);
|
5701
|
+
};
|
5702
|
+
|
5703
|
+
|
5704
|
+
/**
|
5705
|
+
* Clears the field making it undefined.
|
5706
|
+
* @return {!proto.user.GetSegmentRequest} returns this
|
5707
|
+
*/
|
5708
|
+
proto.user.GetSegmentRequest.prototype.clearId = function() {
|
5709
|
+
return jspb.Message.setField(this, 1, undefined);
|
5710
|
+
};
|
5711
|
+
|
5712
|
+
|
5713
|
+
/**
|
5714
|
+
* Returns whether this field is set.
|
5715
|
+
* @return {boolean}
|
5716
|
+
*/
|
5717
|
+
proto.user.GetSegmentRequest.prototype.hasId = function() {
|
5718
|
+
return jspb.Message.getField(this, 1) != null;
|
5687
5719
|
};
|
5688
5720
|
|
5689
5721
|
|
@@ -5724,6 +5756,43 @@ proto.user.GetSegmentRequest.prototype.clearUserIdsList = function() {
|
|
5724
5756
|
};
|
5725
5757
|
|
5726
5758
|
|
5759
|
+
/**
|
5760
|
+
* repeated int32 segments_ids = 3;
|
5761
|
+
* @return {!Array<number>}
|
5762
|
+
*/
|
5763
|
+
proto.user.GetSegmentRequest.prototype.getSegmentsIdsList = function() {
|
5764
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
|
5765
|
+
};
|
5766
|
+
|
5767
|
+
|
5768
|
+
/**
|
5769
|
+
* @param {!Array<number>} value
|
5770
|
+
* @return {!proto.user.GetSegmentRequest} returns this
|
5771
|
+
*/
|
5772
|
+
proto.user.GetSegmentRequest.prototype.setSegmentsIdsList = function(value) {
|
5773
|
+
return jspb.Message.setField(this, 3, value || []);
|
5774
|
+
};
|
5775
|
+
|
5776
|
+
|
5777
|
+
/**
|
5778
|
+
* @param {number} value
|
5779
|
+
* @param {number=} opt_index
|
5780
|
+
* @return {!proto.user.GetSegmentRequest} returns this
|
5781
|
+
*/
|
5782
|
+
proto.user.GetSegmentRequest.prototype.addSegmentsIds = function(value, opt_index) {
|
5783
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
5784
|
+
};
|
5785
|
+
|
5786
|
+
|
5787
|
+
/**
|
5788
|
+
* Clears the list making it empty but non-null.
|
5789
|
+
* @return {!proto.user.GetSegmentRequest} returns this
|
5790
|
+
*/
|
5791
|
+
proto.user.GetSegmentRequest.prototype.clearSegmentsIdsList = function() {
|
5792
|
+
return this.setSegmentsIdsList([]);
|
5793
|
+
};
|
5794
|
+
|
5795
|
+
|
5727
5796
|
|
5728
5797
|
|
5729
5798
|
|