protobuf-platform 1.2.388 → 1.2.390

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.proto CHANGED
@@ -92,6 +92,7 @@ service Game {
92
92
  rpc getGameScopesByIds(ScopeRequest) returns (ScopeResponse);
93
93
  rpc getCounterScopes(ScopeRequest) returns (ScopeResponse);
94
94
  rpc getProvidersByIds(ProvidersIds) returns (ProviderPoorItemsResponse);
95
+ rpc getProvidersBySlugs(ProvidersSlugs) returns (ProviderItemsResponse);
95
96
  //Wager lists
96
97
  rpc readSingleWagerList(GetWagerListRequest) returns (WagerListResponse);
97
98
  rpc createSingleWagerList(WagerListRequest) returns (WagerListResponse);
@@ -798,6 +799,12 @@ message TournamentGamesRequest {
798
799
  message ProvidersIds {
799
800
  repeated int32 ids = 1;
800
801
  }
802
+ message ProvidersSlugs {
803
+ repeated string slugs = 1;
804
+ optional string geo = 2;
805
+ optional bool admin_side = 3;
806
+ optional bool with_games_count = 4;
807
+ }
801
808
  message ProviderPoorItemsResponse {
802
809
  repeated ProviderItem items = 1;
803
810
  }
@@ -851,6 +851,17 @@ function deserialize_game_ProvidersIds(buffer_arg) {
851
851
  return game_pb.ProvidersIds.deserializeBinary(new Uint8Array(buffer_arg));
852
852
  }
853
853
 
854
+ function serialize_game_ProvidersSlugs(arg) {
855
+ if (!(arg instanceof game_pb.ProvidersSlugs)) {
856
+ throw new Error('Expected argument of type game.ProvidersSlugs');
857
+ }
858
+ return Buffer.from(arg.serializeBinary());
859
+ }
860
+
861
+ function deserialize_game_ProvidersSlugs(buffer_arg) {
862
+ return game_pb.ProvidersSlugs.deserializeBinary(new Uint8Array(buffer_arg));
863
+ }
864
+
854
865
  function serialize_game_SEOInstanceRequest(arg) {
855
866
  if (!(arg instanceof game_pb.SEOInstanceRequest)) {
856
867
  throw new Error('Expected argument of type game.SEOInstanceRequest');
@@ -2063,6 +2074,17 @@ getGamesByUuids: {
2063
2074
  responseSerialize: serialize_game_ProviderPoorItemsResponse,
2064
2075
  responseDeserialize: deserialize_game_ProviderPoorItemsResponse,
2065
2076
  },
2077
+ getProvidersBySlugs: {
2078
+ path: '/game.Game/getProvidersBySlugs',
2079
+ requestStream: false,
2080
+ responseStream: false,
2081
+ requestType: game_pb.ProvidersSlugs,
2082
+ responseType: game_pb.ProviderItemsResponse,
2083
+ requestSerialize: serialize_game_ProvidersSlugs,
2084
+ requestDeserialize: deserialize_game_ProvidersSlugs,
2085
+ responseSerialize: serialize_game_ProviderItemsResponse,
2086
+ responseDeserialize: deserialize_game_ProviderItemsResponse,
2087
+ },
2066
2088
  // Wager lists
2067
2089
  readSingleWagerList: {
2068
2090
  path: '/game.Game/readSingleWagerList',
package/game/game_pb.js CHANGED
@@ -127,6 +127,7 @@ goog.exportSymbol('proto.game.ProviderResponse', null, global);
127
127
  goog.exportSymbol('proto.game.ProviderSearchRequest', null, global);
128
128
  goog.exportSymbol('proto.game.ProviderStatusResponse', null, global);
129
129
  goog.exportSymbol('proto.game.ProvidersIds', null, global);
130
+ goog.exportSymbol('proto.game.ProvidersSlugs', null, global);
130
131
  goog.exportSymbol('proto.game.SEOAttribute', null, global);
131
132
  goog.exportSymbol('proto.game.SEOInstanceRelation', null, global);
132
133
  goog.exportSymbol('proto.game.SEOInstanceRequest', null, global);
@@ -2485,6 +2486,27 @@ if (goog.DEBUG && !COMPILED) {
2485
2486
  */
2486
2487
  proto.game.ProvidersIds.displayName = 'proto.game.ProvidersIds';
2487
2488
  }
2489
+ /**
2490
+ * Generated by JsPbCodeGenerator.
2491
+ * @param {Array=} opt_data Optional initial data array, typically from a
2492
+ * server response, or constructed directly in Javascript. The array is used
2493
+ * in place and becomes part of the constructed object. It is not cloned.
2494
+ * If no data is provided, the constructed object will be empty, but still
2495
+ * valid.
2496
+ * @extends {jspb.Message}
2497
+ * @constructor
2498
+ */
2499
+ proto.game.ProvidersSlugs = function(opt_data) {
2500
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.ProvidersSlugs.repeatedFields_, null);
2501
+ };
2502
+ goog.inherits(proto.game.ProvidersSlugs, jspb.Message);
2503
+ if (goog.DEBUG && !COMPILED) {
2504
+ /**
2505
+ * @public
2506
+ * @override
2507
+ */
2508
+ proto.game.ProvidersSlugs.displayName = 'proto.game.ProvidersSlugs';
2509
+ }
2488
2510
  /**
2489
2511
  * Generated by JsPbCodeGenerator.
2490
2512
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -33831,6 +33853,306 @@ proto.game.ProvidersIds.prototype.clearIdsList = function() {
33831
33853
 
33832
33854
 
33833
33855
 
33856
+ /**
33857
+ * List of repeated fields within this message type.
33858
+ * @private {!Array<number>}
33859
+ * @const
33860
+ */
33861
+ proto.game.ProvidersSlugs.repeatedFields_ = [1];
33862
+
33863
+
33864
+
33865
+ if (jspb.Message.GENERATE_TO_OBJECT) {
33866
+ /**
33867
+ * Creates an object representation of this proto.
33868
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
33869
+ * Optional fields that are not set will be set to undefined.
33870
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
33871
+ * For the list of reserved names please see:
33872
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
33873
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
33874
+ * JSPB instance for transitional soy proto support:
33875
+ * http://goto/soy-param-migration
33876
+ * @return {!Object}
33877
+ */
33878
+ proto.game.ProvidersSlugs.prototype.toObject = function(opt_includeInstance) {
33879
+ return proto.game.ProvidersSlugs.toObject(opt_includeInstance, this);
33880
+ };
33881
+
33882
+
33883
+ /**
33884
+ * Static version of the {@see toObject} method.
33885
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
33886
+ * the JSPB instance for transitional soy proto support:
33887
+ * http://goto/soy-param-migration
33888
+ * @param {!proto.game.ProvidersSlugs} msg The msg instance to transform.
33889
+ * @return {!Object}
33890
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33891
+ */
33892
+ proto.game.ProvidersSlugs.toObject = function(includeInstance, msg) {
33893
+ var f, obj = {
33894
+ slugsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
33895
+ geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
33896
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
33897
+ withGamesCount: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
33898
+ };
33899
+
33900
+ if (includeInstance) {
33901
+ obj.$jspbMessageInstance = msg;
33902
+ }
33903
+ return obj;
33904
+ };
33905
+ }
33906
+
33907
+
33908
+ /**
33909
+ * Deserializes binary data (in protobuf wire format).
33910
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
33911
+ * @return {!proto.game.ProvidersSlugs}
33912
+ */
33913
+ proto.game.ProvidersSlugs.deserializeBinary = function(bytes) {
33914
+ var reader = new jspb.BinaryReader(bytes);
33915
+ var msg = new proto.game.ProvidersSlugs;
33916
+ return proto.game.ProvidersSlugs.deserializeBinaryFromReader(msg, reader);
33917
+ };
33918
+
33919
+
33920
+ /**
33921
+ * Deserializes binary data (in protobuf wire format) from the
33922
+ * given reader into the given message object.
33923
+ * @param {!proto.game.ProvidersSlugs} msg The message object to deserialize into.
33924
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
33925
+ * @return {!proto.game.ProvidersSlugs}
33926
+ */
33927
+ proto.game.ProvidersSlugs.deserializeBinaryFromReader = function(msg, reader) {
33928
+ while (reader.nextField()) {
33929
+ if (reader.isEndGroup()) {
33930
+ break;
33931
+ }
33932
+ var field = reader.getFieldNumber();
33933
+ switch (field) {
33934
+ case 1:
33935
+ var value = /** @type {string} */ (reader.readString());
33936
+ msg.addSlugs(value);
33937
+ break;
33938
+ case 2:
33939
+ var value = /** @type {string} */ (reader.readString());
33940
+ msg.setGeo(value);
33941
+ break;
33942
+ case 3:
33943
+ var value = /** @type {boolean} */ (reader.readBool());
33944
+ msg.setAdminSide(value);
33945
+ break;
33946
+ case 4:
33947
+ var value = /** @type {boolean} */ (reader.readBool());
33948
+ msg.setWithGamesCount(value);
33949
+ break;
33950
+ default:
33951
+ reader.skipField();
33952
+ break;
33953
+ }
33954
+ }
33955
+ return msg;
33956
+ };
33957
+
33958
+
33959
+ /**
33960
+ * Serializes the message to binary data (in protobuf wire format).
33961
+ * @return {!Uint8Array}
33962
+ */
33963
+ proto.game.ProvidersSlugs.prototype.serializeBinary = function() {
33964
+ var writer = new jspb.BinaryWriter();
33965
+ proto.game.ProvidersSlugs.serializeBinaryToWriter(this, writer);
33966
+ return writer.getResultBuffer();
33967
+ };
33968
+
33969
+
33970
+ /**
33971
+ * Serializes the given message to binary data (in protobuf wire
33972
+ * format), writing to the given BinaryWriter.
33973
+ * @param {!proto.game.ProvidersSlugs} message
33974
+ * @param {!jspb.BinaryWriter} writer
33975
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33976
+ */
33977
+ proto.game.ProvidersSlugs.serializeBinaryToWriter = function(message, writer) {
33978
+ var f = undefined;
33979
+ f = message.getSlugsList();
33980
+ if (f.length > 0) {
33981
+ writer.writeRepeatedString(
33982
+ 1,
33983
+ f
33984
+ );
33985
+ }
33986
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
33987
+ if (f != null) {
33988
+ writer.writeString(
33989
+ 2,
33990
+ f
33991
+ );
33992
+ }
33993
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
33994
+ if (f != null) {
33995
+ writer.writeBool(
33996
+ 3,
33997
+ f
33998
+ );
33999
+ }
34000
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
34001
+ if (f != null) {
34002
+ writer.writeBool(
34003
+ 4,
34004
+ f
34005
+ );
34006
+ }
34007
+ };
34008
+
34009
+
34010
+ /**
34011
+ * repeated string slugs = 1;
34012
+ * @return {!Array<string>}
34013
+ */
34014
+ proto.game.ProvidersSlugs.prototype.getSlugsList = function() {
34015
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
34016
+ };
34017
+
34018
+
34019
+ /**
34020
+ * @param {!Array<string>} value
34021
+ * @return {!proto.game.ProvidersSlugs} returns this
34022
+ */
34023
+ proto.game.ProvidersSlugs.prototype.setSlugsList = function(value) {
34024
+ return jspb.Message.setField(this, 1, value || []);
34025
+ };
34026
+
34027
+
34028
+ /**
34029
+ * @param {string} value
34030
+ * @param {number=} opt_index
34031
+ * @return {!proto.game.ProvidersSlugs} returns this
34032
+ */
34033
+ proto.game.ProvidersSlugs.prototype.addSlugs = function(value, opt_index) {
34034
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
34035
+ };
34036
+
34037
+
34038
+ /**
34039
+ * Clears the list making it empty but non-null.
34040
+ * @return {!proto.game.ProvidersSlugs} returns this
34041
+ */
34042
+ proto.game.ProvidersSlugs.prototype.clearSlugsList = function() {
34043
+ return this.setSlugsList([]);
34044
+ };
34045
+
34046
+
34047
+ /**
34048
+ * optional string geo = 2;
34049
+ * @return {string}
34050
+ */
34051
+ proto.game.ProvidersSlugs.prototype.getGeo = function() {
34052
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
34053
+ };
34054
+
34055
+
34056
+ /**
34057
+ * @param {string} value
34058
+ * @return {!proto.game.ProvidersSlugs} returns this
34059
+ */
34060
+ proto.game.ProvidersSlugs.prototype.setGeo = function(value) {
34061
+ return jspb.Message.setField(this, 2, value);
34062
+ };
34063
+
34064
+
34065
+ /**
34066
+ * Clears the field making it undefined.
34067
+ * @return {!proto.game.ProvidersSlugs} returns this
34068
+ */
34069
+ proto.game.ProvidersSlugs.prototype.clearGeo = function() {
34070
+ return jspb.Message.setField(this, 2, undefined);
34071
+ };
34072
+
34073
+
34074
+ /**
34075
+ * Returns whether this field is set.
34076
+ * @return {boolean}
34077
+ */
34078
+ proto.game.ProvidersSlugs.prototype.hasGeo = function() {
34079
+ return jspb.Message.getField(this, 2) != null;
34080
+ };
34081
+
34082
+
34083
+ /**
34084
+ * optional bool admin_side = 3;
34085
+ * @return {boolean}
34086
+ */
34087
+ proto.game.ProvidersSlugs.prototype.getAdminSide = function() {
34088
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
34089
+ };
34090
+
34091
+
34092
+ /**
34093
+ * @param {boolean} value
34094
+ * @return {!proto.game.ProvidersSlugs} returns this
34095
+ */
34096
+ proto.game.ProvidersSlugs.prototype.setAdminSide = function(value) {
34097
+ return jspb.Message.setField(this, 3, value);
34098
+ };
34099
+
34100
+
34101
+ /**
34102
+ * Clears the field making it undefined.
34103
+ * @return {!proto.game.ProvidersSlugs} returns this
34104
+ */
34105
+ proto.game.ProvidersSlugs.prototype.clearAdminSide = function() {
34106
+ return jspb.Message.setField(this, 3, undefined);
34107
+ };
34108
+
34109
+
34110
+ /**
34111
+ * Returns whether this field is set.
34112
+ * @return {boolean}
34113
+ */
34114
+ proto.game.ProvidersSlugs.prototype.hasAdminSide = function() {
34115
+ return jspb.Message.getField(this, 3) != null;
34116
+ };
34117
+
34118
+
34119
+ /**
34120
+ * optional bool with_games_count = 4;
34121
+ * @return {boolean}
34122
+ */
34123
+ proto.game.ProvidersSlugs.prototype.getWithGamesCount = function() {
34124
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
34125
+ };
34126
+
34127
+
34128
+ /**
34129
+ * @param {boolean} value
34130
+ * @return {!proto.game.ProvidersSlugs} returns this
34131
+ */
34132
+ proto.game.ProvidersSlugs.prototype.setWithGamesCount = function(value) {
34133
+ return jspb.Message.setField(this, 4, value);
34134
+ };
34135
+
34136
+
34137
+ /**
34138
+ * Clears the field making it undefined.
34139
+ * @return {!proto.game.ProvidersSlugs} returns this
34140
+ */
34141
+ proto.game.ProvidersSlugs.prototype.clearWithGamesCount = function() {
34142
+ return jspb.Message.setField(this, 4, undefined);
34143
+ };
34144
+
34145
+
34146
+ /**
34147
+ * Returns whether this field is set.
34148
+ * @return {boolean}
34149
+ */
34150
+ proto.game.ProvidersSlugs.prototype.hasWithGamesCount = function() {
34151
+ return jspb.Message.getField(this, 4) != null;
34152
+ };
34153
+
34154
+
34155
+
33834
34156
  /**
33835
34157
  * List of repeated fields within this message type.
33836
34158
  * @private {!Array<number>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.388",
3
+ "version": "1.2.390",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {