Changeset 31905 in osm for applications/editors/josm/plugins/pbf/gen/crosby/binary/Fileformat.java
- Timestamp:
- 2016-01-02T01:30:50+01:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/pbf
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
gen/crosby/binary/Fileformat.java (modified) (74 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pbf
- Property svn:externals
-
old new 1 1 proto https://github.com/scrosby/OSM-binary/trunk/src 2 protobuf http ://protobuf.googlecode.com/svn/tags/2.6.0/src/google/protobuf/2 protobuf https://github.com/google/protobuf/tags/v2.6.1/src/google/protobuf/
-
- Property svn:externals
-
applications/editors/josm/plugins/pbf/gen/crosby/binary/Fileformat.java
r30658 r31905 117 117 } 118 118 119 public Blob getDefaultInstanceForType() { 119 @Override 120 public Blob getDefaultInstanceForType() { 120 121 return defaultInstance; 121 122 } … … 193 194 public static com.google.protobuf.Parser<Blob> PARSER = 194 195 new com.google.protobuf.AbstractParser<Blob>() { 195 public Blob parsePartialFrom( 196 @Override 197 public Blob parsePartialFrom( 196 198 com.google.protobuf.CodedInputStream input, 197 199 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 216 218 * </pre> 217 219 */ 218 public boolean hasRaw() { 220 @Override 221 public boolean hasRaw() { 219 222 return ((bitField0_ & 0x00000001) == 0x00000001); 220 223 } … … 226 229 * </pre> 227 230 */ 228 public com.google.protobuf.ByteString getRaw() { 231 @Override 232 public com.google.protobuf.ByteString getRaw() { 229 233 return raw_; 230 234 } … … 239 243 * </pre> 240 244 */ 241 public boolean hasRawSize() { 245 @Override 246 public boolean hasRawSize() { 242 247 return ((bitField0_ & 0x00000002) == 0x00000002); 243 248 } … … 249 254 * </pre> 250 255 */ 251 public int getRawSize() { 256 @Override 257 public int getRawSize() { 252 258 return rawSize_; 253 259 } … … 262 268 * </pre> 263 269 */ 264 public boolean hasZlibData() { 270 @Override 271 public boolean hasZlibData() { 265 272 return ((bitField0_ & 0x00000004) == 0x00000004); 266 273 } … … 272 279 * </pre> 273 280 */ 274 public com.google.protobuf.ByteString getZlibData() { 281 @Override 282 public com.google.protobuf.ByteString getZlibData() { 275 283 return zlibData_; 276 284 } … … 285 293 * </pre> 286 294 */ 287 public boolean hasLzmaData() { 295 @Override 296 public boolean hasLzmaData() { 288 297 return ((bitField0_ & 0x00000008) == 0x00000008); 289 298 } … … 295 304 * </pre> 296 305 */ 297 public com.google.protobuf.ByteString getLzmaData() { 306 @Override 307 public com.google.protobuf.ByteString getLzmaData() { 298 308 return lzmaData_; 299 309 } … … 308 318 * </pre> 309 319 */ 310 @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() { 320 @Override 321 @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() { 311 322 return ((bitField0_ & 0x00000010) == 0x00000010); 312 323 } … … 318 329 * </pre> 319 330 */ 320 @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() { 331 @Override 332 @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() { 321 333 return oBSOLETEBzip2Data_; 322 334 } … … 330 342 } 331 343 private byte memoizedIsInitialized = -1; 332 public final boolean isInitialized() { 344 @Override 345 public final boolean isInitialized() { 333 346 byte isInitialized = memoizedIsInitialized; 334 347 if (isInitialized == 1) return true; … … 339 352 } 340 353 341 public void writeTo(com.google.protobuf.CodedOutputStream output) 354 @Override 355 public void writeTo(com.google.protobuf.CodedOutputStream output) 342 356 throws java.io.IOException { 343 357 getSerializedSize(); … … 361 375 362 376 private int memoizedSerializedSize = -1; 363 public int getSerializedSize() { 377 @Override 378 public int getSerializedSize() { 364 379 int size = memoizedSerializedSize; 365 380 if (size != -1) return size; … … 452 467 453 468 public static Builder newBuilder() { return Builder.create(); } 454 public Builder newBuilderForType() { return newBuilder(); } 469 @Override 470 public Builder newBuilderForType() { return newBuilder(); } 455 471 public static Builder newBuilder(crosby.binary.Fileformat.Blob prototype) { 456 472 return newBuilder().mergeFrom(prototype); 457 473 } 458 public Builder toBuilder() { return newBuilder(this); } 474 @Override 475 public Builder toBuilder() { return newBuilder(this); } 459 476 460 477 /** … … 478 495 } 479 496 480 public Builder clear() { 497 @Override 498 public Builder clear() { 481 499 super.clear(); 482 500 raw_ = com.google.protobuf.ByteString.EMPTY; … … 493 511 } 494 512 495 public Builder clone() { 513 @Override 514 public Builder clone() { 496 515 return create().mergeFrom(buildPartial()); 497 516 } 498 517 499 public crosby.binary.Fileformat.Blob getDefaultInstanceForType() { 518 @Override 519 public crosby.binary.Fileformat.Blob getDefaultInstanceForType() { 500 520 return crosby.binary.Fileformat.Blob.getDefaultInstance(); 501 521 } 502 522 503 public crosby.binary.Fileformat.Blob build() { 523 @Override 524 public crosby.binary.Fileformat.Blob build() { 504 525 crosby.binary.Fileformat.Blob result = buildPartial(); 505 526 if (!result.isInitialized()) { … … 509 530 } 510 531 511 public crosby.binary.Fileformat.Blob buildPartial() { 532 @Override 533 public crosby.binary.Fileformat.Blob buildPartial() { 512 534 crosby.binary.Fileformat.Blob result = new crosby.binary.Fileformat.Blob(this); 513 535 int from_bitField0_ = bitField0_; … … 537 559 } 538 560 539 public Builder mergeFrom(crosby.binary.Fileformat.Blob other) { 561 @Override 562 public Builder mergeFrom(crosby.binary.Fileformat.Blob other) { 540 563 if (other == crosby.binary.Fileformat.Blob.getDefaultInstance()) return this; 541 564 if (other.hasRaw()) { … … 559 582 } 560 583 561 public final boolean isInitialized() { 584 @Override 585 public final boolean isInitialized() { 562 586 return true; 563 587 } 564 588 565 public Builder mergeFrom( 589 @Override 590 public Builder mergeFrom( 566 591 com.google.protobuf.CodedInputStream input, 567 592 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 590 615 * </pre> 591 616 */ 592 public boolean hasRaw() { 617 @Override 618 public boolean hasRaw() { 593 619 return ((bitField0_ & 0x00000001) == 0x00000001); 594 620 } … … 600 626 * </pre> 601 627 */ 602 public com.google.protobuf.ByteString getRaw() { 628 @Override 629 public com.google.protobuf.ByteString getRaw() { 603 630 return raw_; 604 631 } … … 616 643 bitField0_ |= 0x00000001; 617 644 raw_ = value; 618 645 619 646 return this; 620 647 } … … 629 656 bitField0_ = (bitField0_ & ~0x00000001); 630 657 raw_ = getDefaultInstance().getRaw(); 631 658 632 659 return this; 633 660 } … … 641 668 * </pre> 642 669 */ 643 public boolean hasRawSize() { 670 @Override 671 public boolean hasRawSize() { 644 672 return ((bitField0_ & 0x00000002) == 0x00000002); 645 673 } … … 651 679 * </pre> 652 680 */ 653 public int getRawSize() { 681 @Override 682 public int getRawSize() { 654 683 return rawSize_; 655 684 } … … 664 693 bitField0_ |= 0x00000002; 665 694 rawSize_ = value; 666 695 667 696 return this; 668 697 } … … 677 706 bitField0_ = (bitField0_ & ~0x00000002); 678 707 rawSize_ = 0; 679 708 680 709 return this; 681 710 } … … 689 718 * </pre> 690 719 */ 691 public boolean hasZlibData() { 720 @Override 721 public boolean hasZlibData() { 692 722 return ((bitField0_ & 0x00000004) == 0x00000004); 693 723 } … … 699 729 * </pre> 700 730 */ 701 public com.google.protobuf.ByteString getZlibData() { 731 @Override 732 public com.google.protobuf.ByteString getZlibData() { 702 733 return zlibData_; 703 734 } … … 715 746 bitField0_ |= 0x00000004; 716 747 zlibData_ = value; 717 748 718 749 return this; 719 750 } … … 728 759 bitField0_ = (bitField0_ & ~0x00000004); 729 760 zlibData_ = getDefaultInstance().getZlibData(); 730 761 731 762 return this; 732 763 } … … 740 771 * </pre> 741 772 */ 742 public boolean hasLzmaData() { 773 @Override 774 public boolean hasLzmaData() { 743 775 return ((bitField0_ & 0x00000008) == 0x00000008); 744 776 } … … 750 782 * </pre> 751 783 */ 752 public com.google.protobuf.ByteString getLzmaData() { 784 @Override 785 public com.google.protobuf.ByteString getLzmaData() { 753 786 return lzmaData_; 754 787 } … … 766 799 bitField0_ |= 0x00000008; 767 800 lzmaData_ = value; 768 801 769 802 return this; 770 803 } … … 779 812 bitField0_ = (bitField0_ & ~0x00000008); 780 813 lzmaData_ = getDefaultInstance().getLzmaData(); 781 814 782 815 return this; 783 816 } … … 791 824 * </pre> 792 825 */ 793 @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() { 826 @Override 827 @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() { 794 828 return ((bitField0_ & 0x00000010) == 0x00000010); 795 829 } … … 801 835 * </pre> 802 836 */ 803 @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() { 837 @Override 838 @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() { 804 839 return oBSOLETEBzip2Data_; 805 840 } … … 817 852 bitField0_ |= 0x00000010; 818 853 oBSOLETEBzip2Data_ = value; 819 854 820 855 return this; 821 856 } … … 830 865 bitField0_ = (bitField0_ & ~0x00000010); 831 866 oBSOLETEBzip2Data_ = getDefaultInstance().getOBSOLETEBzip2Data(); 832 867 833 868 return this; 834 869 } … … 900 935 } 901 936 902 public BlobHeader getDefaultInstanceForType() { 937 @Override 938 public BlobHeader getDefaultInstanceForType() { 903 939 return defaultInstance; 904 940 } … … 967 1003 public static com.google.protobuf.Parser<BlobHeader> PARSER = 968 1004 new com.google.protobuf.AbstractParser<BlobHeader>() { 969 public BlobHeader parsePartialFrom( 1005 @Override 1006 public BlobHeader parsePartialFrom( 970 1007 com.google.protobuf.CodedInputStream input, 971 1008 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 986 1023 * <code>required string type = 1;</code> 987 1024 */ 988 public boolean hasType() { 1025 @Override 1026 public boolean hasType() { 989 1027 return ((bitField0_ & 0x00000001) == 0x00000001); 990 1028 } … … 992 1030 * <code>required string type = 1;</code> 993 1031 */ 994 public java.lang.String getType() { 1032 @Override 1033 public java.lang.String getType() { 995 1034 java.lang.Object ref = type_; 996 1035 if (ref instanceof java.lang.String) { 997 1036 return (java.lang.String) ref; 998 1037 } else { 999 com.google.protobuf.ByteString bs = 1038 com.google.protobuf.ByteString bs = 1000 1039 (com.google.protobuf.ByteString) ref; 1001 1040 java.lang.String s = bs.toStringUtf8(); … … 1009 1048 * <code>required string type = 1;</code> 1010 1049 */ 1011 public com.google.protobuf.ByteString 1050 @Override 1051 public com.google.protobuf.ByteString 1012 1052 getTypeBytes() { 1013 1053 java.lang.Object ref = type_; 1014 1054 if (ref instanceof java.lang.String) { 1015 com.google.protobuf.ByteString b = 1055 com.google.protobuf.ByteString b = 1016 1056 com.google.protobuf.ByteString.copyFromUtf8( 1017 1057 (java.lang.String) ref); … … 1028 1068 * <code>optional bytes indexdata = 2;</code> 1029 1069 */ 1030 public boolean hasIndexdata() { 1070 @Override 1071 public boolean hasIndexdata() { 1031 1072 return ((bitField0_ & 0x00000002) == 0x00000002); 1032 1073 } … … 1034 1075 * <code>optional bytes indexdata = 2;</code> 1035 1076 */ 1036 public com.google.protobuf.ByteString getIndexdata() { 1077 @Override 1078 public com.google.protobuf.ByteString getIndexdata() { 1037 1079 return indexdata_; 1038 1080 } … … 1043 1085 * <code>required int32 datasize = 3;</code> 1044 1086 */ 1045 public boolean hasDatasize() { 1087 @Override 1088 public boolean hasDatasize() { 1046 1089 return ((bitField0_ & 0x00000004) == 0x00000004); 1047 1090 } … … 1049 1092 * <code>required int32 datasize = 3;</code> 1050 1093 */ 1051 public int getDatasize() { 1094 @Override 1095 public int getDatasize() { 1052 1096 return datasize_; 1053 1097 } … … 1059 1103 } 1060 1104 private byte memoizedIsInitialized = -1; 1061 public final boolean isInitialized() { 1105 @Override 1106 public final boolean isInitialized() { 1062 1107 byte isInitialized = memoizedIsInitialized; 1063 1108 if (isInitialized == 1) return true; … … 1076 1121 } 1077 1122 1078 public void writeTo(com.google.protobuf.CodedOutputStream output) 1123 @Override 1124 public void writeTo(com.google.protobuf.CodedOutputStream output) 1079 1125 throws java.io.IOException { 1080 1126 getSerializedSize(); … … 1092 1138 1093 1139 private int memoizedSerializedSize = -1; 1094 public int getSerializedSize() { 1140 @Override 1141 public int getSerializedSize() { 1095 1142 int size = memoizedSerializedSize; 1096 1143 if (size != -1) return size; … … 1175 1222 1176 1223 public static Builder newBuilder() { return Builder.create(); } 1177 public Builder newBuilderForType() { return newBuilder(); } 1224 @Override 1225 public Builder newBuilderForType() { return newBuilder(); } 1178 1226 public static Builder newBuilder(crosby.binary.Fileformat.BlobHeader prototype) { 1179 1227 return newBuilder().mergeFrom(prototype); 1180 1228 } 1181 public Builder toBuilder() { return newBuilder(this); } 1229 @Override 1230 public Builder toBuilder() { return newBuilder(this); } 1182 1231 1183 1232 /** … … 1201 1250 } 1202 1251 1203 public Builder clear() { 1252 @Override 1253 public Builder clear() { 1204 1254 super.clear(); 1205 1255 type_ = ""; … … 1212 1262 } 1213 1263 1214 public Builder clone() { 1264 @Override 1265 public Builder clone() { 1215 1266 return create().mergeFrom(buildPartial()); 1216 1267 } 1217 1268 1218 public crosby.binary.Fileformat.BlobHeader getDefaultInstanceForType() { 1269 @Override 1270 public crosby.binary.Fileformat.BlobHeader getDefaultInstanceForType() { 1219 1271 return crosby.binary.Fileformat.BlobHeader.getDefaultInstance(); 1220 1272 } 1221 1273 1222 public crosby.binary.Fileformat.BlobHeader build() { 1274 @Override 1275 public crosby.binary.Fileformat.BlobHeader build() { 1223 1276 crosby.binary.Fileformat.BlobHeader result = buildPartial(); 1224 1277 if (!result.isInitialized()) { … … 1228 1281 } 1229 1282 1230 public crosby.binary.Fileformat.BlobHeader buildPartial() { 1283 @Override 1284 public crosby.binary.Fileformat.BlobHeader buildPartial() { 1231 1285 crosby.binary.Fileformat.BlobHeader result = new crosby.binary.Fileformat.BlobHeader(this); 1232 1286 int from_bitField0_ = bitField0_; … … 1248 1302 } 1249 1303 1250 public Builder mergeFrom(crosby.binary.Fileformat.BlobHeader other) { 1304 @Override 1305 public Builder mergeFrom(crosby.binary.Fileformat.BlobHeader other) { 1251 1306 if (other == crosby.binary.Fileformat.BlobHeader.getDefaultInstance()) return this; 1252 1307 if (other.hasType()) { 1253 1308 bitField0_ |= 0x00000001; 1254 1309 type_ = other.type_; 1255 1310 1256 1311 } 1257 1312 if (other.hasIndexdata()) { … … 1266 1321 } 1267 1322 1268 public final boolean isInitialized() { 1323 @Override 1324 public final boolean isInitialized() { 1269 1325 if (!hasType()) { 1270 1326 1271 1327 return false; 1272 1328 } 1273 1329 if (!hasDatasize()) { 1274 1330 1275 1331 return false; 1276 1332 } … … 1278 1334 } 1279 1335 1280 public Builder mergeFrom( 1336 @Override 1337 public Builder mergeFrom( 1281 1338 com.google.protobuf.CodedInputStream input, 1282 1339 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 1301 1358 * <code>required string type = 1;</code> 1302 1359 */ 1303 public boolean hasType() { 1360 @Override 1361 public boolean hasType() { 1304 1362 return ((bitField0_ & 0x00000001) == 0x00000001); 1305 1363 } … … 1307 1365 * <code>required string type = 1;</code> 1308 1366 */ 1309 public java.lang.String getType() { 1367 @Override 1368 public java.lang.String getType() { 1310 1369 java.lang.Object ref = type_; 1311 1370 if (!(ref instanceof java.lang.String)) { … … 1324 1383 * <code>required string type = 1;</code> 1325 1384 */ 1326 public com.google.protobuf.ByteString 1385 @Override 1386 public com.google.protobuf.ByteString 1327 1387 getTypeBytes() { 1328 1388 java.lang.Object ref = type_; 1329 1389 if (ref instanceof String) { 1330 com.google.protobuf.ByteString b = 1390 com.google.protobuf.ByteString b = 1331 1391 com.google.protobuf.ByteString.copyFromUtf8( 1332 1392 (java.lang.String) ref); … … 1347 1407 bitField0_ |= 0x00000001; 1348 1408 type_ = value; 1349 1409 1350 1410 return this; 1351 1411 } … … 1356 1416 bitField0_ = (bitField0_ & ~0x00000001); 1357 1417 type_ = getDefaultInstance().getType(); 1358 1418 1359 1419 return this; 1360 1420 } … … 1369 1429 bitField0_ |= 0x00000001; 1370 1430 type_ = value; 1371 1431 1372 1432 return this; 1373 1433 } … … 1377 1437 * <code>optional bytes indexdata = 2;</code> 1378 1438 */ 1379 public boolean hasIndexdata() { 1439 @Override 1440 public boolean hasIndexdata() { 1380 1441 return ((bitField0_ & 0x00000002) == 0x00000002); 1381 1442 } … … 1383 1444 * <code>optional bytes indexdata = 2;</code> 1384 1445 */ 1385 public com.google.protobuf.ByteString getIndexdata() { 1446 @Override 1447 public com.google.protobuf.ByteString getIndexdata() { 1386 1448 return indexdata_; 1387 1449 } … … 1395 1457 bitField0_ |= 0x00000002; 1396 1458 indexdata_ = value; 1397 1459 1398 1460 return this; 1399 1461 } … … 1404 1466 bitField0_ = (bitField0_ & ~0x00000002); 1405 1467 indexdata_ = getDefaultInstance().getIndexdata(); 1406 1468 1407 1469 return this; 1408 1470 } … … 1412 1474 * <code>required int32 datasize = 3;</code> 1413 1475 */ 1414 public boolean hasDatasize() { 1476 @Override 1477 public boolean hasDatasize() { 1415 1478 return ((bitField0_ & 0x00000004) == 0x00000004); 1416 1479 } … … 1418 1481 * <code>required int32 datasize = 3;</code> 1419 1482 */ 1420 public int getDatasize() { 1483 @Override 1484 public int getDatasize() { 1421 1485 return datasize_; 1422 1486 } … … 1427 1491 bitField0_ |= 0x00000004; 1428 1492 datasize_ = value; 1429 1493 1430 1494 return this; 1431 1495 } … … 1436 1500 bitField0_ = (bitField0_ & ~0x00000004); 1437 1501 datasize_ = 0; 1438 1502 1439 1503 return this; 1440 1504 }
Note:
See TracChangeset
for help on using the changeset viewer.
