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