protobuf-platform 1.2.87 → 1.2.88

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.
@@ -27,6 +27,7 @@ service Config {
27
27
  rpc createZone(GetZoneRequest) returns (ZoneItemResponse);
28
28
  rpc createMirror(GetZoneRequest) returns (MirrorResponse);
29
29
  rpc getMirrorsList(PaginationRequest) returns (MirrorItemsResponse);
30
+ rpc deleteSingleMirror(GetZoneRequest) returns (MirrorStatusResponse);
30
31
  }
31
32
 
32
33
  message PingRequest { string ping = 1; }
@@ -168,4 +169,7 @@ message MirrorItemsResponse {
168
169
  repeated MirrorItem items = 1;
169
170
  optional int32 total_pages = 2;
170
171
  optional int32 total_items = 3;
172
+ }
173
+ message MirrorStatusResponse {
174
+ string status = 1;
171
175
  }
@@ -158,6 +158,17 @@ 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
+
161
172
  function serialize_config_PaginationRequest(arg) {
162
173
  if (!(arg instanceof config_pb.PaginationRequest)) {
163
174
  throw new Error('Expected argument of type config.PaginationRequest');
@@ -476,6 +487,17 @@ getZonesList: {
476
487
  responseSerialize: serialize_config_MirrorItemsResponse,
477
488
  responseDeserialize: deserialize_config_MirrorItemsResponse,
478
489
  },
490
+ deleteSingleMirror: {
491
+ path: '/config.Config/deleteSingleMirror',
492
+ requestStream: false,
493
+ responseStream: false,
494
+ requestType: config_pb.GetZoneRequest,
495
+ responseType: config_pb.MirrorStatusResponse,
496
+ requestSerialize: serialize_config_GetZoneRequest,
497
+ requestDeserialize: deserialize_config_GetZoneRequest,
498
+ responseSerialize: serialize_config_MirrorStatusResponse,
499
+ responseDeserialize: deserialize_config_MirrorStatusResponse,
500
+ },
479
501
  };
480
502
 
481
503
  exports.ConfigClient = grpc.makeGenericClientConstructor(ConfigService, 'Config');
@@ -37,6 +37,7 @@ 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);
40
41
  goog.exportSymbol('proto.config.PaginationRequest', null, global);
41
42
  goog.exportSymbol('proto.config.PingRequest', null, global);
42
43
  goog.exportSymbol('proto.config.PongResponse', null, global);
@@ -659,6 +660,27 @@ if (goog.DEBUG && !COMPILED) {
659
660
  */
660
661
  proto.config.MirrorItemsResponse.displayName = 'proto.config.MirrorItemsResponse';
661
662
  }
663
+ /**
664
+ * Generated by JsPbCodeGenerator.
665
+ * @param {Array=} opt_data Optional initial data array, typically from a
666
+ * server response, or constructed directly in Javascript. The array is used
667
+ * in place and becomes part of the constructed object. It is not cloned.
668
+ * If no data is provided, the constructed object will be empty, but still
669
+ * valid.
670
+ * @extends {jspb.Message}
671
+ * @constructor
672
+ */
673
+ proto.config.MirrorStatusResponse = function(opt_data) {
674
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
675
+ };
676
+ goog.inherits(proto.config.MirrorStatusResponse, jspb.Message);
677
+ if (goog.DEBUG && !COMPILED) {
678
+ /**
679
+ * @public
680
+ * @override
681
+ */
682
+ proto.config.MirrorStatusResponse.displayName = 'proto.config.MirrorStatusResponse';
683
+ }
662
684
 
663
685
 
664
686
 
@@ -6602,4 +6624,134 @@ proto.config.MirrorItemsResponse.prototype.hasTotalItems = function() {
6602
6624
  };
6603
6625
 
6604
6626
 
6627
+
6628
+
6629
+
6630
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6631
+ /**
6632
+ * Creates an object representation of this proto.
6633
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6634
+ * Optional fields that are not set will be set to undefined.
6635
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6636
+ * For the list of reserved names please see:
6637
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6638
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6639
+ * JSPB instance for transitional soy proto support:
6640
+ * http://goto/soy-param-migration
6641
+ * @return {!Object}
6642
+ */
6643
+ proto.config.MirrorStatusResponse.prototype.toObject = function(opt_includeInstance) {
6644
+ return proto.config.MirrorStatusResponse.toObject(opt_includeInstance, this);
6645
+ };
6646
+
6647
+
6648
+ /**
6649
+ * Static version of the {@see toObject} method.
6650
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6651
+ * the JSPB instance for transitional soy proto support:
6652
+ * http://goto/soy-param-migration
6653
+ * @param {!proto.config.MirrorStatusResponse} msg The msg instance to transform.
6654
+ * @return {!Object}
6655
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6656
+ */
6657
+ proto.config.MirrorStatusResponse.toObject = function(includeInstance, msg) {
6658
+ var f, obj = {
6659
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
6660
+ };
6661
+
6662
+ if (includeInstance) {
6663
+ obj.$jspbMessageInstance = msg;
6664
+ }
6665
+ return obj;
6666
+ };
6667
+ }
6668
+
6669
+
6670
+ /**
6671
+ * Deserializes binary data (in protobuf wire format).
6672
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6673
+ * @return {!proto.config.MirrorStatusResponse}
6674
+ */
6675
+ proto.config.MirrorStatusResponse.deserializeBinary = function(bytes) {
6676
+ var reader = new jspb.BinaryReader(bytes);
6677
+ var msg = new proto.config.MirrorStatusResponse;
6678
+ return proto.config.MirrorStatusResponse.deserializeBinaryFromReader(msg, reader);
6679
+ };
6680
+
6681
+
6682
+ /**
6683
+ * Deserializes binary data (in protobuf wire format) from the
6684
+ * given reader into the given message object.
6685
+ * @param {!proto.config.MirrorStatusResponse} msg The message object to deserialize into.
6686
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6687
+ * @return {!proto.config.MirrorStatusResponse}
6688
+ */
6689
+ proto.config.MirrorStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
6690
+ while (reader.nextField()) {
6691
+ if (reader.isEndGroup()) {
6692
+ break;
6693
+ }
6694
+ var field = reader.getFieldNumber();
6695
+ switch (field) {
6696
+ case 1:
6697
+ var value = /** @type {string} */ (reader.readString());
6698
+ msg.setStatus(value);
6699
+ break;
6700
+ default:
6701
+ reader.skipField();
6702
+ break;
6703
+ }
6704
+ }
6705
+ return msg;
6706
+ };
6707
+
6708
+
6709
+ /**
6710
+ * Serializes the message to binary data (in protobuf wire format).
6711
+ * @return {!Uint8Array}
6712
+ */
6713
+ proto.config.MirrorStatusResponse.prototype.serializeBinary = function() {
6714
+ var writer = new jspb.BinaryWriter();
6715
+ proto.config.MirrorStatusResponse.serializeBinaryToWriter(this, writer);
6716
+ return writer.getResultBuffer();
6717
+ };
6718
+
6719
+
6720
+ /**
6721
+ * Serializes the given message to binary data (in protobuf wire
6722
+ * format), writing to the given BinaryWriter.
6723
+ * @param {!proto.config.MirrorStatusResponse} message
6724
+ * @param {!jspb.BinaryWriter} writer
6725
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6726
+ */
6727
+ proto.config.MirrorStatusResponse.serializeBinaryToWriter = function(message, writer) {
6728
+ var f = undefined;
6729
+ f = message.getStatus();
6730
+ if (f.length > 0) {
6731
+ writer.writeString(
6732
+ 1,
6733
+ f
6734
+ );
6735
+ }
6736
+ };
6737
+
6738
+
6739
+ /**
6740
+ * optional string status = 1;
6741
+ * @return {string}
6742
+ */
6743
+ proto.config.MirrorStatusResponse.prototype.getStatus = function() {
6744
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6745
+ };
6746
+
6747
+
6748
+ /**
6749
+ * @param {string} value
6750
+ * @return {!proto.config.MirrorStatusResponse} returns this
6751
+ */
6752
+ proto.config.MirrorStatusResponse.prototype.setStatus = function(value) {
6753
+ return jspb.Message.setProto3StringField(this, 1, value);
6754
+ };
6755
+
6756
+
6605
6757
  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.88",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {