protobuf-platform 1.2.100 → 1.2.102
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 +14 -1
- package/config/config_grpc_pb.js +45 -1
- package/config/config_pb.js +604 -1
- package/package.json +1 -1
package/config/config.proto
CHANGED
|
@@ -16,8 +16,10 @@ service Config {
|
|
|
16
16
|
rpc getCurrencyRate(CurrencyRateRequest) returns (CurrencyRateResponse);
|
|
17
17
|
//OpenAI
|
|
18
18
|
rpc generateText(PromptRequest) returns (GeneratedTextResponse);
|
|
19
|
-
//
|
|
19
|
+
//Countries data
|
|
20
20
|
rpc getCountries(CommonCountriesRequest) returns (CommonCountriesResponse);
|
|
21
|
+
rpc getMirrorsCountries(PaginationRequest) returns (MirrorCountriesResponse);
|
|
22
|
+
rpc updateMirrorsCountries(MirrorCountriesRequest) returns (MirrorStatusResponse);
|
|
21
23
|
//File Uploads: R2
|
|
22
24
|
rpc uploadR2File(R2FileRequest) returns (R2FileResponse);
|
|
23
25
|
rpc getR2FilesList(R2FileListRequest) returns (R2FileListResponse);
|
|
@@ -42,6 +44,7 @@ message PaginationRequest {
|
|
|
42
44
|
int32 offset = 2;
|
|
43
45
|
optional string order = 3;
|
|
44
46
|
optional MirrorSearchRequest mirror_search_params = 4;
|
|
47
|
+
optional MirrorCountriesRequest mirror_country_params = 5;
|
|
45
48
|
}
|
|
46
49
|
message MirrorSearchRequest {
|
|
47
50
|
optional string title = 1;
|
|
@@ -51,6 +54,11 @@ message MirrorSearchRequest {
|
|
|
51
54
|
repeated string status = 5;
|
|
52
55
|
repeated string priority = 6;
|
|
53
56
|
}
|
|
57
|
+
message MirrorCountriesRequest {
|
|
58
|
+
optional string environment = 1;
|
|
59
|
+
optional string type = 2;
|
|
60
|
+
repeated string countries = 3;
|
|
61
|
+
}
|
|
54
62
|
//Service settings
|
|
55
63
|
message SettingsRequest {
|
|
56
64
|
string environment = 1;
|
|
@@ -208,4 +216,9 @@ message ModifyMirrorRequest {
|
|
|
208
216
|
}
|
|
209
217
|
message ActivatedMirrorsResponse {
|
|
210
218
|
repeated string domains = 1;
|
|
219
|
+
}
|
|
220
|
+
message MirrorCountriesResponse {
|
|
221
|
+
repeated CountryItem items = 1;
|
|
222
|
+
optional int32 total_pages = 2;
|
|
223
|
+
optional int32 total_items = 3;
|
|
211
224
|
}
|
package/config/config_grpc_pb.js
CHANGED
|
@@ -147,6 +147,28 @@ function deserialize_config_GlobalDataRequest(buffer_arg) {
|
|
|
147
147
|
return config_pb.GlobalDataRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
function serialize_config_MirrorCountriesRequest(arg) {
|
|
151
|
+
if (!(arg instanceof config_pb.MirrorCountriesRequest)) {
|
|
152
|
+
throw new Error('Expected argument of type config.MirrorCountriesRequest');
|
|
153
|
+
}
|
|
154
|
+
return Buffer.from(arg.serializeBinary());
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function deserialize_config_MirrorCountriesRequest(buffer_arg) {
|
|
158
|
+
return config_pb.MirrorCountriesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function serialize_config_MirrorCountriesResponse(arg) {
|
|
162
|
+
if (!(arg instanceof config_pb.MirrorCountriesResponse)) {
|
|
163
|
+
throw new Error('Expected argument of type config.MirrorCountriesResponse');
|
|
164
|
+
}
|
|
165
|
+
return Buffer.from(arg.serializeBinary());
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function deserialize_config_MirrorCountriesResponse(buffer_arg) {
|
|
169
|
+
return config_pb.MirrorCountriesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
170
|
+
}
|
|
171
|
+
|
|
150
172
|
function serialize_config_MirrorItemsResponse(arg) {
|
|
151
173
|
if (!(arg instanceof config_pb.MirrorItemsResponse)) {
|
|
152
174
|
throw new Error('Expected argument of type config.MirrorItemsResponse');
|
|
@@ -429,7 +451,7 @@ generateText: {
|
|
|
429
451
|
responseSerialize: serialize_config_GeneratedTextResponse,
|
|
430
452
|
responseDeserialize: deserialize_config_GeneratedTextResponse,
|
|
431
453
|
},
|
|
432
|
-
//
|
|
454
|
+
// Countries data
|
|
433
455
|
getCountries: {
|
|
434
456
|
path: '/config.Config/getCountries',
|
|
435
457
|
requestStream: false,
|
|
@@ -441,6 +463,28 @@ getCountries: {
|
|
|
441
463
|
responseSerialize: serialize_config_CommonCountriesResponse,
|
|
442
464
|
responseDeserialize: deserialize_config_CommonCountriesResponse,
|
|
443
465
|
},
|
|
466
|
+
getMirrorsCountries: {
|
|
467
|
+
path: '/config.Config/getMirrorsCountries',
|
|
468
|
+
requestStream: false,
|
|
469
|
+
responseStream: false,
|
|
470
|
+
requestType: config_pb.PaginationRequest,
|
|
471
|
+
responseType: config_pb.MirrorCountriesResponse,
|
|
472
|
+
requestSerialize: serialize_config_PaginationRequest,
|
|
473
|
+
requestDeserialize: deserialize_config_PaginationRequest,
|
|
474
|
+
responseSerialize: serialize_config_MirrorCountriesResponse,
|
|
475
|
+
responseDeserialize: deserialize_config_MirrorCountriesResponse,
|
|
476
|
+
},
|
|
477
|
+
updateMirrorsCountries: {
|
|
478
|
+
path: '/config.Config/updateMirrorsCountries',
|
|
479
|
+
requestStream: false,
|
|
480
|
+
responseStream: false,
|
|
481
|
+
requestType: config_pb.MirrorCountriesRequest,
|
|
482
|
+
responseType: config_pb.MirrorStatusResponse,
|
|
483
|
+
requestSerialize: serialize_config_MirrorCountriesRequest,
|
|
484
|
+
requestDeserialize: deserialize_config_MirrorCountriesRequest,
|
|
485
|
+
responseSerialize: serialize_config_MirrorStatusResponse,
|
|
486
|
+
responseDeserialize: deserialize_config_MirrorStatusResponse,
|
|
487
|
+
},
|
|
444
488
|
// File Uploads: R2
|
|
445
489
|
uploadR2File: {
|
|
446
490
|
path: '/config.Config/uploadR2File',
|
package/config/config_pb.js
CHANGED
|
@@ -35,6 +35,8 @@ goog.exportSymbol('proto.config.ErrorStatusResponse', null, global);
|
|
|
35
35
|
goog.exportSymbol('proto.config.GeneratedTextResponse', null, global);
|
|
36
36
|
goog.exportSymbol('proto.config.GetZoneRequest', null, global);
|
|
37
37
|
goog.exportSymbol('proto.config.GlobalDataRequest', null, global);
|
|
38
|
+
goog.exportSymbol('proto.config.MirrorCountriesRequest', null, global);
|
|
39
|
+
goog.exportSymbol('proto.config.MirrorCountriesResponse', null, global);
|
|
38
40
|
goog.exportSymbol('proto.config.MirrorItem', null, global);
|
|
39
41
|
goog.exportSymbol('proto.config.MirrorItemsResponse', null, global);
|
|
40
42
|
goog.exportSymbol('proto.config.MirrorResponse', null, global);
|
|
@@ -139,6 +141,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
139
141
|
*/
|
|
140
142
|
proto.config.MirrorSearchRequest.displayName = 'proto.config.MirrorSearchRequest';
|
|
141
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* Generated by JsPbCodeGenerator.
|
|
146
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
147
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
148
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
149
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
150
|
+
* valid.
|
|
151
|
+
* @extends {jspb.Message}
|
|
152
|
+
* @constructor
|
|
153
|
+
*/
|
|
154
|
+
proto.config.MirrorCountriesRequest = function(opt_data) {
|
|
155
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.config.MirrorCountriesRequest.repeatedFields_, null);
|
|
156
|
+
};
|
|
157
|
+
goog.inherits(proto.config.MirrorCountriesRequest, jspb.Message);
|
|
158
|
+
if (goog.DEBUG && !COMPILED) {
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
* @override
|
|
162
|
+
*/
|
|
163
|
+
proto.config.MirrorCountriesRequest.displayName = 'proto.config.MirrorCountriesRequest';
|
|
164
|
+
}
|
|
142
165
|
/**
|
|
143
166
|
* Generated by JsPbCodeGenerator.
|
|
144
167
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -769,6 +792,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
769
792
|
*/
|
|
770
793
|
proto.config.ActivatedMirrorsResponse.displayName = 'proto.config.ActivatedMirrorsResponse';
|
|
771
794
|
}
|
|
795
|
+
/**
|
|
796
|
+
* Generated by JsPbCodeGenerator.
|
|
797
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
798
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
799
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
800
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
801
|
+
* valid.
|
|
802
|
+
* @extends {jspb.Message}
|
|
803
|
+
* @constructor
|
|
804
|
+
*/
|
|
805
|
+
proto.config.MirrorCountriesResponse = function(opt_data) {
|
|
806
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.config.MirrorCountriesResponse.repeatedFields_, null);
|
|
807
|
+
};
|
|
808
|
+
goog.inherits(proto.config.MirrorCountriesResponse, jspb.Message);
|
|
809
|
+
if (goog.DEBUG && !COMPILED) {
|
|
810
|
+
/**
|
|
811
|
+
* @public
|
|
812
|
+
* @override
|
|
813
|
+
*/
|
|
814
|
+
proto.config.MirrorCountriesResponse.displayName = 'proto.config.MirrorCountriesResponse';
|
|
815
|
+
}
|
|
772
816
|
|
|
773
817
|
|
|
774
818
|
|
|
@@ -1064,7 +1108,8 @@ proto.config.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
|
1064
1108
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1065
1109
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1066
1110
|
order: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1067
|
-
mirrorSearchParams: (f = msg.getMirrorSearchParams()) && proto.config.MirrorSearchRequest.toObject(includeInstance, f)
|
|
1111
|
+
mirrorSearchParams: (f = msg.getMirrorSearchParams()) && proto.config.MirrorSearchRequest.toObject(includeInstance, f),
|
|
1112
|
+
mirrorCountryParams: (f = msg.getMirrorCountryParams()) && proto.config.MirrorCountriesRequest.toObject(includeInstance, f)
|
|
1068
1113
|
};
|
|
1069
1114
|
|
|
1070
1115
|
if (includeInstance) {
|
|
@@ -1118,6 +1163,11 @@ proto.config.PaginationRequest.deserializeBinaryFromReader = function(msg, reade
|
|
|
1118
1163
|
reader.readMessage(value,proto.config.MirrorSearchRequest.deserializeBinaryFromReader);
|
|
1119
1164
|
msg.setMirrorSearchParams(value);
|
|
1120
1165
|
break;
|
|
1166
|
+
case 5:
|
|
1167
|
+
var value = new proto.config.MirrorCountriesRequest;
|
|
1168
|
+
reader.readMessage(value,proto.config.MirrorCountriesRequest.deserializeBinaryFromReader);
|
|
1169
|
+
msg.setMirrorCountryParams(value);
|
|
1170
|
+
break;
|
|
1121
1171
|
default:
|
|
1122
1172
|
reader.skipField();
|
|
1123
1173
|
break;
|
|
@@ -1176,6 +1226,14 @@ proto.config.PaginationRequest.serializeBinaryToWriter = function(message, write
|
|
|
1176
1226
|
proto.config.MirrorSearchRequest.serializeBinaryToWriter
|
|
1177
1227
|
);
|
|
1178
1228
|
}
|
|
1229
|
+
f = message.getMirrorCountryParams();
|
|
1230
|
+
if (f != null) {
|
|
1231
|
+
writer.writeMessage(
|
|
1232
|
+
5,
|
|
1233
|
+
f,
|
|
1234
|
+
proto.config.MirrorCountriesRequest.serializeBinaryToWriter
|
|
1235
|
+
);
|
|
1236
|
+
}
|
|
1179
1237
|
};
|
|
1180
1238
|
|
|
1181
1239
|
|
|
@@ -1288,6 +1346,43 @@ proto.config.PaginationRequest.prototype.hasMirrorSearchParams = function() {
|
|
|
1288
1346
|
};
|
|
1289
1347
|
|
|
1290
1348
|
|
|
1349
|
+
/**
|
|
1350
|
+
* optional MirrorCountriesRequest mirror_country_params = 5;
|
|
1351
|
+
* @return {?proto.config.MirrorCountriesRequest}
|
|
1352
|
+
*/
|
|
1353
|
+
proto.config.PaginationRequest.prototype.getMirrorCountryParams = function() {
|
|
1354
|
+
return /** @type{?proto.config.MirrorCountriesRequest} */ (
|
|
1355
|
+
jspb.Message.getWrapperField(this, proto.config.MirrorCountriesRequest, 5));
|
|
1356
|
+
};
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* @param {?proto.config.MirrorCountriesRequest|undefined} value
|
|
1361
|
+
* @return {!proto.config.PaginationRequest} returns this
|
|
1362
|
+
*/
|
|
1363
|
+
proto.config.PaginationRequest.prototype.setMirrorCountryParams = function(value) {
|
|
1364
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
1365
|
+
};
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* Clears the message field making it undefined.
|
|
1370
|
+
* @return {!proto.config.PaginationRequest} returns this
|
|
1371
|
+
*/
|
|
1372
|
+
proto.config.PaginationRequest.prototype.clearMirrorCountryParams = function() {
|
|
1373
|
+
return this.setMirrorCountryParams(undefined);
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* Returns whether this field is set.
|
|
1379
|
+
* @return {boolean}
|
|
1380
|
+
*/
|
|
1381
|
+
proto.config.PaginationRequest.prototype.hasMirrorCountryParams = function() {
|
|
1382
|
+
return jspb.Message.getField(this, 5) != null;
|
|
1383
|
+
};
|
|
1384
|
+
|
|
1385
|
+
|
|
1291
1386
|
|
|
1292
1387
|
/**
|
|
1293
1388
|
* List of repeated fields within this message type.
|
|
@@ -1687,6 +1782,258 @@ proto.config.MirrorSearchRequest.prototype.clearPriorityList = function() {
|
|
|
1687
1782
|
|
|
1688
1783
|
|
|
1689
1784
|
|
|
1785
|
+
/**
|
|
1786
|
+
* List of repeated fields within this message type.
|
|
1787
|
+
* @private {!Array<number>}
|
|
1788
|
+
* @const
|
|
1789
|
+
*/
|
|
1790
|
+
proto.config.MirrorCountriesRequest.repeatedFields_ = [3];
|
|
1791
|
+
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1795
|
+
/**
|
|
1796
|
+
* Creates an object representation of this proto.
|
|
1797
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1798
|
+
* Optional fields that are not set will be set to undefined.
|
|
1799
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1800
|
+
* For the list of reserved names please see:
|
|
1801
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1802
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1803
|
+
* JSPB instance for transitional soy proto support:
|
|
1804
|
+
* http://goto/soy-param-migration
|
|
1805
|
+
* @return {!Object}
|
|
1806
|
+
*/
|
|
1807
|
+
proto.config.MirrorCountriesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1808
|
+
return proto.config.MirrorCountriesRequest.toObject(opt_includeInstance, this);
|
|
1809
|
+
};
|
|
1810
|
+
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* Static version of the {@see toObject} method.
|
|
1814
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1815
|
+
* the JSPB instance for transitional soy proto support:
|
|
1816
|
+
* http://goto/soy-param-migration
|
|
1817
|
+
* @param {!proto.config.MirrorCountriesRequest} msg The msg instance to transform.
|
|
1818
|
+
* @return {!Object}
|
|
1819
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1820
|
+
*/
|
|
1821
|
+
proto.config.MirrorCountriesRequest.toObject = function(includeInstance, msg) {
|
|
1822
|
+
var f, obj = {
|
|
1823
|
+
environment: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1824
|
+
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1825
|
+
countriesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1828
|
+
if (includeInstance) {
|
|
1829
|
+
obj.$jspbMessageInstance = msg;
|
|
1830
|
+
}
|
|
1831
|
+
return obj;
|
|
1832
|
+
};
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1838
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1839
|
+
* @return {!proto.config.MirrorCountriesRequest}
|
|
1840
|
+
*/
|
|
1841
|
+
proto.config.MirrorCountriesRequest.deserializeBinary = function(bytes) {
|
|
1842
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1843
|
+
var msg = new proto.config.MirrorCountriesRequest;
|
|
1844
|
+
return proto.config.MirrorCountriesRequest.deserializeBinaryFromReader(msg, reader);
|
|
1845
|
+
};
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1850
|
+
* given reader into the given message object.
|
|
1851
|
+
* @param {!proto.config.MirrorCountriesRequest} msg The message object to deserialize into.
|
|
1852
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1853
|
+
* @return {!proto.config.MirrorCountriesRequest}
|
|
1854
|
+
*/
|
|
1855
|
+
proto.config.MirrorCountriesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1856
|
+
while (reader.nextField()) {
|
|
1857
|
+
if (reader.isEndGroup()) {
|
|
1858
|
+
break;
|
|
1859
|
+
}
|
|
1860
|
+
var field = reader.getFieldNumber();
|
|
1861
|
+
switch (field) {
|
|
1862
|
+
case 1:
|
|
1863
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1864
|
+
msg.setEnvironment(value);
|
|
1865
|
+
break;
|
|
1866
|
+
case 2:
|
|
1867
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1868
|
+
msg.setType(value);
|
|
1869
|
+
break;
|
|
1870
|
+
case 3:
|
|
1871
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1872
|
+
msg.addCountries(value);
|
|
1873
|
+
break;
|
|
1874
|
+
default:
|
|
1875
|
+
reader.skipField();
|
|
1876
|
+
break;
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
return msg;
|
|
1880
|
+
};
|
|
1881
|
+
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1885
|
+
* @return {!Uint8Array}
|
|
1886
|
+
*/
|
|
1887
|
+
proto.config.MirrorCountriesRequest.prototype.serializeBinary = function() {
|
|
1888
|
+
var writer = new jspb.BinaryWriter();
|
|
1889
|
+
proto.config.MirrorCountriesRequest.serializeBinaryToWriter(this, writer);
|
|
1890
|
+
return writer.getResultBuffer();
|
|
1891
|
+
};
|
|
1892
|
+
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1896
|
+
* format), writing to the given BinaryWriter.
|
|
1897
|
+
* @param {!proto.config.MirrorCountriesRequest} message
|
|
1898
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1899
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1900
|
+
*/
|
|
1901
|
+
proto.config.MirrorCountriesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1902
|
+
var f = undefined;
|
|
1903
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
1904
|
+
if (f != null) {
|
|
1905
|
+
writer.writeString(
|
|
1906
|
+
1,
|
|
1907
|
+
f
|
|
1908
|
+
);
|
|
1909
|
+
}
|
|
1910
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
1911
|
+
if (f != null) {
|
|
1912
|
+
writer.writeString(
|
|
1913
|
+
2,
|
|
1914
|
+
f
|
|
1915
|
+
);
|
|
1916
|
+
}
|
|
1917
|
+
f = message.getCountriesList();
|
|
1918
|
+
if (f.length > 0) {
|
|
1919
|
+
writer.writeRepeatedString(
|
|
1920
|
+
3,
|
|
1921
|
+
f
|
|
1922
|
+
);
|
|
1923
|
+
}
|
|
1924
|
+
};
|
|
1925
|
+
|
|
1926
|
+
|
|
1927
|
+
/**
|
|
1928
|
+
* optional string environment = 1;
|
|
1929
|
+
* @return {string}
|
|
1930
|
+
*/
|
|
1931
|
+
proto.config.MirrorCountriesRequest.prototype.getEnvironment = function() {
|
|
1932
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1933
|
+
};
|
|
1934
|
+
|
|
1935
|
+
|
|
1936
|
+
/**
|
|
1937
|
+
* @param {string} value
|
|
1938
|
+
* @return {!proto.config.MirrorCountriesRequest} returns this
|
|
1939
|
+
*/
|
|
1940
|
+
proto.config.MirrorCountriesRequest.prototype.setEnvironment = function(value) {
|
|
1941
|
+
return jspb.Message.setField(this, 1, value);
|
|
1942
|
+
};
|
|
1943
|
+
|
|
1944
|
+
|
|
1945
|
+
/**
|
|
1946
|
+
* Clears the field making it undefined.
|
|
1947
|
+
* @return {!proto.config.MirrorCountriesRequest} returns this
|
|
1948
|
+
*/
|
|
1949
|
+
proto.config.MirrorCountriesRequest.prototype.clearEnvironment = function() {
|
|
1950
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
1951
|
+
};
|
|
1952
|
+
|
|
1953
|
+
|
|
1954
|
+
/**
|
|
1955
|
+
* Returns whether this field is set.
|
|
1956
|
+
* @return {boolean}
|
|
1957
|
+
*/
|
|
1958
|
+
proto.config.MirrorCountriesRequest.prototype.hasEnvironment = function() {
|
|
1959
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1960
|
+
};
|
|
1961
|
+
|
|
1962
|
+
|
|
1963
|
+
/**
|
|
1964
|
+
* optional string type = 2;
|
|
1965
|
+
* @return {string}
|
|
1966
|
+
*/
|
|
1967
|
+
proto.config.MirrorCountriesRequest.prototype.getType = function() {
|
|
1968
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1969
|
+
};
|
|
1970
|
+
|
|
1971
|
+
|
|
1972
|
+
/**
|
|
1973
|
+
* @param {string} value
|
|
1974
|
+
* @return {!proto.config.MirrorCountriesRequest} returns this
|
|
1975
|
+
*/
|
|
1976
|
+
proto.config.MirrorCountriesRequest.prototype.setType = function(value) {
|
|
1977
|
+
return jspb.Message.setField(this, 2, value);
|
|
1978
|
+
};
|
|
1979
|
+
|
|
1980
|
+
|
|
1981
|
+
/**
|
|
1982
|
+
* Clears the field making it undefined.
|
|
1983
|
+
* @return {!proto.config.MirrorCountriesRequest} returns this
|
|
1984
|
+
*/
|
|
1985
|
+
proto.config.MirrorCountriesRequest.prototype.clearType = function() {
|
|
1986
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
1987
|
+
};
|
|
1988
|
+
|
|
1989
|
+
|
|
1990
|
+
/**
|
|
1991
|
+
* Returns whether this field is set.
|
|
1992
|
+
* @return {boolean}
|
|
1993
|
+
*/
|
|
1994
|
+
proto.config.MirrorCountriesRequest.prototype.hasType = function() {
|
|
1995
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1996
|
+
};
|
|
1997
|
+
|
|
1998
|
+
|
|
1999
|
+
/**
|
|
2000
|
+
* repeated string countries = 3;
|
|
2001
|
+
* @return {!Array<string>}
|
|
2002
|
+
*/
|
|
2003
|
+
proto.config.MirrorCountriesRequest.prototype.getCountriesList = function() {
|
|
2004
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
2005
|
+
};
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
/**
|
|
2009
|
+
* @param {!Array<string>} value
|
|
2010
|
+
* @return {!proto.config.MirrorCountriesRequest} returns this
|
|
2011
|
+
*/
|
|
2012
|
+
proto.config.MirrorCountriesRequest.prototype.setCountriesList = function(value) {
|
|
2013
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
2014
|
+
};
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
/**
|
|
2018
|
+
* @param {string} value
|
|
2019
|
+
* @param {number=} opt_index
|
|
2020
|
+
* @return {!proto.config.MirrorCountriesRequest} returns this
|
|
2021
|
+
*/
|
|
2022
|
+
proto.config.MirrorCountriesRequest.prototype.addCountries = function(value, opt_index) {
|
|
2023
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
2024
|
+
};
|
|
2025
|
+
|
|
2026
|
+
|
|
2027
|
+
/**
|
|
2028
|
+
* Clears the list making it empty but non-null.
|
|
2029
|
+
* @return {!proto.config.MirrorCountriesRequest} returns this
|
|
2030
|
+
*/
|
|
2031
|
+
proto.config.MirrorCountriesRequest.prototype.clearCountriesList = function() {
|
|
2032
|
+
return this.setCountriesList([]);
|
|
2033
|
+
};
|
|
2034
|
+
|
|
2035
|
+
|
|
2036
|
+
|
|
1690
2037
|
|
|
1691
2038
|
|
|
1692
2039
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -8459,4 +8806,260 @@ proto.config.ActivatedMirrorsResponse.prototype.clearDomainsList = function() {
|
|
|
8459
8806
|
};
|
|
8460
8807
|
|
|
8461
8808
|
|
|
8809
|
+
|
|
8810
|
+
/**
|
|
8811
|
+
* List of repeated fields within this message type.
|
|
8812
|
+
* @private {!Array<number>}
|
|
8813
|
+
* @const
|
|
8814
|
+
*/
|
|
8815
|
+
proto.config.MirrorCountriesResponse.repeatedFields_ = [1];
|
|
8816
|
+
|
|
8817
|
+
|
|
8818
|
+
|
|
8819
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8820
|
+
/**
|
|
8821
|
+
* Creates an object representation of this proto.
|
|
8822
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8823
|
+
* Optional fields that are not set will be set to undefined.
|
|
8824
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8825
|
+
* For the list of reserved names please see:
|
|
8826
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8827
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8828
|
+
* JSPB instance for transitional soy proto support:
|
|
8829
|
+
* http://goto/soy-param-migration
|
|
8830
|
+
* @return {!Object}
|
|
8831
|
+
*/
|
|
8832
|
+
proto.config.MirrorCountriesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
8833
|
+
return proto.config.MirrorCountriesResponse.toObject(opt_includeInstance, this);
|
|
8834
|
+
};
|
|
8835
|
+
|
|
8836
|
+
|
|
8837
|
+
/**
|
|
8838
|
+
* Static version of the {@see toObject} method.
|
|
8839
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8840
|
+
* the JSPB instance for transitional soy proto support:
|
|
8841
|
+
* http://goto/soy-param-migration
|
|
8842
|
+
* @param {!proto.config.MirrorCountriesResponse} msg The msg instance to transform.
|
|
8843
|
+
* @return {!Object}
|
|
8844
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8845
|
+
*/
|
|
8846
|
+
proto.config.MirrorCountriesResponse.toObject = function(includeInstance, msg) {
|
|
8847
|
+
var f, obj = {
|
|
8848
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
8849
|
+
proto.config.CountryItem.toObject, includeInstance),
|
|
8850
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
8851
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
8852
|
+
};
|
|
8853
|
+
|
|
8854
|
+
if (includeInstance) {
|
|
8855
|
+
obj.$jspbMessageInstance = msg;
|
|
8856
|
+
}
|
|
8857
|
+
return obj;
|
|
8858
|
+
};
|
|
8859
|
+
}
|
|
8860
|
+
|
|
8861
|
+
|
|
8862
|
+
/**
|
|
8863
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8864
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8865
|
+
* @return {!proto.config.MirrorCountriesResponse}
|
|
8866
|
+
*/
|
|
8867
|
+
proto.config.MirrorCountriesResponse.deserializeBinary = function(bytes) {
|
|
8868
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8869
|
+
var msg = new proto.config.MirrorCountriesResponse;
|
|
8870
|
+
return proto.config.MirrorCountriesResponse.deserializeBinaryFromReader(msg, reader);
|
|
8871
|
+
};
|
|
8872
|
+
|
|
8873
|
+
|
|
8874
|
+
/**
|
|
8875
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8876
|
+
* given reader into the given message object.
|
|
8877
|
+
* @param {!proto.config.MirrorCountriesResponse} msg The message object to deserialize into.
|
|
8878
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8879
|
+
* @return {!proto.config.MirrorCountriesResponse}
|
|
8880
|
+
*/
|
|
8881
|
+
proto.config.MirrorCountriesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
8882
|
+
while (reader.nextField()) {
|
|
8883
|
+
if (reader.isEndGroup()) {
|
|
8884
|
+
break;
|
|
8885
|
+
}
|
|
8886
|
+
var field = reader.getFieldNumber();
|
|
8887
|
+
switch (field) {
|
|
8888
|
+
case 1:
|
|
8889
|
+
var value = new proto.config.CountryItem;
|
|
8890
|
+
reader.readMessage(value,proto.config.CountryItem.deserializeBinaryFromReader);
|
|
8891
|
+
msg.addItems(value);
|
|
8892
|
+
break;
|
|
8893
|
+
case 2:
|
|
8894
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
8895
|
+
msg.setTotalPages(value);
|
|
8896
|
+
break;
|
|
8897
|
+
case 3:
|
|
8898
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
8899
|
+
msg.setTotalItems(value);
|
|
8900
|
+
break;
|
|
8901
|
+
default:
|
|
8902
|
+
reader.skipField();
|
|
8903
|
+
break;
|
|
8904
|
+
}
|
|
8905
|
+
}
|
|
8906
|
+
return msg;
|
|
8907
|
+
};
|
|
8908
|
+
|
|
8909
|
+
|
|
8910
|
+
/**
|
|
8911
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8912
|
+
* @return {!Uint8Array}
|
|
8913
|
+
*/
|
|
8914
|
+
proto.config.MirrorCountriesResponse.prototype.serializeBinary = function() {
|
|
8915
|
+
var writer = new jspb.BinaryWriter();
|
|
8916
|
+
proto.config.MirrorCountriesResponse.serializeBinaryToWriter(this, writer);
|
|
8917
|
+
return writer.getResultBuffer();
|
|
8918
|
+
};
|
|
8919
|
+
|
|
8920
|
+
|
|
8921
|
+
/**
|
|
8922
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8923
|
+
* format), writing to the given BinaryWriter.
|
|
8924
|
+
* @param {!proto.config.MirrorCountriesResponse} message
|
|
8925
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8926
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8927
|
+
*/
|
|
8928
|
+
proto.config.MirrorCountriesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
8929
|
+
var f = undefined;
|
|
8930
|
+
f = message.getItemsList();
|
|
8931
|
+
if (f.length > 0) {
|
|
8932
|
+
writer.writeRepeatedMessage(
|
|
8933
|
+
1,
|
|
8934
|
+
f,
|
|
8935
|
+
proto.config.CountryItem.serializeBinaryToWriter
|
|
8936
|
+
);
|
|
8937
|
+
}
|
|
8938
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
8939
|
+
if (f != null) {
|
|
8940
|
+
writer.writeInt32(
|
|
8941
|
+
2,
|
|
8942
|
+
f
|
|
8943
|
+
);
|
|
8944
|
+
}
|
|
8945
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
8946
|
+
if (f != null) {
|
|
8947
|
+
writer.writeInt32(
|
|
8948
|
+
3,
|
|
8949
|
+
f
|
|
8950
|
+
);
|
|
8951
|
+
}
|
|
8952
|
+
};
|
|
8953
|
+
|
|
8954
|
+
|
|
8955
|
+
/**
|
|
8956
|
+
* repeated CountryItem items = 1;
|
|
8957
|
+
* @return {!Array<!proto.config.CountryItem>}
|
|
8958
|
+
*/
|
|
8959
|
+
proto.config.MirrorCountriesResponse.prototype.getItemsList = function() {
|
|
8960
|
+
return /** @type{!Array<!proto.config.CountryItem>} */ (
|
|
8961
|
+
jspb.Message.getRepeatedWrapperField(this, proto.config.CountryItem, 1));
|
|
8962
|
+
};
|
|
8963
|
+
|
|
8964
|
+
|
|
8965
|
+
/**
|
|
8966
|
+
* @param {!Array<!proto.config.CountryItem>} value
|
|
8967
|
+
* @return {!proto.config.MirrorCountriesResponse} returns this
|
|
8968
|
+
*/
|
|
8969
|
+
proto.config.MirrorCountriesResponse.prototype.setItemsList = function(value) {
|
|
8970
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
8971
|
+
};
|
|
8972
|
+
|
|
8973
|
+
|
|
8974
|
+
/**
|
|
8975
|
+
* @param {!proto.config.CountryItem=} opt_value
|
|
8976
|
+
* @param {number=} opt_index
|
|
8977
|
+
* @return {!proto.config.CountryItem}
|
|
8978
|
+
*/
|
|
8979
|
+
proto.config.MirrorCountriesResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
8980
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.config.CountryItem, opt_index);
|
|
8981
|
+
};
|
|
8982
|
+
|
|
8983
|
+
|
|
8984
|
+
/**
|
|
8985
|
+
* Clears the list making it empty but non-null.
|
|
8986
|
+
* @return {!proto.config.MirrorCountriesResponse} returns this
|
|
8987
|
+
*/
|
|
8988
|
+
proto.config.MirrorCountriesResponse.prototype.clearItemsList = function() {
|
|
8989
|
+
return this.setItemsList([]);
|
|
8990
|
+
};
|
|
8991
|
+
|
|
8992
|
+
|
|
8993
|
+
/**
|
|
8994
|
+
* optional int32 total_pages = 2;
|
|
8995
|
+
* @return {number}
|
|
8996
|
+
*/
|
|
8997
|
+
proto.config.MirrorCountriesResponse.prototype.getTotalPages = function() {
|
|
8998
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
8999
|
+
};
|
|
9000
|
+
|
|
9001
|
+
|
|
9002
|
+
/**
|
|
9003
|
+
* @param {number} value
|
|
9004
|
+
* @return {!proto.config.MirrorCountriesResponse} returns this
|
|
9005
|
+
*/
|
|
9006
|
+
proto.config.MirrorCountriesResponse.prototype.setTotalPages = function(value) {
|
|
9007
|
+
return jspb.Message.setField(this, 2, value);
|
|
9008
|
+
};
|
|
9009
|
+
|
|
9010
|
+
|
|
9011
|
+
/**
|
|
9012
|
+
* Clears the field making it undefined.
|
|
9013
|
+
* @return {!proto.config.MirrorCountriesResponse} returns this
|
|
9014
|
+
*/
|
|
9015
|
+
proto.config.MirrorCountriesResponse.prototype.clearTotalPages = function() {
|
|
9016
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
9017
|
+
};
|
|
9018
|
+
|
|
9019
|
+
|
|
9020
|
+
/**
|
|
9021
|
+
* Returns whether this field is set.
|
|
9022
|
+
* @return {boolean}
|
|
9023
|
+
*/
|
|
9024
|
+
proto.config.MirrorCountriesResponse.prototype.hasTotalPages = function() {
|
|
9025
|
+
return jspb.Message.getField(this, 2) != null;
|
|
9026
|
+
};
|
|
9027
|
+
|
|
9028
|
+
|
|
9029
|
+
/**
|
|
9030
|
+
* optional int32 total_items = 3;
|
|
9031
|
+
* @return {number}
|
|
9032
|
+
*/
|
|
9033
|
+
proto.config.MirrorCountriesResponse.prototype.getTotalItems = function() {
|
|
9034
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
9035
|
+
};
|
|
9036
|
+
|
|
9037
|
+
|
|
9038
|
+
/**
|
|
9039
|
+
* @param {number} value
|
|
9040
|
+
* @return {!proto.config.MirrorCountriesResponse} returns this
|
|
9041
|
+
*/
|
|
9042
|
+
proto.config.MirrorCountriesResponse.prototype.setTotalItems = function(value) {
|
|
9043
|
+
return jspb.Message.setField(this, 3, value);
|
|
9044
|
+
};
|
|
9045
|
+
|
|
9046
|
+
|
|
9047
|
+
/**
|
|
9048
|
+
* Clears the field making it undefined.
|
|
9049
|
+
* @return {!proto.config.MirrorCountriesResponse} returns this
|
|
9050
|
+
*/
|
|
9051
|
+
proto.config.MirrorCountriesResponse.prototype.clearTotalItems = function() {
|
|
9052
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
9053
|
+
};
|
|
9054
|
+
|
|
9055
|
+
|
|
9056
|
+
/**
|
|
9057
|
+
* Returns whether this field is set.
|
|
9058
|
+
* @return {boolean}
|
|
9059
|
+
*/
|
|
9060
|
+
proto.config.MirrorCountriesResponse.prototype.hasTotalItems = function() {
|
|
9061
|
+
return jspb.Message.getField(this, 3) != null;
|
|
9062
|
+
};
|
|
9063
|
+
|
|
9064
|
+
|
|
8462
9065
|
goog.object.extend(exports, proto.config);
|