@lansweeper/integrations-assets-grpc 0.1.1

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.
Files changed (77) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/buf.yaml +23 -0
  3. package/gen-proto/assets_grpc_pb.js +1 -0
  4. package/gen-proto/assets_pb.d.ts +458 -0
  5. package/gen-proto/assets_pb.js +3599 -0
  6. package/gen-proto/image.json +1 -0
  7. package/gen-proto/index.d.ts +1 -0
  8. package/gen-proto/index.js +3 -0
  9. package/generated-go/assets.pb.go +1118 -0
  10. package/go.mod +3 -0
  11. package/java.json +6 -0
  12. package/package.json +18 -0
  13. package/pom.xml +76 -0
  14. package/proto/assets.proto +86 -0
  15. package/src/main/proto/assets.proto +86 -0
  16. package/target/classes/assets.proto +86 -0
  17. package/target/classes/lansweeper/integrations/assets/v1/Asset$1.class +0 -0
  18. package/target/classes/lansweeper/integrations/assets/v1/Asset$Builder.class +0 -0
  19. package/target/classes/lansweeper/integrations/assets/v1/Asset.class +0 -0
  20. package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfo$1.class +0 -0
  21. package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfo$Builder.class +0 -0
  22. package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfo.class +0 -0
  23. package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfoOrBuilder.class +0 -0
  24. package/target/classes/lansweeper/integrations/assets/v1/AssetCustom$1.class +0 -0
  25. package/target/classes/lansweeper/integrations/assets/v1/AssetCustom$Builder.class +0 -0
  26. package/target/classes/lansweeper/integrations/assets/v1/AssetCustom.class +0 -0
  27. package/target/classes/lansweeper/integrations/assets/v1/AssetCustomOrBuilder.class +0 -0
  28. package/target/classes/lansweeper/integrations/assets/v1/AssetOrBuilder.class +0 -0
  29. package/target/classes/lansweeper/integrations/assets/v1/Assets.class +0 -0
  30. package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustom$1.class +0 -0
  31. package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustom$Builder.class +0 -0
  32. package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustom.class +0 -0
  33. package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustomOrBuilder.class +0 -0
  34. package/target/classes/lansweeper/integrations/assets/v1/CustomField$1.class +0 -0
  35. package/target/classes/lansweeper/integrations/assets/v1/CustomField$Builder.class +0 -0
  36. package/target/classes/lansweeper/integrations/assets/v1/CustomField.class +0 -0
  37. package/target/classes/lansweeper/integrations/assets/v1/CustomFieldOrBuilder.class +0 -0
  38. package/target/classes/lansweeper/integrations/assets/v1/LockedFields$1.class +0 -0
  39. package/target/classes/lansweeper/integrations/assets/v1/LockedFields$Builder.class +0 -0
  40. package/target/classes/lansweeper/integrations/assets/v1/LockedFields.class +0 -0
  41. package/target/classes/lansweeper/integrations/assets/v1/LockedFieldsOrBuilder.class +0 -0
  42. package/target/classes/lansweeper/integrations/assets/v1/OtData$1.class +0 -0
  43. package/target/classes/lansweeper/integrations/assets/v1/OtData$Builder.class +0 -0
  44. package/target/classes/lansweeper/integrations/assets/v1/OtData.class +0 -0
  45. package/target/classes/lansweeper/integrations/assets/v1/OtDataOrBuilder.class +0 -0
  46. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/Asset.java +1292 -0
  47. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetBasicInfo.java +1431 -0
  48. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetBasicInfoOrBuilder.java +118 -0
  49. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetCustom.java +3690 -0
  50. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetCustomOrBuilder.java +351 -0
  51. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetOrBuilder.java +84 -0
  52. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/Assets.java +176 -0
  53. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CloudAssetCustom.java +1316 -0
  54. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CloudAssetCustomOrBuilder.java +111 -0
  55. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CustomField.java +643 -0
  56. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CustomFieldOrBuilder.java +33 -0
  57. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/LockedFields.java +2886 -0
  58. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/LockedFieldsOrBuilder.java +281 -0
  59. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/OtData.java +688 -0
  60. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/OtDataOrBuilder.java +43 -0
  61. package/target/integrations-assets-model-0.1.0-sources.jar +0 -0
  62. package/target/integrations-assets-model-0.1.0.jar +0 -0
  63. package/target/maven-archiver/pom.properties +5 -0
  64. package/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +29 -0
  65. package/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +15 -0
  66. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/any.proto +161 -0
  67. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/api.proto +207 -0
  68. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/descriptor.proto +975 -0
  69. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/duration.proto +115 -0
  70. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/empty.proto +51 -0
  71. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/field_mask.proto +245 -0
  72. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/source_context.proto +48 -0
  73. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/struct.proto +95 -0
  74. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/timestamp.proto +144 -0
  75. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/type.proto +187 -0
  76. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/wrappers.proto +123 -0
  77. package/target/protoc-plugins/protoc-3.22.2-linux-x86_64.exe +0 -0
@@ -0,0 +1,3599 @@
1
+ // source: assets.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ goog.exportSymbol('proto.lansweeper.integrations.assets.v1.Asset', null, global);
25
+ goog.exportSymbol('proto.lansweeper.integrations.assets.v1.AssetBasicInfo', null, global);
26
+ goog.exportSymbol('proto.lansweeper.integrations.assets.v1.AssetCustom', null, global);
27
+ goog.exportSymbol('proto.lansweeper.integrations.assets.v1.CloudAssetCustom', null, global);
28
+ goog.exportSymbol('proto.lansweeper.integrations.assets.v1.CustomField', null, global);
29
+ goog.exportSymbol('proto.lansweeper.integrations.assets.v1.LockedFields', null, global);
30
+ goog.exportSymbol('proto.lansweeper.integrations.assets.v1.OtData', null, global);
31
+ /**
32
+ * Generated by JsPbCodeGenerator.
33
+ * @param {Array=} opt_data Optional initial data array, typically from a
34
+ * server response, or constructed directly in Javascript. The array is used
35
+ * in place and becomes part of the constructed object. It is not cloned.
36
+ * If no data is provided, the constructed object will be empty, but still
37
+ * valid.
38
+ * @extends {jspb.Message}
39
+ * @constructor
40
+ */
41
+ proto.lansweeper.integrations.assets.v1.Asset = function(opt_data) {
42
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
43
+ };
44
+ goog.inherits(proto.lansweeper.integrations.assets.v1.Asset, jspb.Message);
45
+ if (goog.DEBUG && !COMPILED) {
46
+ /**
47
+ * @public
48
+ * @override
49
+ */
50
+ proto.lansweeper.integrations.assets.v1.Asset.displayName = 'proto.lansweeper.integrations.assets.v1.Asset';
51
+ }
52
+ /**
53
+ * Generated by JsPbCodeGenerator.
54
+ * @param {Array=} opt_data Optional initial data array, typically from a
55
+ * server response, or constructed directly in Javascript. The array is used
56
+ * in place and becomes part of the constructed object. It is not cloned.
57
+ * If no data is provided, the constructed object will be empty, but still
58
+ * valid.
59
+ * @extends {jspb.Message}
60
+ * @constructor
61
+ */
62
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo = function(opt_data) {
63
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
64
+ };
65
+ goog.inherits(proto.lansweeper.integrations.assets.v1.AssetBasicInfo, jspb.Message);
66
+ if (goog.DEBUG && !COMPILED) {
67
+ /**
68
+ * @public
69
+ * @override
70
+ */
71
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.displayName = 'proto.lansweeper.integrations.assets.v1.AssetBasicInfo';
72
+ }
73
+ /**
74
+ * Generated by JsPbCodeGenerator.
75
+ * @param {Array=} opt_data Optional initial data array, typically from a
76
+ * server response, or constructed directly in Javascript. The array is used
77
+ * in place and becomes part of the constructed object. It is not cloned.
78
+ * If no data is provided, the constructed object will be empty, but still
79
+ * valid.
80
+ * @extends {jspb.Message}
81
+ * @constructor
82
+ */
83
+ proto.lansweeper.integrations.assets.v1.OtData = function(opt_data) {
84
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
85
+ };
86
+ goog.inherits(proto.lansweeper.integrations.assets.v1.OtData, jspb.Message);
87
+ if (goog.DEBUG && !COMPILED) {
88
+ /**
89
+ * @public
90
+ * @override
91
+ */
92
+ proto.lansweeper.integrations.assets.v1.OtData.displayName = 'proto.lansweeper.integrations.assets.v1.OtData';
93
+ }
94
+ /**
95
+ * Generated by JsPbCodeGenerator.
96
+ * @param {Array=} opt_data Optional initial data array, typically from a
97
+ * server response, or constructed directly in Javascript. The array is used
98
+ * in place and becomes part of the constructed object. It is not cloned.
99
+ * If no data is provided, the constructed object will be empty, but still
100
+ * valid.
101
+ * @extends {jspb.Message}
102
+ * @constructor
103
+ */
104
+ proto.lansweeper.integrations.assets.v1.CustomField = function(opt_data) {
105
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
106
+ };
107
+ goog.inherits(proto.lansweeper.integrations.assets.v1.CustomField, jspb.Message);
108
+ if (goog.DEBUG && !COMPILED) {
109
+ /**
110
+ * @public
111
+ * @override
112
+ */
113
+ proto.lansweeper.integrations.assets.v1.CustomField.displayName = 'proto.lansweeper.integrations.assets.v1.CustomField';
114
+ }
115
+ /**
116
+ * Generated by JsPbCodeGenerator.
117
+ * @param {Array=} opt_data Optional initial data array, typically from a
118
+ * server response, or constructed directly in Javascript. The array is used
119
+ * in place and becomes part of the constructed object. It is not cloned.
120
+ * If no data is provided, the constructed object will be empty, but still
121
+ * valid.
122
+ * @extends {jspb.Message}
123
+ * @constructor
124
+ */
125
+ proto.lansweeper.integrations.assets.v1.AssetCustom = function(opt_data) {
126
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.integrations.assets.v1.AssetCustom.repeatedFields_, null);
127
+ };
128
+ goog.inherits(proto.lansweeper.integrations.assets.v1.AssetCustom, jspb.Message);
129
+ if (goog.DEBUG && !COMPILED) {
130
+ /**
131
+ * @public
132
+ * @override
133
+ */
134
+ proto.lansweeper.integrations.assets.v1.AssetCustom.displayName = 'proto.lansweeper.integrations.assets.v1.AssetCustom';
135
+ }
136
+ /**
137
+ * Generated by JsPbCodeGenerator.
138
+ * @param {Array=} opt_data Optional initial data array, typically from a
139
+ * server response, or constructed directly in Javascript. The array is used
140
+ * in place and becomes part of the constructed object. It is not cloned.
141
+ * If no data is provided, the constructed object will be empty, but still
142
+ * valid.
143
+ * @extends {jspb.Message}
144
+ * @constructor
145
+ */
146
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom = function(opt_data) {
147
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
148
+ };
149
+ goog.inherits(proto.lansweeper.integrations.assets.v1.CloudAssetCustom, jspb.Message);
150
+ if (goog.DEBUG && !COMPILED) {
151
+ /**
152
+ * @public
153
+ * @override
154
+ */
155
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.displayName = 'proto.lansweeper.integrations.assets.v1.CloudAssetCustom';
156
+ }
157
+ /**
158
+ * Generated by JsPbCodeGenerator.
159
+ * @param {Array=} opt_data Optional initial data array, typically from a
160
+ * server response, or constructed directly in Javascript. The array is used
161
+ * in place and becomes part of the constructed object. It is not cloned.
162
+ * If no data is provided, the constructed object will be empty, but still
163
+ * valid.
164
+ * @extends {jspb.Message}
165
+ * @constructor
166
+ */
167
+ proto.lansweeper.integrations.assets.v1.LockedFields = function(opt_data) {
168
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
169
+ };
170
+ goog.inherits(proto.lansweeper.integrations.assets.v1.LockedFields, jspb.Message);
171
+ if (goog.DEBUG && !COMPILED) {
172
+ /**
173
+ * @public
174
+ * @override
175
+ */
176
+ proto.lansweeper.integrations.assets.v1.LockedFields.displayName = 'proto.lansweeper.integrations.assets.v1.LockedFields';
177
+ }
178
+
179
+
180
+
181
+ if (jspb.Message.GENERATE_TO_OBJECT) {
182
+ /**
183
+ * Creates an object representation of this proto.
184
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
185
+ * Optional fields that are not set will be set to undefined.
186
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
187
+ * For the list of reserved names please see:
188
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
189
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
190
+ * JSPB instance for transitional soy proto support:
191
+ * http://goto/soy-param-migration
192
+ * @return {!Object}
193
+ */
194
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.toObject = function(opt_includeInstance) {
195
+ return proto.lansweeper.integrations.assets.v1.Asset.toObject(opt_includeInstance, this);
196
+ };
197
+
198
+
199
+ /**
200
+ * Static version of the {@see toObject} method.
201
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
202
+ * the JSPB instance for transitional soy proto support:
203
+ * http://goto/soy-param-migration
204
+ * @param {!proto.lansweeper.integrations.assets.v1.Asset} msg The msg instance to transform.
205
+ * @return {!Object}
206
+ * @suppress {unusedLocalVariables} f is only used for nested messages
207
+ */
208
+ proto.lansweeper.integrations.assets.v1.Asset.toObject = function(includeInstance, msg) {
209
+ var f, obj = {
210
+ assetBasicInfo: (f = msg.getAssetBasicInfo()) && proto.lansweeper.integrations.assets.v1.AssetBasicInfo.toObject(includeInstance, f),
211
+ assetCustom: (f = msg.getAssetCustom()) && proto.lansweeper.integrations.assets.v1.AssetCustom.toObject(includeInstance, f),
212
+ cloudAssetCustom: (f = msg.getCloudAssetCustom()) && proto.lansweeper.integrations.assets.v1.CloudAssetCustom.toObject(includeInstance, f),
213
+ otData: (f = msg.getOtData()) && proto.lansweeper.integrations.assets.v1.OtData.toObject(includeInstance, f),
214
+ lockedFields: (f = msg.getLockedFields()) && proto.lansweeper.integrations.assets.v1.LockedFields.toObject(includeInstance, f)
215
+ };
216
+
217
+ if (includeInstance) {
218
+ obj.$jspbMessageInstance = msg;
219
+ }
220
+ return obj;
221
+ };
222
+ }
223
+
224
+
225
+ /**
226
+ * Deserializes binary data (in protobuf wire format).
227
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
228
+ * @return {!proto.lansweeper.integrations.assets.v1.Asset}
229
+ */
230
+ proto.lansweeper.integrations.assets.v1.Asset.deserializeBinary = function(bytes) {
231
+ var reader = new jspb.BinaryReader(bytes);
232
+ var msg = new proto.lansweeper.integrations.assets.v1.Asset;
233
+ return proto.lansweeper.integrations.assets.v1.Asset.deserializeBinaryFromReader(msg, reader);
234
+ };
235
+
236
+
237
+ /**
238
+ * Deserializes binary data (in protobuf wire format) from the
239
+ * given reader into the given message object.
240
+ * @param {!proto.lansweeper.integrations.assets.v1.Asset} msg The message object to deserialize into.
241
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
242
+ * @return {!proto.lansweeper.integrations.assets.v1.Asset}
243
+ */
244
+ proto.lansweeper.integrations.assets.v1.Asset.deserializeBinaryFromReader = function(msg, reader) {
245
+ while (reader.nextField()) {
246
+ if (reader.isEndGroup()) {
247
+ break;
248
+ }
249
+ var field = reader.getFieldNumber();
250
+ switch (field) {
251
+ case 1:
252
+ var value = new proto.lansweeper.integrations.assets.v1.AssetBasicInfo;
253
+ reader.readMessage(value,proto.lansweeper.integrations.assets.v1.AssetBasicInfo.deserializeBinaryFromReader);
254
+ msg.setAssetBasicInfo(value);
255
+ break;
256
+ case 2:
257
+ var value = new proto.lansweeper.integrations.assets.v1.AssetCustom;
258
+ reader.readMessage(value,proto.lansweeper.integrations.assets.v1.AssetCustom.deserializeBinaryFromReader);
259
+ msg.setAssetCustom(value);
260
+ break;
261
+ case 3:
262
+ var value = new proto.lansweeper.integrations.assets.v1.CloudAssetCustom;
263
+ reader.readMessage(value,proto.lansweeper.integrations.assets.v1.CloudAssetCustom.deserializeBinaryFromReader);
264
+ msg.setCloudAssetCustom(value);
265
+ break;
266
+ case 4:
267
+ var value = new proto.lansweeper.integrations.assets.v1.OtData;
268
+ reader.readMessage(value,proto.lansweeper.integrations.assets.v1.OtData.deserializeBinaryFromReader);
269
+ msg.setOtData(value);
270
+ break;
271
+ case 5:
272
+ var value = new proto.lansweeper.integrations.assets.v1.LockedFields;
273
+ reader.readMessage(value,proto.lansweeper.integrations.assets.v1.LockedFields.deserializeBinaryFromReader);
274
+ msg.setLockedFields(value);
275
+ break;
276
+ default:
277
+ reader.skipField();
278
+ break;
279
+ }
280
+ }
281
+ return msg;
282
+ };
283
+
284
+
285
+ /**
286
+ * Serializes the message to binary data (in protobuf wire format).
287
+ * @return {!Uint8Array}
288
+ */
289
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.serializeBinary = function() {
290
+ var writer = new jspb.BinaryWriter();
291
+ proto.lansweeper.integrations.assets.v1.Asset.serializeBinaryToWriter(this, writer);
292
+ return writer.getResultBuffer();
293
+ };
294
+
295
+
296
+ /**
297
+ * Serializes the given message to binary data (in protobuf wire
298
+ * format), writing to the given BinaryWriter.
299
+ * @param {!proto.lansweeper.integrations.assets.v1.Asset} message
300
+ * @param {!jspb.BinaryWriter} writer
301
+ * @suppress {unusedLocalVariables} f is only used for nested messages
302
+ */
303
+ proto.lansweeper.integrations.assets.v1.Asset.serializeBinaryToWriter = function(message, writer) {
304
+ var f = undefined;
305
+ f = message.getAssetBasicInfo();
306
+ if (f != null) {
307
+ writer.writeMessage(
308
+ 1,
309
+ f,
310
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.serializeBinaryToWriter
311
+ );
312
+ }
313
+ f = message.getAssetCustom();
314
+ if (f != null) {
315
+ writer.writeMessage(
316
+ 2,
317
+ f,
318
+ proto.lansweeper.integrations.assets.v1.AssetCustom.serializeBinaryToWriter
319
+ );
320
+ }
321
+ f = message.getCloudAssetCustom();
322
+ if (f != null) {
323
+ writer.writeMessage(
324
+ 3,
325
+ f,
326
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.serializeBinaryToWriter
327
+ );
328
+ }
329
+ f = message.getOtData();
330
+ if (f != null) {
331
+ writer.writeMessage(
332
+ 4,
333
+ f,
334
+ proto.lansweeper.integrations.assets.v1.OtData.serializeBinaryToWriter
335
+ );
336
+ }
337
+ f = message.getLockedFields();
338
+ if (f != null) {
339
+ writer.writeMessage(
340
+ 5,
341
+ f,
342
+ proto.lansweeper.integrations.assets.v1.LockedFields.serializeBinaryToWriter
343
+ );
344
+ }
345
+ };
346
+
347
+
348
+ /**
349
+ * optional AssetBasicInfo asset_basic_info = 1;
350
+ * @return {?proto.lansweeper.integrations.assets.v1.AssetBasicInfo}
351
+ */
352
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.getAssetBasicInfo = function() {
353
+ return /** @type{?proto.lansweeper.integrations.assets.v1.AssetBasicInfo} */ (
354
+ jspb.Message.getWrapperField(this, proto.lansweeper.integrations.assets.v1.AssetBasicInfo, 1));
355
+ };
356
+
357
+
358
+ /**
359
+ * @param {?proto.lansweeper.integrations.assets.v1.AssetBasicInfo|undefined} value
360
+ * @return {!proto.lansweeper.integrations.assets.v1.Asset} returns this
361
+ */
362
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.setAssetBasicInfo = function(value) {
363
+ return jspb.Message.setWrapperField(this, 1, value);
364
+ };
365
+
366
+
367
+ /**
368
+ * Clears the message field making it undefined.
369
+ * @return {!proto.lansweeper.integrations.assets.v1.Asset} returns this
370
+ */
371
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.clearAssetBasicInfo = function() {
372
+ return this.setAssetBasicInfo(undefined);
373
+ };
374
+
375
+
376
+ /**
377
+ * Returns whether this field is set.
378
+ * @return {boolean}
379
+ */
380
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.hasAssetBasicInfo = function() {
381
+ return jspb.Message.getField(this, 1) != null;
382
+ };
383
+
384
+
385
+ /**
386
+ * optional AssetCustom asset_custom = 2;
387
+ * @return {?proto.lansweeper.integrations.assets.v1.AssetCustom}
388
+ */
389
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.getAssetCustom = function() {
390
+ return /** @type{?proto.lansweeper.integrations.assets.v1.AssetCustom} */ (
391
+ jspb.Message.getWrapperField(this, proto.lansweeper.integrations.assets.v1.AssetCustom, 2));
392
+ };
393
+
394
+
395
+ /**
396
+ * @param {?proto.lansweeper.integrations.assets.v1.AssetCustom|undefined} value
397
+ * @return {!proto.lansweeper.integrations.assets.v1.Asset} returns this
398
+ */
399
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.setAssetCustom = function(value) {
400
+ return jspb.Message.setWrapperField(this, 2, value);
401
+ };
402
+
403
+
404
+ /**
405
+ * Clears the message field making it undefined.
406
+ * @return {!proto.lansweeper.integrations.assets.v1.Asset} returns this
407
+ */
408
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.clearAssetCustom = function() {
409
+ return this.setAssetCustom(undefined);
410
+ };
411
+
412
+
413
+ /**
414
+ * Returns whether this field is set.
415
+ * @return {boolean}
416
+ */
417
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.hasAssetCustom = function() {
418
+ return jspb.Message.getField(this, 2) != null;
419
+ };
420
+
421
+
422
+ /**
423
+ * optional CloudAssetCustom cloud_asset_custom = 3;
424
+ * @return {?proto.lansweeper.integrations.assets.v1.CloudAssetCustom}
425
+ */
426
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.getCloudAssetCustom = function() {
427
+ return /** @type{?proto.lansweeper.integrations.assets.v1.CloudAssetCustom} */ (
428
+ jspb.Message.getWrapperField(this, proto.lansweeper.integrations.assets.v1.CloudAssetCustom, 3));
429
+ };
430
+
431
+
432
+ /**
433
+ * @param {?proto.lansweeper.integrations.assets.v1.CloudAssetCustom|undefined} value
434
+ * @return {!proto.lansweeper.integrations.assets.v1.Asset} returns this
435
+ */
436
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.setCloudAssetCustom = function(value) {
437
+ return jspb.Message.setWrapperField(this, 3, value);
438
+ };
439
+
440
+
441
+ /**
442
+ * Clears the message field making it undefined.
443
+ * @return {!proto.lansweeper.integrations.assets.v1.Asset} returns this
444
+ */
445
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.clearCloudAssetCustom = function() {
446
+ return this.setCloudAssetCustom(undefined);
447
+ };
448
+
449
+
450
+ /**
451
+ * Returns whether this field is set.
452
+ * @return {boolean}
453
+ */
454
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.hasCloudAssetCustom = function() {
455
+ return jspb.Message.getField(this, 3) != null;
456
+ };
457
+
458
+
459
+ /**
460
+ * optional OtData ot_data = 4;
461
+ * @return {?proto.lansweeper.integrations.assets.v1.OtData}
462
+ */
463
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.getOtData = function() {
464
+ return /** @type{?proto.lansweeper.integrations.assets.v1.OtData} */ (
465
+ jspb.Message.getWrapperField(this, proto.lansweeper.integrations.assets.v1.OtData, 4));
466
+ };
467
+
468
+
469
+ /**
470
+ * @param {?proto.lansweeper.integrations.assets.v1.OtData|undefined} value
471
+ * @return {!proto.lansweeper.integrations.assets.v1.Asset} returns this
472
+ */
473
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.setOtData = function(value) {
474
+ return jspb.Message.setWrapperField(this, 4, value);
475
+ };
476
+
477
+
478
+ /**
479
+ * Clears the message field making it undefined.
480
+ * @return {!proto.lansweeper.integrations.assets.v1.Asset} returns this
481
+ */
482
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.clearOtData = function() {
483
+ return this.setOtData(undefined);
484
+ };
485
+
486
+
487
+ /**
488
+ * Returns whether this field is set.
489
+ * @return {boolean}
490
+ */
491
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.hasOtData = function() {
492
+ return jspb.Message.getField(this, 4) != null;
493
+ };
494
+
495
+
496
+ /**
497
+ * optional LockedFields locked_fields = 5;
498
+ * @return {?proto.lansweeper.integrations.assets.v1.LockedFields}
499
+ */
500
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.getLockedFields = function() {
501
+ return /** @type{?proto.lansweeper.integrations.assets.v1.LockedFields} */ (
502
+ jspb.Message.getWrapperField(this, proto.lansweeper.integrations.assets.v1.LockedFields, 5));
503
+ };
504
+
505
+
506
+ /**
507
+ * @param {?proto.lansweeper.integrations.assets.v1.LockedFields|undefined} value
508
+ * @return {!proto.lansweeper.integrations.assets.v1.Asset} returns this
509
+ */
510
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.setLockedFields = function(value) {
511
+ return jspb.Message.setWrapperField(this, 5, value);
512
+ };
513
+
514
+
515
+ /**
516
+ * Clears the message field making it undefined.
517
+ * @return {!proto.lansweeper.integrations.assets.v1.Asset} returns this
518
+ */
519
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.clearLockedFields = function() {
520
+ return this.setLockedFields(undefined);
521
+ };
522
+
523
+
524
+ /**
525
+ * Returns whether this field is set.
526
+ * @return {boolean}
527
+ */
528
+ proto.lansweeper.integrations.assets.v1.Asset.prototype.hasLockedFields = function() {
529
+ return jspb.Message.getField(this, 5) != null;
530
+ };
531
+
532
+
533
+
534
+
535
+
536
+ if (jspb.Message.GENERATE_TO_OBJECT) {
537
+ /**
538
+ * Creates an object representation of this proto.
539
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
540
+ * Optional fields that are not set will be set to undefined.
541
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
542
+ * For the list of reserved names please see:
543
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
544
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
545
+ * JSPB instance for transitional soy proto support:
546
+ * http://goto/soy-param-migration
547
+ * @return {!Object}
548
+ */
549
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.toObject = function(opt_includeInstance) {
550
+ return proto.lansweeper.integrations.assets.v1.AssetBasicInfo.toObject(opt_includeInstance, this);
551
+ };
552
+
553
+
554
+ /**
555
+ * Static version of the {@see toObject} method.
556
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
557
+ * the JSPB instance for transitional soy proto support:
558
+ * http://goto/soy-param-migration
559
+ * @param {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo} msg The msg instance to transform.
560
+ * @return {!Object}
561
+ * @suppress {unusedLocalVariables} f is only used for nested messages
562
+ */
563
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.toObject = function(includeInstance, msg) {
564
+ var f, obj = {
565
+ typeKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
566
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
567
+ domain: jspb.Message.getFieldWithDefault(msg, 3, ""),
568
+ ipAddress: jspb.Message.getFieldWithDefault(msg, 4, ""),
569
+ mac: jspb.Message.getFieldWithDefault(msg, 5, ""),
570
+ description: jspb.Message.getFieldWithDefault(msg, 6, ""),
571
+ fqdn: jspb.Message.getFieldWithDefault(msg, 7, "")
572
+ };
573
+
574
+ if (includeInstance) {
575
+ obj.$jspbMessageInstance = msg;
576
+ }
577
+ return obj;
578
+ };
579
+ }
580
+
581
+
582
+ /**
583
+ * Deserializes binary data (in protobuf wire format).
584
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
585
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo}
586
+ */
587
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.deserializeBinary = function(bytes) {
588
+ var reader = new jspb.BinaryReader(bytes);
589
+ var msg = new proto.lansweeper.integrations.assets.v1.AssetBasicInfo;
590
+ return proto.lansweeper.integrations.assets.v1.AssetBasicInfo.deserializeBinaryFromReader(msg, reader);
591
+ };
592
+
593
+
594
+ /**
595
+ * Deserializes binary data (in protobuf wire format) from the
596
+ * given reader into the given message object.
597
+ * @param {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo} msg The message object to deserialize into.
598
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
599
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo}
600
+ */
601
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.deserializeBinaryFromReader = function(msg, reader) {
602
+ while (reader.nextField()) {
603
+ if (reader.isEndGroup()) {
604
+ break;
605
+ }
606
+ var field = reader.getFieldNumber();
607
+ switch (field) {
608
+ case 1:
609
+ var value = /** @type {string} */ (reader.readString());
610
+ msg.setTypeKey(value);
611
+ break;
612
+ case 2:
613
+ var value = /** @type {string} */ (reader.readString());
614
+ msg.setName(value);
615
+ break;
616
+ case 3:
617
+ var value = /** @type {string} */ (reader.readString());
618
+ msg.setDomain(value);
619
+ break;
620
+ case 4:
621
+ var value = /** @type {string} */ (reader.readString());
622
+ msg.setIpAddress(value);
623
+ break;
624
+ case 5:
625
+ var value = /** @type {string} */ (reader.readString());
626
+ msg.setMac(value);
627
+ break;
628
+ case 6:
629
+ var value = /** @type {string} */ (reader.readString());
630
+ msg.setDescription(value);
631
+ break;
632
+ case 7:
633
+ var value = /** @type {string} */ (reader.readString());
634
+ msg.setFqdn(value);
635
+ break;
636
+ default:
637
+ reader.skipField();
638
+ break;
639
+ }
640
+ }
641
+ return msg;
642
+ };
643
+
644
+
645
+ /**
646
+ * Serializes the message to binary data (in protobuf wire format).
647
+ * @return {!Uint8Array}
648
+ */
649
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.serializeBinary = function() {
650
+ var writer = new jspb.BinaryWriter();
651
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.serializeBinaryToWriter(this, writer);
652
+ return writer.getResultBuffer();
653
+ };
654
+
655
+
656
+ /**
657
+ * Serializes the given message to binary data (in protobuf wire
658
+ * format), writing to the given BinaryWriter.
659
+ * @param {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo} message
660
+ * @param {!jspb.BinaryWriter} writer
661
+ * @suppress {unusedLocalVariables} f is only used for nested messages
662
+ */
663
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.serializeBinaryToWriter = function(message, writer) {
664
+ var f = undefined;
665
+ f = message.getTypeKey();
666
+ if (f.length > 0) {
667
+ writer.writeString(
668
+ 1,
669
+ f
670
+ );
671
+ }
672
+ f = message.getName();
673
+ if (f.length > 0) {
674
+ writer.writeString(
675
+ 2,
676
+ f
677
+ );
678
+ }
679
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
680
+ if (f != null) {
681
+ writer.writeString(
682
+ 3,
683
+ f
684
+ );
685
+ }
686
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
687
+ if (f != null) {
688
+ writer.writeString(
689
+ 4,
690
+ f
691
+ );
692
+ }
693
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
694
+ if (f != null) {
695
+ writer.writeString(
696
+ 5,
697
+ f
698
+ );
699
+ }
700
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
701
+ if (f != null) {
702
+ writer.writeString(
703
+ 6,
704
+ f
705
+ );
706
+ }
707
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
708
+ if (f != null) {
709
+ writer.writeString(
710
+ 7,
711
+ f
712
+ );
713
+ }
714
+ };
715
+
716
+
717
+ /**
718
+ * optional string type_key = 1;
719
+ * @return {string}
720
+ */
721
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.getTypeKey = function() {
722
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
723
+ };
724
+
725
+
726
+ /**
727
+ * @param {string} value
728
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo} returns this
729
+ */
730
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.setTypeKey = function(value) {
731
+ return jspb.Message.setProto3StringField(this, 1, value);
732
+ };
733
+
734
+
735
+ /**
736
+ * optional string name = 2;
737
+ * @return {string}
738
+ */
739
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.getName = function() {
740
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
741
+ };
742
+
743
+
744
+ /**
745
+ * @param {string} value
746
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo} returns this
747
+ */
748
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.setName = function(value) {
749
+ return jspb.Message.setProto3StringField(this, 2, value);
750
+ };
751
+
752
+
753
+ /**
754
+ * optional string domain = 3;
755
+ * @return {string}
756
+ */
757
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.getDomain = function() {
758
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
759
+ };
760
+
761
+
762
+ /**
763
+ * @param {string} value
764
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo} returns this
765
+ */
766
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.setDomain = function(value) {
767
+ return jspb.Message.setField(this, 3, value);
768
+ };
769
+
770
+
771
+ /**
772
+ * Clears the field making it undefined.
773
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo} returns this
774
+ */
775
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.clearDomain = function() {
776
+ return jspb.Message.setField(this, 3, undefined);
777
+ };
778
+
779
+
780
+ /**
781
+ * Returns whether this field is set.
782
+ * @return {boolean}
783
+ */
784
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.hasDomain = function() {
785
+ return jspb.Message.getField(this, 3) != null;
786
+ };
787
+
788
+
789
+ /**
790
+ * optional string ip_address = 4;
791
+ * @return {string}
792
+ */
793
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.getIpAddress = function() {
794
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
795
+ };
796
+
797
+
798
+ /**
799
+ * @param {string} value
800
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo} returns this
801
+ */
802
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.setIpAddress = function(value) {
803
+ return jspb.Message.setField(this, 4, value);
804
+ };
805
+
806
+
807
+ /**
808
+ * Clears the field making it undefined.
809
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo} returns this
810
+ */
811
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.clearIpAddress = function() {
812
+ return jspb.Message.setField(this, 4, undefined);
813
+ };
814
+
815
+
816
+ /**
817
+ * Returns whether this field is set.
818
+ * @return {boolean}
819
+ */
820
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.hasIpAddress = function() {
821
+ return jspb.Message.getField(this, 4) != null;
822
+ };
823
+
824
+
825
+ /**
826
+ * optional string mac = 5;
827
+ * @return {string}
828
+ */
829
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.getMac = function() {
830
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
831
+ };
832
+
833
+
834
+ /**
835
+ * @param {string} value
836
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo} returns this
837
+ */
838
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.setMac = function(value) {
839
+ return jspb.Message.setField(this, 5, value);
840
+ };
841
+
842
+
843
+ /**
844
+ * Clears the field making it undefined.
845
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo} returns this
846
+ */
847
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.clearMac = function() {
848
+ return jspb.Message.setField(this, 5, undefined);
849
+ };
850
+
851
+
852
+ /**
853
+ * Returns whether this field is set.
854
+ * @return {boolean}
855
+ */
856
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.hasMac = function() {
857
+ return jspb.Message.getField(this, 5) != null;
858
+ };
859
+
860
+
861
+ /**
862
+ * optional string description = 6;
863
+ * @return {string}
864
+ */
865
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.getDescription = function() {
866
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
867
+ };
868
+
869
+
870
+ /**
871
+ * @param {string} value
872
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo} returns this
873
+ */
874
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.setDescription = function(value) {
875
+ return jspb.Message.setField(this, 6, value);
876
+ };
877
+
878
+
879
+ /**
880
+ * Clears the field making it undefined.
881
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo} returns this
882
+ */
883
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.clearDescription = function() {
884
+ return jspb.Message.setField(this, 6, undefined);
885
+ };
886
+
887
+
888
+ /**
889
+ * Returns whether this field is set.
890
+ * @return {boolean}
891
+ */
892
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.hasDescription = function() {
893
+ return jspb.Message.getField(this, 6) != null;
894
+ };
895
+
896
+
897
+ /**
898
+ * optional string fqdn = 7;
899
+ * @return {string}
900
+ */
901
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.getFqdn = function() {
902
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
903
+ };
904
+
905
+
906
+ /**
907
+ * @param {string} value
908
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo} returns this
909
+ */
910
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.setFqdn = function(value) {
911
+ return jspb.Message.setField(this, 7, value);
912
+ };
913
+
914
+
915
+ /**
916
+ * Clears the field making it undefined.
917
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetBasicInfo} returns this
918
+ */
919
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.clearFqdn = function() {
920
+ return jspb.Message.setField(this, 7, undefined);
921
+ };
922
+
923
+
924
+ /**
925
+ * Returns whether this field is set.
926
+ * @return {boolean}
927
+ */
928
+ proto.lansweeper.integrations.assets.v1.AssetBasicInfo.prototype.hasFqdn = function() {
929
+ return jspb.Message.getField(this, 7) != null;
930
+ };
931
+
932
+
933
+
934
+
935
+
936
+ if (jspb.Message.GENERATE_TO_OBJECT) {
937
+ /**
938
+ * Creates an object representation of this proto.
939
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
940
+ * Optional fields that are not set will be set to undefined.
941
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
942
+ * For the list of reserved names please see:
943
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
944
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
945
+ * JSPB instance for transitional soy proto support:
946
+ * http://goto/soy-param-migration
947
+ * @return {!Object}
948
+ */
949
+ proto.lansweeper.integrations.assets.v1.OtData.prototype.toObject = function(opt_includeInstance) {
950
+ return proto.lansweeper.integrations.assets.v1.OtData.toObject(opt_includeInstance, this);
951
+ };
952
+
953
+
954
+ /**
955
+ * Static version of the {@see toObject} method.
956
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
957
+ * the JSPB instance for transitional soy proto support:
958
+ * http://goto/soy-param-migration
959
+ * @param {!proto.lansweeper.integrations.assets.v1.OtData} msg The msg instance to transform.
960
+ * @return {!Object}
961
+ * @suppress {unusedLocalVariables} f is only used for nested messages
962
+ */
963
+ proto.lansweeper.integrations.assets.v1.OtData.toObject = function(includeInstance, msg) {
964
+ var f, obj = {
965
+ moduleType: jspb.Message.getFieldWithDefault(msg, 1, ""),
966
+ firmware: jspb.Message.getFieldWithDefault(msg, 2, "")
967
+ };
968
+
969
+ if (includeInstance) {
970
+ obj.$jspbMessageInstance = msg;
971
+ }
972
+ return obj;
973
+ };
974
+ }
975
+
976
+
977
+ /**
978
+ * Deserializes binary data (in protobuf wire format).
979
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
980
+ * @return {!proto.lansweeper.integrations.assets.v1.OtData}
981
+ */
982
+ proto.lansweeper.integrations.assets.v1.OtData.deserializeBinary = function(bytes) {
983
+ var reader = new jspb.BinaryReader(bytes);
984
+ var msg = new proto.lansweeper.integrations.assets.v1.OtData;
985
+ return proto.lansweeper.integrations.assets.v1.OtData.deserializeBinaryFromReader(msg, reader);
986
+ };
987
+
988
+
989
+ /**
990
+ * Deserializes binary data (in protobuf wire format) from the
991
+ * given reader into the given message object.
992
+ * @param {!proto.lansweeper.integrations.assets.v1.OtData} msg The message object to deserialize into.
993
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
994
+ * @return {!proto.lansweeper.integrations.assets.v1.OtData}
995
+ */
996
+ proto.lansweeper.integrations.assets.v1.OtData.deserializeBinaryFromReader = function(msg, reader) {
997
+ while (reader.nextField()) {
998
+ if (reader.isEndGroup()) {
999
+ break;
1000
+ }
1001
+ var field = reader.getFieldNumber();
1002
+ switch (field) {
1003
+ case 1:
1004
+ var value = /** @type {string} */ (reader.readString());
1005
+ msg.setModuleType(value);
1006
+ break;
1007
+ case 2:
1008
+ var value = /** @type {string} */ (reader.readString());
1009
+ msg.setFirmware(value);
1010
+ break;
1011
+ default:
1012
+ reader.skipField();
1013
+ break;
1014
+ }
1015
+ }
1016
+ return msg;
1017
+ };
1018
+
1019
+
1020
+ /**
1021
+ * Serializes the message to binary data (in protobuf wire format).
1022
+ * @return {!Uint8Array}
1023
+ */
1024
+ proto.lansweeper.integrations.assets.v1.OtData.prototype.serializeBinary = function() {
1025
+ var writer = new jspb.BinaryWriter();
1026
+ proto.lansweeper.integrations.assets.v1.OtData.serializeBinaryToWriter(this, writer);
1027
+ return writer.getResultBuffer();
1028
+ };
1029
+
1030
+
1031
+ /**
1032
+ * Serializes the given message to binary data (in protobuf wire
1033
+ * format), writing to the given BinaryWriter.
1034
+ * @param {!proto.lansweeper.integrations.assets.v1.OtData} message
1035
+ * @param {!jspb.BinaryWriter} writer
1036
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1037
+ */
1038
+ proto.lansweeper.integrations.assets.v1.OtData.serializeBinaryToWriter = function(message, writer) {
1039
+ var f = undefined;
1040
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
1041
+ if (f != null) {
1042
+ writer.writeString(
1043
+ 1,
1044
+ f
1045
+ );
1046
+ }
1047
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
1048
+ if (f != null) {
1049
+ writer.writeString(
1050
+ 2,
1051
+ f
1052
+ );
1053
+ }
1054
+ };
1055
+
1056
+
1057
+ /**
1058
+ * optional string module_type = 1;
1059
+ * @return {string}
1060
+ */
1061
+ proto.lansweeper.integrations.assets.v1.OtData.prototype.getModuleType = function() {
1062
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1063
+ };
1064
+
1065
+
1066
+ /**
1067
+ * @param {string} value
1068
+ * @return {!proto.lansweeper.integrations.assets.v1.OtData} returns this
1069
+ */
1070
+ proto.lansweeper.integrations.assets.v1.OtData.prototype.setModuleType = function(value) {
1071
+ return jspb.Message.setField(this, 1, value);
1072
+ };
1073
+
1074
+
1075
+ /**
1076
+ * Clears the field making it undefined.
1077
+ * @return {!proto.lansweeper.integrations.assets.v1.OtData} returns this
1078
+ */
1079
+ proto.lansweeper.integrations.assets.v1.OtData.prototype.clearModuleType = function() {
1080
+ return jspb.Message.setField(this, 1, undefined);
1081
+ };
1082
+
1083
+
1084
+ /**
1085
+ * Returns whether this field is set.
1086
+ * @return {boolean}
1087
+ */
1088
+ proto.lansweeper.integrations.assets.v1.OtData.prototype.hasModuleType = function() {
1089
+ return jspb.Message.getField(this, 1) != null;
1090
+ };
1091
+
1092
+
1093
+ /**
1094
+ * optional string firmware = 2;
1095
+ * @return {string}
1096
+ */
1097
+ proto.lansweeper.integrations.assets.v1.OtData.prototype.getFirmware = function() {
1098
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1099
+ };
1100
+
1101
+
1102
+ /**
1103
+ * @param {string} value
1104
+ * @return {!proto.lansweeper.integrations.assets.v1.OtData} returns this
1105
+ */
1106
+ proto.lansweeper.integrations.assets.v1.OtData.prototype.setFirmware = function(value) {
1107
+ return jspb.Message.setField(this, 2, value);
1108
+ };
1109
+
1110
+
1111
+ /**
1112
+ * Clears the field making it undefined.
1113
+ * @return {!proto.lansweeper.integrations.assets.v1.OtData} returns this
1114
+ */
1115
+ proto.lansweeper.integrations.assets.v1.OtData.prototype.clearFirmware = function() {
1116
+ return jspb.Message.setField(this, 2, undefined);
1117
+ };
1118
+
1119
+
1120
+ /**
1121
+ * Returns whether this field is set.
1122
+ * @return {boolean}
1123
+ */
1124
+ proto.lansweeper.integrations.assets.v1.OtData.prototype.hasFirmware = function() {
1125
+ return jspb.Message.getField(this, 2) != null;
1126
+ };
1127
+
1128
+
1129
+
1130
+
1131
+
1132
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1133
+ /**
1134
+ * Creates an object representation of this proto.
1135
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1136
+ * Optional fields that are not set will be set to undefined.
1137
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1138
+ * For the list of reserved names please see:
1139
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1140
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1141
+ * JSPB instance for transitional soy proto support:
1142
+ * http://goto/soy-param-migration
1143
+ * @return {!Object}
1144
+ */
1145
+ proto.lansweeper.integrations.assets.v1.CustomField.prototype.toObject = function(opt_includeInstance) {
1146
+ return proto.lansweeper.integrations.assets.v1.CustomField.toObject(opt_includeInstance, this);
1147
+ };
1148
+
1149
+
1150
+ /**
1151
+ * Static version of the {@see toObject} method.
1152
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1153
+ * the JSPB instance for transitional soy proto support:
1154
+ * http://goto/soy-param-migration
1155
+ * @param {!proto.lansweeper.integrations.assets.v1.CustomField} msg The msg instance to transform.
1156
+ * @return {!Object}
1157
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1158
+ */
1159
+ proto.lansweeper.integrations.assets.v1.CustomField.toObject = function(includeInstance, msg) {
1160
+ var f, obj = {
1161
+ key: jspb.Message.getFieldWithDefault(msg, 1, ""),
1162
+ value: jspb.Message.getFieldWithDefault(msg, 2, "")
1163
+ };
1164
+
1165
+ if (includeInstance) {
1166
+ obj.$jspbMessageInstance = msg;
1167
+ }
1168
+ return obj;
1169
+ };
1170
+ }
1171
+
1172
+
1173
+ /**
1174
+ * Deserializes binary data (in protobuf wire format).
1175
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1176
+ * @return {!proto.lansweeper.integrations.assets.v1.CustomField}
1177
+ */
1178
+ proto.lansweeper.integrations.assets.v1.CustomField.deserializeBinary = function(bytes) {
1179
+ var reader = new jspb.BinaryReader(bytes);
1180
+ var msg = new proto.lansweeper.integrations.assets.v1.CustomField;
1181
+ return proto.lansweeper.integrations.assets.v1.CustomField.deserializeBinaryFromReader(msg, reader);
1182
+ };
1183
+
1184
+
1185
+ /**
1186
+ * Deserializes binary data (in protobuf wire format) from the
1187
+ * given reader into the given message object.
1188
+ * @param {!proto.lansweeper.integrations.assets.v1.CustomField} msg The message object to deserialize into.
1189
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1190
+ * @return {!proto.lansweeper.integrations.assets.v1.CustomField}
1191
+ */
1192
+ proto.lansweeper.integrations.assets.v1.CustomField.deserializeBinaryFromReader = function(msg, reader) {
1193
+ while (reader.nextField()) {
1194
+ if (reader.isEndGroup()) {
1195
+ break;
1196
+ }
1197
+ var field = reader.getFieldNumber();
1198
+ switch (field) {
1199
+ case 1:
1200
+ var value = /** @type {string} */ (reader.readString());
1201
+ msg.setKey(value);
1202
+ break;
1203
+ case 2:
1204
+ var value = /** @type {string} */ (reader.readString());
1205
+ msg.setValue(value);
1206
+ break;
1207
+ default:
1208
+ reader.skipField();
1209
+ break;
1210
+ }
1211
+ }
1212
+ return msg;
1213
+ };
1214
+
1215
+
1216
+ /**
1217
+ * Serializes the message to binary data (in protobuf wire format).
1218
+ * @return {!Uint8Array}
1219
+ */
1220
+ proto.lansweeper.integrations.assets.v1.CustomField.prototype.serializeBinary = function() {
1221
+ var writer = new jspb.BinaryWriter();
1222
+ proto.lansweeper.integrations.assets.v1.CustomField.serializeBinaryToWriter(this, writer);
1223
+ return writer.getResultBuffer();
1224
+ };
1225
+
1226
+
1227
+ /**
1228
+ * Serializes the given message to binary data (in protobuf wire
1229
+ * format), writing to the given BinaryWriter.
1230
+ * @param {!proto.lansweeper.integrations.assets.v1.CustomField} message
1231
+ * @param {!jspb.BinaryWriter} writer
1232
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1233
+ */
1234
+ proto.lansweeper.integrations.assets.v1.CustomField.serializeBinaryToWriter = function(message, writer) {
1235
+ var f = undefined;
1236
+ f = message.getKey();
1237
+ if (f.length > 0) {
1238
+ writer.writeString(
1239
+ 1,
1240
+ f
1241
+ );
1242
+ }
1243
+ f = message.getValue();
1244
+ if (f.length > 0) {
1245
+ writer.writeString(
1246
+ 2,
1247
+ f
1248
+ );
1249
+ }
1250
+ };
1251
+
1252
+
1253
+ /**
1254
+ * optional string key = 1;
1255
+ * @return {string}
1256
+ */
1257
+ proto.lansweeper.integrations.assets.v1.CustomField.prototype.getKey = function() {
1258
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1259
+ };
1260
+
1261
+
1262
+ /**
1263
+ * @param {string} value
1264
+ * @return {!proto.lansweeper.integrations.assets.v1.CustomField} returns this
1265
+ */
1266
+ proto.lansweeper.integrations.assets.v1.CustomField.prototype.setKey = function(value) {
1267
+ return jspb.Message.setProto3StringField(this, 1, value);
1268
+ };
1269
+
1270
+
1271
+ /**
1272
+ * optional string value = 2;
1273
+ * @return {string}
1274
+ */
1275
+ proto.lansweeper.integrations.assets.v1.CustomField.prototype.getValue = function() {
1276
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1277
+ };
1278
+
1279
+
1280
+ /**
1281
+ * @param {string} value
1282
+ * @return {!proto.lansweeper.integrations.assets.v1.CustomField} returns this
1283
+ */
1284
+ proto.lansweeper.integrations.assets.v1.CustomField.prototype.setValue = function(value) {
1285
+ return jspb.Message.setProto3StringField(this, 2, value);
1286
+ };
1287
+
1288
+
1289
+
1290
+ /**
1291
+ * List of repeated fields within this message type.
1292
+ * @private {!Array<number>}
1293
+ * @const
1294
+ */
1295
+ proto.lansweeper.integrations.assets.v1.AssetCustom.repeatedFields_ = [20];
1296
+
1297
+
1298
+
1299
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1300
+ /**
1301
+ * Creates an object representation of this proto.
1302
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1303
+ * Optional fields that are not set will be set to undefined.
1304
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1305
+ * For the list of reserved names please see:
1306
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1307
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1308
+ * JSPB instance for transitional soy proto support:
1309
+ * http://goto/soy-param-migration
1310
+ * @return {!Object}
1311
+ */
1312
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.toObject = function(opt_includeInstance) {
1313
+ return proto.lansweeper.integrations.assets.v1.AssetCustom.toObject(opt_includeInstance, this);
1314
+ };
1315
+
1316
+
1317
+ /**
1318
+ * Static version of the {@see toObject} method.
1319
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1320
+ * the JSPB instance for transitional soy proto support:
1321
+ * http://goto/soy-param-migration
1322
+ * @param {!proto.lansweeper.integrations.assets.v1.AssetCustom} msg The msg instance to transform.
1323
+ * @return {!Object}
1324
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1325
+ */
1326
+ proto.lansweeper.integrations.assets.v1.AssetCustom.toObject = function(includeInstance, msg) {
1327
+ var f, obj = {
1328
+ stateKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
1329
+ location: jspb.Message.getFieldWithDefault(msg, 2, ""),
1330
+ building: jspb.Message.getFieldWithDefault(msg, 3, ""),
1331
+ department: jspb.Message.getFieldWithDefault(msg, 4, ""),
1332
+ industry: jspb.Message.getFieldWithDefault(msg, 5, ""),
1333
+ barcode: jspb.Message.getFieldWithDefault(msg, 6, ""),
1334
+ branchOffice: jspb.Message.getFieldWithDefault(msg, 7, ""),
1335
+ contact: jspb.Message.getFieldWithDefault(msg, 8, ""),
1336
+ manufacturer: jspb.Message.getFieldWithDefault(msg, 9, ""),
1337
+ model: jspb.Message.getFieldWithDefault(msg, 10, ""),
1338
+ serialNumber: jspb.Message.getFieldWithDefault(msg, 11, ""),
1339
+ dnsName: jspb.Message.getFieldWithDefault(msg, 12, ""),
1340
+ sku: jspb.Message.getFieldWithDefault(msg, 13, ""),
1341
+ warrantyDate: jspb.Message.getFieldWithDefault(msg, 14, ""),
1342
+ purchaseDate: jspb.Message.getFieldWithDefault(msg, 15, ""),
1343
+ orderNumber: jspb.Message.getFieldWithDefault(msg, 16, ""),
1344
+ lastPatched: jspb.Message.getFieldWithDefault(msg, 17, ""),
1345
+ lastFullBackup: jspb.Message.getFieldWithDefault(msg, 18, ""),
1346
+ lastFullImage: jspb.Message.getFieldWithDefault(msg, 19, ""),
1347
+ fieldsList: jspb.Message.toObjectList(msg.getFieldsList(),
1348
+ proto.lansweeper.integrations.assets.v1.CustomField.toObject, includeInstance)
1349
+ };
1350
+
1351
+ if (includeInstance) {
1352
+ obj.$jspbMessageInstance = msg;
1353
+ }
1354
+ return obj;
1355
+ };
1356
+ }
1357
+
1358
+
1359
+ /**
1360
+ * Deserializes binary data (in protobuf wire format).
1361
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1362
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom}
1363
+ */
1364
+ proto.lansweeper.integrations.assets.v1.AssetCustom.deserializeBinary = function(bytes) {
1365
+ var reader = new jspb.BinaryReader(bytes);
1366
+ var msg = new proto.lansweeper.integrations.assets.v1.AssetCustom;
1367
+ return proto.lansweeper.integrations.assets.v1.AssetCustom.deserializeBinaryFromReader(msg, reader);
1368
+ };
1369
+
1370
+
1371
+ /**
1372
+ * Deserializes binary data (in protobuf wire format) from the
1373
+ * given reader into the given message object.
1374
+ * @param {!proto.lansweeper.integrations.assets.v1.AssetCustom} msg The message object to deserialize into.
1375
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1376
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom}
1377
+ */
1378
+ proto.lansweeper.integrations.assets.v1.AssetCustom.deserializeBinaryFromReader = function(msg, reader) {
1379
+ while (reader.nextField()) {
1380
+ if (reader.isEndGroup()) {
1381
+ break;
1382
+ }
1383
+ var field = reader.getFieldNumber();
1384
+ switch (field) {
1385
+ case 1:
1386
+ var value = /** @type {string} */ (reader.readString());
1387
+ msg.setStateKey(value);
1388
+ break;
1389
+ case 2:
1390
+ var value = /** @type {string} */ (reader.readString());
1391
+ msg.setLocation(value);
1392
+ break;
1393
+ case 3:
1394
+ var value = /** @type {string} */ (reader.readString());
1395
+ msg.setBuilding(value);
1396
+ break;
1397
+ case 4:
1398
+ var value = /** @type {string} */ (reader.readString());
1399
+ msg.setDepartment(value);
1400
+ break;
1401
+ case 5:
1402
+ var value = /** @type {string} */ (reader.readString());
1403
+ msg.setIndustry(value);
1404
+ break;
1405
+ case 6:
1406
+ var value = /** @type {string} */ (reader.readString());
1407
+ msg.setBarcode(value);
1408
+ break;
1409
+ case 7:
1410
+ var value = /** @type {string} */ (reader.readString());
1411
+ msg.setBranchOffice(value);
1412
+ break;
1413
+ case 8:
1414
+ var value = /** @type {string} */ (reader.readString());
1415
+ msg.setContact(value);
1416
+ break;
1417
+ case 9:
1418
+ var value = /** @type {string} */ (reader.readString());
1419
+ msg.setManufacturer(value);
1420
+ break;
1421
+ case 10:
1422
+ var value = /** @type {string} */ (reader.readString());
1423
+ msg.setModel(value);
1424
+ break;
1425
+ case 11:
1426
+ var value = /** @type {string} */ (reader.readString());
1427
+ msg.setSerialNumber(value);
1428
+ break;
1429
+ case 12:
1430
+ var value = /** @type {string} */ (reader.readString());
1431
+ msg.setDnsName(value);
1432
+ break;
1433
+ case 13:
1434
+ var value = /** @type {string} */ (reader.readString());
1435
+ msg.setSku(value);
1436
+ break;
1437
+ case 14:
1438
+ var value = /** @type {string} */ (reader.readString());
1439
+ msg.setWarrantyDate(value);
1440
+ break;
1441
+ case 15:
1442
+ var value = /** @type {string} */ (reader.readString());
1443
+ msg.setPurchaseDate(value);
1444
+ break;
1445
+ case 16:
1446
+ var value = /** @type {string} */ (reader.readString());
1447
+ msg.setOrderNumber(value);
1448
+ break;
1449
+ case 17:
1450
+ var value = /** @type {string} */ (reader.readString());
1451
+ msg.setLastPatched(value);
1452
+ break;
1453
+ case 18:
1454
+ var value = /** @type {string} */ (reader.readString());
1455
+ msg.setLastFullBackup(value);
1456
+ break;
1457
+ case 19:
1458
+ var value = /** @type {string} */ (reader.readString());
1459
+ msg.setLastFullImage(value);
1460
+ break;
1461
+ case 20:
1462
+ var value = new proto.lansweeper.integrations.assets.v1.CustomField;
1463
+ reader.readMessage(value,proto.lansweeper.integrations.assets.v1.CustomField.deserializeBinaryFromReader);
1464
+ msg.addFields(value);
1465
+ break;
1466
+ default:
1467
+ reader.skipField();
1468
+ break;
1469
+ }
1470
+ }
1471
+ return msg;
1472
+ };
1473
+
1474
+
1475
+ /**
1476
+ * Serializes the message to binary data (in protobuf wire format).
1477
+ * @return {!Uint8Array}
1478
+ */
1479
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.serializeBinary = function() {
1480
+ var writer = new jspb.BinaryWriter();
1481
+ proto.lansweeper.integrations.assets.v1.AssetCustom.serializeBinaryToWriter(this, writer);
1482
+ return writer.getResultBuffer();
1483
+ };
1484
+
1485
+
1486
+ /**
1487
+ * Serializes the given message to binary data (in protobuf wire
1488
+ * format), writing to the given BinaryWriter.
1489
+ * @param {!proto.lansweeper.integrations.assets.v1.AssetCustom} message
1490
+ * @param {!jspb.BinaryWriter} writer
1491
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1492
+ */
1493
+ proto.lansweeper.integrations.assets.v1.AssetCustom.serializeBinaryToWriter = function(message, writer) {
1494
+ var f = undefined;
1495
+ f = message.getStateKey();
1496
+ if (f.length > 0) {
1497
+ writer.writeString(
1498
+ 1,
1499
+ f
1500
+ );
1501
+ }
1502
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
1503
+ if (f != null) {
1504
+ writer.writeString(
1505
+ 2,
1506
+ f
1507
+ );
1508
+ }
1509
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1510
+ if (f != null) {
1511
+ writer.writeString(
1512
+ 3,
1513
+ f
1514
+ );
1515
+ }
1516
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
1517
+ if (f != null) {
1518
+ writer.writeString(
1519
+ 4,
1520
+ f
1521
+ );
1522
+ }
1523
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
1524
+ if (f != null) {
1525
+ writer.writeString(
1526
+ 5,
1527
+ f
1528
+ );
1529
+ }
1530
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
1531
+ if (f != null) {
1532
+ writer.writeString(
1533
+ 6,
1534
+ f
1535
+ );
1536
+ }
1537
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
1538
+ if (f != null) {
1539
+ writer.writeString(
1540
+ 7,
1541
+ f
1542
+ );
1543
+ }
1544
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
1545
+ if (f != null) {
1546
+ writer.writeString(
1547
+ 8,
1548
+ f
1549
+ );
1550
+ }
1551
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
1552
+ if (f != null) {
1553
+ writer.writeString(
1554
+ 9,
1555
+ f
1556
+ );
1557
+ }
1558
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
1559
+ if (f != null) {
1560
+ writer.writeString(
1561
+ 10,
1562
+ f
1563
+ );
1564
+ }
1565
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
1566
+ if (f != null) {
1567
+ writer.writeString(
1568
+ 11,
1569
+ f
1570
+ );
1571
+ }
1572
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
1573
+ if (f != null) {
1574
+ writer.writeString(
1575
+ 12,
1576
+ f
1577
+ );
1578
+ }
1579
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
1580
+ if (f != null) {
1581
+ writer.writeString(
1582
+ 13,
1583
+ f
1584
+ );
1585
+ }
1586
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
1587
+ if (f != null) {
1588
+ writer.writeString(
1589
+ 14,
1590
+ f
1591
+ );
1592
+ }
1593
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
1594
+ if (f != null) {
1595
+ writer.writeString(
1596
+ 15,
1597
+ f
1598
+ );
1599
+ }
1600
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
1601
+ if (f != null) {
1602
+ writer.writeString(
1603
+ 16,
1604
+ f
1605
+ );
1606
+ }
1607
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
1608
+ if (f != null) {
1609
+ writer.writeString(
1610
+ 17,
1611
+ f
1612
+ );
1613
+ }
1614
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
1615
+ if (f != null) {
1616
+ writer.writeString(
1617
+ 18,
1618
+ f
1619
+ );
1620
+ }
1621
+ f = /** @type {string} */ (jspb.Message.getField(message, 19));
1622
+ if (f != null) {
1623
+ writer.writeString(
1624
+ 19,
1625
+ f
1626
+ );
1627
+ }
1628
+ f = message.getFieldsList();
1629
+ if (f.length > 0) {
1630
+ writer.writeRepeatedMessage(
1631
+ 20,
1632
+ f,
1633
+ proto.lansweeper.integrations.assets.v1.CustomField.serializeBinaryToWriter
1634
+ );
1635
+ }
1636
+ };
1637
+
1638
+
1639
+ /**
1640
+ * optional string state_key = 1;
1641
+ * @return {string}
1642
+ */
1643
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getStateKey = function() {
1644
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1645
+ };
1646
+
1647
+
1648
+ /**
1649
+ * @param {string} value
1650
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1651
+ */
1652
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setStateKey = function(value) {
1653
+ return jspb.Message.setProto3StringField(this, 1, value);
1654
+ };
1655
+
1656
+
1657
+ /**
1658
+ * optional string location = 2;
1659
+ * @return {string}
1660
+ */
1661
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getLocation = function() {
1662
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1663
+ };
1664
+
1665
+
1666
+ /**
1667
+ * @param {string} value
1668
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1669
+ */
1670
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setLocation = function(value) {
1671
+ return jspb.Message.setField(this, 2, value);
1672
+ };
1673
+
1674
+
1675
+ /**
1676
+ * Clears the field making it undefined.
1677
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1678
+ */
1679
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearLocation = function() {
1680
+ return jspb.Message.setField(this, 2, undefined);
1681
+ };
1682
+
1683
+
1684
+ /**
1685
+ * Returns whether this field is set.
1686
+ * @return {boolean}
1687
+ */
1688
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasLocation = function() {
1689
+ return jspb.Message.getField(this, 2) != null;
1690
+ };
1691
+
1692
+
1693
+ /**
1694
+ * optional string building = 3;
1695
+ * @return {string}
1696
+ */
1697
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getBuilding = function() {
1698
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1699
+ };
1700
+
1701
+
1702
+ /**
1703
+ * @param {string} value
1704
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1705
+ */
1706
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setBuilding = function(value) {
1707
+ return jspb.Message.setField(this, 3, value);
1708
+ };
1709
+
1710
+
1711
+ /**
1712
+ * Clears the field making it undefined.
1713
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1714
+ */
1715
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearBuilding = function() {
1716
+ return jspb.Message.setField(this, 3, undefined);
1717
+ };
1718
+
1719
+
1720
+ /**
1721
+ * Returns whether this field is set.
1722
+ * @return {boolean}
1723
+ */
1724
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasBuilding = function() {
1725
+ return jspb.Message.getField(this, 3) != null;
1726
+ };
1727
+
1728
+
1729
+ /**
1730
+ * optional string department = 4;
1731
+ * @return {string}
1732
+ */
1733
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getDepartment = function() {
1734
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1735
+ };
1736
+
1737
+
1738
+ /**
1739
+ * @param {string} value
1740
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1741
+ */
1742
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setDepartment = function(value) {
1743
+ return jspb.Message.setField(this, 4, value);
1744
+ };
1745
+
1746
+
1747
+ /**
1748
+ * Clears the field making it undefined.
1749
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1750
+ */
1751
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearDepartment = function() {
1752
+ return jspb.Message.setField(this, 4, undefined);
1753
+ };
1754
+
1755
+
1756
+ /**
1757
+ * Returns whether this field is set.
1758
+ * @return {boolean}
1759
+ */
1760
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasDepartment = function() {
1761
+ return jspb.Message.getField(this, 4) != null;
1762
+ };
1763
+
1764
+
1765
+ /**
1766
+ * optional string industry = 5;
1767
+ * @return {string}
1768
+ */
1769
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getIndustry = function() {
1770
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1771
+ };
1772
+
1773
+
1774
+ /**
1775
+ * @param {string} value
1776
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1777
+ */
1778
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setIndustry = function(value) {
1779
+ return jspb.Message.setField(this, 5, value);
1780
+ };
1781
+
1782
+
1783
+ /**
1784
+ * Clears the field making it undefined.
1785
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1786
+ */
1787
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearIndustry = function() {
1788
+ return jspb.Message.setField(this, 5, undefined);
1789
+ };
1790
+
1791
+
1792
+ /**
1793
+ * Returns whether this field is set.
1794
+ * @return {boolean}
1795
+ */
1796
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasIndustry = function() {
1797
+ return jspb.Message.getField(this, 5) != null;
1798
+ };
1799
+
1800
+
1801
+ /**
1802
+ * optional string barcode = 6;
1803
+ * @return {string}
1804
+ */
1805
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getBarcode = function() {
1806
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1807
+ };
1808
+
1809
+
1810
+ /**
1811
+ * @param {string} value
1812
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1813
+ */
1814
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setBarcode = function(value) {
1815
+ return jspb.Message.setField(this, 6, value);
1816
+ };
1817
+
1818
+
1819
+ /**
1820
+ * Clears the field making it undefined.
1821
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1822
+ */
1823
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearBarcode = function() {
1824
+ return jspb.Message.setField(this, 6, undefined);
1825
+ };
1826
+
1827
+
1828
+ /**
1829
+ * Returns whether this field is set.
1830
+ * @return {boolean}
1831
+ */
1832
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasBarcode = function() {
1833
+ return jspb.Message.getField(this, 6) != null;
1834
+ };
1835
+
1836
+
1837
+ /**
1838
+ * optional string branch_office = 7;
1839
+ * @return {string}
1840
+ */
1841
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getBranchOffice = function() {
1842
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1843
+ };
1844
+
1845
+
1846
+ /**
1847
+ * @param {string} value
1848
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1849
+ */
1850
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setBranchOffice = function(value) {
1851
+ return jspb.Message.setField(this, 7, value);
1852
+ };
1853
+
1854
+
1855
+ /**
1856
+ * Clears the field making it undefined.
1857
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1858
+ */
1859
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearBranchOffice = function() {
1860
+ return jspb.Message.setField(this, 7, undefined);
1861
+ };
1862
+
1863
+
1864
+ /**
1865
+ * Returns whether this field is set.
1866
+ * @return {boolean}
1867
+ */
1868
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasBranchOffice = function() {
1869
+ return jspb.Message.getField(this, 7) != null;
1870
+ };
1871
+
1872
+
1873
+ /**
1874
+ * optional string contact = 8;
1875
+ * @return {string}
1876
+ */
1877
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getContact = function() {
1878
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1879
+ };
1880
+
1881
+
1882
+ /**
1883
+ * @param {string} value
1884
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1885
+ */
1886
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setContact = function(value) {
1887
+ return jspb.Message.setField(this, 8, value);
1888
+ };
1889
+
1890
+
1891
+ /**
1892
+ * Clears the field making it undefined.
1893
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1894
+ */
1895
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearContact = function() {
1896
+ return jspb.Message.setField(this, 8, undefined);
1897
+ };
1898
+
1899
+
1900
+ /**
1901
+ * Returns whether this field is set.
1902
+ * @return {boolean}
1903
+ */
1904
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasContact = function() {
1905
+ return jspb.Message.getField(this, 8) != null;
1906
+ };
1907
+
1908
+
1909
+ /**
1910
+ * optional string manufacturer = 9;
1911
+ * @return {string}
1912
+ */
1913
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getManufacturer = function() {
1914
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1915
+ };
1916
+
1917
+
1918
+ /**
1919
+ * @param {string} value
1920
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1921
+ */
1922
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setManufacturer = function(value) {
1923
+ return jspb.Message.setField(this, 9, value);
1924
+ };
1925
+
1926
+
1927
+ /**
1928
+ * Clears the field making it undefined.
1929
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1930
+ */
1931
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearManufacturer = function() {
1932
+ return jspb.Message.setField(this, 9, undefined);
1933
+ };
1934
+
1935
+
1936
+ /**
1937
+ * Returns whether this field is set.
1938
+ * @return {boolean}
1939
+ */
1940
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasManufacturer = function() {
1941
+ return jspb.Message.getField(this, 9) != null;
1942
+ };
1943
+
1944
+
1945
+ /**
1946
+ * optional string model = 10;
1947
+ * @return {string}
1948
+ */
1949
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getModel = function() {
1950
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1951
+ };
1952
+
1953
+
1954
+ /**
1955
+ * @param {string} value
1956
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1957
+ */
1958
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setModel = function(value) {
1959
+ return jspb.Message.setField(this, 10, value);
1960
+ };
1961
+
1962
+
1963
+ /**
1964
+ * Clears the field making it undefined.
1965
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1966
+ */
1967
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearModel = function() {
1968
+ return jspb.Message.setField(this, 10, undefined);
1969
+ };
1970
+
1971
+
1972
+ /**
1973
+ * Returns whether this field is set.
1974
+ * @return {boolean}
1975
+ */
1976
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasModel = function() {
1977
+ return jspb.Message.getField(this, 10) != null;
1978
+ };
1979
+
1980
+
1981
+ /**
1982
+ * optional string serial_number = 11;
1983
+ * @return {string}
1984
+ */
1985
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getSerialNumber = function() {
1986
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1987
+ };
1988
+
1989
+
1990
+ /**
1991
+ * @param {string} value
1992
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
1993
+ */
1994
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setSerialNumber = function(value) {
1995
+ return jspb.Message.setField(this, 11, value);
1996
+ };
1997
+
1998
+
1999
+ /**
2000
+ * Clears the field making it undefined.
2001
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2002
+ */
2003
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearSerialNumber = function() {
2004
+ return jspb.Message.setField(this, 11, undefined);
2005
+ };
2006
+
2007
+
2008
+ /**
2009
+ * Returns whether this field is set.
2010
+ * @return {boolean}
2011
+ */
2012
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasSerialNumber = function() {
2013
+ return jspb.Message.getField(this, 11) != null;
2014
+ };
2015
+
2016
+
2017
+ /**
2018
+ * optional string dns_name = 12;
2019
+ * @return {string}
2020
+ */
2021
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getDnsName = function() {
2022
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
2023
+ };
2024
+
2025
+
2026
+ /**
2027
+ * @param {string} value
2028
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2029
+ */
2030
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setDnsName = function(value) {
2031
+ return jspb.Message.setField(this, 12, value);
2032
+ };
2033
+
2034
+
2035
+ /**
2036
+ * Clears the field making it undefined.
2037
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2038
+ */
2039
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearDnsName = function() {
2040
+ return jspb.Message.setField(this, 12, undefined);
2041
+ };
2042
+
2043
+
2044
+ /**
2045
+ * Returns whether this field is set.
2046
+ * @return {boolean}
2047
+ */
2048
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasDnsName = function() {
2049
+ return jspb.Message.getField(this, 12) != null;
2050
+ };
2051
+
2052
+
2053
+ /**
2054
+ * optional string sku = 13;
2055
+ * @return {string}
2056
+ */
2057
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getSku = function() {
2058
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
2059
+ };
2060
+
2061
+
2062
+ /**
2063
+ * @param {string} value
2064
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2065
+ */
2066
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setSku = function(value) {
2067
+ return jspb.Message.setField(this, 13, value);
2068
+ };
2069
+
2070
+
2071
+ /**
2072
+ * Clears the field making it undefined.
2073
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2074
+ */
2075
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearSku = function() {
2076
+ return jspb.Message.setField(this, 13, undefined);
2077
+ };
2078
+
2079
+
2080
+ /**
2081
+ * Returns whether this field is set.
2082
+ * @return {boolean}
2083
+ */
2084
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasSku = function() {
2085
+ return jspb.Message.getField(this, 13) != null;
2086
+ };
2087
+
2088
+
2089
+ /**
2090
+ * optional string warranty_date = 14;
2091
+ * @return {string}
2092
+ */
2093
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getWarrantyDate = function() {
2094
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
2095
+ };
2096
+
2097
+
2098
+ /**
2099
+ * @param {string} value
2100
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2101
+ */
2102
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setWarrantyDate = function(value) {
2103
+ return jspb.Message.setField(this, 14, value);
2104
+ };
2105
+
2106
+
2107
+ /**
2108
+ * Clears the field making it undefined.
2109
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2110
+ */
2111
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearWarrantyDate = function() {
2112
+ return jspb.Message.setField(this, 14, undefined);
2113
+ };
2114
+
2115
+
2116
+ /**
2117
+ * Returns whether this field is set.
2118
+ * @return {boolean}
2119
+ */
2120
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasWarrantyDate = function() {
2121
+ return jspb.Message.getField(this, 14) != null;
2122
+ };
2123
+
2124
+
2125
+ /**
2126
+ * optional string purchase_date = 15;
2127
+ * @return {string}
2128
+ */
2129
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getPurchaseDate = function() {
2130
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
2131
+ };
2132
+
2133
+
2134
+ /**
2135
+ * @param {string} value
2136
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2137
+ */
2138
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setPurchaseDate = function(value) {
2139
+ return jspb.Message.setField(this, 15, value);
2140
+ };
2141
+
2142
+
2143
+ /**
2144
+ * Clears the field making it undefined.
2145
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2146
+ */
2147
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearPurchaseDate = function() {
2148
+ return jspb.Message.setField(this, 15, undefined);
2149
+ };
2150
+
2151
+
2152
+ /**
2153
+ * Returns whether this field is set.
2154
+ * @return {boolean}
2155
+ */
2156
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasPurchaseDate = function() {
2157
+ return jspb.Message.getField(this, 15) != null;
2158
+ };
2159
+
2160
+
2161
+ /**
2162
+ * optional string order_number = 16;
2163
+ * @return {string}
2164
+ */
2165
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getOrderNumber = function() {
2166
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
2167
+ };
2168
+
2169
+
2170
+ /**
2171
+ * @param {string} value
2172
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2173
+ */
2174
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setOrderNumber = function(value) {
2175
+ return jspb.Message.setField(this, 16, value);
2176
+ };
2177
+
2178
+
2179
+ /**
2180
+ * Clears the field making it undefined.
2181
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2182
+ */
2183
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearOrderNumber = function() {
2184
+ return jspb.Message.setField(this, 16, undefined);
2185
+ };
2186
+
2187
+
2188
+ /**
2189
+ * Returns whether this field is set.
2190
+ * @return {boolean}
2191
+ */
2192
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasOrderNumber = function() {
2193
+ return jspb.Message.getField(this, 16) != null;
2194
+ };
2195
+
2196
+
2197
+ /**
2198
+ * optional string last_patched = 17;
2199
+ * @return {string}
2200
+ */
2201
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getLastPatched = function() {
2202
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
2203
+ };
2204
+
2205
+
2206
+ /**
2207
+ * @param {string} value
2208
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2209
+ */
2210
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setLastPatched = function(value) {
2211
+ return jspb.Message.setField(this, 17, value);
2212
+ };
2213
+
2214
+
2215
+ /**
2216
+ * Clears the field making it undefined.
2217
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2218
+ */
2219
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearLastPatched = function() {
2220
+ return jspb.Message.setField(this, 17, undefined);
2221
+ };
2222
+
2223
+
2224
+ /**
2225
+ * Returns whether this field is set.
2226
+ * @return {boolean}
2227
+ */
2228
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasLastPatched = function() {
2229
+ return jspb.Message.getField(this, 17) != null;
2230
+ };
2231
+
2232
+
2233
+ /**
2234
+ * optional string last_full_backup = 18;
2235
+ * @return {string}
2236
+ */
2237
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getLastFullBackup = function() {
2238
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
2239
+ };
2240
+
2241
+
2242
+ /**
2243
+ * @param {string} value
2244
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2245
+ */
2246
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setLastFullBackup = function(value) {
2247
+ return jspb.Message.setField(this, 18, value);
2248
+ };
2249
+
2250
+
2251
+ /**
2252
+ * Clears the field making it undefined.
2253
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2254
+ */
2255
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearLastFullBackup = function() {
2256
+ return jspb.Message.setField(this, 18, undefined);
2257
+ };
2258
+
2259
+
2260
+ /**
2261
+ * Returns whether this field is set.
2262
+ * @return {boolean}
2263
+ */
2264
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasLastFullBackup = function() {
2265
+ return jspb.Message.getField(this, 18) != null;
2266
+ };
2267
+
2268
+
2269
+ /**
2270
+ * optional string last_full_image = 19;
2271
+ * @return {string}
2272
+ */
2273
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getLastFullImage = function() {
2274
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
2275
+ };
2276
+
2277
+
2278
+ /**
2279
+ * @param {string} value
2280
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2281
+ */
2282
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setLastFullImage = function(value) {
2283
+ return jspb.Message.setField(this, 19, value);
2284
+ };
2285
+
2286
+
2287
+ /**
2288
+ * Clears the field making it undefined.
2289
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2290
+ */
2291
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearLastFullImage = function() {
2292
+ return jspb.Message.setField(this, 19, undefined);
2293
+ };
2294
+
2295
+
2296
+ /**
2297
+ * Returns whether this field is set.
2298
+ * @return {boolean}
2299
+ */
2300
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.hasLastFullImage = function() {
2301
+ return jspb.Message.getField(this, 19) != null;
2302
+ };
2303
+
2304
+
2305
+ /**
2306
+ * repeated CustomField fields = 20;
2307
+ * @return {!Array<!proto.lansweeper.integrations.assets.v1.CustomField>}
2308
+ */
2309
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.getFieldsList = function() {
2310
+ return /** @type{!Array<!proto.lansweeper.integrations.assets.v1.CustomField>} */ (
2311
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.integrations.assets.v1.CustomField, 20));
2312
+ };
2313
+
2314
+
2315
+ /**
2316
+ * @param {!Array<!proto.lansweeper.integrations.assets.v1.CustomField>} value
2317
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2318
+ */
2319
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.setFieldsList = function(value) {
2320
+ return jspb.Message.setRepeatedWrapperField(this, 20, value);
2321
+ };
2322
+
2323
+
2324
+ /**
2325
+ * @param {!proto.lansweeper.integrations.assets.v1.CustomField=} opt_value
2326
+ * @param {number=} opt_index
2327
+ * @return {!proto.lansweeper.integrations.assets.v1.CustomField}
2328
+ */
2329
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.addFields = function(opt_value, opt_index) {
2330
+ return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.lansweeper.integrations.assets.v1.CustomField, opt_index);
2331
+ };
2332
+
2333
+
2334
+ /**
2335
+ * Clears the list making it empty but non-null.
2336
+ * @return {!proto.lansweeper.integrations.assets.v1.AssetCustom} returns this
2337
+ */
2338
+ proto.lansweeper.integrations.assets.v1.AssetCustom.prototype.clearFieldsList = function() {
2339
+ return this.setFieldsList([]);
2340
+ };
2341
+
2342
+
2343
+
2344
+
2345
+
2346
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2347
+ /**
2348
+ * Creates an object representation of this proto.
2349
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2350
+ * Optional fields that are not set will be set to undefined.
2351
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2352
+ * For the list of reserved names please see:
2353
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2354
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2355
+ * JSPB instance for transitional soy proto support:
2356
+ * http://goto/soy-param-migration
2357
+ * @return {!Object}
2358
+ */
2359
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.toObject = function(opt_includeInstance) {
2360
+ return proto.lansweeper.integrations.assets.v1.CloudAssetCustom.toObject(opt_includeInstance, this);
2361
+ };
2362
+
2363
+
2364
+ /**
2365
+ * Static version of the {@see toObject} method.
2366
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2367
+ * the JSPB instance for transitional soy proto support:
2368
+ * http://goto/soy-param-migration
2369
+ * @param {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom} msg The msg instance to transform.
2370
+ * @return {!Object}
2371
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2372
+ */
2373
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.toObject = function(includeInstance, msg) {
2374
+ var f, obj = {
2375
+ purchaseOrderDate: jspb.Message.getFieldWithDefault(msg, 1, ""),
2376
+ costCenter: jspb.Message.getFieldWithDefault(msg, 2, ""),
2377
+ vendorName: jspb.Message.getFieldWithDefault(msg, 3, ""),
2378
+ invoiceNumber: jspb.Message.getFieldWithDefault(msg, 4, ""),
2379
+ acquisitionType: jspb.Message.getFieldWithDefault(msg, 5, ""),
2380
+ owner: jspb.Message.getFieldWithDefault(msg, 6, "")
2381
+ };
2382
+
2383
+ if (includeInstance) {
2384
+ obj.$jspbMessageInstance = msg;
2385
+ }
2386
+ return obj;
2387
+ };
2388
+ }
2389
+
2390
+
2391
+ /**
2392
+ * Deserializes binary data (in protobuf wire format).
2393
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2394
+ * @return {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom}
2395
+ */
2396
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.deserializeBinary = function(bytes) {
2397
+ var reader = new jspb.BinaryReader(bytes);
2398
+ var msg = new proto.lansweeper.integrations.assets.v1.CloudAssetCustom;
2399
+ return proto.lansweeper.integrations.assets.v1.CloudAssetCustom.deserializeBinaryFromReader(msg, reader);
2400
+ };
2401
+
2402
+
2403
+ /**
2404
+ * Deserializes binary data (in protobuf wire format) from the
2405
+ * given reader into the given message object.
2406
+ * @param {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom} msg The message object to deserialize into.
2407
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2408
+ * @return {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom}
2409
+ */
2410
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.deserializeBinaryFromReader = function(msg, reader) {
2411
+ while (reader.nextField()) {
2412
+ if (reader.isEndGroup()) {
2413
+ break;
2414
+ }
2415
+ var field = reader.getFieldNumber();
2416
+ switch (field) {
2417
+ case 1:
2418
+ var value = /** @type {string} */ (reader.readString());
2419
+ msg.setPurchaseOrderDate(value);
2420
+ break;
2421
+ case 2:
2422
+ var value = /** @type {string} */ (reader.readString());
2423
+ msg.setCostCenter(value);
2424
+ break;
2425
+ case 3:
2426
+ var value = /** @type {string} */ (reader.readString());
2427
+ msg.setVendorName(value);
2428
+ break;
2429
+ case 4:
2430
+ var value = /** @type {string} */ (reader.readString());
2431
+ msg.setInvoiceNumber(value);
2432
+ break;
2433
+ case 5:
2434
+ var value = /** @type {string} */ (reader.readString());
2435
+ msg.setAcquisitionType(value);
2436
+ break;
2437
+ case 6:
2438
+ var value = /** @type {string} */ (reader.readString());
2439
+ msg.setOwner(value);
2440
+ break;
2441
+ default:
2442
+ reader.skipField();
2443
+ break;
2444
+ }
2445
+ }
2446
+ return msg;
2447
+ };
2448
+
2449
+
2450
+ /**
2451
+ * Serializes the message to binary data (in protobuf wire format).
2452
+ * @return {!Uint8Array}
2453
+ */
2454
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.serializeBinary = function() {
2455
+ var writer = new jspb.BinaryWriter();
2456
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.serializeBinaryToWriter(this, writer);
2457
+ return writer.getResultBuffer();
2458
+ };
2459
+
2460
+
2461
+ /**
2462
+ * Serializes the given message to binary data (in protobuf wire
2463
+ * format), writing to the given BinaryWriter.
2464
+ * @param {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom} message
2465
+ * @param {!jspb.BinaryWriter} writer
2466
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2467
+ */
2468
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.serializeBinaryToWriter = function(message, writer) {
2469
+ var f = undefined;
2470
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
2471
+ if (f != null) {
2472
+ writer.writeString(
2473
+ 1,
2474
+ f
2475
+ );
2476
+ }
2477
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
2478
+ if (f != null) {
2479
+ writer.writeString(
2480
+ 2,
2481
+ f
2482
+ );
2483
+ }
2484
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
2485
+ if (f != null) {
2486
+ writer.writeString(
2487
+ 3,
2488
+ f
2489
+ );
2490
+ }
2491
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
2492
+ if (f != null) {
2493
+ writer.writeString(
2494
+ 4,
2495
+ f
2496
+ );
2497
+ }
2498
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
2499
+ if (f != null) {
2500
+ writer.writeString(
2501
+ 5,
2502
+ f
2503
+ );
2504
+ }
2505
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
2506
+ if (f != null) {
2507
+ writer.writeString(
2508
+ 6,
2509
+ f
2510
+ );
2511
+ }
2512
+ };
2513
+
2514
+
2515
+ /**
2516
+ * optional string purchase_order_date = 1;
2517
+ * @return {string}
2518
+ */
2519
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.getPurchaseOrderDate = function() {
2520
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2521
+ };
2522
+
2523
+
2524
+ /**
2525
+ * @param {string} value
2526
+ * @return {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom} returns this
2527
+ */
2528
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.setPurchaseOrderDate = function(value) {
2529
+ return jspb.Message.setField(this, 1, value);
2530
+ };
2531
+
2532
+
2533
+ /**
2534
+ * Clears the field making it undefined.
2535
+ * @return {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom} returns this
2536
+ */
2537
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.clearPurchaseOrderDate = function() {
2538
+ return jspb.Message.setField(this, 1, undefined);
2539
+ };
2540
+
2541
+
2542
+ /**
2543
+ * Returns whether this field is set.
2544
+ * @return {boolean}
2545
+ */
2546
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.hasPurchaseOrderDate = function() {
2547
+ return jspb.Message.getField(this, 1) != null;
2548
+ };
2549
+
2550
+
2551
+ /**
2552
+ * optional string cost_center = 2;
2553
+ * @return {string}
2554
+ */
2555
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.getCostCenter = function() {
2556
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2557
+ };
2558
+
2559
+
2560
+ /**
2561
+ * @param {string} value
2562
+ * @return {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom} returns this
2563
+ */
2564
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.setCostCenter = function(value) {
2565
+ return jspb.Message.setField(this, 2, value);
2566
+ };
2567
+
2568
+
2569
+ /**
2570
+ * Clears the field making it undefined.
2571
+ * @return {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom} returns this
2572
+ */
2573
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.clearCostCenter = function() {
2574
+ return jspb.Message.setField(this, 2, undefined);
2575
+ };
2576
+
2577
+
2578
+ /**
2579
+ * Returns whether this field is set.
2580
+ * @return {boolean}
2581
+ */
2582
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.hasCostCenter = function() {
2583
+ return jspb.Message.getField(this, 2) != null;
2584
+ };
2585
+
2586
+
2587
+ /**
2588
+ * optional string vendor_name = 3;
2589
+ * @return {string}
2590
+ */
2591
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.getVendorName = function() {
2592
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2593
+ };
2594
+
2595
+
2596
+ /**
2597
+ * @param {string} value
2598
+ * @return {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom} returns this
2599
+ */
2600
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.setVendorName = function(value) {
2601
+ return jspb.Message.setField(this, 3, value);
2602
+ };
2603
+
2604
+
2605
+ /**
2606
+ * Clears the field making it undefined.
2607
+ * @return {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom} returns this
2608
+ */
2609
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.clearVendorName = function() {
2610
+ return jspb.Message.setField(this, 3, undefined);
2611
+ };
2612
+
2613
+
2614
+ /**
2615
+ * Returns whether this field is set.
2616
+ * @return {boolean}
2617
+ */
2618
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.hasVendorName = function() {
2619
+ return jspb.Message.getField(this, 3) != null;
2620
+ };
2621
+
2622
+
2623
+ /**
2624
+ * optional string invoice_number = 4;
2625
+ * @return {string}
2626
+ */
2627
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.getInvoiceNumber = function() {
2628
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2629
+ };
2630
+
2631
+
2632
+ /**
2633
+ * @param {string} value
2634
+ * @return {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom} returns this
2635
+ */
2636
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.setInvoiceNumber = function(value) {
2637
+ return jspb.Message.setField(this, 4, value);
2638
+ };
2639
+
2640
+
2641
+ /**
2642
+ * Clears the field making it undefined.
2643
+ * @return {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom} returns this
2644
+ */
2645
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.clearInvoiceNumber = function() {
2646
+ return jspb.Message.setField(this, 4, undefined);
2647
+ };
2648
+
2649
+
2650
+ /**
2651
+ * Returns whether this field is set.
2652
+ * @return {boolean}
2653
+ */
2654
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.hasInvoiceNumber = function() {
2655
+ return jspb.Message.getField(this, 4) != null;
2656
+ };
2657
+
2658
+
2659
+ /**
2660
+ * optional string acquisition_type = 5;
2661
+ * @return {string}
2662
+ */
2663
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.getAcquisitionType = function() {
2664
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2665
+ };
2666
+
2667
+
2668
+ /**
2669
+ * @param {string} value
2670
+ * @return {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom} returns this
2671
+ */
2672
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.setAcquisitionType = function(value) {
2673
+ return jspb.Message.setField(this, 5, value);
2674
+ };
2675
+
2676
+
2677
+ /**
2678
+ * Clears the field making it undefined.
2679
+ * @return {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom} returns this
2680
+ */
2681
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.clearAcquisitionType = function() {
2682
+ return jspb.Message.setField(this, 5, undefined);
2683
+ };
2684
+
2685
+
2686
+ /**
2687
+ * Returns whether this field is set.
2688
+ * @return {boolean}
2689
+ */
2690
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.hasAcquisitionType = function() {
2691
+ return jspb.Message.getField(this, 5) != null;
2692
+ };
2693
+
2694
+
2695
+ /**
2696
+ * optional string owner = 6;
2697
+ * @return {string}
2698
+ */
2699
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.getOwner = function() {
2700
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2701
+ };
2702
+
2703
+
2704
+ /**
2705
+ * @param {string} value
2706
+ * @return {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom} returns this
2707
+ */
2708
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.setOwner = function(value) {
2709
+ return jspb.Message.setField(this, 6, value);
2710
+ };
2711
+
2712
+
2713
+ /**
2714
+ * Clears the field making it undefined.
2715
+ * @return {!proto.lansweeper.integrations.assets.v1.CloudAssetCustom} returns this
2716
+ */
2717
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.clearOwner = function() {
2718
+ return jspb.Message.setField(this, 6, undefined);
2719
+ };
2720
+
2721
+
2722
+ /**
2723
+ * Returns whether this field is set.
2724
+ * @return {boolean}
2725
+ */
2726
+ proto.lansweeper.integrations.assets.v1.CloudAssetCustom.prototype.hasOwner = function() {
2727
+ return jspb.Message.getField(this, 6) != null;
2728
+ };
2729
+
2730
+
2731
+
2732
+
2733
+
2734
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2735
+ /**
2736
+ * Creates an object representation of this proto.
2737
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2738
+ * Optional fields that are not set will be set to undefined.
2739
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2740
+ * For the list of reserved names please see:
2741
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2742
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2743
+ * JSPB instance for transitional soy proto support:
2744
+ * http://goto/soy-param-migration
2745
+ * @return {!Object}
2746
+ */
2747
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.toObject = function(opt_includeInstance) {
2748
+ return proto.lansweeper.integrations.assets.v1.LockedFields.toObject(opt_includeInstance, this);
2749
+ };
2750
+
2751
+
2752
+ /**
2753
+ * Static version of the {@see toObject} method.
2754
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2755
+ * the JSPB instance for transitional soy proto support:
2756
+ * http://goto/soy-param-migration
2757
+ * @param {!proto.lansweeper.integrations.assets.v1.LockedFields} msg The msg instance to transform.
2758
+ * @return {!Object}
2759
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2760
+ */
2761
+ proto.lansweeper.integrations.assets.v1.LockedFields.toObject = function(includeInstance, msg) {
2762
+ var f, obj = {
2763
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2764
+ typeKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
2765
+ mac: jspb.Message.getFieldWithDefault(msg, 3, ""),
2766
+ stateKey: jspb.Message.getFieldWithDefault(msg, 4, ""),
2767
+ description: jspb.Message.getFieldWithDefault(msg, 5, ""),
2768
+ manufacturer: jspb.Message.getFieldWithDefault(msg, 6, ""),
2769
+ model: jspb.Message.getFieldWithDefault(msg, 7, ""),
2770
+ serialNumber: jspb.Message.getFieldWithDefault(msg, 8, ""),
2771
+ sku: jspb.Message.getFieldWithDefault(msg, 9, ""),
2772
+ contact: jspb.Message.getFieldWithDefault(msg, 10, ""),
2773
+ location: jspb.Message.getFieldWithDefault(msg, 11, ""),
2774
+ ipAddress: jspb.Message.getFieldWithDefault(msg, 12, ""),
2775
+ purchaseDate: jspb.Message.getFieldWithDefault(msg, 13, ""),
2776
+ warrantyDate: jspb.Message.getFieldWithDefault(msg, 14, ""),
2777
+ moduleType: jspb.Message.getFieldWithDefault(msg, 15, ""),
2778
+ firmware: jspb.Message.getFieldWithDefault(msg, 16, "")
2779
+ };
2780
+
2781
+ if (includeInstance) {
2782
+ obj.$jspbMessageInstance = msg;
2783
+ }
2784
+ return obj;
2785
+ };
2786
+ }
2787
+
2788
+
2789
+ /**
2790
+ * Deserializes binary data (in protobuf wire format).
2791
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2792
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields}
2793
+ */
2794
+ proto.lansweeper.integrations.assets.v1.LockedFields.deserializeBinary = function(bytes) {
2795
+ var reader = new jspb.BinaryReader(bytes);
2796
+ var msg = new proto.lansweeper.integrations.assets.v1.LockedFields;
2797
+ return proto.lansweeper.integrations.assets.v1.LockedFields.deserializeBinaryFromReader(msg, reader);
2798
+ };
2799
+
2800
+
2801
+ /**
2802
+ * Deserializes binary data (in protobuf wire format) from the
2803
+ * given reader into the given message object.
2804
+ * @param {!proto.lansweeper.integrations.assets.v1.LockedFields} msg The message object to deserialize into.
2805
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2806
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields}
2807
+ */
2808
+ proto.lansweeper.integrations.assets.v1.LockedFields.deserializeBinaryFromReader = function(msg, reader) {
2809
+ while (reader.nextField()) {
2810
+ if (reader.isEndGroup()) {
2811
+ break;
2812
+ }
2813
+ var field = reader.getFieldNumber();
2814
+ switch (field) {
2815
+ case 1:
2816
+ var value = /** @type {string} */ (reader.readString());
2817
+ msg.setName(value);
2818
+ break;
2819
+ case 2:
2820
+ var value = /** @type {string} */ (reader.readString());
2821
+ msg.setTypeKey(value);
2822
+ break;
2823
+ case 3:
2824
+ var value = /** @type {string} */ (reader.readString());
2825
+ msg.setMac(value);
2826
+ break;
2827
+ case 4:
2828
+ var value = /** @type {string} */ (reader.readString());
2829
+ msg.setStateKey(value);
2830
+ break;
2831
+ case 5:
2832
+ var value = /** @type {string} */ (reader.readString());
2833
+ msg.setDescription(value);
2834
+ break;
2835
+ case 6:
2836
+ var value = /** @type {string} */ (reader.readString());
2837
+ msg.setManufacturer(value);
2838
+ break;
2839
+ case 7:
2840
+ var value = /** @type {string} */ (reader.readString());
2841
+ msg.setModel(value);
2842
+ break;
2843
+ case 8:
2844
+ var value = /** @type {string} */ (reader.readString());
2845
+ msg.setSerialNumber(value);
2846
+ break;
2847
+ case 9:
2848
+ var value = /** @type {string} */ (reader.readString());
2849
+ msg.setSku(value);
2850
+ break;
2851
+ case 10:
2852
+ var value = /** @type {string} */ (reader.readString());
2853
+ msg.setContact(value);
2854
+ break;
2855
+ case 11:
2856
+ var value = /** @type {string} */ (reader.readString());
2857
+ msg.setLocation(value);
2858
+ break;
2859
+ case 12:
2860
+ var value = /** @type {string} */ (reader.readString());
2861
+ msg.setIpAddress(value);
2862
+ break;
2863
+ case 13:
2864
+ var value = /** @type {string} */ (reader.readString());
2865
+ msg.setPurchaseDate(value);
2866
+ break;
2867
+ case 14:
2868
+ var value = /** @type {string} */ (reader.readString());
2869
+ msg.setWarrantyDate(value);
2870
+ break;
2871
+ case 15:
2872
+ var value = /** @type {string} */ (reader.readString());
2873
+ msg.setModuleType(value);
2874
+ break;
2875
+ case 16:
2876
+ var value = /** @type {string} */ (reader.readString());
2877
+ msg.setFirmware(value);
2878
+ break;
2879
+ default:
2880
+ reader.skipField();
2881
+ break;
2882
+ }
2883
+ }
2884
+ return msg;
2885
+ };
2886
+
2887
+
2888
+ /**
2889
+ * Serializes the message to binary data (in protobuf wire format).
2890
+ * @return {!Uint8Array}
2891
+ */
2892
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.serializeBinary = function() {
2893
+ var writer = new jspb.BinaryWriter();
2894
+ proto.lansweeper.integrations.assets.v1.LockedFields.serializeBinaryToWriter(this, writer);
2895
+ return writer.getResultBuffer();
2896
+ };
2897
+
2898
+
2899
+ /**
2900
+ * Serializes the given message to binary data (in protobuf wire
2901
+ * format), writing to the given BinaryWriter.
2902
+ * @param {!proto.lansweeper.integrations.assets.v1.LockedFields} message
2903
+ * @param {!jspb.BinaryWriter} writer
2904
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2905
+ */
2906
+ proto.lansweeper.integrations.assets.v1.LockedFields.serializeBinaryToWriter = function(message, writer) {
2907
+ var f = undefined;
2908
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
2909
+ if (f != null) {
2910
+ writer.writeString(
2911
+ 1,
2912
+ f
2913
+ );
2914
+ }
2915
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
2916
+ if (f != null) {
2917
+ writer.writeString(
2918
+ 2,
2919
+ f
2920
+ );
2921
+ }
2922
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
2923
+ if (f != null) {
2924
+ writer.writeString(
2925
+ 3,
2926
+ f
2927
+ );
2928
+ }
2929
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
2930
+ if (f != null) {
2931
+ writer.writeString(
2932
+ 4,
2933
+ f
2934
+ );
2935
+ }
2936
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
2937
+ if (f != null) {
2938
+ writer.writeString(
2939
+ 5,
2940
+ f
2941
+ );
2942
+ }
2943
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
2944
+ if (f != null) {
2945
+ writer.writeString(
2946
+ 6,
2947
+ f
2948
+ );
2949
+ }
2950
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
2951
+ if (f != null) {
2952
+ writer.writeString(
2953
+ 7,
2954
+ f
2955
+ );
2956
+ }
2957
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
2958
+ if (f != null) {
2959
+ writer.writeString(
2960
+ 8,
2961
+ f
2962
+ );
2963
+ }
2964
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
2965
+ if (f != null) {
2966
+ writer.writeString(
2967
+ 9,
2968
+ f
2969
+ );
2970
+ }
2971
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
2972
+ if (f != null) {
2973
+ writer.writeString(
2974
+ 10,
2975
+ f
2976
+ );
2977
+ }
2978
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
2979
+ if (f != null) {
2980
+ writer.writeString(
2981
+ 11,
2982
+ f
2983
+ );
2984
+ }
2985
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
2986
+ if (f != null) {
2987
+ writer.writeString(
2988
+ 12,
2989
+ f
2990
+ );
2991
+ }
2992
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
2993
+ if (f != null) {
2994
+ writer.writeString(
2995
+ 13,
2996
+ f
2997
+ );
2998
+ }
2999
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
3000
+ if (f != null) {
3001
+ writer.writeString(
3002
+ 14,
3003
+ f
3004
+ );
3005
+ }
3006
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
3007
+ if (f != null) {
3008
+ writer.writeString(
3009
+ 15,
3010
+ f
3011
+ );
3012
+ }
3013
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
3014
+ if (f != null) {
3015
+ writer.writeString(
3016
+ 16,
3017
+ f
3018
+ );
3019
+ }
3020
+ };
3021
+
3022
+
3023
+ /**
3024
+ * optional string name = 1;
3025
+ * @return {string}
3026
+ */
3027
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getName = function() {
3028
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3029
+ };
3030
+
3031
+
3032
+ /**
3033
+ * @param {string} value
3034
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3035
+ */
3036
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setName = function(value) {
3037
+ return jspb.Message.setField(this, 1, value);
3038
+ };
3039
+
3040
+
3041
+ /**
3042
+ * Clears the field making it undefined.
3043
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3044
+ */
3045
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearName = function() {
3046
+ return jspb.Message.setField(this, 1, undefined);
3047
+ };
3048
+
3049
+
3050
+ /**
3051
+ * Returns whether this field is set.
3052
+ * @return {boolean}
3053
+ */
3054
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasName = function() {
3055
+ return jspb.Message.getField(this, 1) != null;
3056
+ };
3057
+
3058
+
3059
+ /**
3060
+ * optional string type_key = 2;
3061
+ * @return {string}
3062
+ */
3063
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getTypeKey = function() {
3064
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3065
+ };
3066
+
3067
+
3068
+ /**
3069
+ * @param {string} value
3070
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3071
+ */
3072
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setTypeKey = function(value) {
3073
+ return jspb.Message.setField(this, 2, value);
3074
+ };
3075
+
3076
+
3077
+ /**
3078
+ * Clears the field making it undefined.
3079
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3080
+ */
3081
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearTypeKey = function() {
3082
+ return jspb.Message.setField(this, 2, undefined);
3083
+ };
3084
+
3085
+
3086
+ /**
3087
+ * Returns whether this field is set.
3088
+ * @return {boolean}
3089
+ */
3090
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasTypeKey = function() {
3091
+ return jspb.Message.getField(this, 2) != null;
3092
+ };
3093
+
3094
+
3095
+ /**
3096
+ * optional string mac = 3;
3097
+ * @return {string}
3098
+ */
3099
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getMac = function() {
3100
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3101
+ };
3102
+
3103
+
3104
+ /**
3105
+ * @param {string} value
3106
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3107
+ */
3108
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setMac = function(value) {
3109
+ return jspb.Message.setField(this, 3, value);
3110
+ };
3111
+
3112
+
3113
+ /**
3114
+ * Clears the field making it undefined.
3115
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3116
+ */
3117
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearMac = function() {
3118
+ return jspb.Message.setField(this, 3, undefined);
3119
+ };
3120
+
3121
+
3122
+ /**
3123
+ * Returns whether this field is set.
3124
+ * @return {boolean}
3125
+ */
3126
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasMac = function() {
3127
+ return jspb.Message.getField(this, 3) != null;
3128
+ };
3129
+
3130
+
3131
+ /**
3132
+ * optional string state_key = 4;
3133
+ * @return {string}
3134
+ */
3135
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getStateKey = function() {
3136
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3137
+ };
3138
+
3139
+
3140
+ /**
3141
+ * @param {string} value
3142
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3143
+ */
3144
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setStateKey = function(value) {
3145
+ return jspb.Message.setField(this, 4, value);
3146
+ };
3147
+
3148
+
3149
+ /**
3150
+ * Clears the field making it undefined.
3151
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3152
+ */
3153
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearStateKey = function() {
3154
+ return jspb.Message.setField(this, 4, undefined);
3155
+ };
3156
+
3157
+
3158
+ /**
3159
+ * Returns whether this field is set.
3160
+ * @return {boolean}
3161
+ */
3162
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasStateKey = function() {
3163
+ return jspb.Message.getField(this, 4) != null;
3164
+ };
3165
+
3166
+
3167
+ /**
3168
+ * optional string description = 5;
3169
+ * @return {string}
3170
+ */
3171
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getDescription = function() {
3172
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3173
+ };
3174
+
3175
+
3176
+ /**
3177
+ * @param {string} value
3178
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3179
+ */
3180
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setDescription = function(value) {
3181
+ return jspb.Message.setField(this, 5, value);
3182
+ };
3183
+
3184
+
3185
+ /**
3186
+ * Clears the field making it undefined.
3187
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3188
+ */
3189
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearDescription = function() {
3190
+ return jspb.Message.setField(this, 5, undefined);
3191
+ };
3192
+
3193
+
3194
+ /**
3195
+ * Returns whether this field is set.
3196
+ * @return {boolean}
3197
+ */
3198
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasDescription = function() {
3199
+ return jspb.Message.getField(this, 5) != null;
3200
+ };
3201
+
3202
+
3203
+ /**
3204
+ * optional string manufacturer = 6;
3205
+ * @return {string}
3206
+ */
3207
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getManufacturer = function() {
3208
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3209
+ };
3210
+
3211
+
3212
+ /**
3213
+ * @param {string} value
3214
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3215
+ */
3216
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setManufacturer = function(value) {
3217
+ return jspb.Message.setField(this, 6, value);
3218
+ };
3219
+
3220
+
3221
+ /**
3222
+ * Clears the field making it undefined.
3223
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3224
+ */
3225
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearManufacturer = function() {
3226
+ return jspb.Message.setField(this, 6, undefined);
3227
+ };
3228
+
3229
+
3230
+ /**
3231
+ * Returns whether this field is set.
3232
+ * @return {boolean}
3233
+ */
3234
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasManufacturer = function() {
3235
+ return jspb.Message.getField(this, 6) != null;
3236
+ };
3237
+
3238
+
3239
+ /**
3240
+ * optional string model = 7;
3241
+ * @return {string}
3242
+ */
3243
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getModel = function() {
3244
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3245
+ };
3246
+
3247
+
3248
+ /**
3249
+ * @param {string} value
3250
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3251
+ */
3252
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setModel = function(value) {
3253
+ return jspb.Message.setField(this, 7, value);
3254
+ };
3255
+
3256
+
3257
+ /**
3258
+ * Clears the field making it undefined.
3259
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3260
+ */
3261
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearModel = function() {
3262
+ return jspb.Message.setField(this, 7, undefined);
3263
+ };
3264
+
3265
+
3266
+ /**
3267
+ * Returns whether this field is set.
3268
+ * @return {boolean}
3269
+ */
3270
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasModel = function() {
3271
+ return jspb.Message.getField(this, 7) != null;
3272
+ };
3273
+
3274
+
3275
+ /**
3276
+ * optional string serial_number = 8;
3277
+ * @return {string}
3278
+ */
3279
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getSerialNumber = function() {
3280
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3281
+ };
3282
+
3283
+
3284
+ /**
3285
+ * @param {string} value
3286
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3287
+ */
3288
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setSerialNumber = function(value) {
3289
+ return jspb.Message.setField(this, 8, value);
3290
+ };
3291
+
3292
+
3293
+ /**
3294
+ * Clears the field making it undefined.
3295
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3296
+ */
3297
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearSerialNumber = function() {
3298
+ return jspb.Message.setField(this, 8, undefined);
3299
+ };
3300
+
3301
+
3302
+ /**
3303
+ * Returns whether this field is set.
3304
+ * @return {boolean}
3305
+ */
3306
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasSerialNumber = function() {
3307
+ return jspb.Message.getField(this, 8) != null;
3308
+ };
3309
+
3310
+
3311
+ /**
3312
+ * optional string sku = 9;
3313
+ * @return {string}
3314
+ */
3315
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getSku = function() {
3316
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3317
+ };
3318
+
3319
+
3320
+ /**
3321
+ * @param {string} value
3322
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3323
+ */
3324
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setSku = function(value) {
3325
+ return jspb.Message.setField(this, 9, value);
3326
+ };
3327
+
3328
+
3329
+ /**
3330
+ * Clears the field making it undefined.
3331
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3332
+ */
3333
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearSku = function() {
3334
+ return jspb.Message.setField(this, 9, undefined);
3335
+ };
3336
+
3337
+
3338
+ /**
3339
+ * Returns whether this field is set.
3340
+ * @return {boolean}
3341
+ */
3342
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasSku = function() {
3343
+ return jspb.Message.getField(this, 9) != null;
3344
+ };
3345
+
3346
+
3347
+ /**
3348
+ * optional string contact = 10;
3349
+ * @return {string}
3350
+ */
3351
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getContact = function() {
3352
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
3353
+ };
3354
+
3355
+
3356
+ /**
3357
+ * @param {string} value
3358
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3359
+ */
3360
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setContact = function(value) {
3361
+ return jspb.Message.setField(this, 10, value);
3362
+ };
3363
+
3364
+
3365
+ /**
3366
+ * Clears the field making it undefined.
3367
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3368
+ */
3369
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearContact = function() {
3370
+ return jspb.Message.setField(this, 10, undefined);
3371
+ };
3372
+
3373
+
3374
+ /**
3375
+ * Returns whether this field is set.
3376
+ * @return {boolean}
3377
+ */
3378
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasContact = function() {
3379
+ return jspb.Message.getField(this, 10) != null;
3380
+ };
3381
+
3382
+
3383
+ /**
3384
+ * optional string location = 11;
3385
+ * @return {string}
3386
+ */
3387
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getLocation = function() {
3388
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
3389
+ };
3390
+
3391
+
3392
+ /**
3393
+ * @param {string} value
3394
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3395
+ */
3396
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setLocation = function(value) {
3397
+ return jspb.Message.setField(this, 11, value);
3398
+ };
3399
+
3400
+
3401
+ /**
3402
+ * Clears the field making it undefined.
3403
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3404
+ */
3405
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearLocation = function() {
3406
+ return jspb.Message.setField(this, 11, undefined);
3407
+ };
3408
+
3409
+
3410
+ /**
3411
+ * Returns whether this field is set.
3412
+ * @return {boolean}
3413
+ */
3414
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasLocation = function() {
3415
+ return jspb.Message.getField(this, 11) != null;
3416
+ };
3417
+
3418
+
3419
+ /**
3420
+ * optional string ip_address = 12;
3421
+ * @return {string}
3422
+ */
3423
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getIpAddress = function() {
3424
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
3425
+ };
3426
+
3427
+
3428
+ /**
3429
+ * @param {string} value
3430
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3431
+ */
3432
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setIpAddress = function(value) {
3433
+ return jspb.Message.setField(this, 12, value);
3434
+ };
3435
+
3436
+
3437
+ /**
3438
+ * Clears the field making it undefined.
3439
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3440
+ */
3441
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearIpAddress = function() {
3442
+ return jspb.Message.setField(this, 12, undefined);
3443
+ };
3444
+
3445
+
3446
+ /**
3447
+ * Returns whether this field is set.
3448
+ * @return {boolean}
3449
+ */
3450
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasIpAddress = function() {
3451
+ return jspb.Message.getField(this, 12) != null;
3452
+ };
3453
+
3454
+
3455
+ /**
3456
+ * optional string purchase_date = 13;
3457
+ * @return {string}
3458
+ */
3459
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getPurchaseDate = function() {
3460
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
3461
+ };
3462
+
3463
+
3464
+ /**
3465
+ * @param {string} value
3466
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3467
+ */
3468
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setPurchaseDate = function(value) {
3469
+ return jspb.Message.setField(this, 13, value);
3470
+ };
3471
+
3472
+
3473
+ /**
3474
+ * Clears the field making it undefined.
3475
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3476
+ */
3477
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearPurchaseDate = function() {
3478
+ return jspb.Message.setField(this, 13, undefined);
3479
+ };
3480
+
3481
+
3482
+ /**
3483
+ * Returns whether this field is set.
3484
+ * @return {boolean}
3485
+ */
3486
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasPurchaseDate = function() {
3487
+ return jspb.Message.getField(this, 13) != null;
3488
+ };
3489
+
3490
+
3491
+ /**
3492
+ * optional string warranty_date = 14;
3493
+ * @return {string}
3494
+ */
3495
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getWarrantyDate = function() {
3496
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
3497
+ };
3498
+
3499
+
3500
+ /**
3501
+ * @param {string} value
3502
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3503
+ */
3504
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setWarrantyDate = function(value) {
3505
+ return jspb.Message.setField(this, 14, value);
3506
+ };
3507
+
3508
+
3509
+ /**
3510
+ * Clears the field making it undefined.
3511
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3512
+ */
3513
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearWarrantyDate = function() {
3514
+ return jspb.Message.setField(this, 14, undefined);
3515
+ };
3516
+
3517
+
3518
+ /**
3519
+ * Returns whether this field is set.
3520
+ * @return {boolean}
3521
+ */
3522
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasWarrantyDate = function() {
3523
+ return jspb.Message.getField(this, 14) != null;
3524
+ };
3525
+
3526
+
3527
+ /**
3528
+ * optional string module_type = 15;
3529
+ * @return {string}
3530
+ */
3531
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getModuleType = function() {
3532
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
3533
+ };
3534
+
3535
+
3536
+ /**
3537
+ * @param {string} value
3538
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3539
+ */
3540
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setModuleType = function(value) {
3541
+ return jspb.Message.setField(this, 15, value);
3542
+ };
3543
+
3544
+
3545
+ /**
3546
+ * Clears the field making it undefined.
3547
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3548
+ */
3549
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearModuleType = function() {
3550
+ return jspb.Message.setField(this, 15, undefined);
3551
+ };
3552
+
3553
+
3554
+ /**
3555
+ * Returns whether this field is set.
3556
+ * @return {boolean}
3557
+ */
3558
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasModuleType = function() {
3559
+ return jspb.Message.getField(this, 15) != null;
3560
+ };
3561
+
3562
+
3563
+ /**
3564
+ * optional string firmware = 16;
3565
+ * @return {string}
3566
+ */
3567
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.getFirmware = function() {
3568
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
3569
+ };
3570
+
3571
+
3572
+ /**
3573
+ * @param {string} value
3574
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3575
+ */
3576
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.setFirmware = function(value) {
3577
+ return jspb.Message.setField(this, 16, value);
3578
+ };
3579
+
3580
+
3581
+ /**
3582
+ * Clears the field making it undefined.
3583
+ * @return {!proto.lansweeper.integrations.assets.v1.LockedFields} returns this
3584
+ */
3585
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.clearFirmware = function() {
3586
+ return jspb.Message.setField(this, 16, undefined);
3587
+ };
3588
+
3589
+
3590
+ /**
3591
+ * Returns whether this field is set.
3592
+ * @return {boolean}
3593
+ */
3594
+ proto.lansweeper.integrations.assets.v1.LockedFields.prototype.hasFirmware = function() {
3595
+ return jspb.Message.getField(this, 16) != null;
3596
+ };
3597
+
3598
+
3599
+ goog.object.extend(exports, proto.lansweeper.integrations.assets.v1);