protobuf-platform 1.2.87 → 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.
@@ -25,8 +25,10 @@ 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(GetZoneRequest) returns (MirrorResponse);
28
+ rpc createMirror(ModifyMirrorRequest) returns (MirrorResponse);
29
+ rpc updateMirror(ModifyMirrorRequest) returns (MirrorResponse);
29
30
  rpc getMirrorsList(PaginationRequest) returns (MirrorItemsResponse);
31
+ rpc deleteSingleMirror(GetZoneRequest) returns (MirrorStatusResponse);
30
32
  }
31
33
 
32
34
  message PingRequest { string ping = 1; }
@@ -160,6 +162,11 @@ message MirrorItem {
160
162
  optional string main_record = 4;
161
163
  optional string api_record = 5;
162
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;
163
170
  }
164
171
  message MirrorResponse {
165
172
  MirrorItem data = 1;
@@ -168,4 +175,14 @@ message MirrorItemsResponse {
168
175
  repeated MirrorItem items = 1;
169
176
  optional int32 total_pages = 2;
170
177
  optional int32 total_items = 3;
178
+ }
179
+ message MirrorStatusResponse {
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;
171
188
  }
@@ -158,6 +158,28 @@ function deserialize_config_MirrorResponse(buffer_arg) {
158
158
  return config_pb.MirrorResponse.deserializeBinary(new Uint8Array(buffer_arg));
159
159
  }
160
160
 
161
+ function serialize_config_MirrorStatusResponse(arg) {
162
+ if (!(arg instanceof config_pb.MirrorStatusResponse)) {
163
+ throw new Error('Expected argument of type config.MirrorStatusResponse');
164
+ }
165
+ return Buffer.from(arg.serializeBinary());
166
+ }
167
+
168
+ function deserialize_config_MirrorStatusResponse(buffer_arg) {
169
+ return config_pb.MirrorStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
170
+ }
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
+
161
183
  function serialize_config_PaginationRequest(arg) {
162
184
  if (!(arg instanceof config_pb.PaginationRequest)) {
163
185
  throw new Error('Expected argument of type config.PaginationRequest');
@@ -458,10 +480,21 @@ getZonesList: {
458
480
  path: '/config.Config/createMirror',
459
481
  requestStream: false,
460
482
  responseStream: false,
461
- requestType: config_pb.GetZoneRequest,
483
+ requestType: config_pb.ModifyMirrorRequest,
462
484
  responseType: config_pb.MirrorResponse,
463
- requestSerialize: serialize_config_GetZoneRequest,
464
- requestDeserialize: deserialize_config_GetZoneRequest,
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,
465
498
  responseSerialize: serialize_config_MirrorResponse,
466
499
  responseDeserialize: deserialize_config_MirrorResponse,
467
500
  },
@@ -476,6 +509,17 @@ getZonesList: {
476
509
  responseSerialize: serialize_config_MirrorItemsResponse,
477
510
  responseDeserialize: deserialize_config_MirrorItemsResponse,
478
511
  },
512
+ deleteSingleMirror: {
513
+ path: '/config.Config/deleteSingleMirror',
514
+ requestStream: false,
515
+ responseStream: false,
516
+ requestType: config_pb.GetZoneRequest,
517
+ responseType: config_pb.MirrorStatusResponse,
518
+ requestSerialize: serialize_config_GetZoneRequest,
519
+ requestDeserialize: deserialize_config_GetZoneRequest,
520
+ responseSerialize: serialize_config_MirrorStatusResponse,
521
+ responseDeserialize: deserialize_config_MirrorStatusResponse,
522
+ },
479
523
  };
480
524
 
481
525
  exports.ConfigClient = grpc.makeGenericClientConstructor(ConfigService, 'Config');
@@ -37,6 +37,8 @@ goog.exportSymbol('proto.config.GlobalDataRequest', null, global);
37
37
  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
+ goog.exportSymbol('proto.config.MirrorStatusResponse', null, global);
41
+ goog.exportSymbol('proto.config.ModifyMirrorRequest', null, global);
40
42
  goog.exportSymbol('proto.config.PaginationRequest', null, global);
41
43
  goog.exportSymbol('proto.config.PingRequest', null, global);
42
44
  goog.exportSymbol('proto.config.PongResponse', null, global);
@@ -607,7 +609,7 @@ if (goog.DEBUG && !COMPILED) {
607
609
  * @constructor
608
610
  */
609
611
  proto.config.MirrorItem = function(opt_data) {
610
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
612
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.config.MirrorItem.repeatedFields_, null);
611
613
  };
612
614
  goog.inherits(proto.config.MirrorItem, jspb.Message);
613
615
  if (goog.DEBUG && !COMPILED) {
@@ -659,6 +661,48 @@ if (goog.DEBUG && !COMPILED) {
659
661
  */
660
662
  proto.config.MirrorItemsResponse.displayName = 'proto.config.MirrorItemsResponse';
661
663
  }
664
+ /**
665
+ * Generated by JsPbCodeGenerator.
666
+ * @param {Array=} opt_data Optional initial data array, typically from a
667
+ * server response, or constructed directly in Javascript. The array is used
668
+ * in place and becomes part of the constructed object. It is not cloned.
669
+ * If no data is provided, the constructed object will be empty, but still
670
+ * valid.
671
+ * @extends {jspb.Message}
672
+ * @constructor
673
+ */
674
+ proto.config.MirrorStatusResponse = function(opt_data) {
675
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
676
+ };
677
+ goog.inherits(proto.config.MirrorStatusResponse, jspb.Message);
678
+ if (goog.DEBUG && !COMPILED) {
679
+ /**
680
+ * @public
681
+ * @override
682
+ */
683
+ proto.config.MirrorStatusResponse.displayName = 'proto.config.MirrorStatusResponse';
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
+ }
662
706
 
663
707
 
664
708
 
@@ -5862,6 +5906,13 @@ proto.config.ZonesResponse.prototype.clearItemsList = function() {
5862
5906
 
5863
5907
 
5864
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
+
5865
5916
 
5866
5917
 
5867
5918
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -5898,7 +5949,12 @@ proto.config.MirrorItem.toObject = function(includeInstance, msg) {
5898
5949
  zoneStatus: jspb.Message.getFieldWithDefault(msg, 3, ""),
5899
5950
  mainRecord: jspb.Message.getFieldWithDefault(msg, 4, ""),
5900
5951
  apiRecord: jspb.Message.getFieldWithDefault(msg, 5, ""),
5901
- 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)
5902
5958
  };
5903
5959
 
5904
5960
  if (includeInstance) {
@@ -5959,6 +6015,26 @@ proto.config.MirrorItem.deserializeBinaryFromReader = function(msg, reader) {
5959
6015
  var value = /** @type {string} */ (reader.readString());
5960
6016
  msg.setCdnRecord(value);
5961
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;
5962
6038
  default:
5963
6039
  reader.skipField();
5964
6040
  break;
@@ -6030,6 +6106,41 @@ proto.config.MirrorItem.serializeBinaryToWriter = function(message, writer) {
6030
6106
  f
6031
6107
  );
6032
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
+ }
6033
6144
  };
6034
6145
 
6035
6146
 
@@ -6195,6 +6306,187 @@ proto.config.MirrorItem.prototype.hasCdnRecord = function() {
6195
6306
  };
6196
6307
 
6197
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
+
6198
6490
 
6199
6491
 
6200
6492
 
@@ -6602,4 +6894,474 @@ proto.config.MirrorItemsResponse.prototype.hasTotalItems = function() {
6602
6894
  };
6603
6895
 
6604
6896
 
6897
+
6898
+
6899
+
6900
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6901
+ /**
6902
+ * Creates an object representation of this proto.
6903
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6904
+ * Optional fields that are not set will be set to undefined.
6905
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6906
+ * For the list of reserved names please see:
6907
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6908
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6909
+ * JSPB instance for transitional soy proto support:
6910
+ * http://goto/soy-param-migration
6911
+ * @return {!Object}
6912
+ */
6913
+ proto.config.MirrorStatusResponse.prototype.toObject = function(opt_includeInstance) {
6914
+ return proto.config.MirrorStatusResponse.toObject(opt_includeInstance, this);
6915
+ };
6916
+
6917
+
6918
+ /**
6919
+ * Static version of the {@see toObject} method.
6920
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6921
+ * the JSPB instance for transitional soy proto support:
6922
+ * http://goto/soy-param-migration
6923
+ * @param {!proto.config.MirrorStatusResponse} msg The msg instance to transform.
6924
+ * @return {!Object}
6925
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6926
+ */
6927
+ proto.config.MirrorStatusResponse.toObject = function(includeInstance, msg) {
6928
+ var f, obj = {
6929
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
6930
+ };
6931
+
6932
+ if (includeInstance) {
6933
+ obj.$jspbMessageInstance = msg;
6934
+ }
6935
+ return obj;
6936
+ };
6937
+ }
6938
+
6939
+
6940
+ /**
6941
+ * Deserializes binary data (in protobuf wire format).
6942
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6943
+ * @return {!proto.config.MirrorStatusResponse}
6944
+ */
6945
+ proto.config.MirrorStatusResponse.deserializeBinary = function(bytes) {
6946
+ var reader = new jspb.BinaryReader(bytes);
6947
+ var msg = new proto.config.MirrorStatusResponse;
6948
+ return proto.config.MirrorStatusResponse.deserializeBinaryFromReader(msg, reader);
6949
+ };
6950
+
6951
+
6952
+ /**
6953
+ * Deserializes binary data (in protobuf wire format) from the
6954
+ * given reader into the given message object.
6955
+ * @param {!proto.config.MirrorStatusResponse} msg The message object to deserialize into.
6956
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6957
+ * @return {!proto.config.MirrorStatusResponse}
6958
+ */
6959
+ proto.config.MirrorStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
6960
+ while (reader.nextField()) {
6961
+ if (reader.isEndGroup()) {
6962
+ break;
6963
+ }
6964
+ var field = reader.getFieldNumber();
6965
+ switch (field) {
6966
+ case 1:
6967
+ var value = /** @type {string} */ (reader.readString());
6968
+ msg.setStatus(value);
6969
+ break;
6970
+ default:
6971
+ reader.skipField();
6972
+ break;
6973
+ }
6974
+ }
6975
+ return msg;
6976
+ };
6977
+
6978
+
6979
+ /**
6980
+ * Serializes the message to binary data (in protobuf wire format).
6981
+ * @return {!Uint8Array}
6982
+ */
6983
+ proto.config.MirrorStatusResponse.prototype.serializeBinary = function() {
6984
+ var writer = new jspb.BinaryWriter();
6985
+ proto.config.MirrorStatusResponse.serializeBinaryToWriter(this, writer);
6986
+ return writer.getResultBuffer();
6987
+ };
6988
+
6989
+
6990
+ /**
6991
+ * Serializes the given message to binary data (in protobuf wire
6992
+ * format), writing to the given BinaryWriter.
6993
+ * @param {!proto.config.MirrorStatusResponse} message
6994
+ * @param {!jspb.BinaryWriter} writer
6995
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6996
+ */
6997
+ proto.config.MirrorStatusResponse.serializeBinaryToWriter = function(message, writer) {
6998
+ var f = undefined;
6999
+ f = message.getStatus();
7000
+ if (f.length > 0) {
7001
+ writer.writeString(
7002
+ 1,
7003
+ f
7004
+ );
7005
+ }
7006
+ };
7007
+
7008
+
7009
+ /**
7010
+ * optional string status = 1;
7011
+ * @return {string}
7012
+ */
7013
+ proto.config.MirrorStatusResponse.prototype.getStatus = function() {
7014
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7015
+ };
7016
+
7017
+
7018
+ /**
7019
+ * @param {string} value
7020
+ * @return {!proto.config.MirrorStatusResponse} returns this
7021
+ */
7022
+ proto.config.MirrorStatusResponse.prototype.setStatus = function(value) {
7023
+ return jspb.Message.setProto3StringField(this, 1, value);
7024
+ };
7025
+
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
+
6605
7367
  goog.object.extend(exports, proto.config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.87",
3
+ "version": "1.2.89",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {