protobuf-platform 1.2.217 → 1.2.220
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 +7 -0
- package/user/user_grpc_pb.js +33 -0
- package/user/user_pb.js +332 -0
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -39,6 +39,7 @@ service User {
|
|
|
39
39
|
rpc setSegmentRule(SegmentRuleRequest) returns (SegmentStatusResponse);
|
|
40
40
|
rpc getSegmentRule(GetSegmentRuleRequest) returns (SegmentRuleItem);
|
|
41
41
|
rpc getSegmentsForParticularUser(GetSegmentRequest) returns (SegmentItemsResponse);
|
|
42
|
+
rpc getUserSegmentIds(GetUserSegmentIdsRequest) returns (UserSegmentIdsResponse);
|
|
42
43
|
//Risk Statuses
|
|
43
44
|
rpc readListRiskStatuses(PaginationRequest) returns (RiskStatusItemsResponse);
|
|
44
45
|
//Categories
|
|
@@ -381,6 +382,12 @@ message SegmentItemsResponse {
|
|
|
381
382
|
optional int32 total_pages = 2;
|
|
382
383
|
optional int32 total_items = 3;
|
|
383
384
|
}
|
|
385
|
+
message GetUserSegmentIdsRequest {
|
|
386
|
+
int32 user_id = 1;
|
|
387
|
+
}
|
|
388
|
+
message UserSegmentIdsResponse {
|
|
389
|
+
repeated int32 segment_ids = 1;
|
|
390
|
+
}
|
|
384
391
|
message SegmentRuleRequest {
|
|
385
392
|
optional SegmentPaymentRuleRequest payment_rule = 1;
|
|
386
393
|
optional SegmentBetRuleRequest bet_rule = 2;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -169,6 +169,17 @@ function deserialize_user_GetUserLimitsRequest(buffer_arg) {
|
|
|
169
169
|
return user_pb.GetUserLimitsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
function serialize_user_GetUserSegmentIdsRequest(arg) {
|
|
173
|
+
if (!(arg instanceof user_pb.GetUserSegmentIdsRequest)) {
|
|
174
|
+
throw new Error('Expected argument of type user.GetUserSegmentIdsRequest');
|
|
175
|
+
}
|
|
176
|
+
return Buffer.from(arg.serializeBinary());
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function deserialize_user_GetUserSegmentIdsRequest(buffer_arg) {
|
|
180
|
+
return user_pb.GetUserSegmentIdsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
181
|
+
}
|
|
182
|
+
|
|
172
183
|
function serialize_user_LimitStatusResponse(arg) {
|
|
173
184
|
if (!(arg instanceof user_pb.LimitStatusResponse)) {
|
|
174
185
|
throw new Error('Expected argument of type user.LimitStatusResponse');
|
|
@@ -664,6 +675,17 @@ function deserialize_user_UserRequest(buffer_arg) {
|
|
|
664
675
|
return user_pb.UserRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
665
676
|
}
|
|
666
677
|
|
|
678
|
+
function serialize_user_UserSegmentIdsResponse(arg) {
|
|
679
|
+
if (!(arg instanceof user_pb.UserSegmentIdsResponse)) {
|
|
680
|
+
throw new Error('Expected argument of type user.UserSegmentIdsResponse');
|
|
681
|
+
}
|
|
682
|
+
return Buffer.from(arg.serializeBinary());
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
function deserialize_user_UserSegmentIdsResponse(buffer_arg) {
|
|
686
|
+
return user_pb.UserSegmentIdsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
687
|
+
}
|
|
688
|
+
|
|
667
689
|
function serialize_user_UserStatusResponse(arg) {
|
|
668
690
|
if (!(arg instanceof user_pb.UserStatusResponse)) {
|
|
669
691
|
throw new Error('Expected argument of type user.UserStatusResponse');
|
|
@@ -1066,6 +1088,17 @@ createSingleSegment: {
|
|
|
1066
1088
|
responseSerialize: serialize_user_SegmentItemsResponse,
|
|
1067
1089
|
responseDeserialize: deserialize_user_SegmentItemsResponse,
|
|
1068
1090
|
},
|
|
1091
|
+
getUserSegmentIds: {
|
|
1092
|
+
path: '/user.User/getUserSegmentIds',
|
|
1093
|
+
requestStream: false,
|
|
1094
|
+
responseStream: false,
|
|
1095
|
+
requestType: user_pb.GetUserSegmentIdsRequest,
|
|
1096
|
+
responseType: user_pb.UserSegmentIdsResponse,
|
|
1097
|
+
requestSerialize: serialize_user_GetUserSegmentIdsRequest,
|
|
1098
|
+
requestDeserialize: deserialize_user_GetUserSegmentIdsRequest,
|
|
1099
|
+
responseSerialize: serialize_user_UserSegmentIdsResponse,
|
|
1100
|
+
responseDeserialize: deserialize_user_UserSegmentIdsResponse,
|
|
1101
|
+
},
|
|
1069
1102
|
// Risk Statuses
|
|
1070
1103
|
readListRiskStatuses: {
|
|
1071
1104
|
path: '/user.User/readListRiskStatuses',
|
package/user/user_pb.js
CHANGED
|
@@ -39,6 +39,7 @@ goog.exportSymbol('proto.user.GetSegmentRequest', null, global);
|
|
|
39
39
|
goog.exportSymbol('proto.user.GetSegmentRuleRequest', null, global);
|
|
40
40
|
goog.exportSymbol('proto.user.GetSumSubApplicantRequest', null, global);
|
|
41
41
|
goog.exportSymbol('proto.user.GetUserLimitsRequest', null, global);
|
|
42
|
+
goog.exportSymbol('proto.user.GetUserSegmentIdsRequest', null, global);
|
|
42
43
|
goog.exportSymbol('proto.user.LimitStatusResponse', null, global);
|
|
43
44
|
goog.exportSymbol('proto.user.LoggedInResponse', null, global);
|
|
44
45
|
goog.exportSymbol('proto.user.LoginRequest', null, global);
|
|
@@ -101,6 +102,7 @@ goog.exportSymbol('proto.user.UserLoyaltyItem', null, global);
|
|
|
101
102
|
goog.exportSymbol('proto.user.UserPasswordRequest', null, global);
|
|
102
103
|
goog.exportSymbol('proto.user.UserRequest', null, global);
|
|
103
104
|
goog.exportSymbol('proto.user.UserSearchParams', null, global);
|
|
105
|
+
goog.exportSymbol('proto.user.UserSegmentIdsResponse', null, global);
|
|
104
106
|
goog.exportSymbol('proto.user.UserStatusResponse', null, global);
|
|
105
107
|
goog.exportSymbol('proto.user.UserToggleGameStatusResponse', null, global);
|
|
106
108
|
goog.exportSymbol('proto.user.UsersResponse', null, global);
|
|
@@ -883,6 +885,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
883
885
|
*/
|
|
884
886
|
proto.user.SegmentItemsResponse.displayName = 'proto.user.SegmentItemsResponse';
|
|
885
887
|
}
|
|
888
|
+
/**
|
|
889
|
+
* Generated by JsPbCodeGenerator.
|
|
890
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
891
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
892
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
893
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
894
|
+
* valid.
|
|
895
|
+
* @extends {jspb.Message}
|
|
896
|
+
* @constructor
|
|
897
|
+
*/
|
|
898
|
+
proto.user.GetUserSegmentIdsRequest = function(opt_data) {
|
|
899
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
900
|
+
};
|
|
901
|
+
goog.inherits(proto.user.GetUserSegmentIdsRequest, jspb.Message);
|
|
902
|
+
if (goog.DEBUG && !COMPILED) {
|
|
903
|
+
/**
|
|
904
|
+
* @public
|
|
905
|
+
* @override
|
|
906
|
+
*/
|
|
907
|
+
proto.user.GetUserSegmentIdsRequest.displayName = 'proto.user.GetUserSegmentIdsRequest';
|
|
908
|
+
}
|
|
909
|
+
/**
|
|
910
|
+
* Generated by JsPbCodeGenerator.
|
|
911
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
912
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
913
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
914
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
915
|
+
* valid.
|
|
916
|
+
* @extends {jspb.Message}
|
|
917
|
+
* @constructor
|
|
918
|
+
*/
|
|
919
|
+
proto.user.UserSegmentIdsResponse = function(opt_data) {
|
|
920
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UserSegmentIdsResponse.repeatedFields_, null);
|
|
921
|
+
};
|
|
922
|
+
goog.inherits(proto.user.UserSegmentIdsResponse, jspb.Message);
|
|
923
|
+
if (goog.DEBUG && !COMPILED) {
|
|
924
|
+
/**
|
|
925
|
+
* @public
|
|
926
|
+
* @override
|
|
927
|
+
*/
|
|
928
|
+
proto.user.UserSegmentIdsResponse.displayName = 'proto.user.UserSegmentIdsResponse';
|
|
929
|
+
}
|
|
886
930
|
/**
|
|
887
931
|
* Generated by JsPbCodeGenerator.
|
|
888
932
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -16187,6 +16231,294 @@ proto.user.SegmentItemsResponse.prototype.hasTotalItems = function() {
|
|
|
16187
16231
|
|
|
16188
16232
|
|
|
16189
16233
|
|
|
16234
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
16235
|
+
/**
|
|
16236
|
+
* Creates an object representation of this proto.
|
|
16237
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
16238
|
+
* Optional fields that are not set will be set to undefined.
|
|
16239
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
16240
|
+
* For the list of reserved names please see:
|
|
16241
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
16242
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
16243
|
+
* JSPB instance for transitional soy proto support:
|
|
16244
|
+
* http://goto/soy-param-migration
|
|
16245
|
+
* @return {!Object}
|
|
16246
|
+
*/
|
|
16247
|
+
proto.user.GetUserSegmentIdsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
16248
|
+
return proto.user.GetUserSegmentIdsRequest.toObject(opt_includeInstance, this);
|
|
16249
|
+
};
|
|
16250
|
+
|
|
16251
|
+
|
|
16252
|
+
/**
|
|
16253
|
+
* Static version of the {@see toObject} method.
|
|
16254
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
16255
|
+
* the JSPB instance for transitional soy proto support:
|
|
16256
|
+
* http://goto/soy-param-migration
|
|
16257
|
+
* @param {!proto.user.GetUserSegmentIdsRequest} msg The msg instance to transform.
|
|
16258
|
+
* @return {!Object}
|
|
16259
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16260
|
+
*/
|
|
16261
|
+
proto.user.GetUserSegmentIdsRequest.toObject = function(includeInstance, msg) {
|
|
16262
|
+
var f, obj = {
|
|
16263
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
16264
|
+
};
|
|
16265
|
+
|
|
16266
|
+
if (includeInstance) {
|
|
16267
|
+
obj.$jspbMessageInstance = msg;
|
|
16268
|
+
}
|
|
16269
|
+
return obj;
|
|
16270
|
+
};
|
|
16271
|
+
}
|
|
16272
|
+
|
|
16273
|
+
|
|
16274
|
+
/**
|
|
16275
|
+
* Deserializes binary data (in protobuf wire format).
|
|
16276
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
16277
|
+
* @return {!proto.user.GetUserSegmentIdsRequest}
|
|
16278
|
+
*/
|
|
16279
|
+
proto.user.GetUserSegmentIdsRequest.deserializeBinary = function(bytes) {
|
|
16280
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
16281
|
+
var msg = new proto.user.GetUserSegmentIdsRequest;
|
|
16282
|
+
return proto.user.GetUserSegmentIdsRequest.deserializeBinaryFromReader(msg, reader);
|
|
16283
|
+
};
|
|
16284
|
+
|
|
16285
|
+
|
|
16286
|
+
/**
|
|
16287
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
16288
|
+
* given reader into the given message object.
|
|
16289
|
+
* @param {!proto.user.GetUserSegmentIdsRequest} msg The message object to deserialize into.
|
|
16290
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
16291
|
+
* @return {!proto.user.GetUserSegmentIdsRequest}
|
|
16292
|
+
*/
|
|
16293
|
+
proto.user.GetUserSegmentIdsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
16294
|
+
while (reader.nextField()) {
|
|
16295
|
+
if (reader.isEndGroup()) {
|
|
16296
|
+
break;
|
|
16297
|
+
}
|
|
16298
|
+
var field = reader.getFieldNumber();
|
|
16299
|
+
switch (field) {
|
|
16300
|
+
case 1:
|
|
16301
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
16302
|
+
msg.setUserId(value);
|
|
16303
|
+
break;
|
|
16304
|
+
default:
|
|
16305
|
+
reader.skipField();
|
|
16306
|
+
break;
|
|
16307
|
+
}
|
|
16308
|
+
}
|
|
16309
|
+
return msg;
|
|
16310
|
+
};
|
|
16311
|
+
|
|
16312
|
+
|
|
16313
|
+
/**
|
|
16314
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
16315
|
+
* @return {!Uint8Array}
|
|
16316
|
+
*/
|
|
16317
|
+
proto.user.GetUserSegmentIdsRequest.prototype.serializeBinary = function() {
|
|
16318
|
+
var writer = new jspb.BinaryWriter();
|
|
16319
|
+
proto.user.GetUserSegmentIdsRequest.serializeBinaryToWriter(this, writer);
|
|
16320
|
+
return writer.getResultBuffer();
|
|
16321
|
+
};
|
|
16322
|
+
|
|
16323
|
+
|
|
16324
|
+
/**
|
|
16325
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
16326
|
+
* format), writing to the given BinaryWriter.
|
|
16327
|
+
* @param {!proto.user.GetUserSegmentIdsRequest} message
|
|
16328
|
+
* @param {!jspb.BinaryWriter} writer
|
|
16329
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16330
|
+
*/
|
|
16331
|
+
proto.user.GetUserSegmentIdsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
16332
|
+
var f = undefined;
|
|
16333
|
+
f = message.getUserId();
|
|
16334
|
+
if (f !== 0) {
|
|
16335
|
+
writer.writeInt32(
|
|
16336
|
+
1,
|
|
16337
|
+
f
|
|
16338
|
+
);
|
|
16339
|
+
}
|
|
16340
|
+
};
|
|
16341
|
+
|
|
16342
|
+
|
|
16343
|
+
/**
|
|
16344
|
+
* optional int32 user_id = 1;
|
|
16345
|
+
* @return {number}
|
|
16346
|
+
*/
|
|
16347
|
+
proto.user.GetUserSegmentIdsRequest.prototype.getUserId = function() {
|
|
16348
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
16349
|
+
};
|
|
16350
|
+
|
|
16351
|
+
|
|
16352
|
+
/**
|
|
16353
|
+
* @param {number} value
|
|
16354
|
+
* @return {!proto.user.GetUserSegmentIdsRequest} returns this
|
|
16355
|
+
*/
|
|
16356
|
+
proto.user.GetUserSegmentIdsRequest.prototype.setUserId = function(value) {
|
|
16357
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
16358
|
+
};
|
|
16359
|
+
|
|
16360
|
+
|
|
16361
|
+
|
|
16362
|
+
/**
|
|
16363
|
+
* List of repeated fields within this message type.
|
|
16364
|
+
* @private {!Array<number>}
|
|
16365
|
+
* @const
|
|
16366
|
+
*/
|
|
16367
|
+
proto.user.UserSegmentIdsResponse.repeatedFields_ = [1];
|
|
16368
|
+
|
|
16369
|
+
|
|
16370
|
+
|
|
16371
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
16372
|
+
/**
|
|
16373
|
+
* Creates an object representation of this proto.
|
|
16374
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
16375
|
+
* Optional fields that are not set will be set to undefined.
|
|
16376
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
16377
|
+
* For the list of reserved names please see:
|
|
16378
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
16379
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
16380
|
+
* JSPB instance for transitional soy proto support:
|
|
16381
|
+
* http://goto/soy-param-migration
|
|
16382
|
+
* @return {!Object}
|
|
16383
|
+
*/
|
|
16384
|
+
proto.user.UserSegmentIdsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
16385
|
+
return proto.user.UserSegmentIdsResponse.toObject(opt_includeInstance, this);
|
|
16386
|
+
};
|
|
16387
|
+
|
|
16388
|
+
|
|
16389
|
+
/**
|
|
16390
|
+
* Static version of the {@see toObject} method.
|
|
16391
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
16392
|
+
* the JSPB instance for transitional soy proto support:
|
|
16393
|
+
* http://goto/soy-param-migration
|
|
16394
|
+
* @param {!proto.user.UserSegmentIdsResponse} msg The msg instance to transform.
|
|
16395
|
+
* @return {!Object}
|
|
16396
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16397
|
+
*/
|
|
16398
|
+
proto.user.UserSegmentIdsResponse.toObject = function(includeInstance, msg) {
|
|
16399
|
+
var f, obj = {
|
|
16400
|
+
segmentIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
16401
|
+
};
|
|
16402
|
+
|
|
16403
|
+
if (includeInstance) {
|
|
16404
|
+
obj.$jspbMessageInstance = msg;
|
|
16405
|
+
}
|
|
16406
|
+
return obj;
|
|
16407
|
+
};
|
|
16408
|
+
}
|
|
16409
|
+
|
|
16410
|
+
|
|
16411
|
+
/**
|
|
16412
|
+
* Deserializes binary data (in protobuf wire format).
|
|
16413
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
16414
|
+
* @return {!proto.user.UserSegmentIdsResponse}
|
|
16415
|
+
*/
|
|
16416
|
+
proto.user.UserSegmentIdsResponse.deserializeBinary = function(bytes) {
|
|
16417
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
16418
|
+
var msg = new proto.user.UserSegmentIdsResponse;
|
|
16419
|
+
return proto.user.UserSegmentIdsResponse.deserializeBinaryFromReader(msg, reader);
|
|
16420
|
+
};
|
|
16421
|
+
|
|
16422
|
+
|
|
16423
|
+
/**
|
|
16424
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
16425
|
+
* given reader into the given message object.
|
|
16426
|
+
* @param {!proto.user.UserSegmentIdsResponse} msg The message object to deserialize into.
|
|
16427
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
16428
|
+
* @return {!proto.user.UserSegmentIdsResponse}
|
|
16429
|
+
*/
|
|
16430
|
+
proto.user.UserSegmentIdsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
16431
|
+
while (reader.nextField()) {
|
|
16432
|
+
if (reader.isEndGroup()) {
|
|
16433
|
+
break;
|
|
16434
|
+
}
|
|
16435
|
+
var field = reader.getFieldNumber();
|
|
16436
|
+
switch (field) {
|
|
16437
|
+
case 1:
|
|
16438
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
16439
|
+
for (var i = 0; i < values.length; i++) {
|
|
16440
|
+
msg.addSegmentIds(values[i]);
|
|
16441
|
+
}
|
|
16442
|
+
break;
|
|
16443
|
+
default:
|
|
16444
|
+
reader.skipField();
|
|
16445
|
+
break;
|
|
16446
|
+
}
|
|
16447
|
+
}
|
|
16448
|
+
return msg;
|
|
16449
|
+
};
|
|
16450
|
+
|
|
16451
|
+
|
|
16452
|
+
/**
|
|
16453
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
16454
|
+
* @return {!Uint8Array}
|
|
16455
|
+
*/
|
|
16456
|
+
proto.user.UserSegmentIdsResponse.prototype.serializeBinary = function() {
|
|
16457
|
+
var writer = new jspb.BinaryWriter();
|
|
16458
|
+
proto.user.UserSegmentIdsResponse.serializeBinaryToWriter(this, writer);
|
|
16459
|
+
return writer.getResultBuffer();
|
|
16460
|
+
};
|
|
16461
|
+
|
|
16462
|
+
|
|
16463
|
+
/**
|
|
16464
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
16465
|
+
* format), writing to the given BinaryWriter.
|
|
16466
|
+
* @param {!proto.user.UserSegmentIdsResponse} message
|
|
16467
|
+
* @param {!jspb.BinaryWriter} writer
|
|
16468
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16469
|
+
*/
|
|
16470
|
+
proto.user.UserSegmentIdsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
16471
|
+
var f = undefined;
|
|
16472
|
+
f = message.getSegmentIdsList();
|
|
16473
|
+
if (f.length > 0) {
|
|
16474
|
+
writer.writePackedInt32(
|
|
16475
|
+
1,
|
|
16476
|
+
f
|
|
16477
|
+
);
|
|
16478
|
+
}
|
|
16479
|
+
};
|
|
16480
|
+
|
|
16481
|
+
|
|
16482
|
+
/**
|
|
16483
|
+
* repeated int32 segment_ids = 1;
|
|
16484
|
+
* @return {!Array<number>}
|
|
16485
|
+
*/
|
|
16486
|
+
proto.user.UserSegmentIdsResponse.prototype.getSegmentIdsList = function() {
|
|
16487
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
16488
|
+
};
|
|
16489
|
+
|
|
16490
|
+
|
|
16491
|
+
/**
|
|
16492
|
+
* @param {!Array<number>} value
|
|
16493
|
+
* @return {!proto.user.UserSegmentIdsResponse} returns this
|
|
16494
|
+
*/
|
|
16495
|
+
proto.user.UserSegmentIdsResponse.prototype.setSegmentIdsList = function(value) {
|
|
16496
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
16497
|
+
};
|
|
16498
|
+
|
|
16499
|
+
|
|
16500
|
+
/**
|
|
16501
|
+
* @param {number} value
|
|
16502
|
+
* @param {number=} opt_index
|
|
16503
|
+
* @return {!proto.user.UserSegmentIdsResponse} returns this
|
|
16504
|
+
*/
|
|
16505
|
+
proto.user.UserSegmentIdsResponse.prototype.addSegmentIds = function(value, opt_index) {
|
|
16506
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
16507
|
+
};
|
|
16508
|
+
|
|
16509
|
+
|
|
16510
|
+
/**
|
|
16511
|
+
* Clears the list making it empty but non-null.
|
|
16512
|
+
* @return {!proto.user.UserSegmentIdsResponse} returns this
|
|
16513
|
+
*/
|
|
16514
|
+
proto.user.UserSegmentIdsResponse.prototype.clearSegmentIdsList = function() {
|
|
16515
|
+
return this.setSegmentIdsList([]);
|
|
16516
|
+
};
|
|
16517
|
+
|
|
16518
|
+
|
|
16519
|
+
|
|
16520
|
+
|
|
16521
|
+
|
|
16190
16522
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
16191
16523
|
/**
|
|
16192
16524
|
* Creates an object representation of this proto.
|