protobuf-platform 1.2.219 → 1.2.222
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/CLAUDE.md +39 -0
- package/bonus/bonus.proto +14 -0
- package/bonus/bonus_pb.js +566 -2
- 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/CLAUDE.md
CHANGED
|
@@ -127,3 +127,42 @@ When generating or editing code:
|
|
|
127
127
|
- Output code in plain code blocks only.
|
|
128
128
|
- List changed file paths explicitly.
|
|
129
129
|
- Do NOT include explanations or commentary unless explicitly requested.
|
|
130
|
+
|
|
131
|
+
## Allowed (Explicit)
|
|
132
|
+
|
|
133
|
+
Cursor is allowed to execute the following commands without additional confirmation:
|
|
134
|
+
|
|
135
|
+
npm run proto:build
|
|
136
|
+
npm version patch --no-git-tag-version
|
|
137
|
+
|
|
138
|
+
Rationale:
|
|
139
|
+
|
|
140
|
+
npm run proto:build
|
|
141
|
+
Generates protobuf artifacts locally (deterministic, no external side effects).
|
|
142
|
+
|
|
143
|
+
npm version patch --no-git-tag-version
|
|
144
|
+
Updates the local package version as part of the protobuf contract change workflow.
|
|
145
|
+
|
|
146
|
+
These commands are considered safe, deterministic, and required for protobuf development.
|
|
147
|
+
|
|
148
|
+
Forbidden (Always Manual)
|
|
149
|
+
|
|
150
|
+
Cursor must NOT execute the following commands under any circumstances:
|
|
151
|
+
|
|
152
|
+
npm publish
|
|
153
|
+
|
|
154
|
+
Rationale:
|
|
155
|
+
|
|
156
|
+
Publishes a global contract to npm
|
|
157
|
+
|
|
158
|
+
Requires explicit human verification and approval
|
|
159
|
+
|
|
160
|
+
Must always be executed manually
|
|
161
|
+
|
|
162
|
+
Enforcement Rule
|
|
163
|
+
|
|
164
|
+
If a task requires publishing the protobuf package:
|
|
165
|
+
|
|
166
|
+
Cursor must stop after local generation and version bump
|
|
167
|
+
|
|
168
|
+
Cursor must explicitly instruct the developer to run npm publish manually
|
package/bonus/bonus.proto
CHANGED
|
@@ -137,6 +137,10 @@ message GetBonusBySlugRequest {
|
|
|
137
137
|
string slug = 1;
|
|
138
138
|
optional string locale = 2;
|
|
139
139
|
}
|
|
140
|
+
message CurrencyStatusItem {
|
|
141
|
+
optional string currency = 1; // e.g. "EUR"
|
|
142
|
+
optional string status = 2; // e.g. "OK" | "PARTIAL" | "BROKEN" or "READY" | "PARTIAL" | "BROKEN"
|
|
143
|
+
}
|
|
140
144
|
message BonusResponse {
|
|
141
145
|
BonusItem data = 1;
|
|
142
146
|
}
|
|
@@ -169,6 +173,16 @@ message BonusItem {
|
|
|
169
173
|
repeated int32 segment_ids = 26;
|
|
170
174
|
repeated GameItem wager_games = 27;
|
|
171
175
|
optional string slug = 28;
|
|
176
|
+
// Back Office computed fields (table columns)
|
|
177
|
+
optional string aggregated_type = 29;
|
|
178
|
+
optional string wager_balance = 30;
|
|
179
|
+
optional string wager = 31;
|
|
180
|
+
// Per-currency compact data sources for BO (gateway will render compact strings)
|
|
181
|
+
repeated CurrencyStatusItem currency_coverage = 32;
|
|
182
|
+
repeated CurrencyStatusItem activation_readiness = 33;
|
|
183
|
+
// Back Office computed fields (table columns)
|
|
184
|
+
optional string timing = 34;
|
|
185
|
+
optional string segments = 35;
|
|
172
186
|
}
|
|
173
187
|
message BonusItemsResponse {
|
|
174
188
|
repeated BonusItem items = 1;
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -40,6 +40,7 @@ goog.exportSymbol('proto.bonus.BonusTranslationItem', null, global);
|
|
|
40
40
|
goog.exportSymbol('proto.bonus.BonusTranslationRequest', null, global);
|
|
41
41
|
goog.exportSymbol('proto.bonus.BonusType', null, global);
|
|
42
42
|
goog.exportSymbol('proto.bonus.BonusTypesResponse', null, global);
|
|
43
|
+
goog.exportSymbol('proto.bonus.CurrencyStatusItem', null, global);
|
|
43
44
|
goog.exportSymbol('proto.bonus.DashboardRequest', null, global);
|
|
44
45
|
goog.exportSymbol('proto.bonus.DashboardResponse', null, global);
|
|
45
46
|
goog.exportSymbol('proto.bonus.File', null, global);
|
|
@@ -414,6 +415,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
414
415
|
*/
|
|
415
416
|
proto.bonus.GetBonusBySlugRequest.displayName = 'proto.bonus.GetBonusBySlugRequest';
|
|
416
417
|
}
|
|
418
|
+
/**
|
|
419
|
+
* Generated by JsPbCodeGenerator.
|
|
420
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
421
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
422
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
423
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
424
|
+
* valid.
|
|
425
|
+
* @extends {jspb.Message}
|
|
426
|
+
* @constructor
|
|
427
|
+
*/
|
|
428
|
+
proto.bonus.CurrencyStatusItem = function(opt_data) {
|
|
429
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
430
|
+
};
|
|
431
|
+
goog.inherits(proto.bonus.CurrencyStatusItem, jspb.Message);
|
|
432
|
+
if (goog.DEBUG && !COMPILED) {
|
|
433
|
+
/**
|
|
434
|
+
* @public
|
|
435
|
+
* @override
|
|
436
|
+
*/
|
|
437
|
+
proto.bonus.CurrencyStatusItem.displayName = 'proto.bonus.CurrencyStatusItem';
|
|
438
|
+
}
|
|
417
439
|
/**
|
|
418
440
|
* Generated by JsPbCodeGenerator.
|
|
419
441
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -5693,6 +5715,202 @@ proto.bonus.GetBonusBySlugRequest.prototype.hasLocale = function() {
|
|
|
5693
5715
|
|
|
5694
5716
|
|
|
5695
5717
|
|
|
5718
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5719
|
+
/**
|
|
5720
|
+
* Creates an object representation of this proto.
|
|
5721
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5722
|
+
* Optional fields that are not set will be set to undefined.
|
|
5723
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5724
|
+
* For the list of reserved names please see:
|
|
5725
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5726
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5727
|
+
* JSPB instance for transitional soy proto support:
|
|
5728
|
+
* http://goto/soy-param-migration
|
|
5729
|
+
* @return {!Object}
|
|
5730
|
+
*/
|
|
5731
|
+
proto.bonus.CurrencyStatusItem.prototype.toObject = function(opt_includeInstance) {
|
|
5732
|
+
return proto.bonus.CurrencyStatusItem.toObject(opt_includeInstance, this);
|
|
5733
|
+
};
|
|
5734
|
+
|
|
5735
|
+
|
|
5736
|
+
/**
|
|
5737
|
+
* Static version of the {@see toObject} method.
|
|
5738
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5739
|
+
* the JSPB instance for transitional soy proto support:
|
|
5740
|
+
* http://goto/soy-param-migration
|
|
5741
|
+
* @param {!proto.bonus.CurrencyStatusItem} msg The msg instance to transform.
|
|
5742
|
+
* @return {!Object}
|
|
5743
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5744
|
+
*/
|
|
5745
|
+
proto.bonus.CurrencyStatusItem.toObject = function(includeInstance, msg) {
|
|
5746
|
+
var f, obj = {
|
|
5747
|
+
currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5748
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5749
|
+
};
|
|
5750
|
+
|
|
5751
|
+
if (includeInstance) {
|
|
5752
|
+
obj.$jspbMessageInstance = msg;
|
|
5753
|
+
}
|
|
5754
|
+
return obj;
|
|
5755
|
+
};
|
|
5756
|
+
}
|
|
5757
|
+
|
|
5758
|
+
|
|
5759
|
+
/**
|
|
5760
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5761
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5762
|
+
* @return {!proto.bonus.CurrencyStatusItem}
|
|
5763
|
+
*/
|
|
5764
|
+
proto.bonus.CurrencyStatusItem.deserializeBinary = function(bytes) {
|
|
5765
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5766
|
+
var msg = new proto.bonus.CurrencyStatusItem;
|
|
5767
|
+
return proto.bonus.CurrencyStatusItem.deserializeBinaryFromReader(msg, reader);
|
|
5768
|
+
};
|
|
5769
|
+
|
|
5770
|
+
|
|
5771
|
+
/**
|
|
5772
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5773
|
+
* given reader into the given message object.
|
|
5774
|
+
* @param {!proto.bonus.CurrencyStatusItem} msg The message object to deserialize into.
|
|
5775
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5776
|
+
* @return {!proto.bonus.CurrencyStatusItem}
|
|
5777
|
+
*/
|
|
5778
|
+
proto.bonus.CurrencyStatusItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
5779
|
+
while (reader.nextField()) {
|
|
5780
|
+
if (reader.isEndGroup()) {
|
|
5781
|
+
break;
|
|
5782
|
+
}
|
|
5783
|
+
var field = reader.getFieldNumber();
|
|
5784
|
+
switch (field) {
|
|
5785
|
+
case 1:
|
|
5786
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5787
|
+
msg.setCurrency(value);
|
|
5788
|
+
break;
|
|
5789
|
+
case 2:
|
|
5790
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5791
|
+
msg.setStatus(value);
|
|
5792
|
+
break;
|
|
5793
|
+
default:
|
|
5794
|
+
reader.skipField();
|
|
5795
|
+
break;
|
|
5796
|
+
}
|
|
5797
|
+
}
|
|
5798
|
+
return msg;
|
|
5799
|
+
};
|
|
5800
|
+
|
|
5801
|
+
|
|
5802
|
+
/**
|
|
5803
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5804
|
+
* @return {!Uint8Array}
|
|
5805
|
+
*/
|
|
5806
|
+
proto.bonus.CurrencyStatusItem.prototype.serializeBinary = function() {
|
|
5807
|
+
var writer = new jspb.BinaryWriter();
|
|
5808
|
+
proto.bonus.CurrencyStatusItem.serializeBinaryToWriter(this, writer);
|
|
5809
|
+
return writer.getResultBuffer();
|
|
5810
|
+
};
|
|
5811
|
+
|
|
5812
|
+
|
|
5813
|
+
/**
|
|
5814
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5815
|
+
* format), writing to the given BinaryWriter.
|
|
5816
|
+
* @param {!proto.bonus.CurrencyStatusItem} message
|
|
5817
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5818
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5819
|
+
*/
|
|
5820
|
+
proto.bonus.CurrencyStatusItem.serializeBinaryToWriter = function(message, writer) {
|
|
5821
|
+
var f = undefined;
|
|
5822
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
5823
|
+
if (f != null) {
|
|
5824
|
+
writer.writeString(
|
|
5825
|
+
1,
|
|
5826
|
+
f
|
|
5827
|
+
);
|
|
5828
|
+
}
|
|
5829
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
5830
|
+
if (f != null) {
|
|
5831
|
+
writer.writeString(
|
|
5832
|
+
2,
|
|
5833
|
+
f
|
|
5834
|
+
);
|
|
5835
|
+
}
|
|
5836
|
+
};
|
|
5837
|
+
|
|
5838
|
+
|
|
5839
|
+
/**
|
|
5840
|
+
* optional string currency = 1;
|
|
5841
|
+
* @return {string}
|
|
5842
|
+
*/
|
|
5843
|
+
proto.bonus.CurrencyStatusItem.prototype.getCurrency = function() {
|
|
5844
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5845
|
+
};
|
|
5846
|
+
|
|
5847
|
+
|
|
5848
|
+
/**
|
|
5849
|
+
* @param {string} value
|
|
5850
|
+
* @return {!proto.bonus.CurrencyStatusItem} returns this
|
|
5851
|
+
*/
|
|
5852
|
+
proto.bonus.CurrencyStatusItem.prototype.setCurrency = function(value) {
|
|
5853
|
+
return jspb.Message.setField(this, 1, value);
|
|
5854
|
+
};
|
|
5855
|
+
|
|
5856
|
+
|
|
5857
|
+
/**
|
|
5858
|
+
* Clears the field making it undefined.
|
|
5859
|
+
* @return {!proto.bonus.CurrencyStatusItem} returns this
|
|
5860
|
+
*/
|
|
5861
|
+
proto.bonus.CurrencyStatusItem.prototype.clearCurrency = function() {
|
|
5862
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
5863
|
+
};
|
|
5864
|
+
|
|
5865
|
+
|
|
5866
|
+
/**
|
|
5867
|
+
* Returns whether this field is set.
|
|
5868
|
+
* @return {boolean}
|
|
5869
|
+
*/
|
|
5870
|
+
proto.bonus.CurrencyStatusItem.prototype.hasCurrency = function() {
|
|
5871
|
+
return jspb.Message.getField(this, 1) != null;
|
|
5872
|
+
};
|
|
5873
|
+
|
|
5874
|
+
|
|
5875
|
+
/**
|
|
5876
|
+
* optional string status = 2;
|
|
5877
|
+
* @return {string}
|
|
5878
|
+
*/
|
|
5879
|
+
proto.bonus.CurrencyStatusItem.prototype.getStatus = function() {
|
|
5880
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
5881
|
+
};
|
|
5882
|
+
|
|
5883
|
+
|
|
5884
|
+
/**
|
|
5885
|
+
* @param {string} value
|
|
5886
|
+
* @return {!proto.bonus.CurrencyStatusItem} returns this
|
|
5887
|
+
*/
|
|
5888
|
+
proto.bonus.CurrencyStatusItem.prototype.setStatus = function(value) {
|
|
5889
|
+
return jspb.Message.setField(this, 2, value);
|
|
5890
|
+
};
|
|
5891
|
+
|
|
5892
|
+
|
|
5893
|
+
/**
|
|
5894
|
+
* Clears the field making it undefined.
|
|
5895
|
+
* @return {!proto.bonus.CurrencyStatusItem} returns this
|
|
5896
|
+
*/
|
|
5897
|
+
proto.bonus.CurrencyStatusItem.prototype.clearStatus = function() {
|
|
5898
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
5899
|
+
};
|
|
5900
|
+
|
|
5901
|
+
|
|
5902
|
+
/**
|
|
5903
|
+
* Returns whether this field is set.
|
|
5904
|
+
* @return {boolean}
|
|
5905
|
+
*/
|
|
5906
|
+
proto.bonus.CurrencyStatusItem.prototype.hasStatus = function() {
|
|
5907
|
+
return jspb.Message.getField(this, 2) != null;
|
|
5908
|
+
};
|
|
5909
|
+
|
|
5910
|
+
|
|
5911
|
+
|
|
5912
|
+
|
|
5913
|
+
|
|
5696
5914
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5697
5915
|
/**
|
|
5698
5916
|
* Creates an object representation of this proto.
|
|
@@ -5847,7 +6065,7 @@ proto.bonus.BonusResponse.prototype.hasData = function() {
|
|
|
5847
6065
|
* @private {!Array<number>}
|
|
5848
6066
|
* @const
|
|
5849
6067
|
*/
|
|
5850
|
-
proto.bonus.BonusItem.repeatedFields_ = [20,21,22,25,26,27];
|
|
6068
|
+
proto.bonus.BonusItem.repeatedFields_ = [20,21,22,25,26,27,32,33];
|
|
5851
6069
|
|
|
5852
6070
|
|
|
5853
6071
|
|
|
@@ -5912,7 +6130,16 @@ proto.bonus.BonusItem.toObject = function(includeInstance, msg) {
|
|
|
5912
6130
|
segmentIdsList: (f = jspb.Message.getRepeatedField(msg, 26)) == null ? undefined : f,
|
|
5913
6131
|
wagerGamesList: jspb.Message.toObjectList(msg.getWagerGamesList(),
|
|
5914
6132
|
proto.bonus.GameItem.toObject, includeInstance),
|
|
5915
|
-
slug: jspb.Message.getFieldWithDefault(msg, 28, "")
|
|
6133
|
+
slug: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
6134
|
+
aggregatedType: jspb.Message.getFieldWithDefault(msg, 29, ""),
|
|
6135
|
+
wagerBalance: jspb.Message.getFieldWithDefault(msg, 30, ""),
|
|
6136
|
+
wager: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
6137
|
+
currencyCoverageList: jspb.Message.toObjectList(msg.getCurrencyCoverageList(),
|
|
6138
|
+
proto.bonus.CurrencyStatusItem.toObject, includeInstance),
|
|
6139
|
+
activationReadinessList: jspb.Message.toObjectList(msg.getActivationReadinessList(),
|
|
6140
|
+
proto.bonus.CurrencyStatusItem.toObject, includeInstance),
|
|
6141
|
+
timing: jspb.Message.getFieldWithDefault(msg, 34, ""),
|
|
6142
|
+
segments: jspb.Message.getFieldWithDefault(msg, 35, "")
|
|
5916
6143
|
};
|
|
5917
6144
|
|
|
5918
6145
|
if (includeInstance) {
|
|
@@ -6068,6 +6295,36 @@ proto.bonus.BonusItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
6068
6295
|
var value = /** @type {string} */ (reader.readString());
|
|
6069
6296
|
msg.setSlug(value);
|
|
6070
6297
|
break;
|
|
6298
|
+
case 29:
|
|
6299
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6300
|
+
msg.setAggregatedType(value);
|
|
6301
|
+
break;
|
|
6302
|
+
case 30:
|
|
6303
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6304
|
+
msg.setWagerBalance(value);
|
|
6305
|
+
break;
|
|
6306
|
+
case 31:
|
|
6307
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6308
|
+
msg.setWager(value);
|
|
6309
|
+
break;
|
|
6310
|
+
case 32:
|
|
6311
|
+
var value = new proto.bonus.CurrencyStatusItem;
|
|
6312
|
+
reader.readMessage(value,proto.bonus.CurrencyStatusItem.deserializeBinaryFromReader);
|
|
6313
|
+
msg.addCurrencyCoverage(value);
|
|
6314
|
+
break;
|
|
6315
|
+
case 33:
|
|
6316
|
+
var value = new proto.bonus.CurrencyStatusItem;
|
|
6317
|
+
reader.readMessage(value,proto.bonus.CurrencyStatusItem.deserializeBinaryFromReader);
|
|
6318
|
+
msg.addActivationReadiness(value);
|
|
6319
|
+
break;
|
|
6320
|
+
case 34:
|
|
6321
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6322
|
+
msg.setTiming(value);
|
|
6323
|
+
break;
|
|
6324
|
+
case 35:
|
|
6325
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6326
|
+
msg.setSegments(value);
|
|
6327
|
+
break;
|
|
6071
6328
|
default:
|
|
6072
6329
|
reader.skipField();
|
|
6073
6330
|
break;
|
|
@@ -6298,6 +6555,57 @@ proto.bonus.BonusItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
6298
6555
|
f
|
|
6299
6556
|
);
|
|
6300
6557
|
}
|
|
6558
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 29));
|
|
6559
|
+
if (f != null) {
|
|
6560
|
+
writer.writeString(
|
|
6561
|
+
29,
|
|
6562
|
+
f
|
|
6563
|
+
);
|
|
6564
|
+
}
|
|
6565
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 30));
|
|
6566
|
+
if (f != null) {
|
|
6567
|
+
writer.writeString(
|
|
6568
|
+
30,
|
|
6569
|
+
f
|
|
6570
|
+
);
|
|
6571
|
+
}
|
|
6572
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 31));
|
|
6573
|
+
if (f != null) {
|
|
6574
|
+
writer.writeString(
|
|
6575
|
+
31,
|
|
6576
|
+
f
|
|
6577
|
+
);
|
|
6578
|
+
}
|
|
6579
|
+
f = message.getCurrencyCoverageList();
|
|
6580
|
+
if (f.length > 0) {
|
|
6581
|
+
writer.writeRepeatedMessage(
|
|
6582
|
+
32,
|
|
6583
|
+
f,
|
|
6584
|
+
proto.bonus.CurrencyStatusItem.serializeBinaryToWriter
|
|
6585
|
+
);
|
|
6586
|
+
}
|
|
6587
|
+
f = message.getActivationReadinessList();
|
|
6588
|
+
if (f.length > 0) {
|
|
6589
|
+
writer.writeRepeatedMessage(
|
|
6590
|
+
33,
|
|
6591
|
+
f,
|
|
6592
|
+
proto.bonus.CurrencyStatusItem.serializeBinaryToWriter
|
|
6593
|
+
);
|
|
6594
|
+
}
|
|
6595
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 34));
|
|
6596
|
+
if (f != null) {
|
|
6597
|
+
writer.writeString(
|
|
6598
|
+
34,
|
|
6599
|
+
f
|
|
6600
|
+
);
|
|
6601
|
+
}
|
|
6602
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 35));
|
|
6603
|
+
if (f != null) {
|
|
6604
|
+
writer.writeString(
|
|
6605
|
+
35,
|
|
6606
|
+
f
|
|
6607
|
+
);
|
|
6608
|
+
}
|
|
6301
6609
|
};
|
|
6302
6610
|
|
|
6303
6611
|
|
|
@@ -7320,6 +7628,262 @@ proto.bonus.BonusItem.prototype.hasSlug = function() {
|
|
|
7320
7628
|
};
|
|
7321
7629
|
|
|
7322
7630
|
|
|
7631
|
+
/**
|
|
7632
|
+
* optional string aggregated_type = 29;
|
|
7633
|
+
* @return {string}
|
|
7634
|
+
*/
|
|
7635
|
+
proto.bonus.BonusItem.prototype.getAggregatedType = function() {
|
|
7636
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, ""));
|
|
7637
|
+
};
|
|
7638
|
+
|
|
7639
|
+
|
|
7640
|
+
/**
|
|
7641
|
+
* @param {string} value
|
|
7642
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
7643
|
+
*/
|
|
7644
|
+
proto.bonus.BonusItem.prototype.setAggregatedType = function(value) {
|
|
7645
|
+
return jspb.Message.setField(this, 29, value);
|
|
7646
|
+
};
|
|
7647
|
+
|
|
7648
|
+
|
|
7649
|
+
/**
|
|
7650
|
+
* Clears the field making it undefined.
|
|
7651
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
7652
|
+
*/
|
|
7653
|
+
proto.bonus.BonusItem.prototype.clearAggregatedType = function() {
|
|
7654
|
+
return jspb.Message.setField(this, 29, undefined);
|
|
7655
|
+
};
|
|
7656
|
+
|
|
7657
|
+
|
|
7658
|
+
/**
|
|
7659
|
+
* Returns whether this field is set.
|
|
7660
|
+
* @return {boolean}
|
|
7661
|
+
*/
|
|
7662
|
+
proto.bonus.BonusItem.prototype.hasAggregatedType = function() {
|
|
7663
|
+
return jspb.Message.getField(this, 29) != null;
|
|
7664
|
+
};
|
|
7665
|
+
|
|
7666
|
+
|
|
7667
|
+
/**
|
|
7668
|
+
* optional string wager_balance = 30;
|
|
7669
|
+
* @return {string}
|
|
7670
|
+
*/
|
|
7671
|
+
proto.bonus.BonusItem.prototype.getWagerBalance = function() {
|
|
7672
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 30, ""));
|
|
7673
|
+
};
|
|
7674
|
+
|
|
7675
|
+
|
|
7676
|
+
/**
|
|
7677
|
+
* @param {string} value
|
|
7678
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
7679
|
+
*/
|
|
7680
|
+
proto.bonus.BonusItem.prototype.setWagerBalance = function(value) {
|
|
7681
|
+
return jspb.Message.setField(this, 30, value);
|
|
7682
|
+
};
|
|
7683
|
+
|
|
7684
|
+
|
|
7685
|
+
/**
|
|
7686
|
+
* Clears the field making it undefined.
|
|
7687
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
7688
|
+
*/
|
|
7689
|
+
proto.bonus.BonusItem.prototype.clearWagerBalance = function() {
|
|
7690
|
+
return jspb.Message.setField(this, 30, undefined);
|
|
7691
|
+
};
|
|
7692
|
+
|
|
7693
|
+
|
|
7694
|
+
/**
|
|
7695
|
+
* Returns whether this field is set.
|
|
7696
|
+
* @return {boolean}
|
|
7697
|
+
*/
|
|
7698
|
+
proto.bonus.BonusItem.prototype.hasWagerBalance = function() {
|
|
7699
|
+
return jspb.Message.getField(this, 30) != null;
|
|
7700
|
+
};
|
|
7701
|
+
|
|
7702
|
+
|
|
7703
|
+
/**
|
|
7704
|
+
* optional string wager = 31;
|
|
7705
|
+
* @return {string}
|
|
7706
|
+
*/
|
|
7707
|
+
proto.bonus.BonusItem.prototype.getWager = function() {
|
|
7708
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 31, ""));
|
|
7709
|
+
};
|
|
7710
|
+
|
|
7711
|
+
|
|
7712
|
+
/**
|
|
7713
|
+
* @param {string} value
|
|
7714
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
7715
|
+
*/
|
|
7716
|
+
proto.bonus.BonusItem.prototype.setWager = function(value) {
|
|
7717
|
+
return jspb.Message.setField(this, 31, value);
|
|
7718
|
+
};
|
|
7719
|
+
|
|
7720
|
+
|
|
7721
|
+
/**
|
|
7722
|
+
* Clears the field making it undefined.
|
|
7723
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
7724
|
+
*/
|
|
7725
|
+
proto.bonus.BonusItem.prototype.clearWager = function() {
|
|
7726
|
+
return jspb.Message.setField(this, 31, undefined);
|
|
7727
|
+
};
|
|
7728
|
+
|
|
7729
|
+
|
|
7730
|
+
/**
|
|
7731
|
+
* Returns whether this field is set.
|
|
7732
|
+
* @return {boolean}
|
|
7733
|
+
*/
|
|
7734
|
+
proto.bonus.BonusItem.prototype.hasWager = function() {
|
|
7735
|
+
return jspb.Message.getField(this, 31) != null;
|
|
7736
|
+
};
|
|
7737
|
+
|
|
7738
|
+
|
|
7739
|
+
/**
|
|
7740
|
+
* repeated CurrencyStatusItem currency_coverage = 32;
|
|
7741
|
+
* @return {!Array<!proto.bonus.CurrencyStatusItem>}
|
|
7742
|
+
*/
|
|
7743
|
+
proto.bonus.BonusItem.prototype.getCurrencyCoverageList = function() {
|
|
7744
|
+
return /** @type{!Array<!proto.bonus.CurrencyStatusItem>} */ (
|
|
7745
|
+
jspb.Message.getRepeatedWrapperField(this, proto.bonus.CurrencyStatusItem, 32));
|
|
7746
|
+
};
|
|
7747
|
+
|
|
7748
|
+
|
|
7749
|
+
/**
|
|
7750
|
+
* @param {!Array<!proto.bonus.CurrencyStatusItem>} value
|
|
7751
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
7752
|
+
*/
|
|
7753
|
+
proto.bonus.BonusItem.prototype.setCurrencyCoverageList = function(value) {
|
|
7754
|
+
return jspb.Message.setRepeatedWrapperField(this, 32, value);
|
|
7755
|
+
};
|
|
7756
|
+
|
|
7757
|
+
|
|
7758
|
+
/**
|
|
7759
|
+
* @param {!proto.bonus.CurrencyStatusItem=} opt_value
|
|
7760
|
+
* @param {number=} opt_index
|
|
7761
|
+
* @return {!proto.bonus.CurrencyStatusItem}
|
|
7762
|
+
*/
|
|
7763
|
+
proto.bonus.BonusItem.prototype.addCurrencyCoverage = function(opt_value, opt_index) {
|
|
7764
|
+
return jspb.Message.addToRepeatedWrapperField(this, 32, opt_value, proto.bonus.CurrencyStatusItem, opt_index);
|
|
7765
|
+
};
|
|
7766
|
+
|
|
7767
|
+
|
|
7768
|
+
/**
|
|
7769
|
+
* Clears the list making it empty but non-null.
|
|
7770
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
7771
|
+
*/
|
|
7772
|
+
proto.bonus.BonusItem.prototype.clearCurrencyCoverageList = function() {
|
|
7773
|
+
return this.setCurrencyCoverageList([]);
|
|
7774
|
+
};
|
|
7775
|
+
|
|
7776
|
+
|
|
7777
|
+
/**
|
|
7778
|
+
* repeated CurrencyStatusItem activation_readiness = 33;
|
|
7779
|
+
* @return {!Array<!proto.bonus.CurrencyStatusItem>}
|
|
7780
|
+
*/
|
|
7781
|
+
proto.bonus.BonusItem.prototype.getActivationReadinessList = function() {
|
|
7782
|
+
return /** @type{!Array<!proto.bonus.CurrencyStatusItem>} */ (
|
|
7783
|
+
jspb.Message.getRepeatedWrapperField(this, proto.bonus.CurrencyStatusItem, 33));
|
|
7784
|
+
};
|
|
7785
|
+
|
|
7786
|
+
|
|
7787
|
+
/**
|
|
7788
|
+
* @param {!Array<!proto.bonus.CurrencyStatusItem>} value
|
|
7789
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
7790
|
+
*/
|
|
7791
|
+
proto.bonus.BonusItem.prototype.setActivationReadinessList = function(value) {
|
|
7792
|
+
return jspb.Message.setRepeatedWrapperField(this, 33, value);
|
|
7793
|
+
};
|
|
7794
|
+
|
|
7795
|
+
|
|
7796
|
+
/**
|
|
7797
|
+
* @param {!proto.bonus.CurrencyStatusItem=} opt_value
|
|
7798
|
+
* @param {number=} opt_index
|
|
7799
|
+
* @return {!proto.bonus.CurrencyStatusItem}
|
|
7800
|
+
*/
|
|
7801
|
+
proto.bonus.BonusItem.prototype.addActivationReadiness = function(opt_value, opt_index) {
|
|
7802
|
+
return jspb.Message.addToRepeatedWrapperField(this, 33, opt_value, proto.bonus.CurrencyStatusItem, opt_index);
|
|
7803
|
+
};
|
|
7804
|
+
|
|
7805
|
+
|
|
7806
|
+
/**
|
|
7807
|
+
* Clears the list making it empty but non-null.
|
|
7808
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
7809
|
+
*/
|
|
7810
|
+
proto.bonus.BonusItem.prototype.clearActivationReadinessList = function() {
|
|
7811
|
+
return this.setActivationReadinessList([]);
|
|
7812
|
+
};
|
|
7813
|
+
|
|
7814
|
+
|
|
7815
|
+
/**
|
|
7816
|
+
* optional string timing = 34;
|
|
7817
|
+
* @return {string}
|
|
7818
|
+
*/
|
|
7819
|
+
proto.bonus.BonusItem.prototype.getTiming = function() {
|
|
7820
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 34, ""));
|
|
7821
|
+
};
|
|
7822
|
+
|
|
7823
|
+
|
|
7824
|
+
/**
|
|
7825
|
+
* @param {string} value
|
|
7826
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
7827
|
+
*/
|
|
7828
|
+
proto.bonus.BonusItem.prototype.setTiming = function(value) {
|
|
7829
|
+
return jspb.Message.setField(this, 34, value);
|
|
7830
|
+
};
|
|
7831
|
+
|
|
7832
|
+
|
|
7833
|
+
/**
|
|
7834
|
+
* Clears the field making it undefined.
|
|
7835
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
7836
|
+
*/
|
|
7837
|
+
proto.bonus.BonusItem.prototype.clearTiming = function() {
|
|
7838
|
+
return jspb.Message.setField(this, 34, undefined);
|
|
7839
|
+
};
|
|
7840
|
+
|
|
7841
|
+
|
|
7842
|
+
/**
|
|
7843
|
+
* Returns whether this field is set.
|
|
7844
|
+
* @return {boolean}
|
|
7845
|
+
*/
|
|
7846
|
+
proto.bonus.BonusItem.prototype.hasTiming = function() {
|
|
7847
|
+
return jspb.Message.getField(this, 34) != null;
|
|
7848
|
+
};
|
|
7849
|
+
|
|
7850
|
+
|
|
7851
|
+
/**
|
|
7852
|
+
* optional string segments = 35;
|
|
7853
|
+
* @return {string}
|
|
7854
|
+
*/
|
|
7855
|
+
proto.bonus.BonusItem.prototype.getSegments = function() {
|
|
7856
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 35, ""));
|
|
7857
|
+
};
|
|
7858
|
+
|
|
7859
|
+
|
|
7860
|
+
/**
|
|
7861
|
+
* @param {string} value
|
|
7862
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
7863
|
+
*/
|
|
7864
|
+
proto.bonus.BonusItem.prototype.setSegments = function(value) {
|
|
7865
|
+
return jspb.Message.setField(this, 35, value);
|
|
7866
|
+
};
|
|
7867
|
+
|
|
7868
|
+
|
|
7869
|
+
/**
|
|
7870
|
+
* Clears the field making it undefined.
|
|
7871
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
7872
|
+
*/
|
|
7873
|
+
proto.bonus.BonusItem.prototype.clearSegments = function() {
|
|
7874
|
+
return jspb.Message.setField(this, 35, undefined);
|
|
7875
|
+
};
|
|
7876
|
+
|
|
7877
|
+
|
|
7878
|
+
/**
|
|
7879
|
+
* Returns whether this field is set.
|
|
7880
|
+
* @return {boolean}
|
|
7881
|
+
*/
|
|
7882
|
+
proto.bonus.BonusItem.prototype.hasSegments = function() {
|
|
7883
|
+
return jspb.Message.getField(this, 35) != null;
|
|
7884
|
+
};
|
|
7885
|
+
|
|
7886
|
+
|
|
7323
7887
|
|
|
7324
7888
|
/**
|
|
7325
7889
|
* List of repeated fields within this message type.
|
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.
|