1
2
3
4 package org.opentrafficsim.aimsun.proto;
5
6 public final class AimsunControlProtoBuf
7 {
8 private AimsunControlProtoBuf()
9 {
10 }
11
12 public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)
13 {
14 }
15
16 public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry)
17 {
18 registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
19 }
20
21 public interface CreateSimulationOrBuilder extends
22
23 com.google.protobuf.MessageOrBuilder
24 {
25
26
27
28
29 boolean hasRunTime();
30
31
32
33
34 double getRunTime();
35
36
37
38
39 boolean hasWarmUpTime();
40
41
42
43
44 double getWarmUpTime();
45
46
47
48
49 boolean hasNetworkXML();
50
51
52
53
54 java.lang.String getNetworkXML();
55
56
57
58
59 com.google.protobuf.ByteString getNetworkXMLBytes();
60 }
61
62
63
64
65 public static final class CreateSimulation extends com.google.protobuf.GeneratedMessageV3 implements
66
67 CreateSimulationOrBuilder
68 {
69 private static final long serialVersionUID = 0L;
70
71
72 private CreateSimulation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
73 {
74 super(builder);
75 }
76
77 private CreateSimulation()
78 {
79 runTime_ = 0D;
80 warmUpTime_ = 0D;
81 networkXML_ = "";
82 }
83
84 @java.lang.Override
85 public final com.google.protobuf.UnknownFieldSet getUnknownFields()
86 {
87 return this.unknownFields;
88 }
89
90 private CreateSimulation(com.google.protobuf.CodedInputStream input,
91 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
92 throws com.google.protobuf.InvalidProtocolBufferException
93 {
94 this();
95 int mutable_bitField0_ = 0;
96 com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder();
97 try
98 {
99 boolean done = false;
100 while (!done)
101 {
102 int tag = input.readTag();
103 switch (tag)
104 {
105 case 0:
106 done = true;
107 break;
108 default:
109 {
110 if (!parseUnknownField(input, unknownFields, extensionRegistry, tag))
111 {
112 done = true;
113 }
114 break;
115 }
116 case 9:
117 {
118 bitField0_ |= 0x00000001;
119 runTime_ = input.readDouble();
120 break;
121 }
122 case 17:
123 {
124 bitField0_ |= 0x00000002;
125 warmUpTime_ = input.readDouble();
126 break;
127 }
128 case 26:
129 {
130 com.google.protobuf.ByteString bs = input.readBytes();
131 bitField0_ |= 0x00000004;
132 networkXML_ = bs;
133 break;
134 }
135 }
136 }
137 }
138 catch (com.google.protobuf.InvalidProtocolBufferException e)
139 {
140 throw e.setUnfinishedMessage(this);
141 }
142 catch (java.io.IOException e)
143 {
144 throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
145 }
146 finally
147 {
148 this.unknownFields = unknownFields.build();
149 makeExtensionsImmutable();
150 }
151 }
152
153 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
154 {
155 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor;
156 }
157
158 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
159 {
160 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_fieldAccessorTable
161 .ensureFieldAccessorsInitialized(
162 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.class,
163 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder.class);
164 }
165
166 private int bitField0_;
167
168 public static final int RUNTIME_FIELD_NUMBER = 1;
169
170 private double runTime_;
171
172
173
174
175 public boolean hasRunTime()
176 {
177 return ((bitField0_ & 0x00000001) == 0x00000001);
178 }
179
180
181
182
183 public double getRunTime()
184 {
185 return runTime_;
186 }
187
188 public static final int WARMUPTIME_FIELD_NUMBER = 2;
189
190 private double warmUpTime_;
191
192
193
194
195 public boolean hasWarmUpTime()
196 {
197 return ((bitField0_ & 0x00000002) == 0x00000002);
198 }
199
200
201
202
203 public double getWarmUpTime()
204 {
205 return warmUpTime_;
206 }
207
208 public static final int NETWORKXML_FIELD_NUMBER = 3;
209
210 private volatile java.lang.Object networkXML_;
211
212
213
214
215 public boolean hasNetworkXML()
216 {
217 return ((bitField0_ & 0x00000004) == 0x00000004);
218 }
219
220
221
222
223 public java.lang.String getNetworkXML()
224 {
225 java.lang.Object ref = networkXML_;
226 if (ref instanceof java.lang.String)
227 {
228 return (java.lang.String) ref;
229 }
230 else
231 {
232 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
233 java.lang.String s = bs.toStringUtf8();
234 if (bs.isValidUtf8())
235 {
236 networkXML_ = s;
237 }
238 return s;
239 }
240 }
241
242
243
244
245 public com.google.protobuf.ByteString getNetworkXMLBytes()
246 {
247 java.lang.Object ref = networkXML_;
248 if (ref instanceof java.lang.String)
249 {
250 com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
251 networkXML_ = b;
252 return b;
253 }
254 else
255 {
256 return (com.google.protobuf.ByteString) ref;
257 }
258 }
259
260 private byte memoizedIsInitialized = -1;
261
262 public final boolean isInitialized()
263 {
264 byte isInitialized = memoizedIsInitialized;
265 if (isInitialized == 1)
266 return true;
267 if (isInitialized == 0)
268 return false;
269
270 if (!hasRunTime())
271 {
272 memoizedIsInitialized = 0;
273 return false;
274 }
275 if (!hasWarmUpTime())
276 {
277 memoizedIsInitialized = 0;
278 return false;
279 }
280 memoizedIsInitialized = 1;
281 return true;
282 }
283
284 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
285 {
286 if (((bitField0_ & 0x00000001) == 0x00000001))
287 {
288 output.writeDouble(1, runTime_);
289 }
290 if (((bitField0_ & 0x00000002) == 0x00000002))
291 {
292 output.writeDouble(2, warmUpTime_);
293 }
294 if (((bitField0_ & 0x00000004) == 0x00000004))
295 {
296 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, networkXML_);
297 }
298 unknownFields.writeTo(output);
299 }
300
301 public int getSerializedSize()
302 {
303 int size = memoizedSize;
304 if (size != -1)
305 return size;
306
307 size = 0;
308 if (((bitField0_ & 0x00000001) == 0x00000001))
309 {
310 size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, runTime_);
311 }
312 if (((bitField0_ & 0x00000002) == 0x00000002))
313 {
314 size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, warmUpTime_);
315 }
316 if (((bitField0_ & 0x00000004) == 0x00000004))
317 {
318 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, networkXML_);
319 }
320 size += unknownFields.getSerializedSize();
321 memoizedSize = size;
322 return size;
323 }
324
325 @java.lang.Override
326 public boolean equals(final java.lang.Object obj)
327 {
328 if (obj == this)
329 {
330 return true;
331 }
332 if (!(obj instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation))
333 {
334 return super.equals(obj);
335 }
336 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation other =
337 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) obj;
338
339 boolean result = true;
340 result = result && (hasRunTime() == other.hasRunTime());
341 if (hasRunTime())
342 {
343 result = result && (java.lang.Double.doubleToLongBits(getRunTime()) == java.lang.Double
344 .doubleToLongBits(other.getRunTime()));
345 }
346 result = result && (hasWarmUpTime() == other.hasWarmUpTime());
347 if (hasWarmUpTime())
348 {
349 result = result && (java.lang.Double.doubleToLongBits(getWarmUpTime()) == java.lang.Double
350 .doubleToLongBits(other.getWarmUpTime()));
351 }
352 result = result && (hasNetworkXML() == other.hasNetworkXML());
353 if (hasNetworkXML())
354 {
355 result = result && getNetworkXML().equals(other.getNetworkXML());
356 }
357 result = result && unknownFields.equals(other.unknownFields);
358 return result;
359 }
360
361 @java.lang.Override
362 public int hashCode()
363 {
364 if (memoizedHashCode != 0)
365 {
366 return memoizedHashCode;
367 }
368 int hash = 41;
369 hash = (19 * hash) + getDescriptor().hashCode();
370 if (hasRunTime())
371 {
372 hash = (37 * hash) + RUNTIME_FIELD_NUMBER;
373 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getRunTime()));
374 }
375 if (hasWarmUpTime())
376 {
377 hash = (37 * hash) + WARMUPTIME_FIELD_NUMBER;
378 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getWarmUpTime()));
379 }
380 if (hasNetworkXML())
381 {
382 hash = (37 * hash) + NETWORKXML_FIELD_NUMBER;
383 hash = (53 * hash) + getNetworkXML().hashCode();
384 }
385 hash = (29 * hash) + unknownFields.hashCode();
386 memoizedHashCode = hash;
387 return hash;
388 }
389
390 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(java.nio.ByteBuffer data)
391 throws com.google.protobuf.InvalidProtocolBufferException
392 {
393 return PARSER.parseFrom(data);
394 }
395
396 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(java.nio.ByteBuffer data,
397 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
398 throws com.google.protobuf.InvalidProtocolBufferException
399 {
400 return PARSER.parseFrom(data, extensionRegistry);
401 }
402
403 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
404 com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
405 {
406 return PARSER.parseFrom(data);
407 }
408
409 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
410 com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
411 throws com.google.protobuf.InvalidProtocolBufferException
412 {
413 return PARSER.parseFrom(data, extensionRegistry);
414 }
415
416 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(byte[] data)
417 throws com.google.protobuf.InvalidProtocolBufferException
418 {
419 return PARSER.parseFrom(data);
420 }
421
422 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(byte[] data,
423 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
424 throws com.google.protobuf.InvalidProtocolBufferException
425 {
426 return PARSER.parseFrom(data, extensionRegistry);
427 }
428
429 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
430 java.io.InputStream input) throws java.io.IOException
431 {
432 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
433 }
434
435 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
436 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
437 throws java.io.IOException
438 {
439 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
440 }
441
442 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseDelimitedFrom(
443 java.io.InputStream input) throws java.io.IOException
444 {
445 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
446 }
447
448 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseDelimitedFrom(
449 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
450 throws java.io.IOException
451 {
452 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
453 }
454
455 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
456 com.google.protobuf.CodedInputStream input) throws java.io.IOException
457 {
458 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
459 }
460
461 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parseFrom(
462 com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
463 throws java.io.IOException
464 {
465 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
466 }
467
468 public Builder newBuilderForType()
469 {
470 return newBuilder();
471 }
472
473 public static Builder newBuilder()
474 {
475 return DEFAULT_INSTANCE.toBuilder();
476 }
477
478 public static Builder newBuilder(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation prototype)
479 {
480 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
481 }
482
483 public Builder toBuilder()
484 {
485 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
486 }
487
488 @java.lang.Override
489 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
490 {
491 Builder builder = new Builder(parent);
492 return builder;
493 }
494
495
496
497
498 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
499
500 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder
501 {
502 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
503 {
504 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor;
505 }
506
507 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
508 {
509 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_fieldAccessorTable
510 .ensureFieldAccessorsInitialized(
511 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.class,
512 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder.class);
513 }
514
515
516 private Builder()
517 {
518 maybeForceBuilderInitialization();
519 }
520
521 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
522 {
523 super(parent);
524 maybeForceBuilderInitialization();
525 }
526
527 private void maybeForceBuilderInitialization()
528 {
529 if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders)
530 {
531 }
532 }
533
534 public Builder clear()
535 {
536 super.clear();
537 runTime_ = 0D;
538 bitField0_ = (bitField0_ & ~0x00000001);
539 warmUpTime_ = 0D;
540 bitField0_ = (bitField0_ & ~0x00000002);
541 networkXML_ = "";
542 bitField0_ = (bitField0_ & ~0x00000004);
543 return this;
544 }
545
546 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
547 {
548 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor;
549 }
550
551 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getDefaultInstanceForType()
552 {
553 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
554 }
555
556 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation build()
557 {
558 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation result = buildPartial();
559 if (!result.isInitialized())
560 {
561 throw newUninitializedMessageException(result);
562 }
563 return result;
564 }
565
566 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation buildPartial()
567 {
568 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation result =
569 new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation(this);
570 int from_bitField0_ = bitField0_;
571 int to_bitField0_ = 0;
572 if (((from_bitField0_ & 0x00000001) == 0x00000001))
573 {
574 to_bitField0_ |= 0x00000001;
575 }
576 result.runTime_ = runTime_;
577 if (((from_bitField0_ & 0x00000002) == 0x00000002))
578 {
579 to_bitField0_ |= 0x00000002;
580 }
581 result.warmUpTime_ = warmUpTime_;
582 if (((from_bitField0_ & 0x00000004) == 0x00000004))
583 {
584 to_bitField0_ |= 0x00000004;
585 }
586 result.networkXML_ = networkXML_;
587 result.bitField0_ = to_bitField0_;
588 onBuilt();
589 return result;
590 }
591
592 public Builder clone()
593 {
594 return (Builder) super.clone();
595 }
596
597 public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
598 {
599 return (Builder) super.setField(field, value);
600 }
601
602 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
603 {
604 return (Builder) super.clearField(field);
605 }
606
607 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
608 {
609 return (Builder) super.clearOneof(oneof);
610 }
611
612 public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index,
613 java.lang.Object value)
614 {
615 return (Builder) super.setRepeatedField(field, index, value);
616 }
617
618 public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
619 {
620 return (Builder) super.addRepeatedField(field, value);
621 }
622
623 public Builder mergeFrom(com.google.protobuf.Message other)
624 {
625 if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation)
626 {
627 return mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) other);
628 }
629 else
630 {
631 super.mergeFrom(other);
632 return this;
633 }
634 }
635
636 public Builder mergeFrom(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation other)
637 {
638 if (other == org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance())
639 return this;
640 if (other.hasRunTime())
641 {
642 setRunTime(other.getRunTime());
643 }
644 if (other.hasWarmUpTime())
645 {
646 setWarmUpTime(other.getWarmUpTime());
647 }
648 if (other.hasNetworkXML())
649 {
650 bitField0_ |= 0x00000004;
651 networkXML_ = other.networkXML_;
652 onChanged();
653 }
654 this.mergeUnknownFields(other.unknownFields);
655 onChanged();
656 return this;
657 }
658
659 public final boolean isInitialized()
660 {
661 if (!hasRunTime())
662 {
663 return false;
664 }
665 if (!hasWarmUpTime())
666 {
667 return false;
668 }
669 return true;
670 }
671
672 public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
673 com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
674 {
675 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation parsedMessage = null;
676 try
677 {
678 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
679 }
680 catch (com.google.protobuf.InvalidProtocolBufferException e)
681 {
682 parsedMessage =
683 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) e.getUnfinishedMessage();
684 throw e.unwrapIOException();
685 }
686 finally
687 {
688 if (parsedMessage != null)
689 {
690 mergeFrom(parsedMessage);
691 }
692 }
693 return this;
694 }
695
696 private int bitField0_;
697
698 private double runTime_;
699
700
701
702
703 public boolean hasRunTime()
704 {
705 return ((bitField0_ & 0x00000001) == 0x00000001);
706 }
707
708
709
710
711 public double getRunTime()
712 {
713 return runTime_;
714 }
715
716
717
718
719 public Builder setRunTime(double value)
720 {
721 bitField0_ |= 0x00000001;
722 runTime_ = value;
723 onChanged();
724 return this;
725 }
726
727
728
729
730 public Builder clearRunTime()
731 {
732 bitField0_ = (bitField0_ & ~0x00000001);
733 runTime_ = 0D;
734 onChanged();
735 return this;
736 }
737
738 private double warmUpTime_;
739
740
741
742
743 public boolean hasWarmUpTime()
744 {
745 return ((bitField0_ & 0x00000002) == 0x00000002);
746 }
747
748
749
750
751 public double getWarmUpTime()
752 {
753 return warmUpTime_;
754 }
755
756
757
758
759 public Builder setWarmUpTime(double value)
760 {
761 bitField0_ |= 0x00000002;
762 warmUpTime_ = value;
763 onChanged();
764 return this;
765 }
766
767
768
769
770 public Builder clearWarmUpTime()
771 {
772 bitField0_ = (bitField0_ & ~0x00000002);
773 warmUpTime_ = 0D;
774 onChanged();
775 return this;
776 }
777
778 private java.lang.Object networkXML_ = "";
779
780
781
782
783 public boolean hasNetworkXML()
784 {
785 return ((bitField0_ & 0x00000004) == 0x00000004);
786 }
787
788
789
790
791 public java.lang.String getNetworkXML()
792 {
793 java.lang.Object ref = networkXML_;
794 if (!(ref instanceof java.lang.String))
795 {
796 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
797 java.lang.String s = bs.toStringUtf8();
798 if (bs.isValidUtf8())
799 {
800 networkXML_ = s;
801 }
802 return s;
803 }
804 else
805 {
806 return (java.lang.String) ref;
807 }
808 }
809
810
811
812
813 public com.google.protobuf.ByteString getNetworkXMLBytes()
814 {
815 java.lang.Object ref = networkXML_;
816 if (ref instanceof String)
817 {
818 com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
819 networkXML_ = b;
820 return b;
821 }
822 else
823 {
824 return (com.google.protobuf.ByteString) ref;
825 }
826 }
827
828
829
830
831 public Builder setNetworkXML(java.lang.String value)
832 {
833 if (value == null)
834 {
835 throw new NullPointerException();
836 }
837 bitField0_ |= 0x00000004;
838 networkXML_ = value;
839 onChanged();
840 return this;
841 }
842
843
844
845
846 public Builder clearNetworkXML()
847 {
848 bitField0_ = (bitField0_ & ~0x00000004);
849 networkXML_ = getDefaultInstance().getNetworkXML();
850 onChanged();
851 return this;
852 }
853
854
855
856
857 public Builder setNetworkXMLBytes(com.google.protobuf.ByteString value)
858 {
859 if (value == null)
860 {
861 throw new NullPointerException();
862 }
863 bitField0_ |= 0x00000004;
864 networkXML_ = value;
865 onChanged();
866 return this;
867 }
868
869 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
870 {
871 return super.setUnknownFields(unknownFields);
872 }
873
874 public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
875 {
876 return super.mergeUnknownFields(unknownFields);
877 }
878
879
880 }
881
882
883 private static final org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation DEFAULT_INSTANCE;
884 static
885 {
886 DEFAULT_INSTANCE = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation();
887 }
888
889 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getDefaultInstance()
890 {
891 return DEFAULT_INSTANCE;
892 }
893
894 @java.lang.Deprecated
895 public static final com.google.protobuf.Parser<CreateSimulation> PARSER =
896 new com.google.protobuf.AbstractParser<CreateSimulation>()
897 {
898 public CreateSimulation parsePartialFrom(com.google.protobuf.CodedInputStream input,
899 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
900 throws com.google.protobuf.InvalidProtocolBufferException
901 {
902 return new CreateSimulation(input, extensionRegistry);
903 }
904 };
905
906 public static com.google.protobuf.Parser<CreateSimulation> parser()
907 {
908 return PARSER;
909 }
910
911 @java.lang.Override
912 public com.google.protobuf.Parser<CreateSimulation> getParserForType()
913 {
914 return PARSER;
915 }
916
917 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getDefaultInstanceForType()
918 {
919 return DEFAULT_INSTANCE;
920 }
921
922 }
923
924 public interface SimulateUntilOrBuilder extends
925
926 com.google.protobuf.MessageOrBuilder
927 {
928
929
930
931
932 boolean hasTime();
933
934
935
936
937 double getTime();
938 }
939
940
941
942
943 public static final class SimulateUntil extends com.google.protobuf.GeneratedMessageV3 implements
944
945 SimulateUntilOrBuilder
946 {
947 private static final long serialVersionUID = 0L;
948
949
950 private SimulateUntil(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
951 {
952 super(builder);
953 }
954
955 private SimulateUntil()
956 {
957 time_ = 0D;
958 }
959
960 @java.lang.Override
961 public final com.google.protobuf.UnknownFieldSet getUnknownFields()
962 {
963 return this.unknownFields;
964 }
965
966 private SimulateUntil(com.google.protobuf.CodedInputStream input,
967 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
968 throws com.google.protobuf.InvalidProtocolBufferException
969 {
970 this();
971 int mutable_bitField0_ = 0;
972 com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder();
973 try
974 {
975 boolean done = false;
976 while (!done)
977 {
978 int tag = input.readTag();
979 switch (tag)
980 {
981 case 0:
982 done = true;
983 break;
984 default:
985 {
986 if (!parseUnknownField(input, unknownFields, extensionRegistry, tag))
987 {
988 done = true;
989 }
990 break;
991 }
992 case 9:
993 {
994 bitField0_ |= 0x00000001;
995 time_ = input.readDouble();
996 break;
997 }
998 }
999 }
1000 }
1001 catch (com.google.protobuf.InvalidProtocolBufferException e)
1002 {
1003 throw e.setUnfinishedMessage(this);
1004 }
1005 catch (java.io.IOException e)
1006 {
1007 throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
1008 }
1009 finally
1010 {
1011 this.unknownFields = unknownFields.build();
1012 makeExtensionsImmutable();
1013 }
1014 }
1015
1016 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
1017 {
1018 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor;
1019 }
1020
1021 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
1022 {
1023 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_fieldAccessorTable
1024 .ensureFieldAccessorsInitialized(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.class,
1025 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder.class);
1026 }
1027
1028 private int bitField0_;
1029
1030 public static final int TIME_FIELD_NUMBER = 1;
1031
1032 private double time_;
1033
1034
1035
1036
1037 public boolean hasTime()
1038 {
1039 return ((bitField0_ & 0x00000001) == 0x00000001);
1040 }
1041
1042
1043
1044
1045 public double getTime()
1046 {
1047 return time_;
1048 }
1049
1050 private byte memoizedIsInitialized = -1;
1051
1052 public final boolean isInitialized()
1053 {
1054 byte isInitialized = memoizedIsInitialized;
1055 if (isInitialized == 1)
1056 return true;
1057 if (isInitialized == 0)
1058 return false;
1059
1060 if (!hasTime())
1061 {
1062 memoizedIsInitialized = 0;
1063 return false;
1064 }
1065 memoizedIsInitialized = 1;
1066 return true;
1067 }
1068
1069 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
1070 {
1071 if (((bitField0_ & 0x00000001) == 0x00000001))
1072 {
1073 output.writeDouble(1, time_);
1074 }
1075 unknownFields.writeTo(output);
1076 }
1077
1078 public int getSerializedSize()
1079 {
1080 int size = memoizedSize;
1081 if (size != -1)
1082 return size;
1083
1084 size = 0;
1085 if (((bitField0_ & 0x00000001) == 0x00000001))
1086 {
1087 size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, time_);
1088 }
1089 size += unknownFields.getSerializedSize();
1090 memoizedSize = size;
1091 return size;
1092 }
1093
1094 @java.lang.Override
1095 public boolean equals(final java.lang.Object obj)
1096 {
1097 if (obj == this)
1098 {
1099 return true;
1100 }
1101 if (!(obj instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil))
1102 {
1103 return super.equals(obj);
1104 }
1105 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil other =
1106 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) obj;
1107
1108 boolean result = true;
1109 result = result && (hasTime() == other.hasTime());
1110 if (hasTime())
1111 {
1112 result = result
1113 && (java.lang.Double.doubleToLongBits(getTime()) == java.lang.Double.doubleToLongBits(other.getTime()));
1114 }
1115 result = result && unknownFields.equals(other.unknownFields);
1116 return result;
1117 }
1118
1119 @java.lang.Override
1120 public int hashCode()
1121 {
1122 if (memoizedHashCode != 0)
1123 {
1124 return memoizedHashCode;
1125 }
1126 int hash = 41;
1127 hash = (19 * hash) + getDescriptor().hashCode();
1128 if (hasTime())
1129 {
1130 hash = (37 * hash) + TIME_FIELD_NUMBER;
1131 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getTime()));
1132 }
1133 hash = (29 * hash) + unknownFields.hashCode();
1134 memoizedHashCode = hash;
1135 return hash;
1136 }
1137
1138 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(java.nio.ByteBuffer data)
1139 throws com.google.protobuf.InvalidProtocolBufferException
1140 {
1141 return PARSER.parseFrom(data);
1142 }
1143
1144 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(java.nio.ByteBuffer data,
1145 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1146 throws com.google.protobuf.InvalidProtocolBufferException
1147 {
1148 return PARSER.parseFrom(data, extensionRegistry);
1149 }
1150
1151 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
1152 com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
1153 {
1154 return PARSER.parseFrom(data);
1155 }
1156
1157 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
1158 com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1159 throws com.google.protobuf.InvalidProtocolBufferException
1160 {
1161 return PARSER.parseFrom(data, extensionRegistry);
1162 }
1163
1164 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(byte[] data)
1165 throws com.google.protobuf.InvalidProtocolBufferException
1166 {
1167 return PARSER.parseFrom(data);
1168 }
1169
1170 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(byte[] data,
1171 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1172 throws com.google.protobuf.InvalidProtocolBufferException
1173 {
1174 return PARSER.parseFrom(data, extensionRegistry);
1175 }
1176
1177 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(java.io.InputStream input)
1178 throws java.io.IOException
1179 {
1180 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1181 }
1182
1183 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(java.io.InputStream input,
1184 com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
1185 {
1186 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
1187 }
1188
1189 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseDelimitedFrom(
1190 java.io.InputStream input) throws java.io.IOException
1191 {
1192 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1193 }
1194
1195 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseDelimitedFrom(
1196 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1197 throws java.io.IOException
1198 {
1199 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1200 }
1201
1202 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
1203 com.google.protobuf.CodedInputStream input) throws java.io.IOException
1204 {
1205 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1206 }
1207
1208 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parseFrom(
1209 com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1210 throws java.io.IOException
1211 {
1212 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
1213 }
1214
1215 public Builder newBuilderForType()
1216 {
1217 return newBuilder();
1218 }
1219
1220 public static Builder newBuilder()
1221 {
1222 return DEFAULT_INSTANCE.toBuilder();
1223 }
1224
1225 public static Builder newBuilder(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil prototype)
1226 {
1227 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1228 }
1229
1230 public Builder toBuilder()
1231 {
1232 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1233 }
1234
1235 @java.lang.Override
1236 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
1237 {
1238 Builder builder = new Builder(parent);
1239 return builder;
1240 }
1241
1242
1243
1244
1245 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1246
1247 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder
1248 {
1249 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
1250 {
1251 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor;
1252 }
1253
1254 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
1255 {
1256 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_fieldAccessorTable
1257 .ensureFieldAccessorsInitialized(
1258 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.class,
1259 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder.class);
1260 }
1261
1262
1263 private Builder()
1264 {
1265 maybeForceBuilderInitialization();
1266 }
1267
1268 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
1269 {
1270 super(parent);
1271 maybeForceBuilderInitialization();
1272 }
1273
1274 private void maybeForceBuilderInitialization()
1275 {
1276 if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders)
1277 {
1278 }
1279 }
1280
1281 public Builder clear()
1282 {
1283 super.clear();
1284 time_ = 0D;
1285 bitField0_ = (bitField0_ & ~0x00000001);
1286 return this;
1287 }
1288
1289 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
1290 {
1291 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor;
1292 }
1293
1294 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getDefaultInstanceForType()
1295 {
1296 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
1297 }
1298
1299 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil build()
1300 {
1301 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil result = buildPartial();
1302 if (!result.isInitialized())
1303 {
1304 throw newUninitializedMessageException(result);
1305 }
1306 return result;
1307 }
1308
1309 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil buildPartial()
1310 {
1311 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil result =
1312 new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil(this);
1313 int from_bitField0_ = bitField0_;
1314 int to_bitField0_ = 0;
1315 if (((from_bitField0_ & 0x00000001) == 0x00000001))
1316 {
1317 to_bitField0_ |= 0x00000001;
1318 }
1319 result.time_ = time_;
1320 result.bitField0_ = to_bitField0_;
1321 onBuilt();
1322 return result;
1323 }
1324
1325 public Builder clone()
1326 {
1327 return (Builder) super.clone();
1328 }
1329
1330 public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
1331 {
1332 return (Builder) super.setField(field, value);
1333 }
1334
1335 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
1336 {
1337 return (Builder) super.clearField(field);
1338 }
1339
1340 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
1341 {
1342 return (Builder) super.clearOneof(oneof);
1343 }
1344
1345 public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index,
1346 java.lang.Object value)
1347 {
1348 return (Builder) super.setRepeatedField(field, index, value);
1349 }
1350
1351 public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
1352 {
1353 return (Builder) super.addRepeatedField(field, value);
1354 }
1355
1356 public Builder mergeFrom(com.google.protobuf.Message other)
1357 {
1358 if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil)
1359 {
1360 return mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) other);
1361 }
1362 else
1363 {
1364 super.mergeFrom(other);
1365 return this;
1366 }
1367 }
1368
1369 public Builder mergeFrom(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil other)
1370 {
1371 if (other == org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance())
1372 return this;
1373 if (other.hasTime())
1374 {
1375 setTime(other.getTime());
1376 }
1377 this.mergeUnknownFields(other.unknownFields);
1378 onChanged();
1379 return this;
1380 }
1381
1382 public final boolean isInitialized()
1383 {
1384 if (!hasTime())
1385 {
1386 return false;
1387 }
1388 return true;
1389 }
1390
1391 public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
1392 com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
1393 {
1394 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil parsedMessage = null;
1395 try
1396 {
1397 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1398 }
1399 catch (com.google.protobuf.InvalidProtocolBufferException e)
1400 {
1401 parsedMessage =
1402 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) e.getUnfinishedMessage();
1403 throw e.unwrapIOException();
1404 }
1405 finally
1406 {
1407 if (parsedMessage != null)
1408 {
1409 mergeFrom(parsedMessage);
1410 }
1411 }
1412 return this;
1413 }
1414
1415 private int bitField0_;
1416
1417 private double time_;
1418
1419
1420
1421
1422 public boolean hasTime()
1423 {
1424 return ((bitField0_ & 0x00000001) == 0x00000001);
1425 }
1426
1427
1428
1429
1430 public double getTime()
1431 {
1432 return time_;
1433 }
1434
1435
1436
1437
1438 public Builder setTime(double value)
1439 {
1440 bitField0_ |= 0x00000001;
1441 time_ = value;
1442 onChanged();
1443 return this;
1444 }
1445
1446
1447
1448
1449 public Builder clearTime()
1450 {
1451 bitField0_ = (bitField0_ & ~0x00000001);
1452 time_ = 0D;
1453 onChanged();
1454 return this;
1455 }
1456
1457 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
1458 {
1459 return super.setUnknownFields(unknownFields);
1460 }
1461
1462 public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
1463 {
1464 return super.mergeUnknownFields(unknownFields);
1465 }
1466
1467
1468 }
1469
1470
1471 private static final org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil DEFAULT_INSTANCE;
1472 static
1473 {
1474 DEFAULT_INSTANCE = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil();
1475 }
1476
1477 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getDefaultInstance()
1478 {
1479 return DEFAULT_INSTANCE;
1480 }
1481
1482 @java.lang.Deprecated
1483 public static final com.google.protobuf.Parser<SimulateUntil> PARSER =
1484 new com.google.protobuf.AbstractParser<SimulateUntil>()
1485 {
1486 public SimulateUntil parsePartialFrom(com.google.protobuf.CodedInputStream input,
1487 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1488 throws com.google.protobuf.InvalidProtocolBufferException
1489 {
1490 return new SimulateUntil(input, extensionRegistry);
1491 }
1492 };
1493
1494 public static com.google.protobuf.Parser<SimulateUntil> parser()
1495 {
1496 return PARSER;
1497 }
1498
1499 @java.lang.Override
1500 public com.google.protobuf.Parser<SimulateUntil> getParserForType()
1501 {
1502 return PARSER;
1503 }
1504
1505 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getDefaultInstanceForType()
1506 {
1507 return DEFAULT_INSTANCE;
1508 }
1509
1510 }
1511
1512 public interface GTUPositionsOrBuilder extends
1513
1514 com.google.protobuf.MessageOrBuilder
1515 {
1516
1517
1518
1519
1520 java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> getGtuPosList();
1521
1522
1523
1524
1525 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getGtuPos(int index);
1526
1527
1528
1529
1530 int getGtuPosCount();
1531
1532
1533
1534
1535 java.util.List<
1536 ? extends org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder> getGtuPosOrBuilderList();
1537
1538
1539
1540
1541 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder getGtuPosOrBuilder(int index);
1542
1543
1544
1545
1546 boolean hasStatus();
1547
1548
1549
1550
1551 java.lang.String getStatus();
1552
1553
1554
1555
1556 com.google.protobuf.ByteString getStatusBytes();
1557 }
1558
1559
1560
1561
1562 public static final class GTUPositions extends com.google.protobuf.GeneratedMessageV3 implements
1563
1564 GTUPositionsOrBuilder
1565 {
1566 private static final long serialVersionUID = 0L;
1567
1568
1569 private GTUPositions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
1570 {
1571 super(builder);
1572 }
1573
1574 private GTUPositions()
1575 {
1576 gtuPos_ = java.util.Collections.emptyList();
1577 status_ = "";
1578 }
1579
1580 @java.lang.Override
1581 public final com.google.protobuf.UnknownFieldSet getUnknownFields()
1582 {
1583 return this.unknownFields;
1584 }
1585
1586 private GTUPositions(com.google.protobuf.CodedInputStream input,
1587 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1588 throws com.google.protobuf.InvalidProtocolBufferException
1589 {
1590 this();
1591 int mutable_bitField0_ = 0;
1592 com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder();
1593 try
1594 {
1595 boolean done = false;
1596 while (!done)
1597 {
1598 int tag = input.readTag();
1599 switch (tag)
1600 {
1601 case 0:
1602 done = true;
1603 break;
1604 default:
1605 {
1606 if (!parseUnknownField(input, unknownFields, extensionRegistry, tag))
1607 {
1608 done = true;
1609 }
1610 break;
1611 }
1612 case 10:
1613 {
1614 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001))
1615 {
1616 gtuPos_ = new java.util.ArrayList<
1617 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition>();
1618 mutable_bitField0_ |= 0x00000001;
1619 }
1620 gtuPos_.add(input.readMessage(
1621 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.PARSER,
1622 extensionRegistry));
1623 break;
1624 }
1625 case 18:
1626 {
1627 com.google.protobuf.ByteString bs = input.readBytes();
1628 bitField0_ |= 0x00000001;
1629 status_ = bs;
1630 break;
1631 }
1632 }
1633 }
1634 }
1635 catch (com.google.protobuf.InvalidProtocolBufferException e)
1636 {
1637 throw e.setUnfinishedMessage(this);
1638 }
1639 catch (java.io.IOException e)
1640 {
1641 throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
1642 }
1643 finally
1644 {
1645 if (((mutable_bitField0_ & 0x00000001) == 0x00000001))
1646 {
1647 gtuPos_ = java.util.Collections.unmodifiableList(gtuPos_);
1648 }
1649 this.unknownFields = unknownFields.build();
1650 makeExtensionsImmutable();
1651 }
1652 }
1653
1654 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
1655 {
1656 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor;
1657 }
1658
1659 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
1660 {
1661 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_fieldAccessorTable
1662 .ensureFieldAccessorsInitialized(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.class,
1663 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder.class);
1664 }
1665
1666 public interface GTUPositionOrBuilder extends
1667
1668 com.google.protobuf.MessageOrBuilder
1669 {
1670
1671
1672
1673
1674 boolean hasGtuId();
1675
1676
1677
1678
1679 java.lang.String getGtuId();
1680
1681
1682
1683
1684 com.google.protobuf.ByteString getGtuIdBytes();
1685
1686
1687
1688
1689 boolean hasX();
1690
1691
1692
1693
1694 double getX();
1695
1696
1697
1698
1699 boolean hasY();
1700
1701
1702
1703
1704 double getY();
1705
1706
1707
1708
1709 boolean hasZ();
1710
1711
1712
1713
1714 double getZ();
1715
1716
1717
1718
1719 boolean hasAngle();
1720
1721
1722
1723
1724 double getAngle();
1725
1726
1727
1728
1729 boolean hasWidth();
1730
1731
1732
1733
1734 double getWidth();
1735
1736
1737
1738
1739 boolean hasLength();
1740
1741
1742
1743
1744 double getLength();
1745
1746
1747
1748
1749 boolean hasGtuTypeId();
1750
1751
1752
1753
1754 int getGtuTypeId();
1755
1756
1757
1758
1759 boolean hasSpeed();
1760
1761
1762
1763
1764 double getSpeed();
1765 }
1766
1767
1768
1769
1770 public static final class GTUPosition extends com.google.protobuf.GeneratedMessageV3 implements
1771
1772 GTUPositionOrBuilder
1773 {
1774 private static final long serialVersionUID = 0L;
1775
1776
1777 private GTUPosition(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
1778 {
1779 super(builder);
1780 }
1781
1782 private GTUPosition()
1783 {
1784 gtuId_ = "";
1785 x_ = 0D;
1786 y_ = 0D;
1787 z_ = 0D;
1788 angle_ = 0D;
1789 width_ = 0D;
1790 length_ = 0D;
1791 gtuTypeId_ = 0;
1792 speed_ = 0D;
1793 }
1794
1795 @java.lang.Override
1796 public final com.google.protobuf.UnknownFieldSet getUnknownFields()
1797 {
1798 return this.unknownFields;
1799 }
1800
1801 private GTUPosition(com.google.protobuf.CodedInputStream input,
1802 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1803 throws com.google.protobuf.InvalidProtocolBufferException
1804 {
1805 this();
1806 int mutable_bitField0_ = 0;
1807 com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder();
1808 try
1809 {
1810 boolean done = false;
1811 while (!done)
1812 {
1813 int tag = input.readTag();
1814 switch (tag)
1815 {
1816 case 0:
1817 done = true;
1818 break;
1819 default:
1820 {
1821 if (!parseUnknownField(input, unknownFields, extensionRegistry, tag))
1822 {
1823 done = true;
1824 }
1825 break;
1826 }
1827 case 10:
1828 {
1829 com.google.protobuf.ByteString bs = input.readBytes();
1830 bitField0_ |= 0x00000001;
1831 gtuId_ = bs;
1832 break;
1833 }
1834 case 17:
1835 {
1836 bitField0_ |= 0x00000002;
1837 x_ = input.readDouble();
1838 break;
1839 }
1840 case 25:
1841 {
1842 bitField0_ |= 0x00000004;
1843 y_ = input.readDouble();
1844 break;
1845 }
1846 case 33:
1847 {
1848 bitField0_ |= 0x00000008;
1849 z_ = input.readDouble();
1850 break;
1851 }
1852 case 41:
1853 {
1854 bitField0_ |= 0x00000010;
1855 angle_ = input.readDouble();
1856 break;
1857 }
1858 case 49:
1859 {
1860 bitField0_ |= 0x00000020;
1861 width_ = input.readDouble();
1862 break;
1863 }
1864 case 57:
1865 {
1866 bitField0_ |= 0x00000040;
1867 length_ = input.readDouble();
1868 break;
1869 }
1870 case 64:
1871 {
1872 bitField0_ |= 0x00000080;
1873 gtuTypeId_ = input.readInt32();
1874 break;
1875 }
1876 case 73:
1877 {
1878 bitField0_ |= 0x00000100;
1879 speed_ = input.readDouble();
1880 break;
1881 }
1882 }
1883 }
1884 }
1885 catch (com.google.protobuf.InvalidProtocolBufferException e)
1886 {
1887 throw e.setUnfinishedMessage(this);
1888 }
1889 catch (java.io.IOException e)
1890 {
1891 throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
1892 }
1893 finally
1894 {
1895 this.unknownFields = unknownFields.build();
1896 makeExtensionsImmutable();
1897 }
1898 }
1899
1900 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
1901 {
1902 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor;
1903 }
1904
1905 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
1906 {
1907 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_fieldAccessorTable
1908 .ensureFieldAccessorsInitialized(
1909 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.class,
1910 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder.class);
1911 }
1912
1913 private int bitField0_;
1914
1915 public static final int GTUID_FIELD_NUMBER = 1;
1916
1917 private volatile java.lang.Object gtuId_;
1918
1919
1920
1921
1922 public boolean hasGtuId()
1923 {
1924 return ((bitField0_ & 0x00000001) == 0x00000001);
1925 }
1926
1927
1928
1929
1930 public java.lang.String getGtuId()
1931 {
1932 java.lang.Object ref = gtuId_;
1933 if (ref instanceof java.lang.String)
1934 {
1935 return (java.lang.String) ref;
1936 }
1937 else
1938 {
1939 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1940 java.lang.String s = bs.toStringUtf8();
1941 if (bs.isValidUtf8())
1942 {
1943 gtuId_ = s;
1944 }
1945 return s;
1946 }
1947 }
1948
1949
1950
1951
1952 public com.google.protobuf.ByteString getGtuIdBytes()
1953 {
1954 java.lang.Object ref = gtuId_;
1955 if (ref instanceof java.lang.String)
1956 {
1957 com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1958 gtuId_ = b;
1959 return b;
1960 }
1961 else
1962 {
1963 return (com.google.protobuf.ByteString) ref;
1964 }
1965 }
1966
1967 public static final int X_FIELD_NUMBER = 2;
1968
1969 private double x_;
1970
1971
1972
1973
1974 public boolean hasX()
1975 {
1976 return ((bitField0_ & 0x00000002) == 0x00000002);
1977 }
1978
1979
1980
1981
1982 public double getX()
1983 {
1984 return x_;
1985 }
1986
1987 public static final int Y_FIELD_NUMBER = 3;
1988
1989 private double y_;
1990
1991
1992
1993
1994 public boolean hasY()
1995 {
1996 return ((bitField0_ & 0x00000004) == 0x00000004);
1997 }
1998
1999
2000
2001
2002 public double getY()
2003 {
2004 return y_;
2005 }
2006
2007 public static final int Z_FIELD_NUMBER = 4;
2008
2009 private double z_;
2010
2011
2012
2013
2014 public boolean hasZ()
2015 {
2016 return ((bitField0_ & 0x00000008) == 0x00000008);
2017 }
2018
2019
2020
2021
2022 public double getZ()
2023 {
2024 return z_;
2025 }
2026
2027 public static final int ANGLE_FIELD_NUMBER = 5;
2028
2029 private double angle_;
2030
2031
2032
2033
2034 public boolean hasAngle()
2035 {
2036 return ((bitField0_ & 0x00000010) == 0x00000010);
2037 }
2038
2039
2040
2041
2042 public double getAngle()
2043 {
2044 return angle_;
2045 }
2046
2047 public static final int WIDTH_FIELD_NUMBER = 6;
2048
2049 private double width_;
2050
2051
2052
2053
2054 public boolean hasWidth()
2055 {
2056 return ((bitField0_ & 0x00000020) == 0x00000020);
2057 }
2058
2059
2060
2061
2062 public double getWidth()
2063 {
2064 return width_;
2065 }
2066
2067 public static final int LENGTH_FIELD_NUMBER = 7;
2068
2069 private double length_;
2070
2071
2072
2073
2074 public boolean hasLength()
2075 {
2076 return ((bitField0_ & 0x00000040) == 0x00000040);
2077 }
2078
2079
2080
2081
2082 public double getLength()
2083 {
2084 return length_;
2085 }
2086
2087 public static final int GTUTYPEID_FIELD_NUMBER = 8;
2088
2089 private int gtuTypeId_;
2090
2091
2092
2093
2094 public boolean hasGtuTypeId()
2095 {
2096 return ((bitField0_ & 0x00000080) == 0x00000080);
2097 }
2098
2099
2100
2101
2102 public int getGtuTypeId()
2103 {
2104 return gtuTypeId_;
2105 }
2106
2107 public static final int SPEED_FIELD_NUMBER = 9;
2108
2109 private double speed_;
2110
2111
2112
2113
2114 public boolean hasSpeed()
2115 {
2116 return ((bitField0_ & 0x00000100) == 0x00000100);
2117 }
2118
2119
2120
2121
2122 public double getSpeed()
2123 {
2124 return speed_;
2125 }
2126
2127 private byte memoizedIsInitialized = -1;
2128
2129 public final boolean isInitialized()
2130 {
2131 byte isInitialized = memoizedIsInitialized;
2132 if (isInitialized == 1)
2133 return true;
2134 if (isInitialized == 0)
2135 return false;
2136
2137 if (!hasGtuId())
2138 {
2139 memoizedIsInitialized = 0;
2140 return false;
2141 }
2142 if (!hasX())
2143 {
2144 memoizedIsInitialized = 0;
2145 return false;
2146 }
2147 if (!hasY())
2148 {
2149 memoizedIsInitialized = 0;
2150 return false;
2151 }
2152 if (!hasAngle())
2153 {
2154 memoizedIsInitialized = 0;
2155 return false;
2156 }
2157 if (!hasWidth())
2158 {
2159 memoizedIsInitialized = 0;
2160 return false;
2161 }
2162 if (!hasLength())
2163 {
2164 memoizedIsInitialized = 0;
2165 return false;
2166 }
2167 if (!hasGtuTypeId())
2168 {
2169 memoizedIsInitialized = 0;
2170 return false;
2171 }
2172 if (!hasSpeed())
2173 {
2174 memoizedIsInitialized = 0;
2175 return false;
2176 }
2177 memoizedIsInitialized = 1;
2178 return true;
2179 }
2180
2181 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
2182 {
2183 if (((bitField0_ & 0x00000001) == 0x00000001))
2184 {
2185 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gtuId_);
2186 }
2187 if (((bitField0_ & 0x00000002) == 0x00000002))
2188 {
2189 output.writeDouble(2, x_);
2190 }
2191 if (((bitField0_ & 0x00000004) == 0x00000004))
2192 {
2193 output.writeDouble(3, y_);
2194 }
2195 if (((bitField0_ & 0x00000008) == 0x00000008))
2196 {
2197 output.writeDouble(4, z_);
2198 }
2199 if (((bitField0_ & 0x00000010) == 0x00000010))
2200 {
2201 output.writeDouble(5, angle_);
2202 }
2203 if (((bitField0_ & 0x00000020) == 0x00000020))
2204 {
2205 output.writeDouble(6, width_);
2206 }
2207 if (((bitField0_ & 0x00000040) == 0x00000040))
2208 {
2209 output.writeDouble(7, length_);
2210 }
2211 if (((bitField0_ & 0x00000080) == 0x00000080))
2212 {
2213 output.writeInt32(8, gtuTypeId_);
2214 }
2215 if (((bitField0_ & 0x00000100) == 0x00000100))
2216 {
2217 output.writeDouble(9, speed_);
2218 }
2219 unknownFields.writeTo(output);
2220 }
2221
2222 public int getSerializedSize()
2223 {
2224 int size = memoizedSize;
2225 if (size != -1)
2226 return size;
2227
2228 size = 0;
2229 if (((bitField0_ & 0x00000001) == 0x00000001))
2230 {
2231 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gtuId_);
2232 }
2233 if (((bitField0_ & 0x00000002) == 0x00000002))
2234 {
2235 size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, x_);
2236 }
2237 if (((bitField0_ & 0x00000004) == 0x00000004))
2238 {
2239 size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, y_);
2240 }
2241 if (((bitField0_ & 0x00000008) == 0x00000008))
2242 {
2243 size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, z_);
2244 }
2245 if (((bitField0_ & 0x00000010) == 0x00000010))
2246 {
2247 size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, angle_);
2248 }
2249 if (((bitField0_ & 0x00000020) == 0x00000020))
2250 {
2251 size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, width_);
2252 }
2253 if (((bitField0_ & 0x00000040) == 0x00000040))
2254 {
2255 size += com.google.protobuf.CodedOutputStream.computeDoubleSize(7, length_);
2256 }
2257 if (((bitField0_ & 0x00000080) == 0x00000080))
2258 {
2259 size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, gtuTypeId_);
2260 }
2261 if (((bitField0_ & 0x00000100) == 0x00000100))
2262 {
2263 size += com.google.protobuf.CodedOutputStream.computeDoubleSize(9, speed_);
2264 }
2265 size += unknownFields.getSerializedSize();
2266 memoizedSize = size;
2267 return size;
2268 }
2269
2270 @java.lang.Override
2271 public boolean equals(final java.lang.Object obj)
2272 {
2273 if (obj == this)
2274 {
2275 return true;
2276 }
2277 if (!(obj instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition))
2278 {
2279 return super.equals(obj);
2280 }
2281 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition other =
2282 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition) obj;
2283
2284 boolean result = true;
2285 result = result && (hasGtuId() == other.hasGtuId());
2286 if (hasGtuId())
2287 {
2288 result = result && getGtuId().equals(other.getGtuId());
2289 }
2290 result = result && (hasX() == other.hasX());
2291 if (hasX())
2292 {
2293 result = result
2294 && (java.lang.Double.doubleToLongBits(getX()) == java.lang.Double.doubleToLongBits(other.getX()));
2295 }
2296 result = result && (hasY() == other.hasY());
2297 if (hasY())
2298 {
2299 result = result
2300 && (java.lang.Double.doubleToLongBits(getY()) == java.lang.Double.doubleToLongBits(other.getY()));
2301 }
2302 result = result && (hasZ() == other.hasZ());
2303 if (hasZ())
2304 {
2305 result = result
2306 && (java.lang.Double.doubleToLongBits(getZ()) == java.lang.Double.doubleToLongBits(other.getZ()));
2307 }
2308 result = result && (hasAngle() == other.hasAngle());
2309 if (hasAngle())
2310 {
2311 result = result && (java.lang.Double.doubleToLongBits(getAngle()) == java.lang.Double
2312 .doubleToLongBits(other.getAngle()));
2313 }
2314 result = result && (hasWidth() == other.hasWidth());
2315 if (hasWidth())
2316 {
2317 result = result && (java.lang.Double.doubleToLongBits(getWidth()) == java.lang.Double
2318 .doubleToLongBits(other.getWidth()));
2319 }
2320 result = result && (hasLength() == other.hasLength());
2321 if (hasLength())
2322 {
2323 result = result && (java.lang.Double.doubleToLongBits(getLength()) == java.lang.Double
2324 .doubleToLongBits(other.getLength()));
2325 }
2326 result = result && (hasGtuTypeId() == other.hasGtuTypeId());
2327 if (hasGtuTypeId())
2328 {
2329 result = result && (getGtuTypeId() == other.getGtuTypeId());
2330 }
2331 result = result && (hasSpeed() == other.hasSpeed());
2332 if (hasSpeed())
2333 {
2334 result = result && (java.lang.Double.doubleToLongBits(getSpeed()) == java.lang.Double
2335 .doubleToLongBits(other.getSpeed()));
2336 }
2337 result = result && unknownFields.equals(other.unknownFields);
2338 return result;
2339 }
2340
2341 @java.lang.Override
2342 public int hashCode()
2343 {
2344 if (memoizedHashCode != 0)
2345 {
2346 return memoizedHashCode;
2347 }
2348 int hash = 41;
2349 hash = (19 * hash) + getDescriptor().hashCode();
2350 if (hasGtuId())
2351 {
2352 hash = (37 * hash) + GTUID_FIELD_NUMBER;
2353 hash = (53 * hash) + getGtuId().hashCode();
2354 }
2355 if (hasX())
2356 {
2357 hash = (37 * hash) + X_FIELD_NUMBER;
2358 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getX()));
2359 }
2360 if (hasY())
2361 {
2362 hash = (37 * hash) + Y_FIELD_NUMBER;
2363 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getY()));
2364 }
2365 if (hasZ())
2366 {
2367 hash = (37 * hash) + Z_FIELD_NUMBER;
2368 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getZ()));
2369 }
2370 if (hasAngle())
2371 {
2372 hash = (37 * hash) + ANGLE_FIELD_NUMBER;
2373 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getAngle()));
2374 }
2375 if (hasWidth())
2376 {
2377 hash = (37 * hash) + WIDTH_FIELD_NUMBER;
2378 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getWidth()));
2379 }
2380 if (hasLength())
2381 {
2382 hash = (37 * hash) + LENGTH_FIELD_NUMBER;
2383 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getLength()));
2384 }
2385 if (hasGtuTypeId())
2386 {
2387 hash = (37 * hash) + GTUTYPEID_FIELD_NUMBER;
2388 hash = (53 * hash) + getGtuTypeId();
2389 }
2390 if (hasSpeed())
2391 {
2392 hash = (37 * hash) + SPEED_FIELD_NUMBER;
2393 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getSpeed()));
2394 }
2395 hash = (29 * hash) + unknownFields.hashCode();
2396 memoizedHashCode = hash;
2397 return hash;
2398 }
2399
2400 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
2401 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
2402 {
2403 return PARSER.parseFrom(data);
2404 }
2405
2406 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
2407 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2408 throws com.google.protobuf.InvalidProtocolBufferException
2409 {
2410 return PARSER.parseFrom(data, extensionRegistry);
2411 }
2412
2413 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
2414 com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
2415 {
2416 return PARSER.parseFrom(data);
2417 }
2418
2419 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
2420 com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2421 throws com.google.protobuf.InvalidProtocolBufferException
2422 {
2423 return PARSER.parseFrom(data, extensionRegistry);
2424 }
2425
2426 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(byte[] data)
2427 throws com.google.protobuf.InvalidProtocolBufferException
2428 {
2429 return PARSER.parseFrom(data);
2430 }
2431
2432 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(byte[] data,
2433 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2434 throws com.google.protobuf.InvalidProtocolBufferException
2435 {
2436 return PARSER.parseFrom(data, extensionRegistry);
2437 }
2438
2439 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
2440 java.io.InputStream input) throws java.io.IOException
2441 {
2442 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2443 }
2444
2445 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
2446 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2447 throws java.io.IOException
2448 {
2449 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
2450 }
2451
2452 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseDelimitedFrom(
2453 java.io.InputStream input) throws java.io.IOException
2454 {
2455 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
2456 }
2457
2458 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseDelimitedFrom(
2459 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2460 throws java.io.IOException
2461 {
2462 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2463 }
2464
2465 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
2466 com.google.protobuf.CodedInputStream input) throws java.io.IOException
2467 {
2468 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2469 }
2470
2471 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parseFrom(
2472 com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2473 throws java.io.IOException
2474 {
2475 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
2476 }
2477
2478 public Builder newBuilderForType()
2479 {
2480 return newBuilder();
2481 }
2482
2483 public static Builder newBuilder()
2484 {
2485 return DEFAULT_INSTANCE.toBuilder();
2486 }
2487
2488 public static Builder newBuilder(
2489 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition prototype)
2490 {
2491 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2492 }
2493
2494 public Builder toBuilder()
2495 {
2496 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
2497 }
2498
2499 @java.lang.Override
2500 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
2501 {
2502 Builder builder = new Builder(parent);
2503 return builder;
2504 }
2505
2506
2507
2508
2509 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
2510
2511 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder
2512 {
2513 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
2514 {
2515 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor;
2516 }
2517
2518 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
2519 {
2520 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_fieldAccessorTable
2521 .ensureFieldAccessorsInitialized(
2522 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.class,
2523 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder.class);
2524 }
2525
2526
2527 private Builder()
2528 {
2529 maybeForceBuilderInitialization();
2530 }
2531
2532 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
2533 {
2534 super(parent);
2535 maybeForceBuilderInitialization();
2536 }
2537
2538 private void maybeForceBuilderInitialization()
2539 {
2540 if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders)
2541 {
2542 }
2543 }
2544
2545 public Builder clear()
2546 {
2547 super.clear();
2548 gtuId_ = "";
2549 bitField0_ = (bitField0_ & ~0x00000001);
2550 x_ = 0D;
2551 bitField0_ = (bitField0_ & ~0x00000002);
2552 y_ = 0D;
2553 bitField0_ = (bitField0_ & ~0x00000004);
2554 z_ = 0D;
2555 bitField0_ = (bitField0_ & ~0x00000008);
2556 angle_ = 0D;
2557 bitField0_ = (bitField0_ & ~0x00000010);
2558 width_ = 0D;
2559 bitField0_ = (bitField0_ & ~0x00000020);
2560 length_ = 0D;
2561 bitField0_ = (bitField0_ & ~0x00000040);
2562 gtuTypeId_ = 0;
2563 bitField0_ = (bitField0_ & ~0x00000080);
2564 speed_ = 0D;
2565 bitField0_ = (bitField0_ & ~0x00000100);
2566 return this;
2567 }
2568
2569 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
2570 {
2571 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor;
2572 }
2573
2574 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getDefaultInstanceForType()
2575 {
2576 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.getDefaultInstance();
2577 }
2578
2579 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition build()
2580 {
2581 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition result = buildPartial();
2582 if (!result.isInitialized())
2583 {
2584 throw newUninitializedMessageException(result);
2585 }
2586 return result;
2587 }
2588
2589 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition buildPartial()
2590 {
2591 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition result =
2592 new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition(this);
2593 int from_bitField0_ = bitField0_;
2594 int to_bitField0_ = 0;
2595 if (((from_bitField0_ & 0x00000001) == 0x00000001))
2596 {
2597 to_bitField0_ |= 0x00000001;
2598 }
2599 result.gtuId_ = gtuId_;
2600 if (((from_bitField0_ & 0x00000002) == 0x00000002))
2601 {
2602 to_bitField0_ |= 0x00000002;
2603 }
2604 result.x_ = x_;
2605 if (((from_bitField0_ & 0x00000004) == 0x00000004))
2606 {
2607 to_bitField0_ |= 0x00000004;
2608 }
2609 result.y_ = y_;
2610 if (((from_bitField0_ & 0x00000008) == 0x00000008))
2611 {
2612 to_bitField0_ |= 0x00000008;
2613 }
2614 result.z_ = z_;
2615 if (((from_bitField0_ & 0x00000010) == 0x00000010))
2616 {
2617 to_bitField0_ |= 0x00000010;
2618 }
2619 result.angle_ = angle_;
2620 if (((from_bitField0_ & 0x00000020) == 0x00000020))
2621 {
2622 to_bitField0_ |= 0x00000020;
2623 }
2624 result.width_ = width_;
2625 if (((from_bitField0_ & 0x00000040) == 0x00000040))
2626 {
2627 to_bitField0_ |= 0x00000040;
2628 }
2629 result.length_ = length_;
2630 if (((from_bitField0_ & 0x00000080) == 0x00000080))
2631 {
2632 to_bitField0_ |= 0x00000080;
2633 }
2634 result.gtuTypeId_ = gtuTypeId_;
2635 if (((from_bitField0_ & 0x00000100) == 0x00000100))
2636 {
2637 to_bitField0_ |= 0x00000100;
2638 }
2639 result.speed_ = speed_;
2640 result.bitField0_ = to_bitField0_;
2641 onBuilt();
2642 return result;
2643 }
2644
2645 public Builder clone()
2646 {
2647 return (Builder) super.clone();
2648 }
2649
2650 public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
2651 {
2652 return (Builder) super.setField(field, value);
2653 }
2654
2655 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
2656 {
2657 return (Builder) super.clearField(field);
2658 }
2659
2660 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
2661 {
2662 return (Builder) super.clearOneof(oneof);
2663 }
2664
2665 public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index,
2666 java.lang.Object value)
2667 {
2668 return (Builder) super.setRepeatedField(field, index, value);
2669 }
2670
2671 public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
2672 {
2673 return (Builder) super.addRepeatedField(field, value);
2674 }
2675
2676 public Builder mergeFrom(com.google.protobuf.Message other)
2677 {
2678 if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition)
2679 {
2680 return mergeFrom(
2681 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition) other);
2682 }
2683 else
2684 {
2685 super.mergeFrom(other);
2686 return this;
2687 }
2688 }
2689
2690 public Builder mergeFrom(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition other)
2691 {
2692 if (other == org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition
2693 .getDefaultInstance())
2694 return this;
2695 if (other.hasGtuId())
2696 {
2697 bitField0_ |= 0x00000001;
2698 gtuId_ = other.gtuId_;
2699 onChanged();
2700 }
2701 if (other.hasX())
2702 {
2703 setX(other.getX());
2704 }
2705 if (other.hasY())
2706 {
2707 setY(other.getY());
2708 }
2709 if (other.hasZ())
2710 {
2711 setZ(other.getZ());
2712 }
2713 if (other.hasAngle())
2714 {
2715 setAngle(other.getAngle());
2716 }
2717 if (other.hasWidth())
2718 {
2719 setWidth(other.getWidth());
2720 }
2721 if (other.hasLength())
2722 {
2723 setLength(other.getLength());
2724 }
2725 if (other.hasGtuTypeId())
2726 {
2727 setGtuTypeId(other.getGtuTypeId());
2728 }
2729 if (other.hasSpeed())
2730 {
2731 setSpeed(other.getSpeed());
2732 }
2733 this.mergeUnknownFields(other.unknownFields);
2734 onChanged();
2735 return this;
2736 }
2737
2738 public final boolean isInitialized()
2739 {
2740 if (!hasGtuId())
2741 {
2742 return false;
2743 }
2744 if (!hasX())
2745 {
2746 return false;
2747 }
2748 if (!hasY())
2749 {
2750 return false;
2751 }
2752 if (!hasAngle())
2753 {
2754 return false;
2755 }
2756 if (!hasWidth())
2757 {
2758 return false;
2759 }
2760 if (!hasLength())
2761 {
2762 return false;
2763 }
2764 if (!hasGtuTypeId())
2765 {
2766 return false;
2767 }
2768 if (!hasSpeed())
2769 {
2770 return false;
2771 }
2772 return true;
2773 }
2774
2775 public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
2776 com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
2777 {
2778 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition parsedMessage = null;
2779 try
2780 {
2781 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2782 }
2783 catch (com.google.protobuf.InvalidProtocolBufferException e)
2784 {
2785 parsedMessage = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition) e
2786 .getUnfinishedMessage();
2787 throw e.unwrapIOException();
2788 }
2789 finally
2790 {
2791 if (parsedMessage != null)
2792 {
2793 mergeFrom(parsedMessage);
2794 }
2795 }
2796 return this;
2797 }
2798
2799 private int bitField0_;
2800
2801 private java.lang.Object gtuId_ = "";
2802
2803
2804
2805
2806 public boolean hasGtuId()
2807 {
2808 return ((bitField0_ & 0x00000001) == 0x00000001);
2809 }
2810
2811
2812
2813
2814 public java.lang.String getGtuId()
2815 {
2816 java.lang.Object ref = gtuId_;
2817 if (!(ref instanceof java.lang.String))
2818 {
2819 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2820 java.lang.String s = bs.toStringUtf8();
2821 if (bs.isValidUtf8())
2822 {
2823 gtuId_ = s;
2824 }
2825 return s;
2826 }
2827 else
2828 {
2829 return (java.lang.String) ref;
2830 }
2831 }
2832
2833
2834
2835
2836 public com.google.protobuf.ByteString getGtuIdBytes()
2837 {
2838 java.lang.Object ref = gtuId_;
2839 if (ref instanceof String)
2840 {
2841 com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2842 gtuId_ = b;
2843 return b;
2844 }
2845 else
2846 {
2847 return (com.google.protobuf.ByteString) ref;
2848 }
2849 }
2850
2851
2852
2853
2854 public Builder setGtuId(java.lang.String value)
2855 {
2856 if (value == null)
2857 {
2858 throw new NullPointerException();
2859 }
2860 bitField0_ |= 0x00000001;
2861 gtuId_ = value;
2862 onChanged();
2863 return this;
2864 }
2865
2866
2867
2868
2869 public Builder clearGtuId()
2870 {
2871 bitField0_ = (bitField0_ & ~0x00000001);
2872 gtuId_ = getDefaultInstance().getGtuId();
2873 onChanged();
2874 return this;
2875 }
2876
2877
2878
2879
2880 public Builder setGtuIdBytes(com.google.protobuf.ByteString value)
2881 {
2882 if (value == null)
2883 {
2884 throw new NullPointerException();
2885 }
2886 bitField0_ |= 0x00000001;
2887 gtuId_ = value;
2888 onChanged();
2889 return this;
2890 }
2891
2892 private double x_;
2893
2894
2895
2896
2897 public boolean hasX()
2898 {
2899 return ((bitField0_ & 0x00000002) == 0x00000002);
2900 }
2901
2902
2903
2904
2905 public double getX()
2906 {
2907 return x_;
2908 }
2909
2910
2911
2912
2913 public Builder setX(double value)
2914 {
2915 bitField0_ |= 0x00000002;
2916 x_ = value;
2917 onChanged();
2918 return this;
2919 }
2920
2921
2922
2923
2924 public Builder clearX()
2925 {
2926 bitField0_ = (bitField0_ & ~0x00000002);
2927 x_ = 0D;
2928 onChanged();
2929 return this;
2930 }
2931
2932 private double y_;
2933
2934
2935
2936
2937 public boolean hasY()
2938 {
2939 return ((bitField0_ & 0x00000004) == 0x00000004);
2940 }
2941
2942
2943
2944
2945 public double getY()
2946 {
2947 return y_;
2948 }
2949
2950
2951
2952
2953 public Builder setY(double value)
2954 {
2955 bitField0_ |= 0x00000004;
2956 y_ = value;
2957 onChanged();
2958 return this;
2959 }
2960
2961
2962
2963
2964 public Builder clearY()
2965 {
2966 bitField0_ = (bitField0_ & ~0x00000004);
2967 y_ = 0D;
2968 onChanged();
2969 return this;
2970 }
2971
2972 private double z_;
2973
2974
2975
2976
2977 public boolean hasZ()
2978 {
2979 return ((bitField0_ & 0x00000008) == 0x00000008);
2980 }
2981
2982
2983
2984
2985 public double getZ()
2986 {
2987 return z_;
2988 }
2989
2990
2991
2992
2993 public Builder setZ(double value)
2994 {
2995 bitField0_ |= 0x00000008;
2996 z_ = value;
2997 onChanged();
2998 return this;
2999 }
3000
3001
3002
3003
3004 public Builder clearZ()
3005 {
3006 bitField0_ = (bitField0_ & ~0x00000008);
3007 z_ = 0D;
3008 onChanged();
3009 return this;
3010 }
3011
3012 private double angle_;
3013
3014
3015
3016
3017 public boolean hasAngle()
3018 {
3019 return ((bitField0_ & 0x00000010) == 0x00000010);
3020 }
3021
3022
3023
3024
3025 public double getAngle()
3026 {
3027 return angle_;
3028 }
3029
3030
3031
3032
3033 public Builder setAngle(double value)
3034 {
3035 bitField0_ |= 0x00000010;
3036 angle_ = value;
3037 onChanged();
3038 return this;
3039 }
3040
3041
3042
3043
3044 public Builder clearAngle()
3045 {
3046 bitField0_ = (bitField0_ & ~0x00000010);
3047 angle_ = 0D;
3048 onChanged();
3049 return this;
3050 }
3051
3052 private double width_;
3053
3054
3055
3056
3057 public boolean hasWidth()
3058 {
3059 return ((bitField0_ & 0x00000020) == 0x00000020);
3060 }
3061
3062
3063
3064
3065 public double getWidth()
3066 {
3067 return width_;
3068 }
3069
3070
3071
3072
3073 public Builder setWidth(double value)
3074 {
3075 bitField0_ |= 0x00000020;
3076 width_ = value;
3077 onChanged();
3078 return this;
3079 }
3080
3081
3082
3083
3084 public Builder clearWidth()
3085 {
3086 bitField0_ = (bitField0_ & ~0x00000020);
3087 width_ = 0D;
3088 onChanged();
3089 return this;
3090 }
3091
3092 private double length_;
3093
3094
3095
3096
3097 public boolean hasLength()
3098 {
3099 return ((bitField0_ & 0x00000040) == 0x00000040);
3100 }
3101
3102
3103
3104
3105 public double getLength()
3106 {
3107 return length_;
3108 }
3109
3110
3111
3112
3113 public Builder setLength(double value)
3114 {
3115 bitField0_ |= 0x00000040;
3116 length_ = value;
3117 onChanged();
3118 return this;
3119 }
3120
3121
3122
3123
3124 public Builder clearLength()
3125 {
3126 bitField0_ = (bitField0_ & ~0x00000040);
3127 length_ = 0D;
3128 onChanged();
3129 return this;
3130 }
3131
3132 private int gtuTypeId_;
3133
3134
3135
3136
3137 public boolean hasGtuTypeId()
3138 {
3139 return ((bitField0_ & 0x00000080) == 0x00000080);
3140 }
3141
3142
3143
3144
3145 public int getGtuTypeId()
3146 {
3147 return gtuTypeId_;
3148 }
3149
3150
3151
3152
3153 public Builder setGtuTypeId(int value)
3154 {
3155 bitField0_ |= 0x00000080;
3156 gtuTypeId_ = value;
3157 onChanged();
3158 return this;
3159 }
3160
3161
3162
3163
3164 public Builder clearGtuTypeId()
3165 {
3166 bitField0_ = (bitField0_ & ~0x00000080);
3167 gtuTypeId_ = 0;
3168 onChanged();
3169 return this;
3170 }
3171
3172 private double speed_;
3173
3174
3175
3176
3177 public boolean hasSpeed()
3178 {
3179 return ((bitField0_ & 0x00000100) == 0x00000100);
3180 }
3181
3182
3183
3184
3185 public double getSpeed()
3186 {
3187 return speed_;
3188 }
3189
3190
3191
3192
3193 public Builder setSpeed(double value)
3194 {
3195 bitField0_ |= 0x00000100;
3196 speed_ = value;
3197 onChanged();
3198 return this;
3199 }
3200
3201
3202
3203
3204 public Builder clearSpeed()
3205 {
3206 bitField0_ = (bitField0_ & ~0x00000100);
3207 speed_ = 0D;
3208 onChanged();
3209 return this;
3210 }
3211
3212 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
3213 {
3214 return super.setUnknownFields(unknownFields);
3215 }
3216
3217 public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
3218 {
3219 return super.mergeUnknownFields(unknownFields);
3220 }
3221
3222
3223 }
3224
3225
3226 private static final org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition DEFAULT_INSTANCE;
3227 static
3228 {
3229 DEFAULT_INSTANCE = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition();
3230 }
3231
3232 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getDefaultInstance()
3233 {
3234 return DEFAULT_INSTANCE;
3235 }
3236
3237 @java.lang.Deprecated
3238 public static final com.google.protobuf.Parser<GTUPosition> PARSER =
3239 new com.google.protobuf.AbstractParser<GTUPosition>()
3240 {
3241 public GTUPosition parsePartialFrom(com.google.protobuf.CodedInputStream input,
3242 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3243 throws com.google.protobuf.InvalidProtocolBufferException
3244 {
3245 return new GTUPosition(input, extensionRegistry);
3246 }
3247 };
3248
3249 public static com.google.protobuf.Parser<GTUPosition> parser()
3250 {
3251 return PARSER;
3252 }
3253
3254 @java.lang.Override
3255 public com.google.protobuf.Parser<GTUPosition> getParserForType()
3256 {
3257 return PARSER;
3258 }
3259
3260 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getDefaultInstanceForType()
3261 {
3262 return DEFAULT_INSTANCE;
3263 }
3264
3265 }
3266
3267 private int bitField0_;
3268
3269 public static final int GTUPOS_FIELD_NUMBER = 1;
3270
3271 private java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> gtuPos_;
3272
3273
3274
3275
3276 public java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> getGtuPosList()
3277 {
3278 return gtuPos_;
3279 }
3280
3281
3282
3283
3284 public java.util.List<
3285 ? extends org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder> getGtuPosOrBuilderList()
3286 {
3287 return gtuPos_;
3288 }
3289
3290
3291
3292
3293 public int getGtuPosCount()
3294 {
3295 return gtuPos_.size();
3296 }
3297
3298
3299
3300
3301 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getGtuPos(int index)
3302 {
3303 return gtuPos_.get(index);
3304 }
3305
3306
3307
3308
3309 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder getGtuPosOrBuilder(
3310 int index)
3311 {
3312 return gtuPos_.get(index);
3313 }
3314
3315 public static final int STATUS_FIELD_NUMBER = 2;
3316
3317 private volatile java.lang.Object status_;
3318
3319
3320
3321
3322 public boolean hasStatus()
3323 {
3324 return ((bitField0_ & 0x00000001) == 0x00000001);
3325 }
3326
3327
3328
3329
3330 public java.lang.String getStatus()
3331 {
3332 java.lang.Object ref = status_;
3333 if (ref instanceof java.lang.String)
3334 {
3335 return (java.lang.String) ref;
3336 }
3337 else
3338 {
3339 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3340 java.lang.String s = bs.toStringUtf8();
3341 if (bs.isValidUtf8())
3342 {
3343 status_ = s;
3344 }
3345 return s;
3346 }
3347 }
3348
3349
3350
3351
3352 public com.google.protobuf.ByteString getStatusBytes()
3353 {
3354 java.lang.Object ref = status_;
3355 if (ref instanceof java.lang.String)
3356 {
3357 com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3358 status_ = b;
3359 return b;
3360 }
3361 else
3362 {
3363 return (com.google.protobuf.ByteString) ref;
3364 }
3365 }
3366
3367 private byte memoizedIsInitialized = -1;
3368
3369 public final boolean isInitialized()
3370 {
3371 byte isInitialized = memoizedIsInitialized;
3372 if (isInitialized == 1)
3373 return true;
3374 if (isInitialized == 0)
3375 return false;
3376
3377 if (!hasStatus())
3378 {
3379 memoizedIsInitialized = 0;
3380 return false;
3381 }
3382 for (int i = 0; i < getGtuPosCount(); i++)
3383 {
3384 if (!getGtuPos(i).isInitialized())
3385 {
3386 memoizedIsInitialized = 0;
3387 return false;
3388 }
3389 }
3390 memoizedIsInitialized = 1;
3391 return true;
3392 }
3393
3394 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
3395 {
3396 for (int i = 0; i < gtuPos_.size(); i++)
3397 {
3398 output.writeMessage(1, gtuPos_.get(i));
3399 }
3400 if (((bitField0_ & 0x00000001) == 0x00000001))
3401 {
3402 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_);
3403 }
3404 unknownFields.writeTo(output);
3405 }
3406
3407 public int getSerializedSize()
3408 {
3409 int size = memoizedSize;
3410 if (size != -1)
3411 return size;
3412
3413 size = 0;
3414 for (int i = 0; i < gtuPos_.size(); i++)
3415 {
3416 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, gtuPos_.get(i));
3417 }
3418 if (((bitField0_ & 0x00000001) == 0x00000001))
3419 {
3420 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_);
3421 }
3422 size += unknownFields.getSerializedSize();
3423 memoizedSize = size;
3424 return size;
3425 }
3426
3427 @java.lang.Override
3428 public boolean equals(final java.lang.Object obj)
3429 {
3430 if (obj == this)
3431 {
3432 return true;
3433 }
3434 if (!(obj instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions))
3435 {
3436 return super.equals(obj);
3437 }
3438 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions other =
3439 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) obj;
3440
3441 boolean result = true;
3442 result = result && getGtuPosList().equals(other.getGtuPosList());
3443 result = result && (hasStatus() == other.hasStatus());
3444 if (hasStatus())
3445 {
3446 result = result && getStatus().equals(other.getStatus());
3447 }
3448 result = result && unknownFields.equals(other.unknownFields);
3449 return result;
3450 }
3451
3452 @java.lang.Override
3453 public int hashCode()
3454 {
3455 if (memoizedHashCode != 0)
3456 {
3457 return memoizedHashCode;
3458 }
3459 int hash = 41;
3460 hash = (19 * hash) + getDescriptor().hashCode();
3461 if (getGtuPosCount() > 0)
3462 {
3463 hash = (37 * hash) + GTUPOS_FIELD_NUMBER;
3464 hash = (53 * hash) + getGtuPosList().hashCode();
3465 }
3466 if (hasStatus())
3467 {
3468 hash = (37 * hash) + STATUS_FIELD_NUMBER;
3469 hash = (53 * hash) + getStatus().hashCode();
3470 }
3471 hash = (29 * hash) + unknownFields.hashCode();
3472 memoizedHashCode = hash;
3473 return hash;
3474 }
3475
3476 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(java.nio.ByteBuffer data)
3477 throws com.google.protobuf.InvalidProtocolBufferException
3478 {
3479 return PARSER.parseFrom(data);
3480 }
3481
3482 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(java.nio.ByteBuffer data,
3483 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3484 throws com.google.protobuf.InvalidProtocolBufferException
3485 {
3486 return PARSER.parseFrom(data, extensionRegistry);
3487 }
3488
3489 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
3490 com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
3491 {
3492 return PARSER.parseFrom(data);
3493 }
3494
3495 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
3496 com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3497 throws com.google.protobuf.InvalidProtocolBufferException
3498 {
3499 return PARSER.parseFrom(data, extensionRegistry);
3500 }
3501
3502 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(byte[] data)
3503 throws com.google.protobuf.InvalidProtocolBufferException
3504 {
3505 return PARSER.parseFrom(data);
3506 }
3507
3508 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(byte[] data,
3509 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3510 throws com.google.protobuf.InvalidProtocolBufferException
3511 {
3512 return PARSER.parseFrom(data, extensionRegistry);
3513 }
3514
3515 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(java.io.InputStream input)
3516 throws java.io.IOException
3517 {
3518 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
3519 }
3520
3521 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(java.io.InputStream input,
3522 com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
3523 {
3524 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
3525 }
3526
3527 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseDelimitedFrom(
3528 java.io.InputStream input) throws java.io.IOException
3529 {
3530 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
3531 }
3532
3533 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseDelimitedFrom(
3534 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3535 throws java.io.IOException
3536 {
3537 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
3538 }
3539
3540 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
3541 com.google.protobuf.CodedInputStream input) throws java.io.IOException
3542 {
3543 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
3544 }
3545
3546 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parseFrom(
3547 com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3548 throws java.io.IOException
3549 {
3550 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
3551 }
3552
3553 public Builder newBuilderForType()
3554 {
3555 return newBuilder();
3556 }
3557
3558 public static Builder newBuilder()
3559 {
3560 return DEFAULT_INSTANCE.toBuilder();
3561 }
3562
3563 public static Builder newBuilder(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions prototype)
3564 {
3565 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
3566 }
3567
3568 public Builder toBuilder()
3569 {
3570 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
3571 }
3572
3573 @java.lang.Override
3574 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
3575 {
3576 Builder builder = new Builder(parent);
3577 return builder;
3578 }
3579
3580
3581
3582
3583 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
3584
3585 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder
3586 {
3587 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
3588 {
3589 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor;
3590 }
3591
3592 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
3593 {
3594 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_fieldAccessorTable
3595 .ensureFieldAccessorsInitialized(
3596 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.class,
3597 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder.class);
3598 }
3599
3600
3601 private Builder()
3602 {
3603 maybeForceBuilderInitialization();
3604 }
3605
3606 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
3607 {
3608 super(parent);
3609 maybeForceBuilderInitialization();
3610 }
3611
3612 private void maybeForceBuilderInitialization()
3613 {
3614 if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders)
3615 {
3616 getGtuPosFieldBuilder();
3617 }
3618 }
3619
3620 public Builder clear()
3621 {
3622 super.clear();
3623 if (gtuPosBuilder_ == null)
3624 {
3625 gtuPos_ = java.util.Collections.emptyList();
3626 bitField0_ = (bitField0_ & ~0x00000001);
3627 }
3628 else
3629 {
3630 gtuPosBuilder_.clear();
3631 }
3632 status_ = "";
3633 bitField0_ = (bitField0_ & ~0x00000002);
3634 return this;
3635 }
3636
3637 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
3638 {
3639 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor;
3640 }
3641
3642 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getDefaultInstanceForType()
3643 {
3644 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
3645 }
3646
3647 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions build()
3648 {
3649 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions result = buildPartial();
3650 if (!result.isInitialized())
3651 {
3652 throw newUninitializedMessageException(result);
3653 }
3654 return result;
3655 }
3656
3657 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions buildPartial()
3658 {
3659 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions result =
3660 new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions(this);
3661 int from_bitField0_ = bitField0_;
3662 int to_bitField0_ = 0;
3663 if (gtuPosBuilder_ == null)
3664 {
3665 if (((bitField0_ & 0x00000001) == 0x00000001))
3666 {
3667 gtuPos_ = java.util.Collections.unmodifiableList(gtuPos_);
3668 bitField0_ = (bitField0_ & ~0x00000001);
3669 }
3670 result.gtuPos_ = gtuPos_;
3671 }
3672 else
3673 {
3674 result.gtuPos_ = gtuPosBuilder_.build();
3675 }
3676 if (((from_bitField0_ & 0x00000002) == 0x00000002))
3677 {
3678 to_bitField0_ |= 0x00000001;
3679 }
3680 result.status_ = status_;
3681 result.bitField0_ = to_bitField0_;
3682 onBuilt();
3683 return result;
3684 }
3685
3686 public Builder clone()
3687 {
3688 return (Builder) super.clone();
3689 }
3690
3691 public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
3692 {
3693 return (Builder) super.setField(field, value);
3694 }
3695
3696 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
3697 {
3698 return (Builder) super.clearField(field);
3699 }
3700
3701 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
3702 {
3703 return (Builder) super.clearOneof(oneof);
3704 }
3705
3706 public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index,
3707 java.lang.Object value)
3708 {
3709 return (Builder) super.setRepeatedField(field, index, value);
3710 }
3711
3712 public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
3713 {
3714 return (Builder) super.addRepeatedField(field, value);
3715 }
3716
3717 public Builder mergeFrom(com.google.protobuf.Message other)
3718 {
3719 if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions)
3720 {
3721 return mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) other);
3722 }
3723 else
3724 {
3725 super.mergeFrom(other);
3726 return this;
3727 }
3728 }
3729
3730 public Builder mergeFrom(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions other)
3731 {
3732 if (other == org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance())
3733 return this;
3734 if (gtuPosBuilder_ == null)
3735 {
3736 if (!other.gtuPos_.isEmpty())
3737 {
3738 if (gtuPos_.isEmpty())
3739 {
3740 gtuPos_ = other.gtuPos_;
3741 bitField0_ = (bitField0_ & ~0x00000001);
3742 }
3743 else
3744 {
3745 ensureGtuPosIsMutable();
3746 gtuPos_.addAll(other.gtuPos_);
3747 }
3748 onChanged();
3749 }
3750 }
3751 else
3752 {
3753 if (!other.gtuPos_.isEmpty())
3754 {
3755 if (gtuPosBuilder_.isEmpty())
3756 {
3757 gtuPosBuilder_.dispose();
3758 gtuPosBuilder_ = null;
3759 gtuPos_ = other.gtuPos_;
3760 bitField0_ = (bitField0_ & ~0x00000001);
3761 gtuPosBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
3762 ? getGtuPosFieldBuilder() : null;
3763 }
3764 else
3765 {
3766 gtuPosBuilder_.addAllMessages(other.gtuPos_);
3767 }
3768 }
3769 }
3770 if (other.hasStatus())
3771 {
3772 bitField0_ |= 0x00000002;
3773 status_ = other.status_;
3774 onChanged();
3775 }
3776 this.mergeUnknownFields(other.unknownFields);
3777 onChanged();
3778 return this;
3779 }
3780
3781 public final boolean isInitialized()
3782 {
3783 if (!hasStatus())
3784 {
3785 return false;
3786 }
3787 for (int i = 0; i < getGtuPosCount(); i++)
3788 {
3789 if (!getGtuPos(i).isInitialized())
3790 {
3791 return false;
3792 }
3793 }
3794 return true;
3795 }
3796
3797 public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
3798 com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
3799 {
3800 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions parsedMessage = null;
3801 try
3802 {
3803 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
3804 }
3805 catch (com.google.protobuf.InvalidProtocolBufferException e)
3806 {
3807 parsedMessage =
3808 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) e.getUnfinishedMessage();
3809 throw e.unwrapIOException();
3810 }
3811 finally
3812 {
3813 if (parsedMessage != null)
3814 {
3815 mergeFrom(parsedMessage);
3816 }
3817 }
3818 return this;
3819 }
3820
3821 private int bitField0_;
3822
3823 private java.util.List<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> gtuPos_ =
3824 java.util.Collections.emptyList();
3825
3826 private void ensureGtuPosIsMutable()
3827 {
3828 if (!((bitField0_ & 0x00000001) == 0x00000001))
3829 {
3830 gtuPos_ = new java.util.ArrayList<
3831 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition>(gtuPos_);
3832 bitField0_ |= 0x00000001;
3833 }
3834 }
3835
3836 private com.google.protobuf.RepeatedFieldBuilderV3<
3837 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition,
3838 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder,
3839 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder> gtuPosBuilder_;
3840
3841
3842
3843
3844 public java.util.List<
3845 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> getGtuPosList()
3846 {
3847 if (gtuPosBuilder_ == null)
3848 {
3849 return java.util.Collections.unmodifiableList(gtuPos_);
3850 }
3851 else
3852 {
3853 return gtuPosBuilder_.getMessageList();
3854 }
3855 }
3856
3857
3858
3859
3860 public int getGtuPosCount()
3861 {
3862 if (gtuPosBuilder_ == null)
3863 {
3864 return gtuPos_.size();
3865 }
3866 else
3867 {
3868 return gtuPosBuilder_.getCount();
3869 }
3870 }
3871
3872
3873
3874
3875 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition getGtuPos(int index)
3876 {
3877 if (gtuPosBuilder_ == null)
3878 {
3879 return gtuPos_.get(index);
3880 }
3881 else
3882 {
3883 return gtuPosBuilder_.getMessage(index);
3884 }
3885 }
3886
3887
3888
3889
3890 public Builder setGtuPos(int index,
3891 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition value)
3892 {
3893 if (gtuPosBuilder_ == null)
3894 {
3895 if (value == null)
3896 {
3897 throw new NullPointerException();
3898 }
3899 ensureGtuPosIsMutable();
3900 gtuPos_.set(index, value);
3901 onChanged();
3902 }
3903 else
3904 {
3905 gtuPosBuilder_.setMessage(index, value);
3906 }
3907 return this;
3908 }
3909
3910
3911
3912
3913 public Builder setGtuPos(int index,
3914 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder builderForValue)
3915 {
3916 if (gtuPosBuilder_ == null)
3917 {
3918 ensureGtuPosIsMutable();
3919 gtuPos_.set(index, builderForValue.build());
3920 onChanged();
3921 }
3922 else
3923 {
3924 gtuPosBuilder_.setMessage(index, builderForValue.build());
3925 }
3926 return this;
3927 }
3928
3929
3930
3931
3932 public Builder addGtuPos(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition value)
3933 {
3934 if (gtuPosBuilder_ == null)
3935 {
3936 if (value == null)
3937 {
3938 throw new NullPointerException();
3939 }
3940 ensureGtuPosIsMutable();
3941 gtuPos_.add(value);
3942 onChanged();
3943 }
3944 else
3945 {
3946 gtuPosBuilder_.addMessage(value);
3947 }
3948 return this;
3949 }
3950
3951
3952
3953
3954 public Builder addGtuPos(int index,
3955 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition value)
3956 {
3957 if (gtuPosBuilder_ == null)
3958 {
3959 if (value == null)
3960 {
3961 throw new NullPointerException();
3962 }
3963 ensureGtuPosIsMutable();
3964 gtuPos_.add(index, value);
3965 onChanged();
3966 }
3967 else
3968 {
3969 gtuPosBuilder_.addMessage(index, value);
3970 }
3971 return this;
3972 }
3973
3974
3975
3976
3977 public Builder addGtuPos(
3978 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder builderForValue)
3979 {
3980 if (gtuPosBuilder_ == null)
3981 {
3982 ensureGtuPosIsMutable();
3983 gtuPos_.add(builderForValue.build());
3984 onChanged();
3985 }
3986 else
3987 {
3988 gtuPosBuilder_.addMessage(builderForValue.build());
3989 }
3990 return this;
3991 }
3992
3993
3994
3995
3996 public Builder addGtuPos(int index,
3997 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder builderForValue)
3998 {
3999 if (gtuPosBuilder_ == null)
4000 {
4001 ensureGtuPosIsMutable();
4002 gtuPos_.add(index, builderForValue.build());
4003 onChanged();
4004 }
4005 else
4006 {
4007 gtuPosBuilder_.addMessage(index, builderForValue.build());
4008 }
4009 return this;
4010 }
4011
4012
4013
4014
4015 public Builder addAllGtuPos(java.lang.Iterable<
4016 ? extends org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition> values)
4017 {
4018 if (gtuPosBuilder_ == null)
4019 {
4020 ensureGtuPosIsMutable();
4021 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gtuPos_);
4022 onChanged();
4023 }
4024 else
4025 {
4026 gtuPosBuilder_.addAllMessages(values);
4027 }
4028 return this;
4029 }
4030
4031
4032
4033
4034 public Builder clearGtuPos()
4035 {
4036 if (gtuPosBuilder_ == null)
4037 {
4038 gtuPos_ = java.util.Collections.emptyList();
4039 bitField0_ = (bitField0_ & ~0x00000001);
4040 onChanged();
4041 }
4042 else
4043 {
4044 gtuPosBuilder_.clear();
4045 }
4046 return this;
4047 }
4048
4049
4050
4051
4052 public Builder removeGtuPos(int index)
4053 {
4054 if (gtuPosBuilder_ == null)
4055 {
4056 ensureGtuPosIsMutable();
4057 gtuPos_.remove(index);
4058 onChanged();
4059 }
4060 else
4061 {
4062 gtuPosBuilder_.remove(index);
4063 }
4064 return this;
4065 }
4066
4067
4068
4069
4070 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder getGtuPosBuilder(
4071 int index)
4072 {
4073 return getGtuPosFieldBuilder().getBuilder(index);
4074 }
4075
4076
4077
4078
4079 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder getGtuPosOrBuilder(
4080 int index)
4081 {
4082 if (gtuPosBuilder_ == null)
4083 {
4084 return gtuPos_.get(index);
4085 }
4086 else
4087 {
4088 return gtuPosBuilder_.getMessageOrBuilder(index);
4089 }
4090 }
4091
4092
4093
4094
4095 public java.util.List<
4096 ? extends org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder> getGtuPosOrBuilderList()
4097 {
4098 if (gtuPosBuilder_ != null)
4099 {
4100 return gtuPosBuilder_.getMessageOrBuilderList();
4101 }
4102 else
4103 {
4104 return java.util.Collections.unmodifiableList(gtuPos_);
4105 }
4106 }
4107
4108
4109
4110
4111 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder addGtuPosBuilder()
4112 {
4113 return getGtuPosFieldBuilder().addBuilder(
4114 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.getDefaultInstance());
4115 }
4116
4117
4118
4119
4120 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder addGtuPosBuilder(
4121 int index)
4122 {
4123 return getGtuPosFieldBuilder().addBuilder(index,
4124 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.getDefaultInstance());
4125 }
4126
4127
4128
4129
4130 public java.util.List<
4131 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder> getGtuPosBuilderList()
4132 {
4133 return getGtuPosFieldBuilder().getBuilderList();
4134 }
4135
4136 private com.google.protobuf.RepeatedFieldBuilderV3<
4137 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition,
4138 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder,
4139 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder> getGtuPosFieldBuilder()
4140 {
4141 if (gtuPosBuilder_ == null)
4142 {
4143 gtuPosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
4144 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition,
4145 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition.Builder,
4146 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPositionOrBuilder>(gtuPos_,
4147 ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean());
4148 gtuPos_ = null;
4149 }
4150 return gtuPosBuilder_;
4151 }
4152
4153 private java.lang.Object status_ = "";
4154
4155
4156
4157
4158 public boolean hasStatus()
4159 {
4160 return ((bitField0_ & 0x00000002) == 0x00000002);
4161 }
4162
4163
4164
4165
4166 public java.lang.String getStatus()
4167 {
4168 java.lang.Object ref = status_;
4169 if (!(ref instanceof java.lang.String))
4170 {
4171 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4172 java.lang.String s = bs.toStringUtf8();
4173 if (bs.isValidUtf8())
4174 {
4175 status_ = s;
4176 }
4177 return s;
4178 }
4179 else
4180 {
4181 return (java.lang.String) ref;
4182 }
4183 }
4184
4185
4186
4187
4188 public com.google.protobuf.ByteString getStatusBytes()
4189 {
4190 java.lang.Object ref = status_;
4191 if (ref instanceof String)
4192 {
4193 com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4194 status_ = b;
4195 return b;
4196 }
4197 else
4198 {
4199 return (com.google.protobuf.ByteString) ref;
4200 }
4201 }
4202
4203
4204
4205
4206 public Builder setStatus(java.lang.String value)
4207 {
4208 if (value == null)
4209 {
4210 throw new NullPointerException();
4211 }
4212 bitField0_ |= 0x00000002;
4213 status_ = value;
4214 onChanged();
4215 return this;
4216 }
4217
4218
4219
4220
4221 public Builder clearStatus()
4222 {
4223 bitField0_ = (bitField0_ & ~0x00000002);
4224 status_ = getDefaultInstance().getStatus();
4225 onChanged();
4226 return this;
4227 }
4228
4229
4230
4231
4232 public Builder setStatusBytes(com.google.protobuf.ByteString value)
4233 {
4234 if (value == null)
4235 {
4236 throw new NullPointerException();
4237 }
4238 bitField0_ |= 0x00000002;
4239 status_ = value;
4240 onChanged();
4241 return this;
4242 }
4243
4244 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
4245 {
4246 return super.setUnknownFields(unknownFields);
4247 }
4248
4249 public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
4250 {
4251 return super.mergeUnknownFields(unknownFields);
4252 }
4253
4254
4255 }
4256
4257
4258 private static final org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions DEFAULT_INSTANCE;
4259 static
4260 {
4261 DEFAULT_INSTANCE = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions();
4262 }
4263
4264 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getDefaultInstance()
4265 {
4266 return DEFAULT_INSTANCE;
4267 }
4268
4269 @java.lang.Deprecated
4270 public static final com.google.protobuf.Parser<GTUPositions> PARSER =
4271 new com.google.protobuf.AbstractParser<GTUPositions>()
4272 {
4273 public GTUPositions parsePartialFrom(com.google.protobuf.CodedInputStream input,
4274 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4275 throws com.google.protobuf.InvalidProtocolBufferException
4276 {
4277 return new GTUPositions(input, extensionRegistry);
4278 }
4279 };
4280
4281 public static com.google.protobuf.Parser<GTUPositions> parser()
4282 {
4283 return PARSER;
4284 }
4285
4286 @java.lang.Override
4287 public com.google.protobuf.Parser<GTUPositions> getParserForType()
4288 {
4289 return PARSER;
4290 }
4291
4292 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getDefaultInstanceForType()
4293 {
4294 return DEFAULT_INSTANCE;
4295 }
4296
4297 }
4298
4299 public interface OTSMessageOrBuilder extends
4300
4301 com.google.protobuf.MessageOrBuilder
4302 {
4303
4304
4305
4306
4307 boolean hasCreateSimulation();
4308
4309
4310
4311
4312 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getCreateSimulation();
4313
4314
4315
4316
4317 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder getCreateSimulationOrBuilder();
4318
4319
4320
4321
4322 boolean hasSimulateUntil();
4323
4324
4325
4326
4327 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getSimulateUntil();
4328
4329
4330
4331
4332 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder getSimulateUntilOrBuilder();
4333
4334
4335
4336
4337 boolean hasGtuPositions();
4338
4339
4340
4341
4342 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getGtuPositions();
4343
4344
4345
4346
4347 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder getGtuPositionsOrBuilder();
4348
4349 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.MsgCase getMsgCase();
4350 }
4351
4352
4353
4354
4355 public static final class OTSMessage extends com.google.protobuf.GeneratedMessageV3 implements
4356
4357 OTSMessageOrBuilder
4358 {
4359 private static final long serialVersionUID = 0L;
4360
4361
4362 private OTSMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
4363 {
4364 super(builder);
4365 }
4366
4367 private OTSMessage()
4368 {
4369 }
4370
4371 @java.lang.Override
4372 public final com.google.protobuf.UnknownFieldSet getUnknownFields()
4373 {
4374 return this.unknownFields;
4375 }
4376
4377 private OTSMessage(com.google.protobuf.CodedInputStream input,
4378 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4379 throws com.google.protobuf.InvalidProtocolBufferException
4380 {
4381 this();
4382 int mutable_bitField0_ = 0;
4383 com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder();
4384 try
4385 {
4386 boolean done = false;
4387 while (!done)
4388 {
4389 int tag = input.readTag();
4390 switch (tag)
4391 {
4392 case 0:
4393 done = true;
4394 break;
4395 default:
4396 {
4397 if (!parseUnknownField(input, unknownFields, extensionRegistry, tag))
4398 {
4399 done = true;
4400 }
4401 break;
4402 }
4403 case 10:
4404 {
4405 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder subBuilder = null;
4406 if (msgCase_ == 1)
4407 {
4408 subBuilder = ((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_)
4409 .toBuilder();
4410 }
4411 msg_ = input.readMessage(
4412 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.PARSER,
4413 extensionRegistry);
4414 if (subBuilder != null)
4415 {
4416 subBuilder.mergeFrom(
4417 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_);
4418 msg_ = subBuilder.buildPartial();
4419 }
4420 msgCase_ = 1;
4421 break;
4422 }
4423 case 18:
4424 {
4425 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder subBuilder = null;
4426 if (msgCase_ == 2)
4427 {
4428 subBuilder = ((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_)
4429 .toBuilder();
4430 }
4431 msg_ = input.readMessage(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.PARSER,
4432 extensionRegistry);
4433 if (subBuilder != null)
4434 {
4435 subBuilder
4436 .mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_);
4437 msg_ = subBuilder.buildPartial();
4438 }
4439 msgCase_ = 2;
4440 break;
4441 }
4442 case 26:
4443 {
4444 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder subBuilder = null;
4445 if (msgCase_ == 3)
4446 {
4447 subBuilder =
4448 ((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_).toBuilder();
4449 }
4450 msg_ = input.readMessage(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.PARSER,
4451 extensionRegistry);
4452 if (subBuilder != null)
4453 {
4454 subBuilder.mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_);
4455 msg_ = subBuilder.buildPartial();
4456 }
4457 msgCase_ = 3;
4458 break;
4459 }
4460 }
4461 }
4462 }
4463 catch (com.google.protobuf.InvalidProtocolBufferException e)
4464 {
4465 throw e.setUnfinishedMessage(this);
4466 }
4467 catch (java.io.IOException e)
4468 {
4469 throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
4470 }
4471 finally
4472 {
4473 this.unknownFields = unknownFields.build();
4474 makeExtensionsImmutable();
4475 }
4476 }
4477
4478 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
4479 {
4480 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor;
4481 }
4482
4483 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
4484 {
4485 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_fieldAccessorTable
4486 .ensureFieldAccessorsInitialized(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.class,
4487 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.Builder.class);
4488 }
4489
4490 private int bitField0_;
4491
4492 private int msgCase_ = 0;
4493
4494 private java.lang.Object msg_;
4495
4496 public enum MsgCase implements com.google.protobuf.Internal.EnumLite
4497 {
4498 CREATESIMULATION(1),
4499 SIMULATEUNTIL(2),
4500 GTUPOSITIONS(3),
4501 MSG_NOT_SET(0);
4502 private final int value;
4503
4504 private MsgCase(int value)
4505 {
4506 this.value = value;
4507 }
4508
4509
4510
4511
4512 @java.lang.Deprecated
4513 public static MsgCase valueOf(int value)
4514 {
4515 return forNumber(value);
4516 }
4517
4518 public static MsgCase forNumber(int value)
4519 {
4520 switch (value)
4521 {
4522 case 1:
4523 return CREATESIMULATION;
4524 case 2:
4525 return SIMULATEUNTIL;
4526 case 3:
4527 return GTUPOSITIONS;
4528 case 0:
4529 return MSG_NOT_SET;
4530 default:
4531 return null;
4532 }
4533 }
4534
4535 public int getNumber()
4536 {
4537 return this.value;
4538 }
4539 };
4540
4541 public MsgCase getMsgCase()
4542 {
4543 return MsgCase.forNumber(msgCase_);
4544 }
4545
4546 public static final int CREATESIMULATION_FIELD_NUMBER = 1;
4547
4548
4549
4550
4551 public boolean hasCreateSimulation()
4552 {
4553 return msgCase_ == 1;
4554 }
4555
4556
4557
4558
4559 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getCreateSimulation()
4560 {
4561 if (msgCase_ == 1)
4562 {
4563 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_;
4564 }
4565 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
4566 }
4567
4568
4569
4570
4571 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder getCreateSimulationOrBuilder()
4572 {
4573 if (msgCase_ == 1)
4574 {
4575 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_;
4576 }
4577 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
4578 }
4579
4580 public static final int SIMULATEUNTIL_FIELD_NUMBER = 2;
4581
4582
4583
4584
4585 public boolean hasSimulateUntil()
4586 {
4587 return msgCase_ == 2;
4588 }
4589
4590
4591
4592
4593 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getSimulateUntil()
4594 {
4595 if (msgCase_ == 2)
4596 {
4597 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_;
4598 }
4599 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
4600 }
4601
4602
4603
4604
4605 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder getSimulateUntilOrBuilder()
4606 {
4607 if (msgCase_ == 2)
4608 {
4609 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_;
4610 }
4611 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
4612 }
4613
4614 public static final int GTUPOSITIONS_FIELD_NUMBER = 3;
4615
4616
4617
4618
4619 public boolean hasGtuPositions()
4620 {
4621 return msgCase_ == 3;
4622 }
4623
4624
4625
4626
4627 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getGtuPositions()
4628 {
4629 if (msgCase_ == 3)
4630 {
4631 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_;
4632 }
4633 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
4634 }
4635
4636
4637
4638
4639 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder getGtuPositionsOrBuilder()
4640 {
4641 if (msgCase_ == 3)
4642 {
4643 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_;
4644 }
4645 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
4646 }
4647
4648 private byte memoizedIsInitialized = -1;
4649
4650 public final boolean isInitialized()
4651 {
4652 byte isInitialized = memoizedIsInitialized;
4653 if (isInitialized == 1)
4654 return true;
4655 if (isInitialized == 0)
4656 return false;
4657
4658 if (hasCreateSimulation())
4659 {
4660 if (!getCreateSimulation().isInitialized())
4661 {
4662 memoizedIsInitialized = 0;
4663 return false;
4664 }
4665 }
4666 if (hasSimulateUntil())
4667 {
4668 if (!getSimulateUntil().isInitialized())
4669 {
4670 memoizedIsInitialized = 0;
4671 return false;
4672 }
4673 }
4674 if (hasGtuPositions())
4675 {
4676 if (!getGtuPositions().isInitialized())
4677 {
4678 memoizedIsInitialized = 0;
4679 return false;
4680 }
4681 }
4682 memoizedIsInitialized = 1;
4683 return true;
4684 }
4685
4686 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
4687 {
4688 if (msgCase_ == 1)
4689 {
4690 output.writeMessage(1, (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_);
4691 }
4692 if (msgCase_ == 2)
4693 {
4694 output.writeMessage(2, (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_);
4695 }
4696 if (msgCase_ == 3)
4697 {
4698 output.writeMessage(3, (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_);
4699 }
4700 unknownFields.writeTo(output);
4701 }
4702
4703 public int getSerializedSize()
4704 {
4705 int size = memoizedSize;
4706 if (size != -1)
4707 return size;
4708
4709 size = 0;
4710 if (msgCase_ == 1)
4711 {
4712 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1,
4713 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_);
4714 }
4715 if (msgCase_ == 2)
4716 {
4717 size += com.google.protobuf.CodedOutputStream.computeMessageSize(2,
4718 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_);
4719 }
4720 if (msgCase_ == 3)
4721 {
4722 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3,
4723 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_);
4724 }
4725 size += unknownFields.getSerializedSize();
4726 memoizedSize = size;
4727 return size;
4728 }
4729
4730 @java.lang.Override
4731 public boolean equals(final java.lang.Object obj)
4732 {
4733 if (obj == this)
4734 {
4735 return true;
4736 }
4737 if (!(obj instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage))
4738 {
4739 return super.equals(obj);
4740 }
4741 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage other =
4742 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage) obj;
4743
4744 boolean result = true;
4745 result = result && getMsgCase().equals(other.getMsgCase());
4746 if (!result)
4747 return false;
4748 switch (msgCase_)
4749 {
4750 case 1:
4751 result = result && getCreateSimulation().equals(other.getCreateSimulation());
4752 break;
4753 case 2:
4754 result = result && getSimulateUntil().equals(other.getSimulateUntil());
4755 break;
4756 case 3:
4757 result = result && getGtuPositions().equals(other.getGtuPositions());
4758 break;
4759 case 0:
4760 default:
4761 }
4762 result = result && unknownFields.equals(other.unknownFields);
4763 return result;
4764 }
4765
4766 @java.lang.Override
4767 public int hashCode()
4768 {
4769 if (memoizedHashCode != 0)
4770 {
4771 return memoizedHashCode;
4772 }
4773 int hash = 41;
4774 hash = (19 * hash) + getDescriptor().hashCode();
4775 switch (msgCase_)
4776 {
4777 case 1:
4778 hash = (37 * hash) + CREATESIMULATION_FIELD_NUMBER;
4779 hash = (53 * hash) + getCreateSimulation().hashCode();
4780 break;
4781 case 2:
4782 hash = (37 * hash) + SIMULATEUNTIL_FIELD_NUMBER;
4783 hash = (53 * hash) + getSimulateUntil().hashCode();
4784 break;
4785 case 3:
4786 hash = (37 * hash) + GTUPOSITIONS_FIELD_NUMBER;
4787 hash = (53 * hash) + getGtuPositions().hashCode();
4788 break;
4789 case 0:
4790 default:
4791 }
4792 hash = (29 * hash) + unknownFields.hashCode();
4793 memoizedHashCode = hash;
4794 return hash;
4795 }
4796
4797 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(java.nio.ByteBuffer data)
4798 throws com.google.protobuf.InvalidProtocolBufferException
4799 {
4800 return PARSER.parseFrom(data);
4801 }
4802
4803 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(java.nio.ByteBuffer data,
4804 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4805 throws com.google.protobuf.InvalidProtocolBufferException
4806 {
4807 return PARSER.parseFrom(data, extensionRegistry);
4808 }
4809
4810 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
4811 com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
4812 {
4813 return PARSER.parseFrom(data);
4814 }
4815
4816 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
4817 com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4818 throws com.google.protobuf.InvalidProtocolBufferException
4819 {
4820 return PARSER.parseFrom(data, extensionRegistry);
4821 }
4822
4823 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(byte[] data)
4824 throws com.google.protobuf.InvalidProtocolBufferException
4825 {
4826 return PARSER.parseFrom(data);
4827 }
4828
4829 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(byte[] data,
4830 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4831 throws com.google.protobuf.InvalidProtocolBufferException
4832 {
4833 return PARSER.parseFrom(data, extensionRegistry);
4834 }
4835
4836 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(java.io.InputStream input)
4837 throws java.io.IOException
4838 {
4839 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
4840 }
4841
4842 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(java.io.InputStream input,
4843 com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
4844 {
4845 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
4846 }
4847
4848 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseDelimitedFrom(
4849 java.io.InputStream input) throws java.io.IOException
4850 {
4851 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
4852 }
4853
4854 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseDelimitedFrom(
4855 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4856 throws java.io.IOException
4857 {
4858 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
4859 }
4860
4861 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
4862 com.google.protobuf.CodedInputStream input) throws java.io.IOException
4863 {
4864 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
4865 }
4866
4867 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parseFrom(
4868 com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4869 throws java.io.IOException
4870 {
4871 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
4872 }
4873
4874 public Builder newBuilderForType()
4875 {
4876 return newBuilder();
4877 }
4878
4879 public static Builder newBuilder()
4880 {
4881 return DEFAULT_INSTANCE.toBuilder();
4882 }
4883
4884 public static Builder newBuilder(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage prototype)
4885 {
4886 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
4887 }
4888
4889 public Builder toBuilder()
4890 {
4891 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
4892 }
4893
4894 @java.lang.Override
4895 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
4896 {
4897 Builder builder = new Builder(parent);
4898 return builder;
4899 }
4900
4901
4902
4903
4904 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
4905
4906 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessageOrBuilder
4907 {
4908 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
4909 {
4910 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor;
4911 }
4912
4913 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
4914 {
4915 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_fieldAccessorTable
4916 .ensureFieldAccessorsInitialized(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.class,
4917 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.Builder.class);
4918 }
4919
4920
4921 private Builder()
4922 {
4923 maybeForceBuilderInitialization();
4924 }
4925
4926 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
4927 {
4928 super(parent);
4929 maybeForceBuilderInitialization();
4930 }
4931
4932 private void maybeForceBuilderInitialization()
4933 {
4934 if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders)
4935 {
4936 }
4937 }
4938
4939 public Builder clear()
4940 {
4941 super.clear();
4942 msgCase_ = 0;
4943 msg_ = null;
4944 return this;
4945 }
4946
4947 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
4948 {
4949 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor;
4950 }
4951
4952 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage getDefaultInstanceForType()
4953 {
4954 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.getDefaultInstance();
4955 }
4956
4957 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage build()
4958 {
4959 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage result = buildPartial();
4960 if (!result.isInitialized())
4961 {
4962 throw newUninitializedMessageException(result);
4963 }
4964 return result;
4965 }
4966
4967 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage buildPartial()
4968 {
4969 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage result =
4970 new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage(this);
4971 int from_bitField0_ = bitField0_;
4972 int to_bitField0_ = 0;
4973 if (msgCase_ == 1)
4974 {
4975 if (createSimulationBuilder_ == null)
4976 {
4977 result.msg_ = msg_;
4978 }
4979 else
4980 {
4981 result.msg_ = createSimulationBuilder_.build();
4982 }
4983 }
4984 if (msgCase_ == 2)
4985 {
4986 if (simulateUntilBuilder_ == null)
4987 {
4988 result.msg_ = msg_;
4989 }
4990 else
4991 {
4992 result.msg_ = simulateUntilBuilder_.build();
4993 }
4994 }
4995 if (msgCase_ == 3)
4996 {
4997 if (gtuPositionsBuilder_ == null)
4998 {
4999 result.msg_ = msg_;
5000 }
5001 else
5002 {
5003 result.msg_ = gtuPositionsBuilder_.build();
5004 }
5005 }
5006 result.bitField0_ = to_bitField0_;
5007 result.msgCase_ = msgCase_;
5008 onBuilt();
5009 return result;
5010 }
5011
5012 public Builder clone()
5013 {
5014 return (Builder) super.clone();
5015 }
5016
5017 public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
5018 {
5019 return (Builder) super.setField(field, value);
5020 }
5021
5022 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
5023 {
5024 return (Builder) super.clearField(field);
5025 }
5026
5027 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
5028 {
5029 return (Builder) super.clearOneof(oneof);
5030 }
5031
5032 public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index,
5033 java.lang.Object value)
5034 {
5035 return (Builder) super.setRepeatedField(field, index, value);
5036 }
5037
5038 public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
5039 {
5040 return (Builder) super.addRepeatedField(field, value);
5041 }
5042
5043 public Builder mergeFrom(com.google.protobuf.Message other)
5044 {
5045 if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage)
5046 {
5047 return mergeFrom((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage) other);
5048 }
5049 else
5050 {
5051 super.mergeFrom(other);
5052 return this;
5053 }
5054 }
5055
5056 public Builder mergeFrom(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage other)
5057 {
5058 if (other == org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage.getDefaultInstance())
5059 return this;
5060 switch (other.getMsgCase())
5061 {
5062 case CREATESIMULATION:
5063 {
5064 mergeCreateSimulation(other.getCreateSimulation());
5065 break;
5066 }
5067 case SIMULATEUNTIL:
5068 {
5069 mergeSimulateUntil(other.getSimulateUntil());
5070 break;
5071 }
5072 case GTUPOSITIONS:
5073 {
5074 mergeGtuPositions(other.getGtuPositions());
5075 break;
5076 }
5077 case MSG_NOT_SET:
5078 {
5079 break;
5080 }
5081 }
5082 this.mergeUnknownFields(other.unknownFields);
5083 onChanged();
5084 return this;
5085 }
5086
5087 public final boolean isInitialized()
5088 {
5089 if (hasCreateSimulation())
5090 {
5091 if (!getCreateSimulation().isInitialized())
5092 {
5093 return false;
5094 }
5095 }
5096 if (hasSimulateUntil())
5097 {
5098 if (!getSimulateUntil().isInitialized())
5099 {
5100 return false;
5101 }
5102 }
5103 if (hasGtuPositions())
5104 {
5105 if (!getGtuPositions().isInitialized())
5106 {
5107 return false;
5108 }
5109 }
5110 return true;
5111 }
5112
5113 public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
5114 com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
5115 {
5116 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage parsedMessage = null;
5117 try
5118 {
5119 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
5120 }
5121 catch (com.google.protobuf.InvalidProtocolBufferException e)
5122 {
5123 parsedMessage = (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage) e.getUnfinishedMessage();
5124 throw e.unwrapIOException();
5125 }
5126 finally
5127 {
5128 if (parsedMessage != null)
5129 {
5130 mergeFrom(parsedMessage);
5131 }
5132 }
5133 return this;
5134 }
5135
5136 private int msgCase_ = 0;
5137
5138 private java.lang.Object msg_;
5139
5140 public MsgCase getMsgCase()
5141 {
5142 return MsgCase.forNumber(msgCase_);
5143 }
5144
5145 public Builder clearMsg()
5146 {
5147 msgCase_ = 0;
5148 msg_ = null;
5149 onChanged();
5150 return this;
5151 }
5152
5153 private int bitField0_;
5154
5155 private com.google.protobuf.SingleFieldBuilderV3<
5156 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation,
5157 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder,
5158 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder> createSimulationBuilder_;
5159
5160
5161
5162
5163 public boolean hasCreateSimulation()
5164 {
5165 return msgCase_ == 1;
5166 }
5167
5168
5169
5170
5171 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation getCreateSimulation()
5172 {
5173 if (createSimulationBuilder_ == null)
5174 {
5175 if (msgCase_ == 1)
5176 {
5177 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_;
5178 }
5179 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
5180 }
5181 else
5182 {
5183 if (msgCase_ == 1)
5184 {
5185 return createSimulationBuilder_.getMessage();
5186 }
5187 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
5188 }
5189 }
5190
5191
5192
5193
5194 public Builder setCreateSimulation(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation value)
5195 {
5196 if (createSimulationBuilder_ == null)
5197 {
5198 if (value == null)
5199 {
5200 throw new NullPointerException();
5201 }
5202 msg_ = value;
5203 onChanged();
5204 }
5205 else
5206 {
5207 createSimulationBuilder_.setMessage(value);
5208 }
5209 msgCase_ = 1;
5210 return this;
5211 }
5212
5213
5214
5215
5216 public Builder setCreateSimulation(
5217 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder builderForValue)
5218 {
5219 if (createSimulationBuilder_ == null)
5220 {
5221 msg_ = builderForValue.build();
5222 onChanged();
5223 }
5224 else
5225 {
5226 createSimulationBuilder_.setMessage(builderForValue.build());
5227 }
5228 msgCase_ = 1;
5229 return this;
5230 }
5231
5232
5233
5234
5235 public Builder mergeCreateSimulation(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation value)
5236 {
5237 if (createSimulationBuilder_ == null)
5238 {
5239 if (msgCase_ == 1 && msg_ != org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation
5240 .getDefaultInstance())
5241 {
5242 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation
5243 .newBuilder((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_)
5244 .mergeFrom(value).buildPartial();
5245 }
5246 else
5247 {
5248 msg_ = value;
5249 }
5250 onChanged();
5251 }
5252 else
5253 {
5254 if (msgCase_ == 1)
5255 {
5256 createSimulationBuilder_.mergeFrom(value);
5257 }
5258 createSimulationBuilder_.setMessage(value);
5259 }
5260 msgCase_ = 1;
5261 return this;
5262 }
5263
5264
5265
5266
5267 public Builder clearCreateSimulation()
5268 {
5269 if (createSimulationBuilder_ == null)
5270 {
5271 if (msgCase_ == 1)
5272 {
5273 msgCase_ = 0;
5274 msg_ = null;
5275 onChanged();
5276 }
5277 }
5278 else
5279 {
5280 if (msgCase_ == 1)
5281 {
5282 msgCase_ = 0;
5283 msg_ = null;
5284 }
5285 createSimulationBuilder_.clear();
5286 }
5287 return this;
5288 }
5289
5290
5291
5292
5293 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder getCreateSimulationBuilder()
5294 {
5295 return getCreateSimulationFieldBuilder().getBuilder();
5296 }
5297
5298
5299
5300
5301 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder getCreateSimulationOrBuilder()
5302 {
5303 if ((msgCase_ == 1) && (createSimulationBuilder_ != null))
5304 {
5305 return createSimulationBuilder_.getMessageOrBuilder();
5306 }
5307 else
5308 {
5309 if (msgCase_ == 1)
5310 {
5311 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_;
5312 }
5313 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
5314 }
5315 }
5316
5317
5318
5319
5320 private com.google.protobuf.SingleFieldBuilderV3<
5321 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation,
5322 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder,
5323 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder> getCreateSimulationFieldBuilder()
5324 {
5325 if (createSimulationBuilder_ == null)
5326 {
5327 if (!(msgCase_ == 1))
5328 {
5329 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.getDefaultInstance();
5330 }
5331 createSimulationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5332 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation,
5333 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation.Builder,
5334 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder>(
5335 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) msg_,
5336 getParentForChildren(), isClean());
5337 msg_ = null;
5338 }
5339 msgCase_ = 1;
5340 onChanged();
5341 ;
5342 return createSimulationBuilder_;
5343 }
5344
5345 private com.google.protobuf.SingleFieldBuilderV3<
5346 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil,
5347 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder,
5348 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder> simulateUntilBuilder_;
5349
5350
5351
5352
5353 public boolean hasSimulateUntil()
5354 {
5355 return msgCase_ == 2;
5356 }
5357
5358
5359
5360
5361 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil getSimulateUntil()
5362 {
5363 if (simulateUntilBuilder_ == null)
5364 {
5365 if (msgCase_ == 2)
5366 {
5367 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_;
5368 }
5369 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
5370 }
5371 else
5372 {
5373 if (msgCase_ == 2)
5374 {
5375 return simulateUntilBuilder_.getMessage();
5376 }
5377 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
5378 }
5379 }
5380
5381
5382
5383
5384 public Builder setSimulateUntil(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil value)
5385 {
5386 if (simulateUntilBuilder_ == null)
5387 {
5388 if (value == null)
5389 {
5390 throw new NullPointerException();
5391 }
5392 msg_ = value;
5393 onChanged();
5394 }
5395 else
5396 {
5397 simulateUntilBuilder_.setMessage(value);
5398 }
5399 msgCase_ = 2;
5400 return this;
5401 }
5402
5403
5404
5405
5406 public Builder setSimulateUntil(
5407 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder builderForValue)
5408 {
5409 if (simulateUntilBuilder_ == null)
5410 {
5411 msg_ = builderForValue.build();
5412 onChanged();
5413 }
5414 else
5415 {
5416 simulateUntilBuilder_.setMessage(builderForValue.build());
5417 }
5418 msgCase_ = 2;
5419 return this;
5420 }
5421
5422
5423
5424
5425 public Builder mergeSimulateUntil(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil value)
5426 {
5427 if (simulateUntilBuilder_ == null)
5428 {
5429 if (msgCase_ == 2
5430 && msg_ != org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance())
5431 {
5432 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil
5433 .newBuilder((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_)
5434 .mergeFrom(value).buildPartial();
5435 }
5436 else
5437 {
5438 msg_ = value;
5439 }
5440 onChanged();
5441 }
5442 else
5443 {
5444 if (msgCase_ == 2)
5445 {
5446 simulateUntilBuilder_.mergeFrom(value);
5447 }
5448 simulateUntilBuilder_.setMessage(value);
5449 }
5450 msgCase_ = 2;
5451 return this;
5452 }
5453
5454
5455
5456
5457 public Builder clearSimulateUntil()
5458 {
5459 if (simulateUntilBuilder_ == null)
5460 {
5461 if (msgCase_ == 2)
5462 {
5463 msgCase_ = 0;
5464 msg_ = null;
5465 onChanged();
5466 }
5467 }
5468 else
5469 {
5470 if (msgCase_ == 2)
5471 {
5472 msgCase_ = 0;
5473 msg_ = null;
5474 }
5475 simulateUntilBuilder_.clear();
5476 }
5477 return this;
5478 }
5479
5480
5481
5482
5483 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder getSimulateUntilBuilder()
5484 {
5485 return getSimulateUntilFieldBuilder().getBuilder();
5486 }
5487
5488
5489
5490
5491 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder getSimulateUntilOrBuilder()
5492 {
5493 if ((msgCase_ == 2) && (simulateUntilBuilder_ != null))
5494 {
5495 return simulateUntilBuilder_.getMessageOrBuilder();
5496 }
5497 else
5498 {
5499 if (msgCase_ == 2)
5500 {
5501 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_;
5502 }
5503 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
5504 }
5505 }
5506
5507
5508
5509
5510 private com.google.protobuf.SingleFieldBuilderV3<
5511 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil,
5512 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder,
5513 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder> getSimulateUntilFieldBuilder()
5514 {
5515 if (simulateUntilBuilder_ == null)
5516 {
5517 if (!(msgCase_ == 2))
5518 {
5519 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.getDefaultInstance();
5520 }
5521 simulateUntilBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5522 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil,
5523 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil.Builder,
5524 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntilOrBuilder>(
5525 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.SimulateUntil) msg_,
5526 getParentForChildren(), isClean());
5527 msg_ = null;
5528 }
5529 msgCase_ = 2;
5530 onChanged();
5531 ;
5532 return simulateUntilBuilder_;
5533 }
5534
5535 private com.google.protobuf.SingleFieldBuilderV3<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions,
5536 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder,
5537 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder> gtuPositionsBuilder_;
5538
5539
5540
5541
5542 public boolean hasGtuPositions()
5543 {
5544 return msgCase_ == 3;
5545 }
5546
5547
5548
5549
5550 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions getGtuPositions()
5551 {
5552 if (gtuPositionsBuilder_ == null)
5553 {
5554 if (msgCase_ == 3)
5555 {
5556 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_;
5557 }
5558 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
5559 }
5560 else
5561 {
5562 if (msgCase_ == 3)
5563 {
5564 return gtuPositionsBuilder_.getMessage();
5565 }
5566 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
5567 }
5568 }
5569
5570
5571
5572
5573 public Builder setGtuPositions(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions value)
5574 {
5575 if (gtuPositionsBuilder_ == null)
5576 {
5577 if (value == null)
5578 {
5579 throw new NullPointerException();
5580 }
5581 msg_ = value;
5582 onChanged();
5583 }
5584 else
5585 {
5586 gtuPositionsBuilder_.setMessage(value);
5587 }
5588 msgCase_ = 3;
5589 return this;
5590 }
5591
5592
5593
5594
5595 public Builder setGtuPositions(
5596 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder builderForValue)
5597 {
5598 if (gtuPositionsBuilder_ == null)
5599 {
5600 msg_ = builderForValue.build();
5601 onChanged();
5602 }
5603 else
5604 {
5605 gtuPositionsBuilder_.setMessage(builderForValue.build());
5606 }
5607 msgCase_ = 3;
5608 return this;
5609 }
5610
5611
5612
5613
5614 public Builder mergeGtuPositions(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions value)
5615 {
5616 if (gtuPositionsBuilder_ == null)
5617 {
5618 if (msgCase_ == 3
5619 && msg_ != org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance())
5620 {
5621 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions
5622 .newBuilder((org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_)
5623 .mergeFrom(value).buildPartial();
5624 }
5625 else
5626 {
5627 msg_ = value;
5628 }
5629 onChanged();
5630 }
5631 else
5632 {
5633 if (msgCase_ == 3)
5634 {
5635 gtuPositionsBuilder_.mergeFrom(value);
5636 }
5637 gtuPositionsBuilder_.setMessage(value);
5638 }
5639 msgCase_ = 3;
5640 return this;
5641 }
5642
5643
5644
5645
5646 public Builder clearGtuPositions()
5647 {
5648 if (gtuPositionsBuilder_ == null)
5649 {
5650 if (msgCase_ == 3)
5651 {
5652 msgCase_ = 0;
5653 msg_ = null;
5654 onChanged();
5655 }
5656 }
5657 else
5658 {
5659 if (msgCase_ == 3)
5660 {
5661 msgCase_ = 0;
5662 msg_ = null;
5663 }
5664 gtuPositionsBuilder_.clear();
5665 }
5666 return this;
5667 }
5668
5669
5670
5671
5672 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder getGtuPositionsBuilder()
5673 {
5674 return getGtuPositionsFieldBuilder().getBuilder();
5675 }
5676
5677
5678
5679
5680 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder getGtuPositionsOrBuilder()
5681 {
5682 if ((msgCase_ == 3) && (gtuPositionsBuilder_ != null))
5683 {
5684 return gtuPositionsBuilder_.getMessageOrBuilder();
5685 }
5686 else
5687 {
5688 if (msgCase_ == 3)
5689 {
5690 return (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_;
5691 }
5692 return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
5693 }
5694 }
5695
5696
5697
5698
5699 private com.google.protobuf.SingleFieldBuilderV3<org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions,
5700 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder,
5701 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder> getGtuPositionsFieldBuilder()
5702 {
5703 if (gtuPositionsBuilder_ == null)
5704 {
5705 if (!(msgCase_ == 3))
5706 {
5707 msg_ = org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.getDefaultInstance();
5708 }
5709 gtuPositionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5710 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions,
5711 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.Builder,
5712 org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositionsOrBuilder>(
5713 (org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions) msg_,
5714 getParentForChildren(), isClean());
5715 msg_ = null;
5716 }
5717 msgCase_ = 3;
5718 onChanged();
5719 ;
5720 return gtuPositionsBuilder_;
5721 }
5722
5723 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
5724 {
5725 return super.setUnknownFields(unknownFields);
5726 }
5727
5728 public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
5729 {
5730 return super.mergeUnknownFields(unknownFields);
5731 }
5732
5733
5734 }
5735
5736
5737 private static final org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage DEFAULT_INSTANCE;
5738 static
5739 {
5740 DEFAULT_INSTANCE = new org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage();
5741 }
5742
5743 public static org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage getDefaultInstance()
5744 {
5745 return DEFAULT_INSTANCE;
5746 }
5747
5748 @java.lang.Deprecated
5749 public static final com.google.protobuf.Parser<OTSMessage> PARSER = new com.google.protobuf.AbstractParser<OTSMessage>()
5750 {
5751 public OTSMessage parsePartialFrom(com.google.protobuf.CodedInputStream input,
5752 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5753 throws com.google.protobuf.InvalidProtocolBufferException
5754 {
5755 return new OTSMessage(input, extensionRegistry);
5756 }
5757 };
5758
5759 public static com.google.protobuf.Parser<OTSMessage> parser()
5760 {
5761 return PARSER;
5762 }
5763
5764 @java.lang.Override
5765 public com.google.protobuf.Parser<OTSMessage> getParserForType()
5766 {
5767 return PARSER;
5768 }
5769
5770 public org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.OTSMessage getDefaultInstanceForType()
5771 {
5772 return DEFAULT_INSTANCE;
5773 }
5774
5775 }
5776
5777 private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor;
5778
5779 private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_fieldAccessorTable;
5780
5781 private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor;
5782
5783 private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_fieldAccessorTable;
5784
5785 private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor;
5786
5787 private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_fieldAccessorTable;
5788
5789 private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor;
5790
5791 private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_fieldAccessorTable;
5792
5793 private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor;
5794
5795 private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_fieldAccessorTable;
5796
5797 public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor()
5798 {
5799 return descriptor;
5800 }
5801
5802 private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
5803 static
5804 {
5805 java.lang.String[] descriptorData = {
5806 "\n\020ots-aimsun.proto\022\037org.opentrafficsim.a" + "imsun.proto\"K\n\020CreateSimulation\022\017\n\007runTi"
5807 + "me\030\001 \002(\001\022\022\n\nwarmUpTime\030\002 \002(\001\022\022\n\nnetworkX"
5808 + "ML\030\003 \001(\t\"\035\n\rSimulateUntil\022\014\n\004time\030\001 \002(\001\""
5809 + "\371\001\n\014GTUPositions\022I\n\006gtuPos\030\001 \003(\01329.org.o"
5810 + "pentrafficsim.aimsun.proto.GTUPositions."
5811 + "GTUPosition\022\016\n\006status\030\002 \002(\t\032\215\001\n\013GTUPosit"
5812 + "ion\022\r\n\005gtuId\030\001 \002(\t\022\t\n\001x\030\002 \002(\001\022\t\n\001y\030\003 \002(\001"
5813 + "\022\t\n\001z\030\004 \001(\001\022\r\n\005angle\030\005 \002(\001\022\r\n\005width\030\006 \002("
5814 + "\001\022\016\n\006length\030\007 \002(\001\022\021\n\tgtuTypeId\030\010 \002(\005\022\r\n\005",
5815 "speed\030\t \002(\001\"\362\001\n\nOTSMessage\022M\n\020createSimu"
5816 + "lation\030\001 \001(\01321.org.opentrafficsim.aimsun"
5817 + ".proto.CreateSimulationH\000\022G\n\rsimulateUnt"
5818 + "il\030\002 \001(\0132..org.opentrafficsim.aimsun.pro"
5819 + "to.SimulateUntilH\000\022E\n\014gtuPositions\030\003 \001(\013"
5820 + "2-.org.opentrafficsim.aimsun.proto.GTUPo"
5821 + "sitionsH\000B\005\n\003msgB\027B\025AimsunControlProtoBu" + "f" };
5822 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
5823 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner()
5824 {
5825 public com.google.protobuf.ExtensionRegistry assignDescriptors(
5826 com.google.protobuf.Descriptors.FileDescriptor root)
5827 {
5828 descriptor = root;
5829 return null;
5830 }
5831 };
5832 com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData,
5833 new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
5834 internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor = getDescriptor().getMessageTypes().get(0);
5835 internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_fieldAccessorTable =
5836 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
5837 internal_static_org_opentrafficsim_aimsun_proto_CreateSimulation_descriptor,
5838 new java.lang.String[] { "RunTime", "WarmUpTime", "NetworkXML", });
5839 internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor = getDescriptor().getMessageTypes().get(1);
5840 internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_fieldAccessorTable =
5841 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
5842 internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor,
5843 new java.lang.String[] { "Time", });
5844 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor = getDescriptor().getMessageTypes().get(2);
5845 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_fieldAccessorTable =
5846 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
5847 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor,
5848 new java.lang.String[] { "GtuPos", "Status", });
5849 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor =
5850 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_descriptor.getNestedTypes().get(0);
5851 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_fieldAccessorTable =
5852 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
5853 internal_static_org_opentrafficsim_aimsun_proto_GTUPositions_GTUPosition_descriptor,
5854 new java.lang.String[] { "GtuId", "X", "Y", "Z", "Angle", "Width", "Length", "GtuTypeId", "Speed", });
5855 internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor = getDescriptor().getMessageTypes().get(3);
5856 internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_fieldAccessorTable =
5857 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
5858 internal_static_org_opentrafficsim_aimsun_proto_OTSMessage_descriptor,
5859 new java.lang.String[] { "CreateSimulation", "SimulateUntil", "GtuPositions", "Msg", });
5860 }
5861
5862
5863 }