protobuf-platform 1.2.119 → 1.2.121
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/package.json +5 -2
- package/sport/sport.proto +10 -3
- package/sport/sport_grpc_pb.js +34 -0
- package/sport/sport_pb.js +332 -28
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "protobuf-platform",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.121",
|
|
4
4
|
"description": "Protobuf structures",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://gitlab.com/platform5334443/backend/protobuf#readme",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@grpc/grpc-js": "^1.12.2",
|
|
25
24
|
"google-protobuf": "^3.21.4"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@grpc/grpc-js": "^1.14.1",
|
|
28
|
+
"grpc-tools": "^1.13.0"
|
|
26
29
|
}
|
|
27
30
|
}
|
package/sport/sport.proto
CHANGED
|
@@ -6,6 +6,8 @@ service Sport {
|
|
|
6
6
|
rpc checkConnection(PingRequest) returns (PongResponse);
|
|
7
7
|
// Launch Betby sportsbook widget for user or guest.
|
|
8
8
|
rpc launchBetby(LaunchBetbyRequest) returns (LaunchBetbyResponse);
|
|
9
|
+
//Vendor
|
|
10
|
+
rpc processedVendorActionCallback(VendorActionRequest) returns (VendorActionResponse);
|
|
9
11
|
}
|
|
10
12
|
message PingRequest { string ping = 1; }
|
|
11
13
|
message PongResponse { string pong = 1; }
|
|
@@ -32,6 +34,7 @@ message LaunchBetbyRequest {
|
|
|
32
34
|
optional string client_ip = 5;
|
|
33
35
|
|
|
34
36
|
optional string player_name = 6;
|
|
37
|
+
optional string session_id = 7;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
// Launch response with rendered Betby widget.
|
|
@@ -41,7 +44,11 @@ message LaunchBetbyResponse {
|
|
|
41
44
|
|
|
42
45
|
// Launch mode: "guest" or "player".
|
|
43
46
|
optional string mode = 2;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
}
|
|
48
|
+
//Vendor
|
|
49
|
+
message VendorActionRequest {
|
|
50
|
+
string data = 1;
|
|
51
|
+
}
|
|
52
|
+
message VendorActionResponse {
|
|
53
|
+
string data = 1;
|
|
47
54
|
}
|
package/sport/sport_grpc_pb.js
CHANGED
|
@@ -48,6 +48,28 @@ function deserialize_sport_PongResponse(buffer_arg) {
|
|
|
48
48
|
return sport_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
function serialize_sport_VendorActionRequest(arg) {
|
|
52
|
+
if (!(arg instanceof sport_pb.VendorActionRequest)) {
|
|
53
|
+
throw new Error('Expected argument of type sport.VendorActionRequest');
|
|
54
|
+
}
|
|
55
|
+
return Buffer.from(arg.serializeBinary());
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function deserialize_sport_VendorActionRequest(buffer_arg) {
|
|
59
|
+
return sport_pb.VendorActionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function serialize_sport_VendorActionResponse(arg) {
|
|
63
|
+
if (!(arg instanceof sport_pb.VendorActionResponse)) {
|
|
64
|
+
throw new Error('Expected argument of type sport.VendorActionResponse');
|
|
65
|
+
}
|
|
66
|
+
return Buffer.from(arg.serializeBinary());
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function deserialize_sport_VendorActionResponse(buffer_arg) {
|
|
70
|
+
return sport_pb.VendorActionResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
71
|
+
}
|
|
72
|
+
|
|
51
73
|
|
|
52
74
|
var SportService = exports.SportService = {
|
|
53
75
|
checkConnection: {
|
|
@@ -73,6 +95,18 @@ launchBetby: {
|
|
|
73
95
|
responseSerialize: serialize_sport_LaunchBetbyResponse,
|
|
74
96
|
responseDeserialize: deserialize_sport_LaunchBetbyResponse,
|
|
75
97
|
},
|
|
98
|
+
// Vendor
|
|
99
|
+
processedVendorActionCallback: {
|
|
100
|
+
path: '/sport.Sport/processedVendorActionCallback',
|
|
101
|
+
requestStream: false,
|
|
102
|
+
responseStream: false,
|
|
103
|
+
requestType: sport_pb.VendorActionRequest,
|
|
104
|
+
responseType: sport_pb.VendorActionResponse,
|
|
105
|
+
requestSerialize: serialize_sport_VendorActionRequest,
|
|
106
|
+
requestDeserialize: deserialize_sport_VendorActionRequest,
|
|
107
|
+
responseSerialize: serialize_sport_VendorActionResponse,
|
|
108
|
+
responseDeserialize: deserialize_sport_VendorActionResponse,
|
|
109
|
+
},
|
|
76
110
|
};
|
|
77
111
|
|
|
78
112
|
exports.SportClient = grpc.makeGenericClientConstructor(SportService, 'Sport');
|
package/sport/sport_pb.js
CHANGED
|
@@ -26,6 +26,8 @@ goog.exportSymbol('proto.sport.LaunchBetbyResponse', null, global);
|
|
|
26
26
|
goog.exportSymbol('proto.sport.PaginationRequest', null, global);
|
|
27
27
|
goog.exportSymbol('proto.sport.PingRequest', null, global);
|
|
28
28
|
goog.exportSymbol('proto.sport.PongResponse', null, global);
|
|
29
|
+
goog.exportSymbol('proto.sport.VendorActionRequest', null, global);
|
|
30
|
+
goog.exportSymbol('proto.sport.VendorActionResponse', null, global);
|
|
29
31
|
/**
|
|
30
32
|
* Generated by JsPbCodeGenerator.
|
|
31
33
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -131,6 +133,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
131
133
|
*/
|
|
132
134
|
proto.sport.LaunchBetbyResponse.displayName = 'proto.sport.LaunchBetbyResponse';
|
|
133
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* Generated by JsPbCodeGenerator.
|
|
138
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
139
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
140
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
141
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
142
|
+
* valid.
|
|
143
|
+
* @extends {jspb.Message}
|
|
144
|
+
* @constructor
|
|
145
|
+
*/
|
|
146
|
+
proto.sport.VendorActionRequest = function(opt_data) {
|
|
147
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
148
|
+
};
|
|
149
|
+
goog.inherits(proto.sport.VendorActionRequest, jspb.Message);
|
|
150
|
+
if (goog.DEBUG && !COMPILED) {
|
|
151
|
+
/**
|
|
152
|
+
* @public
|
|
153
|
+
* @override
|
|
154
|
+
*/
|
|
155
|
+
proto.sport.VendorActionRequest.displayName = 'proto.sport.VendorActionRequest';
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Generated by JsPbCodeGenerator.
|
|
159
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
160
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
161
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
162
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
163
|
+
* valid.
|
|
164
|
+
* @extends {jspb.Message}
|
|
165
|
+
* @constructor
|
|
166
|
+
*/
|
|
167
|
+
proto.sport.VendorActionResponse = function(opt_data) {
|
|
168
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
169
|
+
};
|
|
170
|
+
goog.inherits(proto.sport.VendorActionResponse, jspb.Message);
|
|
171
|
+
if (goog.DEBUG && !COMPILED) {
|
|
172
|
+
/**
|
|
173
|
+
* @public
|
|
174
|
+
* @override
|
|
175
|
+
*/
|
|
176
|
+
proto.sport.VendorActionResponse.displayName = 'proto.sport.VendorActionResponse';
|
|
177
|
+
}
|
|
134
178
|
|
|
135
179
|
|
|
136
180
|
|
|
@@ -636,7 +680,8 @@ proto.sport.LaunchBetbyRequest.toObject = function(includeInstance, msg) {
|
|
|
636
680
|
language: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
637
681
|
returnUrl: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
638
682
|
clientIp: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
639
|
-
playerName: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
683
|
+
playerName: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
684
|
+
sessionId: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
640
685
|
};
|
|
641
686
|
|
|
642
687
|
if (includeInstance) {
|
|
@@ -697,6 +742,10 @@ proto.sport.LaunchBetbyRequest.deserializeBinaryFromReader = function(msg, reade
|
|
|
697
742
|
var value = /** @type {string} */ (reader.readString());
|
|
698
743
|
msg.setPlayerName(value);
|
|
699
744
|
break;
|
|
745
|
+
case 7:
|
|
746
|
+
var value = /** @type {string} */ (reader.readString());
|
|
747
|
+
msg.setSessionId(value);
|
|
748
|
+
break;
|
|
700
749
|
default:
|
|
701
750
|
reader.skipField();
|
|
702
751
|
break;
|
|
@@ -768,6 +817,13 @@ proto.sport.LaunchBetbyRequest.serializeBinaryToWriter = function(message, write
|
|
|
768
817
|
f
|
|
769
818
|
);
|
|
770
819
|
}
|
|
820
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
821
|
+
if (f != null) {
|
|
822
|
+
writer.writeString(
|
|
823
|
+
7,
|
|
824
|
+
f
|
|
825
|
+
);
|
|
826
|
+
}
|
|
771
827
|
};
|
|
772
828
|
|
|
773
829
|
|
|
@@ -987,6 +1043,42 @@ proto.sport.LaunchBetbyRequest.prototype.hasPlayerName = function() {
|
|
|
987
1043
|
};
|
|
988
1044
|
|
|
989
1045
|
|
|
1046
|
+
/**
|
|
1047
|
+
* optional string session_id = 7;
|
|
1048
|
+
* @return {string}
|
|
1049
|
+
*/
|
|
1050
|
+
proto.sport.LaunchBetbyRequest.prototype.getSessionId = function() {
|
|
1051
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
1052
|
+
};
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* @param {string} value
|
|
1057
|
+
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
1058
|
+
*/
|
|
1059
|
+
proto.sport.LaunchBetbyRequest.prototype.setSessionId = function(value) {
|
|
1060
|
+
return jspb.Message.setField(this, 7, value);
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* Clears the field making it undefined.
|
|
1066
|
+
* @return {!proto.sport.LaunchBetbyRequest} returns this
|
|
1067
|
+
*/
|
|
1068
|
+
proto.sport.LaunchBetbyRequest.prototype.clearSessionId = function() {
|
|
1069
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
1070
|
+
};
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* Returns whether this field is set.
|
|
1075
|
+
* @return {boolean}
|
|
1076
|
+
*/
|
|
1077
|
+
proto.sport.LaunchBetbyRequest.prototype.hasSessionId = function() {
|
|
1078
|
+
return jspb.Message.getField(this, 7) != null;
|
|
1079
|
+
};
|
|
1080
|
+
|
|
1081
|
+
|
|
990
1082
|
|
|
991
1083
|
|
|
992
1084
|
|
|
@@ -1020,8 +1112,7 @@ proto.sport.LaunchBetbyResponse.prototype.toObject = function(opt_includeInstanc
|
|
|
1020
1112
|
proto.sport.LaunchBetbyResponse.toObject = function(includeInstance, msg) {
|
|
1021
1113
|
var f, obj = {
|
|
1022
1114
|
html: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1023
|
-
mode: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1024
|
-
sessionId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1115
|
+
mode: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1025
1116
|
};
|
|
1026
1117
|
|
|
1027
1118
|
if (includeInstance) {
|
|
@@ -1066,10 +1157,6 @@ proto.sport.LaunchBetbyResponse.deserializeBinaryFromReader = function(msg, read
|
|
|
1066
1157
|
var value = /** @type {string} */ (reader.readString());
|
|
1067
1158
|
msg.setMode(value);
|
|
1068
1159
|
break;
|
|
1069
|
-
case 3:
|
|
1070
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1071
|
-
msg.setSessionId(value);
|
|
1072
|
-
break;
|
|
1073
1160
|
default:
|
|
1074
1161
|
reader.skipField();
|
|
1075
1162
|
break;
|
|
@@ -1113,13 +1200,6 @@ proto.sport.LaunchBetbyResponse.serializeBinaryToWriter = function(message, writ
|
|
|
1113
1200
|
f
|
|
1114
1201
|
);
|
|
1115
1202
|
}
|
|
1116
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
1117
|
-
if (f != null) {
|
|
1118
|
-
writer.writeString(
|
|
1119
|
-
3,
|
|
1120
|
-
f
|
|
1121
|
-
);
|
|
1122
|
-
}
|
|
1123
1203
|
};
|
|
1124
1204
|
|
|
1125
1205
|
|
|
@@ -1177,39 +1257,263 @@ proto.sport.LaunchBetbyResponse.prototype.hasMode = function() {
|
|
|
1177
1257
|
};
|
|
1178
1258
|
|
|
1179
1259
|
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1264
|
+
/**
|
|
1265
|
+
* Creates an object representation of this proto.
|
|
1266
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1267
|
+
* Optional fields that are not set will be set to undefined.
|
|
1268
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1269
|
+
* For the list of reserved names please see:
|
|
1270
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1271
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1272
|
+
* JSPB instance for transitional soy proto support:
|
|
1273
|
+
* http://goto/soy-param-migration
|
|
1274
|
+
* @return {!Object}
|
|
1275
|
+
*/
|
|
1276
|
+
proto.sport.VendorActionRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1277
|
+
return proto.sport.VendorActionRequest.toObject(opt_includeInstance, this);
|
|
1278
|
+
};
|
|
1279
|
+
|
|
1280
|
+
|
|
1180
1281
|
/**
|
|
1181
|
-
*
|
|
1282
|
+
* Static version of the {@see toObject} method.
|
|
1283
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1284
|
+
* the JSPB instance for transitional soy proto support:
|
|
1285
|
+
* http://goto/soy-param-migration
|
|
1286
|
+
* @param {!proto.sport.VendorActionRequest} msg The msg instance to transform.
|
|
1287
|
+
* @return {!Object}
|
|
1288
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1289
|
+
*/
|
|
1290
|
+
proto.sport.VendorActionRequest.toObject = function(includeInstance, msg) {
|
|
1291
|
+
var f, obj = {
|
|
1292
|
+
data: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
if (includeInstance) {
|
|
1296
|
+
obj.$jspbMessageInstance = msg;
|
|
1297
|
+
}
|
|
1298
|
+
return obj;
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1305
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1306
|
+
* @return {!proto.sport.VendorActionRequest}
|
|
1307
|
+
*/
|
|
1308
|
+
proto.sport.VendorActionRequest.deserializeBinary = function(bytes) {
|
|
1309
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1310
|
+
var msg = new proto.sport.VendorActionRequest;
|
|
1311
|
+
return proto.sport.VendorActionRequest.deserializeBinaryFromReader(msg, reader);
|
|
1312
|
+
};
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1317
|
+
* given reader into the given message object.
|
|
1318
|
+
* @param {!proto.sport.VendorActionRequest} msg The message object to deserialize into.
|
|
1319
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1320
|
+
* @return {!proto.sport.VendorActionRequest}
|
|
1321
|
+
*/
|
|
1322
|
+
proto.sport.VendorActionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1323
|
+
while (reader.nextField()) {
|
|
1324
|
+
if (reader.isEndGroup()) {
|
|
1325
|
+
break;
|
|
1326
|
+
}
|
|
1327
|
+
var field = reader.getFieldNumber();
|
|
1328
|
+
switch (field) {
|
|
1329
|
+
case 1:
|
|
1330
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1331
|
+
msg.setData(value);
|
|
1332
|
+
break;
|
|
1333
|
+
default:
|
|
1334
|
+
reader.skipField();
|
|
1335
|
+
break;
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
return msg;
|
|
1339
|
+
};
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1344
|
+
* @return {!Uint8Array}
|
|
1345
|
+
*/
|
|
1346
|
+
proto.sport.VendorActionRequest.prototype.serializeBinary = function() {
|
|
1347
|
+
var writer = new jspb.BinaryWriter();
|
|
1348
|
+
proto.sport.VendorActionRequest.serializeBinaryToWriter(this, writer);
|
|
1349
|
+
return writer.getResultBuffer();
|
|
1350
|
+
};
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1355
|
+
* format), writing to the given BinaryWriter.
|
|
1356
|
+
* @param {!proto.sport.VendorActionRequest} message
|
|
1357
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1358
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1359
|
+
*/
|
|
1360
|
+
proto.sport.VendorActionRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1361
|
+
var f = undefined;
|
|
1362
|
+
f = message.getData();
|
|
1363
|
+
if (f.length > 0) {
|
|
1364
|
+
writer.writeString(
|
|
1365
|
+
1,
|
|
1366
|
+
f
|
|
1367
|
+
);
|
|
1368
|
+
}
|
|
1369
|
+
};
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* optional string data = 1;
|
|
1182
1374
|
* @return {string}
|
|
1183
1375
|
*/
|
|
1184
|
-
proto.sport.
|
|
1185
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
1376
|
+
proto.sport.VendorActionRequest.prototype.getData = function() {
|
|
1377
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1186
1378
|
};
|
|
1187
1379
|
|
|
1188
1380
|
|
|
1189
1381
|
/**
|
|
1190
1382
|
* @param {string} value
|
|
1191
|
-
* @return {!proto.sport.
|
|
1383
|
+
* @return {!proto.sport.VendorActionRequest} returns this
|
|
1192
1384
|
*/
|
|
1193
|
-
proto.sport.
|
|
1194
|
-
return jspb.Message.
|
|
1385
|
+
proto.sport.VendorActionRequest.prototype.setData = function(value) {
|
|
1386
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1195
1387
|
};
|
|
1196
1388
|
|
|
1197
1389
|
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
|
|
1393
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1198
1394
|
/**
|
|
1199
|
-
*
|
|
1200
|
-
*
|
|
1395
|
+
* Creates an object representation of this proto.
|
|
1396
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1397
|
+
* Optional fields that are not set will be set to undefined.
|
|
1398
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1399
|
+
* For the list of reserved names please see:
|
|
1400
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1401
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1402
|
+
* JSPB instance for transitional soy proto support:
|
|
1403
|
+
* http://goto/soy-param-migration
|
|
1404
|
+
* @return {!Object}
|
|
1201
1405
|
*/
|
|
1202
|
-
proto.sport.
|
|
1203
|
-
return
|
|
1406
|
+
proto.sport.VendorActionResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1407
|
+
return proto.sport.VendorActionResponse.toObject(opt_includeInstance, this);
|
|
1204
1408
|
};
|
|
1205
1409
|
|
|
1206
1410
|
|
|
1207
1411
|
/**
|
|
1208
|
-
*
|
|
1209
|
-
* @
|
|
1412
|
+
* Static version of the {@see toObject} method.
|
|
1413
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1414
|
+
* the JSPB instance for transitional soy proto support:
|
|
1415
|
+
* http://goto/soy-param-migration
|
|
1416
|
+
* @param {!proto.sport.VendorActionResponse} msg The msg instance to transform.
|
|
1417
|
+
* @return {!Object}
|
|
1418
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1210
1419
|
*/
|
|
1211
|
-
proto.sport.
|
|
1212
|
-
|
|
1420
|
+
proto.sport.VendorActionResponse.toObject = function(includeInstance, msg) {
|
|
1421
|
+
var f, obj = {
|
|
1422
|
+
data: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1423
|
+
};
|
|
1424
|
+
|
|
1425
|
+
if (includeInstance) {
|
|
1426
|
+
obj.$jspbMessageInstance = msg;
|
|
1427
|
+
}
|
|
1428
|
+
return obj;
|
|
1429
|
+
};
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
/**
|
|
1434
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1435
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1436
|
+
* @return {!proto.sport.VendorActionResponse}
|
|
1437
|
+
*/
|
|
1438
|
+
proto.sport.VendorActionResponse.deserializeBinary = function(bytes) {
|
|
1439
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1440
|
+
var msg = new proto.sport.VendorActionResponse;
|
|
1441
|
+
return proto.sport.VendorActionResponse.deserializeBinaryFromReader(msg, reader);
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
/**
|
|
1446
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1447
|
+
* given reader into the given message object.
|
|
1448
|
+
* @param {!proto.sport.VendorActionResponse} msg The message object to deserialize into.
|
|
1449
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1450
|
+
* @return {!proto.sport.VendorActionResponse}
|
|
1451
|
+
*/
|
|
1452
|
+
proto.sport.VendorActionResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1453
|
+
while (reader.nextField()) {
|
|
1454
|
+
if (reader.isEndGroup()) {
|
|
1455
|
+
break;
|
|
1456
|
+
}
|
|
1457
|
+
var field = reader.getFieldNumber();
|
|
1458
|
+
switch (field) {
|
|
1459
|
+
case 1:
|
|
1460
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1461
|
+
msg.setData(value);
|
|
1462
|
+
break;
|
|
1463
|
+
default:
|
|
1464
|
+
reader.skipField();
|
|
1465
|
+
break;
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
return msg;
|
|
1469
|
+
};
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1474
|
+
* @return {!Uint8Array}
|
|
1475
|
+
*/
|
|
1476
|
+
proto.sport.VendorActionResponse.prototype.serializeBinary = function() {
|
|
1477
|
+
var writer = new jspb.BinaryWriter();
|
|
1478
|
+
proto.sport.VendorActionResponse.serializeBinaryToWriter(this, writer);
|
|
1479
|
+
return writer.getResultBuffer();
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1485
|
+
* format), writing to the given BinaryWriter.
|
|
1486
|
+
* @param {!proto.sport.VendorActionResponse} message
|
|
1487
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1488
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1489
|
+
*/
|
|
1490
|
+
proto.sport.VendorActionResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1491
|
+
var f = undefined;
|
|
1492
|
+
f = message.getData();
|
|
1493
|
+
if (f.length > 0) {
|
|
1494
|
+
writer.writeString(
|
|
1495
|
+
1,
|
|
1496
|
+
f
|
|
1497
|
+
);
|
|
1498
|
+
}
|
|
1499
|
+
};
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* optional string data = 1;
|
|
1504
|
+
* @return {string}
|
|
1505
|
+
*/
|
|
1506
|
+
proto.sport.VendorActionResponse.prototype.getData = function() {
|
|
1507
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1508
|
+
};
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* @param {string} value
|
|
1513
|
+
* @return {!proto.sport.VendorActionResponse} returns this
|
|
1514
|
+
*/
|
|
1515
|
+
proto.sport.VendorActionResponse.prototype.setData = function(value) {
|
|
1516
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1213
1517
|
};
|
|
1214
1518
|
|
|
1215
1519
|
|