protobuf-platform 1.2.115 → 1.2.117
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/cms/cms.proto +11 -0
- package/cms/cms_grpc_pb.js +22 -0
- package/cms/cms_pb.js +490 -0
- package/index.js +6 -0
- package/package.json +1 -1
- package/sport/sport.proto +14 -0
- package/sport/sport_grpc_pb.js +44 -0
- package/sport/sport_pb.js +558 -0
- package/update_protobuf.sh +2 -1
package/cms/cms.proto
CHANGED
|
@@ -17,6 +17,7 @@ service CMS {
|
|
|
17
17
|
rpc getHeaderWidget(GetHeaderWidgetRequest) returns (HeaderWidgetItem);
|
|
18
18
|
rpc setFooterWidget(CommonWidgetRequest) returns (FooterWidgetItem);
|
|
19
19
|
rpc getFooterWidget(GetFooterWidgetRequest) returns (FooterWidgetItem);
|
|
20
|
+
rpc getFooterBlocks(GetFooterWidgetRequest) returns (FooterBlocks);
|
|
20
21
|
//Banners
|
|
21
22
|
rpc createSingleBanner(stream BannerRequest) returns (BannerResponse);
|
|
22
23
|
rpc readSingleBanner(GetBannerRequest) returns (BannerResponse);
|
|
@@ -167,6 +168,16 @@ message FooterWidgetItem {
|
|
|
167
168
|
string geo = 1;
|
|
168
169
|
string content = 2;
|
|
169
170
|
}
|
|
171
|
+
message FooterBlockItem {
|
|
172
|
+
int32 id = 1;
|
|
173
|
+
string title = 2;
|
|
174
|
+
string type = 3;
|
|
175
|
+
optional string geo = 4;
|
|
176
|
+
optional int32 is_active = 5;
|
|
177
|
+
}
|
|
178
|
+
message FooterBlocks {
|
|
179
|
+
repeated FooterBlockItem items = 1;
|
|
180
|
+
}
|
|
170
181
|
//Banners CRUD
|
|
171
182
|
message BannerRequest {
|
|
172
183
|
oneof request {
|
package/cms/cms_grpc_pb.js
CHANGED
|
@@ -169,6 +169,17 @@ function deserialize_cms_FooterApplicationsStatusResponse(buffer_arg) {
|
|
|
169
169
|
return cms_pb.FooterApplicationsStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
function serialize_cms_FooterBlocks(arg) {
|
|
173
|
+
if (!(arg instanceof cms_pb.FooterBlocks)) {
|
|
174
|
+
throw new Error('Expected argument of type cms.FooterBlocks');
|
|
175
|
+
}
|
|
176
|
+
return Buffer.from(arg.serializeBinary());
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function deserialize_cms_FooterBlocks(buffer_arg) {
|
|
180
|
+
return cms_pb.FooterBlocks.deserializeBinary(new Uint8Array(buffer_arg));
|
|
181
|
+
}
|
|
182
|
+
|
|
172
183
|
function serialize_cms_FooterBrandCoreItemsResponse(arg) {
|
|
173
184
|
if (!(arg instanceof cms_pb.FooterBrandCoreItemsResponse)) {
|
|
174
185
|
throw new Error('Expected argument of type cms.FooterBrandCoreItemsResponse');
|
|
@@ -1008,6 +1019,17 @@ setMainPageWidget: {
|
|
|
1008
1019
|
responseSerialize: serialize_cms_FooterWidgetItem,
|
|
1009
1020
|
responseDeserialize: deserialize_cms_FooterWidgetItem,
|
|
1010
1021
|
},
|
|
1022
|
+
getFooterBlocks: {
|
|
1023
|
+
path: '/cms.CMS/getFooterBlocks',
|
|
1024
|
+
requestStream: false,
|
|
1025
|
+
responseStream: false,
|
|
1026
|
+
requestType: cms_pb.GetFooterWidgetRequest,
|
|
1027
|
+
responseType: cms_pb.FooterBlocks,
|
|
1028
|
+
requestSerialize: serialize_cms_GetFooterWidgetRequest,
|
|
1029
|
+
requestDeserialize: deserialize_cms_GetFooterWidgetRequest,
|
|
1030
|
+
responseSerialize: serialize_cms_FooterBlocks,
|
|
1031
|
+
responseDeserialize: deserialize_cms_FooterBlocks,
|
|
1032
|
+
},
|
|
1011
1033
|
// Banners
|
|
1012
1034
|
createSingleBanner: {
|
|
1013
1035
|
path: '/cms.CMS/createSingleBanner',
|
package/cms/cms_pb.js
CHANGED
|
@@ -47,6 +47,8 @@ goog.exportSymbol('proto.cms.FooterApplicationsRequest', null, global);
|
|
|
47
47
|
goog.exportSymbol('proto.cms.FooterApplicationsRequest.PayloadCase', null, global);
|
|
48
48
|
goog.exportSymbol('proto.cms.FooterApplicationsResponse', null, global);
|
|
49
49
|
goog.exportSymbol('proto.cms.FooterApplicationsStatusResponse', null, global);
|
|
50
|
+
goog.exportSymbol('proto.cms.FooterBlockItem', null, global);
|
|
51
|
+
goog.exportSymbol('proto.cms.FooterBlocks', null, global);
|
|
50
52
|
goog.exportSymbol('proto.cms.FooterBrandCoreBrief', null, global);
|
|
51
53
|
goog.exportSymbol('proto.cms.FooterBrandCoreFile', null, global);
|
|
52
54
|
goog.exportSymbol('proto.cms.FooterBrandCoreItem', null, global);
|
|
@@ -512,6 +514,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
512
514
|
*/
|
|
513
515
|
proto.cms.FooterWidgetItem.displayName = 'proto.cms.FooterWidgetItem';
|
|
514
516
|
}
|
|
517
|
+
/**
|
|
518
|
+
* Generated by JsPbCodeGenerator.
|
|
519
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
520
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
521
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
522
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
523
|
+
* valid.
|
|
524
|
+
* @extends {jspb.Message}
|
|
525
|
+
* @constructor
|
|
526
|
+
*/
|
|
527
|
+
proto.cms.FooterBlockItem = function(opt_data) {
|
|
528
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
529
|
+
};
|
|
530
|
+
goog.inherits(proto.cms.FooterBlockItem, jspb.Message);
|
|
531
|
+
if (goog.DEBUG && !COMPILED) {
|
|
532
|
+
/**
|
|
533
|
+
* @public
|
|
534
|
+
* @override
|
|
535
|
+
*/
|
|
536
|
+
proto.cms.FooterBlockItem.displayName = 'proto.cms.FooterBlockItem';
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Generated by JsPbCodeGenerator.
|
|
540
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
541
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
542
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
543
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
544
|
+
* valid.
|
|
545
|
+
* @extends {jspb.Message}
|
|
546
|
+
* @constructor
|
|
547
|
+
*/
|
|
548
|
+
proto.cms.FooterBlocks = function(opt_data) {
|
|
549
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.FooterBlocks.repeatedFields_, null);
|
|
550
|
+
};
|
|
551
|
+
goog.inherits(proto.cms.FooterBlocks, jspb.Message);
|
|
552
|
+
if (goog.DEBUG && !COMPILED) {
|
|
553
|
+
/**
|
|
554
|
+
* @public
|
|
555
|
+
* @override
|
|
556
|
+
*/
|
|
557
|
+
proto.cms.FooterBlocks.displayName = 'proto.cms.FooterBlocks';
|
|
558
|
+
}
|
|
515
559
|
/**
|
|
516
560
|
* Generated by JsPbCodeGenerator.
|
|
517
561
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -6036,6 +6080,452 @@ proto.cms.FooterWidgetItem.prototype.setContent = function(value) {
|
|
|
6036
6080
|
|
|
6037
6081
|
|
|
6038
6082
|
|
|
6083
|
+
|
|
6084
|
+
|
|
6085
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6086
|
+
/**
|
|
6087
|
+
* Creates an object representation of this proto.
|
|
6088
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6089
|
+
* Optional fields that are not set will be set to undefined.
|
|
6090
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6091
|
+
* For the list of reserved names please see:
|
|
6092
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6093
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6094
|
+
* JSPB instance for transitional soy proto support:
|
|
6095
|
+
* http://goto/soy-param-migration
|
|
6096
|
+
* @return {!Object}
|
|
6097
|
+
*/
|
|
6098
|
+
proto.cms.FooterBlockItem.prototype.toObject = function(opt_includeInstance) {
|
|
6099
|
+
return proto.cms.FooterBlockItem.toObject(opt_includeInstance, this);
|
|
6100
|
+
};
|
|
6101
|
+
|
|
6102
|
+
|
|
6103
|
+
/**
|
|
6104
|
+
* Static version of the {@see toObject} method.
|
|
6105
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6106
|
+
* the JSPB instance for transitional soy proto support:
|
|
6107
|
+
* http://goto/soy-param-migration
|
|
6108
|
+
* @param {!proto.cms.FooterBlockItem} msg The msg instance to transform.
|
|
6109
|
+
* @return {!Object}
|
|
6110
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6111
|
+
*/
|
|
6112
|
+
proto.cms.FooterBlockItem.toObject = function(includeInstance, msg) {
|
|
6113
|
+
var f, obj = {
|
|
6114
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
6115
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6116
|
+
type: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
6117
|
+
geo: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
6118
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
6119
|
+
};
|
|
6120
|
+
|
|
6121
|
+
if (includeInstance) {
|
|
6122
|
+
obj.$jspbMessageInstance = msg;
|
|
6123
|
+
}
|
|
6124
|
+
return obj;
|
|
6125
|
+
};
|
|
6126
|
+
}
|
|
6127
|
+
|
|
6128
|
+
|
|
6129
|
+
/**
|
|
6130
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6131
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6132
|
+
* @return {!proto.cms.FooterBlockItem}
|
|
6133
|
+
*/
|
|
6134
|
+
proto.cms.FooterBlockItem.deserializeBinary = function(bytes) {
|
|
6135
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6136
|
+
var msg = new proto.cms.FooterBlockItem;
|
|
6137
|
+
return proto.cms.FooterBlockItem.deserializeBinaryFromReader(msg, reader);
|
|
6138
|
+
};
|
|
6139
|
+
|
|
6140
|
+
|
|
6141
|
+
/**
|
|
6142
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6143
|
+
* given reader into the given message object.
|
|
6144
|
+
* @param {!proto.cms.FooterBlockItem} msg The message object to deserialize into.
|
|
6145
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6146
|
+
* @return {!proto.cms.FooterBlockItem}
|
|
6147
|
+
*/
|
|
6148
|
+
proto.cms.FooterBlockItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
6149
|
+
while (reader.nextField()) {
|
|
6150
|
+
if (reader.isEndGroup()) {
|
|
6151
|
+
break;
|
|
6152
|
+
}
|
|
6153
|
+
var field = reader.getFieldNumber();
|
|
6154
|
+
switch (field) {
|
|
6155
|
+
case 1:
|
|
6156
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6157
|
+
msg.setId(value);
|
|
6158
|
+
break;
|
|
6159
|
+
case 2:
|
|
6160
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6161
|
+
msg.setTitle(value);
|
|
6162
|
+
break;
|
|
6163
|
+
case 3:
|
|
6164
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6165
|
+
msg.setType(value);
|
|
6166
|
+
break;
|
|
6167
|
+
case 4:
|
|
6168
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6169
|
+
msg.setGeo(value);
|
|
6170
|
+
break;
|
|
6171
|
+
case 5:
|
|
6172
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6173
|
+
msg.setIsActive(value);
|
|
6174
|
+
break;
|
|
6175
|
+
default:
|
|
6176
|
+
reader.skipField();
|
|
6177
|
+
break;
|
|
6178
|
+
}
|
|
6179
|
+
}
|
|
6180
|
+
return msg;
|
|
6181
|
+
};
|
|
6182
|
+
|
|
6183
|
+
|
|
6184
|
+
/**
|
|
6185
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6186
|
+
* @return {!Uint8Array}
|
|
6187
|
+
*/
|
|
6188
|
+
proto.cms.FooterBlockItem.prototype.serializeBinary = function() {
|
|
6189
|
+
var writer = new jspb.BinaryWriter();
|
|
6190
|
+
proto.cms.FooterBlockItem.serializeBinaryToWriter(this, writer);
|
|
6191
|
+
return writer.getResultBuffer();
|
|
6192
|
+
};
|
|
6193
|
+
|
|
6194
|
+
|
|
6195
|
+
/**
|
|
6196
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6197
|
+
* format), writing to the given BinaryWriter.
|
|
6198
|
+
* @param {!proto.cms.FooterBlockItem} message
|
|
6199
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6200
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6201
|
+
*/
|
|
6202
|
+
proto.cms.FooterBlockItem.serializeBinaryToWriter = function(message, writer) {
|
|
6203
|
+
var f = undefined;
|
|
6204
|
+
f = message.getId();
|
|
6205
|
+
if (f !== 0) {
|
|
6206
|
+
writer.writeInt32(
|
|
6207
|
+
1,
|
|
6208
|
+
f
|
|
6209
|
+
);
|
|
6210
|
+
}
|
|
6211
|
+
f = message.getTitle();
|
|
6212
|
+
if (f.length > 0) {
|
|
6213
|
+
writer.writeString(
|
|
6214
|
+
2,
|
|
6215
|
+
f
|
|
6216
|
+
);
|
|
6217
|
+
}
|
|
6218
|
+
f = message.getType();
|
|
6219
|
+
if (f.length > 0) {
|
|
6220
|
+
writer.writeString(
|
|
6221
|
+
3,
|
|
6222
|
+
f
|
|
6223
|
+
);
|
|
6224
|
+
}
|
|
6225
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
6226
|
+
if (f != null) {
|
|
6227
|
+
writer.writeString(
|
|
6228
|
+
4,
|
|
6229
|
+
f
|
|
6230
|
+
);
|
|
6231
|
+
}
|
|
6232
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
6233
|
+
if (f != null) {
|
|
6234
|
+
writer.writeInt32(
|
|
6235
|
+
5,
|
|
6236
|
+
f
|
|
6237
|
+
);
|
|
6238
|
+
}
|
|
6239
|
+
};
|
|
6240
|
+
|
|
6241
|
+
|
|
6242
|
+
/**
|
|
6243
|
+
* optional int32 id = 1;
|
|
6244
|
+
* @return {number}
|
|
6245
|
+
*/
|
|
6246
|
+
proto.cms.FooterBlockItem.prototype.getId = function() {
|
|
6247
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
6248
|
+
};
|
|
6249
|
+
|
|
6250
|
+
|
|
6251
|
+
/**
|
|
6252
|
+
* @param {number} value
|
|
6253
|
+
* @return {!proto.cms.FooterBlockItem} returns this
|
|
6254
|
+
*/
|
|
6255
|
+
proto.cms.FooterBlockItem.prototype.setId = function(value) {
|
|
6256
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
6257
|
+
};
|
|
6258
|
+
|
|
6259
|
+
|
|
6260
|
+
/**
|
|
6261
|
+
* optional string title = 2;
|
|
6262
|
+
* @return {string}
|
|
6263
|
+
*/
|
|
6264
|
+
proto.cms.FooterBlockItem.prototype.getTitle = function() {
|
|
6265
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
6266
|
+
};
|
|
6267
|
+
|
|
6268
|
+
|
|
6269
|
+
/**
|
|
6270
|
+
* @param {string} value
|
|
6271
|
+
* @return {!proto.cms.FooterBlockItem} returns this
|
|
6272
|
+
*/
|
|
6273
|
+
proto.cms.FooterBlockItem.prototype.setTitle = function(value) {
|
|
6274
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6275
|
+
};
|
|
6276
|
+
|
|
6277
|
+
|
|
6278
|
+
/**
|
|
6279
|
+
* optional string type = 3;
|
|
6280
|
+
* @return {string}
|
|
6281
|
+
*/
|
|
6282
|
+
proto.cms.FooterBlockItem.prototype.getType = function() {
|
|
6283
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
6284
|
+
};
|
|
6285
|
+
|
|
6286
|
+
|
|
6287
|
+
/**
|
|
6288
|
+
* @param {string} value
|
|
6289
|
+
* @return {!proto.cms.FooterBlockItem} returns this
|
|
6290
|
+
*/
|
|
6291
|
+
proto.cms.FooterBlockItem.prototype.setType = function(value) {
|
|
6292
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
6293
|
+
};
|
|
6294
|
+
|
|
6295
|
+
|
|
6296
|
+
/**
|
|
6297
|
+
* optional string geo = 4;
|
|
6298
|
+
* @return {string}
|
|
6299
|
+
*/
|
|
6300
|
+
proto.cms.FooterBlockItem.prototype.getGeo = function() {
|
|
6301
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
6302
|
+
};
|
|
6303
|
+
|
|
6304
|
+
|
|
6305
|
+
/**
|
|
6306
|
+
* @param {string} value
|
|
6307
|
+
* @return {!proto.cms.FooterBlockItem} returns this
|
|
6308
|
+
*/
|
|
6309
|
+
proto.cms.FooterBlockItem.prototype.setGeo = function(value) {
|
|
6310
|
+
return jspb.Message.setField(this, 4, value);
|
|
6311
|
+
};
|
|
6312
|
+
|
|
6313
|
+
|
|
6314
|
+
/**
|
|
6315
|
+
* Clears the field making it undefined.
|
|
6316
|
+
* @return {!proto.cms.FooterBlockItem} returns this
|
|
6317
|
+
*/
|
|
6318
|
+
proto.cms.FooterBlockItem.prototype.clearGeo = function() {
|
|
6319
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
6320
|
+
};
|
|
6321
|
+
|
|
6322
|
+
|
|
6323
|
+
/**
|
|
6324
|
+
* Returns whether this field is set.
|
|
6325
|
+
* @return {boolean}
|
|
6326
|
+
*/
|
|
6327
|
+
proto.cms.FooterBlockItem.prototype.hasGeo = function() {
|
|
6328
|
+
return jspb.Message.getField(this, 4) != null;
|
|
6329
|
+
};
|
|
6330
|
+
|
|
6331
|
+
|
|
6332
|
+
/**
|
|
6333
|
+
* optional int32 is_active = 5;
|
|
6334
|
+
* @return {number}
|
|
6335
|
+
*/
|
|
6336
|
+
proto.cms.FooterBlockItem.prototype.getIsActive = function() {
|
|
6337
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
6338
|
+
};
|
|
6339
|
+
|
|
6340
|
+
|
|
6341
|
+
/**
|
|
6342
|
+
* @param {number} value
|
|
6343
|
+
* @return {!proto.cms.FooterBlockItem} returns this
|
|
6344
|
+
*/
|
|
6345
|
+
proto.cms.FooterBlockItem.prototype.setIsActive = function(value) {
|
|
6346
|
+
return jspb.Message.setField(this, 5, value);
|
|
6347
|
+
};
|
|
6348
|
+
|
|
6349
|
+
|
|
6350
|
+
/**
|
|
6351
|
+
* Clears the field making it undefined.
|
|
6352
|
+
* @return {!proto.cms.FooterBlockItem} returns this
|
|
6353
|
+
*/
|
|
6354
|
+
proto.cms.FooterBlockItem.prototype.clearIsActive = function() {
|
|
6355
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
6356
|
+
};
|
|
6357
|
+
|
|
6358
|
+
|
|
6359
|
+
/**
|
|
6360
|
+
* Returns whether this field is set.
|
|
6361
|
+
* @return {boolean}
|
|
6362
|
+
*/
|
|
6363
|
+
proto.cms.FooterBlockItem.prototype.hasIsActive = function() {
|
|
6364
|
+
return jspb.Message.getField(this, 5) != null;
|
|
6365
|
+
};
|
|
6366
|
+
|
|
6367
|
+
|
|
6368
|
+
|
|
6369
|
+
/**
|
|
6370
|
+
* List of repeated fields within this message type.
|
|
6371
|
+
* @private {!Array<number>}
|
|
6372
|
+
* @const
|
|
6373
|
+
*/
|
|
6374
|
+
proto.cms.FooterBlocks.repeatedFields_ = [1];
|
|
6375
|
+
|
|
6376
|
+
|
|
6377
|
+
|
|
6378
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6379
|
+
/**
|
|
6380
|
+
* Creates an object representation of this proto.
|
|
6381
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6382
|
+
* Optional fields that are not set will be set to undefined.
|
|
6383
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6384
|
+
* For the list of reserved names please see:
|
|
6385
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6386
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6387
|
+
* JSPB instance for transitional soy proto support:
|
|
6388
|
+
* http://goto/soy-param-migration
|
|
6389
|
+
* @return {!Object}
|
|
6390
|
+
*/
|
|
6391
|
+
proto.cms.FooterBlocks.prototype.toObject = function(opt_includeInstance) {
|
|
6392
|
+
return proto.cms.FooterBlocks.toObject(opt_includeInstance, this);
|
|
6393
|
+
};
|
|
6394
|
+
|
|
6395
|
+
|
|
6396
|
+
/**
|
|
6397
|
+
* Static version of the {@see toObject} method.
|
|
6398
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6399
|
+
* the JSPB instance for transitional soy proto support:
|
|
6400
|
+
* http://goto/soy-param-migration
|
|
6401
|
+
* @param {!proto.cms.FooterBlocks} msg The msg instance to transform.
|
|
6402
|
+
* @return {!Object}
|
|
6403
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6404
|
+
*/
|
|
6405
|
+
proto.cms.FooterBlocks.toObject = function(includeInstance, msg) {
|
|
6406
|
+
var f, obj = {
|
|
6407
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
6408
|
+
proto.cms.FooterBlockItem.toObject, includeInstance)
|
|
6409
|
+
};
|
|
6410
|
+
|
|
6411
|
+
if (includeInstance) {
|
|
6412
|
+
obj.$jspbMessageInstance = msg;
|
|
6413
|
+
}
|
|
6414
|
+
return obj;
|
|
6415
|
+
};
|
|
6416
|
+
}
|
|
6417
|
+
|
|
6418
|
+
|
|
6419
|
+
/**
|
|
6420
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6421
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6422
|
+
* @return {!proto.cms.FooterBlocks}
|
|
6423
|
+
*/
|
|
6424
|
+
proto.cms.FooterBlocks.deserializeBinary = function(bytes) {
|
|
6425
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6426
|
+
var msg = new proto.cms.FooterBlocks;
|
|
6427
|
+
return proto.cms.FooterBlocks.deserializeBinaryFromReader(msg, reader);
|
|
6428
|
+
};
|
|
6429
|
+
|
|
6430
|
+
|
|
6431
|
+
/**
|
|
6432
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6433
|
+
* given reader into the given message object.
|
|
6434
|
+
* @param {!proto.cms.FooterBlocks} msg The message object to deserialize into.
|
|
6435
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6436
|
+
* @return {!proto.cms.FooterBlocks}
|
|
6437
|
+
*/
|
|
6438
|
+
proto.cms.FooterBlocks.deserializeBinaryFromReader = function(msg, reader) {
|
|
6439
|
+
while (reader.nextField()) {
|
|
6440
|
+
if (reader.isEndGroup()) {
|
|
6441
|
+
break;
|
|
6442
|
+
}
|
|
6443
|
+
var field = reader.getFieldNumber();
|
|
6444
|
+
switch (field) {
|
|
6445
|
+
case 1:
|
|
6446
|
+
var value = new proto.cms.FooterBlockItem;
|
|
6447
|
+
reader.readMessage(value,proto.cms.FooterBlockItem.deserializeBinaryFromReader);
|
|
6448
|
+
msg.addItems(value);
|
|
6449
|
+
break;
|
|
6450
|
+
default:
|
|
6451
|
+
reader.skipField();
|
|
6452
|
+
break;
|
|
6453
|
+
}
|
|
6454
|
+
}
|
|
6455
|
+
return msg;
|
|
6456
|
+
};
|
|
6457
|
+
|
|
6458
|
+
|
|
6459
|
+
/**
|
|
6460
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6461
|
+
* @return {!Uint8Array}
|
|
6462
|
+
*/
|
|
6463
|
+
proto.cms.FooterBlocks.prototype.serializeBinary = function() {
|
|
6464
|
+
var writer = new jspb.BinaryWriter();
|
|
6465
|
+
proto.cms.FooterBlocks.serializeBinaryToWriter(this, writer);
|
|
6466
|
+
return writer.getResultBuffer();
|
|
6467
|
+
};
|
|
6468
|
+
|
|
6469
|
+
|
|
6470
|
+
/**
|
|
6471
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6472
|
+
* format), writing to the given BinaryWriter.
|
|
6473
|
+
* @param {!proto.cms.FooterBlocks} message
|
|
6474
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6475
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6476
|
+
*/
|
|
6477
|
+
proto.cms.FooterBlocks.serializeBinaryToWriter = function(message, writer) {
|
|
6478
|
+
var f = undefined;
|
|
6479
|
+
f = message.getItemsList();
|
|
6480
|
+
if (f.length > 0) {
|
|
6481
|
+
writer.writeRepeatedMessage(
|
|
6482
|
+
1,
|
|
6483
|
+
f,
|
|
6484
|
+
proto.cms.FooterBlockItem.serializeBinaryToWriter
|
|
6485
|
+
);
|
|
6486
|
+
}
|
|
6487
|
+
};
|
|
6488
|
+
|
|
6489
|
+
|
|
6490
|
+
/**
|
|
6491
|
+
* repeated FooterBlockItem items = 1;
|
|
6492
|
+
* @return {!Array<!proto.cms.FooterBlockItem>}
|
|
6493
|
+
*/
|
|
6494
|
+
proto.cms.FooterBlocks.prototype.getItemsList = function() {
|
|
6495
|
+
return /** @type{!Array<!proto.cms.FooterBlockItem>} */ (
|
|
6496
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.FooterBlockItem, 1));
|
|
6497
|
+
};
|
|
6498
|
+
|
|
6499
|
+
|
|
6500
|
+
/**
|
|
6501
|
+
* @param {!Array<!proto.cms.FooterBlockItem>} value
|
|
6502
|
+
* @return {!proto.cms.FooterBlocks} returns this
|
|
6503
|
+
*/
|
|
6504
|
+
proto.cms.FooterBlocks.prototype.setItemsList = function(value) {
|
|
6505
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
6506
|
+
};
|
|
6507
|
+
|
|
6508
|
+
|
|
6509
|
+
/**
|
|
6510
|
+
* @param {!proto.cms.FooterBlockItem=} opt_value
|
|
6511
|
+
* @param {number=} opt_index
|
|
6512
|
+
* @return {!proto.cms.FooterBlockItem}
|
|
6513
|
+
*/
|
|
6514
|
+
proto.cms.FooterBlocks.prototype.addItems = function(opt_value, opt_index) {
|
|
6515
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.FooterBlockItem, opt_index);
|
|
6516
|
+
};
|
|
6517
|
+
|
|
6518
|
+
|
|
6519
|
+
/**
|
|
6520
|
+
* Clears the list making it empty but non-null.
|
|
6521
|
+
* @return {!proto.cms.FooterBlocks} returns this
|
|
6522
|
+
*/
|
|
6523
|
+
proto.cms.FooterBlocks.prototype.clearItemsList = function() {
|
|
6524
|
+
return this.setItemsList([]);
|
|
6525
|
+
};
|
|
6526
|
+
|
|
6527
|
+
|
|
6528
|
+
|
|
6039
6529
|
/**
|
|
6040
6530
|
* Oneof group definitions for this message. Each group defines the field
|
|
6041
6531
|
* numbers belonging to that group. When of these fields' value is set, all
|
package/index.js
CHANGED
|
@@ -33,6 +33,8 @@ const AnalyticService = require('./analytic/analytic_grpc_pb');
|
|
|
33
33
|
const AnalyticServiceMessages = require('./analytic/analytic_pb');
|
|
34
34
|
const SchedulerService = require('./scheduler/scheduler_grpc_pb');
|
|
35
35
|
const SchedulerServiceMessages = require('./scheduler/scheduler_pb');
|
|
36
|
+
const SportService = require('./sport/sport_grpc_pb');
|
|
37
|
+
const SportServiceMessage = require('./sport/sport_pb');
|
|
36
38
|
module.exports = {
|
|
37
39
|
gRPC: gRPC,
|
|
38
40
|
maxSendMessageLength: 10388608,
|
|
@@ -102,4 +104,8 @@ module.exports = {
|
|
|
102
104
|
service: SchedulerService,
|
|
103
105
|
messages: SchedulerServiceMessages
|
|
104
106
|
},
|
|
107
|
+
sport: {
|
|
108
|
+
service: SportService,
|
|
109
|
+
messages: SportServiceMessage
|
|
110
|
+
},
|
|
105
111
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package sport;
|
|
4
|
+
|
|
5
|
+
service Sport {
|
|
6
|
+
rpc checkConnection(PingRequest) returns (PongResponse);
|
|
7
|
+
}
|
|
8
|
+
message PingRequest { string ping = 1; }
|
|
9
|
+
message PongResponse { string pong = 1; }
|
|
10
|
+
message PaginationRequest {
|
|
11
|
+
int32 limit = 1;
|
|
12
|
+
int32 offset = 2;
|
|
13
|
+
optional string order = 3;
|
|
14
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var sport_pb = require('./sport_pb.js');
|
|
6
|
+
|
|
7
|
+
function serialize_sport_PingRequest(arg) {
|
|
8
|
+
if (!(arg instanceof sport_pb.PingRequest)) {
|
|
9
|
+
throw new Error('Expected argument of type sport.PingRequest');
|
|
10
|
+
}
|
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function deserialize_sport_PingRequest(buffer_arg) {
|
|
15
|
+
return sport_pb.PingRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function serialize_sport_PongResponse(arg) {
|
|
19
|
+
if (!(arg instanceof sport_pb.PongResponse)) {
|
|
20
|
+
throw new Error('Expected argument of type sport.PongResponse');
|
|
21
|
+
}
|
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function deserialize_sport_PongResponse(buffer_arg) {
|
|
26
|
+
return sport_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var SportService = exports.SportService = {
|
|
31
|
+
checkConnection: {
|
|
32
|
+
path: '/sport.Sport/checkConnection',
|
|
33
|
+
requestStream: false,
|
|
34
|
+
responseStream: false,
|
|
35
|
+
requestType: sport_pb.PingRequest,
|
|
36
|
+
responseType: sport_pb.PongResponse,
|
|
37
|
+
requestSerialize: serialize_sport_PingRequest,
|
|
38
|
+
requestDeserialize: deserialize_sport_PingRequest,
|
|
39
|
+
responseSerialize: serialize_sport_PongResponse,
|
|
40
|
+
responseDeserialize: deserialize_sport_PongResponse,
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
exports.SportClient = grpc.makeGenericClientConstructor(SportService, 'Sport');
|
|
@@ -0,0 +1,558 @@
|
|
|
1
|
+
// source: sport.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.sport.PaginationRequest', null, global);
|
|
25
|
+
goog.exportSymbol('proto.sport.PingRequest', null, global);
|
|
26
|
+
goog.exportSymbol('proto.sport.PongResponse', null, global);
|
|
27
|
+
/**
|
|
28
|
+
* Generated by JsPbCodeGenerator.
|
|
29
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
30
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
31
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
32
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
33
|
+
* valid.
|
|
34
|
+
* @extends {jspb.Message}
|
|
35
|
+
* @constructor
|
|
36
|
+
*/
|
|
37
|
+
proto.sport.PingRequest = function(opt_data) {
|
|
38
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
39
|
+
};
|
|
40
|
+
goog.inherits(proto.sport.PingRequest, jspb.Message);
|
|
41
|
+
if (goog.DEBUG && !COMPILED) {
|
|
42
|
+
/**
|
|
43
|
+
* @public
|
|
44
|
+
* @override
|
|
45
|
+
*/
|
|
46
|
+
proto.sport.PingRequest.displayName = 'proto.sport.PingRequest';
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Generated by JsPbCodeGenerator.
|
|
50
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
51
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
52
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
53
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
54
|
+
* valid.
|
|
55
|
+
* @extends {jspb.Message}
|
|
56
|
+
* @constructor
|
|
57
|
+
*/
|
|
58
|
+
proto.sport.PongResponse = function(opt_data) {
|
|
59
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
60
|
+
};
|
|
61
|
+
goog.inherits(proto.sport.PongResponse, jspb.Message);
|
|
62
|
+
if (goog.DEBUG && !COMPILED) {
|
|
63
|
+
/**
|
|
64
|
+
* @public
|
|
65
|
+
* @override
|
|
66
|
+
*/
|
|
67
|
+
proto.sport.PongResponse.displayName = 'proto.sport.PongResponse';
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Generated by JsPbCodeGenerator.
|
|
71
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
72
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
73
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
74
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
75
|
+
* valid.
|
|
76
|
+
* @extends {jspb.Message}
|
|
77
|
+
* @constructor
|
|
78
|
+
*/
|
|
79
|
+
proto.sport.PaginationRequest = function(opt_data) {
|
|
80
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
81
|
+
};
|
|
82
|
+
goog.inherits(proto.sport.PaginationRequest, jspb.Message);
|
|
83
|
+
if (goog.DEBUG && !COMPILED) {
|
|
84
|
+
/**
|
|
85
|
+
* @public
|
|
86
|
+
* @override
|
|
87
|
+
*/
|
|
88
|
+
proto.sport.PaginationRequest.displayName = 'proto.sport.PaginationRequest';
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
94
|
+
/**
|
|
95
|
+
* Creates an object representation of this proto.
|
|
96
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
97
|
+
* Optional fields that are not set will be set to undefined.
|
|
98
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
99
|
+
* For the list of reserved names please see:
|
|
100
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
101
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
102
|
+
* JSPB instance for transitional soy proto support:
|
|
103
|
+
* http://goto/soy-param-migration
|
|
104
|
+
* @return {!Object}
|
|
105
|
+
*/
|
|
106
|
+
proto.sport.PingRequest.prototype.toObject = function(opt_includeInstance) {
|
|
107
|
+
return proto.sport.PingRequest.toObject(opt_includeInstance, this);
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Static version of the {@see toObject} method.
|
|
113
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
114
|
+
* the JSPB instance for transitional soy proto support:
|
|
115
|
+
* http://goto/soy-param-migration
|
|
116
|
+
* @param {!proto.sport.PingRequest} msg The msg instance to transform.
|
|
117
|
+
* @return {!Object}
|
|
118
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
119
|
+
*/
|
|
120
|
+
proto.sport.PingRequest.toObject = function(includeInstance, msg) {
|
|
121
|
+
var f, obj = {
|
|
122
|
+
ping: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
if (includeInstance) {
|
|
126
|
+
obj.$jspbMessageInstance = msg;
|
|
127
|
+
}
|
|
128
|
+
return obj;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Deserializes binary data (in protobuf wire format).
|
|
135
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
136
|
+
* @return {!proto.sport.PingRequest}
|
|
137
|
+
*/
|
|
138
|
+
proto.sport.PingRequest.deserializeBinary = function(bytes) {
|
|
139
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
140
|
+
var msg = new proto.sport.PingRequest;
|
|
141
|
+
return proto.sport.PingRequest.deserializeBinaryFromReader(msg, reader);
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
147
|
+
* given reader into the given message object.
|
|
148
|
+
* @param {!proto.sport.PingRequest} msg The message object to deserialize into.
|
|
149
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
150
|
+
* @return {!proto.sport.PingRequest}
|
|
151
|
+
*/
|
|
152
|
+
proto.sport.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
153
|
+
while (reader.nextField()) {
|
|
154
|
+
if (reader.isEndGroup()) {
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
var field = reader.getFieldNumber();
|
|
158
|
+
switch (field) {
|
|
159
|
+
case 1:
|
|
160
|
+
var value = /** @type {string} */ (reader.readString());
|
|
161
|
+
msg.setPing(value);
|
|
162
|
+
break;
|
|
163
|
+
default:
|
|
164
|
+
reader.skipField();
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return msg;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
174
|
+
* @return {!Uint8Array}
|
|
175
|
+
*/
|
|
176
|
+
proto.sport.PingRequest.prototype.serializeBinary = function() {
|
|
177
|
+
var writer = new jspb.BinaryWriter();
|
|
178
|
+
proto.sport.PingRequest.serializeBinaryToWriter(this, writer);
|
|
179
|
+
return writer.getResultBuffer();
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
185
|
+
* format), writing to the given BinaryWriter.
|
|
186
|
+
* @param {!proto.sport.PingRequest} message
|
|
187
|
+
* @param {!jspb.BinaryWriter} writer
|
|
188
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
189
|
+
*/
|
|
190
|
+
proto.sport.PingRequest.serializeBinaryToWriter = function(message, writer) {
|
|
191
|
+
var f = undefined;
|
|
192
|
+
f = message.getPing();
|
|
193
|
+
if (f.length > 0) {
|
|
194
|
+
writer.writeString(
|
|
195
|
+
1,
|
|
196
|
+
f
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* optional string ping = 1;
|
|
204
|
+
* @return {string}
|
|
205
|
+
*/
|
|
206
|
+
proto.sport.PingRequest.prototype.getPing = function() {
|
|
207
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @param {string} value
|
|
213
|
+
* @return {!proto.sport.PingRequest} returns this
|
|
214
|
+
*/
|
|
215
|
+
proto.sport.PingRequest.prototype.setPing = function(value) {
|
|
216
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
224
|
+
/**
|
|
225
|
+
* Creates an object representation of this proto.
|
|
226
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
227
|
+
* Optional fields that are not set will be set to undefined.
|
|
228
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
229
|
+
* For the list of reserved names please see:
|
|
230
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
231
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
232
|
+
* JSPB instance for transitional soy proto support:
|
|
233
|
+
* http://goto/soy-param-migration
|
|
234
|
+
* @return {!Object}
|
|
235
|
+
*/
|
|
236
|
+
proto.sport.PongResponse.prototype.toObject = function(opt_includeInstance) {
|
|
237
|
+
return proto.sport.PongResponse.toObject(opt_includeInstance, this);
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Static version of the {@see toObject} method.
|
|
243
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
244
|
+
* the JSPB instance for transitional soy proto support:
|
|
245
|
+
* http://goto/soy-param-migration
|
|
246
|
+
* @param {!proto.sport.PongResponse} msg The msg instance to transform.
|
|
247
|
+
* @return {!Object}
|
|
248
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
249
|
+
*/
|
|
250
|
+
proto.sport.PongResponse.toObject = function(includeInstance, msg) {
|
|
251
|
+
var f, obj = {
|
|
252
|
+
pong: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
if (includeInstance) {
|
|
256
|
+
obj.$jspbMessageInstance = msg;
|
|
257
|
+
}
|
|
258
|
+
return obj;
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Deserializes binary data (in protobuf wire format).
|
|
265
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
266
|
+
* @return {!proto.sport.PongResponse}
|
|
267
|
+
*/
|
|
268
|
+
proto.sport.PongResponse.deserializeBinary = function(bytes) {
|
|
269
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
270
|
+
var msg = new proto.sport.PongResponse;
|
|
271
|
+
return proto.sport.PongResponse.deserializeBinaryFromReader(msg, reader);
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
277
|
+
* given reader into the given message object.
|
|
278
|
+
* @param {!proto.sport.PongResponse} msg The message object to deserialize into.
|
|
279
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
280
|
+
* @return {!proto.sport.PongResponse}
|
|
281
|
+
*/
|
|
282
|
+
proto.sport.PongResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
283
|
+
while (reader.nextField()) {
|
|
284
|
+
if (reader.isEndGroup()) {
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
var field = reader.getFieldNumber();
|
|
288
|
+
switch (field) {
|
|
289
|
+
case 1:
|
|
290
|
+
var value = /** @type {string} */ (reader.readString());
|
|
291
|
+
msg.setPong(value);
|
|
292
|
+
break;
|
|
293
|
+
default:
|
|
294
|
+
reader.skipField();
|
|
295
|
+
break;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
return msg;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
304
|
+
* @return {!Uint8Array}
|
|
305
|
+
*/
|
|
306
|
+
proto.sport.PongResponse.prototype.serializeBinary = function() {
|
|
307
|
+
var writer = new jspb.BinaryWriter();
|
|
308
|
+
proto.sport.PongResponse.serializeBinaryToWriter(this, writer);
|
|
309
|
+
return writer.getResultBuffer();
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
315
|
+
* format), writing to the given BinaryWriter.
|
|
316
|
+
* @param {!proto.sport.PongResponse} message
|
|
317
|
+
* @param {!jspb.BinaryWriter} writer
|
|
318
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
319
|
+
*/
|
|
320
|
+
proto.sport.PongResponse.serializeBinaryToWriter = function(message, writer) {
|
|
321
|
+
var f = undefined;
|
|
322
|
+
f = message.getPong();
|
|
323
|
+
if (f.length > 0) {
|
|
324
|
+
writer.writeString(
|
|
325
|
+
1,
|
|
326
|
+
f
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* optional string pong = 1;
|
|
334
|
+
* @return {string}
|
|
335
|
+
*/
|
|
336
|
+
proto.sport.PongResponse.prototype.getPong = function() {
|
|
337
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @param {string} value
|
|
343
|
+
* @return {!proto.sport.PongResponse} returns this
|
|
344
|
+
*/
|
|
345
|
+
proto.sport.PongResponse.prototype.setPong = function(value) {
|
|
346
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
354
|
+
/**
|
|
355
|
+
* Creates an object representation of this proto.
|
|
356
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
357
|
+
* Optional fields that are not set will be set to undefined.
|
|
358
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
359
|
+
* For the list of reserved names please see:
|
|
360
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
361
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
362
|
+
* JSPB instance for transitional soy proto support:
|
|
363
|
+
* http://goto/soy-param-migration
|
|
364
|
+
* @return {!Object}
|
|
365
|
+
*/
|
|
366
|
+
proto.sport.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
367
|
+
return proto.sport.PaginationRequest.toObject(opt_includeInstance, this);
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Static version of the {@see toObject} method.
|
|
373
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
374
|
+
* the JSPB instance for transitional soy proto support:
|
|
375
|
+
* http://goto/soy-param-migration
|
|
376
|
+
* @param {!proto.sport.PaginationRequest} msg The msg instance to transform.
|
|
377
|
+
* @return {!Object}
|
|
378
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
379
|
+
*/
|
|
380
|
+
proto.sport.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
381
|
+
var f, obj = {
|
|
382
|
+
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
383
|
+
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
384
|
+
order: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
if (includeInstance) {
|
|
388
|
+
obj.$jspbMessageInstance = msg;
|
|
389
|
+
}
|
|
390
|
+
return obj;
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Deserializes binary data (in protobuf wire format).
|
|
397
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
398
|
+
* @return {!proto.sport.PaginationRequest}
|
|
399
|
+
*/
|
|
400
|
+
proto.sport.PaginationRequest.deserializeBinary = function(bytes) {
|
|
401
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
402
|
+
var msg = new proto.sport.PaginationRequest;
|
|
403
|
+
return proto.sport.PaginationRequest.deserializeBinaryFromReader(msg, reader);
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
409
|
+
* given reader into the given message object.
|
|
410
|
+
* @param {!proto.sport.PaginationRequest} msg The message object to deserialize into.
|
|
411
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
412
|
+
* @return {!proto.sport.PaginationRequest}
|
|
413
|
+
*/
|
|
414
|
+
proto.sport.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
415
|
+
while (reader.nextField()) {
|
|
416
|
+
if (reader.isEndGroup()) {
|
|
417
|
+
break;
|
|
418
|
+
}
|
|
419
|
+
var field = reader.getFieldNumber();
|
|
420
|
+
switch (field) {
|
|
421
|
+
case 1:
|
|
422
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
423
|
+
msg.setLimit(value);
|
|
424
|
+
break;
|
|
425
|
+
case 2:
|
|
426
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
427
|
+
msg.setOffset(value);
|
|
428
|
+
break;
|
|
429
|
+
case 3:
|
|
430
|
+
var value = /** @type {string} */ (reader.readString());
|
|
431
|
+
msg.setOrder(value);
|
|
432
|
+
break;
|
|
433
|
+
default:
|
|
434
|
+
reader.skipField();
|
|
435
|
+
break;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
return msg;
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
444
|
+
* @return {!Uint8Array}
|
|
445
|
+
*/
|
|
446
|
+
proto.sport.PaginationRequest.prototype.serializeBinary = function() {
|
|
447
|
+
var writer = new jspb.BinaryWriter();
|
|
448
|
+
proto.sport.PaginationRequest.serializeBinaryToWriter(this, writer);
|
|
449
|
+
return writer.getResultBuffer();
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
455
|
+
* format), writing to the given BinaryWriter.
|
|
456
|
+
* @param {!proto.sport.PaginationRequest} message
|
|
457
|
+
* @param {!jspb.BinaryWriter} writer
|
|
458
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
459
|
+
*/
|
|
460
|
+
proto.sport.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
461
|
+
var f = undefined;
|
|
462
|
+
f = message.getLimit();
|
|
463
|
+
if (f !== 0) {
|
|
464
|
+
writer.writeInt32(
|
|
465
|
+
1,
|
|
466
|
+
f
|
|
467
|
+
);
|
|
468
|
+
}
|
|
469
|
+
f = message.getOffset();
|
|
470
|
+
if (f !== 0) {
|
|
471
|
+
writer.writeInt32(
|
|
472
|
+
2,
|
|
473
|
+
f
|
|
474
|
+
);
|
|
475
|
+
}
|
|
476
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
477
|
+
if (f != null) {
|
|
478
|
+
writer.writeString(
|
|
479
|
+
3,
|
|
480
|
+
f
|
|
481
|
+
);
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* optional int32 limit = 1;
|
|
488
|
+
* @return {number}
|
|
489
|
+
*/
|
|
490
|
+
proto.sport.PaginationRequest.prototype.getLimit = function() {
|
|
491
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* @param {number} value
|
|
497
|
+
* @return {!proto.sport.PaginationRequest} returns this
|
|
498
|
+
*/
|
|
499
|
+
proto.sport.PaginationRequest.prototype.setLimit = function(value) {
|
|
500
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* optional int32 offset = 2;
|
|
506
|
+
* @return {number}
|
|
507
|
+
*/
|
|
508
|
+
proto.sport.PaginationRequest.prototype.getOffset = function() {
|
|
509
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* @param {number} value
|
|
515
|
+
* @return {!proto.sport.PaginationRequest} returns this
|
|
516
|
+
*/
|
|
517
|
+
proto.sport.PaginationRequest.prototype.setOffset = function(value) {
|
|
518
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* optional string order = 3;
|
|
524
|
+
* @return {string}
|
|
525
|
+
*/
|
|
526
|
+
proto.sport.PaginationRequest.prototype.getOrder = function() {
|
|
527
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* @param {string} value
|
|
533
|
+
* @return {!proto.sport.PaginationRequest} returns this
|
|
534
|
+
*/
|
|
535
|
+
proto.sport.PaginationRequest.prototype.setOrder = function(value) {
|
|
536
|
+
return jspb.Message.setField(this, 3, value);
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Clears the field making it undefined.
|
|
542
|
+
* @return {!proto.sport.PaginationRequest} returns this
|
|
543
|
+
*/
|
|
544
|
+
proto.sport.PaginationRequest.prototype.clearOrder = function() {
|
|
545
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Returns whether this field is set.
|
|
551
|
+
* @return {boolean}
|
|
552
|
+
*/
|
|
553
|
+
proto.sport.PaginationRequest.prototype.hasOrder = function() {
|
|
554
|
+
return jspb.Message.getField(this, 3) != null;
|
|
555
|
+
};
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
goog.object.extend(exports, proto.sport);
|
package/update_protobuf.sh
CHANGED
|
@@ -15,4 +15,5 @@ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:cashback --grpc_out
|
|
|
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
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
|
|
18
|
+
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:scheduler --grpc_out=grpc_js:scheduler --proto_path=./scheduler ./scheduler/*.proto &&
|
|
19
|
+
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:sport --grpc_out=grpc_js:sport --proto_path=./sport ./sport/*.proto
|