protobuf-platform 1.2.660 → 1.2.661

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/game/game_pb.js CHANGED
@@ -199,6 +199,7 @@ goog.exportSymbol('proto.game.SearchGamesIntoCollectionsRequest', null, global);
199
199
  goog.exportSymbol('proto.game.SearchGamesIntoProvidersRequest', null, global);
200
200
  goog.exportSymbol('proto.game.SearchGamesIntoTagsRequest', null, global);
201
201
  goog.exportSymbol('proto.game.SearchGamesResponse', null, global);
202
+ goog.exportSymbol('proto.game.SegmentGameUuidsResponse', null, global);
202
203
  goog.exportSymbol('proto.game.SegmentedUserRequest', null, global);
203
204
  goog.exportSymbol('proto.game.SegmentedUserResponse', null, global);
204
205
  goog.exportSymbol('proto.game.SetProviderCurrencyManagerEnabledRequest', null, global);
@@ -4117,6 +4118,27 @@ if (goog.DEBUG && !COMPILED) {
4117
4118
  */
4118
4119
  proto.game.SegmentedUserResponse.displayName = 'proto.game.SegmentedUserResponse';
4119
4120
  }
4121
+ /**
4122
+ * Generated by JsPbCodeGenerator.
4123
+ * @param {Array=} opt_data Optional initial data array, typically from a
4124
+ * server response, or constructed directly in Javascript. The array is used
4125
+ * in place and becomes part of the constructed object. It is not cloned.
4126
+ * If no data is provided, the constructed object will be empty, but still
4127
+ * valid.
4128
+ * @extends {jspb.Message}
4129
+ * @constructor
4130
+ */
4131
+ proto.game.SegmentGameUuidsResponse = function(opt_data) {
4132
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.SegmentGameUuidsResponse.repeatedFields_, null);
4133
+ };
4134
+ goog.inherits(proto.game.SegmentGameUuidsResponse, jspb.Message);
4135
+ if (goog.DEBUG && !COMPILED) {
4136
+ /**
4137
+ * @public
4138
+ * @override
4139
+ */
4140
+ proto.game.SegmentGameUuidsResponse.displayName = 'proto.game.SegmentGameUuidsResponse';
4141
+ }
4120
4142
  /**
4121
4143
  * Generated by JsPbCodeGenerator.
4122
4144
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -58317,7 +58339,7 @@ proto.game.SEOInstanceResponse.prototype.hasImages = function() {
58317
58339
  * @private {!Array<number>}
58318
58340
  * @const
58319
58341
  */
58320
- proto.game.SegmentedUserRequest.repeatedFields_ = [1,2,3,4];
58342
+ proto.game.SegmentedUserRequest.repeatedFields_ = [1,2,3,4,7];
58321
58343
 
58322
58344
 
58323
58345
 
@@ -58355,7 +58377,8 @@ proto.game.SegmentedUserRequest.toObject = function(includeInstance, msg) {
58355
58377
  tagIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
58356
58378
  gameIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
58357
58379
  rtpMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
58358
- rtpMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0)
58380
+ rtpMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
58381
+ candidateGameUuidsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
58359
58382
  };
58360
58383
 
58361
58384
  if (includeInstance) {
@@ -58424,6 +58447,10 @@ proto.game.SegmentedUserRequest.deserializeBinaryFromReader = function(msg, read
58424
58447
  var value = /** @type {number} */ (reader.readFloat());
58425
58448
  msg.setRtpMax(value);
58426
58449
  break;
58450
+ case 7:
58451
+ var value = /** @type {string} */ (reader.readString());
58452
+ msg.addCandidateGameUuids(value);
58453
+ break;
58427
58454
  default:
58428
58455
  reader.skipField();
58429
58456
  break;
@@ -58495,6 +58522,13 @@ proto.game.SegmentedUserRequest.serializeBinaryToWriter = function(message, writ
58495
58522
  f
58496
58523
  );
58497
58524
  }
58525
+ f = message.getCandidateGameUuidsList();
58526
+ if (f.length > 0) {
58527
+ writer.writeRepeatedString(
58528
+ 7,
58529
+ f
58530
+ );
58531
+ }
58498
58532
  };
58499
58533
 
58500
58534
 
@@ -58718,6 +58752,43 @@ proto.game.SegmentedUserRequest.prototype.hasRtpMax = function() {
58718
58752
  };
58719
58753
 
58720
58754
 
58755
+ /**
58756
+ * repeated string candidate_game_uuids = 7;
58757
+ * @return {!Array<string>}
58758
+ */
58759
+ proto.game.SegmentedUserRequest.prototype.getCandidateGameUuidsList = function() {
58760
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
58761
+ };
58762
+
58763
+
58764
+ /**
58765
+ * @param {!Array<string>} value
58766
+ * @return {!proto.game.SegmentedUserRequest} returns this
58767
+ */
58768
+ proto.game.SegmentedUserRequest.prototype.setCandidateGameUuidsList = function(value) {
58769
+ return jspb.Message.setField(this, 7, value || []);
58770
+ };
58771
+
58772
+
58773
+ /**
58774
+ * @param {string} value
58775
+ * @param {number=} opt_index
58776
+ * @return {!proto.game.SegmentedUserRequest} returns this
58777
+ */
58778
+ proto.game.SegmentedUserRequest.prototype.addCandidateGameUuids = function(value, opt_index) {
58779
+ return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
58780
+ };
58781
+
58782
+
58783
+ /**
58784
+ * Clears the list making it empty but non-null.
58785
+ * @return {!proto.game.SegmentedUserRequest} returns this
58786
+ */
58787
+ proto.game.SegmentedUserRequest.prototype.clearCandidateGameUuidsList = function() {
58788
+ return this.setCandidateGameUuidsList([]);
58789
+ };
58790
+
58791
+
58721
58792
 
58722
58793
  /**
58723
58794
  * List of repeated fields within this message type.
@@ -58877,6 +58948,162 @@ proto.game.SegmentedUserResponse.prototype.clearUserIdsList = function() {
58877
58948
 
58878
58949
 
58879
58950
 
58951
+ /**
58952
+ * List of repeated fields within this message type.
58953
+ * @private {!Array<number>}
58954
+ * @const
58955
+ */
58956
+ proto.game.SegmentGameUuidsResponse.repeatedFields_ = [1];
58957
+
58958
+
58959
+
58960
+ if (jspb.Message.GENERATE_TO_OBJECT) {
58961
+ /**
58962
+ * Creates an object representation of this proto.
58963
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
58964
+ * Optional fields that are not set will be set to undefined.
58965
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
58966
+ * For the list of reserved names please see:
58967
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
58968
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
58969
+ * JSPB instance for transitional soy proto support:
58970
+ * http://goto/soy-param-migration
58971
+ * @return {!Object}
58972
+ */
58973
+ proto.game.SegmentGameUuidsResponse.prototype.toObject = function(opt_includeInstance) {
58974
+ return proto.game.SegmentGameUuidsResponse.toObject(opt_includeInstance, this);
58975
+ };
58976
+
58977
+
58978
+ /**
58979
+ * Static version of the {@see toObject} method.
58980
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
58981
+ * the JSPB instance for transitional soy proto support:
58982
+ * http://goto/soy-param-migration
58983
+ * @param {!proto.game.SegmentGameUuidsResponse} msg The msg instance to transform.
58984
+ * @return {!Object}
58985
+ * @suppress {unusedLocalVariables} f is only used for nested messages
58986
+ */
58987
+ proto.game.SegmentGameUuidsResponse.toObject = function(includeInstance, msg) {
58988
+ var f, obj = {
58989
+ gameUuidsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
58990
+ };
58991
+
58992
+ if (includeInstance) {
58993
+ obj.$jspbMessageInstance = msg;
58994
+ }
58995
+ return obj;
58996
+ };
58997
+ }
58998
+
58999
+
59000
+ /**
59001
+ * Deserializes binary data (in protobuf wire format).
59002
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
59003
+ * @return {!proto.game.SegmentGameUuidsResponse}
59004
+ */
59005
+ proto.game.SegmentGameUuidsResponse.deserializeBinary = function(bytes) {
59006
+ var reader = new jspb.BinaryReader(bytes);
59007
+ var msg = new proto.game.SegmentGameUuidsResponse;
59008
+ return proto.game.SegmentGameUuidsResponse.deserializeBinaryFromReader(msg, reader);
59009
+ };
59010
+
59011
+
59012
+ /**
59013
+ * Deserializes binary data (in protobuf wire format) from the
59014
+ * given reader into the given message object.
59015
+ * @param {!proto.game.SegmentGameUuidsResponse} msg The message object to deserialize into.
59016
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
59017
+ * @return {!proto.game.SegmentGameUuidsResponse}
59018
+ */
59019
+ proto.game.SegmentGameUuidsResponse.deserializeBinaryFromReader = function(msg, reader) {
59020
+ while (reader.nextField()) {
59021
+ if (reader.isEndGroup()) {
59022
+ break;
59023
+ }
59024
+ var field = reader.getFieldNumber();
59025
+ switch (field) {
59026
+ case 1:
59027
+ var value = /** @type {string} */ (reader.readString());
59028
+ msg.addGameUuids(value);
59029
+ break;
59030
+ default:
59031
+ reader.skipField();
59032
+ break;
59033
+ }
59034
+ }
59035
+ return msg;
59036
+ };
59037
+
59038
+
59039
+ /**
59040
+ * Serializes the message to binary data (in protobuf wire format).
59041
+ * @return {!Uint8Array}
59042
+ */
59043
+ proto.game.SegmentGameUuidsResponse.prototype.serializeBinary = function() {
59044
+ var writer = new jspb.BinaryWriter();
59045
+ proto.game.SegmentGameUuidsResponse.serializeBinaryToWriter(this, writer);
59046
+ return writer.getResultBuffer();
59047
+ };
59048
+
59049
+
59050
+ /**
59051
+ * Serializes the given message to binary data (in protobuf wire
59052
+ * format), writing to the given BinaryWriter.
59053
+ * @param {!proto.game.SegmentGameUuidsResponse} message
59054
+ * @param {!jspb.BinaryWriter} writer
59055
+ * @suppress {unusedLocalVariables} f is only used for nested messages
59056
+ */
59057
+ proto.game.SegmentGameUuidsResponse.serializeBinaryToWriter = function(message, writer) {
59058
+ var f = undefined;
59059
+ f = message.getGameUuidsList();
59060
+ if (f.length > 0) {
59061
+ writer.writeRepeatedString(
59062
+ 1,
59063
+ f
59064
+ );
59065
+ }
59066
+ };
59067
+
59068
+
59069
+ /**
59070
+ * repeated string game_uuids = 1;
59071
+ * @return {!Array<string>}
59072
+ */
59073
+ proto.game.SegmentGameUuidsResponse.prototype.getGameUuidsList = function() {
59074
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
59075
+ };
59076
+
59077
+
59078
+ /**
59079
+ * @param {!Array<string>} value
59080
+ * @return {!proto.game.SegmentGameUuidsResponse} returns this
59081
+ */
59082
+ proto.game.SegmentGameUuidsResponse.prototype.setGameUuidsList = function(value) {
59083
+ return jspb.Message.setField(this, 1, value || []);
59084
+ };
59085
+
59086
+
59087
+ /**
59088
+ * @param {string} value
59089
+ * @param {number=} opt_index
59090
+ * @return {!proto.game.SegmentGameUuidsResponse} returns this
59091
+ */
59092
+ proto.game.SegmentGameUuidsResponse.prototype.addGameUuids = function(value, opt_index) {
59093
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
59094
+ };
59095
+
59096
+
59097
+ /**
59098
+ * Clears the list making it empty but non-null.
59099
+ * @return {!proto.game.SegmentGameUuidsResponse} returns this
59100
+ */
59101
+ proto.game.SegmentGameUuidsResponse.prototype.clearGameUuidsList = function() {
59102
+ return this.setGameUuidsList([]);
59103
+ };
59104
+
59105
+
59106
+
58880
59107
  /**
58881
59108
  * List of repeated fields within this message type.
58882
59109
  * @private {!Array<number>}
@@ -31,6 +31,8 @@ service Notification {
31
31
  //Users
32
32
  rpc sendNotificationToUsers(SendNotificationRequest) returns (NotificationStatusResponse);
33
33
  rpc dispatchManualNotificationToSegments(DispatchManualNotificationRequest) returns (NotificationStatusResponse);
34
+ rpc readAutoNotificationSegmentIds(GetNotificationRequest) returns (AutoNotificationSegmentIdsResponse);
35
+ rpc replaceAutoNotificationSegmentIds(ReplaceAutoNotificationSegmentIdsRequest) returns (AutoNotificationSegmentIdsResponse);
34
36
  rpc sendSms(SendSmsRequest) returns (SmsSendResponse);
35
37
  rpc getNotificationForParticularUser(PaginationRequest) returns (UserNotificationItemsResponse);
36
38
  rpc getNotificationsCountForUser(NotificationSearchRequest) returns (UserNotificationsCountResponse);
@@ -124,6 +126,13 @@ message DispatchManualNotificationRequest {
124
126
  int32 notification_id = 1;
125
127
  repeated int32 segment_ids = 2;
126
128
  }
129
+ message ReplaceAutoNotificationSegmentIdsRequest {
130
+ int32 notification_id = 1;
131
+ repeated int32 segment_ids = 2;
132
+ }
133
+ message AutoNotificationSegmentIdsResponse {
134
+ repeated int32 segment_ids = 1;
135
+ }
127
136
  message SendSmsRequest {
128
137
  string phone = 1;
129
138
  string message = 2;
@@ -4,6 +4,17 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var notification_pb = require('./notification_pb.js');
6
6
 
7
+ function serialize_notification_AutoNotificationSegmentIdsResponse(arg) {
8
+ if (!(arg instanceof notification_pb.AutoNotificationSegmentIdsResponse)) {
9
+ throw new Error('Expected argument of type notification.AutoNotificationSegmentIdsResponse');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_notification_AutoNotificationSegmentIdsResponse(buffer_arg) {
15
+ return notification_pb.AutoNotificationSegmentIdsResponse.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
7
18
  function serialize_notification_DeleteAllUserNotificationsRequest(arg) {
8
19
  if (!(arg instanceof notification_pb.DeleteAllUserNotificationsRequest)) {
9
20
  throw new Error('Expected argument of type notification.DeleteAllUserNotificationsRequest');
@@ -356,6 +367,17 @@ function deserialize_notification_ReadAllUserNotificationsRequest(buffer_arg) {
356
367
  return notification_pb.ReadAllUserNotificationsRequest.deserializeBinary(new Uint8Array(buffer_arg));
357
368
  }
358
369
 
370
+ function serialize_notification_ReplaceAutoNotificationSegmentIdsRequest(arg) {
371
+ if (!(arg instanceof notification_pb.ReplaceAutoNotificationSegmentIdsRequest)) {
372
+ throw new Error('Expected argument of type notification.ReplaceAutoNotificationSegmentIdsRequest');
373
+ }
374
+ return Buffer.from(arg.serializeBinary());
375
+ }
376
+
377
+ function deserialize_notification_ReplaceAutoNotificationSegmentIdsRequest(buffer_arg) {
378
+ return notification_pb.ReplaceAutoNotificationSegmentIdsRequest.deserializeBinary(new Uint8Array(buffer_arg));
379
+ }
380
+
359
381
  function serialize_notification_ResolveAffiliateByPromoCodeRequest(arg) {
360
382
  if (!(arg instanceof notification_pb.ResolveAffiliateByPromoCodeRequest)) {
361
383
  throw new Error('Expected argument of type notification.ResolveAffiliateByPromoCodeRequest');
@@ -713,6 +735,28 @@ sendNotificationToUsers: {
713
735
  responseSerialize: serialize_notification_NotificationStatusResponse,
714
736
  responseDeserialize: deserialize_notification_NotificationStatusResponse,
715
737
  },
738
+ readAutoNotificationSegmentIds: {
739
+ path: '/notification.Notification/readAutoNotificationSegmentIds',
740
+ requestStream: false,
741
+ responseStream: false,
742
+ requestType: notification_pb.GetNotificationRequest,
743
+ responseType: notification_pb.AutoNotificationSegmentIdsResponse,
744
+ requestSerialize: serialize_notification_GetNotificationRequest,
745
+ requestDeserialize: deserialize_notification_GetNotificationRequest,
746
+ responseSerialize: serialize_notification_AutoNotificationSegmentIdsResponse,
747
+ responseDeserialize: deserialize_notification_AutoNotificationSegmentIdsResponse,
748
+ },
749
+ replaceAutoNotificationSegmentIds: {
750
+ path: '/notification.Notification/replaceAutoNotificationSegmentIds',
751
+ requestStream: false,
752
+ responseStream: false,
753
+ requestType: notification_pb.ReplaceAutoNotificationSegmentIdsRequest,
754
+ responseType: notification_pb.AutoNotificationSegmentIdsResponse,
755
+ requestSerialize: serialize_notification_ReplaceAutoNotificationSegmentIdsRequest,
756
+ requestDeserialize: deserialize_notification_ReplaceAutoNotificationSegmentIdsRequest,
757
+ responseSerialize: serialize_notification_AutoNotificationSegmentIdsResponse,
758
+ responseDeserialize: deserialize_notification_AutoNotificationSegmentIdsResponse,
759
+ },
716
760
  sendSms: {
717
761
  path: '/notification.Notification/sendSms',
718
762
  requestStream: false,