@lansweeper/data-platform-outbound-grpc 0.6.1 → 0.7.0

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