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