protobuf-platform 1.2.629 → 1.2.632

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/bonus/bonus.proto CHANGED
@@ -29,6 +29,7 @@ service Bonus {
29
29
  rpc claimUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
30
30
  // Idempotent dynamic grant keyed by grant_source + grant_id.
31
31
  rpc grantDynamicUserBonus(GrantDynamicUserBonusRequest) returns (GrantDynamicUserBonusResponse);
32
+ rpc grantSystemUserBonus(GrantSystemUserBonusRequest) returns (GrantSystemUserBonusResponse);
32
33
  rpc cancelUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
33
34
  rpc activateUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
34
35
  rpc applyUserPromocodeToUserBonus(ApplyUserPromocodeToUserBonusRequest) returns (BonusStatusResponse);
@@ -456,6 +457,17 @@ message ApplyUserBonusPromocodeRequest {
456
457
  optional string country = 5;
457
458
  optional string locale = 6;
458
459
  }
460
+ message GrantSystemUserBonusRequest {
461
+ int32 user_id = 1;
462
+ int32 bonus_template_id = 2;
463
+ string grant_source = 3;
464
+ string grant_id = 4;
465
+ string currency = 5;
466
+ }
467
+ message GrantSystemUserBonusResponse {
468
+ int32 user_bonus_id = 1;
469
+ string status = 2;
470
+ }
459
471
  message GrantDynamicUserBonusRequest {
460
472
  int32 user_id = 1;
461
473
  int32 bonus_template_id = 2;
@@ -379,6 +379,28 @@ function deserialize_bonus_GrantDynamicUserBonusResponse(buffer_arg) {
379
379
  return bonus_bonus_pb.GrantDynamicUserBonusResponse.deserializeBinary(new Uint8Array(buffer_arg));
380
380
  }
381
381
 
382
+ function serialize_bonus_GrantSystemUserBonusRequest(arg) {
383
+ if (!(arg instanceof bonus_bonus_pb.GrantSystemUserBonusRequest)) {
384
+ throw new Error('Expected argument of type bonus.GrantSystemUserBonusRequest');
385
+ }
386
+ return Buffer.from(arg.serializeBinary());
387
+ }
388
+
389
+ function deserialize_bonus_GrantSystemUserBonusRequest(buffer_arg) {
390
+ return bonus_bonus_pb.GrantSystemUserBonusRequest.deserializeBinary(new Uint8Array(buffer_arg));
391
+ }
392
+
393
+ function serialize_bonus_GrantSystemUserBonusResponse(arg) {
394
+ if (!(arg instanceof bonus_bonus_pb.GrantSystemUserBonusResponse)) {
395
+ throw new Error('Expected argument of type bonus.GrantSystemUserBonusResponse');
396
+ }
397
+ return Buffer.from(arg.serializeBinary());
398
+ }
399
+
400
+ function deserialize_bonus_GrantSystemUserBonusResponse(buffer_arg) {
401
+ return bonus_bonus_pb.GrantSystemUserBonusResponse.deserializeBinary(new Uint8Array(buffer_arg));
402
+ }
403
+
382
404
  function serialize_bonus_ItemsBunchRequest(arg) {
383
405
  if (!(arg instanceof bonus_bonus_pb.ItemsBunchRequest)) {
384
406
  throw new Error('Expected argument of type bonus.ItemsBunchRequest');
@@ -748,6 +770,17 @@ grantDynamicUserBonus: {
748
770
  responseSerialize: serialize_bonus_GrantDynamicUserBonusResponse,
749
771
  responseDeserialize: deserialize_bonus_GrantDynamicUserBonusResponse,
750
772
  },
773
+ grantSystemUserBonus: {
774
+ path: '/bonus.Bonus/grantSystemUserBonus',
775
+ requestStream: false,
776
+ responseStream: false,
777
+ requestType: bonus_bonus_pb.GrantSystemUserBonusRequest,
778
+ responseType: bonus_bonus_pb.GrantSystemUserBonusResponse,
779
+ requestSerialize: serialize_bonus_GrantSystemUserBonusRequest,
780
+ requestDeserialize: deserialize_bonus_GrantSystemUserBonusRequest,
781
+ responseSerialize: serialize_bonus_GrantSystemUserBonusResponse,
782
+ responseDeserialize: deserialize_bonus_GrantSystemUserBonusResponse,
783
+ },
751
784
  cancelUserBonus: {
752
785
  path: '/bonus.Bonus/cancelUserBonus',
753
786
  requestStream: false,
package/bonus/bonus_pb.js CHANGED
@@ -76,6 +76,8 @@ goog.exportSymbol('proto.bonus.GetUserBonusHistoryRequest', null, global);
76
76
  goog.exportSymbol('proto.bonus.GetUserBonusRequest', null, global);
77
77
  goog.exportSymbol('proto.bonus.GrantDynamicUserBonusRequest', null, global);
78
78
  goog.exportSymbol('proto.bonus.GrantDynamicUserBonusResponse', null, global);
79
+ goog.exportSymbol('proto.bonus.GrantSystemUserBonusRequest', null, global);
80
+ goog.exportSymbol('proto.bonus.GrantSystemUserBonusResponse', null, global);
79
81
  goog.exportSymbol('proto.bonus.ItemsBunchRequest', null, global);
80
82
  goog.exportSymbol('proto.bonus.ListSignUpBonusesRequest', null, global);
81
83
  goog.exportSymbol('proto.bonus.ListSignUpBonusesResponse', null, global);
@@ -973,6 +975,48 @@ if (goog.DEBUG && !COMPILED) {
973
975
  */
974
976
  proto.bonus.ApplyUserBonusPromocodeRequest.displayName = 'proto.bonus.ApplyUserBonusPromocodeRequest';
975
977
  }
978
+ /**
979
+ * Generated by JsPbCodeGenerator.
980
+ * @param {Array=} opt_data Optional initial data array, typically from a
981
+ * server response, or constructed directly in Javascript. The array is used
982
+ * in place and becomes part of the constructed object. It is not cloned.
983
+ * If no data is provided, the constructed object will be empty, but still
984
+ * valid.
985
+ * @extends {jspb.Message}
986
+ * @constructor
987
+ */
988
+ proto.bonus.GrantSystemUserBonusRequest = function(opt_data) {
989
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
990
+ };
991
+ goog.inherits(proto.bonus.GrantSystemUserBonusRequest, jspb.Message);
992
+ if (goog.DEBUG && !COMPILED) {
993
+ /**
994
+ * @public
995
+ * @override
996
+ */
997
+ proto.bonus.GrantSystemUserBonusRequest.displayName = 'proto.bonus.GrantSystemUserBonusRequest';
998
+ }
999
+ /**
1000
+ * Generated by JsPbCodeGenerator.
1001
+ * @param {Array=} opt_data Optional initial data array, typically from a
1002
+ * server response, or constructed directly in Javascript. The array is used
1003
+ * in place and becomes part of the constructed object. It is not cloned.
1004
+ * If no data is provided, the constructed object will be empty, but still
1005
+ * valid.
1006
+ * @extends {jspb.Message}
1007
+ * @constructor
1008
+ */
1009
+ proto.bonus.GrantSystemUserBonusResponse = function(opt_data) {
1010
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1011
+ };
1012
+ goog.inherits(proto.bonus.GrantSystemUserBonusResponse, jspb.Message);
1013
+ if (goog.DEBUG && !COMPILED) {
1014
+ /**
1015
+ * @public
1016
+ * @override
1017
+ */
1018
+ proto.bonus.GrantSystemUserBonusResponse.displayName = 'proto.bonus.GrantSystemUserBonusResponse';
1019
+ }
976
1020
  /**
977
1021
  * Generated by JsPbCodeGenerator.
978
1022
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -19781,6 +19825,416 @@ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasLocale = function() {
19781
19825
 
19782
19826
 
19783
19827
 
19828
+ if (jspb.Message.GENERATE_TO_OBJECT) {
19829
+ /**
19830
+ * Creates an object representation of this proto.
19831
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
19832
+ * Optional fields that are not set will be set to undefined.
19833
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
19834
+ * For the list of reserved names please see:
19835
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
19836
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
19837
+ * JSPB instance for transitional soy proto support:
19838
+ * http://goto/soy-param-migration
19839
+ * @return {!Object}
19840
+ */
19841
+ proto.bonus.GrantSystemUserBonusRequest.prototype.toObject = function(opt_includeInstance) {
19842
+ return proto.bonus.GrantSystemUserBonusRequest.toObject(opt_includeInstance, this);
19843
+ };
19844
+
19845
+
19846
+ /**
19847
+ * Static version of the {@see toObject} method.
19848
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19849
+ * the JSPB instance for transitional soy proto support:
19850
+ * http://goto/soy-param-migration
19851
+ * @param {!proto.bonus.GrantSystemUserBonusRequest} msg The msg instance to transform.
19852
+ * @return {!Object}
19853
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19854
+ */
19855
+ proto.bonus.GrantSystemUserBonusRequest.toObject = function(includeInstance, msg) {
19856
+ var f, obj = {
19857
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
19858
+ bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 2, 0),
19859
+ grantSource: jspb.Message.getFieldWithDefault(msg, 3, ""),
19860
+ grantId: jspb.Message.getFieldWithDefault(msg, 4, ""),
19861
+ currency: jspb.Message.getFieldWithDefault(msg, 5, "")
19862
+ };
19863
+
19864
+ if (includeInstance) {
19865
+ obj.$jspbMessageInstance = msg;
19866
+ }
19867
+ return obj;
19868
+ };
19869
+ }
19870
+
19871
+
19872
+ /**
19873
+ * Deserializes binary data (in protobuf wire format).
19874
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
19875
+ * @return {!proto.bonus.GrantSystemUserBonusRequest}
19876
+ */
19877
+ proto.bonus.GrantSystemUserBonusRequest.deserializeBinary = function(bytes) {
19878
+ var reader = new jspb.BinaryReader(bytes);
19879
+ var msg = new proto.bonus.GrantSystemUserBonusRequest;
19880
+ return proto.bonus.GrantSystemUserBonusRequest.deserializeBinaryFromReader(msg, reader);
19881
+ };
19882
+
19883
+
19884
+ /**
19885
+ * Deserializes binary data (in protobuf wire format) from the
19886
+ * given reader into the given message object.
19887
+ * @param {!proto.bonus.GrantSystemUserBonusRequest} msg The message object to deserialize into.
19888
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19889
+ * @return {!proto.bonus.GrantSystemUserBonusRequest}
19890
+ */
19891
+ proto.bonus.GrantSystemUserBonusRequest.deserializeBinaryFromReader = function(msg, reader) {
19892
+ while (reader.nextField()) {
19893
+ if (reader.isEndGroup()) {
19894
+ break;
19895
+ }
19896
+ var field = reader.getFieldNumber();
19897
+ switch (field) {
19898
+ case 1:
19899
+ var value = /** @type {number} */ (reader.readInt32());
19900
+ msg.setUserId(value);
19901
+ break;
19902
+ case 2:
19903
+ var value = /** @type {number} */ (reader.readInt32());
19904
+ msg.setBonusTemplateId(value);
19905
+ break;
19906
+ case 3:
19907
+ var value = /** @type {string} */ (reader.readString());
19908
+ msg.setGrantSource(value);
19909
+ break;
19910
+ case 4:
19911
+ var value = /** @type {string} */ (reader.readString());
19912
+ msg.setGrantId(value);
19913
+ break;
19914
+ case 5:
19915
+ var value = /** @type {string} */ (reader.readString());
19916
+ msg.setCurrency(value);
19917
+ break;
19918
+ default:
19919
+ reader.skipField();
19920
+ break;
19921
+ }
19922
+ }
19923
+ return msg;
19924
+ };
19925
+
19926
+
19927
+ /**
19928
+ * Serializes the message to binary data (in protobuf wire format).
19929
+ * @return {!Uint8Array}
19930
+ */
19931
+ proto.bonus.GrantSystemUserBonusRequest.prototype.serializeBinary = function() {
19932
+ var writer = new jspb.BinaryWriter();
19933
+ proto.bonus.GrantSystemUserBonusRequest.serializeBinaryToWriter(this, writer);
19934
+ return writer.getResultBuffer();
19935
+ };
19936
+
19937
+
19938
+ /**
19939
+ * Serializes the given message to binary data (in protobuf wire
19940
+ * format), writing to the given BinaryWriter.
19941
+ * @param {!proto.bonus.GrantSystemUserBonusRequest} message
19942
+ * @param {!jspb.BinaryWriter} writer
19943
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19944
+ */
19945
+ proto.bonus.GrantSystemUserBonusRequest.serializeBinaryToWriter = function(message, writer) {
19946
+ var f = undefined;
19947
+ f = message.getUserId();
19948
+ if (f !== 0) {
19949
+ writer.writeInt32(
19950
+ 1,
19951
+ f
19952
+ );
19953
+ }
19954
+ f = message.getBonusTemplateId();
19955
+ if (f !== 0) {
19956
+ writer.writeInt32(
19957
+ 2,
19958
+ f
19959
+ );
19960
+ }
19961
+ f = message.getGrantSource();
19962
+ if (f.length > 0) {
19963
+ writer.writeString(
19964
+ 3,
19965
+ f
19966
+ );
19967
+ }
19968
+ f = message.getGrantId();
19969
+ if (f.length > 0) {
19970
+ writer.writeString(
19971
+ 4,
19972
+ f
19973
+ );
19974
+ }
19975
+ f = message.getCurrency();
19976
+ if (f.length > 0) {
19977
+ writer.writeString(
19978
+ 5,
19979
+ f
19980
+ );
19981
+ }
19982
+ };
19983
+
19984
+
19985
+ /**
19986
+ * optional int32 user_id = 1;
19987
+ * @return {number}
19988
+ */
19989
+ proto.bonus.GrantSystemUserBonusRequest.prototype.getUserId = function() {
19990
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
19991
+ };
19992
+
19993
+
19994
+ /**
19995
+ * @param {number} value
19996
+ * @return {!proto.bonus.GrantSystemUserBonusRequest} returns this
19997
+ */
19998
+ proto.bonus.GrantSystemUserBonusRequest.prototype.setUserId = function(value) {
19999
+ return jspb.Message.setProto3IntField(this, 1, value);
20000
+ };
20001
+
20002
+
20003
+ /**
20004
+ * optional int32 bonus_template_id = 2;
20005
+ * @return {number}
20006
+ */
20007
+ proto.bonus.GrantSystemUserBonusRequest.prototype.getBonusTemplateId = function() {
20008
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
20009
+ };
20010
+
20011
+
20012
+ /**
20013
+ * @param {number} value
20014
+ * @return {!proto.bonus.GrantSystemUserBonusRequest} returns this
20015
+ */
20016
+ proto.bonus.GrantSystemUserBonusRequest.prototype.setBonusTemplateId = function(value) {
20017
+ return jspb.Message.setProto3IntField(this, 2, value);
20018
+ };
20019
+
20020
+
20021
+ /**
20022
+ * optional string grant_source = 3;
20023
+ * @return {string}
20024
+ */
20025
+ proto.bonus.GrantSystemUserBonusRequest.prototype.getGrantSource = function() {
20026
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
20027
+ };
20028
+
20029
+
20030
+ /**
20031
+ * @param {string} value
20032
+ * @return {!proto.bonus.GrantSystemUserBonusRequest} returns this
20033
+ */
20034
+ proto.bonus.GrantSystemUserBonusRequest.prototype.setGrantSource = function(value) {
20035
+ return jspb.Message.setProto3StringField(this, 3, value);
20036
+ };
20037
+
20038
+
20039
+ /**
20040
+ * optional string grant_id = 4;
20041
+ * @return {string}
20042
+ */
20043
+ proto.bonus.GrantSystemUserBonusRequest.prototype.getGrantId = function() {
20044
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
20045
+ };
20046
+
20047
+
20048
+ /**
20049
+ * @param {string} value
20050
+ * @return {!proto.bonus.GrantSystemUserBonusRequest} returns this
20051
+ */
20052
+ proto.bonus.GrantSystemUserBonusRequest.prototype.setGrantId = function(value) {
20053
+ return jspb.Message.setProto3StringField(this, 4, value);
20054
+ };
20055
+
20056
+
20057
+ /**
20058
+ * optional string currency = 5;
20059
+ * @return {string}
20060
+ */
20061
+ proto.bonus.GrantSystemUserBonusRequest.prototype.getCurrency = function() {
20062
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
20063
+ };
20064
+
20065
+
20066
+ /**
20067
+ * @param {string} value
20068
+ * @return {!proto.bonus.GrantSystemUserBonusRequest} returns this
20069
+ */
20070
+ proto.bonus.GrantSystemUserBonusRequest.prototype.setCurrency = function(value) {
20071
+ return jspb.Message.setProto3StringField(this, 5, value);
20072
+ };
20073
+
20074
+
20075
+
20076
+
20077
+
20078
+ if (jspb.Message.GENERATE_TO_OBJECT) {
20079
+ /**
20080
+ * Creates an object representation of this proto.
20081
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20082
+ * Optional fields that are not set will be set to undefined.
20083
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20084
+ * For the list of reserved names please see:
20085
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20086
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20087
+ * JSPB instance for transitional soy proto support:
20088
+ * http://goto/soy-param-migration
20089
+ * @return {!Object}
20090
+ */
20091
+ proto.bonus.GrantSystemUserBonusResponse.prototype.toObject = function(opt_includeInstance) {
20092
+ return proto.bonus.GrantSystemUserBonusResponse.toObject(opt_includeInstance, this);
20093
+ };
20094
+
20095
+
20096
+ /**
20097
+ * Static version of the {@see toObject} method.
20098
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20099
+ * the JSPB instance for transitional soy proto support:
20100
+ * http://goto/soy-param-migration
20101
+ * @param {!proto.bonus.GrantSystemUserBonusResponse} msg The msg instance to transform.
20102
+ * @return {!Object}
20103
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20104
+ */
20105
+ proto.bonus.GrantSystemUserBonusResponse.toObject = function(includeInstance, msg) {
20106
+ var f, obj = {
20107
+ userBonusId: jspb.Message.getFieldWithDefault(msg, 1, 0),
20108
+ status: jspb.Message.getFieldWithDefault(msg, 2, "")
20109
+ };
20110
+
20111
+ if (includeInstance) {
20112
+ obj.$jspbMessageInstance = msg;
20113
+ }
20114
+ return obj;
20115
+ };
20116
+ }
20117
+
20118
+
20119
+ /**
20120
+ * Deserializes binary data (in protobuf wire format).
20121
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
20122
+ * @return {!proto.bonus.GrantSystemUserBonusResponse}
20123
+ */
20124
+ proto.bonus.GrantSystemUserBonusResponse.deserializeBinary = function(bytes) {
20125
+ var reader = new jspb.BinaryReader(bytes);
20126
+ var msg = new proto.bonus.GrantSystemUserBonusResponse;
20127
+ return proto.bonus.GrantSystemUserBonusResponse.deserializeBinaryFromReader(msg, reader);
20128
+ };
20129
+
20130
+
20131
+ /**
20132
+ * Deserializes binary data (in protobuf wire format) from the
20133
+ * given reader into the given message object.
20134
+ * @param {!proto.bonus.GrantSystemUserBonusResponse} msg The message object to deserialize into.
20135
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20136
+ * @return {!proto.bonus.GrantSystemUserBonusResponse}
20137
+ */
20138
+ proto.bonus.GrantSystemUserBonusResponse.deserializeBinaryFromReader = function(msg, reader) {
20139
+ while (reader.nextField()) {
20140
+ if (reader.isEndGroup()) {
20141
+ break;
20142
+ }
20143
+ var field = reader.getFieldNumber();
20144
+ switch (field) {
20145
+ case 1:
20146
+ var value = /** @type {number} */ (reader.readInt32());
20147
+ msg.setUserBonusId(value);
20148
+ break;
20149
+ case 2:
20150
+ var value = /** @type {string} */ (reader.readString());
20151
+ msg.setStatus(value);
20152
+ break;
20153
+ default:
20154
+ reader.skipField();
20155
+ break;
20156
+ }
20157
+ }
20158
+ return msg;
20159
+ };
20160
+
20161
+
20162
+ /**
20163
+ * Serializes the message to binary data (in protobuf wire format).
20164
+ * @return {!Uint8Array}
20165
+ */
20166
+ proto.bonus.GrantSystemUserBonusResponse.prototype.serializeBinary = function() {
20167
+ var writer = new jspb.BinaryWriter();
20168
+ proto.bonus.GrantSystemUserBonusResponse.serializeBinaryToWriter(this, writer);
20169
+ return writer.getResultBuffer();
20170
+ };
20171
+
20172
+
20173
+ /**
20174
+ * Serializes the given message to binary data (in protobuf wire
20175
+ * format), writing to the given BinaryWriter.
20176
+ * @param {!proto.bonus.GrantSystemUserBonusResponse} message
20177
+ * @param {!jspb.BinaryWriter} writer
20178
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20179
+ */
20180
+ proto.bonus.GrantSystemUserBonusResponse.serializeBinaryToWriter = function(message, writer) {
20181
+ var f = undefined;
20182
+ f = message.getUserBonusId();
20183
+ if (f !== 0) {
20184
+ writer.writeInt32(
20185
+ 1,
20186
+ f
20187
+ );
20188
+ }
20189
+ f = message.getStatus();
20190
+ if (f.length > 0) {
20191
+ writer.writeString(
20192
+ 2,
20193
+ f
20194
+ );
20195
+ }
20196
+ };
20197
+
20198
+
20199
+ /**
20200
+ * optional int32 user_bonus_id = 1;
20201
+ * @return {number}
20202
+ */
20203
+ proto.bonus.GrantSystemUserBonusResponse.prototype.getUserBonusId = function() {
20204
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
20205
+ };
20206
+
20207
+
20208
+ /**
20209
+ * @param {number} value
20210
+ * @return {!proto.bonus.GrantSystemUserBonusResponse} returns this
20211
+ */
20212
+ proto.bonus.GrantSystemUserBonusResponse.prototype.setUserBonusId = function(value) {
20213
+ return jspb.Message.setProto3IntField(this, 1, value);
20214
+ };
20215
+
20216
+
20217
+ /**
20218
+ * optional string status = 2;
20219
+ * @return {string}
20220
+ */
20221
+ proto.bonus.GrantSystemUserBonusResponse.prototype.getStatus = function() {
20222
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
20223
+ };
20224
+
20225
+
20226
+ /**
20227
+ * @param {string} value
20228
+ * @return {!proto.bonus.GrantSystemUserBonusResponse} returns this
20229
+ */
20230
+ proto.bonus.GrantSystemUserBonusResponse.prototype.setStatus = function(value) {
20231
+ return jspb.Message.setProto3StringField(this, 2, value);
20232
+ };
20233
+
20234
+
20235
+
20236
+
20237
+
19784
20238
  if (jspb.Message.GENERATE_TO_OBJECT) {
19785
20239
  /**
19786
20240
  * Creates an object representation of this proto.
package/game/game.proto CHANGED
@@ -8,8 +8,8 @@ service Game {
8
8
  rpc updateSingleMultiScope(stream MultiScopeRequest) returns (MultiScopeResponse);
9
9
  rpc deleteSingleMultiScope(GetMultiScopeRequest) returns (MultiScopeStatusResponse);
10
10
  rpc readListMultiScopes(MultiScopeListRequest) returns (MultiScopeItemsResponse);
11
- rpc addMultiScopeMembers(MultiScopeMembersRequest) returns (MultiScopeStatusResponse);
12
- rpc removeMultiScopeMembers(MultiScopeMembersRequest) returns (MultiScopeStatusResponse);
11
+ rpc setMultiScopeItems(MultiScopeSetItemsRequest) returns (MultiScopeStatusResponse);
12
+ rpc readMultiScopeItems(GetMultiScopeRequest) returns (MultiScopeCompositionResponse);
13
13
  //Tech
14
14
  rpc checkConnection(PingRequest) returns (PongResponse);
15
15
  //Common
@@ -977,15 +977,25 @@ message GamePoorItemsResponse {
977
977
  repeated GameItem items = 1;
978
978
  }
979
979
  /** Global structural composition. Visibility belongs to explicit CMS GEO placements. */
980
- message MultiScopeMember {
981
- int32 id = 1;
982
- string title = 2;
983
- string slug = 3;
984
- bool is_active = 4;
985
- optional string image = 5;
986
- optional string image_cdn = 6;
987
- optional string icon = 7;
988
- optional string icon_cdn = 8;
980
+ message MultiScopeItemReference {
981
+ string instance_type = 1;
982
+ int32 instance_id = 2;
983
+ int32 priority_order = 3;
984
+ }
985
+ message MultiScopeCompositionItem {
986
+ string instance_type = 1;
987
+ int32 instance_id = 2;
988
+ int32 priority_order = 3;
989
+ string title = 4;
990
+ string slug = 5;
991
+ optional string image = 6;
992
+ optional string image_cdn = 7;
993
+ optional string icon = 8;
994
+ optional string icon_cdn = 9;
995
+ bool is_active = 10;
996
+ }
997
+ message MultiScopeCompositionResponse {
998
+ repeated MultiScopeCompositionItem items = 1;
989
999
  }
990
1000
  message MultiScopeItem {
991
1001
  int32 id = 1;
@@ -998,14 +1008,17 @@ message MultiScopeItem {
998
1008
  optional string icon_cdn = 8;
999
1009
  string created_at = 9;
1000
1010
  string updated_at = 10;
1001
- repeated MultiScopeMember collections = 11;
1002
- repeated MultiScopeMember tags = 12;
1011
+ reserved 11, 12;
1012
+ reserved "collections", "tags";
1013
+ repeated MultiScopeCompositionItem items = 13;
1003
1014
  }
1004
1015
  message MultiScopeItemRequest {
1005
1016
  optional int32 id = 1;
1006
1017
  optional string title = 2;
1007
1018
  optional string slug = 3;
1008
1019
  optional bool is_active = 4;
1020
+ optional bool remove_image = 5;
1021
+ optional bool remove_icon = 6;
1009
1022
  }
1010
1023
  message MultiScopeRequest {
1011
1024
  oneof request {
@@ -1024,10 +1037,9 @@ message MultiScopeListRequest {
1024
1037
  optional bool is_active = 4;
1025
1038
  repeated int32 ids = 5;
1026
1039
  }
1027
- message MultiScopeMembersRequest {
1040
+ message MultiScopeSetItemsRequest {
1028
1041
  int32 id = 1;
1029
- repeated int32 collection_ids = 2;
1030
- repeated int32 tag_ids = 3;
1042
+ repeated MultiScopeItemReference items = 2;
1031
1043
  }
1032
1044
  message MultiScopeResponse {
1033
1045
  MultiScopeItem data = 1;