@lansweeper/install-api-grpc 0.0.5 → 0.0.7
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.
- package/gen-proto/image.json +1 -1
- package/gen-proto/install_grpc_pb.d.ts +35 -0
- package/gen-proto/install_grpc_pb.js +67 -0
- package/gen-proto/install_pb.d.ts +169 -0
- package/gen-proto/install_pb.js +1394 -166
- package/package.json +2 -2
- package/proto/install.proto +47 -0
package/gen-proto/install_pb.js
CHANGED
|
@@ -21,9 +21,19 @@ var global = (function() {
|
|
|
21
21
|
return Function('return this')();
|
|
22
22
|
}.call(null));
|
|
23
23
|
|
|
24
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
25
|
+
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
24
26
|
goog.exportSymbol('proto.lansweeper.install.v1.GetHubCertificatesRequest', null, global);
|
|
25
27
|
goog.exportSymbol('proto.lansweeper.install.v1.GetHubCertificatesResponse', null, global);
|
|
28
|
+
goog.exportSymbol('proto.lansweeper.install.v1.GetInstallationsBySiteRequest', null, global);
|
|
29
|
+
goog.exportSymbol('proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter', null, global);
|
|
30
|
+
goog.exportSymbol('proto.lansweeper.install.v1.GetInstallationsBySiteResponse', null, global);
|
|
26
31
|
goog.exportSymbol('proto.lansweeper.install.v1.HubCertificateInstallation', null, global);
|
|
32
|
+
goog.exportSymbol('proto.lansweeper.install.v1.InstallStateValue', null, global);
|
|
33
|
+
goog.exportSymbol('proto.lansweeper.install.v1.InstallType', null, global);
|
|
34
|
+
goog.exportSymbol('proto.lansweeper.install.v1.Installation', null, global);
|
|
35
|
+
goog.exportSymbol('proto.lansweeper.install.v1.RemoveHubCertificateRequest', null, global);
|
|
36
|
+
goog.exportSymbol('proto.lansweeper.install.v1.RemoveHubCertificateResponse', null, global);
|
|
27
37
|
goog.exportSymbol('proto.lansweeper.install.v1.SetHubCertificateRequest', null, global);
|
|
28
38
|
goog.exportSymbol('proto.lansweeper.install.v1.SetHubCertificateResponse', null, global);
|
|
29
39
|
goog.exportSymbol('proto.lansweeper.install.v1.SetPublicKeyRequest', null, global);
|
|
@@ -112,6 +122,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
112
122
|
*/
|
|
113
123
|
proto.lansweeper.install.v1.SetHubCertificateResponse.displayName = 'proto.lansweeper.install.v1.SetHubCertificateResponse';
|
|
114
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Generated by JsPbCodeGenerator.
|
|
127
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
128
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
129
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
130
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
131
|
+
* valid.
|
|
132
|
+
* @extends {jspb.Message}
|
|
133
|
+
* @constructor
|
|
134
|
+
*/
|
|
135
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest = function(opt_data) {
|
|
136
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
137
|
+
};
|
|
138
|
+
goog.inherits(proto.lansweeper.install.v1.RemoveHubCertificateRequest, jspb.Message);
|
|
139
|
+
if (goog.DEBUG && !COMPILED) {
|
|
140
|
+
/**
|
|
141
|
+
* @public
|
|
142
|
+
* @override
|
|
143
|
+
*/
|
|
144
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.displayName = 'proto.lansweeper.install.v1.RemoveHubCertificateRequest';
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Generated by JsPbCodeGenerator.
|
|
148
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
149
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
150
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
151
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
152
|
+
* valid.
|
|
153
|
+
* @extends {jspb.Message}
|
|
154
|
+
* @constructor
|
|
155
|
+
*/
|
|
156
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse = function(opt_data) {
|
|
157
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
158
|
+
};
|
|
159
|
+
goog.inherits(proto.lansweeper.install.v1.RemoveHubCertificateResponse, jspb.Message);
|
|
160
|
+
if (goog.DEBUG && !COMPILED) {
|
|
161
|
+
/**
|
|
162
|
+
* @public
|
|
163
|
+
* @override
|
|
164
|
+
*/
|
|
165
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.displayName = 'proto.lansweeper.install.v1.RemoveHubCertificateResponse';
|
|
166
|
+
}
|
|
115
167
|
/**
|
|
116
168
|
* Generated by JsPbCodeGenerator.
|
|
117
169
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -175,6 +227,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
175
227
|
*/
|
|
176
228
|
proto.lansweeper.install.v1.HubCertificateInstallation.displayName = 'proto.lansweeper.install.v1.HubCertificateInstallation';
|
|
177
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* Generated by JsPbCodeGenerator.
|
|
232
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
233
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
234
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
235
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
236
|
+
* valid.
|
|
237
|
+
* @extends {jspb.Message}
|
|
238
|
+
* @constructor
|
|
239
|
+
*/
|
|
240
|
+
proto.lansweeper.install.v1.Installation = function(opt_data) {
|
|
241
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
242
|
+
};
|
|
243
|
+
goog.inherits(proto.lansweeper.install.v1.Installation, jspb.Message);
|
|
244
|
+
if (goog.DEBUG && !COMPILED) {
|
|
245
|
+
/**
|
|
246
|
+
* @public
|
|
247
|
+
* @override
|
|
248
|
+
*/
|
|
249
|
+
proto.lansweeper.install.v1.Installation.displayName = 'proto.lansweeper.install.v1.Installation';
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Generated by JsPbCodeGenerator.
|
|
253
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
254
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
255
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
256
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
257
|
+
* valid.
|
|
258
|
+
* @extends {jspb.Message}
|
|
259
|
+
* @constructor
|
|
260
|
+
*/
|
|
261
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest = function(opt_data) {
|
|
262
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
263
|
+
};
|
|
264
|
+
goog.inherits(proto.lansweeper.install.v1.GetInstallationsBySiteRequest, jspb.Message);
|
|
265
|
+
if (goog.DEBUG && !COMPILED) {
|
|
266
|
+
/**
|
|
267
|
+
* @public
|
|
268
|
+
* @override
|
|
269
|
+
*/
|
|
270
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.displayName = 'proto.lansweeper.install.v1.GetInstallationsBySiteRequest';
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Generated by JsPbCodeGenerator.
|
|
274
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
275
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
276
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
277
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
278
|
+
* valid.
|
|
279
|
+
* @extends {jspb.Message}
|
|
280
|
+
* @constructor
|
|
281
|
+
*/
|
|
282
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter = function(opt_data) {
|
|
283
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
284
|
+
};
|
|
285
|
+
goog.inherits(proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter, jspb.Message);
|
|
286
|
+
if (goog.DEBUG && !COMPILED) {
|
|
287
|
+
/**
|
|
288
|
+
* @public
|
|
289
|
+
* @override
|
|
290
|
+
*/
|
|
291
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.displayName = 'proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter';
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Generated by JsPbCodeGenerator.
|
|
295
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
296
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
297
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
298
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
299
|
+
* valid.
|
|
300
|
+
* @extends {jspb.Message}
|
|
301
|
+
* @constructor
|
|
302
|
+
*/
|
|
303
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteResponse = function(opt_data) {
|
|
304
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.install.v1.GetInstallationsBySiteResponse.repeatedFields_, null);
|
|
305
|
+
};
|
|
306
|
+
goog.inherits(proto.lansweeper.install.v1.GetInstallationsBySiteResponse, jspb.Message);
|
|
307
|
+
if (goog.DEBUG && !COMPILED) {
|
|
308
|
+
/**
|
|
309
|
+
* @public
|
|
310
|
+
* @override
|
|
311
|
+
*/
|
|
312
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteResponse.displayName = 'proto.lansweeper.install.v1.GetInstallationsBySiteResponse';
|
|
313
|
+
}
|
|
178
314
|
|
|
179
315
|
|
|
180
316
|
|
|
@@ -788,13 +924,6 @@ proto.lansweeper.install.v1.SetHubCertificateResponse.serializeBinaryToWriter =
|
|
|
788
924
|
|
|
789
925
|
|
|
790
926
|
|
|
791
|
-
/**
|
|
792
|
-
* List of repeated fields within this message type.
|
|
793
|
-
* @private {!Array<number>}
|
|
794
|
-
* @const
|
|
795
|
-
*/
|
|
796
|
-
proto.lansweeper.install.v1.GetHubCertificatesRequest.repeatedFields_ = [2];
|
|
797
|
-
|
|
798
927
|
|
|
799
928
|
|
|
800
929
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -810,8 +939,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
810
939
|
* http://goto/soy-param-migration
|
|
811
940
|
* @return {!Object}
|
|
812
941
|
*/
|
|
813
|
-
proto.lansweeper.install.v1.
|
|
814
|
-
return proto.lansweeper.install.v1.
|
|
942
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.toObject = function(opt_includeInstance) {
|
|
943
|
+
return proto.lansweeper.install.v1.RemoveHubCertificateRequest.toObject(opt_includeInstance, this);
|
|
815
944
|
};
|
|
816
945
|
|
|
817
946
|
|
|
@@ -820,14 +949,14 @@ proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.toObject = funct
|
|
|
820
949
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
821
950
|
* the JSPB instance for transitional soy proto support:
|
|
822
951
|
* http://goto/soy-param-migration
|
|
823
|
-
* @param {!proto.lansweeper.install.v1.
|
|
952
|
+
* @param {!proto.lansweeper.install.v1.RemoveHubCertificateRequest} msg The msg instance to transform.
|
|
824
953
|
* @return {!Object}
|
|
825
954
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
826
955
|
*/
|
|
827
|
-
proto.lansweeper.install.v1.
|
|
956
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.toObject = function(includeInstance, msg) {
|
|
828
957
|
var f, obj = {
|
|
829
958
|
siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
830
|
-
|
|
959
|
+
installKey: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
831
960
|
};
|
|
832
961
|
|
|
833
962
|
if (includeInstance) {
|
|
@@ -841,23 +970,23 @@ proto.lansweeper.install.v1.GetHubCertificatesRequest.toObject = function(includ
|
|
|
841
970
|
/**
|
|
842
971
|
* Deserializes binary data (in protobuf wire format).
|
|
843
972
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
844
|
-
* @return {!proto.lansweeper.install.v1.
|
|
973
|
+
* @return {!proto.lansweeper.install.v1.RemoveHubCertificateRequest}
|
|
845
974
|
*/
|
|
846
|
-
proto.lansweeper.install.v1.
|
|
975
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.deserializeBinary = function(bytes) {
|
|
847
976
|
var reader = new jspb.BinaryReader(bytes);
|
|
848
|
-
var msg = new proto.lansweeper.install.v1.
|
|
849
|
-
return proto.lansweeper.install.v1.
|
|
977
|
+
var msg = new proto.lansweeper.install.v1.RemoveHubCertificateRequest;
|
|
978
|
+
return proto.lansweeper.install.v1.RemoveHubCertificateRequest.deserializeBinaryFromReader(msg, reader);
|
|
850
979
|
};
|
|
851
980
|
|
|
852
981
|
|
|
853
982
|
/**
|
|
854
983
|
* Deserializes binary data (in protobuf wire format) from the
|
|
855
984
|
* given reader into the given message object.
|
|
856
|
-
* @param {!proto.lansweeper.install.v1.
|
|
985
|
+
* @param {!proto.lansweeper.install.v1.RemoveHubCertificateRequest} msg The message object to deserialize into.
|
|
857
986
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
858
|
-
* @return {!proto.lansweeper.install.v1.
|
|
987
|
+
* @return {!proto.lansweeper.install.v1.RemoveHubCertificateRequest}
|
|
859
988
|
*/
|
|
860
|
-
proto.lansweeper.install.v1.
|
|
989
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
861
990
|
while (reader.nextField()) {
|
|
862
991
|
if (reader.isEndGroup()) {
|
|
863
992
|
break;
|
|
@@ -870,7 +999,7 @@ proto.lansweeper.install.v1.GetHubCertificatesRequest.deserializeBinaryFromReade
|
|
|
870
999
|
break;
|
|
871
1000
|
case 2:
|
|
872
1001
|
var value = /** @type {string} */ (reader.readString());
|
|
873
|
-
msg.
|
|
1002
|
+
msg.setInstallKey(value);
|
|
874
1003
|
break;
|
|
875
1004
|
default:
|
|
876
1005
|
reader.skipField();
|
|
@@ -885,9 +1014,9 @@ proto.lansweeper.install.v1.GetHubCertificatesRequest.deserializeBinaryFromReade
|
|
|
885
1014
|
* Serializes the message to binary data (in protobuf wire format).
|
|
886
1015
|
* @return {!Uint8Array}
|
|
887
1016
|
*/
|
|
888
|
-
proto.lansweeper.install.v1.
|
|
1017
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.serializeBinary = function() {
|
|
889
1018
|
var writer = new jspb.BinaryWriter();
|
|
890
|
-
proto.lansweeper.install.v1.
|
|
1019
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.serializeBinaryToWriter(this, writer);
|
|
891
1020
|
return writer.getResultBuffer();
|
|
892
1021
|
};
|
|
893
1022
|
|
|
@@ -895,11 +1024,11 @@ proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.serializeBinary
|
|
|
895
1024
|
/**
|
|
896
1025
|
* Serializes the given message to binary data (in protobuf wire
|
|
897
1026
|
* format), writing to the given BinaryWriter.
|
|
898
|
-
* @param {!proto.lansweeper.install.v1.
|
|
1027
|
+
* @param {!proto.lansweeper.install.v1.RemoveHubCertificateRequest} message
|
|
899
1028
|
* @param {!jspb.BinaryWriter} writer
|
|
900
1029
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
901
1030
|
*/
|
|
902
|
-
proto.lansweeper.install.v1.
|
|
1031
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
903
1032
|
var f = undefined;
|
|
904
1033
|
f = message.getSiteId();
|
|
905
1034
|
if (f.length > 0) {
|
|
@@ -908,9 +1037,9 @@ proto.lansweeper.install.v1.GetHubCertificatesRequest.serializeBinaryToWriter =
|
|
|
908
1037
|
f
|
|
909
1038
|
);
|
|
910
1039
|
}
|
|
911
|
-
f = message.
|
|
1040
|
+
f = message.getInstallKey();
|
|
912
1041
|
if (f.length > 0) {
|
|
913
|
-
writer.
|
|
1042
|
+
writer.writeString(
|
|
914
1043
|
2,
|
|
915
1044
|
f
|
|
916
1045
|
);
|
|
@@ -922,65 +1051,39 @@ proto.lansweeper.install.v1.GetHubCertificatesRequest.serializeBinaryToWriter =
|
|
|
922
1051
|
* optional string site_id = 1;
|
|
923
1052
|
* @return {string}
|
|
924
1053
|
*/
|
|
925
|
-
proto.lansweeper.install.v1.
|
|
1054
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.getSiteId = function() {
|
|
926
1055
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
927
1056
|
};
|
|
928
1057
|
|
|
929
1058
|
|
|
930
1059
|
/**
|
|
931
1060
|
* @param {string} value
|
|
932
|
-
* @return {!proto.lansweeper.install.v1.
|
|
1061
|
+
* @return {!proto.lansweeper.install.v1.RemoveHubCertificateRequest} returns this
|
|
933
1062
|
*/
|
|
934
|
-
proto.lansweeper.install.v1.
|
|
1063
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.setSiteId = function(value) {
|
|
935
1064
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
936
1065
|
};
|
|
937
1066
|
|
|
938
1067
|
|
|
939
1068
|
/**
|
|
940
|
-
*
|
|
941
|
-
* @return {
|
|
942
|
-
*/
|
|
943
|
-
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.getInstallKeysList = function() {
|
|
944
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
945
|
-
};
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
/**
|
|
949
|
-
* @param {!Array<string>} value
|
|
950
|
-
* @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest} returns this
|
|
1069
|
+
* optional string install_key = 2;
|
|
1070
|
+
* @return {string}
|
|
951
1071
|
*/
|
|
952
|
-
proto.lansweeper.install.v1.
|
|
953
|
-
return jspb.Message.
|
|
1072
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.getInstallKey = function() {
|
|
1073
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
954
1074
|
};
|
|
955
1075
|
|
|
956
1076
|
|
|
957
1077
|
/**
|
|
958
1078
|
* @param {string} value
|
|
959
|
-
* @
|
|
960
|
-
* @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest} returns this
|
|
961
|
-
*/
|
|
962
|
-
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.addInstallKeys = function(value, opt_index) {
|
|
963
|
-
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
964
|
-
};
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
/**
|
|
968
|
-
* Clears the list making it empty but non-null.
|
|
969
|
-
* @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest} returns this
|
|
1079
|
+
* @return {!proto.lansweeper.install.v1.RemoveHubCertificateRequest} returns this
|
|
970
1080
|
*/
|
|
971
|
-
proto.lansweeper.install.v1.
|
|
972
|
-
return
|
|
1081
|
+
proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.setInstallKey = function(value) {
|
|
1082
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
973
1083
|
};
|
|
974
1084
|
|
|
975
1085
|
|
|
976
1086
|
|
|
977
|
-
/**
|
|
978
|
-
* List of repeated fields within this message type.
|
|
979
|
-
* @private {!Array<number>}
|
|
980
|
-
* @const
|
|
981
|
-
*/
|
|
982
|
-
proto.lansweeper.install.v1.GetHubCertificatesResponse.repeatedFields_ = [1];
|
|
983
|
-
|
|
984
1087
|
|
|
985
1088
|
|
|
986
1089
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -996,8 +1099,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
996
1099
|
* http://goto/soy-param-migration
|
|
997
1100
|
* @return {!Object}
|
|
998
1101
|
*/
|
|
999
|
-
proto.lansweeper.install.v1.
|
|
1000
|
-
return proto.lansweeper.install.v1.
|
|
1102
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1103
|
+
return proto.lansweeper.install.v1.RemoveHubCertificateResponse.toObject(opt_includeInstance, this);
|
|
1001
1104
|
};
|
|
1002
1105
|
|
|
1003
1106
|
|
|
@@ -1006,14 +1109,13 @@ proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.toObject = func
|
|
|
1006
1109
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1007
1110
|
* the JSPB instance for transitional soy proto support:
|
|
1008
1111
|
* http://goto/soy-param-migration
|
|
1009
|
-
* @param {!proto.lansweeper.install.v1.
|
|
1112
|
+
* @param {!proto.lansweeper.install.v1.RemoveHubCertificateResponse} msg The msg instance to transform.
|
|
1010
1113
|
* @return {!Object}
|
|
1011
1114
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1012
1115
|
*/
|
|
1013
|
-
proto.lansweeper.install.v1.
|
|
1116
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.toObject = function(includeInstance, msg) {
|
|
1014
1117
|
var f, obj = {
|
|
1015
|
-
|
|
1016
|
-
proto.lansweeper.install.v1.HubCertificateInstallation.toObject, includeInstance)
|
|
1118
|
+
|
|
1017
1119
|
};
|
|
1018
1120
|
|
|
1019
1121
|
if (includeInstance) {
|
|
@@ -1027,34 +1129,29 @@ proto.lansweeper.install.v1.GetHubCertificatesResponse.toObject = function(inclu
|
|
|
1027
1129
|
/**
|
|
1028
1130
|
* Deserializes binary data (in protobuf wire format).
|
|
1029
1131
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1030
|
-
* @return {!proto.lansweeper.install.v1.
|
|
1132
|
+
* @return {!proto.lansweeper.install.v1.RemoveHubCertificateResponse}
|
|
1031
1133
|
*/
|
|
1032
|
-
proto.lansweeper.install.v1.
|
|
1134
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.deserializeBinary = function(bytes) {
|
|
1033
1135
|
var reader = new jspb.BinaryReader(bytes);
|
|
1034
|
-
var msg = new proto.lansweeper.install.v1.
|
|
1035
|
-
return proto.lansweeper.install.v1.
|
|
1136
|
+
var msg = new proto.lansweeper.install.v1.RemoveHubCertificateResponse;
|
|
1137
|
+
return proto.lansweeper.install.v1.RemoveHubCertificateResponse.deserializeBinaryFromReader(msg, reader);
|
|
1036
1138
|
};
|
|
1037
1139
|
|
|
1038
1140
|
|
|
1039
1141
|
/**
|
|
1040
1142
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1041
1143
|
* given reader into the given message object.
|
|
1042
|
-
* @param {!proto.lansweeper.install.v1.
|
|
1144
|
+
* @param {!proto.lansweeper.install.v1.RemoveHubCertificateResponse} msg The message object to deserialize into.
|
|
1043
1145
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1044
|
-
* @return {!proto.lansweeper.install.v1.
|
|
1146
|
+
* @return {!proto.lansweeper.install.v1.RemoveHubCertificateResponse}
|
|
1045
1147
|
*/
|
|
1046
|
-
proto.lansweeper.install.v1.
|
|
1148
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1047
1149
|
while (reader.nextField()) {
|
|
1048
1150
|
if (reader.isEndGroup()) {
|
|
1049
1151
|
break;
|
|
1050
1152
|
}
|
|
1051
1153
|
var field = reader.getFieldNumber();
|
|
1052
1154
|
switch (field) {
|
|
1053
|
-
case 1:
|
|
1054
|
-
var value = new proto.lansweeper.install.v1.HubCertificateInstallation;
|
|
1055
|
-
reader.readMessage(value,proto.lansweeper.install.v1.HubCertificateInstallation.deserializeBinaryFromReader);
|
|
1056
|
-
msg.addHubCertificates(value);
|
|
1057
|
-
break;
|
|
1058
1155
|
default:
|
|
1059
1156
|
reader.skipField();
|
|
1060
1157
|
break;
|
|
@@ -1068,9 +1165,9 @@ proto.lansweeper.install.v1.GetHubCertificatesResponse.deserializeBinaryFromRead
|
|
|
1068
1165
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1069
1166
|
* @return {!Uint8Array}
|
|
1070
1167
|
*/
|
|
1071
|
-
proto.lansweeper.install.v1.
|
|
1168
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.prototype.serializeBinary = function() {
|
|
1072
1169
|
var writer = new jspb.BinaryWriter();
|
|
1073
|
-
proto.lansweeper.install.v1.
|
|
1170
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.serializeBinaryToWriter(this, writer);
|
|
1074
1171
|
return writer.getResultBuffer();
|
|
1075
1172
|
};
|
|
1076
1173
|
|
|
@@ -1078,61 +1175,22 @@ proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.serializeBinary
|
|
|
1078
1175
|
/**
|
|
1079
1176
|
* Serializes the given message to binary data (in protobuf wire
|
|
1080
1177
|
* format), writing to the given BinaryWriter.
|
|
1081
|
-
* @param {!proto.lansweeper.install.v1.
|
|
1178
|
+
* @param {!proto.lansweeper.install.v1.RemoveHubCertificateResponse} message
|
|
1082
1179
|
* @param {!jspb.BinaryWriter} writer
|
|
1083
1180
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1084
1181
|
*/
|
|
1085
|
-
proto.lansweeper.install.v1.
|
|
1182
|
+
proto.lansweeper.install.v1.RemoveHubCertificateResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1086
1183
|
var f = undefined;
|
|
1087
|
-
f = message.getHubCertificatesList();
|
|
1088
|
-
if (f.length > 0) {
|
|
1089
|
-
writer.writeRepeatedMessage(
|
|
1090
|
-
1,
|
|
1091
|
-
f,
|
|
1092
|
-
proto.lansweeper.install.v1.HubCertificateInstallation.serializeBinaryToWriter
|
|
1093
|
-
);
|
|
1094
|
-
}
|
|
1095
|
-
};
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
/**
|
|
1099
|
-
* repeated HubCertificateInstallation hub_certificates = 1;
|
|
1100
|
-
* @return {!Array<!proto.lansweeper.install.v1.HubCertificateInstallation>}
|
|
1101
|
-
*/
|
|
1102
|
-
proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.getHubCertificatesList = function() {
|
|
1103
|
-
return /** @type{!Array<!proto.lansweeper.install.v1.HubCertificateInstallation>} */ (
|
|
1104
|
-
jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.install.v1.HubCertificateInstallation, 1));
|
|
1105
|
-
};
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
/**
|
|
1109
|
-
* @param {!Array<!proto.lansweeper.install.v1.HubCertificateInstallation>} value
|
|
1110
|
-
* @return {!proto.lansweeper.install.v1.GetHubCertificatesResponse} returns this
|
|
1111
|
-
*/
|
|
1112
|
-
proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.setHubCertificatesList = function(value) {
|
|
1113
|
-
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1114
1184
|
};
|
|
1115
1185
|
|
|
1116
1186
|
|
|
1117
|
-
/**
|
|
1118
|
-
* @param {!proto.lansweeper.install.v1.HubCertificateInstallation=} opt_value
|
|
1119
|
-
* @param {number=} opt_index
|
|
1120
|
-
* @return {!proto.lansweeper.install.v1.HubCertificateInstallation}
|
|
1121
|
-
*/
|
|
1122
|
-
proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.addHubCertificates = function(opt_value, opt_index) {
|
|
1123
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.install.v1.HubCertificateInstallation, opt_index);
|
|
1124
|
-
};
|
|
1125
|
-
|
|
1126
1187
|
|
|
1127
1188
|
/**
|
|
1128
|
-
*
|
|
1129
|
-
* @
|
|
1189
|
+
* List of repeated fields within this message type.
|
|
1190
|
+
* @private {!Array<number>}
|
|
1191
|
+
* @const
|
|
1130
1192
|
*/
|
|
1131
|
-
proto.lansweeper.install.v1.
|
|
1132
|
-
return this.setHubCertificatesList([]);
|
|
1133
|
-
};
|
|
1134
|
-
|
|
1135
|
-
|
|
1193
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.repeatedFields_ = [2];
|
|
1136
1194
|
|
|
1137
1195
|
|
|
1138
1196
|
|
|
@@ -1149,8 +1207,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1149
1207
|
* http://goto/soy-param-migration
|
|
1150
1208
|
* @return {!Object}
|
|
1151
1209
|
*/
|
|
1152
|
-
proto.lansweeper.install.v1.
|
|
1153
|
-
return proto.lansweeper.install.v1.
|
|
1210
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1211
|
+
return proto.lansweeper.install.v1.GetHubCertificatesRequest.toObject(opt_includeInstance, this);
|
|
1154
1212
|
};
|
|
1155
1213
|
|
|
1156
1214
|
|
|
@@ -1159,14 +1217,14 @@ proto.lansweeper.install.v1.HubCertificateInstallation.prototype.toObject = func
|
|
|
1159
1217
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1160
1218
|
* the JSPB instance for transitional soy proto support:
|
|
1161
1219
|
* http://goto/soy-param-migration
|
|
1162
|
-
* @param {!proto.lansweeper.install.v1.
|
|
1220
|
+
* @param {!proto.lansweeper.install.v1.GetHubCertificatesRequest} msg The msg instance to transform.
|
|
1163
1221
|
* @return {!Object}
|
|
1164
1222
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1165
1223
|
*/
|
|
1166
|
-
proto.lansweeper.install.v1.
|
|
1224
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.toObject = function(includeInstance, msg) {
|
|
1167
1225
|
var f, obj = {
|
|
1168
|
-
|
|
1169
|
-
|
|
1226
|
+
siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1227
|
+
installKeysList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
1170
1228
|
};
|
|
1171
1229
|
|
|
1172
1230
|
if (includeInstance) {
|
|
@@ -1180,36 +1238,36 @@ proto.lansweeper.install.v1.HubCertificateInstallation.toObject = function(inclu
|
|
|
1180
1238
|
/**
|
|
1181
1239
|
* Deserializes binary data (in protobuf wire format).
|
|
1182
1240
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1183
|
-
* @return {!proto.lansweeper.install.v1.
|
|
1241
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest}
|
|
1184
1242
|
*/
|
|
1185
|
-
proto.lansweeper.install.v1.
|
|
1243
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.deserializeBinary = function(bytes) {
|
|
1186
1244
|
var reader = new jspb.BinaryReader(bytes);
|
|
1187
|
-
var msg = new proto.lansweeper.install.v1.
|
|
1188
|
-
return proto.lansweeper.install.v1.
|
|
1245
|
+
var msg = new proto.lansweeper.install.v1.GetHubCertificatesRequest;
|
|
1246
|
+
return proto.lansweeper.install.v1.GetHubCertificatesRequest.deserializeBinaryFromReader(msg, reader);
|
|
1189
1247
|
};
|
|
1190
1248
|
|
|
1191
1249
|
|
|
1192
1250
|
/**
|
|
1193
1251
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1194
1252
|
* given reader into the given message object.
|
|
1195
|
-
* @param {!proto.lansweeper.install.v1.
|
|
1253
|
+
* @param {!proto.lansweeper.install.v1.GetHubCertificatesRequest} msg The message object to deserialize into.
|
|
1196
1254
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1197
|
-
* @return {!proto.lansweeper.install.v1.
|
|
1255
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest}
|
|
1198
1256
|
*/
|
|
1199
|
-
proto.lansweeper.install.v1.
|
|
1257
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1200
1258
|
while (reader.nextField()) {
|
|
1201
1259
|
if (reader.isEndGroup()) {
|
|
1202
1260
|
break;
|
|
1203
1261
|
}
|
|
1204
1262
|
var field = reader.getFieldNumber();
|
|
1205
1263
|
switch (field) {
|
|
1206
|
-
case
|
|
1264
|
+
case 1:
|
|
1207
1265
|
var value = /** @type {string} */ (reader.readString());
|
|
1208
|
-
msg.
|
|
1266
|
+
msg.setSiteId(value);
|
|
1209
1267
|
break;
|
|
1210
|
-
case
|
|
1268
|
+
case 2:
|
|
1211
1269
|
var value = /** @type {string} */ (reader.readString());
|
|
1212
|
-
msg.
|
|
1270
|
+
msg.addInstallKeys(value);
|
|
1213
1271
|
break;
|
|
1214
1272
|
default:
|
|
1215
1273
|
reader.skipField();
|
|
@@ -1224,9 +1282,9 @@ proto.lansweeper.install.v1.HubCertificateInstallation.deserializeBinaryFromRead
|
|
|
1224
1282
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1225
1283
|
* @return {!Uint8Array}
|
|
1226
1284
|
*/
|
|
1227
|
-
proto.lansweeper.install.v1.
|
|
1285
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.serializeBinary = function() {
|
|
1228
1286
|
var writer = new jspb.BinaryWriter();
|
|
1229
|
-
proto.lansweeper.install.v1.
|
|
1287
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.serializeBinaryToWriter(this, writer);
|
|
1230
1288
|
return writer.getResultBuffer();
|
|
1231
1289
|
};
|
|
1232
1290
|
|
|
@@ -1234,23 +1292,23 @@ proto.lansweeper.install.v1.HubCertificateInstallation.prototype.serializeBinary
|
|
|
1234
1292
|
/**
|
|
1235
1293
|
* Serializes the given message to binary data (in protobuf wire
|
|
1236
1294
|
* format), writing to the given BinaryWriter.
|
|
1237
|
-
* @param {!proto.lansweeper.install.v1.
|
|
1295
|
+
* @param {!proto.lansweeper.install.v1.GetHubCertificatesRequest} message
|
|
1238
1296
|
* @param {!jspb.BinaryWriter} writer
|
|
1239
1297
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1240
1298
|
*/
|
|
1241
|
-
proto.lansweeper.install.v1.
|
|
1299
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1242
1300
|
var f = undefined;
|
|
1243
|
-
f = message.
|
|
1301
|
+
f = message.getSiteId();
|
|
1244
1302
|
if (f.length > 0) {
|
|
1245
1303
|
writer.writeString(
|
|
1246
|
-
|
|
1304
|
+
1,
|
|
1247
1305
|
f
|
|
1248
1306
|
);
|
|
1249
1307
|
}
|
|
1250
|
-
f = message.
|
|
1308
|
+
f = message.getInstallKeysList();
|
|
1251
1309
|
if (f.length > 0) {
|
|
1252
|
-
writer.
|
|
1253
|
-
|
|
1310
|
+
writer.writeRepeatedString(
|
|
1311
|
+
2,
|
|
1254
1312
|
f
|
|
1255
1313
|
);
|
|
1256
1314
|
}
|
|
@@ -1258,39 +1316,1209 @@ proto.lansweeper.install.v1.HubCertificateInstallation.serializeBinaryToWriter =
|
|
|
1258
1316
|
|
|
1259
1317
|
|
|
1260
1318
|
/**
|
|
1261
|
-
* optional string
|
|
1319
|
+
* optional string site_id = 1;
|
|
1262
1320
|
* @return {string}
|
|
1263
1321
|
*/
|
|
1264
|
-
proto.lansweeper.install.v1.
|
|
1265
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
1322
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.getSiteId = function() {
|
|
1323
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1266
1324
|
};
|
|
1267
1325
|
|
|
1268
1326
|
|
|
1269
1327
|
/**
|
|
1270
1328
|
* @param {string} value
|
|
1271
|
-
* @return {!proto.lansweeper.install.v1.
|
|
1329
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest} returns this
|
|
1272
1330
|
*/
|
|
1273
|
-
proto.lansweeper.install.v1.
|
|
1274
|
-
return jspb.Message.setProto3StringField(this,
|
|
1331
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.setSiteId = function(value) {
|
|
1332
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1275
1333
|
};
|
|
1276
1334
|
|
|
1277
1335
|
|
|
1278
1336
|
/**
|
|
1279
|
-
*
|
|
1280
|
-
* @return {string}
|
|
1337
|
+
* repeated string install_keys = 2;
|
|
1338
|
+
* @return {!Array<string>}
|
|
1281
1339
|
*/
|
|
1282
|
-
proto.lansweeper.install.v1.
|
|
1283
|
-
return /** @type {string} */ (jspb.Message.
|
|
1340
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.getInstallKeysList = function() {
|
|
1341
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
1342
|
+
};
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* @param {!Array<string>} value
|
|
1347
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest} returns this
|
|
1348
|
+
*/
|
|
1349
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.setInstallKeysList = function(value) {
|
|
1350
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
1284
1351
|
};
|
|
1285
1352
|
|
|
1286
1353
|
|
|
1287
1354
|
/**
|
|
1288
1355
|
* @param {string} value
|
|
1289
|
-
* @
|
|
1356
|
+
* @param {number=} opt_index
|
|
1357
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest} returns this
|
|
1290
1358
|
*/
|
|
1291
|
-
proto.lansweeper.install.v1.
|
|
1292
|
-
return jspb.Message.
|
|
1359
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.addInstallKeys = function(value, opt_index) {
|
|
1360
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
1361
|
+
};
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* Clears the list making it empty but non-null.
|
|
1366
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest} returns this
|
|
1367
|
+
*/
|
|
1368
|
+
proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.clearInstallKeysList = function() {
|
|
1369
|
+
return this.setInstallKeysList([]);
|
|
1370
|
+
};
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* List of repeated fields within this message type.
|
|
1376
|
+
* @private {!Array<number>}
|
|
1377
|
+
* @const
|
|
1378
|
+
*/
|
|
1379
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.repeatedFields_ = [1];
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1384
|
+
/**
|
|
1385
|
+
* Creates an object representation of this proto.
|
|
1386
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1387
|
+
* Optional fields that are not set will be set to undefined.
|
|
1388
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1389
|
+
* For the list of reserved names please see:
|
|
1390
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1391
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1392
|
+
* JSPB instance for transitional soy proto support:
|
|
1393
|
+
* http://goto/soy-param-migration
|
|
1394
|
+
* @return {!Object}
|
|
1395
|
+
*/
|
|
1396
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1397
|
+
return proto.lansweeper.install.v1.GetHubCertificatesResponse.toObject(opt_includeInstance, this);
|
|
1398
|
+
};
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Static version of the {@see toObject} method.
|
|
1403
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1404
|
+
* the JSPB instance for transitional soy proto support:
|
|
1405
|
+
* http://goto/soy-param-migration
|
|
1406
|
+
* @param {!proto.lansweeper.install.v1.GetHubCertificatesResponse} msg The msg instance to transform.
|
|
1407
|
+
* @return {!Object}
|
|
1408
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1409
|
+
*/
|
|
1410
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.toObject = function(includeInstance, msg) {
|
|
1411
|
+
var f, obj = {
|
|
1412
|
+
hubCertificatesList: jspb.Message.toObjectList(msg.getHubCertificatesList(),
|
|
1413
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.toObject, includeInstance)
|
|
1414
|
+
};
|
|
1415
|
+
|
|
1416
|
+
if (includeInstance) {
|
|
1417
|
+
obj.$jspbMessageInstance = msg;
|
|
1418
|
+
}
|
|
1419
|
+
return obj;
|
|
1420
|
+
};
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1426
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1427
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesResponse}
|
|
1428
|
+
*/
|
|
1429
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.deserializeBinary = function(bytes) {
|
|
1430
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1431
|
+
var msg = new proto.lansweeper.install.v1.GetHubCertificatesResponse;
|
|
1432
|
+
return proto.lansweeper.install.v1.GetHubCertificatesResponse.deserializeBinaryFromReader(msg, reader);
|
|
1433
|
+
};
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1438
|
+
* given reader into the given message object.
|
|
1439
|
+
* @param {!proto.lansweeper.install.v1.GetHubCertificatesResponse} msg The message object to deserialize into.
|
|
1440
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1441
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesResponse}
|
|
1442
|
+
*/
|
|
1443
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1444
|
+
while (reader.nextField()) {
|
|
1445
|
+
if (reader.isEndGroup()) {
|
|
1446
|
+
break;
|
|
1447
|
+
}
|
|
1448
|
+
var field = reader.getFieldNumber();
|
|
1449
|
+
switch (field) {
|
|
1450
|
+
case 1:
|
|
1451
|
+
var value = new proto.lansweeper.install.v1.HubCertificateInstallation;
|
|
1452
|
+
reader.readMessage(value,proto.lansweeper.install.v1.HubCertificateInstallation.deserializeBinaryFromReader);
|
|
1453
|
+
msg.addHubCertificates(value);
|
|
1454
|
+
break;
|
|
1455
|
+
default:
|
|
1456
|
+
reader.skipField();
|
|
1457
|
+
break;
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
return msg;
|
|
1461
|
+
};
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
/**
|
|
1465
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1466
|
+
* @return {!Uint8Array}
|
|
1467
|
+
*/
|
|
1468
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.serializeBinary = function() {
|
|
1469
|
+
var writer = new jspb.BinaryWriter();
|
|
1470
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.serializeBinaryToWriter(this, writer);
|
|
1471
|
+
return writer.getResultBuffer();
|
|
1472
|
+
};
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1477
|
+
* format), writing to the given BinaryWriter.
|
|
1478
|
+
* @param {!proto.lansweeper.install.v1.GetHubCertificatesResponse} message
|
|
1479
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1480
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1481
|
+
*/
|
|
1482
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1483
|
+
var f = undefined;
|
|
1484
|
+
f = message.getHubCertificatesList();
|
|
1485
|
+
if (f.length > 0) {
|
|
1486
|
+
writer.writeRepeatedMessage(
|
|
1487
|
+
1,
|
|
1488
|
+
f,
|
|
1489
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.serializeBinaryToWriter
|
|
1490
|
+
);
|
|
1491
|
+
}
|
|
1492
|
+
};
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* repeated HubCertificateInstallation hub_certificates = 1;
|
|
1497
|
+
* @return {!Array<!proto.lansweeper.install.v1.HubCertificateInstallation>}
|
|
1498
|
+
*/
|
|
1499
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.getHubCertificatesList = function() {
|
|
1500
|
+
return /** @type{!Array<!proto.lansweeper.install.v1.HubCertificateInstallation>} */ (
|
|
1501
|
+
jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.install.v1.HubCertificateInstallation, 1));
|
|
1502
|
+
};
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* @param {!Array<!proto.lansweeper.install.v1.HubCertificateInstallation>} value
|
|
1507
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesResponse} returns this
|
|
1508
|
+
*/
|
|
1509
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.setHubCertificatesList = function(value) {
|
|
1510
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1511
|
+
};
|
|
1512
|
+
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* @param {!proto.lansweeper.install.v1.HubCertificateInstallation=} opt_value
|
|
1516
|
+
* @param {number=} opt_index
|
|
1517
|
+
* @return {!proto.lansweeper.install.v1.HubCertificateInstallation}
|
|
1518
|
+
*/
|
|
1519
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.addHubCertificates = function(opt_value, opt_index) {
|
|
1520
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.install.v1.HubCertificateInstallation, opt_index);
|
|
1521
|
+
};
|
|
1522
|
+
|
|
1523
|
+
|
|
1524
|
+
/**
|
|
1525
|
+
* Clears the list making it empty but non-null.
|
|
1526
|
+
* @return {!proto.lansweeper.install.v1.GetHubCertificatesResponse} returns this
|
|
1527
|
+
*/
|
|
1528
|
+
proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.clearHubCertificatesList = function() {
|
|
1529
|
+
return this.setHubCertificatesList([]);
|
|
1293
1530
|
};
|
|
1294
1531
|
|
|
1295
1532
|
|
|
1533
|
+
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1537
|
+
/**
|
|
1538
|
+
* Creates an object representation of this proto.
|
|
1539
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1540
|
+
* Optional fields that are not set will be set to undefined.
|
|
1541
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1542
|
+
* For the list of reserved names please see:
|
|
1543
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1544
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1545
|
+
* JSPB instance for transitional soy proto support:
|
|
1546
|
+
* http://goto/soy-param-migration
|
|
1547
|
+
* @return {!Object}
|
|
1548
|
+
*/
|
|
1549
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.prototype.toObject = function(opt_includeInstance) {
|
|
1550
|
+
return proto.lansweeper.install.v1.HubCertificateInstallation.toObject(opt_includeInstance, this);
|
|
1551
|
+
};
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
/**
|
|
1555
|
+
* Static version of the {@see toObject} method.
|
|
1556
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1557
|
+
* the JSPB instance for transitional soy proto support:
|
|
1558
|
+
* http://goto/soy-param-migration
|
|
1559
|
+
* @param {!proto.lansweeper.install.v1.HubCertificateInstallation} msg The msg instance to transform.
|
|
1560
|
+
* @return {!Object}
|
|
1561
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1562
|
+
*/
|
|
1563
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.toObject = function(includeInstance, msg) {
|
|
1564
|
+
var f, obj = {
|
|
1565
|
+
installKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1566
|
+
hubCertificate: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1567
|
+
};
|
|
1568
|
+
|
|
1569
|
+
if (includeInstance) {
|
|
1570
|
+
obj.$jspbMessageInstance = msg;
|
|
1571
|
+
}
|
|
1572
|
+
return obj;
|
|
1573
|
+
};
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1579
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1580
|
+
* @return {!proto.lansweeper.install.v1.HubCertificateInstallation}
|
|
1581
|
+
*/
|
|
1582
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.deserializeBinary = function(bytes) {
|
|
1583
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1584
|
+
var msg = new proto.lansweeper.install.v1.HubCertificateInstallation;
|
|
1585
|
+
return proto.lansweeper.install.v1.HubCertificateInstallation.deserializeBinaryFromReader(msg, reader);
|
|
1586
|
+
};
|
|
1587
|
+
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1591
|
+
* given reader into the given message object.
|
|
1592
|
+
* @param {!proto.lansweeper.install.v1.HubCertificateInstallation} msg The message object to deserialize into.
|
|
1593
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1594
|
+
* @return {!proto.lansweeper.install.v1.HubCertificateInstallation}
|
|
1595
|
+
*/
|
|
1596
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.deserializeBinaryFromReader = function(msg, reader) {
|
|
1597
|
+
while (reader.nextField()) {
|
|
1598
|
+
if (reader.isEndGroup()) {
|
|
1599
|
+
break;
|
|
1600
|
+
}
|
|
1601
|
+
var field = reader.getFieldNumber();
|
|
1602
|
+
switch (field) {
|
|
1603
|
+
case 2:
|
|
1604
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1605
|
+
msg.setInstallKey(value);
|
|
1606
|
+
break;
|
|
1607
|
+
case 3:
|
|
1608
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1609
|
+
msg.setHubCertificate(value);
|
|
1610
|
+
break;
|
|
1611
|
+
default:
|
|
1612
|
+
reader.skipField();
|
|
1613
|
+
break;
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
return msg;
|
|
1617
|
+
};
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1622
|
+
* @return {!Uint8Array}
|
|
1623
|
+
*/
|
|
1624
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.prototype.serializeBinary = function() {
|
|
1625
|
+
var writer = new jspb.BinaryWriter();
|
|
1626
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.serializeBinaryToWriter(this, writer);
|
|
1627
|
+
return writer.getResultBuffer();
|
|
1628
|
+
};
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
/**
|
|
1632
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1633
|
+
* format), writing to the given BinaryWriter.
|
|
1634
|
+
* @param {!proto.lansweeper.install.v1.HubCertificateInstallation} message
|
|
1635
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1636
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1637
|
+
*/
|
|
1638
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.serializeBinaryToWriter = function(message, writer) {
|
|
1639
|
+
var f = undefined;
|
|
1640
|
+
f = message.getInstallKey();
|
|
1641
|
+
if (f.length > 0) {
|
|
1642
|
+
writer.writeString(
|
|
1643
|
+
2,
|
|
1644
|
+
f
|
|
1645
|
+
);
|
|
1646
|
+
}
|
|
1647
|
+
f = message.getHubCertificate();
|
|
1648
|
+
if (f.length > 0) {
|
|
1649
|
+
writer.writeString(
|
|
1650
|
+
3,
|
|
1651
|
+
f
|
|
1652
|
+
);
|
|
1653
|
+
}
|
|
1654
|
+
};
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
/**
|
|
1658
|
+
* optional string install_key = 2;
|
|
1659
|
+
* @return {string}
|
|
1660
|
+
*/
|
|
1661
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.prototype.getInstallKey = function() {
|
|
1662
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1663
|
+
};
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* @param {string} value
|
|
1668
|
+
* @return {!proto.lansweeper.install.v1.HubCertificateInstallation} returns this
|
|
1669
|
+
*/
|
|
1670
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.prototype.setInstallKey = function(value) {
|
|
1671
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1672
|
+
};
|
|
1673
|
+
|
|
1674
|
+
|
|
1675
|
+
/**
|
|
1676
|
+
* optional string hub_certificate = 3;
|
|
1677
|
+
* @return {string}
|
|
1678
|
+
*/
|
|
1679
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.prototype.getHubCertificate = function() {
|
|
1680
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1681
|
+
};
|
|
1682
|
+
|
|
1683
|
+
|
|
1684
|
+
/**
|
|
1685
|
+
* @param {string} value
|
|
1686
|
+
* @return {!proto.lansweeper.install.v1.HubCertificateInstallation} returns this
|
|
1687
|
+
*/
|
|
1688
|
+
proto.lansweeper.install.v1.HubCertificateInstallation.prototype.setHubCertificate = function(value) {
|
|
1689
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1690
|
+
};
|
|
1691
|
+
|
|
1692
|
+
|
|
1693
|
+
|
|
1694
|
+
|
|
1695
|
+
|
|
1696
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1697
|
+
/**
|
|
1698
|
+
* Creates an object representation of this proto.
|
|
1699
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1700
|
+
* Optional fields that are not set will be set to undefined.
|
|
1701
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1702
|
+
* For the list of reserved names please see:
|
|
1703
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1704
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1705
|
+
* JSPB instance for transitional soy proto support:
|
|
1706
|
+
* http://goto/soy-param-migration
|
|
1707
|
+
* @return {!Object}
|
|
1708
|
+
*/
|
|
1709
|
+
proto.lansweeper.install.v1.Installation.prototype.toObject = function(opt_includeInstance) {
|
|
1710
|
+
return proto.lansweeper.install.v1.Installation.toObject(opt_includeInstance, this);
|
|
1711
|
+
};
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
/**
|
|
1715
|
+
* Static version of the {@see toObject} method.
|
|
1716
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1717
|
+
* the JSPB instance for transitional soy proto support:
|
|
1718
|
+
* http://goto/soy-param-migration
|
|
1719
|
+
* @param {!proto.lansweeper.install.v1.Installation} msg The msg instance to transform.
|
|
1720
|
+
* @return {!Object}
|
|
1721
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1722
|
+
*/
|
|
1723
|
+
proto.lansweeper.install.v1.Installation.toObject = function(includeInstance, msg) {
|
|
1724
|
+
var f, obj = {
|
|
1725
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1726
|
+
siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1727
|
+
type: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
1728
|
+
state: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
1729
|
+
syncedAt: (f = msg.getSyncedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
1730
|
+
};
|
|
1731
|
+
|
|
1732
|
+
if (includeInstance) {
|
|
1733
|
+
obj.$jspbMessageInstance = msg;
|
|
1734
|
+
}
|
|
1735
|
+
return obj;
|
|
1736
|
+
};
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
/**
|
|
1741
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1742
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1743
|
+
* @return {!proto.lansweeper.install.v1.Installation}
|
|
1744
|
+
*/
|
|
1745
|
+
proto.lansweeper.install.v1.Installation.deserializeBinary = function(bytes) {
|
|
1746
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1747
|
+
var msg = new proto.lansweeper.install.v1.Installation;
|
|
1748
|
+
return proto.lansweeper.install.v1.Installation.deserializeBinaryFromReader(msg, reader);
|
|
1749
|
+
};
|
|
1750
|
+
|
|
1751
|
+
|
|
1752
|
+
/**
|
|
1753
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1754
|
+
* given reader into the given message object.
|
|
1755
|
+
* @param {!proto.lansweeper.install.v1.Installation} msg The message object to deserialize into.
|
|
1756
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1757
|
+
* @return {!proto.lansweeper.install.v1.Installation}
|
|
1758
|
+
*/
|
|
1759
|
+
proto.lansweeper.install.v1.Installation.deserializeBinaryFromReader = function(msg, reader) {
|
|
1760
|
+
while (reader.nextField()) {
|
|
1761
|
+
if (reader.isEndGroup()) {
|
|
1762
|
+
break;
|
|
1763
|
+
}
|
|
1764
|
+
var field = reader.getFieldNumber();
|
|
1765
|
+
switch (field) {
|
|
1766
|
+
case 1:
|
|
1767
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1768
|
+
msg.setId(value);
|
|
1769
|
+
break;
|
|
1770
|
+
case 2:
|
|
1771
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1772
|
+
msg.setSiteId(value);
|
|
1773
|
+
break;
|
|
1774
|
+
case 3:
|
|
1775
|
+
var value = /** @type {!proto.lansweeper.install.v1.InstallType} */ (reader.readEnum());
|
|
1776
|
+
msg.setType(value);
|
|
1777
|
+
break;
|
|
1778
|
+
case 4:
|
|
1779
|
+
var value = /** @type {!proto.lansweeper.install.v1.InstallStateValue} */ (reader.readEnum());
|
|
1780
|
+
msg.setState(value);
|
|
1781
|
+
break;
|
|
1782
|
+
case 5:
|
|
1783
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
1784
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
1785
|
+
msg.setSyncedAt(value);
|
|
1786
|
+
break;
|
|
1787
|
+
default:
|
|
1788
|
+
reader.skipField();
|
|
1789
|
+
break;
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
return msg;
|
|
1793
|
+
};
|
|
1794
|
+
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1798
|
+
* @return {!Uint8Array}
|
|
1799
|
+
*/
|
|
1800
|
+
proto.lansweeper.install.v1.Installation.prototype.serializeBinary = function() {
|
|
1801
|
+
var writer = new jspb.BinaryWriter();
|
|
1802
|
+
proto.lansweeper.install.v1.Installation.serializeBinaryToWriter(this, writer);
|
|
1803
|
+
return writer.getResultBuffer();
|
|
1804
|
+
};
|
|
1805
|
+
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1809
|
+
* format), writing to the given BinaryWriter.
|
|
1810
|
+
* @param {!proto.lansweeper.install.v1.Installation} message
|
|
1811
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1812
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1813
|
+
*/
|
|
1814
|
+
proto.lansweeper.install.v1.Installation.serializeBinaryToWriter = function(message, writer) {
|
|
1815
|
+
var f = undefined;
|
|
1816
|
+
f = message.getId();
|
|
1817
|
+
if (f.length > 0) {
|
|
1818
|
+
writer.writeString(
|
|
1819
|
+
1,
|
|
1820
|
+
f
|
|
1821
|
+
);
|
|
1822
|
+
}
|
|
1823
|
+
f = message.getSiteId();
|
|
1824
|
+
if (f.length > 0) {
|
|
1825
|
+
writer.writeString(
|
|
1826
|
+
2,
|
|
1827
|
+
f
|
|
1828
|
+
);
|
|
1829
|
+
}
|
|
1830
|
+
f = message.getType();
|
|
1831
|
+
if (f !== 0.0) {
|
|
1832
|
+
writer.writeEnum(
|
|
1833
|
+
3,
|
|
1834
|
+
f
|
|
1835
|
+
);
|
|
1836
|
+
}
|
|
1837
|
+
f = message.getState();
|
|
1838
|
+
if (f !== 0.0) {
|
|
1839
|
+
writer.writeEnum(
|
|
1840
|
+
4,
|
|
1841
|
+
f
|
|
1842
|
+
);
|
|
1843
|
+
}
|
|
1844
|
+
f = message.getSyncedAt();
|
|
1845
|
+
if (f != null) {
|
|
1846
|
+
writer.writeMessage(
|
|
1847
|
+
5,
|
|
1848
|
+
f,
|
|
1849
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1850
|
+
);
|
|
1851
|
+
}
|
|
1852
|
+
};
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* optional string id = 1;
|
|
1857
|
+
* @return {string}
|
|
1858
|
+
*/
|
|
1859
|
+
proto.lansweeper.install.v1.Installation.prototype.getId = function() {
|
|
1860
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1861
|
+
};
|
|
1862
|
+
|
|
1863
|
+
|
|
1864
|
+
/**
|
|
1865
|
+
* @param {string} value
|
|
1866
|
+
* @return {!proto.lansweeper.install.v1.Installation} returns this
|
|
1867
|
+
*/
|
|
1868
|
+
proto.lansweeper.install.v1.Installation.prototype.setId = function(value) {
|
|
1869
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1870
|
+
};
|
|
1871
|
+
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* optional string site_id = 2;
|
|
1875
|
+
* @return {string}
|
|
1876
|
+
*/
|
|
1877
|
+
proto.lansweeper.install.v1.Installation.prototype.getSiteId = function() {
|
|
1878
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1879
|
+
};
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
/**
|
|
1883
|
+
* @param {string} value
|
|
1884
|
+
* @return {!proto.lansweeper.install.v1.Installation} returns this
|
|
1885
|
+
*/
|
|
1886
|
+
proto.lansweeper.install.v1.Installation.prototype.setSiteId = function(value) {
|
|
1887
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1888
|
+
};
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
/**
|
|
1892
|
+
* optional InstallType type = 3;
|
|
1893
|
+
* @return {!proto.lansweeper.install.v1.InstallType}
|
|
1894
|
+
*/
|
|
1895
|
+
proto.lansweeper.install.v1.Installation.prototype.getType = function() {
|
|
1896
|
+
return /** @type {!proto.lansweeper.install.v1.InstallType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1897
|
+
};
|
|
1898
|
+
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* @param {!proto.lansweeper.install.v1.InstallType} value
|
|
1902
|
+
* @return {!proto.lansweeper.install.v1.Installation} returns this
|
|
1903
|
+
*/
|
|
1904
|
+
proto.lansweeper.install.v1.Installation.prototype.setType = function(value) {
|
|
1905
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
1906
|
+
};
|
|
1907
|
+
|
|
1908
|
+
|
|
1909
|
+
/**
|
|
1910
|
+
* optional InstallStateValue state = 4;
|
|
1911
|
+
* @return {!proto.lansweeper.install.v1.InstallStateValue}
|
|
1912
|
+
*/
|
|
1913
|
+
proto.lansweeper.install.v1.Installation.prototype.getState = function() {
|
|
1914
|
+
return /** @type {!proto.lansweeper.install.v1.InstallStateValue} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
1915
|
+
};
|
|
1916
|
+
|
|
1917
|
+
|
|
1918
|
+
/**
|
|
1919
|
+
* @param {!proto.lansweeper.install.v1.InstallStateValue} value
|
|
1920
|
+
* @return {!proto.lansweeper.install.v1.Installation} returns this
|
|
1921
|
+
*/
|
|
1922
|
+
proto.lansweeper.install.v1.Installation.prototype.setState = function(value) {
|
|
1923
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
1924
|
+
};
|
|
1925
|
+
|
|
1926
|
+
|
|
1927
|
+
/**
|
|
1928
|
+
* optional google.protobuf.Timestamp synced_at = 5;
|
|
1929
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
1930
|
+
*/
|
|
1931
|
+
proto.lansweeper.install.v1.Installation.prototype.getSyncedAt = function() {
|
|
1932
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1933
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
|
|
1934
|
+
};
|
|
1935
|
+
|
|
1936
|
+
|
|
1937
|
+
/**
|
|
1938
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1939
|
+
* @return {!proto.lansweeper.install.v1.Installation} returns this
|
|
1940
|
+
*/
|
|
1941
|
+
proto.lansweeper.install.v1.Installation.prototype.setSyncedAt = function(value) {
|
|
1942
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
1943
|
+
};
|
|
1944
|
+
|
|
1945
|
+
|
|
1946
|
+
/**
|
|
1947
|
+
* Clears the message field making it undefined.
|
|
1948
|
+
* @return {!proto.lansweeper.install.v1.Installation} returns this
|
|
1949
|
+
*/
|
|
1950
|
+
proto.lansweeper.install.v1.Installation.prototype.clearSyncedAt = function() {
|
|
1951
|
+
return this.setSyncedAt(undefined);
|
|
1952
|
+
};
|
|
1953
|
+
|
|
1954
|
+
|
|
1955
|
+
/**
|
|
1956
|
+
* Returns whether this field is set.
|
|
1957
|
+
* @return {boolean}
|
|
1958
|
+
*/
|
|
1959
|
+
proto.lansweeper.install.v1.Installation.prototype.hasSyncedAt = function() {
|
|
1960
|
+
return jspb.Message.getField(this, 5) != null;
|
|
1961
|
+
};
|
|
1962
|
+
|
|
1963
|
+
|
|
1964
|
+
|
|
1965
|
+
|
|
1966
|
+
|
|
1967
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1968
|
+
/**
|
|
1969
|
+
* Creates an object representation of this proto.
|
|
1970
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1971
|
+
* Optional fields that are not set will be set to undefined.
|
|
1972
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1973
|
+
* For the list of reserved names please see:
|
|
1974
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1975
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1976
|
+
* JSPB instance for transitional soy proto support:
|
|
1977
|
+
* http://goto/soy-param-migration
|
|
1978
|
+
* @return {!Object}
|
|
1979
|
+
*/
|
|
1980
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1981
|
+
return proto.lansweeper.install.v1.GetInstallationsBySiteRequest.toObject(opt_includeInstance, this);
|
|
1982
|
+
};
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
/**
|
|
1986
|
+
* Static version of the {@see toObject} method.
|
|
1987
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1988
|
+
* the JSPB instance for transitional soy proto support:
|
|
1989
|
+
* http://goto/soy-param-migration
|
|
1990
|
+
* @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} msg The msg instance to transform.
|
|
1991
|
+
* @return {!Object}
|
|
1992
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1993
|
+
*/
|
|
1994
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.toObject = function(includeInstance, msg) {
|
|
1995
|
+
var f, obj = {
|
|
1996
|
+
siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1997
|
+
filter: (f = msg.getFilter()) && proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.toObject(includeInstance, f)
|
|
1998
|
+
};
|
|
1999
|
+
|
|
2000
|
+
if (includeInstance) {
|
|
2001
|
+
obj.$jspbMessageInstance = msg;
|
|
2002
|
+
}
|
|
2003
|
+
return obj;
|
|
2004
|
+
};
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
/**
|
|
2009
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2010
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2011
|
+
* @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest}
|
|
2012
|
+
*/
|
|
2013
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.deserializeBinary = function(bytes) {
|
|
2014
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2015
|
+
var msg = new proto.lansweeper.install.v1.GetInstallationsBySiteRequest;
|
|
2016
|
+
return proto.lansweeper.install.v1.GetInstallationsBySiteRequest.deserializeBinaryFromReader(msg, reader);
|
|
2017
|
+
};
|
|
2018
|
+
|
|
2019
|
+
|
|
2020
|
+
/**
|
|
2021
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2022
|
+
* given reader into the given message object.
|
|
2023
|
+
* @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} msg The message object to deserialize into.
|
|
2024
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2025
|
+
* @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest}
|
|
2026
|
+
*/
|
|
2027
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2028
|
+
while (reader.nextField()) {
|
|
2029
|
+
if (reader.isEndGroup()) {
|
|
2030
|
+
break;
|
|
2031
|
+
}
|
|
2032
|
+
var field = reader.getFieldNumber();
|
|
2033
|
+
switch (field) {
|
|
2034
|
+
case 1:
|
|
2035
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2036
|
+
msg.setSiteId(value);
|
|
2037
|
+
break;
|
|
2038
|
+
case 2:
|
|
2039
|
+
var value = new proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter;
|
|
2040
|
+
reader.readMessage(value,proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.deserializeBinaryFromReader);
|
|
2041
|
+
msg.setFilter(value);
|
|
2042
|
+
break;
|
|
2043
|
+
default:
|
|
2044
|
+
reader.skipField();
|
|
2045
|
+
break;
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
return msg;
|
|
2049
|
+
};
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
/**
|
|
2053
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2054
|
+
* @return {!Uint8Array}
|
|
2055
|
+
*/
|
|
2056
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.serializeBinary = function() {
|
|
2057
|
+
var writer = new jspb.BinaryWriter();
|
|
2058
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.serializeBinaryToWriter(this, writer);
|
|
2059
|
+
return writer.getResultBuffer();
|
|
2060
|
+
};
|
|
2061
|
+
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2065
|
+
* format), writing to the given BinaryWriter.
|
|
2066
|
+
* @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} message
|
|
2067
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2068
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2069
|
+
*/
|
|
2070
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2071
|
+
var f = undefined;
|
|
2072
|
+
f = message.getSiteId();
|
|
2073
|
+
if (f.length > 0) {
|
|
2074
|
+
writer.writeString(
|
|
2075
|
+
1,
|
|
2076
|
+
f
|
|
2077
|
+
);
|
|
2078
|
+
}
|
|
2079
|
+
f = message.getFilter();
|
|
2080
|
+
if (f != null) {
|
|
2081
|
+
writer.writeMessage(
|
|
2082
|
+
2,
|
|
2083
|
+
f,
|
|
2084
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.serializeBinaryToWriter
|
|
2085
|
+
);
|
|
2086
|
+
}
|
|
2087
|
+
};
|
|
2088
|
+
|
|
2089
|
+
|
|
2090
|
+
|
|
2091
|
+
|
|
2092
|
+
|
|
2093
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2094
|
+
/**
|
|
2095
|
+
* Creates an object representation of this proto.
|
|
2096
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2097
|
+
* Optional fields that are not set will be set to undefined.
|
|
2098
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2099
|
+
* For the list of reserved names please see:
|
|
2100
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2101
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2102
|
+
* JSPB instance for transitional soy proto support:
|
|
2103
|
+
* http://goto/soy-param-migration
|
|
2104
|
+
* @return {!Object}
|
|
2105
|
+
*/
|
|
2106
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.toObject = function(opt_includeInstance) {
|
|
2107
|
+
return proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.toObject(opt_includeInstance, this);
|
|
2108
|
+
};
|
|
2109
|
+
|
|
2110
|
+
|
|
2111
|
+
/**
|
|
2112
|
+
* Static version of the {@see toObject} method.
|
|
2113
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2114
|
+
* the JSPB instance for transitional soy proto support:
|
|
2115
|
+
* http://goto/soy-param-migration
|
|
2116
|
+
* @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} msg The msg instance to transform.
|
|
2117
|
+
* @return {!Object}
|
|
2118
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2119
|
+
*/
|
|
2120
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.toObject = function(includeInstance, msg) {
|
|
2121
|
+
var f, obj = {
|
|
2122
|
+
type: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2123
|
+
syncedAt: (f = msg.getSyncedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
2124
|
+
};
|
|
2125
|
+
|
|
2126
|
+
if (includeInstance) {
|
|
2127
|
+
obj.$jspbMessageInstance = msg;
|
|
2128
|
+
}
|
|
2129
|
+
return obj;
|
|
2130
|
+
};
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
|
|
2134
|
+
/**
|
|
2135
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2136
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2137
|
+
* @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter}
|
|
2138
|
+
*/
|
|
2139
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.deserializeBinary = function(bytes) {
|
|
2140
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2141
|
+
var msg = new proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter;
|
|
2142
|
+
return proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.deserializeBinaryFromReader(msg, reader);
|
|
2143
|
+
};
|
|
2144
|
+
|
|
2145
|
+
|
|
2146
|
+
/**
|
|
2147
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2148
|
+
* given reader into the given message object.
|
|
2149
|
+
* @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} msg The message object to deserialize into.
|
|
2150
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2151
|
+
* @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter}
|
|
2152
|
+
*/
|
|
2153
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.deserializeBinaryFromReader = function(msg, reader) {
|
|
2154
|
+
while (reader.nextField()) {
|
|
2155
|
+
if (reader.isEndGroup()) {
|
|
2156
|
+
break;
|
|
2157
|
+
}
|
|
2158
|
+
var field = reader.getFieldNumber();
|
|
2159
|
+
switch (field) {
|
|
2160
|
+
case 1:
|
|
2161
|
+
var value = /** @type {!proto.lansweeper.install.v1.InstallType} */ (reader.readEnum());
|
|
2162
|
+
msg.setType(value);
|
|
2163
|
+
break;
|
|
2164
|
+
case 2:
|
|
2165
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
2166
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
2167
|
+
msg.setSyncedAt(value);
|
|
2168
|
+
break;
|
|
2169
|
+
default:
|
|
2170
|
+
reader.skipField();
|
|
2171
|
+
break;
|
|
2172
|
+
}
|
|
2173
|
+
}
|
|
2174
|
+
return msg;
|
|
2175
|
+
};
|
|
2176
|
+
|
|
2177
|
+
|
|
2178
|
+
/**
|
|
2179
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2180
|
+
* @return {!Uint8Array}
|
|
2181
|
+
*/
|
|
2182
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.serializeBinary = function() {
|
|
2183
|
+
var writer = new jspb.BinaryWriter();
|
|
2184
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.serializeBinaryToWriter(this, writer);
|
|
2185
|
+
return writer.getResultBuffer();
|
|
2186
|
+
};
|
|
2187
|
+
|
|
2188
|
+
|
|
2189
|
+
/**
|
|
2190
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2191
|
+
* format), writing to the given BinaryWriter.
|
|
2192
|
+
* @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} message
|
|
2193
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2194
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2195
|
+
*/
|
|
2196
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.serializeBinaryToWriter = function(message, writer) {
|
|
2197
|
+
var f = undefined;
|
|
2198
|
+
f = /** @type {!proto.lansweeper.install.v1.InstallType} */ (jspb.Message.getField(message, 1));
|
|
2199
|
+
if (f != null) {
|
|
2200
|
+
writer.writeEnum(
|
|
2201
|
+
1,
|
|
2202
|
+
f
|
|
2203
|
+
);
|
|
2204
|
+
}
|
|
2205
|
+
f = message.getSyncedAt();
|
|
2206
|
+
if (f != null) {
|
|
2207
|
+
writer.writeMessage(
|
|
2208
|
+
2,
|
|
2209
|
+
f,
|
|
2210
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
2211
|
+
);
|
|
2212
|
+
}
|
|
2213
|
+
};
|
|
2214
|
+
|
|
2215
|
+
|
|
2216
|
+
/**
|
|
2217
|
+
* optional InstallType type = 1;
|
|
2218
|
+
* @return {!proto.lansweeper.install.v1.InstallType}
|
|
2219
|
+
*/
|
|
2220
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.getType = function() {
|
|
2221
|
+
return /** @type {!proto.lansweeper.install.v1.InstallType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2222
|
+
};
|
|
2223
|
+
|
|
2224
|
+
|
|
2225
|
+
/**
|
|
2226
|
+
* @param {!proto.lansweeper.install.v1.InstallType} value
|
|
2227
|
+
* @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} returns this
|
|
2228
|
+
*/
|
|
2229
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.setType = function(value) {
|
|
2230
|
+
return jspb.Message.setField(this, 1, value);
|
|
2231
|
+
};
|
|
2232
|
+
|
|
2233
|
+
|
|
2234
|
+
/**
|
|
2235
|
+
* Clears the field making it undefined.
|
|
2236
|
+
* @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} returns this
|
|
2237
|
+
*/
|
|
2238
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.clearType = function() {
|
|
2239
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
2240
|
+
};
|
|
2241
|
+
|
|
2242
|
+
|
|
2243
|
+
/**
|
|
2244
|
+
* Returns whether this field is set.
|
|
2245
|
+
* @return {boolean}
|
|
2246
|
+
*/
|
|
2247
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.hasType = function() {
|
|
2248
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2249
|
+
};
|
|
2250
|
+
|
|
2251
|
+
|
|
2252
|
+
/**
|
|
2253
|
+
* optional google.protobuf.Timestamp synced_at = 2;
|
|
2254
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
2255
|
+
*/
|
|
2256
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.getSyncedAt = function() {
|
|
2257
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
2258
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
|
|
2262
|
+
/**
|
|
2263
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
2264
|
+
* @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} returns this
|
|
2265
|
+
*/
|
|
2266
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.setSyncedAt = function(value) {
|
|
2267
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2268
|
+
};
|
|
2269
|
+
|
|
2270
|
+
|
|
2271
|
+
/**
|
|
2272
|
+
* Clears the message field making it undefined.
|
|
2273
|
+
* @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} returns this
|
|
2274
|
+
*/
|
|
2275
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.clearSyncedAt = function() {
|
|
2276
|
+
return this.setSyncedAt(undefined);
|
|
2277
|
+
};
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
/**
|
|
2281
|
+
* Returns whether this field is set.
|
|
2282
|
+
* @return {boolean}
|
|
2283
|
+
*/
|
|
2284
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.hasSyncedAt = function() {
|
|
2285
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2286
|
+
};
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* optional string site_id = 1;
|
|
2291
|
+
* @return {string}
|
|
2292
|
+
*/
|
|
2293
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.getSiteId = function() {
|
|
2294
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2295
|
+
};
|
|
2296
|
+
|
|
2297
|
+
|
|
2298
|
+
/**
|
|
2299
|
+
* @param {string} value
|
|
2300
|
+
* @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} returns this
|
|
2301
|
+
*/
|
|
2302
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.setSiteId = function(value) {
|
|
2303
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2304
|
+
};
|
|
2305
|
+
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* optional Filter filter = 2;
|
|
2309
|
+
* @return {?proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter}
|
|
2310
|
+
*/
|
|
2311
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.getFilter = function() {
|
|
2312
|
+
return /** @type{?proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} */ (
|
|
2313
|
+
jspb.Message.getWrapperField(this, proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter, 2));
|
|
2314
|
+
};
|
|
2315
|
+
|
|
2316
|
+
|
|
2317
|
+
/**
|
|
2318
|
+
* @param {?proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter|undefined} value
|
|
2319
|
+
* @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} returns this
|
|
2320
|
+
*/
|
|
2321
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.setFilter = function(value) {
|
|
2322
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2323
|
+
};
|
|
2324
|
+
|
|
2325
|
+
|
|
2326
|
+
/**
|
|
2327
|
+
* Clears the message field making it undefined.
|
|
2328
|
+
* @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} returns this
|
|
2329
|
+
*/
|
|
2330
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.clearFilter = function() {
|
|
2331
|
+
return this.setFilter(undefined);
|
|
2332
|
+
};
|
|
2333
|
+
|
|
2334
|
+
|
|
2335
|
+
/**
|
|
2336
|
+
* Returns whether this field is set.
|
|
2337
|
+
* @return {boolean}
|
|
2338
|
+
*/
|
|
2339
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.hasFilter = function() {
|
|
2340
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2341
|
+
};
|
|
2342
|
+
|
|
2343
|
+
|
|
2344
|
+
|
|
2345
|
+
/**
|
|
2346
|
+
* List of repeated fields within this message type.
|
|
2347
|
+
* @private {!Array<number>}
|
|
2348
|
+
* @const
|
|
2349
|
+
*/
|
|
2350
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteResponse.repeatedFields_ = [1];
|
|
2351
|
+
|
|
2352
|
+
|
|
2353
|
+
|
|
2354
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2355
|
+
/**
|
|
2356
|
+
* Creates an object representation of this proto.
|
|
2357
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2358
|
+
* Optional fields that are not set will be set to undefined.
|
|
2359
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2360
|
+
* For the list of reserved names please see:
|
|
2361
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2362
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2363
|
+
* JSPB instance for transitional soy proto support:
|
|
2364
|
+
* http://goto/soy-param-migration
|
|
2365
|
+
* @return {!Object}
|
|
2366
|
+
*/
|
|
2367
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2368
|
+
return proto.lansweeper.install.v1.GetInstallationsBySiteResponse.toObject(opt_includeInstance, this);
|
|
2369
|
+
};
|
|
2370
|
+
|
|
2371
|
+
|
|
2372
|
+
/**
|
|
2373
|
+
* Static version of the {@see toObject} method.
|
|
2374
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2375
|
+
* the JSPB instance for transitional soy proto support:
|
|
2376
|
+
* http://goto/soy-param-migration
|
|
2377
|
+
* @param {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse} msg The msg instance to transform.
|
|
2378
|
+
* @return {!Object}
|
|
2379
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2380
|
+
*/
|
|
2381
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteResponse.toObject = function(includeInstance, msg) {
|
|
2382
|
+
var f, obj = {
|
|
2383
|
+
installationsList: jspb.Message.toObjectList(msg.getInstallationsList(),
|
|
2384
|
+
proto.lansweeper.install.v1.Installation.toObject, includeInstance)
|
|
2385
|
+
};
|
|
2386
|
+
|
|
2387
|
+
if (includeInstance) {
|
|
2388
|
+
obj.$jspbMessageInstance = msg;
|
|
2389
|
+
}
|
|
2390
|
+
return obj;
|
|
2391
|
+
};
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
|
|
2395
|
+
/**
|
|
2396
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2397
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2398
|
+
* @return {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse}
|
|
2399
|
+
*/
|
|
2400
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteResponse.deserializeBinary = function(bytes) {
|
|
2401
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2402
|
+
var msg = new proto.lansweeper.install.v1.GetInstallationsBySiteResponse;
|
|
2403
|
+
return proto.lansweeper.install.v1.GetInstallationsBySiteResponse.deserializeBinaryFromReader(msg, reader);
|
|
2404
|
+
};
|
|
2405
|
+
|
|
2406
|
+
|
|
2407
|
+
/**
|
|
2408
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2409
|
+
* given reader into the given message object.
|
|
2410
|
+
* @param {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse} msg The message object to deserialize into.
|
|
2411
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2412
|
+
* @return {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse}
|
|
2413
|
+
*/
|
|
2414
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2415
|
+
while (reader.nextField()) {
|
|
2416
|
+
if (reader.isEndGroup()) {
|
|
2417
|
+
break;
|
|
2418
|
+
}
|
|
2419
|
+
var field = reader.getFieldNumber();
|
|
2420
|
+
switch (field) {
|
|
2421
|
+
case 1:
|
|
2422
|
+
var value = new proto.lansweeper.install.v1.Installation;
|
|
2423
|
+
reader.readMessage(value,proto.lansweeper.install.v1.Installation.deserializeBinaryFromReader);
|
|
2424
|
+
msg.addInstallations(value);
|
|
2425
|
+
break;
|
|
2426
|
+
default:
|
|
2427
|
+
reader.skipField();
|
|
2428
|
+
break;
|
|
2429
|
+
}
|
|
2430
|
+
}
|
|
2431
|
+
return msg;
|
|
2432
|
+
};
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2437
|
+
* @return {!Uint8Array}
|
|
2438
|
+
*/
|
|
2439
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.serializeBinary = function() {
|
|
2440
|
+
var writer = new jspb.BinaryWriter();
|
|
2441
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteResponse.serializeBinaryToWriter(this, writer);
|
|
2442
|
+
return writer.getResultBuffer();
|
|
2443
|
+
};
|
|
2444
|
+
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2448
|
+
* format), writing to the given BinaryWriter.
|
|
2449
|
+
* @param {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse} message
|
|
2450
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2451
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2452
|
+
*/
|
|
2453
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2454
|
+
var f = undefined;
|
|
2455
|
+
f = message.getInstallationsList();
|
|
2456
|
+
if (f.length > 0) {
|
|
2457
|
+
writer.writeRepeatedMessage(
|
|
2458
|
+
1,
|
|
2459
|
+
f,
|
|
2460
|
+
proto.lansweeper.install.v1.Installation.serializeBinaryToWriter
|
|
2461
|
+
);
|
|
2462
|
+
}
|
|
2463
|
+
};
|
|
2464
|
+
|
|
2465
|
+
|
|
2466
|
+
/**
|
|
2467
|
+
* repeated Installation installations = 1;
|
|
2468
|
+
* @return {!Array<!proto.lansweeper.install.v1.Installation>}
|
|
2469
|
+
*/
|
|
2470
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.getInstallationsList = function() {
|
|
2471
|
+
return /** @type{!Array<!proto.lansweeper.install.v1.Installation>} */ (
|
|
2472
|
+
jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.install.v1.Installation, 1));
|
|
2473
|
+
};
|
|
2474
|
+
|
|
2475
|
+
|
|
2476
|
+
/**
|
|
2477
|
+
* @param {!Array<!proto.lansweeper.install.v1.Installation>} value
|
|
2478
|
+
* @return {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse} returns this
|
|
2479
|
+
*/
|
|
2480
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.setInstallationsList = function(value) {
|
|
2481
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
2482
|
+
};
|
|
2483
|
+
|
|
2484
|
+
|
|
2485
|
+
/**
|
|
2486
|
+
* @param {!proto.lansweeper.install.v1.Installation=} opt_value
|
|
2487
|
+
* @param {number=} opt_index
|
|
2488
|
+
* @return {!proto.lansweeper.install.v1.Installation}
|
|
2489
|
+
*/
|
|
2490
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.addInstallations = function(opt_value, opt_index) {
|
|
2491
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.install.v1.Installation, opt_index);
|
|
2492
|
+
};
|
|
2493
|
+
|
|
2494
|
+
|
|
2495
|
+
/**
|
|
2496
|
+
* Clears the list making it empty but non-null.
|
|
2497
|
+
* @return {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse} returns this
|
|
2498
|
+
*/
|
|
2499
|
+
proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.clearInstallationsList = function() {
|
|
2500
|
+
return this.setInstallationsList([]);
|
|
2501
|
+
};
|
|
2502
|
+
|
|
2503
|
+
|
|
2504
|
+
/**
|
|
2505
|
+
* @enum {number}
|
|
2506
|
+
*/
|
|
2507
|
+
proto.lansweeper.install.v1.InstallType = {
|
|
2508
|
+
IT: 0,
|
|
2509
|
+
OT: 1,
|
|
2510
|
+
IT_AGENT: 2,
|
|
2511
|
+
CLOUD: 3,
|
|
2512
|
+
NETWORK_DISCOVERY: 4
|
|
2513
|
+
};
|
|
2514
|
+
|
|
2515
|
+
/**
|
|
2516
|
+
* @enum {number}
|
|
2517
|
+
*/
|
|
2518
|
+
proto.lansweeper.install.v1.InstallStateValue = {
|
|
2519
|
+
UNESPECIFIED: 0,
|
|
2520
|
+
LINKED: 1,
|
|
2521
|
+
UNLINKED: 2
|
|
2522
|
+
};
|
|
2523
|
+
|
|
1296
2524
|
goog.object.extend(exports, proto.lansweeper.install.v1);
|