protobuf-platform 1.1.70 → 1.1.72
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/index.js +6 -0
- package/package.json +1 -1
- package/scheduler/scheduler.proto +10 -0
- package/scheduler/scheduler_grpc_pb.js +44 -0
- package/scheduler/scheduler_pb.js +328 -0
- package/tournament/tournament.proto +3 -2
- package/tournament/tournament_pb.js +59 -11
- package/update_protobuf.sh +2 -1
package/index.js
CHANGED
@@ -31,6 +31,8 @@ const TournamentService = require('./tournament/tournament_grpc_pb');
|
|
31
31
|
const TournamentServiceMessages = require('./tournament/tournament_pb');
|
32
32
|
const AnalyticService = require('./analytic/analytic_grpc_pb');
|
33
33
|
const AnalyticServiceMessages = require('./analytic/analytic_pb');
|
34
|
+
const SchedulerService = require('./scheduler/scheduler_grpc_pb');
|
35
|
+
const SchedulerServiceMessages = require('./scheduler/scheduler_pb');
|
34
36
|
module.exports = {
|
35
37
|
gRPC: gRPC,
|
36
38
|
maxSendMessageLength: 10388608,
|
@@ -96,4 +98,8 @@ module.exports = {
|
|
96
98
|
service: AnalyticService,
|
97
99
|
messages: AnalyticServiceMessages
|
98
100
|
},
|
101
|
+
scheduler: {
|
102
|
+
service: SchedulerService,
|
103
|
+
messages: SchedulerServiceMessages
|
104
|
+
},
|
99
105
|
};
|
package/package.json
CHANGED
@@ -0,0 +1,44 @@
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
2
|
+
|
3
|
+
'use strict';
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
5
|
+
var scheduler_pb = require('./scheduler_pb.js');
|
6
|
+
|
7
|
+
function serialize_scheduler_PingRequest(arg) {
|
8
|
+
if (!(arg instanceof scheduler_pb.PingRequest)) {
|
9
|
+
throw new Error('Expected argument of type scheduler.PingRequest');
|
10
|
+
}
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
12
|
+
}
|
13
|
+
|
14
|
+
function deserialize_scheduler_PingRequest(buffer_arg) {
|
15
|
+
return scheduler_pb.PingRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
16
|
+
}
|
17
|
+
|
18
|
+
function serialize_scheduler_PongResponse(arg) {
|
19
|
+
if (!(arg instanceof scheduler_pb.PongResponse)) {
|
20
|
+
throw new Error('Expected argument of type scheduler.PongResponse');
|
21
|
+
}
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
23
|
+
}
|
24
|
+
|
25
|
+
function deserialize_scheduler_PongResponse(buffer_arg) {
|
26
|
+
return scheduler_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
27
|
+
}
|
28
|
+
|
29
|
+
|
30
|
+
var SchedulerService = exports.SchedulerService = {
|
31
|
+
checkConnection: {
|
32
|
+
path: '/scheduler.Scheduler/checkConnection',
|
33
|
+
requestStream: false,
|
34
|
+
responseStream: false,
|
35
|
+
requestType: scheduler_pb.PingRequest,
|
36
|
+
responseType: scheduler_pb.PongResponse,
|
37
|
+
requestSerialize: serialize_scheduler_PingRequest,
|
38
|
+
requestDeserialize: deserialize_scheduler_PingRequest,
|
39
|
+
responseSerialize: serialize_scheduler_PongResponse,
|
40
|
+
responseDeserialize: deserialize_scheduler_PongResponse,
|
41
|
+
},
|
42
|
+
};
|
43
|
+
|
44
|
+
exports.SchedulerClient = grpc.makeGenericClientConstructor(SchedulerService);
|
@@ -0,0 +1,328 @@
|
|
1
|
+
// source: scheduler.proto
|
2
|
+
/**
|
3
|
+
* @fileoverview
|
4
|
+
* @enhanceable
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
8
|
+
* @public
|
9
|
+
*/
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
11
|
+
/* eslint-disable */
|
12
|
+
// @ts-nocheck
|
13
|
+
|
14
|
+
var jspb = require('google-protobuf');
|
15
|
+
var goog = jspb;
|
16
|
+
var global = (function() {
|
17
|
+
if (this) { return this; }
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
21
|
+
return Function('return this')();
|
22
|
+
}.call(null));
|
23
|
+
|
24
|
+
goog.exportSymbol('proto.scheduler.PingRequest', null, global);
|
25
|
+
goog.exportSymbol('proto.scheduler.PongResponse', null, global);
|
26
|
+
/**
|
27
|
+
* Generated by JsPbCodeGenerator.
|
28
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
29
|
+
* server response, or constructed directly in Javascript. The array is used
|
30
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
31
|
+
* If no data is provided, the constructed object will be empty, but still
|
32
|
+
* valid.
|
33
|
+
* @extends {jspb.Message}
|
34
|
+
* @constructor
|
35
|
+
*/
|
36
|
+
proto.scheduler.PingRequest = function(opt_data) {
|
37
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
38
|
+
};
|
39
|
+
goog.inherits(proto.scheduler.PingRequest, jspb.Message);
|
40
|
+
if (goog.DEBUG && !COMPILED) {
|
41
|
+
/**
|
42
|
+
* @public
|
43
|
+
* @override
|
44
|
+
*/
|
45
|
+
proto.scheduler.PingRequest.displayName = 'proto.scheduler.PingRequest';
|
46
|
+
}
|
47
|
+
/**
|
48
|
+
* Generated by JsPbCodeGenerator.
|
49
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
50
|
+
* server response, or constructed directly in Javascript. The array is used
|
51
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
52
|
+
* If no data is provided, the constructed object will be empty, but still
|
53
|
+
* valid.
|
54
|
+
* @extends {jspb.Message}
|
55
|
+
* @constructor
|
56
|
+
*/
|
57
|
+
proto.scheduler.PongResponse = function(opt_data) {
|
58
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
59
|
+
};
|
60
|
+
goog.inherits(proto.scheduler.PongResponse, jspb.Message);
|
61
|
+
if (goog.DEBUG && !COMPILED) {
|
62
|
+
/**
|
63
|
+
* @public
|
64
|
+
* @override
|
65
|
+
*/
|
66
|
+
proto.scheduler.PongResponse.displayName = 'proto.scheduler.PongResponse';
|
67
|
+
}
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
72
|
+
/**
|
73
|
+
* Creates an object representation of this proto.
|
74
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
75
|
+
* Optional fields that are not set will be set to undefined.
|
76
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
77
|
+
* For the list of reserved names please see:
|
78
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
79
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
80
|
+
* JSPB instance for transitional soy proto support:
|
81
|
+
* http://goto/soy-param-migration
|
82
|
+
* @return {!Object}
|
83
|
+
*/
|
84
|
+
proto.scheduler.PingRequest.prototype.toObject = function(opt_includeInstance) {
|
85
|
+
return proto.scheduler.PingRequest.toObject(opt_includeInstance, this);
|
86
|
+
};
|
87
|
+
|
88
|
+
|
89
|
+
/**
|
90
|
+
* Static version of the {@see toObject} method.
|
91
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
92
|
+
* the JSPB instance for transitional soy proto support:
|
93
|
+
* http://goto/soy-param-migration
|
94
|
+
* @param {!proto.scheduler.PingRequest} msg The msg instance to transform.
|
95
|
+
* @return {!Object}
|
96
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
97
|
+
*/
|
98
|
+
proto.scheduler.PingRequest.toObject = function(includeInstance, msg) {
|
99
|
+
var f, obj = {
|
100
|
+
ping: jspb.Message.getFieldWithDefault(msg, 1, "")
|
101
|
+
};
|
102
|
+
|
103
|
+
if (includeInstance) {
|
104
|
+
obj.$jspbMessageInstance = msg;
|
105
|
+
}
|
106
|
+
return obj;
|
107
|
+
};
|
108
|
+
}
|
109
|
+
|
110
|
+
|
111
|
+
/**
|
112
|
+
* Deserializes binary data (in protobuf wire format).
|
113
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
114
|
+
* @return {!proto.scheduler.PingRequest}
|
115
|
+
*/
|
116
|
+
proto.scheduler.PingRequest.deserializeBinary = function(bytes) {
|
117
|
+
var reader = new jspb.BinaryReader(bytes);
|
118
|
+
var msg = new proto.scheduler.PingRequest;
|
119
|
+
return proto.scheduler.PingRequest.deserializeBinaryFromReader(msg, reader);
|
120
|
+
};
|
121
|
+
|
122
|
+
|
123
|
+
/**
|
124
|
+
* Deserializes binary data (in protobuf wire format) from the
|
125
|
+
* given reader into the given message object.
|
126
|
+
* @param {!proto.scheduler.PingRequest} msg The message object to deserialize into.
|
127
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
128
|
+
* @return {!proto.scheduler.PingRequest}
|
129
|
+
*/
|
130
|
+
proto.scheduler.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
|
131
|
+
while (reader.nextField()) {
|
132
|
+
if (reader.isEndGroup()) {
|
133
|
+
break;
|
134
|
+
}
|
135
|
+
var field = reader.getFieldNumber();
|
136
|
+
switch (field) {
|
137
|
+
case 1:
|
138
|
+
var value = /** @type {string} */ (reader.readString());
|
139
|
+
msg.setPing(value);
|
140
|
+
break;
|
141
|
+
default:
|
142
|
+
reader.skipField();
|
143
|
+
break;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
return msg;
|
147
|
+
};
|
148
|
+
|
149
|
+
|
150
|
+
/**
|
151
|
+
* Serializes the message to binary data (in protobuf wire format).
|
152
|
+
* @return {!Uint8Array}
|
153
|
+
*/
|
154
|
+
proto.scheduler.PingRequest.prototype.serializeBinary = function() {
|
155
|
+
var writer = new jspb.BinaryWriter();
|
156
|
+
proto.scheduler.PingRequest.serializeBinaryToWriter(this, writer);
|
157
|
+
return writer.getResultBuffer();
|
158
|
+
};
|
159
|
+
|
160
|
+
|
161
|
+
/**
|
162
|
+
* Serializes the given message to binary data (in protobuf wire
|
163
|
+
* format), writing to the given BinaryWriter.
|
164
|
+
* @param {!proto.scheduler.PingRequest} message
|
165
|
+
* @param {!jspb.BinaryWriter} writer
|
166
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
167
|
+
*/
|
168
|
+
proto.scheduler.PingRequest.serializeBinaryToWriter = function(message, writer) {
|
169
|
+
var f = undefined;
|
170
|
+
f = message.getPing();
|
171
|
+
if (f.length > 0) {
|
172
|
+
writer.writeString(
|
173
|
+
1,
|
174
|
+
f
|
175
|
+
);
|
176
|
+
}
|
177
|
+
};
|
178
|
+
|
179
|
+
|
180
|
+
/**
|
181
|
+
* optional string ping = 1;
|
182
|
+
* @return {string}
|
183
|
+
*/
|
184
|
+
proto.scheduler.PingRequest.prototype.getPing = function() {
|
185
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
186
|
+
};
|
187
|
+
|
188
|
+
|
189
|
+
/**
|
190
|
+
* @param {string} value
|
191
|
+
* @return {!proto.scheduler.PingRequest} returns this
|
192
|
+
*/
|
193
|
+
proto.scheduler.PingRequest.prototype.setPing = function(value) {
|
194
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
195
|
+
};
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
202
|
+
/**
|
203
|
+
* Creates an object representation of this proto.
|
204
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
205
|
+
* Optional fields that are not set will be set to undefined.
|
206
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
207
|
+
* For the list of reserved names please see:
|
208
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
209
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
210
|
+
* JSPB instance for transitional soy proto support:
|
211
|
+
* http://goto/soy-param-migration
|
212
|
+
* @return {!Object}
|
213
|
+
*/
|
214
|
+
proto.scheduler.PongResponse.prototype.toObject = function(opt_includeInstance) {
|
215
|
+
return proto.scheduler.PongResponse.toObject(opt_includeInstance, this);
|
216
|
+
};
|
217
|
+
|
218
|
+
|
219
|
+
/**
|
220
|
+
* Static version of the {@see toObject} method.
|
221
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
222
|
+
* the JSPB instance for transitional soy proto support:
|
223
|
+
* http://goto/soy-param-migration
|
224
|
+
* @param {!proto.scheduler.PongResponse} msg The msg instance to transform.
|
225
|
+
* @return {!Object}
|
226
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
227
|
+
*/
|
228
|
+
proto.scheduler.PongResponse.toObject = function(includeInstance, msg) {
|
229
|
+
var f, obj = {
|
230
|
+
pong: jspb.Message.getFieldWithDefault(msg, 1, "")
|
231
|
+
};
|
232
|
+
|
233
|
+
if (includeInstance) {
|
234
|
+
obj.$jspbMessageInstance = msg;
|
235
|
+
}
|
236
|
+
return obj;
|
237
|
+
};
|
238
|
+
}
|
239
|
+
|
240
|
+
|
241
|
+
/**
|
242
|
+
* Deserializes binary data (in protobuf wire format).
|
243
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
244
|
+
* @return {!proto.scheduler.PongResponse}
|
245
|
+
*/
|
246
|
+
proto.scheduler.PongResponse.deserializeBinary = function(bytes) {
|
247
|
+
var reader = new jspb.BinaryReader(bytes);
|
248
|
+
var msg = new proto.scheduler.PongResponse;
|
249
|
+
return proto.scheduler.PongResponse.deserializeBinaryFromReader(msg, reader);
|
250
|
+
};
|
251
|
+
|
252
|
+
|
253
|
+
/**
|
254
|
+
* Deserializes binary data (in protobuf wire format) from the
|
255
|
+
* given reader into the given message object.
|
256
|
+
* @param {!proto.scheduler.PongResponse} msg The message object to deserialize into.
|
257
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
258
|
+
* @return {!proto.scheduler.PongResponse}
|
259
|
+
*/
|
260
|
+
proto.scheduler.PongResponse.deserializeBinaryFromReader = function(msg, reader) {
|
261
|
+
while (reader.nextField()) {
|
262
|
+
if (reader.isEndGroup()) {
|
263
|
+
break;
|
264
|
+
}
|
265
|
+
var field = reader.getFieldNumber();
|
266
|
+
switch (field) {
|
267
|
+
case 1:
|
268
|
+
var value = /** @type {string} */ (reader.readString());
|
269
|
+
msg.setPong(value);
|
270
|
+
break;
|
271
|
+
default:
|
272
|
+
reader.skipField();
|
273
|
+
break;
|
274
|
+
}
|
275
|
+
}
|
276
|
+
return msg;
|
277
|
+
};
|
278
|
+
|
279
|
+
|
280
|
+
/**
|
281
|
+
* Serializes the message to binary data (in protobuf wire format).
|
282
|
+
* @return {!Uint8Array}
|
283
|
+
*/
|
284
|
+
proto.scheduler.PongResponse.prototype.serializeBinary = function() {
|
285
|
+
var writer = new jspb.BinaryWriter();
|
286
|
+
proto.scheduler.PongResponse.serializeBinaryToWriter(this, writer);
|
287
|
+
return writer.getResultBuffer();
|
288
|
+
};
|
289
|
+
|
290
|
+
|
291
|
+
/**
|
292
|
+
* Serializes the given message to binary data (in protobuf wire
|
293
|
+
* format), writing to the given BinaryWriter.
|
294
|
+
* @param {!proto.scheduler.PongResponse} message
|
295
|
+
* @param {!jspb.BinaryWriter} writer
|
296
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
297
|
+
*/
|
298
|
+
proto.scheduler.PongResponse.serializeBinaryToWriter = function(message, writer) {
|
299
|
+
var f = undefined;
|
300
|
+
f = message.getPong();
|
301
|
+
if (f.length > 0) {
|
302
|
+
writer.writeString(
|
303
|
+
1,
|
304
|
+
f
|
305
|
+
);
|
306
|
+
}
|
307
|
+
};
|
308
|
+
|
309
|
+
|
310
|
+
/**
|
311
|
+
* optional string pong = 1;
|
312
|
+
* @return {string}
|
313
|
+
*/
|
314
|
+
proto.scheduler.PongResponse.prototype.getPong = function() {
|
315
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
316
|
+
};
|
317
|
+
|
318
|
+
|
319
|
+
/**
|
320
|
+
* @param {string} value
|
321
|
+
* @return {!proto.scheduler.PongResponse} returns this
|
322
|
+
*/
|
323
|
+
proto.scheduler.PongResponse.prototype.setPong = function(value) {
|
324
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
325
|
+
};
|
326
|
+
|
327
|
+
|
328
|
+
goog.object.extend(exports, proto.scheduler);
|
@@ -32,8 +32,9 @@ message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
|
32
32
|
message PaginationRequest {
|
33
33
|
int32 limit = 1;
|
34
34
|
int32 offset = 2;
|
35
|
-
optional
|
36
|
-
optional
|
35
|
+
optional string order = 3;
|
36
|
+
optional UserSearchRequest user_search_params = 4;
|
37
|
+
optional SearchRequest additional_search_params = 5;
|
37
38
|
}
|
38
39
|
message UserSearchRequest {
|
39
40
|
optional int32 user_id = 1;
|
@@ -1342,6 +1342,7 @@ proto.tournament.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
1342
1342
|
var f, obj = {
|
1343
1343
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1344
1344
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1345
|
+
order: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1345
1346
|
userSearchParams: (f = msg.getUserSearchParams()) && proto.tournament.UserSearchRequest.toObject(includeInstance, f),
|
1346
1347
|
additionalSearchParams: (f = msg.getAdditionalSearchParams()) && proto.tournament.SearchRequest.toObject(includeInstance, f)
|
1347
1348
|
};
|
@@ -1389,11 +1390,15 @@ proto.tournament.PaginationRequest.deserializeBinaryFromReader = function(msg, r
|
|
1389
1390
|
msg.setOffset(value);
|
1390
1391
|
break;
|
1391
1392
|
case 3:
|
1393
|
+
var value = /** @type {string} */ (reader.readString());
|
1394
|
+
msg.setOrder(value);
|
1395
|
+
break;
|
1396
|
+
case 4:
|
1392
1397
|
var value = new proto.tournament.UserSearchRequest;
|
1393
1398
|
reader.readMessage(value,proto.tournament.UserSearchRequest.deserializeBinaryFromReader);
|
1394
1399
|
msg.setUserSearchParams(value);
|
1395
1400
|
break;
|
1396
|
-
case
|
1401
|
+
case 5:
|
1397
1402
|
var value = new proto.tournament.SearchRequest;
|
1398
1403
|
reader.readMessage(value,proto.tournament.SearchRequest.deserializeBinaryFromReader);
|
1399
1404
|
msg.setAdditionalSearchParams(value);
|
@@ -1441,10 +1446,17 @@ proto.tournament.PaginationRequest.serializeBinaryToWriter = function(message, w
|
|
1441
1446
|
f
|
1442
1447
|
);
|
1443
1448
|
}
|
1449
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
1450
|
+
if (f != null) {
|
1451
|
+
writer.writeString(
|
1452
|
+
3,
|
1453
|
+
f
|
1454
|
+
);
|
1455
|
+
}
|
1444
1456
|
f = message.getUserSearchParams();
|
1445
1457
|
if (f != null) {
|
1446
1458
|
writer.writeMessage(
|
1447
|
-
|
1459
|
+
4,
|
1448
1460
|
f,
|
1449
1461
|
proto.tournament.UserSearchRequest.serializeBinaryToWriter
|
1450
1462
|
);
|
@@ -1452,7 +1464,7 @@ proto.tournament.PaginationRequest.serializeBinaryToWriter = function(message, w
|
|
1452
1464
|
f = message.getAdditionalSearchParams();
|
1453
1465
|
if (f != null) {
|
1454
1466
|
writer.writeMessage(
|
1455
|
-
|
1467
|
+
5,
|
1456
1468
|
f,
|
1457
1469
|
proto.tournament.SearchRequest.serializeBinaryToWriter
|
1458
1470
|
);
|
@@ -1497,12 +1509,48 @@ proto.tournament.PaginationRequest.prototype.setOffset = function(value) {
|
|
1497
1509
|
|
1498
1510
|
|
1499
1511
|
/**
|
1500
|
-
* optional
|
1512
|
+
* optional string order = 3;
|
1513
|
+
* @return {string}
|
1514
|
+
*/
|
1515
|
+
proto.tournament.PaginationRequest.prototype.getOrder = function() {
|
1516
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1517
|
+
};
|
1518
|
+
|
1519
|
+
|
1520
|
+
/**
|
1521
|
+
* @param {string} value
|
1522
|
+
* @return {!proto.tournament.PaginationRequest} returns this
|
1523
|
+
*/
|
1524
|
+
proto.tournament.PaginationRequest.prototype.setOrder = function(value) {
|
1525
|
+
return jspb.Message.setField(this, 3, value);
|
1526
|
+
};
|
1527
|
+
|
1528
|
+
|
1529
|
+
/**
|
1530
|
+
* Clears the field making it undefined.
|
1531
|
+
* @return {!proto.tournament.PaginationRequest} returns this
|
1532
|
+
*/
|
1533
|
+
proto.tournament.PaginationRequest.prototype.clearOrder = function() {
|
1534
|
+
return jspb.Message.setField(this, 3, undefined);
|
1535
|
+
};
|
1536
|
+
|
1537
|
+
|
1538
|
+
/**
|
1539
|
+
* Returns whether this field is set.
|
1540
|
+
* @return {boolean}
|
1541
|
+
*/
|
1542
|
+
proto.tournament.PaginationRequest.prototype.hasOrder = function() {
|
1543
|
+
return jspb.Message.getField(this, 3) != null;
|
1544
|
+
};
|
1545
|
+
|
1546
|
+
|
1547
|
+
/**
|
1548
|
+
* optional UserSearchRequest user_search_params = 4;
|
1501
1549
|
* @return {?proto.tournament.UserSearchRequest}
|
1502
1550
|
*/
|
1503
1551
|
proto.tournament.PaginationRequest.prototype.getUserSearchParams = function() {
|
1504
1552
|
return /** @type{?proto.tournament.UserSearchRequest} */ (
|
1505
|
-
jspb.Message.getWrapperField(this, proto.tournament.UserSearchRequest,
|
1553
|
+
jspb.Message.getWrapperField(this, proto.tournament.UserSearchRequest, 4));
|
1506
1554
|
};
|
1507
1555
|
|
1508
1556
|
|
@@ -1511,7 +1559,7 @@ proto.tournament.PaginationRequest.prototype.getUserSearchParams = function() {
|
|
1511
1559
|
* @return {!proto.tournament.PaginationRequest} returns this
|
1512
1560
|
*/
|
1513
1561
|
proto.tournament.PaginationRequest.prototype.setUserSearchParams = function(value) {
|
1514
|
-
return jspb.Message.setWrapperField(this,
|
1562
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
1515
1563
|
};
|
1516
1564
|
|
1517
1565
|
|
@@ -1529,17 +1577,17 @@ proto.tournament.PaginationRequest.prototype.clearUserSearchParams = function()
|
|
1529
1577
|
* @return {boolean}
|
1530
1578
|
*/
|
1531
1579
|
proto.tournament.PaginationRequest.prototype.hasUserSearchParams = function() {
|
1532
|
-
return jspb.Message.getField(this,
|
1580
|
+
return jspb.Message.getField(this, 4) != null;
|
1533
1581
|
};
|
1534
1582
|
|
1535
1583
|
|
1536
1584
|
/**
|
1537
|
-
* optional SearchRequest additional_search_params =
|
1585
|
+
* optional SearchRequest additional_search_params = 5;
|
1538
1586
|
* @return {?proto.tournament.SearchRequest}
|
1539
1587
|
*/
|
1540
1588
|
proto.tournament.PaginationRequest.prototype.getAdditionalSearchParams = function() {
|
1541
1589
|
return /** @type{?proto.tournament.SearchRequest} */ (
|
1542
|
-
jspb.Message.getWrapperField(this, proto.tournament.SearchRequest,
|
1590
|
+
jspb.Message.getWrapperField(this, proto.tournament.SearchRequest, 5));
|
1543
1591
|
};
|
1544
1592
|
|
1545
1593
|
|
@@ -1548,7 +1596,7 @@ proto.tournament.PaginationRequest.prototype.getAdditionalSearchParams = functio
|
|
1548
1596
|
* @return {!proto.tournament.PaginationRequest} returns this
|
1549
1597
|
*/
|
1550
1598
|
proto.tournament.PaginationRequest.prototype.setAdditionalSearchParams = function(value) {
|
1551
|
-
return jspb.Message.setWrapperField(this,
|
1599
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
1552
1600
|
};
|
1553
1601
|
|
1554
1602
|
|
@@ -1566,7 +1614,7 @@ proto.tournament.PaginationRequest.prototype.clearAdditionalSearchParams = funct
|
|
1566
1614
|
* @return {boolean}
|
1567
1615
|
*/
|
1568
1616
|
proto.tournament.PaginationRequest.prototype.hasAdditionalSearchParams = function() {
|
1569
|
-
return jspb.Message.getField(this,
|
1617
|
+
return jspb.Message.getField(this, 5) != null;
|
1570
1618
|
};
|
1571
1619
|
|
1572
1620
|
|
package/update_protobuf.sh
CHANGED
@@ -14,4 +14,5 @@ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:payment --grpc_out=
|
|
14
14
|
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:cashback --grpc_out=grpc_js:cashback --proto_path=./cashback ./cashback/*.proto &&
|
15
15
|
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:promocode --grpc_out=grpc_js:promocode --proto_path=./promocode ./promocode/*.proto &&
|
16
16
|
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:tournament --grpc_out=grpc_js:tournament --proto_path=./tournament ./tournament/*.proto &&
|
17
|
-
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:analytic --grpc_out=grpc_js:analytic --proto_path=./analytic ./analytic/*.proto
|
17
|
+
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:analytic --grpc_out=grpc_js:analytic --proto_path=./analytic ./analytic/*.proto &&
|
18
|
+
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:scheduler --grpc_out=grpc_js:scheduler --proto_path=./scheduler ./scheduler/*.proto
|