@lansweeper/integrations-assets-grpc 0.1.1

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