protobuf-platform 1.2.83 → 1.2.85

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.
@@ -21,6 +21,9 @@ service Config {
21
21
  //File Uploads: R2
22
22
  rpc uploadR2File(R2FileRequest) returns (R2FileResponse);
23
23
  rpc getR2FilesList(R2FileListRequest) returns (R2FileListResponse);
24
+ //Cloud Flare
25
+ rpc getZonesList(GetZoneRequest) returns (ZonesResponse);
26
+ rpc getZone(GetZoneRequest) returns (ZoneItemResponse);
24
27
  }
25
28
 
26
29
  message PingRequest { string ping = 1; }
@@ -122,4 +125,22 @@ message R2FileListRequest {
122
125
  }
123
126
  message R2FileListResponse {
124
127
  repeated string filename = 1;
128
+ }
129
+ //Cloud Flare
130
+ message GetZoneRequest {
131
+ optional string domain = 1;
132
+ }
133
+ message ZoneItem {
134
+ string id = 1;
135
+ string name = 2;
136
+ string status = 3;
137
+ optional string account_id = 4;
138
+ optional string account_name = 5;
139
+ optional string type = 6;
140
+ }
141
+ message ZoneItemResponse {
142
+ ZoneItem data = 1;
143
+ }
144
+ message ZonesResponse {
145
+ repeated ZoneItem items = 1;
125
146
  }
@@ -114,6 +114,17 @@ function deserialize_config_GeneratedTextResponse(buffer_arg) {
114
114
  return config_pb.GeneratedTextResponse.deserializeBinary(new Uint8Array(buffer_arg));
115
115
  }
116
116
 
117
+ function serialize_config_GetZoneRequest(arg) {
118
+ if (!(arg instanceof config_pb.GetZoneRequest)) {
119
+ throw new Error('Expected argument of type config.GetZoneRequest');
120
+ }
121
+ return Buffer.from(arg.serializeBinary());
122
+ }
123
+
124
+ function deserialize_config_GetZoneRequest(buffer_arg) {
125
+ return config_pb.GetZoneRequest.deserializeBinary(new Uint8Array(buffer_arg));
126
+ }
127
+
117
128
  function serialize_config_GlobalDataRequest(arg) {
118
129
  if (!(arg instanceof config_pb.GlobalDataRequest)) {
119
130
  throw new Error('Expected argument of type config.GlobalDataRequest');
@@ -224,6 +235,28 @@ function deserialize_config_SettingsResponse(buffer_arg) {
224
235
  return config_pb.SettingsResponse.deserializeBinary(new Uint8Array(buffer_arg));
225
236
  }
226
237
 
238
+ function serialize_config_ZoneItemResponse(arg) {
239
+ if (!(arg instanceof config_pb.ZoneItemResponse)) {
240
+ throw new Error('Expected argument of type config.ZoneItemResponse');
241
+ }
242
+ return Buffer.from(arg.serializeBinary());
243
+ }
244
+
245
+ function deserialize_config_ZoneItemResponse(buffer_arg) {
246
+ return config_pb.ZoneItemResponse.deserializeBinary(new Uint8Array(buffer_arg));
247
+ }
248
+
249
+ function serialize_config_ZonesResponse(arg) {
250
+ if (!(arg instanceof config_pb.ZonesResponse)) {
251
+ throw new Error('Expected argument of type config.ZonesResponse');
252
+ }
253
+ return Buffer.from(arg.serializeBinary());
254
+ }
255
+
256
+ function deserialize_config_ZonesResponse(buffer_arg) {
257
+ return config_pb.ZonesResponse.deserializeBinary(new Uint8Array(buffer_arg));
258
+ }
259
+
227
260
 
228
261
  var ConfigService = exports.ConfigService = {
229
262
  checkConnection: {
@@ -354,6 +387,29 @@ uploadR2File: {
354
387
  responseSerialize: serialize_config_R2FileListResponse,
355
388
  responseDeserialize: deserialize_config_R2FileListResponse,
356
389
  },
390
+ // Cloud Flare
391
+ getZonesList: {
392
+ path: '/config.Config/getZonesList',
393
+ requestStream: false,
394
+ responseStream: false,
395
+ requestType: config_pb.GetZoneRequest,
396
+ responseType: config_pb.ZonesResponse,
397
+ requestSerialize: serialize_config_GetZoneRequest,
398
+ requestDeserialize: deserialize_config_GetZoneRequest,
399
+ responseSerialize: serialize_config_ZonesResponse,
400
+ responseDeserialize: deserialize_config_ZonesResponse,
401
+ },
402
+ getZone: {
403
+ path: '/config.Config/getZone',
404
+ requestStream: false,
405
+ responseStream: false,
406
+ requestType: config_pb.GetZoneRequest,
407
+ responseType: config_pb.ZoneItemResponse,
408
+ requestSerialize: serialize_config_GetZoneRequest,
409
+ requestDeserialize: deserialize_config_GetZoneRequest,
410
+ responseSerialize: serialize_config_ZoneItemResponse,
411
+ responseDeserialize: deserialize_config_ZoneItemResponse,
412
+ },
357
413
  };
358
414
 
359
415
  exports.ConfigClient = grpc.makeGenericClientConstructor(ConfigService, 'Config');
@@ -32,6 +32,7 @@ goog.exportSymbol('proto.config.CurrencyRateResponse', null, global);
32
32
  goog.exportSymbol('proto.config.ErrorRequest', null, global);
33
33
  goog.exportSymbol('proto.config.ErrorStatusResponse', null, global);
34
34
  goog.exportSymbol('proto.config.GeneratedTextResponse', null, global);
35
+ goog.exportSymbol('proto.config.GetZoneRequest', null, global);
35
36
  goog.exportSymbol('proto.config.GlobalDataRequest', null, global);
36
37
  goog.exportSymbol('proto.config.PingRequest', null, global);
37
38
  goog.exportSymbol('proto.config.PongResponse', null, global);
@@ -42,6 +43,9 @@ goog.exportSymbol('proto.config.R2FileRequest', null, global);
42
43
  goog.exportSymbol('proto.config.R2FileResponse', null, global);
43
44
  goog.exportSymbol('proto.config.SettingsRequest', null, global);
44
45
  goog.exportSymbol('proto.config.SettingsResponse', null, global);
46
+ goog.exportSymbol('proto.config.ZoneItem', null, global);
47
+ goog.exportSymbol('proto.config.ZoneItemResponse', null, global);
48
+ goog.exportSymbol('proto.config.ZonesResponse', null, global);
45
49
  /**
46
50
  * Generated by JsPbCodeGenerator.
47
51
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -483,6 +487,90 @@ if (goog.DEBUG && !COMPILED) {
483
487
  */
484
488
  proto.config.R2FileListResponse.displayName = 'proto.config.R2FileListResponse';
485
489
  }
490
+ /**
491
+ * Generated by JsPbCodeGenerator.
492
+ * @param {Array=} opt_data Optional initial data array, typically from a
493
+ * server response, or constructed directly in Javascript. The array is used
494
+ * in place and becomes part of the constructed object. It is not cloned.
495
+ * If no data is provided, the constructed object will be empty, but still
496
+ * valid.
497
+ * @extends {jspb.Message}
498
+ * @constructor
499
+ */
500
+ proto.config.GetZoneRequest = function(opt_data) {
501
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
502
+ };
503
+ goog.inherits(proto.config.GetZoneRequest, jspb.Message);
504
+ if (goog.DEBUG && !COMPILED) {
505
+ /**
506
+ * @public
507
+ * @override
508
+ */
509
+ proto.config.GetZoneRequest.displayName = 'proto.config.GetZoneRequest';
510
+ }
511
+ /**
512
+ * Generated by JsPbCodeGenerator.
513
+ * @param {Array=} opt_data Optional initial data array, typically from a
514
+ * server response, or constructed directly in Javascript. The array is used
515
+ * in place and becomes part of the constructed object. It is not cloned.
516
+ * If no data is provided, the constructed object will be empty, but still
517
+ * valid.
518
+ * @extends {jspb.Message}
519
+ * @constructor
520
+ */
521
+ proto.config.ZoneItem = function(opt_data) {
522
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
523
+ };
524
+ goog.inherits(proto.config.ZoneItem, jspb.Message);
525
+ if (goog.DEBUG && !COMPILED) {
526
+ /**
527
+ * @public
528
+ * @override
529
+ */
530
+ proto.config.ZoneItem.displayName = 'proto.config.ZoneItem';
531
+ }
532
+ /**
533
+ * Generated by JsPbCodeGenerator.
534
+ * @param {Array=} opt_data Optional initial data array, typically from a
535
+ * server response, or constructed directly in Javascript. The array is used
536
+ * in place and becomes part of the constructed object. It is not cloned.
537
+ * If no data is provided, the constructed object will be empty, but still
538
+ * valid.
539
+ * @extends {jspb.Message}
540
+ * @constructor
541
+ */
542
+ proto.config.ZoneItemResponse = function(opt_data) {
543
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
544
+ };
545
+ goog.inherits(proto.config.ZoneItemResponse, jspb.Message);
546
+ if (goog.DEBUG && !COMPILED) {
547
+ /**
548
+ * @public
549
+ * @override
550
+ */
551
+ proto.config.ZoneItemResponse.displayName = 'proto.config.ZoneItemResponse';
552
+ }
553
+ /**
554
+ * Generated by JsPbCodeGenerator.
555
+ * @param {Array=} opt_data Optional initial data array, typically from a
556
+ * server response, or constructed directly in Javascript. The array is used
557
+ * in place and becomes part of the constructed object. It is not cloned.
558
+ * If no data is provided, the constructed object will be empty, but still
559
+ * valid.
560
+ * @extends {jspb.Message}
561
+ * @constructor
562
+ */
563
+ proto.config.ZonesResponse = function(opt_data) {
564
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.config.ZonesResponse.repeatedFields_, null);
565
+ };
566
+ goog.inherits(proto.config.ZonesResponse, jspb.Message);
567
+ if (goog.DEBUG && !COMPILED) {
568
+ /**
569
+ * @public
570
+ * @override
571
+ */
572
+ proto.config.ZonesResponse.displayName = 'proto.config.ZonesResponse';
573
+ }
486
574
 
487
575
 
488
576
 
@@ -4636,4 +4724,797 @@ proto.config.R2FileListResponse.prototype.clearFilenameList = function() {
4636
4724
  };
4637
4725
 
4638
4726
 
4727
+
4728
+
4729
+
4730
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4731
+ /**
4732
+ * Creates an object representation of this proto.
4733
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4734
+ * Optional fields that are not set will be set to undefined.
4735
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4736
+ * For the list of reserved names please see:
4737
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4738
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4739
+ * JSPB instance for transitional soy proto support:
4740
+ * http://goto/soy-param-migration
4741
+ * @return {!Object}
4742
+ */
4743
+ proto.config.GetZoneRequest.prototype.toObject = function(opt_includeInstance) {
4744
+ return proto.config.GetZoneRequest.toObject(opt_includeInstance, this);
4745
+ };
4746
+
4747
+
4748
+ /**
4749
+ * Static version of the {@see toObject} method.
4750
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4751
+ * the JSPB instance for transitional soy proto support:
4752
+ * http://goto/soy-param-migration
4753
+ * @param {!proto.config.GetZoneRequest} msg The msg instance to transform.
4754
+ * @return {!Object}
4755
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4756
+ */
4757
+ proto.config.GetZoneRequest.toObject = function(includeInstance, msg) {
4758
+ var f, obj = {
4759
+ domain: jspb.Message.getFieldWithDefault(msg, 1, "")
4760
+ };
4761
+
4762
+ if (includeInstance) {
4763
+ obj.$jspbMessageInstance = msg;
4764
+ }
4765
+ return obj;
4766
+ };
4767
+ }
4768
+
4769
+
4770
+ /**
4771
+ * Deserializes binary data (in protobuf wire format).
4772
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4773
+ * @return {!proto.config.GetZoneRequest}
4774
+ */
4775
+ proto.config.GetZoneRequest.deserializeBinary = function(bytes) {
4776
+ var reader = new jspb.BinaryReader(bytes);
4777
+ var msg = new proto.config.GetZoneRequest;
4778
+ return proto.config.GetZoneRequest.deserializeBinaryFromReader(msg, reader);
4779
+ };
4780
+
4781
+
4782
+ /**
4783
+ * Deserializes binary data (in protobuf wire format) from the
4784
+ * given reader into the given message object.
4785
+ * @param {!proto.config.GetZoneRequest} msg The message object to deserialize into.
4786
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4787
+ * @return {!proto.config.GetZoneRequest}
4788
+ */
4789
+ proto.config.GetZoneRequest.deserializeBinaryFromReader = function(msg, reader) {
4790
+ while (reader.nextField()) {
4791
+ if (reader.isEndGroup()) {
4792
+ break;
4793
+ }
4794
+ var field = reader.getFieldNumber();
4795
+ switch (field) {
4796
+ case 1:
4797
+ var value = /** @type {string} */ (reader.readString());
4798
+ msg.setDomain(value);
4799
+ break;
4800
+ default:
4801
+ reader.skipField();
4802
+ break;
4803
+ }
4804
+ }
4805
+ return msg;
4806
+ };
4807
+
4808
+
4809
+ /**
4810
+ * Serializes the message to binary data (in protobuf wire format).
4811
+ * @return {!Uint8Array}
4812
+ */
4813
+ proto.config.GetZoneRequest.prototype.serializeBinary = function() {
4814
+ var writer = new jspb.BinaryWriter();
4815
+ proto.config.GetZoneRequest.serializeBinaryToWriter(this, writer);
4816
+ return writer.getResultBuffer();
4817
+ };
4818
+
4819
+
4820
+ /**
4821
+ * Serializes the given message to binary data (in protobuf wire
4822
+ * format), writing to the given BinaryWriter.
4823
+ * @param {!proto.config.GetZoneRequest} message
4824
+ * @param {!jspb.BinaryWriter} writer
4825
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4826
+ */
4827
+ proto.config.GetZoneRequest.serializeBinaryToWriter = function(message, writer) {
4828
+ var f = undefined;
4829
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
4830
+ if (f != null) {
4831
+ writer.writeString(
4832
+ 1,
4833
+ f
4834
+ );
4835
+ }
4836
+ };
4837
+
4838
+
4839
+ /**
4840
+ * optional string domain = 1;
4841
+ * @return {string}
4842
+ */
4843
+ proto.config.GetZoneRequest.prototype.getDomain = function() {
4844
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4845
+ };
4846
+
4847
+
4848
+ /**
4849
+ * @param {string} value
4850
+ * @return {!proto.config.GetZoneRequest} returns this
4851
+ */
4852
+ proto.config.GetZoneRequest.prototype.setDomain = function(value) {
4853
+ return jspb.Message.setField(this, 1, value);
4854
+ };
4855
+
4856
+
4857
+ /**
4858
+ * Clears the field making it undefined.
4859
+ * @return {!proto.config.GetZoneRequest} returns this
4860
+ */
4861
+ proto.config.GetZoneRequest.prototype.clearDomain = function() {
4862
+ return jspb.Message.setField(this, 1, undefined);
4863
+ };
4864
+
4865
+
4866
+ /**
4867
+ * Returns whether this field is set.
4868
+ * @return {boolean}
4869
+ */
4870
+ proto.config.GetZoneRequest.prototype.hasDomain = function() {
4871
+ return jspb.Message.getField(this, 1) != null;
4872
+ };
4873
+
4874
+
4875
+
4876
+
4877
+
4878
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4879
+ /**
4880
+ * Creates an object representation of this proto.
4881
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4882
+ * Optional fields that are not set will be set to undefined.
4883
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4884
+ * For the list of reserved names please see:
4885
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4886
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4887
+ * JSPB instance for transitional soy proto support:
4888
+ * http://goto/soy-param-migration
4889
+ * @return {!Object}
4890
+ */
4891
+ proto.config.ZoneItem.prototype.toObject = function(opt_includeInstance) {
4892
+ return proto.config.ZoneItem.toObject(opt_includeInstance, this);
4893
+ };
4894
+
4895
+
4896
+ /**
4897
+ * Static version of the {@see toObject} method.
4898
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4899
+ * the JSPB instance for transitional soy proto support:
4900
+ * http://goto/soy-param-migration
4901
+ * @param {!proto.config.ZoneItem} msg The msg instance to transform.
4902
+ * @return {!Object}
4903
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4904
+ */
4905
+ proto.config.ZoneItem.toObject = function(includeInstance, msg) {
4906
+ var f, obj = {
4907
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
4908
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
4909
+ status: jspb.Message.getFieldWithDefault(msg, 3, ""),
4910
+ accountId: jspb.Message.getFieldWithDefault(msg, 4, ""),
4911
+ accountName: jspb.Message.getFieldWithDefault(msg, 5, ""),
4912
+ type: jspb.Message.getFieldWithDefault(msg, 6, "")
4913
+ };
4914
+
4915
+ if (includeInstance) {
4916
+ obj.$jspbMessageInstance = msg;
4917
+ }
4918
+ return obj;
4919
+ };
4920
+ }
4921
+
4922
+
4923
+ /**
4924
+ * Deserializes binary data (in protobuf wire format).
4925
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4926
+ * @return {!proto.config.ZoneItem}
4927
+ */
4928
+ proto.config.ZoneItem.deserializeBinary = function(bytes) {
4929
+ var reader = new jspb.BinaryReader(bytes);
4930
+ var msg = new proto.config.ZoneItem;
4931
+ return proto.config.ZoneItem.deserializeBinaryFromReader(msg, reader);
4932
+ };
4933
+
4934
+
4935
+ /**
4936
+ * Deserializes binary data (in protobuf wire format) from the
4937
+ * given reader into the given message object.
4938
+ * @param {!proto.config.ZoneItem} msg The message object to deserialize into.
4939
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4940
+ * @return {!proto.config.ZoneItem}
4941
+ */
4942
+ proto.config.ZoneItem.deserializeBinaryFromReader = function(msg, reader) {
4943
+ while (reader.nextField()) {
4944
+ if (reader.isEndGroup()) {
4945
+ break;
4946
+ }
4947
+ var field = reader.getFieldNumber();
4948
+ switch (field) {
4949
+ case 1:
4950
+ var value = /** @type {string} */ (reader.readString());
4951
+ msg.setId(value);
4952
+ break;
4953
+ case 2:
4954
+ var value = /** @type {string} */ (reader.readString());
4955
+ msg.setName(value);
4956
+ break;
4957
+ case 3:
4958
+ var value = /** @type {string} */ (reader.readString());
4959
+ msg.setStatus(value);
4960
+ break;
4961
+ case 4:
4962
+ var value = /** @type {string} */ (reader.readString());
4963
+ msg.setAccountId(value);
4964
+ break;
4965
+ case 5:
4966
+ var value = /** @type {string} */ (reader.readString());
4967
+ msg.setAccountName(value);
4968
+ break;
4969
+ case 6:
4970
+ var value = /** @type {string} */ (reader.readString());
4971
+ msg.setType(value);
4972
+ break;
4973
+ default:
4974
+ reader.skipField();
4975
+ break;
4976
+ }
4977
+ }
4978
+ return msg;
4979
+ };
4980
+
4981
+
4982
+ /**
4983
+ * Serializes the message to binary data (in protobuf wire format).
4984
+ * @return {!Uint8Array}
4985
+ */
4986
+ proto.config.ZoneItem.prototype.serializeBinary = function() {
4987
+ var writer = new jspb.BinaryWriter();
4988
+ proto.config.ZoneItem.serializeBinaryToWriter(this, writer);
4989
+ return writer.getResultBuffer();
4990
+ };
4991
+
4992
+
4993
+ /**
4994
+ * Serializes the given message to binary data (in protobuf wire
4995
+ * format), writing to the given BinaryWriter.
4996
+ * @param {!proto.config.ZoneItem} message
4997
+ * @param {!jspb.BinaryWriter} writer
4998
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4999
+ */
5000
+ proto.config.ZoneItem.serializeBinaryToWriter = function(message, writer) {
5001
+ var f = undefined;
5002
+ f = message.getId();
5003
+ if (f.length > 0) {
5004
+ writer.writeString(
5005
+ 1,
5006
+ f
5007
+ );
5008
+ }
5009
+ f = message.getName();
5010
+ if (f.length > 0) {
5011
+ writer.writeString(
5012
+ 2,
5013
+ f
5014
+ );
5015
+ }
5016
+ f = message.getStatus();
5017
+ if (f.length > 0) {
5018
+ writer.writeString(
5019
+ 3,
5020
+ f
5021
+ );
5022
+ }
5023
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
5024
+ if (f != null) {
5025
+ writer.writeString(
5026
+ 4,
5027
+ f
5028
+ );
5029
+ }
5030
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
5031
+ if (f != null) {
5032
+ writer.writeString(
5033
+ 5,
5034
+ f
5035
+ );
5036
+ }
5037
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
5038
+ if (f != null) {
5039
+ writer.writeString(
5040
+ 6,
5041
+ f
5042
+ );
5043
+ }
5044
+ };
5045
+
5046
+
5047
+ /**
5048
+ * optional string id = 1;
5049
+ * @return {string}
5050
+ */
5051
+ proto.config.ZoneItem.prototype.getId = function() {
5052
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5053
+ };
5054
+
5055
+
5056
+ /**
5057
+ * @param {string} value
5058
+ * @return {!proto.config.ZoneItem} returns this
5059
+ */
5060
+ proto.config.ZoneItem.prototype.setId = function(value) {
5061
+ return jspb.Message.setProto3StringField(this, 1, value);
5062
+ };
5063
+
5064
+
5065
+ /**
5066
+ * optional string name = 2;
5067
+ * @return {string}
5068
+ */
5069
+ proto.config.ZoneItem.prototype.getName = function() {
5070
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5071
+ };
5072
+
5073
+
5074
+ /**
5075
+ * @param {string} value
5076
+ * @return {!proto.config.ZoneItem} returns this
5077
+ */
5078
+ proto.config.ZoneItem.prototype.setName = function(value) {
5079
+ return jspb.Message.setProto3StringField(this, 2, value);
5080
+ };
5081
+
5082
+
5083
+ /**
5084
+ * optional string status = 3;
5085
+ * @return {string}
5086
+ */
5087
+ proto.config.ZoneItem.prototype.getStatus = function() {
5088
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5089
+ };
5090
+
5091
+
5092
+ /**
5093
+ * @param {string} value
5094
+ * @return {!proto.config.ZoneItem} returns this
5095
+ */
5096
+ proto.config.ZoneItem.prototype.setStatus = function(value) {
5097
+ return jspb.Message.setProto3StringField(this, 3, value);
5098
+ };
5099
+
5100
+
5101
+ /**
5102
+ * optional string account_id = 4;
5103
+ * @return {string}
5104
+ */
5105
+ proto.config.ZoneItem.prototype.getAccountId = function() {
5106
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5107
+ };
5108
+
5109
+
5110
+ /**
5111
+ * @param {string} value
5112
+ * @return {!proto.config.ZoneItem} returns this
5113
+ */
5114
+ proto.config.ZoneItem.prototype.setAccountId = function(value) {
5115
+ return jspb.Message.setField(this, 4, value);
5116
+ };
5117
+
5118
+
5119
+ /**
5120
+ * Clears the field making it undefined.
5121
+ * @return {!proto.config.ZoneItem} returns this
5122
+ */
5123
+ proto.config.ZoneItem.prototype.clearAccountId = function() {
5124
+ return jspb.Message.setField(this, 4, undefined);
5125
+ };
5126
+
5127
+
5128
+ /**
5129
+ * Returns whether this field is set.
5130
+ * @return {boolean}
5131
+ */
5132
+ proto.config.ZoneItem.prototype.hasAccountId = function() {
5133
+ return jspb.Message.getField(this, 4) != null;
5134
+ };
5135
+
5136
+
5137
+ /**
5138
+ * optional string account_name = 5;
5139
+ * @return {string}
5140
+ */
5141
+ proto.config.ZoneItem.prototype.getAccountName = function() {
5142
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
5143
+ };
5144
+
5145
+
5146
+ /**
5147
+ * @param {string} value
5148
+ * @return {!proto.config.ZoneItem} returns this
5149
+ */
5150
+ proto.config.ZoneItem.prototype.setAccountName = function(value) {
5151
+ return jspb.Message.setField(this, 5, value);
5152
+ };
5153
+
5154
+
5155
+ /**
5156
+ * Clears the field making it undefined.
5157
+ * @return {!proto.config.ZoneItem} returns this
5158
+ */
5159
+ proto.config.ZoneItem.prototype.clearAccountName = function() {
5160
+ return jspb.Message.setField(this, 5, undefined);
5161
+ };
5162
+
5163
+
5164
+ /**
5165
+ * Returns whether this field is set.
5166
+ * @return {boolean}
5167
+ */
5168
+ proto.config.ZoneItem.prototype.hasAccountName = function() {
5169
+ return jspb.Message.getField(this, 5) != null;
5170
+ };
5171
+
5172
+
5173
+ /**
5174
+ * optional string type = 6;
5175
+ * @return {string}
5176
+ */
5177
+ proto.config.ZoneItem.prototype.getType = function() {
5178
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
5179
+ };
5180
+
5181
+
5182
+ /**
5183
+ * @param {string} value
5184
+ * @return {!proto.config.ZoneItem} returns this
5185
+ */
5186
+ proto.config.ZoneItem.prototype.setType = function(value) {
5187
+ return jspb.Message.setField(this, 6, value);
5188
+ };
5189
+
5190
+
5191
+ /**
5192
+ * Clears the field making it undefined.
5193
+ * @return {!proto.config.ZoneItem} returns this
5194
+ */
5195
+ proto.config.ZoneItem.prototype.clearType = function() {
5196
+ return jspb.Message.setField(this, 6, undefined);
5197
+ };
5198
+
5199
+
5200
+ /**
5201
+ * Returns whether this field is set.
5202
+ * @return {boolean}
5203
+ */
5204
+ proto.config.ZoneItem.prototype.hasType = function() {
5205
+ return jspb.Message.getField(this, 6) != null;
5206
+ };
5207
+
5208
+
5209
+
5210
+
5211
+
5212
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5213
+ /**
5214
+ * Creates an object representation of this proto.
5215
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5216
+ * Optional fields that are not set will be set to undefined.
5217
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5218
+ * For the list of reserved names please see:
5219
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5220
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5221
+ * JSPB instance for transitional soy proto support:
5222
+ * http://goto/soy-param-migration
5223
+ * @return {!Object}
5224
+ */
5225
+ proto.config.ZoneItemResponse.prototype.toObject = function(opt_includeInstance) {
5226
+ return proto.config.ZoneItemResponse.toObject(opt_includeInstance, this);
5227
+ };
5228
+
5229
+
5230
+ /**
5231
+ * Static version of the {@see toObject} method.
5232
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5233
+ * the JSPB instance for transitional soy proto support:
5234
+ * http://goto/soy-param-migration
5235
+ * @param {!proto.config.ZoneItemResponse} msg The msg instance to transform.
5236
+ * @return {!Object}
5237
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5238
+ */
5239
+ proto.config.ZoneItemResponse.toObject = function(includeInstance, msg) {
5240
+ var f, obj = {
5241
+ data: (f = msg.getData()) && proto.config.ZoneItem.toObject(includeInstance, f)
5242
+ };
5243
+
5244
+ if (includeInstance) {
5245
+ obj.$jspbMessageInstance = msg;
5246
+ }
5247
+ return obj;
5248
+ };
5249
+ }
5250
+
5251
+
5252
+ /**
5253
+ * Deserializes binary data (in protobuf wire format).
5254
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5255
+ * @return {!proto.config.ZoneItemResponse}
5256
+ */
5257
+ proto.config.ZoneItemResponse.deserializeBinary = function(bytes) {
5258
+ var reader = new jspb.BinaryReader(bytes);
5259
+ var msg = new proto.config.ZoneItemResponse;
5260
+ return proto.config.ZoneItemResponse.deserializeBinaryFromReader(msg, reader);
5261
+ };
5262
+
5263
+
5264
+ /**
5265
+ * Deserializes binary data (in protobuf wire format) from the
5266
+ * given reader into the given message object.
5267
+ * @param {!proto.config.ZoneItemResponse} msg The message object to deserialize into.
5268
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5269
+ * @return {!proto.config.ZoneItemResponse}
5270
+ */
5271
+ proto.config.ZoneItemResponse.deserializeBinaryFromReader = function(msg, reader) {
5272
+ while (reader.nextField()) {
5273
+ if (reader.isEndGroup()) {
5274
+ break;
5275
+ }
5276
+ var field = reader.getFieldNumber();
5277
+ switch (field) {
5278
+ case 1:
5279
+ var value = new proto.config.ZoneItem;
5280
+ reader.readMessage(value,proto.config.ZoneItem.deserializeBinaryFromReader);
5281
+ msg.setData(value);
5282
+ break;
5283
+ default:
5284
+ reader.skipField();
5285
+ break;
5286
+ }
5287
+ }
5288
+ return msg;
5289
+ };
5290
+
5291
+
5292
+ /**
5293
+ * Serializes the message to binary data (in protobuf wire format).
5294
+ * @return {!Uint8Array}
5295
+ */
5296
+ proto.config.ZoneItemResponse.prototype.serializeBinary = function() {
5297
+ var writer = new jspb.BinaryWriter();
5298
+ proto.config.ZoneItemResponse.serializeBinaryToWriter(this, writer);
5299
+ return writer.getResultBuffer();
5300
+ };
5301
+
5302
+
5303
+ /**
5304
+ * Serializes the given message to binary data (in protobuf wire
5305
+ * format), writing to the given BinaryWriter.
5306
+ * @param {!proto.config.ZoneItemResponse} message
5307
+ * @param {!jspb.BinaryWriter} writer
5308
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5309
+ */
5310
+ proto.config.ZoneItemResponse.serializeBinaryToWriter = function(message, writer) {
5311
+ var f = undefined;
5312
+ f = message.getData();
5313
+ if (f != null) {
5314
+ writer.writeMessage(
5315
+ 1,
5316
+ f,
5317
+ proto.config.ZoneItem.serializeBinaryToWriter
5318
+ );
5319
+ }
5320
+ };
5321
+
5322
+
5323
+ /**
5324
+ * optional ZoneItem data = 1;
5325
+ * @return {?proto.config.ZoneItem}
5326
+ */
5327
+ proto.config.ZoneItemResponse.prototype.getData = function() {
5328
+ return /** @type{?proto.config.ZoneItem} */ (
5329
+ jspb.Message.getWrapperField(this, proto.config.ZoneItem, 1));
5330
+ };
5331
+
5332
+
5333
+ /**
5334
+ * @param {?proto.config.ZoneItem|undefined} value
5335
+ * @return {!proto.config.ZoneItemResponse} returns this
5336
+ */
5337
+ proto.config.ZoneItemResponse.prototype.setData = function(value) {
5338
+ return jspb.Message.setWrapperField(this, 1, value);
5339
+ };
5340
+
5341
+
5342
+ /**
5343
+ * Clears the message field making it undefined.
5344
+ * @return {!proto.config.ZoneItemResponse} returns this
5345
+ */
5346
+ proto.config.ZoneItemResponse.prototype.clearData = function() {
5347
+ return this.setData(undefined);
5348
+ };
5349
+
5350
+
5351
+ /**
5352
+ * Returns whether this field is set.
5353
+ * @return {boolean}
5354
+ */
5355
+ proto.config.ZoneItemResponse.prototype.hasData = function() {
5356
+ return jspb.Message.getField(this, 1) != null;
5357
+ };
5358
+
5359
+
5360
+
5361
+ /**
5362
+ * List of repeated fields within this message type.
5363
+ * @private {!Array<number>}
5364
+ * @const
5365
+ */
5366
+ proto.config.ZonesResponse.repeatedFields_ = [1];
5367
+
5368
+
5369
+
5370
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5371
+ /**
5372
+ * Creates an object representation of this proto.
5373
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5374
+ * Optional fields that are not set will be set to undefined.
5375
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5376
+ * For the list of reserved names please see:
5377
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5378
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5379
+ * JSPB instance for transitional soy proto support:
5380
+ * http://goto/soy-param-migration
5381
+ * @return {!Object}
5382
+ */
5383
+ proto.config.ZonesResponse.prototype.toObject = function(opt_includeInstance) {
5384
+ return proto.config.ZonesResponse.toObject(opt_includeInstance, this);
5385
+ };
5386
+
5387
+
5388
+ /**
5389
+ * Static version of the {@see toObject} method.
5390
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5391
+ * the JSPB instance for transitional soy proto support:
5392
+ * http://goto/soy-param-migration
5393
+ * @param {!proto.config.ZonesResponse} msg The msg instance to transform.
5394
+ * @return {!Object}
5395
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5396
+ */
5397
+ proto.config.ZonesResponse.toObject = function(includeInstance, msg) {
5398
+ var f, obj = {
5399
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
5400
+ proto.config.ZoneItem.toObject, includeInstance)
5401
+ };
5402
+
5403
+ if (includeInstance) {
5404
+ obj.$jspbMessageInstance = msg;
5405
+ }
5406
+ return obj;
5407
+ };
5408
+ }
5409
+
5410
+
5411
+ /**
5412
+ * Deserializes binary data (in protobuf wire format).
5413
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5414
+ * @return {!proto.config.ZonesResponse}
5415
+ */
5416
+ proto.config.ZonesResponse.deserializeBinary = function(bytes) {
5417
+ var reader = new jspb.BinaryReader(bytes);
5418
+ var msg = new proto.config.ZonesResponse;
5419
+ return proto.config.ZonesResponse.deserializeBinaryFromReader(msg, reader);
5420
+ };
5421
+
5422
+
5423
+ /**
5424
+ * Deserializes binary data (in protobuf wire format) from the
5425
+ * given reader into the given message object.
5426
+ * @param {!proto.config.ZonesResponse} msg The message object to deserialize into.
5427
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5428
+ * @return {!proto.config.ZonesResponse}
5429
+ */
5430
+ proto.config.ZonesResponse.deserializeBinaryFromReader = function(msg, reader) {
5431
+ while (reader.nextField()) {
5432
+ if (reader.isEndGroup()) {
5433
+ break;
5434
+ }
5435
+ var field = reader.getFieldNumber();
5436
+ switch (field) {
5437
+ case 1:
5438
+ var value = new proto.config.ZoneItem;
5439
+ reader.readMessage(value,proto.config.ZoneItem.deserializeBinaryFromReader);
5440
+ msg.addItems(value);
5441
+ break;
5442
+ default:
5443
+ reader.skipField();
5444
+ break;
5445
+ }
5446
+ }
5447
+ return msg;
5448
+ };
5449
+
5450
+
5451
+ /**
5452
+ * Serializes the message to binary data (in protobuf wire format).
5453
+ * @return {!Uint8Array}
5454
+ */
5455
+ proto.config.ZonesResponse.prototype.serializeBinary = function() {
5456
+ var writer = new jspb.BinaryWriter();
5457
+ proto.config.ZonesResponse.serializeBinaryToWriter(this, writer);
5458
+ return writer.getResultBuffer();
5459
+ };
5460
+
5461
+
5462
+ /**
5463
+ * Serializes the given message to binary data (in protobuf wire
5464
+ * format), writing to the given BinaryWriter.
5465
+ * @param {!proto.config.ZonesResponse} message
5466
+ * @param {!jspb.BinaryWriter} writer
5467
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5468
+ */
5469
+ proto.config.ZonesResponse.serializeBinaryToWriter = function(message, writer) {
5470
+ var f = undefined;
5471
+ f = message.getItemsList();
5472
+ if (f.length > 0) {
5473
+ writer.writeRepeatedMessage(
5474
+ 1,
5475
+ f,
5476
+ proto.config.ZoneItem.serializeBinaryToWriter
5477
+ );
5478
+ }
5479
+ };
5480
+
5481
+
5482
+ /**
5483
+ * repeated ZoneItem items = 1;
5484
+ * @return {!Array<!proto.config.ZoneItem>}
5485
+ */
5486
+ proto.config.ZonesResponse.prototype.getItemsList = function() {
5487
+ return /** @type{!Array<!proto.config.ZoneItem>} */ (
5488
+ jspb.Message.getRepeatedWrapperField(this, proto.config.ZoneItem, 1));
5489
+ };
5490
+
5491
+
5492
+ /**
5493
+ * @param {!Array<!proto.config.ZoneItem>} value
5494
+ * @return {!proto.config.ZonesResponse} returns this
5495
+ */
5496
+ proto.config.ZonesResponse.prototype.setItemsList = function(value) {
5497
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
5498
+ };
5499
+
5500
+
5501
+ /**
5502
+ * @param {!proto.config.ZoneItem=} opt_value
5503
+ * @param {number=} opt_index
5504
+ * @return {!proto.config.ZoneItem}
5505
+ */
5506
+ proto.config.ZonesResponse.prototype.addItems = function(opt_value, opt_index) {
5507
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.config.ZoneItem, opt_index);
5508
+ };
5509
+
5510
+
5511
+ /**
5512
+ * Clears the list making it empty but non-null.
5513
+ * @return {!proto.config.ZonesResponse} returns this
5514
+ */
5515
+ proto.config.ZonesResponse.prototype.clearItemsList = function() {
5516
+ return this.setItemsList([]);
5517
+ };
5518
+
5519
+
4639
5520
  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.83",
3
+ "version": "1.2.85",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {