@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,2886 @@
1
+ // Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ // source: assets.proto
3
+
4
+ package lansweeper.integrations.assets.v1;
5
+
6
+ /**
7
+ * Protobuf type {@code lansweeper.integrations.assets.v1.LockedFields}
8
+ */
9
+ public final class LockedFields extends
10
+ com.google.protobuf.GeneratedMessageV3 implements
11
+ // @@protoc_insertion_point(message_implements:lansweeper.integrations.assets.v1.LockedFields)
12
+ LockedFieldsOrBuilder {
13
+ private static final long serialVersionUID = 0L;
14
+ // Use LockedFields.newBuilder() to construct.
15
+ private LockedFields(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
16
+ super(builder);
17
+ }
18
+ private LockedFields() {
19
+ name_ = "";
20
+ typeKey_ = "";
21
+ mac_ = "";
22
+ stateKey_ = "";
23
+ description_ = "";
24
+ manufacturer_ = "";
25
+ model_ = "";
26
+ serialNumber_ = "";
27
+ sku_ = "";
28
+ contact_ = "";
29
+ location_ = "";
30
+ ipAddress_ = "";
31
+ purchaseDate_ = "";
32
+ warrantyDate_ = "";
33
+ moduleType_ = "";
34
+ firmware_ = "";
35
+ }
36
+
37
+ @java.lang.Override
38
+ @SuppressWarnings({"unused"})
39
+ protected java.lang.Object newInstance(
40
+ UnusedPrivateParameter unused) {
41
+ return new LockedFields();
42
+ }
43
+
44
+ public static final com.google.protobuf.Descriptors.Descriptor
45
+ getDescriptor() {
46
+ return lansweeper.integrations.assets.v1.Assets.internal_static_lansweeper_integrations_assets_v1_LockedFields_descriptor;
47
+ }
48
+
49
+ @java.lang.Override
50
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
51
+ internalGetFieldAccessorTable() {
52
+ return lansweeper.integrations.assets.v1.Assets.internal_static_lansweeper_integrations_assets_v1_LockedFields_fieldAccessorTable
53
+ .ensureFieldAccessorsInitialized(
54
+ lansweeper.integrations.assets.v1.LockedFields.class, lansweeper.integrations.assets.v1.LockedFields.Builder.class);
55
+ }
56
+
57
+ private int bitField0_;
58
+ public static final int NAME_FIELD_NUMBER = 1;
59
+ @SuppressWarnings("serial")
60
+ private volatile java.lang.Object name_ = "";
61
+ /**
62
+ * <code>optional string name = 1;</code>
63
+ * @return Whether the name field is set.
64
+ */
65
+ @java.lang.Override
66
+ public boolean hasName() {
67
+ return ((bitField0_ & 0x00000001) != 0);
68
+ }
69
+ /**
70
+ * <code>optional string name = 1;</code>
71
+ * @return The name.
72
+ */
73
+ @java.lang.Override
74
+ public java.lang.String getName() {
75
+ java.lang.Object ref = name_;
76
+ if (ref instanceof java.lang.String) {
77
+ return (java.lang.String) ref;
78
+ } else {
79
+ com.google.protobuf.ByteString bs =
80
+ (com.google.protobuf.ByteString) ref;
81
+ java.lang.String s = bs.toStringUtf8();
82
+ name_ = s;
83
+ return s;
84
+ }
85
+ }
86
+ /**
87
+ * <code>optional string name = 1;</code>
88
+ * @return The bytes for name.
89
+ */
90
+ @java.lang.Override
91
+ public com.google.protobuf.ByteString
92
+ getNameBytes() {
93
+ java.lang.Object ref = name_;
94
+ if (ref instanceof java.lang.String) {
95
+ com.google.protobuf.ByteString b =
96
+ com.google.protobuf.ByteString.copyFromUtf8(
97
+ (java.lang.String) ref);
98
+ name_ = b;
99
+ return b;
100
+ } else {
101
+ return (com.google.protobuf.ByteString) ref;
102
+ }
103
+ }
104
+
105
+ public static final int TYPE_KEY_FIELD_NUMBER = 2;
106
+ @SuppressWarnings("serial")
107
+ private volatile java.lang.Object typeKey_ = "";
108
+ /**
109
+ * <code>optional string type_key = 2;</code>
110
+ * @return Whether the typeKey field is set.
111
+ */
112
+ @java.lang.Override
113
+ public boolean hasTypeKey() {
114
+ return ((bitField0_ & 0x00000002) != 0);
115
+ }
116
+ /**
117
+ * <code>optional string type_key = 2;</code>
118
+ * @return The typeKey.
119
+ */
120
+ @java.lang.Override
121
+ public java.lang.String getTypeKey() {
122
+ java.lang.Object ref = typeKey_;
123
+ if (ref instanceof java.lang.String) {
124
+ return (java.lang.String) ref;
125
+ } else {
126
+ com.google.protobuf.ByteString bs =
127
+ (com.google.protobuf.ByteString) ref;
128
+ java.lang.String s = bs.toStringUtf8();
129
+ typeKey_ = s;
130
+ return s;
131
+ }
132
+ }
133
+ /**
134
+ * <code>optional string type_key = 2;</code>
135
+ * @return The bytes for typeKey.
136
+ */
137
+ @java.lang.Override
138
+ public com.google.protobuf.ByteString
139
+ getTypeKeyBytes() {
140
+ java.lang.Object ref = typeKey_;
141
+ if (ref instanceof java.lang.String) {
142
+ com.google.protobuf.ByteString b =
143
+ com.google.protobuf.ByteString.copyFromUtf8(
144
+ (java.lang.String) ref);
145
+ typeKey_ = b;
146
+ return b;
147
+ } else {
148
+ return (com.google.protobuf.ByteString) ref;
149
+ }
150
+ }
151
+
152
+ public static final int MAC_FIELD_NUMBER = 3;
153
+ @SuppressWarnings("serial")
154
+ private volatile java.lang.Object mac_ = "";
155
+ /**
156
+ * <code>optional string mac = 3;</code>
157
+ * @return Whether the mac field is set.
158
+ */
159
+ @java.lang.Override
160
+ public boolean hasMac() {
161
+ return ((bitField0_ & 0x00000004) != 0);
162
+ }
163
+ /**
164
+ * <code>optional string mac = 3;</code>
165
+ * @return The mac.
166
+ */
167
+ @java.lang.Override
168
+ public java.lang.String getMac() {
169
+ java.lang.Object ref = mac_;
170
+ if (ref instanceof java.lang.String) {
171
+ return (java.lang.String) ref;
172
+ } else {
173
+ com.google.protobuf.ByteString bs =
174
+ (com.google.protobuf.ByteString) ref;
175
+ java.lang.String s = bs.toStringUtf8();
176
+ mac_ = s;
177
+ return s;
178
+ }
179
+ }
180
+ /**
181
+ * <code>optional string mac = 3;</code>
182
+ * @return The bytes for mac.
183
+ */
184
+ @java.lang.Override
185
+ public com.google.protobuf.ByteString
186
+ getMacBytes() {
187
+ java.lang.Object ref = mac_;
188
+ if (ref instanceof java.lang.String) {
189
+ com.google.protobuf.ByteString b =
190
+ com.google.protobuf.ByteString.copyFromUtf8(
191
+ (java.lang.String) ref);
192
+ mac_ = b;
193
+ return b;
194
+ } else {
195
+ return (com.google.protobuf.ByteString) ref;
196
+ }
197
+ }
198
+
199
+ public static final int STATE_KEY_FIELD_NUMBER = 4;
200
+ @SuppressWarnings("serial")
201
+ private volatile java.lang.Object stateKey_ = "";
202
+ /**
203
+ * <code>optional string state_key = 4;</code>
204
+ * @return Whether the stateKey field is set.
205
+ */
206
+ @java.lang.Override
207
+ public boolean hasStateKey() {
208
+ return ((bitField0_ & 0x00000008) != 0);
209
+ }
210
+ /**
211
+ * <code>optional string state_key = 4;</code>
212
+ * @return The stateKey.
213
+ */
214
+ @java.lang.Override
215
+ public java.lang.String getStateKey() {
216
+ java.lang.Object ref = stateKey_;
217
+ if (ref instanceof java.lang.String) {
218
+ return (java.lang.String) ref;
219
+ } else {
220
+ com.google.protobuf.ByteString bs =
221
+ (com.google.protobuf.ByteString) ref;
222
+ java.lang.String s = bs.toStringUtf8();
223
+ stateKey_ = s;
224
+ return s;
225
+ }
226
+ }
227
+ /**
228
+ * <code>optional string state_key = 4;</code>
229
+ * @return The bytes for stateKey.
230
+ */
231
+ @java.lang.Override
232
+ public com.google.protobuf.ByteString
233
+ getStateKeyBytes() {
234
+ java.lang.Object ref = stateKey_;
235
+ if (ref instanceof java.lang.String) {
236
+ com.google.protobuf.ByteString b =
237
+ com.google.protobuf.ByteString.copyFromUtf8(
238
+ (java.lang.String) ref);
239
+ stateKey_ = b;
240
+ return b;
241
+ } else {
242
+ return (com.google.protobuf.ByteString) ref;
243
+ }
244
+ }
245
+
246
+ public static final int DESCRIPTION_FIELD_NUMBER = 5;
247
+ @SuppressWarnings("serial")
248
+ private volatile java.lang.Object description_ = "";
249
+ /**
250
+ * <code>optional string description = 5;</code>
251
+ * @return Whether the description field is set.
252
+ */
253
+ @java.lang.Override
254
+ public boolean hasDescription() {
255
+ return ((bitField0_ & 0x00000010) != 0);
256
+ }
257
+ /**
258
+ * <code>optional string description = 5;</code>
259
+ * @return The description.
260
+ */
261
+ @java.lang.Override
262
+ public java.lang.String getDescription() {
263
+ java.lang.Object ref = description_;
264
+ if (ref instanceof java.lang.String) {
265
+ return (java.lang.String) ref;
266
+ } else {
267
+ com.google.protobuf.ByteString bs =
268
+ (com.google.protobuf.ByteString) ref;
269
+ java.lang.String s = bs.toStringUtf8();
270
+ description_ = s;
271
+ return s;
272
+ }
273
+ }
274
+ /**
275
+ * <code>optional string description = 5;</code>
276
+ * @return The bytes for description.
277
+ */
278
+ @java.lang.Override
279
+ public com.google.protobuf.ByteString
280
+ getDescriptionBytes() {
281
+ java.lang.Object ref = description_;
282
+ if (ref instanceof java.lang.String) {
283
+ com.google.protobuf.ByteString b =
284
+ com.google.protobuf.ByteString.copyFromUtf8(
285
+ (java.lang.String) ref);
286
+ description_ = b;
287
+ return b;
288
+ } else {
289
+ return (com.google.protobuf.ByteString) ref;
290
+ }
291
+ }
292
+
293
+ public static final int MANUFACTURER_FIELD_NUMBER = 6;
294
+ @SuppressWarnings("serial")
295
+ private volatile java.lang.Object manufacturer_ = "";
296
+ /**
297
+ * <code>optional string manufacturer = 6;</code>
298
+ * @return Whether the manufacturer field is set.
299
+ */
300
+ @java.lang.Override
301
+ public boolean hasManufacturer() {
302
+ return ((bitField0_ & 0x00000020) != 0);
303
+ }
304
+ /**
305
+ * <code>optional string manufacturer = 6;</code>
306
+ * @return The manufacturer.
307
+ */
308
+ @java.lang.Override
309
+ public java.lang.String getManufacturer() {
310
+ java.lang.Object ref = manufacturer_;
311
+ if (ref instanceof java.lang.String) {
312
+ return (java.lang.String) ref;
313
+ } else {
314
+ com.google.protobuf.ByteString bs =
315
+ (com.google.protobuf.ByteString) ref;
316
+ java.lang.String s = bs.toStringUtf8();
317
+ manufacturer_ = s;
318
+ return s;
319
+ }
320
+ }
321
+ /**
322
+ * <code>optional string manufacturer = 6;</code>
323
+ * @return The bytes for manufacturer.
324
+ */
325
+ @java.lang.Override
326
+ public com.google.protobuf.ByteString
327
+ getManufacturerBytes() {
328
+ java.lang.Object ref = manufacturer_;
329
+ if (ref instanceof java.lang.String) {
330
+ com.google.protobuf.ByteString b =
331
+ com.google.protobuf.ByteString.copyFromUtf8(
332
+ (java.lang.String) ref);
333
+ manufacturer_ = b;
334
+ return b;
335
+ } else {
336
+ return (com.google.protobuf.ByteString) ref;
337
+ }
338
+ }
339
+
340
+ public static final int MODEL_FIELD_NUMBER = 7;
341
+ @SuppressWarnings("serial")
342
+ private volatile java.lang.Object model_ = "";
343
+ /**
344
+ * <code>optional string model = 7;</code>
345
+ * @return Whether the model field is set.
346
+ */
347
+ @java.lang.Override
348
+ public boolean hasModel() {
349
+ return ((bitField0_ & 0x00000040) != 0);
350
+ }
351
+ /**
352
+ * <code>optional string model = 7;</code>
353
+ * @return The model.
354
+ */
355
+ @java.lang.Override
356
+ public java.lang.String getModel() {
357
+ java.lang.Object ref = model_;
358
+ if (ref instanceof java.lang.String) {
359
+ return (java.lang.String) ref;
360
+ } else {
361
+ com.google.protobuf.ByteString bs =
362
+ (com.google.protobuf.ByteString) ref;
363
+ java.lang.String s = bs.toStringUtf8();
364
+ model_ = s;
365
+ return s;
366
+ }
367
+ }
368
+ /**
369
+ * <code>optional string model = 7;</code>
370
+ * @return The bytes for model.
371
+ */
372
+ @java.lang.Override
373
+ public com.google.protobuf.ByteString
374
+ getModelBytes() {
375
+ java.lang.Object ref = model_;
376
+ if (ref instanceof java.lang.String) {
377
+ com.google.protobuf.ByteString b =
378
+ com.google.protobuf.ByteString.copyFromUtf8(
379
+ (java.lang.String) ref);
380
+ model_ = b;
381
+ return b;
382
+ } else {
383
+ return (com.google.protobuf.ByteString) ref;
384
+ }
385
+ }
386
+
387
+ public static final int SERIAL_NUMBER_FIELD_NUMBER = 8;
388
+ @SuppressWarnings("serial")
389
+ private volatile java.lang.Object serialNumber_ = "";
390
+ /**
391
+ * <code>optional string serial_number = 8;</code>
392
+ * @return Whether the serialNumber field is set.
393
+ */
394
+ @java.lang.Override
395
+ public boolean hasSerialNumber() {
396
+ return ((bitField0_ & 0x00000080) != 0);
397
+ }
398
+ /**
399
+ * <code>optional string serial_number = 8;</code>
400
+ * @return The serialNumber.
401
+ */
402
+ @java.lang.Override
403
+ public java.lang.String getSerialNumber() {
404
+ java.lang.Object ref = serialNumber_;
405
+ if (ref instanceof java.lang.String) {
406
+ return (java.lang.String) ref;
407
+ } else {
408
+ com.google.protobuf.ByteString bs =
409
+ (com.google.protobuf.ByteString) ref;
410
+ java.lang.String s = bs.toStringUtf8();
411
+ serialNumber_ = s;
412
+ return s;
413
+ }
414
+ }
415
+ /**
416
+ * <code>optional string serial_number = 8;</code>
417
+ * @return The bytes for serialNumber.
418
+ */
419
+ @java.lang.Override
420
+ public com.google.protobuf.ByteString
421
+ getSerialNumberBytes() {
422
+ java.lang.Object ref = serialNumber_;
423
+ if (ref instanceof java.lang.String) {
424
+ com.google.protobuf.ByteString b =
425
+ com.google.protobuf.ByteString.copyFromUtf8(
426
+ (java.lang.String) ref);
427
+ serialNumber_ = b;
428
+ return b;
429
+ } else {
430
+ return (com.google.protobuf.ByteString) ref;
431
+ }
432
+ }
433
+
434
+ public static final int SKU_FIELD_NUMBER = 9;
435
+ @SuppressWarnings("serial")
436
+ private volatile java.lang.Object sku_ = "";
437
+ /**
438
+ * <code>optional string sku = 9;</code>
439
+ * @return Whether the sku field is set.
440
+ */
441
+ @java.lang.Override
442
+ public boolean hasSku() {
443
+ return ((bitField0_ & 0x00000100) != 0);
444
+ }
445
+ /**
446
+ * <code>optional string sku = 9;</code>
447
+ * @return The sku.
448
+ */
449
+ @java.lang.Override
450
+ public java.lang.String getSku() {
451
+ java.lang.Object ref = sku_;
452
+ if (ref instanceof java.lang.String) {
453
+ return (java.lang.String) ref;
454
+ } else {
455
+ com.google.protobuf.ByteString bs =
456
+ (com.google.protobuf.ByteString) ref;
457
+ java.lang.String s = bs.toStringUtf8();
458
+ sku_ = s;
459
+ return s;
460
+ }
461
+ }
462
+ /**
463
+ * <code>optional string sku = 9;</code>
464
+ * @return The bytes for sku.
465
+ */
466
+ @java.lang.Override
467
+ public com.google.protobuf.ByteString
468
+ getSkuBytes() {
469
+ java.lang.Object ref = sku_;
470
+ if (ref instanceof java.lang.String) {
471
+ com.google.protobuf.ByteString b =
472
+ com.google.protobuf.ByteString.copyFromUtf8(
473
+ (java.lang.String) ref);
474
+ sku_ = b;
475
+ return b;
476
+ } else {
477
+ return (com.google.protobuf.ByteString) ref;
478
+ }
479
+ }
480
+
481
+ public static final int CONTACT_FIELD_NUMBER = 10;
482
+ @SuppressWarnings("serial")
483
+ private volatile java.lang.Object contact_ = "";
484
+ /**
485
+ * <code>optional string contact = 10;</code>
486
+ * @return Whether the contact field is set.
487
+ */
488
+ @java.lang.Override
489
+ public boolean hasContact() {
490
+ return ((bitField0_ & 0x00000200) != 0);
491
+ }
492
+ /**
493
+ * <code>optional string contact = 10;</code>
494
+ * @return The contact.
495
+ */
496
+ @java.lang.Override
497
+ public java.lang.String getContact() {
498
+ java.lang.Object ref = contact_;
499
+ if (ref instanceof java.lang.String) {
500
+ return (java.lang.String) ref;
501
+ } else {
502
+ com.google.protobuf.ByteString bs =
503
+ (com.google.protobuf.ByteString) ref;
504
+ java.lang.String s = bs.toStringUtf8();
505
+ contact_ = s;
506
+ return s;
507
+ }
508
+ }
509
+ /**
510
+ * <code>optional string contact = 10;</code>
511
+ * @return The bytes for contact.
512
+ */
513
+ @java.lang.Override
514
+ public com.google.protobuf.ByteString
515
+ getContactBytes() {
516
+ java.lang.Object ref = contact_;
517
+ if (ref instanceof java.lang.String) {
518
+ com.google.protobuf.ByteString b =
519
+ com.google.protobuf.ByteString.copyFromUtf8(
520
+ (java.lang.String) ref);
521
+ contact_ = b;
522
+ return b;
523
+ } else {
524
+ return (com.google.protobuf.ByteString) ref;
525
+ }
526
+ }
527
+
528
+ public static final int LOCATION_FIELD_NUMBER = 11;
529
+ @SuppressWarnings("serial")
530
+ private volatile java.lang.Object location_ = "";
531
+ /**
532
+ * <code>optional string location = 11;</code>
533
+ * @return Whether the location field is set.
534
+ */
535
+ @java.lang.Override
536
+ public boolean hasLocation() {
537
+ return ((bitField0_ & 0x00000400) != 0);
538
+ }
539
+ /**
540
+ * <code>optional string location = 11;</code>
541
+ * @return The location.
542
+ */
543
+ @java.lang.Override
544
+ public java.lang.String getLocation() {
545
+ java.lang.Object ref = location_;
546
+ if (ref instanceof java.lang.String) {
547
+ return (java.lang.String) ref;
548
+ } else {
549
+ com.google.protobuf.ByteString bs =
550
+ (com.google.protobuf.ByteString) ref;
551
+ java.lang.String s = bs.toStringUtf8();
552
+ location_ = s;
553
+ return s;
554
+ }
555
+ }
556
+ /**
557
+ * <code>optional string location = 11;</code>
558
+ * @return The bytes for location.
559
+ */
560
+ @java.lang.Override
561
+ public com.google.protobuf.ByteString
562
+ getLocationBytes() {
563
+ java.lang.Object ref = location_;
564
+ if (ref instanceof java.lang.String) {
565
+ com.google.protobuf.ByteString b =
566
+ com.google.protobuf.ByteString.copyFromUtf8(
567
+ (java.lang.String) ref);
568
+ location_ = b;
569
+ return b;
570
+ } else {
571
+ return (com.google.protobuf.ByteString) ref;
572
+ }
573
+ }
574
+
575
+ public static final int IP_ADDRESS_FIELD_NUMBER = 12;
576
+ @SuppressWarnings("serial")
577
+ private volatile java.lang.Object ipAddress_ = "";
578
+ /**
579
+ * <code>optional string ip_address = 12;</code>
580
+ * @return Whether the ipAddress field is set.
581
+ */
582
+ @java.lang.Override
583
+ public boolean hasIpAddress() {
584
+ return ((bitField0_ & 0x00000800) != 0);
585
+ }
586
+ /**
587
+ * <code>optional string ip_address = 12;</code>
588
+ * @return The ipAddress.
589
+ */
590
+ @java.lang.Override
591
+ public java.lang.String getIpAddress() {
592
+ java.lang.Object ref = ipAddress_;
593
+ if (ref instanceof java.lang.String) {
594
+ return (java.lang.String) ref;
595
+ } else {
596
+ com.google.protobuf.ByteString bs =
597
+ (com.google.protobuf.ByteString) ref;
598
+ java.lang.String s = bs.toStringUtf8();
599
+ ipAddress_ = s;
600
+ return s;
601
+ }
602
+ }
603
+ /**
604
+ * <code>optional string ip_address = 12;</code>
605
+ * @return The bytes for ipAddress.
606
+ */
607
+ @java.lang.Override
608
+ public com.google.protobuf.ByteString
609
+ getIpAddressBytes() {
610
+ java.lang.Object ref = ipAddress_;
611
+ if (ref instanceof java.lang.String) {
612
+ com.google.protobuf.ByteString b =
613
+ com.google.protobuf.ByteString.copyFromUtf8(
614
+ (java.lang.String) ref);
615
+ ipAddress_ = b;
616
+ return b;
617
+ } else {
618
+ return (com.google.protobuf.ByteString) ref;
619
+ }
620
+ }
621
+
622
+ public static final int PURCHASE_DATE_FIELD_NUMBER = 13;
623
+ @SuppressWarnings("serial")
624
+ private volatile java.lang.Object purchaseDate_ = "";
625
+ /**
626
+ * <code>optional string purchase_date = 13;</code>
627
+ * @return Whether the purchaseDate field is set.
628
+ */
629
+ @java.lang.Override
630
+ public boolean hasPurchaseDate() {
631
+ return ((bitField0_ & 0x00001000) != 0);
632
+ }
633
+ /**
634
+ * <code>optional string purchase_date = 13;</code>
635
+ * @return The purchaseDate.
636
+ */
637
+ @java.lang.Override
638
+ public java.lang.String getPurchaseDate() {
639
+ java.lang.Object ref = purchaseDate_;
640
+ if (ref instanceof java.lang.String) {
641
+ return (java.lang.String) ref;
642
+ } else {
643
+ com.google.protobuf.ByteString bs =
644
+ (com.google.protobuf.ByteString) ref;
645
+ java.lang.String s = bs.toStringUtf8();
646
+ purchaseDate_ = s;
647
+ return s;
648
+ }
649
+ }
650
+ /**
651
+ * <code>optional string purchase_date = 13;</code>
652
+ * @return The bytes for purchaseDate.
653
+ */
654
+ @java.lang.Override
655
+ public com.google.protobuf.ByteString
656
+ getPurchaseDateBytes() {
657
+ java.lang.Object ref = purchaseDate_;
658
+ if (ref instanceof java.lang.String) {
659
+ com.google.protobuf.ByteString b =
660
+ com.google.protobuf.ByteString.copyFromUtf8(
661
+ (java.lang.String) ref);
662
+ purchaseDate_ = b;
663
+ return b;
664
+ } else {
665
+ return (com.google.protobuf.ByteString) ref;
666
+ }
667
+ }
668
+
669
+ public static final int WARRANTY_DATE_FIELD_NUMBER = 14;
670
+ @SuppressWarnings("serial")
671
+ private volatile java.lang.Object warrantyDate_ = "";
672
+ /**
673
+ * <code>optional string warranty_date = 14;</code>
674
+ * @return Whether the warrantyDate field is set.
675
+ */
676
+ @java.lang.Override
677
+ public boolean hasWarrantyDate() {
678
+ return ((bitField0_ & 0x00002000) != 0);
679
+ }
680
+ /**
681
+ * <code>optional string warranty_date = 14;</code>
682
+ * @return The warrantyDate.
683
+ */
684
+ @java.lang.Override
685
+ public java.lang.String getWarrantyDate() {
686
+ java.lang.Object ref = warrantyDate_;
687
+ if (ref instanceof java.lang.String) {
688
+ return (java.lang.String) ref;
689
+ } else {
690
+ com.google.protobuf.ByteString bs =
691
+ (com.google.protobuf.ByteString) ref;
692
+ java.lang.String s = bs.toStringUtf8();
693
+ warrantyDate_ = s;
694
+ return s;
695
+ }
696
+ }
697
+ /**
698
+ * <code>optional string warranty_date = 14;</code>
699
+ * @return The bytes for warrantyDate.
700
+ */
701
+ @java.lang.Override
702
+ public com.google.protobuf.ByteString
703
+ getWarrantyDateBytes() {
704
+ java.lang.Object ref = warrantyDate_;
705
+ if (ref instanceof java.lang.String) {
706
+ com.google.protobuf.ByteString b =
707
+ com.google.protobuf.ByteString.copyFromUtf8(
708
+ (java.lang.String) ref);
709
+ warrantyDate_ = b;
710
+ return b;
711
+ } else {
712
+ return (com.google.protobuf.ByteString) ref;
713
+ }
714
+ }
715
+
716
+ public static final int MODULE_TYPE_FIELD_NUMBER = 15;
717
+ @SuppressWarnings("serial")
718
+ private volatile java.lang.Object moduleType_ = "";
719
+ /**
720
+ * <code>optional string module_type = 15;</code>
721
+ * @return Whether the moduleType field is set.
722
+ */
723
+ @java.lang.Override
724
+ public boolean hasModuleType() {
725
+ return ((bitField0_ & 0x00004000) != 0);
726
+ }
727
+ /**
728
+ * <code>optional string module_type = 15;</code>
729
+ * @return The moduleType.
730
+ */
731
+ @java.lang.Override
732
+ public java.lang.String getModuleType() {
733
+ java.lang.Object ref = moduleType_;
734
+ if (ref instanceof java.lang.String) {
735
+ return (java.lang.String) ref;
736
+ } else {
737
+ com.google.protobuf.ByteString bs =
738
+ (com.google.protobuf.ByteString) ref;
739
+ java.lang.String s = bs.toStringUtf8();
740
+ moduleType_ = s;
741
+ return s;
742
+ }
743
+ }
744
+ /**
745
+ * <code>optional string module_type = 15;</code>
746
+ * @return The bytes for moduleType.
747
+ */
748
+ @java.lang.Override
749
+ public com.google.protobuf.ByteString
750
+ getModuleTypeBytes() {
751
+ java.lang.Object ref = moduleType_;
752
+ if (ref instanceof java.lang.String) {
753
+ com.google.protobuf.ByteString b =
754
+ com.google.protobuf.ByteString.copyFromUtf8(
755
+ (java.lang.String) ref);
756
+ moduleType_ = b;
757
+ return b;
758
+ } else {
759
+ return (com.google.protobuf.ByteString) ref;
760
+ }
761
+ }
762
+
763
+ public static final int FIRMWARE_FIELD_NUMBER = 16;
764
+ @SuppressWarnings("serial")
765
+ private volatile java.lang.Object firmware_ = "";
766
+ /**
767
+ * <code>optional string firmware = 16;</code>
768
+ * @return Whether the firmware field is set.
769
+ */
770
+ @java.lang.Override
771
+ public boolean hasFirmware() {
772
+ return ((bitField0_ & 0x00008000) != 0);
773
+ }
774
+ /**
775
+ * <code>optional string firmware = 16;</code>
776
+ * @return The firmware.
777
+ */
778
+ @java.lang.Override
779
+ public java.lang.String getFirmware() {
780
+ java.lang.Object ref = firmware_;
781
+ if (ref instanceof java.lang.String) {
782
+ return (java.lang.String) ref;
783
+ } else {
784
+ com.google.protobuf.ByteString bs =
785
+ (com.google.protobuf.ByteString) ref;
786
+ java.lang.String s = bs.toStringUtf8();
787
+ firmware_ = s;
788
+ return s;
789
+ }
790
+ }
791
+ /**
792
+ * <code>optional string firmware = 16;</code>
793
+ * @return The bytes for firmware.
794
+ */
795
+ @java.lang.Override
796
+ public com.google.protobuf.ByteString
797
+ getFirmwareBytes() {
798
+ java.lang.Object ref = firmware_;
799
+ if (ref instanceof java.lang.String) {
800
+ com.google.protobuf.ByteString b =
801
+ com.google.protobuf.ByteString.copyFromUtf8(
802
+ (java.lang.String) ref);
803
+ firmware_ = b;
804
+ return b;
805
+ } else {
806
+ return (com.google.protobuf.ByteString) ref;
807
+ }
808
+ }
809
+
810
+ private byte memoizedIsInitialized = -1;
811
+ @java.lang.Override
812
+ public final boolean isInitialized() {
813
+ byte isInitialized = memoizedIsInitialized;
814
+ if (isInitialized == 1) return true;
815
+ if (isInitialized == 0) return false;
816
+
817
+ memoizedIsInitialized = 1;
818
+ return true;
819
+ }
820
+
821
+ @java.lang.Override
822
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
823
+ throws java.io.IOException {
824
+ if (((bitField0_ & 0x00000001) != 0)) {
825
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
826
+ }
827
+ if (((bitField0_ & 0x00000002) != 0)) {
828
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, typeKey_);
829
+ }
830
+ if (((bitField0_ & 0x00000004) != 0)) {
831
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mac_);
832
+ }
833
+ if (((bitField0_ & 0x00000008) != 0)) {
834
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, stateKey_);
835
+ }
836
+ if (((bitField0_ & 0x00000010) != 0)) {
837
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
838
+ }
839
+ if (((bitField0_ & 0x00000020) != 0)) {
840
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, manufacturer_);
841
+ }
842
+ if (((bitField0_ & 0x00000040) != 0)) {
843
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, model_);
844
+ }
845
+ if (((bitField0_ & 0x00000080) != 0)) {
846
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, serialNumber_);
847
+ }
848
+ if (((bitField0_ & 0x00000100) != 0)) {
849
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sku_);
850
+ }
851
+ if (((bitField0_ & 0x00000200) != 0)) {
852
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, contact_);
853
+ }
854
+ if (((bitField0_ & 0x00000400) != 0)) {
855
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, location_);
856
+ }
857
+ if (((bitField0_ & 0x00000800) != 0)) {
858
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 12, ipAddress_);
859
+ }
860
+ if (((bitField0_ & 0x00001000) != 0)) {
861
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 13, purchaseDate_);
862
+ }
863
+ if (((bitField0_ & 0x00002000) != 0)) {
864
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 14, warrantyDate_);
865
+ }
866
+ if (((bitField0_ & 0x00004000) != 0)) {
867
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 15, moduleType_);
868
+ }
869
+ if (((bitField0_ & 0x00008000) != 0)) {
870
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 16, firmware_);
871
+ }
872
+ getUnknownFields().writeTo(output);
873
+ }
874
+
875
+ @java.lang.Override
876
+ public int getSerializedSize() {
877
+ int size = memoizedSize;
878
+ if (size != -1) return size;
879
+
880
+ size = 0;
881
+ if (((bitField0_ & 0x00000001) != 0)) {
882
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
883
+ }
884
+ if (((bitField0_ & 0x00000002) != 0)) {
885
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, typeKey_);
886
+ }
887
+ if (((bitField0_ & 0x00000004) != 0)) {
888
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mac_);
889
+ }
890
+ if (((bitField0_ & 0x00000008) != 0)) {
891
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, stateKey_);
892
+ }
893
+ if (((bitField0_ & 0x00000010) != 0)) {
894
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
895
+ }
896
+ if (((bitField0_ & 0x00000020) != 0)) {
897
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, manufacturer_);
898
+ }
899
+ if (((bitField0_ & 0x00000040) != 0)) {
900
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, model_);
901
+ }
902
+ if (((bitField0_ & 0x00000080) != 0)) {
903
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serialNumber_);
904
+ }
905
+ if (((bitField0_ & 0x00000100) != 0)) {
906
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, sku_);
907
+ }
908
+ if (((bitField0_ & 0x00000200) != 0)) {
909
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, contact_);
910
+ }
911
+ if (((bitField0_ & 0x00000400) != 0)) {
912
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, location_);
913
+ }
914
+ if (((bitField0_ & 0x00000800) != 0)) {
915
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, ipAddress_);
916
+ }
917
+ if (((bitField0_ & 0x00001000) != 0)) {
918
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, purchaseDate_);
919
+ }
920
+ if (((bitField0_ & 0x00002000) != 0)) {
921
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, warrantyDate_);
922
+ }
923
+ if (((bitField0_ & 0x00004000) != 0)) {
924
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, moduleType_);
925
+ }
926
+ if (((bitField0_ & 0x00008000) != 0)) {
927
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, firmware_);
928
+ }
929
+ size += getUnknownFields().getSerializedSize();
930
+ memoizedSize = size;
931
+ return size;
932
+ }
933
+
934
+ @java.lang.Override
935
+ public boolean equals(final java.lang.Object obj) {
936
+ if (obj == this) {
937
+ return true;
938
+ }
939
+ if (!(obj instanceof lansweeper.integrations.assets.v1.LockedFields)) {
940
+ return super.equals(obj);
941
+ }
942
+ lansweeper.integrations.assets.v1.LockedFields other = (lansweeper.integrations.assets.v1.LockedFields) obj;
943
+
944
+ if (hasName() != other.hasName()) return false;
945
+ if (hasName()) {
946
+ if (!getName()
947
+ .equals(other.getName())) return false;
948
+ }
949
+ if (hasTypeKey() != other.hasTypeKey()) return false;
950
+ if (hasTypeKey()) {
951
+ if (!getTypeKey()
952
+ .equals(other.getTypeKey())) return false;
953
+ }
954
+ if (hasMac() != other.hasMac()) return false;
955
+ if (hasMac()) {
956
+ if (!getMac()
957
+ .equals(other.getMac())) return false;
958
+ }
959
+ if (hasStateKey() != other.hasStateKey()) return false;
960
+ if (hasStateKey()) {
961
+ if (!getStateKey()
962
+ .equals(other.getStateKey())) return false;
963
+ }
964
+ if (hasDescription() != other.hasDescription()) return false;
965
+ if (hasDescription()) {
966
+ if (!getDescription()
967
+ .equals(other.getDescription())) return false;
968
+ }
969
+ if (hasManufacturer() != other.hasManufacturer()) return false;
970
+ if (hasManufacturer()) {
971
+ if (!getManufacturer()
972
+ .equals(other.getManufacturer())) return false;
973
+ }
974
+ if (hasModel() != other.hasModel()) return false;
975
+ if (hasModel()) {
976
+ if (!getModel()
977
+ .equals(other.getModel())) return false;
978
+ }
979
+ if (hasSerialNumber() != other.hasSerialNumber()) return false;
980
+ if (hasSerialNumber()) {
981
+ if (!getSerialNumber()
982
+ .equals(other.getSerialNumber())) return false;
983
+ }
984
+ if (hasSku() != other.hasSku()) return false;
985
+ if (hasSku()) {
986
+ if (!getSku()
987
+ .equals(other.getSku())) return false;
988
+ }
989
+ if (hasContact() != other.hasContact()) return false;
990
+ if (hasContact()) {
991
+ if (!getContact()
992
+ .equals(other.getContact())) return false;
993
+ }
994
+ if (hasLocation() != other.hasLocation()) return false;
995
+ if (hasLocation()) {
996
+ if (!getLocation()
997
+ .equals(other.getLocation())) return false;
998
+ }
999
+ if (hasIpAddress() != other.hasIpAddress()) return false;
1000
+ if (hasIpAddress()) {
1001
+ if (!getIpAddress()
1002
+ .equals(other.getIpAddress())) return false;
1003
+ }
1004
+ if (hasPurchaseDate() != other.hasPurchaseDate()) return false;
1005
+ if (hasPurchaseDate()) {
1006
+ if (!getPurchaseDate()
1007
+ .equals(other.getPurchaseDate())) return false;
1008
+ }
1009
+ if (hasWarrantyDate() != other.hasWarrantyDate()) return false;
1010
+ if (hasWarrantyDate()) {
1011
+ if (!getWarrantyDate()
1012
+ .equals(other.getWarrantyDate())) return false;
1013
+ }
1014
+ if (hasModuleType() != other.hasModuleType()) return false;
1015
+ if (hasModuleType()) {
1016
+ if (!getModuleType()
1017
+ .equals(other.getModuleType())) return false;
1018
+ }
1019
+ if (hasFirmware() != other.hasFirmware()) return false;
1020
+ if (hasFirmware()) {
1021
+ if (!getFirmware()
1022
+ .equals(other.getFirmware())) return false;
1023
+ }
1024
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1025
+ return true;
1026
+ }
1027
+
1028
+ @java.lang.Override
1029
+ public int hashCode() {
1030
+ if (memoizedHashCode != 0) {
1031
+ return memoizedHashCode;
1032
+ }
1033
+ int hash = 41;
1034
+ hash = (19 * hash) + getDescriptor().hashCode();
1035
+ if (hasName()) {
1036
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
1037
+ hash = (53 * hash) + getName().hashCode();
1038
+ }
1039
+ if (hasTypeKey()) {
1040
+ hash = (37 * hash) + TYPE_KEY_FIELD_NUMBER;
1041
+ hash = (53 * hash) + getTypeKey().hashCode();
1042
+ }
1043
+ if (hasMac()) {
1044
+ hash = (37 * hash) + MAC_FIELD_NUMBER;
1045
+ hash = (53 * hash) + getMac().hashCode();
1046
+ }
1047
+ if (hasStateKey()) {
1048
+ hash = (37 * hash) + STATE_KEY_FIELD_NUMBER;
1049
+ hash = (53 * hash) + getStateKey().hashCode();
1050
+ }
1051
+ if (hasDescription()) {
1052
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
1053
+ hash = (53 * hash) + getDescription().hashCode();
1054
+ }
1055
+ if (hasManufacturer()) {
1056
+ hash = (37 * hash) + MANUFACTURER_FIELD_NUMBER;
1057
+ hash = (53 * hash) + getManufacturer().hashCode();
1058
+ }
1059
+ if (hasModel()) {
1060
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
1061
+ hash = (53 * hash) + getModel().hashCode();
1062
+ }
1063
+ if (hasSerialNumber()) {
1064
+ hash = (37 * hash) + SERIAL_NUMBER_FIELD_NUMBER;
1065
+ hash = (53 * hash) + getSerialNumber().hashCode();
1066
+ }
1067
+ if (hasSku()) {
1068
+ hash = (37 * hash) + SKU_FIELD_NUMBER;
1069
+ hash = (53 * hash) + getSku().hashCode();
1070
+ }
1071
+ if (hasContact()) {
1072
+ hash = (37 * hash) + CONTACT_FIELD_NUMBER;
1073
+ hash = (53 * hash) + getContact().hashCode();
1074
+ }
1075
+ if (hasLocation()) {
1076
+ hash = (37 * hash) + LOCATION_FIELD_NUMBER;
1077
+ hash = (53 * hash) + getLocation().hashCode();
1078
+ }
1079
+ if (hasIpAddress()) {
1080
+ hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER;
1081
+ hash = (53 * hash) + getIpAddress().hashCode();
1082
+ }
1083
+ if (hasPurchaseDate()) {
1084
+ hash = (37 * hash) + PURCHASE_DATE_FIELD_NUMBER;
1085
+ hash = (53 * hash) + getPurchaseDate().hashCode();
1086
+ }
1087
+ if (hasWarrantyDate()) {
1088
+ hash = (37 * hash) + WARRANTY_DATE_FIELD_NUMBER;
1089
+ hash = (53 * hash) + getWarrantyDate().hashCode();
1090
+ }
1091
+ if (hasModuleType()) {
1092
+ hash = (37 * hash) + MODULE_TYPE_FIELD_NUMBER;
1093
+ hash = (53 * hash) + getModuleType().hashCode();
1094
+ }
1095
+ if (hasFirmware()) {
1096
+ hash = (37 * hash) + FIRMWARE_FIELD_NUMBER;
1097
+ hash = (53 * hash) + getFirmware().hashCode();
1098
+ }
1099
+ hash = (29 * hash) + getUnknownFields().hashCode();
1100
+ memoizedHashCode = hash;
1101
+ return hash;
1102
+ }
1103
+
1104
+ public static lansweeper.integrations.assets.v1.LockedFields parseFrom(
1105
+ java.nio.ByteBuffer data)
1106
+ throws com.google.protobuf.InvalidProtocolBufferException {
1107
+ return PARSER.parseFrom(data);
1108
+ }
1109
+ public static lansweeper.integrations.assets.v1.LockedFields parseFrom(
1110
+ java.nio.ByteBuffer data,
1111
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1112
+ throws com.google.protobuf.InvalidProtocolBufferException {
1113
+ return PARSER.parseFrom(data, extensionRegistry);
1114
+ }
1115
+ public static lansweeper.integrations.assets.v1.LockedFields parseFrom(
1116
+ com.google.protobuf.ByteString data)
1117
+ throws com.google.protobuf.InvalidProtocolBufferException {
1118
+ return PARSER.parseFrom(data);
1119
+ }
1120
+ public static lansweeper.integrations.assets.v1.LockedFields parseFrom(
1121
+ com.google.protobuf.ByteString data,
1122
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1123
+ throws com.google.protobuf.InvalidProtocolBufferException {
1124
+ return PARSER.parseFrom(data, extensionRegistry);
1125
+ }
1126
+ public static lansweeper.integrations.assets.v1.LockedFields parseFrom(byte[] data)
1127
+ throws com.google.protobuf.InvalidProtocolBufferException {
1128
+ return PARSER.parseFrom(data);
1129
+ }
1130
+ public static lansweeper.integrations.assets.v1.LockedFields parseFrom(
1131
+ byte[] data,
1132
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1133
+ throws com.google.protobuf.InvalidProtocolBufferException {
1134
+ return PARSER.parseFrom(data, extensionRegistry);
1135
+ }
1136
+ public static lansweeper.integrations.assets.v1.LockedFields parseFrom(java.io.InputStream input)
1137
+ throws java.io.IOException {
1138
+ return com.google.protobuf.GeneratedMessageV3
1139
+ .parseWithIOException(PARSER, input);
1140
+ }
1141
+ public static lansweeper.integrations.assets.v1.LockedFields parseFrom(
1142
+ java.io.InputStream input,
1143
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1144
+ throws java.io.IOException {
1145
+ return com.google.protobuf.GeneratedMessageV3
1146
+ .parseWithIOException(PARSER, input, extensionRegistry);
1147
+ }
1148
+ public static lansweeper.integrations.assets.v1.LockedFields parseDelimitedFrom(java.io.InputStream input)
1149
+ throws java.io.IOException {
1150
+ return com.google.protobuf.GeneratedMessageV3
1151
+ .parseDelimitedWithIOException(PARSER, input);
1152
+ }
1153
+ public static lansweeper.integrations.assets.v1.LockedFields parseDelimitedFrom(
1154
+ java.io.InputStream input,
1155
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1156
+ throws java.io.IOException {
1157
+ return com.google.protobuf.GeneratedMessageV3
1158
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1159
+ }
1160
+ public static lansweeper.integrations.assets.v1.LockedFields parseFrom(
1161
+ com.google.protobuf.CodedInputStream input)
1162
+ throws java.io.IOException {
1163
+ return com.google.protobuf.GeneratedMessageV3
1164
+ .parseWithIOException(PARSER, input);
1165
+ }
1166
+ public static lansweeper.integrations.assets.v1.LockedFields parseFrom(
1167
+ com.google.protobuf.CodedInputStream input,
1168
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1169
+ throws java.io.IOException {
1170
+ return com.google.protobuf.GeneratedMessageV3
1171
+ .parseWithIOException(PARSER, input, extensionRegistry);
1172
+ }
1173
+
1174
+ @java.lang.Override
1175
+ public Builder newBuilderForType() { return newBuilder(); }
1176
+ public static Builder newBuilder() {
1177
+ return DEFAULT_INSTANCE.toBuilder();
1178
+ }
1179
+ public static Builder newBuilder(lansweeper.integrations.assets.v1.LockedFields prototype) {
1180
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1181
+ }
1182
+ @java.lang.Override
1183
+ public Builder toBuilder() {
1184
+ return this == DEFAULT_INSTANCE
1185
+ ? new Builder() : new Builder().mergeFrom(this);
1186
+ }
1187
+
1188
+ @java.lang.Override
1189
+ protected Builder newBuilderForType(
1190
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1191
+ Builder builder = new Builder(parent);
1192
+ return builder;
1193
+ }
1194
+ /**
1195
+ * Protobuf type {@code lansweeper.integrations.assets.v1.LockedFields}
1196
+ */
1197
+ public static final class Builder extends
1198
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1199
+ // @@protoc_insertion_point(builder_implements:lansweeper.integrations.assets.v1.LockedFields)
1200
+ lansweeper.integrations.assets.v1.LockedFieldsOrBuilder {
1201
+ public static final com.google.protobuf.Descriptors.Descriptor
1202
+ getDescriptor() {
1203
+ return lansweeper.integrations.assets.v1.Assets.internal_static_lansweeper_integrations_assets_v1_LockedFields_descriptor;
1204
+ }
1205
+
1206
+ @java.lang.Override
1207
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1208
+ internalGetFieldAccessorTable() {
1209
+ return lansweeper.integrations.assets.v1.Assets.internal_static_lansweeper_integrations_assets_v1_LockedFields_fieldAccessorTable
1210
+ .ensureFieldAccessorsInitialized(
1211
+ lansweeper.integrations.assets.v1.LockedFields.class, lansweeper.integrations.assets.v1.LockedFields.Builder.class);
1212
+ }
1213
+
1214
+ // Construct using lansweeper.integrations.assets.v1.LockedFields.newBuilder()
1215
+ private Builder() {
1216
+
1217
+ }
1218
+
1219
+ private Builder(
1220
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1221
+ super(parent);
1222
+
1223
+ }
1224
+ @java.lang.Override
1225
+ public Builder clear() {
1226
+ super.clear();
1227
+ bitField0_ = 0;
1228
+ name_ = "";
1229
+ typeKey_ = "";
1230
+ mac_ = "";
1231
+ stateKey_ = "";
1232
+ description_ = "";
1233
+ manufacturer_ = "";
1234
+ model_ = "";
1235
+ serialNumber_ = "";
1236
+ sku_ = "";
1237
+ contact_ = "";
1238
+ location_ = "";
1239
+ ipAddress_ = "";
1240
+ purchaseDate_ = "";
1241
+ warrantyDate_ = "";
1242
+ moduleType_ = "";
1243
+ firmware_ = "";
1244
+ return this;
1245
+ }
1246
+
1247
+ @java.lang.Override
1248
+ public com.google.protobuf.Descriptors.Descriptor
1249
+ getDescriptorForType() {
1250
+ return lansweeper.integrations.assets.v1.Assets.internal_static_lansweeper_integrations_assets_v1_LockedFields_descriptor;
1251
+ }
1252
+
1253
+ @java.lang.Override
1254
+ public lansweeper.integrations.assets.v1.LockedFields getDefaultInstanceForType() {
1255
+ return lansweeper.integrations.assets.v1.LockedFields.getDefaultInstance();
1256
+ }
1257
+
1258
+ @java.lang.Override
1259
+ public lansweeper.integrations.assets.v1.LockedFields build() {
1260
+ lansweeper.integrations.assets.v1.LockedFields result = buildPartial();
1261
+ if (!result.isInitialized()) {
1262
+ throw newUninitializedMessageException(result);
1263
+ }
1264
+ return result;
1265
+ }
1266
+
1267
+ @java.lang.Override
1268
+ public lansweeper.integrations.assets.v1.LockedFields buildPartial() {
1269
+ lansweeper.integrations.assets.v1.LockedFields result = new lansweeper.integrations.assets.v1.LockedFields(this);
1270
+ if (bitField0_ != 0) { buildPartial0(result); }
1271
+ onBuilt();
1272
+ return result;
1273
+ }
1274
+
1275
+ private void buildPartial0(lansweeper.integrations.assets.v1.LockedFields result) {
1276
+ int from_bitField0_ = bitField0_;
1277
+ int to_bitField0_ = 0;
1278
+ if (((from_bitField0_ & 0x00000001) != 0)) {
1279
+ result.name_ = name_;
1280
+ to_bitField0_ |= 0x00000001;
1281
+ }
1282
+ if (((from_bitField0_ & 0x00000002) != 0)) {
1283
+ result.typeKey_ = typeKey_;
1284
+ to_bitField0_ |= 0x00000002;
1285
+ }
1286
+ if (((from_bitField0_ & 0x00000004) != 0)) {
1287
+ result.mac_ = mac_;
1288
+ to_bitField0_ |= 0x00000004;
1289
+ }
1290
+ if (((from_bitField0_ & 0x00000008) != 0)) {
1291
+ result.stateKey_ = stateKey_;
1292
+ to_bitField0_ |= 0x00000008;
1293
+ }
1294
+ if (((from_bitField0_ & 0x00000010) != 0)) {
1295
+ result.description_ = description_;
1296
+ to_bitField0_ |= 0x00000010;
1297
+ }
1298
+ if (((from_bitField0_ & 0x00000020) != 0)) {
1299
+ result.manufacturer_ = manufacturer_;
1300
+ to_bitField0_ |= 0x00000020;
1301
+ }
1302
+ if (((from_bitField0_ & 0x00000040) != 0)) {
1303
+ result.model_ = model_;
1304
+ to_bitField0_ |= 0x00000040;
1305
+ }
1306
+ if (((from_bitField0_ & 0x00000080) != 0)) {
1307
+ result.serialNumber_ = serialNumber_;
1308
+ to_bitField0_ |= 0x00000080;
1309
+ }
1310
+ if (((from_bitField0_ & 0x00000100) != 0)) {
1311
+ result.sku_ = sku_;
1312
+ to_bitField0_ |= 0x00000100;
1313
+ }
1314
+ if (((from_bitField0_ & 0x00000200) != 0)) {
1315
+ result.contact_ = contact_;
1316
+ to_bitField0_ |= 0x00000200;
1317
+ }
1318
+ if (((from_bitField0_ & 0x00000400) != 0)) {
1319
+ result.location_ = location_;
1320
+ to_bitField0_ |= 0x00000400;
1321
+ }
1322
+ if (((from_bitField0_ & 0x00000800) != 0)) {
1323
+ result.ipAddress_ = ipAddress_;
1324
+ to_bitField0_ |= 0x00000800;
1325
+ }
1326
+ if (((from_bitField0_ & 0x00001000) != 0)) {
1327
+ result.purchaseDate_ = purchaseDate_;
1328
+ to_bitField0_ |= 0x00001000;
1329
+ }
1330
+ if (((from_bitField0_ & 0x00002000) != 0)) {
1331
+ result.warrantyDate_ = warrantyDate_;
1332
+ to_bitField0_ |= 0x00002000;
1333
+ }
1334
+ if (((from_bitField0_ & 0x00004000) != 0)) {
1335
+ result.moduleType_ = moduleType_;
1336
+ to_bitField0_ |= 0x00004000;
1337
+ }
1338
+ if (((from_bitField0_ & 0x00008000) != 0)) {
1339
+ result.firmware_ = firmware_;
1340
+ to_bitField0_ |= 0x00008000;
1341
+ }
1342
+ result.bitField0_ |= to_bitField0_;
1343
+ }
1344
+
1345
+ @java.lang.Override
1346
+ public Builder mergeFrom(com.google.protobuf.Message other) {
1347
+ if (other instanceof lansweeper.integrations.assets.v1.LockedFields) {
1348
+ return mergeFrom((lansweeper.integrations.assets.v1.LockedFields)other);
1349
+ } else {
1350
+ super.mergeFrom(other);
1351
+ return this;
1352
+ }
1353
+ }
1354
+
1355
+ public Builder mergeFrom(lansweeper.integrations.assets.v1.LockedFields other) {
1356
+ if (other == lansweeper.integrations.assets.v1.LockedFields.getDefaultInstance()) return this;
1357
+ if (other.hasName()) {
1358
+ name_ = other.name_;
1359
+ bitField0_ |= 0x00000001;
1360
+ onChanged();
1361
+ }
1362
+ if (other.hasTypeKey()) {
1363
+ typeKey_ = other.typeKey_;
1364
+ bitField0_ |= 0x00000002;
1365
+ onChanged();
1366
+ }
1367
+ if (other.hasMac()) {
1368
+ mac_ = other.mac_;
1369
+ bitField0_ |= 0x00000004;
1370
+ onChanged();
1371
+ }
1372
+ if (other.hasStateKey()) {
1373
+ stateKey_ = other.stateKey_;
1374
+ bitField0_ |= 0x00000008;
1375
+ onChanged();
1376
+ }
1377
+ if (other.hasDescription()) {
1378
+ description_ = other.description_;
1379
+ bitField0_ |= 0x00000010;
1380
+ onChanged();
1381
+ }
1382
+ if (other.hasManufacturer()) {
1383
+ manufacturer_ = other.manufacturer_;
1384
+ bitField0_ |= 0x00000020;
1385
+ onChanged();
1386
+ }
1387
+ if (other.hasModel()) {
1388
+ model_ = other.model_;
1389
+ bitField0_ |= 0x00000040;
1390
+ onChanged();
1391
+ }
1392
+ if (other.hasSerialNumber()) {
1393
+ serialNumber_ = other.serialNumber_;
1394
+ bitField0_ |= 0x00000080;
1395
+ onChanged();
1396
+ }
1397
+ if (other.hasSku()) {
1398
+ sku_ = other.sku_;
1399
+ bitField0_ |= 0x00000100;
1400
+ onChanged();
1401
+ }
1402
+ if (other.hasContact()) {
1403
+ contact_ = other.contact_;
1404
+ bitField0_ |= 0x00000200;
1405
+ onChanged();
1406
+ }
1407
+ if (other.hasLocation()) {
1408
+ location_ = other.location_;
1409
+ bitField0_ |= 0x00000400;
1410
+ onChanged();
1411
+ }
1412
+ if (other.hasIpAddress()) {
1413
+ ipAddress_ = other.ipAddress_;
1414
+ bitField0_ |= 0x00000800;
1415
+ onChanged();
1416
+ }
1417
+ if (other.hasPurchaseDate()) {
1418
+ purchaseDate_ = other.purchaseDate_;
1419
+ bitField0_ |= 0x00001000;
1420
+ onChanged();
1421
+ }
1422
+ if (other.hasWarrantyDate()) {
1423
+ warrantyDate_ = other.warrantyDate_;
1424
+ bitField0_ |= 0x00002000;
1425
+ onChanged();
1426
+ }
1427
+ if (other.hasModuleType()) {
1428
+ moduleType_ = other.moduleType_;
1429
+ bitField0_ |= 0x00004000;
1430
+ onChanged();
1431
+ }
1432
+ if (other.hasFirmware()) {
1433
+ firmware_ = other.firmware_;
1434
+ bitField0_ |= 0x00008000;
1435
+ onChanged();
1436
+ }
1437
+ this.mergeUnknownFields(other.getUnknownFields());
1438
+ onChanged();
1439
+ return this;
1440
+ }
1441
+
1442
+ @java.lang.Override
1443
+ public final boolean isInitialized() {
1444
+ return true;
1445
+ }
1446
+
1447
+ @java.lang.Override
1448
+ public Builder mergeFrom(
1449
+ com.google.protobuf.CodedInputStream input,
1450
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1451
+ throws java.io.IOException {
1452
+ if (extensionRegistry == null) {
1453
+ throw new java.lang.NullPointerException();
1454
+ }
1455
+ try {
1456
+ boolean done = false;
1457
+ while (!done) {
1458
+ int tag = input.readTag();
1459
+ switch (tag) {
1460
+ case 0:
1461
+ done = true;
1462
+ break;
1463
+ case 10: {
1464
+ name_ = input.readStringRequireUtf8();
1465
+ bitField0_ |= 0x00000001;
1466
+ break;
1467
+ } // case 10
1468
+ case 18: {
1469
+ typeKey_ = input.readStringRequireUtf8();
1470
+ bitField0_ |= 0x00000002;
1471
+ break;
1472
+ } // case 18
1473
+ case 26: {
1474
+ mac_ = input.readStringRequireUtf8();
1475
+ bitField0_ |= 0x00000004;
1476
+ break;
1477
+ } // case 26
1478
+ case 34: {
1479
+ stateKey_ = input.readStringRequireUtf8();
1480
+ bitField0_ |= 0x00000008;
1481
+ break;
1482
+ } // case 34
1483
+ case 42: {
1484
+ description_ = input.readStringRequireUtf8();
1485
+ bitField0_ |= 0x00000010;
1486
+ break;
1487
+ } // case 42
1488
+ case 50: {
1489
+ manufacturer_ = input.readStringRequireUtf8();
1490
+ bitField0_ |= 0x00000020;
1491
+ break;
1492
+ } // case 50
1493
+ case 58: {
1494
+ model_ = input.readStringRequireUtf8();
1495
+ bitField0_ |= 0x00000040;
1496
+ break;
1497
+ } // case 58
1498
+ case 66: {
1499
+ serialNumber_ = input.readStringRequireUtf8();
1500
+ bitField0_ |= 0x00000080;
1501
+ break;
1502
+ } // case 66
1503
+ case 74: {
1504
+ sku_ = input.readStringRequireUtf8();
1505
+ bitField0_ |= 0x00000100;
1506
+ break;
1507
+ } // case 74
1508
+ case 82: {
1509
+ contact_ = input.readStringRequireUtf8();
1510
+ bitField0_ |= 0x00000200;
1511
+ break;
1512
+ } // case 82
1513
+ case 90: {
1514
+ location_ = input.readStringRequireUtf8();
1515
+ bitField0_ |= 0x00000400;
1516
+ break;
1517
+ } // case 90
1518
+ case 98: {
1519
+ ipAddress_ = input.readStringRequireUtf8();
1520
+ bitField0_ |= 0x00000800;
1521
+ break;
1522
+ } // case 98
1523
+ case 106: {
1524
+ purchaseDate_ = input.readStringRequireUtf8();
1525
+ bitField0_ |= 0x00001000;
1526
+ break;
1527
+ } // case 106
1528
+ case 114: {
1529
+ warrantyDate_ = input.readStringRequireUtf8();
1530
+ bitField0_ |= 0x00002000;
1531
+ break;
1532
+ } // case 114
1533
+ case 122: {
1534
+ moduleType_ = input.readStringRequireUtf8();
1535
+ bitField0_ |= 0x00004000;
1536
+ break;
1537
+ } // case 122
1538
+ case 130: {
1539
+ firmware_ = input.readStringRequireUtf8();
1540
+ bitField0_ |= 0x00008000;
1541
+ break;
1542
+ } // case 130
1543
+ default: {
1544
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1545
+ done = true; // was an endgroup tag
1546
+ }
1547
+ break;
1548
+ } // default:
1549
+ } // switch (tag)
1550
+ } // while (!done)
1551
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1552
+ throw e.unwrapIOException();
1553
+ } finally {
1554
+ onChanged();
1555
+ } // finally
1556
+ return this;
1557
+ }
1558
+ private int bitField0_;
1559
+
1560
+ private java.lang.Object name_ = "";
1561
+ /**
1562
+ * <code>optional string name = 1;</code>
1563
+ * @return Whether the name field is set.
1564
+ */
1565
+ public boolean hasName() {
1566
+ return ((bitField0_ & 0x00000001) != 0);
1567
+ }
1568
+ /**
1569
+ * <code>optional string name = 1;</code>
1570
+ * @return The name.
1571
+ */
1572
+ public java.lang.String getName() {
1573
+ java.lang.Object ref = name_;
1574
+ if (!(ref instanceof java.lang.String)) {
1575
+ com.google.protobuf.ByteString bs =
1576
+ (com.google.protobuf.ByteString) ref;
1577
+ java.lang.String s = bs.toStringUtf8();
1578
+ name_ = s;
1579
+ return s;
1580
+ } else {
1581
+ return (java.lang.String) ref;
1582
+ }
1583
+ }
1584
+ /**
1585
+ * <code>optional string name = 1;</code>
1586
+ * @return The bytes for name.
1587
+ */
1588
+ public com.google.protobuf.ByteString
1589
+ getNameBytes() {
1590
+ java.lang.Object ref = name_;
1591
+ if (ref instanceof String) {
1592
+ com.google.protobuf.ByteString b =
1593
+ com.google.protobuf.ByteString.copyFromUtf8(
1594
+ (java.lang.String) ref);
1595
+ name_ = b;
1596
+ return b;
1597
+ } else {
1598
+ return (com.google.protobuf.ByteString) ref;
1599
+ }
1600
+ }
1601
+ /**
1602
+ * <code>optional string name = 1;</code>
1603
+ * @param value The name to set.
1604
+ * @return This builder for chaining.
1605
+ */
1606
+ public Builder setName(
1607
+ java.lang.String value) {
1608
+ if (value == null) { throw new NullPointerException(); }
1609
+ name_ = value;
1610
+ bitField0_ |= 0x00000001;
1611
+ onChanged();
1612
+ return this;
1613
+ }
1614
+ /**
1615
+ * <code>optional string name = 1;</code>
1616
+ * @return This builder for chaining.
1617
+ */
1618
+ public Builder clearName() {
1619
+ name_ = getDefaultInstance().getName();
1620
+ bitField0_ = (bitField0_ & ~0x00000001);
1621
+ onChanged();
1622
+ return this;
1623
+ }
1624
+ /**
1625
+ * <code>optional string name = 1;</code>
1626
+ * @param value The bytes for name to set.
1627
+ * @return This builder for chaining.
1628
+ */
1629
+ public Builder setNameBytes(
1630
+ com.google.protobuf.ByteString value) {
1631
+ if (value == null) { throw new NullPointerException(); }
1632
+ checkByteStringIsUtf8(value);
1633
+ name_ = value;
1634
+ bitField0_ |= 0x00000001;
1635
+ onChanged();
1636
+ return this;
1637
+ }
1638
+
1639
+ private java.lang.Object typeKey_ = "";
1640
+ /**
1641
+ * <code>optional string type_key = 2;</code>
1642
+ * @return Whether the typeKey field is set.
1643
+ */
1644
+ public boolean hasTypeKey() {
1645
+ return ((bitField0_ & 0x00000002) != 0);
1646
+ }
1647
+ /**
1648
+ * <code>optional string type_key = 2;</code>
1649
+ * @return The typeKey.
1650
+ */
1651
+ public java.lang.String getTypeKey() {
1652
+ java.lang.Object ref = typeKey_;
1653
+ if (!(ref instanceof java.lang.String)) {
1654
+ com.google.protobuf.ByteString bs =
1655
+ (com.google.protobuf.ByteString) ref;
1656
+ java.lang.String s = bs.toStringUtf8();
1657
+ typeKey_ = s;
1658
+ return s;
1659
+ } else {
1660
+ return (java.lang.String) ref;
1661
+ }
1662
+ }
1663
+ /**
1664
+ * <code>optional string type_key = 2;</code>
1665
+ * @return The bytes for typeKey.
1666
+ */
1667
+ public com.google.protobuf.ByteString
1668
+ getTypeKeyBytes() {
1669
+ java.lang.Object ref = typeKey_;
1670
+ if (ref instanceof String) {
1671
+ com.google.protobuf.ByteString b =
1672
+ com.google.protobuf.ByteString.copyFromUtf8(
1673
+ (java.lang.String) ref);
1674
+ typeKey_ = b;
1675
+ return b;
1676
+ } else {
1677
+ return (com.google.protobuf.ByteString) ref;
1678
+ }
1679
+ }
1680
+ /**
1681
+ * <code>optional string type_key = 2;</code>
1682
+ * @param value The typeKey to set.
1683
+ * @return This builder for chaining.
1684
+ */
1685
+ public Builder setTypeKey(
1686
+ java.lang.String value) {
1687
+ if (value == null) { throw new NullPointerException(); }
1688
+ typeKey_ = value;
1689
+ bitField0_ |= 0x00000002;
1690
+ onChanged();
1691
+ return this;
1692
+ }
1693
+ /**
1694
+ * <code>optional string type_key = 2;</code>
1695
+ * @return This builder for chaining.
1696
+ */
1697
+ public Builder clearTypeKey() {
1698
+ typeKey_ = getDefaultInstance().getTypeKey();
1699
+ bitField0_ = (bitField0_ & ~0x00000002);
1700
+ onChanged();
1701
+ return this;
1702
+ }
1703
+ /**
1704
+ * <code>optional string type_key = 2;</code>
1705
+ * @param value The bytes for typeKey to set.
1706
+ * @return This builder for chaining.
1707
+ */
1708
+ public Builder setTypeKeyBytes(
1709
+ com.google.protobuf.ByteString value) {
1710
+ if (value == null) { throw new NullPointerException(); }
1711
+ checkByteStringIsUtf8(value);
1712
+ typeKey_ = value;
1713
+ bitField0_ |= 0x00000002;
1714
+ onChanged();
1715
+ return this;
1716
+ }
1717
+
1718
+ private java.lang.Object mac_ = "";
1719
+ /**
1720
+ * <code>optional string mac = 3;</code>
1721
+ * @return Whether the mac field is set.
1722
+ */
1723
+ public boolean hasMac() {
1724
+ return ((bitField0_ & 0x00000004) != 0);
1725
+ }
1726
+ /**
1727
+ * <code>optional string mac = 3;</code>
1728
+ * @return The mac.
1729
+ */
1730
+ public java.lang.String getMac() {
1731
+ java.lang.Object ref = mac_;
1732
+ if (!(ref instanceof java.lang.String)) {
1733
+ com.google.protobuf.ByteString bs =
1734
+ (com.google.protobuf.ByteString) ref;
1735
+ java.lang.String s = bs.toStringUtf8();
1736
+ mac_ = s;
1737
+ return s;
1738
+ } else {
1739
+ return (java.lang.String) ref;
1740
+ }
1741
+ }
1742
+ /**
1743
+ * <code>optional string mac = 3;</code>
1744
+ * @return The bytes for mac.
1745
+ */
1746
+ public com.google.protobuf.ByteString
1747
+ getMacBytes() {
1748
+ java.lang.Object ref = mac_;
1749
+ if (ref instanceof String) {
1750
+ com.google.protobuf.ByteString b =
1751
+ com.google.protobuf.ByteString.copyFromUtf8(
1752
+ (java.lang.String) ref);
1753
+ mac_ = b;
1754
+ return b;
1755
+ } else {
1756
+ return (com.google.protobuf.ByteString) ref;
1757
+ }
1758
+ }
1759
+ /**
1760
+ * <code>optional string mac = 3;</code>
1761
+ * @param value The mac to set.
1762
+ * @return This builder for chaining.
1763
+ */
1764
+ public Builder setMac(
1765
+ java.lang.String value) {
1766
+ if (value == null) { throw new NullPointerException(); }
1767
+ mac_ = value;
1768
+ bitField0_ |= 0x00000004;
1769
+ onChanged();
1770
+ return this;
1771
+ }
1772
+ /**
1773
+ * <code>optional string mac = 3;</code>
1774
+ * @return This builder for chaining.
1775
+ */
1776
+ public Builder clearMac() {
1777
+ mac_ = getDefaultInstance().getMac();
1778
+ bitField0_ = (bitField0_ & ~0x00000004);
1779
+ onChanged();
1780
+ return this;
1781
+ }
1782
+ /**
1783
+ * <code>optional string mac = 3;</code>
1784
+ * @param value The bytes for mac to set.
1785
+ * @return This builder for chaining.
1786
+ */
1787
+ public Builder setMacBytes(
1788
+ com.google.protobuf.ByteString value) {
1789
+ if (value == null) { throw new NullPointerException(); }
1790
+ checkByteStringIsUtf8(value);
1791
+ mac_ = value;
1792
+ bitField0_ |= 0x00000004;
1793
+ onChanged();
1794
+ return this;
1795
+ }
1796
+
1797
+ private java.lang.Object stateKey_ = "";
1798
+ /**
1799
+ * <code>optional string state_key = 4;</code>
1800
+ * @return Whether the stateKey field is set.
1801
+ */
1802
+ public boolean hasStateKey() {
1803
+ return ((bitField0_ & 0x00000008) != 0);
1804
+ }
1805
+ /**
1806
+ * <code>optional string state_key = 4;</code>
1807
+ * @return The stateKey.
1808
+ */
1809
+ public java.lang.String getStateKey() {
1810
+ java.lang.Object ref = stateKey_;
1811
+ if (!(ref instanceof java.lang.String)) {
1812
+ com.google.protobuf.ByteString bs =
1813
+ (com.google.protobuf.ByteString) ref;
1814
+ java.lang.String s = bs.toStringUtf8();
1815
+ stateKey_ = s;
1816
+ return s;
1817
+ } else {
1818
+ return (java.lang.String) ref;
1819
+ }
1820
+ }
1821
+ /**
1822
+ * <code>optional string state_key = 4;</code>
1823
+ * @return The bytes for stateKey.
1824
+ */
1825
+ public com.google.protobuf.ByteString
1826
+ getStateKeyBytes() {
1827
+ java.lang.Object ref = stateKey_;
1828
+ if (ref instanceof String) {
1829
+ com.google.protobuf.ByteString b =
1830
+ com.google.protobuf.ByteString.copyFromUtf8(
1831
+ (java.lang.String) ref);
1832
+ stateKey_ = b;
1833
+ return b;
1834
+ } else {
1835
+ return (com.google.protobuf.ByteString) ref;
1836
+ }
1837
+ }
1838
+ /**
1839
+ * <code>optional string state_key = 4;</code>
1840
+ * @param value The stateKey to set.
1841
+ * @return This builder for chaining.
1842
+ */
1843
+ public Builder setStateKey(
1844
+ java.lang.String value) {
1845
+ if (value == null) { throw new NullPointerException(); }
1846
+ stateKey_ = value;
1847
+ bitField0_ |= 0x00000008;
1848
+ onChanged();
1849
+ return this;
1850
+ }
1851
+ /**
1852
+ * <code>optional string state_key = 4;</code>
1853
+ * @return This builder for chaining.
1854
+ */
1855
+ public Builder clearStateKey() {
1856
+ stateKey_ = getDefaultInstance().getStateKey();
1857
+ bitField0_ = (bitField0_ & ~0x00000008);
1858
+ onChanged();
1859
+ return this;
1860
+ }
1861
+ /**
1862
+ * <code>optional string state_key = 4;</code>
1863
+ * @param value The bytes for stateKey to set.
1864
+ * @return This builder for chaining.
1865
+ */
1866
+ public Builder setStateKeyBytes(
1867
+ com.google.protobuf.ByteString value) {
1868
+ if (value == null) { throw new NullPointerException(); }
1869
+ checkByteStringIsUtf8(value);
1870
+ stateKey_ = value;
1871
+ bitField0_ |= 0x00000008;
1872
+ onChanged();
1873
+ return this;
1874
+ }
1875
+
1876
+ private java.lang.Object description_ = "";
1877
+ /**
1878
+ * <code>optional string description = 5;</code>
1879
+ * @return Whether the description field is set.
1880
+ */
1881
+ public boolean hasDescription() {
1882
+ return ((bitField0_ & 0x00000010) != 0);
1883
+ }
1884
+ /**
1885
+ * <code>optional string description = 5;</code>
1886
+ * @return The description.
1887
+ */
1888
+ public java.lang.String getDescription() {
1889
+ java.lang.Object ref = description_;
1890
+ if (!(ref instanceof java.lang.String)) {
1891
+ com.google.protobuf.ByteString bs =
1892
+ (com.google.protobuf.ByteString) ref;
1893
+ java.lang.String s = bs.toStringUtf8();
1894
+ description_ = s;
1895
+ return s;
1896
+ } else {
1897
+ return (java.lang.String) ref;
1898
+ }
1899
+ }
1900
+ /**
1901
+ * <code>optional string description = 5;</code>
1902
+ * @return The bytes for description.
1903
+ */
1904
+ public com.google.protobuf.ByteString
1905
+ getDescriptionBytes() {
1906
+ java.lang.Object ref = description_;
1907
+ if (ref instanceof String) {
1908
+ com.google.protobuf.ByteString b =
1909
+ com.google.protobuf.ByteString.copyFromUtf8(
1910
+ (java.lang.String) ref);
1911
+ description_ = b;
1912
+ return b;
1913
+ } else {
1914
+ return (com.google.protobuf.ByteString) ref;
1915
+ }
1916
+ }
1917
+ /**
1918
+ * <code>optional string description = 5;</code>
1919
+ * @param value The description to set.
1920
+ * @return This builder for chaining.
1921
+ */
1922
+ public Builder setDescription(
1923
+ java.lang.String value) {
1924
+ if (value == null) { throw new NullPointerException(); }
1925
+ description_ = value;
1926
+ bitField0_ |= 0x00000010;
1927
+ onChanged();
1928
+ return this;
1929
+ }
1930
+ /**
1931
+ * <code>optional string description = 5;</code>
1932
+ * @return This builder for chaining.
1933
+ */
1934
+ public Builder clearDescription() {
1935
+ description_ = getDefaultInstance().getDescription();
1936
+ bitField0_ = (bitField0_ & ~0x00000010);
1937
+ onChanged();
1938
+ return this;
1939
+ }
1940
+ /**
1941
+ * <code>optional string description = 5;</code>
1942
+ * @param value The bytes for description to set.
1943
+ * @return This builder for chaining.
1944
+ */
1945
+ public Builder setDescriptionBytes(
1946
+ com.google.protobuf.ByteString value) {
1947
+ if (value == null) { throw new NullPointerException(); }
1948
+ checkByteStringIsUtf8(value);
1949
+ description_ = value;
1950
+ bitField0_ |= 0x00000010;
1951
+ onChanged();
1952
+ return this;
1953
+ }
1954
+
1955
+ private java.lang.Object manufacturer_ = "";
1956
+ /**
1957
+ * <code>optional string manufacturer = 6;</code>
1958
+ * @return Whether the manufacturer field is set.
1959
+ */
1960
+ public boolean hasManufacturer() {
1961
+ return ((bitField0_ & 0x00000020) != 0);
1962
+ }
1963
+ /**
1964
+ * <code>optional string manufacturer = 6;</code>
1965
+ * @return The manufacturer.
1966
+ */
1967
+ public java.lang.String getManufacturer() {
1968
+ java.lang.Object ref = manufacturer_;
1969
+ if (!(ref instanceof java.lang.String)) {
1970
+ com.google.protobuf.ByteString bs =
1971
+ (com.google.protobuf.ByteString) ref;
1972
+ java.lang.String s = bs.toStringUtf8();
1973
+ manufacturer_ = s;
1974
+ return s;
1975
+ } else {
1976
+ return (java.lang.String) ref;
1977
+ }
1978
+ }
1979
+ /**
1980
+ * <code>optional string manufacturer = 6;</code>
1981
+ * @return The bytes for manufacturer.
1982
+ */
1983
+ public com.google.protobuf.ByteString
1984
+ getManufacturerBytes() {
1985
+ java.lang.Object ref = manufacturer_;
1986
+ if (ref instanceof String) {
1987
+ com.google.protobuf.ByteString b =
1988
+ com.google.protobuf.ByteString.copyFromUtf8(
1989
+ (java.lang.String) ref);
1990
+ manufacturer_ = b;
1991
+ return b;
1992
+ } else {
1993
+ return (com.google.protobuf.ByteString) ref;
1994
+ }
1995
+ }
1996
+ /**
1997
+ * <code>optional string manufacturer = 6;</code>
1998
+ * @param value The manufacturer to set.
1999
+ * @return This builder for chaining.
2000
+ */
2001
+ public Builder setManufacturer(
2002
+ java.lang.String value) {
2003
+ if (value == null) { throw new NullPointerException(); }
2004
+ manufacturer_ = value;
2005
+ bitField0_ |= 0x00000020;
2006
+ onChanged();
2007
+ return this;
2008
+ }
2009
+ /**
2010
+ * <code>optional string manufacturer = 6;</code>
2011
+ * @return This builder for chaining.
2012
+ */
2013
+ public Builder clearManufacturer() {
2014
+ manufacturer_ = getDefaultInstance().getManufacturer();
2015
+ bitField0_ = (bitField0_ & ~0x00000020);
2016
+ onChanged();
2017
+ return this;
2018
+ }
2019
+ /**
2020
+ * <code>optional string manufacturer = 6;</code>
2021
+ * @param value The bytes for manufacturer to set.
2022
+ * @return This builder for chaining.
2023
+ */
2024
+ public Builder setManufacturerBytes(
2025
+ com.google.protobuf.ByteString value) {
2026
+ if (value == null) { throw new NullPointerException(); }
2027
+ checkByteStringIsUtf8(value);
2028
+ manufacturer_ = value;
2029
+ bitField0_ |= 0x00000020;
2030
+ onChanged();
2031
+ return this;
2032
+ }
2033
+
2034
+ private java.lang.Object model_ = "";
2035
+ /**
2036
+ * <code>optional string model = 7;</code>
2037
+ * @return Whether the model field is set.
2038
+ */
2039
+ public boolean hasModel() {
2040
+ return ((bitField0_ & 0x00000040) != 0);
2041
+ }
2042
+ /**
2043
+ * <code>optional string model = 7;</code>
2044
+ * @return The model.
2045
+ */
2046
+ public java.lang.String getModel() {
2047
+ java.lang.Object ref = model_;
2048
+ if (!(ref instanceof java.lang.String)) {
2049
+ com.google.protobuf.ByteString bs =
2050
+ (com.google.protobuf.ByteString) ref;
2051
+ java.lang.String s = bs.toStringUtf8();
2052
+ model_ = s;
2053
+ return s;
2054
+ } else {
2055
+ return (java.lang.String) ref;
2056
+ }
2057
+ }
2058
+ /**
2059
+ * <code>optional string model = 7;</code>
2060
+ * @return The bytes for model.
2061
+ */
2062
+ public com.google.protobuf.ByteString
2063
+ getModelBytes() {
2064
+ java.lang.Object ref = model_;
2065
+ if (ref instanceof String) {
2066
+ com.google.protobuf.ByteString b =
2067
+ com.google.protobuf.ByteString.copyFromUtf8(
2068
+ (java.lang.String) ref);
2069
+ model_ = b;
2070
+ return b;
2071
+ } else {
2072
+ return (com.google.protobuf.ByteString) ref;
2073
+ }
2074
+ }
2075
+ /**
2076
+ * <code>optional string model = 7;</code>
2077
+ * @param value The model to set.
2078
+ * @return This builder for chaining.
2079
+ */
2080
+ public Builder setModel(
2081
+ java.lang.String value) {
2082
+ if (value == null) { throw new NullPointerException(); }
2083
+ model_ = value;
2084
+ bitField0_ |= 0x00000040;
2085
+ onChanged();
2086
+ return this;
2087
+ }
2088
+ /**
2089
+ * <code>optional string model = 7;</code>
2090
+ * @return This builder for chaining.
2091
+ */
2092
+ public Builder clearModel() {
2093
+ model_ = getDefaultInstance().getModel();
2094
+ bitField0_ = (bitField0_ & ~0x00000040);
2095
+ onChanged();
2096
+ return this;
2097
+ }
2098
+ /**
2099
+ * <code>optional string model = 7;</code>
2100
+ * @param value The bytes for model to set.
2101
+ * @return This builder for chaining.
2102
+ */
2103
+ public Builder setModelBytes(
2104
+ com.google.protobuf.ByteString value) {
2105
+ if (value == null) { throw new NullPointerException(); }
2106
+ checkByteStringIsUtf8(value);
2107
+ model_ = value;
2108
+ bitField0_ |= 0x00000040;
2109
+ onChanged();
2110
+ return this;
2111
+ }
2112
+
2113
+ private java.lang.Object serialNumber_ = "";
2114
+ /**
2115
+ * <code>optional string serial_number = 8;</code>
2116
+ * @return Whether the serialNumber field is set.
2117
+ */
2118
+ public boolean hasSerialNumber() {
2119
+ return ((bitField0_ & 0x00000080) != 0);
2120
+ }
2121
+ /**
2122
+ * <code>optional string serial_number = 8;</code>
2123
+ * @return The serialNumber.
2124
+ */
2125
+ public java.lang.String getSerialNumber() {
2126
+ java.lang.Object ref = serialNumber_;
2127
+ if (!(ref instanceof java.lang.String)) {
2128
+ com.google.protobuf.ByteString bs =
2129
+ (com.google.protobuf.ByteString) ref;
2130
+ java.lang.String s = bs.toStringUtf8();
2131
+ serialNumber_ = s;
2132
+ return s;
2133
+ } else {
2134
+ return (java.lang.String) ref;
2135
+ }
2136
+ }
2137
+ /**
2138
+ * <code>optional string serial_number = 8;</code>
2139
+ * @return The bytes for serialNumber.
2140
+ */
2141
+ public com.google.protobuf.ByteString
2142
+ getSerialNumberBytes() {
2143
+ java.lang.Object ref = serialNumber_;
2144
+ if (ref instanceof String) {
2145
+ com.google.protobuf.ByteString b =
2146
+ com.google.protobuf.ByteString.copyFromUtf8(
2147
+ (java.lang.String) ref);
2148
+ serialNumber_ = b;
2149
+ return b;
2150
+ } else {
2151
+ return (com.google.protobuf.ByteString) ref;
2152
+ }
2153
+ }
2154
+ /**
2155
+ * <code>optional string serial_number = 8;</code>
2156
+ * @param value The serialNumber to set.
2157
+ * @return This builder for chaining.
2158
+ */
2159
+ public Builder setSerialNumber(
2160
+ java.lang.String value) {
2161
+ if (value == null) { throw new NullPointerException(); }
2162
+ serialNumber_ = value;
2163
+ bitField0_ |= 0x00000080;
2164
+ onChanged();
2165
+ return this;
2166
+ }
2167
+ /**
2168
+ * <code>optional string serial_number = 8;</code>
2169
+ * @return This builder for chaining.
2170
+ */
2171
+ public Builder clearSerialNumber() {
2172
+ serialNumber_ = getDefaultInstance().getSerialNumber();
2173
+ bitField0_ = (bitField0_ & ~0x00000080);
2174
+ onChanged();
2175
+ return this;
2176
+ }
2177
+ /**
2178
+ * <code>optional string serial_number = 8;</code>
2179
+ * @param value The bytes for serialNumber to set.
2180
+ * @return This builder for chaining.
2181
+ */
2182
+ public Builder setSerialNumberBytes(
2183
+ com.google.protobuf.ByteString value) {
2184
+ if (value == null) { throw new NullPointerException(); }
2185
+ checkByteStringIsUtf8(value);
2186
+ serialNumber_ = value;
2187
+ bitField0_ |= 0x00000080;
2188
+ onChanged();
2189
+ return this;
2190
+ }
2191
+
2192
+ private java.lang.Object sku_ = "";
2193
+ /**
2194
+ * <code>optional string sku = 9;</code>
2195
+ * @return Whether the sku field is set.
2196
+ */
2197
+ public boolean hasSku() {
2198
+ return ((bitField0_ & 0x00000100) != 0);
2199
+ }
2200
+ /**
2201
+ * <code>optional string sku = 9;</code>
2202
+ * @return The sku.
2203
+ */
2204
+ public java.lang.String getSku() {
2205
+ java.lang.Object ref = sku_;
2206
+ if (!(ref instanceof java.lang.String)) {
2207
+ com.google.protobuf.ByteString bs =
2208
+ (com.google.protobuf.ByteString) ref;
2209
+ java.lang.String s = bs.toStringUtf8();
2210
+ sku_ = s;
2211
+ return s;
2212
+ } else {
2213
+ return (java.lang.String) ref;
2214
+ }
2215
+ }
2216
+ /**
2217
+ * <code>optional string sku = 9;</code>
2218
+ * @return The bytes for sku.
2219
+ */
2220
+ public com.google.protobuf.ByteString
2221
+ getSkuBytes() {
2222
+ java.lang.Object ref = sku_;
2223
+ if (ref instanceof String) {
2224
+ com.google.protobuf.ByteString b =
2225
+ com.google.protobuf.ByteString.copyFromUtf8(
2226
+ (java.lang.String) ref);
2227
+ sku_ = b;
2228
+ return b;
2229
+ } else {
2230
+ return (com.google.protobuf.ByteString) ref;
2231
+ }
2232
+ }
2233
+ /**
2234
+ * <code>optional string sku = 9;</code>
2235
+ * @param value The sku to set.
2236
+ * @return This builder for chaining.
2237
+ */
2238
+ public Builder setSku(
2239
+ java.lang.String value) {
2240
+ if (value == null) { throw new NullPointerException(); }
2241
+ sku_ = value;
2242
+ bitField0_ |= 0x00000100;
2243
+ onChanged();
2244
+ return this;
2245
+ }
2246
+ /**
2247
+ * <code>optional string sku = 9;</code>
2248
+ * @return This builder for chaining.
2249
+ */
2250
+ public Builder clearSku() {
2251
+ sku_ = getDefaultInstance().getSku();
2252
+ bitField0_ = (bitField0_ & ~0x00000100);
2253
+ onChanged();
2254
+ return this;
2255
+ }
2256
+ /**
2257
+ * <code>optional string sku = 9;</code>
2258
+ * @param value The bytes for sku to set.
2259
+ * @return This builder for chaining.
2260
+ */
2261
+ public Builder setSkuBytes(
2262
+ com.google.protobuf.ByteString value) {
2263
+ if (value == null) { throw new NullPointerException(); }
2264
+ checkByteStringIsUtf8(value);
2265
+ sku_ = value;
2266
+ bitField0_ |= 0x00000100;
2267
+ onChanged();
2268
+ return this;
2269
+ }
2270
+
2271
+ private java.lang.Object contact_ = "";
2272
+ /**
2273
+ * <code>optional string contact = 10;</code>
2274
+ * @return Whether the contact field is set.
2275
+ */
2276
+ public boolean hasContact() {
2277
+ return ((bitField0_ & 0x00000200) != 0);
2278
+ }
2279
+ /**
2280
+ * <code>optional string contact = 10;</code>
2281
+ * @return The contact.
2282
+ */
2283
+ public java.lang.String getContact() {
2284
+ java.lang.Object ref = contact_;
2285
+ if (!(ref instanceof java.lang.String)) {
2286
+ com.google.protobuf.ByteString bs =
2287
+ (com.google.protobuf.ByteString) ref;
2288
+ java.lang.String s = bs.toStringUtf8();
2289
+ contact_ = s;
2290
+ return s;
2291
+ } else {
2292
+ return (java.lang.String) ref;
2293
+ }
2294
+ }
2295
+ /**
2296
+ * <code>optional string contact = 10;</code>
2297
+ * @return The bytes for contact.
2298
+ */
2299
+ public com.google.protobuf.ByteString
2300
+ getContactBytes() {
2301
+ java.lang.Object ref = contact_;
2302
+ if (ref instanceof String) {
2303
+ com.google.protobuf.ByteString b =
2304
+ com.google.protobuf.ByteString.copyFromUtf8(
2305
+ (java.lang.String) ref);
2306
+ contact_ = b;
2307
+ return b;
2308
+ } else {
2309
+ return (com.google.protobuf.ByteString) ref;
2310
+ }
2311
+ }
2312
+ /**
2313
+ * <code>optional string contact = 10;</code>
2314
+ * @param value The contact to set.
2315
+ * @return This builder for chaining.
2316
+ */
2317
+ public Builder setContact(
2318
+ java.lang.String value) {
2319
+ if (value == null) { throw new NullPointerException(); }
2320
+ contact_ = value;
2321
+ bitField0_ |= 0x00000200;
2322
+ onChanged();
2323
+ return this;
2324
+ }
2325
+ /**
2326
+ * <code>optional string contact = 10;</code>
2327
+ * @return This builder for chaining.
2328
+ */
2329
+ public Builder clearContact() {
2330
+ contact_ = getDefaultInstance().getContact();
2331
+ bitField0_ = (bitField0_ & ~0x00000200);
2332
+ onChanged();
2333
+ return this;
2334
+ }
2335
+ /**
2336
+ * <code>optional string contact = 10;</code>
2337
+ * @param value The bytes for contact to set.
2338
+ * @return This builder for chaining.
2339
+ */
2340
+ public Builder setContactBytes(
2341
+ com.google.protobuf.ByteString value) {
2342
+ if (value == null) { throw new NullPointerException(); }
2343
+ checkByteStringIsUtf8(value);
2344
+ contact_ = value;
2345
+ bitField0_ |= 0x00000200;
2346
+ onChanged();
2347
+ return this;
2348
+ }
2349
+
2350
+ private java.lang.Object location_ = "";
2351
+ /**
2352
+ * <code>optional string location = 11;</code>
2353
+ * @return Whether the location field is set.
2354
+ */
2355
+ public boolean hasLocation() {
2356
+ return ((bitField0_ & 0x00000400) != 0);
2357
+ }
2358
+ /**
2359
+ * <code>optional string location = 11;</code>
2360
+ * @return The location.
2361
+ */
2362
+ public java.lang.String getLocation() {
2363
+ java.lang.Object ref = location_;
2364
+ if (!(ref instanceof java.lang.String)) {
2365
+ com.google.protobuf.ByteString bs =
2366
+ (com.google.protobuf.ByteString) ref;
2367
+ java.lang.String s = bs.toStringUtf8();
2368
+ location_ = s;
2369
+ return s;
2370
+ } else {
2371
+ return (java.lang.String) ref;
2372
+ }
2373
+ }
2374
+ /**
2375
+ * <code>optional string location = 11;</code>
2376
+ * @return The bytes for location.
2377
+ */
2378
+ public com.google.protobuf.ByteString
2379
+ getLocationBytes() {
2380
+ java.lang.Object ref = location_;
2381
+ if (ref instanceof String) {
2382
+ com.google.protobuf.ByteString b =
2383
+ com.google.protobuf.ByteString.copyFromUtf8(
2384
+ (java.lang.String) ref);
2385
+ location_ = b;
2386
+ return b;
2387
+ } else {
2388
+ return (com.google.protobuf.ByteString) ref;
2389
+ }
2390
+ }
2391
+ /**
2392
+ * <code>optional string location = 11;</code>
2393
+ * @param value The location to set.
2394
+ * @return This builder for chaining.
2395
+ */
2396
+ public Builder setLocation(
2397
+ java.lang.String value) {
2398
+ if (value == null) { throw new NullPointerException(); }
2399
+ location_ = value;
2400
+ bitField0_ |= 0x00000400;
2401
+ onChanged();
2402
+ return this;
2403
+ }
2404
+ /**
2405
+ * <code>optional string location = 11;</code>
2406
+ * @return This builder for chaining.
2407
+ */
2408
+ public Builder clearLocation() {
2409
+ location_ = getDefaultInstance().getLocation();
2410
+ bitField0_ = (bitField0_ & ~0x00000400);
2411
+ onChanged();
2412
+ return this;
2413
+ }
2414
+ /**
2415
+ * <code>optional string location = 11;</code>
2416
+ * @param value The bytes for location to set.
2417
+ * @return This builder for chaining.
2418
+ */
2419
+ public Builder setLocationBytes(
2420
+ com.google.protobuf.ByteString value) {
2421
+ if (value == null) { throw new NullPointerException(); }
2422
+ checkByteStringIsUtf8(value);
2423
+ location_ = value;
2424
+ bitField0_ |= 0x00000400;
2425
+ onChanged();
2426
+ return this;
2427
+ }
2428
+
2429
+ private java.lang.Object ipAddress_ = "";
2430
+ /**
2431
+ * <code>optional string ip_address = 12;</code>
2432
+ * @return Whether the ipAddress field is set.
2433
+ */
2434
+ public boolean hasIpAddress() {
2435
+ return ((bitField0_ & 0x00000800) != 0);
2436
+ }
2437
+ /**
2438
+ * <code>optional string ip_address = 12;</code>
2439
+ * @return The ipAddress.
2440
+ */
2441
+ public java.lang.String getIpAddress() {
2442
+ java.lang.Object ref = ipAddress_;
2443
+ if (!(ref instanceof java.lang.String)) {
2444
+ com.google.protobuf.ByteString bs =
2445
+ (com.google.protobuf.ByteString) ref;
2446
+ java.lang.String s = bs.toStringUtf8();
2447
+ ipAddress_ = s;
2448
+ return s;
2449
+ } else {
2450
+ return (java.lang.String) ref;
2451
+ }
2452
+ }
2453
+ /**
2454
+ * <code>optional string ip_address = 12;</code>
2455
+ * @return The bytes for ipAddress.
2456
+ */
2457
+ public com.google.protobuf.ByteString
2458
+ getIpAddressBytes() {
2459
+ java.lang.Object ref = ipAddress_;
2460
+ if (ref instanceof String) {
2461
+ com.google.protobuf.ByteString b =
2462
+ com.google.protobuf.ByteString.copyFromUtf8(
2463
+ (java.lang.String) ref);
2464
+ ipAddress_ = b;
2465
+ return b;
2466
+ } else {
2467
+ return (com.google.protobuf.ByteString) ref;
2468
+ }
2469
+ }
2470
+ /**
2471
+ * <code>optional string ip_address = 12;</code>
2472
+ * @param value The ipAddress to set.
2473
+ * @return This builder for chaining.
2474
+ */
2475
+ public Builder setIpAddress(
2476
+ java.lang.String value) {
2477
+ if (value == null) { throw new NullPointerException(); }
2478
+ ipAddress_ = value;
2479
+ bitField0_ |= 0x00000800;
2480
+ onChanged();
2481
+ return this;
2482
+ }
2483
+ /**
2484
+ * <code>optional string ip_address = 12;</code>
2485
+ * @return This builder for chaining.
2486
+ */
2487
+ public Builder clearIpAddress() {
2488
+ ipAddress_ = getDefaultInstance().getIpAddress();
2489
+ bitField0_ = (bitField0_ & ~0x00000800);
2490
+ onChanged();
2491
+ return this;
2492
+ }
2493
+ /**
2494
+ * <code>optional string ip_address = 12;</code>
2495
+ * @param value The bytes for ipAddress to set.
2496
+ * @return This builder for chaining.
2497
+ */
2498
+ public Builder setIpAddressBytes(
2499
+ com.google.protobuf.ByteString value) {
2500
+ if (value == null) { throw new NullPointerException(); }
2501
+ checkByteStringIsUtf8(value);
2502
+ ipAddress_ = value;
2503
+ bitField0_ |= 0x00000800;
2504
+ onChanged();
2505
+ return this;
2506
+ }
2507
+
2508
+ private java.lang.Object purchaseDate_ = "";
2509
+ /**
2510
+ * <code>optional string purchase_date = 13;</code>
2511
+ * @return Whether the purchaseDate field is set.
2512
+ */
2513
+ public boolean hasPurchaseDate() {
2514
+ return ((bitField0_ & 0x00001000) != 0);
2515
+ }
2516
+ /**
2517
+ * <code>optional string purchase_date = 13;</code>
2518
+ * @return The purchaseDate.
2519
+ */
2520
+ public java.lang.String getPurchaseDate() {
2521
+ java.lang.Object ref = purchaseDate_;
2522
+ if (!(ref instanceof java.lang.String)) {
2523
+ com.google.protobuf.ByteString bs =
2524
+ (com.google.protobuf.ByteString) ref;
2525
+ java.lang.String s = bs.toStringUtf8();
2526
+ purchaseDate_ = s;
2527
+ return s;
2528
+ } else {
2529
+ return (java.lang.String) ref;
2530
+ }
2531
+ }
2532
+ /**
2533
+ * <code>optional string purchase_date = 13;</code>
2534
+ * @return The bytes for purchaseDate.
2535
+ */
2536
+ public com.google.protobuf.ByteString
2537
+ getPurchaseDateBytes() {
2538
+ java.lang.Object ref = purchaseDate_;
2539
+ if (ref instanceof String) {
2540
+ com.google.protobuf.ByteString b =
2541
+ com.google.protobuf.ByteString.copyFromUtf8(
2542
+ (java.lang.String) ref);
2543
+ purchaseDate_ = b;
2544
+ return b;
2545
+ } else {
2546
+ return (com.google.protobuf.ByteString) ref;
2547
+ }
2548
+ }
2549
+ /**
2550
+ * <code>optional string purchase_date = 13;</code>
2551
+ * @param value The purchaseDate to set.
2552
+ * @return This builder for chaining.
2553
+ */
2554
+ public Builder setPurchaseDate(
2555
+ java.lang.String value) {
2556
+ if (value == null) { throw new NullPointerException(); }
2557
+ purchaseDate_ = value;
2558
+ bitField0_ |= 0x00001000;
2559
+ onChanged();
2560
+ return this;
2561
+ }
2562
+ /**
2563
+ * <code>optional string purchase_date = 13;</code>
2564
+ * @return This builder for chaining.
2565
+ */
2566
+ public Builder clearPurchaseDate() {
2567
+ purchaseDate_ = getDefaultInstance().getPurchaseDate();
2568
+ bitField0_ = (bitField0_ & ~0x00001000);
2569
+ onChanged();
2570
+ return this;
2571
+ }
2572
+ /**
2573
+ * <code>optional string purchase_date = 13;</code>
2574
+ * @param value The bytes for purchaseDate to set.
2575
+ * @return This builder for chaining.
2576
+ */
2577
+ public Builder setPurchaseDateBytes(
2578
+ com.google.protobuf.ByteString value) {
2579
+ if (value == null) { throw new NullPointerException(); }
2580
+ checkByteStringIsUtf8(value);
2581
+ purchaseDate_ = value;
2582
+ bitField0_ |= 0x00001000;
2583
+ onChanged();
2584
+ return this;
2585
+ }
2586
+
2587
+ private java.lang.Object warrantyDate_ = "";
2588
+ /**
2589
+ * <code>optional string warranty_date = 14;</code>
2590
+ * @return Whether the warrantyDate field is set.
2591
+ */
2592
+ public boolean hasWarrantyDate() {
2593
+ return ((bitField0_ & 0x00002000) != 0);
2594
+ }
2595
+ /**
2596
+ * <code>optional string warranty_date = 14;</code>
2597
+ * @return The warrantyDate.
2598
+ */
2599
+ public java.lang.String getWarrantyDate() {
2600
+ java.lang.Object ref = warrantyDate_;
2601
+ if (!(ref instanceof java.lang.String)) {
2602
+ com.google.protobuf.ByteString bs =
2603
+ (com.google.protobuf.ByteString) ref;
2604
+ java.lang.String s = bs.toStringUtf8();
2605
+ warrantyDate_ = s;
2606
+ return s;
2607
+ } else {
2608
+ return (java.lang.String) ref;
2609
+ }
2610
+ }
2611
+ /**
2612
+ * <code>optional string warranty_date = 14;</code>
2613
+ * @return The bytes for warrantyDate.
2614
+ */
2615
+ public com.google.protobuf.ByteString
2616
+ getWarrantyDateBytes() {
2617
+ java.lang.Object ref = warrantyDate_;
2618
+ if (ref instanceof String) {
2619
+ com.google.protobuf.ByteString b =
2620
+ com.google.protobuf.ByteString.copyFromUtf8(
2621
+ (java.lang.String) ref);
2622
+ warrantyDate_ = b;
2623
+ return b;
2624
+ } else {
2625
+ return (com.google.protobuf.ByteString) ref;
2626
+ }
2627
+ }
2628
+ /**
2629
+ * <code>optional string warranty_date = 14;</code>
2630
+ * @param value The warrantyDate to set.
2631
+ * @return This builder for chaining.
2632
+ */
2633
+ public Builder setWarrantyDate(
2634
+ java.lang.String value) {
2635
+ if (value == null) { throw new NullPointerException(); }
2636
+ warrantyDate_ = value;
2637
+ bitField0_ |= 0x00002000;
2638
+ onChanged();
2639
+ return this;
2640
+ }
2641
+ /**
2642
+ * <code>optional string warranty_date = 14;</code>
2643
+ * @return This builder for chaining.
2644
+ */
2645
+ public Builder clearWarrantyDate() {
2646
+ warrantyDate_ = getDefaultInstance().getWarrantyDate();
2647
+ bitField0_ = (bitField0_ & ~0x00002000);
2648
+ onChanged();
2649
+ return this;
2650
+ }
2651
+ /**
2652
+ * <code>optional string warranty_date = 14;</code>
2653
+ * @param value The bytes for warrantyDate to set.
2654
+ * @return This builder for chaining.
2655
+ */
2656
+ public Builder setWarrantyDateBytes(
2657
+ com.google.protobuf.ByteString value) {
2658
+ if (value == null) { throw new NullPointerException(); }
2659
+ checkByteStringIsUtf8(value);
2660
+ warrantyDate_ = value;
2661
+ bitField0_ |= 0x00002000;
2662
+ onChanged();
2663
+ return this;
2664
+ }
2665
+
2666
+ private java.lang.Object moduleType_ = "";
2667
+ /**
2668
+ * <code>optional string module_type = 15;</code>
2669
+ * @return Whether the moduleType field is set.
2670
+ */
2671
+ public boolean hasModuleType() {
2672
+ return ((bitField0_ & 0x00004000) != 0);
2673
+ }
2674
+ /**
2675
+ * <code>optional string module_type = 15;</code>
2676
+ * @return The moduleType.
2677
+ */
2678
+ public java.lang.String getModuleType() {
2679
+ java.lang.Object ref = moduleType_;
2680
+ if (!(ref instanceof java.lang.String)) {
2681
+ com.google.protobuf.ByteString bs =
2682
+ (com.google.protobuf.ByteString) ref;
2683
+ java.lang.String s = bs.toStringUtf8();
2684
+ moduleType_ = s;
2685
+ return s;
2686
+ } else {
2687
+ return (java.lang.String) ref;
2688
+ }
2689
+ }
2690
+ /**
2691
+ * <code>optional string module_type = 15;</code>
2692
+ * @return The bytes for moduleType.
2693
+ */
2694
+ public com.google.protobuf.ByteString
2695
+ getModuleTypeBytes() {
2696
+ java.lang.Object ref = moduleType_;
2697
+ if (ref instanceof String) {
2698
+ com.google.protobuf.ByteString b =
2699
+ com.google.protobuf.ByteString.copyFromUtf8(
2700
+ (java.lang.String) ref);
2701
+ moduleType_ = b;
2702
+ return b;
2703
+ } else {
2704
+ return (com.google.protobuf.ByteString) ref;
2705
+ }
2706
+ }
2707
+ /**
2708
+ * <code>optional string module_type = 15;</code>
2709
+ * @param value The moduleType to set.
2710
+ * @return This builder for chaining.
2711
+ */
2712
+ public Builder setModuleType(
2713
+ java.lang.String value) {
2714
+ if (value == null) { throw new NullPointerException(); }
2715
+ moduleType_ = value;
2716
+ bitField0_ |= 0x00004000;
2717
+ onChanged();
2718
+ return this;
2719
+ }
2720
+ /**
2721
+ * <code>optional string module_type = 15;</code>
2722
+ * @return This builder for chaining.
2723
+ */
2724
+ public Builder clearModuleType() {
2725
+ moduleType_ = getDefaultInstance().getModuleType();
2726
+ bitField0_ = (bitField0_ & ~0x00004000);
2727
+ onChanged();
2728
+ return this;
2729
+ }
2730
+ /**
2731
+ * <code>optional string module_type = 15;</code>
2732
+ * @param value The bytes for moduleType to set.
2733
+ * @return This builder for chaining.
2734
+ */
2735
+ public Builder setModuleTypeBytes(
2736
+ com.google.protobuf.ByteString value) {
2737
+ if (value == null) { throw new NullPointerException(); }
2738
+ checkByteStringIsUtf8(value);
2739
+ moduleType_ = value;
2740
+ bitField0_ |= 0x00004000;
2741
+ onChanged();
2742
+ return this;
2743
+ }
2744
+
2745
+ private java.lang.Object firmware_ = "";
2746
+ /**
2747
+ * <code>optional string firmware = 16;</code>
2748
+ * @return Whether the firmware field is set.
2749
+ */
2750
+ public boolean hasFirmware() {
2751
+ return ((bitField0_ & 0x00008000) != 0);
2752
+ }
2753
+ /**
2754
+ * <code>optional string firmware = 16;</code>
2755
+ * @return The firmware.
2756
+ */
2757
+ public java.lang.String getFirmware() {
2758
+ java.lang.Object ref = firmware_;
2759
+ if (!(ref instanceof java.lang.String)) {
2760
+ com.google.protobuf.ByteString bs =
2761
+ (com.google.protobuf.ByteString) ref;
2762
+ java.lang.String s = bs.toStringUtf8();
2763
+ firmware_ = s;
2764
+ return s;
2765
+ } else {
2766
+ return (java.lang.String) ref;
2767
+ }
2768
+ }
2769
+ /**
2770
+ * <code>optional string firmware = 16;</code>
2771
+ * @return The bytes for firmware.
2772
+ */
2773
+ public com.google.protobuf.ByteString
2774
+ getFirmwareBytes() {
2775
+ java.lang.Object ref = firmware_;
2776
+ if (ref instanceof String) {
2777
+ com.google.protobuf.ByteString b =
2778
+ com.google.protobuf.ByteString.copyFromUtf8(
2779
+ (java.lang.String) ref);
2780
+ firmware_ = b;
2781
+ return b;
2782
+ } else {
2783
+ return (com.google.protobuf.ByteString) ref;
2784
+ }
2785
+ }
2786
+ /**
2787
+ * <code>optional string firmware = 16;</code>
2788
+ * @param value The firmware to set.
2789
+ * @return This builder for chaining.
2790
+ */
2791
+ public Builder setFirmware(
2792
+ java.lang.String value) {
2793
+ if (value == null) { throw new NullPointerException(); }
2794
+ firmware_ = value;
2795
+ bitField0_ |= 0x00008000;
2796
+ onChanged();
2797
+ return this;
2798
+ }
2799
+ /**
2800
+ * <code>optional string firmware = 16;</code>
2801
+ * @return This builder for chaining.
2802
+ */
2803
+ public Builder clearFirmware() {
2804
+ firmware_ = getDefaultInstance().getFirmware();
2805
+ bitField0_ = (bitField0_ & ~0x00008000);
2806
+ onChanged();
2807
+ return this;
2808
+ }
2809
+ /**
2810
+ * <code>optional string firmware = 16;</code>
2811
+ * @param value The bytes for firmware to set.
2812
+ * @return This builder for chaining.
2813
+ */
2814
+ public Builder setFirmwareBytes(
2815
+ com.google.protobuf.ByteString value) {
2816
+ if (value == null) { throw new NullPointerException(); }
2817
+ checkByteStringIsUtf8(value);
2818
+ firmware_ = value;
2819
+ bitField0_ |= 0x00008000;
2820
+ onChanged();
2821
+ return this;
2822
+ }
2823
+ @java.lang.Override
2824
+ public final Builder setUnknownFields(
2825
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
2826
+ return super.setUnknownFields(unknownFields);
2827
+ }
2828
+
2829
+ @java.lang.Override
2830
+ public final Builder mergeUnknownFields(
2831
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
2832
+ return super.mergeUnknownFields(unknownFields);
2833
+ }
2834
+
2835
+
2836
+ // @@protoc_insertion_point(builder_scope:lansweeper.integrations.assets.v1.LockedFields)
2837
+ }
2838
+
2839
+ // @@protoc_insertion_point(class_scope:lansweeper.integrations.assets.v1.LockedFields)
2840
+ private static final lansweeper.integrations.assets.v1.LockedFields DEFAULT_INSTANCE;
2841
+ static {
2842
+ DEFAULT_INSTANCE = new lansweeper.integrations.assets.v1.LockedFields();
2843
+ }
2844
+
2845
+ public static lansweeper.integrations.assets.v1.LockedFields getDefaultInstance() {
2846
+ return DEFAULT_INSTANCE;
2847
+ }
2848
+
2849
+ private static final com.google.protobuf.Parser<LockedFields>
2850
+ PARSER = new com.google.protobuf.AbstractParser<LockedFields>() {
2851
+ @java.lang.Override
2852
+ public LockedFields parsePartialFrom(
2853
+ com.google.protobuf.CodedInputStream input,
2854
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2855
+ throws com.google.protobuf.InvalidProtocolBufferException {
2856
+ Builder builder = newBuilder();
2857
+ try {
2858
+ builder.mergeFrom(input, extensionRegistry);
2859
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2860
+ throw e.setUnfinishedMessage(builder.buildPartial());
2861
+ } catch (com.google.protobuf.UninitializedMessageException e) {
2862
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2863
+ } catch (java.io.IOException e) {
2864
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
2865
+ .setUnfinishedMessage(builder.buildPartial());
2866
+ }
2867
+ return builder.buildPartial();
2868
+ }
2869
+ };
2870
+
2871
+ public static com.google.protobuf.Parser<LockedFields> parser() {
2872
+ return PARSER;
2873
+ }
2874
+
2875
+ @java.lang.Override
2876
+ public com.google.protobuf.Parser<LockedFields> getParserForType() {
2877
+ return PARSER;
2878
+ }
2879
+
2880
+ @java.lang.Override
2881
+ public lansweeper.integrations.assets.v1.LockedFields getDefaultInstanceForType() {
2882
+ return DEFAULT_INSTANCE;
2883
+ }
2884
+
2885
+ }
2886
+