1
2
3
4 package org.jboss.netty.example.localtime;
5
6 @SuppressWarnings("all")
7 public final class LocalTimeProtocol {
8 private LocalTimeProtocol() {}
9 public static void registerAllExtensions(
10 com.google.protobuf.ExtensionRegistry registry) {
11 }
12 public enum Continent
13 implements com.google.protobuf.ProtocolMessageEnum {
14 AFRICA(0, 0),
15 AMERICA(1, 1),
16 ANTARCTICA(2, 2),
17 ARCTIC(3, 3),
18 ASIA(4, 4),
19 ATLANTIC(5, 5),
20 AUSTRALIA(6, 6),
21 EUROPE(7, 7),
22 INDIAN(8, 8),
23 MIDEAST(9, 9),
24 PACIFIC(10, 10),
25 ;
26
27
28 public final int getNumber() { return value; }
29
30 public static Continent valueOf(int value) {
31 switch (value) {
32 case 0: return AFRICA;
33 case 1: return AMERICA;
34 case 2: return ANTARCTICA;
35 case 3: return ARCTIC;
36 case 4: return ASIA;
37 case 5: return ATLANTIC;
38 case 6: return AUSTRALIA;
39 case 7: return EUROPE;
40 case 8: return INDIAN;
41 case 9: return MIDEAST;
42 case 10: return PACIFIC;
43 default: return null;
44 }
45 }
46
47 public static com.google.protobuf.Internal.EnumLiteMap<Continent>
48 internalGetValueMap() {
49 return internalValueMap;
50 }
51 private static com.google.protobuf.Internal.EnumLiteMap<Continent>
52 internalValueMap =
53 new com.google.protobuf.Internal.EnumLiteMap<Continent>() {
54 public Continent findValueByNumber(int number) {
55 return Continent.valueOf(number)
56 ; }
57 };
58
59 public final com.google.protobuf.Descriptors.EnumValueDescriptor
60 getValueDescriptor() {
61 return getDescriptor().getValues().get(index);
62 }
63 public final com.google.protobuf.Descriptors.EnumDescriptor
64 getDescriptorForType() {
65 return getDescriptor();
66 }
67 public static final com.google.protobuf.Descriptors.EnumDescriptor
68 getDescriptor() {
69 return org.jboss.netty.example.localtime.LocalTimeProtocol.getDescriptor().getEnumTypes().get(0);
70 }
71
72 private static final Continent[] VALUES = {
73 AFRICA, AMERICA, ANTARCTICA, ARCTIC, ASIA, ATLANTIC, AUSTRALIA, EUROPE, INDIAN, MIDEAST, PACIFIC,
74 };
75 public static Continent valueOf(
76 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
77 if (desc.getType() != getDescriptor()) {
78 throw new java.lang.IllegalArgumentException(
79 "EnumValueDescriptor is not for this type.");
80 }
81 return VALUES[desc.getIndex()];
82 }
83 private final int index;
84 private final int value;
85 private Continent(int index, int value) {
86 this.index = index;
87 this.value = value;
88 }
89
90 static {
91 org.jboss.netty.example.localtime.LocalTimeProtocol.getDescriptor();
92 }
93
94
95 }
96
97 public enum DayOfWeek
98 implements com.google.protobuf.ProtocolMessageEnum {
99 SUNDAY(0, 1),
100 MONDAY(1, 2),
101 TUESDAY(2, 3),
102 WEDNESDAY(3, 4),
103 THURSDAY(4, 5),
104 FRIDAY(5, 6),
105 SATURDAY(6, 7),
106 ;
107
108
109 public final int getNumber() { return value; }
110
111 public static DayOfWeek valueOf(int value) {
112 switch (value) {
113 case 1: return SUNDAY;
114 case 2: return MONDAY;
115 case 3: return TUESDAY;
116 case 4: return WEDNESDAY;
117 case 5: return THURSDAY;
118 case 6: return FRIDAY;
119 case 7: return SATURDAY;
120 default: return null;
121 }
122 }
123
124 public static com.google.protobuf.Internal.EnumLiteMap<DayOfWeek>
125 internalGetValueMap() {
126 return internalValueMap;
127 }
128 private static com.google.protobuf.Internal.EnumLiteMap<DayOfWeek>
129 internalValueMap =
130 new com.google.protobuf.Internal.EnumLiteMap<DayOfWeek>() {
131 public DayOfWeek findValueByNumber(int number) {
132 return DayOfWeek.valueOf(number)
133 ; }
134 };
135
136 public final com.google.protobuf.Descriptors.EnumValueDescriptor
137 getValueDescriptor() {
138 return getDescriptor().getValues().get(index);
139 }
140 public final com.google.protobuf.Descriptors.EnumDescriptor
141 getDescriptorForType() {
142 return getDescriptor();
143 }
144 public static final com.google.protobuf.Descriptors.EnumDescriptor
145 getDescriptor() {
146 return org.jboss.netty.example.localtime.LocalTimeProtocol.getDescriptor().getEnumTypes().get(1);
147 }
148
149 private static final DayOfWeek[] VALUES = {
150 SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY,
151 };
152 public static DayOfWeek valueOf(
153 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
154 if (desc.getType() != getDescriptor()) {
155 throw new java.lang.IllegalArgumentException(
156 "EnumValueDescriptor is not for this type.");
157 }
158 return VALUES[desc.getIndex()];
159 }
160 private final int index;
161 private final int value;
162 private DayOfWeek(int index, int value) {
163 this.index = index;
164 this.value = value;
165 }
166
167 static {
168 org.jboss.netty.example.localtime.LocalTimeProtocol.getDescriptor();
169 }
170
171
172 }
173
174 public static final class Location extends
175 com.google.protobuf.GeneratedMessage {
176
177 private Location() {
178 initFields();
179 }
180 private Location(boolean noInit) {}
181
182 private static final Location defaultInstance;
183 public static Location getDefaultInstance() {
184 return defaultInstance;
185 }
186
187 public Location getDefaultInstanceForType() {
188 return defaultInstance;
189 }
190
191 public static final com.google.protobuf.Descriptors.Descriptor
192 getDescriptor() {
193 return org.jboss.netty.example.localtime.LocalTimeProtocol.internal_static_org_jboss_netty_example_localtime_Location_descriptor;
194 }
195
196 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
197 internalGetFieldAccessorTable() {
198 return org.jboss.netty.example.localtime.LocalTimeProtocol.internal_static_org_jboss_netty_example_localtime_Location_fieldAccessorTable;
199 }
200
201
202 public static final int CONTINENT_FIELD_NUMBER = 1;
203 private boolean hasContinent;
204 private org.jboss.netty.example.localtime.LocalTimeProtocol.Continent continent_;
205 public boolean hasContinent() { return hasContinent; }
206 public org.jboss.netty.example.localtime.LocalTimeProtocol.Continent getContinent() { return continent_; }
207
208
209 public static final int CITY_FIELD_NUMBER = 2;
210 private boolean hasCity;
211 private java.lang.String city_ = "";
212 public boolean hasCity() { return hasCity; }
213 public java.lang.String getCity() { return city_; }
214
215 private void initFields() {
216 continent_ = org.jboss.netty.example.localtime.LocalTimeProtocol.Continent.AFRICA;
217 }
218 public final boolean isInitialized() {
219 if (!hasContinent) {
220 return false;
221 }
222 if (!hasCity) {
223 return false;
224 }
225 return true;
226 }
227
228 public void writeTo(com.google.protobuf.CodedOutputStream output)
229 throws java.io.IOException {
230 getSerializedSize();
231 if (hasContinent()) {
232 output.writeEnum(1, getContinent().getNumber());
233 }
234 if (hasCity()) {
235 output.writeString(2, getCity());
236 }
237 getUnknownFields().writeTo(output);
238 }
239
240 private int memoizedSerializedSize = -1;
241 public int getSerializedSize() {
242 int size = memoizedSerializedSize;
243 if (size != -1) {
244 return size;
245 }
246
247 size = 0;
248 if (hasContinent()) {
249 size += com.google.protobuf.CodedOutputStream
250 .computeEnumSize(1, getContinent().getNumber());
251 }
252 if (hasCity()) {
253 size += com.google.protobuf.CodedOutputStream
254 .computeStringSize(2, getCity());
255 }
256 size += getUnknownFields().getSerializedSize();
257 memoizedSerializedSize = size;
258 return size;
259 }
260
261 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Location parseFrom(
262 com.google.protobuf.ByteString data)
263 throws com.google.protobuf.InvalidProtocolBufferException {
264 return newBuilder().mergeFrom(data).buildParsed();
265 }
266 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Location parseFrom(
267 com.google.protobuf.ByteString data,
268 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
269 throws com.google.protobuf.InvalidProtocolBufferException {
270 return newBuilder().mergeFrom(data, extensionRegistry)
271 .buildParsed();
272 }
273 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Location parseFrom(byte[] data)
274 throws com.google.protobuf.InvalidProtocolBufferException {
275 return newBuilder().mergeFrom(data).buildParsed();
276 }
277 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Location parseFrom(
278 byte[] data,
279 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
280 throws com.google.protobuf.InvalidProtocolBufferException {
281 return newBuilder().mergeFrom(data, extensionRegistry)
282 .buildParsed();
283 }
284 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Location parseFrom(java.io.InputStream input)
285 throws java.io.IOException {
286 return newBuilder().mergeFrom(input).buildParsed();
287 }
288 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Location parseFrom(
289 java.io.InputStream input,
290 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
291 throws java.io.IOException {
292 return newBuilder().mergeFrom(input, extensionRegistry)
293 .buildParsed();
294 }
295 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Location parseDelimitedFrom(java.io.InputStream input)
296 throws java.io.IOException {
297 Builder builder = newBuilder();
298 if (builder.mergeDelimitedFrom(input)) {
299 return builder.buildParsed();
300 } else {
301 return null;
302 }
303 }
304 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Location parseDelimitedFrom(
305 java.io.InputStream input,
306 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
307 throws java.io.IOException {
308 Builder builder = newBuilder();
309 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
310 return builder.buildParsed();
311 } else {
312 return null;
313 }
314 }
315 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Location parseFrom(
316 com.google.protobuf.CodedInputStream input)
317 throws java.io.IOException {
318 return newBuilder().mergeFrom(input).buildParsed();
319 }
320 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Location parseFrom(
321 com.google.protobuf.CodedInputStream input,
322 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
323 throws java.io.IOException {
324 return newBuilder().mergeFrom(input, extensionRegistry)
325 .buildParsed();
326 }
327
328 public static Builder newBuilder() { return Builder.create(); }
329 public Builder newBuilderForType() { return newBuilder(); }
330 public static Builder newBuilder(org.jboss.netty.example.localtime.LocalTimeProtocol.Location prototype) {
331 return newBuilder().mergeFrom(prototype);
332 }
333 public Builder toBuilder() { return newBuilder(this); }
334
335 public static final class Builder extends
336 com.google.protobuf.GeneratedMessage.Builder<Builder> {
337 private org.jboss.netty.example.localtime.LocalTimeProtocol.Location result;
338
339
340 private Builder() {}
341
342 private static Builder create() {
343 Builder builder = new Builder();
344 builder.result = new org.jboss.netty.example.localtime.LocalTimeProtocol.Location();
345 return builder;
346 }
347
348 protected org.jboss.netty.example.localtime.LocalTimeProtocol.Location internalGetResult() {
349 return result;
350 }
351
352 public Builder clear() {
353 if (result == null) {
354 throw new IllegalStateException(
355 "Cannot call clear() after build().");
356 }
357 result = new org.jboss.netty.example.localtime.LocalTimeProtocol.Location();
358 return this;
359 }
360
361 public Builder clone() {
362 return create().mergeFrom(result);
363 }
364
365 public com.google.protobuf.Descriptors.Descriptor
366 getDescriptorForType() {
367 return org.jboss.netty.example.localtime.LocalTimeProtocol.Location.getDescriptor();
368 }
369
370 public org.jboss.netty.example.localtime.LocalTimeProtocol.Location getDefaultInstanceForType() {
371 return org.jboss.netty.example.localtime.LocalTimeProtocol.Location.getDefaultInstance();
372 }
373
374 public boolean isInitialized() {
375 return result.isInitialized();
376 }
377 public org.jboss.netty.example.localtime.LocalTimeProtocol.Location build() {
378 if (result != null && !isInitialized()) {
379 throw newUninitializedMessageException(result);
380 }
381 return buildPartial();
382 }
383
384 private org.jboss.netty.example.localtime.LocalTimeProtocol.Location buildParsed()
385 throws com.google.protobuf.InvalidProtocolBufferException {
386 if (!isInitialized()) {
387 throw newUninitializedMessageException(
388 result).asInvalidProtocolBufferException();
389 }
390 return buildPartial();
391 }
392
393 public org.jboss.netty.example.localtime.LocalTimeProtocol.Location buildPartial() {
394 if (result == null) {
395 throw new IllegalStateException(
396 "build() has already been called on this Builder.");
397 }
398 org.jboss.netty.example.localtime.LocalTimeProtocol.Location returnMe = result;
399 result = null;
400 return returnMe;
401 }
402
403 public Builder mergeFrom(com.google.protobuf.Message other) {
404 if (other instanceof org.jboss.netty.example.localtime.LocalTimeProtocol.Location) {
405 return mergeFrom((org.jboss.netty.example.localtime.LocalTimeProtocol.Location)other);
406 } else {
407 super.mergeFrom(other);
408 return this;
409 }
410 }
411
412 public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.Location other) {
413 if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.Location.getDefaultInstance()) {
414 return this;
415 }
416 if (other.hasContinent()) {
417 setContinent(other.getContinent());
418 }
419 if (other.hasCity()) {
420 setCity(other.getCity());
421 }
422 mergeUnknownFields(other.getUnknownFields());
423 return this;
424 }
425
426 public Builder mergeFrom(
427 com.google.protobuf.CodedInputStream input,
428 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
429 throws java.io.IOException {
430 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
431 com.google.protobuf.UnknownFieldSet.newBuilder(
432 getUnknownFields());
433 while (true) {
434 int tag = input.readTag();
435 switch (tag) {
436 case 0:
437 setUnknownFields(unknownFields.build());
438 return this;
439 default: {
440 if (!parseUnknownField(input, unknownFields,
441 extensionRegistry, tag)) {
442 setUnknownFields(unknownFields.build());
443 return this;
444 }
445 break;
446 }
447 case 8: {
448 int rawValue = input.readEnum();
449 org.jboss.netty.example.localtime.LocalTimeProtocol.Continent value = org.jboss.netty.example.localtime.LocalTimeProtocol.Continent.valueOf(rawValue);
450 if (value == null) {
451 unknownFields.mergeVarintField(1, rawValue);
452 } else {
453 setContinent(value);
454 }
455 break;
456 }
457 case 18: {
458 setCity(input.readString());
459 break;
460 }
461 }
462 }
463 }
464
465
466
467 public boolean hasContinent() {
468 return result.hasContinent();
469 }
470 public org.jboss.netty.example.localtime.LocalTimeProtocol.Continent getContinent() {
471 return result.getContinent();
472 }
473 public Builder setContinent(org.jboss.netty.example.localtime.LocalTimeProtocol.Continent value) {
474 if (value == null) {
475 throw new NullPointerException();
476 }
477 result.hasContinent = true;
478 result.continent_ = value;
479 return this;
480 }
481 public Builder clearContinent() {
482 result.hasContinent = false;
483 result.continent_ = org.jboss.netty.example.localtime.LocalTimeProtocol.Continent.AFRICA;
484 return this;
485 }
486
487
488 public boolean hasCity() {
489 return result.hasCity();
490 }
491 public java.lang.String getCity() {
492 return result.getCity();
493 }
494 public Builder setCity(java.lang.String value) {
495 if (value == null) {
496 throw new NullPointerException();
497 }
498 result.hasCity = true;
499 result.city_ = value;
500 return this;
501 }
502 public Builder clearCity() {
503 result.hasCity = false;
504 result.city_ = getDefaultInstance().getCity();
505 return this;
506 }
507
508
509 }
510
511 static {
512 defaultInstance = new Location(true);
513 org.jboss.netty.example.localtime.LocalTimeProtocol.internalForceInit();
514 defaultInstance.initFields();
515 }
516
517
518 }
519
520 public static final class Locations extends
521 com.google.protobuf.GeneratedMessage {
522
523 private Locations() {
524 initFields();
525 }
526 private Locations(boolean noInit) {}
527
528 private static final Locations defaultInstance;
529 public static Locations getDefaultInstance() {
530 return defaultInstance;
531 }
532
533 public Locations getDefaultInstanceForType() {
534 return defaultInstance;
535 }
536
537 public static final com.google.protobuf.Descriptors.Descriptor
538 getDescriptor() {
539 return org.jboss.netty.example.localtime.LocalTimeProtocol.internal_static_org_jboss_netty_example_localtime_Locations_descriptor;
540 }
541
542 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
543 internalGetFieldAccessorTable() {
544 return org.jboss.netty.example.localtime.LocalTimeProtocol.internal_static_org_jboss_netty_example_localtime_Locations_fieldAccessorTable;
545 }
546
547
548 public static final int LOCATION_FIELD_NUMBER = 1;
549 private java.util.List<org.jboss.netty.example.localtime.LocalTimeProtocol.Location> location_ =
550 java.util.Collections.emptyList();
551 public java.util.List<org.jboss.netty.example.localtime.LocalTimeProtocol.Location> getLocationList() {
552 return location_;
553 }
554 public int getLocationCount() { return location_.size(); }
555 public org.jboss.netty.example.localtime.LocalTimeProtocol.Location getLocation(int index) {
556 return location_.get(index);
557 }
558
559 private void initFields() {
560 }
561 public final boolean isInitialized() {
562 for (org.jboss.netty.example.localtime.LocalTimeProtocol.Location element : getLocationList()) {
563 if (!element.isInitialized()) {
564 return false;
565 }
566 }
567 return true;
568 }
569
570 public void writeTo(com.google.protobuf.CodedOutputStream output)
571 throws java.io.IOException {
572 getSerializedSize();
573 for (org.jboss.netty.example.localtime.LocalTimeProtocol.Location element : getLocationList()) {
574 output.writeMessage(1, element);
575 }
576 getUnknownFields().writeTo(output);
577 }
578
579 private int memoizedSerializedSize = -1;
580 public int getSerializedSize() {
581 int size = memoizedSerializedSize;
582 if (size != -1) {
583 return size;
584 }
585
586 size = 0;
587 for (org.jboss.netty.example.localtime.LocalTimeProtocol.Location element : getLocationList()) {
588 size += com.google.protobuf.CodedOutputStream
589 .computeMessageSize(1, element);
590 }
591 size += getUnknownFields().getSerializedSize();
592 memoizedSerializedSize = size;
593 return size;
594 }
595
596 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Locations parseFrom(
597 com.google.protobuf.ByteString data)
598 throws com.google.protobuf.InvalidProtocolBufferException {
599 return newBuilder().mergeFrom(data).buildParsed();
600 }
601 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Locations parseFrom(
602 com.google.protobuf.ByteString data,
603 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
604 throws com.google.protobuf.InvalidProtocolBufferException {
605 return newBuilder().mergeFrom(data, extensionRegistry)
606 .buildParsed();
607 }
608 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Locations parseFrom(byte[] data)
609 throws com.google.protobuf.InvalidProtocolBufferException {
610 return newBuilder().mergeFrom(data).buildParsed();
611 }
612 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Locations parseFrom(
613 byte[] data,
614 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
615 throws com.google.protobuf.InvalidProtocolBufferException {
616 return newBuilder().mergeFrom(data, extensionRegistry)
617 .buildParsed();
618 }
619 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Locations parseFrom(java.io.InputStream input)
620 throws java.io.IOException {
621 return newBuilder().mergeFrom(input).buildParsed();
622 }
623 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Locations parseFrom(
624 java.io.InputStream input,
625 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
626 throws java.io.IOException {
627 return newBuilder().mergeFrom(input, extensionRegistry)
628 .buildParsed();
629 }
630 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Locations parseDelimitedFrom(java.io.InputStream input)
631 throws java.io.IOException {
632 Builder builder = newBuilder();
633 if (builder.mergeDelimitedFrom(input)) {
634 return builder.buildParsed();
635 } else {
636 return null;
637 }
638 }
639 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Locations parseDelimitedFrom(
640 java.io.InputStream input,
641 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
642 throws java.io.IOException {
643 Builder builder = newBuilder();
644 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
645 return builder.buildParsed();
646 } else {
647 return null;
648 }
649 }
650 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Locations parseFrom(
651 com.google.protobuf.CodedInputStream input)
652 throws java.io.IOException {
653 return newBuilder().mergeFrom(input).buildParsed();
654 }
655 public static org.jboss.netty.example.localtime.LocalTimeProtocol.Locations parseFrom(
656 com.google.protobuf.CodedInputStream input,
657 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
658 throws java.io.IOException {
659 return newBuilder().mergeFrom(input, extensionRegistry)
660 .buildParsed();
661 }
662
663 public static Builder newBuilder() { return Builder.create(); }
664 public Builder newBuilderForType() { return newBuilder(); }
665 public static Builder newBuilder(org.jboss.netty.example.localtime.LocalTimeProtocol.Locations prototype) {
666 return newBuilder().mergeFrom(prototype);
667 }
668 public Builder toBuilder() { return newBuilder(this); }
669
670 public static final class Builder extends
671 com.google.protobuf.GeneratedMessage.Builder<Builder> {
672 private org.jboss.netty.example.localtime.LocalTimeProtocol.Locations result;
673
674
675 private Builder() {}
676
677 private static Builder create() {
678 Builder builder = new Builder();
679 builder.result = new org.jboss.netty.example.localtime.LocalTimeProtocol.Locations();
680 return builder;
681 }
682
683 protected org.jboss.netty.example.localtime.LocalTimeProtocol.Locations internalGetResult() {
684 return result;
685 }
686
687 public Builder clear() {
688 if (result == null) {
689 throw new IllegalStateException(
690 "Cannot call clear() after build().");
691 }
692 result = new org.jboss.netty.example.localtime.LocalTimeProtocol.Locations();
693 return this;
694 }
695
696 public Builder clone() {
697 return create().mergeFrom(result);
698 }
699
700 public com.google.protobuf.Descriptors.Descriptor
701 getDescriptorForType() {
702 return org.jboss.netty.example.localtime.LocalTimeProtocol.Locations.getDescriptor();
703 }
704
705 public org.jboss.netty.example.localtime.LocalTimeProtocol.Locations getDefaultInstanceForType() {
706 return org.jboss.netty.example.localtime.LocalTimeProtocol.Locations.getDefaultInstance();
707 }
708
709 public boolean isInitialized() {
710 return result.isInitialized();
711 }
712 public org.jboss.netty.example.localtime.LocalTimeProtocol.Locations build() {
713 if (result != null && !isInitialized()) {
714 throw newUninitializedMessageException(result);
715 }
716 return buildPartial();
717 }
718
719 private org.jboss.netty.example.localtime.LocalTimeProtocol.Locations buildParsed()
720 throws com.google.protobuf.InvalidProtocolBufferException {
721 if (!isInitialized()) {
722 throw newUninitializedMessageException(
723 result).asInvalidProtocolBufferException();
724 }
725 return buildPartial();
726 }
727
728 public org.jboss.netty.example.localtime.LocalTimeProtocol.Locations buildPartial() {
729 if (result == null) {
730 throw new IllegalStateException(
731 "build() has already been called on this Builder.");
732 }
733 if (result.location_ != java.util.Collections.EMPTY_LIST) {
734 result.location_ =
735 java.util.Collections.unmodifiableList(result.location_);
736 }
737 org.jboss.netty.example.localtime.LocalTimeProtocol.Locations returnMe = result;
738 result = null;
739 return returnMe;
740 }
741
742 public Builder mergeFrom(com.google.protobuf.Message other) {
743 if (other instanceof org.jboss.netty.example.localtime.LocalTimeProtocol.Locations) {
744 return mergeFrom((org.jboss.netty.example.localtime.LocalTimeProtocol.Locations)other);
745 } else {
746 super.mergeFrom(other);
747 return this;
748 }
749 }
750
751 public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.Locations other) {
752 if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.Locations.getDefaultInstance()) {
753 return this;
754 }
755 if (!other.location_.isEmpty()) {
756 if (result.location_.isEmpty()) {
757 result.location_ = new java.util.ArrayList<org.jboss.netty.example.localtime.LocalTimeProtocol.Location>();
758 }
759 result.location_.addAll(other.location_);
760 }
761 mergeUnknownFields(other.getUnknownFields());
762 return this;
763 }
764
765 public Builder mergeFrom(
766 com.google.protobuf.CodedInputStream input,
767 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
768 throws java.io.IOException {
769 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
770 com.google.protobuf.UnknownFieldSet.newBuilder(
771 getUnknownFields());
772 while (true) {
773 int tag = input.readTag();
774 switch (tag) {
775 case 0:
776 setUnknownFields(unknownFields.build());
777 return this;
778 default: {
779 if (!parseUnknownField(input, unknownFields,
780 extensionRegistry, tag)) {
781 setUnknownFields(unknownFields.build());
782 return this;
783 }
784 break;
785 }
786 case 10: {
787 org.jboss.netty.example.localtime.LocalTimeProtocol.Location.Builder subBuilder = org.jboss.netty.example.localtime.LocalTimeProtocol.Location.newBuilder();
788 input.readMessage(subBuilder, extensionRegistry);
789 addLocation(subBuilder.buildPartial());
790 break;
791 }
792 }
793 }
794 }
795
796
797
798 public java.util.List<org.jboss.netty.example.localtime.LocalTimeProtocol.Location> getLocationList() {
799 return java.util.Collections.unmodifiableList(result.location_);
800 }
801 public int getLocationCount() {
802 return result.getLocationCount();
803 }
804 public org.jboss.netty.example.localtime.LocalTimeProtocol.Location getLocation(int index) {
805 return result.getLocation(index);
806 }
807 public Builder setLocation(int index, org.jboss.netty.example.localtime.LocalTimeProtocol.Location value) {
808 if (value == null) {
809 throw new NullPointerException();
810 }
811 result.location_.set(index, value);
812 return this;
813 }
814 public Builder setLocation(int index, org.jboss.netty.example.localtime.LocalTimeProtocol.Location.Builder builderForValue) {
815 result.location_.set(index, builderForValue.build());
816 return this;
817 }
818 public Builder addLocation(org.jboss.netty.example.localtime.LocalTimeProtocol.Location value) {
819 if (value == null) {
820 throw new NullPointerException();
821 }
822 if (result.location_.isEmpty()) {
823 result.location_ = new java.util.ArrayList<org.jboss.netty.example.localtime.LocalTimeProtocol.Location>();
824 }
825 result.location_.add(value);
826 return this;
827 }
828 public Builder addLocation(org.jboss.netty.example.localtime.LocalTimeProtocol.Location.Builder builderForValue) {
829 if (result.location_.isEmpty()) {
830 result.location_ = new java.util.ArrayList<org.jboss.netty.example.localtime.LocalTimeProtocol.Location>();
831 }
832 result.location_.add(builderForValue.build());
833 return this;
834 }
835 public Builder addAllLocation(
836 java.lang.Iterable<? extends org.jboss.netty.example.localtime.LocalTimeProtocol.Location> values) {
837 if (result.location_.isEmpty()) {
838 result.location_ = new java.util.ArrayList<org.jboss.netty.example.localtime.LocalTimeProtocol.Location>();
839 }
840 super.addAll(values, result.location_);
841 return this;
842 }
843 public Builder clearLocation() {
844 result.location_ = java.util.Collections.emptyList();
845 return this;
846 }
847
848
849 }
850
851 static {
852 defaultInstance = new Locations(true);
853 org.jboss.netty.example.localtime.LocalTimeProtocol.internalForceInit();
854 defaultInstance.initFields();
855 }
856
857
858 }
859
860 public static final class LocalTime extends
861 com.google.protobuf.GeneratedMessage {
862
863 private LocalTime() {
864 initFields();
865 }
866 private LocalTime(boolean noInit) {}
867
868 private static final LocalTime defaultInstance;
869 public static LocalTime getDefaultInstance() {
870 return defaultInstance;
871 }
872
873 public LocalTime getDefaultInstanceForType() {
874 return defaultInstance;
875 }
876
877 public static final com.google.protobuf.Descriptors.Descriptor
878 getDescriptor() {
879 return org.jboss.netty.example.localtime.LocalTimeProtocol.internal_static_org_jboss_netty_example_localtime_LocalTime_descriptor;
880 }
881
882 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
883 internalGetFieldAccessorTable() {
884 return org.jboss.netty.example.localtime.LocalTimeProtocol.internal_static_org_jboss_netty_example_localtime_LocalTime_fieldAccessorTable;
885 }
886
887
888 public static final int YEAR_FIELD_NUMBER = 1;
889 private boolean hasYear;
890 private int year_ = 0;
891 public boolean hasYear() { return hasYear; }
892 public int getYear() { return year_; }
893
894
895 public static final int MONTH_FIELD_NUMBER = 2;
896 private boolean hasMonth;
897 private int month_ = 0;
898 public boolean hasMonth() { return hasMonth; }
899 public int getMonth() { return month_; }
900
901
902 public static final int DAYOFMONTH_FIELD_NUMBER = 4;
903 private boolean hasDayOfMonth;
904 private int dayOfMonth_ = 0;
905 public boolean hasDayOfMonth() { return hasDayOfMonth; }
906 public int getDayOfMonth() { return dayOfMonth_; }
907
908
909 public static final int DAYOFWEEK_FIELD_NUMBER = 5;
910 private boolean hasDayOfWeek;
911 private org.jboss.netty.example.localtime.LocalTimeProtocol.DayOfWeek dayOfWeek_;
912 public boolean hasDayOfWeek() { return hasDayOfWeek; }
913 public org.jboss.netty.example.localtime.LocalTimeProtocol.DayOfWeek getDayOfWeek() { return dayOfWeek_; }
914
915
916 public static final int HOUR_FIELD_NUMBER = 6;
917 private boolean hasHour;
918 private int hour_ = 0;
919 public boolean hasHour() { return hasHour; }
920 public int getHour() { return hour_; }
921
922
923 public static final int MINUTE_FIELD_NUMBER = 7;
924 private boolean hasMinute;
925 private int minute_ = 0;
926 public boolean hasMinute() { return hasMinute; }
927 public int getMinute() { return minute_; }
928
929
930 public static final int SECOND_FIELD_NUMBER = 8;
931 private boolean hasSecond;
932 private int second_ = 0;
933 public boolean hasSecond() { return hasSecond; }
934 public int getSecond() { return second_; }
935
936 private void initFields() {
937 dayOfWeek_ = org.jboss.netty.example.localtime.LocalTimeProtocol.DayOfWeek.SUNDAY;
938 }
939 public final boolean isInitialized() {
940 if (!hasYear) {
941 return false;
942 }
943 if (!hasMonth) {
944 return false;
945 }
946 if (!hasDayOfMonth) {
947 return false;
948 }
949 if (!hasDayOfWeek) {
950 return false;
951 }
952 if (!hasHour) {
953 return false;
954 }
955 if (!hasMinute) {
956 return false;
957 }
958 if (!hasSecond) {
959 return false;
960 }
961 return true;
962 }
963
964 public void writeTo(com.google.protobuf.CodedOutputStream output)
965 throws java.io.IOException {
966 getSerializedSize();
967 if (hasYear()) {
968 output.writeUInt32(1, getYear());
969 }
970 if (hasMonth()) {
971 output.writeUInt32(2, getMonth());
972 }
973 if (hasDayOfMonth()) {
974 output.writeUInt32(4, getDayOfMonth());
975 }
976 if (hasDayOfWeek()) {
977 output.writeEnum(5, getDayOfWeek().getNumber());
978 }
979 if (hasHour()) {
980 output.writeUInt32(6, getHour());
981 }
982 if (hasMinute()) {
983 output.writeUInt32(7, getMinute());
984 }
985 if (hasSecond()) {
986 output.writeUInt32(8, getSecond());
987 }
988 getUnknownFields().writeTo(output);
989 }
990
991 private int memoizedSerializedSize = -1;
992 public int getSerializedSize() {
993 int size = memoizedSerializedSize;
994 if (size != -1) {
995 return size;
996 }
997
998 size = 0;
999 if (hasYear()) {
1000 size += com.google.protobuf.CodedOutputStream
1001 .computeUInt32Size(1, getYear());
1002 }
1003 if (hasMonth()) {
1004 size += com.google.protobuf.CodedOutputStream
1005 .computeUInt32Size(2, getMonth());
1006 }
1007 if (hasDayOfMonth()) {
1008 size += com.google.protobuf.CodedOutputStream
1009 .computeUInt32Size(4, getDayOfMonth());
1010 }
1011 if (hasDayOfWeek()) {
1012 size += com.google.protobuf.CodedOutputStream
1013 .computeEnumSize(5, getDayOfWeek().getNumber());
1014 }
1015 if (hasHour()) {
1016 size += com.google.protobuf.CodedOutputStream
1017 .computeUInt32Size(6, getHour());
1018 }
1019 if (hasMinute()) {
1020 size += com.google.protobuf.CodedOutputStream
1021 .computeUInt32Size(7, getMinute());
1022 }
1023 if (hasSecond()) {
1024 size += com.google.protobuf.CodedOutputStream
1025 .computeUInt32Size(8, getSecond());
1026 }
1027 size += getUnknownFields().getSerializedSize();
1028 memoizedSerializedSize = size;
1029 return size;
1030 }
1031
1032 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime parseFrom(
1033 com.google.protobuf.ByteString data)
1034 throws com.google.protobuf.InvalidProtocolBufferException {
1035 return newBuilder().mergeFrom(data).buildParsed();
1036 }
1037 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime parseFrom(
1038 com.google.protobuf.ByteString data,
1039 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1040 throws com.google.protobuf.InvalidProtocolBufferException {
1041 return newBuilder().mergeFrom(data, extensionRegistry)
1042 .buildParsed();
1043 }
1044 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime parseFrom(byte[] data)
1045 throws com.google.protobuf.InvalidProtocolBufferException {
1046 return newBuilder().mergeFrom(data).buildParsed();
1047 }
1048 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime parseFrom(
1049 byte[] data,
1050 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1051 throws com.google.protobuf.InvalidProtocolBufferException {
1052 return newBuilder().mergeFrom(data, extensionRegistry)
1053 .buildParsed();
1054 }
1055 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime parseFrom(java.io.InputStream input)
1056 throws java.io.IOException {
1057 return newBuilder().mergeFrom(input).buildParsed();
1058 }
1059 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime parseFrom(
1060 java.io.InputStream input,
1061 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1062 throws java.io.IOException {
1063 return newBuilder().mergeFrom(input, extensionRegistry)
1064 .buildParsed();
1065 }
1066 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime parseDelimitedFrom(java.io.InputStream input)
1067 throws java.io.IOException {
1068 Builder builder = newBuilder();
1069 if (builder.mergeDelimitedFrom(input)) {
1070 return builder.buildParsed();
1071 } else {
1072 return null;
1073 }
1074 }
1075 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime parseDelimitedFrom(
1076 java.io.InputStream input,
1077 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1078 throws java.io.IOException {
1079 Builder builder = newBuilder();
1080 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
1081 return builder.buildParsed();
1082 } else {
1083 return null;
1084 }
1085 }
1086 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime parseFrom(
1087 com.google.protobuf.CodedInputStream input)
1088 throws java.io.IOException {
1089 return newBuilder().mergeFrom(input).buildParsed();
1090 }
1091 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime parseFrom(
1092 com.google.protobuf.CodedInputStream input,
1093 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1094 throws java.io.IOException {
1095 return newBuilder().mergeFrom(input, extensionRegistry)
1096 .buildParsed();
1097 }
1098
1099 public static Builder newBuilder() { return Builder.create(); }
1100 public Builder newBuilderForType() { return newBuilder(); }
1101 public static Builder newBuilder(org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime prototype) {
1102 return newBuilder().mergeFrom(prototype);
1103 }
1104 public Builder toBuilder() { return newBuilder(this); }
1105
1106 public static final class Builder extends
1107 com.google.protobuf.GeneratedMessage.Builder<Builder> {
1108 private org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime result;
1109
1110
1111 private Builder() {}
1112
1113 private static Builder create() {
1114 Builder builder = new Builder();
1115 builder.result = new org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime();
1116 return builder;
1117 }
1118
1119 protected org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime internalGetResult() {
1120 return result;
1121 }
1122
1123 public Builder clear() {
1124 if (result == null) {
1125 throw new IllegalStateException(
1126 "Cannot call clear() after build().");
1127 }
1128 result = new org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime();
1129 return this;
1130 }
1131
1132 public Builder clone() {
1133 return create().mergeFrom(result);
1134 }
1135
1136 public com.google.protobuf.Descriptors.Descriptor
1137 getDescriptorForType() {
1138 return org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime.getDescriptor();
1139 }
1140
1141 public org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime getDefaultInstanceForType() {
1142 return org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime.getDefaultInstance();
1143 }
1144
1145 public boolean isInitialized() {
1146 return result.isInitialized();
1147 }
1148 public org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime build() {
1149 if (result != null && !isInitialized()) {
1150 throw newUninitializedMessageException(result);
1151 }
1152 return buildPartial();
1153 }
1154
1155 private org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime buildParsed()
1156 throws com.google.protobuf.InvalidProtocolBufferException {
1157 if (!isInitialized()) {
1158 throw newUninitializedMessageException(
1159 result).asInvalidProtocolBufferException();
1160 }
1161 return buildPartial();
1162 }
1163
1164 public org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime buildPartial() {
1165 if (result == null) {
1166 throw new IllegalStateException(
1167 "build() has already been called on this Builder.");
1168 }
1169 org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime returnMe = result;
1170 result = null;
1171 return returnMe;
1172 }
1173
1174 public Builder mergeFrom(com.google.protobuf.Message other) {
1175 if (other instanceof org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime) {
1176 return mergeFrom((org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime)other);
1177 } else {
1178 super.mergeFrom(other);
1179 return this;
1180 }
1181 }
1182
1183 public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime other) {
1184 if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime.getDefaultInstance()) {
1185 return this;
1186 }
1187 if (other.hasYear()) {
1188 setYear(other.getYear());
1189 }
1190 if (other.hasMonth()) {
1191 setMonth(other.getMonth());
1192 }
1193 if (other.hasDayOfMonth()) {
1194 setDayOfMonth(other.getDayOfMonth());
1195 }
1196 if (other.hasDayOfWeek()) {
1197 setDayOfWeek(other.getDayOfWeek());
1198 }
1199 if (other.hasHour()) {
1200 setHour(other.getHour());
1201 }
1202 if (other.hasMinute()) {
1203 setMinute(other.getMinute());
1204 }
1205 if (other.hasSecond()) {
1206 setSecond(other.getSecond());
1207 }
1208 mergeUnknownFields(other.getUnknownFields());
1209 return this;
1210 }
1211
1212 public Builder mergeFrom(
1213 com.google.protobuf.CodedInputStream input,
1214 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1215 throws java.io.IOException {
1216 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1217 com.google.protobuf.UnknownFieldSet.newBuilder(
1218 getUnknownFields());
1219 while (true) {
1220 int tag = input.readTag();
1221 switch (tag) {
1222 case 0:
1223 setUnknownFields(unknownFields.build());
1224 return this;
1225 default: {
1226 if (!parseUnknownField(input, unknownFields,
1227 extensionRegistry, tag)) {
1228 setUnknownFields(unknownFields.build());
1229 return this;
1230 }
1231 break;
1232 }
1233 case 8: {
1234 setYear(input.readUInt32());
1235 break;
1236 }
1237 case 16: {
1238 setMonth(input.readUInt32());
1239 break;
1240 }
1241 case 32: {
1242 setDayOfMonth(input.readUInt32());
1243 break;
1244 }
1245 case 40: {
1246 int rawValue = input.readEnum();
1247 org.jboss.netty.example.localtime.LocalTimeProtocol.DayOfWeek value = org.jboss.netty.example.localtime.LocalTimeProtocol.DayOfWeek.valueOf(rawValue);
1248 if (value == null) {
1249 unknownFields.mergeVarintField(5, rawValue);
1250 } else {
1251 setDayOfWeek(value);
1252 }
1253 break;
1254 }
1255 case 48: {
1256 setHour(input.readUInt32());
1257 break;
1258 }
1259 case 56: {
1260 setMinute(input.readUInt32());
1261 break;
1262 }
1263 case 64: {
1264 setSecond(input.readUInt32());
1265 break;
1266 }
1267 }
1268 }
1269 }
1270
1271
1272
1273 public boolean hasYear() {
1274 return result.hasYear();
1275 }
1276 public int getYear() {
1277 return result.getYear();
1278 }
1279 public Builder setYear(int value) {
1280 result.hasYear = true;
1281 result.year_ = value;
1282 return this;
1283 }
1284 public Builder clearYear() {
1285 result.hasYear = false;
1286 result.year_ = 0;
1287 return this;
1288 }
1289
1290
1291 public boolean hasMonth() {
1292 return result.hasMonth();
1293 }
1294 public int getMonth() {
1295 return result.getMonth();
1296 }
1297 public Builder setMonth(int value) {
1298 result.hasMonth = true;
1299 result.month_ = value;
1300 return this;
1301 }
1302 public Builder clearMonth() {
1303 result.hasMonth = false;
1304 result.month_ = 0;
1305 return this;
1306 }
1307
1308
1309 public boolean hasDayOfMonth() {
1310 return result.hasDayOfMonth();
1311 }
1312 public int getDayOfMonth() {
1313 return result.getDayOfMonth();
1314 }
1315 public Builder setDayOfMonth(int value) {
1316 result.hasDayOfMonth = true;
1317 result.dayOfMonth_ = value;
1318 return this;
1319 }
1320 public Builder clearDayOfMonth() {
1321 result.hasDayOfMonth = false;
1322 result.dayOfMonth_ = 0;
1323 return this;
1324 }
1325
1326
1327 public boolean hasDayOfWeek() {
1328 return result.hasDayOfWeek();
1329 }
1330 public org.jboss.netty.example.localtime.LocalTimeProtocol.DayOfWeek getDayOfWeek() {
1331 return result.getDayOfWeek();
1332 }
1333 public Builder setDayOfWeek(org.jboss.netty.example.localtime.LocalTimeProtocol.DayOfWeek value) {
1334 if (value == null) {
1335 throw new NullPointerException();
1336 }
1337 result.hasDayOfWeek = true;
1338 result.dayOfWeek_ = value;
1339 return this;
1340 }
1341 public Builder clearDayOfWeek() {
1342 result.hasDayOfWeek = false;
1343 result.dayOfWeek_ = org.jboss.netty.example.localtime.LocalTimeProtocol.DayOfWeek.SUNDAY;
1344 return this;
1345 }
1346
1347
1348 public boolean hasHour() {
1349 return result.hasHour();
1350 }
1351 public int getHour() {
1352 return result.getHour();
1353 }
1354 public Builder setHour(int value) {
1355 result.hasHour = true;
1356 result.hour_ = value;
1357 return this;
1358 }
1359 public Builder clearHour() {
1360 result.hasHour = false;
1361 result.hour_ = 0;
1362 return this;
1363 }
1364
1365
1366 public boolean hasMinute() {
1367 return result.hasMinute();
1368 }
1369 public int getMinute() {
1370 return result.getMinute();
1371 }
1372 public Builder setMinute(int value) {
1373 result.hasMinute = true;
1374 result.minute_ = value;
1375 return this;
1376 }
1377 public Builder clearMinute() {
1378 result.hasMinute = false;
1379 result.minute_ = 0;
1380 return this;
1381 }
1382
1383
1384 public boolean hasSecond() {
1385 return result.hasSecond();
1386 }
1387 public int getSecond() {
1388 return result.getSecond();
1389 }
1390 public Builder setSecond(int value) {
1391 result.hasSecond = true;
1392 result.second_ = value;
1393 return this;
1394 }
1395 public Builder clearSecond() {
1396 result.hasSecond = false;
1397 result.second_ = 0;
1398 return this;
1399 }
1400
1401
1402 }
1403
1404 static {
1405 defaultInstance = new LocalTime(true);
1406 org.jboss.netty.example.localtime.LocalTimeProtocol.internalForceInit();
1407 defaultInstance.initFields();
1408 }
1409
1410
1411 }
1412
1413 public static final class LocalTimes extends
1414 com.google.protobuf.GeneratedMessage {
1415
1416 private LocalTimes() {
1417 initFields();
1418 }
1419 private LocalTimes(boolean noInit) {}
1420
1421 private static final LocalTimes defaultInstance;
1422 public static LocalTimes getDefaultInstance() {
1423 return defaultInstance;
1424 }
1425
1426 public LocalTimes getDefaultInstanceForType() {
1427 return defaultInstance;
1428 }
1429
1430 public static final com.google.protobuf.Descriptors.Descriptor
1431 getDescriptor() {
1432 return org.jboss.netty.example.localtime.LocalTimeProtocol.internal_static_org_jboss_netty_example_localtime_LocalTimes_descriptor;
1433 }
1434
1435 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1436 internalGetFieldAccessorTable() {
1437 return org.jboss.netty.example.localtime.LocalTimeProtocol.internal_static_org_jboss_netty_example_localtime_LocalTimes_fieldAccessorTable;
1438 }
1439
1440
1441 public static final int LOCALTIME_FIELD_NUMBER = 1;
1442 private java.util.List<org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime> localTime_ =
1443 java.util.Collections.emptyList();
1444 public java.util.List<org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime> getLocalTimeList() {
1445 return localTime_;
1446 }
1447 public int getLocalTimeCount() { return localTime_.size(); }
1448 public org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime getLocalTime(int index) {
1449 return localTime_.get(index);
1450 }
1451
1452 private void initFields() {
1453 }
1454 public final boolean isInitialized() {
1455 for (org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime element : getLocalTimeList()) {
1456 if (!element.isInitialized()) {
1457 return false;
1458 }
1459 }
1460 return true;
1461 }
1462
1463 public void writeTo(com.google.protobuf.CodedOutputStream output)
1464 throws java.io.IOException {
1465 getSerializedSize();
1466 for (org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime element : getLocalTimeList()) {
1467 output.writeMessage(1, element);
1468 }
1469 getUnknownFields().writeTo(output);
1470 }
1471
1472 private int memoizedSerializedSize = -1;
1473 public int getSerializedSize() {
1474 int size = memoizedSerializedSize;
1475 if (size != -1) {
1476 return size;
1477 }
1478
1479 size = 0;
1480 for (org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime element : getLocalTimeList()) {
1481 size += com.google.protobuf.CodedOutputStream
1482 .computeMessageSize(1, element);
1483 }
1484 size += getUnknownFields().getSerializedSize();
1485 memoizedSerializedSize = size;
1486 return size;
1487 }
1488
1489 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes parseFrom(
1490 com.google.protobuf.ByteString data)
1491 throws com.google.protobuf.InvalidProtocolBufferException {
1492 return newBuilder().mergeFrom(data).buildParsed();
1493 }
1494 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes parseFrom(
1495 com.google.protobuf.ByteString data,
1496 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1497 throws com.google.protobuf.InvalidProtocolBufferException {
1498 return newBuilder().mergeFrom(data, extensionRegistry)
1499 .buildParsed();
1500 }
1501 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes parseFrom(byte[] data)
1502 throws com.google.protobuf.InvalidProtocolBufferException {
1503 return newBuilder().mergeFrom(data).buildParsed();
1504 }
1505 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes parseFrom(
1506 byte[] data,
1507 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1508 throws com.google.protobuf.InvalidProtocolBufferException {
1509 return newBuilder().mergeFrom(data, extensionRegistry)
1510 .buildParsed();
1511 }
1512 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes parseFrom(java.io.InputStream input)
1513 throws java.io.IOException {
1514 return newBuilder().mergeFrom(input).buildParsed();
1515 }
1516 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes parseFrom(
1517 java.io.InputStream input,
1518 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1519 throws java.io.IOException {
1520 return newBuilder().mergeFrom(input, extensionRegistry)
1521 .buildParsed();
1522 }
1523 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes parseDelimitedFrom(java.io.InputStream input)
1524 throws java.io.IOException {
1525 Builder builder = newBuilder();
1526 if (builder.mergeDelimitedFrom(input)) {
1527 return builder.buildParsed();
1528 } else {
1529 return null;
1530 }
1531 }
1532 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes parseDelimitedFrom(
1533 java.io.InputStream input,
1534 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1535 throws java.io.IOException {
1536 Builder builder = newBuilder();
1537 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
1538 return builder.buildParsed();
1539 } else {
1540 return null;
1541 }
1542 }
1543 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes parseFrom(
1544 com.google.protobuf.CodedInputStream input)
1545 throws java.io.IOException {
1546 return newBuilder().mergeFrom(input).buildParsed();
1547 }
1548 public static org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes parseFrom(
1549 com.google.protobuf.CodedInputStream input,
1550 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1551 throws java.io.IOException {
1552 return newBuilder().mergeFrom(input, extensionRegistry)
1553 .buildParsed();
1554 }
1555
1556 public static Builder newBuilder() { return Builder.create(); }
1557 public Builder newBuilderForType() { return newBuilder(); }
1558 public static Builder newBuilder(org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes prototype) {
1559 return newBuilder().mergeFrom(prototype);
1560 }
1561 public Builder toBuilder() { return newBuilder(this); }
1562
1563 public static final class Builder extends
1564 com.google.protobuf.GeneratedMessage.Builder<Builder> {
1565 private org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes result;
1566
1567
1568 private Builder() {}
1569
1570 private static Builder create() {
1571 Builder builder = new Builder();
1572 builder.result = new org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes();
1573 return builder;
1574 }
1575
1576 protected org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes internalGetResult() {
1577 return result;
1578 }
1579
1580 public Builder clear() {
1581 if (result == null) {
1582 throw new IllegalStateException(
1583 "Cannot call clear() after build().");
1584 }
1585 result = new org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes();
1586 return this;
1587 }
1588
1589 public Builder clone() {
1590 return create().mergeFrom(result);
1591 }
1592
1593 public com.google.protobuf.Descriptors.Descriptor
1594 getDescriptorForType() {
1595 return org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes.getDescriptor();
1596 }
1597
1598 public org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes getDefaultInstanceForType() {
1599 return org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes.getDefaultInstance();
1600 }
1601
1602 public boolean isInitialized() {
1603 return result.isInitialized();
1604 }
1605 public org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes build() {
1606 if (result != null && !isInitialized()) {
1607 throw newUninitializedMessageException(result);
1608 }
1609 return buildPartial();
1610 }
1611
1612 private org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes buildParsed()
1613 throws com.google.protobuf.InvalidProtocolBufferException {
1614 if (!isInitialized()) {
1615 throw newUninitializedMessageException(
1616 result).asInvalidProtocolBufferException();
1617 }
1618 return buildPartial();
1619 }
1620
1621 public org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes buildPartial() {
1622 if (result == null) {
1623 throw new IllegalStateException(
1624 "build() has already been called on this Builder.");
1625 }
1626 if (result.localTime_ != java.util.Collections.EMPTY_LIST) {
1627 result.localTime_ =
1628 java.util.Collections.unmodifiableList(result.localTime_);
1629 }
1630 org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes returnMe = result;
1631 result = null;
1632 return returnMe;
1633 }
1634
1635 public Builder mergeFrom(com.google.protobuf.Message other) {
1636 if (other instanceof org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes) {
1637 return mergeFrom((org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes)other);
1638 } else {
1639 super.mergeFrom(other);
1640 return this;
1641 }
1642 }
1643
1644 public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes other) {
1645 if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes.getDefaultInstance()) {
1646 return this;
1647 }
1648 if (!other.localTime_.isEmpty()) {
1649 if (result.localTime_.isEmpty()) {
1650 result.localTime_ = new java.util.ArrayList<org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime>();
1651 }
1652 result.localTime_.addAll(other.localTime_);
1653 }
1654 mergeUnknownFields(other.getUnknownFields());
1655 return this;
1656 }
1657
1658 public Builder mergeFrom(
1659 com.google.protobuf.CodedInputStream input,
1660 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1661 throws java.io.IOException {
1662 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1663 com.google.protobuf.UnknownFieldSet.newBuilder(
1664 getUnknownFields());
1665 while (true) {
1666 int tag = input.readTag();
1667 switch (tag) {
1668 case 0:
1669 setUnknownFields(unknownFields.build());
1670 return this;
1671 default: {
1672 if (!parseUnknownField(input, unknownFields,
1673 extensionRegistry, tag)) {
1674 setUnknownFields(unknownFields.build());
1675 return this;
1676 }
1677 break;
1678 }
1679 case 10: {
1680 org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime.Builder subBuilder = org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime.newBuilder();
1681 input.readMessage(subBuilder, extensionRegistry);
1682 addLocalTime(subBuilder.buildPartial());
1683 break;
1684 }
1685 }
1686 }
1687 }
1688
1689
1690
1691 public java.util.List<org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime> getLocalTimeList() {
1692 return java.util.Collections.unmodifiableList(result.localTime_);
1693 }
1694 public int getLocalTimeCount() {
1695 return result.getLocalTimeCount();
1696 }
1697 public org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime getLocalTime(int index) {
1698 return result.getLocalTime(index);
1699 }
1700 public Builder setLocalTime(int index, org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime value) {
1701 if (value == null) {
1702 throw new NullPointerException();
1703 }
1704 result.localTime_.set(index, value);
1705 return this;
1706 }
1707 public Builder setLocalTime(int index, org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime.Builder builderForValue) {
1708 result.localTime_.set(index, builderForValue.build());
1709 return this;
1710 }
1711 public Builder addLocalTime(org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime value) {
1712 if (value == null) {
1713 throw new NullPointerException();
1714 }
1715 if (result.localTime_.isEmpty()) {
1716 result.localTime_ = new java.util.ArrayList<org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime>();
1717 }
1718 result.localTime_.add(value);
1719 return this;
1720 }
1721 public Builder addLocalTime(org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime.Builder builderForValue) {
1722 if (result.localTime_.isEmpty()) {
1723 result.localTime_ = new java.util.ArrayList<org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime>();
1724 }
1725 result.localTime_.add(builderForValue.build());
1726 return this;
1727 }
1728 public Builder addAllLocalTime(
1729 java.lang.Iterable<? extends org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime> values) {
1730 if (result.localTime_.isEmpty()) {
1731 result.localTime_ = new java.util.ArrayList<org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime>();
1732 }
1733 super.addAll(values, result.localTime_);
1734 return this;
1735 }
1736 public Builder clearLocalTime() {
1737 result.localTime_ = java.util.Collections.emptyList();
1738 return this;
1739 }
1740
1741
1742 }
1743
1744 static {
1745 defaultInstance = new LocalTimes(true);
1746 org.jboss.netty.example.localtime.LocalTimeProtocol.internalForceInit();
1747 defaultInstance.initFields();
1748 }
1749
1750
1751 }
1752
1753 private static com.google.protobuf.Descriptors.Descriptor
1754 internal_static_org_jboss_netty_example_localtime_Location_descriptor;
1755 private static
1756 com.google.protobuf.GeneratedMessage.FieldAccessorTable
1757 internal_static_org_jboss_netty_example_localtime_Location_fieldAccessorTable;
1758 private static com.google.protobuf.Descriptors.Descriptor
1759 internal_static_org_jboss_netty_example_localtime_Locations_descriptor;
1760 private static
1761 com.google.protobuf.GeneratedMessage.FieldAccessorTable
1762 internal_static_org_jboss_netty_example_localtime_Locations_fieldAccessorTable;
1763 private static com.google.protobuf.Descriptors.Descriptor
1764 internal_static_org_jboss_netty_example_localtime_LocalTime_descriptor;
1765 private static
1766 com.google.protobuf.GeneratedMessage.FieldAccessorTable
1767 internal_static_org_jboss_netty_example_localtime_LocalTime_fieldAccessorTable;
1768 private static com.google.protobuf.Descriptors.Descriptor
1769 internal_static_org_jboss_netty_example_localtime_LocalTimes_descriptor;
1770 private static
1771 com.google.protobuf.GeneratedMessage.FieldAccessorTable
1772 internal_static_org_jboss_netty_example_localtime_LocalTimes_fieldAccessorTable;
1773
1774 public static com.google.protobuf.Descriptors.FileDescriptor
1775 getDescriptor() {
1776 return descriptor;
1777 }
1778 private static com.google.protobuf.Descriptors.FileDescriptor
1779 descriptor;
1780 static {
1781 java.lang.String[] descriptorData = {
1782 "\n\027LocalTimeProtocol.proto\022!org.jboss.net" +
1783 "ty.example.localtime\"Y\n\010Location\022?\n\tcont" +
1784 "inent\030\001 \002(\0162,.org.jboss.netty.example.lo" +
1785 "caltime.Continent\022\014\n\004city\030\002 \002(\t\"J\n\tLocat" +
1786 "ions\022=\n\010location\030\001 \003(\0132+.org.jboss.netty" +
1787 ".example.localtime.Location\"\253\001\n\tLocalTim" +
1788 "e\022\014\n\004year\030\001 \002(\r\022\r\n\005month\030\002 \002(\r\022\022\n\ndayOfM" +
1789 "onth\030\004 \002(\r\022?\n\tdayOfWeek\030\005 \002(\0162,.org.jbos" +
1790 "s.netty.example.localtime.DayOfWeek\022\014\n\004h" +
1791 "our\030\006 \002(\r\022\016\n\006minute\030\007 \002(\r\022\016\n\006second\030\010 \002(",
1792 "\r\"M\n\nLocalTimes\022?\n\tlocalTime\030\001 \003(\0132,.org" +
1793 ".jboss.netty.example.localtime.LocalTime" +
1794 "*\231\001\n\tContinent\022\n\n\006AFRICA\020\000\022\013\n\007AMERICA\020\001\022" +
1795 "\016\n\nANTARCTICA\020\002\022\n\n\006ARCTIC\020\003\022\010\n\004ASIA\020\004\022\014\n" +
1796 "\010ATLANTIC\020\005\022\r\n\tAUSTRALIA\020\006\022\n\n\006EUROPE\020\007\022\n" +
1797 "\n\006INDIAN\020\010\022\013\n\007MIDEAST\020\t\022\013\n\007PACIFIC\020\n*g\n\t" +
1798 "DayOfWeek\022\n\n\006SUNDAY\020\001\022\n\n\006MONDAY\020\002\022\013\n\007TUE" +
1799 "SDAY\020\003\022\r\n\tWEDNESDAY\020\004\022\014\n\010THURSDAY\020\005\022\n\n\006F" +
1800 "RIDAY\020\006\022\014\n\010SATURDAY\020\007B\002H\001"
1801 };
1802 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
1803 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
1804 public com.google.protobuf.ExtensionRegistry assignDescriptors(
1805 com.google.protobuf.Descriptors.FileDescriptor root) {
1806 descriptor = root;
1807 internal_static_org_jboss_netty_example_localtime_Location_descriptor =
1808 getDescriptor().getMessageTypes().get(0);
1809 internal_static_org_jboss_netty_example_localtime_Location_fieldAccessorTable = new
1810 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1811 internal_static_org_jboss_netty_example_localtime_Location_descriptor,
1812 new java.lang.String[] { "Continent", "City", },
1813 org.jboss.netty.example.localtime.LocalTimeProtocol.Location.class,
1814 org.jboss.netty.example.localtime.LocalTimeProtocol.Location.Builder.class);
1815 internal_static_org_jboss_netty_example_localtime_Locations_descriptor =
1816 getDescriptor().getMessageTypes().get(1);
1817 internal_static_org_jboss_netty_example_localtime_Locations_fieldAccessorTable = new
1818 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1819 internal_static_org_jboss_netty_example_localtime_Locations_descriptor,
1820 new java.lang.String[] { "Location", },
1821 org.jboss.netty.example.localtime.LocalTimeProtocol.Locations.class,
1822 org.jboss.netty.example.localtime.LocalTimeProtocol.Locations.Builder.class);
1823 internal_static_org_jboss_netty_example_localtime_LocalTime_descriptor =
1824 getDescriptor().getMessageTypes().get(2);
1825 internal_static_org_jboss_netty_example_localtime_LocalTime_fieldAccessorTable = new
1826 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1827 internal_static_org_jboss_netty_example_localtime_LocalTime_descriptor,
1828 new java.lang.String[] { "Year", "Month", "DayOfMonth", "DayOfWeek", "Hour", "Minute", "Second", },
1829 org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime.class,
1830 org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime.Builder.class);
1831 internal_static_org_jboss_netty_example_localtime_LocalTimes_descriptor =
1832 getDescriptor().getMessageTypes().get(3);
1833 internal_static_org_jboss_netty_example_localtime_LocalTimes_fieldAccessorTable = new
1834 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1835 internal_static_org_jboss_netty_example_localtime_LocalTimes_descriptor,
1836 new java.lang.String[] { "LocalTime", },
1837 org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes.class,
1838 org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes.Builder.class);
1839 return null;
1840 }
1841 };
1842 com.google.protobuf.Descriptors.FileDescriptor
1843 .internalBuildGeneratedFileFrom(descriptorData,
1844 new com.google.protobuf.Descriptors.FileDescriptor[] {
1845 }, assigner);
1846 }
1847
1848 public static void internalForceInit() {}
1849
1850
1851 }