1 /*
2  * Copyright (C) 2017 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package android.location.cts.asn1.supl2.supl_pos_init;
18 
19 /*
20  */
21 
22 
23 //
24 //
25 import android.location.cts.asn1.base.Asn1Boolean;
26 import android.location.cts.asn1.base.Asn1Null;
27 import android.location.cts.asn1.base.Asn1Object;
28 import android.location.cts.asn1.base.Asn1Sequence;
29 import android.location.cts.asn1.base.Asn1Tag;
30 import android.location.cts.asn1.base.BitStream;
31 import android.location.cts.asn1.base.BitStreamReader;
32 import android.location.cts.asn1.base.SequenceComponent;
33 import android.location.cts.asn1.supl2.ulp_version_2_parameter_extensions.Ver2_RequestedAssistData_extension;
34 import com.google.common.collect.ImmutableList;
35 import java.util.Collection;
36 import javax.annotation.Nullable;
37 
38 
39 /**
40 */
41 public  class RequestedAssistData extends Asn1Sequence {
42   //
43 
44   private static final Asn1Tag TAG_RequestedAssistData
45       = Asn1Tag.fromClassAndNumber(-1, -1);
46 
RequestedAssistData()47   public RequestedAssistData() {
48     super();
49   }
50 
51   @Override
52   @Nullable
getTag()53   protected Asn1Tag getTag() {
54     return TAG_RequestedAssistData;
55   }
56 
57   @Override
isTagImplicit()58   protected boolean isTagImplicit() {
59     return true;
60   }
61 
getPossibleFirstTags()62   public static Collection<Asn1Tag> getPossibleFirstTags() {
63     if (TAG_RequestedAssistData != null) {
64       return ImmutableList.of(TAG_RequestedAssistData);
65     } else {
66       return Asn1Sequence.getPossibleFirstTags();
67     }
68   }
69 
70   /**
71    * Creates a new RequestedAssistData from encoded stream.
72    */
fromPerUnaligned(byte[] encodedBytes)73   public static RequestedAssistData fromPerUnaligned(byte[] encodedBytes) {
74     RequestedAssistData result = new RequestedAssistData();
75     result.decodePerUnaligned(new BitStreamReader(encodedBytes));
76     return result;
77   }
78 
79   /**
80    * Creates a new RequestedAssistData from encoded stream.
81    */
fromPerAligned(byte[] encodedBytes)82   public static RequestedAssistData fromPerAligned(byte[] encodedBytes) {
83     RequestedAssistData result = new RequestedAssistData();
84     result.decodePerAligned(new BitStreamReader(encodedBytes));
85     return result;
86   }
87 
88 
89 
isExtensible()90   @Override protected boolean isExtensible() {
91     return true;
92   }
93 
containsExtensionValues()94   @Override public boolean containsExtensionValues() {
95     for (SequenceComponent extensionComponent : getExtensionComponents()) {
96       if (extensionComponent.isExplicitlySet()) return true;
97     }
98     return false;
99   }
100 
101 
102   private RequestedAssistData.almanacRequestedType almanacRequested_;
getAlmanacRequested()103   public RequestedAssistData.almanacRequestedType getAlmanacRequested() {
104     return almanacRequested_;
105   }
106   /**
107    * @throws ClassCastException if value is not a RequestedAssistData.almanacRequestedType
108    */
setAlmanacRequested(Asn1Object value)109   public void setAlmanacRequested(Asn1Object value) {
110     this.almanacRequested_ = (RequestedAssistData.almanacRequestedType) value;
111   }
setAlmanacRequestedToNewInstance()112   public RequestedAssistData.almanacRequestedType setAlmanacRequestedToNewInstance() {
113     almanacRequested_ = new RequestedAssistData.almanacRequestedType();
114     return almanacRequested_;
115   }
116 
117   private RequestedAssistData.utcModelRequestedType utcModelRequested_;
getUtcModelRequested()118   public RequestedAssistData.utcModelRequestedType getUtcModelRequested() {
119     return utcModelRequested_;
120   }
121   /**
122    * @throws ClassCastException if value is not a RequestedAssistData.utcModelRequestedType
123    */
setUtcModelRequested(Asn1Object value)124   public void setUtcModelRequested(Asn1Object value) {
125     this.utcModelRequested_ = (RequestedAssistData.utcModelRequestedType) value;
126   }
setUtcModelRequestedToNewInstance()127   public RequestedAssistData.utcModelRequestedType setUtcModelRequestedToNewInstance() {
128     utcModelRequested_ = new RequestedAssistData.utcModelRequestedType();
129     return utcModelRequested_;
130   }
131 
132   private RequestedAssistData.ionosphericModelRequestedType ionosphericModelRequested_;
getIonosphericModelRequested()133   public RequestedAssistData.ionosphericModelRequestedType getIonosphericModelRequested() {
134     return ionosphericModelRequested_;
135   }
136   /**
137    * @throws ClassCastException if value is not a RequestedAssistData.ionosphericModelRequestedType
138    */
setIonosphericModelRequested(Asn1Object value)139   public void setIonosphericModelRequested(Asn1Object value) {
140     this.ionosphericModelRequested_ = (RequestedAssistData.ionosphericModelRequestedType) value;
141   }
setIonosphericModelRequestedToNewInstance()142   public RequestedAssistData.ionosphericModelRequestedType setIonosphericModelRequestedToNewInstance() {
143     ionosphericModelRequested_ = new RequestedAssistData.ionosphericModelRequestedType();
144     return ionosphericModelRequested_;
145   }
146 
147   private RequestedAssistData.dgpsCorrectionsRequestedType dgpsCorrectionsRequested_;
getDgpsCorrectionsRequested()148   public RequestedAssistData.dgpsCorrectionsRequestedType getDgpsCorrectionsRequested() {
149     return dgpsCorrectionsRequested_;
150   }
151   /**
152    * @throws ClassCastException if value is not a RequestedAssistData.dgpsCorrectionsRequestedType
153    */
setDgpsCorrectionsRequested(Asn1Object value)154   public void setDgpsCorrectionsRequested(Asn1Object value) {
155     this.dgpsCorrectionsRequested_ = (RequestedAssistData.dgpsCorrectionsRequestedType) value;
156   }
setDgpsCorrectionsRequestedToNewInstance()157   public RequestedAssistData.dgpsCorrectionsRequestedType setDgpsCorrectionsRequestedToNewInstance() {
158     dgpsCorrectionsRequested_ = new RequestedAssistData.dgpsCorrectionsRequestedType();
159     return dgpsCorrectionsRequested_;
160   }
161 
162   private RequestedAssistData.referenceLocationRequestedType referenceLocationRequested_;
getReferenceLocationRequested()163   public RequestedAssistData.referenceLocationRequestedType getReferenceLocationRequested() {
164     return referenceLocationRequested_;
165   }
166   /**
167    * @throws ClassCastException if value is not a RequestedAssistData.referenceLocationRequestedType
168    */
setReferenceLocationRequested(Asn1Object value)169   public void setReferenceLocationRequested(Asn1Object value) {
170     this.referenceLocationRequested_ = (RequestedAssistData.referenceLocationRequestedType) value;
171   }
setReferenceLocationRequestedToNewInstance()172   public RequestedAssistData.referenceLocationRequestedType setReferenceLocationRequestedToNewInstance() {
173     referenceLocationRequested_ = new RequestedAssistData.referenceLocationRequestedType();
174     return referenceLocationRequested_;
175   }
176 
177   private RequestedAssistData.referenceTimeRequestedType referenceTimeRequested_;
getReferenceTimeRequested()178   public RequestedAssistData.referenceTimeRequestedType getReferenceTimeRequested() {
179     return referenceTimeRequested_;
180   }
181   /**
182    * @throws ClassCastException if value is not a RequestedAssistData.referenceTimeRequestedType
183    */
setReferenceTimeRequested(Asn1Object value)184   public void setReferenceTimeRequested(Asn1Object value) {
185     this.referenceTimeRequested_ = (RequestedAssistData.referenceTimeRequestedType) value;
186   }
setReferenceTimeRequestedToNewInstance()187   public RequestedAssistData.referenceTimeRequestedType setReferenceTimeRequestedToNewInstance() {
188     referenceTimeRequested_ = new RequestedAssistData.referenceTimeRequestedType();
189     return referenceTimeRequested_;
190   }
191 
192   private RequestedAssistData.acquisitionAssistanceRequestedType acquisitionAssistanceRequested_;
getAcquisitionAssistanceRequested()193   public RequestedAssistData.acquisitionAssistanceRequestedType getAcquisitionAssistanceRequested() {
194     return acquisitionAssistanceRequested_;
195   }
196   /**
197    * @throws ClassCastException if value is not a RequestedAssistData.acquisitionAssistanceRequestedType
198    */
setAcquisitionAssistanceRequested(Asn1Object value)199   public void setAcquisitionAssistanceRequested(Asn1Object value) {
200     this.acquisitionAssistanceRequested_ = (RequestedAssistData.acquisitionAssistanceRequestedType) value;
201   }
setAcquisitionAssistanceRequestedToNewInstance()202   public RequestedAssistData.acquisitionAssistanceRequestedType setAcquisitionAssistanceRequestedToNewInstance() {
203     acquisitionAssistanceRequested_ = new RequestedAssistData.acquisitionAssistanceRequestedType();
204     return acquisitionAssistanceRequested_;
205   }
206 
207   private RequestedAssistData.realTimeIntegrityRequestedType realTimeIntegrityRequested_;
getRealTimeIntegrityRequested()208   public RequestedAssistData.realTimeIntegrityRequestedType getRealTimeIntegrityRequested() {
209     return realTimeIntegrityRequested_;
210   }
211   /**
212    * @throws ClassCastException if value is not a RequestedAssistData.realTimeIntegrityRequestedType
213    */
setRealTimeIntegrityRequested(Asn1Object value)214   public void setRealTimeIntegrityRequested(Asn1Object value) {
215     this.realTimeIntegrityRequested_ = (RequestedAssistData.realTimeIntegrityRequestedType) value;
216   }
setRealTimeIntegrityRequestedToNewInstance()217   public RequestedAssistData.realTimeIntegrityRequestedType setRealTimeIntegrityRequestedToNewInstance() {
218     realTimeIntegrityRequested_ = new RequestedAssistData.realTimeIntegrityRequestedType();
219     return realTimeIntegrityRequested_;
220   }
221 
222   private RequestedAssistData.navigationModelRequestedType navigationModelRequested_;
getNavigationModelRequested()223   public RequestedAssistData.navigationModelRequestedType getNavigationModelRequested() {
224     return navigationModelRequested_;
225   }
226   /**
227    * @throws ClassCastException if value is not a RequestedAssistData.navigationModelRequestedType
228    */
setNavigationModelRequested(Asn1Object value)229   public void setNavigationModelRequested(Asn1Object value) {
230     this.navigationModelRequested_ = (RequestedAssistData.navigationModelRequestedType) value;
231   }
setNavigationModelRequestedToNewInstance()232   public RequestedAssistData.navigationModelRequestedType setNavigationModelRequestedToNewInstance() {
233     navigationModelRequested_ = new RequestedAssistData.navigationModelRequestedType();
234     return navigationModelRequested_;
235   }
236 
237   private NavigationModel navigationModelData_;
getNavigationModelData()238   public NavigationModel getNavigationModelData() {
239     return navigationModelData_;
240   }
241   /**
242    * @throws ClassCastException if value is not a NavigationModel
243    */
setNavigationModelData(Asn1Object value)244   public void setNavigationModelData(Asn1Object value) {
245     this.navigationModelData_ = (NavigationModel) value;
246   }
setNavigationModelDataToNewInstance()247   public NavigationModel setNavigationModelDataToNewInstance() {
248     navigationModelData_ = new NavigationModel();
249     return navigationModelData_;
250   }
251 
252 
253 
254   private Ver2_RequestedAssistData_extension  extensionVer2_RequestedAssistData_extension;
getExtensionVer2_RequestedAssistData_extension()255   public Ver2_RequestedAssistData_extension getExtensionVer2_RequestedAssistData_extension() {
256     return extensionVer2_RequestedAssistData_extension;
257   }
258   /**
259    * @throws ClassCastException if value is not a Ver2_RequestedAssistData_extension
260    */
setExtensionVer2_RequestedAssistData_extension(Asn1Object value)261   public void setExtensionVer2_RequestedAssistData_extension(Asn1Object value) {
262     extensionVer2_RequestedAssistData_extension = (Ver2_RequestedAssistData_extension) value;
263   }
setExtensionVer2_RequestedAssistData_extensionToNewInstance()264   public void setExtensionVer2_RequestedAssistData_extensionToNewInstance() {
265     extensionVer2_RequestedAssistData_extension = new Ver2_RequestedAssistData_extension();
266   }
267 
268 
269 
270 
getComponents()271   @Override public Iterable<? extends SequenceComponent> getComponents() {
272     ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder();
273 
274     builder.add(new SequenceComponent() {
275           Asn1Tag tag = Asn1Tag.fromClassAndNumber(2, 0);
276 
277           @Override public boolean isExplicitlySet() {
278             return getAlmanacRequested() != null;
279           }
280 
281           @Override public boolean hasDefaultValue() {
282             return false;
283           }
284 
285           @Override public boolean isOptional() {
286             return false;
287           }
288 
289           @Override public Asn1Object getComponentValue() {
290             return getAlmanacRequested();
291           }
292 
293           @Override public void setToNewInstance() {
294             setAlmanacRequestedToNewInstance();
295           }
296 
297           @Override public Collection<Asn1Tag> getPossibleFirstTags() {
298             return tag == null ? RequestedAssistData.almanacRequestedType.getPossibleFirstTags() : ImmutableList.of(tag);
299           }
300 
301           @Override
302           public Asn1Tag getTag() {
303             return tag;
304           }
305 
306           @Override
307           public boolean isImplicitTagging() {
308             return true;
309           }
310 
311           @Override public String toIndentedString(String indent) {
312                 return "almanacRequested : "
313                     + getAlmanacRequested().toIndentedString(indent);
314               }
315         });
316 
317     builder.add(new SequenceComponent() {
318           Asn1Tag tag = Asn1Tag.fromClassAndNumber(2, 1);
319 
320           @Override public boolean isExplicitlySet() {
321             return getUtcModelRequested() != null;
322           }
323 
324           @Override public boolean hasDefaultValue() {
325             return false;
326           }
327 
328           @Override public boolean isOptional() {
329             return false;
330           }
331 
332           @Override public Asn1Object getComponentValue() {
333             return getUtcModelRequested();
334           }
335 
336           @Override public void setToNewInstance() {
337             setUtcModelRequestedToNewInstance();
338           }
339 
340           @Override public Collection<Asn1Tag> getPossibleFirstTags() {
341             return tag == null ? RequestedAssistData.utcModelRequestedType.getPossibleFirstTags() : ImmutableList.of(tag);
342           }
343 
344           @Override
345           public Asn1Tag getTag() {
346             return tag;
347           }
348 
349           @Override
350           public boolean isImplicitTagging() {
351             return true;
352           }
353 
354           @Override public String toIndentedString(String indent) {
355                 return "utcModelRequested : "
356                     + getUtcModelRequested().toIndentedString(indent);
357               }
358         });
359 
360     builder.add(new SequenceComponent() {
361           Asn1Tag tag = Asn1Tag.fromClassAndNumber(2, 2);
362 
363           @Override public boolean isExplicitlySet() {
364             return getIonosphericModelRequested() != null;
365           }
366 
367           @Override public boolean hasDefaultValue() {
368             return false;
369           }
370 
371           @Override public boolean isOptional() {
372             return false;
373           }
374 
375           @Override public Asn1Object getComponentValue() {
376             return getIonosphericModelRequested();
377           }
378 
379           @Override public void setToNewInstance() {
380             setIonosphericModelRequestedToNewInstance();
381           }
382 
383           @Override public Collection<Asn1Tag> getPossibleFirstTags() {
384             return tag == null ? RequestedAssistData.ionosphericModelRequestedType.getPossibleFirstTags() : ImmutableList.of(tag);
385           }
386 
387           @Override
388           public Asn1Tag getTag() {
389             return tag;
390           }
391 
392           @Override
393           public boolean isImplicitTagging() {
394             return true;
395           }
396 
397           @Override public String toIndentedString(String indent) {
398                 return "ionosphericModelRequested : "
399                     + getIonosphericModelRequested().toIndentedString(indent);
400               }
401         });
402 
403     builder.add(new SequenceComponent() {
404           Asn1Tag tag = Asn1Tag.fromClassAndNumber(2, 3);
405 
406           @Override public boolean isExplicitlySet() {
407             return getDgpsCorrectionsRequested() != null;
408           }
409 
410           @Override public boolean hasDefaultValue() {
411             return false;
412           }
413 
414           @Override public boolean isOptional() {
415             return false;
416           }
417 
418           @Override public Asn1Object getComponentValue() {
419             return getDgpsCorrectionsRequested();
420           }
421 
422           @Override public void setToNewInstance() {
423             setDgpsCorrectionsRequestedToNewInstance();
424           }
425 
426           @Override public Collection<Asn1Tag> getPossibleFirstTags() {
427             return tag == null ? RequestedAssistData.dgpsCorrectionsRequestedType.getPossibleFirstTags() : ImmutableList.of(tag);
428           }
429 
430           @Override
431           public Asn1Tag getTag() {
432             return tag;
433           }
434 
435           @Override
436           public boolean isImplicitTagging() {
437             return true;
438           }
439 
440           @Override public String toIndentedString(String indent) {
441                 return "dgpsCorrectionsRequested : "
442                     + getDgpsCorrectionsRequested().toIndentedString(indent);
443               }
444         });
445 
446     builder.add(new SequenceComponent() {
447           Asn1Tag tag = Asn1Tag.fromClassAndNumber(2, 4);
448 
449           @Override public boolean isExplicitlySet() {
450             return getReferenceLocationRequested() != null;
451           }
452 
453           @Override public boolean hasDefaultValue() {
454             return false;
455           }
456 
457           @Override public boolean isOptional() {
458             return false;
459           }
460 
461           @Override public Asn1Object getComponentValue() {
462             return getReferenceLocationRequested();
463           }
464 
465           @Override public void setToNewInstance() {
466             setReferenceLocationRequestedToNewInstance();
467           }
468 
469           @Override public Collection<Asn1Tag> getPossibleFirstTags() {
470             return tag == null ? RequestedAssistData.referenceLocationRequestedType.getPossibleFirstTags() : ImmutableList.of(tag);
471           }
472 
473           @Override
474           public Asn1Tag getTag() {
475             return tag;
476           }
477 
478           @Override
479           public boolean isImplicitTagging() {
480             return true;
481           }
482 
483           @Override public String toIndentedString(String indent) {
484                 return "referenceLocationRequested : "
485                     + getReferenceLocationRequested().toIndentedString(indent);
486               }
487         });
488 
489     builder.add(new SequenceComponent() {
490           Asn1Tag tag = Asn1Tag.fromClassAndNumber(2, 5);
491 
492           @Override public boolean isExplicitlySet() {
493             return getReferenceTimeRequested() != null;
494           }
495 
496           @Override public boolean hasDefaultValue() {
497             return false;
498           }
499 
500           @Override public boolean isOptional() {
501             return false;
502           }
503 
504           @Override public Asn1Object getComponentValue() {
505             return getReferenceTimeRequested();
506           }
507 
508           @Override public void setToNewInstance() {
509             setReferenceTimeRequestedToNewInstance();
510           }
511 
512           @Override public Collection<Asn1Tag> getPossibleFirstTags() {
513             return tag == null ? RequestedAssistData.referenceTimeRequestedType.getPossibleFirstTags() : ImmutableList.of(tag);
514           }
515 
516           @Override
517           public Asn1Tag getTag() {
518             return tag;
519           }
520 
521           @Override
522           public boolean isImplicitTagging() {
523             return true;
524           }
525 
526           @Override public String toIndentedString(String indent) {
527                 return "referenceTimeRequested : "
528                     + getReferenceTimeRequested().toIndentedString(indent);
529               }
530         });
531 
532     builder.add(new SequenceComponent() {
533           Asn1Tag tag = Asn1Tag.fromClassAndNumber(2, 6);
534 
535           @Override public boolean isExplicitlySet() {
536             return getAcquisitionAssistanceRequested() != null;
537           }
538 
539           @Override public boolean hasDefaultValue() {
540             return false;
541           }
542 
543           @Override public boolean isOptional() {
544             return false;
545           }
546 
547           @Override public Asn1Object getComponentValue() {
548             return getAcquisitionAssistanceRequested();
549           }
550 
551           @Override public void setToNewInstance() {
552             setAcquisitionAssistanceRequestedToNewInstance();
553           }
554 
555           @Override public Collection<Asn1Tag> getPossibleFirstTags() {
556             return tag == null ? RequestedAssistData.acquisitionAssistanceRequestedType.getPossibleFirstTags() : ImmutableList.of(tag);
557           }
558 
559           @Override
560           public Asn1Tag getTag() {
561             return tag;
562           }
563 
564           @Override
565           public boolean isImplicitTagging() {
566             return true;
567           }
568 
569           @Override public String toIndentedString(String indent) {
570                 return "acquisitionAssistanceRequested : "
571                     + getAcquisitionAssistanceRequested().toIndentedString(indent);
572               }
573         });
574 
575     builder.add(new SequenceComponent() {
576           Asn1Tag tag = Asn1Tag.fromClassAndNumber(2, 7);
577 
578           @Override public boolean isExplicitlySet() {
579             return getRealTimeIntegrityRequested() != null;
580           }
581 
582           @Override public boolean hasDefaultValue() {
583             return false;
584           }
585 
586           @Override public boolean isOptional() {
587             return false;
588           }
589 
590           @Override public Asn1Object getComponentValue() {
591             return getRealTimeIntegrityRequested();
592           }
593 
594           @Override public void setToNewInstance() {
595             setRealTimeIntegrityRequestedToNewInstance();
596           }
597 
598           @Override public Collection<Asn1Tag> getPossibleFirstTags() {
599             return tag == null ? RequestedAssistData.realTimeIntegrityRequestedType.getPossibleFirstTags() : ImmutableList.of(tag);
600           }
601 
602           @Override
603           public Asn1Tag getTag() {
604             return tag;
605           }
606 
607           @Override
608           public boolean isImplicitTagging() {
609             return true;
610           }
611 
612           @Override public String toIndentedString(String indent) {
613                 return "realTimeIntegrityRequested : "
614                     + getRealTimeIntegrityRequested().toIndentedString(indent);
615               }
616         });
617 
618     builder.add(new SequenceComponent() {
619           Asn1Tag tag = Asn1Tag.fromClassAndNumber(2, 8);
620 
621           @Override public boolean isExplicitlySet() {
622             return getNavigationModelRequested() != null;
623           }
624 
625           @Override public boolean hasDefaultValue() {
626             return false;
627           }
628 
629           @Override public boolean isOptional() {
630             return false;
631           }
632 
633           @Override public Asn1Object getComponentValue() {
634             return getNavigationModelRequested();
635           }
636 
637           @Override public void setToNewInstance() {
638             setNavigationModelRequestedToNewInstance();
639           }
640 
641           @Override public Collection<Asn1Tag> getPossibleFirstTags() {
642             return tag == null ? RequestedAssistData.navigationModelRequestedType.getPossibleFirstTags() : ImmutableList.of(tag);
643           }
644 
645           @Override
646           public Asn1Tag getTag() {
647             return tag;
648           }
649 
650           @Override
651           public boolean isImplicitTagging() {
652             return true;
653           }
654 
655           @Override public String toIndentedString(String indent) {
656                 return "navigationModelRequested : "
657                     + getNavigationModelRequested().toIndentedString(indent);
658               }
659         });
660 
661     builder.add(new SequenceComponent() {
662           Asn1Tag tag = Asn1Tag.fromClassAndNumber(2, 9);
663 
664           @Override public boolean isExplicitlySet() {
665             return getNavigationModelData() != null;
666           }
667 
668           @Override public boolean hasDefaultValue() {
669             return false;
670           }
671 
672           @Override public boolean isOptional() {
673             return true;
674           }
675 
676           @Override public Asn1Object getComponentValue() {
677             return getNavigationModelData();
678           }
679 
680           @Override public void setToNewInstance() {
681             setNavigationModelDataToNewInstance();
682           }
683 
684           @Override public Collection<Asn1Tag> getPossibleFirstTags() {
685             return tag == null ? NavigationModel.getPossibleFirstTags() : ImmutableList.of(tag);
686           }
687 
688           @Override
689           public Asn1Tag getTag() {
690             return tag;
691           }
692 
693           @Override
694           public boolean isImplicitTagging() {
695             return true;
696           }
697 
698           @Override public String toIndentedString(String indent) {
699                 return "navigationModelData : "
700                     + getNavigationModelData().toIndentedString(indent);
701               }
702         });
703 
704     return builder.build();
705   }
706 
707   @Override public Iterable<? extends SequenceComponent>
getExtensionComponents()708                                                     getExtensionComponents() {
709     ImmutableList.Builder<SequenceComponent> builder = ImmutableList.builder();
710 
711       builder.add(new SequenceComponent() {
712             @Override public boolean isExplicitlySet() {
713               return getExtensionVer2_RequestedAssistData_extension() != null;
714             }
715 
716             @Override public boolean hasDefaultValue() {
717               return false;
718             }
719 
720             @Override public boolean isOptional() {
721               return true;
722             }
723 
724             @Override public Asn1Object getComponentValue() {
725               return getExtensionVer2_RequestedAssistData_extension();
726             }
727 
728             @Override public void setToNewInstance() {
729               setExtensionVer2_RequestedAssistData_extensionToNewInstance();
730             }
731 
732             @Override public Collection<Asn1Tag> getPossibleFirstTags() {
733               throw new UnsupportedOperationException(
734                   "BER decoding not supported for extension elements");
735             }
736 
737             @Override
738             public Asn1Tag getTag() {
739               throw new UnsupportedOperationException(
740                   "BER is not supported for extension elements");
741             }
742 
743             @Override
744             public boolean isImplicitTagging() {
745               throw new UnsupportedOperationException(
746                   "BER is not supported for extension elements");
747             }
748 
749             @Override public String toIndentedString(String indent) {
750               return "ver2_RequestedAssistData_extension : "
751                   + getExtensionVer2_RequestedAssistData_extension().toIndentedString(indent);
752             }
753       });
754 
755       return builder.build();
756     }
757 
758 
759 /*
760  */
761 
762 
763 //
764 
765 /**
766  */
767 public static class almanacRequestedType extends Asn1Boolean {
768   //
769 
770   private static final Asn1Tag TAG_almanacRequestedType
771       = Asn1Tag.fromClassAndNumber(-1, -1);
772 
almanacRequestedType()773   public almanacRequestedType() {
774     super();
775   }
776 
777   @Override
778   @Nullable
getTag()779   protected Asn1Tag getTag() {
780     return TAG_almanacRequestedType;
781   }
782 
783   @Override
isTagImplicit()784   protected boolean isTagImplicit() {
785     return true;
786   }
787 
getPossibleFirstTags()788   public static Collection<Asn1Tag> getPossibleFirstTags() {
789     if (TAG_almanacRequestedType != null) {
790       return ImmutableList.of(TAG_almanacRequestedType);
791     } else {
792       return Asn1Boolean.getPossibleFirstTags();
793     }
794   }
795 
796   /**
797    * Creates a new almanacRequestedType from encoded stream.
798    */
fromPerUnaligned(byte[] encodedBytes)799   public static almanacRequestedType fromPerUnaligned(byte[] encodedBytes) {
800     almanacRequestedType result = new almanacRequestedType();
801     result.decodePerUnaligned(new BitStreamReader(encodedBytes));
802     return result;
803   }
804 
805   /**
806    * Creates a new almanacRequestedType from encoded stream.
807    */
fromPerAligned(byte[] encodedBytes)808   public static almanacRequestedType fromPerAligned(byte[] encodedBytes) {
809     almanacRequestedType result = new almanacRequestedType();
810     result.decodePerAligned(new BitStreamReader(encodedBytes));
811     return result;
812   }
813 
encodePerUnaligned()814   @Override public Iterable<BitStream> encodePerUnaligned() {
815     return super.encodePerUnaligned();
816   }
817 
encodePerAligned()818   @Override public Iterable<BitStream> encodePerAligned() {
819     return super.encodePerAligned();
820   }
821 
decodePerUnaligned(BitStreamReader reader)822   @Override public void decodePerUnaligned(BitStreamReader reader) {
823     super.decodePerUnaligned(reader);
824   }
825 
decodePerAligned(BitStreamReader reader)826   @Override public void decodePerAligned(BitStreamReader reader) {
827     super.decodePerAligned(reader);
828   }
829 
toString()830   @Override public String toString() {
831     return toIndentedString("");
832   }
833 
toIndentedString(String indent)834   public String toIndentedString(String indent) {
835     return "almanacRequestedType = " + getValue() + ";\n";
836   }
837 }
838 
839 
840 /*
841  */
842 
843 
844 //
845 
846 /**
847  */
848 public static class utcModelRequestedType extends Asn1Boolean {
849   //
850 
851   private static final Asn1Tag TAG_utcModelRequestedType
852       = Asn1Tag.fromClassAndNumber(-1, -1);
853 
utcModelRequestedType()854   public utcModelRequestedType() {
855     super();
856   }
857 
858   @Override
859   @Nullable
getTag()860   protected Asn1Tag getTag() {
861     return TAG_utcModelRequestedType;
862   }
863 
864   @Override
isTagImplicit()865   protected boolean isTagImplicit() {
866     return true;
867   }
868 
getPossibleFirstTags()869   public static Collection<Asn1Tag> getPossibleFirstTags() {
870     if (TAG_utcModelRequestedType != null) {
871       return ImmutableList.of(TAG_utcModelRequestedType);
872     } else {
873       return Asn1Boolean.getPossibleFirstTags();
874     }
875   }
876 
877   /**
878    * Creates a new utcModelRequestedType from encoded stream.
879    */
fromPerUnaligned(byte[] encodedBytes)880   public static utcModelRequestedType fromPerUnaligned(byte[] encodedBytes) {
881     utcModelRequestedType result = new utcModelRequestedType();
882     result.decodePerUnaligned(new BitStreamReader(encodedBytes));
883     return result;
884   }
885 
886   /**
887    * Creates a new utcModelRequestedType from encoded stream.
888    */
fromPerAligned(byte[] encodedBytes)889   public static utcModelRequestedType fromPerAligned(byte[] encodedBytes) {
890     utcModelRequestedType result = new utcModelRequestedType();
891     result.decodePerAligned(new BitStreamReader(encodedBytes));
892     return result;
893   }
894 
encodePerUnaligned()895   @Override public Iterable<BitStream> encodePerUnaligned() {
896     return super.encodePerUnaligned();
897   }
898 
encodePerAligned()899   @Override public Iterable<BitStream> encodePerAligned() {
900     return super.encodePerAligned();
901   }
902 
decodePerUnaligned(BitStreamReader reader)903   @Override public void decodePerUnaligned(BitStreamReader reader) {
904     super.decodePerUnaligned(reader);
905   }
906 
decodePerAligned(BitStreamReader reader)907   @Override public void decodePerAligned(BitStreamReader reader) {
908     super.decodePerAligned(reader);
909   }
910 
toString()911   @Override public String toString() {
912     return toIndentedString("");
913   }
914 
toIndentedString(String indent)915   public String toIndentedString(String indent) {
916     return "utcModelRequestedType = " + getValue() + ";\n";
917   }
918 }
919 
920 
921 /*
922  */
923 
924 
925 //
926 
927 /**
928  */
929 public static class ionosphericModelRequestedType extends Asn1Boolean {
930   //
931 
932   private static final Asn1Tag TAG_ionosphericModelRequestedType
933       = Asn1Tag.fromClassAndNumber(-1, -1);
934 
ionosphericModelRequestedType()935   public ionosphericModelRequestedType() {
936     super();
937   }
938 
939   @Override
940   @Nullable
getTag()941   protected Asn1Tag getTag() {
942     return TAG_ionosphericModelRequestedType;
943   }
944 
945   @Override
isTagImplicit()946   protected boolean isTagImplicit() {
947     return true;
948   }
949 
getPossibleFirstTags()950   public static Collection<Asn1Tag> getPossibleFirstTags() {
951     if (TAG_ionosphericModelRequestedType != null) {
952       return ImmutableList.of(TAG_ionosphericModelRequestedType);
953     } else {
954       return Asn1Boolean.getPossibleFirstTags();
955     }
956   }
957 
958   /**
959    * Creates a new ionosphericModelRequestedType from encoded stream.
960    */
fromPerUnaligned(byte[] encodedBytes)961   public static ionosphericModelRequestedType fromPerUnaligned(byte[] encodedBytes) {
962     ionosphericModelRequestedType result = new ionosphericModelRequestedType();
963     result.decodePerUnaligned(new BitStreamReader(encodedBytes));
964     return result;
965   }
966 
967   /**
968    * Creates a new ionosphericModelRequestedType from encoded stream.
969    */
fromPerAligned(byte[] encodedBytes)970   public static ionosphericModelRequestedType fromPerAligned(byte[] encodedBytes) {
971     ionosphericModelRequestedType result = new ionosphericModelRequestedType();
972     result.decodePerAligned(new BitStreamReader(encodedBytes));
973     return result;
974   }
975 
encodePerUnaligned()976   @Override public Iterable<BitStream> encodePerUnaligned() {
977     return super.encodePerUnaligned();
978   }
979 
encodePerAligned()980   @Override public Iterable<BitStream> encodePerAligned() {
981     return super.encodePerAligned();
982   }
983 
decodePerUnaligned(BitStreamReader reader)984   @Override public void decodePerUnaligned(BitStreamReader reader) {
985     super.decodePerUnaligned(reader);
986   }
987 
decodePerAligned(BitStreamReader reader)988   @Override public void decodePerAligned(BitStreamReader reader) {
989     super.decodePerAligned(reader);
990   }
991 
toString()992   @Override public String toString() {
993     return toIndentedString("");
994   }
995 
toIndentedString(String indent)996   public String toIndentedString(String indent) {
997     return "ionosphericModelRequestedType = " + getValue() + ";\n";
998   }
999 }
1000 
1001 
1002 /*
1003  */
1004 
1005 
1006 //
1007 
1008 /**
1009  */
1010 public static class dgpsCorrectionsRequestedType extends Asn1Boolean {
1011   //
1012 
1013   private static final Asn1Tag TAG_dgpsCorrectionsRequestedType
1014       = Asn1Tag.fromClassAndNumber(-1, -1);
1015 
dgpsCorrectionsRequestedType()1016   public dgpsCorrectionsRequestedType() {
1017     super();
1018   }
1019 
1020   @Override
1021   @Nullable
getTag()1022   protected Asn1Tag getTag() {
1023     return TAG_dgpsCorrectionsRequestedType;
1024   }
1025 
1026   @Override
isTagImplicit()1027   protected boolean isTagImplicit() {
1028     return true;
1029   }
1030 
getPossibleFirstTags()1031   public static Collection<Asn1Tag> getPossibleFirstTags() {
1032     if (TAG_dgpsCorrectionsRequestedType != null) {
1033       return ImmutableList.of(TAG_dgpsCorrectionsRequestedType);
1034     } else {
1035       return Asn1Boolean.getPossibleFirstTags();
1036     }
1037   }
1038 
1039   /**
1040    * Creates a new dgpsCorrectionsRequestedType from encoded stream.
1041    */
fromPerUnaligned(byte[] encodedBytes)1042   public static dgpsCorrectionsRequestedType fromPerUnaligned(byte[] encodedBytes) {
1043     dgpsCorrectionsRequestedType result = new dgpsCorrectionsRequestedType();
1044     result.decodePerUnaligned(new BitStreamReader(encodedBytes));
1045     return result;
1046   }
1047 
1048   /**
1049    * Creates a new dgpsCorrectionsRequestedType from encoded stream.
1050    */
fromPerAligned(byte[] encodedBytes)1051   public static dgpsCorrectionsRequestedType fromPerAligned(byte[] encodedBytes) {
1052     dgpsCorrectionsRequestedType result = new dgpsCorrectionsRequestedType();
1053     result.decodePerAligned(new BitStreamReader(encodedBytes));
1054     return result;
1055   }
1056 
encodePerUnaligned()1057   @Override public Iterable<BitStream> encodePerUnaligned() {
1058     return super.encodePerUnaligned();
1059   }
1060 
encodePerAligned()1061   @Override public Iterable<BitStream> encodePerAligned() {
1062     return super.encodePerAligned();
1063   }
1064 
decodePerUnaligned(BitStreamReader reader)1065   @Override public void decodePerUnaligned(BitStreamReader reader) {
1066     super.decodePerUnaligned(reader);
1067   }
1068 
decodePerAligned(BitStreamReader reader)1069   @Override public void decodePerAligned(BitStreamReader reader) {
1070     super.decodePerAligned(reader);
1071   }
1072 
toString()1073   @Override public String toString() {
1074     return toIndentedString("");
1075   }
1076 
toIndentedString(String indent)1077   public String toIndentedString(String indent) {
1078     return "dgpsCorrectionsRequestedType = " + getValue() + ";\n";
1079   }
1080 }
1081 
1082 
1083 /*
1084  */
1085 
1086 
1087 //
1088 
1089 /**
1090  */
1091 public static class referenceLocationRequestedType extends Asn1Boolean {
1092   //
1093 
1094   private static final Asn1Tag TAG_referenceLocationRequestedType
1095       = Asn1Tag.fromClassAndNumber(-1, -1);
1096 
referenceLocationRequestedType()1097   public referenceLocationRequestedType() {
1098     super();
1099   }
1100 
1101   @Override
1102   @Nullable
getTag()1103   protected Asn1Tag getTag() {
1104     return TAG_referenceLocationRequestedType;
1105   }
1106 
1107   @Override
isTagImplicit()1108   protected boolean isTagImplicit() {
1109     return true;
1110   }
1111 
getPossibleFirstTags()1112   public static Collection<Asn1Tag> getPossibleFirstTags() {
1113     if (TAG_referenceLocationRequestedType != null) {
1114       return ImmutableList.of(TAG_referenceLocationRequestedType);
1115     } else {
1116       return Asn1Boolean.getPossibleFirstTags();
1117     }
1118   }
1119 
1120   /**
1121    * Creates a new referenceLocationRequestedType from encoded stream.
1122    */
fromPerUnaligned(byte[] encodedBytes)1123   public static referenceLocationRequestedType fromPerUnaligned(byte[] encodedBytes) {
1124     referenceLocationRequestedType result = new referenceLocationRequestedType();
1125     result.decodePerUnaligned(new BitStreamReader(encodedBytes));
1126     return result;
1127   }
1128 
1129   /**
1130    * Creates a new referenceLocationRequestedType from encoded stream.
1131    */
fromPerAligned(byte[] encodedBytes)1132   public static referenceLocationRequestedType fromPerAligned(byte[] encodedBytes) {
1133     referenceLocationRequestedType result = new referenceLocationRequestedType();
1134     result.decodePerAligned(new BitStreamReader(encodedBytes));
1135     return result;
1136   }
1137 
encodePerUnaligned()1138   @Override public Iterable<BitStream> encodePerUnaligned() {
1139     return super.encodePerUnaligned();
1140   }
1141 
encodePerAligned()1142   @Override public Iterable<BitStream> encodePerAligned() {
1143     return super.encodePerAligned();
1144   }
1145 
decodePerUnaligned(BitStreamReader reader)1146   @Override public void decodePerUnaligned(BitStreamReader reader) {
1147     super.decodePerUnaligned(reader);
1148   }
1149 
decodePerAligned(BitStreamReader reader)1150   @Override public void decodePerAligned(BitStreamReader reader) {
1151     super.decodePerAligned(reader);
1152   }
1153 
toString()1154   @Override public String toString() {
1155     return toIndentedString("");
1156   }
1157 
toIndentedString(String indent)1158   public String toIndentedString(String indent) {
1159     return "referenceLocationRequestedType = " + getValue() + ";\n";
1160   }
1161 }
1162 
1163 
1164 /*
1165  */
1166 
1167 
1168 //
1169 
1170 /**
1171  */
1172 public static class referenceTimeRequestedType extends Asn1Boolean {
1173   //
1174 
1175   private static final Asn1Tag TAG_referenceTimeRequestedType
1176       = Asn1Tag.fromClassAndNumber(-1, -1);
1177 
referenceTimeRequestedType()1178   public referenceTimeRequestedType() {
1179     super();
1180   }
1181 
1182   @Override
1183   @Nullable
getTag()1184   protected Asn1Tag getTag() {
1185     return TAG_referenceTimeRequestedType;
1186   }
1187 
1188   @Override
isTagImplicit()1189   protected boolean isTagImplicit() {
1190     return true;
1191   }
1192 
getPossibleFirstTags()1193   public static Collection<Asn1Tag> getPossibleFirstTags() {
1194     if (TAG_referenceTimeRequestedType != null) {
1195       return ImmutableList.of(TAG_referenceTimeRequestedType);
1196     } else {
1197       return Asn1Boolean.getPossibleFirstTags();
1198     }
1199   }
1200 
1201   /**
1202    * Creates a new referenceTimeRequestedType from encoded stream.
1203    */
fromPerUnaligned(byte[] encodedBytes)1204   public static referenceTimeRequestedType fromPerUnaligned(byte[] encodedBytes) {
1205     referenceTimeRequestedType result = new referenceTimeRequestedType();
1206     result.decodePerUnaligned(new BitStreamReader(encodedBytes));
1207     return result;
1208   }
1209 
1210   /**
1211    * Creates a new referenceTimeRequestedType from encoded stream.
1212    */
fromPerAligned(byte[] encodedBytes)1213   public static referenceTimeRequestedType fromPerAligned(byte[] encodedBytes) {
1214     referenceTimeRequestedType result = new referenceTimeRequestedType();
1215     result.decodePerAligned(new BitStreamReader(encodedBytes));
1216     return result;
1217   }
1218 
encodePerUnaligned()1219   @Override public Iterable<BitStream> encodePerUnaligned() {
1220     return super.encodePerUnaligned();
1221   }
1222 
encodePerAligned()1223   @Override public Iterable<BitStream> encodePerAligned() {
1224     return super.encodePerAligned();
1225   }
1226 
decodePerUnaligned(BitStreamReader reader)1227   @Override public void decodePerUnaligned(BitStreamReader reader) {
1228     super.decodePerUnaligned(reader);
1229   }
1230 
decodePerAligned(BitStreamReader reader)1231   @Override public void decodePerAligned(BitStreamReader reader) {
1232     super.decodePerAligned(reader);
1233   }
1234 
toString()1235   @Override public String toString() {
1236     return toIndentedString("");
1237   }
1238 
toIndentedString(String indent)1239   public String toIndentedString(String indent) {
1240     return "referenceTimeRequestedType = " + getValue() + ";\n";
1241   }
1242 }
1243 
1244 
1245 /*
1246  */
1247 
1248 
1249 //
1250 
1251 /**
1252  */
1253 public static class acquisitionAssistanceRequestedType extends Asn1Boolean {
1254   //
1255 
1256   private static final Asn1Tag TAG_acquisitionAssistanceRequestedType
1257       = Asn1Tag.fromClassAndNumber(-1, -1);
1258 
acquisitionAssistanceRequestedType()1259   public acquisitionAssistanceRequestedType() {
1260     super();
1261   }
1262 
1263   @Override
1264   @Nullable
getTag()1265   protected Asn1Tag getTag() {
1266     return TAG_acquisitionAssistanceRequestedType;
1267   }
1268 
1269   @Override
isTagImplicit()1270   protected boolean isTagImplicit() {
1271     return true;
1272   }
1273 
getPossibleFirstTags()1274   public static Collection<Asn1Tag> getPossibleFirstTags() {
1275     if (TAG_acquisitionAssistanceRequestedType != null) {
1276       return ImmutableList.of(TAG_acquisitionAssistanceRequestedType);
1277     } else {
1278       return Asn1Boolean.getPossibleFirstTags();
1279     }
1280   }
1281 
1282   /**
1283    * Creates a new acquisitionAssistanceRequestedType from encoded stream.
1284    */
fromPerUnaligned(byte[] encodedBytes)1285   public static acquisitionAssistanceRequestedType fromPerUnaligned(byte[] encodedBytes) {
1286     acquisitionAssistanceRequestedType result = new acquisitionAssistanceRequestedType();
1287     result.decodePerUnaligned(new BitStreamReader(encodedBytes));
1288     return result;
1289   }
1290 
1291   /**
1292    * Creates a new acquisitionAssistanceRequestedType from encoded stream.
1293    */
fromPerAligned(byte[] encodedBytes)1294   public static acquisitionAssistanceRequestedType fromPerAligned(byte[] encodedBytes) {
1295     acquisitionAssistanceRequestedType result = new acquisitionAssistanceRequestedType();
1296     result.decodePerAligned(new BitStreamReader(encodedBytes));
1297     return result;
1298   }
1299 
encodePerUnaligned()1300   @Override public Iterable<BitStream> encodePerUnaligned() {
1301     return super.encodePerUnaligned();
1302   }
1303 
encodePerAligned()1304   @Override public Iterable<BitStream> encodePerAligned() {
1305     return super.encodePerAligned();
1306   }
1307 
decodePerUnaligned(BitStreamReader reader)1308   @Override public void decodePerUnaligned(BitStreamReader reader) {
1309     super.decodePerUnaligned(reader);
1310   }
1311 
decodePerAligned(BitStreamReader reader)1312   @Override public void decodePerAligned(BitStreamReader reader) {
1313     super.decodePerAligned(reader);
1314   }
1315 
toString()1316   @Override public String toString() {
1317     return toIndentedString("");
1318   }
1319 
toIndentedString(String indent)1320   public String toIndentedString(String indent) {
1321     return "acquisitionAssistanceRequestedType = " + getValue() + ";\n";
1322   }
1323 }
1324 
1325 
1326 /*
1327  */
1328 
1329 
1330 //
1331 
1332 /**
1333  */
1334 public static class realTimeIntegrityRequestedType extends Asn1Boolean {
1335   //
1336 
1337   private static final Asn1Tag TAG_realTimeIntegrityRequestedType
1338       = Asn1Tag.fromClassAndNumber(-1, -1);
1339 
realTimeIntegrityRequestedType()1340   public realTimeIntegrityRequestedType() {
1341     super();
1342   }
1343 
1344   @Override
1345   @Nullable
getTag()1346   protected Asn1Tag getTag() {
1347     return TAG_realTimeIntegrityRequestedType;
1348   }
1349 
1350   @Override
isTagImplicit()1351   protected boolean isTagImplicit() {
1352     return true;
1353   }
1354 
getPossibleFirstTags()1355   public static Collection<Asn1Tag> getPossibleFirstTags() {
1356     if (TAG_realTimeIntegrityRequestedType != null) {
1357       return ImmutableList.of(TAG_realTimeIntegrityRequestedType);
1358     } else {
1359       return Asn1Boolean.getPossibleFirstTags();
1360     }
1361   }
1362 
1363   /**
1364    * Creates a new realTimeIntegrityRequestedType from encoded stream.
1365    */
fromPerUnaligned(byte[] encodedBytes)1366   public static realTimeIntegrityRequestedType fromPerUnaligned(byte[] encodedBytes) {
1367     realTimeIntegrityRequestedType result = new realTimeIntegrityRequestedType();
1368     result.decodePerUnaligned(new BitStreamReader(encodedBytes));
1369     return result;
1370   }
1371 
1372   /**
1373    * Creates a new realTimeIntegrityRequestedType from encoded stream.
1374    */
fromPerAligned(byte[] encodedBytes)1375   public static realTimeIntegrityRequestedType fromPerAligned(byte[] encodedBytes) {
1376     realTimeIntegrityRequestedType result = new realTimeIntegrityRequestedType();
1377     result.decodePerAligned(new BitStreamReader(encodedBytes));
1378     return result;
1379   }
1380 
encodePerUnaligned()1381   @Override public Iterable<BitStream> encodePerUnaligned() {
1382     return super.encodePerUnaligned();
1383   }
1384 
encodePerAligned()1385   @Override public Iterable<BitStream> encodePerAligned() {
1386     return super.encodePerAligned();
1387   }
1388 
decodePerUnaligned(BitStreamReader reader)1389   @Override public void decodePerUnaligned(BitStreamReader reader) {
1390     super.decodePerUnaligned(reader);
1391   }
1392 
decodePerAligned(BitStreamReader reader)1393   @Override public void decodePerAligned(BitStreamReader reader) {
1394     super.decodePerAligned(reader);
1395   }
1396 
toString()1397   @Override public String toString() {
1398     return toIndentedString("");
1399   }
1400 
toIndentedString(String indent)1401   public String toIndentedString(String indent) {
1402     return "realTimeIntegrityRequestedType = " + getValue() + ";\n";
1403   }
1404 }
1405 
1406 
1407 /*
1408  */
1409 
1410 
1411 //
1412 
1413 /**
1414  */
1415 public static class navigationModelRequestedType extends Asn1Boolean {
1416   //
1417 
1418   private static final Asn1Tag TAG_navigationModelRequestedType
1419       = Asn1Tag.fromClassAndNumber(-1, -1);
1420 
navigationModelRequestedType()1421   public navigationModelRequestedType() {
1422     super();
1423   }
1424 
1425   @Override
1426   @Nullable
getTag()1427   protected Asn1Tag getTag() {
1428     return TAG_navigationModelRequestedType;
1429   }
1430 
1431   @Override
isTagImplicit()1432   protected boolean isTagImplicit() {
1433     return true;
1434   }
1435 
getPossibleFirstTags()1436   public static Collection<Asn1Tag> getPossibleFirstTags() {
1437     if (TAG_navigationModelRequestedType != null) {
1438       return ImmutableList.of(TAG_navigationModelRequestedType);
1439     } else {
1440       return Asn1Boolean.getPossibleFirstTags();
1441     }
1442   }
1443 
1444   /**
1445    * Creates a new navigationModelRequestedType from encoded stream.
1446    */
fromPerUnaligned(byte[] encodedBytes)1447   public static navigationModelRequestedType fromPerUnaligned(byte[] encodedBytes) {
1448     navigationModelRequestedType result = new navigationModelRequestedType();
1449     result.decodePerUnaligned(new BitStreamReader(encodedBytes));
1450     return result;
1451   }
1452 
1453   /**
1454    * Creates a new navigationModelRequestedType from encoded stream.
1455    */
fromPerAligned(byte[] encodedBytes)1456   public static navigationModelRequestedType fromPerAligned(byte[] encodedBytes) {
1457     navigationModelRequestedType result = new navigationModelRequestedType();
1458     result.decodePerAligned(new BitStreamReader(encodedBytes));
1459     return result;
1460   }
1461 
encodePerUnaligned()1462   @Override public Iterable<BitStream> encodePerUnaligned() {
1463     return super.encodePerUnaligned();
1464   }
1465 
encodePerAligned()1466   @Override public Iterable<BitStream> encodePerAligned() {
1467     return super.encodePerAligned();
1468   }
1469 
decodePerUnaligned(BitStreamReader reader)1470   @Override public void decodePerUnaligned(BitStreamReader reader) {
1471     super.decodePerUnaligned(reader);
1472   }
1473 
decodePerAligned(BitStreamReader reader)1474   @Override public void decodePerAligned(BitStreamReader reader) {
1475     super.decodePerAligned(reader);
1476   }
1477 
toString()1478   @Override public String toString() {
1479     return toIndentedString("");
1480   }
1481 
toIndentedString(String indent)1482   public String toIndentedString(String indent) {
1483     return "navigationModelRequestedType = " + getValue() + ";\n";
1484   }
1485 }
1486 
1487 
1488 
1489 
1490 
1491 
1492 
1493 
1494 
encodePerUnaligned()1495   @Override public Iterable<BitStream> encodePerUnaligned() {
1496     return super.encodePerUnaligned();
1497   }
1498 
encodePerAligned()1499   @Override public Iterable<BitStream> encodePerAligned() {
1500     return super.encodePerAligned();
1501   }
1502 
decodePerUnaligned(BitStreamReader reader)1503   @Override public void decodePerUnaligned(BitStreamReader reader) {
1504     super.decodePerUnaligned(reader);
1505   }
1506 
decodePerAligned(BitStreamReader reader)1507   @Override public void decodePerAligned(BitStreamReader reader) {
1508     super.decodePerAligned(reader);
1509   }
1510 
toString()1511   @Override public String toString() {
1512     return toIndentedString("");
1513   }
1514 
toIndentedString(String indent)1515   public String toIndentedString(String indent) {
1516     StringBuilder builder = new StringBuilder();
1517     builder.append("RequestedAssistData = {\n");
1518     final String internalIndent = indent + "  ";
1519     for (SequenceComponent component : getComponents()) {
1520       if (component.isExplicitlySet()) {
1521         builder.append(internalIndent)
1522             .append(component.toIndentedString(internalIndent));
1523       }
1524     }
1525     if (isExtensible()) {
1526       builder.append(internalIndent).append("...\n");
1527       for (SequenceComponent component : getExtensionComponents()) {
1528         if (component.isExplicitlySet()) {
1529           builder.append(internalIndent)
1530               .append(component.toIndentedString(internalIndent));
1531         }
1532       }
1533     }
1534     builder.append(indent).append("};\n");
1535     return builder.toString();
1536   }
1537 }
1538