protobuf-platform 1.2.85 → 1.2.87

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.
@@ -24,10 +24,18 @@ service Config {
24
24
  //Cloud Flare
25
25
  rpc getZonesList(GetZoneRequest) returns (ZonesResponse);
26
26
  rpc getZone(GetZoneRequest) returns (ZoneItemResponse);
27
+ rpc createZone(GetZoneRequest) returns (ZoneItemResponse);
28
+ rpc createMirror(GetZoneRequest) returns (MirrorResponse);
29
+ rpc getMirrorsList(PaginationRequest) returns (MirrorItemsResponse);
27
30
  }
28
31
 
29
32
  message PingRequest { string ping = 1; }
30
33
  message PongResponse { string pong = 1; }
34
+ message PaginationRequest {
35
+ int32 limit = 1;
36
+ int32 offset = 2;
37
+ optional string order = 3;
38
+ }
31
39
 
32
40
  //Service settings
33
41
  message SettingsRequest {
@@ -137,10 +145,27 @@ message ZoneItem {
137
145
  optional string account_id = 4;
138
146
  optional string account_name = 5;
139
147
  optional string type = 6;
148
+ optional string plan_name = 7;
140
149
  }
141
150
  message ZoneItemResponse {
142
151
  ZoneItem data = 1;
143
152
  }
144
153
  message ZonesResponse {
145
154
  repeated ZoneItem items = 1;
155
+ }
156
+ message MirrorItem {
157
+ string zone_id = 1;
158
+ string zone_name = 2;
159
+ string zone_status = 3;
160
+ optional string main_record = 4;
161
+ optional string api_record = 5;
162
+ optional string cdn_record = 6;
163
+ }
164
+ message MirrorResponse {
165
+ MirrorItem data = 1;
166
+ }
167
+ message MirrorItemsResponse {
168
+ repeated MirrorItem items = 1;
169
+ optional int32 total_pages = 2;
170
+ optional int32 total_items = 3;
146
171
  }
@@ -136,6 +136,39 @@ function deserialize_config_GlobalDataRequest(buffer_arg) {
136
136
  return config_pb.GlobalDataRequest.deserializeBinary(new Uint8Array(buffer_arg));
137
137
  }
138
138
 
139
+ function serialize_config_MirrorItemsResponse(arg) {
140
+ if (!(arg instanceof config_pb.MirrorItemsResponse)) {
141
+ throw new Error('Expected argument of type config.MirrorItemsResponse');
142
+ }
143
+ return Buffer.from(arg.serializeBinary());
144
+ }
145
+
146
+ function deserialize_config_MirrorItemsResponse(buffer_arg) {
147
+ return config_pb.MirrorItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
148
+ }
149
+
150
+ function serialize_config_MirrorResponse(arg) {
151
+ if (!(arg instanceof config_pb.MirrorResponse)) {
152
+ throw new Error('Expected argument of type config.MirrorResponse');
153
+ }
154
+ return Buffer.from(arg.serializeBinary());
155
+ }
156
+
157
+ function deserialize_config_MirrorResponse(buffer_arg) {
158
+ return config_pb.MirrorResponse.deserializeBinary(new Uint8Array(buffer_arg));
159
+ }
160
+
161
+ function serialize_config_PaginationRequest(arg) {
162
+ if (!(arg instanceof config_pb.PaginationRequest)) {
163
+ throw new Error('Expected argument of type config.PaginationRequest');
164
+ }
165
+ return Buffer.from(arg.serializeBinary());
166
+ }
167
+
168
+ function deserialize_config_PaginationRequest(buffer_arg) {
169
+ return config_pb.PaginationRequest.deserializeBinary(new Uint8Array(buffer_arg));
170
+ }
171
+
139
172
  function serialize_config_PingRequest(arg) {
140
173
  if (!(arg instanceof config_pb.PingRequest)) {
141
174
  throw new Error('Expected argument of type config.PingRequest');
@@ -410,6 +443,39 @@ getZonesList: {
410
443
  responseSerialize: serialize_config_ZoneItemResponse,
411
444
  responseDeserialize: deserialize_config_ZoneItemResponse,
412
445
  },
446
+ createZone: {
447
+ path: '/config.Config/createZone',
448
+ requestStream: false,
449
+ responseStream: false,
450
+ requestType: config_pb.GetZoneRequest,
451
+ responseType: config_pb.ZoneItemResponse,
452
+ requestSerialize: serialize_config_GetZoneRequest,
453
+ requestDeserialize: deserialize_config_GetZoneRequest,
454
+ responseSerialize: serialize_config_ZoneItemResponse,
455
+ responseDeserialize: deserialize_config_ZoneItemResponse,
456
+ },
457
+ createMirror: {
458
+ path: '/config.Config/createMirror',
459
+ requestStream: false,
460
+ responseStream: false,
461
+ requestType: config_pb.GetZoneRequest,
462
+ responseType: config_pb.MirrorResponse,
463
+ requestSerialize: serialize_config_GetZoneRequest,
464
+ requestDeserialize: deserialize_config_GetZoneRequest,
465
+ responseSerialize: serialize_config_MirrorResponse,
466
+ responseDeserialize: deserialize_config_MirrorResponse,
467
+ },
468
+ getMirrorsList: {
469
+ path: '/config.Config/getMirrorsList',
470
+ requestStream: false,
471
+ responseStream: false,
472
+ requestType: config_pb.PaginationRequest,
473
+ responseType: config_pb.MirrorItemsResponse,
474
+ requestSerialize: serialize_config_PaginationRequest,
475
+ requestDeserialize: deserialize_config_PaginationRequest,
476
+ responseSerialize: serialize_config_MirrorItemsResponse,
477
+ responseDeserialize: deserialize_config_MirrorItemsResponse,
478
+ },
413
479
  };
414
480
 
415
481
  exports.ConfigClient = grpc.makeGenericClientConstructor(ConfigService, 'Config');
@@ -34,6 +34,10 @@ goog.exportSymbol('proto.config.ErrorStatusResponse', null, global);
34
34
  goog.exportSymbol('proto.config.GeneratedTextResponse', null, global);
35
35
  goog.exportSymbol('proto.config.GetZoneRequest', null, global);
36
36
  goog.exportSymbol('proto.config.GlobalDataRequest', null, global);
37
+ goog.exportSymbol('proto.config.MirrorItem', null, global);
38
+ goog.exportSymbol('proto.config.MirrorItemsResponse', null, global);
39
+ goog.exportSymbol('proto.config.MirrorResponse', null, global);
40
+ goog.exportSymbol('proto.config.PaginationRequest', null, global);
37
41
  goog.exportSymbol('proto.config.PingRequest', null, global);
38
42
  goog.exportSymbol('proto.config.PongResponse', null, global);
39
43
  goog.exportSymbol('proto.config.PromptRequest', null, global);
@@ -88,6 +92,27 @@ if (goog.DEBUG && !COMPILED) {
88
92
  */
89
93
  proto.config.PongResponse.displayName = 'proto.config.PongResponse';
90
94
  }
95
+ /**
96
+ * Generated by JsPbCodeGenerator.
97
+ * @param {Array=} opt_data Optional initial data array, typically from a
98
+ * server response, or constructed directly in Javascript. The array is used
99
+ * in place and becomes part of the constructed object. It is not cloned.
100
+ * If no data is provided, the constructed object will be empty, but still
101
+ * valid.
102
+ * @extends {jspb.Message}
103
+ * @constructor
104
+ */
105
+ proto.config.PaginationRequest = function(opt_data) {
106
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
107
+ };
108
+ goog.inherits(proto.config.PaginationRequest, jspb.Message);
109
+ if (goog.DEBUG && !COMPILED) {
110
+ /**
111
+ * @public
112
+ * @override
113
+ */
114
+ proto.config.PaginationRequest.displayName = 'proto.config.PaginationRequest';
115
+ }
91
116
  /**
92
117
  * Generated by JsPbCodeGenerator.
93
118
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -571,6 +596,69 @@ if (goog.DEBUG && !COMPILED) {
571
596
  */
572
597
  proto.config.ZonesResponse.displayName = 'proto.config.ZonesResponse';
573
598
  }
599
+ /**
600
+ * Generated by JsPbCodeGenerator.
601
+ * @param {Array=} opt_data Optional initial data array, typically from a
602
+ * server response, or constructed directly in Javascript. The array is used
603
+ * in place and becomes part of the constructed object. It is not cloned.
604
+ * If no data is provided, the constructed object will be empty, but still
605
+ * valid.
606
+ * @extends {jspb.Message}
607
+ * @constructor
608
+ */
609
+ proto.config.MirrorItem = function(opt_data) {
610
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
611
+ };
612
+ goog.inherits(proto.config.MirrorItem, jspb.Message);
613
+ if (goog.DEBUG && !COMPILED) {
614
+ /**
615
+ * @public
616
+ * @override
617
+ */
618
+ proto.config.MirrorItem.displayName = 'proto.config.MirrorItem';
619
+ }
620
+ /**
621
+ * Generated by JsPbCodeGenerator.
622
+ * @param {Array=} opt_data Optional initial data array, typically from a
623
+ * server response, or constructed directly in Javascript. The array is used
624
+ * in place and becomes part of the constructed object. It is not cloned.
625
+ * If no data is provided, the constructed object will be empty, but still
626
+ * valid.
627
+ * @extends {jspb.Message}
628
+ * @constructor
629
+ */
630
+ proto.config.MirrorResponse = function(opt_data) {
631
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
632
+ };
633
+ goog.inherits(proto.config.MirrorResponse, jspb.Message);
634
+ if (goog.DEBUG && !COMPILED) {
635
+ /**
636
+ * @public
637
+ * @override
638
+ */
639
+ proto.config.MirrorResponse.displayName = 'proto.config.MirrorResponse';
640
+ }
641
+ /**
642
+ * Generated by JsPbCodeGenerator.
643
+ * @param {Array=} opt_data Optional initial data array, typically from a
644
+ * server response, or constructed directly in Javascript. The array is used
645
+ * in place and becomes part of the constructed object. It is not cloned.
646
+ * If no data is provided, the constructed object will be empty, but still
647
+ * valid.
648
+ * @extends {jspb.Message}
649
+ * @constructor
650
+ */
651
+ proto.config.MirrorItemsResponse = function(opt_data) {
652
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.config.MirrorItemsResponse.repeatedFields_, null);
653
+ };
654
+ goog.inherits(proto.config.MirrorItemsResponse, jspb.Message);
655
+ if (goog.DEBUG && !COMPILED) {
656
+ /**
657
+ * @public
658
+ * @override
659
+ */
660
+ proto.config.MirrorItemsResponse.displayName = 'proto.config.MirrorItemsResponse';
661
+ }
574
662
 
575
663
 
576
664
 
@@ -834,6 +922,214 @@ proto.config.PongResponse.prototype.setPong = function(value) {
834
922
 
835
923
 
836
924
 
925
+ if (jspb.Message.GENERATE_TO_OBJECT) {
926
+ /**
927
+ * Creates an object representation of this proto.
928
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
929
+ * Optional fields that are not set will be set to undefined.
930
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
931
+ * For the list of reserved names please see:
932
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
933
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
934
+ * JSPB instance for transitional soy proto support:
935
+ * http://goto/soy-param-migration
936
+ * @return {!Object}
937
+ */
938
+ proto.config.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
939
+ return proto.config.PaginationRequest.toObject(opt_includeInstance, this);
940
+ };
941
+
942
+
943
+ /**
944
+ * Static version of the {@see toObject} method.
945
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
946
+ * the JSPB instance for transitional soy proto support:
947
+ * http://goto/soy-param-migration
948
+ * @param {!proto.config.PaginationRequest} msg The msg instance to transform.
949
+ * @return {!Object}
950
+ * @suppress {unusedLocalVariables} f is only used for nested messages
951
+ */
952
+ proto.config.PaginationRequest.toObject = function(includeInstance, msg) {
953
+ var f, obj = {
954
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
955
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
956
+ order: jspb.Message.getFieldWithDefault(msg, 3, "")
957
+ };
958
+
959
+ if (includeInstance) {
960
+ obj.$jspbMessageInstance = msg;
961
+ }
962
+ return obj;
963
+ };
964
+ }
965
+
966
+
967
+ /**
968
+ * Deserializes binary data (in protobuf wire format).
969
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
970
+ * @return {!proto.config.PaginationRequest}
971
+ */
972
+ proto.config.PaginationRequest.deserializeBinary = function(bytes) {
973
+ var reader = new jspb.BinaryReader(bytes);
974
+ var msg = new proto.config.PaginationRequest;
975
+ return proto.config.PaginationRequest.deserializeBinaryFromReader(msg, reader);
976
+ };
977
+
978
+
979
+ /**
980
+ * Deserializes binary data (in protobuf wire format) from the
981
+ * given reader into the given message object.
982
+ * @param {!proto.config.PaginationRequest} msg The message object to deserialize into.
983
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
984
+ * @return {!proto.config.PaginationRequest}
985
+ */
986
+ proto.config.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
987
+ while (reader.nextField()) {
988
+ if (reader.isEndGroup()) {
989
+ break;
990
+ }
991
+ var field = reader.getFieldNumber();
992
+ switch (field) {
993
+ case 1:
994
+ var value = /** @type {number} */ (reader.readInt32());
995
+ msg.setLimit(value);
996
+ break;
997
+ case 2:
998
+ var value = /** @type {number} */ (reader.readInt32());
999
+ msg.setOffset(value);
1000
+ break;
1001
+ case 3:
1002
+ var value = /** @type {string} */ (reader.readString());
1003
+ msg.setOrder(value);
1004
+ break;
1005
+ default:
1006
+ reader.skipField();
1007
+ break;
1008
+ }
1009
+ }
1010
+ return msg;
1011
+ };
1012
+
1013
+
1014
+ /**
1015
+ * Serializes the message to binary data (in protobuf wire format).
1016
+ * @return {!Uint8Array}
1017
+ */
1018
+ proto.config.PaginationRequest.prototype.serializeBinary = function() {
1019
+ var writer = new jspb.BinaryWriter();
1020
+ proto.config.PaginationRequest.serializeBinaryToWriter(this, writer);
1021
+ return writer.getResultBuffer();
1022
+ };
1023
+
1024
+
1025
+ /**
1026
+ * Serializes the given message to binary data (in protobuf wire
1027
+ * format), writing to the given BinaryWriter.
1028
+ * @param {!proto.config.PaginationRequest} message
1029
+ * @param {!jspb.BinaryWriter} writer
1030
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1031
+ */
1032
+ proto.config.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
1033
+ var f = undefined;
1034
+ f = message.getLimit();
1035
+ if (f !== 0) {
1036
+ writer.writeInt32(
1037
+ 1,
1038
+ f
1039
+ );
1040
+ }
1041
+ f = message.getOffset();
1042
+ if (f !== 0) {
1043
+ writer.writeInt32(
1044
+ 2,
1045
+ f
1046
+ );
1047
+ }
1048
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1049
+ if (f != null) {
1050
+ writer.writeString(
1051
+ 3,
1052
+ f
1053
+ );
1054
+ }
1055
+ };
1056
+
1057
+
1058
+ /**
1059
+ * optional int32 limit = 1;
1060
+ * @return {number}
1061
+ */
1062
+ proto.config.PaginationRequest.prototype.getLimit = function() {
1063
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1064
+ };
1065
+
1066
+
1067
+ /**
1068
+ * @param {number} value
1069
+ * @return {!proto.config.PaginationRequest} returns this
1070
+ */
1071
+ proto.config.PaginationRequest.prototype.setLimit = function(value) {
1072
+ return jspb.Message.setProto3IntField(this, 1, value);
1073
+ };
1074
+
1075
+
1076
+ /**
1077
+ * optional int32 offset = 2;
1078
+ * @return {number}
1079
+ */
1080
+ proto.config.PaginationRequest.prototype.getOffset = function() {
1081
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1082
+ };
1083
+
1084
+
1085
+ /**
1086
+ * @param {number} value
1087
+ * @return {!proto.config.PaginationRequest} returns this
1088
+ */
1089
+ proto.config.PaginationRequest.prototype.setOffset = function(value) {
1090
+ return jspb.Message.setProto3IntField(this, 2, value);
1091
+ };
1092
+
1093
+
1094
+ /**
1095
+ * optional string order = 3;
1096
+ * @return {string}
1097
+ */
1098
+ proto.config.PaginationRequest.prototype.getOrder = function() {
1099
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1100
+ };
1101
+
1102
+
1103
+ /**
1104
+ * @param {string} value
1105
+ * @return {!proto.config.PaginationRequest} returns this
1106
+ */
1107
+ proto.config.PaginationRequest.prototype.setOrder = function(value) {
1108
+ return jspb.Message.setField(this, 3, value);
1109
+ };
1110
+
1111
+
1112
+ /**
1113
+ * Clears the field making it undefined.
1114
+ * @return {!proto.config.PaginationRequest} returns this
1115
+ */
1116
+ proto.config.PaginationRequest.prototype.clearOrder = function() {
1117
+ return jspb.Message.setField(this, 3, undefined);
1118
+ };
1119
+
1120
+
1121
+ /**
1122
+ * Returns whether this field is set.
1123
+ * @return {boolean}
1124
+ */
1125
+ proto.config.PaginationRequest.prototype.hasOrder = function() {
1126
+ return jspb.Message.getField(this, 3) != null;
1127
+ };
1128
+
1129
+
1130
+
1131
+
1132
+
837
1133
  if (jspb.Message.GENERATE_TO_OBJECT) {
838
1134
  /**
839
1135
  * Creates an object representation of this proto.
@@ -4909,7 +5205,8 @@ proto.config.ZoneItem.toObject = function(includeInstance, msg) {
4909
5205
  status: jspb.Message.getFieldWithDefault(msg, 3, ""),
4910
5206
  accountId: jspb.Message.getFieldWithDefault(msg, 4, ""),
4911
5207
  accountName: jspb.Message.getFieldWithDefault(msg, 5, ""),
4912
- type: jspb.Message.getFieldWithDefault(msg, 6, "")
5208
+ type: jspb.Message.getFieldWithDefault(msg, 6, ""),
5209
+ planName: jspb.Message.getFieldWithDefault(msg, 7, "")
4913
5210
  };
4914
5211
 
4915
5212
  if (includeInstance) {
@@ -4970,6 +5267,10 @@ proto.config.ZoneItem.deserializeBinaryFromReader = function(msg, reader) {
4970
5267
  var value = /** @type {string} */ (reader.readString());
4971
5268
  msg.setType(value);
4972
5269
  break;
5270
+ case 7:
5271
+ var value = /** @type {string} */ (reader.readString());
5272
+ msg.setPlanName(value);
5273
+ break;
4973
5274
  default:
4974
5275
  reader.skipField();
4975
5276
  break;
@@ -5041,6 +5342,13 @@ proto.config.ZoneItem.serializeBinaryToWriter = function(message, writer) {
5041
5342
  f
5042
5343
  );
5043
5344
  }
5345
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
5346
+ if (f != null) {
5347
+ writer.writeString(
5348
+ 7,
5349
+ f
5350
+ );
5351
+ }
5044
5352
  };
5045
5353
 
5046
5354
 
@@ -5206,8 +5514,44 @@ proto.config.ZoneItem.prototype.hasType = function() {
5206
5514
  };
5207
5515
 
5208
5516
 
5209
-
5210
-
5517
+ /**
5518
+ * optional string plan_name = 7;
5519
+ * @return {string}
5520
+ */
5521
+ proto.config.ZoneItem.prototype.getPlanName = function() {
5522
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
5523
+ };
5524
+
5525
+
5526
+ /**
5527
+ * @param {string} value
5528
+ * @return {!proto.config.ZoneItem} returns this
5529
+ */
5530
+ proto.config.ZoneItem.prototype.setPlanName = function(value) {
5531
+ return jspb.Message.setField(this, 7, value);
5532
+ };
5533
+
5534
+
5535
+ /**
5536
+ * Clears the field making it undefined.
5537
+ * @return {!proto.config.ZoneItem} returns this
5538
+ */
5539
+ proto.config.ZoneItem.prototype.clearPlanName = function() {
5540
+ return jspb.Message.setField(this, 7, undefined);
5541
+ };
5542
+
5543
+
5544
+ /**
5545
+ * Returns whether this field is set.
5546
+ * @return {boolean}
5547
+ */
5548
+ proto.config.ZoneItem.prototype.hasPlanName = function() {
5549
+ return jspb.Message.getField(this, 7) != null;
5550
+ };
5551
+
5552
+
5553
+
5554
+
5211
5555
 
5212
5556
  if (jspb.Message.GENERATE_TO_OBJECT) {
5213
5557
  /**
@@ -5517,4 +5861,745 @@ proto.config.ZonesResponse.prototype.clearItemsList = function() {
5517
5861
  };
5518
5862
 
5519
5863
 
5864
+
5865
+
5866
+
5867
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5868
+ /**
5869
+ * Creates an object representation of this proto.
5870
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5871
+ * Optional fields that are not set will be set to undefined.
5872
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5873
+ * For the list of reserved names please see:
5874
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5875
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5876
+ * JSPB instance for transitional soy proto support:
5877
+ * http://goto/soy-param-migration
5878
+ * @return {!Object}
5879
+ */
5880
+ proto.config.MirrorItem.prototype.toObject = function(opt_includeInstance) {
5881
+ return proto.config.MirrorItem.toObject(opt_includeInstance, this);
5882
+ };
5883
+
5884
+
5885
+ /**
5886
+ * Static version of the {@see toObject} method.
5887
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5888
+ * the JSPB instance for transitional soy proto support:
5889
+ * http://goto/soy-param-migration
5890
+ * @param {!proto.config.MirrorItem} msg The msg instance to transform.
5891
+ * @return {!Object}
5892
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5893
+ */
5894
+ proto.config.MirrorItem.toObject = function(includeInstance, msg) {
5895
+ var f, obj = {
5896
+ zoneId: jspb.Message.getFieldWithDefault(msg, 1, ""),
5897
+ zoneName: jspb.Message.getFieldWithDefault(msg, 2, ""),
5898
+ zoneStatus: jspb.Message.getFieldWithDefault(msg, 3, ""),
5899
+ mainRecord: jspb.Message.getFieldWithDefault(msg, 4, ""),
5900
+ apiRecord: jspb.Message.getFieldWithDefault(msg, 5, ""),
5901
+ cdnRecord: jspb.Message.getFieldWithDefault(msg, 6, "")
5902
+ };
5903
+
5904
+ if (includeInstance) {
5905
+ obj.$jspbMessageInstance = msg;
5906
+ }
5907
+ return obj;
5908
+ };
5909
+ }
5910
+
5911
+
5912
+ /**
5913
+ * Deserializes binary data (in protobuf wire format).
5914
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5915
+ * @return {!proto.config.MirrorItem}
5916
+ */
5917
+ proto.config.MirrorItem.deserializeBinary = function(bytes) {
5918
+ var reader = new jspb.BinaryReader(bytes);
5919
+ var msg = new proto.config.MirrorItem;
5920
+ return proto.config.MirrorItem.deserializeBinaryFromReader(msg, reader);
5921
+ };
5922
+
5923
+
5924
+ /**
5925
+ * Deserializes binary data (in protobuf wire format) from the
5926
+ * given reader into the given message object.
5927
+ * @param {!proto.config.MirrorItem} msg The message object to deserialize into.
5928
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5929
+ * @return {!proto.config.MirrorItem}
5930
+ */
5931
+ proto.config.MirrorItem.deserializeBinaryFromReader = function(msg, reader) {
5932
+ while (reader.nextField()) {
5933
+ if (reader.isEndGroup()) {
5934
+ break;
5935
+ }
5936
+ var field = reader.getFieldNumber();
5937
+ switch (field) {
5938
+ case 1:
5939
+ var value = /** @type {string} */ (reader.readString());
5940
+ msg.setZoneId(value);
5941
+ break;
5942
+ case 2:
5943
+ var value = /** @type {string} */ (reader.readString());
5944
+ msg.setZoneName(value);
5945
+ break;
5946
+ case 3:
5947
+ var value = /** @type {string} */ (reader.readString());
5948
+ msg.setZoneStatus(value);
5949
+ break;
5950
+ case 4:
5951
+ var value = /** @type {string} */ (reader.readString());
5952
+ msg.setMainRecord(value);
5953
+ break;
5954
+ case 5:
5955
+ var value = /** @type {string} */ (reader.readString());
5956
+ msg.setApiRecord(value);
5957
+ break;
5958
+ case 6:
5959
+ var value = /** @type {string} */ (reader.readString());
5960
+ msg.setCdnRecord(value);
5961
+ break;
5962
+ default:
5963
+ reader.skipField();
5964
+ break;
5965
+ }
5966
+ }
5967
+ return msg;
5968
+ };
5969
+
5970
+
5971
+ /**
5972
+ * Serializes the message to binary data (in protobuf wire format).
5973
+ * @return {!Uint8Array}
5974
+ */
5975
+ proto.config.MirrorItem.prototype.serializeBinary = function() {
5976
+ var writer = new jspb.BinaryWriter();
5977
+ proto.config.MirrorItem.serializeBinaryToWriter(this, writer);
5978
+ return writer.getResultBuffer();
5979
+ };
5980
+
5981
+
5982
+ /**
5983
+ * Serializes the given message to binary data (in protobuf wire
5984
+ * format), writing to the given BinaryWriter.
5985
+ * @param {!proto.config.MirrorItem} message
5986
+ * @param {!jspb.BinaryWriter} writer
5987
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5988
+ */
5989
+ proto.config.MirrorItem.serializeBinaryToWriter = function(message, writer) {
5990
+ var f = undefined;
5991
+ f = message.getZoneId();
5992
+ if (f.length > 0) {
5993
+ writer.writeString(
5994
+ 1,
5995
+ f
5996
+ );
5997
+ }
5998
+ f = message.getZoneName();
5999
+ if (f.length > 0) {
6000
+ writer.writeString(
6001
+ 2,
6002
+ f
6003
+ );
6004
+ }
6005
+ f = message.getZoneStatus();
6006
+ if (f.length > 0) {
6007
+ writer.writeString(
6008
+ 3,
6009
+ f
6010
+ );
6011
+ }
6012
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
6013
+ if (f != null) {
6014
+ writer.writeString(
6015
+ 4,
6016
+ f
6017
+ );
6018
+ }
6019
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
6020
+ if (f != null) {
6021
+ writer.writeString(
6022
+ 5,
6023
+ f
6024
+ );
6025
+ }
6026
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
6027
+ if (f != null) {
6028
+ writer.writeString(
6029
+ 6,
6030
+ f
6031
+ );
6032
+ }
6033
+ };
6034
+
6035
+
6036
+ /**
6037
+ * optional string zone_id = 1;
6038
+ * @return {string}
6039
+ */
6040
+ proto.config.MirrorItem.prototype.getZoneId = function() {
6041
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6042
+ };
6043
+
6044
+
6045
+ /**
6046
+ * @param {string} value
6047
+ * @return {!proto.config.MirrorItem} returns this
6048
+ */
6049
+ proto.config.MirrorItem.prototype.setZoneId = function(value) {
6050
+ return jspb.Message.setProto3StringField(this, 1, value);
6051
+ };
6052
+
6053
+
6054
+ /**
6055
+ * optional string zone_name = 2;
6056
+ * @return {string}
6057
+ */
6058
+ proto.config.MirrorItem.prototype.getZoneName = function() {
6059
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6060
+ };
6061
+
6062
+
6063
+ /**
6064
+ * @param {string} value
6065
+ * @return {!proto.config.MirrorItem} returns this
6066
+ */
6067
+ proto.config.MirrorItem.prototype.setZoneName = function(value) {
6068
+ return jspb.Message.setProto3StringField(this, 2, value);
6069
+ };
6070
+
6071
+
6072
+ /**
6073
+ * optional string zone_status = 3;
6074
+ * @return {string}
6075
+ */
6076
+ proto.config.MirrorItem.prototype.getZoneStatus = function() {
6077
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6078
+ };
6079
+
6080
+
6081
+ /**
6082
+ * @param {string} value
6083
+ * @return {!proto.config.MirrorItem} returns this
6084
+ */
6085
+ proto.config.MirrorItem.prototype.setZoneStatus = function(value) {
6086
+ return jspb.Message.setProto3StringField(this, 3, value);
6087
+ };
6088
+
6089
+
6090
+ /**
6091
+ * optional string main_record = 4;
6092
+ * @return {string}
6093
+ */
6094
+ proto.config.MirrorItem.prototype.getMainRecord = function() {
6095
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
6096
+ };
6097
+
6098
+
6099
+ /**
6100
+ * @param {string} value
6101
+ * @return {!proto.config.MirrorItem} returns this
6102
+ */
6103
+ proto.config.MirrorItem.prototype.setMainRecord = function(value) {
6104
+ return jspb.Message.setField(this, 4, value);
6105
+ };
6106
+
6107
+
6108
+ /**
6109
+ * Clears the field making it undefined.
6110
+ * @return {!proto.config.MirrorItem} returns this
6111
+ */
6112
+ proto.config.MirrorItem.prototype.clearMainRecord = function() {
6113
+ return jspb.Message.setField(this, 4, undefined);
6114
+ };
6115
+
6116
+
6117
+ /**
6118
+ * Returns whether this field is set.
6119
+ * @return {boolean}
6120
+ */
6121
+ proto.config.MirrorItem.prototype.hasMainRecord = function() {
6122
+ return jspb.Message.getField(this, 4) != null;
6123
+ };
6124
+
6125
+
6126
+ /**
6127
+ * optional string api_record = 5;
6128
+ * @return {string}
6129
+ */
6130
+ proto.config.MirrorItem.prototype.getApiRecord = function() {
6131
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
6132
+ };
6133
+
6134
+
6135
+ /**
6136
+ * @param {string} value
6137
+ * @return {!proto.config.MirrorItem} returns this
6138
+ */
6139
+ proto.config.MirrorItem.prototype.setApiRecord = function(value) {
6140
+ return jspb.Message.setField(this, 5, value);
6141
+ };
6142
+
6143
+
6144
+ /**
6145
+ * Clears the field making it undefined.
6146
+ * @return {!proto.config.MirrorItem} returns this
6147
+ */
6148
+ proto.config.MirrorItem.prototype.clearApiRecord = function() {
6149
+ return jspb.Message.setField(this, 5, undefined);
6150
+ };
6151
+
6152
+
6153
+ /**
6154
+ * Returns whether this field is set.
6155
+ * @return {boolean}
6156
+ */
6157
+ proto.config.MirrorItem.prototype.hasApiRecord = function() {
6158
+ return jspb.Message.getField(this, 5) != null;
6159
+ };
6160
+
6161
+
6162
+ /**
6163
+ * optional string cdn_record = 6;
6164
+ * @return {string}
6165
+ */
6166
+ proto.config.MirrorItem.prototype.getCdnRecord = function() {
6167
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
6168
+ };
6169
+
6170
+
6171
+ /**
6172
+ * @param {string} value
6173
+ * @return {!proto.config.MirrorItem} returns this
6174
+ */
6175
+ proto.config.MirrorItem.prototype.setCdnRecord = function(value) {
6176
+ return jspb.Message.setField(this, 6, value);
6177
+ };
6178
+
6179
+
6180
+ /**
6181
+ * Clears the field making it undefined.
6182
+ * @return {!proto.config.MirrorItem} returns this
6183
+ */
6184
+ proto.config.MirrorItem.prototype.clearCdnRecord = function() {
6185
+ return jspb.Message.setField(this, 6, undefined);
6186
+ };
6187
+
6188
+
6189
+ /**
6190
+ * Returns whether this field is set.
6191
+ * @return {boolean}
6192
+ */
6193
+ proto.config.MirrorItem.prototype.hasCdnRecord = function() {
6194
+ return jspb.Message.getField(this, 6) != null;
6195
+ };
6196
+
6197
+
6198
+
6199
+
6200
+
6201
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6202
+ /**
6203
+ * Creates an object representation of this proto.
6204
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6205
+ * Optional fields that are not set will be set to undefined.
6206
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6207
+ * For the list of reserved names please see:
6208
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6209
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6210
+ * JSPB instance for transitional soy proto support:
6211
+ * http://goto/soy-param-migration
6212
+ * @return {!Object}
6213
+ */
6214
+ proto.config.MirrorResponse.prototype.toObject = function(opt_includeInstance) {
6215
+ return proto.config.MirrorResponse.toObject(opt_includeInstance, this);
6216
+ };
6217
+
6218
+
6219
+ /**
6220
+ * Static version of the {@see toObject} method.
6221
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6222
+ * the JSPB instance for transitional soy proto support:
6223
+ * http://goto/soy-param-migration
6224
+ * @param {!proto.config.MirrorResponse} msg The msg instance to transform.
6225
+ * @return {!Object}
6226
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6227
+ */
6228
+ proto.config.MirrorResponse.toObject = function(includeInstance, msg) {
6229
+ var f, obj = {
6230
+ data: (f = msg.getData()) && proto.config.MirrorItem.toObject(includeInstance, f)
6231
+ };
6232
+
6233
+ if (includeInstance) {
6234
+ obj.$jspbMessageInstance = msg;
6235
+ }
6236
+ return obj;
6237
+ };
6238
+ }
6239
+
6240
+
6241
+ /**
6242
+ * Deserializes binary data (in protobuf wire format).
6243
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6244
+ * @return {!proto.config.MirrorResponse}
6245
+ */
6246
+ proto.config.MirrorResponse.deserializeBinary = function(bytes) {
6247
+ var reader = new jspb.BinaryReader(bytes);
6248
+ var msg = new proto.config.MirrorResponse;
6249
+ return proto.config.MirrorResponse.deserializeBinaryFromReader(msg, reader);
6250
+ };
6251
+
6252
+
6253
+ /**
6254
+ * Deserializes binary data (in protobuf wire format) from the
6255
+ * given reader into the given message object.
6256
+ * @param {!proto.config.MirrorResponse} msg The message object to deserialize into.
6257
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6258
+ * @return {!proto.config.MirrorResponse}
6259
+ */
6260
+ proto.config.MirrorResponse.deserializeBinaryFromReader = function(msg, reader) {
6261
+ while (reader.nextField()) {
6262
+ if (reader.isEndGroup()) {
6263
+ break;
6264
+ }
6265
+ var field = reader.getFieldNumber();
6266
+ switch (field) {
6267
+ case 1:
6268
+ var value = new proto.config.MirrorItem;
6269
+ reader.readMessage(value,proto.config.MirrorItem.deserializeBinaryFromReader);
6270
+ msg.setData(value);
6271
+ break;
6272
+ default:
6273
+ reader.skipField();
6274
+ break;
6275
+ }
6276
+ }
6277
+ return msg;
6278
+ };
6279
+
6280
+
6281
+ /**
6282
+ * Serializes the message to binary data (in protobuf wire format).
6283
+ * @return {!Uint8Array}
6284
+ */
6285
+ proto.config.MirrorResponse.prototype.serializeBinary = function() {
6286
+ var writer = new jspb.BinaryWriter();
6287
+ proto.config.MirrorResponse.serializeBinaryToWriter(this, writer);
6288
+ return writer.getResultBuffer();
6289
+ };
6290
+
6291
+
6292
+ /**
6293
+ * Serializes the given message to binary data (in protobuf wire
6294
+ * format), writing to the given BinaryWriter.
6295
+ * @param {!proto.config.MirrorResponse} message
6296
+ * @param {!jspb.BinaryWriter} writer
6297
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6298
+ */
6299
+ proto.config.MirrorResponse.serializeBinaryToWriter = function(message, writer) {
6300
+ var f = undefined;
6301
+ f = message.getData();
6302
+ if (f != null) {
6303
+ writer.writeMessage(
6304
+ 1,
6305
+ f,
6306
+ proto.config.MirrorItem.serializeBinaryToWriter
6307
+ );
6308
+ }
6309
+ };
6310
+
6311
+
6312
+ /**
6313
+ * optional MirrorItem data = 1;
6314
+ * @return {?proto.config.MirrorItem}
6315
+ */
6316
+ proto.config.MirrorResponse.prototype.getData = function() {
6317
+ return /** @type{?proto.config.MirrorItem} */ (
6318
+ jspb.Message.getWrapperField(this, proto.config.MirrorItem, 1));
6319
+ };
6320
+
6321
+
6322
+ /**
6323
+ * @param {?proto.config.MirrorItem|undefined} value
6324
+ * @return {!proto.config.MirrorResponse} returns this
6325
+ */
6326
+ proto.config.MirrorResponse.prototype.setData = function(value) {
6327
+ return jspb.Message.setWrapperField(this, 1, value);
6328
+ };
6329
+
6330
+
6331
+ /**
6332
+ * Clears the message field making it undefined.
6333
+ * @return {!proto.config.MirrorResponse} returns this
6334
+ */
6335
+ proto.config.MirrorResponse.prototype.clearData = function() {
6336
+ return this.setData(undefined);
6337
+ };
6338
+
6339
+
6340
+ /**
6341
+ * Returns whether this field is set.
6342
+ * @return {boolean}
6343
+ */
6344
+ proto.config.MirrorResponse.prototype.hasData = function() {
6345
+ return jspb.Message.getField(this, 1) != null;
6346
+ };
6347
+
6348
+
6349
+
6350
+ /**
6351
+ * List of repeated fields within this message type.
6352
+ * @private {!Array<number>}
6353
+ * @const
6354
+ */
6355
+ proto.config.MirrorItemsResponse.repeatedFields_ = [1];
6356
+
6357
+
6358
+
6359
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6360
+ /**
6361
+ * Creates an object representation of this proto.
6362
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6363
+ * Optional fields that are not set will be set to undefined.
6364
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6365
+ * For the list of reserved names please see:
6366
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6367
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6368
+ * JSPB instance for transitional soy proto support:
6369
+ * http://goto/soy-param-migration
6370
+ * @return {!Object}
6371
+ */
6372
+ proto.config.MirrorItemsResponse.prototype.toObject = function(opt_includeInstance) {
6373
+ return proto.config.MirrorItemsResponse.toObject(opt_includeInstance, this);
6374
+ };
6375
+
6376
+
6377
+ /**
6378
+ * Static version of the {@see toObject} method.
6379
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6380
+ * the JSPB instance for transitional soy proto support:
6381
+ * http://goto/soy-param-migration
6382
+ * @param {!proto.config.MirrorItemsResponse} msg The msg instance to transform.
6383
+ * @return {!Object}
6384
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6385
+ */
6386
+ proto.config.MirrorItemsResponse.toObject = function(includeInstance, msg) {
6387
+ var f, obj = {
6388
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
6389
+ proto.config.MirrorItem.toObject, includeInstance),
6390
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
6391
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
6392
+ };
6393
+
6394
+ if (includeInstance) {
6395
+ obj.$jspbMessageInstance = msg;
6396
+ }
6397
+ return obj;
6398
+ };
6399
+ }
6400
+
6401
+
6402
+ /**
6403
+ * Deserializes binary data (in protobuf wire format).
6404
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6405
+ * @return {!proto.config.MirrorItemsResponse}
6406
+ */
6407
+ proto.config.MirrorItemsResponse.deserializeBinary = function(bytes) {
6408
+ var reader = new jspb.BinaryReader(bytes);
6409
+ var msg = new proto.config.MirrorItemsResponse;
6410
+ return proto.config.MirrorItemsResponse.deserializeBinaryFromReader(msg, reader);
6411
+ };
6412
+
6413
+
6414
+ /**
6415
+ * Deserializes binary data (in protobuf wire format) from the
6416
+ * given reader into the given message object.
6417
+ * @param {!proto.config.MirrorItemsResponse} msg The message object to deserialize into.
6418
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6419
+ * @return {!proto.config.MirrorItemsResponse}
6420
+ */
6421
+ proto.config.MirrorItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
6422
+ while (reader.nextField()) {
6423
+ if (reader.isEndGroup()) {
6424
+ break;
6425
+ }
6426
+ var field = reader.getFieldNumber();
6427
+ switch (field) {
6428
+ case 1:
6429
+ var value = new proto.config.MirrorItem;
6430
+ reader.readMessage(value,proto.config.MirrorItem.deserializeBinaryFromReader);
6431
+ msg.addItems(value);
6432
+ break;
6433
+ case 2:
6434
+ var value = /** @type {number} */ (reader.readInt32());
6435
+ msg.setTotalPages(value);
6436
+ break;
6437
+ case 3:
6438
+ var value = /** @type {number} */ (reader.readInt32());
6439
+ msg.setTotalItems(value);
6440
+ break;
6441
+ default:
6442
+ reader.skipField();
6443
+ break;
6444
+ }
6445
+ }
6446
+ return msg;
6447
+ };
6448
+
6449
+
6450
+ /**
6451
+ * Serializes the message to binary data (in protobuf wire format).
6452
+ * @return {!Uint8Array}
6453
+ */
6454
+ proto.config.MirrorItemsResponse.prototype.serializeBinary = function() {
6455
+ var writer = new jspb.BinaryWriter();
6456
+ proto.config.MirrorItemsResponse.serializeBinaryToWriter(this, writer);
6457
+ return writer.getResultBuffer();
6458
+ };
6459
+
6460
+
6461
+ /**
6462
+ * Serializes the given message to binary data (in protobuf wire
6463
+ * format), writing to the given BinaryWriter.
6464
+ * @param {!proto.config.MirrorItemsResponse} message
6465
+ * @param {!jspb.BinaryWriter} writer
6466
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6467
+ */
6468
+ proto.config.MirrorItemsResponse.serializeBinaryToWriter = function(message, writer) {
6469
+ var f = undefined;
6470
+ f = message.getItemsList();
6471
+ if (f.length > 0) {
6472
+ writer.writeRepeatedMessage(
6473
+ 1,
6474
+ f,
6475
+ proto.config.MirrorItem.serializeBinaryToWriter
6476
+ );
6477
+ }
6478
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
6479
+ if (f != null) {
6480
+ writer.writeInt32(
6481
+ 2,
6482
+ f
6483
+ );
6484
+ }
6485
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
6486
+ if (f != null) {
6487
+ writer.writeInt32(
6488
+ 3,
6489
+ f
6490
+ );
6491
+ }
6492
+ };
6493
+
6494
+
6495
+ /**
6496
+ * repeated MirrorItem items = 1;
6497
+ * @return {!Array<!proto.config.MirrorItem>}
6498
+ */
6499
+ proto.config.MirrorItemsResponse.prototype.getItemsList = function() {
6500
+ return /** @type{!Array<!proto.config.MirrorItem>} */ (
6501
+ jspb.Message.getRepeatedWrapperField(this, proto.config.MirrorItem, 1));
6502
+ };
6503
+
6504
+
6505
+ /**
6506
+ * @param {!Array<!proto.config.MirrorItem>} value
6507
+ * @return {!proto.config.MirrorItemsResponse} returns this
6508
+ */
6509
+ proto.config.MirrorItemsResponse.prototype.setItemsList = function(value) {
6510
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
6511
+ };
6512
+
6513
+
6514
+ /**
6515
+ * @param {!proto.config.MirrorItem=} opt_value
6516
+ * @param {number=} opt_index
6517
+ * @return {!proto.config.MirrorItem}
6518
+ */
6519
+ proto.config.MirrorItemsResponse.prototype.addItems = function(opt_value, opt_index) {
6520
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.config.MirrorItem, opt_index);
6521
+ };
6522
+
6523
+
6524
+ /**
6525
+ * Clears the list making it empty but non-null.
6526
+ * @return {!proto.config.MirrorItemsResponse} returns this
6527
+ */
6528
+ proto.config.MirrorItemsResponse.prototype.clearItemsList = function() {
6529
+ return this.setItemsList([]);
6530
+ };
6531
+
6532
+
6533
+ /**
6534
+ * optional int32 total_pages = 2;
6535
+ * @return {number}
6536
+ */
6537
+ proto.config.MirrorItemsResponse.prototype.getTotalPages = function() {
6538
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
6539
+ };
6540
+
6541
+
6542
+ /**
6543
+ * @param {number} value
6544
+ * @return {!proto.config.MirrorItemsResponse} returns this
6545
+ */
6546
+ proto.config.MirrorItemsResponse.prototype.setTotalPages = function(value) {
6547
+ return jspb.Message.setField(this, 2, value);
6548
+ };
6549
+
6550
+
6551
+ /**
6552
+ * Clears the field making it undefined.
6553
+ * @return {!proto.config.MirrorItemsResponse} returns this
6554
+ */
6555
+ proto.config.MirrorItemsResponse.prototype.clearTotalPages = function() {
6556
+ return jspb.Message.setField(this, 2, undefined);
6557
+ };
6558
+
6559
+
6560
+ /**
6561
+ * Returns whether this field is set.
6562
+ * @return {boolean}
6563
+ */
6564
+ proto.config.MirrorItemsResponse.prototype.hasTotalPages = function() {
6565
+ return jspb.Message.getField(this, 2) != null;
6566
+ };
6567
+
6568
+
6569
+ /**
6570
+ * optional int32 total_items = 3;
6571
+ * @return {number}
6572
+ */
6573
+ proto.config.MirrorItemsResponse.prototype.getTotalItems = function() {
6574
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
6575
+ };
6576
+
6577
+
6578
+ /**
6579
+ * @param {number} value
6580
+ * @return {!proto.config.MirrorItemsResponse} returns this
6581
+ */
6582
+ proto.config.MirrorItemsResponse.prototype.setTotalItems = function(value) {
6583
+ return jspb.Message.setField(this, 3, value);
6584
+ };
6585
+
6586
+
6587
+ /**
6588
+ * Clears the field making it undefined.
6589
+ * @return {!proto.config.MirrorItemsResponse} returns this
6590
+ */
6591
+ proto.config.MirrorItemsResponse.prototype.clearTotalItems = function() {
6592
+ return jspb.Message.setField(this, 3, undefined);
6593
+ };
6594
+
6595
+
6596
+ /**
6597
+ * Returns whether this field is set.
6598
+ * @return {boolean}
6599
+ */
6600
+ proto.config.MirrorItemsResponse.prototype.hasTotalItems = function() {
6601
+ return jspb.Message.getField(this, 3) != null;
6602
+ };
6603
+
6604
+
5520
6605
  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.85",
3
+ "version": "1.2.87",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {