@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.
- package/CHANGELOG.md +8 -0
- package/buf.yaml +23 -0
- package/gen-proto/assets_grpc_pb.js +1 -0
- package/gen-proto/assets_pb.d.ts +458 -0
- package/gen-proto/assets_pb.js +3599 -0
- package/gen-proto/image.json +1 -0
- package/gen-proto/index.d.ts +1 -0
- package/gen-proto/index.js +3 -0
- package/generated-go/assets.pb.go +1118 -0
- package/go.mod +3 -0
- package/java.json +6 -0
- package/package.json +18 -0
- package/pom.xml +76 -0
- package/proto/assets.proto +86 -0
- package/src/main/proto/assets.proto +86 -0
- package/target/classes/assets.proto +86 -0
- package/target/classes/lansweeper/integrations/assets/v1/Asset$1.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/Asset$Builder.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/Asset.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfo$1.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfo$Builder.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfo.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfoOrBuilder.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/AssetCustom$1.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/AssetCustom$Builder.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/AssetCustom.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/AssetCustomOrBuilder.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/AssetOrBuilder.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/Assets.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustom$1.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustom$Builder.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustom.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustomOrBuilder.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/CustomField$1.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/CustomField$Builder.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/CustomField.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/CustomFieldOrBuilder.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/LockedFields$1.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/LockedFields$Builder.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/LockedFields.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/LockedFieldsOrBuilder.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/OtData$1.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/OtData$Builder.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/OtData.class +0 -0
- package/target/classes/lansweeper/integrations/assets/v1/OtDataOrBuilder.class +0 -0
- package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/Asset.java +1292 -0
- package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetBasicInfo.java +1431 -0
- package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetBasicInfoOrBuilder.java +118 -0
- package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetCustom.java +3690 -0
- package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetCustomOrBuilder.java +351 -0
- package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetOrBuilder.java +84 -0
- package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/Assets.java +176 -0
- package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CloudAssetCustom.java +1316 -0
- package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CloudAssetCustomOrBuilder.java +111 -0
- package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CustomField.java +643 -0
- package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CustomFieldOrBuilder.java +33 -0
- package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/LockedFields.java +2886 -0
- package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/LockedFieldsOrBuilder.java +281 -0
- package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/OtData.java +688 -0
- package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/OtDataOrBuilder.java +43 -0
- package/target/integrations-assets-model-0.1.0-sources.jar +0 -0
- package/target/integrations-assets-model-0.1.0.jar +0 -0
- package/target/maven-archiver/pom.properties +5 -0
- package/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +29 -0
- package/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +15 -0
- package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/any.proto +161 -0
- package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/api.proto +207 -0
- package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/descriptor.proto +975 -0
- package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/duration.proto +115 -0
- package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/empty.proto +51 -0
- package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/field_mask.proto +245 -0
- package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/source_context.proto +48 -0
- package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/struct.proto +95 -0
- package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/timestamp.proto +144 -0
- package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/type.proto +187 -0
- package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/wrappers.proto +123 -0
- package/target/protoc-plugins/protoc-3.22.2-linux-x86_64.exe +0 -0
|
@@ -0,0 +1,688 @@
|
|
|
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.OtData}
|
|
8
|
+
*/
|
|
9
|
+
public final class OtData extends
|
|
10
|
+
com.google.protobuf.GeneratedMessageV3 implements
|
|
11
|
+
// @@protoc_insertion_point(message_implements:lansweeper.integrations.assets.v1.OtData)
|
|
12
|
+
OtDataOrBuilder {
|
|
13
|
+
private static final long serialVersionUID = 0L;
|
|
14
|
+
// Use OtData.newBuilder() to construct.
|
|
15
|
+
private OtData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
16
|
+
super(builder);
|
|
17
|
+
}
|
|
18
|
+
private OtData() {
|
|
19
|
+
moduleType_ = "";
|
|
20
|
+
firmware_ = "";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@java.lang.Override
|
|
24
|
+
@SuppressWarnings({"unused"})
|
|
25
|
+
protected java.lang.Object newInstance(
|
|
26
|
+
UnusedPrivateParameter unused) {
|
|
27
|
+
return new OtData();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public static final com.google.protobuf.Descriptors.Descriptor
|
|
31
|
+
getDescriptor() {
|
|
32
|
+
return lansweeper.integrations.assets.v1.Assets.internal_static_lansweeper_integrations_assets_v1_OtData_descriptor;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@java.lang.Override
|
|
36
|
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
37
|
+
internalGetFieldAccessorTable() {
|
|
38
|
+
return lansweeper.integrations.assets.v1.Assets.internal_static_lansweeper_integrations_assets_v1_OtData_fieldAccessorTable
|
|
39
|
+
.ensureFieldAccessorsInitialized(
|
|
40
|
+
lansweeper.integrations.assets.v1.OtData.class, lansweeper.integrations.assets.v1.OtData.Builder.class);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
private int bitField0_;
|
|
44
|
+
public static final int MODULE_TYPE_FIELD_NUMBER = 1;
|
|
45
|
+
@SuppressWarnings("serial")
|
|
46
|
+
private volatile java.lang.Object moduleType_ = "";
|
|
47
|
+
/**
|
|
48
|
+
* <code>optional string module_type = 1;</code>
|
|
49
|
+
* @return Whether the moduleType field is set.
|
|
50
|
+
*/
|
|
51
|
+
@java.lang.Override
|
|
52
|
+
public boolean hasModuleType() {
|
|
53
|
+
return ((bitField0_ & 0x00000001) != 0);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* <code>optional string module_type = 1;</code>
|
|
57
|
+
* @return The moduleType.
|
|
58
|
+
*/
|
|
59
|
+
@java.lang.Override
|
|
60
|
+
public java.lang.String getModuleType() {
|
|
61
|
+
java.lang.Object ref = moduleType_;
|
|
62
|
+
if (ref instanceof java.lang.String) {
|
|
63
|
+
return (java.lang.String) ref;
|
|
64
|
+
} else {
|
|
65
|
+
com.google.protobuf.ByteString bs =
|
|
66
|
+
(com.google.protobuf.ByteString) ref;
|
|
67
|
+
java.lang.String s = bs.toStringUtf8();
|
|
68
|
+
moduleType_ = s;
|
|
69
|
+
return s;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* <code>optional string module_type = 1;</code>
|
|
74
|
+
* @return The bytes for moduleType.
|
|
75
|
+
*/
|
|
76
|
+
@java.lang.Override
|
|
77
|
+
public com.google.protobuf.ByteString
|
|
78
|
+
getModuleTypeBytes() {
|
|
79
|
+
java.lang.Object ref = moduleType_;
|
|
80
|
+
if (ref instanceof java.lang.String) {
|
|
81
|
+
com.google.protobuf.ByteString b =
|
|
82
|
+
com.google.protobuf.ByteString.copyFromUtf8(
|
|
83
|
+
(java.lang.String) ref);
|
|
84
|
+
moduleType_ = b;
|
|
85
|
+
return b;
|
|
86
|
+
} else {
|
|
87
|
+
return (com.google.protobuf.ByteString) ref;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public static final int FIRMWARE_FIELD_NUMBER = 2;
|
|
92
|
+
@SuppressWarnings("serial")
|
|
93
|
+
private volatile java.lang.Object firmware_ = "";
|
|
94
|
+
/**
|
|
95
|
+
* <code>optional string firmware = 2;</code>
|
|
96
|
+
* @return Whether the firmware field is set.
|
|
97
|
+
*/
|
|
98
|
+
@java.lang.Override
|
|
99
|
+
public boolean hasFirmware() {
|
|
100
|
+
return ((bitField0_ & 0x00000002) != 0);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* <code>optional string firmware = 2;</code>
|
|
104
|
+
* @return The firmware.
|
|
105
|
+
*/
|
|
106
|
+
@java.lang.Override
|
|
107
|
+
public java.lang.String getFirmware() {
|
|
108
|
+
java.lang.Object ref = firmware_;
|
|
109
|
+
if (ref instanceof java.lang.String) {
|
|
110
|
+
return (java.lang.String) ref;
|
|
111
|
+
} else {
|
|
112
|
+
com.google.protobuf.ByteString bs =
|
|
113
|
+
(com.google.protobuf.ByteString) ref;
|
|
114
|
+
java.lang.String s = bs.toStringUtf8();
|
|
115
|
+
firmware_ = s;
|
|
116
|
+
return s;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* <code>optional string firmware = 2;</code>
|
|
121
|
+
* @return The bytes for firmware.
|
|
122
|
+
*/
|
|
123
|
+
@java.lang.Override
|
|
124
|
+
public com.google.protobuf.ByteString
|
|
125
|
+
getFirmwareBytes() {
|
|
126
|
+
java.lang.Object ref = firmware_;
|
|
127
|
+
if (ref instanceof java.lang.String) {
|
|
128
|
+
com.google.protobuf.ByteString b =
|
|
129
|
+
com.google.protobuf.ByteString.copyFromUtf8(
|
|
130
|
+
(java.lang.String) ref);
|
|
131
|
+
firmware_ = b;
|
|
132
|
+
return b;
|
|
133
|
+
} else {
|
|
134
|
+
return (com.google.protobuf.ByteString) ref;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
private byte memoizedIsInitialized = -1;
|
|
139
|
+
@java.lang.Override
|
|
140
|
+
public final boolean isInitialized() {
|
|
141
|
+
byte isInitialized = memoizedIsInitialized;
|
|
142
|
+
if (isInitialized == 1) return true;
|
|
143
|
+
if (isInitialized == 0) return false;
|
|
144
|
+
|
|
145
|
+
memoizedIsInitialized = 1;
|
|
146
|
+
return true;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@java.lang.Override
|
|
150
|
+
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
|
151
|
+
throws java.io.IOException {
|
|
152
|
+
if (((bitField0_ & 0x00000001) != 0)) {
|
|
153
|
+
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, moduleType_);
|
|
154
|
+
}
|
|
155
|
+
if (((bitField0_ & 0x00000002) != 0)) {
|
|
156
|
+
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firmware_);
|
|
157
|
+
}
|
|
158
|
+
getUnknownFields().writeTo(output);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@java.lang.Override
|
|
162
|
+
public int getSerializedSize() {
|
|
163
|
+
int size = memoizedSize;
|
|
164
|
+
if (size != -1) return size;
|
|
165
|
+
|
|
166
|
+
size = 0;
|
|
167
|
+
if (((bitField0_ & 0x00000001) != 0)) {
|
|
168
|
+
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, moduleType_);
|
|
169
|
+
}
|
|
170
|
+
if (((bitField0_ & 0x00000002) != 0)) {
|
|
171
|
+
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, firmware_);
|
|
172
|
+
}
|
|
173
|
+
size += getUnknownFields().getSerializedSize();
|
|
174
|
+
memoizedSize = size;
|
|
175
|
+
return size;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@java.lang.Override
|
|
179
|
+
public boolean equals(final java.lang.Object obj) {
|
|
180
|
+
if (obj == this) {
|
|
181
|
+
return true;
|
|
182
|
+
}
|
|
183
|
+
if (!(obj instanceof lansweeper.integrations.assets.v1.OtData)) {
|
|
184
|
+
return super.equals(obj);
|
|
185
|
+
}
|
|
186
|
+
lansweeper.integrations.assets.v1.OtData other = (lansweeper.integrations.assets.v1.OtData) obj;
|
|
187
|
+
|
|
188
|
+
if (hasModuleType() != other.hasModuleType()) return false;
|
|
189
|
+
if (hasModuleType()) {
|
|
190
|
+
if (!getModuleType()
|
|
191
|
+
.equals(other.getModuleType())) return false;
|
|
192
|
+
}
|
|
193
|
+
if (hasFirmware() != other.hasFirmware()) return false;
|
|
194
|
+
if (hasFirmware()) {
|
|
195
|
+
if (!getFirmware()
|
|
196
|
+
.equals(other.getFirmware())) return false;
|
|
197
|
+
}
|
|
198
|
+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
|
199
|
+
return true;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@java.lang.Override
|
|
203
|
+
public int hashCode() {
|
|
204
|
+
if (memoizedHashCode != 0) {
|
|
205
|
+
return memoizedHashCode;
|
|
206
|
+
}
|
|
207
|
+
int hash = 41;
|
|
208
|
+
hash = (19 * hash) + getDescriptor().hashCode();
|
|
209
|
+
if (hasModuleType()) {
|
|
210
|
+
hash = (37 * hash) + MODULE_TYPE_FIELD_NUMBER;
|
|
211
|
+
hash = (53 * hash) + getModuleType().hashCode();
|
|
212
|
+
}
|
|
213
|
+
if (hasFirmware()) {
|
|
214
|
+
hash = (37 * hash) + FIRMWARE_FIELD_NUMBER;
|
|
215
|
+
hash = (53 * hash) + getFirmware().hashCode();
|
|
216
|
+
}
|
|
217
|
+
hash = (29 * hash) + getUnknownFields().hashCode();
|
|
218
|
+
memoizedHashCode = hash;
|
|
219
|
+
return hash;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
public static lansweeper.integrations.assets.v1.OtData parseFrom(
|
|
223
|
+
java.nio.ByteBuffer data)
|
|
224
|
+
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
225
|
+
return PARSER.parseFrom(data);
|
|
226
|
+
}
|
|
227
|
+
public static lansweeper.integrations.assets.v1.OtData parseFrom(
|
|
228
|
+
java.nio.ByteBuffer data,
|
|
229
|
+
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
230
|
+
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
231
|
+
return PARSER.parseFrom(data, extensionRegistry);
|
|
232
|
+
}
|
|
233
|
+
public static lansweeper.integrations.assets.v1.OtData parseFrom(
|
|
234
|
+
com.google.protobuf.ByteString data)
|
|
235
|
+
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
236
|
+
return PARSER.parseFrom(data);
|
|
237
|
+
}
|
|
238
|
+
public static lansweeper.integrations.assets.v1.OtData parseFrom(
|
|
239
|
+
com.google.protobuf.ByteString data,
|
|
240
|
+
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
241
|
+
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
242
|
+
return PARSER.parseFrom(data, extensionRegistry);
|
|
243
|
+
}
|
|
244
|
+
public static lansweeper.integrations.assets.v1.OtData parseFrom(byte[] data)
|
|
245
|
+
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
246
|
+
return PARSER.parseFrom(data);
|
|
247
|
+
}
|
|
248
|
+
public static lansweeper.integrations.assets.v1.OtData parseFrom(
|
|
249
|
+
byte[] data,
|
|
250
|
+
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
251
|
+
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
252
|
+
return PARSER.parseFrom(data, extensionRegistry);
|
|
253
|
+
}
|
|
254
|
+
public static lansweeper.integrations.assets.v1.OtData parseFrom(java.io.InputStream input)
|
|
255
|
+
throws java.io.IOException {
|
|
256
|
+
return com.google.protobuf.GeneratedMessageV3
|
|
257
|
+
.parseWithIOException(PARSER, input);
|
|
258
|
+
}
|
|
259
|
+
public static lansweeper.integrations.assets.v1.OtData parseFrom(
|
|
260
|
+
java.io.InputStream input,
|
|
261
|
+
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
262
|
+
throws java.io.IOException {
|
|
263
|
+
return com.google.protobuf.GeneratedMessageV3
|
|
264
|
+
.parseWithIOException(PARSER, input, extensionRegistry);
|
|
265
|
+
}
|
|
266
|
+
public static lansweeper.integrations.assets.v1.OtData parseDelimitedFrom(java.io.InputStream input)
|
|
267
|
+
throws java.io.IOException {
|
|
268
|
+
return com.google.protobuf.GeneratedMessageV3
|
|
269
|
+
.parseDelimitedWithIOException(PARSER, input);
|
|
270
|
+
}
|
|
271
|
+
public static lansweeper.integrations.assets.v1.OtData parseDelimitedFrom(
|
|
272
|
+
java.io.InputStream input,
|
|
273
|
+
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
274
|
+
throws java.io.IOException {
|
|
275
|
+
return com.google.protobuf.GeneratedMessageV3
|
|
276
|
+
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
|
277
|
+
}
|
|
278
|
+
public static lansweeper.integrations.assets.v1.OtData parseFrom(
|
|
279
|
+
com.google.protobuf.CodedInputStream input)
|
|
280
|
+
throws java.io.IOException {
|
|
281
|
+
return com.google.protobuf.GeneratedMessageV3
|
|
282
|
+
.parseWithIOException(PARSER, input);
|
|
283
|
+
}
|
|
284
|
+
public static lansweeper.integrations.assets.v1.OtData parseFrom(
|
|
285
|
+
com.google.protobuf.CodedInputStream input,
|
|
286
|
+
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
287
|
+
throws java.io.IOException {
|
|
288
|
+
return com.google.protobuf.GeneratedMessageV3
|
|
289
|
+
.parseWithIOException(PARSER, input, extensionRegistry);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
@java.lang.Override
|
|
293
|
+
public Builder newBuilderForType() { return newBuilder(); }
|
|
294
|
+
public static Builder newBuilder() {
|
|
295
|
+
return DEFAULT_INSTANCE.toBuilder();
|
|
296
|
+
}
|
|
297
|
+
public static Builder newBuilder(lansweeper.integrations.assets.v1.OtData prototype) {
|
|
298
|
+
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
|
299
|
+
}
|
|
300
|
+
@java.lang.Override
|
|
301
|
+
public Builder toBuilder() {
|
|
302
|
+
return this == DEFAULT_INSTANCE
|
|
303
|
+
? new Builder() : new Builder().mergeFrom(this);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
@java.lang.Override
|
|
307
|
+
protected Builder newBuilderForType(
|
|
308
|
+
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
309
|
+
Builder builder = new Builder(parent);
|
|
310
|
+
return builder;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Protobuf type {@code lansweeper.integrations.assets.v1.OtData}
|
|
314
|
+
*/
|
|
315
|
+
public static final class Builder extends
|
|
316
|
+
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
317
|
+
// @@protoc_insertion_point(builder_implements:lansweeper.integrations.assets.v1.OtData)
|
|
318
|
+
lansweeper.integrations.assets.v1.OtDataOrBuilder {
|
|
319
|
+
public static final com.google.protobuf.Descriptors.Descriptor
|
|
320
|
+
getDescriptor() {
|
|
321
|
+
return lansweeper.integrations.assets.v1.Assets.internal_static_lansweeper_integrations_assets_v1_OtData_descriptor;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
@java.lang.Override
|
|
325
|
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
326
|
+
internalGetFieldAccessorTable() {
|
|
327
|
+
return lansweeper.integrations.assets.v1.Assets.internal_static_lansweeper_integrations_assets_v1_OtData_fieldAccessorTable
|
|
328
|
+
.ensureFieldAccessorsInitialized(
|
|
329
|
+
lansweeper.integrations.assets.v1.OtData.class, lansweeper.integrations.assets.v1.OtData.Builder.class);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// Construct using lansweeper.integrations.assets.v1.OtData.newBuilder()
|
|
333
|
+
private Builder() {
|
|
334
|
+
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
private Builder(
|
|
338
|
+
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
339
|
+
super(parent);
|
|
340
|
+
|
|
341
|
+
}
|
|
342
|
+
@java.lang.Override
|
|
343
|
+
public Builder clear() {
|
|
344
|
+
super.clear();
|
|
345
|
+
bitField0_ = 0;
|
|
346
|
+
moduleType_ = "";
|
|
347
|
+
firmware_ = "";
|
|
348
|
+
return this;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
@java.lang.Override
|
|
352
|
+
public com.google.protobuf.Descriptors.Descriptor
|
|
353
|
+
getDescriptorForType() {
|
|
354
|
+
return lansweeper.integrations.assets.v1.Assets.internal_static_lansweeper_integrations_assets_v1_OtData_descriptor;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
@java.lang.Override
|
|
358
|
+
public lansweeper.integrations.assets.v1.OtData getDefaultInstanceForType() {
|
|
359
|
+
return lansweeper.integrations.assets.v1.OtData.getDefaultInstance();
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
@java.lang.Override
|
|
363
|
+
public lansweeper.integrations.assets.v1.OtData build() {
|
|
364
|
+
lansweeper.integrations.assets.v1.OtData result = buildPartial();
|
|
365
|
+
if (!result.isInitialized()) {
|
|
366
|
+
throw newUninitializedMessageException(result);
|
|
367
|
+
}
|
|
368
|
+
return result;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
@java.lang.Override
|
|
372
|
+
public lansweeper.integrations.assets.v1.OtData buildPartial() {
|
|
373
|
+
lansweeper.integrations.assets.v1.OtData result = new lansweeper.integrations.assets.v1.OtData(this);
|
|
374
|
+
if (bitField0_ != 0) { buildPartial0(result); }
|
|
375
|
+
onBuilt();
|
|
376
|
+
return result;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
private void buildPartial0(lansweeper.integrations.assets.v1.OtData result) {
|
|
380
|
+
int from_bitField0_ = bitField0_;
|
|
381
|
+
int to_bitField0_ = 0;
|
|
382
|
+
if (((from_bitField0_ & 0x00000001) != 0)) {
|
|
383
|
+
result.moduleType_ = moduleType_;
|
|
384
|
+
to_bitField0_ |= 0x00000001;
|
|
385
|
+
}
|
|
386
|
+
if (((from_bitField0_ & 0x00000002) != 0)) {
|
|
387
|
+
result.firmware_ = firmware_;
|
|
388
|
+
to_bitField0_ |= 0x00000002;
|
|
389
|
+
}
|
|
390
|
+
result.bitField0_ |= to_bitField0_;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
@java.lang.Override
|
|
394
|
+
public Builder mergeFrom(com.google.protobuf.Message other) {
|
|
395
|
+
if (other instanceof lansweeper.integrations.assets.v1.OtData) {
|
|
396
|
+
return mergeFrom((lansweeper.integrations.assets.v1.OtData)other);
|
|
397
|
+
} else {
|
|
398
|
+
super.mergeFrom(other);
|
|
399
|
+
return this;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
public Builder mergeFrom(lansweeper.integrations.assets.v1.OtData other) {
|
|
404
|
+
if (other == lansweeper.integrations.assets.v1.OtData.getDefaultInstance()) return this;
|
|
405
|
+
if (other.hasModuleType()) {
|
|
406
|
+
moduleType_ = other.moduleType_;
|
|
407
|
+
bitField0_ |= 0x00000001;
|
|
408
|
+
onChanged();
|
|
409
|
+
}
|
|
410
|
+
if (other.hasFirmware()) {
|
|
411
|
+
firmware_ = other.firmware_;
|
|
412
|
+
bitField0_ |= 0x00000002;
|
|
413
|
+
onChanged();
|
|
414
|
+
}
|
|
415
|
+
this.mergeUnknownFields(other.getUnknownFields());
|
|
416
|
+
onChanged();
|
|
417
|
+
return this;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
@java.lang.Override
|
|
421
|
+
public final boolean isInitialized() {
|
|
422
|
+
return true;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
@java.lang.Override
|
|
426
|
+
public Builder mergeFrom(
|
|
427
|
+
com.google.protobuf.CodedInputStream input,
|
|
428
|
+
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
429
|
+
throws java.io.IOException {
|
|
430
|
+
if (extensionRegistry == null) {
|
|
431
|
+
throw new java.lang.NullPointerException();
|
|
432
|
+
}
|
|
433
|
+
try {
|
|
434
|
+
boolean done = false;
|
|
435
|
+
while (!done) {
|
|
436
|
+
int tag = input.readTag();
|
|
437
|
+
switch (tag) {
|
|
438
|
+
case 0:
|
|
439
|
+
done = true;
|
|
440
|
+
break;
|
|
441
|
+
case 10: {
|
|
442
|
+
moduleType_ = input.readStringRequireUtf8();
|
|
443
|
+
bitField0_ |= 0x00000001;
|
|
444
|
+
break;
|
|
445
|
+
} // case 10
|
|
446
|
+
case 18: {
|
|
447
|
+
firmware_ = input.readStringRequireUtf8();
|
|
448
|
+
bitField0_ |= 0x00000002;
|
|
449
|
+
break;
|
|
450
|
+
} // case 18
|
|
451
|
+
default: {
|
|
452
|
+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
|
453
|
+
done = true; // was an endgroup tag
|
|
454
|
+
}
|
|
455
|
+
break;
|
|
456
|
+
} // default:
|
|
457
|
+
} // switch (tag)
|
|
458
|
+
} // while (!done)
|
|
459
|
+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
460
|
+
throw e.unwrapIOException();
|
|
461
|
+
} finally {
|
|
462
|
+
onChanged();
|
|
463
|
+
} // finally
|
|
464
|
+
return this;
|
|
465
|
+
}
|
|
466
|
+
private int bitField0_;
|
|
467
|
+
|
|
468
|
+
private java.lang.Object moduleType_ = "";
|
|
469
|
+
/**
|
|
470
|
+
* <code>optional string module_type = 1;</code>
|
|
471
|
+
* @return Whether the moduleType field is set.
|
|
472
|
+
*/
|
|
473
|
+
public boolean hasModuleType() {
|
|
474
|
+
return ((bitField0_ & 0x00000001) != 0);
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* <code>optional string module_type = 1;</code>
|
|
478
|
+
* @return The moduleType.
|
|
479
|
+
*/
|
|
480
|
+
public java.lang.String getModuleType() {
|
|
481
|
+
java.lang.Object ref = moduleType_;
|
|
482
|
+
if (!(ref instanceof java.lang.String)) {
|
|
483
|
+
com.google.protobuf.ByteString bs =
|
|
484
|
+
(com.google.protobuf.ByteString) ref;
|
|
485
|
+
java.lang.String s = bs.toStringUtf8();
|
|
486
|
+
moduleType_ = s;
|
|
487
|
+
return s;
|
|
488
|
+
} else {
|
|
489
|
+
return (java.lang.String) ref;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* <code>optional string module_type = 1;</code>
|
|
494
|
+
* @return The bytes for moduleType.
|
|
495
|
+
*/
|
|
496
|
+
public com.google.protobuf.ByteString
|
|
497
|
+
getModuleTypeBytes() {
|
|
498
|
+
java.lang.Object ref = moduleType_;
|
|
499
|
+
if (ref instanceof String) {
|
|
500
|
+
com.google.protobuf.ByteString b =
|
|
501
|
+
com.google.protobuf.ByteString.copyFromUtf8(
|
|
502
|
+
(java.lang.String) ref);
|
|
503
|
+
moduleType_ = b;
|
|
504
|
+
return b;
|
|
505
|
+
} else {
|
|
506
|
+
return (com.google.protobuf.ByteString) ref;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* <code>optional string module_type = 1;</code>
|
|
511
|
+
* @param value The moduleType to set.
|
|
512
|
+
* @return This builder for chaining.
|
|
513
|
+
*/
|
|
514
|
+
public Builder setModuleType(
|
|
515
|
+
java.lang.String value) {
|
|
516
|
+
if (value == null) { throw new NullPointerException(); }
|
|
517
|
+
moduleType_ = value;
|
|
518
|
+
bitField0_ |= 0x00000001;
|
|
519
|
+
onChanged();
|
|
520
|
+
return this;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* <code>optional string module_type = 1;</code>
|
|
524
|
+
* @return This builder for chaining.
|
|
525
|
+
*/
|
|
526
|
+
public Builder clearModuleType() {
|
|
527
|
+
moduleType_ = getDefaultInstance().getModuleType();
|
|
528
|
+
bitField0_ = (bitField0_ & ~0x00000001);
|
|
529
|
+
onChanged();
|
|
530
|
+
return this;
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* <code>optional string module_type = 1;</code>
|
|
534
|
+
* @param value The bytes for moduleType to set.
|
|
535
|
+
* @return This builder for chaining.
|
|
536
|
+
*/
|
|
537
|
+
public Builder setModuleTypeBytes(
|
|
538
|
+
com.google.protobuf.ByteString value) {
|
|
539
|
+
if (value == null) { throw new NullPointerException(); }
|
|
540
|
+
checkByteStringIsUtf8(value);
|
|
541
|
+
moduleType_ = value;
|
|
542
|
+
bitField0_ |= 0x00000001;
|
|
543
|
+
onChanged();
|
|
544
|
+
return this;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
private java.lang.Object firmware_ = "";
|
|
548
|
+
/**
|
|
549
|
+
* <code>optional string firmware = 2;</code>
|
|
550
|
+
* @return Whether the firmware field is set.
|
|
551
|
+
*/
|
|
552
|
+
public boolean hasFirmware() {
|
|
553
|
+
return ((bitField0_ & 0x00000002) != 0);
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* <code>optional string firmware = 2;</code>
|
|
557
|
+
* @return The firmware.
|
|
558
|
+
*/
|
|
559
|
+
public java.lang.String getFirmware() {
|
|
560
|
+
java.lang.Object ref = firmware_;
|
|
561
|
+
if (!(ref instanceof java.lang.String)) {
|
|
562
|
+
com.google.protobuf.ByteString bs =
|
|
563
|
+
(com.google.protobuf.ByteString) ref;
|
|
564
|
+
java.lang.String s = bs.toStringUtf8();
|
|
565
|
+
firmware_ = s;
|
|
566
|
+
return s;
|
|
567
|
+
} else {
|
|
568
|
+
return (java.lang.String) ref;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* <code>optional string firmware = 2;</code>
|
|
573
|
+
* @return The bytes for firmware.
|
|
574
|
+
*/
|
|
575
|
+
public com.google.protobuf.ByteString
|
|
576
|
+
getFirmwareBytes() {
|
|
577
|
+
java.lang.Object ref = firmware_;
|
|
578
|
+
if (ref instanceof String) {
|
|
579
|
+
com.google.protobuf.ByteString b =
|
|
580
|
+
com.google.protobuf.ByteString.copyFromUtf8(
|
|
581
|
+
(java.lang.String) ref);
|
|
582
|
+
firmware_ = b;
|
|
583
|
+
return b;
|
|
584
|
+
} else {
|
|
585
|
+
return (com.google.protobuf.ByteString) ref;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* <code>optional string firmware = 2;</code>
|
|
590
|
+
* @param value The firmware to set.
|
|
591
|
+
* @return This builder for chaining.
|
|
592
|
+
*/
|
|
593
|
+
public Builder setFirmware(
|
|
594
|
+
java.lang.String value) {
|
|
595
|
+
if (value == null) { throw new NullPointerException(); }
|
|
596
|
+
firmware_ = value;
|
|
597
|
+
bitField0_ |= 0x00000002;
|
|
598
|
+
onChanged();
|
|
599
|
+
return this;
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* <code>optional string firmware = 2;</code>
|
|
603
|
+
* @return This builder for chaining.
|
|
604
|
+
*/
|
|
605
|
+
public Builder clearFirmware() {
|
|
606
|
+
firmware_ = getDefaultInstance().getFirmware();
|
|
607
|
+
bitField0_ = (bitField0_ & ~0x00000002);
|
|
608
|
+
onChanged();
|
|
609
|
+
return this;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* <code>optional string firmware = 2;</code>
|
|
613
|
+
* @param value The bytes for firmware to set.
|
|
614
|
+
* @return This builder for chaining.
|
|
615
|
+
*/
|
|
616
|
+
public Builder setFirmwareBytes(
|
|
617
|
+
com.google.protobuf.ByteString value) {
|
|
618
|
+
if (value == null) { throw new NullPointerException(); }
|
|
619
|
+
checkByteStringIsUtf8(value);
|
|
620
|
+
firmware_ = value;
|
|
621
|
+
bitField0_ |= 0x00000002;
|
|
622
|
+
onChanged();
|
|
623
|
+
return this;
|
|
624
|
+
}
|
|
625
|
+
@java.lang.Override
|
|
626
|
+
public final Builder setUnknownFields(
|
|
627
|
+
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
628
|
+
return super.setUnknownFields(unknownFields);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
@java.lang.Override
|
|
632
|
+
public final Builder mergeUnknownFields(
|
|
633
|
+
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
634
|
+
return super.mergeUnknownFields(unknownFields);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
// @@protoc_insertion_point(builder_scope:lansweeper.integrations.assets.v1.OtData)
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
// @@protoc_insertion_point(class_scope:lansweeper.integrations.assets.v1.OtData)
|
|
642
|
+
private static final lansweeper.integrations.assets.v1.OtData DEFAULT_INSTANCE;
|
|
643
|
+
static {
|
|
644
|
+
DEFAULT_INSTANCE = new lansweeper.integrations.assets.v1.OtData();
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
public static lansweeper.integrations.assets.v1.OtData getDefaultInstance() {
|
|
648
|
+
return DEFAULT_INSTANCE;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
private static final com.google.protobuf.Parser<OtData>
|
|
652
|
+
PARSER = new com.google.protobuf.AbstractParser<OtData>() {
|
|
653
|
+
@java.lang.Override
|
|
654
|
+
public OtData parsePartialFrom(
|
|
655
|
+
com.google.protobuf.CodedInputStream input,
|
|
656
|
+
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
657
|
+
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
658
|
+
Builder builder = newBuilder();
|
|
659
|
+
try {
|
|
660
|
+
builder.mergeFrom(input, extensionRegistry);
|
|
661
|
+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
662
|
+
throw e.setUnfinishedMessage(builder.buildPartial());
|
|
663
|
+
} catch (com.google.protobuf.UninitializedMessageException e) {
|
|
664
|
+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
|
|
665
|
+
} catch (java.io.IOException e) {
|
|
666
|
+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
|
|
667
|
+
.setUnfinishedMessage(builder.buildPartial());
|
|
668
|
+
}
|
|
669
|
+
return builder.buildPartial();
|
|
670
|
+
}
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
public static com.google.protobuf.Parser<OtData> parser() {
|
|
674
|
+
return PARSER;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
@java.lang.Override
|
|
678
|
+
public com.google.protobuf.Parser<OtData> getParserForType() {
|
|
679
|
+
return PARSER;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
@java.lang.Override
|
|
683
|
+
public lansweeper.integrations.assets.v1.OtData getDefaultInstanceForType() {
|
|
684
|
+
return DEFAULT_INSTANCE;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
}
|
|
688
|
+
|