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.ExtensionRegistry registry) {
10 }
11 public interface CreateSimulationOrBuilder extends
12
13 com.google.protobuf.MessageOrBuilder {
14
15
16
17
18 boolean hasRunTime();
19
20
21
22 double getRunTime();
23
24
25
26
27 boolean hasWarmUpTime();
28
29
30
31 double getWarmUpTime();
32
33
34
35
36 boolean hasNetworkXML();
37
38
39
40 java.lang.String getNetworkXML();
41
42
43
44 com.google.protobuf.ByteString
45 getNetworkXMLBytes();
46 }
47
48
49
50 public static final class CreateSimulation extends
51 com.google.protobuf.GeneratedMessage implements
52
53 CreateSimulationOrBuilder {
54
55 private CreateSimulation(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
56 super(builder);
57 this.unknownFields = builder.getUnknownFields();
58 }
59 private CreateSimulation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
60
61 private static final CreateSimulation defaultInstance;
62 public static CreateSimulation getDefaultInstance() {
63 return defaultInstance;
64 }
65
66 public CreateSimulation getDefaultInstanceForType() {
67 return defaultInstance;
68 }
69
70 private final com.google.protobuf.UnknownFieldSet unknownFields;
71 @java.lang.Override
72 public final com.google.protobuf.UnknownFieldSet
73 getUnknownFields() {
74 return this.unknownFields;
75 }
76 private CreateSimulation(
77 com.google.protobuf.CodedInputStream input,
78 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
79 throws com.google.protobuf.InvalidProtocolBufferException {
80 initFields();
81 int mutable_bitField0_ = 0;
82 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
83 com.google.protobuf.UnknownFieldSet.newBuilder();
84 try {
85 boolean done = false;
86 while (!done) {
87 int tag = input.readTag();
88 switch (tag) {
89 case 0:
90 done = true;
91 break;
92 default: {
93 if (!parseUnknownField(input, unknownFields,
94 extensionRegistry, tag)) {
95 done = true;
96 }
97 break;
98 }
99 case 9: {
100 bitField0_ |= 0x00000001;
101 runTime_ = input.readDouble();
102 break;
103 }
104 case 17: {
105 bitField0_ |= 0x00000002;
106 warmUpTime_ = input.readDouble();
107 break;
108 }
109 case 26: {
110 com.google.protobuf.ByteString bs = input.readBytes();
111 bitField0_ |= 0x00000004;
112 networkXML_ = bs;
113 break;
114 }
115 }
116 }
117 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
118 throw e.setUnfinishedMessage(this);
119 } catch (java.io.IOException e) {
120 throw new com.google.protobuf.InvalidProtocolBufferException(
121 e.getMessage()).setUnfinishedMessage(this);
122 } finally {
123 this.unknownFields = unknownFields.build();
124 makeExtensionsImmutable();
125 }
126 }
127 public static final com.google.protobuf.Descriptors.Descriptor
128 getDescriptor() {
129 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor;
130 }
131
132 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
133 internalGetFieldAccessorTable() {
134 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_fieldAccessorTable
135 .ensureFieldAccessorsInitialized(
136 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder.class);
137 }
138
139 public static com.google.protobuf.Parser<CreateSimulation> PARSER =
140 new com.google.protobuf.AbstractParser<CreateSimulation>() {
141 public CreateSimulation parsePartialFrom(
142 com.google.protobuf.CodedInputStream input,
143 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
144 throws com.google.protobuf.InvalidProtocolBufferException {
145 return new CreateSimulation(input, extensionRegistry);
146 }
147 };
148
149 @java.lang.Override
150 public com.google.protobuf.Parser<CreateSimulation> getParserForType() {
151 return PARSER;
152 }
153
154 private int bitField0_;
155 public static final int RUNTIME_FIELD_NUMBER = 1;
156 private double runTime_;
157
158
159
160 public boolean hasRunTime() {
161 return ((bitField0_ & 0x00000001) == 0x00000001);
162 }
163
164
165
166 public double getRunTime() {
167 return runTime_;
168 }
169
170 public static final int WARMUPTIME_FIELD_NUMBER = 2;
171 private double warmUpTime_;
172
173
174
175 public boolean hasWarmUpTime() {
176 return ((bitField0_ & 0x00000002) == 0x00000002);
177 }
178
179
180
181 public double getWarmUpTime() {
182 return warmUpTime_;
183 }
184
185 public static final int NETWORKXML_FIELD_NUMBER = 3;
186 private java.lang.Object networkXML_;
187
188
189
190 public boolean hasNetworkXML() {
191 return ((bitField0_ & 0x00000004) == 0x00000004);
192 }
193
194
195
196 public java.lang.String getNetworkXML() {
197 java.lang.Object ref = networkXML_;
198 if (ref instanceof java.lang.String) {
199 return (java.lang.String) ref;
200 } else {
201 com.google.protobuf.ByteString bs =
202 (com.google.protobuf.ByteString) ref;
203 java.lang.String s = bs.toStringUtf8();
204 if (bs.isValidUtf8()) {
205 networkXML_ = s;
206 }
207 return s;
208 }
209 }
210
211
212
213 public com.google.protobuf.ByteString
214 getNetworkXMLBytes() {
215 java.lang.Object ref = networkXML_;
216 if (ref instanceof java.lang.String) {
217 com.google.protobuf.ByteString b =
218 com.google.protobuf.ByteString.copyFromUtf8(
219 (java.lang.String) ref);
220 networkXML_ = b;
221 return b;
222 } else {
223 return (com.google.protobuf.ByteString) ref;
224 }
225 }
226
227 private void initFields() {
228 runTime_ = 0D;
229 warmUpTime_ = 0D;
230 networkXML_ = "";
231 }
232 private byte memoizedIsInitialized = -1;
233 public final boolean isInitialized() {
234 byte isInitialized = memoizedIsInitialized;
235 if (isInitialized == 1) return true;
236 if (isInitialized == 0) return false;
237
238 if (!hasRunTime()) {
239 memoizedIsInitialized = 0;
240 return false;
241 }
242 if (!hasWarmUpTime()) {
243 memoizedIsInitialized = 0;
244 return false;
245 }
246 memoizedIsInitialized = 1;
247 return true;
248 }
249
250 public void writeTo(com.google.protobuf.CodedOutputStream output)
251 throws java.io.IOException {
252 getSerializedSize();
253 if (((bitField0_ & 0x00000001) == 0x00000001)) {
254 output.writeDouble(1, runTime_);
255 }
256 if (((bitField0_ & 0x00000002) == 0x00000002)) {
257 output.writeDouble(2, warmUpTime_);
258 }
259 if (((bitField0_ & 0x00000004) == 0x00000004)) {
260 output.writeBytes(3, getNetworkXMLBytes());
261 }
262 getUnknownFields().writeTo(output);
263 }
264
265 private int memoizedSerializedSize = -1;
266 public int getSerializedSize() {
267 int size = memoizedSerializedSize;
268 if (size != -1) return size;
269
270 size = 0;
271 if (((bitField0_ & 0x00000001) == 0x00000001)) {
272 size += com.google.protobuf.CodedOutputStream
273 .computeDoubleSize(1, runTime_);
274 }
275 if (((bitField0_ & 0x00000002) == 0x00000002)) {
276 size += com.google.protobuf.CodedOutputStream
277 .computeDoubleSize(2, warmUpTime_);
278 }
279 if (((bitField0_ & 0x00000004) == 0x00000004)) {
280 size += com.google.protobuf.CodedOutputStream
281 .computeBytesSize(3, getNetworkXMLBytes());
282 }
283 size += getUnknownFields().getSerializedSize();
284 memoizedSerializedSize = size;
285 return size;
286 }
287
288 private static final long serialVersionUID = 0L;
289 @java.lang.Override
290 protected java.lang.Object writeReplace()
291 throws java.io.ObjectStreamException {
292 return super.writeReplace();
293 }
294
295 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
296 com.google.protobuf.ByteString data)
297 throws com.google.protobuf.InvalidProtocolBufferException {
298 return PARSER.parseFrom(data);
299 }
300 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
301 com.google.protobuf.ByteString data,
302 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
303 throws com.google.protobuf.InvalidProtocolBufferException {
304 return PARSER.parseFrom(data, extensionRegistry);
305 }
306 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(byte[] data)
307 throws com.google.protobuf.InvalidProtocolBufferException {
308 return PARSER.parseFrom(data);
309 }
310 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
311 byte[] data,
312 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
313 throws com.google.protobuf.InvalidProtocolBufferException {
314 return PARSER.parseFrom(data, extensionRegistry);
315 }
316 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(java.io.InputStream input)
317 throws java.io.IOException {
318 return PARSER.parseFrom(input);
319 }
320 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
321 java.io.InputStream input,
322 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
323 throws java.io.IOException {
324 return PARSER.parseFrom(input, extensionRegistry);
325 }
326 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseDelimitedFrom(java.io.InputStream input)
327 throws java.io.IOException {
328 return PARSER.parseDelimitedFrom(input);
329 }
330 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseDelimitedFrom(
331 java.io.InputStream input,
332 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
333 throws java.io.IOException {
334 return PARSER.parseDelimitedFrom(input, extensionRegistry);
335 }
336 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
337 com.google.protobuf.CodedInputStream input)
338 throws java.io.IOException {
339 return PARSER.parseFrom(input);
340 }
341 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
342 com.google.protobuf.CodedInputStream input,
343 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
344 throws java.io.IOException {
345 return PARSER.parseFrom(input, extensionRegistry);
346 }
347
348 public static Builder newBuilder() { return Builder.create(); }
349 public Builder newBuilderForType() { return newBuilder(); }
350 public static Builder newBuilder(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation prototype) {
351 return newBuilder().mergeFrom(prototype);
352 }
353 public Builder toBuilder() { return newBuilder(this); }
354
355 @java.lang.Override
356 protected Builder newBuilderForType(
357 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
358 Builder builder = new Builder(parent);
359 return builder;
360 }
361
362
363
364 public static final class Builder extends
365 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
366
367 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder {
368 public static final com.google.protobuf.Descriptors.Descriptor
369 getDescriptor() {
370 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor;
371 }
372
373 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
374 internalGetFieldAccessorTable() {
375 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_fieldAccessorTable
376 .ensureFieldAccessorsInitialized(
377 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder.class);
378 }
379
380
381 private Builder() {
382 maybeForceBuilderInitialization();
383 }
384
385 private Builder(
386 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
387 super(parent);
388 maybeForceBuilderInitialization();
389 }
390 private void maybeForceBuilderInitialization() {
391 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
392 }
393 }
394 private static Builder create() {
395 return new Builder();
396 }
397
398 public Builder clear() {
399 super.clear();
400 runTime_ = 0D;
401 bitField0_ = (bitField0_ & ~0x00000001);
402 warmUpTime_ = 0D;
403 bitField0_ = (bitField0_ & ~0x00000002);
404 networkXML_ = "";
405 bitField0_ = (bitField0_ & ~0x00000004);
406 return this;
407 }
408
409 public Builder clone() {
410 return create().mergeFrom(buildPartial());
411 }
412
413 public com.google.protobuf.Descriptors.Descriptor
414 getDescriptorForType() {
415 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor;
416 }
417
418 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getDefaultInstanceForType() {
419 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
420 }
421
422 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation build() {
423 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation result = buildPartial();
424 if (!result.isInitialized()) {
425 throw newUninitializedMessageException(result);
426 }
427 return result;
428 }
429
430 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation buildPartial() {
431 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation result = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation(this);
432 int from_bitField0_ = bitField0_;
433 int to_bitField0_ = 0;
434 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
435 to_bitField0_ |= 0x00000001;
436 }
437 result.runTime_ = runTime_;
438 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
439 to_bitField0_ |= 0x00000002;
440 }
441 result.warmUpTime_ = warmUpTime_;
442 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
443 to_bitField0_ |= 0x00000004;
444 }
445 result.networkXML_ = networkXML_;
446 result.bitField0_ = to_bitField0_;
447 onBuilt();
448 return result;
449 }
450
451 public Builder mergeFrom(com.google.protobuf.Message other) {
452 if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) {
453 return mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation)other);
454 } else {
455 super.mergeFrom(other);
456 return this;
457 }
458 }
459
460 public Builder mergeFrom(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation other) {
461 if (other == org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance()) return this;
462 if (other.hasRunTime()) {
463 setRunTime(other.getRunTime());
464 }
465 if (other.hasWarmUpTime()) {
466 setWarmUpTime(other.getWarmUpTime());
467 }
468 if (other.hasNetworkXML()) {
469 bitField0_ |= 0x00000004;
470 networkXML_ = other.networkXML_;
471 onChanged();
472 }
473 this.mergeUnknownFields(other.getUnknownFields());
474 return this;
475 }
476
477 public final boolean isInitialized() {
478 if (!hasRunTime()) {
479
480 return false;
481 }
482 if (!hasWarmUpTime()) {
483
484 return false;
485 }
486 return true;
487 }
488
489 public Builder mergeFrom(
490 com.google.protobuf.CodedInputStream input,
491 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
492 throws java.io.IOException {
493 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parsedMessage = null;
494 try {
495 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
496 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
497 parsedMessage = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) e.getUnfinishedMessage();
498 throw e;
499 } finally {
500 if (parsedMessage != null) {
501 mergeFrom(parsedMessage);
502 }
503 }
504 return this;
505 }
506 private int bitField0_;
507
508 private double runTime_ ;
509
510
511
512 public boolean hasRunTime() {
513 return ((bitField0_ & 0x00000001) == 0x00000001);
514 }
515
516
517
518 public double getRunTime() {
519 return runTime_;
520 }
521
522
523
524 public Builder setRunTime(double value) {
525 bitField0_ |= 0x00000001;
526 runTime_ = value;
527 onChanged();
528 return this;
529 }
530
531
532
533 public Builder clearRunTime() {
534 bitField0_ = (bitField0_ & ~0x00000001);
535 runTime_ = 0D;
536 onChanged();
537 return this;
538 }
539
540 private double warmUpTime_ ;
541
542
543
544 public boolean hasWarmUpTime() {
545 return ((bitField0_ & 0x00000002) == 0x00000002);
546 }
547
548
549
550 public double getWarmUpTime() {
551 return warmUpTime_;
552 }
553
554
555
556 public Builder setWarmUpTime(double value) {
557 bitField0_ |= 0x00000002;
558 warmUpTime_ = value;
559 onChanged();
560 return this;
561 }
562
563
564
565 public Builder clearWarmUpTime() {
566 bitField0_ = (bitField0_ & ~0x00000002);
567 warmUpTime_ = 0D;
568 onChanged();
569 return this;
570 }
571
572 private java.lang.Object networkXML_ = "";
573
574
575
576 public boolean hasNetworkXML() {
577 return ((bitField0_ & 0x00000004) == 0x00000004);
578 }
579
580
581
582 public java.lang.String getNetworkXML() {
583 java.lang.Object ref = networkXML_;
584 if (!(ref instanceof java.lang.String)) {
585 com.google.protobuf.ByteString bs =
586 (com.google.protobuf.ByteString) ref;
587 java.lang.String s = bs.toStringUtf8();
588 if (bs.isValidUtf8()) {
589 networkXML_ = s;
590 }
591 return s;
592 } else {
593 return (java.lang.String) ref;
594 }
595 }
596
597
598
599 public com.google.protobuf.ByteString
600 getNetworkXMLBytes() {
601 java.lang.Object ref = networkXML_;
602 if (ref instanceof String) {
603 com.google.protobuf.ByteString b =
604 com.google.protobuf.ByteString.copyFromUtf8(
605 (java.lang.String) ref);
606 networkXML_ = b;
607 return b;
608 } else {
609 return (com.google.protobuf.ByteString) ref;
610 }
611 }
612
613
614
615 public Builder setNetworkXML(
616 java.lang.String value) {
617 if (value == null) {
618 throw new NullPointerException();
619 }
620 bitField0_ |= 0x00000004;
621 networkXML_ = value;
622 onChanged();
623 return this;
624 }
625
626
627
628 public Builder clearNetworkXML() {
629 bitField0_ = (bitField0_ & ~0x00000004);
630 networkXML_ = getDefaultInstance().getNetworkXML();
631 onChanged();
632 return this;
633 }
634
635
636
637 public Builder setNetworkXMLBytes(
638 com.google.protobuf.ByteString value) {
639 if (value == null) {
640 throw new NullPointerException();
641 }
642 bitField0_ |= 0x00000004;
643 networkXML_ = value;
644 onChanged();
645 return this;
646 }
647
648
649 }
650
651 static {
652 defaultInstance = new CreateSimulation(true);
653 defaultInstance.initFields();
654 }
655
656
657 }
658
659 public interface SimulateUntilOrBuilder extends
660
661 com.google.protobuf.MessageOrBuilder {
662
663
664
665
666 boolean hasTime();
667
668
669
670 double getTime();
671 }
672
673
674
675 public static final class SimulateUntil extends
676 com.google.protobuf.GeneratedMessage implements
677
678 SimulateUntilOrBuilder {
679
680 private SimulateUntil(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
681 super(builder);
682 this.unknownFields = builder.getUnknownFields();
683 }
684 private SimulateUntil(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
685
686 private static final SimulateUntil defaultInstance;
687 public static SimulateUntil getDefaultInstance() {
688 return defaultInstance;
689 }
690
691 public SimulateUntil getDefaultInstanceForType() {
692 return defaultInstance;
693 }
694
695 private final com.google.protobuf.UnknownFieldSet unknownFields;
696 @java.lang.Override
697 public final com.google.protobuf.UnknownFieldSet
698 getUnknownFields() {
699 return this.unknownFields;
700 }
701 private SimulateUntil(
702 com.google.protobuf.CodedInputStream input,
703 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
704 throws com.google.protobuf.InvalidProtocolBufferException {
705 initFields();
706 int mutable_bitField0_ = 0;
707 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
708 com.google.protobuf.UnknownFieldSet.newBuilder();
709 try {
710 boolean done = false;
711 while (!done) {
712 int tag = input.readTag();
713 switch (tag) {
714 case 0:
715 done = true;
716 break;
717 default: {
718 if (!parseUnknownField(input, unknownFields,
719 extensionRegistry, tag)) {
720 done = true;
721 }
722 break;
723 }
724 case 9: {
725 bitField0_ |= 0x00000001;
726 time_ = input.readDouble();
727 break;
728 }
729 }
730 }
731 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
732 throw e.setUnfinishedMessage(this);
733 } catch (java.io.IOException e) {
734 throw new com.google.protobuf.InvalidProtocolBufferException(
735 e.getMessage()).setUnfinishedMessage(this);
736 } finally {
737 this.unknownFields = unknownFields.build();
738 makeExtensionsImmutable();
739 }
740 }
741 public static final com.google.protobuf.Descriptors.Descriptor
742 getDescriptor() {
743 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor;
744 }
745
746 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
747 internalGetFieldAccessorTable() {
748 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_fieldAccessorTable
749 .ensureFieldAccessorsInitialized(
750 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder.class);
751 }
752
753 public static com.google.protobuf.Parser<SimulateUntil> PARSER =
754 new com.google.protobuf.AbstractParser<SimulateUntil>() {
755 public SimulateUntil parsePartialFrom(
756 com.google.protobuf.CodedInputStream input,
757 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
758 throws com.google.protobuf.InvalidProtocolBufferException {
759 return new SimulateUntil(input, extensionRegistry);
760 }
761 };
762
763 @java.lang.Override
764 public com.google.protobuf.Parser<SimulateUntil> getParserForType() {
765 return PARSER;
766 }
767
768 private int bitField0_;
769 public static final int TIME_FIELD_NUMBER = 1;
770 private double time_;
771
772
773
774 public boolean hasTime() {
775 return ((bitField0_ & 0x00000001) == 0x00000001);
776 }
777
778
779
780 public double getTime() {
781 return time_;
782 }
783
784 private void initFields() {
785 time_ = 0D;
786 }
787 private byte memoizedIsInitialized = -1;
788 public final boolean isInitialized() {
789 byte isInitialized = memoizedIsInitialized;
790 if (isInitialized == 1) return true;
791 if (isInitialized == 0) return false;
792
793 if (!hasTime()) {
794 memoizedIsInitialized = 0;
795 return false;
796 }
797 memoizedIsInitialized = 1;
798 return true;
799 }
800
801 public void writeTo(com.google.protobuf.CodedOutputStream output)
802 throws java.io.IOException {
803 getSerializedSize();
804 if (((bitField0_ & 0x00000001) == 0x00000001)) {
805 output.writeDouble(1, time_);
806 }
807 getUnknownFields().writeTo(output);
808 }
809
810 private int memoizedSerializedSize = -1;
811 public int getSerializedSize() {
812 int size = memoizedSerializedSize;
813 if (size != -1) return size;
814
815 size = 0;
816 if (((bitField0_ & 0x00000001) == 0x00000001)) {
817 size += com.google.protobuf.CodedOutputStream
818 .computeDoubleSize(1, time_);
819 }
820 size += getUnknownFields().getSerializedSize();
821 memoizedSerializedSize = size;
822 return size;
823 }
824
825 private static final long serialVersionUID = 0L;
826 @java.lang.Override
827 protected java.lang.Object writeReplace()
828 throws java.io.ObjectStreamException {
829 return super.writeReplace();
830 }
831
832 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
833 com.google.protobuf.ByteString data)
834 throws com.google.protobuf.InvalidProtocolBufferException {
835 return PARSER.parseFrom(data);
836 }
837 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
838 com.google.protobuf.ByteString data,
839 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
840 throws com.google.protobuf.InvalidProtocolBufferException {
841 return PARSER.parseFrom(data, extensionRegistry);
842 }
843 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(byte[] data)
844 throws com.google.protobuf.InvalidProtocolBufferException {
845 return PARSER.parseFrom(data);
846 }
847 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
848 byte[] data,
849 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
850 throws com.google.protobuf.InvalidProtocolBufferException {
851 return PARSER.parseFrom(data, extensionRegistry);
852 }
853 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(java.io.InputStream input)
854 throws java.io.IOException {
855 return PARSER.parseFrom(input);
856 }
857 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
858 java.io.InputStream input,
859 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
860 throws java.io.IOException {
861 return PARSER.parseFrom(input, extensionRegistry);
862 }
863 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseDelimitedFrom(java.io.InputStream input)
864 throws java.io.IOException {
865 return PARSER.parseDelimitedFrom(input);
866 }
867 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseDelimitedFrom(
868 java.io.InputStream input,
869 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
870 throws java.io.IOException {
871 return PARSER.parseDelimitedFrom(input, extensionRegistry);
872 }
873 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
874 com.google.protobuf.CodedInputStream input)
875 throws java.io.IOException {
876 return PARSER.parseFrom(input);
877 }
878 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
879 com.google.protobuf.CodedInputStream input,
880 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
881 throws java.io.IOException {
882 return PARSER.parseFrom(input, extensionRegistry);
883 }
884
885 public static Builder newBuilder() { return Builder.create(); }
886 public Builder newBuilderForType() { return newBuilder(); }
887 public static Builder newBuilder(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil prototype) {
888 return newBuilder().mergeFrom(prototype);
889 }
890 public Builder toBuilder() { return newBuilder(this); }
891
892 @java.lang.Override
893 protected Builder newBuilderForType(
894 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
895 Builder builder = new Builder(parent);
896 return builder;
897 }
898
899
900
901 public static final class Builder extends
902 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
903
904 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder {
905 public static final com.google.protobuf.Descriptors.Descriptor
906 getDescriptor() {
907 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor;
908 }
909
910 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
911 internalGetFieldAccessorTable() {
912 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_fieldAccessorTable
913 .ensureFieldAccessorsInitialized(
914 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder.class);
915 }
916
917
918 private Builder() {
919 maybeForceBuilderInitialization();
920 }
921
922 private Builder(
923 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
924 super(parent);
925 maybeForceBuilderInitialization();
926 }
927 private void maybeForceBuilderInitialization() {
928 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
929 }
930 }
931 private static Builder create() {
932 return new Builder();
933 }
934
935 public Builder clear() {
936 super.clear();
937 time_ = 0D;
938 bitField0_ = (bitField0_ & ~0x00000001);
939 return this;
940 }
941
942 public Builder clone() {
943 return create().mergeFrom(buildPartial());
944 }
945
946 public com.google.protobuf.Descriptors.Descriptor
947 getDescriptorForType() {
948 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor;
949 }
950
951 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getDefaultInstanceForType() {
952 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
953 }
954
955 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil build() {
956 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil result = buildPartial();
957 if (!result.isInitialized()) {
958 throw newUninitializedMessageException(result);
959 }
960 return result;
961 }
962
963 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil buildPartial() {
964 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil result = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil(this);
965 int from_bitField0_ = bitField0_;
966 int to_bitField0_ = 0;
967 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
968 to_bitField0_ |= 0x00000001;
969 }
970 result.time_ = time_;
971 result.bitField0_ = to_bitField0_;
972 onBuilt();
973 return result;
974 }
975
976 public Builder mergeFrom(com.google.protobuf.Message other) {
977 if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) {
978 return mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil)other);
979 } else {
980 super.mergeFrom(other);
981 return this;
982 }
983 }
984
985 public Builder mergeFrom(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil other) {
986 if (other == org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance()) return this;
987 if (other.hasTime()) {
988 setTime(other.getTime());
989 }
990 this.mergeUnknownFields(other.getUnknownFields());
991 return this;
992 }
993
994 public final boolean isInitialized() {
995 if (!hasTime()) {
996
997 return false;
998 }
999 return true;
1000 }
1001
1002 public Builder mergeFrom(
1003 com.google.protobuf.CodedInputStream input,
1004 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1005 throws java.io.IOException {
1006 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parsedMessage = null;
1007 try {
1008 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1009 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1010 parsedMessage = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) e.getUnfinishedMessage();
1011 throw e;
1012 } finally {
1013 if (parsedMessage != null) {
1014 mergeFrom(parsedMessage);
1015 }
1016 }
1017 return this;
1018 }
1019 private int bitField0_;
1020
1021 private double time_ ;
1022
1023
1024
1025 public boolean hasTime() {
1026 return ((bitField0_ & 0x00000001) == 0x00000001);
1027 }
1028
1029
1030
1031 public double getTime() {
1032 return time_;
1033 }
1034
1035
1036
1037 public Builder setTime(double value) {
1038 bitField0_ |= 0x00000001;
1039 time_ = value;
1040 onChanged();
1041 return this;
1042 }
1043
1044
1045
1046 public Builder clearTime() {
1047 bitField0_ = (bitField0_ & ~0x00000001);
1048 time_ = 0D;
1049 onChanged();
1050 return this;
1051 }
1052
1053
1054 }
1055
1056 static {
1057 defaultInstance = new SimulateUntil(true);
1058 defaultInstance.initFields();
1059 }
1060
1061
1062 }
1063
1064 public interface GTUPositionsOrBuilder extends
1065
1066 com.google.protobuf.MessageOrBuilder {
1067
1068
1069
1070
1071 java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition>
1072 getGtuPosList();
1073
1074
1075
1076 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getGtuPos(int index);
1077
1078
1079
1080 int getGtuPosCount();
1081
1082
1083
1084 java.util.List<? extends org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder>
1085 getGtuPosOrBuilderList();
1086
1087
1088
1089 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder getGtuPosOrBuilder(
1090 int index);
1091 }
1092
1093
1094
1095 public static final class GTUPositions extends
1096 com.google.protobuf.GeneratedMessage implements
1097
1098 GTUPositionsOrBuilder {
1099
1100 private GTUPositions(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
1101 super(builder);
1102 this.unknownFields = builder.getUnknownFields();
1103 }
1104 private GTUPositions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
1105
1106 private static final GTUPositions defaultInstance;
1107 public static GTUPositions getDefaultInstance() {
1108 return defaultInstance;
1109 }
1110
1111 public GTUPositions getDefaultInstanceForType() {
1112 return defaultInstance;
1113 }
1114
1115 private final com.google.protobuf.UnknownFieldSet unknownFields;
1116 @java.lang.Override
1117 public final com.google.protobuf.UnknownFieldSet
1118 getUnknownFields() {
1119 return this.unknownFields;
1120 }
1121 private GTUPositions(
1122 com.google.protobuf.CodedInputStream input,
1123 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1124 throws com.google.protobuf.InvalidProtocolBufferException {
1125 initFields();
1126 int mutable_bitField0_ = 0;
1127 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1128 com.google.protobuf.UnknownFieldSet.newBuilder();
1129 try {
1130 boolean done = false;
1131 while (!done) {
1132 int tag = input.readTag();
1133 switch (tag) {
1134 case 0:
1135 done = true;
1136 break;
1137 default: {
1138 if (!parseUnknownField(input, unknownFields,
1139 extensionRegistry, tag)) {
1140 done = true;
1141 }
1142 break;
1143 }
1144 case 10: {
1145 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
1146 gtuPos_ = new java.util.ArrayList<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition>();
1147 mutable_bitField0_ |= 0x00000001;
1148 }
1149 gtuPos_.add(input.readMessage(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.PARSER, extensionRegistry));
1150 break;
1151 }
1152 }
1153 }
1154 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1155 throw e.setUnfinishedMessage(this);
1156 } catch (java.io.IOException e) {
1157 throw new com.google.protobuf.InvalidProtocolBufferException(
1158 e.getMessage()).setUnfinishedMessage(this);
1159 } finally {
1160 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
1161 gtuPos_ = java.util.Collections.unmodifiableList(gtuPos_);
1162 }
1163 this.unknownFields = unknownFields.build();
1164 makeExtensionsImmutable();
1165 }
1166 }
1167 public static final com.google.protobuf.Descriptors.Descriptor
1168 getDescriptor() {
1169 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor;
1170 }
1171
1172 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1173 internalGetFieldAccessorTable() {
1174 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_fieldAccessorTable
1175 .ensureFieldAccessorsInitialized(
1176 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder.class);
1177 }
1178
1179 public static com.google.protobuf.Parser<GTUPositions> PARSER =
1180 new com.google.protobuf.AbstractParser<GTUPositions>() {
1181 public GTUPositions parsePartialFrom(
1182 com.google.protobuf.CodedInputStream input,
1183 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1184 throws com.google.protobuf.InvalidProtocolBufferException {
1185 return new GTUPositions(input, extensionRegistry);
1186 }
1187 };
1188
1189 @java.lang.Override
1190 public com.google.protobuf.Parser<GTUPositions> getParserForType() {
1191 return PARSER;
1192 }
1193
1194 public interface GTUPositionOrBuilder extends
1195
1196 com.google.protobuf.MessageOrBuilder {
1197
1198
1199
1200
1201 boolean hasGtuId();
1202
1203
1204
1205 java.lang.String getGtuId();
1206
1207
1208
1209 com.google.protobuf.ByteString
1210 getGtuIdBytes();
1211
1212
1213
1214
1215 boolean hasX();
1216
1217
1218
1219 double getX();
1220
1221
1222
1223
1224 boolean hasY();
1225
1226
1227
1228 double getY();
1229
1230
1231
1232
1233 boolean hasZ();
1234
1235
1236
1237 double getZ();
1238
1239
1240
1241
1242 boolean hasAngle();
1243
1244
1245
1246 double getAngle();
1247 }
1248
1249
1250
1251 public static final class GTUPosition extends
1252 com.google.protobuf.GeneratedMessage implements
1253
1254 GTUPositionOrBuilder {
1255
1256 private GTUPosition(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
1257 super(builder);
1258 this.unknownFields = builder.getUnknownFields();
1259 }
1260 private GTUPosition(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
1261
1262 private static final GTUPosition defaultInstance;
1263 public static GTUPosition getDefaultInstance() {
1264 return defaultInstance;
1265 }
1266
1267 public GTUPosition getDefaultInstanceForType() {
1268 return defaultInstance;
1269 }
1270
1271 private final com.google.protobuf.UnknownFieldSet unknownFields;
1272 @java.lang.Override
1273 public final com.google.protobuf.UnknownFieldSet
1274 getUnknownFields() {
1275 return this.unknownFields;
1276 }
1277 private GTUPosition(
1278 com.google.protobuf.CodedInputStream input,
1279 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1280 throws com.google.protobuf.InvalidProtocolBufferException {
1281 initFields();
1282 int mutable_bitField0_ = 0;
1283 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1284 com.google.protobuf.UnknownFieldSet.newBuilder();
1285 try {
1286 boolean done = false;
1287 while (!done) {
1288 int tag = input.readTag();
1289 switch (tag) {
1290 case 0:
1291 done = true;
1292 break;
1293 default: {
1294 if (!parseUnknownField(input, unknownFields,
1295 extensionRegistry, tag)) {
1296 done = true;
1297 }
1298 break;
1299 }
1300 case 10: {
1301 com.google.protobuf.ByteString bs = input.readBytes();
1302 bitField0_ |= 0x00000001;
1303 gtuId_ = bs;
1304 break;
1305 }
1306 case 17: {
1307 bitField0_ |= 0x00000002;
1308 x_ = input.readDouble();
1309 break;
1310 }
1311 case 25: {
1312 bitField0_ |= 0x00000004;
1313 y_ = input.readDouble();
1314 break;
1315 }
1316 case 33: {
1317 bitField0_ |= 0x00000008;
1318 z_ = input.readDouble();
1319 break;
1320 }
1321 case 41: {
1322 bitField0_ |= 0x00000010;
1323 angle_ = input.readDouble();
1324 break;
1325 }
1326 }
1327 }
1328 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1329 throw e.setUnfinishedMessage(this);
1330 } catch (java.io.IOException e) {
1331 throw new com.google.protobuf.InvalidProtocolBufferException(
1332 e.getMessage()).setUnfinishedMessage(this);
1333 } finally {
1334 this.unknownFields = unknownFields.build();
1335 makeExtensionsImmutable();
1336 }
1337 }
1338 public static final com.google.protobuf.Descriptors.Descriptor
1339 getDescriptor() {
1340 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor;
1341 }
1342
1343 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1344 internalGetFieldAccessorTable() {
1345 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_fieldAccessorTable
1346 .ensureFieldAccessorsInitialized(
1347 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder.class);
1348 }
1349
1350 public static com.google.protobuf.Parser<GTUPosition> PARSER =
1351 new com.google.protobuf.AbstractParser<GTUPosition>() {
1352 public GTUPosition parsePartialFrom(
1353 com.google.protobuf.CodedInputStream input,
1354 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1355 throws com.google.protobuf.InvalidProtocolBufferException {
1356 return new GTUPosition(input, extensionRegistry);
1357 }
1358 };
1359
1360 @java.lang.Override
1361 public com.google.protobuf.Parser<GTUPosition> getParserForType() {
1362 return PARSER;
1363 }
1364
1365 private int bitField0_;
1366 public static final int GTUID_FIELD_NUMBER = 1;
1367 private java.lang.Object gtuId_;
1368
1369
1370
1371 public boolean hasGtuId() {
1372 return ((bitField0_ & 0x00000001) == 0x00000001);
1373 }
1374
1375
1376
1377 public java.lang.String getGtuId() {
1378 java.lang.Object ref = gtuId_;
1379 if (ref instanceof java.lang.String) {
1380 return (java.lang.String) ref;
1381 } else {
1382 com.google.protobuf.ByteString bs =
1383 (com.google.protobuf.ByteString) ref;
1384 java.lang.String s = bs.toStringUtf8();
1385 if (bs.isValidUtf8()) {
1386 gtuId_ = s;
1387 }
1388 return s;
1389 }
1390 }
1391
1392
1393
1394 public com.google.protobuf.ByteString
1395 getGtuIdBytes() {
1396 java.lang.Object ref = gtuId_;
1397 if (ref instanceof java.lang.String) {
1398 com.google.protobuf.ByteString b =
1399 com.google.protobuf.ByteString.copyFromUtf8(
1400 (java.lang.String) ref);
1401 gtuId_ = b;
1402 return b;
1403 } else {
1404 return (com.google.protobuf.ByteString) ref;
1405 }
1406 }
1407
1408 public static final int X_FIELD_NUMBER = 2;
1409 private double x_;
1410
1411
1412
1413 public boolean hasX() {
1414 return ((bitField0_ & 0x00000002) == 0x00000002);
1415 }
1416
1417
1418
1419 public double getX() {
1420 return x_;
1421 }
1422
1423 public static final int Y_FIELD_NUMBER = 3;
1424 private double y_;
1425
1426
1427
1428 public boolean hasY() {
1429 return ((bitField0_ & 0x00000004) == 0x00000004);
1430 }
1431
1432
1433
1434 public double getY() {
1435 return y_;
1436 }
1437
1438 public static final int Z_FIELD_NUMBER = 4;
1439 private double z_;
1440
1441
1442
1443 public boolean hasZ() {
1444 return ((bitField0_ & 0x00000008) == 0x00000008);
1445 }
1446
1447
1448
1449 public double getZ() {
1450 return z_;
1451 }
1452
1453 public static final int ANGLE_FIELD_NUMBER = 5;
1454 private double angle_;
1455
1456
1457
1458 public boolean hasAngle() {
1459 return ((bitField0_ & 0x00000010) == 0x00000010);
1460 }
1461
1462
1463
1464 public double getAngle() {
1465 return angle_;
1466 }
1467
1468 private void initFields() {
1469 gtuId_ = "";
1470 x_ = 0D;
1471 y_ = 0D;
1472 z_ = 0D;
1473 angle_ = 0D;
1474 }
1475 private byte memoizedIsInitialized = -1;
1476 public final boolean isInitialized() {
1477 byte isInitialized = memoizedIsInitialized;
1478 if (isInitialized == 1) return true;
1479 if (isInitialized == 0) return false;
1480
1481 if (!hasGtuId()) {
1482 memoizedIsInitialized = 0;
1483 return false;
1484 }
1485 if (!hasX()) {
1486 memoizedIsInitialized = 0;
1487 return false;
1488 }
1489 if (!hasY()) {
1490 memoizedIsInitialized = 0;
1491 return false;
1492 }
1493 if (!hasAngle()) {
1494 memoizedIsInitialized = 0;
1495 return false;
1496 }
1497 memoizedIsInitialized = 1;
1498 return true;
1499 }
1500
1501 public void writeTo(com.google.protobuf.CodedOutputStream output)
1502 throws java.io.IOException {
1503 getSerializedSize();
1504 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1505 output.writeBytes(1, getGtuIdBytes());
1506 }
1507 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1508 output.writeDouble(2, x_);
1509 }
1510 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1511 output.writeDouble(3, y_);
1512 }
1513 if (((bitField0_ & 0x00000008) == 0x00000008)) {
1514 output.writeDouble(4, z_);
1515 }
1516 if (((bitField0_ & 0x00000010) == 0x00000010)) {
1517 output.writeDouble(5, angle_);
1518 }
1519 getUnknownFields().writeTo(output);
1520 }
1521
1522 private int memoizedSerializedSize = -1;
1523 public int getSerializedSize() {
1524 int size = memoizedSerializedSize;
1525 if (size != -1) return size;
1526
1527 size = 0;
1528 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1529 size += com.google.protobuf.CodedOutputStream
1530 .computeBytesSize(1, getGtuIdBytes());
1531 }
1532 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1533 size += com.google.protobuf.CodedOutputStream
1534 .computeDoubleSize(2, x_);
1535 }
1536 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1537 size += com.google.protobuf.CodedOutputStream
1538 .computeDoubleSize(3, y_);
1539 }
1540 if (((bitField0_ & 0x00000008) == 0x00000008)) {
1541 size += com.google.protobuf.CodedOutputStream
1542 .computeDoubleSize(4, z_);
1543 }
1544 if (((bitField0_ & 0x00000010) == 0x00000010)) {
1545 size += com.google.protobuf.CodedOutputStream
1546 .computeDoubleSize(5, angle_);
1547 }
1548 size += getUnknownFields().getSerializedSize();
1549 memoizedSerializedSize = size;
1550 return size;
1551 }
1552
1553 private static final long serialVersionUID = 0L;
1554 @java.lang.Override
1555 protected java.lang.Object writeReplace()
1556 throws java.io.ObjectStreamException {
1557 return super.writeReplace();
1558 }
1559
1560 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
1561 com.google.protobuf.ByteString data)
1562 throws com.google.protobuf.InvalidProtocolBufferException {
1563 return PARSER.parseFrom(data);
1564 }
1565 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
1566 com.google.protobuf.ByteString data,
1567 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1568 throws com.google.protobuf.InvalidProtocolBufferException {
1569 return PARSER.parseFrom(data, extensionRegistry);
1570 }
1571 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(byte[] data)
1572 throws com.google.protobuf.InvalidProtocolBufferException {
1573 return PARSER.parseFrom(data);
1574 }
1575 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
1576 byte[] data,
1577 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1578 throws com.google.protobuf.InvalidProtocolBufferException {
1579 return PARSER.parseFrom(data, extensionRegistry);
1580 }
1581 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(java.io.InputStream input)
1582 throws java.io.IOException {
1583 return PARSER.parseFrom(input);
1584 }
1585 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
1586 java.io.InputStream input,
1587 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1588 throws java.io.IOException {
1589 return PARSER.parseFrom(input, extensionRegistry);
1590 }
1591 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseDelimitedFrom(java.io.InputStream input)
1592 throws java.io.IOException {
1593 return PARSER.parseDelimitedFrom(input);
1594 }
1595 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseDelimitedFrom(
1596 java.io.InputStream input,
1597 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1598 throws java.io.IOException {
1599 return PARSER.parseDelimitedFrom(input, extensionRegistry);
1600 }
1601 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
1602 com.google.protobuf.CodedInputStream input)
1603 throws java.io.IOException {
1604 return PARSER.parseFrom(input);
1605 }
1606 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
1607 com.google.protobuf.CodedInputStream input,
1608 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1609 throws java.io.IOException {
1610 return PARSER.parseFrom(input, extensionRegistry);
1611 }
1612
1613 public static Builder newBuilder() { return Builder.create(); }
1614 public Builder newBuilderForType() { return newBuilder(); }
1615 public static Builder newBuilder(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition prototype) {
1616 return newBuilder().mergeFrom(prototype);
1617 }
1618 public Builder toBuilder() { return newBuilder(this); }
1619
1620 @java.lang.Override
1621 protected Builder newBuilderForType(
1622 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1623 Builder builder = new Builder(parent);
1624 return builder;
1625 }
1626
1627
1628
1629 public static final class Builder extends
1630 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
1631
1632 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder {
1633 public static final com.google.protobuf.Descriptors.Descriptor
1634 getDescriptor() {
1635 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor;
1636 }
1637
1638 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1639 internalGetFieldAccessorTable() {
1640 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_fieldAccessorTable
1641 .ensureFieldAccessorsInitialized(
1642 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder.class);
1643 }
1644
1645
1646 private Builder() {
1647 maybeForceBuilderInitialization();
1648 }
1649
1650 private Builder(
1651 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1652 super(parent);
1653 maybeForceBuilderInitialization();
1654 }
1655 private void maybeForceBuilderInitialization() {
1656 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1657 }
1658 }
1659 private static Builder create() {
1660 return new Builder();
1661 }
1662
1663 public Builder clear() {
1664 super.clear();
1665 gtuId_ = "";
1666 bitField0_ = (bitField0_ & ~0x00000001);
1667 x_ = 0D;
1668 bitField0_ = (bitField0_ & ~0x00000002);
1669 y_ = 0D;
1670 bitField0_ = (bitField0_ & ~0x00000004);
1671 z_ = 0D;
1672 bitField0_ = (bitField0_ & ~0x00000008);
1673 angle_ = 0D;
1674 bitField0_ = (bitField0_ & ~0x00000010);
1675 return this;
1676 }
1677
1678 public Builder clone() {
1679 return create().mergeFrom(buildPartial());
1680 }
1681
1682 public com.google.protobuf.Descriptors.Descriptor
1683 getDescriptorForType() {
1684 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor;
1685 }
1686
1687 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getDefaultInstanceForType() {
1688 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.getDefaultInstance();
1689 }
1690
1691 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition build() {
1692 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition result = buildPartial();
1693 if (!result.isInitialized()) {
1694 throw newUninitializedMessageException(result);
1695 }
1696 return result;
1697 }
1698
1699 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition buildPartial() {
1700 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition result = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition(this);
1701 int from_bitField0_ = bitField0_;
1702 int to_bitField0_ = 0;
1703 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1704 to_bitField0_ |= 0x00000001;
1705 }
1706 result.gtuId_ = gtuId_;
1707 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1708 to_bitField0_ |= 0x00000002;
1709 }
1710 result.x_ = x_;
1711 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1712 to_bitField0_ |= 0x00000004;
1713 }
1714 result.y_ = y_;
1715 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
1716 to_bitField0_ |= 0x00000008;
1717 }
1718 result.z_ = z_;
1719 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
1720 to_bitField0_ |= 0x00000010;
1721 }
1722 result.angle_ = angle_;
1723 result.bitField0_ = to_bitField0_;
1724 onBuilt();
1725 return result;
1726 }
1727
1728 public Builder mergeFrom(com.google.protobuf.Message other) {
1729 if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition) {
1730 return mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition)other);
1731 } else {
1732 super.mergeFrom(other);
1733 return this;
1734 }
1735 }
1736
1737 public Builder mergeFrom(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition other) {
1738 if (other == org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.getDefaultInstance()) return this;
1739 if (other.hasGtuId()) {
1740 bitField0_ |= 0x00000001;
1741 gtuId_ = other.gtuId_;
1742 onChanged();
1743 }
1744 if (other.hasX()) {
1745 setX(other.getX());
1746 }
1747 if (other.hasY()) {
1748 setY(other.getY());
1749 }
1750 if (other.hasZ()) {
1751 setZ(other.getZ());
1752 }
1753 if (other.hasAngle()) {
1754 setAngle(other.getAngle());
1755 }
1756 this.mergeUnknownFields(other.getUnknownFields());
1757 return this;
1758 }
1759
1760 public final boolean isInitialized() {
1761 if (!hasGtuId()) {
1762
1763 return false;
1764 }
1765 if (!hasX()) {
1766
1767 return false;
1768 }
1769 if (!hasY()) {
1770
1771 return false;
1772 }
1773 if (!hasAngle()) {
1774
1775 return false;
1776 }
1777 return true;
1778 }
1779
1780 public Builder mergeFrom(
1781 com.google.protobuf.CodedInputStream input,
1782 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1783 throws java.io.IOException {
1784 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parsedMessage = null;
1785 try {
1786 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1787 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1788 parsedMessage = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition) e.getUnfinishedMessage();
1789 throw e;
1790 } finally {
1791 if (parsedMessage != null) {
1792 mergeFrom(parsedMessage);
1793 }
1794 }
1795 return this;
1796 }
1797 private int bitField0_;
1798
1799 private java.lang.Object gtuId_ = "";
1800
1801
1802
1803 public boolean hasGtuId() {
1804 return ((bitField0_ & 0x00000001) == 0x00000001);
1805 }
1806
1807
1808
1809 public java.lang.String getGtuId() {
1810 java.lang.Object ref = gtuId_;
1811 if (!(ref instanceof java.lang.String)) {
1812 com.google.protobuf.ByteString bs =
1813 (com.google.protobuf.ByteString) ref;
1814 java.lang.String s = bs.toStringUtf8();
1815 if (bs.isValidUtf8()) {
1816 gtuId_ = s;
1817 }
1818 return s;
1819 } else {
1820 return (java.lang.String) ref;
1821 }
1822 }
1823
1824
1825
1826 public com.google.protobuf.ByteString
1827 getGtuIdBytes() {
1828 java.lang.Object ref = gtuId_;
1829 if (ref instanceof String) {
1830 com.google.protobuf.ByteString b =
1831 com.google.protobuf.ByteString.copyFromUtf8(
1832 (java.lang.String) ref);
1833 gtuId_ = b;
1834 return b;
1835 } else {
1836 return (com.google.protobuf.ByteString) ref;
1837 }
1838 }
1839
1840
1841
1842 public Builder setGtuId(
1843 java.lang.String value) {
1844 if (value == null) {
1845 throw new NullPointerException();
1846 }
1847 bitField0_ |= 0x00000001;
1848 gtuId_ = value;
1849 onChanged();
1850 return this;
1851 }
1852
1853
1854
1855 public Builder clearGtuId() {
1856 bitField0_ = (bitField0_ & ~0x00000001);
1857 gtuId_ = getDefaultInstance().getGtuId();
1858 onChanged();
1859 return this;
1860 }
1861
1862
1863
1864 public Builder setGtuIdBytes(
1865 com.google.protobuf.ByteString value) {
1866 if (value == null) {
1867 throw new NullPointerException();
1868 }
1869 bitField0_ |= 0x00000001;
1870 gtuId_ = value;
1871 onChanged();
1872 return this;
1873 }
1874
1875 private double x_ ;
1876
1877
1878
1879 public boolean hasX() {
1880 return ((bitField0_ & 0x00000002) == 0x00000002);
1881 }
1882
1883
1884
1885 public double getX() {
1886 return x_;
1887 }
1888
1889
1890
1891 public Builder setX(double value) {
1892 bitField0_ |= 0x00000002;
1893 x_ = value;
1894 onChanged();
1895 return this;
1896 }
1897
1898
1899
1900 public Builder clearX() {
1901 bitField0_ = (bitField0_ & ~0x00000002);
1902 x_ = 0D;
1903 onChanged();
1904 return this;
1905 }
1906
1907 private double y_ ;
1908
1909
1910
1911 public boolean hasY() {
1912 return ((bitField0_ & 0x00000004) == 0x00000004);
1913 }
1914
1915
1916
1917 public double getY() {
1918 return y_;
1919 }
1920
1921
1922
1923 public Builder setY(double value) {
1924 bitField0_ |= 0x00000004;
1925 y_ = value;
1926 onChanged();
1927 return this;
1928 }
1929
1930
1931
1932 public Builder clearY() {
1933 bitField0_ = (bitField0_ & ~0x00000004);
1934 y_ = 0D;
1935 onChanged();
1936 return this;
1937 }
1938
1939 private double z_ ;
1940
1941
1942
1943 public boolean hasZ() {
1944 return ((bitField0_ & 0x00000008) == 0x00000008);
1945 }
1946
1947
1948
1949 public double getZ() {
1950 return z_;
1951 }
1952
1953
1954
1955 public Builder setZ(double value) {
1956 bitField0_ |= 0x00000008;
1957 z_ = value;
1958 onChanged();
1959 return this;
1960 }
1961
1962
1963
1964 public Builder clearZ() {
1965 bitField0_ = (bitField0_ & ~0x00000008);
1966 z_ = 0D;
1967 onChanged();
1968 return this;
1969 }
1970
1971 private double angle_ ;
1972
1973
1974
1975 public boolean hasAngle() {
1976 return ((bitField0_ & 0x00000010) == 0x00000010);
1977 }
1978
1979
1980
1981 public double getAngle() {
1982 return angle_;
1983 }
1984
1985
1986
1987 public Builder setAngle(double value) {
1988 bitField0_ |= 0x00000010;
1989 angle_ = value;
1990 onChanged();
1991 return this;
1992 }
1993
1994
1995
1996 public Builder clearAngle() {
1997 bitField0_ = (bitField0_ & ~0x00000010);
1998 angle_ = 0D;
1999 onChanged();
2000 return this;
2001 }
2002
2003
2004 }
2005
2006 static {
2007 defaultInstance = new GTUPosition(true);
2008 defaultInstance.initFields();
2009 }
2010
2011
2012 }
2013
2014 public static final int GTUPOS_FIELD_NUMBER = 1;
2015 private java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> gtuPos_;
2016
2017
2018
2019 public java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> getGtuPosList() {
2020 return gtuPos_;
2021 }
2022
2023
2024
2025 public java.util.List<? extends org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder>
2026 getGtuPosOrBuilderList() {
2027 return gtuPos_;
2028 }
2029
2030
2031
2032 public int getGtuPosCount() {
2033 return gtuPos_.size();
2034 }
2035
2036
2037
2038 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getGtuPos(int index) {
2039 return gtuPos_.get(index);
2040 }
2041
2042
2043
2044 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder getGtuPosOrBuilder(
2045 int index) {
2046 return gtuPos_.get(index);
2047 }
2048
2049 private void initFields() {
2050 gtuPos_ = java.util.Collections.emptyList();
2051 }
2052 private byte memoizedIsInitialized = -1;
2053 public final boolean isInitialized() {
2054 byte isInitialized = memoizedIsInitialized;
2055 if (isInitialized == 1) return true;
2056 if (isInitialized == 0) return false;
2057
2058 for (int i = 0; i < getGtuPosCount(); i++) {
2059 if (!getGtuPos(i).isInitialized()) {
2060 memoizedIsInitialized = 0;
2061 return false;
2062 }
2063 }
2064 memoizedIsInitialized = 1;
2065 return true;
2066 }
2067
2068 public void writeTo(com.google.protobuf.CodedOutputStream output)
2069 throws java.io.IOException {
2070 getSerializedSize();
2071 for (int i = 0; i < gtuPos_.size(); i++) {
2072 output.writeMessage(1, gtuPos_.get(i));
2073 }
2074 getUnknownFields().writeTo(output);
2075 }
2076
2077 private int memoizedSerializedSize = -1;
2078 public int getSerializedSize() {
2079 int size = memoizedSerializedSize;
2080 if (size != -1) return size;
2081
2082 size = 0;
2083 for (int i = 0; i < gtuPos_.size(); i++) {
2084 size += com.google.protobuf.CodedOutputStream
2085 .computeMessageSize(1, gtuPos_.get(i));
2086 }
2087 size += getUnknownFields().getSerializedSize();
2088 memoizedSerializedSize = size;
2089 return size;
2090 }
2091
2092 private static final long serialVersionUID = 0L;
2093 @java.lang.Override
2094 protected java.lang.Object writeReplace()
2095 throws java.io.ObjectStreamException {
2096 return super.writeReplace();
2097 }
2098
2099 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
2100 com.google.protobuf.ByteString data)
2101 throws com.google.protobuf.InvalidProtocolBufferException {
2102 return PARSER.parseFrom(data);
2103 }
2104 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
2105 com.google.protobuf.ByteString data,
2106 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2107 throws com.google.protobuf.InvalidProtocolBufferException {
2108 return PARSER.parseFrom(data, extensionRegistry);
2109 }
2110 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(byte[] data)
2111 throws com.google.protobuf.InvalidProtocolBufferException {
2112 return PARSER.parseFrom(data);
2113 }
2114 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
2115 byte[] data,
2116 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2117 throws com.google.protobuf.InvalidProtocolBufferException {
2118 return PARSER.parseFrom(data, extensionRegistry);
2119 }
2120 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(java.io.InputStream input)
2121 throws java.io.IOException {
2122 return PARSER.parseFrom(input);
2123 }
2124 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
2125 java.io.InputStream input,
2126 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2127 throws java.io.IOException {
2128 return PARSER.parseFrom(input, extensionRegistry);
2129 }
2130 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseDelimitedFrom(java.io.InputStream input)
2131 throws java.io.IOException {
2132 return PARSER.parseDelimitedFrom(input);
2133 }
2134 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseDelimitedFrom(
2135 java.io.InputStream input,
2136 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2137 throws java.io.IOException {
2138 return PARSER.parseDelimitedFrom(input, extensionRegistry);
2139 }
2140 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
2141 com.google.protobuf.CodedInputStream input)
2142 throws java.io.IOException {
2143 return PARSER.parseFrom(input);
2144 }
2145 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
2146 com.google.protobuf.CodedInputStream input,
2147 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2148 throws java.io.IOException {
2149 return PARSER.parseFrom(input, extensionRegistry);
2150 }
2151
2152 public static Builder newBuilder() { return Builder.create(); }
2153 public Builder newBuilderForType() { return newBuilder(); }
2154 public static Builder newBuilder(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions prototype) {
2155 return newBuilder().mergeFrom(prototype);
2156 }
2157 public Builder toBuilder() { return newBuilder(this); }
2158
2159 @java.lang.Override
2160 protected Builder newBuilderForType(
2161 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2162 Builder builder = new Builder(parent);
2163 return builder;
2164 }
2165
2166
2167
2168 public static final class Builder extends
2169 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
2170
2171 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder {
2172 public static final com.google.protobuf.Descriptors.Descriptor
2173 getDescriptor() {
2174 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor;
2175 }
2176
2177 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2178 internalGetFieldAccessorTable() {
2179 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_fieldAccessorTable
2180 .ensureFieldAccessorsInitialized(
2181 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder.class);
2182 }
2183
2184
2185 private Builder() {
2186 maybeForceBuilderInitialization();
2187 }
2188
2189 private Builder(
2190 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2191 super(parent);
2192 maybeForceBuilderInitialization();
2193 }
2194 private void maybeForceBuilderInitialization() {
2195 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2196 getGtuPosFieldBuilder();
2197 }
2198 }
2199 private static Builder create() {
2200 return new Builder();
2201 }
2202
2203 public Builder clear() {
2204 super.clear();
2205 if (gtuPosBuilder_ == null) {
2206 gtuPos_ = java.util.Collections.emptyList();
2207 bitField0_ = (bitField0_ & ~0x00000001);
2208 } else {
2209 gtuPosBuilder_.clear();
2210 }
2211 return this;
2212 }
2213
2214 public Builder clone() {
2215 return create().mergeFrom(buildPartial());
2216 }
2217
2218 public com.google.protobuf.Descriptors.Descriptor
2219 getDescriptorForType() {
2220 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor;
2221 }
2222
2223 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getDefaultInstanceForType() {
2224 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
2225 }
2226
2227 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions build() {
2228 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions result = buildPartial();
2229 if (!result.isInitialized()) {
2230 throw newUninitializedMessageException(result);
2231 }
2232 return result;
2233 }
2234
2235 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions buildPartial() {
2236 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions result = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions(this);
2237 int from_bitField0_ = bitField0_;
2238 if (gtuPosBuilder_ == null) {
2239 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2240 gtuPos_ = java.util.Collections.unmodifiableList(gtuPos_);
2241 bitField0_ = (bitField0_ & ~0x00000001);
2242 }
2243 result.gtuPos_ = gtuPos_;
2244 } else {
2245 result.gtuPos_ = gtuPosBuilder_.build();
2246 }
2247 onBuilt();
2248 return result;
2249 }
2250
2251 public Builder mergeFrom(com.google.protobuf.Message other) {
2252 if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) {
2253 return mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions)other);
2254 } else {
2255 super.mergeFrom(other);
2256 return this;
2257 }
2258 }
2259
2260 public Builder mergeFrom(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions other) {
2261 if (other == org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance()) return this;
2262 if (gtuPosBuilder_ == null) {
2263 if (!other.gtuPos_.isEmpty()) {
2264 if (gtuPos_.isEmpty()) {
2265 gtuPos_ = other.gtuPos_;
2266 bitField0_ = (bitField0_ & ~0x00000001);
2267 } else {
2268 ensureGtuPosIsMutable();
2269 gtuPos_.addAll(other.gtuPos_);
2270 }
2271 onChanged();
2272 }
2273 } else {
2274 if (!other.gtuPos_.isEmpty()) {
2275 if (gtuPosBuilder_.isEmpty()) {
2276 gtuPosBuilder_.dispose();
2277 gtuPosBuilder_ = null;
2278 gtuPos_ = other.gtuPos_;
2279 bitField0_ = (bitField0_ & ~0x00000001);
2280 gtuPosBuilder_ =
2281 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
2282 getGtuPosFieldBuilder() : null;
2283 } else {
2284 gtuPosBuilder_.addAllMessages(other.gtuPos_);
2285 }
2286 }
2287 }
2288 this.mergeUnknownFields(other.getUnknownFields());
2289 return this;
2290 }
2291
2292 public final boolean isInitialized() {
2293 for (int i = 0; i < getGtuPosCount(); i++) {
2294 if (!getGtuPos(i).isInitialized()) {
2295
2296 return false;
2297 }
2298 }
2299 return true;
2300 }
2301
2302 public Builder mergeFrom(
2303 com.google.protobuf.CodedInputStream input,
2304 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2305 throws java.io.IOException {
2306 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parsedMessage = null;
2307 try {
2308 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2309 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2310 parsedMessage = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) e.getUnfinishedMessage();
2311 throw e;
2312 } finally {
2313 if (parsedMessage != null) {
2314 mergeFrom(parsedMessage);
2315 }
2316 }
2317 return this;
2318 }
2319 private int bitField0_;
2320
2321 private java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> gtuPos_ =
2322 java.util.Collections.emptyList();
2323 private void ensureGtuPosIsMutable() {
2324 if (!((bitField0_ & 0x00000001) == 0x00000001)) {
2325 gtuPos_ = new java.util.ArrayList<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition>(gtuPos_);
2326 bitField0_ |= 0x00000001;
2327 }
2328 }
2329
2330 private com.google.protobuf.RepeatedFieldBuilder<
2331 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder> gtuPosBuilder_;
2332
2333
2334
2335
2336 public java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> getGtuPosList() {
2337 if (gtuPosBuilder_ == null) {
2338 return java.util.Collections.unmodifiableList(gtuPos_);
2339 } else {
2340 return gtuPosBuilder_.getMessageList();
2341 }
2342 }
2343
2344
2345
2346 public int getGtuPosCount() {
2347 if (gtuPosBuilder_ == null) {
2348 return gtuPos_.size();
2349 } else {
2350 return gtuPosBuilder_.getCount();
2351 }
2352 }
2353
2354
2355
2356 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getGtuPos(int index) {
2357 if (gtuPosBuilder_ == null) {
2358 return gtuPos_.get(index);
2359 } else {
2360 return gtuPosBuilder_.getMessage(index);
2361 }
2362 }
2363
2364
2365
2366 public Builder setGtuPos(
2367 int index, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition value) {
2368 if (gtuPosBuilder_ == null) {
2369 if (value == null) {
2370 throw new NullPointerException();
2371 }
2372 ensureGtuPosIsMutable();
2373 gtuPos_.set(index, value);
2374 onChanged();
2375 } else {
2376 gtuPosBuilder_.setMessage(index, value);
2377 }
2378 return this;
2379 }
2380
2381
2382
2383 public Builder setGtuPos(
2384 int index, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder builderForValue) {
2385 if (gtuPosBuilder_ == null) {
2386 ensureGtuPosIsMutable();
2387 gtuPos_.set(index, builderForValue.build());
2388 onChanged();
2389 } else {
2390 gtuPosBuilder_.setMessage(index, builderForValue.build());
2391 }
2392 return this;
2393 }
2394
2395
2396
2397 public Builder addGtuPos(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition value) {
2398 if (gtuPosBuilder_ == null) {
2399 if (value == null) {
2400 throw new NullPointerException();
2401 }
2402 ensureGtuPosIsMutable();
2403 gtuPos_.add(value);
2404 onChanged();
2405 } else {
2406 gtuPosBuilder_.addMessage(value);
2407 }
2408 return this;
2409 }
2410
2411
2412
2413 public Builder addGtuPos(
2414 int index, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition value) {
2415 if (gtuPosBuilder_ == null) {
2416 if (value == null) {
2417 throw new NullPointerException();
2418 }
2419 ensureGtuPosIsMutable();
2420 gtuPos_.add(index, value);
2421 onChanged();
2422 } else {
2423 gtuPosBuilder_.addMessage(index, value);
2424 }
2425 return this;
2426 }
2427
2428
2429
2430 public Builder addGtuPos(
2431 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder builderForValue) {
2432 if (gtuPosBuilder_ == null) {
2433 ensureGtuPosIsMutable();
2434 gtuPos_.add(builderForValue.build());
2435 onChanged();
2436 } else {
2437 gtuPosBuilder_.addMessage(builderForValue.build());
2438 }
2439 return this;
2440 }
2441
2442
2443
2444 public Builder addGtuPos(
2445 int index, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder builderForValue) {
2446 if (gtuPosBuilder_ == null) {
2447 ensureGtuPosIsMutable();
2448 gtuPos_.add(index, builderForValue.build());
2449 onChanged();
2450 } else {
2451 gtuPosBuilder_.addMessage(index, builderForValue.build());
2452 }
2453 return this;
2454 }
2455
2456
2457
2458 public Builder addAllGtuPos(
2459 java.lang.Iterable<? extends org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> values) {
2460 if (gtuPosBuilder_ == null) {
2461 ensureGtuPosIsMutable();
2462 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2463 values, gtuPos_);
2464 onChanged();
2465 } else {
2466 gtuPosBuilder_.addAllMessages(values);
2467 }
2468 return this;
2469 }
2470
2471
2472
2473 public Builder clearGtuPos() {
2474 if (gtuPosBuilder_ == null) {
2475 gtuPos_ = java.util.Collections.emptyList();
2476 bitField0_ = (bitField0_ & ~0x00000001);
2477 onChanged();
2478 } else {
2479 gtuPosBuilder_.clear();
2480 }
2481 return this;
2482 }
2483
2484
2485
2486 public Builder removeGtuPos(int index) {
2487 if (gtuPosBuilder_ == null) {
2488 ensureGtuPosIsMutable();
2489 gtuPos_.remove(index);
2490 onChanged();
2491 } else {
2492 gtuPosBuilder_.remove(index);
2493 }
2494 return this;
2495 }
2496
2497
2498
2499 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder getGtuPosBuilder(
2500 int index) {
2501 return getGtuPosFieldBuilder().getBuilder(index);
2502 }
2503
2504
2505
2506 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder getGtuPosOrBuilder(
2507 int index) {
2508 if (gtuPosBuilder_ == null) {
2509 return gtuPos_.get(index); } else {
2510 return gtuPosBuilder_.getMessageOrBuilder(index);
2511 }
2512 }
2513
2514
2515
2516 public java.util.List<? extends org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder>
2517 getGtuPosOrBuilderList() {
2518 if (gtuPosBuilder_ != null) {
2519 return gtuPosBuilder_.getMessageOrBuilderList();
2520 } else {
2521 return java.util.Collections.unmodifiableList(gtuPos_);
2522 }
2523 }
2524
2525
2526
2527 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder addGtuPosBuilder() {
2528 return getGtuPosFieldBuilder().addBuilder(
2529 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.getDefaultInstance());
2530 }
2531
2532
2533
2534 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder addGtuPosBuilder(
2535 int index) {
2536 return getGtuPosFieldBuilder().addBuilder(
2537 index, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.getDefaultInstance());
2538 }
2539
2540
2541
2542 public java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder>
2543 getGtuPosBuilderList() {
2544 return getGtuPosFieldBuilder().getBuilderList();
2545 }
2546 private com.google.protobuf.RepeatedFieldBuilder<
2547 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder>
2548 getGtuPosFieldBuilder() {
2549 if (gtuPosBuilder_ == null) {
2550 gtuPosBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
2551 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder>(
2552 gtuPos_,
2553 ((bitField0_ & 0x00000001) == 0x00000001),
2554 getParentForChildren(),
2555 isClean());
2556 gtuPos_ = null;
2557 }
2558 return gtuPosBuilder_;
2559 }
2560
2561
2562 }
2563
2564 static {
2565 defaultInstance = new GTUPositions(true);
2566 defaultInstance.initFields();
2567 }
2568
2569
2570 }
2571
2572 public interface OTSMessageOrBuilder extends
2573
2574 com.google.protobuf.MessageOrBuilder {
2575
2576
2577
2578
2579 boolean hasCreateSimulation();
2580
2581
2582
2583 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getCreateSimulation();
2584
2585
2586
2587 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder getCreateSimulationOrBuilder();
2588
2589
2590
2591
2592 boolean hasSimulateUntil();
2593
2594
2595
2596 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getSimulateUntil();
2597
2598
2599
2600 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder getSimulateUntilOrBuilder();
2601
2602
2603
2604
2605 boolean hasGtuPositions();
2606
2607
2608
2609 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getGtuPositions();
2610
2611
2612
2613 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder getGtuPositionsOrBuilder();
2614 }
2615
2616
2617
2618 public static final class OTSMessage extends
2619 com.google.protobuf.GeneratedMessage implements
2620
2621 OTSMessageOrBuilder {
2622
2623 private OTSMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
2624 super(builder);
2625 this.unknownFields = builder.getUnknownFields();
2626 }
2627 private OTSMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
2628
2629 private static final OTSMessage defaultInstance;
2630 public static OTSMessage getDefaultInstance() {
2631 return defaultInstance;
2632 }
2633
2634 public OTSMessage getDefaultInstanceForType() {
2635 return defaultInstance;
2636 }
2637
2638 private final com.google.protobuf.UnknownFieldSet unknownFields;
2639 @java.lang.Override
2640 public final com.google.protobuf.UnknownFieldSet
2641 getUnknownFields() {
2642 return this.unknownFields;
2643 }
2644 private OTSMessage(
2645 com.google.protobuf.CodedInputStream input,
2646 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2647 throws com.google.protobuf.InvalidProtocolBufferException {
2648 initFields();
2649 int mutable_bitField0_ = 0;
2650 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2651 com.google.protobuf.UnknownFieldSet.newBuilder();
2652 try {
2653 boolean done = false;
2654 while (!done) {
2655 int tag = input.readTag();
2656 switch (tag) {
2657 case 0:
2658 done = true;
2659 break;
2660 default: {
2661 if (!parseUnknownField(input, unknownFields,
2662 extensionRegistry, tag)) {
2663 done = true;
2664 }
2665 break;
2666 }
2667 case 10: {
2668 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder subBuilder = null;
2669 if (msgCase_ == 1) {
2670 subBuilder = ((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_).toBuilder();
2671 }
2672 msg_ = input.readMessage(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.PARSER, extensionRegistry);
2673 if (subBuilder != null) {
2674 subBuilder.mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_);
2675 msg_ = subBuilder.buildPartial();
2676 }
2677 msgCase_ = 1;
2678 break;
2679 }
2680 case 18: {
2681 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder subBuilder = null;
2682 if (msgCase_ == 2) {
2683 subBuilder = ((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_).toBuilder();
2684 }
2685 msg_ = input.readMessage(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.PARSER, extensionRegistry);
2686 if (subBuilder != null) {
2687 subBuilder.mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_);
2688 msg_ = subBuilder.buildPartial();
2689 }
2690 msgCase_ = 2;
2691 break;
2692 }
2693 case 26: {
2694 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder subBuilder = null;
2695 if (msgCase_ == 3) {
2696 subBuilder = ((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_).toBuilder();
2697 }
2698 msg_ = input.readMessage(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.PARSER, extensionRegistry);
2699 if (subBuilder != null) {
2700 subBuilder.mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_);
2701 msg_ = subBuilder.buildPartial();
2702 }
2703 msgCase_ = 3;
2704 break;
2705 }
2706 }
2707 }
2708 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2709 throw e.setUnfinishedMessage(this);
2710 } catch (java.io.IOException e) {
2711 throw new com.google.protobuf.InvalidProtocolBufferException(
2712 e.getMessage()).setUnfinishedMessage(this);
2713 } finally {
2714 this.unknownFields = unknownFields.build();
2715 makeExtensionsImmutable();
2716 }
2717 }
2718 public static final com.google.protobuf.Descriptors.Descriptor
2719 getDescriptor() {
2720 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor;
2721 }
2722
2723 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2724 internalGetFieldAccessorTable() {
2725 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_fieldAccessorTable
2726 .ensureFieldAccessorsInitialized(
2727 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.Builder.class);
2728 }
2729
2730 public static com.google.protobuf.Parser<OTSMessage> PARSER =
2731 new com.google.protobuf.AbstractParser<OTSMessage>() {
2732 public OTSMessage parsePartialFrom(
2733 com.google.protobuf.CodedInputStream input,
2734 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2735 throws com.google.protobuf.InvalidProtocolBufferException {
2736 return new OTSMessage(input, extensionRegistry);
2737 }
2738 };
2739
2740 @java.lang.Override
2741 public com.google.protobuf.Parser<OTSMessage> getParserForType() {
2742 return PARSER;
2743 }
2744
2745 private int bitField0_;
2746 private int msgCase_ = 0;
2747 private java.lang.Object msg_;
2748 public enum MsgCase
2749 implements com.google.protobuf.Internal.EnumLite {
2750 CREATESIMULATION(1),
2751 SIMULATEUNTIL(2),
2752 GTUPOSITIONS(3),
2753 MSG_NOT_SET(0);
2754 private int value = 0;
2755 private MsgCase(int value) {
2756 this.value = value;
2757 }
2758 public static MsgCase valueOf(int value) {
2759 switch (value) {
2760 case 1: return CREATESIMULATION;
2761 case 2: return SIMULATEUNTIL;
2762 case 3: return GTUPOSITIONS;
2763 case 0: return MSG_NOT_SET;
2764 default: throw new java.lang.IllegalArgumentException(
2765 "Value is undefined for this oneof enum.");
2766 }
2767 }
2768 public int getNumber() {
2769 return this.value;
2770 }
2771 };
2772
2773 public MsgCase
2774 getMsgCase() {
2775 return MsgCase.valueOf(
2776 msgCase_);
2777 }
2778
2779 public static final int CREATESIMULATION_FIELD_NUMBER = 1;
2780
2781
2782
2783 public boolean hasCreateSimulation() {
2784 return msgCase_ == 1;
2785 }
2786
2787
2788
2789 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getCreateSimulation() {
2790 if (msgCase_ == 1) {
2791 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_;
2792 }
2793 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
2794 }
2795
2796
2797
2798 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder getCreateSimulationOrBuilder() {
2799 if (msgCase_ == 1) {
2800 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_;
2801 }
2802 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
2803 }
2804
2805 public static final int SIMULATEUNTIL_FIELD_NUMBER = 2;
2806
2807
2808
2809 public boolean hasSimulateUntil() {
2810 return msgCase_ == 2;
2811 }
2812
2813
2814
2815 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getSimulateUntil() {
2816 if (msgCase_ == 2) {
2817 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_;
2818 }
2819 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
2820 }
2821
2822
2823
2824 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder getSimulateUntilOrBuilder() {
2825 if (msgCase_ == 2) {
2826 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_;
2827 }
2828 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
2829 }
2830
2831 public static final int GTUPOSITIONS_FIELD_NUMBER = 3;
2832
2833
2834
2835 public boolean hasGtuPositions() {
2836 return msgCase_ == 3;
2837 }
2838
2839
2840
2841 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getGtuPositions() {
2842 if (msgCase_ == 3) {
2843 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_;
2844 }
2845 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
2846 }
2847
2848
2849
2850 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder getGtuPositionsOrBuilder() {
2851 if (msgCase_ == 3) {
2852 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_;
2853 }
2854 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
2855 }
2856
2857 private void initFields() {
2858 }
2859 private byte memoizedIsInitialized = -1;
2860 public final boolean isInitialized() {
2861 byte isInitialized = memoizedIsInitialized;
2862 if (isInitialized == 1) return true;
2863 if (isInitialized == 0) return false;
2864
2865 if (hasCreateSimulation()) {
2866 if (!getCreateSimulation().isInitialized()) {
2867 memoizedIsInitialized = 0;
2868 return false;
2869 }
2870 }
2871 if (hasSimulateUntil()) {
2872 if (!getSimulateUntil().isInitialized()) {
2873 memoizedIsInitialized = 0;
2874 return false;
2875 }
2876 }
2877 if (hasGtuPositions()) {
2878 if (!getGtuPositions().isInitialized()) {
2879 memoizedIsInitialized = 0;
2880 return false;
2881 }
2882 }
2883 memoizedIsInitialized = 1;
2884 return true;
2885 }
2886
2887 public void writeTo(com.google.protobuf.CodedOutputStream output)
2888 throws java.io.IOException {
2889 getSerializedSize();
2890 if (msgCase_ == 1) {
2891 output.writeMessage(1, (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_);
2892 }
2893 if (msgCase_ == 2) {
2894 output.writeMessage(2, (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_);
2895 }
2896 if (msgCase_ == 3) {
2897 output.writeMessage(3, (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_);
2898 }
2899 getUnknownFields().writeTo(output);
2900 }
2901
2902 private int memoizedSerializedSize = -1;
2903 public int getSerializedSize() {
2904 int size = memoizedSerializedSize;
2905 if (size != -1) return size;
2906
2907 size = 0;
2908 if (msgCase_ == 1) {
2909 size += com.google.protobuf.CodedOutputStream
2910 .computeMessageSize(1, (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_);
2911 }
2912 if (msgCase_ == 2) {
2913 size += com.google.protobuf.CodedOutputStream
2914 .computeMessageSize(2, (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_);
2915 }
2916 if (msgCase_ == 3) {
2917 size += com.google.protobuf.CodedOutputStream
2918 .computeMessageSize(3, (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_);
2919 }
2920 size += getUnknownFields().getSerializedSize();
2921 memoizedSerializedSize = size;
2922 return size;
2923 }
2924
2925 private static final long serialVersionUID = 0L;
2926 @java.lang.Override
2927 protected java.lang.Object writeReplace()
2928 throws java.io.ObjectStreamException {
2929 return super.writeReplace();
2930 }
2931
2932 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
2933 com.google.protobuf.ByteString data)
2934 throws com.google.protobuf.InvalidProtocolBufferException {
2935 return PARSER.parseFrom(data);
2936 }
2937 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
2938 com.google.protobuf.ByteString data,
2939 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2940 throws com.google.protobuf.InvalidProtocolBufferException {
2941 return PARSER.parseFrom(data, extensionRegistry);
2942 }
2943 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(byte[] data)
2944 throws com.google.protobuf.InvalidProtocolBufferException {
2945 return PARSER.parseFrom(data);
2946 }
2947 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
2948 byte[] data,
2949 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2950 throws com.google.protobuf.InvalidProtocolBufferException {
2951 return PARSER.parseFrom(data, extensionRegistry);
2952 }
2953 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(java.io.InputStream input)
2954 throws java.io.IOException {
2955 return PARSER.parseFrom(input);
2956 }
2957 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
2958 java.io.InputStream input,
2959 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2960 throws java.io.IOException {
2961 return PARSER.parseFrom(input, extensionRegistry);
2962 }
2963 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseDelimitedFrom(java.io.InputStream input)
2964 throws java.io.IOException {
2965 return PARSER.parseDelimitedFrom(input);
2966 }
2967 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseDelimitedFrom(
2968 java.io.InputStream input,
2969 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2970 throws java.io.IOException {
2971 return PARSER.parseDelimitedFrom(input, extensionRegistry);
2972 }
2973 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
2974 com.google.protobuf.CodedInputStream input)
2975 throws java.io.IOException {
2976 return PARSER.parseFrom(input);
2977 }
2978 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
2979 com.google.protobuf.CodedInputStream input,
2980 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2981 throws java.io.IOException {
2982 return PARSER.parseFrom(input, extensionRegistry);
2983 }
2984
2985 public static Builder newBuilder() { return Builder.create(); }
2986 public Builder newBuilderForType() { return newBuilder(); }
2987 public static Builder newBuilder(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage prototype) {
2988 return newBuilder().mergeFrom(prototype);
2989 }
2990 public Builder toBuilder() { return newBuilder(this); }
2991
2992 @java.lang.Override
2993 protected Builder newBuilderForType(
2994 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2995 Builder builder = new Builder(parent);
2996 return builder;
2997 }
2998
2999
3000
3001 public static final class Builder extends
3002 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
3003
3004 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessageOrBuilder {
3005 public static final com.google.protobuf.Descriptors.Descriptor
3006 getDescriptor() {
3007 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor;
3008 }
3009
3010 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3011 internalGetFieldAccessorTable() {
3012 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_fieldAccessorTable
3013 .ensureFieldAccessorsInitialized(
3014 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.class, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.Builder.class);
3015 }
3016
3017
3018 private Builder() {
3019 maybeForceBuilderInitialization();
3020 }
3021
3022 private Builder(
3023 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3024 super(parent);
3025 maybeForceBuilderInitialization();
3026 }
3027 private void maybeForceBuilderInitialization() {
3028 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3029 }
3030 }
3031 private static Builder create() {
3032 return new Builder();
3033 }
3034
3035 public Builder clear() {
3036 super.clear();
3037 msgCase_ = 0;
3038 msg_ = null;
3039 return this;
3040 }
3041
3042 public Builder clone() {
3043 return create().mergeFrom(buildPartial());
3044 }
3045
3046 public com.google.protobuf.Descriptors.Descriptor
3047 getDescriptorForType() {
3048 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor;
3049 }
3050
3051 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage getDefaultInstanceForType() {
3052 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.getDefaultInstance();
3053 }
3054
3055 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage build() {
3056 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage result = buildPartial();
3057 if (!result.isInitialized()) {
3058 throw newUninitializedMessageException(result);
3059 }
3060 return result;
3061 }
3062
3063 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage buildPartial() {
3064 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage result = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage(this);
3065 int from_bitField0_ = bitField0_;
3066 int to_bitField0_ = 0;
3067 if (msgCase_ == 1) {
3068 if (createSimulationBuilder_ == null) {
3069 result.msg_ = msg_;
3070 } else {
3071 result.msg_ = createSimulationBuilder_.build();
3072 }
3073 }
3074 if (msgCase_ == 2) {
3075 if (simulateUntilBuilder_ == null) {
3076 result.msg_ = msg_;
3077 } else {
3078 result.msg_ = simulateUntilBuilder_.build();
3079 }
3080 }
3081 if (msgCase_ == 3) {
3082 if (gtuPositionsBuilder_ == null) {
3083 result.msg_ = msg_;
3084 } else {
3085 result.msg_ = gtuPositionsBuilder_.build();
3086 }
3087 }
3088 result.bitField0_ = to_bitField0_;
3089 result.msgCase_ = msgCase_;
3090 onBuilt();
3091 return result;
3092 }
3093
3094 public Builder mergeFrom(com.google.protobuf.Message other) {
3095 if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage) {
3096 return mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage)other);
3097 } else {
3098 super.mergeFrom(other);
3099 return this;
3100 }
3101 }
3102
3103 public Builder mergeFrom(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage other) {
3104 if (other == org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.getDefaultInstance()) return this;
3105 switch (other.getMsgCase()) {
3106 case CREATESIMULATION: {
3107 mergeCreateSimulation(other.getCreateSimulation());
3108 break;
3109 }
3110 case SIMULATEUNTIL: {
3111 mergeSimulateUntil(other.getSimulateUntil());
3112 break;
3113 }
3114 case GTUPOSITIONS: {
3115 mergeGtuPositions(other.getGtuPositions());
3116 break;
3117 }
3118 case MSG_NOT_SET: {
3119 break;
3120 }
3121 }
3122 this.mergeUnknownFields(other.getUnknownFields());
3123 return this;
3124 }
3125
3126 public final boolean isInitialized() {
3127 if (hasCreateSimulation()) {
3128 if (!getCreateSimulation().isInitialized()) {
3129
3130 return false;
3131 }
3132 }
3133 if (hasSimulateUntil()) {
3134 if (!getSimulateUntil().isInitialized()) {
3135
3136 return false;
3137 }
3138 }
3139 if (hasGtuPositions()) {
3140 if (!getGtuPositions().isInitialized()) {
3141
3142 return false;
3143 }
3144 }
3145 return true;
3146 }
3147
3148 public Builder mergeFrom(
3149 com.google.protobuf.CodedInputStream input,
3150 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3151 throws java.io.IOException {
3152 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parsedMessage = null;
3153 try {
3154 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
3155 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3156 parsedMessage = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage) e.getUnfinishedMessage();
3157 throw e;
3158 } finally {
3159 if (parsedMessage != null) {
3160 mergeFrom(parsedMessage);
3161 }
3162 }
3163 return this;
3164 }
3165 private int msgCase_ = 0;
3166 private java.lang.Object msg_;
3167 public MsgCase
3168 getMsgCase() {
3169 return MsgCase.valueOf(
3170 msgCase_);
3171 }
3172
3173 public Builder clearMsg() {
3174 msgCase_ = 0;
3175 msg_ = null;
3176 onChanged();
3177 return this;
3178 }
3179
3180 private int bitField0_;
3181
3182 private com.google.protobuf.SingleFieldBuilder<
3183 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder> createSimulationBuilder_;
3184
3185
3186
3187 public boolean hasCreateSimulation() {
3188 return msgCase_ == 1;
3189 }
3190
3191
3192
3193 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getCreateSimulation() {
3194 if (createSimulationBuilder_ == null) {
3195 if (msgCase_ == 1) {
3196 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_;
3197 }
3198 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
3199 } else {
3200 if (msgCase_ == 1) {
3201 return createSimulationBuilder_.getMessage();
3202 }
3203 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
3204 }
3205 }
3206
3207
3208
3209 public Builder setCreateSimulation(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation value) {
3210 if (createSimulationBuilder_ == null) {
3211 if (value == null) {
3212 throw new NullPointerException();
3213 }
3214 msg_ = value;
3215 onChanged();
3216 } else {
3217 createSimulationBuilder_.setMessage(value);
3218 }
3219 msgCase_ = 1;
3220 return this;
3221 }
3222
3223
3224
3225 public Builder setCreateSimulation(
3226 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder builderForValue) {
3227 if (createSimulationBuilder_ == null) {
3228 msg_ = builderForValue.build();
3229 onChanged();
3230 } else {
3231 createSimulationBuilder_.setMessage(builderForValue.build());
3232 }
3233 msgCase_ = 1;
3234 return this;
3235 }
3236
3237
3238
3239 public Builder mergeCreateSimulation(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation value) {
3240 if (createSimulationBuilder_ == null) {
3241 if (msgCase_ == 1 &&
3242 msg_ != org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance()) {
3243 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.newBuilder((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_)
3244 .mergeFrom(value).buildPartial();
3245 } else {
3246 msg_ = value;
3247 }
3248 onChanged();
3249 } else {
3250 if (msgCase_ == 1) {
3251 createSimulationBuilder_.mergeFrom(value);
3252 }
3253 createSimulationBuilder_.setMessage(value);
3254 }
3255 msgCase_ = 1;
3256 return this;
3257 }
3258
3259
3260
3261 public Builder clearCreateSimulation() {
3262 if (createSimulationBuilder_ == null) {
3263 if (msgCase_ == 1) {
3264 msgCase_ = 0;
3265 msg_ = null;
3266 onChanged();
3267 }
3268 } else {
3269 if (msgCase_ == 1) {
3270 msgCase_ = 0;
3271 msg_ = null;
3272 }
3273 createSimulationBuilder_.clear();
3274 }
3275 return this;
3276 }
3277
3278
3279
3280 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder getCreateSimulationBuilder() {
3281 return getCreateSimulationFieldBuilder().getBuilder();
3282 }
3283
3284
3285
3286 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder getCreateSimulationOrBuilder() {
3287 if ((msgCase_ == 1) && (createSimulationBuilder_ != null)) {
3288 return createSimulationBuilder_.getMessageOrBuilder();
3289 } else {
3290 if (msgCase_ == 1) {
3291 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_;
3292 }
3293 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
3294 }
3295 }
3296
3297
3298
3299 private com.google.protobuf.SingleFieldBuilder<
3300 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder>
3301 getCreateSimulationFieldBuilder() {
3302 if (createSimulationBuilder_ == null) {
3303 if (!(msgCase_ == 1)) {
3304 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
3305 }
3306 createSimulationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3307 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder>(
3308 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_,
3309 getParentForChildren(),
3310 isClean());
3311 msg_ = null;
3312 }
3313 msgCase_ = 1;
3314 return createSimulationBuilder_;
3315 }
3316
3317 private com.google.protobuf.SingleFieldBuilder<
3318 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder> simulateUntilBuilder_;
3319
3320
3321
3322 public boolean hasSimulateUntil() {
3323 return msgCase_ == 2;
3324 }
3325
3326
3327
3328 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getSimulateUntil() {
3329 if (simulateUntilBuilder_ == null) {
3330 if (msgCase_ == 2) {
3331 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_;
3332 }
3333 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
3334 } else {
3335 if (msgCase_ == 2) {
3336 return simulateUntilBuilder_.getMessage();
3337 }
3338 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
3339 }
3340 }
3341
3342
3343
3344 public Builder setSimulateUntil(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil value) {
3345 if (simulateUntilBuilder_ == null) {
3346 if (value == null) {
3347 throw new NullPointerException();
3348 }
3349 msg_ = value;
3350 onChanged();
3351 } else {
3352 simulateUntilBuilder_.setMessage(value);
3353 }
3354 msgCase_ = 2;
3355 return this;
3356 }
3357
3358
3359
3360 public Builder setSimulateUntil(
3361 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder builderForValue) {
3362 if (simulateUntilBuilder_ == null) {
3363 msg_ = builderForValue.build();
3364 onChanged();
3365 } else {
3366 simulateUntilBuilder_.setMessage(builderForValue.build());
3367 }
3368 msgCase_ = 2;
3369 return this;
3370 }
3371
3372
3373
3374 public Builder mergeSimulateUntil(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil value) {
3375 if (simulateUntilBuilder_ == null) {
3376 if (msgCase_ == 2 &&
3377 msg_ != org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance()) {
3378 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.newBuilder((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_)
3379 .mergeFrom(value).buildPartial();
3380 } else {
3381 msg_ = value;
3382 }
3383 onChanged();
3384 } else {
3385 if (msgCase_ == 2) {
3386 simulateUntilBuilder_.mergeFrom(value);
3387 }
3388 simulateUntilBuilder_.setMessage(value);
3389 }
3390 msgCase_ = 2;
3391 return this;
3392 }
3393
3394
3395
3396 public Builder clearSimulateUntil() {
3397 if (simulateUntilBuilder_ == null) {
3398 if (msgCase_ == 2) {
3399 msgCase_ = 0;
3400 msg_ = null;
3401 onChanged();
3402 }
3403 } else {
3404 if (msgCase_ == 2) {
3405 msgCase_ = 0;
3406 msg_ = null;
3407 }
3408 simulateUntilBuilder_.clear();
3409 }
3410 return this;
3411 }
3412
3413
3414
3415 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder getSimulateUntilBuilder() {
3416 return getSimulateUntilFieldBuilder().getBuilder();
3417 }
3418
3419
3420
3421 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder getSimulateUntilOrBuilder() {
3422 if ((msgCase_ == 2) && (simulateUntilBuilder_ != null)) {
3423 return simulateUntilBuilder_.getMessageOrBuilder();
3424 } else {
3425 if (msgCase_ == 2) {
3426 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_;
3427 }
3428 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
3429 }
3430 }
3431
3432
3433
3434 private com.google.protobuf.SingleFieldBuilder<
3435 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder>
3436 getSimulateUntilFieldBuilder() {
3437 if (simulateUntilBuilder_ == null) {
3438 if (!(msgCase_ == 2)) {
3439 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
3440 }
3441 simulateUntilBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3442 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder>(
3443 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_,
3444 getParentForChildren(),
3445 isClean());
3446 msg_ = null;
3447 }
3448 msgCase_ = 2;
3449 return simulateUntilBuilder_;
3450 }
3451
3452 private com.google.protobuf.SingleFieldBuilder<
3453 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder> gtuPositionsBuilder_;
3454
3455
3456
3457 public boolean hasGtuPositions() {
3458 return msgCase_ == 3;
3459 }
3460
3461
3462
3463 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getGtuPositions() {
3464 if (gtuPositionsBuilder_ == null) {
3465 if (msgCase_ == 3) {
3466 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_;
3467 }
3468 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
3469 } else {
3470 if (msgCase_ == 3) {
3471 return gtuPositionsBuilder_.getMessage();
3472 }
3473 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
3474 }
3475 }
3476
3477
3478
3479 public Builder setGtuPositions(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions value) {
3480 if (gtuPositionsBuilder_ == null) {
3481 if (value == null) {
3482 throw new NullPointerException();
3483 }
3484 msg_ = value;
3485 onChanged();
3486 } else {
3487 gtuPositionsBuilder_.setMessage(value);
3488 }
3489 msgCase_ = 3;
3490 return this;
3491 }
3492
3493
3494
3495 public Builder setGtuPositions(
3496 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder builderForValue) {
3497 if (gtuPositionsBuilder_ == null) {
3498 msg_ = builderForValue.build();
3499 onChanged();
3500 } else {
3501 gtuPositionsBuilder_.setMessage(builderForValue.build());
3502 }
3503 msgCase_ = 3;
3504 return this;
3505 }
3506
3507
3508
3509 public Builder mergeGtuPositions(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions value) {
3510 if (gtuPositionsBuilder_ == null) {
3511 if (msgCase_ == 3 &&
3512 msg_ != org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance()) {
3513 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.newBuilder((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_)
3514 .mergeFrom(value).buildPartial();
3515 } else {
3516 msg_ = value;
3517 }
3518 onChanged();
3519 } else {
3520 if (msgCase_ == 3) {
3521 gtuPositionsBuilder_.mergeFrom(value);
3522 }
3523 gtuPositionsBuilder_.setMessage(value);
3524 }
3525 msgCase_ = 3;
3526 return this;
3527 }
3528
3529
3530
3531 public Builder clearGtuPositions() {
3532 if (gtuPositionsBuilder_ == null) {
3533 if (msgCase_ == 3) {
3534 msgCase_ = 0;
3535 msg_ = null;
3536 onChanged();
3537 }
3538 } else {
3539 if (msgCase_ == 3) {
3540 msgCase_ = 0;
3541 msg_ = null;
3542 }
3543 gtuPositionsBuilder_.clear();
3544 }
3545 return this;
3546 }
3547
3548
3549
3550 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder getGtuPositionsBuilder() {
3551 return getGtuPositionsFieldBuilder().getBuilder();
3552 }
3553
3554
3555
3556 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder getGtuPositionsOrBuilder() {
3557 if ((msgCase_ == 3) && (gtuPositionsBuilder_ != null)) {
3558 return gtuPositionsBuilder_.getMessageOrBuilder();
3559 } else {
3560 if (msgCase_ == 3) {
3561 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_;
3562 }
3563 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
3564 }
3565 }
3566
3567
3568
3569 private com.google.protobuf.SingleFieldBuilder<
3570 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder>
3571 getGtuPositionsFieldBuilder() {
3572 if (gtuPositionsBuilder_ == null) {
3573 if (!(msgCase_ == 3)) {
3574 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
3575 }
3576 gtuPositionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3577 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder, org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder>(
3578 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_,
3579 getParentForChildren(),
3580 isClean());
3581 msg_ = null;
3582 }
3583 msgCase_ = 3;
3584 return gtuPositionsBuilder_;
3585 }
3586
3587
3588 }
3589
3590 static {
3591 defaultInstance = new OTSMessage(true);
3592 defaultInstance.initFields();
3593 }
3594
3595
3596 }
3597
3598 private static final com.google.protobuf.Descriptors.Descriptor
3599 internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor;
3600 private static
3601 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3602 internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_fieldAccessorTable;
3603 private static final com.google.protobuf.Descriptors.Descriptor
3604 internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor;
3605 private static
3606 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3607 internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_fieldAccessorTable;
3608 private static final com.google.protobuf.Descriptors.Descriptor
3609 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor;
3610 private static
3611 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3612 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_fieldAccessorTable;
3613 private static final com.google.protobuf.Descriptors.Descriptor
3614 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor;
3615 private static
3616 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3617 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_fieldAccessorTable;
3618 private static final com.google.protobuf.Descriptors.Descriptor
3619 internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor;
3620 private static
3621 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3622 internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_fieldAccessorTable;
3623
3624 public static com.google.protobuf.Descriptors.FileDescriptor
3625 getDescriptor() {
3626 return descriptor;
3627 }
3628 private static com.google.protobuf.Descriptors.FileDescriptor
3629 descriptor;
3630 static {
3631 java.lang.String[] descriptorData = {
3632 "\n\020ots-aimsun.proto\022\037org.opentrafficsim.a" +
3633 "imsun.proto\"K\n\020CreateSimulation\022\017\n\007runTi" +
3634 "me\030\001 \002(\001\022\022\n\nwarmUpTime\030\002 \002(\001\022\022\n\nnetworkX" +
3635 "ML\030\003 \001(\t\"\035\n\rSimulateUntil\022\014\n\004time\030\001 \002(\001\"" +
3636 "\247\001\n\014GTUPositions\022I\n\006gtuPos\030\001 \003(\01329.org.o" +
3637 "pentrafficsim.aimsun.proto.GTUPositions." +
3638 "GTUPosition\032L\n\013GTUPosition\022\r\n\005gtuId\030\001 \002(" +
3639 "\t\022\t\n\001x\030\002 \002(\001\022\t\n\001y\030\003 \002(\001\022\t\n\001z\030\004 \001(\001\022\r\n\005an" +
3640 "gle\030\005 \002(\001\"\362\001\n\nOTSMessage\022M\n\020createSimula" +
3641 "tion\030\001 \001(\01321.org.opentrafficsim.aimsun.p",
3642 "roto.CreateSimulationH\000\022G\n\rsimulateUntil" +
3643 "\030\002 \001(\0132..org.opentrafficsim.aimsun.proto" +
3644 ".SimulateUntilH\000\022E\n\014gtuPositions\030\003 \001(\0132-" +
3645 ".org.opentrafficsim.aimsun.proto.GTUPosi" +
3646 "tionsH\000B\005\n\003msgB\027B\025AimsunControlProtoBuf"
3647 };
3648 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
3649 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
3650 public com.google.protobuf.ExtensionRegistry assignDescriptors(
3651 com.google.protobuf.Descriptors.FileDescriptor root) {
3652 descriptor = root;
3653 return null;
3654 }
3655 };
3656 com.google.protobuf.Descriptors.FileDescriptor
3657 .internalBuildGeneratedFileFrom(descriptorData,
3658 new com.google.protobuf.Descriptors.FileDescriptor[] {
3659 }, assigner);
3660 internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor =
3661 getDescriptor().getMessageTypes().get(0);
3662 internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_fieldAccessorTable = new
3663 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3664 internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor,
3665 new java.lang.String[] { "RunTime", "WarmUpTime", "NetworkXML", });
3666 internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor =
3667 getDescriptor().getMessageTypes().get(1);
3668 internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_fieldAccessorTable = new
3669 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3670 internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor,
3671 new java.lang.String[] { "Time", });
3672 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor =
3673 getDescriptor().getMessageTypes().get(2);
3674 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_fieldAccessorTable = new
3675 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3676 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor,
3677 new java.lang.String[] { "GtuPos", });
3678 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor =
3679 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor.getNestedTypes().get(0);
3680 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_fieldAccessorTable = new
3681 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3682 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor,
3683 new java.lang.String[] { "GtuId", "X", "Y", "Z", "Angle", });
3684 internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor =
3685 getDescriptor().getMessageTypes().get(3);
3686 internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_fieldAccessorTable = new
3687 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3688 internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor,
3689 new java.lang.String[] { "CreateSimulation", "SimulateUntil", "GtuPositions", "Msg", });
3690 }
3691
3692
3693 }