@lansweeper/integrations-assets-grpc 0.1.7 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/java.json +1 -1
  3. package/package.json +7 -2
  4. package/target/{integrations-assets-model-0.1.6-sources.jar → integrations-assets-model-0.2.0-sources.jar} +0 -0
  5. package/target/{integrations-assets-model-0.1.6.jar → integrations-assets-model-0.2.0.jar} +0 -0
  6. package/target/maven-archiver/pom.properties +2 -2
  7. package/pom.xml +0 -76
  8. package/target/classes/lansweeper/integrations/assets/v1/Asset$1.class +0 -0
  9. package/target/classes/lansweeper/integrations/assets/v1/Asset$Builder.class +0 -0
  10. package/target/classes/lansweeper/integrations/assets/v1/Asset.class +0 -0
  11. package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfo$1.class +0 -0
  12. package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfo$Builder.class +0 -0
  13. package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfo.class +0 -0
  14. package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfoOrBuilder.class +0 -0
  15. package/target/classes/lansweeper/integrations/assets/v1/AssetCustom$1.class +0 -0
  16. package/target/classes/lansweeper/integrations/assets/v1/AssetCustom$Builder.class +0 -0
  17. package/target/classes/lansweeper/integrations/assets/v1/AssetCustom.class +0 -0
  18. package/target/classes/lansweeper/integrations/assets/v1/AssetCustomOrBuilder.class +0 -0
  19. package/target/classes/lansweeper/integrations/assets/v1/AssetOrBuilder.class +0 -0
  20. package/target/classes/lansweeper/integrations/assets/v1/Assets.class +0 -0
  21. package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustom$1.class +0 -0
  22. package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustom$Builder.class +0 -0
  23. package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustom.class +0 -0
  24. package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustomOrBuilder.class +0 -0
  25. package/target/classes/lansweeper/integrations/assets/v1/CustomField$1.class +0 -0
  26. package/target/classes/lansweeper/integrations/assets/v1/CustomField$Builder.class +0 -0
  27. package/target/classes/lansweeper/integrations/assets/v1/CustomField.class +0 -0
  28. package/target/classes/lansweeper/integrations/assets/v1/CustomFieldOrBuilder.class +0 -0
  29. package/target/classes/lansweeper/integrations/assets/v1/LockedFields$1.class +0 -0
  30. package/target/classes/lansweeper/integrations/assets/v1/LockedFields$Builder.class +0 -0
  31. package/target/classes/lansweeper/integrations/assets/v1/LockedFields.class +0 -0
  32. package/target/classes/lansweeper/integrations/assets/v1/LockedFieldsOrBuilder.class +0 -0
  33. package/target/classes/lansweeper/integrations/assets/v1/OtData$1.class +0 -0
  34. package/target/classes/lansweeper/integrations/assets/v1/OtData$Builder.class +0 -0
  35. package/target/classes/lansweeper/integrations/assets/v1/OtData.class +0 -0
  36. package/target/classes/lansweeper/integrations/assets/v1/OtDataOrBuilder.class +0 -0
  37. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/Asset.java +0 -1470
  38. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetBasicInfo.java +0 -1588
  39. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetBasicInfoOrBuilder.java +0 -135
  40. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetCustom.java +0 -3847
  41. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetCustomOrBuilder.java +0 -368
  42. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetOrBuilder.java +0 -106
  43. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/Assets.java +0 -182
  44. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CloudAssetCustom.java +0 -1473
  45. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CloudAssetCustomOrBuilder.java +0 -128
  46. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CustomField.java +0 -643
  47. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CustomFieldOrBuilder.java +0 -33
  48. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/LockedFields.java +0 -2886
  49. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/LockedFieldsOrBuilder.java +0 -281
  50. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/OtData.java +0 -688
  51. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/OtDataOrBuilder.java +0 -43
  52. package/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +0 -29
  53. package/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +0 -15
@@ -1,1588 +0,0 @@
1
- // Generated by the protocol buffer compiler. DO NOT EDIT!
2
- // source: assets.proto
3
-
4
- package lansweeper.integrations.assets.v1;
5
-
6
- /**
7
- * Protobuf type {@code lansweeper.integrations.assets.v1.AssetBasicInfo}
8
- */
9
- public final class AssetBasicInfo extends
10
- com.google.protobuf.GeneratedMessageV3 implements
11
- // @@protoc_insertion_point(message_implements:lansweeper.integrations.assets.v1.AssetBasicInfo)
12
- AssetBasicInfoOrBuilder {
13
- private static final long serialVersionUID = 0L;
14
- // Use AssetBasicInfo.newBuilder() to construct.
15
- private AssetBasicInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
16
- super(builder);
17
- }
18
- private AssetBasicInfo() {
19
- typeKey_ = "";
20
- name_ = "";
21
- domain_ = "";
22
- ipAddress_ = "";
23
- mac_ = "";
24
- description_ = "";
25
- fqdn_ = "";
26
- typeName_ = "";
27
- }
28
-
29
- @java.lang.Override
30
- @SuppressWarnings({"unused"})
31
- protected java.lang.Object newInstance(
32
- UnusedPrivateParameter unused) {
33
- return new AssetBasicInfo();
34
- }
35
-
36
- public static final com.google.protobuf.Descriptors.Descriptor
37
- getDescriptor() {
38
- return lansweeper.integrations.assets.v1.Assets.internal_static_lansweeper_integrations_assets_v1_AssetBasicInfo_descriptor;
39
- }
40
-
41
- @java.lang.Override
42
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
43
- internalGetFieldAccessorTable() {
44
- return lansweeper.integrations.assets.v1.Assets.internal_static_lansweeper_integrations_assets_v1_AssetBasicInfo_fieldAccessorTable
45
- .ensureFieldAccessorsInitialized(
46
- lansweeper.integrations.assets.v1.AssetBasicInfo.class, lansweeper.integrations.assets.v1.AssetBasicInfo.Builder.class);
47
- }
48
-
49
- private int bitField0_;
50
- public static final int TYPE_KEY_FIELD_NUMBER = 1;
51
- @SuppressWarnings("serial")
52
- private volatile java.lang.Object typeKey_ = "";
53
- /**
54
- * <code>string type_key = 1;</code>
55
- * @return The typeKey.
56
- */
57
- @java.lang.Override
58
- public java.lang.String getTypeKey() {
59
- java.lang.Object ref = typeKey_;
60
- if (ref instanceof java.lang.String) {
61
- return (java.lang.String) ref;
62
- } else {
63
- com.google.protobuf.ByteString bs =
64
- (com.google.protobuf.ByteString) ref;
65
- java.lang.String s = bs.toStringUtf8();
66
- typeKey_ = s;
67
- return s;
68
- }
69
- }
70
- /**
71
- * <code>string type_key = 1;</code>
72
- * @return The bytes for typeKey.
73
- */
74
- @java.lang.Override
75
- public com.google.protobuf.ByteString
76
- getTypeKeyBytes() {
77
- java.lang.Object ref = typeKey_;
78
- if (ref instanceof java.lang.String) {
79
- com.google.protobuf.ByteString b =
80
- com.google.protobuf.ByteString.copyFromUtf8(
81
- (java.lang.String) ref);
82
- typeKey_ = b;
83
- return b;
84
- } else {
85
- return (com.google.protobuf.ByteString) ref;
86
- }
87
- }
88
-
89
- public static final int NAME_FIELD_NUMBER = 2;
90
- @SuppressWarnings("serial")
91
- private volatile java.lang.Object name_ = "";
92
- /**
93
- * <code>string name = 2;</code>
94
- * @return The name.
95
- */
96
- @java.lang.Override
97
- public java.lang.String getName() {
98
- java.lang.Object ref = name_;
99
- if (ref instanceof java.lang.String) {
100
- return (java.lang.String) ref;
101
- } else {
102
- com.google.protobuf.ByteString bs =
103
- (com.google.protobuf.ByteString) ref;
104
- java.lang.String s = bs.toStringUtf8();
105
- name_ = s;
106
- return s;
107
- }
108
- }
109
- /**
110
- * <code>string name = 2;</code>
111
- * @return The bytes for name.
112
- */
113
- @java.lang.Override
114
- public com.google.protobuf.ByteString
115
- getNameBytes() {
116
- java.lang.Object ref = name_;
117
- if (ref instanceof java.lang.String) {
118
- com.google.protobuf.ByteString b =
119
- com.google.protobuf.ByteString.copyFromUtf8(
120
- (java.lang.String) ref);
121
- name_ = b;
122
- return b;
123
- } else {
124
- return (com.google.protobuf.ByteString) ref;
125
- }
126
- }
127
-
128
- public static final int DOMAIN_FIELD_NUMBER = 3;
129
- @SuppressWarnings("serial")
130
- private volatile java.lang.Object domain_ = "";
131
- /**
132
- * <code>optional string domain = 3;</code>
133
- * @return Whether the domain field is set.
134
- */
135
- @java.lang.Override
136
- public boolean hasDomain() {
137
- return ((bitField0_ & 0x00000001) != 0);
138
- }
139
- /**
140
- * <code>optional string domain = 3;</code>
141
- * @return The domain.
142
- */
143
- @java.lang.Override
144
- public java.lang.String getDomain() {
145
- java.lang.Object ref = domain_;
146
- if (ref instanceof java.lang.String) {
147
- return (java.lang.String) ref;
148
- } else {
149
- com.google.protobuf.ByteString bs =
150
- (com.google.protobuf.ByteString) ref;
151
- java.lang.String s = bs.toStringUtf8();
152
- domain_ = s;
153
- return s;
154
- }
155
- }
156
- /**
157
- * <code>optional string domain = 3;</code>
158
- * @return The bytes for domain.
159
- */
160
- @java.lang.Override
161
- public com.google.protobuf.ByteString
162
- getDomainBytes() {
163
- java.lang.Object ref = domain_;
164
- if (ref instanceof java.lang.String) {
165
- com.google.protobuf.ByteString b =
166
- com.google.protobuf.ByteString.copyFromUtf8(
167
- (java.lang.String) ref);
168
- domain_ = b;
169
- return b;
170
- } else {
171
- return (com.google.protobuf.ByteString) ref;
172
- }
173
- }
174
-
175
- public static final int IP_ADDRESS_FIELD_NUMBER = 4;
176
- @SuppressWarnings("serial")
177
- private volatile java.lang.Object ipAddress_ = "";
178
- /**
179
- * <code>optional string ip_address = 4;</code>
180
- * @return Whether the ipAddress field is set.
181
- */
182
- @java.lang.Override
183
- public boolean hasIpAddress() {
184
- return ((bitField0_ & 0x00000002) != 0);
185
- }
186
- /**
187
- * <code>optional string ip_address = 4;</code>
188
- * @return The ipAddress.
189
- */
190
- @java.lang.Override
191
- public java.lang.String getIpAddress() {
192
- java.lang.Object ref = ipAddress_;
193
- if (ref instanceof java.lang.String) {
194
- return (java.lang.String) ref;
195
- } else {
196
- com.google.protobuf.ByteString bs =
197
- (com.google.protobuf.ByteString) ref;
198
- java.lang.String s = bs.toStringUtf8();
199
- ipAddress_ = s;
200
- return s;
201
- }
202
- }
203
- /**
204
- * <code>optional string ip_address = 4;</code>
205
- * @return The bytes for ipAddress.
206
- */
207
- @java.lang.Override
208
- public com.google.protobuf.ByteString
209
- getIpAddressBytes() {
210
- java.lang.Object ref = ipAddress_;
211
- if (ref instanceof java.lang.String) {
212
- com.google.protobuf.ByteString b =
213
- com.google.protobuf.ByteString.copyFromUtf8(
214
- (java.lang.String) ref);
215
- ipAddress_ = b;
216
- return b;
217
- } else {
218
- return (com.google.protobuf.ByteString) ref;
219
- }
220
- }
221
-
222
- public static final int MAC_FIELD_NUMBER = 5;
223
- @SuppressWarnings("serial")
224
- private volatile java.lang.Object mac_ = "";
225
- /**
226
- * <code>optional string mac = 5;</code>
227
- * @return Whether the mac field is set.
228
- */
229
- @java.lang.Override
230
- public boolean hasMac() {
231
- return ((bitField0_ & 0x00000004) != 0);
232
- }
233
- /**
234
- * <code>optional string mac = 5;</code>
235
- * @return The mac.
236
- */
237
- @java.lang.Override
238
- public java.lang.String getMac() {
239
- java.lang.Object ref = mac_;
240
- if (ref instanceof java.lang.String) {
241
- return (java.lang.String) ref;
242
- } else {
243
- com.google.protobuf.ByteString bs =
244
- (com.google.protobuf.ByteString) ref;
245
- java.lang.String s = bs.toStringUtf8();
246
- mac_ = s;
247
- return s;
248
- }
249
- }
250
- /**
251
- * <code>optional string mac = 5;</code>
252
- * @return The bytes for mac.
253
- */
254
- @java.lang.Override
255
- public com.google.protobuf.ByteString
256
- getMacBytes() {
257
- java.lang.Object ref = mac_;
258
- if (ref instanceof java.lang.String) {
259
- com.google.protobuf.ByteString b =
260
- com.google.protobuf.ByteString.copyFromUtf8(
261
- (java.lang.String) ref);
262
- mac_ = b;
263
- return b;
264
- } else {
265
- return (com.google.protobuf.ByteString) ref;
266
- }
267
- }
268
-
269
- public static final int DESCRIPTION_FIELD_NUMBER = 6;
270
- @SuppressWarnings("serial")
271
- private volatile java.lang.Object description_ = "";
272
- /**
273
- * <code>optional string description = 6;</code>
274
- * @return Whether the description field is set.
275
- */
276
- @java.lang.Override
277
- public boolean hasDescription() {
278
- return ((bitField0_ & 0x00000008) != 0);
279
- }
280
- /**
281
- * <code>optional string description = 6;</code>
282
- * @return The description.
283
- */
284
- @java.lang.Override
285
- public java.lang.String getDescription() {
286
- java.lang.Object ref = description_;
287
- if (ref instanceof java.lang.String) {
288
- return (java.lang.String) ref;
289
- } else {
290
- com.google.protobuf.ByteString bs =
291
- (com.google.protobuf.ByteString) ref;
292
- java.lang.String s = bs.toStringUtf8();
293
- description_ = s;
294
- return s;
295
- }
296
- }
297
- /**
298
- * <code>optional string description = 6;</code>
299
- * @return The bytes for description.
300
- */
301
- @java.lang.Override
302
- public com.google.protobuf.ByteString
303
- getDescriptionBytes() {
304
- java.lang.Object ref = description_;
305
- if (ref instanceof java.lang.String) {
306
- com.google.protobuf.ByteString b =
307
- com.google.protobuf.ByteString.copyFromUtf8(
308
- (java.lang.String) ref);
309
- description_ = b;
310
- return b;
311
- } else {
312
- return (com.google.protobuf.ByteString) ref;
313
- }
314
- }
315
-
316
- public static final int FQDN_FIELD_NUMBER = 7;
317
- @SuppressWarnings("serial")
318
- private volatile java.lang.Object fqdn_ = "";
319
- /**
320
- * <code>optional string fqdn = 7;</code>
321
- * @return Whether the fqdn field is set.
322
- */
323
- @java.lang.Override
324
- public boolean hasFqdn() {
325
- return ((bitField0_ & 0x00000010) != 0);
326
- }
327
- /**
328
- * <code>optional string fqdn = 7;</code>
329
- * @return The fqdn.
330
- */
331
- @java.lang.Override
332
- public java.lang.String getFqdn() {
333
- java.lang.Object ref = fqdn_;
334
- if (ref instanceof java.lang.String) {
335
- return (java.lang.String) ref;
336
- } else {
337
- com.google.protobuf.ByteString bs =
338
- (com.google.protobuf.ByteString) ref;
339
- java.lang.String s = bs.toStringUtf8();
340
- fqdn_ = s;
341
- return s;
342
- }
343
- }
344
- /**
345
- * <code>optional string fqdn = 7;</code>
346
- * @return The bytes for fqdn.
347
- */
348
- @java.lang.Override
349
- public com.google.protobuf.ByteString
350
- getFqdnBytes() {
351
- java.lang.Object ref = fqdn_;
352
- if (ref instanceof java.lang.String) {
353
- com.google.protobuf.ByteString b =
354
- com.google.protobuf.ByteString.copyFromUtf8(
355
- (java.lang.String) ref);
356
- fqdn_ = b;
357
- return b;
358
- } else {
359
- return (com.google.protobuf.ByteString) ref;
360
- }
361
- }
362
-
363
- public static final int TYPE_NAME_FIELD_NUMBER = 8;
364
- @SuppressWarnings("serial")
365
- private volatile java.lang.Object typeName_ = "";
366
- /**
367
- * <code>optional string type_name = 8;</code>
368
- * @return Whether the typeName field is set.
369
- */
370
- @java.lang.Override
371
- public boolean hasTypeName() {
372
- return ((bitField0_ & 0x00000020) != 0);
373
- }
374
- /**
375
- * <code>optional string type_name = 8;</code>
376
- * @return The typeName.
377
- */
378
- @java.lang.Override
379
- public java.lang.String getTypeName() {
380
- java.lang.Object ref = typeName_;
381
- if (ref instanceof java.lang.String) {
382
- return (java.lang.String) ref;
383
- } else {
384
- com.google.protobuf.ByteString bs =
385
- (com.google.protobuf.ByteString) ref;
386
- java.lang.String s = bs.toStringUtf8();
387
- typeName_ = s;
388
- return s;
389
- }
390
- }
391
- /**
392
- * <code>optional string type_name = 8;</code>
393
- * @return The bytes for typeName.
394
- */
395
- @java.lang.Override
396
- public com.google.protobuf.ByteString
397
- getTypeNameBytes() {
398
- java.lang.Object ref = typeName_;
399
- if (ref instanceof java.lang.String) {
400
- com.google.protobuf.ByteString b =
401
- com.google.protobuf.ByteString.copyFromUtf8(
402
- (java.lang.String) ref);
403
- typeName_ = b;
404
- return b;
405
- } else {
406
- return (com.google.protobuf.ByteString) ref;
407
- }
408
- }
409
-
410
- private byte memoizedIsInitialized = -1;
411
- @java.lang.Override
412
- public final boolean isInitialized() {
413
- byte isInitialized = memoizedIsInitialized;
414
- if (isInitialized == 1) return true;
415
- if (isInitialized == 0) return false;
416
-
417
- memoizedIsInitialized = 1;
418
- return true;
419
- }
420
-
421
- @java.lang.Override
422
- public void writeTo(com.google.protobuf.CodedOutputStream output)
423
- throws java.io.IOException {
424
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeKey_)) {
425
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, typeKey_);
426
- }
427
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
428
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
429
- }
430
- if (((bitField0_ & 0x00000001) != 0)) {
431
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_);
432
- }
433
- if (((bitField0_ & 0x00000002) != 0)) {
434
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ipAddress_);
435
- }
436
- if (((bitField0_ & 0x00000004) != 0)) {
437
- com.google.protobuf.GeneratedMessageV3.writeString(output, 5, mac_);
438
- }
439
- if (((bitField0_ & 0x00000008) != 0)) {
440
- com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_);
441
- }
442
- if (((bitField0_ & 0x00000010) != 0)) {
443
- com.google.protobuf.GeneratedMessageV3.writeString(output, 7, fqdn_);
444
- }
445
- if (((bitField0_ & 0x00000020) != 0)) {
446
- com.google.protobuf.GeneratedMessageV3.writeString(output, 8, typeName_);
447
- }
448
- getUnknownFields().writeTo(output);
449
- }
450
-
451
- @java.lang.Override
452
- public int getSerializedSize() {
453
- int size = memoizedSize;
454
- if (size != -1) return size;
455
-
456
- size = 0;
457
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeKey_)) {
458
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, typeKey_);
459
- }
460
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
461
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
462
- }
463
- if (((bitField0_ & 0x00000001) != 0)) {
464
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_);
465
- }
466
- if (((bitField0_ & 0x00000002) != 0)) {
467
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, ipAddress_);
468
- }
469
- if (((bitField0_ & 0x00000004) != 0)) {
470
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, mac_);
471
- }
472
- if (((bitField0_ & 0x00000008) != 0)) {
473
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_);
474
- }
475
- if (((bitField0_ & 0x00000010) != 0)) {
476
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, fqdn_);
477
- }
478
- if (((bitField0_ & 0x00000020) != 0)) {
479
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, typeName_);
480
- }
481
- size += getUnknownFields().getSerializedSize();
482
- memoizedSize = size;
483
- return size;
484
- }
485
-
486
- @java.lang.Override
487
- public boolean equals(final java.lang.Object obj) {
488
- if (obj == this) {
489
- return true;
490
- }
491
- if (!(obj instanceof lansweeper.integrations.assets.v1.AssetBasicInfo)) {
492
- return super.equals(obj);
493
- }
494
- lansweeper.integrations.assets.v1.AssetBasicInfo other = (lansweeper.integrations.assets.v1.AssetBasicInfo) obj;
495
-
496
- if (!getTypeKey()
497
- .equals(other.getTypeKey())) return false;
498
- if (!getName()
499
- .equals(other.getName())) return false;
500
- if (hasDomain() != other.hasDomain()) return false;
501
- if (hasDomain()) {
502
- if (!getDomain()
503
- .equals(other.getDomain())) return false;
504
- }
505
- if (hasIpAddress() != other.hasIpAddress()) return false;
506
- if (hasIpAddress()) {
507
- if (!getIpAddress()
508
- .equals(other.getIpAddress())) return false;
509
- }
510
- if (hasMac() != other.hasMac()) return false;
511
- if (hasMac()) {
512
- if (!getMac()
513
- .equals(other.getMac())) return false;
514
- }
515
- if (hasDescription() != other.hasDescription()) return false;
516
- if (hasDescription()) {
517
- if (!getDescription()
518
- .equals(other.getDescription())) return false;
519
- }
520
- if (hasFqdn() != other.hasFqdn()) return false;
521
- if (hasFqdn()) {
522
- if (!getFqdn()
523
- .equals(other.getFqdn())) return false;
524
- }
525
- if (hasTypeName() != other.hasTypeName()) return false;
526
- if (hasTypeName()) {
527
- if (!getTypeName()
528
- .equals(other.getTypeName())) return false;
529
- }
530
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
531
- return true;
532
- }
533
-
534
- @java.lang.Override
535
- public int hashCode() {
536
- if (memoizedHashCode != 0) {
537
- return memoizedHashCode;
538
- }
539
- int hash = 41;
540
- hash = (19 * hash) + getDescriptor().hashCode();
541
- hash = (37 * hash) + TYPE_KEY_FIELD_NUMBER;
542
- hash = (53 * hash) + getTypeKey().hashCode();
543
- hash = (37 * hash) + NAME_FIELD_NUMBER;
544
- hash = (53 * hash) + getName().hashCode();
545
- if (hasDomain()) {
546
- hash = (37 * hash) + DOMAIN_FIELD_NUMBER;
547
- hash = (53 * hash) + getDomain().hashCode();
548
- }
549
- if (hasIpAddress()) {
550
- hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER;
551
- hash = (53 * hash) + getIpAddress().hashCode();
552
- }
553
- if (hasMac()) {
554
- hash = (37 * hash) + MAC_FIELD_NUMBER;
555
- hash = (53 * hash) + getMac().hashCode();
556
- }
557
- if (hasDescription()) {
558
- hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
559
- hash = (53 * hash) + getDescription().hashCode();
560
- }
561
- if (hasFqdn()) {
562
- hash = (37 * hash) + FQDN_FIELD_NUMBER;
563
- hash = (53 * hash) + getFqdn().hashCode();
564
- }
565
- if (hasTypeName()) {
566
- hash = (37 * hash) + TYPE_NAME_FIELD_NUMBER;
567
- hash = (53 * hash) + getTypeName().hashCode();
568
- }
569
- hash = (29 * hash) + getUnknownFields().hashCode();
570
- memoizedHashCode = hash;
571
- return hash;
572
- }
573
-
574
- public static lansweeper.integrations.assets.v1.AssetBasicInfo parseFrom(
575
- java.nio.ByteBuffer data)
576
- throws com.google.protobuf.InvalidProtocolBufferException {
577
- return PARSER.parseFrom(data);
578
- }
579
- public static lansweeper.integrations.assets.v1.AssetBasicInfo parseFrom(
580
- java.nio.ByteBuffer data,
581
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
582
- throws com.google.protobuf.InvalidProtocolBufferException {
583
- return PARSER.parseFrom(data, extensionRegistry);
584
- }
585
- public static lansweeper.integrations.assets.v1.AssetBasicInfo parseFrom(
586
- com.google.protobuf.ByteString data)
587
- throws com.google.protobuf.InvalidProtocolBufferException {
588
- return PARSER.parseFrom(data);
589
- }
590
- public static lansweeper.integrations.assets.v1.AssetBasicInfo parseFrom(
591
- com.google.protobuf.ByteString data,
592
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
593
- throws com.google.protobuf.InvalidProtocolBufferException {
594
- return PARSER.parseFrom(data, extensionRegistry);
595
- }
596
- public static lansweeper.integrations.assets.v1.AssetBasicInfo parseFrom(byte[] data)
597
- throws com.google.protobuf.InvalidProtocolBufferException {
598
- return PARSER.parseFrom(data);
599
- }
600
- public static lansweeper.integrations.assets.v1.AssetBasicInfo parseFrom(
601
- byte[] data,
602
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
603
- throws com.google.protobuf.InvalidProtocolBufferException {
604
- return PARSER.parseFrom(data, extensionRegistry);
605
- }
606
- public static lansweeper.integrations.assets.v1.AssetBasicInfo parseFrom(java.io.InputStream input)
607
- throws java.io.IOException {
608
- return com.google.protobuf.GeneratedMessageV3
609
- .parseWithIOException(PARSER, input);
610
- }
611
- public static lansweeper.integrations.assets.v1.AssetBasicInfo parseFrom(
612
- java.io.InputStream input,
613
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
614
- throws java.io.IOException {
615
- return com.google.protobuf.GeneratedMessageV3
616
- .parseWithIOException(PARSER, input, extensionRegistry);
617
- }
618
- public static lansweeper.integrations.assets.v1.AssetBasicInfo parseDelimitedFrom(java.io.InputStream input)
619
- throws java.io.IOException {
620
- return com.google.protobuf.GeneratedMessageV3
621
- .parseDelimitedWithIOException(PARSER, input);
622
- }
623
- public static lansweeper.integrations.assets.v1.AssetBasicInfo parseDelimitedFrom(
624
- java.io.InputStream input,
625
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
626
- throws java.io.IOException {
627
- return com.google.protobuf.GeneratedMessageV3
628
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
629
- }
630
- public static lansweeper.integrations.assets.v1.AssetBasicInfo parseFrom(
631
- com.google.protobuf.CodedInputStream input)
632
- throws java.io.IOException {
633
- return com.google.protobuf.GeneratedMessageV3
634
- .parseWithIOException(PARSER, input);
635
- }
636
- public static lansweeper.integrations.assets.v1.AssetBasicInfo parseFrom(
637
- com.google.protobuf.CodedInputStream input,
638
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
639
- throws java.io.IOException {
640
- return com.google.protobuf.GeneratedMessageV3
641
- .parseWithIOException(PARSER, input, extensionRegistry);
642
- }
643
-
644
- @java.lang.Override
645
- public Builder newBuilderForType() { return newBuilder(); }
646
- public static Builder newBuilder() {
647
- return DEFAULT_INSTANCE.toBuilder();
648
- }
649
- public static Builder newBuilder(lansweeper.integrations.assets.v1.AssetBasicInfo prototype) {
650
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
651
- }
652
- @java.lang.Override
653
- public Builder toBuilder() {
654
- return this == DEFAULT_INSTANCE
655
- ? new Builder() : new Builder().mergeFrom(this);
656
- }
657
-
658
- @java.lang.Override
659
- protected Builder newBuilderForType(
660
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
661
- Builder builder = new Builder(parent);
662
- return builder;
663
- }
664
- /**
665
- * Protobuf type {@code lansweeper.integrations.assets.v1.AssetBasicInfo}
666
- */
667
- public static final class Builder extends
668
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
669
- // @@protoc_insertion_point(builder_implements:lansweeper.integrations.assets.v1.AssetBasicInfo)
670
- lansweeper.integrations.assets.v1.AssetBasicInfoOrBuilder {
671
- public static final com.google.protobuf.Descriptors.Descriptor
672
- getDescriptor() {
673
- return lansweeper.integrations.assets.v1.Assets.internal_static_lansweeper_integrations_assets_v1_AssetBasicInfo_descriptor;
674
- }
675
-
676
- @java.lang.Override
677
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
678
- internalGetFieldAccessorTable() {
679
- return lansweeper.integrations.assets.v1.Assets.internal_static_lansweeper_integrations_assets_v1_AssetBasicInfo_fieldAccessorTable
680
- .ensureFieldAccessorsInitialized(
681
- lansweeper.integrations.assets.v1.AssetBasicInfo.class, lansweeper.integrations.assets.v1.AssetBasicInfo.Builder.class);
682
- }
683
-
684
- // Construct using lansweeper.integrations.assets.v1.AssetBasicInfo.newBuilder()
685
- private Builder() {
686
-
687
- }
688
-
689
- private Builder(
690
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
691
- super(parent);
692
-
693
- }
694
- @java.lang.Override
695
- public Builder clear() {
696
- super.clear();
697
- bitField0_ = 0;
698
- typeKey_ = "";
699
- name_ = "";
700
- domain_ = "";
701
- ipAddress_ = "";
702
- mac_ = "";
703
- description_ = "";
704
- fqdn_ = "";
705
- typeName_ = "";
706
- return this;
707
- }
708
-
709
- @java.lang.Override
710
- public com.google.protobuf.Descriptors.Descriptor
711
- getDescriptorForType() {
712
- return lansweeper.integrations.assets.v1.Assets.internal_static_lansweeper_integrations_assets_v1_AssetBasicInfo_descriptor;
713
- }
714
-
715
- @java.lang.Override
716
- public lansweeper.integrations.assets.v1.AssetBasicInfo getDefaultInstanceForType() {
717
- return lansweeper.integrations.assets.v1.AssetBasicInfo.getDefaultInstance();
718
- }
719
-
720
- @java.lang.Override
721
- public lansweeper.integrations.assets.v1.AssetBasicInfo build() {
722
- lansweeper.integrations.assets.v1.AssetBasicInfo result = buildPartial();
723
- if (!result.isInitialized()) {
724
- throw newUninitializedMessageException(result);
725
- }
726
- return result;
727
- }
728
-
729
- @java.lang.Override
730
- public lansweeper.integrations.assets.v1.AssetBasicInfo buildPartial() {
731
- lansweeper.integrations.assets.v1.AssetBasicInfo result = new lansweeper.integrations.assets.v1.AssetBasicInfo(this);
732
- if (bitField0_ != 0) { buildPartial0(result); }
733
- onBuilt();
734
- return result;
735
- }
736
-
737
- private void buildPartial0(lansweeper.integrations.assets.v1.AssetBasicInfo result) {
738
- int from_bitField0_ = bitField0_;
739
- if (((from_bitField0_ & 0x00000001) != 0)) {
740
- result.typeKey_ = typeKey_;
741
- }
742
- if (((from_bitField0_ & 0x00000002) != 0)) {
743
- result.name_ = name_;
744
- }
745
- int to_bitField0_ = 0;
746
- if (((from_bitField0_ & 0x00000004) != 0)) {
747
- result.domain_ = domain_;
748
- to_bitField0_ |= 0x00000001;
749
- }
750
- if (((from_bitField0_ & 0x00000008) != 0)) {
751
- result.ipAddress_ = ipAddress_;
752
- to_bitField0_ |= 0x00000002;
753
- }
754
- if (((from_bitField0_ & 0x00000010) != 0)) {
755
- result.mac_ = mac_;
756
- to_bitField0_ |= 0x00000004;
757
- }
758
- if (((from_bitField0_ & 0x00000020) != 0)) {
759
- result.description_ = description_;
760
- to_bitField0_ |= 0x00000008;
761
- }
762
- if (((from_bitField0_ & 0x00000040) != 0)) {
763
- result.fqdn_ = fqdn_;
764
- to_bitField0_ |= 0x00000010;
765
- }
766
- if (((from_bitField0_ & 0x00000080) != 0)) {
767
- result.typeName_ = typeName_;
768
- to_bitField0_ |= 0x00000020;
769
- }
770
- result.bitField0_ |= to_bitField0_;
771
- }
772
-
773
- @java.lang.Override
774
- public Builder mergeFrom(com.google.protobuf.Message other) {
775
- if (other instanceof lansweeper.integrations.assets.v1.AssetBasicInfo) {
776
- return mergeFrom((lansweeper.integrations.assets.v1.AssetBasicInfo)other);
777
- } else {
778
- super.mergeFrom(other);
779
- return this;
780
- }
781
- }
782
-
783
- public Builder mergeFrom(lansweeper.integrations.assets.v1.AssetBasicInfo other) {
784
- if (other == lansweeper.integrations.assets.v1.AssetBasicInfo.getDefaultInstance()) return this;
785
- if (!other.getTypeKey().isEmpty()) {
786
- typeKey_ = other.typeKey_;
787
- bitField0_ |= 0x00000001;
788
- onChanged();
789
- }
790
- if (!other.getName().isEmpty()) {
791
- name_ = other.name_;
792
- bitField0_ |= 0x00000002;
793
- onChanged();
794
- }
795
- if (other.hasDomain()) {
796
- domain_ = other.domain_;
797
- bitField0_ |= 0x00000004;
798
- onChanged();
799
- }
800
- if (other.hasIpAddress()) {
801
- ipAddress_ = other.ipAddress_;
802
- bitField0_ |= 0x00000008;
803
- onChanged();
804
- }
805
- if (other.hasMac()) {
806
- mac_ = other.mac_;
807
- bitField0_ |= 0x00000010;
808
- onChanged();
809
- }
810
- if (other.hasDescription()) {
811
- description_ = other.description_;
812
- bitField0_ |= 0x00000020;
813
- onChanged();
814
- }
815
- if (other.hasFqdn()) {
816
- fqdn_ = other.fqdn_;
817
- bitField0_ |= 0x00000040;
818
- onChanged();
819
- }
820
- if (other.hasTypeName()) {
821
- typeName_ = other.typeName_;
822
- bitField0_ |= 0x00000080;
823
- onChanged();
824
- }
825
- this.mergeUnknownFields(other.getUnknownFields());
826
- onChanged();
827
- return this;
828
- }
829
-
830
- @java.lang.Override
831
- public final boolean isInitialized() {
832
- return true;
833
- }
834
-
835
- @java.lang.Override
836
- public Builder mergeFrom(
837
- com.google.protobuf.CodedInputStream input,
838
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
839
- throws java.io.IOException {
840
- if (extensionRegistry == null) {
841
- throw new java.lang.NullPointerException();
842
- }
843
- try {
844
- boolean done = false;
845
- while (!done) {
846
- int tag = input.readTag();
847
- switch (tag) {
848
- case 0:
849
- done = true;
850
- break;
851
- case 10: {
852
- typeKey_ = input.readStringRequireUtf8();
853
- bitField0_ |= 0x00000001;
854
- break;
855
- } // case 10
856
- case 18: {
857
- name_ = input.readStringRequireUtf8();
858
- bitField0_ |= 0x00000002;
859
- break;
860
- } // case 18
861
- case 26: {
862
- domain_ = input.readStringRequireUtf8();
863
- bitField0_ |= 0x00000004;
864
- break;
865
- } // case 26
866
- case 34: {
867
- ipAddress_ = input.readStringRequireUtf8();
868
- bitField0_ |= 0x00000008;
869
- break;
870
- } // case 34
871
- case 42: {
872
- mac_ = input.readStringRequireUtf8();
873
- bitField0_ |= 0x00000010;
874
- break;
875
- } // case 42
876
- case 50: {
877
- description_ = input.readStringRequireUtf8();
878
- bitField0_ |= 0x00000020;
879
- break;
880
- } // case 50
881
- case 58: {
882
- fqdn_ = input.readStringRequireUtf8();
883
- bitField0_ |= 0x00000040;
884
- break;
885
- } // case 58
886
- case 66: {
887
- typeName_ = input.readStringRequireUtf8();
888
- bitField0_ |= 0x00000080;
889
- break;
890
- } // case 66
891
- default: {
892
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
893
- done = true; // was an endgroup tag
894
- }
895
- break;
896
- } // default:
897
- } // switch (tag)
898
- } // while (!done)
899
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
900
- throw e.unwrapIOException();
901
- } finally {
902
- onChanged();
903
- } // finally
904
- return this;
905
- }
906
- private int bitField0_;
907
-
908
- private java.lang.Object typeKey_ = "";
909
- /**
910
- * <code>string type_key = 1;</code>
911
- * @return The typeKey.
912
- */
913
- public java.lang.String getTypeKey() {
914
- java.lang.Object ref = typeKey_;
915
- if (!(ref instanceof java.lang.String)) {
916
- com.google.protobuf.ByteString bs =
917
- (com.google.protobuf.ByteString) ref;
918
- java.lang.String s = bs.toStringUtf8();
919
- typeKey_ = s;
920
- return s;
921
- } else {
922
- return (java.lang.String) ref;
923
- }
924
- }
925
- /**
926
- * <code>string type_key = 1;</code>
927
- * @return The bytes for typeKey.
928
- */
929
- public com.google.protobuf.ByteString
930
- getTypeKeyBytes() {
931
- java.lang.Object ref = typeKey_;
932
- if (ref instanceof String) {
933
- com.google.protobuf.ByteString b =
934
- com.google.protobuf.ByteString.copyFromUtf8(
935
- (java.lang.String) ref);
936
- typeKey_ = b;
937
- return b;
938
- } else {
939
- return (com.google.protobuf.ByteString) ref;
940
- }
941
- }
942
- /**
943
- * <code>string type_key = 1;</code>
944
- * @param value The typeKey to set.
945
- * @return This builder for chaining.
946
- */
947
- public Builder setTypeKey(
948
- java.lang.String value) {
949
- if (value == null) { throw new NullPointerException(); }
950
- typeKey_ = value;
951
- bitField0_ |= 0x00000001;
952
- onChanged();
953
- return this;
954
- }
955
- /**
956
- * <code>string type_key = 1;</code>
957
- * @return This builder for chaining.
958
- */
959
- public Builder clearTypeKey() {
960
- typeKey_ = getDefaultInstance().getTypeKey();
961
- bitField0_ = (bitField0_ & ~0x00000001);
962
- onChanged();
963
- return this;
964
- }
965
- /**
966
- * <code>string type_key = 1;</code>
967
- * @param value The bytes for typeKey to set.
968
- * @return This builder for chaining.
969
- */
970
- public Builder setTypeKeyBytes(
971
- com.google.protobuf.ByteString value) {
972
- if (value == null) { throw new NullPointerException(); }
973
- checkByteStringIsUtf8(value);
974
- typeKey_ = value;
975
- bitField0_ |= 0x00000001;
976
- onChanged();
977
- return this;
978
- }
979
-
980
- private java.lang.Object name_ = "";
981
- /**
982
- * <code>string name = 2;</code>
983
- * @return The name.
984
- */
985
- public java.lang.String getName() {
986
- java.lang.Object ref = name_;
987
- if (!(ref instanceof java.lang.String)) {
988
- com.google.protobuf.ByteString bs =
989
- (com.google.protobuf.ByteString) ref;
990
- java.lang.String s = bs.toStringUtf8();
991
- name_ = s;
992
- return s;
993
- } else {
994
- return (java.lang.String) ref;
995
- }
996
- }
997
- /**
998
- * <code>string name = 2;</code>
999
- * @return The bytes for name.
1000
- */
1001
- public com.google.protobuf.ByteString
1002
- getNameBytes() {
1003
- java.lang.Object ref = name_;
1004
- if (ref instanceof String) {
1005
- com.google.protobuf.ByteString b =
1006
- com.google.protobuf.ByteString.copyFromUtf8(
1007
- (java.lang.String) ref);
1008
- name_ = b;
1009
- return b;
1010
- } else {
1011
- return (com.google.protobuf.ByteString) ref;
1012
- }
1013
- }
1014
- /**
1015
- * <code>string name = 2;</code>
1016
- * @param value The name to set.
1017
- * @return This builder for chaining.
1018
- */
1019
- public Builder setName(
1020
- java.lang.String value) {
1021
- if (value == null) { throw new NullPointerException(); }
1022
- name_ = value;
1023
- bitField0_ |= 0x00000002;
1024
- onChanged();
1025
- return this;
1026
- }
1027
- /**
1028
- * <code>string name = 2;</code>
1029
- * @return This builder for chaining.
1030
- */
1031
- public Builder clearName() {
1032
- name_ = getDefaultInstance().getName();
1033
- bitField0_ = (bitField0_ & ~0x00000002);
1034
- onChanged();
1035
- return this;
1036
- }
1037
- /**
1038
- * <code>string name = 2;</code>
1039
- * @param value The bytes for name to set.
1040
- * @return This builder for chaining.
1041
- */
1042
- public Builder setNameBytes(
1043
- com.google.protobuf.ByteString value) {
1044
- if (value == null) { throw new NullPointerException(); }
1045
- checkByteStringIsUtf8(value);
1046
- name_ = value;
1047
- bitField0_ |= 0x00000002;
1048
- onChanged();
1049
- return this;
1050
- }
1051
-
1052
- private java.lang.Object domain_ = "";
1053
- /**
1054
- * <code>optional string domain = 3;</code>
1055
- * @return Whether the domain field is set.
1056
- */
1057
- public boolean hasDomain() {
1058
- return ((bitField0_ & 0x00000004) != 0);
1059
- }
1060
- /**
1061
- * <code>optional string domain = 3;</code>
1062
- * @return The domain.
1063
- */
1064
- public java.lang.String getDomain() {
1065
- java.lang.Object ref = domain_;
1066
- if (!(ref instanceof java.lang.String)) {
1067
- com.google.protobuf.ByteString bs =
1068
- (com.google.protobuf.ByteString) ref;
1069
- java.lang.String s = bs.toStringUtf8();
1070
- domain_ = s;
1071
- return s;
1072
- } else {
1073
- return (java.lang.String) ref;
1074
- }
1075
- }
1076
- /**
1077
- * <code>optional string domain = 3;</code>
1078
- * @return The bytes for domain.
1079
- */
1080
- public com.google.protobuf.ByteString
1081
- getDomainBytes() {
1082
- java.lang.Object ref = domain_;
1083
- if (ref instanceof String) {
1084
- com.google.protobuf.ByteString b =
1085
- com.google.protobuf.ByteString.copyFromUtf8(
1086
- (java.lang.String) ref);
1087
- domain_ = b;
1088
- return b;
1089
- } else {
1090
- return (com.google.protobuf.ByteString) ref;
1091
- }
1092
- }
1093
- /**
1094
- * <code>optional string domain = 3;</code>
1095
- * @param value The domain to set.
1096
- * @return This builder for chaining.
1097
- */
1098
- public Builder setDomain(
1099
- java.lang.String value) {
1100
- if (value == null) { throw new NullPointerException(); }
1101
- domain_ = value;
1102
- bitField0_ |= 0x00000004;
1103
- onChanged();
1104
- return this;
1105
- }
1106
- /**
1107
- * <code>optional string domain = 3;</code>
1108
- * @return This builder for chaining.
1109
- */
1110
- public Builder clearDomain() {
1111
- domain_ = getDefaultInstance().getDomain();
1112
- bitField0_ = (bitField0_ & ~0x00000004);
1113
- onChanged();
1114
- return this;
1115
- }
1116
- /**
1117
- * <code>optional string domain = 3;</code>
1118
- * @param value The bytes for domain to set.
1119
- * @return This builder for chaining.
1120
- */
1121
- public Builder setDomainBytes(
1122
- com.google.protobuf.ByteString value) {
1123
- if (value == null) { throw new NullPointerException(); }
1124
- checkByteStringIsUtf8(value);
1125
- domain_ = value;
1126
- bitField0_ |= 0x00000004;
1127
- onChanged();
1128
- return this;
1129
- }
1130
-
1131
- private java.lang.Object ipAddress_ = "";
1132
- /**
1133
- * <code>optional string ip_address = 4;</code>
1134
- * @return Whether the ipAddress field is set.
1135
- */
1136
- public boolean hasIpAddress() {
1137
- return ((bitField0_ & 0x00000008) != 0);
1138
- }
1139
- /**
1140
- * <code>optional string ip_address = 4;</code>
1141
- * @return The ipAddress.
1142
- */
1143
- public java.lang.String getIpAddress() {
1144
- java.lang.Object ref = ipAddress_;
1145
- if (!(ref instanceof java.lang.String)) {
1146
- com.google.protobuf.ByteString bs =
1147
- (com.google.protobuf.ByteString) ref;
1148
- java.lang.String s = bs.toStringUtf8();
1149
- ipAddress_ = s;
1150
- return s;
1151
- } else {
1152
- return (java.lang.String) ref;
1153
- }
1154
- }
1155
- /**
1156
- * <code>optional string ip_address = 4;</code>
1157
- * @return The bytes for ipAddress.
1158
- */
1159
- public com.google.protobuf.ByteString
1160
- getIpAddressBytes() {
1161
- java.lang.Object ref = ipAddress_;
1162
- if (ref instanceof String) {
1163
- com.google.protobuf.ByteString b =
1164
- com.google.protobuf.ByteString.copyFromUtf8(
1165
- (java.lang.String) ref);
1166
- ipAddress_ = b;
1167
- return b;
1168
- } else {
1169
- return (com.google.protobuf.ByteString) ref;
1170
- }
1171
- }
1172
- /**
1173
- * <code>optional string ip_address = 4;</code>
1174
- * @param value The ipAddress to set.
1175
- * @return This builder for chaining.
1176
- */
1177
- public Builder setIpAddress(
1178
- java.lang.String value) {
1179
- if (value == null) { throw new NullPointerException(); }
1180
- ipAddress_ = value;
1181
- bitField0_ |= 0x00000008;
1182
- onChanged();
1183
- return this;
1184
- }
1185
- /**
1186
- * <code>optional string ip_address = 4;</code>
1187
- * @return This builder for chaining.
1188
- */
1189
- public Builder clearIpAddress() {
1190
- ipAddress_ = getDefaultInstance().getIpAddress();
1191
- bitField0_ = (bitField0_ & ~0x00000008);
1192
- onChanged();
1193
- return this;
1194
- }
1195
- /**
1196
- * <code>optional string ip_address = 4;</code>
1197
- * @param value The bytes for ipAddress to set.
1198
- * @return This builder for chaining.
1199
- */
1200
- public Builder setIpAddressBytes(
1201
- com.google.protobuf.ByteString value) {
1202
- if (value == null) { throw new NullPointerException(); }
1203
- checkByteStringIsUtf8(value);
1204
- ipAddress_ = value;
1205
- bitField0_ |= 0x00000008;
1206
- onChanged();
1207
- return this;
1208
- }
1209
-
1210
- private java.lang.Object mac_ = "";
1211
- /**
1212
- * <code>optional string mac = 5;</code>
1213
- * @return Whether the mac field is set.
1214
- */
1215
- public boolean hasMac() {
1216
- return ((bitField0_ & 0x00000010) != 0);
1217
- }
1218
- /**
1219
- * <code>optional string mac = 5;</code>
1220
- * @return The mac.
1221
- */
1222
- public java.lang.String getMac() {
1223
- java.lang.Object ref = mac_;
1224
- if (!(ref instanceof java.lang.String)) {
1225
- com.google.protobuf.ByteString bs =
1226
- (com.google.protobuf.ByteString) ref;
1227
- java.lang.String s = bs.toStringUtf8();
1228
- mac_ = s;
1229
- return s;
1230
- } else {
1231
- return (java.lang.String) ref;
1232
- }
1233
- }
1234
- /**
1235
- * <code>optional string mac = 5;</code>
1236
- * @return The bytes for mac.
1237
- */
1238
- public com.google.protobuf.ByteString
1239
- getMacBytes() {
1240
- java.lang.Object ref = mac_;
1241
- if (ref instanceof String) {
1242
- com.google.protobuf.ByteString b =
1243
- com.google.protobuf.ByteString.copyFromUtf8(
1244
- (java.lang.String) ref);
1245
- mac_ = b;
1246
- return b;
1247
- } else {
1248
- return (com.google.protobuf.ByteString) ref;
1249
- }
1250
- }
1251
- /**
1252
- * <code>optional string mac = 5;</code>
1253
- * @param value The mac to set.
1254
- * @return This builder for chaining.
1255
- */
1256
- public Builder setMac(
1257
- java.lang.String value) {
1258
- if (value == null) { throw new NullPointerException(); }
1259
- mac_ = value;
1260
- bitField0_ |= 0x00000010;
1261
- onChanged();
1262
- return this;
1263
- }
1264
- /**
1265
- * <code>optional string mac = 5;</code>
1266
- * @return This builder for chaining.
1267
- */
1268
- public Builder clearMac() {
1269
- mac_ = getDefaultInstance().getMac();
1270
- bitField0_ = (bitField0_ & ~0x00000010);
1271
- onChanged();
1272
- return this;
1273
- }
1274
- /**
1275
- * <code>optional string mac = 5;</code>
1276
- * @param value The bytes for mac to set.
1277
- * @return This builder for chaining.
1278
- */
1279
- public Builder setMacBytes(
1280
- com.google.protobuf.ByteString value) {
1281
- if (value == null) { throw new NullPointerException(); }
1282
- checkByteStringIsUtf8(value);
1283
- mac_ = value;
1284
- bitField0_ |= 0x00000010;
1285
- onChanged();
1286
- return this;
1287
- }
1288
-
1289
- private java.lang.Object description_ = "";
1290
- /**
1291
- * <code>optional string description = 6;</code>
1292
- * @return Whether the description field is set.
1293
- */
1294
- public boolean hasDescription() {
1295
- return ((bitField0_ & 0x00000020) != 0);
1296
- }
1297
- /**
1298
- * <code>optional string description = 6;</code>
1299
- * @return The description.
1300
- */
1301
- public java.lang.String getDescription() {
1302
- java.lang.Object ref = description_;
1303
- if (!(ref instanceof java.lang.String)) {
1304
- com.google.protobuf.ByteString bs =
1305
- (com.google.protobuf.ByteString) ref;
1306
- java.lang.String s = bs.toStringUtf8();
1307
- description_ = s;
1308
- return s;
1309
- } else {
1310
- return (java.lang.String) ref;
1311
- }
1312
- }
1313
- /**
1314
- * <code>optional string description = 6;</code>
1315
- * @return The bytes for description.
1316
- */
1317
- public com.google.protobuf.ByteString
1318
- getDescriptionBytes() {
1319
- java.lang.Object ref = description_;
1320
- if (ref instanceof String) {
1321
- com.google.protobuf.ByteString b =
1322
- com.google.protobuf.ByteString.copyFromUtf8(
1323
- (java.lang.String) ref);
1324
- description_ = b;
1325
- return b;
1326
- } else {
1327
- return (com.google.protobuf.ByteString) ref;
1328
- }
1329
- }
1330
- /**
1331
- * <code>optional string description = 6;</code>
1332
- * @param value The description to set.
1333
- * @return This builder for chaining.
1334
- */
1335
- public Builder setDescription(
1336
- java.lang.String value) {
1337
- if (value == null) { throw new NullPointerException(); }
1338
- description_ = value;
1339
- bitField0_ |= 0x00000020;
1340
- onChanged();
1341
- return this;
1342
- }
1343
- /**
1344
- * <code>optional string description = 6;</code>
1345
- * @return This builder for chaining.
1346
- */
1347
- public Builder clearDescription() {
1348
- description_ = getDefaultInstance().getDescription();
1349
- bitField0_ = (bitField0_ & ~0x00000020);
1350
- onChanged();
1351
- return this;
1352
- }
1353
- /**
1354
- * <code>optional string description = 6;</code>
1355
- * @param value The bytes for description to set.
1356
- * @return This builder for chaining.
1357
- */
1358
- public Builder setDescriptionBytes(
1359
- com.google.protobuf.ByteString value) {
1360
- if (value == null) { throw new NullPointerException(); }
1361
- checkByteStringIsUtf8(value);
1362
- description_ = value;
1363
- bitField0_ |= 0x00000020;
1364
- onChanged();
1365
- return this;
1366
- }
1367
-
1368
- private java.lang.Object fqdn_ = "";
1369
- /**
1370
- * <code>optional string fqdn = 7;</code>
1371
- * @return Whether the fqdn field is set.
1372
- */
1373
- public boolean hasFqdn() {
1374
- return ((bitField0_ & 0x00000040) != 0);
1375
- }
1376
- /**
1377
- * <code>optional string fqdn = 7;</code>
1378
- * @return The fqdn.
1379
- */
1380
- public java.lang.String getFqdn() {
1381
- java.lang.Object ref = fqdn_;
1382
- if (!(ref instanceof java.lang.String)) {
1383
- com.google.protobuf.ByteString bs =
1384
- (com.google.protobuf.ByteString) ref;
1385
- java.lang.String s = bs.toStringUtf8();
1386
- fqdn_ = s;
1387
- return s;
1388
- } else {
1389
- return (java.lang.String) ref;
1390
- }
1391
- }
1392
- /**
1393
- * <code>optional string fqdn = 7;</code>
1394
- * @return The bytes for fqdn.
1395
- */
1396
- public com.google.protobuf.ByteString
1397
- getFqdnBytes() {
1398
- java.lang.Object ref = fqdn_;
1399
- if (ref instanceof String) {
1400
- com.google.protobuf.ByteString b =
1401
- com.google.protobuf.ByteString.copyFromUtf8(
1402
- (java.lang.String) ref);
1403
- fqdn_ = b;
1404
- return b;
1405
- } else {
1406
- return (com.google.protobuf.ByteString) ref;
1407
- }
1408
- }
1409
- /**
1410
- * <code>optional string fqdn = 7;</code>
1411
- * @param value The fqdn to set.
1412
- * @return This builder for chaining.
1413
- */
1414
- public Builder setFqdn(
1415
- java.lang.String value) {
1416
- if (value == null) { throw new NullPointerException(); }
1417
- fqdn_ = value;
1418
- bitField0_ |= 0x00000040;
1419
- onChanged();
1420
- return this;
1421
- }
1422
- /**
1423
- * <code>optional string fqdn = 7;</code>
1424
- * @return This builder for chaining.
1425
- */
1426
- public Builder clearFqdn() {
1427
- fqdn_ = getDefaultInstance().getFqdn();
1428
- bitField0_ = (bitField0_ & ~0x00000040);
1429
- onChanged();
1430
- return this;
1431
- }
1432
- /**
1433
- * <code>optional string fqdn = 7;</code>
1434
- * @param value The bytes for fqdn to set.
1435
- * @return This builder for chaining.
1436
- */
1437
- public Builder setFqdnBytes(
1438
- com.google.protobuf.ByteString value) {
1439
- if (value == null) { throw new NullPointerException(); }
1440
- checkByteStringIsUtf8(value);
1441
- fqdn_ = value;
1442
- bitField0_ |= 0x00000040;
1443
- onChanged();
1444
- return this;
1445
- }
1446
-
1447
- private java.lang.Object typeName_ = "";
1448
- /**
1449
- * <code>optional string type_name = 8;</code>
1450
- * @return Whether the typeName field is set.
1451
- */
1452
- public boolean hasTypeName() {
1453
- return ((bitField0_ & 0x00000080) != 0);
1454
- }
1455
- /**
1456
- * <code>optional string type_name = 8;</code>
1457
- * @return The typeName.
1458
- */
1459
- public java.lang.String getTypeName() {
1460
- java.lang.Object ref = typeName_;
1461
- if (!(ref instanceof java.lang.String)) {
1462
- com.google.protobuf.ByteString bs =
1463
- (com.google.protobuf.ByteString) ref;
1464
- java.lang.String s = bs.toStringUtf8();
1465
- typeName_ = s;
1466
- return s;
1467
- } else {
1468
- return (java.lang.String) ref;
1469
- }
1470
- }
1471
- /**
1472
- * <code>optional string type_name = 8;</code>
1473
- * @return The bytes for typeName.
1474
- */
1475
- public com.google.protobuf.ByteString
1476
- getTypeNameBytes() {
1477
- java.lang.Object ref = typeName_;
1478
- if (ref instanceof String) {
1479
- com.google.protobuf.ByteString b =
1480
- com.google.protobuf.ByteString.copyFromUtf8(
1481
- (java.lang.String) ref);
1482
- typeName_ = b;
1483
- return b;
1484
- } else {
1485
- return (com.google.protobuf.ByteString) ref;
1486
- }
1487
- }
1488
- /**
1489
- * <code>optional string type_name = 8;</code>
1490
- * @param value The typeName to set.
1491
- * @return This builder for chaining.
1492
- */
1493
- public Builder setTypeName(
1494
- java.lang.String value) {
1495
- if (value == null) { throw new NullPointerException(); }
1496
- typeName_ = value;
1497
- bitField0_ |= 0x00000080;
1498
- onChanged();
1499
- return this;
1500
- }
1501
- /**
1502
- * <code>optional string type_name = 8;</code>
1503
- * @return This builder for chaining.
1504
- */
1505
- public Builder clearTypeName() {
1506
- typeName_ = getDefaultInstance().getTypeName();
1507
- bitField0_ = (bitField0_ & ~0x00000080);
1508
- onChanged();
1509
- return this;
1510
- }
1511
- /**
1512
- * <code>optional string type_name = 8;</code>
1513
- * @param value The bytes for typeName to set.
1514
- * @return This builder for chaining.
1515
- */
1516
- public Builder setTypeNameBytes(
1517
- com.google.protobuf.ByteString value) {
1518
- if (value == null) { throw new NullPointerException(); }
1519
- checkByteStringIsUtf8(value);
1520
- typeName_ = value;
1521
- bitField0_ |= 0x00000080;
1522
- onChanged();
1523
- return this;
1524
- }
1525
- @java.lang.Override
1526
- public final Builder setUnknownFields(
1527
- final com.google.protobuf.UnknownFieldSet unknownFields) {
1528
- return super.setUnknownFields(unknownFields);
1529
- }
1530
-
1531
- @java.lang.Override
1532
- public final Builder mergeUnknownFields(
1533
- final com.google.protobuf.UnknownFieldSet unknownFields) {
1534
- return super.mergeUnknownFields(unknownFields);
1535
- }
1536
-
1537
-
1538
- // @@protoc_insertion_point(builder_scope:lansweeper.integrations.assets.v1.AssetBasicInfo)
1539
- }
1540
-
1541
- // @@protoc_insertion_point(class_scope:lansweeper.integrations.assets.v1.AssetBasicInfo)
1542
- private static final lansweeper.integrations.assets.v1.AssetBasicInfo DEFAULT_INSTANCE;
1543
- static {
1544
- DEFAULT_INSTANCE = new lansweeper.integrations.assets.v1.AssetBasicInfo();
1545
- }
1546
-
1547
- public static lansweeper.integrations.assets.v1.AssetBasicInfo getDefaultInstance() {
1548
- return DEFAULT_INSTANCE;
1549
- }
1550
-
1551
- private static final com.google.protobuf.Parser<AssetBasicInfo>
1552
- PARSER = new com.google.protobuf.AbstractParser<AssetBasicInfo>() {
1553
- @java.lang.Override
1554
- public AssetBasicInfo parsePartialFrom(
1555
- com.google.protobuf.CodedInputStream input,
1556
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1557
- throws com.google.protobuf.InvalidProtocolBufferException {
1558
- Builder builder = newBuilder();
1559
- try {
1560
- builder.mergeFrom(input, extensionRegistry);
1561
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1562
- throw e.setUnfinishedMessage(builder.buildPartial());
1563
- } catch (com.google.protobuf.UninitializedMessageException e) {
1564
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1565
- } catch (java.io.IOException e) {
1566
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
1567
- .setUnfinishedMessage(builder.buildPartial());
1568
- }
1569
- return builder.buildPartial();
1570
- }
1571
- };
1572
-
1573
- public static com.google.protobuf.Parser<AssetBasicInfo> parser() {
1574
- return PARSER;
1575
- }
1576
-
1577
- @java.lang.Override
1578
- public com.google.protobuf.Parser<AssetBasicInfo> getParserForType() {
1579
- return PARSER;
1580
- }
1581
-
1582
- @java.lang.Override
1583
- public lansweeper.integrations.assets.v1.AssetBasicInfo getDefaultInstanceForType() {
1584
- return DEFAULT_INSTANCE;
1585
- }
1586
-
1587
- }
1588
-