protobuf-platform 1.2.91 → 1.2.92

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.
@@ -29,6 +29,7 @@ service Config {
29
29
  rpc updateMirror(ModifyMirrorRequest) returns (MirrorResponse);
30
30
  rpc getMirrorsList(PaginationRequest) returns (MirrorItemsResponse);
31
31
  rpc deleteSingleMirror(GetZoneRequest) returns (MirrorStatusResponse);
32
+ rpc syncActivatedMirrors(GetZoneRequest) returns (ActivatedMirrorsResponse);
32
33
  }
33
34
 
34
35
  message PingRequest { string ping = 1; }
@@ -191,4 +192,7 @@ message ModifyMirrorRequest {
191
192
  optional string priority = 3;
192
193
  optional string status = 4;
193
194
  optional int32 is_active = 5;
195
+ }
196
+ message ActivatedMirrorsResponse {
197
+ repeated string domains = 1;
194
198
  }
@@ -4,6 +4,17 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var config_pb = require('./config_pb.js');
6
6
 
7
+ function serialize_config_ActivatedMirrorsResponse(arg) {
8
+ if (!(arg instanceof config_pb.ActivatedMirrorsResponse)) {
9
+ throw new Error('Expected argument of type config.ActivatedMirrorsResponse');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_config_ActivatedMirrorsResponse(buffer_arg) {
15
+ return config_pb.ActivatedMirrorsResponse.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
7
18
  function serialize_config_CommonCountriesRequest(arg) {
8
19
  if (!(arg instanceof config_pb.CommonCountriesRequest)) {
9
20
  throw new Error('Expected argument of type config.CommonCountriesRequest');
@@ -520,6 +531,17 @@ getZonesList: {
520
531
  responseSerialize: serialize_config_MirrorStatusResponse,
521
532
  responseDeserialize: deserialize_config_MirrorStatusResponse,
522
533
  },
534
+ syncActivatedMirrors: {
535
+ path: '/config.Config/syncActivatedMirrors',
536
+ requestStream: false,
537
+ responseStream: false,
538
+ requestType: config_pb.GetZoneRequest,
539
+ responseType: config_pb.ActivatedMirrorsResponse,
540
+ requestSerialize: serialize_config_GetZoneRequest,
541
+ requestDeserialize: deserialize_config_GetZoneRequest,
542
+ responseSerialize: serialize_config_ActivatedMirrorsResponse,
543
+ responseDeserialize: deserialize_config_ActivatedMirrorsResponse,
544
+ },
523
545
  };
524
546
 
525
547
  exports.ConfigClient = grpc.makeGenericClientConstructor(ConfigService, 'Config');
@@ -21,6 +21,7 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.config.ActivatedMirrorsResponse', null, global);
24
25
  goog.exportSymbol('proto.config.CommonCountriesRequest', null, global);
25
26
  goog.exportSymbol('proto.config.CommonCountriesResponse', null, global);
26
27
  goog.exportSymbol('proto.config.ConfigDataResponse', null, global);
@@ -725,6 +726,27 @@ if (goog.DEBUG && !COMPILED) {
725
726
  */
726
727
  proto.config.ModifyMirrorRequest.displayName = 'proto.config.ModifyMirrorRequest';
727
728
  }
729
+ /**
730
+ * Generated by JsPbCodeGenerator.
731
+ * @param {Array=} opt_data Optional initial data array, typically from a
732
+ * server response, or constructed directly in Javascript. The array is used
733
+ * in place and becomes part of the constructed object. It is not cloned.
734
+ * If no data is provided, the constructed object will be empty, but still
735
+ * valid.
736
+ * @extends {jspb.Message}
737
+ * @constructor
738
+ */
739
+ proto.config.ActivatedMirrorsResponse = function(opt_data) {
740
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.config.ActivatedMirrorsResponse.repeatedFields_, null);
741
+ };
742
+ goog.inherits(proto.config.ActivatedMirrorsResponse, jspb.Message);
743
+ if (goog.DEBUG && !COMPILED) {
744
+ /**
745
+ * @public
746
+ * @override
747
+ */
748
+ proto.config.ActivatedMirrorsResponse.displayName = 'proto.config.ActivatedMirrorsResponse';
749
+ }
728
750
 
729
751
 
730
752
 
@@ -7793,4 +7815,160 @@ proto.config.ModifyMirrorRequest.prototype.hasIsActive = function() {
7793
7815
  };
7794
7816
 
7795
7817
 
7818
+
7819
+ /**
7820
+ * List of repeated fields within this message type.
7821
+ * @private {!Array<number>}
7822
+ * @const
7823
+ */
7824
+ proto.config.ActivatedMirrorsResponse.repeatedFields_ = [1];
7825
+
7826
+
7827
+
7828
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7829
+ /**
7830
+ * Creates an object representation of this proto.
7831
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7832
+ * Optional fields that are not set will be set to undefined.
7833
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7834
+ * For the list of reserved names please see:
7835
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7836
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7837
+ * JSPB instance for transitional soy proto support:
7838
+ * http://goto/soy-param-migration
7839
+ * @return {!Object}
7840
+ */
7841
+ proto.config.ActivatedMirrorsResponse.prototype.toObject = function(opt_includeInstance) {
7842
+ return proto.config.ActivatedMirrorsResponse.toObject(opt_includeInstance, this);
7843
+ };
7844
+
7845
+
7846
+ /**
7847
+ * Static version of the {@see toObject} method.
7848
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7849
+ * the JSPB instance for transitional soy proto support:
7850
+ * http://goto/soy-param-migration
7851
+ * @param {!proto.config.ActivatedMirrorsResponse} msg The msg instance to transform.
7852
+ * @return {!Object}
7853
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7854
+ */
7855
+ proto.config.ActivatedMirrorsResponse.toObject = function(includeInstance, msg) {
7856
+ var f, obj = {
7857
+ domainsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
7858
+ };
7859
+
7860
+ if (includeInstance) {
7861
+ obj.$jspbMessageInstance = msg;
7862
+ }
7863
+ return obj;
7864
+ };
7865
+ }
7866
+
7867
+
7868
+ /**
7869
+ * Deserializes binary data (in protobuf wire format).
7870
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7871
+ * @return {!proto.config.ActivatedMirrorsResponse}
7872
+ */
7873
+ proto.config.ActivatedMirrorsResponse.deserializeBinary = function(bytes) {
7874
+ var reader = new jspb.BinaryReader(bytes);
7875
+ var msg = new proto.config.ActivatedMirrorsResponse;
7876
+ return proto.config.ActivatedMirrorsResponse.deserializeBinaryFromReader(msg, reader);
7877
+ };
7878
+
7879
+
7880
+ /**
7881
+ * Deserializes binary data (in protobuf wire format) from the
7882
+ * given reader into the given message object.
7883
+ * @param {!proto.config.ActivatedMirrorsResponse} msg The message object to deserialize into.
7884
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7885
+ * @return {!proto.config.ActivatedMirrorsResponse}
7886
+ */
7887
+ proto.config.ActivatedMirrorsResponse.deserializeBinaryFromReader = function(msg, reader) {
7888
+ while (reader.nextField()) {
7889
+ if (reader.isEndGroup()) {
7890
+ break;
7891
+ }
7892
+ var field = reader.getFieldNumber();
7893
+ switch (field) {
7894
+ case 1:
7895
+ var value = /** @type {string} */ (reader.readString());
7896
+ msg.addDomains(value);
7897
+ break;
7898
+ default:
7899
+ reader.skipField();
7900
+ break;
7901
+ }
7902
+ }
7903
+ return msg;
7904
+ };
7905
+
7906
+
7907
+ /**
7908
+ * Serializes the message to binary data (in protobuf wire format).
7909
+ * @return {!Uint8Array}
7910
+ */
7911
+ proto.config.ActivatedMirrorsResponse.prototype.serializeBinary = function() {
7912
+ var writer = new jspb.BinaryWriter();
7913
+ proto.config.ActivatedMirrorsResponse.serializeBinaryToWriter(this, writer);
7914
+ return writer.getResultBuffer();
7915
+ };
7916
+
7917
+
7918
+ /**
7919
+ * Serializes the given message to binary data (in protobuf wire
7920
+ * format), writing to the given BinaryWriter.
7921
+ * @param {!proto.config.ActivatedMirrorsResponse} message
7922
+ * @param {!jspb.BinaryWriter} writer
7923
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7924
+ */
7925
+ proto.config.ActivatedMirrorsResponse.serializeBinaryToWriter = function(message, writer) {
7926
+ var f = undefined;
7927
+ f = message.getDomainsList();
7928
+ if (f.length > 0) {
7929
+ writer.writeRepeatedString(
7930
+ 1,
7931
+ f
7932
+ );
7933
+ }
7934
+ };
7935
+
7936
+
7937
+ /**
7938
+ * repeated string domains = 1;
7939
+ * @return {!Array<string>}
7940
+ */
7941
+ proto.config.ActivatedMirrorsResponse.prototype.getDomainsList = function() {
7942
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
7943
+ };
7944
+
7945
+
7946
+ /**
7947
+ * @param {!Array<string>} value
7948
+ * @return {!proto.config.ActivatedMirrorsResponse} returns this
7949
+ */
7950
+ proto.config.ActivatedMirrorsResponse.prototype.setDomainsList = function(value) {
7951
+ return jspb.Message.setField(this, 1, value || []);
7952
+ };
7953
+
7954
+
7955
+ /**
7956
+ * @param {string} value
7957
+ * @param {number=} opt_index
7958
+ * @return {!proto.config.ActivatedMirrorsResponse} returns this
7959
+ */
7960
+ proto.config.ActivatedMirrorsResponse.prototype.addDomains = function(value, opt_index) {
7961
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
7962
+ };
7963
+
7964
+
7965
+ /**
7966
+ * Clears the list making it empty but non-null.
7967
+ * @return {!proto.config.ActivatedMirrorsResponse} returns this
7968
+ */
7969
+ proto.config.ActivatedMirrorsResponse.prototype.clearDomainsList = function() {
7970
+ return this.setDomainsList([]);
7971
+ };
7972
+
7973
+
7796
7974
  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.91",
3
+ "version": "1.2.92",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {