protobuf-platform 1.0.33 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/game/game.proto +14 -21
- package/game/game_pb.js +715 -549
- package/package.json +1 -1
package/game/game_pb.js
CHANGED
@@ -22,6 +22,7 @@ var global = (function() {
|
|
22
22
|
}.call(null));
|
23
23
|
|
24
24
|
goog.exportSymbol('proto.game.CategoryItem', null, global);
|
25
|
+
goog.exportSymbol('proto.game.CategoryItemRequest', null, global);
|
25
26
|
goog.exportSymbol('proto.game.CategoryListResponse', null, global);
|
26
27
|
goog.exportSymbol('proto.game.CategoryRequest', null, global);
|
27
28
|
goog.exportSymbol('proto.game.CategoryRequest.RequestCase', null, global);
|
@@ -30,7 +31,6 @@ goog.exportSymbol('proto.game.CategoryStatusResponse', null, global);
|
|
30
31
|
goog.exportSymbol('proto.game.File', null, global);
|
31
32
|
goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
|
32
33
|
goog.exportSymbol('proto.game.GetListCategoryRequest', null, global);
|
33
|
-
goog.exportSymbol('proto.game.MetaDataFile', null, global);
|
34
34
|
goog.exportSymbol('proto.game.PingRequest', null, global);
|
35
35
|
goog.exportSymbol('proto.game.PongResponse', null, global);
|
36
36
|
/**
|
@@ -127,16 +127,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
127
127
|
* @extends {jspb.Message}
|
128
128
|
* @constructor
|
129
129
|
*/
|
130
|
-
proto.game.
|
130
|
+
proto.game.File = function(opt_data) {
|
131
131
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
132
132
|
};
|
133
|
-
goog.inherits(proto.game.
|
133
|
+
goog.inherits(proto.game.File, jspb.Message);
|
134
134
|
if (goog.DEBUG && !COMPILED) {
|
135
135
|
/**
|
136
136
|
* @public
|
137
137
|
* @override
|
138
138
|
*/
|
139
|
-
proto.game.
|
139
|
+
proto.game.File.displayName = 'proto.game.File';
|
140
140
|
}
|
141
141
|
/**
|
142
142
|
* Generated by JsPbCodeGenerator.
|
@@ -148,16 +148,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
148
148
|
* @extends {jspb.Message}
|
149
149
|
* @constructor
|
150
150
|
*/
|
151
|
-
proto.game.
|
151
|
+
proto.game.CategoryItemRequest = function(opt_data) {
|
152
152
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
153
153
|
};
|
154
|
-
goog.inherits(proto.game.
|
154
|
+
goog.inherits(proto.game.CategoryItemRequest, jspb.Message);
|
155
155
|
if (goog.DEBUG && !COMPILED) {
|
156
156
|
/**
|
157
157
|
* @public
|
158
158
|
* @override
|
159
159
|
*/
|
160
|
-
proto.game.
|
160
|
+
proto.game.CategoryItemRequest.displayName = 'proto.game.CategoryItemRequest';
|
161
161
|
}
|
162
162
|
/**
|
163
163
|
* Generated by JsPbCodeGenerator.
|
@@ -169,16 +169,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
169
169
|
* @extends {jspb.Message}
|
170
170
|
* @constructor
|
171
171
|
*/
|
172
|
-
proto.game.
|
172
|
+
proto.game.GetCategoryRequest = function(opt_data) {
|
173
173
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
174
174
|
};
|
175
|
-
goog.inherits(proto.game.
|
175
|
+
goog.inherits(proto.game.GetCategoryRequest, jspb.Message);
|
176
176
|
if (goog.DEBUG && !COMPILED) {
|
177
177
|
/**
|
178
178
|
* @public
|
179
179
|
* @override
|
180
180
|
*/
|
181
|
-
proto.game.
|
181
|
+
proto.game.GetCategoryRequest.displayName = 'proto.game.GetCategoryRequest';
|
182
182
|
}
|
183
183
|
/**
|
184
184
|
* Generated by JsPbCodeGenerator.
|
@@ -190,16 +190,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
190
190
|
* @extends {jspb.Message}
|
191
191
|
* @constructor
|
192
192
|
*/
|
193
|
-
proto.game.
|
194
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
193
|
+
proto.game.GetListCategoryRequest = function(opt_data) {
|
194
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
195
195
|
};
|
196
|
-
goog.inherits(proto.game.
|
196
|
+
goog.inherits(proto.game.GetListCategoryRequest, jspb.Message);
|
197
197
|
if (goog.DEBUG && !COMPILED) {
|
198
198
|
/**
|
199
199
|
* @public
|
200
200
|
* @override
|
201
201
|
*/
|
202
|
-
proto.game.
|
202
|
+
proto.game.GetListCategoryRequest.displayName = 'proto.game.GetListCategoryRequest';
|
203
203
|
}
|
204
204
|
/**
|
205
205
|
* Generated by JsPbCodeGenerator.
|
@@ -211,16 +211,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
211
211
|
* @extends {jspb.Message}
|
212
212
|
* @constructor
|
213
213
|
*/
|
214
|
-
proto.game.
|
214
|
+
proto.game.CategoryResponse = function(opt_data) {
|
215
215
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
216
216
|
};
|
217
|
-
goog.inherits(proto.game.
|
217
|
+
goog.inherits(proto.game.CategoryResponse, jspb.Message);
|
218
218
|
if (goog.DEBUG && !COMPILED) {
|
219
219
|
/**
|
220
220
|
* @public
|
221
221
|
* @override
|
222
222
|
*/
|
223
|
-
proto.game.
|
223
|
+
proto.game.CategoryResponse.displayName = 'proto.game.CategoryResponse';
|
224
224
|
}
|
225
225
|
/**
|
226
226
|
* Generated by JsPbCodeGenerator.
|
@@ -232,16 +232,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
232
232
|
* @extends {jspb.Message}
|
233
233
|
* @constructor
|
234
234
|
*/
|
235
|
-
proto.game.
|
236
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
235
|
+
proto.game.CategoryListResponse = function(opt_data) {
|
236
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CategoryListResponse.repeatedFields_, null);
|
237
237
|
};
|
238
|
-
goog.inherits(proto.game.
|
238
|
+
goog.inherits(proto.game.CategoryListResponse, jspb.Message);
|
239
239
|
if (goog.DEBUG && !COMPILED) {
|
240
240
|
/**
|
241
241
|
* @public
|
242
242
|
* @override
|
243
243
|
*/
|
244
|
-
proto.game.
|
244
|
+
proto.game.CategoryListResponse.displayName = 'proto.game.CategoryListResponse';
|
245
245
|
}
|
246
246
|
/**
|
247
247
|
* Generated by JsPbCodeGenerator.
|
@@ -253,16 +253,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
253
253
|
* @extends {jspb.Message}
|
254
254
|
* @constructor
|
255
255
|
*/
|
256
|
-
proto.game.
|
256
|
+
proto.game.CategoryStatusResponse = function(opt_data) {
|
257
257
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
258
258
|
};
|
259
|
-
goog.inherits(proto.game.
|
259
|
+
goog.inherits(proto.game.CategoryStatusResponse, jspb.Message);
|
260
260
|
if (goog.DEBUG && !COMPILED) {
|
261
261
|
/**
|
262
262
|
* @public
|
263
263
|
* @override
|
264
264
|
*/
|
265
|
-
proto.game.
|
265
|
+
proto.game.CategoryStatusResponse.displayName = 'proto.game.CategoryStatusResponse';
|
266
266
|
}
|
267
267
|
|
268
268
|
|
@@ -921,17 +921,15 @@ proto.game.CategoryItem.prototype.hasImagePath = function() {
|
|
921
921
|
* @private {!Array<!Array<number>>}
|
922
922
|
* @const
|
923
923
|
*/
|
924
|
-
proto.game.CategoryRequest.oneofGroups_ = [[1,
|
924
|
+
proto.game.CategoryRequest.oneofGroups_ = [[1,2]];
|
925
925
|
|
926
926
|
/**
|
927
927
|
* @enum {number}
|
928
928
|
*/
|
929
929
|
proto.game.CategoryRequest.RequestCase = {
|
930
930
|
REQUEST_NOT_SET: 0,
|
931
|
-
|
932
|
-
|
933
|
-
THREE: 2,
|
934
|
-
FOUR: 3
|
931
|
+
CATEGORY_DATA: 1,
|
932
|
+
FILE: 2
|
935
933
|
};
|
936
934
|
|
937
935
|
/**
|
@@ -972,10 +970,8 @@ proto.game.CategoryRequest.prototype.toObject = function(opt_includeInstance) {
|
|
972
970
|
*/
|
973
971
|
proto.game.CategoryRequest.toObject = function(includeInstance, msg) {
|
974
972
|
var f, obj = {
|
975
|
-
|
976
|
-
|
977
|
-
three: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
978
|
-
four: jspb.Message.getFieldWithDefault(msg, 3, "")
|
973
|
+
categoryData: (f = msg.getCategoryData()) && proto.game.CategoryItemRequest.toObject(includeInstance, f),
|
974
|
+
file: (f = msg.getFile()) && proto.game.File.toObject(includeInstance, f)
|
979
975
|
};
|
980
976
|
|
981
977
|
if (includeInstance) {
|
@@ -1013,20 +1009,14 @@ proto.game.CategoryRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1013
1009
|
var field = reader.getFieldNumber();
|
1014
1010
|
switch (field) {
|
1015
1011
|
case 1:
|
1016
|
-
var value =
|
1017
|
-
|
1018
|
-
|
1019
|
-
case 4:
|
1020
|
-
var value = /** @type {string} */ (reader.readString());
|
1021
|
-
msg.setTwo(value);
|
1012
|
+
var value = new proto.game.CategoryItemRequest;
|
1013
|
+
reader.readMessage(value,proto.game.CategoryItemRequest.deserializeBinaryFromReader);
|
1014
|
+
msg.setCategoryData(value);
|
1022
1015
|
break;
|
1023
1016
|
case 2:
|
1024
|
-
var value =
|
1025
|
-
|
1026
|
-
|
1027
|
-
case 3:
|
1028
|
-
var value = /** @type {string} */ (reader.readString());
|
1029
|
-
msg.setFour(value);
|
1017
|
+
var value = new proto.game.File;
|
1018
|
+
reader.readMessage(value,proto.game.File.deserializeBinaryFromReader);
|
1019
|
+
msg.setFile(value);
|
1030
1020
|
break;
|
1031
1021
|
default:
|
1032
1022
|
reader.skipField();
|
@@ -1057,61 +1047,50 @@ proto.game.CategoryRequest.prototype.serializeBinary = function() {
|
|
1057
1047
|
*/
|
1058
1048
|
proto.game.CategoryRequest.serializeBinaryToWriter = function(message, writer) {
|
1059
1049
|
var f = undefined;
|
1060
|
-
f =
|
1050
|
+
f = message.getCategoryData();
|
1061
1051
|
if (f != null) {
|
1062
|
-
writer.
|
1052
|
+
writer.writeMessage(
|
1063
1053
|
1,
|
1064
|
-
f
|
1065
|
-
|
1066
|
-
}
|
1067
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
1068
|
-
if (f != null) {
|
1069
|
-
writer.writeString(
|
1070
|
-
4,
|
1071
|
-
f
|
1054
|
+
f,
|
1055
|
+
proto.game.CategoryItemRequest.serializeBinaryToWriter
|
1072
1056
|
);
|
1073
1057
|
}
|
1074
|
-
f =
|
1058
|
+
f = message.getFile();
|
1075
1059
|
if (f != null) {
|
1076
|
-
writer.
|
1060
|
+
writer.writeMessage(
|
1077
1061
|
2,
|
1078
|
-
f
|
1079
|
-
|
1080
|
-
}
|
1081
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
1082
|
-
if (f != null) {
|
1083
|
-
writer.writeString(
|
1084
|
-
3,
|
1085
|
-
f
|
1062
|
+
f,
|
1063
|
+
proto.game.File.serializeBinaryToWriter
|
1086
1064
|
);
|
1087
1065
|
}
|
1088
1066
|
};
|
1089
1067
|
|
1090
1068
|
|
1091
1069
|
/**
|
1092
|
-
* optional
|
1093
|
-
* @return {
|
1070
|
+
* optional CategoryItemRequest category_data = 1;
|
1071
|
+
* @return {?proto.game.CategoryItemRequest}
|
1094
1072
|
*/
|
1095
|
-
proto.game.CategoryRequest.prototype.
|
1096
|
-
return /** @type
|
1073
|
+
proto.game.CategoryRequest.prototype.getCategoryData = function() {
|
1074
|
+
return /** @type{?proto.game.CategoryItemRequest} */ (
|
1075
|
+
jspb.Message.getWrapperField(this, proto.game.CategoryItemRequest, 1));
|
1097
1076
|
};
|
1098
1077
|
|
1099
1078
|
|
1100
1079
|
/**
|
1101
|
-
* @param {
|
1080
|
+
* @param {?proto.game.CategoryItemRequest|undefined} value
|
1102
1081
|
* @return {!proto.game.CategoryRequest} returns this
|
1103
|
-
|
1104
|
-
proto.game.CategoryRequest.prototype.
|
1105
|
-
return jspb.Message.
|
1082
|
+
*/
|
1083
|
+
proto.game.CategoryRequest.prototype.setCategoryData = function(value) {
|
1084
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.game.CategoryRequest.oneofGroups_[0], value);
|
1106
1085
|
};
|
1107
1086
|
|
1108
1087
|
|
1109
1088
|
/**
|
1110
|
-
* Clears the field making it undefined.
|
1089
|
+
* Clears the message field making it undefined.
|
1111
1090
|
* @return {!proto.game.CategoryRequest} returns this
|
1112
1091
|
*/
|
1113
|
-
proto.game.CategoryRequest.prototype.
|
1114
|
-
return
|
1092
|
+
proto.game.CategoryRequest.prototype.clearCategoryData = function() {
|
1093
|
+
return this.setCategoryData(undefined);
|
1115
1094
|
};
|
1116
1095
|
|
1117
1096
|
|
@@ -1119,71 +1098,36 @@ proto.game.CategoryRequest.prototype.clearOne = function() {
|
|
1119
1098
|
* Returns whether this field is set.
|
1120
1099
|
* @return {boolean}
|
1121
1100
|
*/
|
1122
|
-
proto.game.CategoryRequest.prototype.
|
1101
|
+
proto.game.CategoryRequest.prototype.hasCategoryData = function() {
|
1123
1102
|
return jspb.Message.getField(this, 1) != null;
|
1124
1103
|
};
|
1125
1104
|
|
1126
1105
|
|
1127
1106
|
/**
|
1128
|
-
* optional
|
1129
|
-
* @return {
|
1130
|
-
*/
|
1131
|
-
proto.game.CategoryRequest.prototype.getTwo = function() {
|
1132
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
1133
|
-
};
|
1134
|
-
|
1135
|
-
|
1136
|
-
/**
|
1137
|
-
* @param {string} value
|
1138
|
-
* @return {!proto.game.CategoryRequest} returns this
|
1139
|
-
*/
|
1140
|
-
proto.game.CategoryRequest.prototype.setTwo = function(value) {
|
1141
|
-
return jspb.Message.setOneofField(this, 4, proto.game.CategoryRequest.oneofGroups_[0], value);
|
1142
|
-
};
|
1143
|
-
|
1144
|
-
|
1145
|
-
/**
|
1146
|
-
* Clears the field making it undefined.
|
1147
|
-
* @return {!proto.game.CategoryRequest} returns this
|
1148
|
-
*/
|
1149
|
-
proto.game.CategoryRequest.prototype.clearTwo = function() {
|
1150
|
-
return jspb.Message.setOneofField(this, 4, proto.game.CategoryRequest.oneofGroups_[0], undefined);
|
1151
|
-
};
|
1152
|
-
|
1153
|
-
|
1154
|
-
/**
|
1155
|
-
* Returns whether this field is set.
|
1156
|
-
* @return {boolean}
|
1157
|
-
*/
|
1158
|
-
proto.game.CategoryRequest.prototype.hasTwo = function() {
|
1159
|
-
return jspb.Message.getField(this, 4) != null;
|
1160
|
-
};
|
1161
|
-
|
1162
|
-
|
1163
|
-
/**
|
1164
|
-
* optional string three = 2;
|
1165
|
-
* @return {string}
|
1107
|
+
* optional File file = 2;
|
1108
|
+
* @return {?proto.game.File}
|
1166
1109
|
*/
|
1167
|
-
proto.game.CategoryRequest.prototype.
|
1168
|
-
return /** @type
|
1110
|
+
proto.game.CategoryRequest.prototype.getFile = function() {
|
1111
|
+
return /** @type{?proto.game.File} */ (
|
1112
|
+
jspb.Message.getWrapperField(this, proto.game.File, 2));
|
1169
1113
|
};
|
1170
1114
|
|
1171
1115
|
|
1172
1116
|
/**
|
1173
|
-
* @param {
|
1117
|
+
* @param {?proto.game.File|undefined} value
|
1174
1118
|
* @return {!proto.game.CategoryRequest} returns this
|
1175
|
-
|
1176
|
-
proto.game.CategoryRequest.prototype.
|
1177
|
-
return jspb.Message.
|
1119
|
+
*/
|
1120
|
+
proto.game.CategoryRequest.prototype.setFile = function(value) {
|
1121
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.game.CategoryRequest.oneofGroups_[0], value);
|
1178
1122
|
};
|
1179
1123
|
|
1180
1124
|
|
1181
1125
|
/**
|
1182
|
-
* Clears the field making it undefined.
|
1126
|
+
* Clears the message field making it undefined.
|
1183
1127
|
* @return {!proto.game.CategoryRequest} returns this
|
1184
1128
|
*/
|
1185
|
-
proto.game.CategoryRequest.prototype.
|
1186
|
-
return
|
1129
|
+
proto.game.CategoryRequest.prototype.clearFile = function() {
|
1130
|
+
return this.setFile(undefined);
|
1187
1131
|
};
|
1188
1132
|
|
1189
1133
|
|
@@ -1191,47 +1135,11 @@ proto.game.CategoryRequest.prototype.clearThree = function() {
|
|
1191
1135
|
* Returns whether this field is set.
|
1192
1136
|
* @return {boolean}
|
1193
1137
|
*/
|
1194
|
-
proto.game.CategoryRequest.prototype.
|
1138
|
+
proto.game.CategoryRequest.prototype.hasFile = function() {
|
1195
1139
|
return jspb.Message.getField(this, 2) != null;
|
1196
1140
|
};
|
1197
1141
|
|
1198
1142
|
|
1199
|
-
/**
|
1200
|
-
* optional string four = 3;
|
1201
|
-
* @return {string}
|
1202
|
-
*/
|
1203
|
-
proto.game.CategoryRequest.prototype.getFour = function() {
|
1204
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1205
|
-
};
|
1206
|
-
|
1207
|
-
|
1208
|
-
/**
|
1209
|
-
* @param {string} value
|
1210
|
-
* @return {!proto.game.CategoryRequest} returns this
|
1211
|
-
*/
|
1212
|
-
proto.game.CategoryRequest.prototype.setFour = function(value) {
|
1213
|
-
return jspb.Message.setOneofField(this, 3, proto.game.CategoryRequest.oneofGroups_[0], value);
|
1214
|
-
};
|
1215
|
-
|
1216
|
-
|
1217
|
-
/**
|
1218
|
-
* Clears the field making it undefined.
|
1219
|
-
* @return {!proto.game.CategoryRequest} returns this
|
1220
|
-
*/
|
1221
|
-
proto.game.CategoryRequest.prototype.clearFour = function() {
|
1222
|
-
return jspb.Message.setOneofField(this, 3, proto.game.CategoryRequest.oneofGroups_[0], undefined);
|
1223
|
-
};
|
1224
|
-
|
1225
|
-
|
1226
|
-
/**
|
1227
|
-
* Returns whether this field is set.
|
1228
|
-
* @return {boolean}
|
1229
|
-
*/
|
1230
|
-
proto.game.CategoryRequest.prototype.hasFour = function() {
|
1231
|
-
return jspb.Message.getField(this, 3) != null;
|
1232
|
-
};
|
1233
|
-
|
1234
|
-
|
1235
1143
|
|
1236
1144
|
|
1237
1145
|
|
@@ -1248,8 +1156,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1248
1156
|
* http://goto/soy-param-migration
|
1249
1157
|
* @return {!Object}
|
1250
1158
|
*/
|
1251
|
-
proto.game.
|
1252
|
-
return proto.game.
|
1159
|
+
proto.game.File.prototype.toObject = function(opt_includeInstance) {
|
1160
|
+
return proto.game.File.toObject(opt_includeInstance, this);
|
1253
1161
|
};
|
1254
1162
|
|
1255
1163
|
|
@@ -1258,13 +1166,13 @@ proto.game.GetCategoryRequest.prototype.toObject = function(opt_includeInstance)
|
|
1258
1166
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1259
1167
|
* the JSPB instance for transitional soy proto support:
|
1260
1168
|
* http://goto/soy-param-migration
|
1261
|
-
* @param {!proto.game.
|
1169
|
+
* @param {!proto.game.File} msg The msg instance to transform.
|
1262
1170
|
* @return {!Object}
|
1263
1171
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1264
1172
|
*/
|
1265
|
-
proto.game.
|
1173
|
+
proto.game.File.toObject = function(includeInstance, msg) {
|
1266
1174
|
var f, obj = {
|
1267
|
-
|
1175
|
+
media: msg.getMedia_asB64()
|
1268
1176
|
};
|
1269
1177
|
|
1270
1178
|
if (includeInstance) {
|
@@ -1278,32 +1186,32 @@ proto.game.GetCategoryRequest.toObject = function(includeInstance, msg) {
|
|
1278
1186
|
/**
|
1279
1187
|
* Deserializes binary data (in protobuf wire format).
|
1280
1188
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1281
|
-
* @return {!proto.game.
|
1189
|
+
* @return {!proto.game.File}
|
1282
1190
|
*/
|
1283
|
-
proto.game.
|
1191
|
+
proto.game.File.deserializeBinary = function(bytes) {
|
1284
1192
|
var reader = new jspb.BinaryReader(bytes);
|
1285
|
-
var msg = new proto.game.
|
1286
|
-
return proto.game.
|
1193
|
+
var msg = new proto.game.File;
|
1194
|
+
return proto.game.File.deserializeBinaryFromReader(msg, reader);
|
1287
1195
|
};
|
1288
1196
|
|
1289
1197
|
|
1290
1198
|
/**
|
1291
1199
|
* Deserializes binary data (in protobuf wire format) from the
|
1292
1200
|
* given reader into the given message object.
|
1293
|
-
* @param {!proto.game.
|
1201
|
+
* @param {!proto.game.File} msg The message object to deserialize into.
|
1294
1202
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1295
|
-
* @return {!proto.game.
|
1203
|
+
* @return {!proto.game.File}
|
1296
1204
|
*/
|
1297
|
-
proto.game.
|
1205
|
+
proto.game.File.deserializeBinaryFromReader = function(msg, reader) {
|
1298
1206
|
while (reader.nextField()) {
|
1299
1207
|
if (reader.isEndGroup()) {
|
1300
1208
|
break;
|
1301
1209
|
}
|
1302
1210
|
var field = reader.getFieldNumber();
|
1303
1211
|
switch (field) {
|
1304
|
-
case
|
1305
|
-
var value = /** @type {
|
1306
|
-
msg.
|
1212
|
+
case 2:
|
1213
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
1214
|
+
msg.setMedia(value);
|
1307
1215
|
break;
|
1308
1216
|
default:
|
1309
1217
|
reader.skipField();
|
@@ -1318,9 +1226,9 @@ proto.game.GetCategoryRequest.deserializeBinaryFromReader = function(msg, reader
|
|
1318
1226
|
* Serializes the message to binary data (in protobuf wire format).
|
1319
1227
|
* @return {!Uint8Array}
|
1320
1228
|
*/
|
1321
|
-
proto.game.
|
1229
|
+
proto.game.File.prototype.serializeBinary = function() {
|
1322
1230
|
var writer = new jspb.BinaryWriter();
|
1323
|
-
proto.game.
|
1231
|
+
proto.game.File.serializeBinaryToWriter(this, writer);
|
1324
1232
|
return writer.getResultBuffer();
|
1325
1233
|
};
|
1326
1234
|
|
@@ -1328,16 +1236,16 @@ proto.game.GetCategoryRequest.prototype.serializeBinary = function() {
|
|
1328
1236
|
/**
|
1329
1237
|
* Serializes the given message to binary data (in protobuf wire
|
1330
1238
|
* format), writing to the given BinaryWriter.
|
1331
|
-
* @param {!proto.game.
|
1239
|
+
* @param {!proto.game.File} message
|
1332
1240
|
* @param {!jspb.BinaryWriter} writer
|
1333
1241
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1334
1242
|
*/
|
1335
|
-
proto.game.
|
1243
|
+
proto.game.File.serializeBinaryToWriter = function(message, writer) {
|
1336
1244
|
var f = undefined;
|
1337
|
-
f = message.
|
1338
|
-
if (f
|
1339
|
-
writer.
|
1340
|
-
|
1245
|
+
f = message.getMedia_asU8();
|
1246
|
+
if (f.length > 0) {
|
1247
|
+
writer.writeBytes(
|
1248
|
+
2,
|
1341
1249
|
f
|
1342
1250
|
);
|
1343
1251
|
}
|
@@ -1345,20 +1253,44 @@ proto.game.GetCategoryRequest.serializeBinaryToWriter = function(message, writer
|
|
1345
1253
|
|
1346
1254
|
|
1347
1255
|
/**
|
1348
|
-
* optional
|
1349
|
-
* @return {
|
1256
|
+
* optional bytes media = 2;
|
1257
|
+
* @return {!(string|Uint8Array)}
|
1350
1258
|
*/
|
1351
|
-
proto.game.
|
1352
|
-
return /** @type {
|
1259
|
+
proto.game.File.prototype.getMedia = function() {
|
1260
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1353
1261
|
};
|
1354
1262
|
|
1355
1263
|
|
1356
1264
|
/**
|
1357
|
-
*
|
1358
|
-
*
|
1265
|
+
* optional bytes media = 2;
|
1266
|
+
* This is a type-conversion wrapper around `getMedia()`
|
1267
|
+
* @return {string}
|
1359
1268
|
*/
|
1360
|
-
proto.game.
|
1361
|
-
return jspb.Message.
|
1269
|
+
proto.game.File.prototype.getMedia_asB64 = function() {
|
1270
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
1271
|
+
this.getMedia()));
|
1272
|
+
};
|
1273
|
+
|
1274
|
+
|
1275
|
+
/**
|
1276
|
+
* optional bytes media = 2;
|
1277
|
+
* Note that Uint8Array is not supported on all browsers.
|
1278
|
+
* @see http://caniuse.com/Uint8Array
|
1279
|
+
* This is a type-conversion wrapper around `getMedia()`
|
1280
|
+
* @return {!Uint8Array}
|
1281
|
+
*/
|
1282
|
+
proto.game.File.prototype.getMedia_asU8 = function() {
|
1283
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
1284
|
+
this.getMedia()));
|
1285
|
+
};
|
1286
|
+
|
1287
|
+
|
1288
|
+
/**
|
1289
|
+
* @param {!(string|Uint8Array)} value
|
1290
|
+
* @return {!proto.game.File} returns this
|
1291
|
+
*/
|
1292
|
+
proto.game.File.prototype.setMedia = function(value) {
|
1293
|
+
return jspb.Message.setProto3BytesField(this, 2, value);
|
1362
1294
|
};
|
1363
1295
|
|
1364
1296
|
|
@@ -1378,8 +1310,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1378
1310
|
* http://goto/soy-param-migration
|
1379
1311
|
* @return {!Object}
|
1380
1312
|
*/
|
1381
|
-
proto.game.
|
1382
|
-
return proto.game.
|
1313
|
+
proto.game.CategoryItemRequest.prototype.toObject = function(opt_includeInstance) {
|
1314
|
+
return proto.game.CategoryItemRequest.toObject(opt_includeInstance, this);
|
1383
1315
|
};
|
1384
1316
|
|
1385
1317
|
|
@@ -1388,14 +1320,19 @@ proto.game.GetListCategoryRequest.prototype.toObject = function(opt_includeInsta
|
|
1388
1320
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1389
1321
|
* the JSPB instance for transitional soy proto support:
|
1390
1322
|
* http://goto/soy-param-migration
|
1391
|
-
* @param {!proto.game.
|
1323
|
+
* @param {!proto.game.CategoryItemRequest} msg The msg instance to transform.
|
1392
1324
|
* @return {!Object}
|
1393
1325
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1394
1326
|
*/
|
1395
|
-
proto.game.
|
1327
|
+
proto.game.CategoryItemRequest.toObject = function(includeInstance, msg) {
|
1396
1328
|
var f, obj = {
|
1397
|
-
|
1398
|
-
|
1329
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1330
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1331
|
+
slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1332
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
1333
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
1334
|
+
fileName: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
1335
|
+
fileType: jspb.Message.getFieldWithDefault(msg, 7, "")
|
1399
1336
|
};
|
1400
1337
|
|
1401
1338
|
if (includeInstance) {
|
@@ -1409,23 +1346,23 @@ proto.game.GetListCategoryRequest.toObject = function(includeInstance, msg) {
|
|
1409
1346
|
/**
|
1410
1347
|
* Deserializes binary data (in protobuf wire format).
|
1411
1348
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1412
|
-
* @return {!proto.game.
|
1349
|
+
* @return {!proto.game.CategoryItemRequest}
|
1413
1350
|
*/
|
1414
|
-
proto.game.
|
1351
|
+
proto.game.CategoryItemRequest.deserializeBinary = function(bytes) {
|
1415
1352
|
var reader = new jspb.BinaryReader(bytes);
|
1416
|
-
var msg = new proto.game.
|
1417
|
-
return proto.game.
|
1353
|
+
var msg = new proto.game.CategoryItemRequest;
|
1354
|
+
return proto.game.CategoryItemRequest.deserializeBinaryFromReader(msg, reader);
|
1418
1355
|
};
|
1419
1356
|
|
1420
1357
|
|
1421
1358
|
/**
|
1422
1359
|
* Deserializes binary data (in protobuf wire format) from the
|
1423
1360
|
* given reader into the given message object.
|
1424
|
-
* @param {!proto.game.
|
1361
|
+
* @param {!proto.game.CategoryItemRequest} msg The message object to deserialize into.
|
1425
1362
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1426
|
-
* @return {!proto.game.
|
1363
|
+
* @return {!proto.game.CategoryItemRequest}
|
1427
1364
|
*/
|
1428
|
-
proto.game.
|
1365
|
+
proto.game.CategoryItemRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1429
1366
|
while (reader.nextField()) {
|
1430
1367
|
if (reader.isEndGroup()) {
|
1431
1368
|
break;
|
@@ -1434,11 +1371,31 @@ proto.game.GetListCategoryRequest.deserializeBinaryFromReader = function(msg, re
|
|
1434
1371
|
switch (field) {
|
1435
1372
|
case 1:
|
1436
1373
|
var value = /** @type {number} */ (reader.readInt32());
|
1437
|
-
msg.
|
1374
|
+
msg.setId(value);
|
1438
1375
|
break;
|
1439
1376
|
case 2:
|
1377
|
+
var value = /** @type {string} */ (reader.readString());
|
1378
|
+
msg.setTitle(value);
|
1379
|
+
break;
|
1380
|
+
case 3:
|
1381
|
+
var value = /** @type {string} */ (reader.readString());
|
1382
|
+
msg.setSlug(value);
|
1383
|
+
break;
|
1384
|
+
case 4:
|
1385
|
+
var value = /** @type {string} */ (reader.readString());
|
1386
|
+
msg.setDescription(value);
|
1387
|
+
break;
|
1388
|
+
case 5:
|
1440
1389
|
var value = /** @type {number} */ (reader.readInt32());
|
1441
|
-
msg.
|
1390
|
+
msg.setIsActive(value);
|
1391
|
+
break;
|
1392
|
+
case 6:
|
1393
|
+
var value = /** @type {string} */ (reader.readString());
|
1394
|
+
msg.setFileName(value);
|
1395
|
+
break;
|
1396
|
+
case 7:
|
1397
|
+
var value = /** @type {string} */ (reader.readString());
|
1398
|
+
msg.setFileType(value);
|
1442
1399
|
break;
|
1443
1400
|
default:
|
1444
1401
|
reader.skipField();
|
@@ -1453,9 +1410,9 @@ proto.game.GetListCategoryRequest.deserializeBinaryFromReader = function(msg, re
|
|
1453
1410
|
* Serializes the message to binary data (in protobuf wire format).
|
1454
1411
|
* @return {!Uint8Array}
|
1455
1412
|
*/
|
1456
|
-
proto.game.
|
1413
|
+
proto.game.CategoryItemRequest.prototype.serializeBinary = function() {
|
1457
1414
|
var writer = new jspb.BinaryWriter();
|
1458
|
-
proto.game.
|
1415
|
+
proto.game.CategoryItemRequest.serializeBinaryToWriter(this, writer);
|
1459
1416
|
return writer.getResultBuffer();
|
1460
1417
|
};
|
1461
1418
|
|
@@ -1463,62 +1420,295 @@ proto.game.GetListCategoryRequest.prototype.serializeBinary = function() {
|
|
1463
1420
|
/**
|
1464
1421
|
* Serializes the given message to binary data (in protobuf wire
|
1465
1422
|
* format), writing to the given BinaryWriter.
|
1466
|
-
* @param {!proto.game.
|
1423
|
+
* @param {!proto.game.CategoryItemRequest} message
|
1467
1424
|
* @param {!jspb.BinaryWriter} writer
|
1468
1425
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1469
1426
|
*/
|
1470
|
-
proto.game.
|
1427
|
+
proto.game.CategoryItemRequest.serializeBinaryToWriter = function(message, writer) {
|
1471
1428
|
var f = undefined;
|
1472
|
-
f = message.
|
1429
|
+
f = message.getId();
|
1473
1430
|
if (f !== 0) {
|
1474
1431
|
writer.writeInt32(
|
1475
1432
|
1,
|
1476
1433
|
f
|
1477
1434
|
);
|
1478
1435
|
}
|
1479
|
-
f =
|
1480
|
-
if (f
|
1481
|
-
writer.
|
1436
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
1437
|
+
if (f != null) {
|
1438
|
+
writer.writeString(
|
1482
1439
|
2,
|
1483
1440
|
f
|
1484
1441
|
);
|
1485
1442
|
}
|
1443
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
1444
|
+
if (f != null) {
|
1445
|
+
writer.writeString(
|
1446
|
+
3,
|
1447
|
+
f
|
1448
|
+
);
|
1449
|
+
}
|
1450
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
1451
|
+
if (f != null) {
|
1452
|
+
writer.writeString(
|
1453
|
+
4,
|
1454
|
+
f
|
1455
|
+
);
|
1456
|
+
}
|
1457
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
1458
|
+
if (f != null) {
|
1459
|
+
writer.writeInt32(
|
1460
|
+
5,
|
1461
|
+
f
|
1462
|
+
);
|
1463
|
+
}
|
1464
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
1465
|
+
if (f != null) {
|
1466
|
+
writer.writeString(
|
1467
|
+
6,
|
1468
|
+
f
|
1469
|
+
);
|
1470
|
+
}
|
1471
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
1472
|
+
if (f != null) {
|
1473
|
+
writer.writeString(
|
1474
|
+
7,
|
1475
|
+
f
|
1476
|
+
);
|
1477
|
+
}
|
1486
1478
|
};
|
1487
1479
|
|
1488
1480
|
|
1489
1481
|
/**
|
1490
|
-
* optional int32
|
1482
|
+
* optional int32 id = 1;
|
1491
1483
|
* @return {number}
|
1492
1484
|
*/
|
1493
|
-
proto.game.
|
1485
|
+
proto.game.CategoryItemRequest.prototype.getId = function() {
|
1494
1486
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1495
1487
|
};
|
1496
1488
|
|
1497
1489
|
|
1498
1490
|
/**
|
1499
1491
|
* @param {number} value
|
1500
|
-
* @return {!proto.game.
|
1492
|
+
* @return {!proto.game.CategoryItemRequest} returns this
|
1501
1493
|
*/
|
1502
|
-
proto.game.
|
1494
|
+
proto.game.CategoryItemRequest.prototype.setId = function(value) {
|
1503
1495
|
return jspb.Message.setProto3IntField(this, 1, value);
|
1504
1496
|
};
|
1505
1497
|
|
1506
1498
|
|
1507
1499
|
/**
|
1508
|
-
* optional
|
1500
|
+
* optional string title = 2;
|
1501
|
+
* @return {string}
|
1502
|
+
*/
|
1503
|
+
proto.game.CategoryItemRequest.prototype.getTitle = function() {
|
1504
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1505
|
+
};
|
1506
|
+
|
1507
|
+
|
1508
|
+
/**
|
1509
|
+
* @param {string} value
|
1510
|
+
* @return {!proto.game.CategoryItemRequest} returns this
|
1511
|
+
*/
|
1512
|
+
proto.game.CategoryItemRequest.prototype.setTitle = function(value) {
|
1513
|
+
return jspb.Message.setField(this, 2, value);
|
1514
|
+
};
|
1515
|
+
|
1516
|
+
|
1517
|
+
/**
|
1518
|
+
* Clears the field making it undefined.
|
1519
|
+
* @return {!proto.game.CategoryItemRequest} returns this
|
1520
|
+
*/
|
1521
|
+
proto.game.CategoryItemRequest.prototype.clearTitle = function() {
|
1522
|
+
return jspb.Message.setField(this, 2, undefined);
|
1523
|
+
};
|
1524
|
+
|
1525
|
+
|
1526
|
+
/**
|
1527
|
+
* Returns whether this field is set.
|
1528
|
+
* @return {boolean}
|
1529
|
+
*/
|
1530
|
+
proto.game.CategoryItemRequest.prototype.hasTitle = function() {
|
1531
|
+
return jspb.Message.getField(this, 2) != null;
|
1532
|
+
};
|
1533
|
+
|
1534
|
+
|
1535
|
+
/**
|
1536
|
+
* optional string slug = 3;
|
1537
|
+
* @return {string}
|
1538
|
+
*/
|
1539
|
+
proto.game.CategoryItemRequest.prototype.getSlug = function() {
|
1540
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1541
|
+
};
|
1542
|
+
|
1543
|
+
|
1544
|
+
/**
|
1545
|
+
* @param {string} value
|
1546
|
+
* @return {!proto.game.CategoryItemRequest} returns this
|
1547
|
+
*/
|
1548
|
+
proto.game.CategoryItemRequest.prototype.setSlug = function(value) {
|
1549
|
+
return jspb.Message.setField(this, 3, value);
|
1550
|
+
};
|
1551
|
+
|
1552
|
+
|
1553
|
+
/**
|
1554
|
+
* Clears the field making it undefined.
|
1555
|
+
* @return {!proto.game.CategoryItemRequest} returns this
|
1556
|
+
*/
|
1557
|
+
proto.game.CategoryItemRequest.prototype.clearSlug = function() {
|
1558
|
+
return jspb.Message.setField(this, 3, undefined);
|
1559
|
+
};
|
1560
|
+
|
1561
|
+
|
1562
|
+
/**
|
1563
|
+
* Returns whether this field is set.
|
1564
|
+
* @return {boolean}
|
1565
|
+
*/
|
1566
|
+
proto.game.CategoryItemRequest.prototype.hasSlug = function() {
|
1567
|
+
return jspb.Message.getField(this, 3) != null;
|
1568
|
+
};
|
1569
|
+
|
1570
|
+
|
1571
|
+
/**
|
1572
|
+
* optional string description = 4;
|
1573
|
+
* @return {string}
|
1574
|
+
*/
|
1575
|
+
proto.game.CategoryItemRequest.prototype.getDescription = function() {
|
1576
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
1577
|
+
};
|
1578
|
+
|
1579
|
+
|
1580
|
+
/**
|
1581
|
+
* @param {string} value
|
1582
|
+
* @return {!proto.game.CategoryItemRequest} returns this
|
1583
|
+
*/
|
1584
|
+
proto.game.CategoryItemRequest.prototype.setDescription = function(value) {
|
1585
|
+
return jspb.Message.setField(this, 4, value);
|
1586
|
+
};
|
1587
|
+
|
1588
|
+
|
1589
|
+
/**
|
1590
|
+
* Clears the field making it undefined.
|
1591
|
+
* @return {!proto.game.CategoryItemRequest} returns this
|
1592
|
+
*/
|
1593
|
+
proto.game.CategoryItemRequest.prototype.clearDescription = function() {
|
1594
|
+
return jspb.Message.setField(this, 4, undefined);
|
1595
|
+
};
|
1596
|
+
|
1597
|
+
|
1598
|
+
/**
|
1599
|
+
* Returns whether this field is set.
|
1600
|
+
* @return {boolean}
|
1601
|
+
*/
|
1602
|
+
proto.game.CategoryItemRequest.prototype.hasDescription = function() {
|
1603
|
+
return jspb.Message.getField(this, 4) != null;
|
1604
|
+
};
|
1605
|
+
|
1606
|
+
|
1607
|
+
/**
|
1608
|
+
* optional int32 is_active = 5;
|
1509
1609
|
* @return {number}
|
1510
1610
|
*/
|
1511
|
-
proto.game.
|
1512
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
1611
|
+
proto.game.CategoryItemRequest.prototype.getIsActive = function() {
|
1612
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
1513
1613
|
};
|
1514
1614
|
|
1515
1615
|
|
1516
1616
|
/**
|
1517
1617
|
* @param {number} value
|
1518
|
-
* @return {!proto.game.
|
1618
|
+
* @return {!proto.game.CategoryItemRequest} returns this
|
1519
1619
|
*/
|
1520
|
-
proto.game.
|
1521
|
-
return jspb.Message.
|
1620
|
+
proto.game.CategoryItemRequest.prototype.setIsActive = function(value) {
|
1621
|
+
return jspb.Message.setField(this, 5, value);
|
1622
|
+
};
|
1623
|
+
|
1624
|
+
|
1625
|
+
/**
|
1626
|
+
* Clears the field making it undefined.
|
1627
|
+
* @return {!proto.game.CategoryItemRequest} returns this
|
1628
|
+
*/
|
1629
|
+
proto.game.CategoryItemRequest.prototype.clearIsActive = function() {
|
1630
|
+
return jspb.Message.setField(this, 5, undefined);
|
1631
|
+
};
|
1632
|
+
|
1633
|
+
|
1634
|
+
/**
|
1635
|
+
* Returns whether this field is set.
|
1636
|
+
* @return {boolean}
|
1637
|
+
*/
|
1638
|
+
proto.game.CategoryItemRequest.prototype.hasIsActive = function() {
|
1639
|
+
return jspb.Message.getField(this, 5) != null;
|
1640
|
+
};
|
1641
|
+
|
1642
|
+
|
1643
|
+
/**
|
1644
|
+
* optional string file_name = 6;
|
1645
|
+
* @return {string}
|
1646
|
+
*/
|
1647
|
+
proto.game.CategoryItemRequest.prototype.getFileName = function() {
|
1648
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
1649
|
+
};
|
1650
|
+
|
1651
|
+
|
1652
|
+
/**
|
1653
|
+
* @param {string} value
|
1654
|
+
* @return {!proto.game.CategoryItemRequest} returns this
|
1655
|
+
*/
|
1656
|
+
proto.game.CategoryItemRequest.prototype.setFileName = function(value) {
|
1657
|
+
return jspb.Message.setField(this, 6, value);
|
1658
|
+
};
|
1659
|
+
|
1660
|
+
|
1661
|
+
/**
|
1662
|
+
* Clears the field making it undefined.
|
1663
|
+
* @return {!proto.game.CategoryItemRequest} returns this
|
1664
|
+
*/
|
1665
|
+
proto.game.CategoryItemRequest.prototype.clearFileName = function() {
|
1666
|
+
return jspb.Message.setField(this, 6, undefined);
|
1667
|
+
};
|
1668
|
+
|
1669
|
+
|
1670
|
+
/**
|
1671
|
+
* Returns whether this field is set.
|
1672
|
+
* @return {boolean}
|
1673
|
+
*/
|
1674
|
+
proto.game.CategoryItemRequest.prototype.hasFileName = function() {
|
1675
|
+
return jspb.Message.getField(this, 6) != null;
|
1676
|
+
};
|
1677
|
+
|
1678
|
+
|
1679
|
+
/**
|
1680
|
+
* optional string file_type = 7;
|
1681
|
+
* @return {string}
|
1682
|
+
*/
|
1683
|
+
proto.game.CategoryItemRequest.prototype.getFileType = function() {
|
1684
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
1685
|
+
};
|
1686
|
+
|
1687
|
+
|
1688
|
+
/**
|
1689
|
+
* @param {string} value
|
1690
|
+
* @return {!proto.game.CategoryItemRequest} returns this
|
1691
|
+
*/
|
1692
|
+
proto.game.CategoryItemRequest.prototype.setFileType = function(value) {
|
1693
|
+
return jspb.Message.setField(this, 7, value);
|
1694
|
+
};
|
1695
|
+
|
1696
|
+
|
1697
|
+
/**
|
1698
|
+
* Clears the field making it undefined.
|
1699
|
+
* @return {!proto.game.CategoryItemRequest} returns this
|
1700
|
+
*/
|
1701
|
+
proto.game.CategoryItemRequest.prototype.clearFileType = function() {
|
1702
|
+
return jspb.Message.setField(this, 7, undefined);
|
1703
|
+
};
|
1704
|
+
|
1705
|
+
|
1706
|
+
/**
|
1707
|
+
* Returns whether this field is set.
|
1708
|
+
* @return {boolean}
|
1709
|
+
*/
|
1710
|
+
proto.game.CategoryItemRequest.prototype.hasFileType = function() {
|
1711
|
+
return jspb.Message.getField(this, 7) != null;
|
1522
1712
|
};
|
1523
1713
|
|
1524
1714
|
|
@@ -1538,8 +1728,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1538
1728
|
* http://goto/soy-param-migration
|
1539
1729
|
* @return {!Object}
|
1540
1730
|
*/
|
1541
|
-
proto.game.
|
1542
|
-
return proto.game.
|
1731
|
+
proto.game.GetCategoryRequest.prototype.toObject = function(opt_includeInstance) {
|
1732
|
+
return proto.game.GetCategoryRequest.toObject(opt_includeInstance, this);
|
1543
1733
|
};
|
1544
1734
|
|
1545
1735
|
|
@@ -1548,13 +1738,13 @@ proto.game.CategoryResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1548
1738
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1549
1739
|
* the JSPB instance for transitional soy proto support:
|
1550
1740
|
* http://goto/soy-param-migration
|
1551
|
-
* @param {!proto.game.
|
1741
|
+
* @param {!proto.game.GetCategoryRequest} msg The msg instance to transform.
|
1552
1742
|
* @return {!Object}
|
1553
1743
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1554
1744
|
*/
|
1555
|
-
proto.game.
|
1745
|
+
proto.game.GetCategoryRequest.toObject = function(includeInstance, msg) {
|
1556
1746
|
var f, obj = {
|
1557
|
-
|
1747
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
1558
1748
|
};
|
1559
1749
|
|
1560
1750
|
if (includeInstance) {
|
@@ -1568,23 +1758,23 @@ proto.game.CategoryResponse.toObject = function(includeInstance, msg) {
|
|
1568
1758
|
/**
|
1569
1759
|
* Deserializes binary data (in protobuf wire format).
|
1570
1760
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1571
|
-
* @return {!proto.game.
|
1761
|
+
* @return {!proto.game.GetCategoryRequest}
|
1572
1762
|
*/
|
1573
|
-
proto.game.
|
1763
|
+
proto.game.GetCategoryRequest.deserializeBinary = function(bytes) {
|
1574
1764
|
var reader = new jspb.BinaryReader(bytes);
|
1575
|
-
var msg = new proto.game.
|
1576
|
-
return proto.game.
|
1765
|
+
var msg = new proto.game.GetCategoryRequest;
|
1766
|
+
return proto.game.GetCategoryRequest.deserializeBinaryFromReader(msg, reader);
|
1577
1767
|
};
|
1578
1768
|
|
1579
1769
|
|
1580
1770
|
/**
|
1581
1771
|
* Deserializes binary data (in protobuf wire format) from the
|
1582
1772
|
* given reader into the given message object.
|
1583
|
-
* @param {!proto.game.
|
1773
|
+
* @param {!proto.game.GetCategoryRequest} msg The message object to deserialize into.
|
1584
1774
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1585
|
-
* @return {!proto.game.
|
1775
|
+
* @return {!proto.game.GetCategoryRequest}
|
1586
1776
|
*/
|
1587
|
-
proto.game.
|
1777
|
+
proto.game.GetCategoryRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1588
1778
|
while (reader.nextField()) {
|
1589
1779
|
if (reader.isEndGroup()) {
|
1590
1780
|
break;
|
@@ -1592,9 +1782,8 @@ proto.game.CategoryResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
1592
1782
|
var field = reader.getFieldNumber();
|
1593
1783
|
switch (field) {
|
1594
1784
|
case 1:
|
1595
|
-
var value =
|
1596
|
-
|
1597
|
-
msg.setData(value);
|
1785
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1786
|
+
msg.setId(value);
|
1598
1787
|
break;
|
1599
1788
|
default:
|
1600
1789
|
reader.skipField();
|
@@ -1609,9 +1798,9 @@ proto.game.CategoryResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
1609
1798
|
* Serializes the message to binary data (in protobuf wire format).
|
1610
1799
|
* @return {!Uint8Array}
|
1611
1800
|
*/
|
1612
|
-
proto.game.
|
1801
|
+
proto.game.GetCategoryRequest.prototype.serializeBinary = function() {
|
1613
1802
|
var writer = new jspb.BinaryWriter();
|
1614
|
-
proto.game.
|
1803
|
+
proto.game.GetCategoryRequest.serializeBinaryToWriter(this, writer);
|
1615
1804
|
return writer.getResultBuffer();
|
1616
1805
|
};
|
1617
1806
|
|
@@ -1619,68 +1808,41 @@ proto.game.CategoryResponse.prototype.serializeBinary = function() {
|
|
1619
1808
|
/**
|
1620
1809
|
* Serializes the given message to binary data (in protobuf wire
|
1621
1810
|
* format), writing to the given BinaryWriter.
|
1622
|
-
* @param {!proto.game.
|
1811
|
+
* @param {!proto.game.GetCategoryRequest} message
|
1623
1812
|
* @param {!jspb.BinaryWriter} writer
|
1624
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1625
|
-
*/
|
1626
|
-
proto.game.
|
1627
|
-
var f = undefined;
|
1628
|
-
f = message.
|
1629
|
-
if (f
|
1630
|
-
writer.
|
1631
|
-
1,
|
1632
|
-
f
|
1633
|
-
|
1634
|
-
|
1635
|
-
}
|
1636
|
-
};
|
1637
|
-
|
1638
|
-
|
1639
|
-
/**
|
1640
|
-
* optional CategoryItem data = 1;
|
1641
|
-
* @return {?proto.game.CategoryItem}
|
1642
|
-
*/
|
1643
|
-
proto.game.CategoryResponse.prototype.getData = function() {
|
1644
|
-
return /** @type{?proto.game.CategoryItem} */ (
|
1645
|
-
jspb.Message.getWrapperField(this, proto.game.CategoryItem, 1));
|
1646
|
-
};
|
1647
|
-
|
1648
|
-
|
1649
|
-
/**
|
1650
|
-
* @param {?proto.game.CategoryItem|undefined} value
|
1651
|
-
* @return {!proto.game.CategoryResponse} returns this
|
1652
|
-
*/
|
1653
|
-
proto.game.CategoryResponse.prototype.setData = function(value) {
|
1654
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
1813
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1814
|
+
*/
|
1815
|
+
proto.game.GetCategoryRequest.serializeBinaryToWriter = function(message, writer) {
|
1816
|
+
var f = undefined;
|
1817
|
+
f = message.getId();
|
1818
|
+
if (f !== 0) {
|
1819
|
+
writer.writeInt32(
|
1820
|
+
1,
|
1821
|
+
f
|
1822
|
+
);
|
1823
|
+
}
|
1655
1824
|
};
|
1656
1825
|
|
1657
1826
|
|
1658
1827
|
/**
|
1659
|
-
*
|
1660
|
-
* @return {
|
1828
|
+
* optional int32 id = 1;
|
1829
|
+
* @return {number}
|
1661
1830
|
*/
|
1662
|
-
proto.game.
|
1663
|
-
return
|
1831
|
+
proto.game.GetCategoryRequest.prototype.getId = function() {
|
1832
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1664
1833
|
};
|
1665
1834
|
|
1666
1835
|
|
1667
1836
|
/**
|
1668
|
-
*
|
1669
|
-
* @return {
|
1837
|
+
* @param {number} value
|
1838
|
+
* @return {!proto.game.GetCategoryRequest} returns this
|
1670
1839
|
*/
|
1671
|
-
proto.game.
|
1672
|
-
return jspb.Message.
|
1840
|
+
proto.game.GetCategoryRequest.prototype.setId = function(value) {
|
1841
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
1673
1842
|
};
|
1674
1843
|
|
1675
1844
|
|
1676
1845
|
|
1677
|
-
/**
|
1678
|
-
* List of repeated fields within this message type.
|
1679
|
-
* @private {!Array<number>}
|
1680
|
-
* @const
|
1681
|
-
*/
|
1682
|
-
proto.game.CategoryListResponse.repeatedFields_ = [1];
|
1683
|
-
|
1684
1846
|
|
1685
1847
|
|
1686
1848
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -1696,8 +1858,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1696
1858
|
* http://goto/soy-param-migration
|
1697
1859
|
* @return {!Object}
|
1698
1860
|
*/
|
1699
|
-
proto.game.
|
1700
|
-
return proto.game.
|
1861
|
+
proto.game.GetListCategoryRequest.prototype.toObject = function(opt_includeInstance) {
|
1862
|
+
return proto.game.GetListCategoryRequest.toObject(opt_includeInstance, this);
|
1701
1863
|
};
|
1702
1864
|
|
1703
1865
|
|
@@ -1706,16 +1868,14 @@ proto.game.CategoryListResponse.prototype.toObject = function(opt_includeInstanc
|
|
1706
1868
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1707
1869
|
* the JSPB instance for transitional soy proto support:
|
1708
1870
|
* http://goto/soy-param-migration
|
1709
|
-
* @param {!proto.game.
|
1871
|
+
* @param {!proto.game.GetListCategoryRequest} msg The msg instance to transform.
|
1710
1872
|
* @return {!Object}
|
1711
1873
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1712
1874
|
*/
|
1713
|
-
proto.game.
|
1875
|
+
proto.game.GetListCategoryRequest.toObject = function(includeInstance, msg) {
|
1714
1876
|
var f, obj = {
|
1715
|
-
|
1716
|
-
|
1717
|
-
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1718
|
-
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
1877
|
+
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1878
|
+
offset: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
1719
1879
|
};
|
1720
1880
|
|
1721
1881
|
if (includeInstance) {
|
@@ -1729,23 +1889,23 @@ proto.game.CategoryListResponse.toObject = function(includeInstance, msg) {
|
|
1729
1889
|
/**
|
1730
1890
|
* Deserializes binary data (in protobuf wire format).
|
1731
1891
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1732
|
-
* @return {!proto.game.
|
1892
|
+
* @return {!proto.game.GetListCategoryRequest}
|
1733
1893
|
*/
|
1734
|
-
proto.game.
|
1894
|
+
proto.game.GetListCategoryRequest.deserializeBinary = function(bytes) {
|
1735
1895
|
var reader = new jspb.BinaryReader(bytes);
|
1736
|
-
var msg = new proto.game.
|
1737
|
-
return proto.game.
|
1896
|
+
var msg = new proto.game.GetListCategoryRequest;
|
1897
|
+
return proto.game.GetListCategoryRequest.deserializeBinaryFromReader(msg, reader);
|
1738
1898
|
};
|
1739
1899
|
|
1740
1900
|
|
1741
1901
|
/**
|
1742
1902
|
* Deserializes binary data (in protobuf wire format) from the
|
1743
1903
|
* given reader into the given message object.
|
1744
|
-
* @param {!proto.game.
|
1904
|
+
* @param {!proto.game.GetListCategoryRequest} msg The message object to deserialize into.
|
1745
1905
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1746
|
-
* @return {!proto.game.
|
1906
|
+
* @return {!proto.game.GetListCategoryRequest}
|
1747
1907
|
*/
|
1748
|
-
proto.game.
|
1908
|
+
proto.game.GetListCategoryRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1749
1909
|
while (reader.nextField()) {
|
1750
1910
|
if (reader.isEndGroup()) {
|
1751
1911
|
break;
|
@@ -1753,17 +1913,12 @@ proto.game.CategoryListResponse.deserializeBinaryFromReader = function(msg, read
|
|
1753
1913
|
var field = reader.getFieldNumber();
|
1754
1914
|
switch (field) {
|
1755
1915
|
case 1:
|
1756
|
-
var value = new proto.game.CategoryItem;
|
1757
|
-
reader.readMessage(value,proto.game.CategoryItem.deserializeBinaryFromReader);
|
1758
|
-
msg.addItems(value);
|
1759
|
-
break;
|
1760
|
-
case 2:
|
1761
1916
|
var value = /** @type {number} */ (reader.readInt32());
|
1762
|
-
msg.
|
1917
|
+
msg.setLimit(value);
|
1763
1918
|
break;
|
1764
|
-
case
|
1919
|
+
case 2:
|
1765
1920
|
var value = /** @type {number} */ (reader.readInt32());
|
1766
|
-
msg.
|
1921
|
+
msg.setOffset(value);
|
1767
1922
|
break;
|
1768
1923
|
default:
|
1769
1924
|
reader.skipField();
|
@@ -1778,9 +1933,9 @@ proto.game.CategoryListResponse.deserializeBinaryFromReader = function(msg, read
|
|
1778
1933
|
* Serializes the message to binary data (in protobuf wire format).
|
1779
1934
|
* @return {!Uint8Array}
|
1780
1935
|
*/
|
1781
|
-
proto.game.
|
1936
|
+
proto.game.GetListCategoryRequest.prototype.serializeBinary = function() {
|
1782
1937
|
var writer = new jspb.BinaryWriter();
|
1783
|
-
proto.game.
|
1938
|
+
proto.game.GetListCategoryRequest.serializeBinaryToWriter(this, writer);
|
1784
1939
|
return writer.getResultBuffer();
|
1785
1940
|
};
|
1786
1941
|
|
@@ -1788,31 +1943,23 @@ proto.game.CategoryListResponse.prototype.serializeBinary = function() {
|
|
1788
1943
|
/**
|
1789
1944
|
* Serializes the given message to binary data (in protobuf wire
|
1790
1945
|
* format), writing to the given BinaryWriter.
|
1791
|
-
* @param {!proto.game.
|
1946
|
+
* @param {!proto.game.GetListCategoryRequest} message
|
1792
1947
|
* @param {!jspb.BinaryWriter} writer
|
1793
1948
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1794
1949
|
*/
|
1795
|
-
proto.game.
|
1950
|
+
proto.game.GetListCategoryRequest.serializeBinaryToWriter = function(message, writer) {
|
1796
1951
|
var f = undefined;
|
1797
|
-
f = message.
|
1798
|
-
if (f
|
1799
|
-
writer.writeRepeatedMessage(
|
1800
|
-
1,
|
1801
|
-
f,
|
1802
|
-
proto.game.CategoryItem.serializeBinaryToWriter
|
1803
|
-
);
|
1804
|
-
}
|
1805
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
1806
|
-
if (f != null) {
|
1952
|
+
f = message.getLimit();
|
1953
|
+
if (f !== 0) {
|
1807
1954
|
writer.writeInt32(
|
1808
|
-
|
1955
|
+
1,
|
1809
1956
|
f
|
1810
1957
|
);
|
1811
1958
|
}
|
1812
|
-
f =
|
1813
|
-
if (f
|
1959
|
+
f = message.getOffset();
|
1960
|
+
if (f !== 0) {
|
1814
1961
|
writer.writeInt32(
|
1815
|
-
|
1962
|
+
2,
|
1816
1963
|
f
|
1817
1964
|
);
|
1818
1965
|
}
|
@@ -1820,112 +1967,38 @@ proto.game.CategoryListResponse.serializeBinaryToWriter = function(message, writ
|
|
1820
1967
|
|
1821
1968
|
|
1822
1969
|
/**
|
1823
|
-
*
|
1824
|
-
* @return {!Array<!proto.game.CategoryItem>}
|
1825
|
-
*/
|
1826
|
-
proto.game.CategoryListResponse.prototype.getItemsList = function() {
|
1827
|
-
return /** @type{!Array<!proto.game.CategoryItem>} */ (
|
1828
|
-
jspb.Message.getRepeatedWrapperField(this, proto.game.CategoryItem, 1));
|
1829
|
-
};
|
1830
|
-
|
1831
|
-
|
1832
|
-
/**
|
1833
|
-
* @param {!Array<!proto.game.CategoryItem>} value
|
1834
|
-
* @return {!proto.game.CategoryListResponse} returns this
|
1835
|
-
*/
|
1836
|
-
proto.game.CategoryListResponse.prototype.setItemsList = function(value) {
|
1837
|
-
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
1838
|
-
};
|
1839
|
-
|
1840
|
-
|
1841
|
-
/**
|
1842
|
-
* @param {!proto.game.CategoryItem=} opt_value
|
1843
|
-
* @param {number=} opt_index
|
1844
|
-
* @return {!proto.game.CategoryItem}
|
1845
|
-
*/
|
1846
|
-
proto.game.CategoryListResponse.prototype.addItems = function(opt_value, opt_index) {
|
1847
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.CategoryItem, opt_index);
|
1848
|
-
};
|
1849
|
-
|
1850
|
-
|
1851
|
-
/**
|
1852
|
-
* Clears the list making it empty but non-null.
|
1853
|
-
* @return {!proto.game.CategoryListResponse} returns this
|
1854
|
-
*/
|
1855
|
-
proto.game.CategoryListResponse.prototype.clearItemsList = function() {
|
1856
|
-
return this.setItemsList([]);
|
1857
|
-
};
|
1858
|
-
|
1859
|
-
|
1860
|
-
/**
|
1861
|
-
* optional int32 total_pages = 2;
|
1970
|
+
* optional int32 limit = 1;
|
1862
1971
|
* @return {number}
|
1863
1972
|
*/
|
1864
|
-
proto.game.
|
1865
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
1973
|
+
proto.game.GetListCategoryRequest.prototype.getLimit = function() {
|
1974
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1866
1975
|
};
|
1867
1976
|
|
1868
1977
|
|
1869
1978
|
/**
|
1870
1979
|
* @param {number} value
|
1871
|
-
* @return {!proto.game.
|
1872
|
-
*/
|
1873
|
-
proto.game.CategoryListResponse.prototype.setTotalPages = function(value) {
|
1874
|
-
return jspb.Message.setField(this, 2, value);
|
1875
|
-
};
|
1876
|
-
|
1877
|
-
|
1878
|
-
/**
|
1879
|
-
* Clears the field making it undefined.
|
1880
|
-
* @return {!proto.game.CategoryListResponse} returns this
|
1881
|
-
*/
|
1882
|
-
proto.game.CategoryListResponse.prototype.clearTotalPages = function() {
|
1883
|
-
return jspb.Message.setField(this, 2, undefined);
|
1884
|
-
};
|
1885
|
-
|
1886
|
-
|
1887
|
-
/**
|
1888
|
-
* Returns whether this field is set.
|
1889
|
-
* @return {boolean}
|
1980
|
+
* @return {!proto.game.GetListCategoryRequest} returns this
|
1890
1981
|
*/
|
1891
|
-
proto.game.
|
1892
|
-
return jspb.Message.
|
1982
|
+
proto.game.GetListCategoryRequest.prototype.setLimit = function(value) {
|
1983
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
1893
1984
|
};
|
1894
1985
|
|
1895
1986
|
|
1896
1987
|
/**
|
1897
|
-
* optional int32
|
1988
|
+
* optional int32 offset = 2;
|
1898
1989
|
* @return {number}
|
1899
1990
|
*/
|
1900
|
-
proto.game.
|
1901
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
1991
|
+
proto.game.GetListCategoryRequest.prototype.getOffset = function() {
|
1992
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1902
1993
|
};
|
1903
1994
|
|
1904
1995
|
|
1905
1996
|
/**
|
1906
1997
|
* @param {number} value
|
1907
|
-
* @return {!proto.game.
|
1908
|
-
*/
|
1909
|
-
proto.game.CategoryListResponse.prototype.setTotalItems = function(value) {
|
1910
|
-
return jspb.Message.setField(this, 3, value);
|
1911
|
-
};
|
1912
|
-
|
1913
|
-
|
1914
|
-
/**
|
1915
|
-
* Clears the field making it undefined.
|
1916
|
-
* @return {!proto.game.CategoryListResponse} returns this
|
1917
|
-
*/
|
1918
|
-
proto.game.CategoryListResponse.prototype.clearTotalItems = function() {
|
1919
|
-
return jspb.Message.setField(this, 3, undefined);
|
1920
|
-
};
|
1921
|
-
|
1922
|
-
|
1923
|
-
/**
|
1924
|
-
* Returns whether this field is set.
|
1925
|
-
* @return {boolean}
|
1998
|
+
* @return {!proto.game.GetListCategoryRequest} returns this
|
1926
1999
|
*/
|
1927
|
-
proto.game.
|
1928
|
-
return jspb.Message.
|
2000
|
+
proto.game.GetListCategoryRequest.prototype.setOffset = function(value) {
|
2001
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
1929
2002
|
};
|
1930
2003
|
|
1931
2004
|
|
@@ -1945,8 +2018,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1945
2018
|
* http://goto/soy-param-migration
|
1946
2019
|
* @return {!Object}
|
1947
2020
|
*/
|
1948
|
-
proto.game.
|
1949
|
-
return proto.game.
|
2021
|
+
proto.game.CategoryResponse.prototype.toObject = function(opt_includeInstance) {
|
2022
|
+
return proto.game.CategoryResponse.toObject(opt_includeInstance, this);
|
1950
2023
|
};
|
1951
2024
|
|
1952
2025
|
|
@@ -1955,13 +2028,13 @@ proto.game.CategoryStatusResponse.prototype.toObject = function(opt_includeInsta
|
|
1955
2028
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1956
2029
|
* the JSPB instance for transitional soy proto support:
|
1957
2030
|
* http://goto/soy-param-migration
|
1958
|
-
* @param {!proto.game.
|
2031
|
+
* @param {!proto.game.CategoryResponse} msg The msg instance to transform.
|
1959
2032
|
* @return {!Object}
|
1960
2033
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1961
2034
|
*/
|
1962
|
-
proto.game.
|
2035
|
+
proto.game.CategoryResponse.toObject = function(includeInstance, msg) {
|
1963
2036
|
var f, obj = {
|
1964
|
-
|
2037
|
+
data: (f = msg.getData()) && proto.game.CategoryItem.toObject(includeInstance, f)
|
1965
2038
|
};
|
1966
2039
|
|
1967
2040
|
if (includeInstance) {
|
@@ -1975,23 +2048,23 @@ proto.game.CategoryStatusResponse.toObject = function(includeInstance, msg) {
|
|
1975
2048
|
/**
|
1976
2049
|
* Deserializes binary data (in protobuf wire format).
|
1977
2050
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1978
|
-
* @return {!proto.game.
|
2051
|
+
* @return {!proto.game.CategoryResponse}
|
1979
2052
|
*/
|
1980
|
-
proto.game.
|
2053
|
+
proto.game.CategoryResponse.deserializeBinary = function(bytes) {
|
1981
2054
|
var reader = new jspb.BinaryReader(bytes);
|
1982
|
-
var msg = new proto.game.
|
1983
|
-
return proto.game.
|
2055
|
+
var msg = new proto.game.CategoryResponse;
|
2056
|
+
return proto.game.CategoryResponse.deserializeBinaryFromReader(msg, reader);
|
1984
2057
|
};
|
1985
2058
|
|
1986
2059
|
|
1987
2060
|
/**
|
1988
2061
|
* Deserializes binary data (in protobuf wire format) from the
|
1989
2062
|
* given reader into the given message object.
|
1990
|
-
* @param {!proto.game.
|
2063
|
+
* @param {!proto.game.CategoryResponse} msg The message object to deserialize into.
|
1991
2064
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1992
|
-
* @return {!proto.game.
|
2065
|
+
* @return {!proto.game.CategoryResponse}
|
1993
2066
|
*/
|
1994
|
-
proto.game.
|
2067
|
+
proto.game.CategoryResponse.deserializeBinaryFromReader = function(msg, reader) {
|
1995
2068
|
while (reader.nextField()) {
|
1996
2069
|
if (reader.isEndGroup()) {
|
1997
2070
|
break;
|
@@ -1999,8 +2072,9 @@ proto.game.CategoryStatusResponse.deserializeBinaryFromReader = function(msg, re
|
|
1999
2072
|
var field = reader.getFieldNumber();
|
2000
2073
|
switch (field) {
|
2001
2074
|
case 1:
|
2002
|
-
var value =
|
2003
|
-
|
2075
|
+
var value = new proto.game.CategoryItem;
|
2076
|
+
reader.readMessage(value,proto.game.CategoryItem.deserializeBinaryFromReader);
|
2077
|
+
msg.setData(value);
|
2004
2078
|
break;
|
2005
2079
|
default:
|
2006
2080
|
reader.skipField();
|
@@ -2015,51 +2089,78 @@ proto.game.CategoryStatusResponse.deserializeBinaryFromReader = function(msg, re
|
|
2015
2089
|
* Serializes the message to binary data (in protobuf wire format).
|
2016
2090
|
* @return {!Uint8Array}
|
2017
2091
|
*/
|
2018
|
-
proto.game.
|
2092
|
+
proto.game.CategoryResponse.prototype.serializeBinary = function() {
|
2019
2093
|
var writer = new jspb.BinaryWriter();
|
2020
|
-
proto.game.
|
2094
|
+
proto.game.CategoryResponse.serializeBinaryToWriter(this, writer);
|
2021
2095
|
return writer.getResultBuffer();
|
2022
2096
|
};
|
2023
2097
|
|
2024
2098
|
|
2025
2099
|
/**
|
2026
|
-
* Serializes the given message to binary data (in protobuf wire
|
2027
|
-
* format), writing to the given BinaryWriter.
|
2028
|
-
* @param {!proto.game.
|
2029
|
-
* @param {!jspb.BinaryWriter} writer
|
2030
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2031
|
-
*/
|
2032
|
-
proto.game.
|
2033
|
-
var f = undefined;
|
2034
|
-
f = message.
|
2035
|
-
if (f
|
2036
|
-
writer.
|
2037
|
-
1,
|
2038
|
-
f
|
2039
|
-
|
2040
|
-
|
2100
|
+
* Serializes the given message to binary data (in protobuf wire
|
2101
|
+
* format), writing to the given BinaryWriter.
|
2102
|
+
* @param {!proto.game.CategoryResponse} message
|
2103
|
+
* @param {!jspb.BinaryWriter} writer
|
2104
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2105
|
+
*/
|
2106
|
+
proto.game.CategoryResponse.serializeBinaryToWriter = function(message, writer) {
|
2107
|
+
var f = undefined;
|
2108
|
+
f = message.getData();
|
2109
|
+
if (f != null) {
|
2110
|
+
writer.writeMessage(
|
2111
|
+
1,
|
2112
|
+
f,
|
2113
|
+
proto.game.CategoryItem.serializeBinaryToWriter
|
2114
|
+
);
|
2115
|
+
}
|
2116
|
+
};
|
2117
|
+
|
2118
|
+
|
2119
|
+
/**
|
2120
|
+
* optional CategoryItem data = 1;
|
2121
|
+
* @return {?proto.game.CategoryItem}
|
2122
|
+
*/
|
2123
|
+
proto.game.CategoryResponse.prototype.getData = function() {
|
2124
|
+
return /** @type{?proto.game.CategoryItem} */ (
|
2125
|
+
jspb.Message.getWrapperField(this, proto.game.CategoryItem, 1));
|
2126
|
+
};
|
2127
|
+
|
2128
|
+
|
2129
|
+
/**
|
2130
|
+
* @param {?proto.game.CategoryItem|undefined} value
|
2131
|
+
* @return {!proto.game.CategoryResponse} returns this
|
2132
|
+
*/
|
2133
|
+
proto.game.CategoryResponse.prototype.setData = function(value) {
|
2134
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
2041
2135
|
};
|
2042
2136
|
|
2043
2137
|
|
2044
2138
|
/**
|
2045
|
-
*
|
2046
|
-
* @return {
|
2139
|
+
* Clears the message field making it undefined.
|
2140
|
+
* @return {!proto.game.CategoryResponse} returns this
|
2047
2141
|
*/
|
2048
|
-
proto.game.
|
2049
|
-
return
|
2142
|
+
proto.game.CategoryResponse.prototype.clearData = function() {
|
2143
|
+
return this.setData(undefined);
|
2050
2144
|
};
|
2051
2145
|
|
2052
2146
|
|
2053
2147
|
/**
|
2054
|
-
*
|
2055
|
-
* @return {
|
2148
|
+
* Returns whether this field is set.
|
2149
|
+
* @return {boolean}
|
2056
2150
|
*/
|
2057
|
-
proto.game.
|
2058
|
-
return jspb.Message.
|
2151
|
+
proto.game.CategoryResponse.prototype.hasData = function() {
|
2152
|
+
return jspb.Message.getField(this, 1) != null;
|
2059
2153
|
};
|
2060
2154
|
|
2061
2155
|
|
2062
2156
|
|
2157
|
+
/**
|
2158
|
+
* List of repeated fields within this message type.
|
2159
|
+
* @private {!Array<number>}
|
2160
|
+
* @const
|
2161
|
+
*/
|
2162
|
+
proto.game.CategoryListResponse.repeatedFields_ = [1];
|
2163
|
+
|
2063
2164
|
|
2064
2165
|
|
2065
2166
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -2075,8 +2176,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2075
2176
|
* http://goto/soy-param-migration
|
2076
2177
|
* @return {!Object}
|
2077
2178
|
*/
|
2078
|
-
proto.game.
|
2079
|
-
return proto.game.
|
2179
|
+
proto.game.CategoryListResponse.prototype.toObject = function(opt_includeInstance) {
|
2180
|
+
return proto.game.CategoryListResponse.toObject(opt_includeInstance, this);
|
2080
2181
|
};
|
2081
2182
|
|
2082
2183
|
|
@@ -2085,14 +2186,16 @@ proto.game.MetaDataFile.prototype.toObject = function(opt_includeInstance) {
|
|
2085
2186
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2086
2187
|
* the JSPB instance for transitional soy proto support:
|
2087
2188
|
* http://goto/soy-param-migration
|
2088
|
-
* @param {!proto.game.
|
2189
|
+
* @param {!proto.game.CategoryListResponse} msg The msg instance to transform.
|
2089
2190
|
* @return {!Object}
|
2090
2191
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2091
2192
|
*/
|
2092
|
-
proto.game.
|
2193
|
+
proto.game.CategoryListResponse.toObject = function(includeInstance, msg) {
|
2093
2194
|
var f, obj = {
|
2094
|
-
|
2095
|
-
|
2195
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
2196
|
+
proto.game.CategoryItem.toObject, includeInstance),
|
2197
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
2198
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
2096
2199
|
};
|
2097
2200
|
|
2098
2201
|
if (includeInstance) {
|
@@ -2106,23 +2209,23 @@ proto.game.MetaDataFile.toObject = function(includeInstance, msg) {
|
|
2106
2209
|
/**
|
2107
2210
|
* Deserializes binary data (in protobuf wire format).
|
2108
2211
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2109
|
-
* @return {!proto.game.
|
2212
|
+
* @return {!proto.game.CategoryListResponse}
|
2110
2213
|
*/
|
2111
|
-
proto.game.
|
2214
|
+
proto.game.CategoryListResponse.deserializeBinary = function(bytes) {
|
2112
2215
|
var reader = new jspb.BinaryReader(bytes);
|
2113
|
-
var msg = new proto.game.
|
2114
|
-
return proto.game.
|
2216
|
+
var msg = new proto.game.CategoryListResponse;
|
2217
|
+
return proto.game.CategoryListResponse.deserializeBinaryFromReader(msg, reader);
|
2115
2218
|
};
|
2116
2219
|
|
2117
2220
|
|
2118
2221
|
/**
|
2119
2222
|
* Deserializes binary data (in protobuf wire format) from the
|
2120
2223
|
* given reader into the given message object.
|
2121
|
-
* @param {!proto.game.
|
2224
|
+
* @param {!proto.game.CategoryListResponse} msg The message object to deserialize into.
|
2122
2225
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2123
|
-
* @return {!proto.game.
|
2226
|
+
* @return {!proto.game.CategoryListResponse}
|
2124
2227
|
*/
|
2125
|
-
proto.game.
|
2228
|
+
proto.game.CategoryListResponse.deserializeBinaryFromReader = function(msg, reader) {
|
2126
2229
|
while (reader.nextField()) {
|
2127
2230
|
if (reader.isEndGroup()) {
|
2128
2231
|
break;
|
@@ -2130,12 +2233,17 @@ proto.game.MetaDataFile.deserializeBinaryFromReader = function(msg, reader) {
|
|
2130
2233
|
var field = reader.getFieldNumber();
|
2131
2234
|
switch (field) {
|
2132
2235
|
case 1:
|
2133
|
-
var value =
|
2134
|
-
|
2236
|
+
var value = new proto.game.CategoryItem;
|
2237
|
+
reader.readMessage(value,proto.game.CategoryItem.deserializeBinaryFromReader);
|
2238
|
+
msg.addItems(value);
|
2135
2239
|
break;
|
2136
2240
|
case 2:
|
2137
|
-
var value = /** @type {
|
2138
|
-
msg.
|
2241
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2242
|
+
msg.setTotalPages(value);
|
2243
|
+
break;
|
2244
|
+
case 3:
|
2245
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2246
|
+
msg.setTotalItems(value);
|
2139
2247
|
break;
|
2140
2248
|
default:
|
2141
2249
|
reader.skipField();
|
@@ -2150,9 +2258,9 @@ proto.game.MetaDataFile.deserializeBinaryFromReader = function(msg, reader) {
|
|
2150
2258
|
* Serializes the message to binary data (in protobuf wire format).
|
2151
2259
|
* @return {!Uint8Array}
|
2152
2260
|
*/
|
2153
|
-
proto.game.
|
2261
|
+
proto.game.CategoryListResponse.prototype.serializeBinary = function() {
|
2154
2262
|
var writer = new jspb.BinaryWriter();
|
2155
|
-
proto.game.
|
2263
|
+
proto.game.CategoryListResponse.serializeBinaryToWriter(this, writer);
|
2156
2264
|
return writer.getResultBuffer();
|
2157
2265
|
};
|
2158
2266
|
|
@@ -2160,62 +2268,144 @@ proto.game.MetaDataFile.prototype.serializeBinary = function() {
|
|
2160
2268
|
/**
|
2161
2269
|
* Serializes the given message to binary data (in protobuf wire
|
2162
2270
|
* format), writing to the given BinaryWriter.
|
2163
|
-
* @param {!proto.game.
|
2271
|
+
* @param {!proto.game.CategoryListResponse} message
|
2164
2272
|
* @param {!jspb.BinaryWriter} writer
|
2165
2273
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2166
2274
|
*/
|
2167
|
-
proto.game.
|
2275
|
+
proto.game.CategoryListResponse.serializeBinaryToWriter = function(message, writer) {
|
2168
2276
|
var f = undefined;
|
2169
|
-
f = message.
|
2277
|
+
f = message.getItemsList();
|
2170
2278
|
if (f.length > 0) {
|
2171
|
-
writer.
|
2279
|
+
writer.writeRepeatedMessage(
|
2172
2280
|
1,
|
2173
|
-
f
|
2281
|
+
f,
|
2282
|
+
proto.game.CategoryItem.serializeBinaryToWriter
|
2174
2283
|
);
|
2175
2284
|
}
|
2176
|
-
f =
|
2177
|
-
if (f
|
2178
|
-
writer.
|
2285
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
2286
|
+
if (f != null) {
|
2287
|
+
writer.writeInt32(
|
2179
2288
|
2,
|
2180
2289
|
f
|
2181
2290
|
);
|
2182
2291
|
}
|
2292
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
2293
|
+
if (f != null) {
|
2294
|
+
writer.writeInt32(
|
2295
|
+
3,
|
2296
|
+
f
|
2297
|
+
);
|
2298
|
+
}
|
2183
2299
|
};
|
2184
2300
|
|
2185
2301
|
|
2186
2302
|
/**
|
2187
|
-
*
|
2188
|
-
* @return {
|
2303
|
+
* repeated CategoryItem items = 1;
|
2304
|
+
* @return {!Array<!proto.game.CategoryItem>}
|
2189
2305
|
*/
|
2190
|
-
proto.game.
|
2191
|
-
return /** @type
|
2306
|
+
proto.game.CategoryListResponse.prototype.getItemsList = function() {
|
2307
|
+
return /** @type{!Array<!proto.game.CategoryItem>} */ (
|
2308
|
+
jspb.Message.getRepeatedWrapperField(this, proto.game.CategoryItem, 1));
|
2192
2309
|
};
|
2193
2310
|
|
2194
2311
|
|
2195
2312
|
/**
|
2196
|
-
* @param {
|
2197
|
-
* @return {!proto.game.
|
2313
|
+
* @param {!Array<!proto.game.CategoryItem>} value
|
2314
|
+
* @return {!proto.game.CategoryListResponse} returns this
|
2315
|
+
*/
|
2316
|
+
proto.game.CategoryListResponse.prototype.setItemsList = function(value) {
|
2317
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
2318
|
+
};
|
2319
|
+
|
2320
|
+
|
2321
|
+
/**
|
2322
|
+
* @param {!proto.game.CategoryItem=} opt_value
|
2323
|
+
* @param {number=} opt_index
|
2324
|
+
* @return {!proto.game.CategoryItem}
|
2198
2325
|
*/
|
2199
|
-
proto.game.
|
2200
|
-
return jspb.Message.
|
2326
|
+
proto.game.CategoryListResponse.prototype.addItems = function(opt_value, opt_index) {
|
2327
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.CategoryItem, opt_index);
|
2201
2328
|
};
|
2202
2329
|
|
2203
2330
|
|
2204
2331
|
/**
|
2205
|
-
*
|
2206
|
-
* @return {
|
2332
|
+
* Clears the list making it empty but non-null.
|
2333
|
+
* @return {!proto.game.CategoryListResponse} returns this
|
2207
2334
|
*/
|
2208
|
-
proto.game.
|
2209
|
-
return
|
2335
|
+
proto.game.CategoryListResponse.prototype.clearItemsList = function() {
|
2336
|
+
return this.setItemsList([]);
|
2210
2337
|
};
|
2211
2338
|
|
2212
2339
|
|
2213
2340
|
/**
|
2214
|
-
*
|
2215
|
-
* @return {
|
2341
|
+
* optional int32 total_pages = 2;
|
2342
|
+
* @return {number}
|
2343
|
+
*/
|
2344
|
+
proto.game.CategoryListResponse.prototype.getTotalPages = function() {
|
2345
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
2346
|
+
};
|
2347
|
+
|
2348
|
+
|
2349
|
+
/**
|
2350
|
+
* @param {number} value
|
2351
|
+
* @return {!proto.game.CategoryListResponse} returns this
|
2352
|
+
*/
|
2353
|
+
proto.game.CategoryListResponse.prototype.setTotalPages = function(value) {
|
2354
|
+
return jspb.Message.setField(this, 2, value);
|
2355
|
+
};
|
2356
|
+
|
2357
|
+
|
2358
|
+
/**
|
2359
|
+
* Clears the field making it undefined.
|
2360
|
+
* @return {!proto.game.CategoryListResponse} returns this
|
2361
|
+
*/
|
2362
|
+
proto.game.CategoryListResponse.prototype.clearTotalPages = function() {
|
2363
|
+
return jspb.Message.setField(this, 2, undefined);
|
2364
|
+
};
|
2365
|
+
|
2366
|
+
|
2367
|
+
/**
|
2368
|
+
* Returns whether this field is set.
|
2369
|
+
* @return {boolean}
|
2370
|
+
*/
|
2371
|
+
proto.game.CategoryListResponse.prototype.hasTotalPages = function() {
|
2372
|
+
return jspb.Message.getField(this, 2) != null;
|
2373
|
+
};
|
2374
|
+
|
2375
|
+
|
2376
|
+
/**
|
2377
|
+
* optional int32 total_items = 3;
|
2378
|
+
* @return {number}
|
2379
|
+
*/
|
2380
|
+
proto.game.CategoryListResponse.prototype.getTotalItems = function() {
|
2381
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
2382
|
+
};
|
2383
|
+
|
2384
|
+
|
2385
|
+
/**
|
2386
|
+
* @param {number} value
|
2387
|
+
* @return {!proto.game.CategoryListResponse} returns this
|
2388
|
+
*/
|
2389
|
+
proto.game.CategoryListResponse.prototype.setTotalItems = function(value) {
|
2390
|
+
return jspb.Message.setField(this, 3, value);
|
2391
|
+
};
|
2392
|
+
|
2393
|
+
|
2394
|
+
/**
|
2395
|
+
* Clears the field making it undefined.
|
2396
|
+
* @return {!proto.game.CategoryListResponse} returns this
|
2397
|
+
*/
|
2398
|
+
proto.game.CategoryListResponse.prototype.clearTotalItems = function() {
|
2399
|
+
return jspb.Message.setField(this, 3, undefined);
|
2400
|
+
};
|
2401
|
+
|
2402
|
+
|
2403
|
+
/**
|
2404
|
+
* Returns whether this field is set.
|
2405
|
+
* @return {boolean}
|
2216
2406
|
*/
|
2217
|
-
proto.game.
|
2218
|
-
return jspb.Message.
|
2407
|
+
proto.game.CategoryListResponse.prototype.hasTotalItems = function() {
|
2408
|
+
return jspb.Message.getField(this, 3) != null;
|
2219
2409
|
};
|
2220
2410
|
|
2221
2411
|
|
@@ -2235,8 +2425,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2235
2425
|
* http://goto/soy-param-migration
|
2236
2426
|
* @return {!Object}
|
2237
2427
|
*/
|
2238
|
-
proto.game.
|
2239
|
-
return proto.game.
|
2428
|
+
proto.game.CategoryStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
2429
|
+
return proto.game.CategoryStatusResponse.toObject(opt_includeInstance, this);
|
2240
2430
|
};
|
2241
2431
|
|
2242
2432
|
|
@@ -2245,13 +2435,13 @@ proto.game.File.prototype.toObject = function(opt_includeInstance) {
|
|
2245
2435
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2246
2436
|
* the JSPB instance for transitional soy proto support:
|
2247
2437
|
* http://goto/soy-param-migration
|
2248
|
-
* @param {!proto.game.
|
2438
|
+
* @param {!proto.game.CategoryStatusResponse} msg The msg instance to transform.
|
2249
2439
|
* @return {!Object}
|
2250
2440
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2251
2441
|
*/
|
2252
|
-
proto.game.
|
2442
|
+
proto.game.CategoryStatusResponse.toObject = function(includeInstance, msg) {
|
2253
2443
|
var f, obj = {
|
2254
|
-
|
2444
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
2255
2445
|
};
|
2256
2446
|
|
2257
2447
|
if (includeInstance) {
|
@@ -2265,23 +2455,23 @@ proto.game.File.toObject = function(includeInstance, msg) {
|
|
2265
2455
|
/**
|
2266
2456
|
* Deserializes binary data (in protobuf wire format).
|
2267
2457
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2268
|
-
* @return {!proto.game.
|
2458
|
+
* @return {!proto.game.CategoryStatusResponse}
|
2269
2459
|
*/
|
2270
|
-
proto.game.
|
2460
|
+
proto.game.CategoryStatusResponse.deserializeBinary = function(bytes) {
|
2271
2461
|
var reader = new jspb.BinaryReader(bytes);
|
2272
|
-
var msg = new proto.game.
|
2273
|
-
return proto.game.
|
2462
|
+
var msg = new proto.game.CategoryStatusResponse;
|
2463
|
+
return proto.game.CategoryStatusResponse.deserializeBinaryFromReader(msg, reader);
|
2274
2464
|
};
|
2275
2465
|
|
2276
2466
|
|
2277
2467
|
/**
|
2278
2468
|
* Deserializes binary data (in protobuf wire format) from the
|
2279
2469
|
* given reader into the given message object.
|
2280
|
-
* @param {!proto.game.
|
2470
|
+
* @param {!proto.game.CategoryStatusResponse} msg The message object to deserialize into.
|
2281
2471
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2282
|
-
* @return {!proto.game.
|
2472
|
+
* @return {!proto.game.CategoryStatusResponse}
|
2283
2473
|
*/
|
2284
|
-
proto.game.
|
2474
|
+
proto.game.CategoryStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
2285
2475
|
while (reader.nextField()) {
|
2286
2476
|
if (reader.isEndGroup()) {
|
2287
2477
|
break;
|
@@ -2289,8 +2479,8 @@ proto.game.File.deserializeBinaryFromReader = function(msg, reader) {
|
|
2289
2479
|
var field = reader.getFieldNumber();
|
2290
2480
|
switch (field) {
|
2291
2481
|
case 1:
|
2292
|
-
var value = /** @type {
|
2293
|
-
msg.
|
2482
|
+
var value = /** @type {string} */ (reader.readString());
|
2483
|
+
msg.setStatus(value);
|
2294
2484
|
break;
|
2295
2485
|
default:
|
2296
2486
|
reader.skipField();
|
@@ -2305,9 +2495,9 @@ proto.game.File.deserializeBinaryFromReader = function(msg, reader) {
|
|
2305
2495
|
* Serializes the message to binary data (in protobuf wire format).
|
2306
2496
|
* @return {!Uint8Array}
|
2307
2497
|
*/
|
2308
|
-
proto.game.
|
2498
|
+
proto.game.CategoryStatusResponse.prototype.serializeBinary = function() {
|
2309
2499
|
var writer = new jspb.BinaryWriter();
|
2310
|
-
proto.game.
|
2500
|
+
proto.game.CategoryStatusResponse.serializeBinaryToWriter(this, writer);
|
2311
2501
|
return writer.getResultBuffer();
|
2312
2502
|
};
|
2313
2503
|
|
@@ -2315,15 +2505,15 @@ proto.game.File.prototype.serializeBinary = function() {
|
|
2315
2505
|
/**
|
2316
2506
|
* Serializes the given message to binary data (in protobuf wire
|
2317
2507
|
* format), writing to the given BinaryWriter.
|
2318
|
-
* @param {!proto.game.
|
2508
|
+
* @param {!proto.game.CategoryStatusResponse} message
|
2319
2509
|
* @param {!jspb.BinaryWriter} writer
|
2320
2510
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2321
2511
|
*/
|
2322
|
-
proto.game.
|
2512
|
+
proto.game.CategoryStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
2323
2513
|
var f = undefined;
|
2324
|
-
f = message.
|
2514
|
+
f = message.getStatus();
|
2325
2515
|
if (f.length > 0) {
|
2326
|
-
writer.
|
2516
|
+
writer.writeString(
|
2327
2517
|
1,
|
2328
2518
|
f
|
2329
2519
|
);
|
@@ -2332,44 +2522,20 @@ proto.game.File.serializeBinaryToWriter = function(message, writer) {
|
|
2332
2522
|
|
2333
2523
|
|
2334
2524
|
/**
|
2335
|
-
* optional
|
2336
|
-
* @return {!(string|Uint8Array)}
|
2337
|
-
*/
|
2338
|
-
proto.game.File.prototype.getContent = function() {
|
2339
|
-
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2340
|
-
};
|
2341
|
-
|
2342
|
-
|
2343
|
-
/**
|
2344
|
-
* optional bytes content = 1;
|
2345
|
-
* This is a type-conversion wrapper around `getContent()`
|
2525
|
+
* optional string status = 1;
|
2346
2526
|
* @return {string}
|
2347
2527
|
*/
|
2348
|
-
proto.game.
|
2349
|
-
return /** @type {string} */ (jspb.Message.
|
2350
|
-
this.getContent()));
|
2351
|
-
};
|
2352
|
-
|
2353
|
-
|
2354
|
-
/**
|
2355
|
-
* optional bytes content = 1;
|
2356
|
-
* Note that Uint8Array is not supported on all browsers.
|
2357
|
-
* @see http://caniuse.com/Uint8Array
|
2358
|
-
* This is a type-conversion wrapper around `getContent()`
|
2359
|
-
* @return {!Uint8Array}
|
2360
|
-
*/
|
2361
|
-
proto.game.File.prototype.getContent_asU8 = function() {
|
2362
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
2363
|
-
this.getContent()));
|
2528
|
+
proto.game.CategoryStatusResponse.prototype.getStatus = function() {
|
2529
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2364
2530
|
};
|
2365
2531
|
|
2366
2532
|
|
2367
2533
|
/**
|
2368
|
-
* @param {
|
2369
|
-
* @return {!proto.game.
|
2534
|
+
* @param {string} value
|
2535
|
+
* @return {!proto.game.CategoryStatusResponse} returns this
|
2370
2536
|
*/
|
2371
|
-
proto.game.
|
2372
|
-
return jspb.Message.
|
2537
|
+
proto.game.CategoryStatusResponse.prototype.setStatus = function(value) {
|
2538
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
2373
2539
|
};
|
2374
2540
|
|
2375
2541
|
|