protobuf-platform 1.2.98 → 1.2.100
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 +2 -0
- package/config/config_grpc_pb.js +11 -0
- package/config/config_pb.js +49 -1
- package/package.json +1 -1
package/config/config.proto
CHANGED
|
@@ -31,6 +31,7 @@ service Config {
|
|
|
31
31
|
rpc getMirrorsList(PaginationRequest) returns (MirrorItemsResponse);
|
|
32
32
|
rpc deleteSingleMirror(GetZoneRequest) returns (MirrorStatusResponse);
|
|
33
33
|
rpc enableSingleMirror(GetZoneRequest) returns (MirrorStatusResponse);
|
|
34
|
+
rpc setDefaultMirror(GetZoneRequest) returns (MirrorStatusResponse);
|
|
34
35
|
rpc syncActivatedMirrors(GetZoneRequest) returns (ActivatedMirrorsResponse);
|
|
35
36
|
}
|
|
36
37
|
|
|
@@ -183,6 +184,7 @@ message MirrorItem {
|
|
|
183
184
|
optional string status = 8;
|
|
184
185
|
optional int32 is_active = 9;
|
|
185
186
|
optional string id = 10;
|
|
187
|
+
optional int32 is_default = 11;
|
|
186
188
|
}
|
|
187
189
|
message MirrorResponse {
|
|
188
190
|
MirrorItem data = 1;
|
package/config/config_grpc_pb.js
CHANGED
|
@@ -564,6 +564,17 @@ getZonesList: {
|
|
|
564
564
|
responseSerialize: serialize_config_MirrorStatusResponse,
|
|
565
565
|
responseDeserialize: deserialize_config_MirrorStatusResponse,
|
|
566
566
|
},
|
|
567
|
+
setDefaultMirror: {
|
|
568
|
+
path: '/config.Config/setDefaultMirror',
|
|
569
|
+
requestStream: false,
|
|
570
|
+
responseStream: false,
|
|
571
|
+
requestType: config_pb.GetZoneRequest,
|
|
572
|
+
responseType: config_pb.MirrorStatusResponse,
|
|
573
|
+
requestSerialize: serialize_config_GetZoneRequest,
|
|
574
|
+
requestDeserialize: deserialize_config_GetZoneRequest,
|
|
575
|
+
responseSerialize: serialize_config_MirrorStatusResponse,
|
|
576
|
+
responseDeserialize: deserialize_config_MirrorStatusResponse,
|
|
577
|
+
},
|
|
567
578
|
syncActivatedMirrors: {
|
|
568
579
|
path: '/config.Config/syncActivatedMirrors',
|
|
569
580
|
requestStream: false,
|
package/config/config_pb.js
CHANGED
|
@@ -6742,7 +6742,8 @@ proto.config.MirrorItem.toObject = function(includeInstance, msg) {
|
|
|
6742
6742
|
priority: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
6743
6743
|
status: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
6744
6744
|
isActive: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
6745
|
-
id: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
6745
|
+
id: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
6746
|
+
isDefault: jspb.Message.getFieldWithDefault(msg, 11, 0)
|
|
6746
6747
|
};
|
|
6747
6748
|
|
|
6748
6749
|
if (includeInstance) {
|
|
@@ -6819,6 +6820,10 @@ proto.config.MirrorItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
6819
6820
|
var value = /** @type {string} */ (reader.readString());
|
|
6820
6821
|
msg.setId(value);
|
|
6821
6822
|
break;
|
|
6823
|
+
case 11:
|
|
6824
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6825
|
+
msg.setIsDefault(value);
|
|
6826
|
+
break;
|
|
6822
6827
|
default:
|
|
6823
6828
|
reader.skipField();
|
|
6824
6829
|
break;
|
|
@@ -6918,6 +6923,13 @@ proto.config.MirrorItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
6918
6923
|
f
|
|
6919
6924
|
);
|
|
6920
6925
|
}
|
|
6926
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 11));
|
|
6927
|
+
if (f != null) {
|
|
6928
|
+
writer.writeInt32(
|
|
6929
|
+
11,
|
|
6930
|
+
f
|
|
6931
|
+
);
|
|
6932
|
+
}
|
|
6921
6933
|
};
|
|
6922
6934
|
|
|
6923
6935
|
|
|
@@ -7282,6 +7294,42 @@ proto.config.MirrorItem.prototype.hasId = function() {
|
|
|
7282
7294
|
};
|
|
7283
7295
|
|
|
7284
7296
|
|
|
7297
|
+
/**
|
|
7298
|
+
* optional int32 is_default = 11;
|
|
7299
|
+
* @return {number}
|
|
7300
|
+
*/
|
|
7301
|
+
proto.config.MirrorItem.prototype.getIsDefault = function() {
|
|
7302
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
|
7303
|
+
};
|
|
7304
|
+
|
|
7305
|
+
|
|
7306
|
+
/**
|
|
7307
|
+
* @param {number} value
|
|
7308
|
+
* @return {!proto.config.MirrorItem} returns this
|
|
7309
|
+
*/
|
|
7310
|
+
proto.config.MirrorItem.prototype.setIsDefault = function(value) {
|
|
7311
|
+
return jspb.Message.setField(this, 11, value);
|
|
7312
|
+
};
|
|
7313
|
+
|
|
7314
|
+
|
|
7315
|
+
/**
|
|
7316
|
+
* Clears the field making it undefined.
|
|
7317
|
+
* @return {!proto.config.MirrorItem} returns this
|
|
7318
|
+
*/
|
|
7319
|
+
proto.config.MirrorItem.prototype.clearIsDefault = function() {
|
|
7320
|
+
return jspb.Message.setField(this, 11, undefined);
|
|
7321
|
+
};
|
|
7322
|
+
|
|
7323
|
+
|
|
7324
|
+
/**
|
|
7325
|
+
* Returns whether this field is set.
|
|
7326
|
+
* @return {boolean}
|
|
7327
|
+
*/
|
|
7328
|
+
proto.config.MirrorItem.prototype.hasIsDefault = function() {
|
|
7329
|
+
return jspb.Message.getField(this, 11) != null;
|
|
7330
|
+
};
|
|
7331
|
+
|
|
7332
|
+
|
|
7285
7333
|
|
|
7286
7334
|
|
|
7287
7335
|
|