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