source: osm/applications/editors/josm/plugins/pbf/gen/crosby/binary/Fileformat.java@ 33772

Last change on this file since 33772 was 33772, checked in by donvip, 7 years ago

update to latest version of Protocol Buffers (v3.4.1)

File size: 41.8 KB
Line 
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: fileformat.proto
3
4package crosby.binary;
5
6public final class Fileformat {
7 private Fileformat() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistryLite registry) {
10 }
11 public interface BlobOrBuilder extends
12 // @@protoc_insertion_point(interface_extends:OSMPBF.Blob)
13 com.google.protobuf.MessageLiteOrBuilder {
14
15 /**
16 * <pre>
17 * No compression
18 * </pre>
19 *
20 * <code>optional bytes raw = 1;</code>
21 */
22 boolean hasRaw();
23 /**
24 * <pre>
25 * No compression
26 * </pre>
27 *
28 * <code>optional bytes raw = 1;</code>
29 */
30 com.google.protobuf.ByteString getRaw();
31
32 /**
33 * <pre>
34 * When compressed, the uncompressed size
35 * </pre>
36 *
37 * <code>optional int32 raw_size = 2;</code>
38 */
39 boolean hasRawSize();
40 /**
41 * <pre>
42 * When compressed, the uncompressed size
43 * </pre>
44 *
45 * <code>optional int32 raw_size = 2;</code>
46 */
47 int getRawSize();
48
49 /**
50 * <pre>
51 * Possible compressed versions of the data.
52 * </pre>
53 *
54 * <code>optional bytes zlib_data = 3;</code>
55 */
56 boolean hasZlibData();
57 /**
58 * <pre>
59 * Possible compressed versions of the data.
60 * </pre>
61 *
62 * <code>optional bytes zlib_data = 3;</code>
63 */
64 com.google.protobuf.ByteString getZlibData();
65
66 /**
67 * <pre>
68 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
69 * </pre>
70 *
71 * <code>optional bytes lzma_data = 4;</code>
72 */
73 boolean hasLzmaData();
74 /**
75 * <pre>
76 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
77 * </pre>
78 *
79 * <code>optional bytes lzma_data = 4;</code>
80 */
81 com.google.protobuf.ByteString getLzmaData();
82
83 /**
84 * <pre>
85 * Formerly used for bzip2 compressed data. Depreciated in 2010.
86 * </pre>
87 *
88 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code>
89 */
90 @java.lang.Deprecated boolean hasOBSOLETEBzip2Data();
91 /**
92 * <pre>
93 * Formerly used for bzip2 compressed data. Depreciated in 2010.
94 * </pre>
95 *
96 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code>
97 */
98 @java.lang.Deprecated com.google.protobuf.ByteString getOBSOLETEBzip2Data();
99 }
100 /**
101 * Protobuf type {@code OSMPBF.Blob}
102 */
103 public static final class Blob extends
104 com.google.protobuf.GeneratedMessageLite<
105 Blob, Blob.Builder> implements
106 // @@protoc_insertion_point(message_implements:OSMPBF.Blob)
107 BlobOrBuilder {
108 private Blob() {
109 raw_ = com.google.protobuf.ByteString.EMPTY;
110 zlibData_ = com.google.protobuf.ByteString.EMPTY;
111 lzmaData_ = com.google.protobuf.ByteString.EMPTY;
112 oBSOLETEBzip2Data_ = com.google.protobuf.ByteString.EMPTY;
113 }
114 private int bitField0_;
115 public static final int RAW_FIELD_NUMBER = 1;
116 private com.google.protobuf.ByteString raw_;
117 /**
118 * <pre>
119 * No compression
120 * </pre>
121 *
122 * <code>optional bytes raw = 1;</code>
123 */
124 public boolean hasRaw() {
125 return ((bitField0_ & 0x00000001) == 0x00000001);
126 }
127 /**
128 * <pre>
129 * No compression
130 * </pre>
131 *
132 * <code>optional bytes raw = 1;</code>
133 */
134 public com.google.protobuf.ByteString getRaw() {
135 return raw_;
136 }
137 /**
138 * <pre>
139 * No compression
140 * </pre>
141 *
142 * <code>optional bytes raw = 1;</code>
143 */
144 private void setRaw(com.google.protobuf.ByteString value) {
145 if (value == null) {
146 throw new NullPointerException();
147 }
148 bitField0_ |= 0x00000001;
149 raw_ = value;
150 }
151 /**
152 * <pre>
153 * No compression
154 * </pre>
155 *
156 * <code>optional bytes raw = 1;</code>
157 */
158 private void clearRaw() {
159 bitField0_ = (bitField0_ & ~0x00000001);
160 raw_ = getDefaultInstance().getRaw();
161 }
162
163 public static final int RAW_SIZE_FIELD_NUMBER = 2;
164 private int rawSize_;
165 /**
166 * <pre>
167 * When compressed, the uncompressed size
168 * </pre>
169 *
170 * <code>optional int32 raw_size = 2;</code>
171 */
172 public boolean hasRawSize() {
173 return ((bitField0_ & 0x00000002) == 0x00000002);
174 }
175 /**
176 * <pre>
177 * When compressed, the uncompressed size
178 * </pre>
179 *
180 * <code>optional int32 raw_size = 2;</code>
181 */
182 public int getRawSize() {
183 return rawSize_;
184 }
185 /**
186 * <pre>
187 * When compressed, the uncompressed size
188 * </pre>
189 *
190 * <code>optional int32 raw_size = 2;</code>
191 */
192 private void setRawSize(int value) {
193 bitField0_ |= 0x00000002;
194 rawSize_ = value;
195 }
196 /**
197 * <pre>
198 * When compressed, the uncompressed size
199 * </pre>
200 *
201 * <code>optional int32 raw_size = 2;</code>
202 */
203 private void clearRawSize() {
204 bitField0_ = (bitField0_ & ~0x00000002);
205 rawSize_ = 0;
206 }
207
208 public static final int ZLIB_DATA_FIELD_NUMBER = 3;
209 private com.google.protobuf.ByteString zlibData_;
210 /**
211 * <pre>
212 * Possible compressed versions of the data.
213 * </pre>
214 *
215 * <code>optional bytes zlib_data = 3;</code>
216 */
217 public boolean hasZlibData() {
218 return ((bitField0_ & 0x00000004) == 0x00000004);
219 }
220 /**
221 * <pre>
222 * Possible compressed versions of the data.
223 * </pre>
224 *
225 * <code>optional bytes zlib_data = 3;</code>
226 */
227 public com.google.protobuf.ByteString getZlibData() {
228 return zlibData_;
229 }
230 /**
231 * <pre>
232 * Possible compressed versions of the data.
233 * </pre>
234 *
235 * <code>optional bytes zlib_data = 3;</code>
236 */
237 private void setZlibData(com.google.protobuf.ByteString value) {
238 if (value == null) {
239 throw new NullPointerException();
240 }
241 bitField0_ |= 0x00000004;
242 zlibData_ = value;
243 }
244 /**
245 * <pre>
246 * Possible compressed versions of the data.
247 * </pre>
248 *
249 * <code>optional bytes zlib_data = 3;</code>
250 */
251 private void clearZlibData() {
252 bitField0_ = (bitField0_ & ~0x00000004);
253 zlibData_ = getDefaultInstance().getZlibData();
254 }
255
256 public static final int LZMA_DATA_FIELD_NUMBER = 4;
257 private com.google.protobuf.ByteString lzmaData_;
258 /**
259 * <pre>
260 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
261 * </pre>
262 *
263 * <code>optional bytes lzma_data = 4;</code>
264 */
265 public boolean hasLzmaData() {
266 return ((bitField0_ & 0x00000008) == 0x00000008);
267 }
268 /**
269 * <pre>
270 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
271 * </pre>
272 *
273 * <code>optional bytes lzma_data = 4;</code>
274 */
275 public com.google.protobuf.ByteString getLzmaData() {
276 return lzmaData_;
277 }
278 /**
279 * <pre>
280 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
281 * </pre>
282 *
283 * <code>optional bytes lzma_data = 4;</code>
284 */
285 private void setLzmaData(com.google.protobuf.ByteString value) {
286 if (value == null) {
287 throw new NullPointerException();
288 }
289 bitField0_ |= 0x00000008;
290 lzmaData_ = value;
291 }
292 /**
293 * <pre>
294 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
295 * </pre>
296 *
297 * <code>optional bytes lzma_data = 4;</code>
298 */
299 private void clearLzmaData() {
300 bitField0_ = (bitField0_ & ~0x00000008);
301 lzmaData_ = getDefaultInstance().getLzmaData();
302 }
303
304 public static final int OBSOLETE_BZIP2_DATA_FIELD_NUMBER = 5;
305 private com.google.protobuf.ByteString oBSOLETEBzip2Data_;
306 /**
307 * <pre>
308 * Formerly used for bzip2 compressed data. Depreciated in 2010.
309 * </pre>
310 *
311 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code>
312 */
313 @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() {
314 return ((bitField0_ & 0x00000010) == 0x00000010);
315 }
316 /**
317 * <pre>
318 * Formerly used for bzip2 compressed data. Depreciated in 2010.
319 * </pre>
320 *
321 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code>
322 */
323 @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() {
324 return oBSOLETEBzip2Data_;
325 }
326 /**
327 * <pre>
328 * Formerly used for bzip2 compressed data. Depreciated in 2010.
329 * </pre>
330 *
331 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code>
332 */
333 private void setOBSOLETEBzip2Data(com.google.protobuf.ByteString value) {
334 if (value == null) {
335 throw new NullPointerException();
336 }
337 bitField0_ |= 0x00000010;
338 oBSOLETEBzip2Data_ = value;
339 }
340 /**
341 * <pre>
342 * Formerly used for bzip2 compressed data. Depreciated in 2010.
343 * </pre>
344 *
345 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code>
346 */
347 private void clearOBSOLETEBzip2Data() {
348 bitField0_ = (bitField0_ & ~0x00000010);
349 oBSOLETEBzip2Data_ = getDefaultInstance().getOBSOLETEBzip2Data();
350 }
351
352 public void writeTo(com.google.protobuf.CodedOutputStream output)
353 throws java.io.IOException {
354 if (((bitField0_ & 0x00000001) == 0x00000001)) {
355 output.writeBytes(1, raw_);
356 }
357 if (((bitField0_ & 0x00000002) == 0x00000002)) {
358 output.writeInt32(2, rawSize_);
359 }
360 if (((bitField0_ & 0x00000004) == 0x00000004)) {
361 output.writeBytes(3, zlibData_);
362 }
363 if (((bitField0_ & 0x00000008) == 0x00000008)) {
364 output.writeBytes(4, lzmaData_);
365 }
366 if (((bitField0_ & 0x00000010) == 0x00000010)) {
367 output.writeBytes(5, oBSOLETEBzip2Data_);
368 }
369 unknownFields.writeTo(output);
370 }
371
372 public int getSerializedSize() {
373 int size = memoizedSerializedSize;
374 if (size != -1) return size;
375
376 size = 0;
377 if (((bitField0_ & 0x00000001) == 0x00000001)) {
378 size += com.google.protobuf.CodedOutputStream
379 .computeBytesSize(1, raw_);
380 }
381 if (((bitField0_ & 0x00000002) == 0x00000002)) {
382 size += com.google.protobuf.CodedOutputStream
383 .computeInt32Size(2, rawSize_);
384 }
385 if (((bitField0_ & 0x00000004) == 0x00000004)) {
386 size += com.google.protobuf.CodedOutputStream
387 .computeBytesSize(3, zlibData_);
388 }
389 if (((bitField0_ & 0x00000008) == 0x00000008)) {
390 size += com.google.protobuf.CodedOutputStream
391 .computeBytesSize(4, lzmaData_);
392 }
393 if (((bitField0_ & 0x00000010) == 0x00000010)) {
394 size += com.google.protobuf.CodedOutputStream
395 .computeBytesSize(5, oBSOLETEBzip2Data_);
396 }
397 size += unknownFields.getSerializedSize();
398 memoizedSerializedSize = size;
399 return size;
400 }
401
402 public static crosby.binary.Fileformat.Blob parseFrom(
403 java.nio.ByteBuffer data)
404 throws com.google.protobuf.InvalidProtocolBufferException {
405 return com.google.protobuf.GeneratedMessageLite.parseFrom(
406 DEFAULT_INSTANCE, data);
407 }
408 public static crosby.binary.Fileformat.Blob parseFrom(
409 java.nio.ByteBuffer data,
410 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
411 throws com.google.protobuf.InvalidProtocolBufferException {
412 return com.google.protobuf.GeneratedMessageLite.parseFrom(
413 DEFAULT_INSTANCE, data, extensionRegistry);
414 }
415 public static crosby.binary.Fileformat.Blob parseFrom(
416 com.google.protobuf.ByteString data)
417 throws com.google.protobuf.InvalidProtocolBufferException {
418 return com.google.protobuf.GeneratedMessageLite.parseFrom(
419 DEFAULT_INSTANCE, data);
420 }
421 public static crosby.binary.Fileformat.Blob parseFrom(
422 com.google.protobuf.ByteString data,
423 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
424 throws com.google.protobuf.InvalidProtocolBufferException {
425 return com.google.protobuf.GeneratedMessageLite.parseFrom(
426 DEFAULT_INSTANCE, data, extensionRegistry);
427 }
428 public static crosby.binary.Fileformat.Blob parseFrom(byte[] data)
429 throws com.google.protobuf.InvalidProtocolBufferException {
430 return com.google.protobuf.GeneratedMessageLite.parseFrom(
431 DEFAULT_INSTANCE, data);
432 }
433 public static crosby.binary.Fileformat.Blob parseFrom(
434 byte[] data,
435 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
436 throws com.google.protobuf.InvalidProtocolBufferException {
437 return com.google.protobuf.GeneratedMessageLite.parseFrom(
438 DEFAULT_INSTANCE, data, extensionRegistry);
439 }
440 public static crosby.binary.Fileformat.Blob parseFrom(java.io.InputStream input)
441 throws java.io.IOException {
442 return com.google.protobuf.GeneratedMessageLite.parseFrom(
443 DEFAULT_INSTANCE, input);
444 }
445 public static crosby.binary.Fileformat.Blob parseFrom(
446 java.io.InputStream input,
447 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
448 throws java.io.IOException {
449 return com.google.protobuf.GeneratedMessageLite.parseFrom(
450 DEFAULT_INSTANCE, input, extensionRegistry);
451 }
452 public static crosby.binary.Fileformat.Blob parseDelimitedFrom(java.io.InputStream input)
453 throws java.io.IOException {
454 return parseDelimitedFrom(DEFAULT_INSTANCE, input);
455 }
456 public static crosby.binary.Fileformat.Blob parseDelimitedFrom(
457 java.io.InputStream input,
458 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
459 throws java.io.IOException {
460 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
461 }
462 public static crosby.binary.Fileformat.Blob parseFrom(
463 com.google.protobuf.CodedInputStream input)
464 throws java.io.IOException {
465 return com.google.protobuf.GeneratedMessageLite.parseFrom(
466 DEFAULT_INSTANCE, input);
467 }
468 public static crosby.binary.Fileformat.Blob parseFrom(
469 com.google.protobuf.CodedInputStream input,
470 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
471 throws java.io.IOException {
472 return com.google.protobuf.GeneratedMessageLite.parseFrom(
473 DEFAULT_INSTANCE, input, extensionRegistry);
474 }
475
476 public static Builder newBuilder() {
477 return DEFAULT_INSTANCE.toBuilder();
478 }
479 public static Builder newBuilder(crosby.binary.Fileformat.Blob prototype) {
480 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
481 }
482
483 /**
484 * Protobuf type {@code OSMPBF.Blob}
485 */
486 public static final class Builder extends
487 com.google.protobuf.GeneratedMessageLite.Builder<
488 crosby.binary.Fileformat.Blob, Builder> implements
489 // @@protoc_insertion_point(builder_implements:OSMPBF.Blob)
490 crosby.binary.Fileformat.BlobOrBuilder {
491 // Construct using crosby.binary.Fileformat.Blob.newBuilder()
492 private Builder() {
493 super(DEFAULT_INSTANCE);
494 }
495
496
497 /**
498 * <pre>
499 * No compression
500 * </pre>
501 *
502 * <code>optional bytes raw = 1;</code>
503 */
504 public boolean hasRaw() {
505 return instance.hasRaw();
506 }
507 /**
508 * <pre>
509 * No compression
510 * </pre>
511 *
512 * <code>optional bytes raw = 1;</code>
513 */
514 public com.google.protobuf.ByteString getRaw() {
515 return instance.getRaw();
516 }
517 /**
518 * <pre>
519 * No compression
520 * </pre>
521 *
522 * <code>optional bytes raw = 1;</code>
523 */
524 public Builder setRaw(com.google.protobuf.ByteString value) {
525 copyOnWrite();
526 instance.setRaw(value);
527 return this;
528 }
529 /**
530 * <pre>
531 * No compression
532 * </pre>
533 *
534 * <code>optional bytes raw = 1;</code>
535 */
536 public Builder clearRaw() {
537 copyOnWrite();
538 instance.clearRaw();
539 return this;
540 }
541
542 /**
543 * <pre>
544 * When compressed, the uncompressed size
545 * </pre>
546 *
547 * <code>optional int32 raw_size = 2;</code>
548 */
549 public boolean hasRawSize() {
550 return instance.hasRawSize();
551 }
552 /**
553 * <pre>
554 * When compressed, the uncompressed size
555 * </pre>
556 *
557 * <code>optional int32 raw_size = 2;</code>
558 */
559 public int getRawSize() {
560 return instance.getRawSize();
561 }
562 /**
563 * <pre>
564 * When compressed, the uncompressed size
565 * </pre>
566 *
567 * <code>optional int32 raw_size = 2;</code>
568 */
569 public Builder setRawSize(int value) {
570 copyOnWrite();
571 instance.setRawSize(value);
572 return this;
573 }
574 /**
575 * <pre>
576 * When compressed, the uncompressed size
577 * </pre>
578 *
579 * <code>optional int32 raw_size = 2;</code>
580 */
581 public Builder clearRawSize() {
582 copyOnWrite();
583 instance.clearRawSize();
584 return this;
585 }
586
587 /**
588 * <pre>
589 * Possible compressed versions of the data.
590 * </pre>
591 *
592 * <code>optional bytes zlib_data = 3;</code>
593 */
594 public boolean hasZlibData() {
595 return instance.hasZlibData();
596 }
597 /**
598 * <pre>
599 * Possible compressed versions of the data.
600 * </pre>
601 *
602 * <code>optional bytes zlib_data = 3;</code>
603 */
604 public com.google.protobuf.ByteString getZlibData() {
605 return instance.getZlibData();
606 }
607 /**
608 * <pre>
609 * Possible compressed versions of the data.
610 * </pre>
611 *
612 * <code>optional bytes zlib_data = 3;</code>
613 */
614 public Builder setZlibData(com.google.protobuf.ByteString value) {
615 copyOnWrite();
616 instance.setZlibData(value);
617 return this;
618 }
619 /**
620 * <pre>
621 * Possible compressed versions of the data.
622 * </pre>
623 *
624 * <code>optional bytes zlib_data = 3;</code>
625 */
626 public Builder clearZlibData() {
627 copyOnWrite();
628 instance.clearZlibData();
629 return this;
630 }
631
632 /**
633 * <pre>
634 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
635 * </pre>
636 *
637 * <code>optional bytes lzma_data = 4;</code>
638 */
639 public boolean hasLzmaData() {
640 return instance.hasLzmaData();
641 }
642 /**
643 * <pre>
644 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
645 * </pre>
646 *
647 * <code>optional bytes lzma_data = 4;</code>
648 */
649 public com.google.protobuf.ByteString getLzmaData() {
650 return instance.getLzmaData();
651 }
652 /**
653 * <pre>
654 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
655 * </pre>
656 *
657 * <code>optional bytes lzma_data = 4;</code>
658 */
659 public Builder setLzmaData(com.google.protobuf.ByteString value) {
660 copyOnWrite();
661 instance.setLzmaData(value);
662 return this;
663 }
664 /**
665 * <pre>
666 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
667 * </pre>
668 *
669 * <code>optional bytes lzma_data = 4;</code>
670 */
671 public Builder clearLzmaData() {
672 copyOnWrite();
673 instance.clearLzmaData();
674 return this;
675 }
676
677 /**
678 * <pre>
679 * Formerly used for bzip2 compressed data. Depreciated in 2010.
680 * </pre>
681 *
682 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code>
683 */
684 @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() {
685 return instance.hasOBSOLETEBzip2Data();
686 }
687 /**
688 * <pre>
689 * Formerly used for bzip2 compressed data. Depreciated in 2010.
690 * </pre>
691 *
692 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code>
693 */
694 @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() {
695 return instance.getOBSOLETEBzip2Data();
696 }
697 /**
698 * <pre>
699 * Formerly used for bzip2 compressed data. Depreciated in 2010.
700 * </pre>
701 *
702 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code>
703 */
704 @java.lang.Deprecated public Builder setOBSOLETEBzip2Data(com.google.protobuf.ByteString value) {
705 copyOnWrite();
706 instance.setOBSOLETEBzip2Data(value);
707 return this;
708 }
709 /**
710 * <pre>
711 * Formerly used for bzip2 compressed data. Depreciated in 2010.
712 * </pre>
713 *
714 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code>
715 */
716 @java.lang.Deprecated public Builder clearOBSOLETEBzip2Data() {
717 copyOnWrite();
718 instance.clearOBSOLETEBzip2Data();
719 return this;
720 }
721
722 // @@protoc_insertion_point(builder_scope:OSMPBF.Blob)
723 }
724 @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
725 protected final java.lang.Object dynamicMethod(
726 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
727 java.lang.Object arg0, java.lang.Object arg1) {
728 switch (method) {
729 case NEW_MUTABLE_INSTANCE: {
730 return new crosby.binary.Fileformat.Blob();
731 }
732 case IS_INITIALIZED: {
733 return DEFAULT_INSTANCE;
734 }
735 case MAKE_IMMUTABLE: {
736 return null;
737 }
738 case NEW_BUILDER: {
739 return new Builder();
740 }
741 case VISIT: {
742 Visitor visitor = (Visitor) arg0;
743 crosby.binary.Fileformat.Blob other = (crosby.binary.Fileformat.Blob) arg1;
744 raw_ = visitor.visitByteString(
745 hasRaw(), raw_,
746 other.hasRaw(), other.raw_);
747 rawSize_ = visitor.visitInt(
748 hasRawSize(), rawSize_,
749 other.hasRawSize(), other.rawSize_);
750 zlibData_ = visitor.visitByteString(
751 hasZlibData(), zlibData_,
752 other.hasZlibData(), other.zlibData_);
753 lzmaData_ = visitor.visitByteString(
754 hasLzmaData(), lzmaData_,
755 other.hasLzmaData(), other.lzmaData_);
756 oBSOLETEBzip2Data_ = visitor.visitByteString(
757 hasOBSOLETEBzip2Data(), oBSOLETEBzip2Data_,
758 other.hasOBSOLETEBzip2Data(), other.oBSOLETEBzip2Data_);
759 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
760 .INSTANCE) {
761 bitField0_ |= other.bitField0_;
762 }
763 return this;
764 }
765 case MERGE_FROM_STREAM: {
766 com.google.protobuf.CodedInputStream input =
767 (com.google.protobuf.CodedInputStream) arg0;
768 com.google.protobuf.ExtensionRegistryLite extensionRegistry =
769 (com.google.protobuf.ExtensionRegistryLite) arg1;
770 try {
771 boolean done = false;
772 while (!done) {
773 int tag = input.readTag();
774 switch (tag) {
775 case 0:
776 done = true;
777 break;
778 default: {
779 if (!parseUnknownField(tag, input)) {
780 done = true;
781 }
782 break;
783 }
784 case 10: {
785 bitField0_ |= 0x00000001;
786 raw_ = input.readBytes();
787 break;
788 }
789 case 16: {
790 bitField0_ |= 0x00000002;
791 rawSize_ = input.readInt32();
792 break;
793 }
794 case 26: {
795 bitField0_ |= 0x00000004;
796 zlibData_ = input.readBytes();
797 break;
798 }
799 case 34: {
800 bitField0_ |= 0x00000008;
801 lzmaData_ = input.readBytes();
802 break;
803 }
804 case 42: {
805 bitField0_ |= 0x00000010;
806 oBSOLETEBzip2Data_ = input.readBytes();
807 break;
808 }
809 }
810 }
811 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
812 throw new RuntimeException(e.setUnfinishedMessage(this));
813 } catch (java.io.IOException e) {
814 throw new RuntimeException(
815 new com.google.protobuf.InvalidProtocolBufferException(
816 e.getMessage()).setUnfinishedMessage(this));
817 } finally {
818 }
819 }
820 // fall through
821 case GET_DEFAULT_INSTANCE: {
822 return DEFAULT_INSTANCE;
823 }
824 case GET_PARSER: {
825 if (PARSER == null) { synchronized (crosby.binary.Fileformat.Blob.class) {
826 if (PARSER == null) {
827 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE);
828 }
829 }
830 }
831 return PARSER;
832 }
833 }
834 throw new UnsupportedOperationException();
835 }
836
837
838 // @@protoc_insertion_point(class_scope:OSMPBF.Blob)
839 private static final crosby.binary.Fileformat.Blob DEFAULT_INSTANCE;
840 static {
841 DEFAULT_INSTANCE = new Blob();
842 DEFAULT_INSTANCE.makeImmutable();
843 }
844
845 public static crosby.binary.Fileformat.Blob getDefaultInstance() {
846 return DEFAULT_INSTANCE;
847 }
848
849 private static volatile com.google.protobuf.Parser<Blob> PARSER;
850
851 public static com.google.protobuf.Parser<Blob> parser() {
852 return DEFAULT_INSTANCE.getParserForType();
853 }
854 }
855
856 public interface BlobHeaderOrBuilder extends
857 // @@protoc_insertion_point(interface_extends:OSMPBF.BlobHeader)
858 com.google.protobuf.MessageLiteOrBuilder {
859
860 /**
861 * <code>required string type = 1;</code>
862 */
863 boolean hasType();
864 /**
865 * <code>required string type = 1;</code>
866 */
867 java.lang.String getType();
868 /**
869 * <code>required string type = 1;</code>
870 */
871 com.google.protobuf.ByteString
872 getTypeBytes();
873
874 /**
875 * <code>optional bytes indexdata = 2;</code>
876 */
877 boolean hasIndexdata();
878 /**
879 * <code>optional bytes indexdata = 2;</code>
880 */
881 com.google.protobuf.ByteString getIndexdata();
882
883 /**
884 * <code>required int32 datasize = 3;</code>
885 */
886 boolean hasDatasize();
887 /**
888 * <code>required int32 datasize = 3;</code>
889 */
890 int getDatasize();
891 }
892 /**
893 * Protobuf type {@code OSMPBF.BlobHeader}
894 */
895 public static final class BlobHeader extends
896 com.google.protobuf.GeneratedMessageLite<
897 BlobHeader, BlobHeader.Builder> implements
898 // @@protoc_insertion_point(message_implements:OSMPBF.BlobHeader)
899 BlobHeaderOrBuilder {
900 private BlobHeader() {
901 type_ = "";
902 indexdata_ = com.google.protobuf.ByteString.EMPTY;
903 }
904 private int bitField0_;
905 public static final int TYPE_FIELD_NUMBER = 1;
906 private java.lang.String type_;
907 /**
908 * <code>required string type = 1;</code>
909 */
910 public boolean hasType() {
911 return ((bitField0_ & 0x00000001) == 0x00000001);
912 }
913 /**
914 * <code>required string type = 1;</code>
915 */
916 public java.lang.String getType() {
917 return type_;
918 }
919 /**
920 * <code>required string type = 1;</code>
921 */
922 public com.google.protobuf.ByteString
923 getTypeBytes() {
924 return com.google.protobuf.ByteString.copyFromUtf8(type_);
925 }
926 /**
927 * <code>required string type = 1;</code>
928 */
929 private void setType(
930 java.lang.String value) {
931 if (value == null) {
932 throw new NullPointerException();
933 }
934 bitField0_ |= 0x00000001;
935 type_ = value;
936 }
937 /**
938 * <code>required string type = 1;</code>
939 */
940 private void clearType() {
941 bitField0_ = (bitField0_ & ~0x00000001);
942 type_ = getDefaultInstance().getType();
943 }
944 /**
945 * <code>required string type = 1;</code>
946 */
947 private void setTypeBytes(
948 com.google.protobuf.ByteString value) {
949 if (value == null) {
950 throw new NullPointerException();
951 }
952 bitField0_ |= 0x00000001;
953 type_ = value.toStringUtf8();
954 }
955
956 public static final int INDEXDATA_FIELD_NUMBER = 2;
957 private com.google.protobuf.ByteString indexdata_;
958 /**
959 * <code>optional bytes indexdata = 2;</code>
960 */
961 public boolean hasIndexdata() {
962 return ((bitField0_ & 0x00000002) == 0x00000002);
963 }
964 /**
965 * <code>optional bytes indexdata = 2;</code>
966 */
967 public com.google.protobuf.ByteString getIndexdata() {
968 return indexdata_;
969 }
970 /**
971 * <code>optional bytes indexdata = 2;</code>
972 */
973 private void setIndexdata(com.google.protobuf.ByteString value) {
974 if (value == null) {
975 throw new NullPointerException();
976 }
977 bitField0_ |= 0x00000002;
978 indexdata_ = value;
979 }
980 /**
981 * <code>optional bytes indexdata = 2;</code>
982 */
983 private void clearIndexdata() {
984 bitField0_ = (bitField0_ & ~0x00000002);
985 indexdata_ = getDefaultInstance().getIndexdata();
986 }
987
988 public static final int DATASIZE_FIELD_NUMBER = 3;
989 private int datasize_;
990 /**
991 * <code>required int32 datasize = 3;</code>
992 */
993 public boolean hasDatasize() {
994 return ((bitField0_ & 0x00000004) == 0x00000004);
995 }
996 /**
997 * <code>required int32 datasize = 3;</code>
998 */
999 public int getDatasize() {
1000 return datasize_;
1001 }
1002 /**
1003 * <code>required int32 datasize = 3;</code>
1004 */
1005 private void setDatasize(int value) {
1006 bitField0_ |= 0x00000004;
1007 datasize_ = value;
1008 }
1009 /**
1010 * <code>required int32 datasize = 3;</code>
1011 */
1012 private void clearDatasize() {
1013 bitField0_ = (bitField0_ & ~0x00000004);
1014 datasize_ = 0;
1015 }
1016
1017 public void writeTo(com.google.protobuf.CodedOutputStream output)
1018 throws java.io.IOException {
1019 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1020 output.writeString(1, getType());
1021 }
1022 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1023 output.writeBytes(2, indexdata_);
1024 }
1025 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1026 output.writeInt32(3, datasize_);
1027 }
1028 unknownFields.writeTo(output);
1029 }
1030
1031 public int getSerializedSize() {
1032 int size = memoizedSerializedSize;
1033 if (size != -1) return size;
1034
1035 size = 0;
1036 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1037 size += com.google.protobuf.CodedOutputStream
1038 .computeStringSize(1, getType());
1039 }
1040 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1041 size += com.google.protobuf.CodedOutputStream
1042 .computeBytesSize(2, indexdata_);
1043 }
1044 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1045 size += com.google.protobuf.CodedOutputStream
1046 .computeInt32Size(3, datasize_);
1047 }
1048 size += unknownFields.getSerializedSize();
1049 memoizedSerializedSize = size;
1050 return size;
1051 }
1052
1053 public static crosby.binary.Fileformat.BlobHeader parseFrom(
1054 java.nio.ByteBuffer data)
1055 throws com.google.protobuf.InvalidProtocolBufferException {
1056 return com.google.protobuf.GeneratedMessageLite.parseFrom(
1057 DEFAULT_INSTANCE, data);
1058 }
1059 public static crosby.binary.Fileformat.BlobHeader parseFrom(
1060 java.nio.ByteBuffer data,
1061 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1062 throws com.google.protobuf.InvalidProtocolBufferException {
1063 return com.google.protobuf.GeneratedMessageLite.parseFrom(
1064 DEFAULT_INSTANCE, data, extensionRegistry);
1065 }
1066 public static crosby.binary.Fileformat.BlobHeader parseFrom(
1067 com.google.protobuf.ByteString data)
1068 throws com.google.protobuf.InvalidProtocolBufferException {
1069 return com.google.protobuf.GeneratedMessageLite.parseFrom(
1070 DEFAULT_INSTANCE, data);
1071 }
1072 public static crosby.binary.Fileformat.BlobHeader parseFrom(
1073 com.google.protobuf.ByteString data,
1074 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1075 throws com.google.protobuf.InvalidProtocolBufferException {
1076 return com.google.protobuf.GeneratedMessageLite.parseFrom(
1077 DEFAULT_INSTANCE, data, extensionRegistry);
1078 }
1079 public static crosby.binary.Fileformat.BlobHeader parseFrom(byte[] data)
1080 throws com.google.protobuf.InvalidProtocolBufferException {
1081 return com.google.protobuf.GeneratedMessageLite.parseFrom(
1082 DEFAULT_INSTANCE, data);
1083 }
1084 public static crosby.binary.Fileformat.BlobHeader parseFrom(
1085 byte[] data,
1086 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1087 throws com.google.protobuf.InvalidProtocolBufferException {
1088 return com.google.protobuf.GeneratedMessageLite.parseFrom(
1089 DEFAULT_INSTANCE, data, extensionRegistry);
1090 }
1091 public static crosby.binary.Fileformat.BlobHeader parseFrom(java.io.InputStream input)
1092 throws java.io.IOException {
1093 return com.google.protobuf.GeneratedMessageLite.parseFrom(
1094 DEFAULT_INSTANCE, input);
1095 }
1096 public static crosby.binary.Fileformat.BlobHeader parseFrom(
1097 java.io.InputStream input,
1098 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1099 throws java.io.IOException {
1100 return com.google.protobuf.GeneratedMessageLite.parseFrom(
1101 DEFAULT_INSTANCE, input, extensionRegistry);
1102 }
1103 public static crosby.binary.Fileformat.BlobHeader parseDelimitedFrom(java.io.InputStream input)
1104 throws java.io.IOException {
1105 return parseDelimitedFrom(DEFAULT_INSTANCE, input);
1106 }
1107 public static crosby.binary.Fileformat.BlobHeader parseDelimitedFrom(
1108 java.io.InputStream input,
1109 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1110 throws java.io.IOException {
1111 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
1112 }
1113 public static crosby.binary.Fileformat.BlobHeader parseFrom(
1114 com.google.protobuf.CodedInputStream input)
1115 throws java.io.IOException {
1116 return com.google.protobuf.GeneratedMessageLite.parseFrom(
1117 DEFAULT_INSTANCE, input);
1118 }
1119 public static crosby.binary.Fileformat.BlobHeader parseFrom(
1120 com.google.protobuf.CodedInputStream input,
1121 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1122 throws java.io.IOException {
1123 return com.google.protobuf.GeneratedMessageLite.parseFrom(
1124 DEFAULT_INSTANCE, input, extensionRegistry);
1125 }
1126
1127 public static Builder newBuilder() {
1128 return DEFAULT_INSTANCE.toBuilder();
1129 }
1130 public static Builder newBuilder(crosby.binary.Fileformat.BlobHeader prototype) {
1131 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1132 }
1133
1134 /**
1135 * Protobuf type {@code OSMPBF.BlobHeader}
1136 */
1137 public static final class Builder extends
1138 com.google.protobuf.GeneratedMessageLite.Builder<
1139 crosby.binary.Fileformat.BlobHeader, Builder> implements
1140 // @@protoc_insertion_point(builder_implements:OSMPBF.BlobHeader)
1141 crosby.binary.Fileformat.BlobHeaderOrBuilder {
1142 // Construct using crosby.binary.Fileformat.BlobHeader.newBuilder()
1143 private Builder() {
1144 super(DEFAULT_INSTANCE);
1145 }
1146
1147
1148 /**
1149 * <code>required string type = 1;</code>
1150 */
1151 public boolean hasType() {
1152 return instance.hasType();
1153 }
1154 /**
1155 * <code>required string type = 1;</code>
1156 */
1157 public java.lang.String getType() {
1158 return instance.getType();
1159 }
1160 /**
1161 * <code>required string type = 1;</code>
1162 */
1163 public com.google.protobuf.ByteString
1164 getTypeBytes() {
1165 return instance.getTypeBytes();
1166 }
1167 /**
1168 * <code>required string type = 1;</code>
1169 */
1170 public Builder setType(
1171 java.lang.String value) {
1172 copyOnWrite();
1173 instance.setType(value);
1174 return this;
1175 }
1176 /**
1177 * <code>required string type = 1;</code>
1178 */
1179 public Builder clearType() {
1180 copyOnWrite();
1181 instance.clearType();
1182 return this;
1183 }
1184 /**
1185 * <code>required string type = 1;</code>
1186 */
1187 public Builder setTypeBytes(
1188 com.google.protobuf.ByteString value) {
1189 copyOnWrite();
1190 instance.setTypeBytes(value);
1191 return this;
1192 }
1193
1194 /**
1195 * <code>optional bytes indexdata = 2;</code>
1196 */
1197 public boolean hasIndexdata() {
1198 return instance.hasIndexdata();
1199 }
1200 /**
1201 * <code>optional bytes indexdata = 2;</code>
1202 */
1203 public com.google.protobuf.ByteString getIndexdata() {
1204 return instance.getIndexdata();
1205 }
1206 /**
1207 * <code>optional bytes indexdata = 2;</code>
1208 */
1209 public Builder setIndexdata(com.google.protobuf.ByteString value) {
1210 copyOnWrite();
1211 instance.setIndexdata(value);
1212 return this;
1213 }
1214 /**
1215 * <code>optional bytes indexdata = 2;</code>
1216 */
1217 public Builder clearIndexdata() {
1218 copyOnWrite();
1219 instance.clearIndexdata();
1220 return this;
1221 }
1222
1223 /**
1224 * <code>required int32 datasize = 3;</code>
1225 */
1226 public boolean hasDatasize() {
1227 return instance.hasDatasize();
1228 }
1229 /**
1230 * <code>required int32 datasize = 3;</code>
1231 */
1232 public int getDatasize() {
1233 return instance.getDatasize();
1234 }
1235 /**
1236 * <code>required int32 datasize = 3;</code>
1237 */
1238 public Builder setDatasize(int value) {
1239 copyOnWrite();
1240 instance.setDatasize(value);
1241 return this;
1242 }
1243 /**
1244 * <code>required int32 datasize = 3;</code>
1245 */
1246 public Builder clearDatasize() {
1247 copyOnWrite();
1248 instance.clearDatasize();
1249 return this;
1250 }
1251
1252 // @@protoc_insertion_point(builder_scope:OSMPBF.BlobHeader)
1253 }
1254 private byte memoizedIsInitialized = -1;
1255 @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
1256 protected final java.lang.Object dynamicMethod(
1257 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
1258 java.lang.Object arg0, java.lang.Object arg1) {
1259 switch (method) {
1260 case NEW_MUTABLE_INSTANCE: {
1261 return new crosby.binary.Fileformat.BlobHeader();
1262 }
1263 case IS_INITIALIZED: {
1264 byte isInitialized = memoizedIsInitialized;
1265 if (isInitialized == 1) return DEFAULT_INSTANCE;
1266 if (isInitialized == 0) return null;
1267
1268 boolean shouldMemoize = ((Boolean) arg0).booleanValue();
1269 if (!hasType()) {
1270 if (shouldMemoize) {
1271 memoizedIsInitialized = 0;
1272 }
1273 return null;
1274 }
1275 if (!hasDatasize()) {
1276 if (shouldMemoize) {
1277 memoizedIsInitialized = 0;
1278 }
1279 return null;
1280 }
1281 if (shouldMemoize) memoizedIsInitialized = 1;
1282 return DEFAULT_INSTANCE;
1283
1284 }
1285 case MAKE_IMMUTABLE: {
1286 return null;
1287 }
1288 case NEW_BUILDER: {
1289 return new Builder();
1290 }
1291 case VISIT: {
1292 Visitor visitor = (Visitor) arg0;
1293 crosby.binary.Fileformat.BlobHeader other = (crosby.binary.Fileformat.BlobHeader) arg1;
1294 type_ = visitor.visitString(
1295 hasType(), type_,
1296 other.hasType(), other.type_);
1297 indexdata_ = visitor.visitByteString(
1298 hasIndexdata(), indexdata_,
1299 other.hasIndexdata(), other.indexdata_);
1300 datasize_ = visitor.visitInt(
1301 hasDatasize(), datasize_,
1302 other.hasDatasize(), other.datasize_);
1303 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
1304 .INSTANCE) {
1305 bitField0_ |= other.bitField0_;
1306 }
1307 return this;
1308 }
1309 case MERGE_FROM_STREAM: {
1310 com.google.protobuf.CodedInputStream input =
1311 (com.google.protobuf.CodedInputStream) arg0;
1312 com.google.protobuf.ExtensionRegistryLite extensionRegistry =
1313 (com.google.protobuf.ExtensionRegistryLite) arg1;
1314 try {
1315 boolean done = false;
1316 while (!done) {
1317 int tag = input.readTag();
1318 switch (tag) {
1319 case 0:
1320 done = true;
1321 break;
1322 default: {
1323 if (!parseUnknownField(tag, input)) {
1324 done = true;
1325 }
1326 break;
1327 }
1328 case 10: {
1329 java.lang.String s = input.readString();
1330 bitField0_ |= 0x00000001;
1331 type_ = s;
1332 break;
1333 }
1334 case 18: {
1335 bitField0_ |= 0x00000002;
1336 indexdata_ = input.readBytes();
1337 break;
1338 }
1339 case 24: {
1340 bitField0_ |= 0x00000004;
1341 datasize_ = input.readInt32();
1342 break;
1343 }
1344 }
1345 }
1346 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1347 throw new RuntimeException(e.setUnfinishedMessage(this));
1348 } catch (java.io.IOException e) {
1349 throw new RuntimeException(
1350 new com.google.protobuf.InvalidProtocolBufferException(
1351 e.getMessage()).setUnfinishedMessage(this));
1352 } finally {
1353 }
1354 }
1355 // fall through
1356 case GET_DEFAULT_INSTANCE: {
1357 return DEFAULT_INSTANCE;
1358 }
1359 case GET_PARSER: {
1360 if (PARSER == null) { synchronized (crosby.binary.Fileformat.BlobHeader.class) {
1361 if (PARSER == null) {
1362 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE);
1363 }
1364 }
1365 }
1366 return PARSER;
1367 }
1368 }
1369 throw new UnsupportedOperationException();
1370 }
1371
1372
1373 // @@protoc_insertion_point(class_scope:OSMPBF.BlobHeader)
1374 private static final crosby.binary.Fileformat.BlobHeader DEFAULT_INSTANCE;
1375 static {
1376 DEFAULT_INSTANCE = new BlobHeader();
1377 DEFAULT_INSTANCE.makeImmutable();
1378 }
1379
1380 public static crosby.binary.Fileformat.BlobHeader getDefaultInstance() {
1381 return DEFAULT_INSTANCE;
1382 }
1383
1384 private static volatile com.google.protobuf.Parser<BlobHeader> PARSER;
1385
1386 public static com.google.protobuf.Parser<BlobHeader> parser() {
1387 return DEFAULT_INSTANCE.getParserForType();
1388 }
1389 }
1390
1391
1392 static {
1393 }
1394
1395 // @@protoc_insertion_point(outer_class_scope)
1396}
Note: See TracBrowser for help on using the repository browser.