protobuf-platform 1.2.95 → 1.2.97

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,10 +25,12 @@ 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 deleteZone(GetZoneRequest) returns (ZoneStatusResponse);
28
29
  rpc createMirror(ModifyMirrorRequest) returns (MirrorResponse);
29
30
  rpc updateMirror(ModifyMirrorRequest) returns (MirrorResponse);
30
31
  rpc getMirrorsList(PaginationRequest) returns (MirrorItemsResponse);
31
32
  rpc deleteSingleMirror(GetZoneRequest) returns (MirrorStatusResponse);
33
+ rpc enableSingleMirror(GetZoneRequest) returns (MirrorStatusResponse);
32
34
  rpc syncActivatedMirrors(GetZoneRequest) returns (ActivatedMirrorsResponse);
33
35
  }
34
36
 
@@ -165,6 +167,9 @@ message ZoneItemResponse {
165
167
  message ZonesResponse {
166
168
  repeated ZoneItem items = 1;
167
169
  }
170
+ message ZoneStatusResponse {
171
+ string status = 1;
172
+ }
168
173
  message MirrorItem {
169
174
  optional string domain = 1;
170
175
  optional string title = 2;
@@ -312,6 +312,17 @@ function deserialize_config_ZoneItemResponse(buffer_arg) {
312
312
  return config_pb.ZoneItemResponse.deserializeBinary(new Uint8Array(buffer_arg));
313
313
  }
314
314
 
315
+ function serialize_config_ZoneStatusResponse(arg) {
316
+ if (!(arg instanceof config_pb.ZoneStatusResponse)) {
317
+ throw new Error('Expected argument of type config.ZoneStatusResponse');
318
+ }
319
+ return Buffer.from(arg.serializeBinary());
320
+ }
321
+
322
+ function deserialize_config_ZoneStatusResponse(buffer_arg) {
323
+ return config_pb.ZoneStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
324
+ }
325
+
315
326
  function serialize_config_ZonesResponse(arg) {
316
327
  if (!(arg instanceof config_pb.ZonesResponse)) {
317
328
  throw new Error('Expected argument of type config.ZonesResponse');
@@ -487,6 +498,17 @@ getZonesList: {
487
498
  responseSerialize: serialize_config_ZoneItemResponse,
488
499
  responseDeserialize: deserialize_config_ZoneItemResponse,
489
500
  },
501
+ deleteZone: {
502
+ path: '/config.Config/deleteZone',
503
+ requestStream: false,
504
+ responseStream: false,
505
+ requestType: config_pb.GetZoneRequest,
506
+ responseType: config_pb.ZoneStatusResponse,
507
+ requestSerialize: serialize_config_GetZoneRequest,
508
+ requestDeserialize: deserialize_config_GetZoneRequest,
509
+ responseSerialize: serialize_config_ZoneStatusResponse,
510
+ responseDeserialize: deserialize_config_ZoneStatusResponse,
511
+ },
490
512
  createMirror: {
491
513
  path: '/config.Config/createMirror',
492
514
  requestStream: false,
@@ -531,6 +553,17 @@ getZonesList: {
531
553
  responseSerialize: serialize_config_MirrorStatusResponse,
532
554
  responseDeserialize: deserialize_config_MirrorStatusResponse,
533
555
  },
556
+ enableSingleMirror: {
557
+ path: '/config.Config/enableSingleMirror',
558
+ requestStream: false,
559
+ responseStream: false,
560
+ requestType: config_pb.GetZoneRequest,
561
+ responseType: config_pb.MirrorStatusResponse,
562
+ requestSerialize: serialize_config_GetZoneRequest,
563
+ requestDeserialize: deserialize_config_GetZoneRequest,
564
+ responseSerialize: serialize_config_MirrorStatusResponse,
565
+ responseDeserialize: deserialize_config_MirrorStatusResponse,
566
+ },
534
567
  syncActivatedMirrors: {
535
568
  path: '/config.Config/syncActivatedMirrors',
536
569
  requestStream: false,
@@ -53,6 +53,7 @@ goog.exportSymbol('proto.config.SettingsRequest', null, global);
53
53
  goog.exportSymbol('proto.config.SettingsResponse', null, global);
54
54
  goog.exportSymbol('proto.config.ZoneItem', null, global);
55
55
  goog.exportSymbol('proto.config.ZoneItemResponse', null, global);
56
+ goog.exportSymbol('proto.config.ZoneStatusResponse', null, global);
56
57
  goog.exportSymbol('proto.config.ZonesResponse', null, global);
57
58
  /**
58
59
  * Generated by JsPbCodeGenerator.
@@ -621,6 +622,27 @@ if (goog.DEBUG && !COMPILED) {
621
622
  */
622
623
  proto.config.ZonesResponse.displayName = 'proto.config.ZonesResponse';
623
624
  }
625
+ /**
626
+ * Generated by JsPbCodeGenerator.
627
+ * @param {Array=} opt_data Optional initial data array, typically from a
628
+ * server response, or constructed directly in Javascript. The array is used
629
+ * in place and becomes part of the constructed object. It is not cloned.
630
+ * If no data is provided, the constructed object will be empty, but still
631
+ * valid.
632
+ * @extends {jspb.Message}
633
+ * @constructor
634
+ */
635
+ proto.config.ZoneStatusResponse = function(opt_data) {
636
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
637
+ };
638
+ goog.inherits(proto.config.ZoneStatusResponse, jspb.Message);
639
+ if (goog.DEBUG && !COMPILED) {
640
+ /**
641
+ * @public
642
+ * @override
643
+ */
644
+ proto.config.ZoneStatusResponse.displayName = 'proto.config.ZoneStatusResponse';
645
+ }
624
646
  /**
625
647
  * Generated by JsPbCodeGenerator.
626
648
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6447,6 +6469,136 @@ proto.config.ZonesResponse.prototype.clearItemsList = function() {
6447
6469
 
6448
6470
 
6449
6471
 
6472
+
6473
+
6474
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6475
+ /**
6476
+ * Creates an object representation of this proto.
6477
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6478
+ * Optional fields that are not set will be set to undefined.
6479
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6480
+ * For the list of reserved names please see:
6481
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6482
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6483
+ * JSPB instance for transitional soy proto support:
6484
+ * http://goto/soy-param-migration
6485
+ * @return {!Object}
6486
+ */
6487
+ proto.config.ZoneStatusResponse.prototype.toObject = function(opt_includeInstance) {
6488
+ return proto.config.ZoneStatusResponse.toObject(opt_includeInstance, this);
6489
+ };
6490
+
6491
+
6492
+ /**
6493
+ * Static version of the {@see toObject} method.
6494
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6495
+ * the JSPB instance for transitional soy proto support:
6496
+ * http://goto/soy-param-migration
6497
+ * @param {!proto.config.ZoneStatusResponse} msg The msg instance to transform.
6498
+ * @return {!Object}
6499
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6500
+ */
6501
+ proto.config.ZoneStatusResponse.toObject = function(includeInstance, msg) {
6502
+ var f, obj = {
6503
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
6504
+ };
6505
+
6506
+ if (includeInstance) {
6507
+ obj.$jspbMessageInstance = msg;
6508
+ }
6509
+ return obj;
6510
+ };
6511
+ }
6512
+
6513
+
6514
+ /**
6515
+ * Deserializes binary data (in protobuf wire format).
6516
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6517
+ * @return {!proto.config.ZoneStatusResponse}
6518
+ */
6519
+ proto.config.ZoneStatusResponse.deserializeBinary = function(bytes) {
6520
+ var reader = new jspb.BinaryReader(bytes);
6521
+ var msg = new proto.config.ZoneStatusResponse;
6522
+ return proto.config.ZoneStatusResponse.deserializeBinaryFromReader(msg, reader);
6523
+ };
6524
+
6525
+
6526
+ /**
6527
+ * Deserializes binary data (in protobuf wire format) from the
6528
+ * given reader into the given message object.
6529
+ * @param {!proto.config.ZoneStatusResponse} msg The message object to deserialize into.
6530
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6531
+ * @return {!proto.config.ZoneStatusResponse}
6532
+ */
6533
+ proto.config.ZoneStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
6534
+ while (reader.nextField()) {
6535
+ if (reader.isEndGroup()) {
6536
+ break;
6537
+ }
6538
+ var field = reader.getFieldNumber();
6539
+ switch (field) {
6540
+ case 1:
6541
+ var value = /** @type {string} */ (reader.readString());
6542
+ msg.setStatus(value);
6543
+ break;
6544
+ default:
6545
+ reader.skipField();
6546
+ break;
6547
+ }
6548
+ }
6549
+ return msg;
6550
+ };
6551
+
6552
+
6553
+ /**
6554
+ * Serializes the message to binary data (in protobuf wire format).
6555
+ * @return {!Uint8Array}
6556
+ */
6557
+ proto.config.ZoneStatusResponse.prototype.serializeBinary = function() {
6558
+ var writer = new jspb.BinaryWriter();
6559
+ proto.config.ZoneStatusResponse.serializeBinaryToWriter(this, writer);
6560
+ return writer.getResultBuffer();
6561
+ };
6562
+
6563
+
6564
+ /**
6565
+ * Serializes the given message to binary data (in protobuf wire
6566
+ * format), writing to the given BinaryWriter.
6567
+ * @param {!proto.config.ZoneStatusResponse} message
6568
+ * @param {!jspb.BinaryWriter} writer
6569
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6570
+ */
6571
+ proto.config.ZoneStatusResponse.serializeBinaryToWriter = function(message, writer) {
6572
+ var f = undefined;
6573
+ f = message.getStatus();
6574
+ if (f.length > 0) {
6575
+ writer.writeString(
6576
+ 1,
6577
+ f
6578
+ );
6579
+ }
6580
+ };
6581
+
6582
+
6583
+ /**
6584
+ * optional string status = 1;
6585
+ * @return {string}
6586
+ */
6587
+ proto.config.ZoneStatusResponse.prototype.getStatus = function() {
6588
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6589
+ };
6590
+
6591
+
6592
+ /**
6593
+ * @param {string} value
6594
+ * @return {!proto.config.ZoneStatusResponse} returns this
6595
+ */
6596
+ proto.config.ZoneStatusResponse.prototype.setStatus = function(value) {
6597
+ return jspb.Message.setProto3StringField(this, 1, value);
6598
+ };
6599
+
6600
+
6601
+
6450
6602
  /**
6451
6603
  * List of repeated fields within this message type.
6452
6604
  * @private {!Array<number>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.95",
3
+ "version": "1.2.97",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {