protobuf-platform 1.2.174 → 1.2.177
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/config/config.proto +12 -0
- package/config/config_grpc_pb.js +23 -0
- package/config/config_pb.js +548 -1
- package/package.json +1 -1
package/config/config.proto
CHANGED
|
@@ -14,6 +14,8 @@ service Config {
|
|
|
14
14
|
rpc changeGlobalData(GlobalDataRequest) returns (ConfigStatusResponse);
|
|
15
15
|
//Currency Rates
|
|
16
16
|
rpc getCurrencyRate(CurrencyRateRequest) returns (CurrencyRateResponse);
|
|
17
|
+
//Countries
|
|
18
|
+
rpc getCountriesList(PaginationRequest) returns (CountriesResponse);
|
|
17
19
|
//OpenAI
|
|
18
20
|
rpc generateText(PromptRequest) returns (GeneratedTextResponse);
|
|
19
21
|
//Countries data
|
|
@@ -46,6 +48,7 @@ message PaginationRequest {
|
|
|
46
48
|
optional string order = 3;
|
|
47
49
|
optional MirrorSearchRequest mirror_search_params = 4;
|
|
48
50
|
optional MirrorCountriesRequest mirror_country_params = 5;
|
|
51
|
+
optional CountriesRequest country_params = 6;
|
|
49
52
|
}
|
|
50
53
|
message MirrorSearchRequest {
|
|
51
54
|
optional string title = 1;
|
|
@@ -60,6 +63,10 @@ message MirrorCountriesRequest {
|
|
|
60
63
|
optional string type = 2;
|
|
61
64
|
repeated string countries = 3;
|
|
62
65
|
}
|
|
66
|
+
message CountriesRequest {
|
|
67
|
+
optional string name = 1;
|
|
68
|
+
optional string code = 2;
|
|
69
|
+
}
|
|
63
70
|
//Service settings
|
|
64
71
|
message SettingsRequest {
|
|
65
72
|
string environment = 1;
|
|
@@ -138,6 +145,11 @@ message CommonCountriesRequest {
|
|
|
138
145
|
message CommonCountriesResponse {
|
|
139
146
|
repeated CountryItem countries = 1;
|
|
140
147
|
}
|
|
148
|
+
message CountriesResponse {
|
|
149
|
+
repeated CountryItem items = 1;
|
|
150
|
+
optional int32 total_pages = 2;
|
|
151
|
+
optional int32 total_items = 3;
|
|
152
|
+
}
|
|
141
153
|
//File Uploads
|
|
142
154
|
message R2FileRequest {
|
|
143
155
|
string environment = 1;
|
package/config/config_grpc_pb.js
CHANGED
|
@@ -70,6 +70,17 @@ function deserialize_config_ConfigStatusResponse(buffer_arg) {
|
|
|
70
70
|
return config_pb.ConfigStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
function serialize_config_CountriesResponse(arg) {
|
|
74
|
+
if (!(arg instanceof config_pb.CountriesResponse)) {
|
|
75
|
+
throw new Error('Expected argument of type config.CountriesResponse');
|
|
76
|
+
}
|
|
77
|
+
return Buffer.from(arg.serializeBinary());
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function deserialize_config_CountriesResponse(buffer_arg) {
|
|
81
|
+
return config_pb.CountriesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
82
|
+
}
|
|
83
|
+
|
|
73
84
|
function serialize_config_CurrencyRateRequest(arg) {
|
|
74
85
|
if (!(arg instanceof config_pb.CurrencyRateRequest)) {
|
|
75
86
|
throw new Error('Expected argument of type config.CurrencyRateRequest');
|
|
@@ -439,6 +450,18 @@ getCurrencyRate: {
|
|
|
439
450
|
responseSerialize: serialize_config_CurrencyRateResponse,
|
|
440
451
|
responseDeserialize: deserialize_config_CurrencyRateResponse,
|
|
441
452
|
},
|
|
453
|
+
// Countries
|
|
454
|
+
getCountriesList: {
|
|
455
|
+
path: '/config.Config/getCountriesList',
|
|
456
|
+
requestStream: false,
|
|
457
|
+
responseStream: false,
|
|
458
|
+
requestType: config_pb.PaginationRequest,
|
|
459
|
+
responseType: config_pb.CountriesResponse,
|
|
460
|
+
requestSerialize: serialize_config_PaginationRequest,
|
|
461
|
+
requestDeserialize: deserialize_config_PaginationRequest,
|
|
462
|
+
responseSerialize: serialize_config_CountriesResponse,
|
|
463
|
+
responseDeserialize: deserialize_config_CountriesResponse,
|
|
464
|
+
},
|
|
442
465
|
// OpenAI
|
|
443
466
|
generateText: {
|
|
444
467
|
path: '/config.Config/generateText',
|
package/config/config_pb.js
CHANGED
|
@@ -27,6 +27,8 @@ goog.exportSymbol('proto.config.CommonCountriesResponse', null, global);
|
|
|
27
27
|
goog.exportSymbol('proto.config.ConfigDataResponse', null, global);
|
|
28
28
|
goog.exportSymbol('proto.config.ConfigRequest', null, global);
|
|
29
29
|
goog.exportSymbol('proto.config.ConfigStatusResponse', null, global);
|
|
30
|
+
goog.exportSymbol('proto.config.CountriesRequest', null, global);
|
|
31
|
+
goog.exportSymbol('proto.config.CountriesResponse', null, global);
|
|
30
32
|
goog.exportSymbol('proto.config.CountryItem', null, global);
|
|
31
33
|
goog.exportSymbol('proto.config.CurrencyRateRequest', null, global);
|
|
32
34
|
goog.exportSymbol('proto.config.CurrencyRateResponse', null, global);
|
|
@@ -162,6 +164,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
162
164
|
*/
|
|
163
165
|
proto.config.MirrorCountriesRequest.displayName = 'proto.config.MirrorCountriesRequest';
|
|
164
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Generated by JsPbCodeGenerator.
|
|
169
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
170
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
171
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
172
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
173
|
+
* valid.
|
|
174
|
+
* @extends {jspb.Message}
|
|
175
|
+
* @constructor
|
|
176
|
+
*/
|
|
177
|
+
proto.config.CountriesRequest = function(opt_data) {
|
|
178
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
179
|
+
};
|
|
180
|
+
goog.inherits(proto.config.CountriesRequest, jspb.Message);
|
|
181
|
+
if (goog.DEBUG && !COMPILED) {
|
|
182
|
+
/**
|
|
183
|
+
* @public
|
|
184
|
+
* @override
|
|
185
|
+
*/
|
|
186
|
+
proto.config.CountriesRequest.displayName = 'proto.config.CountriesRequest';
|
|
187
|
+
}
|
|
165
188
|
/**
|
|
166
189
|
* Generated by JsPbCodeGenerator.
|
|
167
190
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -477,6 +500,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
477
500
|
*/
|
|
478
501
|
proto.config.CommonCountriesResponse.displayName = 'proto.config.CommonCountriesResponse';
|
|
479
502
|
}
|
|
503
|
+
/**
|
|
504
|
+
* Generated by JsPbCodeGenerator.
|
|
505
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
506
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
507
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
508
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
509
|
+
* valid.
|
|
510
|
+
* @extends {jspb.Message}
|
|
511
|
+
* @constructor
|
|
512
|
+
*/
|
|
513
|
+
proto.config.CountriesResponse = function(opt_data) {
|
|
514
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.config.CountriesResponse.repeatedFields_, null);
|
|
515
|
+
};
|
|
516
|
+
goog.inherits(proto.config.CountriesResponse, jspb.Message);
|
|
517
|
+
if (goog.DEBUG && !COMPILED) {
|
|
518
|
+
/**
|
|
519
|
+
* @public
|
|
520
|
+
* @override
|
|
521
|
+
*/
|
|
522
|
+
proto.config.CountriesResponse.displayName = 'proto.config.CountriesResponse';
|
|
523
|
+
}
|
|
480
524
|
/**
|
|
481
525
|
* Generated by JsPbCodeGenerator.
|
|
482
526
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1109,7 +1153,8 @@ proto.config.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
|
1109
1153
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1110
1154
|
order: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1111
1155
|
mirrorSearchParams: (f = msg.getMirrorSearchParams()) && proto.config.MirrorSearchRequest.toObject(includeInstance, f),
|
|
1112
|
-
mirrorCountryParams: (f = msg.getMirrorCountryParams()) && proto.config.MirrorCountriesRequest.toObject(includeInstance, f)
|
|
1156
|
+
mirrorCountryParams: (f = msg.getMirrorCountryParams()) && proto.config.MirrorCountriesRequest.toObject(includeInstance, f),
|
|
1157
|
+
countryParams: (f = msg.getCountryParams()) && proto.config.CountriesRequest.toObject(includeInstance, f)
|
|
1113
1158
|
};
|
|
1114
1159
|
|
|
1115
1160
|
if (includeInstance) {
|
|
@@ -1168,6 +1213,11 @@ proto.config.PaginationRequest.deserializeBinaryFromReader = function(msg, reade
|
|
|
1168
1213
|
reader.readMessage(value,proto.config.MirrorCountriesRequest.deserializeBinaryFromReader);
|
|
1169
1214
|
msg.setMirrorCountryParams(value);
|
|
1170
1215
|
break;
|
|
1216
|
+
case 6:
|
|
1217
|
+
var value = new proto.config.CountriesRequest;
|
|
1218
|
+
reader.readMessage(value,proto.config.CountriesRequest.deserializeBinaryFromReader);
|
|
1219
|
+
msg.setCountryParams(value);
|
|
1220
|
+
break;
|
|
1171
1221
|
default:
|
|
1172
1222
|
reader.skipField();
|
|
1173
1223
|
break;
|
|
@@ -1234,6 +1284,14 @@ proto.config.PaginationRequest.serializeBinaryToWriter = function(message, write
|
|
|
1234
1284
|
proto.config.MirrorCountriesRequest.serializeBinaryToWriter
|
|
1235
1285
|
);
|
|
1236
1286
|
}
|
|
1287
|
+
f = message.getCountryParams();
|
|
1288
|
+
if (f != null) {
|
|
1289
|
+
writer.writeMessage(
|
|
1290
|
+
6,
|
|
1291
|
+
f,
|
|
1292
|
+
proto.config.CountriesRequest.serializeBinaryToWriter
|
|
1293
|
+
);
|
|
1294
|
+
}
|
|
1237
1295
|
};
|
|
1238
1296
|
|
|
1239
1297
|
|
|
@@ -1383,6 +1441,43 @@ proto.config.PaginationRequest.prototype.hasMirrorCountryParams = function() {
|
|
|
1383
1441
|
};
|
|
1384
1442
|
|
|
1385
1443
|
|
|
1444
|
+
/**
|
|
1445
|
+
* optional CountriesRequest country_params = 6;
|
|
1446
|
+
* @return {?proto.config.CountriesRequest}
|
|
1447
|
+
*/
|
|
1448
|
+
proto.config.PaginationRequest.prototype.getCountryParams = function() {
|
|
1449
|
+
return /** @type{?proto.config.CountriesRequest} */ (
|
|
1450
|
+
jspb.Message.getWrapperField(this, proto.config.CountriesRequest, 6));
|
|
1451
|
+
};
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* @param {?proto.config.CountriesRequest|undefined} value
|
|
1456
|
+
* @return {!proto.config.PaginationRequest} returns this
|
|
1457
|
+
*/
|
|
1458
|
+
proto.config.PaginationRequest.prototype.setCountryParams = function(value) {
|
|
1459
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* Clears the message field making it undefined.
|
|
1465
|
+
* @return {!proto.config.PaginationRequest} returns this
|
|
1466
|
+
*/
|
|
1467
|
+
proto.config.PaginationRequest.prototype.clearCountryParams = function() {
|
|
1468
|
+
return this.setCountryParams(undefined);
|
|
1469
|
+
};
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* Returns whether this field is set.
|
|
1474
|
+
* @return {boolean}
|
|
1475
|
+
*/
|
|
1476
|
+
proto.config.PaginationRequest.prototype.hasCountryParams = function() {
|
|
1477
|
+
return jspb.Message.getField(this, 6) != null;
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1480
|
+
|
|
1386
1481
|
|
|
1387
1482
|
/**
|
|
1388
1483
|
* List of repeated fields within this message type.
|
|
@@ -2036,6 +2131,202 @@ proto.config.MirrorCountriesRequest.prototype.clearCountriesList = function() {
|
|
|
2036
2131
|
|
|
2037
2132
|
|
|
2038
2133
|
|
|
2134
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2135
|
+
/**
|
|
2136
|
+
* Creates an object representation of this proto.
|
|
2137
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2138
|
+
* Optional fields that are not set will be set to undefined.
|
|
2139
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2140
|
+
* For the list of reserved names please see:
|
|
2141
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2142
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2143
|
+
* JSPB instance for transitional soy proto support:
|
|
2144
|
+
* http://goto/soy-param-migration
|
|
2145
|
+
* @return {!Object}
|
|
2146
|
+
*/
|
|
2147
|
+
proto.config.CountriesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2148
|
+
return proto.config.CountriesRequest.toObject(opt_includeInstance, this);
|
|
2149
|
+
};
|
|
2150
|
+
|
|
2151
|
+
|
|
2152
|
+
/**
|
|
2153
|
+
* Static version of the {@see toObject} method.
|
|
2154
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2155
|
+
* the JSPB instance for transitional soy proto support:
|
|
2156
|
+
* http://goto/soy-param-migration
|
|
2157
|
+
* @param {!proto.config.CountriesRequest} msg The msg instance to transform.
|
|
2158
|
+
* @return {!Object}
|
|
2159
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2160
|
+
*/
|
|
2161
|
+
proto.config.CountriesRequest.toObject = function(includeInstance, msg) {
|
|
2162
|
+
var f, obj = {
|
|
2163
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2164
|
+
code: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
2165
|
+
};
|
|
2166
|
+
|
|
2167
|
+
if (includeInstance) {
|
|
2168
|
+
obj.$jspbMessageInstance = msg;
|
|
2169
|
+
}
|
|
2170
|
+
return obj;
|
|
2171
|
+
};
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
|
|
2175
|
+
/**
|
|
2176
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2177
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2178
|
+
* @return {!proto.config.CountriesRequest}
|
|
2179
|
+
*/
|
|
2180
|
+
proto.config.CountriesRequest.deserializeBinary = function(bytes) {
|
|
2181
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2182
|
+
var msg = new proto.config.CountriesRequest;
|
|
2183
|
+
return proto.config.CountriesRequest.deserializeBinaryFromReader(msg, reader);
|
|
2184
|
+
};
|
|
2185
|
+
|
|
2186
|
+
|
|
2187
|
+
/**
|
|
2188
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2189
|
+
* given reader into the given message object.
|
|
2190
|
+
* @param {!proto.config.CountriesRequest} msg The message object to deserialize into.
|
|
2191
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2192
|
+
* @return {!proto.config.CountriesRequest}
|
|
2193
|
+
*/
|
|
2194
|
+
proto.config.CountriesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2195
|
+
while (reader.nextField()) {
|
|
2196
|
+
if (reader.isEndGroup()) {
|
|
2197
|
+
break;
|
|
2198
|
+
}
|
|
2199
|
+
var field = reader.getFieldNumber();
|
|
2200
|
+
switch (field) {
|
|
2201
|
+
case 1:
|
|
2202
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2203
|
+
msg.setName(value);
|
|
2204
|
+
break;
|
|
2205
|
+
case 2:
|
|
2206
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2207
|
+
msg.setCode(value);
|
|
2208
|
+
break;
|
|
2209
|
+
default:
|
|
2210
|
+
reader.skipField();
|
|
2211
|
+
break;
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
return msg;
|
|
2215
|
+
};
|
|
2216
|
+
|
|
2217
|
+
|
|
2218
|
+
/**
|
|
2219
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2220
|
+
* @return {!Uint8Array}
|
|
2221
|
+
*/
|
|
2222
|
+
proto.config.CountriesRequest.prototype.serializeBinary = function() {
|
|
2223
|
+
var writer = new jspb.BinaryWriter();
|
|
2224
|
+
proto.config.CountriesRequest.serializeBinaryToWriter(this, writer);
|
|
2225
|
+
return writer.getResultBuffer();
|
|
2226
|
+
};
|
|
2227
|
+
|
|
2228
|
+
|
|
2229
|
+
/**
|
|
2230
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2231
|
+
* format), writing to the given BinaryWriter.
|
|
2232
|
+
* @param {!proto.config.CountriesRequest} message
|
|
2233
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2234
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2235
|
+
*/
|
|
2236
|
+
proto.config.CountriesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2237
|
+
var f = undefined;
|
|
2238
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
2239
|
+
if (f != null) {
|
|
2240
|
+
writer.writeString(
|
|
2241
|
+
1,
|
|
2242
|
+
f
|
|
2243
|
+
);
|
|
2244
|
+
}
|
|
2245
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
2246
|
+
if (f != null) {
|
|
2247
|
+
writer.writeString(
|
|
2248
|
+
2,
|
|
2249
|
+
f
|
|
2250
|
+
);
|
|
2251
|
+
}
|
|
2252
|
+
};
|
|
2253
|
+
|
|
2254
|
+
|
|
2255
|
+
/**
|
|
2256
|
+
* optional string name = 1;
|
|
2257
|
+
* @return {string}
|
|
2258
|
+
*/
|
|
2259
|
+
proto.config.CountriesRequest.prototype.getName = function() {
|
|
2260
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2261
|
+
};
|
|
2262
|
+
|
|
2263
|
+
|
|
2264
|
+
/**
|
|
2265
|
+
* @param {string} value
|
|
2266
|
+
* @return {!proto.config.CountriesRequest} returns this
|
|
2267
|
+
*/
|
|
2268
|
+
proto.config.CountriesRequest.prototype.setName = function(value) {
|
|
2269
|
+
return jspb.Message.setField(this, 1, value);
|
|
2270
|
+
};
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
/**
|
|
2274
|
+
* Clears the field making it undefined.
|
|
2275
|
+
* @return {!proto.config.CountriesRequest} returns this
|
|
2276
|
+
*/
|
|
2277
|
+
proto.config.CountriesRequest.prototype.clearName = function() {
|
|
2278
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
2279
|
+
};
|
|
2280
|
+
|
|
2281
|
+
|
|
2282
|
+
/**
|
|
2283
|
+
* Returns whether this field is set.
|
|
2284
|
+
* @return {boolean}
|
|
2285
|
+
*/
|
|
2286
|
+
proto.config.CountriesRequest.prototype.hasName = function() {
|
|
2287
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2288
|
+
};
|
|
2289
|
+
|
|
2290
|
+
|
|
2291
|
+
/**
|
|
2292
|
+
* optional string code = 2;
|
|
2293
|
+
* @return {string}
|
|
2294
|
+
*/
|
|
2295
|
+
proto.config.CountriesRequest.prototype.getCode = function() {
|
|
2296
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2297
|
+
};
|
|
2298
|
+
|
|
2299
|
+
|
|
2300
|
+
/**
|
|
2301
|
+
* @param {string} value
|
|
2302
|
+
* @return {!proto.config.CountriesRequest} returns this
|
|
2303
|
+
*/
|
|
2304
|
+
proto.config.CountriesRequest.prototype.setCode = function(value) {
|
|
2305
|
+
return jspb.Message.setField(this, 2, value);
|
|
2306
|
+
};
|
|
2307
|
+
|
|
2308
|
+
|
|
2309
|
+
/**
|
|
2310
|
+
* Clears the field making it undefined.
|
|
2311
|
+
* @return {!proto.config.CountriesRequest} returns this
|
|
2312
|
+
*/
|
|
2313
|
+
proto.config.CountriesRequest.prototype.clearCode = function() {
|
|
2314
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
2315
|
+
};
|
|
2316
|
+
|
|
2317
|
+
|
|
2318
|
+
/**
|
|
2319
|
+
* Returns whether this field is set.
|
|
2320
|
+
* @return {boolean}
|
|
2321
|
+
*/
|
|
2322
|
+
proto.config.CountriesRequest.prototype.hasCode = function() {
|
|
2323
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2324
|
+
};
|
|
2325
|
+
|
|
2326
|
+
|
|
2327
|
+
|
|
2328
|
+
|
|
2329
|
+
|
|
2039
2330
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2040
2331
|
/**
|
|
2041
2332
|
* Creates an object representation of this proto.
|
|
@@ -5141,6 +5432,262 @@ proto.config.CommonCountriesResponse.prototype.clearCountriesList = function() {
|
|
|
5141
5432
|
|
|
5142
5433
|
|
|
5143
5434
|
|
|
5435
|
+
/**
|
|
5436
|
+
* List of repeated fields within this message type.
|
|
5437
|
+
* @private {!Array<number>}
|
|
5438
|
+
* @const
|
|
5439
|
+
*/
|
|
5440
|
+
proto.config.CountriesResponse.repeatedFields_ = [1];
|
|
5441
|
+
|
|
5442
|
+
|
|
5443
|
+
|
|
5444
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5445
|
+
/**
|
|
5446
|
+
* Creates an object representation of this proto.
|
|
5447
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5448
|
+
* Optional fields that are not set will be set to undefined.
|
|
5449
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5450
|
+
* For the list of reserved names please see:
|
|
5451
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5452
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5453
|
+
* JSPB instance for transitional soy proto support:
|
|
5454
|
+
* http://goto/soy-param-migration
|
|
5455
|
+
* @return {!Object}
|
|
5456
|
+
*/
|
|
5457
|
+
proto.config.CountriesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
5458
|
+
return proto.config.CountriesResponse.toObject(opt_includeInstance, this);
|
|
5459
|
+
};
|
|
5460
|
+
|
|
5461
|
+
|
|
5462
|
+
/**
|
|
5463
|
+
* Static version of the {@see toObject} method.
|
|
5464
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5465
|
+
* the JSPB instance for transitional soy proto support:
|
|
5466
|
+
* http://goto/soy-param-migration
|
|
5467
|
+
* @param {!proto.config.CountriesResponse} msg The msg instance to transform.
|
|
5468
|
+
* @return {!Object}
|
|
5469
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5470
|
+
*/
|
|
5471
|
+
proto.config.CountriesResponse.toObject = function(includeInstance, msg) {
|
|
5472
|
+
var f, obj = {
|
|
5473
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
5474
|
+
proto.config.CountryItem.toObject, includeInstance),
|
|
5475
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
5476
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
5477
|
+
};
|
|
5478
|
+
|
|
5479
|
+
if (includeInstance) {
|
|
5480
|
+
obj.$jspbMessageInstance = msg;
|
|
5481
|
+
}
|
|
5482
|
+
return obj;
|
|
5483
|
+
};
|
|
5484
|
+
}
|
|
5485
|
+
|
|
5486
|
+
|
|
5487
|
+
/**
|
|
5488
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5489
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5490
|
+
* @return {!proto.config.CountriesResponse}
|
|
5491
|
+
*/
|
|
5492
|
+
proto.config.CountriesResponse.deserializeBinary = function(bytes) {
|
|
5493
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5494
|
+
var msg = new proto.config.CountriesResponse;
|
|
5495
|
+
return proto.config.CountriesResponse.deserializeBinaryFromReader(msg, reader);
|
|
5496
|
+
};
|
|
5497
|
+
|
|
5498
|
+
|
|
5499
|
+
/**
|
|
5500
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5501
|
+
* given reader into the given message object.
|
|
5502
|
+
* @param {!proto.config.CountriesResponse} msg The message object to deserialize into.
|
|
5503
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5504
|
+
* @return {!proto.config.CountriesResponse}
|
|
5505
|
+
*/
|
|
5506
|
+
proto.config.CountriesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5507
|
+
while (reader.nextField()) {
|
|
5508
|
+
if (reader.isEndGroup()) {
|
|
5509
|
+
break;
|
|
5510
|
+
}
|
|
5511
|
+
var field = reader.getFieldNumber();
|
|
5512
|
+
switch (field) {
|
|
5513
|
+
case 1:
|
|
5514
|
+
var value = new proto.config.CountryItem;
|
|
5515
|
+
reader.readMessage(value,proto.config.CountryItem.deserializeBinaryFromReader);
|
|
5516
|
+
msg.addItems(value);
|
|
5517
|
+
break;
|
|
5518
|
+
case 2:
|
|
5519
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5520
|
+
msg.setTotalPages(value);
|
|
5521
|
+
break;
|
|
5522
|
+
case 3:
|
|
5523
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5524
|
+
msg.setTotalItems(value);
|
|
5525
|
+
break;
|
|
5526
|
+
default:
|
|
5527
|
+
reader.skipField();
|
|
5528
|
+
break;
|
|
5529
|
+
}
|
|
5530
|
+
}
|
|
5531
|
+
return msg;
|
|
5532
|
+
};
|
|
5533
|
+
|
|
5534
|
+
|
|
5535
|
+
/**
|
|
5536
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5537
|
+
* @return {!Uint8Array}
|
|
5538
|
+
*/
|
|
5539
|
+
proto.config.CountriesResponse.prototype.serializeBinary = function() {
|
|
5540
|
+
var writer = new jspb.BinaryWriter();
|
|
5541
|
+
proto.config.CountriesResponse.serializeBinaryToWriter(this, writer);
|
|
5542
|
+
return writer.getResultBuffer();
|
|
5543
|
+
};
|
|
5544
|
+
|
|
5545
|
+
|
|
5546
|
+
/**
|
|
5547
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5548
|
+
* format), writing to the given BinaryWriter.
|
|
5549
|
+
* @param {!proto.config.CountriesResponse} message
|
|
5550
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5551
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5552
|
+
*/
|
|
5553
|
+
proto.config.CountriesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5554
|
+
var f = undefined;
|
|
5555
|
+
f = message.getItemsList();
|
|
5556
|
+
if (f.length > 0) {
|
|
5557
|
+
writer.writeRepeatedMessage(
|
|
5558
|
+
1,
|
|
5559
|
+
f,
|
|
5560
|
+
proto.config.CountryItem.serializeBinaryToWriter
|
|
5561
|
+
);
|
|
5562
|
+
}
|
|
5563
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
5564
|
+
if (f != null) {
|
|
5565
|
+
writer.writeInt32(
|
|
5566
|
+
2,
|
|
5567
|
+
f
|
|
5568
|
+
);
|
|
5569
|
+
}
|
|
5570
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
5571
|
+
if (f != null) {
|
|
5572
|
+
writer.writeInt32(
|
|
5573
|
+
3,
|
|
5574
|
+
f
|
|
5575
|
+
);
|
|
5576
|
+
}
|
|
5577
|
+
};
|
|
5578
|
+
|
|
5579
|
+
|
|
5580
|
+
/**
|
|
5581
|
+
* repeated CountryItem items = 1;
|
|
5582
|
+
* @return {!Array<!proto.config.CountryItem>}
|
|
5583
|
+
*/
|
|
5584
|
+
proto.config.CountriesResponse.prototype.getItemsList = function() {
|
|
5585
|
+
return /** @type{!Array<!proto.config.CountryItem>} */ (
|
|
5586
|
+
jspb.Message.getRepeatedWrapperField(this, proto.config.CountryItem, 1));
|
|
5587
|
+
};
|
|
5588
|
+
|
|
5589
|
+
|
|
5590
|
+
/**
|
|
5591
|
+
* @param {!Array<!proto.config.CountryItem>} value
|
|
5592
|
+
* @return {!proto.config.CountriesResponse} returns this
|
|
5593
|
+
*/
|
|
5594
|
+
proto.config.CountriesResponse.prototype.setItemsList = function(value) {
|
|
5595
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
5596
|
+
};
|
|
5597
|
+
|
|
5598
|
+
|
|
5599
|
+
/**
|
|
5600
|
+
* @param {!proto.config.CountryItem=} opt_value
|
|
5601
|
+
* @param {number=} opt_index
|
|
5602
|
+
* @return {!proto.config.CountryItem}
|
|
5603
|
+
*/
|
|
5604
|
+
proto.config.CountriesResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
5605
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.config.CountryItem, opt_index);
|
|
5606
|
+
};
|
|
5607
|
+
|
|
5608
|
+
|
|
5609
|
+
/**
|
|
5610
|
+
* Clears the list making it empty but non-null.
|
|
5611
|
+
* @return {!proto.config.CountriesResponse} returns this
|
|
5612
|
+
*/
|
|
5613
|
+
proto.config.CountriesResponse.prototype.clearItemsList = function() {
|
|
5614
|
+
return this.setItemsList([]);
|
|
5615
|
+
};
|
|
5616
|
+
|
|
5617
|
+
|
|
5618
|
+
/**
|
|
5619
|
+
* optional int32 total_pages = 2;
|
|
5620
|
+
* @return {number}
|
|
5621
|
+
*/
|
|
5622
|
+
proto.config.CountriesResponse.prototype.getTotalPages = function() {
|
|
5623
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
5624
|
+
};
|
|
5625
|
+
|
|
5626
|
+
|
|
5627
|
+
/**
|
|
5628
|
+
* @param {number} value
|
|
5629
|
+
* @return {!proto.config.CountriesResponse} returns this
|
|
5630
|
+
*/
|
|
5631
|
+
proto.config.CountriesResponse.prototype.setTotalPages = function(value) {
|
|
5632
|
+
return jspb.Message.setField(this, 2, value);
|
|
5633
|
+
};
|
|
5634
|
+
|
|
5635
|
+
|
|
5636
|
+
/**
|
|
5637
|
+
* Clears the field making it undefined.
|
|
5638
|
+
* @return {!proto.config.CountriesResponse} returns this
|
|
5639
|
+
*/
|
|
5640
|
+
proto.config.CountriesResponse.prototype.clearTotalPages = function() {
|
|
5641
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
5642
|
+
};
|
|
5643
|
+
|
|
5644
|
+
|
|
5645
|
+
/**
|
|
5646
|
+
* Returns whether this field is set.
|
|
5647
|
+
* @return {boolean}
|
|
5648
|
+
*/
|
|
5649
|
+
proto.config.CountriesResponse.prototype.hasTotalPages = function() {
|
|
5650
|
+
return jspb.Message.getField(this, 2) != null;
|
|
5651
|
+
};
|
|
5652
|
+
|
|
5653
|
+
|
|
5654
|
+
/**
|
|
5655
|
+
* optional int32 total_items = 3;
|
|
5656
|
+
* @return {number}
|
|
5657
|
+
*/
|
|
5658
|
+
proto.config.CountriesResponse.prototype.getTotalItems = function() {
|
|
5659
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
5660
|
+
};
|
|
5661
|
+
|
|
5662
|
+
|
|
5663
|
+
/**
|
|
5664
|
+
* @param {number} value
|
|
5665
|
+
* @return {!proto.config.CountriesResponse} returns this
|
|
5666
|
+
*/
|
|
5667
|
+
proto.config.CountriesResponse.prototype.setTotalItems = function(value) {
|
|
5668
|
+
return jspb.Message.setField(this, 3, value);
|
|
5669
|
+
};
|
|
5670
|
+
|
|
5671
|
+
|
|
5672
|
+
/**
|
|
5673
|
+
* Clears the field making it undefined.
|
|
5674
|
+
* @return {!proto.config.CountriesResponse} returns this
|
|
5675
|
+
*/
|
|
5676
|
+
proto.config.CountriesResponse.prototype.clearTotalItems = function() {
|
|
5677
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
5678
|
+
};
|
|
5679
|
+
|
|
5680
|
+
|
|
5681
|
+
/**
|
|
5682
|
+
* Returns whether this field is set.
|
|
5683
|
+
* @return {boolean}
|
|
5684
|
+
*/
|
|
5685
|
+
proto.config.CountriesResponse.prototype.hasTotalItems = function() {
|
|
5686
|
+
return jspb.Message.getField(this, 3) != null;
|
|
5687
|
+
};
|
|
5688
|
+
|
|
5689
|
+
|
|
5690
|
+
|
|
5144
5691
|
|
|
5145
5692
|
|
|
5146
5693
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|