@lansweeper/data-platform-outbound-grpc 0.8.3 → 0.8.5

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 (41) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/gen-proto/image.json +1 -1
  3. package/gen-proto/outbound_pb.d.ts +125 -0
  4. package/gen-proto/outbound_pb.js +1497 -469
  5. package/generated-go/outbound.pb.go +3971 -3661
  6. package/java.json +1 -1
  7. package/model/pom.xml +1 -1
  8. package/model/src/main/proto/outbound.proto +29 -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/LegacyFields$1.class +0 -0
  14. package/model/target/classes/com/lansweeper/dp/outbound/v1/LegacyFields$Builder.class +0 -0
  15. package/model/target/classes/com/lansweeper/dp/outbound/v1/LegacyFields.class +0 -0
  16. package/model/target/classes/com/lansweeper/dp/outbound/v1/LegacyFieldsOrBuilder.class +0 -0
  17. package/model/target/classes/com/lansweeper/dp/outbound/v1/Outbound.class +0 -0
  18. package/model/target/classes/com/lansweeper/dp/outbound/v1/ScanSection$1.class +0 -0
  19. package/model/target/classes/com/lansweeper/dp/outbound/v1/ScanSection$Builder.class +0 -0
  20. package/model/target/classes/com/lansweeper/dp/outbound/v1/ScanSection.class +0 -0
  21. package/model/target/classes/com/lansweeper/dp/outbound/v1/ScanSectionOrBuilder.class +0 -0
  22. package/model/target/classes/outbound.proto +29 -0
  23. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Asset.java +1111 -435
  24. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/AssetOrBuilder.java +71 -0
  25. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/LegacyFields.java +1351 -0
  26. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/LegacyFieldsOrBuilder.java +85 -0
  27. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Outbound.java +4012 -3968
  28. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/ScanSection.java +1814 -0
  29. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/ScanSectionOrBuilder.java +194 -0
  30. package/model/target/maven-archiver/pom.properties +2 -2
  31. package/model/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +8 -0
  32. package/model/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +4 -0
  33. package/model/target/{outbound-model-0.8.2-sources.jar → outbound-model-0.8.4-sources.jar} +0 -0
  34. package/model/target/{outbound-model-0.8.2.jar → outbound-model-0.8.4.jar} +0 -0
  35. package/package.json +2 -2
  36. package/pom.xml +1 -1
  37. package/proto/outbound.proto +29 -0
  38. package/service/pom.xml +1 -1
  39. package/service/target/maven-archiver/pom.properties +2 -2
  40. package/service/target/{outbound-service-0.8.2-sources.jar → outbound-service-0.8.4-sources.jar} +0 -0
  41. package/service/target/{outbound-service-0.8.2.jar → outbound-service-0.8.4.jar} +0 -0
@@ -0,0 +1,1814 @@
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
+ * Scan section.
11
+ * </pre>
12
+ *
13
+ * Protobuf type {@code com.lansweeper.dp.outbound.v1.ScanSection}
14
+ */
15
+ public final class ScanSection extends
16
+ com.google.protobuf.GeneratedMessageV3 implements
17
+ // @@protoc_insertion_point(message_implements:com.lansweeper.dp.outbound.v1.ScanSection)
18
+ ScanSectionOrBuilder {
19
+ private static final long serialVersionUID = 0L;
20
+ // Use ScanSection.newBuilder() to construct.
21
+ private ScanSection(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
22
+ super(builder);
23
+ }
24
+ private ScanSection() {
25
+ name_ = "";
26
+ source_ = "";
27
+ errors_ =
28
+ com.google.protobuf.LazyStringArrayList.emptyList();
29
+ hash_ = "";
30
+ timezone_ = "";
31
+ }
32
+
33
+ @java.lang.Override
34
+ @SuppressWarnings({"unused"})
35
+ protected java.lang.Object newInstance(
36
+ UnusedPrivateParameter unused) {
37
+ return new ScanSection();
38
+ }
39
+
40
+ public static final com.google.protobuf.Descriptors.Descriptor
41
+ getDescriptor() {
42
+ return com.lansweeper.dp.outbound.v1.Outbound.internal_static_com_lansweeper_dp_outbound_v1_ScanSection_descriptor;
43
+ }
44
+
45
+ @java.lang.Override
46
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
47
+ internalGetFieldAccessorTable() {
48
+ return com.lansweeper.dp.outbound.v1.Outbound.internal_static_com_lansweeper_dp_outbound_v1_ScanSection_fieldAccessorTable
49
+ .ensureFieldAccessorsInitialized(
50
+ com.lansweeper.dp.outbound.v1.ScanSection.class, com.lansweeper.dp.outbound.v1.ScanSection.Builder.class);
51
+ }
52
+
53
+ private int bitField0_;
54
+ public static final int KEY_FIELD_NUMBER = 1;
55
+ private int key_ = 0;
56
+ /**
57
+ * <code>int32 key = 1;</code>
58
+ * @return The key.
59
+ */
60
+ @java.lang.Override
61
+ public int getKey() {
62
+ return key_;
63
+ }
64
+
65
+ public static final int NAME_FIELD_NUMBER = 2;
66
+ @SuppressWarnings("serial")
67
+ private volatile java.lang.Object name_ = "";
68
+ /**
69
+ * <pre>
70
+ * e.g.: Windows:BasicInfo
71
+ * </pre>
72
+ *
73
+ * <code>optional string name = 2;</code>
74
+ * @return Whether the name field is set.
75
+ */
76
+ @java.lang.Override
77
+ public boolean hasName() {
78
+ return ((bitField0_ & 0x00000001) != 0);
79
+ }
80
+ /**
81
+ * <pre>
82
+ * e.g.: Windows:BasicInfo
83
+ * </pre>
84
+ *
85
+ * <code>optional string name = 2;</code>
86
+ * @return The name.
87
+ */
88
+ @java.lang.Override
89
+ public java.lang.String getName() {
90
+ java.lang.Object ref = name_;
91
+ if (ref instanceof java.lang.String) {
92
+ return (java.lang.String) ref;
93
+ } else {
94
+ com.google.protobuf.ByteString bs =
95
+ (com.google.protobuf.ByteString) ref;
96
+ java.lang.String s = bs.toStringUtf8();
97
+ name_ = s;
98
+ return s;
99
+ }
100
+ }
101
+ /**
102
+ * <pre>
103
+ * e.g.: Windows:BasicInfo
104
+ * </pre>
105
+ *
106
+ * <code>optional string name = 2;</code>
107
+ * @return The bytes for name.
108
+ */
109
+ @java.lang.Override
110
+ public com.google.protobuf.ByteString
111
+ getNameBytes() {
112
+ java.lang.Object ref = name_;
113
+ if (ref instanceof java.lang.String) {
114
+ com.google.protobuf.ByteString b =
115
+ com.google.protobuf.ByteString.copyFromUtf8(
116
+ (java.lang.String) ref);
117
+ name_ = b;
118
+ return b;
119
+ } else {
120
+ return (com.google.protobuf.ByteString) ref;
121
+ }
122
+ }
123
+
124
+ public static final int SOURCE_FIELD_NUMBER = 3;
125
+ @SuppressWarnings("serial")
126
+ private volatile java.lang.Object source_ = "";
127
+ /**
128
+ * <pre>
129
+ * e.g.: Wmi.Registry.WinApi
130
+ * </pre>
131
+ *
132
+ * <code>optional string source = 3;</code>
133
+ * @return Whether the source field is set.
134
+ */
135
+ @java.lang.Override
136
+ public boolean hasSource() {
137
+ return ((bitField0_ & 0x00000002) != 0);
138
+ }
139
+ /**
140
+ * <pre>
141
+ * e.g.: Wmi.Registry.WinApi
142
+ * </pre>
143
+ *
144
+ * <code>optional string source = 3;</code>
145
+ * @return The source.
146
+ */
147
+ @java.lang.Override
148
+ public java.lang.String getSource() {
149
+ java.lang.Object ref = source_;
150
+ if (ref instanceof java.lang.String) {
151
+ return (java.lang.String) ref;
152
+ } else {
153
+ com.google.protobuf.ByteString bs =
154
+ (com.google.protobuf.ByteString) ref;
155
+ java.lang.String s = bs.toStringUtf8();
156
+ source_ = s;
157
+ return s;
158
+ }
159
+ }
160
+ /**
161
+ * <pre>
162
+ * e.g.: Wmi.Registry.WinApi
163
+ * </pre>
164
+ *
165
+ * <code>optional string source = 3;</code>
166
+ * @return The bytes for source.
167
+ */
168
+ @java.lang.Override
169
+ public com.google.protobuf.ByteString
170
+ getSourceBytes() {
171
+ java.lang.Object ref = source_;
172
+ if (ref instanceof java.lang.String) {
173
+ com.google.protobuf.ByteString b =
174
+ com.google.protobuf.ByteString.copyFromUtf8(
175
+ (java.lang.String) ref);
176
+ source_ = b;
177
+ return b;
178
+ } else {
179
+ return (com.google.protobuf.ByteString) ref;
180
+ }
181
+ }
182
+
183
+ public static final int SCAN_TIME_FIELD_NUMBER = 4;
184
+ private com.google.protobuf.Timestamp scanTime_;
185
+ /**
186
+ * <code>optional .google.protobuf.Timestamp scan_time = 4;</code>
187
+ * @return Whether the scanTime field is set.
188
+ */
189
+ @java.lang.Override
190
+ public boolean hasScanTime() {
191
+ return ((bitField0_ & 0x00000004) != 0);
192
+ }
193
+ /**
194
+ * <code>optional .google.protobuf.Timestamp scan_time = 4;</code>
195
+ * @return The scanTime.
196
+ */
197
+ @java.lang.Override
198
+ public com.google.protobuf.Timestamp getScanTime() {
199
+ return scanTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scanTime_;
200
+ }
201
+ /**
202
+ * <code>optional .google.protobuf.Timestamp scan_time = 4;</code>
203
+ */
204
+ @java.lang.Override
205
+ public com.google.protobuf.TimestampOrBuilder getScanTimeOrBuilder() {
206
+ return scanTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scanTime_;
207
+ }
208
+
209
+ public static final int DURATION_FIELD_NUMBER = 5;
210
+ private long duration_ = 0L;
211
+ /**
212
+ * <code>optional int64 duration = 5;</code>
213
+ * @return Whether the duration field is set.
214
+ */
215
+ @java.lang.Override
216
+ public boolean hasDuration() {
217
+ return ((bitField0_ & 0x00000008) != 0);
218
+ }
219
+ /**
220
+ * <code>optional int64 duration = 5;</code>
221
+ * @return The duration.
222
+ */
223
+ @java.lang.Override
224
+ public long getDuration() {
225
+ return duration_;
226
+ }
227
+
228
+ public static final int ERRORS_FIELD_NUMBER = 6;
229
+ @SuppressWarnings("serial")
230
+ private com.google.protobuf.LazyStringArrayList errors_ =
231
+ com.google.protobuf.LazyStringArrayList.emptyList();
232
+ /**
233
+ * <code>repeated string errors = 6;</code>
234
+ * @return A list containing the errors.
235
+ */
236
+ public com.google.protobuf.ProtocolStringList
237
+ getErrorsList() {
238
+ return errors_;
239
+ }
240
+ /**
241
+ * <code>repeated string errors = 6;</code>
242
+ * @return The count of errors.
243
+ */
244
+ public int getErrorsCount() {
245
+ return errors_.size();
246
+ }
247
+ /**
248
+ * <code>repeated string errors = 6;</code>
249
+ * @param index The index of the element to return.
250
+ * @return The errors at the given index.
251
+ */
252
+ public java.lang.String getErrors(int index) {
253
+ return errors_.get(index);
254
+ }
255
+ /**
256
+ * <code>repeated string errors = 6;</code>
257
+ * @param index The index of the value to return.
258
+ * @return The bytes of the errors at the given index.
259
+ */
260
+ public com.google.protobuf.ByteString
261
+ getErrorsBytes(int index) {
262
+ return errors_.getByteString(index);
263
+ }
264
+
265
+ public static final int SUCCESS_FIELD_NUMBER = 7;
266
+ private boolean success_ = false;
267
+ /**
268
+ * <code>optional bool success = 7;</code>
269
+ * @return Whether the success field is set.
270
+ */
271
+ @java.lang.Override
272
+ public boolean hasSuccess() {
273
+ return ((bitField0_ & 0x00000010) != 0);
274
+ }
275
+ /**
276
+ * <code>optional bool success = 7;</code>
277
+ * @return The success.
278
+ */
279
+ @java.lang.Override
280
+ public boolean getSuccess() {
281
+ return success_;
282
+ }
283
+
284
+ public static final int HASH_FIELD_NUMBER = 8;
285
+ @SuppressWarnings("serial")
286
+ private volatile java.lang.Object hash_ = "";
287
+ /**
288
+ * <pre>
289
+ *algorithm + value
290
+ * </pre>
291
+ *
292
+ * <code>optional string hash = 8;</code>
293
+ * @return Whether the hash field is set.
294
+ */
295
+ @java.lang.Override
296
+ public boolean hasHash() {
297
+ return ((bitField0_ & 0x00000020) != 0);
298
+ }
299
+ /**
300
+ * <pre>
301
+ *algorithm + value
302
+ * </pre>
303
+ *
304
+ * <code>optional string hash = 8;</code>
305
+ * @return The hash.
306
+ */
307
+ @java.lang.Override
308
+ public java.lang.String getHash() {
309
+ java.lang.Object ref = hash_;
310
+ if (ref instanceof java.lang.String) {
311
+ return (java.lang.String) ref;
312
+ } else {
313
+ com.google.protobuf.ByteString bs =
314
+ (com.google.protobuf.ByteString) ref;
315
+ java.lang.String s = bs.toStringUtf8();
316
+ hash_ = s;
317
+ return s;
318
+ }
319
+ }
320
+ /**
321
+ * <pre>
322
+ *algorithm + value
323
+ * </pre>
324
+ *
325
+ * <code>optional string hash = 8;</code>
326
+ * @return The bytes for hash.
327
+ */
328
+ @java.lang.Override
329
+ public com.google.protobuf.ByteString
330
+ getHashBytes() {
331
+ java.lang.Object ref = hash_;
332
+ if (ref instanceof java.lang.String) {
333
+ com.google.protobuf.ByteString b =
334
+ com.google.protobuf.ByteString.copyFromUtf8(
335
+ (java.lang.String) ref);
336
+ hash_ = b;
337
+ return b;
338
+ } else {
339
+ return (com.google.protobuf.ByteString) ref;
340
+ }
341
+ }
342
+
343
+ public static final int TIMEZONE_FIELD_NUMBER = 9;
344
+ @SuppressWarnings("serial")
345
+ private volatile java.lang.Object timezone_ = "";
346
+ /**
347
+ * <pre>
348
+ *IANA Id
349
+ * </pre>
350
+ *
351
+ * <code>optional string timezone = 9;</code>
352
+ * @return Whether the timezone field is set.
353
+ */
354
+ @java.lang.Override
355
+ public boolean hasTimezone() {
356
+ return ((bitField0_ & 0x00000040) != 0);
357
+ }
358
+ /**
359
+ * <pre>
360
+ *IANA Id
361
+ * </pre>
362
+ *
363
+ * <code>optional string timezone = 9;</code>
364
+ * @return The timezone.
365
+ */
366
+ @java.lang.Override
367
+ public java.lang.String getTimezone() {
368
+ java.lang.Object ref = timezone_;
369
+ if (ref instanceof java.lang.String) {
370
+ return (java.lang.String) ref;
371
+ } else {
372
+ com.google.protobuf.ByteString bs =
373
+ (com.google.protobuf.ByteString) ref;
374
+ java.lang.String s = bs.toStringUtf8();
375
+ timezone_ = s;
376
+ return s;
377
+ }
378
+ }
379
+ /**
380
+ * <pre>
381
+ *IANA Id
382
+ * </pre>
383
+ *
384
+ * <code>optional string timezone = 9;</code>
385
+ * @return The bytes for timezone.
386
+ */
387
+ @java.lang.Override
388
+ public com.google.protobuf.ByteString
389
+ getTimezoneBytes() {
390
+ java.lang.Object ref = timezone_;
391
+ if (ref instanceof java.lang.String) {
392
+ com.google.protobuf.ByteString b =
393
+ com.google.protobuf.ByteString.copyFromUtf8(
394
+ (java.lang.String) ref);
395
+ timezone_ = b;
396
+ return b;
397
+ } else {
398
+ return (com.google.protobuf.ByteString) ref;
399
+ }
400
+ }
401
+
402
+ private byte memoizedIsInitialized = -1;
403
+ @java.lang.Override
404
+ public final boolean isInitialized() {
405
+ byte isInitialized = memoizedIsInitialized;
406
+ if (isInitialized == 1) return true;
407
+ if (isInitialized == 0) return false;
408
+
409
+ memoizedIsInitialized = 1;
410
+ return true;
411
+ }
412
+
413
+ @java.lang.Override
414
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
415
+ throws java.io.IOException {
416
+ if (key_ != 0) {
417
+ output.writeInt32(1, key_);
418
+ }
419
+ if (((bitField0_ & 0x00000001) != 0)) {
420
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
421
+ }
422
+ if (((bitField0_ & 0x00000002) != 0)) {
423
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_);
424
+ }
425
+ if (((bitField0_ & 0x00000004) != 0)) {
426
+ output.writeMessage(4, getScanTime());
427
+ }
428
+ if (((bitField0_ & 0x00000008) != 0)) {
429
+ output.writeInt64(5, duration_);
430
+ }
431
+ for (int i = 0; i < errors_.size(); i++) {
432
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, errors_.getRaw(i));
433
+ }
434
+ if (((bitField0_ & 0x00000010) != 0)) {
435
+ output.writeBool(7, success_);
436
+ }
437
+ if (((bitField0_ & 0x00000020) != 0)) {
438
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, hash_);
439
+ }
440
+ if (((bitField0_ & 0x00000040) != 0)) {
441
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, timezone_);
442
+ }
443
+ getUnknownFields().writeTo(output);
444
+ }
445
+
446
+ @java.lang.Override
447
+ public int getSerializedSize() {
448
+ int size = memoizedSize;
449
+ if (size != -1) return size;
450
+
451
+ size = 0;
452
+ if (key_ != 0) {
453
+ size += com.google.protobuf.CodedOutputStream
454
+ .computeInt32Size(1, key_);
455
+ }
456
+ if (((bitField0_ & 0x00000001) != 0)) {
457
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
458
+ }
459
+ if (((bitField0_ & 0x00000002) != 0)) {
460
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_);
461
+ }
462
+ if (((bitField0_ & 0x00000004) != 0)) {
463
+ size += com.google.protobuf.CodedOutputStream
464
+ .computeMessageSize(4, getScanTime());
465
+ }
466
+ if (((bitField0_ & 0x00000008) != 0)) {
467
+ size += com.google.protobuf.CodedOutputStream
468
+ .computeInt64Size(5, duration_);
469
+ }
470
+ {
471
+ int dataSize = 0;
472
+ for (int i = 0; i < errors_.size(); i++) {
473
+ dataSize += computeStringSizeNoTag(errors_.getRaw(i));
474
+ }
475
+ size += dataSize;
476
+ size += 1 * getErrorsList().size();
477
+ }
478
+ if (((bitField0_ & 0x00000010) != 0)) {
479
+ size += com.google.protobuf.CodedOutputStream
480
+ .computeBoolSize(7, success_);
481
+ }
482
+ if (((bitField0_ & 0x00000020) != 0)) {
483
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, hash_);
484
+ }
485
+ if (((bitField0_ & 0x00000040) != 0)) {
486
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, timezone_);
487
+ }
488
+ size += getUnknownFields().getSerializedSize();
489
+ memoizedSize = size;
490
+ return size;
491
+ }
492
+
493
+ @java.lang.Override
494
+ public boolean equals(final java.lang.Object obj) {
495
+ if (obj == this) {
496
+ return true;
497
+ }
498
+ if (!(obj instanceof com.lansweeper.dp.outbound.v1.ScanSection)) {
499
+ return super.equals(obj);
500
+ }
501
+ com.lansweeper.dp.outbound.v1.ScanSection other = (com.lansweeper.dp.outbound.v1.ScanSection) obj;
502
+
503
+ if (getKey()
504
+ != other.getKey()) return false;
505
+ if (hasName() != other.hasName()) return false;
506
+ if (hasName()) {
507
+ if (!getName()
508
+ .equals(other.getName())) return false;
509
+ }
510
+ if (hasSource() != other.hasSource()) return false;
511
+ if (hasSource()) {
512
+ if (!getSource()
513
+ .equals(other.getSource())) return false;
514
+ }
515
+ if (hasScanTime() != other.hasScanTime()) return false;
516
+ if (hasScanTime()) {
517
+ if (!getScanTime()
518
+ .equals(other.getScanTime())) return false;
519
+ }
520
+ if (hasDuration() != other.hasDuration()) return false;
521
+ if (hasDuration()) {
522
+ if (getDuration()
523
+ != other.getDuration()) return false;
524
+ }
525
+ if (!getErrorsList()
526
+ .equals(other.getErrorsList())) return false;
527
+ if (hasSuccess() != other.hasSuccess()) return false;
528
+ if (hasSuccess()) {
529
+ if (getSuccess()
530
+ != other.getSuccess()) return false;
531
+ }
532
+ if (hasHash() != other.hasHash()) return false;
533
+ if (hasHash()) {
534
+ if (!getHash()
535
+ .equals(other.getHash())) return false;
536
+ }
537
+ if (hasTimezone() != other.hasTimezone()) return false;
538
+ if (hasTimezone()) {
539
+ if (!getTimezone()
540
+ .equals(other.getTimezone())) return false;
541
+ }
542
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
543
+ return true;
544
+ }
545
+
546
+ @java.lang.Override
547
+ public int hashCode() {
548
+ if (memoizedHashCode != 0) {
549
+ return memoizedHashCode;
550
+ }
551
+ int hash = 41;
552
+ hash = (19 * hash) + getDescriptor().hashCode();
553
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
554
+ hash = (53 * hash) + getKey();
555
+ if (hasName()) {
556
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
557
+ hash = (53 * hash) + getName().hashCode();
558
+ }
559
+ if (hasSource()) {
560
+ hash = (37 * hash) + SOURCE_FIELD_NUMBER;
561
+ hash = (53 * hash) + getSource().hashCode();
562
+ }
563
+ if (hasScanTime()) {
564
+ hash = (37 * hash) + SCAN_TIME_FIELD_NUMBER;
565
+ hash = (53 * hash) + getScanTime().hashCode();
566
+ }
567
+ if (hasDuration()) {
568
+ hash = (37 * hash) + DURATION_FIELD_NUMBER;
569
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
570
+ getDuration());
571
+ }
572
+ if (getErrorsCount() > 0) {
573
+ hash = (37 * hash) + ERRORS_FIELD_NUMBER;
574
+ hash = (53 * hash) + getErrorsList().hashCode();
575
+ }
576
+ if (hasSuccess()) {
577
+ hash = (37 * hash) + SUCCESS_FIELD_NUMBER;
578
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
579
+ getSuccess());
580
+ }
581
+ if (hasHash()) {
582
+ hash = (37 * hash) + HASH_FIELD_NUMBER;
583
+ hash = (53 * hash) + getHash().hashCode();
584
+ }
585
+ if (hasTimezone()) {
586
+ hash = (37 * hash) + TIMEZONE_FIELD_NUMBER;
587
+ hash = (53 * hash) + getTimezone().hashCode();
588
+ }
589
+ hash = (29 * hash) + getUnknownFields().hashCode();
590
+ memoizedHashCode = hash;
591
+ return hash;
592
+ }
593
+
594
+ public static com.lansweeper.dp.outbound.v1.ScanSection parseFrom(
595
+ java.nio.ByteBuffer data)
596
+ throws com.google.protobuf.InvalidProtocolBufferException {
597
+ return PARSER.parseFrom(data);
598
+ }
599
+ public static com.lansweeper.dp.outbound.v1.ScanSection parseFrom(
600
+ java.nio.ByteBuffer data,
601
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
602
+ throws com.google.protobuf.InvalidProtocolBufferException {
603
+ return PARSER.parseFrom(data, extensionRegistry);
604
+ }
605
+ public static com.lansweeper.dp.outbound.v1.ScanSection parseFrom(
606
+ com.google.protobuf.ByteString data)
607
+ throws com.google.protobuf.InvalidProtocolBufferException {
608
+ return PARSER.parseFrom(data);
609
+ }
610
+ public static com.lansweeper.dp.outbound.v1.ScanSection parseFrom(
611
+ com.google.protobuf.ByteString data,
612
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
613
+ throws com.google.protobuf.InvalidProtocolBufferException {
614
+ return PARSER.parseFrom(data, extensionRegistry);
615
+ }
616
+ public static com.lansweeper.dp.outbound.v1.ScanSection parseFrom(byte[] data)
617
+ throws com.google.protobuf.InvalidProtocolBufferException {
618
+ return PARSER.parseFrom(data);
619
+ }
620
+ public static com.lansweeper.dp.outbound.v1.ScanSection parseFrom(
621
+ byte[] data,
622
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
623
+ throws com.google.protobuf.InvalidProtocolBufferException {
624
+ return PARSER.parseFrom(data, extensionRegistry);
625
+ }
626
+ public static com.lansweeper.dp.outbound.v1.ScanSection parseFrom(java.io.InputStream input)
627
+ throws java.io.IOException {
628
+ return com.google.protobuf.GeneratedMessageV3
629
+ .parseWithIOException(PARSER, input);
630
+ }
631
+ public static com.lansweeper.dp.outbound.v1.ScanSection parseFrom(
632
+ java.io.InputStream input,
633
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
634
+ throws java.io.IOException {
635
+ return com.google.protobuf.GeneratedMessageV3
636
+ .parseWithIOException(PARSER, input, extensionRegistry);
637
+ }
638
+
639
+ public static com.lansweeper.dp.outbound.v1.ScanSection parseDelimitedFrom(java.io.InputStream input)
640
+ throws java.io.IOException {
641
+ return com.google.protobuf.GeneratedMessageV3
642
+ .parseDelimitedWithIOException(PARSER, input);
643
+ }
644
+
645
+ public static com.lansweeper.dp.outbound.v1.ScanSection parseDelimitedFrom(
646
+ java.io.InputStream input,
647
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
648
+ throws java.io.IOException {
649
+ return com.google.protobuf.GeneratedMessageV3
650
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
651
+ }
652
+ public static com.lansweeper.dp.outbound.v1.ScanSection parseFrom(
653
+ com.google.protobuf.CodedInputStream input)
654
+ throws java.io.IOException {
655
+ return com.google.protobuf.GeneratedMessageV3
656
+ .parseWithIOException(PARSER, input);
657
+ }
658
+ public static com.lansweeper.dp.outbound.v1.ScanSection parseFrom(
659
+ com.google.protobuf.CodedInputStream input,
660
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
661
+ throws java.io.IOException {
662
+ return com.google.protobuf.GeneratedMessageV3
663
+ .parseWithIOException(PARSER, input, extensionRegistry);
664
+ }
665
+
666
+ @java.lang.Override
667
+ public Builder newBuilderForType() { return newBuilder(); }
668
+ public static Builder newBuilder() {
669
+ return DEFAULT_INSTANCE.toBuilder();
670
+ }
671
+ public static Builder newBuilder(com.lansweeper.dp.outbound.v1.ScanSection prototype) {
672
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
673
+ }
674
+ @java.lang.Override
675
+ public Builder toBuilder() {
676
+ return this == DEFAULT_INSTANCE
677
+ ? new Builder() : new Builder().mergeFrom(this);
678
+ }
679
+
680
+ @java.lang.Override
681
+ protected Builder newBuilderForType(
682
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
683
+ Builder builder = new Builder(parent);
684
+ return builder;
685
+ }
686
+ /**
687
+ * <pre>
688
+ **
689
+ * Scan section.
690
+ * </pre>
691
+ *
692
+ * Protobuf type {@code com.lansweeper.dp.outbound.v1.ScanSection}
693
+ */
694
+ public static final class Builder extends
695
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
696
+ // @@protoc_insertion_point(builder_implements:com.lansweeper.dp.outbound.v1.ScanSection)
697
+ com.lansweeper.dp.outbound.v1.ScanSectionOrBuilder {
698
+ public static final com.google.protobuf.Descriptors.Descriptor
699
+ getDescriptor() {
700
+ return com.lansweeper.dp.outbound.v1.Outbound.internal_static_com_lansweeper_dp_outbound_v1_ScanSection_descriptor;
701
+ }
702
+
703
+ @java.lang.Override
704
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
705
+ internalGetFieldAccessorTable() {
706
+ return com.lansweeper.dp.outbound.v1.Outbound.internal_static_com_lansweeper_dp_outbound_v1_ScanSection_fieldAccessorTable
707
+ .ensureFieldAccessorsInitialized(
708
+ com.lansweeper.dp.outbound.v1.ScanSection.class, com.lansweeper.dp.outbound.v1.ScanSection.Builder.class);
709
+ }
710
+
711
+ // Construct using com.lansweeper.dp.outbound.v1.ScanSection.newBuilder()
712
+ private Builder() {
713
+ maybeForceBuilderInitialization();
714
+ }
715
+
716
+ private Builder(
717
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
718
+ super(parent);
719
+ maybeForceBuilderInitialization();
720
+ }
721
+ private void maybeForceBuilderInitialization() {
722
+ if (com.google.protobuf.GeneratedMessageV3
723
+ .alwaysUseFieldBuilders) {
724
+ getScanTimeFieldBuilder();
725
+ }
726
+ }
727
+ @java.lang.Override
728
+ public Builder clear() {
729
+ super.clear();
730
+ bitField0_ = 0;
731
+ key_ = 0;
732
+ name_ = "";
733
+ source_ = "";
734
+ scanTime_ = null;
735
+ if (scanTimeBuilder_ != null) {
736
+ scanTimeBuilder_.dispose();
737
+ scanTimeBuilder_ = null;
738
+ }
739
+ duration_ = 0L;
740
+ errors_ =
741
+ com.google.protobuf.LazyStringArrayList.emptyList();
742
+ success_ = false;
743
+ hash_ = "";
744
+ timezone_ = "";
745
+ return this;
746
+ }
747
+
748
+ @java.lang.Override
749
+ public com.google.protobuf.Descriptors.Descriptor
750
+ getDescriptorForType() {
751
+ return com.lansweeper.dp.outbound.v1.Outbound.internal_static_com_lansweeper_dp_outbound_v1_ScanSection_descriptor;
752
+ }
753
+
754
+ @java.lang.Override
755
+ public com.lansweeper.dp.outbound.v1.ScanSection getDefaultInstanceForType() {
756
+ return com.lansweeper.dp.outbound.v1.ScanSection.getDefaultInstance();
757
+ }
758
+
759
+ @java.lang.Override
760
+ public com.lansweeper.dp.outbound.v1.ScanSection build() {
761
+ com.lansweeper.dp.outbound.v1.ScanSection result = buildPartial();
762
+ if (!result.isInitialized()) {
763
+ throw newUninitializedMessageException(result);
764
+ }
765
+ return result;
766
+ }
767
+
768
+ @java.lang.Override
769
+ public com.lansweeper.dp.outbound.v1.ScanSection buildPartial() {
770
+ com.lansweeper.dp.outbound.v1.ScanSection result = new com.lansweeper.dp.outbound.v1.ScanSection(this);
771
+ if (bitField0_ != 0) { buildPartial0(result); }
772
+ onBuilt();
773
+ return result;
774
+ }
775
+
776
+ private void buildPartial0(com.lansweeper.dp.outbound.v1.ScanSection result) {
777
+ int from_bitField0_ = bitField0_;
778
+ if (((from_bitField0_ & 0x00000001) != 0)) {
779
+ result.key_ = key_;
780
+ }
781
+ int to_bitField0_ = 0;
782
+ if (((from_bitField0_ & 0x00000002) != 0)) {
783
+ result.name_ = name_;
784
+ to_bitField0_ |= 0x00000001;
785
+ }
786
+ if (((from_bitField0_ & 0x00000004) != 0)) {
787
+ result.source_ = source_;
788
+ to_bitField0_ |= 0x00000002;
789
+ }
790
+ if (((from_bitField0_ & 0x00000008) != 0)) {
791
+ result.scanTime_ = scanTimeBuilder_ == null
792
+ ? scanTime_
793
+ : scanTimeBuilder_.build();
794
+ to_bitField0_ |= 0x00000004;
795
+ }
796
+ if (((from_bitField0_ & 0x00000010) != 0)) {
797
+ result.duration_ = duration_;
798
+ to_bitField0_ |= 0x00000008;
799
+ }
800
+ if (((from_bitField0_ & 0x00000020) != 0)) {
801
+ errors_.makeImmutable();
802
+ result.errors_ = errors_;
803
+ }
804
+ if (((from_bitField0_ & 0x00000040) != 0)) {
805
+ result.success_ = success_;
806
+ to_bitField0_ |= 0x00000010;
807
+ }
808
+ if (((from_bitField0_ & 0x00000080) != 0)) {
809
+ result.hash_ = hash_;
810
+ to_bitField0_ |= 0x00000020;
811
+ }
812
+ if (((from_bitField0_ & 0x00000100) != 0)) {
813
+ result.timezone_ = timezone_;
814
+ to_bitField0_ |= 0x00000040;
815
+ }
816
+ result.bitField0_ |= to_bitField0_;
817
+ }
818
+
819
+ @java.lang.Override
820
+ public Builder clone() {
821
+ return super.clone();
822
+ }
823
+ @java.lang.Override
824
+ public Builder setField(
825
+ com.google.protobuf.Descriptors.FieldDescriptor field,
826
+ java.lang.Object value) {
827
+ return super.setField(field, value);
828
+ }
829
+ @java.lang.Override
830
+ public Builder clearField(
831
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
832
+ return super.clearField(field);
833
+ }
834
+ @java.lang.Override
835
+ public Builder clearOneof(
836
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
837
+ return super.clearOneof(oneof);
838
+ }
839
+ @java.lang.Override
840
+ public Builder setRepeatedField(
841
+ com.google.protobuf.Descriptors.FieldDescriptor field,
842
+ int index, java.lang.Object value) {
843
+ return super.setRepeatedField(field, index, value);
844
+ }
845
+ @java.lang.Override
846
+ public Builder addRepeatedField(
847
+ com.google.protobuf.Descriptors.FieldDescriptor field,
848
+ java.lang.Object value) {
849
+ return super.addRepeatedField(field, value);
850
+ }
851
+ @java.lang.Override
852
+ public Builder mergeFrom(com.google.protobuf.Message other) {
853
+ if (other instanceof com.lansweeper.dp.outbound.v1.ScanSection) {
854
+ return mergeFrom((com.lansweeper.dp.outbound.v1.ScanSection)other);
855
+ } else {
856
+ super.mergeFrom(other);
857
+ return this;
858
+ }
859
+ }
860
+
861
+ public Builder mergeFrom(com.lansweeper.dp.outbound.v1.ScanSection other) {
862
+ if (other == com.lansweeper.dp.outbound.v1.ScanSection.getDefaultInstance()) return this;
863
+ if (other.getKey() != 0) {
864
+ setKey(other.getKey());
865
+ }
866
+ if (other.hasName()) {
867
+ name_ = other.name_;
868
+ bitField0_ |= 0x00000002;
869
+ onChanged();
870
+ }
871
+ if (other.hasSource()) {
872
+ source_ = other.source_;
873
+ bitField0_ |= 0x00000004;
874
+ onChanged();
875
+ }
876
+ if (other.hasScanTime()) {
877
+ mergeScanTime(other.getScanTime());
878
+ }
879
+ if (other.hasDuration()) {
880
+ setDuration(other.getDuration());
881
+ }
882
+ if (!other.errors_.isEmpty()) {
883
+ if (errors_.isEmpty()) {
884
+ errors_ = other.errors_;
885
+ bitField0_ |= 0x00000020;
886
+ } else {
887
+ ensureErrorsIsMutable();
888
+ errors_.addAll(other.errors_);
889
+ }
890
+ onChanged();
891
+ }
892
+ if (other.hasSuccess()) {
893
+ setSuccess(other.getSuccess());
894
+ }
895
+ if (other.hasHash()) {
896
+ hash_ = other.hash_;
897
+ bitField0_ |= 0x00000080;
898
+ onChanged();
899
+ }
900
+ if (other.hasTimezone()) {
901
+ timezone_ = other.timezone_;
902
+ bitField0_ |= 0x00000100;
903
+ onChanged();
904
+ }
905
+ this.mergeUnknownFields(other.getUnknownFields());
906
+ onChanged();
907
+ return this;
908
+ }
909
+
910
+ @java.lang.Override
911
+ public final boolean isInitialized() {
912
+ return true;
913
+ }
914
+
915
+ @java.lang.Override
916
+ public Builder mergeFrom(
917
+ com.google.protobuf.CodedInputStream input,
918
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
919
+ throws java.io.IOException {
920
+ if (extensionRegistry == null) {
921
+ throw new java.lang.NullPointerException();
922
+ }
923
+ try {
924
+ boolean done = false;
925
+ while (!done) {
926
+ int tag = input.readTag();
927
+ switch (tag) {
928
+ case 0:
929
+ done = true;
930
+ break;
931
+ case 8: {
932
+ key_ = input.readInt32();
933
+ bitField0_ |= 0x00000001;
934
+ break;
935
+ } // case 8
936
+ case 18: {
937
+ name_ = input.readStringRequireUtf8();
938
+ bitField0_ |= 0x00000002;
939
+ break;
940
+ } // case 18
941
+ case 26: {
942
+ source_ = input.readStringRequireUtf8();
943
+ bitField0_ |= 0x00000004;
944
+ break;
945
+ } // case 26
946
+ case 34: {
947
+ input.readMessage(
948
+ getScanTimeFieldBuilder().getBuilder(),
949
+ extensionRegistry);
950
+ bitField0_ |= 0x00000008;
951
+ break;
952
+ } // case 34
953
+ case 40: {
954
+ duration_ = input.readInt64();
955
+ bitField0_ |= 0x00000010;
956
+ break;
957
+ } // case 40
958
+ case 50: {
959
+ java.lang.String s = input.readStringRequireUtf8();
960
+ ensureErrorsIsMutable();
961
+ errors_.add(s);
962
+ break;
963
+ } // case 50
964
+ case 56: {
965
+ success_ = input.readBool();
966
+ bitField0_ |= 0x00000040;
967
+ break;
968
+ } // case 56
969
+ case 66: {
970
+ hash_ = input.readStringRequireUtf8();
971
+ bitField0_ |= 0x00000080;
972
+ break;
973
+ } // case 66
974
+ case 74: {
975
+ timezone_ = input.readStringRequireUtf8();
976
+ bitField0_ |= 0x00000100;
977
+ break;
978
+ } // case 74
979
+ default: {
980
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
981
+ done = true; // was an endgroup tag
982
+ }
983
+ break;
984
+ } // default:
985
+ } // switch (tag)
986
+ } // while (!done)
987
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
988
+ throw e.unwrapIOException();
989
+ } finally {
990
+ onChanged();
991
+ } // finally
992
+ return this;
993
+ }
994
+ private int bitField0_;
995
+
996
+ private int key_ ;
997
+ /**
998
+ * <code>int32 key = 1;</code>
999
+ * @return The key.
1000
+ */
1001
+ @java.lang.Override
1002
+ public int getKey() {
1003
+ return key_;
1004
+ }
1005
+ /**
1006
+ * <code>int32 key = 1;</code>
1007
+ * @param value The key to set.
1008
+ * @return This builder for chaining.
1009
+ */
1010
+ public Builder setKey(int value) {
1011
+
1012
+ key_ = value;
1013
+ bitField0_ |= 0x00000001;
1014
+ onChanged();
1015
+ return this;
1016
+ }
1017
+ /**
1018
+ * <code>int32 key = 1;</code>
1019
+ * @return This builder for chaining.
1020
+ */
1021
+ public Builder clearKey() {
1022
+ bitField0_ = (bitField0_ & ~0x00000001);
1023
+ key_ = 0;
1024
+ onChanged();
1025
+ return this;
1026
+ }
1027
+
1028
+ private java.lang.Object name_ = "";
1029
+ /**
1030
+ * <pre>
1031
+ * e.g.: Windows:BasicInfo
1032
+ * </pre>
1033
+ *
1034
+ * <code>optional string name = 2;</code>
1035
+ * @return Whether the name field is set.
1036
+ */
1037
+ public boolean hasName() {
1038
+ return ((bitField0_ & 0x00000002) != 0);
1039
+ }
1040
+ /**
1041
+ * <pre>
1042
+ * e.g.: Windows:BasicInfo
1043
+ * </pre>
1044
+ *
1045
+ * <code>optional string name = 2;</code>
1046
+ * @return The name.
1047
+ */
1048
+ public java.lang.String getName() {
1049
+ java.lang.Object ref = name_;
1050
+ if (!(ref instanceof java.lang.String)) {
1051
+ com.google.protobuf.ByteString bs =
1052
+ (com.google.protobuf.ByteString) ref;
1053
+ java.lang.String s = bs.toStringUtf8();
1054
+ name_ = s;
1055
+ return s;
1056
+ } else {
1057
+ return (java.lang.String) ref;
1058
+ }
1059
+ }
1060
+ /**
1061
+ * <pre>
1062
+ * e.g.: Windows:BasicInfo
1063
+ * </pre>
1064
+ *
1065
+ * <code>optional string name = 2;</code>
1066
+ * @return The bytes for name.
1067
+ */
1068
+ public com.google.protobuf.ByteString
1069
+ getNameBytes() {
1070
+ java.lang.Object ref = name_;
1071
+ if (ref instanceof String) {
1072
+ com.google.protobuf.ByteString b =
1073
+ com.google.protobuf.ByteString.copyFromUtf8(
1074
+ (java.lang.String) ref);
1075
+ name_ = b;
1076
+ return b;
1077
+ } else {
1078
+ return (com.google.protobuf.ByteString) ref;
1079
+ }
1080
+ }
1081
+ /**
1082
+ * <pre>
1083
+ * e.g.: Windows:BasicInfo
1084
+ * </pre>
1085
+ *
1086
+ * <code>optional string name = 2;</code>
1087
+ * @param value The name to set.
1088
+ * @return This builder for chaining.
1089
+ */
1090
+ public Builder setName(
1091
+ java.lang.String value) {
1092
+ if (value == null) { throw new NullPointerException(); }
1093
+ name_ = value;
1094
+ bitField0_ |= 0x00000002;
1095
+ onChanged();
1096
+ return this;
1097
+ }
1098
+ /**
1099
+ * <pre>
1100
+ * e.g.: Windows:BasicInfo
1101
+ * </pre>
1102
+ *
1103
+ * <code>optional string name = 2;</code>
1104
+ * @return This builder for chaining.
1105
+ */
1106
+ public Builder clearName() {
1107
+ name_ = getDefaultInstance().getName();
1108
+ bitField0_ = (bitField0_ & ~0x00000002);
1109
+ onChanged();
1110
+ return this;
1111
+ }
1112
+ /**
1113
+ * <pre>
1114
+ * e.g.: Windows:BasicInfo
1115
+ * </pre>
1116
+ *
1117
+ * <code>optional string name = 2;</code>
1118
+ * @param value The bytes for name to set.
1119
+ * @return This builder for chaining.
1120
+ */
1121
+ public Builder setNameBytes(
1122
+ com.google.protobuf.ByteString value) {
1123
+ if (value == null) { throw new NullPointerException(); }
1124
+ checkByteStringIsUtf8(value);
1125
+ name_ = value;
1126
+ bitField0_ |= 0x00000002;
1127
+ onChanged();
1128
+ return this;
1129
+ }
1130
+
1131
+ private java.lang.Object source_ = "";
1132
+ /**
1133
+ * <pre>
1134
+ * e.g.: Wmi.Registry.WinApi
1135
+ * </pre>
1136
+ *
1137
+ * <code>optional string source = 3;</code>
1138
+ * @return Whether the source field is set.
1139
+ */
1140
+ public boolean hasSource() {
1141
+ return ((bitField0_ & 0x00000004) != 0);
1142
+ }
1143
+ /**
1144
+ * <pre>
1145
+ * e.g.: Wmi.Registry.WinApi
1146
+ * </pre>
1147
+ *
1148
+ * <code>optional string source = 3;</code>
1149
+ * @return The source.
1150
+ */
1151
+ public java.lang.String getSource() {
1152
+ java.lang.Object ref = source_;
1153
+ if (!(ref instanceof java.lang.String)) {
1154
+ com.google.protobuf.ByteString bs =
1155
+ (com.google.protobuf.ByteString) ref;
1156
+ java.lang.String s = bs.toStringUtf8();
1157
+ source_ = s;
1158
+ return s;
1159
+ } else {
1160
+ return (java.lang.String) ref;
1161
+ }
1162
+ }
1163
+ /**
1164
+ * <pre>
1165
+ * e.g.: Wmi.Registry.WinApi
1166
+ * </pre>
1167
+ *
1168
+ * <code>optional string source = 3;</code>
1169
+ * @return The bytes for source.
1170
+ */
1171
+ public com.google.protobuf.ByteString
1172
+ getSourceBytes() {
1173
+ java.lang.Object ref = source_;
1174
+ if (ref instanceof String) {
1175
+ com.google.protobuf.ByteString b =
1176
+ com.google.protobuf.ByteString.copyFromUtf8(
1177
+ (java.lang.String) ref);
1178
+ source_ = b;
1179
+ return b;
1180
+ } else {
1181
+ return (com.google.protobuf.ByteString) ref;
1182
+ }
1183
+ }
1184
+ /**
1185
+ * <pre>
1186
+ * e.g.: Wmi.Registry.WinApi
1187
+ * </pre>
1188
+ *
1189
+ * <code>optional string source = 3;</code>
1190
+ * @param value The source to set.
1191
+ * @return This builder for chaining.
1192
+ */
1193
+ public Builder setSource(
1194
+ java.lang.String value) {
1195
+ if (value == null) { throw new NullPointerException(); }
1196
+ source_ = value;
1197
+ bitField0_ |= 0x00000004;
1198
+ onChanged();
1199
+ return this;
1200
+ }
1201
+ /**
1202
+ * <pre>
1203
+ * e.g.: Wmi.Registry.WinApi
1204
+ * </pre>
1205
+ *
1206
+ * <code>optional string source = 3;</code>
1207
+ * @return This builder for chaining.
1208
+ */
1209
+ public Builder clearSource() {
1210
+ source_ = getDefaultInstance().getSource();
1211
+ bitField0_ = (bitField0_ & ~0x00000004);
1212
+ onChanged();
1213
+ return this;
1214
+ }
1215
+ /**
1216
+ * <pre>
1217
+ * e.g.: Wmi.Registry.WinApi
1218
+ * </pre>
1219
+ *
1220
+ * <code>optional string source = 3;</code>
1221
+ * @param value The bytes for source to set.
1222
+ * @return This builder for chaining.
1223
+ */
1224
+ public Builder setSourceBytes(
1225
+ com.google.protobuf.ByteString value) {
1226
+ if (value == null) { throw new NullPointerException(); }
1227
+ checkByteStringIsUtf8(value);
1228
+ source_ = value;
1229
+ bitField0_ |= 0x00000004;
1230
+ onChanged();
1231
+ return this;
1232
+ }
1233
+
1234
+ private com.google.protobuf.Timestamp scanTime_;
1235
+ private com.google.protobuf.SingleFieldBuilderV3<
1236
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scanTimeBuilder_;
1237
+ /**
1238
+ * <code>optional .google.protobuf.Timestamp scan_time = 4;</code>
1239
+ * @return Whether the scanTime field is set.
1240
+ */
1241
+ public boolean hasScanTime() {
1242
+ return ((bitField0_ & 0x00000008) != 0);
1243
+ }
1244
+ /**
1245
+ * <code>optional .google.protobuf.Timestamp scan_time = 4;</code>
1246
+ * @return The scanTime.
1247
+ */
1248
+ public com.google.protobuf.Timestamp getScanTime() {
1249
+ if (scanTimeBuilder_ == null) {
1250
+ return scanTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scanTime_;
1251
+ } else {
1252
+ return scanTimeBuilder_.getMessage();
1253
+ }
1254
+ }
1255
+ /**
1256
+ * <code>optional .google.protobuf.Timestamp scan_time = 4;</code>
1257
+ */
1258
+ public Builder setScanTime(com.google.protobuf.Timestamp value) {
1259
+ if (scanTimeBuilder_ == null) {
1260
+ if (value == null) {
1261
+ throw new NullPointerException();
1262
+ }
1263
+ scanTime_ = value;
1264
+ } else {
1265
+ scanTimeBuilder_.setMessage(value);
1266
+ }
1267
+ bitField0_ |= 0x00000008;
1268
+ onChanged();
1269
+ return this;
1270
+ }
1271
+ /**
1272
+ * <code>optional .google.protobuf.Timestamp scan_time = 4;</code>
1273
+ */
1274
+ public Builder setScanTime(
1275
+ com.google.protobuf.Timestamp.Builder builderForValue) {
1276
+ if (scanTimeBuilder_ == null) {
1277
+ scanTime_ = builderForValue.build();
1278
+ } else {
1279
+ scanTimeBuilder_.setMessage(builderForValue.build());
1280
+ }
1281
+ bitField0_ |= 0x00000008;
1282
+ onChanged();
1283
+ return this;
1284
+ }
1285
+ /**
1286
+ * <code>optional .google.protobuf.Timestamp scan_time = 4;</code>
1287
+ */
1288
+ public Builder mergeScanTime(com.google.protobuf.Timestamp value) {
1289
+ if (scanTimeBuilder_ == null) {
1290
+ if (((bitField0_ & 0x00000008) != 0) &&
1291
+ scanTime_ != null &&
1292
+ scanTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
1293
+ getScanTimeBuilder().mergeFrom(value);
1294
+ } else {
1295
+ scanTime_ = value;
1296
+ }
1297
+ } else {
1298
+ scanTimeBuilder_.mergeFrom(value);
1299
+ }
1300
+ if (scanTime_ != null) {
1301
+ bitField0_ |= 0x00000008;
1302
+ onChanged();
1303
+ }
1304
+ return this;
1305
+ }
1306
+ /**
1307
+ * <code>optional .google.protobuf.Timestamp scan_time = 4;</code>
1308
+ */
1309
+ public Builder clearScanTime() {
1310
+ bitField0_ = (bitField0_ & ~0x00000008);
1311
+ scanTime_ = null;
1312
+ if (scanTimeBuilder_ != null) {
1313
+ scanTimeBuilder_.dispose();
1314
+ scanTimeBuilder_ = null;
1315
+ }
1316
+ onChanged();
1317
+ return this;
1318
+ }
1319
+ /**
1320
+ * <code>optional .google.protobuf.Timestamp scan_time = 4;</code>
1321
+ */
1322
+ public com.google.protobuf.Timestamp.Builder getScanTimeBuilder() {
1323
+ bitField0_ |= 0x00000008;
1324
+ onChanged();
1325
+ return getScanTimeFieldBuilder().getBuilder();
1326
+ }
1327
+ /**
1328
+ * <code>optional .google.protobuf.Timestamp scan_time = 4;</code>
1329
+ */
1330
+ public com.google.protobuf.TimestampOrBuilder getScanTimeOrBuilder() {
1331
+ if (scanTimeBuilder_ != null) {
1332
+ return scanTimeBuilder_.getMessageOrBuilder();
1333
+ } else {
1334
+ return scanTime_ == null ?
1335
+ com.google.protobuf.Timestamp.getDefaultInstance() : scanTime_;
1336
+ }
1337
+ }
1338
+ /**
1339
+ * <code>optional .google.protobuf.Timestamp scan_time = 4;</code>
1340
+ */
1341
+ private com.google.protobuf.SingleFieldBuilderV3<
1342
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
1343
+ getScanTimeFieldBuilder() {
1344
+ if (scanTimeBuilder_ == null) {
1345
+ scanTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
1346
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
1347
+ getScanTime(),
1348
+ getParentForChildren(),
1349
+ isClean());
1350
+ scanTime_ = null;
1351
+ }
1352
+ return scanTimeBuilder_;
1353
+ }
1354
+
1355
+ private long duration_ ;
1356
+ /**
1357
+ * <code>optional int64 duration = 5;</code>
1358
+ * @return Whether the duration field is set.
1359
+ */
1360
+ @java.lang.Override
1361
+ public boolean hasDuration() {
1362
+ return ((bitField0_ & 0x00000010) != 0);
1363
+ }
1364
+ /**
1365
+ * <code>optional int64 duration = 5;</code>
1366
+ * @return The duration.
1367
+ */
1368
+ @java.lang.Override
1369
+ public long getDuration() {
1370
+ return duration_;
1371
+ }
1372
+ /**
1373
+ * <code>optional int64 duration = 5;</code>
1374
+ * @param value The duration to set.
1375
+ * @return This builder for chaining.
1376
+ */
1377
+ public Builder setDuration(long value) {
1378
+
1379
+ duration_ = value;
1380
+ bitField0_ |= 0x00000010;
1381
+ onChanged();
1382
+ return this;
1383
+ }
1384
+ /**
1385
+ * <code>optional int64 duration = 5;</code>
1386
+ * @return This builder for chaining.
1387
+ */
1388
+ public Builder clearDuration() {
1389
+ bitField0_ = (bitField0_ & ~0x00000010);
1390
+ duration_ = 0L;
1391
+ onChanged();
1392
+ return this;
1393
+ }
1394
+
1395
+ private com.google.protobuf.LazyStringArrayList errors_ =
1396
+ com.google.protobuf.LazyStringArrayList.emptyList();
1397
+ private void ensureErrorsIsMutable() {
1398
+ if (!errors_.isModifiable()) {
1399
+ errors_ = new com.google.protobuf.LazyStringArrayList(errors_);
1400
+ }
1401
+ bitField0_ |= 0x00000020;
1402
+ }
1403
+ /**
1404
+ * <code>repeated string errors = 6;</code>
1405
+ * @return A list containing the errors.
1406
+ */
1407
+ public com.google.protobuf.ProtocolStringList
1408
+ getErrorsList() {
1409
+ errors_.makeImmutable();
1410
+ return errors_;
1411
+ }
1412
+ /**
1413
+ * <code>repeated string errors = 6;</code>
1414
+ * @return The count of errors.
1415
+ */
1416
+ public int getErrorsCount() {
1417
+ return errors_.size();
1418
+ }
1419
+ /**
1420
+ * <code>repeated string errors = 6;</code>
1421
+ * @param index The index of the element to return.
1422
+ * @return The errors at the given index.
1423
+ */
1424
+ public java.lang.String getErrors(int index) {
1425
+ return errors_.get(index);
1426
+ }
1427
+ /**
1428
+ * <code>repeated string errors = 6;</code>
1429
+ * @param index The index of the value to return.
1430
+ * @return The bytes of the errors at the given index.
1431
+ */
1432
+ public com.google.protobuf.ByteString
1433
+ getErrorsBytes(int index) {
1434
+ return errors_.getByteString(index);
1435
+ }
1436
+ /**
1437
+ * <code>repeated string errors = 6;</code>
1438
+ * @param index The index to set the value at.
1439
+ * @param value The errors to set.
1440
+ * @return This builder for chaining.
1441
+ */
1442
+ public Builder setErrors(
1443
+ int index, java.lang.String value) {
1444
+ if (value == null) { throw new NullPointerException(); }
1445
+ ensureErrorsIsMutable();
1446
+ errors_.set(index, value);
1447
+ bitField0_ |= 0x00000020;
1448
+ onChanged();
1449
+ return this;
1450
+ }
1451
+ /**
1452
+ * <code>repeated string errors = 6;</code>
1453
+ * @param value The errors to add.
1454
+ * @return This builder for chaining.
1455
+ */
1456
+ public Builder addErrors(
1457
+ java.lang.String value) {
1458
+ if (value == null) { throw new NullPointerException(); }
1459
+ ensureErrorsIsMutable();
1460
+ errors_.add(value);
1461
+ bitField0_ |= 0x00000020;
1462
+ onChanged();
1463
+ return this;
1464
+ }
1465
+ /**
1466
+ * <code>repeated string errors = 6;</code>
1467
+ * @param values The errors to add.
1468
+ * @return This builder for chaining.
1469
+ */
1470
+ public Builder addAllErrors(
1471
+ java.lang.Iterable<java.lang.String> values) {
1472
+ ensureErrorsIsMutable();
1473
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
1474
+ values, errors_);
1475
+ bitField0_ |= 0x00000020;
1476
+ onChanged();
1477
+ return this;
1478
+ }
1479
+ /**
1480
+ * <code>repeated string errors = 6;</code>
1481
+ * @return This builder for chaining.
1482
+ */
1483
+ public Builder clearErrors() {
1484
+ errors_ =
1485
+ com.google.protobuf.LazyStringArrayList.emptyList();
1486
+ bitField0_ = (bitField0_ & ~0x00000020);;
1487
+ onChanged();
1488
+ return this;
1489
+ }
1490
+ /**
1491
+ * <code>repeated string errors = 6;</code>
1492
+ * @param value The bytes of the errors to add.
1493
+ * @return This builder for chaining.
1494
+ */
1495
+ public Builder addErrorsBytes(
1496
+ com.google.protobuf.ByteString value) {
1497
+ if (value == null) { throw new NullPointerException(); }
1498
+ checkByteStringIsUtf8(value);
1499
+ ensureErrorsIsMutable();
1500
+ errors_.add(value);
1501
+ bitField0_ |= 0x00000020;
1502
+ onChanged();
1503
+ return this;
1504
+ }
1505
+
1506
+ private boolean success_ ;
1507
+ /**
1508
+ * <code>optional bool success = 7;</code>
1509
+ * @return Whether the success field is set.
1510
+ */
1511
+ @java.lang.Override
1512
+ public boolean hasSuccess() {
1513
+ return ((bitField0_ & 0x00000040) != 0);
1514
+ }
1515
+ /**
1516
+ * <code>optional bool success = 7;</code>
1517
+ * @return The success.
1518
+ */
1519
+ @java.lang.Override
1520
+ public boolean getSuccess() {
1521
+ return success_;
1522
+ }
1523
+ /**
1524
+ * <code>optional bool success = 7;</code>
1525
+ * @param value The success to set.
1526
+ * @return This builder for chaining.
1527
+ */
1528
+ public Builder setSuccess(boolean value) {
1529
+
1530
+ success_ = value;
1531
+ bitField0_ |= 0x00000040;
1532
+ onChanged();
1533
+ return this;
1534
+ }
1535
+ /**
1536
+ * <code>optional bool success = 7;</code>
1537
+ * @return This builder for chaining.
1538
+ */
1539
+ public Builder clearSuccess() {
1540
+ bitField0_ = (bitField0_ & ~0x00000040);
1541
+ success_ = false;
1542
+ onChanged();
1543
+ return this;
1544
+ }
1545
+
1546
+ private java.lang.Object hash_ = "";
1547
+ /**
1548
+ * <pre>
1549
+ *algorithm + value
1550
+ * </pre>
1551
+ *
1552
+ * <code>optional string hash = 8;</code>
1553
+ * @return Whether the hash field is set.
1554
+ */
1555
+ public boolean hasHash() {
1556
+ return ((bitField0_ & 0x00000080) != 0);
1557
+ }
1558
+ /**
1559
+ * <pre>
1560
+ *algorithm + value
1561
+ * </pre>
1562
+ *
1563
+ * <code>optional string hash = 8;</code>
1564
+ * @return The hash.
1565
+ */
1566
+ public java.lang.String getHash() {
1567
+ java.lang.Object ref = hash_;
1568
+ if (!(ref instanceof java.lang.String)) {
1569
+ com.google.protobuf.ByteString bs =
1570
+ (com.google.protobuf.ByteString) ref;
1571
+ java.lang.String s = bs.toStringUtf8();
1572
+ hash_ = s;
1573
+ return s;
1574
+ } else {
1575
+ return (java.lang.String) ref;
1576
+ }
1577
+ }
1578
+ /**
1579
+ * <pre>
1580
+ *algorithm + value
1581
+ * </pre>
1582
+ *
1583
+ * <code>optional string hash = 8;</code>
1584
+ * @return The bytes for hash.
1585
+ */
1586
+ public com.google.protobuf.ByteString
1587
+ getHashBytes() {
1588
+ java.lang.Object ref = hash_;
1589
+ if (ref instanceof String) {
1590
+ com.google.protobuf.ByteString b =
1591
+ com.google.protobuf.ByteString.copyFromUtf8(
1592
+ (java.lang.String) ref);
1593
+ hash_ = b;
1594
+ return b;
1595
+ } else {
1596
+ return (com.google.protobuf.ByteString) ref;
1597
+ }
1598
+ }
1599
+ /**
1600
+ * <pre>
1601
+ *algorithm + value
1602
+ * </pre>
1603
+ *
1604
+ * <code>optional string hash = 8;</code>
1605
+ * @param value The hash to set.
1606
+ * @return This builder for chaining.
1607
+ */
1608
+ public Builder setHash(
1609
+ java.lang.String value) {
1610
+ if (value == null) { throw new NullPointerException(); }
1611
+ hash_ = value;
1612
+ bitField0_ |= 0x00000080;
1613
+ onChanged();
1614
+ return this;
1615
+ }
1616
+ /**
1617
+ * <pre>
1618
+ *algorithm + value
1619
+ * </pre>
1620
+ *
1621
+ * <code>optional string hash = 8;</code>
1622
+ * @return This builder for chaining.
1623
+ */
1624
+ public Builder clearHash() {
1625
+ hash_ = getDefaultInstance().getHash();
1626
+ bitField0_ = (bitField0_ & ~0x00000080);
1627
+ onChanged();
1628
+ return this;
1629
+ }
1630
+ /**
1631
+ * <pre>
1632
+ *algorithm + value
1633
+ * </pre>
1634
+ *
1635
+ * <code>optional string hash = 8;</code>
1636
+ * @param value The bytes for hash to set.
1637
+ * @return This builder for chaining.
1638
+ */
1639
+ public Builder setHashBytes(
1640
+ com.google.protobuf.ByteString value) {
1641
+ if (value == null) { throw new NullPointerException(); }
1642
+ checkByteStringIsUtf8(value);
1643
+ hash_ = value;
1644
+ bitField0_ |= 0x00000080;
1645
+ onChanged();
1646
+ return this;
1647
+ }
1648
+
1649
+ private java.lang.Object timezone_ = "";
1650
+ /**
1651
+ * <pre>
1652
+ *IANA Id
1653
+ * </pre>
1654
+ *
1655
+ * <code>optional string timezone = 9;</code>
1656
+ * @return Whether the timezone field is set.
1657
+ */
1658
+ public boolean hasTimezone() {
1659
+ return ((bitField0_ & 0x00000100) != 0);
1660
+ }
1661
+ /**
1662
+ * <pre>
1663
+ *IANA Id
1664
+ * </pre>
1665
+ *
1666
+ * <code>optional string timezone = 9;</code>
1667
+ * @return The timezone.
1668
+ */
1669
+ public java.lang.String getTimezone() {
1670
+ java.lang.Object ref = timezone_;
1671
+ if (!(ref instanceof java.lang.String)) {
1672
+ com.google.protobuf.ByteString bs =
1673
+ (com.google.protobuf.ByteString) ref;
1674
+ java.lang.String s = bs.toStringUtf8();
1675
+ timezone_ = s;
1676
+ return s;
1677
+ } else {
1678
+ return (java.lang.String) ref;
1679
+ }
1680
+ }
1681
+ /**
1682
+ * <pre>
1683
+ *IANA Id
1684
+ * </pre>
1685
+ *
1686
+ * <code>optional string timezone = 9;</code>
1687
+ * @return The bytes for timezone.
1688
+ */
1689
+ public com.google.protobuf.ByteString
1690
+ getTimezoneBytes() {
1691
+ java.lang.Object ref = timezone_;
1692
+ if (ref instanceof String) {
1693
+ com.google.protobuf.ByteString b =
1694
+ com.google.protobuf.ByteString.copyFromUtf8(
1695
+ (java.lang.String) ref);
1696
+ timezone_ = b;
1697
+ return b;
1698
+ } else {
1699
+ return (com.google.protobuf.ByteString) ref;
1700
+ }
1701
+ }
1702
+ /**
1703
+ * <pre>
1704
+ *IANA Id
1705
+ * </pre>
1706
+ *
1707
+ * <code>optional string timezone = 9;</code>
1708
+ * @param value The timezone to set.
1709
+ * @return This builder for chaining.
1710
+ */
1711
+ public Builder setTimezone(
1712
+ java.lang.String value) {
1713
+ if (value == null) { throw new NullPointerException(); }
1714
+ timezone_ = value;
1715
+ bitField0_ |= 0x00000100;
1716
+ onChanged();
1717
+ return this;
1718
+ }
1719
+ /**
1720
+ * <pre>
1721
+ *IANA Id
1722
+ * </pre>
1723
+ *
1724
+ * <code>optional string timezone = 9;</code>
1725
+ * @return This builder for chaining.
1726
+ */
1727
+ public Builder clearTimezone() {
1728
+ timezone_ = getDefaultInstance().getTimezone();
1729
+ bitField0_ = (bitField0_ & ~0x00000100);
1730
+ onChanged();
1731
+ return this;
1732
+ }
1733
+ /**
1734
+ * <pre>
1735
+ *IANA Id
1736
+ * </pre>
1737
+ *
1738
+ * <code>optional string timezone = 9;</code>
1739
+ * @param value The bytes for timezone to set.
1740
+ * @return This builder for chaining.
1741
+ */
1742
+ public Builder setTimezoneBytes(
1743
+ com.google.protobuf.ByteString value) {
1744
+ if (value == null) { throw new NullPointerException(); }
1745
+ checkByteStringIsUtf8(value);
1746
+ timezone_ = value;
1747
+ bitField0_ |= 0x00000100;
1748
+ onChanged();
1749
+ return this;
1750
+ }
1751
+ @java.lang.Override
1752
+ public final Builder setUnknownFields(
1753
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
1754
+ return super.setUnknownFields(unknownFields);
1755
+ }
1756
+
1757
+ @java.lang.Override
1758
+ public final Builder mergeUnknownFields(
1759
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
1760
+ return super.mergeUnknownFields(unknownFields);
1761
+ }
1762
+
1763
+
1764
+ // @@protoc_insertion_point(builder_scope:com.lansweeper.dp.outbound.v1.ScanSection)
1765
+ }
1766
+
1767
+ // @@protoc_insertion_point(class_scope:com.lansweeper.dp.outbound.v1.ScanSection)
1768
+ private static final com.lansweeper.dp.outbound.v1.ScanSection DEFAULT_INSTANCE;
1769
+ static {
1770
+ DEFAULT_INSTANCE = new com.lansweeper.dp.outbound.v1.ScanSection();
1771
+ }
1772
+
1773
+ public static com.lansweeper.dp.outbound.v1.ScanSection getDefaultInstance() {
1774
+ return DEFAULT_INSTANCE;
1775
+ }
1776
+
1777
+ private static final com.google.protobuf.Parser<ScanSection>
1778
+ PARSER = new com.google.protobuf.AbstractParser<ScanSection>() {
1779
+ @java.lang.Override
1780
+ public ScanSection parsePartialFrom(
1781
+ com.google.protobuf.CodedInputStream input,
1782
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1783
+ throws com.google.protobuf.InvalidProtocolBufferException {
1784
+ Builder builder = newBuilder();
1785
+ try {
1786
+ builder.mergeFrom(input, extensionRegistry);
1787
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1788
+ throw e.setUnfinishedMessage(builder.buildPartial());
1789
+ } catch (com.google.protobuf.UninitializedMessageException e) {
1790
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1791
+ } catch (java.io.IOException e) {
1792
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
1793
+ .setUnfinishedMessage(builder.buildPartial());
1794
+ }
1795
+ return builder.buildPartial();
1796
+ }
1797
+ };
1798
+
1799
+ public static com.google.protobuf.Parser<ScanSection> parser() {
1800
+ return PARSER;
1801
+ }
1802
+
1803
+ @java.lang.Override
1804
+ public com.google.protobuf.Parser<ScanSection> getParserForType() {
1805
+ return PARSER;
1806
+ }
1807
+
1808
+ @java.lang.Override
1809
+ public com.lansweeper.dp.outbound.v1.ScanSection getDefaultInstanceForType() {
1810
+ return DEFAULT_INSTANCE;
1811
+ }
1812
+
1813
+ }
1814
+