1
2
3
4 package org.opentrafficsim.aimsun.proto;
5
6 public final class AimsunControlProtoBuf {
7 private AimsunControlProtoBuf() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistryLite registry) {
10 }
11
12 public static void registerAllExtensions(
13 com.google.protobuf.ExtensionRegistry registry) {
14 registerAllExtensions(
15 (com.google.protobuf.ExtensionRegistryLite) registry);
16 }
17 public interface CreateSimulationOrBuilder extends
18
19 com.google.protobuf.MessageOrBuilder {
20
21
22
23
24 boolean hasNetworkXML();
25
26
27
28 java.lang.String getNetworkXML();
29
30
31
32 com.google.protobuf.ByteString
33 getNetworkXMLBytes();
34 }
35
36
37
38 public static final class CreateSimulation extends
39 com.google.protobuf.GeneratedMessageV3 implements
40
41 CreateSimulationOrBuilder {
42 private static final long serialVersionUID = 0L;
43
44 private CreateSimulation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
45 super(builder);
46 }
47 private CreateSimulation() {
48 networkXML_ = "";
49 }
50
51 @java.lang.Override
52 public final com.google.protobuf.UnknownFieldSet
53 getUnknownFields() {
54 return this.unknownFields;
55 }
56 private CreateSimulation(
57 com.google.protobuf.CodedInputStream input,
58 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
59 throws com.google.protobuf.InvalidProtocolBufferException {
60 this();
61 int mutable_bitField0_ = 0;
62 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
63 com.google.protobuf.UnknownFieldSet.newBuilder();
64 try {
65 boolean done = false;
66 while (!done) {
67 int tag = input.readTag();
68 switch (tag) {
69 case 0:
70 done = true;
71 break;
72 default: {
73 if (!parseUnknownField(
74 input, unknownFields, extensionRegistry, tag)) {
75 done = true;
76 }
77 break;
78 }
79 case 26: {
80 com.google.protobuf.ByteString bs = input.readBytes();
81 bitField0_ |= 0x00000001;
82 networkXML_ = bs;
83 break;
84 }
85 }
86 }
87 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
88 throw e.setUnfinishedMessage(this);
89 } catch (java.io.IOException e) {
90 throw new com.google.protobuf.InvalidProtocolBufferException(
91 e).setUnfinishedMessage(this);
92 } finally {
93 this.unknownFields = unknownFields.build();
94 makeExtensionsImmutable();
95 }
96 }
97 public static final com.google.protobuf.Descriptors.Descriptor
98 getDescriptor() {
99 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor;
100 }
101
102 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
103 internalGetFieldAccessorTable() {
104 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_fieldAccessorTable
105 .ensureFieldAccessorsInitialized(
106 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder.class);
107 }
108
109 private int bitField0_;
110 public static final int NETWORKXML_FIELD_NUMBER = 3;
111 private volatile java.lang.Object networkXML_;
112
113
114
115 public boolean hasNetworkXML() {
116 return ((bitField0_ & 0x00000001) == 0x00000001);
117 }
118
119
120
121 public java.lang.String getNetworkXML() {
122 java.lang.Object ref = networkXML_;
123 if (ref instanceof java.lang.String) {
124 return (java.lang.String) ref;
125 } else {
126 com.google.protobuf.ByteString bs =
127 (com.google.protobuf.ByteString) ref;
128 java.lang.String s = bs.toStringUtf8();
129 if (bs.isValidUtf8()) {
130 networkXML_ = s;
131 }
132 return s;
133 }
134 }
135
136
137
138 public com.google.protobuf.ByteString
139 getNetworkXMLBytes() {
140 java.lang.Object ref = networkXML_;
141 if (ref instanceof java.lang.String) {
142 com.google.protobuf.ByteString b =
143 com.google.protobuf.ByteString.copyFromUtf8(
144 (java.lang.String) ref);
145 networkXML_ = b;
146 return b;
147 } else {
148 return (com.google.protobuf.ByteString) ref;
149 }
150 }
151
152 private byte memoizedIsInitialized = -1;
153 public final boolean isInitialized() {
154 byte isInitialized = memoizedIsInitialized;
155 if (isInitialized == 1) return true;
156 if (isInitialized == 0) return false;
157
158 if (!hasNetworkXML()) {
159 memoizedIsInitialized = 0;
160 return false;
161 }
162 memoizedIsInitialized = 1;
163 return true;
164 }
165
166 public void writeTo(com.google.protobuf.CodedOutputStream output)
167 throws java.io.IOException {
168 if (((bitField0_ & 0x00000001) == 0x00000001)) {
169 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, networkXML_);
170 }
171 unknownFields.writeTo(output);
172 }
173
174 public int getSerializedSize() {
175 int size = memoizedSize;
176 if (size != -1) return size;
177
178 size = 0;
179 if (((bitField0_ & 0x00000001) == 0x00000001)) {
180 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, networkXML_);
181 }
182 size += unknownFields.getSerializedSize();
183 memoizedSize = size;
184 return size;
185 }
186
187 @java.lang.Override
188 public boolean equals(final java.lang.Object obj) {
189 if (obj == this) {
190 return true;
191 }
192 if (!(obj instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation)) {
193 return super.equals(obj);
194 }
195 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation other = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) obj;
196
197 boolean result = true;
198 result = result && (hasNetworkXML() == other.hasNetworkXML());
199 if (hasNetworkXML()) {
200 result = result && getNetworkXML()
201 .equals(other.getNetworkXML());
202 }
203 result = result && unknownFields.equals(other.unknownFields);
204 return result;
205 }
206
207 @java.lang.Override
208 public int hashCode() {
209 if (memoizedHashCode != 0) {
210 return memoizedHashCode;
211 }
212 int hash = 41;
213 hash = (19 * hash) + getDescriptor().hashCode();
214 if (hasNetworkXML()) {
215 hash = (37 * hash) + NETWORKXML_FIELD_NUMBER;
216 hash = (53 * hash) + getNetworkXML().hashCode();
217 }
218 hash = (29 * hash) + unknownFields.hashCode();
219 memoizedHashCode = hash;
220 return hash;
221 }
222
223 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
224 java.nio.ByteBuffer data)
225 throws com.google.protobuf.InvalidProtocolBufferException {
226 return PARSER.parseFrom(data);
227 }
228 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
229 java.nio.ByteBuffer data,
230 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
231 throws com.google.protobuf.InvalidProtocolBufferException {
232 return PARSER.parseFrom(data, extensionRegistry);
233 }
234 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
235 com.google.protobuf.ByteString data)
236 throws com.google.protobuf.InvalidProtocolBufferException {
237 return PARSER.parseFrom(data);
238 }
239 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
240 com.google.protobuf.ByteString data,
241 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
242 throws com.google.protobuf.InvalidProtocolBufferException {
243 return PARSER.parseFrom(data, extensionRegistry);
244 }
245 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(byte[] data)
246 throws com.google.protobuf.InvalidProtocolBufferException {
247 return PARSER.parseFrom(data);
248 }
249 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
250 byte[] data,
251 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
252 throws com.google.protobuf.InvalidProtocolBufferException {
253 return PARSER.parseFrom(data, extensionRegistry);
254 }
255 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(java.io.InputStream input)
256 throws java.io.IOException {
257 return com.google.protobuf.GeneratedMessageV3
258 .parseWithIOException(PARSER, input);
259 }
260 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
261 java.io.InputStream input,
262 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
263 throws java.io.IOException {
264 return com.google.protobuf.GeneratedMessageV3
265 .parseWithIOException(PARSER, input, extensionRegistry);
266 }
267 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseDelimitedFrom(java.io.InputStream input)
268 throws java.io.IOException {
269 return com.google.protobuf.GeneratedMessageV3
270 .parseDelimitedWithIOException(PARSER, input);
271 }
272 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseDelimitedFrom(
273 java.io.InputStream input,
274 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
275 throws java.io.IOException {
276 return com.google.protobuf.GeneratedMessageV3
277 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
278 }
279 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
280 com.google.protobuf.CodedInputStream input)
281 throws java.io.IOException {
282 return com.google.protobuf.GeneratedMessageV3
283 .parseWithIOException(PARSER, input);
284 }
285 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
286 com.google.protobuf.CodedInputStream input,
287 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
288 throws java.io.IOException {
289 return com.google.protobuf.GeneratedMessageV3
290 .parseWithIOException(PARSER, input, extensionRegistry);
291 }
292
293 public Builder newBuilderForType() { return newBuilder(); }
294 public static Builder newBuilder() {
295 return DEFAULT_INSTANCE.toBuilder();
296 }
297 public static Builder newBuilder(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation prototype) {
298 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
299 }
300 public Builder toBuilder() {
301 return this == DEFAULT_INSTANCE
302 ? new Builder() : new Builder().mergeFrom(this);
303 }
304
305 @java.lang.Override
306 protected Builder newBuilderForType(
307 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
308 Builder builder = new Builder(parent);
309 return builder;
310 }
311
312
313
314 public static final class Builder extends
315 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
316
317 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder {
318 public static final com.google.protobuf.Descriptors.Descriptor
319 getDescriptor() {
320 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor;
321 }
322
323 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
324 internalGetFieldAccessorTable() {
325 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_fieldAccessorTable
326 .ensureFieldAccessorsInitialized(
327 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder.class);
328 }
329
330
331 private Builder() {
332 maybeForceBuilderInitialization();
333 }
334
335 private Builder(
336 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
337 super(parent);
338 maybeForceBuilderInitialization();
339 }
340 private void maybeForceBuilderInitialization() {
341 if (com.google.protobuf.GeneratedMessageV3
342 .alwaysUseFieldBuilders) {
343 }
344 }
345 public Builder clear() {
346 super.clear();
347 networkXML_ = "";
348 bitField0_ = (bitField0_ & ~0x00000001);
349 return this;
350 }
351
352 public com.google.protobuf.Descriptors.Descriptor
353 getDescriptorForType() {
354 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor;
355 }
356
357 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getDefaultInstanceForType() {
358 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
359 }
360
361 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation build() {
362 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation result = buildPartial();
363 if (!result.isInitialized()) {
364 throw newUninitializedMessageException(result);
365 }
366 return result;
367 }
368
369 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation buildPartial() {
370 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation result = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation(this);
371 int from_bitField0_ = bitField0_;
372 int to_bitField0_ = 0;
373 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
374 to_bitField0_ |= 0x00000001;
375 }
376 result.networkXML_ = networkXML_;
377 result.bitField0_ = to_bitField0_;
378 onBuilt();
379 return result;
380 }
381
382 public Builder clone() {
383 return (Builder) super.clone();
384 }
385 public Builder setField(
386 com.google.protobuf.Descriptors.FieldDescriptor field,
387 java.lang.Object value) {
388 return (Builder) super.setField(field, value);
389 }
390 public Builder clearField(
391 com.google.protobuf.Descriptors.FieldDescriptor field) {
392 return (Builder) super.clearField(field);
393 }
394 public Builder clearOneof(
395 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
396 return (Builder) super.clearOneof(oneof);
397 }
398 public Builder setRepeatedField(
399 com.google.protobuf.Descriptors.FieldDescriptor field,
400 int index, java.lang.Object value) {
401 return (Builder) super.setRepeatedField(field, index, value);
402 }
403 public Builder addRepeatedField(
404 com.google.protobuf.Descriptors.FieldDescriptor field,
405 java.lang.Object value) {
406 return (Builder) super.addRepeatedField(field, value);
407 }
408 public Builder mergeFrom(com.google.protobuf.Message other) {
409 if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) {
410 return mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation)other);
411 } else {
412 super.mergeFrom(other);
413 return this;
414 }
415 }
416
417 public Builder mergeFrom(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation other) {
418 if (other == org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance()) return this;
419 if (other.hasNetworkXML()) {
420 bitField0_ |= 0x00000001;
421 networkXML_ = other.networkXML_;
422 onChanged();
423 }
424 this.mergeUnknownFields(other.unknownFields);
425 onChanged();
426 return this;
427 }
428
429 public final boolean isInitialized() {
430 if (!hasNetworkXML()) {
431 return false;
432 }
433 return true;
434 }
435
436 public Builder mergeFrom(
437 com.google.protobuf.CodedInputStream input,
438 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
439 throws java.io.IOException {
440 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parsedMessage = null;
441 try {
442 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
443 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
444 parsedMessage = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) e.getUnfinishedMessage();
445 throw e.unwrapIOException();
446 } finally {
447 if (parsedMessage != null) {
448 mergeFrom(parsedMessage);
449 }
450 }
451 return this;
452 }
453 private int bitField0_;
454
455 private java.lang.Object networkXML_ = "";
456
457
458
459 public boolean hasNetworkXML() {
460 return ((bitField0_ & 0x00000001) == 0x00000001);
461 }
462
463
464
465 public java.lang.String getNetworkXML() {
466 java.lang.Object ref = networkXML_;
467 if (!(ref instanceof java.lang.String)) {
468 com.google.protobuf.ByteString bs =
469 (com.google.protobuf.ByteString) ref;
470 java.lang.String s = bs.toStringUtf8();
471 if (bs.isValidUtf8()) {
472 networkXML_ = s;
473 }
474 return s;
475 } else {
476 return (java.lang.String) ref;
477 }
478 }
479
480
481
482 public com.google.protobuf.ByteString
483 getNetworkXMLBytes() {
484 java.lang.Object ref = networkXML_;
485 if (ref instanceof String) {
486 com.google.protobuf.ByteString b =
487 com.google.protobuf.ByteString.copyFromUtf8(
488 (java.lang.String) ref);
489 networkXML_ = b;
490 return b;
491 } else {
492 return (com.google.protobuf.ByteString) ref;
493 }
494 }
495
496
497
498 public Builder setNetworkXML(
499 java.lang.String value) {
500 if (value == null) {
501 throw new NullPointerException();
502 }
503 bitField0_ |= 0x00000001;
504 networkXML_ = value;
505 onChanged();
506 return this;
507 }
508
509
510
511 public Builder clearNetworkXML() {
512 bitField0_ = (bitField0_ & ~0x00000001);
513 networkXML_ = getDefaultInstance().getNetworkXML();
514 onChanged();
515 return this;
516 }
517
518
519
520 public Builder setNetworkXMLBytes(
521 com.google.protobuf.ByteString value) {
522 if (value == null) {
523 throw new NullPointerException();
524 }
525 bitField0_ |= 0x00000001;
526 networkXML_ = value;
527 onChanged();
528 return this;
529 }
530 public final Builder setUnknownFields(
531 final com.google.protobuf.UnknownFieldSet unknownFields) {
532 return super.setUnknownFields(unknownFields);
533 }
534
535 public final Builder mergeUnknownFields(
536 final com.google.protobuf.UnknownFieldSet unknownFields) {
537 return super.mergeUnknownFields(unknownFields);
538 }
539
540
541
542 }
543
544
545 private static final org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation DEFAULT_INSTANCE;
546 static {
547 DEFAULT_INSTANCE = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation();
548 }
549
550 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getDefaultInstance() {
551 return DEFAULT_INSTANCE;
552 }
553
554 @java.lang.Deprecated public static final com.google.protobuf.Parser<CreateSimulation>
555 PARSER = new com.google.protobuf.AbstractParser<CreateSimulation>() {
556 public CreateSimulation parsePartialFrom(
557 com.google.protobuf.CodedInputStream input,
558 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
559 throws com.google.protobuf.InvalidProtocolBufferException {
560 return new CreateSimulation(input, extensionRegistry);
561 }
562 };
563
564 public static com.google.protobuf.Parser<CreateSimulation> parser() {
565 return PARSER;
566 }
567
568 @java.lang.Override
569 public com.google.protobuf.Parser<CreateSimulation> getParserForType() {
570 return PARSER;
571 }
572
573 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getDefaultInstanceForType() {
574 return DEFAULT_INSTANCE;
575 }
576
577 }
578
579 public interface SimulateUntilOrBuilder extends
580
581 com.google.protobuf.MessageOrBuilder {
582
583
584
585
586 boolean hasTime();
587
588
589
590 double getTime();
591 }
592
593
594
595 public static final class SimulateUntil extends
596 com.google.protobuf.GeneratedMessageV3 implements
597
598 SimulateUntilOrBuilder {
599 private static final long serialVersionUID = 0L;
600
601 private SimulateUntil(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
602 super(builder);
603 }
604 private SimulateUntil() {
605 time_ = 0D;
606 }
607
608 @java.lang.Override
609 public final com.google.protobuf.UnknownFieldSet
610 getUnknownFields() {
611 return this.unknownFields;
612 }
613 private SimulateUntil(
614 com.google.protobuf.CodedInputStream input,
615 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
616 throws com.google.protobuf.InvalidProtocolBufferException {
617 this();
618 int mutable_bitField0_ = 0;
619 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
620 com.google.protobuf.UnknownFieldSet.newBuilder();
621 try {
622 boolean done = false;
623 while (!done) {
624 int tag = input.readTag();
625 switch (tag) {
626 case 0:
627 done = true;
628 break;
629 default: {
630 if (!parseUnknownField(
631 input, unknownFields, extensionRegistry, tag)) {
632 done = true;
633 }
634 break;
635 }
636 case 9: {
637 bitField0_ |= 0x00000001;
638 time_ = input.readDouble();
639 break;
640 }
641 }
642 }
643 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
644 throw e.setUnfinishedMessage(this);
645 } catch (java.io.IOException e) {
646 throw new com.google.protobuf.InvalidProtocolBufferException(
647 e).setUnfinishedMessage(this);
648 } finally {
649 this.unknownFields = unknownFields.build();
650 makeExtensionsImmutable();
651 }
652 }
653 public static final com.google.protobuf.Descriptors.Descriptor
654 getDescriptor() {
655 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor;
656 }
657
658 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
659 internalGetFieldAccessorTable() {
660 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_fieldAccessorTable
661 .ensureFieldAccessorsInitialized(
662 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder.class);
663 }
664
665 private int bitField0_;
666 public static final int TIME_FIELD_NUMBER = 1;
667 private double time_;
668
669
670
671 public boolean hasTime() {
672 return ((bitField0_ & 0x00000001) == 0x00000001);
673 }
674
675
676
677 public double getTime() {
678 return time_;
679 }
680
681 private byte memoizedIsInitialized = -1;
682 public final boolean isInitialized() {
683 byte isInitialized = memoizedIsInitialized;
684 if (isInitialized == 1) return true;
685 if (isInitialized == 0) return false;
686
687 if (!hasTime()) {
688 memoizedIsInitialized = 0;
689 return false;
690 }
691 memoizedIsInitialized = 1;
692 return true;
693 }
694
695 public void writeTo(com.google.protobuf.CodedOutputStream output)
696 throws java.io.IOException {
697 if (((bitField0_ & 0x00000001) == 0x00000001)) {
698 output.writeDouble(1, time_);
699 }
700 unknownFields.writeTo(output);
701 }
702
703 public int getSerializedSize() {
704 int size = memoizedSize;
705 if (size != -1) return size;
706
707 size = 0;
708 if (((bitField0_ & 0x00000001) == 0x00000001)) {
709 size += com.google.protobuf.CodedOutputStream
710 .computeDoubleSize(1, time_);
711 }
712 size += unknownFields.getSerializedSize();
713 memoizedSize = size;
714 return size;
715 }
716
717 @java.lang.Override
718 public boolean equals(final java.lang.Object obj) {
719 if (obj == this) {
720 return true;
721 }
722 if (!(obj instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil)) {
723 return super.equals(obj);
724 }
725 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil other = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) obj;
726
727 boolean result = true;
728 result = result && (hasTime() == other.hasTime());
729 if (hasTime()) {
730 result = result && (
731 java.lang.Double.doubleToLongBits(getTime())
732 == java.lang.Double.doubleToLongBits(
733 other.getTime()));
734 }
735 result = result && unknownFields.equals(other.unknownFields);
736 return result;
737 }
738
739 @java.lang.Override
740 public int hashCode() {
741 if (memoizedHashCode != 0) {
742 return memoizedHashCode;
743 }
744 int hash = 41;
745 hash = (19 * hash) + getDescriptor().hashCode();
746 if (hasTime()) {
747 hash = (37 * hash) + TIME_FIELD_NUMBER;
748 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
749 java.lang.Double.doubleToLongBits(getTime()));
750 }
751 hash = (29 * hash) + unknownFields.hashCode();
752 memoizedHashCode = hash;
753 return hash;
754 }
755
756 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
757 java.nio.ByteBuffer data)
758 throws com.google.protobuf.InvalidProtocolBufferException {
759 return PARSER.parseFrom(data);
760 }
761 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
762 java.nio.ByteBuffer data,
763 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
764 throws com.google.protobuf.InvalidProtocolBufferException {
765 return PARSER.parseFrom(data, extensionRegistry);
766 }
767 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
768 com.google.protobuf.ByteString data)
769 throws com.google.protobuf.InvalidProtocolBufferException {
770 return PARSER.parseFrom(data);
771 }
772 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
773 com.google.protobuf.ByteString data,
774 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
775 throws com.google.protobuf.InvalidProtocolBufferException {
776 return PARSER.parseFrom(data, extensionRegistry);
777 }
778 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(byte[] data)
779 throws com.google.protobuf.InvalidProtocolBufferException {
780 return PARSER.parseFrom(data);
781 }
782 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
783 byte[] data,
784 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
785 throws com.google.protobuf.InvalidProtocolBufferException {
786 return PARSER.parseFrom(data, extensionRegistry);
787 }
788 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(java.io.InputStream input)
789 throws java.io.IOException {
790 return com.google.protobuf.GeneratedMessageV3
791 .parseWithIOException(PARSER, input);
792 }
793 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
794 java.io.InputStream input,
795 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
796 throws java.io.IOException {
797 return com.google.protobuf.GeneratedMessageV3
798 .parseWithIOException(PARSER, input, extensionRegistry);
799 }
800 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseDelimitedFrom(java.io.InputStream input)
801 throws java.io.IOException {
802 return com.google.protobuf.GeneratedMessageV3
803 .parseDelimitedWithIOException(PARSER, input);
804 }
805 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseDelimitedFrom(
806 java.io.InputStream input,
807 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
808 throws java.io.IOException {
809 return com.google.protobuf.GeneratedMessageV3
810 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
811 }
812 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
813 com.google.protobuf.CodedInputStream input)
814 throws java.io.IOException {
815 return com.google.protobuf.GeneratedMessageV3
816 .parseWithIOException(PARSER, input);
817 }
818 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
819 com.google.protobuf.CodedInputStream input,
820 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
821 throws java.io.IOException {
822 return com.google.protobuf.GeneratedMessageV3
823 .parseWithIOException(PARSER, input, extensionRegistry);
824 }
825
826 public Builder newBuilderForType() { return newBuilder(); }
827 public static Builder newBuilder() {
828 return DEFAULT_INSTANCE.toBuilder();
829 }
830 public static Builder newBuilder(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil prototype) {
831 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
832 }
833 public Builder toBuilder() {
834 return this == DEFAULT_INSTANCE
835 ? new Builder() : new Builder().mergeFrom(this);
836 }
837
838 @java.lang.Override
839 protected Builder newBuilderForType(
840 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
841 Builder builder = new Builder(parent);
842 return builder;
843 }
844
845
846
847 public static final class Builder extends
848 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
849
850 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder {
851 public static final com.google.protobuf.Descriptors.Descriptor
852 getDescriptor() {
853 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor;
854 }
855
856 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
857 internalGetFieldAccessorTable() {
858 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_fieldAccessorTable
859 .ensureFieldAccessorsInitialized(
860 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder.class);
861 }
862
863
864 private Builder() {
865 maybeForceBuilderInitialization();
866 }
867
868 private Builder(
869 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
870 super(parent);
871 maybeForceBuilderInitialization();
872 }
873 private void maybeForceBuilderInitialization() {
874 if (com.google.protobuf.GeneratedMessageV3
875 .alwaysUseFieldBuilders) {
876 }
877 }
878 public Builder clear() {
879 super.clear();
880 time_ = 0D;
881 bitField0_ = (bitField0_ & ~0x00000001);
882 return this;
883 }
884
885 public com.google.protobuf.Descriptors.Descriptor
886 getDescriptorForType() {
887 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor;
888 }
889
890 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getDefaultInstanceForType() {
891 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
892 }
893
894 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil build() {
895 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil result = buildPartial();
896 if (!result.isInitialized()) {
897 throw newUninitializedMessageException(result);
898 }
899 return result;
900 }
901
902 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil buildPartial() {
903 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil result = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil(this);
904 int from_bitField0_ = bitField0_;
905 int to_bitField0_ = 0;
906 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
907 to_bitField0_ |= 0x00000001;
908 }
909 result.time_ = time_;
910 result.bitField0_ = to_bitField0_;
911 onBuilt();
912 return result;
913 }
914
915 public Builder clone() {
916 return (Builder) super.clone();
917 }
918 public Builder setField(
919 com.google.protobuf.Descriptors.FieldDescriptor field,
920 java.lang.Object value) {
921 return (Builder) super.setField(field, value);
922 }
923 public Builder clearField(
924 com.google.protobuf.Descriptors.FieldDescriptor field) {
925 return (Builder) super.clearField(field);
926 }
927 public Builder clearOneof(
928 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
929 return (Builder) super.clearOneof(oneof);
930 }
931 public Builder setRepeatedField(
932 com.google.protobuf.Descriptors.FieldDescriptor field,
933 int index, java.lang.Object value) {
934 return (Builder) super.setRepeatedField(field, index, value);
935 }
936 public Builder addRepeatedField(
937 com.google.protobuf.Descriptors.FieldDescriptor field,
938 java.lang.Object value) {
939 return (Builder) super.addRepeatedField(field, value);
940 }
941 public Builder mergeFrom(com.google.protobuf.Message other) {
942 if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) {
943 return mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil)other);
944 } else {
945 super.mergeFrom(other);
946 return this;
947 }
948 }
949
950 public Builder mergeFrom(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil other) {
951 if (other == org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance()) return this;
952 if (other.hasTime()) {
953 setTime(other.getTime());
954 }
955 this.mergeUnknownFields(other.unknownFields);
956 onChanged();
957 return this;
958 }
959
960 public final boolean isInitialized() {
961 if (!hasTime()) {
962 return false;
963 }
964 return true;
965 }
966
967 public Builder mergeFrom(
968 com.google.protobuf.CodedInputStream input,
969 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
970 throws java.io.IOException {
971 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parsedMessage = null;
972 try {
973 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
974 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
975 parsedMessage = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) e.getUnfinishedMessage();
976 throw e.unwrapIOException();
977 } finally {
978 if (parsedMessage != null) {
979 mergeFrom(parsedMessage);
980 }
981 }
982 return this;
983 }
984 private int bitField0_;
985
986 private double time_ ;
987
988
989
990 public boolean hasTime() {
991 return ((bitField0_ & 0x00000001) == 0x00000001);
992 }
993
994
995
996 public double getTime() {
997 return time_;
998 }
999
1000
1001
1002 public Builder setTime(double value) {
1003 bitField0_ |= 0x00000001;
1004 time_ = value;
1005 onChanged();
1006 return this;
1007 }
1008
1009
1010
1011 public Builder clearTime() {
1012 bitField0_ = (bitField0_ & ~0x00000001);
1013 time_ = 0D;
1014 onChanged();
1015 return this;
1016 }
1017 public final Builder setUnknownFields(
1018 final com.google.protobuf.UnknownFieldSet unknownFields) {
1019 return super.setUnknownFields(unknownFields);
1020 }
1021
1022 public final Builder mergeUnknownFields(
1023 final com.google.protobuf.UnknownFieldSet unknownFields) {
1024 return super.mergeUnknownFields(unknownFields);
1025 }
1026
1027
1028
1029 }
1030
1031
1032 private static final org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil DEFAULT_INSTANCE;
1033 static {
1034 DEFAULT_INSTANCE = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil();
1035 }
1036
1037 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getDefaultInstance() {
1038 return DEFAULT_INSTANCE;
1039 }
1040
1041 @java.lang.Deprecated public static final com.google.protobuf.Parser<SimulateUntil>
1042 PARSER = new com.google.protobuf.AbstractParser<SimulateUntil>() {
1043 public SimulateUntil parsePartialFrom(
1044 com.google.protobuf.CodedInputStream input,
1045 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1046 throws com.google.protobuf.InvalidProtocolBufferException {
1047 return new SimulateUntil(input, extensionRegistry);
1048 }
1049 };
1050
1051 public static com.google.protobuf.Parser<SimulateUntil> parser() {
1052 return PARSER;
1053 }
1054
1055 @java.lang.Override
1056 public com.google.protobuf.Parser<SimulateUntil> getParserForType() {
1057 return PARSER;
1058 }
1059
1060 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getDefaultInstanceForType() {
1061 return DEFAULT_INSTANCE;
1062 }
1063
1064 }
1065
1066 public interface GTUPositionsOrBuilder extends
1067
1068 com.google.protobuf.MessageOrBuilder {
1069
1070
1071
1072
1073 java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition>
1074 getGtuPosList();
1075
1076
1077
1078 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getGtuPos(int index);
1079
1080
1081
1082 int getGtuPosCount();
1083
1084
1085
1086 java.util.List<? extends org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder>
1087 getGtuPosOrBuilderList();
1088
1089
1090
1091 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder getGtuPosOrBuilder(
1092 int index);
1093
1094
1095
1096
1097 boolean hasStatus();
1098
1099
1100
1101 java.lang.String getStatus();
1102
1103
1104
1105 com.google.protobuf.ByteString
1106 getStatusBytes();
1107 }
1108
1109
1110
1111 public static final class GTUPositions extends
1112 com.google.protobuf.GeneratedMessageV3 implements
1113
1114 GTUPositionsOrBuilder {
1115 private static final long serialVersionUID = 0L;
1116
1117 private GTUPositions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
1118 super(builder);
1119 }
1120 private GTUPositions() {
1121 gtuPos_ = java.util.Collections.emptyList();
1122 status_ = "";
1123 }
1124
1125 @java.lang.Override
1126 public final com.google.protobuf.UnknownFieldSet
1127 getUnknownFields() {
1128 return this.unknownFields;
1129 }
1130 private GTUPositions(
1131 com.google.protobuf.CodedInputStream input,
1132 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1133 throws com.google.protobuf.InvalidProtocolBufferException {
1134 this();
1135 int mutable_bitField0_ = 0;
1136 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1137 com.google.protobuf.UnknownFieldSet.newBuilder();
1138 try {
1139 boolean done = false;
1140 while (!done) {
1141 int tag = input.readTag();
1142 switch (tag) {
1143 case 0:
1144 done = true;
1145 break;
1146 default: {
1147 if (!parseUnknownField(
1148 input, unknownFields, extensionRegistry, tag)) {
1149 done = true;
1150 }
1151 break;
1152 }
1153 case 10: {
1154 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
1155 gtuPos_ = new java.util.ArrayList<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition>();
1156 mutable_bitField0_ |= 0x00000001;
1157 }
1158 gtuPos_.add(
1159 input.readMessage(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.PARSER, extensionRegistry));
1160 break;
1161 }
1162 case 18: {
1163 com.google.protobuf.ByteString bs = input.readBytes();
1164 bitField0_ |= 0x00000001;
1165 status_ = bs;
1166 break;
1167 }
1168 }
1169 }
1170 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1171 throw e.setUnfinishedMessage(this);
1172 } catch (java.io.IOException e) {
1173 throw new com.google.protobuf.InvalidProtocolBufferException(
1174 e).setUnfinishedMessage(this);
1175 } finally {
1176 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
1177 gtuPos_ = java.util.Collections.unmodifiableList(gtuPos_);
1178 }
1179 this.unknownFields = unknownFields.build();
1180 makeExtensionsImmutable();
1181 }
1182 }
1183 public static final com.google.protobuf.Descriptors.Descriptor
1184 getDescriptor() {
1185 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor;
1186 }
1187
1188 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1189 internalGetFieldAccessorTable() {
1190 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_fieldAccessorTable
1191 .ensureFieldAccessorsInitialized(
1192 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder.class);
1193 }
1194
1195 public interface GTUPositionOrBuilder extends
1196
1197 com.google.protobuf.MessageOrBuilder {
1198
1199
1200
1201
1202 boolean hasGtuId();
1203
1204
1205
1206 java.lang.String getGtuId();
1207
1208
1209
1210 com.google.protobuf.ByteString
1211 getGtuIdBytes();
1212
1213
1214
1215
1216 boolean hasX();
1217
1218
1219
1220 double getX();
1221
1222
1223
1224
1225 boolean hasY();
1226
1227
1228
1229 double getY();
1230
1231
1232
1233
1234 boolean hasZ();
1235
1236
1237
1238 double getZ();
1239
1240
1241
1242
1243 boolean hasAngle();
1244
1245
1246
1247 double getAngle();
1248
1249
1250
1251
1252 boolean hasWidth();
1253
1254
1255
1256 double getWidth();
1257
1258
1259
1260
1261 boolean hasLength();
1262
1263
1264
1265 double getLength();
1266
1267
1268
1269
1270 boolean hasGtuTypeId();
1271
1272
1273
1274 int getGtuTypeId();
1275
1276
1277
1278
1279 boolean hasSpeed();
1280
1281
1282
1283 double getSpeed();
1284 }
1285
1286
1287
1288 public static final class GTUPosition extends
1289 com.google.protobuf.GeneratedMessageV3 implements
1290
1291 GTUPositionOrBuilder {
1292 private static final long serialVersionUID = 0L;
1293
1294 private GTUPosition(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
1295 super(builder);
1296 }
1297 private GTUPosition() {
1298 gtuId_ = "";
1299 x_ = 0D;
1300 y_ = 0D;
1301 z_ = 0D;
1302 angle_ = 0D;
1303 width_ = 0D;
1304 length_ = 0D;
1305 gtuTypeId_ = 0;
1306 speed_ = 0D;
1307 }
1308
1309 @java.lang.Override
1310 public final com.google.protobuf.UnknownFieldSet
1311 getUnknownFields() {
1312 return this.unknownFields;
1313 }
1314 private GTUPosition(
1315 com.google.protobuf.CodedInputStream input,
1316 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1317 throws com.google.protobuf.InvalidProtocolBufferException {
1318 this();
1319 int mutable_bitField0_ = 0;
1320 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1321 com.google.protobuf.UnknownFieldSet.newBuilder();
1322 try {
1323 boolean done = false;
1324 while (!done) {
1325 int tag = input.readTag();
1326 switch (tag) {
1327 case 0:
1328 done = true;
1329 break;
1330 default: {
1331 if (!parseUnknownField(
1332 input, unknownFields, extensionRegistry, tag)) {
1333 done = true;
1334 }
1335 break;
1336 }
1337 case 10: {
1338 com.google.protobuf.ByteString bs = input.readBytes();
1339 bitField0_ |= 0x00000001;
1340 gtuId_ = bs;
1341 break;
1342 }
1343 case 17: {
1344 bitField0_ |= 0x00000002;
1345 x_ = input.readDouble();
1346 break;
1347 }
1348 case 25: {
1349 bitField0_ |= 0x00000004;
1350 y_ = input.readDouble();
1351 break;
1352 }
1353 case 33: {
1354 bitField0_ |= 0x00000008;
1355 z_ = input.readDouble();
1356 break;
1357 }
1358 case 41: {
1359 bitField0_ |= 0x00000010;
1360 angle_ = input.readDouble();
1361 break;
1362 }
1363 case 49: {
1364 bitField0_ |= 0x00000020;
1365 width_ = input.readDouble();
1366 break;
1367 }
1368 case 57: {
1369 bitField0_ |= 0x00000040;
1370 length_ = input.readDouble();
1371 break;
1372 }
1373 case 64: {
1374 bitField0_ |= 0x00000080;
1375 gtuTypeId_ = input.readInt32();
1376 break;
1377 }
1378 case 73: {
1379 bitField0_ |= 0x00000100;
1380 speed_ = input.readDouble();
1381 break;
1382 }
1383 }
1384 }
1385 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1386 throw e.setUnfinishedMessage(this);
1387 } catch (java.io.IOException e) {
1388 throw new com.google.protobuf.InvalidProtocolBufferException(
1389 e).setUnfinishedMessage(this);
1390 } finally {
1391 this.unknownFields = unknownFields.build();
1392 makeExtensionsImmutable();
1393 }
1394 }
1395 public static final com.google.protobuf.Descriptors.Descriptor
1396 getDescriptor() {
1397 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor;
1398 }
1399
1400 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1401 internalGetFieldAccessorTable() {
1402 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_fieldAccessorTable
1403 .ensureFieldAccessorsInitialized(
1404 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder.class);
1405 }
1406
1407 private int bitField0_;
1408 public static final int GTUID_FIELD_NUMBER = 1;
1409 private volatile java.lang.Object gtuId_;
1410
1411
1412
1413 public boolean hasGtuId() {
1414 return ((bitField0_ & 0x00000001) == 0x00000001);
1415 }
1416
1417
1418
1419 public java.lang.String getGtuId() {
1420 java.lang.Object ref = gtuId_;
1421 if (ref instanceof java.lang.String) {
1422 return (java.lang.String) ref;
1423 } else {
1424 com.google.protobuf.ByteString bs =
1425 (com.google.protobuf.ByteString) ref;
1426 java.lang.String s = bs.toStringUtf8();
1427 if (bs.isValidUtf8()) {
1428 gtuId_ = s;
1429 }
1430 return s;
1431 }
1432 }
1433
1434
1435
1436 public com.google.protobuf.ByteString
1437 getGtuIdBytes() {
1438 java.lang.Object ref = gtuId_;
1439 if (ref instanceof java.lang.String) {
1440 com.google.protobuf.ByteString b =
1441 com.google.protobuf.ByteString.copyFromUtf8(
1442 (java.lang.String) ref);
1443 gtuId_ = b;
1444 return b;
1445 } else {
1446 return (com.google.protobuf.ByteString) ref;
1447 }
1448 }
1449
1450 public static final int X_FIELD_NUMBER = 2;
1451 private double x_;
1452
1453
1454
1455 public boolean hasX() {
1456 return ((bitField0_ & 0x00000002) == 0x00000002);
1457 }
1458
1459
1460
1461 public double getX() {
1462 return x_;
1463 }
1464
1465 public static final int Y_FIELD_NUMBER = 3;
1466 private double y_;
1467
1468
1469
1470 public boolean hasY() {
1471 return ((bitField0_ & 0x00000004) == 0x00000004);
1472 }
1473
1474
1475
1476 public double getY() {
1477 return y_;
1478 }
1479
1480 public static final int Z_FIELD_NUMBER = 4;
1481 private double z_;
1482
1483
1484
1485 public boolean hasZ() {
1486 return ((bitField0_ & 0x00000008) == 0x00000008);
1487 }
1488
1489
1490
1491 public double getZ() {
1492 return z_;
1493 }
1494
1495 public static final int ANGLE_FIELD_NUMBER = 5;
1496 private double angle_;
1497
1498
1499
1500 public boolean hasAngle() {
1501 return ((bitField0_ & 0x00000010) == 0x00000010);
1502 }
1503
1504
1505
1506 public double getAngle() {
1507 return angle_;
1508 }
1509
1510 public static final int WIDTH_FIELD_NUMBER = 6;
1511 private double width_;
1512
1513
1514
1515 public boolean hasWidth() {
1516 return ((bitField0_ & 0x00000020) == 0x00000020);
1517 }
1518
1519
1520
1521 public double getWidth() {
1522 return width_;
1523 }
1524
1525 public static final int LENGTH_FIELD_NUMBER = 7;
1526 private double length_;
1527
1528
1529
1530 public boolean hasLength() {
1531 return ((bitField0_ & 0x00000040) == 0x00000040);
1532 }
1533
1534
1535
1536 public double getLength() {
1537 return length_;
1538 }
1539
1540 public static final int GTUTYPEID_FIELD_NUMBER = 8;
1541 private int gtuTypeId_;
1542
1543
1544
1545 public boolean hasGtuTypeId() {
1546 return ((bitField0_ & 0x00000080) == 0x00000080);
1547 }
1548
1549
1550
1551 public int getGtuTypeId() {
1552 return gtuTypeId_;
1553 }
1554
1555 public static final int SPEED_FIELD_NUMBER = 9;
1556 private double speed_;
1557
1558
1559
1560 public boolean hasSpeed() {
1561 return ((bitField0_ & 0x00000100) == 0x00000100);
1562 }
1563
1564
1565
1566 public double getSpeed() {
1567 return speed_;
1568 }
1569
1570 private byte memoizedIsInitialized = -1;
1571 public final boolean isInitialized() {
1572 byte isInitialized = memoizedIsInitialized;
1573 if (isInitialized == 1) return true;
1574 if (isInitialized == 0) return false;
1575
1576 if (!hasGtuId()) {
1577 memoizedIsInitialized = 0;
1578 return false;
1579 }
1580 if (!hasX()) {
1581 memoizedIsInitialized = 0;
1582 return false;
1583 }
1584 if (!hasY()) {
1585 memoizedIsInitialized = 0;
1586 return false;
1587 }
1588 if (!hasAngle()) {
1589 memoizedIsInitialized = 0;
1590 return false;
1591 }
1592 if (!hasWidth()) {
1593 memoizedIsInitialized = 0;
1594 return false;
1595 }
1596 if (!hasLength()) {
1597 memoizedIsInitialized = 0;
1598 return false;
1599 }
1600 if (!hasGtuTypeId()) {
1601 memoizedIsInitialized = 0;
1602 return false;
1603 }
1604 if (!hasSpeed()) {
1605 memoizedIsInitialized = 0;
1606 return false;
1607 }
1608 memoizedIsInitialized = 1;
1609 return true;
1610 }
1611
1612 public void writeTo(com.google.protobuf.CodedOutputStream output)
1613 throws java.io.IOException {
1614 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1615 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gtuId_);
1616 }
1617 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1618 output.writeDouble(2, x_);
1619 }
1620 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1621 output.writeDouble(3, y_);
1622 }
1623 if (((bitField0_ & 0x00000008) == 0x00000008)) {
1624 output.writeDouble(4, z_);
1625 }
1626 if (((bitField0_ & 0x00000010) == 0x00000010)) {
1627 output.writeDouble(5, angle_);
1628 }
1629 if (((bitField0_ & 0x00000020) == 0x00000020)) {
1630 output.writeDouble(6, width_);
1631 }
1632 if (((bitField0_ & 0x00000040) == 0x00000040)) {
1633 output.writeDouble(7, length_);
1634 }
1635 if (((bitField0_ & 0x00000080) == 0x00000080)) {
1636 output.writeInt32(8, gtuTypeId_);
1637 }
1638 if (((bitField0_ & 0x00000100) == 0x00000100)) {
1639 output.writeDouble(9, speed_);
1640 }
1641 unknownFields.writeTo(output);
1642 }
1643
1644 public int getSerializedSize() {
1645 int size = memoizedSize;
1646 if (size != -1) return size;
1647
1648 size = 0;
1649 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1650 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gtuId_);
1651 }
1652 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1653 size += com.google.protobuf.CodedOutputStream
1654 .computeDoubleSize(2, x_);
1655 }
1656 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1657 size += com.google.protobuf.CodedOutputStream
1658 .computeDoubleSize(3, y_);
1659 }
1660 if (((bitField0_ & 0x00000008) == 0x00000008)) {
1661 size += com.google.protobuf.CodedOutputStream
1662 .computeDoubleSize(4, z_);
1663 }
1664 if (((bitField0_ & 0x00000010) == 0x00000010)) {
1665 size += com.google.protobuf.CodedOutputStream
1666 .computeDoubleSize(5, angle_);
1667 }
1668 if (((bitField0_ & 0x00000020) == 0x00000020)) {
1669 size += com.google.protobuf.CodedOutputStream
1670 .computeDoubleSize(6, width_);
1671 }
1672 if (((bitField0_ & 0x00000040) == 0x00000040)) {
1673 size += com.google.protobuf.CodedOutputStream
1674 .computeDoubleSize(7, length_);
1675 }
1676 if (((bitField0_ & 0x00000080) == 0x00000080)) {
1677 size += com.google.protobuf.CodedOutputStream
1678 .computeInt32Size(8, gtuTypeId_);
1679 }
1680 if (((bitField0_ & 0x00000100) == 0x00000100)) {
1681 size += com.google.protobuf.CodedOutputStream
1682 .computeDoubleSize(9, speed_);
1683 }
1684 size += unknownFields.getSerializedSize();
1685 memoizedSize = size;
1686 return size;
1687 }
1688
1689 @java.lang.Override
1690 public boolean equals(final java.lang.Object obj) {
1691 if (obj == this) {
1692 return true;
1693 }
1694 if (!(obj instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition)) {
1695 return super.equals(obj);
1696 }
1697 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition other = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition) obj;
1698
1699 boolean result = true;
1700 result = result && (hasGtuId() == other.hasGtuId());
1701 if (hasGtuId()) {
1702 result = result && getGtuId()
1703 .equals(other.getGtuId());
1704 }
1705 result = result && (hasX() == other.hasX());
1706 if (hasX()) {
1707 result = result && (
1708 java.lang.Double.doubleToLongBits(getX())
1709 == java.lang.Double.doubleToLongBits(
1710 other.getX()));
1711 }
1712 result = result && (hasY() == other.hasY());
1713 if (hasY()) {
1714 result = result && (
1715 java.lang.Double.doubleToLongBits(getY())
1716 == java.lang.Double.doubleToLongBits(
1717 other.getY()));
1718 }
1719 result = result && (hasZ() == other.hasZ());
1720 if (hasZ()) {
1721 result = result && (
1722 java.lang.Double.doubleToLongBits(getZ())
1723 == java.lang.Double.doubleToLongBits(
1724 other.getZ()));
1725 }
1726 result = result && (hasAngle() == other.hasAngle());
1727 if (hasAngle()) {
1728 result = result && (
1729 java.lang.Double.doubleToLongBits(getAngle())
1730 == java.lang.Double.doubleToLongBits(
1731 other.getAngle()));
1732 }
1733 result = result && (hasWidth() == other.hasWidth());
1734 if (hasWidth()) {
1735 result = result && (
1736 java.lang.Double.doubleToLongBits(getWidth())
1737 == java.lang.Double.doubleToLongBits(
1738 other.getWidth()));
1739 }
1740 result = result && (hasLength() == other.hasLength());
1741 if (hasLength()) {
1742 result = result && (
1743 java.lang.Double.doubleToLongBits(getLength())
1744 == java.lang.Double.doubleToLongBits(
1745 other.getLength()));
1746 }
1747 result = result && (hasGtuTypeId() == other.hasGtuTypeId());
1748 if (hasGtuTypeId()) {
1749 result = result && (getGtuTypeId()
1750 == other.getGtuTypeId());
1751 }
1752 result = result && (hasSpeed() == other.hasSpeed());
1753 if (hasSpeed()) {
1754 result = result && (
1755 java.lang.Double.doubleToLongBits(getSpeed())
1756 == java.lang.Double.doubleToLongBits(
1757 other.getSpeed()));
1758 }
1759 result = result && unknownFields.equals(other.unknownFields);
1760 return result;
1761 }
1762
1763 @java.lang.Override
1764 public int hashCode() {
1765 if (memoizedHashCode != 0) {
1766 return memoizedHashCode;
1767 }
1768 int hash = 41;
1769 hash = (19 * hash) + getDescriptor().hashCode();
1770 if (hasGtuId()) {
1771 hash = (37 * hash) + GTUID_FIELD_NUMBER;
1772 hash = (53 * hash) + getGtuId().hashCode();
1773 }
1774 if (hasX()) {
1775 hash = (37 * hash) + X_FIELD_NUMBER;
1776 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1777 java.lang.Double.doubleToLongBits(getX()));
1778 }
1779 if (hasY()) {
1780 hash = (37 * hash) + Y_FIELD_NUMBER;
1781 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1782 java.lang.Double.doubleToLongBits(getY()));
1783 }
1784 if (hasZ()) {
1785 hash = (37 * hash) + Z_FIELD_NUMBER;
1786 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1787 java.lang.Double.doubleToLongBits(getZ()));
1788 }
1789 if (hasAngle()) {
1790 hash = (37 * hash) + ANGLE_FIELD_NUMBER;
1791 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1792 java.lang.Double.doubleToLongBits(getAngle()));
1793 }
1794 if (hasWidth()) {
1795 hash = (37 * hash) + WIDTH_FIELD_NUMBER;
1796 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1797 java.lang.Double.doubleToLongBits(getWidth()));
1798 }
1799 if (hasLength()) {
1800 hash = (37 * hash) + LENGTH_FIELD_NUMBER;
1801 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1802 java.lang.Double.doubleToLongBits(getLength()));
1803 }
1804 if (hasGtuTypeId()) {
1805 hash = (37 * hash) + GTUTYPEID_FIELD_NUMBER;
1806 hash = (53 * hash) + getGtuTypeId();
1807 }
1808 if (hasSpeed()) {
1809 hash = (37 * hash) + SPEED_FIELD_NUMBER;
1810 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1811 java.lang.Double.doubleToLongBits(getSpeed()));
1812 }
1813 hash = (29 * hash) + unknownFields.hashCode();
1814 memoizedHashCode = hash;
1815 return hash;
1816 }
1817
1818 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
1819 java.nio.ByteBuffer data)
1820 throws com.google.protobuf.InvalidProtocolBufferException {
1821 return PARSER.parseFrom(data);
1822 }
1823 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
1824 java.nio.ByteBuffer data,
1825 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1826 throws com.google.protobuf.InvalidProtocolBufferException {
1827 return PARSER.parseFrom(data, extensionRegistry);
1828 }
1829 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
1830 com.google.protobuf.ByteString data)
1831 throws com.google.protobuf.InvalidProtocolBufferException {
1832 return PARSER.parseFrom(data);
1833 }
1834 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
1835 com.google.protobuf.ByteString data,
1836 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1837 throws com.google.protobuf.InvalidProtocolBufferException {
1838 return PARSER.parseFrom(data, extensionRegistry);
1839 }
1840 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(byte[] data)
1841 throws com.google.protobuf.InvalidProtocolBufferException {
1842 return PARSER.parseFrom(data);
1843 }
1844 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
1845 byte[] data,
1846 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1847 throws com.google.protobuf.InvalidProtocolBufferException {
1848 return PARSER.parseFrom(data, extensionRegistry);
1849 }
1850 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(java.io.InputStream input)
1851 throws java.io.IOException {
1852 return com.google.protobuf.GeneratedMessageV3
1853 .parseWithIOException(PARSER, input);
1854 }
1855 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
1856 java.io.InputStream input,
1857 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1858 throws java.io.IOException {
1859 return com.google.protobuf.GeneratedMessageV3
1860 .parseWithIOException(PARSER, input, extensionRegistry);
1861 }
1862 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseDelimitedFrom(java.io.InputStream input)
1863 throws java.io.IOException {
1864 return com.google.protobuf.GeneratedMessageV3
1865 .parseDelimitedWithIOException(PARSER, input);
1866 }
1867 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseDelimitedFrom(
1868 java.io.InputStream input,
1869 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1870 throws java.io.IOException {
1871 return com.google.protobuf.GeneratedMessageV3
1872 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1873 }
1874 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
1875 com.google.protobuf.CodedInputStream input)
1876 throws java.io.IOException {
1877 return com.google.protobuf.GeneratedMessageV3
1878 .parseWithIOException(PARSER, input);
1879 }
1880 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
1881 com.google.protobuf.CodedInputStream input,
1882 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1883 throws java.io.IOException {
1884 return com.google.protobuf.GeneratedMessageV3
1885 .parseWithIOException(PARSER, input, extensionRegistry);
1886 }
1887
1888 public Builder newBuilderForType() { return newBuilder(); }
1889 public static Builder newBuilder() {
1890 return DEFAULT_INSTANCE.toBuilder();
1891 }
1892 public static Builder newBuilder(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition prototype) {
1893 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1894 }
1895 public Builder toBuilder() {
1896 return this == DEFAULT_INSTANCE
1897 ? new Builder() : new Builder().mergeFrom(this);
1898 }
1899
1900 @java.lang.Override
1901 protected Builder newBuilderForType(
1902 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1903 Builder builder = new Builder(parent);
1904 return builder;
1905 }
1906
1907
1908
1909 public static final class Builder extends
1910 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1911
1912 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder {
1913 public static final com.google.protobuf.Descriptors.Descriptor
1914 getDescriptor() {
1915 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor;
1916 }
1917
1918 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1919 internalGetFieldAccessorTable() {
1920 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_fieldAccessorTable
1921 .ensureFieldAccessorsInitialized(
1922 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder.class);
1923 }
1924
1925
1926 private Builder() {
1927 maybeForceBuilderInitialization();
1928 }
1929
1930 private Builder(
1931 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1932 super(parent);
1933 maybeForceBuilderInitialization();
1934 }
1935 private void maybeForceBuilderInitialization() {
1936 if (com.google.protobuf.GeneratedMessageV3
1937 .alwaysUseFieldBuilders) {
1938 }
1939 }
1940 public Builder clear() {
1941 super.clear();
1942 gtuId_ = "";
1943 bitField0_ = (bitField0_ & ~0x00000001);
1944 x_ = 0D;
1945 bitField0_ = (bitField0_ & ~0x00000002);
1946 y_ = 0D;
1947 bitField0_ = (bitField0_ & ~0x00000004);
1948 z_ = 0D;
1949 bitField0_ = (bitField0_ & ~0x00000008);
1950 angle_ = 0D;
1951 bitField0_ = (bitField0_ & ~0x00000010);
1952 width_ = 0D;
1953 bitField0_ = (bitField0_ & ~0x00000020);
1954 length_ = 0D;
1955 bitField0_ = (bitField0_ & ~0x00000040);
1956 gtuTypeId_ = 0;
1957 bitField0_ = (bitField0_ & ~0x00000080);
1958 speed_ = 0D;
1959 bitField0_ = (bitField0_ & ~0x00000100);
1960 return this;
1961 }
1962
1963 public com.google.protobuf.Descriptors.Descriptor
1964 getDescriptorForType() {
1965 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor;
1966 }
1967
1968 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getDefaultInstanceForType() {
1969 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.getDefaultInstance();
1970 }
1971
1972 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition build() {
1973 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition result = buildPartial();
1974 if (!result.isInitialized()) {
1975 throw newUninitializedMessageException(result);
1976 }
1977 return result;
1978 }
1979
1980 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition buildPartial() {
1981 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition result = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition(this);
1982 int from_bitField0_ = bitField0_;
1983 int to_bitField0_ = 0;
1984 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1985 to_bitField0_ |= 0x00000001;
1986 }
1987 result.gtuId_ = gtuId_;
1988 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1989 to_bitField0_ |= 0x00000002;
1990 }
1991 result.x_ = x_;
1992 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1993 to_bitField0_ |= 0x00000004;
1994 }
1995 result.y_ = y_;
1996 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
1997 to_bitField0_ |= 0x00000008;
1998 }
1999 result.z_ = z_;
2000 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
2001 to_bitField0_ |= 0x00000010;
2002 }
2003 result.angle_ = angle_;
2004 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
2005 to_bitField0_ |= 0x00000020;
2006 }
2007 result.width_ = width_;
2008 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
2009 to_bitField0_ |= 0x00000040;
2010 }
2011 result.length_ = length_;
2012 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
2013 to_bitField0_ |= 0x00000080;
2014 }
2015 result.gtuTypeId_ = gtuTypeId_;
2016 if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
2017 to_bitField0_ |= 0x00000100;
2018 }
2019 result.speed_ = speed_;
2020 result.bitField0_ = to_bitField0_;
2021 onBuilt();
2022 return result;
2023 }
2024
2025 public Builder clone() {
2026 return (Builder) super.clone();
2027 }
2028 public Builder setField(
2029 com.google.protobuf.Descriptors.FieldDescriptor field,
2030 java.lang.Object value) {
2031 return (Builder) super.setField(field, value);
2032 }
2033 public Builder clearField(
2034 com.google.protobuf.Descriptors.FieldDescriptor field) {
2035 return (Builder) super.clearField(field);
2036 }
2037 public Builder clearOneof(
2038 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2039 return (Builder) super.clearOneof(oneof);
2040 }
2041 public Builder setRepeatedField(
2042 com.google.protobuf.Descriptors.FieldDescriptor field,
2043 int index, java.lang.Object value) {
2044 return (Builder) super.setRepeatedField(field, index, value);
2045 }
2046 public Builder addRepeatedField(
2047 com.google.protobuf.Descriptors.FieldDescriptor field,
2048 java.lang.Object value) {
2049 return (Builder) super.addRepeatedField(field, value);
2050 }
2051 public Builder mergeFrom(com.google.protobuf.Message other) {
2052 if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition) {
2053 return mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition)other);
2054 } else {
2055 super.mergeFrom(other);
2056 return this;
2057 }
2058 }
2059
2060 public Builder mergeFrom(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition other) {
2061 if (other == org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.getDefaultInstance()) return this;
2062 if (other.hasGtuId()) {
2063 bitField0_ |= 0x00000001;
2064 gtuId_ = other.gtuId_;
2065 onChanged();
2066 }
2067 if (other.hasX()) {
2068 setX(other.getX());
2069 }
2070 if (other.hasY()) {
2071 setY(other.getY());
2072 }
2073 if (other.hasZ()) {
2074 setZ(other.getZ());
2075 }
2076 if (other.hasAngle()) {
2077 setAngle(other.getAngle());
2078 }
2079 if (other.hasWidth()) {
2080 setWidth(other.getWidth());
2081 }
2082 if (other.hasLength()) {
2083 setLength(other.getLength());
2084 }
2085 if (other.hasGtuTypeId()) {
2086 setGtuTypeId(other.getGtuTypeId());
2087 }
2088 if (other.hasSpeed()) {
2089 setSpeed(other.getSpeed());
2090 }
2091 this.mergeUnknownFields(other.unknownFields);
2092 onChanged();
2093 return this;
2094 }
2095
2096 public final boolean isInitialized() {
2097 if (!hasGtuId()) {
2098 return false;
2099 }
2100 if (!hasX()) {
2101 return false;
2102 }
2103 if (!hasY()) {
2104 return false;
2105 }
2106 if (!hasAngle()) {
2107 return false;
2108 }
2109 if (!hasWidth()) {
2110 return false;
2111 }
2112 if (!hasLength()) {
2113 return false;
2114 }
2115 if (!hasGtuTypeId()) {
2116 return false;
2117 }
2118 if (!hasSpeed()) {
2119 return false;
2120 }
2121 return true;
2122 }
2123
2124 public Builder mergeFrom(
2125 com.google.protobuf.CodedInputStream input,
2126 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2127 throws java.io.IOException {
2128 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parsedMessage = null;
2129 try {
2130 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2131 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2132 parsedMessage = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition) e.getUnfinishedMessage();
2133 throw e.unwrapIOException();
2134 } finally {
2135 if (parsedMessage != null) {
2136 mergeFrom(parsedMessage);
2137 }
2138 }
2139 return this;
2140 }
2141 private int bitField0_;
2142
2143 private java.lang.Object gtuId_ = "";
2144
2145
2146
2147 public boolean hasGtuId() {
2148 return ((bitField0_ & 0x00000001) == 0x00000001);
2149 }
2150
2151
2152
2153 public java.lang.String getGtuId() {
2154 java.lang.Object ref = gtuId_;
2155 if (!(ref instanceof java.lang.String)) {
2156 com.google.protobuf.ByteString bs =
2157 (com.google.protobuf.ByteString) ref;
2158 java.lang.String s = bs.toStringUtf8();
2159 if (bs.isValidUtf8()) {
2160 gtuId_ = s;
2161 }
2162 return s;
2163 } else {
2164 return (java.lang.String) ref;
2165 }
2166 }
2167
2168
2169
2170 public com.google.protobuf.ByteString
2171 getGtuIdBytes() {
2172 java.lang.Object ref = gtuId_;
2173 if (ref instanceof String) {
2174 com.google.protobuf.ByteString b =
2175 com.google.protobuf.ByteString.copyFromUtf8(
2176 (java.lang.String) ref);
2177 gtuId_ = b;
2178 return b;
2179 } else {
2180 return (com.google.protobuf.ByteString) ref;
2181 }
2182 }
2183
2184
2185
2186 public Builder setGtuId(
2187 java.lang.String value) {
2188 if (value == null) {
2189 throw new NullPointerException();
2190 }
2191 bitField0_ |= 0x00000001;
2192 gtuId_ = value;
2193 onChanged();
2194 return this;
2195 }
2196
2197
2198
2199 public Builder clearGtuId() {
2200 bitField0_ = (bitField0_ & ~0x00000001);
2201 gtuId_ = getDefaultInstance().getGtuId();
2202 onChanged();
2203 return this;
2204 }
2205
2206
2207
2208 public Builder setGtuIdBytes(
2209 com.google.protobuf.ByteString value) {
2210 if (value == null) {
2211 throw new NullPointerException();
2212 }
2213 bitField0_ |= 0x00000001;
2214 gtuId_ = value;
2215 onChanged();
2216 return this;
2217 }
2218
2219 private double x_ ;
2220
2221
2222
2223 public boolean hasX() {
2224 return ((bitField0_ & 0x00000002) == 0x00000002);
2225 }
2226
2227
2228
2229 public double getX() {
2230 return x_;
2231 }
2232
2233
2234
2235 public Builder setX(double value) {
2236 bitField0_ |= 0x00000002;
2237 x_ = value;
2238 onChanged();
2239 return this;
2240 }
2241
2242
2243
2244 public Builder clearX() {
2245 bitField0_ = (bitField0_ & ~0x00000002);
2246 x_ = 0D;
2247 onChanged();
2248 return this;
2249 }
2250
2251 private double y_ ;
2252
2253
2254
2255 public boolean hasY() {
2256 return ((bitField0_ & 0x00000004) == 0x00000004);
2257 }
2258
2259
2260
2261 public double getY() {
2262 return y_;
2263 }
2264
2265
2266
2267 public Builder setY(double value) {
2268 bitField0_ |= 0x00000004;
2269 y_ = value;
2270 onChanged();
2271 return this;
2272 }
2273
2274
2275
2276 public Builder clearY() {
2277 bitField0_ = (bitField0_ & ~0x00000004);
2278 y_ = 0D;
2279 onChanged();
2280 return this;
2281 }
2282
2283 private double z_ ;
2284
2285
2286
2287 public boolean hasZ() {
2288 return ((bitField0_ & 0x00000008) == 0x00000008);
2289 }
2290
2291
2292
2293 public double getZ() {
2294 return z_;
2295 }
2296
2297
2298
2299 public Builder setZ(double value) {
2300 bitField0_ |= 0x00000008;
2301 z_ = value;
2302 onChanged();
2303 return this;
2304 }
2305
2306
2307
2308 public Builder clearZ() {
2309 bitField0_ = (bitField0_ & ~0x00000008);
2310 z_ = 0D;
2311 onChanged();
2312 return this;
2313 }
2314
2315 private double angle_ ;
2316
2317
2318
2319 public boolean hasAngle() {
2320 return ((bitField0_ & 0x00000010) == 0x00000010);
2321 }
2322
2323
2324
2325 public double getAngle() {
2326 return angle_;
2327 }
2328
2329
2330
2331 public Builder setAngle(double value) {
2332 bitField0_ |= 0x00000010;
2333 angle_ = value;
2334 onChanged();
2335 return this;
2336 }
2337
2338
2339
2340 public Builder clearAngle() {
2341 bitField0_ = (bitField0_ & ~0x00000010);
2342 angle_ = 0D;
2343 onChanged();
2344 return this;
2345 }
2346
2347 private double width_ ;
2348
2349
2350
2351 public boolean hasWidth() {
2352 return ((bitField0_ & 0x00000020) == 0x00000020);
2353 }
2354
2355
2356
2357 public double getWidth() {
2358 return width_;
2359 }
2360
2361
2362
2363 public Builder setWidth(double value) {
2364 bitField0_ |= 0x00000020;
2365 width_ = value;
2366 onChanged();
2367 return this;
2368 }
2369
2370
2371
2372 public Builder clearWidth() {
2373 bitField0_ = (bitField0_ & ~0x00000020);
2374 width_ = 0D;
2375 onChanged();
2376 return this;
2377 }
2378
2379 private double length_ ;
2380
2381
2382
2383 public boolean hasLength() {
2384 return ((bitField0_ & 0x00000040) == 0x00000040);
2385 }
2386
2387
2388
2389 public double getLength() {
2390 return length_;
2391 }
2392
2393
2394
2395 public Builder setLength(double value) {
2396 bitField0_ |= 0x00000040;
2397 length_ = value;
2398 onChanged();
2399 return this;
2400 }
2401
2402
2403
2404 public Builder clearLength() {
2405 bitField0_ = (bitField0_ & ~0x00000040);
2406 length_ = 0D;
2407 onChanged();
2408 return this;
2409 }
2410
2411 private int gtuTypeId_ ;
2412
2413
2414
2415 public boolean hasGtuTypeId() {
2416 return ((bitField0_ & 0x00000080) == 0x00000080);
2417 }
2418
2419
2420
2421 public int getGtuTypeId() {
2422 return gtuTypeId_;
2423 }
2424
2425
2426
2427 public Builder setGtuTypeId(int value) {
2428 bitField0_ |= 0x00000080;
2429 gtuTypeId_ = value;
2430 onChanged();
2431 return this;
2432 }
2433
2434
2435
2436 public Builder clearGtuTypeId() {
2437 bitField0_ = (bitField0_ & ~0x00000080);
2438 gtuTypeId_ = 0;
2439 onChanged();
2440 return this;
2441 }
2442
2443 private double speed_ ;
2444
2445
2446
2447 public boolean hasSpeed() {
2448 return ((bitField0_ & 0x00000100) == 0x00000100);
2449 }
2450
2451
2452
2453 public double getSpeed() {
2454 return speed_;
2455 }
2456
2457
2458
2459 public Builder setSpeed(double value) {
2460 bitField0_ |= 0x00000100;
2461 speed_ = value;
2462 onChanged();
2463 return this;
2464 }
2465
2466
2467
2468 public Builder clearSpeed() {
2469 bitField0_ = (bitField0_ & ~0x00000100);
2470 speed_ = 0D;
2471 onChanged();
2472 return this;
2473 }
2474 public final Builder setUnknownFields(
2475 final com.google.protobuf.UnknownFieldSet unknownFields) {
2476 return super.setUnknownFields(unknownFields);
2477 }
2478
2479 public final Builder mergeUnknownFields(
2480 final com.google.protobuf.UnknownFieldSet unknownFields) {
2481 return super.mergeUnknownFields(unknownFields);
2482 }
2483
2484
2485
2486 }
2487
2488
2489 private static final org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition DEFAULT_INSTANCE;
2490 static {
2491 DEFAULT_INSTANCE = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition();
2492 }
2493
2494 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getDefaultInstance() {
2495 return DEFAULT_INSTANCE;
2496 }
2497
2498 @java.lang.Deprecated public static final com.google.protobuf.Parser<GTUPosition>
2499 PARSER = new com.google.protobuf.AbstractParser<GTUPosition>() {
2500 public GTUPosition parsePartialFrom(
2501 com.google.protobuf.CodedInputStream input,
2502 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2503 throws com.google.protobuf.InvalidProtocolBufferException {
2504 return new GTUPosition(input, extensionRegistry);
2505 }
2506 };
2507
2508 public static com.google.protobuf.Parser<GTUPosition> parser() {
2509 return PARSER;
2510 }
2511
2512 @java.lang.Override
2513 public com.google.protobuf.Parser<GTUPosition> getParserForType() {
2514 return PARSER;
2515 }
2516
2517 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getDefaultInstanceForType() {
2518 return DEFAULT_INSTANCE;
2519 }
2520
2521 }
2522
2523 private int bitField0_;
2524 public static final int GTUPOS_FIELD_NUMBER = 1;
2525 private java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> gtuPos_;
2526
2527
2528
2529 public java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> getGtuPosList() {
2530 return gtuPos_;
2531 }
2532
2533
2534
2535 public java.util.List<? extends org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder>
2536 getGtuPosOrBuilderList() {
2537 return gtuPos_;
2538 }
2539
2540
2541
2542 public int getGtuPosCount() {
2543 return gtuPos_.size();
2544 }
2545
2546
2547
2548 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getGtuPos(int index) {
2549 return gtuPos_.get(index);
2550 }
2551
2552
2553
2554 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder getGtuPosOrBuilder(
2555 int index) {
2556 return gtuPos_.get(index);
2557 }
2558
2559 public static final int STATUS_FIELD_NUMBER = 2;
2560 private volatile java.lang.Object status_;
2561
2562
2563
2564 public boolean hasStatus() {
2565 return ((bitField0_ & 0x00000001) == 0x00000001);
2566 }
2567
2568
2569
2570 public java.lang.String getStatus() {
2571 java.lang.Object ref = status_;
2572 if (ref instanceof java.lang.String) {
2573 return (java.lang.String) ref;
2574 } else {
2575 com.google.protobuf.ByteString bs =
2576 (com.google.protobuf.ByteString) ref;
2577 java.lang.String s = bs.toStringUtf8();
2578 if (bs.isValidUtf8()) {
2579 status_ = s;
2580 }
2581 return s;
2582 }
2583 }
2584
2585
2586
2587 public com.google.protobuf.ByteString
2588 getStatusBytes() {
2589 java.lang.Object ref = status_;
2590 if (ref instanceof java.lang.String) {
2591 com.google.protobuf.ByteString b =
2592 com.google.protobuf.ByteString.copyFromUtf8(
2593 (java.lang.String) ref);
2594 status_ = b;
2595 return b;
2596 } else {
2597 return (com.google.protobuf.ByteString) ref;
2598 }
2599 }
2600
2601 private byte memoizedIsInitialized = -1;
2602 public final boolean isInitialized() {
2603 byte isInitialized = memoizedIsInitialized;
2604 if (isInitialized == 1) return true;
2605 if (isInitialized == 0) return false;
2606
2607 if (!hasStatus()) {
2608 memoizedIsInitialized = 0;
2609 return false;
2610 }
2611 for (int i = 0; i < getGtuPosCount(); i++) {
2612 if (!getGtuPos(i).isInitialized()) {
2613 memoizedIsInitialized = 0;
2614 return false;
2615 }
2616 }
2617 memoizedIsInitialized = 1;
2618 return true;
2619 }
2620
2621 public void writeTo(com.google.protobuf.CodedOutputStream output)
2622 throws java.io.IOException {
2623 for (int i = 0; i < gtuPos_.size(); i++) {
2624 output.writeMessage(1, gtuPos_.get(i));
2625 }
2626 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2627 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_);
2628 }
2629 unknownFields.writeTo(output);
2630 }
2631
2632 public int getSerializedSize() {
2633 int size = memoizedSize;
2634 if (size != -1) return size;
2635
2636 size = 0;
2637 for (int i = 0; i < gtuPos_.size(); i++) {
2638 size += com.google.protobuf.CodedOutputStream
2639 .computeMessageSize(1, gtuPos_.get(i));
2640 }
2641 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2642 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_);
2643 }
2644 size += unknownFields.getSerializedSize();
2645 memoizedSize = size;
2646 return size;
2647 }
2648
2649 @java.lang.Override
2650 public boolean equals(final java.lang.Object obj) {
2651 if (obj == this) {
2652 return true;
2653 }
2654 if (!(obj instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions)) {
2655 return super.equals(obj);
2656 }
2657 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions other = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) obj;
2658
2659 boolean result = true;
2660 result = result && getGtuPosList()
2661 .equals(other.getGtuPosList());
2662 result = result && (hasStatus() == other.hasStatus());
2663 if (hasStatus()) {
2664 result = result && getStatus()
2665 .equals(other.getStatus());
2666 }
2667 result = result && unknownFields.equals(other.unknownFields);
2668 return result;
2669 }
2670
2671 @java.lang.Override
2672 public int hashCode() {
2673 if (memoizedHashCode != 0) {
2674 return memoizedHashCode;
2675 }
2676 int hash = 41;
2677 hash = (19 * hash) + getDescriptor().hashCode();
2678 if (getGtuPosCount() > 0) {
2679 hash = (37 * hash) + GTUPOS_FIELD_NUMBER;
2680 hash = (53 * hash) + getGtuPosList().hashCode();
2681 }
2682 if (hasStatus()) {
2683 hash = (37 * hash) + STATUS_FIELD_NUMBER;
2684 hash = (53 * hash) + getStatus().hashCode();
2685 }
2686 hash = (29 * hash) + unknownFields.hashCode();
2687 memoizedHashCode = hash;
2688 return hash;
2689 }
2690
2691 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
2692 java.nio.ByteBuffer data)
2693 throws com.google.protobuf.InvalidProtocolBufferException {
2694 return PARSER.parseFrom(data);
2695 }
2696 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
2697 java.nio.ByteBuffer data,
2698 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2699 throws com.google.protobuf.InvalidProtocolBufferException {
2700 return PARSER.parseFrom(data, extensionRegistry);
2701 }
2702 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
2703 com.google.protobuf.ByteString data)
2704 throws com.google.protobuf.InvalidProtocolBufferException {
2705 return PARSER.parseFrom(data);
2706 }
2707 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
2708 com.google.protobuf.ByteString data,
2709 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2710 throws com.google.protobuf.InvalidProtocolBufferException {
2711 return PARSER.parseFrom(data, extensionRegistry);
2712 }
2713 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(byte[] data)
2714 throws com.google.protobuf.InvalidProtocolBufferException {
2715 return PARSER.parseFrom(data);
2716 }
2717 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
2718 byte[] data,
2719 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2720 throws com.google.protobuf.InvalidProtocolBufferException {
2721 return PARSER.parseFrom(data, extensionRegistry);
2722 }
2723 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(java.io.InputStream input)
2724 throws java.io.IOException {
2725 return com.google.protobuf.GeneratedMessageV3
2726 .parseWithIOException(PARSER, input);
2727 }
2728 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
2729 java.io.InputStream input,
2730 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2731 throws java.io.IOException {
2732 return com.google.protobuf.GeneratedMessageV3
2733 .parseWithIOException(PARSER, input, extensionRegistry);
2734 }
2735 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseDelimitedFrom(java.io.InputStream input)
2736 throws java.io.IOException {
2737 return com.google.protobuf.GeneratedMessageV3
2738 .parseDelimitedWithIOException(PARSER, input);
2739 }
2740 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseDelimitedFrom(
2741 java.io.InputStream input,
2742 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2743 throws java.io.IOException {
2744 return com.google.protobuf.GeneratedMessageV3
2745 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2746 }
2747 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
2748 com.google.protobuf.CodedInputStream input)
2749 throws java.io.IOException {
2750 return com.google.protobuf.GeneratedMessageV3
2751 .parseWithIOException(PARSER, input);
2752 }
2753 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
2754 com.google.protobuf.CodedInputStream input,
2755 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2756 throws java.io.IOException {
2757 return com.google.protobuf.GeneratedMessageV3
2758 .parseWithIOException(PARSER, input, extensionRegistry);
2759 }
2760
2761 public Builder newBuilderForType() { return newBuilder(); }
2762 public static Builder newBuilder() {
2763 return DEFAULT_INSTANCE.toBuilder();
2764 }
2765 public static Builder newBuilder(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions prototype) {
2766 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2767 }
2768 public Builder toBuilder() {
2769 return this == DEFAULT_INSTANCE
2770 ? new Builder() : new Builder().mergeFrom(this);
2771 }
2772
2773 @java.lang.Override
2774 protected Builder newBuilderForType(
2775 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2776 Builder builder = new Builder(parent);
2777 return builder;
2778 }
2779
2780
2781
2782 public static final class Builder extends
2783 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
2784
2785 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder {
2786 public static final com.google.protobuf.Descriptors.Descriptor
2787 getDescriptor() {
2788 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor;
2789 }
2790
2791 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
2792 internalGetFieldAccessorTable() {
2793 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_fieldAccessorTable
2794 .ensureFieldAccessorsInitialized(
2795 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder.class);
2796 }
2797
2798
2799 private Builder() {
2800 maybeForceBuilderInitialization();
2801 }
2802
2803 private Builder(
2804 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2805 super(parent);
2806 maybeForceBuilderInitialization();
2807 }
2808 private void maybeForceBuilderInitialization() {
2809 if (com.google.protobuf.GeneratedMessageV3
2810 .alwaysUseFieldBuilders) {
2811 getGtuPosFieldBuilder();
2812 }
2813 }
2814 public Builder clear() {
2815 super.clear();
2816 if (gtuPosBuilder_ == null) {
2817 gtuPos_ = java.util.Collections.emptyList();
2818 bitField0_ = (bitField0_ & ~0x00000001);
2819 } else {
2820 gtuPosBuilder_.clear();
2821 }
2822 status_ = "";
2823 bitField0_ = (bitField0_ & ~0x00000002);
2824 return this;
2825 }
2826
2827 public com.google.protobuf.Descriptors.Descriptor
2828 getDescriptorForType() {
2829 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor;
2830 }
2831
2832 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getDefaultInstanceForType() {
2833 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
2834 }
2835
2836 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions build() {
2837 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions result = buildPartial();
2838 if (!result.isInitialized()) {
2839 throw newUninitializedMessageException(result);
2840 }
2841 return result;
2842 }
2843
2844 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions buildPartial() {
2845 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions result = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions(this);
2846 int from_bitField0_ = bitField0_;
2847 int to_bitField0_ = 0;
2848 if (gtuPosBuilder_ == null) {
2849 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2850 gtuPos_ = java.util.Collections.unmodifiableList(gtuPos_);
2851 bitField0_ = (bitField0_ & ~0x00000001);
2852 }
2853 result.gtuPos_ = gtuPos_;
2854 } else {
2855 result.gtuPos_ = gtuPosBuilder_.build();
2856 }
2857 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
2858 to_bitField0_ |= 0x00000001;
2859 }
2860 result.status_ = status_;
2861 result.bitField0_ = to_bitField0_;
2862 onBuilt();
2863 return result;
2864 }
2865
2866 public Builder clone() {
2867 return (Builder) super.clone();
2868 }
2869 public Builder setField(
2870 com.google.protobuf.Descriptors.FieldDescriptor field,
2871 java.lang.Object value) {
2872 return (Builder) super.setField(field, value);
2873 }
2874 public Builder clearField(
2875 com.google.protobuf.Descriptors.FieldDescriptor field) {
2876 return (Builder) super.clearField(field);
2877 }
2878 public Builder clearOneof(
2879 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2880 return (Builder) super.clearOneof(oneof);
2881 }
2882 public Builder setRepeatedField(
2883 com.google.protobuf.Descriptors.FieldDescriptor field,
2884 int index, java.lang.Object value) {
2885 return (Builder) super.setRepeatedField(field, index, value);
2886 }
2887 public Builder addRepeatedField(
2888 com.google.protobuf.Descriptors.FieldDescriptor field,
2889 java.lang.Object value) {
2890 return (Builder) super.addRepeatedField(field, value);
2891 }
2892 public Builder mergeFrom(com.google.protobuf.Message other) {
2893 if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) {
2894 return mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions)other);
2895 } else {
2896 super.mergeFrom(other);
2897 return this;
2898 }
2899 }
2900
2901 public Builder mergeFrom(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions other) {
2902 if (other == org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance()) return this;
2903 if (gtuPosBuilder_ == null) {
2904 if (!other.gtuPos_.isEmpty()) {
2905 if (gtuPos_.isEmpty()) {
2906 gtuPos_ = other.gtuPos_;
2907 bitField0_ = (bitField0_ & ~0x00000001);
2908 } else {
2909 ensureGtuPosIsMutable();
2910 gtuPos_.addAll(other.gtuPos_);
2911 }
2912 onChanged();
2913 }
2914 } else {
2915 if (!other.gtuPos_.isEmpty()) {
2916 if (gtuPosBuilder_.isEmpty()) {
2917 gtuPosBuilder_.dispose();
2918 gtuPosBuilder_ = null;
2919 gtuPos_ = other.gtuPos_;
2920 bitField0_ = (bitField0_ & ~0x00000001);
2921 gtuPosBuilder_ =
2922 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
2923 getGtuPosFieldBuilder() : null;
2924 } else {
2925 gtuPosBuilder_.addAllMessages(other.gtuPos_);
2926 }
2927 }
2928 }
2929 if (other.hasStatus()) {
2930 bitField0_ |= 0x00000002;
2931 status_ = other.status_;
2932 onChanged();
2933 }
2934 this.mergeUnknownFields(other.unknownFields);
2935 onChanged();
2936 return this;
2937 }
2938
2939 public final boolean isInitialized() {
2940 if (!hasStatus()) {
2941 return false;
2942 }
2943 for (int i = 0; i < getGtuPosCount(); i++) {
2944 if (!getGtuPos(i).isInitialized()) {
2945 return false;
2946 }
2947 }
2948 return true;
2949 }
2950
2951 public Builder mergeFrom(
2952 com.google.protobuf.CodedInputStream input,
2953 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2954 throws java.io.IOException {
2955 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parsedMessage = null;
2956 try {
2957 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2958 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2959 parsedMessage = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) e.getUnfinishedMessage();
2960 throw e.unwrapIOException();
2961 } finally {
2962 if (parsedMessage != null) {
2963 mergeFrom(parsedMessage);
2964 }
2965 }
2966 return this;
2967 }
2968 private int bitField0_;
2969
2970 private java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> gtuPos_ =
2971 java.util.Collections.emptyList();
2972 private void ensureGtuPosIsMutable() {
2973 if (!((bitField0_ & 0x00000001) == 0x00000001)) {
2974 gtuPos_ = new java.util.ArrayList<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition>(gtuPos_);
2975 bitField0_ |= 0x00000001;
2976 }
2977 }
2978
2979 private com.google.protobuf.RepeatedFieldBuilderV3<
2980 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder> gtuPosBuilder_;
2981
2982
2983
2984
2985 public java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> getGtuPosList() {
2986 if (gtuPosBuilder_ == null) {
2987 return java.util.Collections.unmodifiableList(gtuPos_);
2988 } else {
2989 return gtuPosBuilder_.getMessageList();
2990 }
2991 }
2992
2993
2994
2995 public int getGtuPosCount() {
2996 if (gtuPosBuilder_ == null) {
2997 return gtuPos_.size();
2998 } else {
2999 return gtuPosBuilder_.getCount();
3000 }
3001 }
3002
3003
3004
3005 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getGtuPos(int index) {
3006 if (gtuPosBuilder_ == null) {
3007 return gtuPos_.get(index);
3008 } else {
3009 return gtuPosBuilder_.getMessage(index);
3010 }
3011 }
3012
3013
3014
3015 public Builder setGtuPos(
3016 int index, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition value) {
3017 if (gtuPosBuilder_ == null) {
3018 if (value == null) {
3019 throw new NullPointerException();
3020 }
3021 ensureGtuPosIsMutable();
3022 gtuPos_.set(index, value);
3023 onChanged();
3024 } else {
3025 gtuPosBuilder_.setMessage(index, value);
3026 }
3027 return this;
3028 }
3029
3030
3031
3032 public Builder setGtuPos(
3033 int index, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder builderForValue) {
3034 if (gtuPosBuilder_ == null) {
3035 ensureGtuPosIsMutable();
3036 gtuPos_.set(index, builderForValue.build());
3037 onChanged();
3038 } else {
3039 gtuPosBuilder_.setMessage(index, builderForValue.build());
3040 }
3041 return this;
3042 }
3043
3044
3045
3046 public Builder addGtuPos(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition value) {
3047 if (gtuPosBuilder_ == null) {
3048 if (value == null) {
3049 throw new NullPointerException();
3050 }
3051 ensureGtuPosIsMutable();
3052 gtuPos_.add(value);
3053 onChanged();
3054 } else {
3055 gtuPosBuilder_.addMessage(value);
3056 }
3057 return this;
3058 }
3059
3060
3061
3062 public Builder addGtuPos(
3063 int index, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition value) {
3064 if (gtuPosBuilder_ == null) {
3065 if (value == null) {
3066 throw new NullPointerException();
3067 }
3068 ensureGtuPosIsMutable();
3069 gtuPos_.add(index, value);
3070 onChanged();
3071 } else {
3072 gtuPosBuilder_.addMessage(index, value);
3073 }
3074 return this;
3075 }
3076
3077
3078
3079 public Builder addGtuPos(
3080 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder builderForValue) {
3081 if (gtuPosBuilder_ == null) {
3082 ensureGtuPosIsMutable();
3083 gtuPos_.add(builderForValue.build());
3084 onChanged();
3085 } else {
3086 gtuPosBuilder_.addMessage(builderForValue.build());
3087 }
3088 return this;
3089 }
3090
3091
3092
3093 public Builder addGtuPos(
3094 int index, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder builderForValue) {
3095 if (gtuPosBuilder_ == null) {
3096 ensureGtuPosIsMutable();
3097 gtuPos_.add(index, builderForValue.build());
3098 onChanged();
3099 } else {
3100 gtuPosBuilder_.addMessage(index, builderForValue.build());
3101 }
3102 return this;
3103 }
3104
3105
3106
3107 public Builder addAllGtuPos(
3108 java.lang.Iterable<? extends org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> values) {
3109 if (gtuPosBuilder_ == null) {
3110 ensureGtuPosIsMutable();
3111 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3112 values, gtuPos_);
3113 onChanged();
3114 } else {
3115 gtuPosBuilder_.addAllMessages(values);
3116 }
3117 return this;
3118 }
3119
3120
3121
3122 public Builder clearGtuPos() {
3123 if (gtuPosBuilder_ == null) {
3124 gtuPos_ = java.util.Collections.emptyList();
3125 bitField0_ = (bitField0_ & ~0x00000001);
3126 onChanged();
3127 } else {
3128 gtuPosBuilder_.clear();
3129 }
3130 return this;
3131 }
3132
3133
3134
3135 public Builder removeGtuPos(int index) {
3136 if (gtuPosBuilder_ == null) {
3137 ensureGtuPosIsMutable();
3138 gtuPos_.remove(index);
3139 onChanged();
3140 } else {
3141 gtuPosBuilder_.remove(index);
3142 }
3143 return this;
3144 }
3145
3146
3147
3148 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder getGtuPosBuilder(
3149 int index) {
3150 return getGtuPosFieldBuilder().getBuilder(index);
3151 }
3152
3153
3154
3155 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder getGtuPosOrBuilder(
3156 int index) {
3157 if (gtuPosBuilder_ == null) {
3158 return gtuPos_.get(index); } else {
3159 return gtuPosBuilder_.getMessageOrBuilder(index);
3160 }
3161 }
3162
3163
3164
3165 public java.util.List<? extends org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder>
3166 getGtuPosOrBuilderList() {
3167 if (gtuPosBuilder_ != null) {
3168 return gtuPosBuilder_.getMessageOrBuilderList();
3169 } else {
3170 return java.util.Collections.unmodifiableList(gtuPos_);
3171 }
3172 }
3173
3174
3175
3176 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder addGtuPosBuilder() {
3177 return getGtuPosFieldBuilder().addBuilder(
3178 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.getDefaultInstance());
3179 }
3180
3181
3182
3183 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder addGtuPosBuilder(
3184 int index) {
3185 return getGtuPosFieldBuilder().addBuilder(
3186 index, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.getDefaultInstance());
3187 }
3188
3189
3190
3191 public java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder>
3192 getGtuPosBuilderList() {
3193 return getGtuPosFieldBuilder().getBuilderList();
3194 }
3195 private com.google.protobuf.RepeatedFieldBuilderV3<
3196 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder>
3197 getGtuPosFieldBuilder() {
3198 if (gtuPosBuilder_ == null) {
3199 gtuPosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
3200 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder>(
3201 gtuPos_,
3202 ((bitField0_ & 0x00000001) == 0x00000001),
3203 getParentForChildren(),
3204 isClean());
3205 gtuPos_ = null;
3206 }
3207 return gtuPosBuilder_;
3208 }
3209
3210 private java.lang.Object status_ = "";
3211
3212
3213
3214 public boolean hasStatus() {
3215 return ((bitField0_ & 0x00000002) == 0x00000002);
3216 }
3217
3218
3219
3220 public java.lang.String getStatus() {
3221 java.lang.Object ref = status_;
3222 if (!(ref instanceof java.lang.String)) {
3223 com.google.protobuf.ByteString bs =
3224 (com.google.protobuf.ByteString) ref;
3225 java.lang.String s = bs.toStringUtf8();
3226 if (bs.isValidUtf8()) {
3227 status_ = s;
3228 }
3229 return s;
3230 } else {
3231 return (java.lang.String) ref;
3232 }
3233 }
3234
3235
3236
3237 public com.google.protobuf.ByteString
3238 getStatusBytes() {
3239 java.lang.Object ref = status_;
3240 if (ref instanceof String) {
3241 com.google.protobuf.ByteString b =
3242 com.google.protobuf.ByteString.copyFromUtf8(
3243 (java.lang.String) ref);
3244 status_ = b;
3245 return b;
3246 } else {
3247 return (com.google.protobuf.ByteString) ref;
3248 }
3249 }
3250
3251
3252
3253 public Builder setStatus(
3254 java.lang.String value) {
3255 if (value == null) {
3256 throw new NullPointerException();
3257 }
3258 bitField0_ |= 0x00000002;
3259 status_ = value;
3260 onChanged();
3261 return this;
3262 }
3263
3264
3265
3266 public Builder clearStatus() {
3267 bitField0_ = (bitField0_ & ~0x00000002);
3268 status_ = getDefaultInstance().getStatus();
3269 onChanged();
3270 return this;
3271 }
3272
3273
3274
3275 public Builder setStatusBytes(
3276 com.google.protobuf.ByteString value) {
3277 if (value == null) {
3278 throw new NullPointerException();
3279 }
3280 bitField0_ |= 0x00000002;
3281 status_ = value;
3282 onChanged();
3283 return this;
3284 }
3285 public final Builder setUnknownFields(
3286 final com.google.protobuf.UnknownFieldSet unknownFields) {
3287 return super.setUnknownFields(unknownFields);
3288 }
3289
3290 public final Builder mergeUnknownFields(
3291 final com.google.protobuf.UnknownFieldSet unknownFields) {
3292 return super.mergeUnknownFields(unknownFields);
3293 }
3294
3295
3296
3297 }
3298
3299
3300 private static final org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions DEFAULT_INSTANCE;
3301 static {
3302 DEFAULT_INSTANCE = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions();
3303 }
3304
3305 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getDefaultInstance() {
3306 return DEFAULT_INSTANCE;
3307 }
3308
3309 @java.lang.Deprecated public static final com.google.protobuf.Parser<GTUPositions>
3310 PARSER = new com.google.protobuf.AbstractParser<GTUPositions>() {
3311 public GTUPositions parsePartialFrom(
3312 com.google.protobuf.CodedInputStream input,
3313 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3314 throws com.google.protobuf.InvalidProtocolBufferException {
3315 return new GTUPositions(input, extensionRegistry);
3316 }
3317 };
3318
3319 public static com.google.protobuf.Parser<GTUPositions> parser() {
3320 return PARSER;
3321 }
3322
3323 @java.lang.Override
3324 public com.google.protobuf.Parser<GTUPositions> getParserForType() {
3325 return PARSER;
3326 }
3327
3328 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getDefaultInstanceForType() {
3329 return DEFAULT_INSTANCE;
3330 }
3331
3332 }
3333
3334 public interface OTSMessageOrBuilder extends
3335
3336 com.google.protobuf.MessageOrBuilder {
3337
3338
3339
3340
3341 boolean hasCreateSimulation();
3342
3343
3344
3345 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getCreateSimulation();
3346
3347
3348
3349 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder getCreateSimulationOrBuilder();
3350
3351
3352
3353
3354 boolean hasSimulateUntil();
3355
3356
3357
3358 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getSimulateUntil();
3359
3360
3361
3362 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder getSimulateUntilOrBuilder();
3363
3364
3365
3366
3367 boolean hasGtuPositions();
3368
3369
3370
3371 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getGtuPositions();
3372
3373
3374
3375 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder getGtuPositionsOrBuilder();
3376
3377 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.MsgCase getMsgCase();
3378 }
3379
3380
3381
3382 public static final class OTSMessage extends
3383 com.google.protobuf.GeneratedMessageV3 implements
3384
3385 OTSMessageOrBuilder {
3386 private static final long serialVersionUID = 0L;
3387
3388 private OTSMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
3389 super(builder);
3390 }
3391 private OTSMessage() {
3392 }
3393
3394 @java.lang.Override
3395 public final com.google.protobuf.UnknownFieldSet
3396 getUnknownFields() {
3397 return this.unknownFields;
3398 }
3399 private OTSMessage(
3400 com.google.protobuf.CodedInputStream input,
3401 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3402 throws com.google.protobuf.InvalidProtocolBufferException {
3403 this();
3404 int mutable_bitField0_ = 0;
3405 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3406 com.google.protobuf.UnknownFieldSet.newBuilder();
3407 try {
3408 boolean done = false;
3409 while (!done) {
3410 int tag = input.readTag();
3411 switch (tag) {
3412 case 0:
3413 done = true;
3414 break;
3415 default: {
3416 if (!parseUnknownField(
3417 input, unknownFields, extensionRegistry, tag)) {
3418 done = true;
3419 }
3420 break;
3421 }
3422 case 10: {
3423 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder subBuilder = null;
3424 if (msgCase_ == 1) {
3425 subBuilder = ((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_).toBuilder();
3426 }
3427 msg_ =
3428 input.readMessage(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.PARSER, extensionRegistry);
3429 if (subBuilder != null) {
3430 subBuilder.mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_);
3431 msg_ = subBuilder.buildPartial();
3432 }
3433 msgCase_ = 1;
3434 break;
3435 }
3436 case 18: {
3437 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder subBuilder = null;
3438 if (msgCase_ == 2) {
3439 subBuilder = ((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_).toBuilder();
3440 }
3441 msg_ =
3442 input.readMessage(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.PARSER, extensionRegistry);
3443 if (subBuilder != null) {
3444 subBuilder.mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_);
3445 msg_ = subBuilder.buildPartial();
3446 }
3447 msgCase_ = 2;
3448 break;
3449 }
3450 case 26: {
3451 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder subBuilder = null;
3452 if (msgCase_ == 3) {
3453 subBuilder = ((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_).toBuilder();
3454 }
3455 msg_ =
3456 input.readMessage(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.PARSER, extensionRegistry);
3457 if (subBuilder != null) {
3458 subBuilder.mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_);
3459 msg_ = subBuilder.buildPartial();
3460 }
3461 msgCase_ = 3;
3462 break;
3463 }
3464 }
3465 }
3466 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3467 throw e.setUnfinishedMessage(this);
3468 } catch (java.io.IOException e) {
3469 throw new com.google.protobuf.InvalidProtocolBufferException(
3470 e).setUnfinishedMessage(this);
3471 } finally {
3472 this.unknownFields = unknownFields.build();
3473 makeExtensionsImmutable();
3474 }
3475 }
3476 public static final com.google.protobuf.Descriptors.Descriptor
3477 getDescriptor() {
3478 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor;
3479 }
3480
3481 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
3482 internalGetFieldAccessorTable() {
3483 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_fieldAccessorTable
3484 .ensureFieldAccessorsInitialized(
3485 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.Builder.class);
3486 }
3487
3488 private int bitField0_;
3489 private int msgCase_ = 0;
3490 private java.lang.Object msg_;
3491 public enum MsgCase
3492 implements com.google.protobuf.Internal.EnumLite {
3493 CREATESIMULATION(1),
3494 SIMULATEUNTIL(2),
3495 GTUPOSITIONS(3),
3496 MSG_NOT_SET(0);
3497 private final int value;
3498 private MsgCase(int value) {
3499 this.value = value;
3500 }
3501
3502
3503
3504 @java.lang.Deprecated
3505 public static MsgCase valueOf(int value) {
3506 return forNumber(value);
3507 }
3508
3509 public static MsgCase forNumber(int value) {
3510 switch (value) {
3511 case 1: return CREATESIMULATION;
3512 case 2: return SIMULATEUNTIL;
3513 case 3: return GTUPOSITIONS;
3514 case 0: return MSG_NOT_SET;
3515 default: return null;
3516 }
3517 }
3518 public int getNumber() {
3519 return this.value;
3520 }
3521 };
3522
3523 public MsgCase
3524 getMsgCase() {
3525 return MsgCase.forNumber(
3526 msgCase_);
3527 }
3528
3529 public static final int CREATESIMULATION_FIELD_NUMBER = 1;
3530
3531
3532
3533 public boolean hasCreateSimulation() {
3534 return msgCase_ == 1;
3535 }
3536
3537
3538
3539 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getCreateSimulation() {
3540 if (msgCase_ == 1) {
3541 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_;
3542 }
3543 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
3544 }
3545
3546
3547
3548 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder getCreateSimulationOrBuilder() {
3549 if (msgCase_ == 1) {
3550 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_;
3551 }
3552 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
3553 }
3554
3555 public static final int SIMULATEUNTIL_FIELD_NUMBER = 2;
3556
3557
3558
3559 public boolean hasSimulateUntil() {
3560 return msgCase_ == 2;
3561 }
3562
3563
3564
3565 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getSimulateUntil() {
3566 if (msgCase_ == 2) {
3567 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_;
3568 }
3569 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
3570 }
3571
3572
3573
3574 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder getSimulateUntilOrBuilder() {
3575 if (msgCase_ == 2) {
3576 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_;
3577 }
3578 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
3579 }
3580
3581 public static final int GTUPOSITIONS_FIELD_NUMBER = 3;
3582
3583
3584
3585 public boolean hasGtuPositions() {
3586 return msgCase_ == 3;
3587 }
3588
3589
3590
3591 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getGtuPositions() {
3592 if (msgCase_ == 3) {
3593 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_;
3594 }
3595 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
3596 }
3597
3598
3599
3600 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder getGtuPositionsOrBuilder() {
3601 if (msgCase_ == 3) {
3602 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_;
3603 }
3604 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
3605 }
3606
3607 private byte memoizedIsInitialized = -1;
3608 public final boolean isInitialized() {
3609 byte isInitialized = memoizedIsInitialized;
3610 if (isInitialized == 1) return true;
3611 if (isInitialized == 0) return false;
3612
3613 if (hasCreateSimulation()) {
3614 if (!getCreateSimulation().isInitialized()) {
3615 memoizedIsInitialized = 0;
3616 return false;
3617 }
3618 }
3619 if (hasSimulateUntil()) {
3620 if (!getSimulateUntil().isInitialized()) {
3621 memoizedIsInitialized = 0;
3622 return false;
3623 }
3624 }
3625 if (hasGtuPositions()) {
3626 if (!getGtuPositions().isInitialized()) {
3627 memoizedIsInitialized = 0;
3628 return false;
3629 }
3630 }
3631 memoizedIsInitialized = 1;
3632 return true;
3633 }
3634
3635 public void writeTo(com.google.protobuf.CodedOutputStream output)
3636 throws java.io.IOException {
3637 if (msgCase_ == 1) {
3638 output.writeMessage(1, (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_);
3639 }
3640 if (msgCase_ == 2) {
3641 output.writeMessage(2, (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_);
3642 }
3643 if (msgCase_ == 3) {
3644 output.writeMessage(3, (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_);
3645 }
3646 unknownFields.writeTo(output);
3647 }
3648
3649 public int getSerializedSize() {
3650 int size = memoizedSize;
3651 if (size != -1) return size;
3652
3653 size = 0;
3654 if (msgCase_ == 1) {
3655 size += com.google.protobuf.CodedOutputStream
3656 .computeMessageSize(1, (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_);
3657 }
3658 if (msgCase_ == 2) {
3659 size += com.google.protobuf.CodedOutputStream
3660 .computeMessageSize(2, (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_);
3661 }
3662 if (msgCase_ == 3) {
3663 size += com.google.protobuf.CodedOutputStream
3664 .computeMessageSize(3, (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_);
3665 }
3666 size += unknownFields.getSerializedSize();
3667 memoizedSize = size;
3668 return size;
3669 }
3670
3671 @java.lang.Override
3672 public boolean equals(final java.lang.Object obj) {
3673 if (obj == this) {
3674 return true;
3675 }
3676 if (!(obj instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage)) {
3677 return super.equals(obj);
3678 }
3679 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage other = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage) obj;
3680
3681 boolean result = true;
3682 result = result && getMsgCase().equals(
3683 other.getMsgCase());
3684 if (!result) return false;
3685 switch (msgCase_) {
3686 case 1:
3687 result = result && getCreateSimulation()
3688 .equals(other.getCreateSimulation());
3689 break;
3690 case 2:
3691 result = result && getSimulateUntil()
3692 .equals(other.getSimulateUntil());
3693 break;
3694 case 3:
3695 result = result && getGtuPositions()
3696 .equals(other.getGtuPositions());
3697 break;
3698 case 0:
3699 default:
3700 }
3701 result = result && unknownFields.equals(other.unknownFields);
3702 return result;
3703 }
3704
3705 @java.lang.Override
3706 public int hashCode() {
3707 if (memoizedHashCode != 0) {
3708 return memoizedHashCode;
3709 }
3710 int hash = 41;
3711 hash = (19 * hash) + getDescriptor().hashCode();
3712 switch (msgCase_) {
3713 case 1:
3714 hash = (37 * hash) + CREATESIMULATION_FIELD_NUMBER;
3715 hash = (53 * hash) + getCreateSimulation().hashCode();
3716 break;
3717 case 2:
3718 hash = (37 * hash) + SIMULATEUNTIL_FIELD_NUMBER;
3719 hash = (53 * hash) + getSimulateUntil().hashCode();
3720 break;
3721 case 3:
3722 hash = (37 * hash) + GTUPOSITIONS_FIELD_NUMBER;
3723 hash = (53 * hash) + getGtuPositions().hashCode();
3724 break;
3725 case 0:
3726 default:
3727 }
3728 hash = (29 * hash) + unknownFields.hashCode();
3729 memoizedHashCode = hash;
3730 return hash;
3731 }
3732
3733 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
3734 java.nio.ByteBuffer data)
3735 throws com.google.protobuf.InvalidProtocolBufferException {
3736 return PARSER.parseFrom(data);
3737 }
3738 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
3739 java.nio.ByteBuffer data,
3740 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3741 throws com.google.protobuf.InvalidProtocolBufferException {
3742 return PARSER.parseFrom(data, extensionRegistry);
3743 }
3744 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
3745 com.google.protobuf.ByteString data)
3746 throws com.google.protobuf.InvalidProtocolBufferException {
3747 return PARSER.parseFrom(data);
3748 }
3749 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
3750 com.google.protobuf.ByteString data,
3751 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3752 throws com.google.protobuf.InvalidProtocolBufferException {
3753 return PARSER.parseFrom(data, extensionRegistry);
3754 }
3755 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(byte[] data)
3756 throws com.google.protobuf.InvalidProtocolBufferException {
3757 return PARSER.parseFrom(data);
3758 }
3759 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
3760 byte[] data,
3761 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3762 throws com.google.protobuf.InvalidProtocolBufferException {
3763 return PARSER.parseFrom(data, extensionRegistry);
3764 }
3765 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(java.io.InputStream input)
3766 throws java.io.IOException {
3767 return com.google.protobuf.GeneratedMessageV3
3768 .parseWithIOException(PARSER, input);
3769 }
3770 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
3771 java.io.InputStream input,
3772 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3773 throws java.io.IOException {
3774 return com.google.protobuf.GeneratedMessageV3
3775 .parseWithIOException(PARSER, input, extensionRegistry);
3776 }
3777 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseDelimitedFrom(java.io.InputStream input)
3778 throws java.io.IOException {
3779 return com.google.protobuf.GeneratedMessageV3
3780 .parseDelimitedWithIOException(PARSER, input);
3781 }
3782 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseDelimitedFrom(
3783 java.io.InputStream input,
3784 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3785 throws java.io.IOException {
3786 return com.google.protobuf.GeneratedMessageV3
3787 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
3788 }
3789 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
3790 com.google.protobuf.CodedInputStream input)
3791 throws java.io.IOException {
3792 return com.google.protobuf.GeneratedMessageV3
3793 .parseWithIOException(PARSER, input);
3794 }
3795 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
3796 com.google.protobuf.CodedInputStream input,
3797 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3798 throws java.io.IOException {
3799 return com.google.protobuf.GeneratedMessageV3
3800 .parseWithIOException(PARSER, input, extensionRegistry);
3801 }
3802
3803 public Builder newBuilderForType() { return newBuilder(); }
3804 public static Builder newBuilder() {
3805 return DEFAULT_INSTANCE.toBuilder();
3806 }
3807 public static Builder newBuilder(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage prototype) {
3808 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
3809 }
3810 public Builder toBuilder() {
3811 return this == DEFAULT_INSTANCE
3812 ? new Builder() : new Builder().mergeFrom(this);
3813 }
3814
3815 @java.lang.Override
3816 protected Builder newBuilderForType(
3817 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3818 Builder builder = new Builder(parent);
3819 return builder;
3820 }
3821
3822
3823
3824 public static final class Builder extends
3825 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
3826
3827 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessageOrBuilder {
3828 public static final com.google.protobuf.Descriptors.Descriptor
3829 getDescriptor() {
3830 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor;
3831 }
3832
3833 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
3834 internalGetFieldAccessorTable() {
3835 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_fieldAccessorTable
3836 .ensureFieldAccessorsInitialized(
3837 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.Builder.class);
3838 }
3839
3840
3841 private Builder() {
3842 maybeForceBuilderInitialization();
3843 }
3844
3845 private Builder(
3846 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3847 super(parent);
3848 maybeForceBuilderInitialization();
3849 }
3850 private void maybeForceBuilderInitialization() {
3851 if (com.google.protobuf.GeneratedMessageV3
3852 .alwaysUseFieldBuilders) {
3853 }
3854 }
3855 public Builder clear() {
3856 super.clear();
3857 msgCase_ = 0;
3858 msg_ = null;
3859 return this;
3860 }
3861
3862 public com.google.protobuf.Descriptors.Descriptor
3863 getDescriptorForType() {
3864 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor;
3865 }
3866
3867 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage getDefaultInstanceForType() {
3868 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.getDefaultInstance();
3869 }
3870
3871 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage build() {
3872 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage result = buildPartial();
3873 if (!result.isInitialized()) {
3874 throw newUninitializedMessageException(result);
3875 }
3876 return result;
3877 }
3878
3879 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage buildPartial() {
3880 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage result = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage(this);
3881 int from_bitField0_ = bitField0_;
3882 int to_bitField0_ = 0;
3883 if (msgCase_ == 1) {
3884 if (createSimulationBuilder_ == null) {
3885 result.msg_ = msg_;
3886 } else {
3887 result.msg_ = createSimulationBuilder_.build();
3888 }
3889 }
3890 if (msgCase_ == 2) {
3891 if (simulateUntilBuilder_ == null) {
3892 result.msg_ = msg_;
3893 } else {
3894 result.msg_ = simulateUntilBuilder_.build();
3895 }
3896 }
3897 if (msgCase_ == 3) {
3898 if (gtuPositionsBuilder_ == null) {
3899 result.msg_ = msg_;
3900 } else {
3901 result.msg_ = gtuPositionsBuilder_.build();
3902 }
3903 }
3904 result.bitField0_ = to_bitField0_;
3905 result.msgCase_ = msgCase_;
3906 onBuilt();
3907 return result;
3908 }
3909
3910 public Builder clone() {
3911 return (Builder) super.clone();
3912 }
3913 public Builder setField(
3914 com.google.protobuf.Descriptors.FieldDescriptor field,
3915 java.lang.Object value) {
3916 return (Builder) super.setField(field, value);
3917 }
3918 public Builder clearField(
3919 com.google.protobuf.Descriptors.FieldDescriptor field) {
3920 return (Builder) super.clearField(field);
3921 }
3922 public Builder clearOneof(
3923 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
3924 return (Builder) super.clearOneof(oneof);
3925 }
3926 public Builder setRepeatedField(
3927 com.google.protobuf.Descriptors.FieldDescriptor field,
3928 int index, java.lang.Object value) {
3929 return (Builder) super.setRepeatedField(field, index, value);
3930 }
3931 public Builder addRepeatedField(
3932 com.google.protobuf.Descriptors.FieldDescriptor field,
3933 java.lang.Object value) {
3934 return (Builder) super.addRepeatedField(field, value);
3935 }
3936 public Builder mergeFrom(com.google.protobuf.Message other) {
3937 if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage) {
3938 return mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage)other);
3939 } else {
3940 super.mergeFrom(other);
3941 return this;
3942 }
3943 }
3944
3945 public Builder mergeFrom(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage other) {
3946 if (other == org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.getDefaultInstance()) return this;
3947 switch (other.getMsgCase()) {
3948 case CREATESIMULATION: {
3949 mergeCreateSimulation(other.getCreateSimulation());
3950 break;
3951 }
3952 case SIMULATEUNTIL: {
3953 mergeSimulateUntil(other.getSimulateUntil());
3954 break;
3955 }
3956 case GTUPOSITIONS: {
3957 mergeGtuPositions(other.getGtuPositions());
3958 break;
3959 }
3960 case MSG_NOT_SET: {
3961 break;
3962 }
3963 }
3964 this.mergeUnknownFields(other.unknownFields);
3965 onChanged();
3966 return this;
3967 }
3968
3969 public final boolean isInitialized() {
3970 if (hasCreateSimulation()) {
3971 if (!getCreateSimulation().isInitialized()) {
3972 return false;
3973 }
3974 }
3975 if (hasSimulateUntil()) {
3976 if (!getSimulateUntil().isInitialized()) {
3977 return false;
3978 }
3979 }
3980 if (hasGtuPositions()) {
3981 if (!getGtuPositions().isInitialized()) {
3982 return false;
3983 }
3984 }
3985 return true;
3986 }
3987
3988 public Builder mergeFrom(
3989 com.google.protobuf.CodedInputStream input,
3990 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3991 throws java.io.IOException {
3992 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parsedMessage = null;
3993 try {
3994 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
3995 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3996 parsedMessage = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage) e.getUnfinishedMessage();
3997 throw e.unwrapIOException();
3998 } finally {
3999 if (parsedMessage != null) {
4000 mergeFrom(parsedMessage);
4001 }
4002 }
4003 return this;
4004 }
4005 private int msgCase_ = 0;
4006 private java.lang.Object msg_;
4007 public MsgCase
4008 getMsgCase() {
4009 return MsgCase.forNumber(
4010 msgCase_);
4011 }
4012
4013 public Builder clearMsg() {
4014 msgCase_ = 0;
4015 msg_ = null;
4016 onChanged();
4017 return this;
4018 }
4019
4020 private int bitField0_;
4021
4022 private com.google.protobuf.SingleFieldBuilderV3<
4023 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder> createSimulationBuilder_;
4024
4025
4026
4027 public boolean hasCreateSimulation() {
4028 return msgCase_ == 1;
4029 }
4030
4031
4032
4033 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getCreateSimulation() {
4034 if (createSimulationBuilder_ == null) {
4035 if (msgCase_ == 1) {
4036 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_;
4037 }
4038 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
4039 } else {
4040 if (msgCase_ == 1) {
4041 return createSimulationBuilder_.getMessage();
4042 }
4043 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
4044 }
4045 }
4046
4047
4048
4049 public Builder setCreateSimulation(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation value) {
4050 if (createSimulationBuilder_ == null) {
4051 if (value == null) {
4052 throw new NullPointerException();
4053 }
4054 msg_ = value;
4055 onChanged();
4056 } else {
4057 createSimulationBuilder_.setMessage(value);
4058 }
4059 msgCase_ = 1;
4060 return this;
4061 }
4062
4063
4064
4065 public Builder setCreateSimulation(
4066 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder builderForValue) {
4067 if (createSimulationBuilder_ == null) {
4068 msg_ = builderForValue.build();
4069 onChanged();
4070 } else {
4071 createSimulationBuilder_.setMessage(builderForValue.build());
4072 }
4073 msgCase_ = 1;
4074 return this;
4075 }
4076
4077
4078
4079 public Builder mergeCreateSimulation(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation value) {
4080 if (createSimulationBuilder_ == null) {
4081 if (msgCase_ == 1 &&
4082 msg_ != org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance()) {
4083 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.newBuilder((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_)
4084 .mergeFrom(value).buildPartial();
4085 } else {
4086 msg_ = value;
4087 }
4088 onChanged();
4089 } else {
4090 if (msgCase_ == 1) {
4091 createSimulationBuilder_.mergeFrom(value);
4092 }
4093 createSimulationBuilder_.setMessage(value);
4094 }
4095 msgCase_ = 1;
4096 return this;
4097 }
4098
4099
4100
4101 public Builder clearCreateSimulation() {
4102 if (createSimulationBuilder_ == null) {
4103 if (msgCase_ == 1) {
4104 msgCase_ = 0;
4105 msg_ = null;
4106 onChanged();
4107 }
4108 } else {
4109 if (msgCase_ == 1) {
4110 msgCase_ = 0;
4111 msg_ = null;
4112 }
4113 createSimulationBuilder_.clear();
4114 }
4115 return this;
4116 }
4117
4118
4119
4120 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder getCreateSimulationBuilder() {
4121 return getCreateSimulationFieldBuilder().getBuilder();
4122 }
4123
4124
4125
4126 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder getCreateSimulationOrBuilder() {
4127 if ((msgCase_ == 1) && (createSimulationBuilder_ != null)) {
4128 return createSimulationBuilder_.getMessageOrBuilder();
4129 } else {
4130 if (msgCase_ == 1) {
4131 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_;
4132 }
4133 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
4134 }
4135 }
4136
4137
4138
4139 private com.google.protobuf.SingleFieldBuilderV3<
4140 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder>
4141 getCreateSimulationFieldBuilder() {
4142 if (createSimulationBuilder_ == null) {
4143 if (!(msgCase_ == 1)) {
4144 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
4145 }
4146 createSimulationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4147 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder>(
4148 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_,
4149 getParentForChildren(),
4150 isClean());
4151 msg_ = null;
4152 }
4153 msgCase_ = 1;
4154 onChanged();;
4155 return createSimulationBuilder_;
4156 }
4157
4158 private com.google.protobuf.SingleFieldBuilderV3<
4159 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder> simulateUntilBuilder_;
4160
4161
4162
4163 public boolean hasSimulateUntil() {
4164 return msgCase_ == 2;
4165 }
4166
4167
4168
4169 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getSimulateUntil() {
4170 if (simulateUntilBuilder_ == null) {
4171 if (msgCase_ == 2) {
4172 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_;
4173 }
4174 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
4175 } else {
4176 if (msgCase_ == 2) {
4177 return simulateUntilBuilder_.getMessage();
4178 }
4179 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
4180 }
4181 }
4182
4183
4184
4185 public Builder setSimulateUntil(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil value) {
4186 if (simulateUntilBuilder_ == null) {
4187 if (value == null) {
4188 throw new NullPointerException();
4189 }
4190 msg_ = value;
4191 onChanged();
4192 } else {
4193 simulateUntilBuilder_.setMessage(value);
4194 }
4195 msgCase_ = 2;
4196 return this;
4197 }
4198
4199
4200
4201 public Builder setSimulateUntil(
4202 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder builderForValue) {
4203 if (simulateUntilBuilder_ == null) {
4204 msg_ = builderForValue.build();
4205 onChanged();
4206 } else {
4207 simulateUntilBuilder_.setMessage(builderForValue.build());
4208 }
4209 msgCase_ = 2;
4210 return this;
4211 }
4212
4213
4214
4215 public Builder mergeSimulateUntil(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil value) {
4216 if (simulateUntilBuilder_ == null) {
4217 if (msgCase_ == 2 &&
4218 msg_ != org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance()) {
4219 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.newBuilder((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_)
4220 .mergeFrom(value).buildPartial();
4221 } else {
4222 msg_ = value;
4223 }
4224 onChanged();
4225 } else {
4226 if (msgCase_ == 2) {
4227 simulateUntilBuilder_.mergeFrom(value);
4228 }
4229 simulateUntilBuilder_.setMessage(value);
4230 }
4231 msgCase_ = 2;
4232 return this;
4233 }
4234
4235
4236
4237 public Builder clearSimulateUntil() {
4238 if (simulateUntilBuilder_ == null) {
4239 if (msgCase_ == 2) {
4240 msgCase_ = 0;
4241 msg_ = null;
4242 onChanged();
4243 }
4244 } else {
4245 if (msgCase_ == 2) {
4246 msgCase_ = 0;
4247 msg_ = null;
4248 }
4249 simulateUntilBuilder_.clear();
4250 }
4251 return this;
4252 }
4253
4254
4255
4256 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder getSimulateUntilBuilder() {
4257 return getSimulateUntilFieldBuilder().getBuilder();
4258 }
4259
4260
4261
4262 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder getSimulateUntilOrBuilder() {
4263 if ((msgCase_ == 2) && (simulateUntilBuilder_ != null)) {
4264 return simulateUntilBuilder_.getMessageOrBuilder();
4265 } else {
4266 if (msgCase_ == 2) {
4267 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_;
4268 }
4269 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
4270 }
4271 }
4272
4273
4274
4275 private com.google.protobuf.SingleFieldBuilderV3<
4276 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder>
4277 getSimulateUntilFieldBuilder() {
4278 if (simulateUntilBuilder_ == null) {
4279 if (!(msgCase_ == 2)) {
4280 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
4281 }
4282 simulateUntilBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4283 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder>(
4284 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_,
4285 getParentForChildren(),
4286 isClean());
4287 msg_ = null;
4288 }
4289 msgCase_ = 2;
4290 onChanged();;
4291 return simulateUntilBuilder_;
4292 }
4293
4294 private com.google.protobuf.SingleFieldBuilderV3<
4295 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder> gtuPositionsBuilder_;
4296
4297
4298
4299 public boolean hasGtuPositions() {
4300 return msgCase_ == 3;
4301 }
4302
4303
4304
4305 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getGtuPositions() {
4306 if (gtuPositionsBuilder_ == null) {
4307 if (msgCase_ == 3) {
4308 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_;
4309 }
4310 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
4311 } else {
4312 if (msgCase_ == 3) {
4313 return gtuPositionsBuilder_.getMessage();
4314 }
4315 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
4316 }
4317 }
4318
4319
4320
4321 public Builder setGtuPositions(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions value) {
4322 if (gtuPositionsBuilder_ == null) {
4323 if (value == null) {
4324 throw new NullPointerException();
4325 }
4326 msg_ = value;
4327 onChanged();
4328 } else {
4329 gtuPositionsBuilder_.setMessage(value);
4330 }
4331 msgCase_ = 3;
4332 return this;
4333 }
4334
4335
4336
4337 public Builder setGtuPositions(
4338 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder builderForValue) {
4339 if (gtuPositionsBuilder_ == null) {
4340 msg_ = builderForValue.build();
4341 onChanged();
4342 } else {
4343 gtuPositionsBuilder_.setMessage(builderForValue.build());
4344 }
4345 msgCase_ = 3;
4346 return this;
4347 }
4348
4349
4350
4351 public Builder mergeGtuPositions(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions value) {
4352 if (gtuPositionsBuilder_ == null) {
4353 if (msgCase_ == 3 &&
4354 msg_ != org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance()) {
4355 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.newBuilder((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_)
4356 .mergeFrom(value).buildPartial();
4357 } else {
4358 msg_ = value;
4359 }
4360 onChanged();
4361 } else {
4362 if (msgCase_ == 3) {
4363 gtuPositionsBuilder_.mergeFrom(value);
4364 }
4365 gtuPositionsBuilder_.setMessage(value);
4366 }
4367 msgCase_ = 3;
4368 return this;
4369 }
4370
4371
4372
4373 public Builder clearGtuPositions() {
4374 if (gtuPositionsBuilder_ == null) {
4375 if (msgCase_ == 3) {
4376 msgCase_ = 0;
4377 msg_ = null;
4378 onChanged();
4379 }
4380 } else {
4381 if (msgCase_ == 3) {
4382 msgCase_ = 0;
4383 msg_ = null;
4384 }
4385 gtuPositionsBuilder_.clear();
4386 }
4387 return this;
4388 }
4389
4390
4391
4392 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder getGtuPositionsBuilder() {
4393 return getGtuPositionsFieldBuilder().getBuilder();
4394 }
4395
4396
4397
4398 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder getGtuPositionsOrBuilder() {
4399 if ((msgCase_ == 3) && (gtuPositionsBuilder_ != null)) {
4400 return gtuPositionsBuilder_.getMessageOrBuilder();
4401 } else {
4402 if (msgCase_ == 3) {
4403 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_;
4404 }
4405 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
4406 }
4407 }
4408
4409
4410
4411 private com.google.protobuf.SingleFieldBuilderV3<
4412 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder>
4413 getGtuPositionsFieldBuilder() {
4414 if (gtuPositionsBuilder_ == null) {
4415 if (!(msgCase_ == 3)) {
4416 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
4417 }
4418 gtuPositionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4419 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder>(
4420 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_,
4421 getParentForChildren(),
4422 isClean());
4423 msg_ = null;
4424 }
4425 msgCase_ = 3;
4426 onChanged();;
4427 return gtuPositionsBuilder_;
4428 }
4429 public final Builder setUnknownFields(
4430 final com.google.protobuf.UnknownFieldSet unknownFields) {
4431 return super.setUnknownFields(unknownFields);
4432 }
4433
4434 public final Builder mergeUnknownFields(
4435 final com.google.protobuf.UnknownFieldSet unknownFields) {
4436 return super.mergeUnknownFields(unknownFields);
4437 }
4438
4439
4440
4441 }
4442
4443
4444 private static final org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage DEFAULT_INSTANCE;
4445 static {
4446 DEFAULT_INSTANCE = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage();
4447 }
4448
4449 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage getDefaultInstance() {
4450 return DEFAULT_INSTANCE;
4451 }
4452
4453 @java.lang.Deprecated public static final com.google.protobuf.Parser<OTSMessage>
4454 PARSER = new com.google.protobuf.AbstractParser<OTSMessage>() {
4455 public OTSMessage parsePartialFrom(
4456 com.google.protobuf.CodedInputStream input,
4457 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4458 throws com.google.protobuf.InvalidProtocolBufferException {
4459 return new OTSMessage(input, extensionRegistry);
4460 }
4461 };
4462
4463 public static com.google.protobuf.Parser<OTSMessage> parser() {
4464 return PARSER;
4465 }
4466
4467 @java.lang.Override
4468 public com.google.protobuf.Parser<OTSMessage> getParserForType() {
4469 return PARSER;
4470 }
4471
4472 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage getDefaultInstanceForType() {
4473 return DEFAULT_INSTANCE;
4474 }
4475
4476 }
4477
4478 private static final com.google.protobuf.Descriptors.Descriptor
4479 internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor;
4480 private static final
4481 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
4482 internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_fieldAccessorTable;
4483 private static final com.google.protobuf.Descriptors.Descriptor
4484 internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor;
4485 private static final
4486 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
4487 internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_fieldAccessorTable;
4488 private static final com.google.protobuf.Descriptors.Descriptor
4489 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor;
4490 private static final
4491 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
4492 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_fieldAccessorTable;
4493 private static final com.google.protobuf.Descriptors.Descriptor
4494 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor;
4495 private static final
4496 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
4497 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_fieldAccessorTable;
4498 private static final com.google.protobuf.Descriptors.Descriptor
4499 internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor;
4500 private static final
4501 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
4502 internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_fieldAccessorTable;
4503
4504 public static com.google.protobuf.Descriptors.FileDescriptor
4505 getDescriptor() {
4506 return descriptor;
4507 }
4508 private static com.google.protobuf.Descriptors.FileDescriptor
4509 descriptor;
4510 static {
4511 java.lang.String[] descriptorData = {
4512 "\n\020ots-aimsun.proto\022\037org.opentrafficsim.a" +
4513 "imsun.proto\"&\n\020CreateSimulation\022\022\n\nnetwo" +
4514 "rkXML\030\003 \002(\t\"\035\n\rSimulateUntil\022\014\n\004time\030\001 \002" +
4515 "(\001\"\371\001\n\014GTUPositions\022I\n\006gtuPos\030\001 \003(\01329.or" +
4516 "g.opentrafficsim.aimsun.proto.GTUPositio" +
4517 "ns.GTUPosition\022\016\n\006status\030\002 \002(\t\032\215\001\n\013GTUPo" +
4518 "sition\022\r\n\005gtuId\030\001 \002(\t\022\t\n\001x\030\002 \002(\001\022\t\n\001y\030\003 " +
4519 "\002(\001\022\t\n\001z\030\004 \001(\001\022\r\n\005angle\030\005 \002(\001\022\r\n\005width\030\006" +
4520 " \002(\001\022\016\n\006length\030\007 \002(\001\022\021\n\tgtuTypeId\030\010 \002(\005\022" +
4521 "\r\n\005speed\030\t \002(\001\"\362\001\n\nOTSMessage\022M\n\020createS",
4522 "imulation\030\001 \001(\01321.org.opentrafficsim.aim" +
4523 "sun.proto.CreateSimulationH\000\022G\n\rsimulate" +
4524 "Until\030\002 \001(\0132..org.opentrafficsim.aimsun." +
4525 "proto.SimulateUntilH\000\022E\n\014gtuPositions\030\003 " +
4526 "\001(\0132-.org.opentrafficsim.aimsun.proto.GT" +
4527 "UPositionsH\000B\005\n\003msgB\027B\025AimsunControlProt" +
4528 "oBuf"
4529 };
4530 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
4531 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
4532 public com.google.protobuf.ExtensionRegistry assignDescriptors(
4533 com.google.protobuf.Descriptors.FileDescriptor root) {
4534 descriptor = root;
4535 return null;
4536 }
4537 };
4538 com.google.protobuf.Descriptors.FileDescriptor
4539 .internalBuildGeneratedFileFrom(descriptorData,
4540 new com.google.protobuf.Descriptors.FileDescriptor[] {
4541 }, assigner);
4542 internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor =
4543 getDescriptor().getMessageTypes().get(0);
4544 internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_fieldAccessorTable = new
4545 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
4546 internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor,
4547 new java.lang.String[] { "NetworkXML", });
4548 internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor =
4549 getDescriptor().getMessageTypes().get(1);
4550 internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_fieldAccessorTable = new
4551 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
4552 internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor,
4553 new java.lang.String[] { "Time", });
4554 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor =
4555 getDescriptor().getMessageTypes().get(2);
4556 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_fieldAccessorTable = new
4557 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
4558 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor,
4559 new java.lang.String[] { "GtuPos", "Status", });
4560 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor =
4561 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor.getNestedTypes().get(0);
4562 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_fieldAccessorTable = new
4563 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
4564 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor,
4565 new java.lang.String[] { "GtuId", "X", "Y", "Z", "Angle", "Width", "Length", "GtuTypeId", "Speed", });
4566 internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor =
4567 getDescriptor().getMessageTypes().get(3);
4568 internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_fieldAccessorTable = new
4569 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
4570 internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor,
4571 new java.lang.String[] { "CreateSimulation", "SimulateUntil", "GtuPositions", "Msg", });
4572 }
4573
4574
4575 }