protobuf-platform 1.2.88 → 1.2.89
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 +25 -3
- package/config/config_pb.js +612 -2
- package/package.json +1 -1
package/config/config.proto
CHANGED
|
@@ -25,7 +25,8 @@ service Config {
|
|
|
25
25
|
rpc getZonesList(GetZoneRequest) returns (ZonesResponse);
|
|
26
26
|
rpc getZone(GetZoneRequest) returns (ZoneItemResponse);
|
|
27
27
|
rpc createZone(GetZoneRequest) returns (ZoneItemResponse);
|
|
28
|
-
rpc createMirror(
|
|
28
|
+
rpc createMirror(ModifyMirrorRequest) returns (MirrorResponse);
|
|
29
|
+
rpc updateMirror(ModifyMirrorRequest) returns (MirrorResponse);
|
|
29
30
|
rpc getMirrorsList(PaginationRequest) returns (MirrorItemsResponse);
|
|
30
31
|
rpc deleteSingleMirror(GetZoneRequest) returns (MirrorStatusResponse);
|
|
31
32
|
}
|
|
@@ -161,6 +162,11 @@ message MirrorItem {
|
|
|
161
162
|
optional string main_record = 4;
|
|
162
163
|
optional string api_record = 5;
|
|
163
164
|
optional string cdn_record = 6;
|
|
165
|
+
repeated string countries = 7;
|
|
166
|
+
optional string title = 8;
|
|
167
|
+
optional string priority = 9;
|
|
168
|
+
optional string status = 10;
|
|
169
|
+
optional int32 is_active = 11;
|
|
164
170
|
}
|
|
165
171
|
message MirrorResponse {
|
|
166
172
|
MirrorItem data = 1;
|
|
@@ -172,4 +178,11 @@ message MirrorItemsResponse {
|
|
|
172
178
|
}
|
|
173
179
|
message MirrorStatusResponse {
|
|
174
180
|
string status = 1;
|
|
181
|
+
}
|
|
182
|
+
message ModifyMirrorRequest {
|
|
183
|
+
optional string domain = 1;
|
|
184
|
+
optional string title = 2;
|
|
185
|
+
optional string priority = 3;
|
|
186
|
+
optional string status = 4;
|
|
187
|
+
optional int32 is_active = 5;
|
|
175
188
|
}
|
package/config/config_grpc_pb.js
CHANGED
|
@@ -169,6 +169,17 @@ function deserialize_config_MirrorStatusResponse(buffer_arg) {
|
|
|
169
169
|
return config_pb.MirrorStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
function serialize_config_ModifyMirrorRequest(arg) {
|
|
173
|
+
if (!(arg instanceof config_pb.ModifyMirrorRequest)) {
|
|
174
|
+
throw new Error('Expected argument of type config.ModifyMirrorRequest');
|
|
175
|
+
}
|
|
176
|
+
return Buffer.from(arg.serializeBinary());
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function deserialize_config_ModifyMirrorRequest(buffer_arg) {
|
|
180
|
+
return config_pb.ModifyMirrorRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
181
|
+
}
|
|
182
|
+
|
|
172
183
|
function serialize_config_PaginationRequest(arg) {
|
|
173
184
|
if (!(arg instanceof config_pb.PaginationRequest)) {
|
|
174
185
|
throw new Error('Expected argument of type config.PaginationRequest');
|
|
@@ -469,10 +480,21 @@ getZonesList: {
|
|
|
469
480
|
path: '/config.Config/createMirror',
|
|
470
481
|
requestStream: false,
|
|
471
482
|
responseStream: false,
|
|
472
|
-
requestType: config_pb.
|
|
483
|
+
requestType: config_pb.ModifyMirrorRequest,
|
|
473
484
|
responseType: config_pb.MirrorResponse,
|
|
474
|
-
requestSerialize:
|
|
475
|
-
requestDeserialize:
|
|
485
|
+
requestSerialize: serialize_config_ModifyMirrorRequest,
|
|
486
|
+
requestDeserialize: deserialize_config_ModifyMirrorRequest,
|
|
487
|
+
responseSerialize: serialize_config_MirrorResponse,
|
|
488
|
+
responseDeserialize: deserialize_config_MirrorResponse,
|
|
489
|
+
},
|
|
490
|
+
updateMirror: {
|
|
491
|
+
path: '/config.Config/updateMirror',
|
|
492
|
+
requestStream: false,
|
|
493
|
+
responseStream: false,
|
|
494
|
+
requestType: config_pb.ModifyMirrorRequest,
|
|
495
|
+
responseType: config_pb.MirrorResponse,
|
|
496
|
+
requestSerialize: serialize_config_ModifyMirrorRequest,
|
|
497
|
+
requestDeserialize: deserialize_config_ModifyMirrorRequest,
|
|
476
498
|
responseSerialize: serialize_config_MirrorResponse,
|
|
477
499
|
responseDeserialize: deserialize_config_MirrorResponse,
|
|
478
500
|
},
|
package/config/config_pb.js
CHANGED
|
@@ -38,6 +38,7 @@ goog.exportSymbol('proto.config.MirrorItem', null, global);
|
|
|
38
38
|
goog.exportSymbol('proto.config.MirrorItemsResponse', null, global);
|
|
39
39
|
goog.exportSymbol('proto.config.MirrorResponse', null, global);
|
|
40
40
|
goog.exportSymbol('proto.config.MirrorStatusResponse', null, global);
|
|
41
|
+
goog.exportSymbol('proto.config.ModifyMirrorRequest', null, global);
|
|
41
42
|
goog.exportSymbol('proto.config.PaginationRequest', null, global);
|
|
42
43
|
goog.exportSymbol('proto.config.PingRequest', null, global);
|
|
43
44
|
goog.exportSymbol('proto.config.PongResponse', null, global);
|
|
@@ -608,7 +609,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
608
609
|
* @constructor
|
|
609
610
|
*/
|
|
610
611
|
proto.config.MirrorItem = function(opt_data) {
|
|
611
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
612
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.config.MirrorItem.repeatedFields_, null);
|
|
612
613
|
};
|
|
613
614
|
goog.inherits(proto.config.MirrorItem, jspb.Message);
|
|
614
615
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -681,6 +682,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
681
682
|
*/
|
|
682
683
|
proto.config.MirrorStatusResponse.displayName = 'proto.config.MirrorStatusResponse';
|
|
683
684
|
}
|
|
685
|
+
/**
|
|
686
|
+
* Generated by JsPbCodeGenerator.
|
|
687
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
688
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
689
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
690
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
691
|
+
* valid.
|
|
692
|
+
* @extends {jspb.Message}
|
|
693
|
+
* @constructor
|
|
694
|
+
*/
|
|
695
|
+
proto.config.ModifyMirrorRequest = function(opt_data) {
|
|
696
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
697
|
+
};
|
|
698
|
+
goog.inherits(proto.config.ModifyMirrorRequest, jspb.Message);
|
|
699
|
+
if (goog.DEBUG && !COMPILED) {
|
|
700
|
+
/**
|
|
701
|
+
* @public
|
|
702
|
+
* @override
|
|
703
|
+
*/
|
|
704
|
+
proto.config.ModifyMirrorRequest.displayName = 'proto.config.ModifyMirrorRequest';
|
|
705
|
+
}
|
|
684
706
|
|
|
685
707
|
|
|
686
708
|
|
|
@@ -5884,6 +5906,13 @@ proto.config.ZonesResponse.prototype.clearItemsList = function() {
|
|
|
5884
5906
|
|
|
5885
5907
|
|
|
5886
5908
|
|
|
5909
|
+
/**
|
|
5910
|
+
* List of repeated fields within this message type.
|
|
5911
|
+
* @private {!Array<number>}
|
|
5912
|
+
* @const
|
|
5913
|
+
*/
|
|
5914
|
+
proto.config.MirrorItem.repeatedFields_ = [7];
|
|
5915
|
+
|
|
5887
5916
|
|
|
5888
5917
|
|
|
5889
5918
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -5920,7 +5949,12 @@ proto.config.MirrorItem.toObject = function(includeInstance, msg) {
|
|
|
5920
5949
|
zoneStatus: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
5921
5950
|
mainRecord: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
5922
5951
|
apiRecord: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
5923
|
-
cdnRecord: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
5952
|
+
cdnRecord: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
5953
|
+
countriesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
5954
|
+
title: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
5955
|
+
priority: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
5956
|
+
status: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
5957
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 11, 0)
|
|
5924
5958
|
};
|
|
5925
5959
|
|
|
5926
5960
|
if (includeInstance) {
|
|
@@ -5981,6 +6015,26 @@ proto.config.MirrorItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
5981
6015
|
var value = /** @type {string} */ (reader.readString());
|
|
5982
6016
|
msg.setCdnRecord(value);
|
|
5983
6017
|
break;
|
|
6018
|
+
case 7:
|
|
6019
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6020
|
+
msg.addCountries(value);
|
|
6021
|
+
break;
|
|
6022
|
+
case 8:
|
|
6023
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6024
|
+
msg.setTitle(value);
|
|
6025
|
+
break;
|
|
6026
|
+
case 9:
|
|
6027
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6028
|
+
msg.setPriority(value);
|
|
6029
|
+
break;
|
|
6030
|
+
case 10:
|
|
6031
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6032
|
+
msg.setStatus(value);
|
|
6033
|
+
break;
|
|
6034
|
+
case 11:
|
|
6035
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6036
|
+
msg.setIsActive(value);
|
|
6037
|
+
break;
|
|
5984
6038
|
default:
|
|
5985
6039
|
reader.skipField();
|
|
5986
6040
|
break;
|
|
@@ -6052,6 +6106,41 @@ proto.config.MirrorItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
6052
6106
|
f
|
|
6053
6107
|
);
|
|
6054
6108
|
}
|
|
6109
|
+
f = message.getCountriesList();
|
|
6110
|
+
if (f.length > 0) {
|
|
6111
|
+
writer.writeRepeatedString(
|
|
6112
|
+
7,
|
|
6113
|
+
f
|
|
6114
|
+
);
|
|
6115
|
+
}
|
|
6116
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
|
6117
|
+
if (f != null) {
|
|
6118
|
+
writer.writeString(
|
|
6119
|
+
8,
|
|
6120
|
+
f
|
|
6121
|
+
);
|
|
6122
|
+
}
|
|
6123
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
|
6124
|
+
if (f != null) {
|
|
6125
|
+
writer.writeString(
|
|
6126
|
+
9,
|
|
6127
|
+
f
|
|
6128
|
+
);
|
|
6129
|
+
}
|
|
6130
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
|
6131
|
+
if (f != null) {
|
|
6132
|
+
writer.writeString(
|
|
6133
|
+
10,
|
|
6134
|
+
f
|
|
6135
|
+
);
|
|
6136
|
+
}
|
|
6137
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 11));
|
|
6138
|
+
if (f != null) {
|
|
6139
|
+
writer.writeInt32(
|
|
6140
|
+
11,
|
|
6141
|
+
f
|
|
6142
|
+
);
|
|
6143
|
+
}
|
|
6055
6144
|
};
|
|
6056
6145
|
|
|
6057
6146
|
|
|
@@ -6217,6 +6306,187 @@ proto.config.MirrorItem.prototype.hasCdnRecord = function() {
|
|
|
6217
6306
|
};
|
|
6218
6307
|
|
|
6219
6308
|
|
|
6309
|
+
/**
|
|
6310
|
+
* repeated string countries = 7;
|
|
6311
|
+
* @return {!Array<string>}
|
|
6312
|
+
*/
|
|
6313
|
+
proto.config.MirrorItem.prototype.getCountriesList = function() {
|
|
6314
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
|
|
6315
|
+
};
|
|
6316
|
+
|
|
6317
|
+
|
|
6318
|
+
/**
|
|
6319
|
+
* @param {!Array<string>} value
|
|
6320
|
+
* @return {!proto.config.MirrorItem} returns this
|
|
6321
|
+
*/
|
|
6322
|
+
proto.config.MirrorItem.prototype.setCountriesList = function(value) {
|
|
6323
|
+
return jspb.Message.setField(this, 7, value || []);
|
|
6324
|
+
};
|
|
6325
|
+
|
|
6326
|
+
|
|
6327
|
+
/**
|
|
6328
|
+
* @param {string} value
|
|
6329
|
+
* @param {number=} opt_index
|
|
6330
|
+
* @return {!proto.config.MirrorItem} returns this
|
|
6331
|
+
*/
|
|
6332
|
+
proto.config.MirrorItem.prototype.addCountries = function(value, opt_index) {
|
|
6333
|
+
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
|
|
6334
|
+
};
|
|
6335
|
+
|
|
6336
|
+
|
|
6337
|
+
/**
|
|
6338
|
+
* Clears the list making it empty but non-null.
|
|
6339
|
+
* @return {!proto.config.MirrorItem} returns this
|
|
6340
|
+
*/
|
|
6341
|
+
proto.config.MirrorItem.prototype.clearCountriesList = function() {
|
|
6342
|
+
return this.setCountriesList([]);
|
|
6343
|
+
};
|
|
6344
|
+
|
|
6345
|
+
|
|
6346
|
+
/**
|
|
6347
|
+
* optional string title = 8;
|
|
6348
|
+
* @return {string}
|
|
6349
|
+
*/
|
|
6350
|
+
proto.config.MirrorItem.prototype.getTitle = function() {
|
|
6351
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
6352
|
+
};
|
|
6353
|
+
|
|
6354
|
+
|
|
6355
|
+
/**
|
|
6356
|
+
* @param {string} value
|
|
6357
|
+
* @return {!proto.config.MirrorItem} returns this
|
|
6358
|
+
*/
|
|
6359
|
+
proto.config.MirrorItem.prototype.setTitle = function(value) {
|
|
6360
|
+
return jspb.Message.setField(this, 8, value);
|
|
6361
|
+
};
|
|
6362
|
+
|
|
6363
|
+
|
|
6364
|
+
/**
|
|
6365
|
+
* Clears the field making it undefined.
|
|
6366
|
+
* @return {!proto.config.MirrorItem} returns this
|
|
6367
|
+
*/
|
|
6368
|
+
proto.config.MirrorItem.prototype.clearTitle = function() {
|
|
6369
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
6370
|
+
};
|
|
6371
|
+
|
|
6372
|
+
|
|
6373
|
+
/**
|
|
6374
|
+
* Returns whether this field is set.
|
|
6375
|
+
* @return {boolean}
|
|
6376
|
+
*/
|
|
6377
|
+
proto.config.MirrorItem.prototype.hasTitle = function() {
|
|
6378
|
+
return jspb.Message.getField(this, 8) != null;
|
|
6379
|
+
};
|
|
6380
|
+
|
|
6381
|
+
|
|
6382
|
+
/**
|
|
6383
|
+
* optional string priority = 9;
|
|
6384
|
+
* @return {string}
|
|
6385
|
+
*/
|
|
6386
|
+
proto.config.MirrorItem.prototype.getPriority = function() {
|
|
6387
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
6388
|
+
};
|
|
6389
|
+
|
|
6390
|
+
|
|
6391
|
+
/**
|
|
6392
|
+
* @param {string} value
|
|
6393
|
+
* @return {!proto.config.MirrorItem} returns this
|
|
6394
|
+
*/
|
|
6395
|
+
proto.config.MirrorItem.prototype.setPriority = function(value) {
|
|
6396
|
+
return jspb.Message.setField(this, 9, value);
|
|
6397
|
+
};
|
|
6398
|
+
|
|
6399
|
+
|
|
6400
|
+
/**
|
|
6401
|
+
* Clears the field making it undefined.
|
|
6402
|
+
* @return {!proto.config.MirrorItem} returns this
|
|
6403
|
+
*/
|
|
6404
|
+
proto.config.MirrorItem.prototype.clearPriority = function() {
|
|
6405
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
6406
|
+
};
|
|
6407
|
+
|
|
6408
|
+
|
|
6409
|
+
/**
|
|
6410
|
+
* Returns whether this field is set.
|
|
6411
|
+
* @return {boolean}
|
|
6412
|
+
*/
|
|
6413
|
+
proto.config.MirrorItem.prototype.hasPriority = function() {
|
|
6414
|
+
return jspb.Message.getField(this, 9) != null;
|
|
6415
|
+
};
|
|
6416
|
+
|
|
6417
|
+
|
|
6418
|
+
/**
|
|
6419
|
+
* optional string status = 10;
|
|
6420
|
+
* @return {string}
|
|
6421
|
+
*/
|
|
6422
|
+
proto.config.MirrorItem.prototype.getStatus = function() {
|
|
6423
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
6424
|
+
};
|
|
6425
|
+
|
|
6426
|
+
|
|
6427
|
+
/**
|
|
6428
|
+
* @param {string} value
|
|
6429
|
+
* @return {!proto.config.MirrorItem} returns this
|
|
6430
|
+
*/
|
|
6431
|
+
proto.config.MirrorItem.prototype.setStatus = function(value) {
|
|
6432
|
+
return jspb.Message.setField(this, 10, value);
|
|
6433
|
+
};
|
|
6434
|
+
|
|
6435
|
+
|
|
6436
|
+
/**
|
|
6437
|
+
* Clears the field making it undefined.
|
|
6438
|
+
* @return {!proto.config.MirrorItem} returns this
|
|
6439
|
+
*/
|
|
6440
|
+
proto.config.MirrorItem.prototype.clearStatus = function() {
|
|
6441
|
+
return jspb.Message.setField(this, 10, undefined);
|
|
6442
|
+
};
|
|
6443
|
+
|
|
6444
|
+
|
|
6445
|
+
/**
|
|
6446
|
+
* Returns whether this field is set.
|
|
6447
|
+
* @return {boolean}
|
|
6448
|
+
*/
|
|
6449
|
+
proto.config.MirrorItem.prototype.hasStatus = function() {
|
|
6450
|
+
return jspb.Message.getField(this, 10) != null;
|
|
6451
|
+
};
|
|
6452
|
+
|
|
6453
|
+
|
|
6454
|
+
/**
|
|
6455
|
+
* optional int32 is_active = 11;
|
|
6456
|
+
* @return {number}
|
|
6457
|
+
*/
|
|
6458
|
+
proto.config.MirrorItem.prototype.getIsActive = function() {
|
|
6459
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
|
6460
|
+
};
|
|
6461
|
+
|
|
6462
|
+
|
|
6463
|
+
/**
|
|
6464
|
+
* @param {number} value
|
|
6465
|
+
* @return {!proto.config.MirrorItem} returns this
|
|
6466
|
+
*/
|
|
6467
|
+
proto.config.MirrorItem.prototype.setIsActive = function(value) {
|
|
6468
|
+
return jspb.Message.setField(this, 11, value);
|
|
6469
|
+
};
|
|
6470
|
+
|
|
6471
|
+
|
|
6472
|
+
/**
|
|
6473
|
+
* Clears the field making it undefined.
|
|
6474
|
+
* @return {!proto.config.MirrorItem} returns this
|
|
6475
|
+
*/
|
|
6476
|
+
proto.config.MirrorItem.prototype.clearIsActive = function() {
|
|
6477
|
+
return jspb.Message.setField(this, 11, undefined);
|
|
6478
|
+
};
|
|
6479
|
+
|
|
6480
|
+
|
|
6481
|
+
/**
|
|
6482
|
+
* Returns whether this field is set.
|
|
6483
|
+
* @return {boolean}
|
|
6484
|
+
*/
|
|
6485
|
+
proto.config.MirrorItem.prototype.hasIsActive = function() {
|
|
6486
|
+
return jspb.Message.getField(this, 11) != null;
|
|
6487
|
+
};
|
|
6488
|
+
|
|
6489
|
+
|
|
6220
6490
|
|
|
6221
6491
|
|
|
6222
6492
|
|
|
@@ -6754,4 +7024,344 @@ proto.config.MirrorStatusResponse.prototype.setStatus = function(value) {
|
|
|
6754
7024
|
};
|
|
6755
7025
|
|
|
6756
7026
|
|
|
7027
|
+
|
|
7028
|
+
|
|
7029
|
+
|
|
7030
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7031
|
+
/**
|
|
7032
|
+
* Creates an object representation of this proto.
|
|
7033
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7034
|
+
* Optional fields that are not set will be set to undefined.
|
|
7035
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7036
|
+
* For the list of reserved names please see:
|
|
7037
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7038
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7039
|
+
* JSPB instance for transitional soy proto support:
|
|
7040
|
+
* http://goto/soy-param-migration
|
|
7041
|
+
* @return {!Object}
|
|
7042
|
+
*/
|
|
7043
|
+
proto.config.ModifyMirrorRequest.prototype.toObject = function(opt_includeInstance) {
|
|
7044
|
+
return proto.config.ModifyMirrorRequest.toObject(opt_includeInstance, this);
|
|
7045
|
+
};
|
|
7046
|
+
|
|
7047
|
+
|
|
7048
|
+
/**
|
|
7049
|
+
* Static version of the {@see toObject} method.
|
|
7050
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7051
|
+
* the JSPB instance for transitional soy proto support:
|
|
7052
|
+
* http://goto/soy-param-migration
|
|
7053
|
+
* @param {!proto.config.ModifyMirrorRequest} msg The msg instance to transform.
|
|
7054
|
+
* @return {!Object}
|
|
7055
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7056
|
+
*/
|
|
7057
|
+
proto.config.ModifyMirrorRequest.toObject = function(includeInstance, msg) {
|
|
7058
|
+
var f, obj = {
|
|
7059
|
+
domain: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7060
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7061
|
+
priority: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
7062
|
+
status: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
7063
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
7064
|
+
};
|
|
7065
|
+
|
|
7066
|
+
if (includeInstance) {
|
|
7067
|
+
obj.$jspbMessageInstance = msg;
|
|
7068
|
+
}
|
|
7069
|
+
return obj;
|
|
7070
|
+
};
|
|
7071
|
+
}
|
|
7072
|
+
|
|
7073
|
+
|
|
7074
|
+
/**
|
|
7075
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7076
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7077
|
+
* @return {!proto.config.ModifyMirrorRequest}
|
|
7078
|
+
*/
|
|
7079
|
+
proto.config.ModifyMirrorRequest.deserializeBinary = function(bytes) {
|
|
7080
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7081
|
+
var msg = new proto.config.ModifyMirrorRequest;
|
|
7082
|
+
return proto.config.ModifyMirrorRequest.deserializeBinaryFromReader(msg, reader);
|
|
7083
|
+
};
|
|
7084
|
+
|
|
7085
|
+
|
|
7086
|
+
/**
|
|
7087
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7088
|
+
* given reader into the given message object.
|
|
7089
|
+
* @param {!proto.config.ModifyMirrorRequest} msg The message object to deserialize into.
|
|
7090
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7091
|
+
* @return {!proto.config.ModifyMirrorRequest}
|
|
7092
|
+
*/
|
|
7093
|
+
proto.config.ModifyMirrorRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
7094
|
+
while (reader.nextField()) {
|
|
7095
|
+
if (reader.isEndGroup()) {
|
|
7096
|
+
break;
|
|
7097
|
+
}
|
|
7098
|
+
var field = reader.getFieldNumber();
|
|
7099
|
+
switch (field) {
|
|
7100
|
+
case 1:
|
|
7101
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7102
|
+
msg.setDomain(value);
|
|
7103
|
+
break;
|
|
7104
|
+
case 2:
|
|
7105
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7106
|
+
msg.setTitle(value);
|
|
7107
|
+
break;
|
|
7108
|
+
case 3:
|
|
7109
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7110
|
+
msg.setPriority(value);
|
|
7111
|
+
break;
|
|
7112
|
+
case 4:
|
|
7113
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7114
|
+
msg.setStatus(value);
|
|
7115
|
+
break;
|
|
7116
|
+
case 5:
|
|
7117
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
7118
|
+
msg.setIsActive(value);
|
|
7119
|
+
break;
|
|
7120
|
+
default:
|
|
7121
|
+
reader.skipField();
|
|
7122
|
+
break;
|
|
7123
|
+
}
|
|
7124
|
+
}
|
|
7125
|
+
return msg;
|
|
7126
|
+
};
|
|
7127
|
+
|
|
7128
|
+
|
|
7129
|
+
/**
|
|
7130
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7131
|
+
* @return {!Uint8Array}
|
|
7132
|
+
*/
|
|
7133
|
+
proto.config.ModifyMirrorRequest.prototype.serializeBinary = function() {
|
|
7134
|
+
var writer = new jspb.BinaryWriter();
|
|
7135
|
+
proto.config.ModifyMirrorRequest.serializeBinaryToWriter(this, writer);
|
|
7136
|
+
return writer.getResultBuffer();
|
|
7137
|
+
};
|
|
7138
|
+
|
|
7139
|
+
|
|
7140
|
+
/**
|
|
7141
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7142
|
+
* format), writing to the given BinaryWriter.
|
|
7143
|
+
* @param {!proto.config.ModifyMirrorRequest} message
|
|
7144
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7145
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7146
|
+
*/
|
|
7147
|
+
proto.config.ModifyMirrorRequest.serializeBinaryToWriter = function(message, writer) {
|
|
7148
|
+
var f = undefined;
|
|
7149
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
7150
|
+
if (f != null) {
|
|
7151
|
+
writer.writeString(
|
|
7152
|
+
1,
|
|
7153
|
+
f
|
|
7154
|
+
);
|
|
7155
|
+
}
|
|
7156
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
7157
|
+
if (f != null) {
|
|
7158
|
+
writer.writeString(
|
|
7159
|
+
2,
|
|
7160
|
+
f
|
|
7161
|
+
);
|
|
7162
|
+
}
|
|
7163
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
7164
|
+
if (f != null) {
|
|
7165
|
+
writer.writeString(
|
|
7166
|
+
3,
|
|
7167
|
+
f
|
|
7168
|
+
);
|
|
7169
|
+
}
|
|
7170
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
7171
|
+
if (f != null) {
|
|
7172
|
+
writer.writeString(
|
|
7173
|
+
4,
|
|
7174
|
+
f
|
|
7175
|
+
);
|
|
7176
|
+
}
|
|
7177
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
7178
|
+
if (f != null) {
|
|
7179
|
+
writer.writeInt32(
|
|
7180
|
+
5,
|
|
7181
|
+
f
|
|
7182
|
+
);
|
|
7183
|
+
}
|
|
7184
|
+
};
|
|
7185
|
+
|
|
7186
|
+
|
|
7187
|
+
/**
|
|
7188
|
+
* optional string domain = 1;
|
|
7189
|
+
* @return {string}
|
|
7190
|
+
*/
|
|
7191
|
+
proto.config.ModifyMirrorRequest.prototype.getDomain = function() {
|
|
7192
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7193
|
+
};
|
|
7194
|
+
|
|
7195
|
+
|
|
7196
|
+
/**
|
|
7197
|
+
* @param {string} value
|
|
7198
|
+
* @return {!proto.config.ModifyMirrorRequest} returns this
|
|
7199
|
+
*/
|
|
7200
|
+
proto.config.ModifyMirrorRequest.prototype.setDomain = function(value) {
|
|
7201
|
+
return jspb.Message.setField(this, 1, value);
|
|
7202
|
+
};
|
|
7203
|
+
|
|
7204
|
+
|
|
7205
|
+
/**
|
|
7206
|
+
* Clears the field making it undefined.
|
|
7207
|
+
* @return {!proto.config.ModifyMirrorRequest} returns this
|
|
7208
|
+
*/
|
|
7209
|
+
proto.config.ModifyMirrorRequest.prototype.clearDomain = function() {
|
|
7210
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
7211
|
+
};
|
|
7212
|
+
|
|
7213
|
+
|
|
7214
|
+
/**
|
|
7215
|
+
* Returns whether this field is set.
|
|
7216
|
+
* @return {boolean}
|
|
7217
|
+
*/
|
|
7218
|
+
proto.config.ModifyMirrorRequest.prototype.hasDomain = function() {
|
|
7219
|
+
return jspb.Message.getField(this, 1) != null;
|
|
7220
|
+
};
|
|
7221
|
+
|
|
7222
|
+
|
|
7223
|
+
/**
|
|
7224
|
+
* optional string title = 2;
|
|
7225
|
+
* @return {string}
|
|
7226
|
+
*/
|
|
7227
|
+
proto.config.ModifyMirrorRequest.prototype.getTitle = function() {
|
|
7228
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7229
|
+
};
|
|
7230
|
+
|
|
7231
|
+
|
|
7232
|
+
/**
|
|
7233
|
+
* @param {string} value
|
|
7234
|
+
* @return {!proto.config.ModifyMirrorRequest} returns this
|
|
7235
|
+
*/
|
|
7236
|
+
proto.config.ModifyMirrorRequest.prototype.setTitle = function(value) {
|
|
7237
|
+
return jspb.Message.setField(this, 2, value);
|
|
7238
|
+
};
|
|
7239
|
+
|
|
7240
|
+
|
|
7241
|
+
/**
|
|
7242
|
+
* Clears the field making it undefined.
|
|
7243
|
+
* @return {!proto.config.ModifyMirrorRequest} returns this
|
|
7244
|
+
*/
|
|
7245
|
+
proto.config.ModifyMirrorRequest.prototype.clearTitle = function() {
|
|
7246
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
7247
|
+
};
|
|
7248
|
+
|
|
7249
|
+
|
|
7250
|
+
/**
|
|
7251
|
+
* Returns whether this field is set.
|
|
7252
|
+
* @return {boolean}
|
|
7253
|
+
*/
|
|
7254
|
+
proto.config.ModifyMirrorRequest.prototype.hasTitle = function() {
|
|
7255
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7256
|
+
};
|
|
7257
|
+
|
|
7258
|
+
|
|
7259
|
+
/**
|
|
7260
|
+
* optional string priority = 3;
|
|
7261
|
+
* @return {string}
|
|
7262
|
+
*/
|
|
7263
|
+
proto.config.ModifyMirrorRequest.prototype.getPriority = function() {
|
|
7264
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
7265
|
+
};
|
|
7266
|
+
|
|
7267
|
+
|
|
7268
|
+
/**
|
|
7269
|
+
* @param {string} value
|
|
7270
|
+
* @return {!proto.config.ModifyMirrorRequest} returns this
|
|
7271
|
+
*/
|
|
7272
|
+
proto.config.ModifyMirrorRequest.prototype.setPriority = function(value) {
|
|
7273
|
+
return jspb.Message.setField(this, 3, value);
|
|
7274
|
+
};
|
|
7275
|
+
|
|
7276
|
+
|
|
7277
|
+
/**
|
|
7278
|
+
* Clears the field making it undefined.
|
|
7279
|
+
* @return {!proto.config.ModifyMirrorRequest} returns this
|
|
7280
|
+
*/
|
|
7281
|
+
proto.config.ModifyMirrorRequest.prototype.clearPriority = function() {
|
|
7282
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
7283
|
+
};
|
|
7284
|
+
|
|
7285
|
+
|
|
7286
|
+
/**
|
|
7287
|
+
* Returns whether this field is set.
|
|
7288
|
+
* @return {boolean}
|
|
7289
|
+
*/
|
|
7290
|
+
proto.config.ModifyMirrorRequest.prototype.hasPriority = function() {
|
|
7291
|
+
return jspb.Message.getField(this, 3) != null;
|
|
7292
|
+
};
|
|
7293
|
+
|
|
7294
|
+
|
|
7295
|
+
/**
|
|
7296
|
+
* optional string status = 4;
|
|
7297
|
+
* @return {string}
|
|
7298
|
+
*/
|
|
7299
|
+
proto.config.ModifyMirrorRequest.prototype.getStatus = function() {
|
|
7300
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
7301
|
+
};
|
|
7302
|
+
|
|
7303
|
+
|
|
7304
|
+
/**
|
|
7305
|
+
* @param {string} value
|
|
7306
|
+
* @return {!proto.config.ModifyMirrorRequest} returns this
|
|
7307
|
+
*/
|
|
7308
|
+
proto.config.ModifyMirrorRequest.prototype.setStatus = function(value) {
|
|
7309
|
+
return jspb.Message.setField(this, 4, value);
|
|
7310
|
+
};
|
|
7311
|
+
|
|
7312
|
+
|
|
7313
|
+
/**
|
|
7314
|
+
* Clears the field making it undefined.
|
|
7315
|
+
* @return {!proto.config.ModifyMirrorRequest} returns this
|
|
7316
|
+
*/
|
|
7317
|
+
proto.config.ModifyMirrorRequest.prototype.clearStatus = function() {
|
|
7318
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
7319
|
+
};
|
|
7320
|
+
|
|
7321
|
+
|
|
7322
|
+
/**
|
|
7323
|
+
* Returns whether this field is set.
|
|
7324
|
+
* @return {boolean}
|
|
7325
|
+
*/
|
|
7326
|
+
proto.config.ModifyMirrorRequest.prototype.hasStatus = function() {
|
|
7327
|
+
return jspb.Message.getField(this, 4) != null;
|
|
7328
|
+
};
|
|
7329
|
+
|
|
7330
|
+
|
|
7331
|
+
/**
|
|
7332
|
+
* optional int32 is_active = 5;
|
|
7333
|
+
* @return {number}
|
|
7334
|
+
*/
|
|
7335
|
+
proto.config.ModifyMirrorRequest.prototype.getIsActive = function() {
|
|
7336
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
7337
|
+
};
|
|
7338
|
+
|
|
7339
|
+
|
|
7340
|
+
/**
|
|
7341
|
+
* @param {number} value
|
|
7342
|
+
* @return {!proto.config.ModifyMirrorRequest} returns this
|
|
7343
|
+
*/
|
|
7344
|
+
proto.config.ModifyMirrorRequest.prototype.setIsActive = function(value) {
|
|
7345
|
+
return jspb.Message.setField(this, 5, value);
|
|
7346
|
+
};
|
|
7347
|
+
|
|
7348
|
+
|
|
7349
|
+
/**
|
|
7350
|
+
* Clears the field making it undefined.
|
|
7351
|
+
* @return {!proto.config.ModifyMirrorRequest} returns this
|
|
7352
|
+
*/
|
|
7353
|
+
proto.config.ModifyMirrorRequest.prototype.clearIsActive = function() {
|
|
7354
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
7355
|
+
};
|
|
7356
|
+
|
|
7357
|
+
|
|
7358
|
+
/**
|
|
7359
|
+
* Returns whether this field is set.
|
|
7360
|
+
* @return {boolean}
|
|
7361
|
+
*/
|
|
7362
|
+
proto.config.ModifyMirrorRequest.prototype.hasIsActive = function() {
|
|
7363
|
+
return jspb.Message.getField(this, 5) != null;
|
|
7364
|
+
};
|
|
7365
|
+
|
|
7366
|
+
|
|
6757
7367
|
goog.object.extend(exports, proto.config);
|