Changeset 30658 in osm for applications/editors/josm/plugins/pbf/gen/crosby
- Timestamp:
- 2014-09-18T16:16:38+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/pbf
- Files:
-
- 3 edited
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. 5.0/src/google/protobuf/2 protobuf http://protobuf.googlecode.com/svn/tags/2.6.0/src/google/protobuf/
-
- Property svn:externals
-
applications/editors/josm/plugins/pbf/gen/crosby/binary/Fileformat.java
r30490 r30658 1 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: src/crosby/binary/fileformat.proto2 // source: fileformat.proto 3 3 4 4 package crosby.binary; … … 9 9 com.google.protobuf.ExtensionRegistryLite registry) { 10 10 } 11 public interface BlobOrBuilder 12 extends com.google.protobuf.MessageLiteOrBuilder {13 14 // optional bytes raw = 1; 11 public interface BlobOrBuilder extends 12 // @@protoc_insertion_point(interface_extends:OSMPBF.Blob) 13 com.google.protobuf.MessageLiteOrBuilder { 14 15 15 /** 16 16 * <code>optional bytes raw = 1;</code> … … 30 30 com.google.protobuf.ByteString getRaw(); 31 31 32 // optional int32 raw_size = 2;33 32 /** 34 33 * <code>optional int32 raw_size = 2;</code> … … 48 47 int getRawSize(); 49 48 50 // optional bytes zlib_data = 3;51 49 /** 52 50 * <code>optional bytes zlib_data = 3;</code> … … 66 64 com.google.protobuf.ByteString getZlibData(); 67 65 68 // optional bytes lzma_data = 4;69 66 /** 70 67 * <code>optional bytes lzma_data = 4;</code> … … 84 81 com.google.protobuf.ByteString getLzmaData(); 85 82 86 // optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];87 83 /** 88 84 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> … … 106 102 */ 107 103 public static final class Blob extends 108 com.google.protobuf.GeneratedMessageLite 109 implements BlobOrBuilder { 104 com.google.protobuf.GeneratedMessageLite implements 105 // @@protoc_insertion_point(message_implements:OSMPBF.Blob) 106 BlobOrBuilder { 110 107 // Use Blob.newBuilder() to construct. 111 108 private Blob(com.google.protobuf.GeneratedMessageLite.Builder builder) { 112 109 super(builder); 113 114 } 115 private Blob(boolean noInit) { }110 this.unknownFields = builder.getUnknownFields(); 111 } 112 private Blob(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 116 113 117 114 private static final Blob defaultInstance; … … 124 121 } 125 122 123 private final com.google.protobuf.ByteString unknownFields; 126 124 private Blob( 127 125 com.google.protobuf.CodedInputStream input, … … 130 128 initFields(); 131 129 int mutable_bitField0_ = 0; 130 com.google.protobuf.ByteString.Output unknownFieldsOutput = 131 com.google.protobuf.ByteString.newOutput(); 132 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 133 com.google.protobuf.CodedOutputStream.newInstance( 134 unknownFieldsOutput); 132 135 try { 133 136 boolean done = false; … … 139 142 break; 140 143 default: { 141 if (!parseUnknownField(input, 144 if (!parseUnknownField(input, unknownFieldsCodedOutput, 142 145 extensionRegistry, tag)) { 143 146 done = true; … … 178 181 e.getMessage()).setUnfinishedMessage(this); 179 182 } finally { 183 try { 184 unknownFieldsCodedOutput.flush(); 185 } catch (java.io.IOException e) { 186 // Should not happen 187 } finally { 188 unknownFields = unknownFieldsOutput.toByteString(); 189 } 180 190 makeExtensionsImmutable(); 181 191 } … … 197 207 198 208 private int bitField0_; 199 // optional bytes raw = 1;200 209 public static final int RAW_FIELD_NUMBER = 1; 201 210 private com.google.protobuf.ByteString raw_; … … 221 230 } 222 231 223 // optional int32 raw_size = 2;224 232 public static final int RAW_SIZE_FIELD_NUMBER = 2; 225 233 private int rawSize_; … … 245 253 } 246 254 247 // optional bytes zlib_data = 3;248 255 public static final int ZLIB_DATA_FIELD_NUMBER = 3; 249 256 private com.google.protobuf.ByteString zlibData_; … … 269 276 } 270 277 271 // optional bytes lzma_data = 4;272 278 public static final int LZMA_DATA_FIELD_NUMBER = 4; 273 279 private com.google.protobuf.ByteString lzmaData_; … … 293 299 } 294 300 295 // optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];296 301 public static final int OBSOLETE_BZIP2_DATA_FIELD_NUMBER = 5; 297 302 private com.google.protobuf.ByteString oBSOLETEBzip2Data_; … … 327 332 public final boolean isInitialized() { 328 333 byte isInitialized = memoizedIsInitialized; 329 if (isInitialized != -1) return isInitialized == 1; 334 if (isInitialized == 1) return true; 335 if (isInitialized == 0) return false; 330 336 331 337 memoizedIsInitialized = 1; … … 351 357 output.writeBytes(5, oBSOLETEBzip2Data_); 352 358 } 359 output.writeRawBytes(unknownFields); 353 360 } 354 361 … … 379 386 .computeBytesSize(5, oBSOLETEBzip2Data_); 380 387 } 388 size += unknownFields.size(); 381 389 memoizedSerializedSize = size; 382 390 return size; … … 456 464 com.google.protobuf.GeneratedMessageLite.Builder< 457 465 crosby.binary.Fileformat.Blob, Builder> 458 implements crosby.binary.Fileformat.BlobOrBuilder { 466 implements 467 // @@protoc_insertion_point(builder_implements:OSMPBF.Blob) 468 crosby.binary.Fileformat.BlobOrBuilder { 459 469 // Construct using crosby.binary.Fileformat.Blob.newBuilder() 460 470 private Builder() { … … 544 554 setOBSOLETEBzip2Data(other.getOBSOLETEBzip2Data()); 545 555 } 556 setUnknownFields( 557 getUnknownFields().concat(other.unknownFields)); 546 558 return this; 547 559 } … … 570 582 private int bitField0_; 571 583 572 // optional bytes raw = 1;573 584 private com.google.protobuf.ByteString raw_ = com.google.protobuf.ByteString.EMPTY; 574 585 /** … … 622 633 } 623 634 624 // optional int32 raw_size = 2;625 635 private int rawSize_ ; 626 636 /** … … 671 681 } 672 682 673 // optional bytes zlib_data = 3;674 683 private com.google.protobuf.ByteString zlibData_ = com.google.protobuf.ByteString.EMPTY; 675 684 /** … … 723 732 } 724 733 725 // optional bytes lzma_data = 4;726 734 private com.google.protobuf.ByteString lzmaData_ = com.google.protobuf.ByteString.EMPTY; 727 735 /** … … 775 783 } 776 784 777 // optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];778 785 private com.google.protobuf.ByteString oBSOLETEBzip2Data_ = com.google.protobuf.ByteString.EMPTY; 779 786 /** … … 838 845 } 839 846 840 public interface BlobHeaderOrBuilder 841 extends com.google.protobuf.MessageLiteOrBuilder {842 843 // required string type = 1; 847 public interface BlobHeaderOrBuilder extends 848 // @@protoc_insertion_point(interface_extends:OSMPBF.BlobHeader) 849 com.google.protobuf.MessageLiteOrBuilder { 850 844 851 /** 845 852 * <code>required string type = 1;</code> … … 856 863 getTypeBytes(); 857 864 858 // optional bytes indexdata = 2;859 865 /** 860 866 * <code>optional bytes indexdata = 2;</code> … … 866 872 com.google.protobuf.ByteString getIndexdata(); 867 873 868 // required int32 datasize = 3;869 874 /** 870 875 * <code>required int32 datasize = 3;</code> … … 880 885 */ 881 886 public static final class BlobHeader extends 882 com.google.protobuf.GeneratedMessageLite 883 implements BlobHeaderOrBuilder { 887 com.google.protobuf.GeneratedMessageLite implements 888 // @@protoc_insertion_point(message_implements:OSMPBF.BlobHeader) 889 BlobHeaderOrBuilder { 884 890 // Use BlobHeader.newBuilder() to construct. 885 891 private BlobHeader(com.google.protobuf.GeneratedMessageLite.Builder builder) { 886 892 super(builder); 887 888 } 889 private BlobHeader(boolean noInit) { }893 this.unknownFields = builder.getUnknownFields(); 894 } 895 private BlobHeader(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 890 896 891 897 private static final BlobHeader defaultInstance; … … 898 904 } 899 905 906 private final com.google.protobuf.ByteString unknownFields; 900 907 private BlobHeader( 901 908 com.google.protobuf.CodedInputStream input, … … 904 911 initFields(); 905 912 int mutable_bitField0_ = 0; 913 com.google.protobuf.ByteString.Output unknownFieldsOutput = 914 com.google.protobuf.ByteString.newOutput(); 915 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 916 com.google.protobuf.CodedOutputStream.newInstance( 917 unknownFieldsOutput); 906 918 try { 907 919 boolean done = false; … … 913 925 break; 914 926 default: { 915 if (!parseUnknownField(input, 927 if (!parseUnknownField(input, unknownFieldsCodedOutput, 916 928 extensionRegistry, tag)) { 917 929 done = true; … … 920 932 } 921 933 case 10: { 934 com.google.protobuf.ByteString bs = input.readBytes(); 922 935 bitField0_ |= 0x00000001; 923 type_ = input.readBytes();936 type_ = bs; 924 937 break; 925 938 } … … 942 955 e.getMessage()).setUnfinishedMessage(this); 943 956 } finally { 957 try { 958 unknownFieldsCodedOutput.flush(); 959 } catch (java.io.IOException e) { 960 // Should not happen 961 } finally { 962 unknownFields = unknownFieldsOutput.toByteString(); 963 } 944 964 makeExtensionsImmutable(); 945 965 } … … 961 981 962 982 private int bitField0_; 963 // required string type = 1;964 983 public static final int TYPE_FIELD_NUMBER = 1; 965 984 private java.lang.Object type_; … … 1004 1023 } 1005 1024 1006 // optional bytes indexdata = 2;1007 1025 public static final int INDEXDATA_FIELD_NUMBER = 2; 1008 1026 private com.google.protobuf.ByteString indexdata_; … … 1020 1038 } 1021 1039 1022 // required int32 datasize = 3;1023 1040 public static final int DATASIZE_FIELD_NUMBER = 3; 1024 1041 private int datasize_; … … 1044 1061 public final boolean isInitialized() { 1045 1062 byte isInitialized = memoizedIsInitialized; 1046 if (isInitialized != -1) return isInitialized == 1; 1063 if (isInitialized == 1) return true; 1064 if (isInitialized == 0) return false; 1047 1065 1048 1066 if (!hasType()) { … … 1070 1088 output.writeInt32(3, datasize_); 1071 1089 } 1090 output.writeRawBytes(unknownFields); 1072 1091 } 1073 1092 … … 1090 1109 .computeInt32Size(3, datasize_); 1091 1110 } 1111 size += unknownFields.size(); 1092 1112 memoizedSerializedSize = size; 1093 1113 return size; … … 1167 1187 com.google.protobuf.GeneratedMessageLite.Builder< 1168 1188 crosby.binary.Fileformat.BlobHeader, Builder> 1169 implements crosby.binary.Fileformat.BlobHeaderOrBuilder { 1189 implements 1190 // @@protoc_insertion_point(builder_implements:OSMPBF.BlobHeader) 1191 crosby.binary.Fileformat.BlobHeaderOrBuilder { 1170 1192 // Construct using crosby.binary.Fileformat.BlobHeader.newBuilder() 1171 1193 private Builder() { … … 1239 1261 setDatasize(other.getDatasize()); 1240 1262 } 1263 setUnknownFields( 1264 getUnknownFields().concat(other.unknownFields)); 1241 1265 return this; 1242 1266 } … … 1273 1297 private int bitField0_; 1274 1298 1275 // required string type = 1;1276 1299 private java.lang.Object type_ = ""; 1277 1300 /** … … 1287 1310 java.lang.Object ref = type_; 1288 1311 if (!(ref instanceof java.lang.String)) { 1289 java.lang.String s = ((com.google.protobuf.ByteString) ref) 1290 .toStringUtf8(); 1291 type_ = s; 1312 com.google.protobuf.ByteString bs = 1313 (com.google.protobuf.ByteString) ref; 1314 java.lang.String s = bs.toStringUtf8(); 1315 if (bs.isValidUtf8()) { 1316 type_ = s; 1317 } 1292 1318 return s; 1293 1319 } else { … … 1347 1373 } 1348 1374 1349 // optional bytes indexdata = 2;1350 1375 private com.google.protobuf.ByteString indexdata_ = com.google.protobuf.ByteString.EMPTY; 1351 1376 /** … … 1383 1408 } 1384 1409 1385 // required int32 datasize = 3;1386 1410 private int datasize_ ; 1387 1411 /** -
applications/editors/josm/plugins/pbf/gen/crosby/binary/Osmformat.java
r30490 r30658 1 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: src/crosby/binary/osmformat.proto2 // source: osmformat.proto 3 3 4 4 package crosby.binary; … … 9 9 com.google.protobuf.ExtensionRegistryLite registry) { 10 10 } 11 public interface HeaderBlockOrBuilder 12 extends com.google.protobuf.MessageLiteOrBuilder {13 14 // optional .OSMPBF.HeaderBBox bbox = 1; 11 public interface HeaderBlockOrBuilder extends 12 // @@protoc_insertion_point(interface_extends:OSMPBF.HeaderBlock) 13 com.google.protobuf.MessageLiteOrBuilder { 14 15 15 /** 16 16 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> … … 22 22 crosby.binary.Osmformat.HeaderBBox getBbox(); 23 23 24 // repeated string required_features = 4;25 24 /** 26 25 * <code>repeated string required_features = 4;</code> … … 30 29 * </pre> 31 30 */ 32 java.util.List<java.lang.String>33 getRequiredFeaturesList();31 com.google.protobuf.ProtocolStringList 32 getRequiredFeaturesList(); 34 33 /** 35 34 * <code>repeated string required_features = 4;</code> … … 58 57 getRequiredFeaturesBytes(int index); 59 58 60 // repeated string optional_features = 5;61 59 /** 62 60 * <code>repeated string optional_features = 5;</code> 63 61 */ 64 java.util.List<java.lang.String>65 getOptionalFeaturesList();62 com.google.protobuf.ProtocolStringList 63 getOptionalFeaturesList(); 66 64 /** 67 65 * <code>repeated string optional_features = 5;</code> … … 78 76 getOptionalFeaturesBytes(int index); 79 77 80 // optional string writingprogram = 16;81 78 /** 82 79 * <code>optional string writingprogram = 16;</code> … … 93 90 getWritingprogramBytes(); 94 91 95 // optional string source = 17;96 92 /** 97 93 * <code>optional string source = 17;</code> … … 120 116 getSourceBytes(); 121 117 122 // optional int64 osmosis_replication_timestamp = 32;123 118 /** 124 119 * <code>optional int64 osmosis_replication_timestamp = 32;</code> … … 142 137 long getOsmosisReplicationTimestamp(); 143 138 144 // optional int64 osmosis_replication_sequence_number = 33;145 139 /** 146 140 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> … … 160 154 long getOsmosisReplicationSequenceNumber(); 161 155 162 // optional string osmosis_replication_base_url = 34;163 156 /** 164 157 * <code>optional string osmosis_replication_base_url = 34;</code> … … 191 184 */ 192 185 public static final class HeaderBlock extends 193 com.google.protobuf.GeneratedMessageLite 194 implements HeaderBlockOrBuilder { 186 com.google.protobuf.GeneratedMessageLite implements 187 // @@protoc_insertion_point(message_implements:OSMPBF.HeaderBlock) 188 HeaderBlockOrBuilder { 195 189 // Use HeaderBlock.newBuilder() to construct. 196 190 private HeaderBlock(com.google.protobuf.GeneratedMessageLite.Builder builder) { 197 191 super(builder); 198 199 } 200 private HeaderBlock(boolean noInit) { }192 this.unknownFields = builder.getUnknownFields(); 193 } 194 private HeaderBlock(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 201 195 202 196 private static final HeaderBlock defaultInstance; … … 209 203 } 210 204 205 private final com.google.protobuf.ByteString unknownFields; 211 206 private HeaderBlock( 212 207 com.google.protobuf.CodedInputStream input, … … 215 210 initFields(); 216 211 int mutable_bitField0_ = 0; 212 com.google.protobuf.ByteString.Output unknownFieldsOutput = 213 com.google.protobuf.ByteString.newOutput(); 214 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 215 com.google.protobuf.CodedOutputStream.newInstance( 216 unknownFieldsOutput); 217 217 try { 218 218 boolean done = false; … … 224 224 break; 225 225 default: { 226 if (!parseUnknownField(input, 226 if (!parseUnknownField(input, unknownFieldsCodedOutput, 227 227 extensionRegistry, tag)) { 228 228 done = true; … … 244 244 } 245 245 case 34: { 246 com.google.protobuf.ByteString bs = input.readBytes(); 246 247 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 247 248 requiredFeatures_ = new com.google.protobuf.LazyStringArrayList(); 248 249 mutable_bitField0_ |= 0x00000002; 249 250 } 250 requiredFeatures_.add( input.readBytes());251 requiredFeatures_.add(bs); 251 252 break; 252 253 } 253 254 case 42: { 255 com.google.protobuf.ByteString bs = input.readBytes(); 254 256 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 255 257 optionalFeatures_ = new com.google.protobuf.LazyStringArrayList(); 256 258 mutable_bitField0_ |= 0x00000004; 257 259 } 258 optionalFeatures_.add( input.readBytes());260 optionalFeatures_.add(bs); 259 261 break; 260 262 } 261 263 case 130: { 264 com.google.protobuf.ByteString bs = input.readBytes(); 262 265 bitField0_ |= 0x00000002; 263 writingprogram_ = input.readBytes();266 writingprogram_ = bs; 264 267 break; 265 268 } 266 269 case 138: { 270 com.google.protobuf.ByteString bs = input.readBytes(); 267 271 bitField0_ |= 0x00000004; 268 source_ = input.readBytes();272 source_ = bs; 269 273 break; 270 274 } … … 280 284 } 281 285 case 274: { 286 com.google.protobuf.ByteString bs = input.readBytes(); 282 287 bitField0_ |= 0x00000020; 283 osmosisReplicationBaseUrl_ = input.readBytes();288 osmosisReplicationBaseUrl_ = bs; 284 289 break; 285 290 } … … 293 298 } finally { 294 299 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 295 requiredFeatures_ = new com.google.protobuf.UnmodifiableLazyStringList(requiredFeatures_);300 requiredFeatures_ = requiredFeatures_.getUnmodifiableView(); 296 301 } 297 302 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 298 optionalFeatures_ = new com.google.protobuf.UnmodifiableLazyStringList(optionalFeatures_); 303 optionalFeatures_ = optionalFeatures_.getUnmodifiableView(); 304 } 305 try { 306 unknownFieldsCodedOutput.flush(); 307 } catch (java.io.IOException e) { 308 // Should not happen 309 } finally { 310 unknownFields = unknownFieldsOutput.toByteString(); 299 311 } 300 312 makeExtensionsImmutable(); … … 317 329 318 330 private int bitField0_; 319 // optional .OSMPBF.HeaderBBox bbox = 1;320 331 public static final int BBOX_FIELD_NUMBER = 1; 321 332 private crosby.binary.Osmformat.HeaderBBox bbox_; … … 333 344 } 334 345 335 // repeated string required_features = 4;336 346 public static final int REQUIRED_FEATURES_FIELD_NUMBER = 4; 337 347 private com.google.protobuf.LazyStringList requiredFeatures_; … … 343 353 * </pre> 344 354 */ 345 public java.util.List<java.lang.String>355 public com.google.protobuf.ProtocolStringList 346 356 getRequiredFeaturesList() { 347 357 return requiredFeatures_; … … 379 389 } 380 390 381 // repeated string optional_features = 5;382 391 public static final int OPTIONAL_FEATURES_FIELD_NUMBER = 5; 383 392 private com.google.protobuf.LazyStringList optionalFeatures_; … … 385 394 * <code>repeated string optional_features = 5;</code> 386 395 */ 387 public java.util.List<java.lang.String>396 public com.google.protobuf.ProtocolStringList 388 397 getOptionalFeaturesList() { 389 398 return optionalFeatures_; … … 409 418 } 410 419 411 // optional string writingprogram = 16;412 420 public static final int WRITINGPROGRAM_FIELD_NUMBER = 16; 413 421 private java.lang.Object writingprogram_; … … 452 460 } 453 461 454 // optional string source = 17;455 462 public static final int SOURCE_FIELD_NUMBER = 17; 456 463 private java.lang.Object source_; … … 507 514 } 508 515 509 // optional int64 osmosis_replication_timestamp = 32;510 516 public static final int OSMOSIS_REPLICATION_TIMESTAMP_FIELD_NUMBER = 32; 511 517 private long osmosisReplicationTimestamp_; … … 535 541 } 536 542 537 // optional int64 osmosis_replication_sequence_number = 33;538 543 public static final int OSMOSIS_REPLICATION_SEQUENCE_NUMBER_FIELD_NUMBER = 33; 539 544 private long osmosisReplicationSequenceNumber_; … … 559 564 } 560 565 561 // optional string osmosis_replication_base_url = 34;562 566 public static final int OSMOSIS_REPLICATION_BASE_URL_FIELD_NUMBER = 34; 563 567 private java.lang.Object osmosisReplicationBaseUrl_; … … 627 631 public final boolean isInitialized() { 628 632 byte isInitialized = memoizedIsInitialized; 629 if (isInitialized != -1) return isInitialized == 1; 633 if (isInitialized == 1) return true; 634 if (isInitialized == 0) return false; 630 635 631 636 if (hasBbox()) { … … 666 671 output.writeBytes(34, getOsmosisReplicationBaseUrlBytes()); 667 672 } 673 output.writeRawBytes(unknownFields); 668 674 } 669 675 … … 716 722 .computeBytesSize(34, getOsmosisReplicationBaseUrlBytes()); 717 723 } 724 size += unknownFields.size(); 718 725 memoizedSerializedSize = size; 719 726 return size; … … 793 800 com.google.protobuf.GeneratedMessageLite.Builder< 794 801 crosby.binary.Osmformat.HeaderBlock, Builder> 795 implements crosby.binary.Osmformat.HeaderBlockOrBuilder { 802 implements 803 // @@protoc_insertion_point(builder_implements:OSMPBF.HeaderBlock) 804 crosby.binary.Osmformat.HeaderBlockOrBuilder { 796 805 // Construct using crosby.binary.Osmformat.HeaderBlock.newBuilder() 797 806 private Builder() { … … 851 860 result.bbox_ = bbox_; 852 861 if (((bitField0_ & 0x00000002) == 0x00000002)) { 853 requiredFeatures_ = new com.google.protobuf.UnmodifiableLazyStringList( 854 requiredFeatures_); 862 requiredFeatures_ = requiredFeatures_.getUnmodifiableView(); 855 863 bitField0_ = (bitField0_ & ~0x00000002); 856 864 } 857 865 result.requiredFeatures_ = requiredFeatures_; 858 866 if (((bitField0_ & 0x00000004) == 0x00000004)) { 859 optionalFeatures_ = new com.google.protobuf.UnmodifiableLazyStringList( 860 optionalFeatures_); 867 optionalFeatures_ = optionalFeatures_.getUnmodifiableView(); 861 868 bitField0_ = (bitField0_ & ~0x00000004); 862 869 } … … 932 939 933 940 } 941 setUnknownFields( 942 getUnknownFields().concat(other.unknownFields)); 934 943 return this; 935 944 } … … 964 973 private int bitField0_; 965 974 966 // optional .OSMPBF.HeaderBBox bbox = 1;967 975 private crosby.binary.Osmformat.HeaderBBox bbox_ = crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); 968 976 /** … … 1025 1033 } 1026 1034 1027 // repeated string required_features = 4;1028 1035 private com.google.protobuf.LazyStringList requiredFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1029 1036 private void ensureRequiredFeaturesIsMutable() { … … 1040 1047 * </pre> 1041 1048 */ 1042 public java.util.List<java.lang.String>1049 public com.google.protobuf.ProtocolStringList 1043 1050 getRequiredFeaturesList() { 1044 return java.util.Collections.unmodifiableList(requiredFeatures_);1051 return requiredFeatures_.getUnmodifiableView(); 1045 1052 } 1046 1053 /** … … 1119 1126 java.lang.Iterable<java.lang.String> values) { 1120 1127 ensureRequiredFeaturesIsMutable(); 1121 super.addAll(values, requiredFeatures_); 1128 com.google.protobuf.AbstractMessageLite.Builder.addAll( 1129 values, requiredFeatures_); 1122 1130 1123 1131 return this; … … 1154 1162 } 1155 1163 1156 // repeated string optional_features = 5;1157 1164 private com.google.protobuf.LazyStringList optionalFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1158 1165 private void ensureOptionalFeaturesIsMutable() { … … 1165 1172 * <code>repeated string optional_features = 5;</code> 1166 1173 */ 1167 public java.util.List<java.lang.String>1174 public com.google.protobuf.ProtocolStringList 1168 1175 getOptionalFeaturesList() { 1169 return java.util.Collections.unmodifiableList(optionalFeatures_);1176 return optionalFeatures_.getUnmodifiableView(); 1170 1177 } 1171 1178 /** … … 1220 1227 java.lang.Iterable<java.lang.String> values) { 1221 1228 ensureOptionalFeaturesIsMutable(); 1222 super.addAll(values, optionalFeatures_); 1229 com.google.protobuf.AbstractMessageLite.Builder.addAll( 1230 values, optionalFeatures_); 1223 1231 1224 1232 return this; … … 1247 1255 } 1248 1256 1249 // optional string writingprogram = 16;1250 1257 private java.lang.Object writingprogram_ = ""; 1251 1258 /** … … 1261 1268 java.lang.Object ref = writingprogram_; 1262 1269 if (!(ref instanceof java.lang.String)) { 1263 java.lang.String s = ((com.google.protobuf.ByteString) ref) 1264 .toStringUtf8(); 1265 writingprogram_ = s; 1270 com.google.protobuf.ByteString bs = 1271 (com.google.protobuf.ByteString) ref; 1272 java.lang.String s = bs.toStringUtf8(); 1273 if (bs.isValidUtf8()) { 1274 writingprogram_ = s; 1275 } 1266 1276 return s; 1267 1277 } else { … … 1321 1331 } 1322 1332 1323 // optional string source = 17;1324 1333 private java.lang.Object source_ = ""; 1325 1334 /** … … 1343 1352 java.lang.Object ref = source_; 1344 1353 if (!(ref instanceof java.lang.String)) { 1345 java.lang.String s = ((com.google.protobuf.ByteString) ref) 1346 .toStringUtf8(); 1347 source_ = s; 1354 com.google.protobuf.ByteString bs = 1355 (com.google.protobuf.ByteString) ref; 1356 java.lang.String s = bs.toStringUtf8(); 1357 if (bs.isValidUtf8()) { 1358 source_ = s; 1359 } 1348 1360 return s; 1349 1361 } else { … … 1419 1431 } 1420 1432 1421 // optional int64 osmosis_replication_timestamp = 32;1422 1433 private long osmosisReplicationTimestamp_ ; 1423 1434 /** … … 1476 1487 } 1477 1488 1478 // optional int64 osmosis_replication_sequence_number = 33;1479 1489 private long osmosisReplicationSequenceNumber_ ; 1480 1490 /** … … 1525 1535 } 1526 1536 1527 // optional string osmosis_replication_base_url = 34;1528 1537 private java.lang.Object osmosisReplicationBaseUrl_ = ""; 1529 1538 /** … … 1547 1556 java.lang.Object ref = osmosisReplicationBaseUrl_; 1548 1557 if (!(ref instanceof java.lang.String)) { 1549 java.lang.String s = ((com.google.protobuf.ByteString) ref) 1550 .toStringUtf8(); 1551 osmosisReplicationBaseUrl_ = s; 1558 com.google.protobuf.ByteString bs = 1559 (com.google.protobuf.ByteString) ref; 1560 java.lang.String s = bs.toStringUtf8(); 1561 if (bs.isValidUtf8()) { 1562 osmosisReplicationBaseUrl_ = s; 1563 } 1552 1564 return s; 1553 1565 } else { … … 1634 1646 } 1635 1647 1636 public interface HeaderBBoxOrBuilder 1637 extends com.google.protobuf.MessageLiteOrBuilder {1638 1639 // required sint64 left = 1; 1648 public interface HeaderBBoxOrBuilder extends 1649 // @@protoc_insertion_point(interface_extends:OSMPBF.HeaderBBox) 1650 com.google.protobuf.MessageLiteOrBuilder { 1651 1640 1652 /** 1641 1653 * <code>required sint64 left = 1;</code> … … 1647 1659 long getLeft(); 1648 1660 1649 // required sint64 right = 2;1650 1661 /** 1651 1662 * <code>required sint64 right = 2;</code> … … 1657 1668 long getRight(); 1658 1669 1659 // required sint64 top = 3;1660 1670 /** 1661 1671 * <code>required sint64 top = 3;</code> … … 1667 1677 long getTop(); 1668 1678 1669 // required sint64 bottom = 4;1670 1679 /** 1671 1680 * <code>required sint64 bottom = 4;</code> … … 1681 1690 */ 1682 1691 public static final class HeaderBBox extends 1683 com.google.protobuf.GeneratedMessageLite 1684 implements HeaderBBoxOrBuilder { 1692 com.google.protobuf.GeneratedMessageLite implements 1693 // @@protoc_insertion_point(message_implements:OSMPBF.HeaderBBox) 1694 HeaderBBoxOrBuilder { 1685 1695 // Use HeaderBBox.newBuilder() to construct. 1686 1696 private HeaderBBox(com.google.protobuf.GeneratedMessageLite.Builder builder) { 1687 1697 super(builder); 1688 1689 } 1690 private HeaderBBox(boolean noInit) { }1698 this.unknownFields = builder.getUnknownFields(); 1699 } 1700 private HeaderBBox(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 1691 1701 1692 1702 private static final HeaderBBox defaultInstance; … … 1699 1709 } 1700 1710 1711 private final com.google.protobuf.ByteString unknownFields; 1701 1712 private HeaderBBox( 1702 1713 com.google.protobuf.CodedInputStream input, … … 1705 1716 initFields(); 1706 1717 int mutable_bitField0_ = 0; 1718 com.google.protobuf.ByteString.Output unknownFieldsOutput = 1719 com.google.protobuf.ByteString.newOutput(); 1720 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 1721 com.google.protobuf.CodedOutputStream.newInstance( 1722 unknownFieldsOutput); 1707 1723 try { 1708 1724 boolean done = false; … … 1714 1730 break; 1715 1731 default: { 1716 if (!parseUnknownField(input, 1732 if (!parseUnknownField(input, unknownFieldsCodedOutput, 1717 1733 extensionRegistry, tag)) { 1718 1734 done = true; … … 1748 1764 e.getMessage()).setUnfinishedMessage(this); 1749 1765 } finally { 1766 try { 1767 unknownFieldsCodedOutput.flush(); 1768 } catch (java.io.IOException e) { 1769 // Should not happen 1770 } finally { 1771 unknownFields = unknownFieldsOutput.toByteString(); 1772 } 1750 1773 makeExtensionsImmutable(); 1751 1774 } … … 1767 1790 1768 1791 private int bitField0_; 1769 // required sint64 left = 1;1770 1792 public static final int LEFT_FIELD_NUMBER = 1; 1771 1793 private long left_; … … 1783 1805 } 1784 1806 1785 // required sint64 right = 2;1786 1807 public static final int RIGHT_FIELD_NUMBER = 2; 1787 1808 private long right_; … … 1799 1820 } 1800 1821 1801 // required sint64 top = 3;1802 1822 public static final int TOP_FIELD_NUMBER = 3; 1803 1823 private long top_; … … 1815 1835 } 1816 1836 1817 // required sint64 bottom = 4;1818 1837 public static final int BOTTOM_FIELD_NUMBER = 4; 1819 1838 private long bottom_; … … 1840 1859 public final boolean isInitialized() { 1841 1860 byte isInitialized = memoizedIsInitialized; 1842 if (isInitialized != -1) return isInitialized == 1; 1861 if (isInitialized == 1) return true; 1862 if (isInitialized == 0) return false; 1843 1863 1844 1864 if (!hasLeft()) { … … 1877 1897 output.writeSInt64(4, bottom_); 1878 1898 } 1899 output.writeRawBytes(unknownFields); 1879 1900 } 1880 1901 … … 1901 1922 .computeSInt64Size(4, bottom_); 1902 1923 } 1924 size += unknownFields.size(); 1903 1925 memoizedSerializedSize = size; 1904 1926 return size; … … 1978 2000 com.google.protobuf.GeneratedMessageLite.Builder< 1979 2001 crosby.binary.Osmformat.HeaderBBox, Builder> 1980 implements crosby.binary.Osmformat.HeaderBBoxOrBuilder { 2002 implements 2003 // @@protoc_insertion_point(builder_implements:OSMPBF.HeaderBBox) 2004 crosby.binary.Osmformat.HeaderBBoxOrBuilder { 1981 2005 // Construct using crosby.binary.Osmformat.HeaderBBox.newBuilder() 1982 2006 private Builder() { … … 2057 2081 setBottom(other.getBottom()); 2058 2082 } 2083 setUnknownFields( 2084 getUnknownFields().concat(other.unknownFields)); 2059 2085 return this; 2060 2086 } … … 2099 2125 private int bitField0_; 2100 2126 2101 // required sint64 left = 1;2102 2127 private long left_ ; 2103 2128 /** … … 2132 2157 } 2133 2158 2134 // required sint64 right = 2;2135 2159 private long right_ ; 2136 2160 /** … … 2165 2189 } 2166 2190 2167 // required sint64 top = 3;2168 2191 private long top_ ; 2169 2192 /** … … 2198 2221 } 2199 2222 2200 // required sint64 bottom = 4;2201 2223 private long bottom_ ; 2202 2224 /** … … 2242 2264 } 2243 2265 2244 public interface PrimitiveBlockOrBuilder 2245 extends com.google.protobuf.MessageLiteOrBuilder {2246 2247 // required .OSMPBF.StringTable stringtable = 1; 2266 public interface PrimitiveBlockOrBuilder extends 2267 // @@protoc_insertion_point(interface_extends:OSMPBF.PrimitiveBlock) 2268 com.google.protobuf.MessageLiteOrBuilder { 2269 2248 2270 /** 2249 2271 * <code>required .OSMPBF.StringTable stringtable = 1;</code> … … 2255 2277 crosby.binary.Osmformat.StringTable getStringtable(); 2256 2278 2257 // repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;2258 2279 /** 2259 2280 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> … … 2270 2291 int getPrimitivegroupCount(); 2271 2292 2272 // optional int32 granularity = 17 [default = 100];2273 2293 /** 2274 2294 * <code>optional int32 granularity = 17 [default = 100];</code> … … 2288 2308 int getGranularity(); 2289 2309 2290 // optional int64 lat_offset = 19 [default = 0];2291 2310 /** 2292 2311 * <code>optional int64 lat_offset = 19 [default = 0];</code> … … 2306 2325 long getLatOffset(); 2307 2326 2308 // optional int64 lon_offset = 20 [default = 0];2309 2327 /** 2310 2328 * <code>optional int64 lon_offset = 20 [default = 0];</code> … … 2316 2334 long getLonOffset(); 2317 2335 2318 // optional int32 date_granularity = 18 [default = 1000];2319 2336 /** 2320 2337 * <code>optional int32 date_granularity = 18 [default = 1000];</code> … … 2338 2355 */ 2339 2356 public static final class PrimitiveBlock extends 2340 com.google.protobuf.GeneratedMessageLite 2341 implements PrimitiveBlockOrBuilder { 2357 com.google.protobuf.GeneratedMessageLite implements 2358 // @@protoc_insertion_point(message_implements:OSMPBF.PrimitiveBlock) 2359 PrimitiveBlockOrBuilder { 2342 2360 // Use PrimitiveBlock.newBuilder() to construct. 2343 2361 private PrimitiveBlock(com.google.protobuf.GeneratedMessageLite.Builder builder) { 2344 2362 super(builder); 2345 2346 } 2347 private PrimitiveBlock(boolean noInit) { }2363 this.unknownFields = builder.getUnknownFields(); 2364 } 2365 private PrimitiveBlock(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 2348 2366 2349 2367 private static final PrimitiveBlock defaultInstance; … … 2356 2374 } 2357 2375 2376 private final com.google.protobuf.ByteString unknownFields; 2358 2377 private PrimitiveBlock( 2359 2378 com.google.protobuf.CodedInputStream input, … … 2362 2381 initFields(); 2363 2382 int mutable_bitField0_ = 0; 2383 com.google.protobuf.ByteString.Output unknownFieldsOutput = 2384 com.google.protobuf.ByteString.newOutput(); 2385 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 2386 com.google.protobuf.CodedOutputStream.newInstance( 2387 unknownFieldsOutput); 2364 2388 try { 2365 2389 boolean done = false; … … 2371 2395 break; 2372 2396 default: { 2373 if (!parseUnknownField(input, 2397 if (!parseUnknownField(input, unknownFieldsCodedOutput, 2374 2398 extensionRegistry, tag)) { 2375 2399 done = true; … … 2429 2453 primitivegroup_ = java.util.Collections.unmodifiableList(primitivegroup_); 2430 2454 } 2455 try { 2456 unknownFieldsCodedOutput.flush(); 2457 } catch (java.io.IOException e) { 2458 // Should not happen 2459 } finally { 2460 unknownFields = unknownFieldsOutput.toByteString(); 2461 } 2431 2462 makeExtensionsImmutable(); 2432 2463 } … … 2448 2479 2449 2480 private int bitField0_; 2450 // required .OSMPBF.StringTable stringtable = 1;2451 2481 public static final int STRINGTABLE_FIELD_NUMBER = 1; 2452 2482 private crosby.binary.Osmformat.StringTable stringtable_; … … 2464 2494 } 2465 2495 2466 // repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;2467 2496 public static final int PRIMITIVEGROUP_FIELD_NUMBER = 2; 2468 2497 private java.util.List<crosby.binary.Osmformat.PrimitiveGroup> primitivegroup_; … … 2500 2529 } 2501 2530 2502 // optional int32 granularity = 17 [default = 100];2503 2531 public static final int GRANULARITY_FIELD_NUMBER = 17; 2504 2532 private int granularity_; … … 2524 2552 } 2525 2553 2526 // optional int64 lat_offset = 19 [default = 0];2527 2554 public static final int LAT_OFFSET_FIELD_NUMBER = 19; 2528 2555 private long latOffset_; … … 2548 2575 } 2549 2576 2550 // optional int64 lon_offset = 20 [default = 0];2551 2577 public static final int LON_OFFSET_FIELD_NUMBER = 20; 2552 2578 private long lonOffset_; … … 2564 2590 } 2565 2591 2566 // optional int32 date_granularity = 18 [default = 1000];2567 2592 public static final int DATE_GRANULARITY_FIELD_NUMBER = 18; 2568 2593 private int dateGranularity_; … … 2599 2624 public final boolean isInitialized() { 2600 2625 byte isInitialized = memoizedIsInitialized; 2601 if (isInitialized != -1) return isInitialized == 1; 2626 if (isInitialized == 1) return true; 2627 if (isInitialized == 0) return false; 2602 2628 2603 2629 if (!hasStringtable()) { … … 2636 2662 output.writeInt64(20, lonOffset_); 2637 2663 } 2664 output.writeRawBytes(unknownFields); 2638 2665 } 2639 2666 … … 2668 2695 .computeInt64Size(20, lonOffset_); 2669 2696 } 2697 size += unknownFields.size(); 2670 2698 memoizedSerializedSize = size; 2671 2699 return size; … … 2745 2773 com.google.protobuf.GeneratedMessageLite.Builder< 2746 2774 crosby.binary.Osmformat.PrimitiveBlock, Builder> 2747 implements crosby.binary.Osmformat.PrimitiveBlockOrBuilder { 2775 implements 2776 // @@protoc_insertion_point(builder_implements:OSMPBF.PrimitiveBlock) 2777 crosby.binary.Osmformat.PrimitiveBlockOrBuilder { 2748 2778 // Construct using crosby.binary.Osmformat.PrimitiveBlock.newBuilder() 2749 2779 private Builder() { … … 2850 2880 setDateGranularity(other.getDateGranularity()); 2851 2881 } 2882 setUnknownFields( 2883 getUnknownFields().concat(other.unknownFields)); 2852 2884 return this; 2853 2885 } … … 2886 2918 private int bitField0_; 2887 2919 2888 // required .OSMPBF.StringTable stringtable = 1;2889 2920 private crosby.binary.Osmformat.StringTable stringtable_ = crosby.binary.Osmformat.StringTable.getDefaultInstance(); 2890 2921 /** … … 2947 2978 } 2948 2979 2949 // repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;2950 2980 private java.util.List<crosby.binary.Osmformat.PrimitiveGroup> primitivegroup_ = 2951 2981 java.util.Collections.emptyList(); … … 3049 3079 java.lang.Iterable<? extends crosby.binary.Osmformat.PrimitiveGroup> values) { 3050 3080 ensurePrimitivegroupIsMutable(); 3051 super.addAll(values, primitivegroup_); 3081 com.google.protobuf.AbstractMessageLite.Builder.addAll( 3082 values, primitivegroup_); 3052 3083 3053 3084 return this; … … 3072 3103 } 3073 3104 3074 // optional int32 granularity = 17 [default = 100];3075 3105 private int granularity_ = 100; 3076 3106 /** … … 3121 3151 } 3122 3152 3123 // optional int64 lat_offset = 19 [default = 0];3124 3153 private long latOffset_ ; 3125 3154 /** … … 3170 3199 } 3171 3200 3172 // optional int64 lon_offset = 20 [default = 0];3173 3201 private long lonOffset_ ; 3174 3202 /** … … 3203 3231 } 3204 3232 3205 // optional int32 date_granularity = 18 [default = 1000];3206 3233 private int dateGranularity_ = 1000; 3207 3234 /** … … 3263 3290 } 3264 3291 3265 public interface PrimitiveGroupOrBuilder 3266 extends com.google.protobuf.MessageLiteOrBuilder {3267 3268 // repeated .OSMPBF.Node nodes = 1; 3292 public interface PrimitiveGroupOrBuilder extends 3293 // @@protoc_insertion_point(interface_extends:OSMPBF.PrimitiveGroup) 3294 com.google.protobuf.MessageLiteOrBuilder { 3295 3269 3296 /** 3270 3297 * <code>repeated .OSMPBF.Node nodes = 1;</code> … … 3281 3308 int getNodesCount(); 3282 3309 3283 // optional .OSMPBF.DenseNodes dense = 2;3284 3310 /** 3285 3311 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> … … 3291 3317 crosby.binary.Osmformat.DenseNodes getDense(); 3292 3318 3293 // repeated .OSMPBF.Way ways = 3;3294 3319 /** 3295 3320 * <code>repeated .OSMPBF.Way ways = 3;</code> … … 3306 3331 int getWaysCount(); 3307 3332 3308 // repeated .OSMPBF.Relation relations = 4;3309 3333 /** 3310 3334 * <code>repeated .OSMPBF.Relation relations = 4;</code> … … 3321 3345 int getRelationsCount(); 3322 3346 3323 // repeated .OSMPBF.ChangeSet changesets = 5;3324 3347 /** 3325 3348 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> … … 3344 3367 */ 3345 3368 public static final class PrimitiveGroup extends 3346 com.google.protobuf.GeneratedMessageLite 3347 implements PrimitiveGroupOrBuilder { 3369 com.google.protobuf.GeneratedMessageLite implements 3370 // @@protoc_insertion_point(message_implements:OSMPBF.PrimitiveGroup) 3371 PrimitiveGroupOrBuilder { 3348 3372 // Use PrimitiveGroup.newBuilder() to construct. 3349 3373 private PrimitiveGroup(com.google.protobuf.GeneratedMessageLite.Builder builder) { 3350 3374 super(builder); 3351 3352 } 3353 private PrimitiveGroup(boolean noInit) { }3375 this.unknownFields = builder.getUnknownFields(); 3376 } 3377 private PrimitiveGroup(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 3354 3378 3355 3379 private static final PrimitiveGroup defaultInstance; … … 3362 3386 } 3363 3387 3388 private final com.google.protobuf.ByteString unknownFields; 3364 3389 private PrimitiveGroup( 3365 3390 com.google.protobuf.CodedInputStream input, … … 3368 3393 initFields(); 3369 3394 int mutable_bitField0_ = 0; 3395 com.google.protobuf.ByteString.Output unknownFieldsOutput = 3396 com.google.protobuf.ByteString.newOutput(); 3397 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 3398 com.google.protobuf.CodedOutputStream.newInstance( 3399 unknownFieldsOutput); 3370 3400 try { 3371 3401 boolean done = false; … … 3377 3407 break; 3378 3408 default: { 3379 if (!parseUnknownField(input, 3409 if (!parseUnknownField(input, unknownFieldsCodedOutput, 3380 3410 extensionRegistry, tag)) { 3381 3411 done = true; … … 3448 3478 changesets_ = java.util.Collections.unmodifiableList(changesets_); 3449 3479 } 3480 try { 3481 unknownFieldsCodedOutput.flush(); 3482 } catch (java.io.IOException e) { 3483 // Should not happen 3484 } finally { 3485 unknownFields = unknownFieldsOutput.toByteString(); 3486 } 3450 3487 makeExtensionsImmutable(); 3451 3488 } … … 3467 3504 3468 3505 private int bitField0_; 3469 // repeated .OSMPBF.Node nodes = 1;3470 3506 public static final int NODES_FIELD_NUMBER = 1; 3471 3507 private java.util.List<crosby.binary.Osmformat.Node> nodes_; … … 3503 3539 } 3504 3540 3505 // optional .OSMPBF.DenseNodes dense = 2;3506 3541 public static final int DENSE_FIELD_NUMBER = 2; 3507 3542 private crosby.binary.Osmformat.DenseNodes dense_; … … 3519 3554 } 3520 3555 3521 // repeated .OSMPBF.Way ways = 3;3522 3556 public static final int WAYS_FIELD_NUMBER = 3; 3523 3557 private java.util.List<crosby.binary.Osmformat.Way> ways_; … … 3555 3589 } 3556 3590 3557 // repeated .OSMPBF.Relation relations = 4;3558 3591 public static final int RELATIONS_FIELD_NUMBER = 4; 3559 3592 private java.util.List<crosby.binary.Osmformat.Relation> relations_; … … 3591 3624 } 3592 3625 3593 // repeated .OSMPBF.ChangeSet changesets = 5;3594 3626 public static final int CHANGESETS_FIELD_NUMBER = 5; 3595 3627 private java.util.List<crosby.binary.Osmformat.ChangeSet> changesets_; … … 3637 3669 public final boolean isInitialized() { 3638 3670 byte isInitialized = memoizedIsInitialized; 3639 if (isInitialized != -1) return isInitialized == 1; 3671 if (isInitialized == 1) return true; 3672 if (isInitialized == 0) return false; 3640 3673 3641 3674 for (int i = 0; i < getNodesCount(); i++) { … … 3685 3718 output.writeMessage(5, changesets_.get(i)); 3686 3719 } 3720 output.writeRawBytes(unknownFields); 3687 3721 } 3688 3722 … … 3713 3747 .computeMessageSize(5, changesets_.get(i)); 3714 3748 } 3749 size += unknownFields.size(); 3715 3750 memoizedSerializedSize = size; 3716 3751 return size; … … 3794 3829 com.google.protobuf.GeneratedMessageLite.Builder< 3795 3830 crosby.binary.Osmformat.PrimitiveGroup, Builder> 3796 implements crosby.binary.Osmformat.PrimitiveGroupOrBuilder { 3831 implements 3832 // @@protoc_insertion_point(builder_implements:OSMPBF.PrimitiveGroup) 3833 crosby.binary.Osmformat.PrimitiveGroupOrBuilder { 3797 3834 // Construct using crosby.binary.Osmformat.PrimitiveGroup.newBuilder() 3798 3835 private Builder() { … … 3914 3951 3915 3952 } 3953 setUnknownFields( 3954 getUnknownFields().concat(other.unknownFields)); 3916 3955 return this; 3917 3956 } … … 3964 4003 private int bitField0_; 3965 4004 3966 // repeated .OSMPBF.Node nodes = 1;3967 4005 private java.util.List<crosby.binary.Osmformat.Node> nodes_ = 3968 4006 java.util.Collections.emptyList(); … … 4066 4104 java.lang.Iterable<? extends crosby.binary.Osmformat.Node> values) { 4067 4105 ensureNodesIsMutable(); 4068 super.addAll(values, nodes_); 4106 com.google.protobuf.AbstractMessageLite.Builder.addAll( 4107 values, nodes_); 4069 4108 4070 4109 return this; … … 4089 4128 } 4090 4129 4091 // optional .OSMPBF.DenseNodes dense = 2;4092 4130 private crosby.binary.Osmformat.DenseNodes dense_ = crosby.binary.Osmformat.DenseNodes.getDefaultInstance(); 4093 4131 /** … … 4150 4188 } 4151 4189 4152 // repeated .OSMPBF.Way ways = 3;4153 4190 private java.util.List<crosby.binary.Osmformat.Way> ways_ = 4154 4191 java.util.Collections.emptyList(); … … 4252 4289 java.lang.Iterable<? extends crosby.binary.Osmformat.Way> values) { 4253 4290 ensureWaysIsMutable(); 4254 super.addAll(values, ways_); 4291 com.google.protobuf.AbstractMessageLite.Builder.addAll( 4292 values, ways_); 4255 4293 4256 4294 return this; … … 4275 4313 } 4276 4314 4277 // repeated .OSMPBF.Relation relations = 4;4278 4315 private java.util.List<crosby.binary.Osmformat.Relation> relations_ = 4279 4316 java.util.Collections.emptyList(); … … 4377 4414 java.lang.Iterable<? extends crosby.binary.Osmformat.Relation> values) { 4378 4415 ensureRelationsIsMutable(); 4379 super.addAll(values, relations_); 4416 com.google.protobuf.AbstractMessageLite.Builder.addAll( 4417 values, relations_); 4380 4418 4381 4419 return this; … … 4400 4438 } 4401 4439 4402 // repeated .OSMPBF.ChangeSet changesets = 5;4403 4440 private java.util.List<crosby.binary.Osmformat.ChangeSet> changesets_ = 4404 4441 java.util.Collections.emptyList(); … … 4502 4539 java.lang.Iterable<? extends crosby.binary.Osmformat.ChangeSet> values) { 4503 4540 ensureChangesetsIsMutable(); 4504 super.addAll(values, changesets_); 4541 com.google.protobuf.AbstractMessageLite.Builder.addAll( 4542 values, changesets_); 4505 4543 4506 4544 return this; … … 4536 4574 } 4537 4575 4538 public interface StringTableOrBuilder 4539 extends com.google.protobuf.MessageLiteOrBuilder {4540 4541 // repeated bytes s = 1; 4576 public interface StringTableOrBuilder extends 4577 // @@protoc_insertion_point(interface_extends:OSMPBF.StringTable) 4578 com.google.protobuf.MessageLiteOrBuilder { 4579 4542 4580 /** 4543 4581 * <code>repeated bytes s = 1;</code> … … 4558 4596 * <pre> 4559 4597 ** String table, contains the common strings in each block. 4560 *4561 4598 *Note that we reserve index '0' as a delimiter, so the entry at that 4562 4599 *index in the table is ALWAYS blank and unused. … … 4564 4601 */ 4565 4602 public static final class StringTable extends 4566 com.google.protobuf.GeneratedMessageLite 4567 implements StringTableOrBuilder { 4603 com.google.protobuf.GeneratedMessageLite implements 4604 // @@protoc_insertion_point(message_implements:OSMPBF.StringTable) 4605 StringTableOrBuilder { 4568 4606 // Use StringTable.newBuilder() to construct. 4569 4607 private StringTable(com.google.protobuf.GeneratedMessageLite.Builder builder) { 4570 4608 super(builder); 4571 4572 } 4573 private StringTable(boolean noInit) { }4609 this.unknownFields = builder.getUnknownFields(); 4610 } 4611 private StringTable(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 4574 4612 4575 4613 private static final StringTable defaultInstance; … … 4582 4620 } 4583 4621 4622 private final com.google.protobuf.ByteString unknownFields; 4584 4623 private StringTable( 4585 4624 com.google.protobuf.CodedInputStream input, … … 4588 4627 initFields(); 4589 4628 int mutable_bitField0_ = 0; 4629 com.google.protobuf.ByteString.Output unknownFieldsOutput = 4630 com.google.protobuf.ByteString.newOutput(); 4631 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 4632 com.google.protobuf.CodedOutputStream.newInstance( 4633 unknownFieldsOutput); 4590 4634 try { 4591 4635 boolean done = false; … … 4597 4641 break; 4598 4642 default: { 4599 if (!parseUnknownField(input, 4643 if (!parseUnknownField(input, unknownFieldsCodedOutput, 4600 4644 extensionRegistry, tag)) { 4601 4645 done = true; … … 4622 4666 s_ = java.util.Collections.unmodifiableList(s_); 4623 4667 } 4668 try { 4669 unknownFieldsCodedOutput.flush(); 4670 } catch (java.io.IOException e) { 4671 // Should not happen 4672 } finally { 4673 unknownFields = unknownFieldsOutput.toByteString(); 4674 } 4624 4675 makeExtensionsImmutable(); 4625 4676 } … … 4640 4691 } 4641 4692 4642 // repeated bytes s = 1;4643 4693 public static final int S_FIELD_NUMBER = 1; 4644 4694 private java.util.List<com.google.protobuf.ByteString> s_; … … 4669 4719 public final boolean isInitialized() { 4670 4720 byte isInitialized = memoizedIsInitialized; 4671 if (isInitialized != -1) return isInitialized == 1; 4721 if (isInitialized == 1) return true; 4722 if (isInitialized == 0) return false; 4672 4723 4673 4724 memoizedIsInitialized = 1; … … 4681 4732 output.writeBytes(1, s_.get(i)); 4682 4733 } 4734 output.writeRawBytes(unknownFields); 4683 4735 } 4684 4736 … … 4698 4750 size += 1 * getSList().size(); 4699 4751 } 4752 size += unknownFields.size(); 4700 4753 memoizedSerializedSize = size; 4701 4754 return size; … … 4774 4827 * <pre> 4775 4828 ** String table, contains the common strings in each block. 4776 *4777 4829 *Note that we reserve index '0' as a delimiter, so the entry at that 4778 4830 *index in the table is ALWAYS blank and unused. … … 4782 4834 com.google.protobuf.GeneratedMessageLite.Builder< 4783 4835 crosby.binary.Osmformat.StringTable, Builder> 4784 implements crosby.binary.Osmformat.StringTableOrBuilder { 4836 implements 4837 // @@protoc_insertion_point(builder_implements:OSMPBF.StringTable) 4838 crosby.binary.Osmformat.StringTableOrBuilder { 4785 4839 // Construct using crosby.binary.Osmformat.StringTable.newBuilder() 4786 4840 private Builder() { … … 4840 4894 4841 4895 } 4896 setUnknownFields( 4897 getUnknownFields().concat(other.unknownFields)); 4842 4898 return this; 4843 4899 } … … 4866 4922 private int bitField0_; 4867 4923 4868 // repeated bytes s = 1;4869 4924 private java.util.List<com.google.protobuf.ByteString> s_ = java.util.Collections.emptyList(); 4870 4925 private void ensureSIsMutable() { … … 4924 4979 java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { 4925 4980 ensureSIsMutable(); 4926 super.addAll(values, s_); 4981 com.google.protobuf.AbstractMessageLite.Builder.addAll( 4982 values, s_); 4927 4983 4928 4984 return this; … … 4949 5005 } 4950 5006 4951 public interface InfoOrBuilder 4952 extends com.google.protobuf.MessageLiteOrBuilder {4953 4954 // optional int32 version = 1 [default = -1]; 5007 public interface InfoOrBuilder extends 5008 // @@protoc_insertion_point(interface_extends:OSMPBF.Info) 5009 com.google.protobuf.MessageLiteOrBuilder { 5010 4955 5011 /** 4956 5012 * <code>optional int32 version = 1 [default = -1];</code> … … 4962 5018 int getVersion(); 4963 5019 4964 // optional int64 timestamp = 2;4965 5020 /** 4966 5021 * <code>optional int64 timestamp = 2;</code> … … 4972 5027 long getTimestamp(); 4973 5028 4974 // optional int64 changeset = 3;4975 5029 /** 4976 5030 * <code>optional int64 changeset = 3;</code> … … 4982 5036 long getChangeset(); 4983 5037 4984 // optional int32 uid = 4;4985 5038 /** 4986 5039 * <code>optional int32 uid = 4;</code> … … 4992 5045 int getUid(); 4993 5046 4994 // optional uint32 user_sid = 5;4995 5047 /** 4996 5048 * <code>optional uint32 user_sid = 5;</code> … … 5010 5062 int getUserSid(); 5011 5063 5012 // optional bool visible = 6;5013 5064 /** 5014 5065 * <code>optional bool visible = 6;</code> … … 5050 5101 */ 5051 5102 public static final class Info extends 5052 com.google.protobuf.GeneratedMessageLite 5053 implements InfoOrBuilder { 5103 com.google.protobuf.GeneratedMessageLite implements 5104 // @@protoc_insertion_point(message_implements:OSMPBF.Info) 5105 InfoOrBuilder { 5054 5106 // Use Info.newBuilder() to construct. 5055 5107 private Info(com.google.protobuf.GeneratedMessageLite.Builder builder) { 5056 5108 super(builder); 5057 5058 } 5059 private Info(boolean noInit) { }5109 this.unknownFields = builder.getUnknownFields(); 5110 } 5111 private Info(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 5060 5112 5061 5113 private static final Info defaultInstance; … … 5068 5120 } 5069 5121 5122 private final com.google.protobuf.ByteString unknownFields; 5070 5123 private Info( 5071 5124 com.google.protobuf.CodedInputStream input, … … 5074 5127 initFields(); 5075 5128 int mutable_bitField0_ = 0; 5129 com.google.protobuf.ByteString.Output unknownFieldsOutput = 5130 com.google.protobuf.ByteString.newOutput(); 5131 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 5132 com.google.protobuf.CodedOutputStream.newInstance( 5133 unknownFieldsOutput); 5076 5134 try { 5077 5135 boolean done = false; … … 5083 5141 break; 5084 5142 default: { 5085 if (!parseUnknownField(input, 5143 if (!parseUnknownField(input, unknownFieldsCodedOutput, 5086 5144 extensionRegistry, tag)) { 5087 5145 done = true; … … 5127 5185 e.getMessage()).setUnfinishedMessage(this); 5128 5186 } finally { 5187 try { 5188 unknownFieldsCodedOutput.flush(); 5189 } catch (java.io.IOException e) { 5190 // Should not happen 5191 } finally { 5192 unknownFields = unknownFieldsOutput.toByteString(); 5193 } 5129 5194 makeExtensionsImmutable(); 5130 5195 } … … 5146 5211 5147 5212 private int bitField0_; 5148 // optional int32 version = 1 [default = -1];5149 5213 public static final int VERSION_FIELD_NUMBER = 1; 5150 5214 private int version_; … … 5162 5226 } 5163 5227 5164 // optional int64 timestamp = 2;5165 5228 public static final int TIMESTAMP_FIELD_NUMBER = 2; 5166 5229 private long timestamp_; … … 5178 5241 } 5179 5242 5180 // optional int64 changeset = 3;5181 5243 public static final int CHANGESET_FIELD_NUMBER = 3; 5182 5244 private long changeset_; … … 5194 5256 } 5195 5257 5196 // optional int32 uid = 4;5197 5258 public static final int UID_FIELD_NUMBER = 4; 5198 5259 private int uid_; … … 5210 5271 } 5211 5272 5212 // optional uint32 user_sid = 5;5213 5273 public static final int USER_SID_FIELD_NUMBER = 5; 5214 5274 private int userSid_; … … 5234 5294 } 5235 5295 5236 // optional bool visible = 6;5237 5296 public static final int VISIBLE_FIELD_NUMBER = 6; 5238 5297 private boolean visible_; … … 5283 5342 public final boolean isInitialized() { 5284 5343 byte isInitialized = memoizedIsInitialized; 5285 if (isInitialized != -1) return isInitialized == 1; 5344 if (isInitialized == 1) return true; 5345 if (isInitialized == 0) return false; 5286 5346 5287 5347 memoizedIsInitialized = 1; … … 5310 5370 output.writeBool(6, visible_); 5311 5371 } 5372 output.writeRawBytes(unknownFields); 5312 5373 } 5313 5374 … … 5342 5403 .computeBoolSize(6, visible_); 5343 5404 } 5405 size += unknownFields.size(); 5344 5406 memoizedSerializedSize = size; 5345 5407 return size; … … 5423 5485 com.google.protobuf.GeneratedMessageLite.Builder< 5424 5486 crosby.binary.Osmformat.Info, Builder> 5425 implements crosby.binary.Osmformat.InfoOrBuilder { 5487 implements 5488 // @@protoc_insertion_point(builder_implements:OSMPBF.Info) 5489 crosby.binary.Osmformat.InfoOrBuilder { 5426 5490 // Construct using crosby.binary.Osmformat.Info.newBuilder() 5427 5491 private Builder() { … … 5520 5584 setVisible(other.getVisible()); 5521 5585 } 5586 setUnknownFields( 5587 getUnknownFields().concat(other.unknownFields)); 5522 5588 return this; 5523 5589 } … … 5546 5612 private int bitField0_; 5547 5613 5548 // optional int32 version = 1 [default = -1];5549 5614 private int version_ = -1; 5550 5615 /** … … 5579 5644 } 5580 5645 5581 // optional int64 timestamp = 2;5582 5646 private long timestamp_ ; 5583 5647 /** … … 5612 5676 } 5613 5677 5614 // optional int64 changeset = 3;5615 5678 private long changeset_ ; 5616 5679 /** … … 5645 5708 } 5646 5709 5647 // optional int32 uid = 4;5648 5710 private int uid_ ; 5649 5711 /** … … 5678 5740 } 5679 5741 5680 // optional uint32 user_sid = 5;5681 5742 private int userSid_ ; 5682 5743 /** … … 5727 5788 } 5728 5789 5729 // optional bool visible = 6;5730 5790 private boolean visible_ ; 5731 5791 /** … … 5815 5875 } 5816 5876 5817 public interface DenseInfoOrBuilder 5818 extends com.google.protobuf.MessageLiteOrBuilder {5819 5820 // repeated int32 version = 1 [packed = true]; 5877 public interface DenseInfoOrBuilder extends 5878 // @@protoc_insertion_point(interface_extends:OSMPBF.DenseInfo) 5879 com.google.protobuf.MessageLiteOrBuilder { 5880 5821 5881 /** 5822 5882 * <code>repeated int32 version = 1 [packed = true];</code> … … 5832 5892 int getVersion(int index); 5833 5893 5834 // repeated sint64 timestamp = 2 [packed = true];5835 5894 /** 5836 5895 * <code>repeated sint64 timestamp = 2 [packed = true];</code> … … 5858 5917 long getTimestamp(int index); 5859 5918 5860 // repeated sint64 changeset = 3 [packed = true];5861 5919 /** 5862 5920 * <code>repeated sint64 changeset = 3 [packed = true];</code> … … 5884 5942 long getChangeset(int index); 5885 5943 5886 // repeated sint32 uid = 4 [packed = true];5887 5944 /** 5888 5945 * <code>repeated sint32 uid = 4 [packed = true];</code> … … 5910 5967 int getUid(int index); 5911 5968 5912 // repeated sint32 user_sid = 5 [packed = true];5913 5969 /** 5914 5970 * <code>repeated sint32 user_sid = 5 [packed = true];</code> … … 5936 5992 int getUserSid(int index); 5937 5993 5938 // repeated bool visible = 6 [packed = true];5939 5994 /** 5940 5995 * <code>repeated bool visible = 6 [packed = true];</code> … … 5991 6046 */ 5992 6047 public static final class DenseInfo extends 5993 com.google.protobuf.GeneratedMessageLite 5994 implements DenseInfoOrBuilder { 6048 com.google.protobuf.GeneratedMessageLite implements 6049 // @@protoc_insertion_point(message_implements:OSMPBF.DenseInfo) 6050 DenseInfoOrBuilder { 5995 6051 // Use DenseInfo.newBuilder() to construct. 5996 6052 private DenseInfo(com.google.protobuf.GeneratedMessageLite.Builder builder) { 5997 6053 super(builder); 5998 5999 } 6000 private DenseInfo(boolean noInit) { }6054 this.unknownFields = builder.getUnknownFields(); 6055 } 6056 private DenseInfo(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 6001 6057 6002 6058 private static final DenseInfo defaultInstance; … … 6009 6065 } 6010 6066 6067 private final com.google.protobuf.ByteString unknownFields; 6011 6068 private DenseInfo( 6012 6069 com.google.protobuf.CodedInputStream input, … … 6015 6072 initFields(); 6016 6073 int mutable_bitField0_ = 0; 6074 com.google.protobuf.ByteString.Output unknownFieldsOutput = 6075 com.google.protobuf.ByteString.newOutput(); 6076 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 6077 com.google.protobuf.CodedOutputStream.newInstance( 6078 unknownFieldsOutput); 6017 6079 try { 6018 6080 boolean done = false; … … 6024 6086 break; 6025 6087 default: { 6026 if (!parseUnknownField(input, 6088 if (!parseUnknownField(input, unknownFieldsCodedOutput, 6027 6089 extensionRegistry, tag)) { 6028 6090 done = true; … … 6182 6244 visible_ = java.util.Collections.unmodifiableList(visible_); 6183 6245 } 6246 try { 6247 unknownFieldsCodedOutput.flush(); 6248 } catch (java.io.IOException e) { 6249 // Should not happen 6250 } finally { 6251 unknownFields = unknownFieldsOutput.toByteString(); 6252 } 6184 6253 makeExtensionsImmutable(); 6185 6254 } … … 6200 6269 } 6201 6270 6202 // repeated int32 version = 1 [packed = true];6203 6271 public static final int VERSION_FIELD_NUMBER = 1; 6204 6272 private java.util.List<java.lang.Integer> version_; … … 6224 6292 private int versionMemoizedSerializedSize = -1; 6225 6293 6226 // repeated sint64 timestamp = 2 [packed = true];6227 6294 public static final int TIMESTAMP_FIELD_NUMBER = 2; 6228 6295 private java.util.List<java.lang.Long> timestamp_; … … 6260 6327 private int timestampMemoizedSerializedSize = -1; 6261 6328 6262 // repeated sint64 changeset = 3 [packed = true];6263 6329 public static final int CHANGESET_FIELD_NUMBER = 3; 6264 6330 private java.util.List<java.lang.Long> changeset_; … … 6296 6362 private int changesetMemoizedSerializedSize = -1; 6297 6363 6298 // repeated sint32 uid = 4 [packed = true];6299 6364 public static final int UID_FIELD_NUMBER = 4; 6300 6365 private java.util.List<java.lang.Integer> uid_; … … 6332 6397 private int uidMemoizedSerializedSize = -1; 6333 6398 6334 // repeated sint32 user_sid = 5 [packed = true];6335 6399 public static final int USER_SID_FIELD_NUMBER = 5; 6336 6400 private java.util.List<java.lang.Integer> userSid_; … … 6368 6432 private int userSidMemoizedSerializedSize = -1; 6369 6433 6370 // repeated bool visible = 6 [packed = true];6371 6434 public static final int VISIBLE_FIELD_NUMBER = 6; 6372 6435 private java.util.List<java.lang.Boolean> visible_; … … 6436 6499 public final boolean isInitialized() { 6437 6500 byte isInitialized = memoizedIsInitialized; 6438 if (isInitialized != -1) return isInitialized == 1; 6501 if (isInitialized == 1) return true; 6502 if (isInitialized == 0) return false; 6439 6503 6440 6504 memoizedIsInitialized = 1; … … 6487 6551 output.writeBoolNoTag(visible_.get(i)); 6488 6552 } 6553 output.writeRawBytes(unknownFields); 6489 6554 } 6490 6555 … … 6576 6641 visibleMemoizedSerializedSize = dataSize; 6577 6642 } 6643 size += unknownFields.size(); 6578 6644 memoizedSerializedSize = size; 6579 6645 return size; … … 6657 6723 com.google.protobuf.GeneratedMessageLite.Builder< 6658 6724 crosby.binary.Osmformat.DenseInfo, Builder> 6659 implements crosby.binary.Osmformat.DenseInfoOrBuilder { 6725 implements 6726 // @@protoc_insertion_point(builder_implements:OSMPBF.DenseInfo) 6727 crosby.binary.Osmformat.DenseInfoOrBuilder { 6660 6728 // Construct using crosby.binary.Osmformat.DenseInfo.newBuilder() 6661 6729 private Builder() { … … 6800 6868 6801 6869 } 6870 setUnknownFields( 6871 getUnknownFields().concat(other.unknownFields)); 6802 6872 return this; 6803 6873 } … … 6826 6896 private int bitField0_; 6827 6897 6828 // repeated int32 version = 1 [packed = true];6829 6898 private java.util.List<java.lang.Integer> version_ = java.util.Collections.emptyList(); 6830 6899 private void ensureVersionIsMutable() { … … 6878 6947 java.lang.Iterable<? extends java.lang.Integer> values) { 6879 6948 ensureVersionIsMutable(); 6880 super.addAll(values, version_); 6949 com.google.protobuf.AbstractMessageLite.Builder.addAll( 6950 values, version_); 6881 6951 6882 6952 return this; … … 6892 6962 } 6893 6963 6894 // repeated sint64 timestamp = 2 [packed = true];6895 6964 private java.util.List<java.lang.Long> timestamp_ = java.util.Collections.emptyList(); 6896 6965 private void ensureTimestampIsMutable() { … … 6968 7037 java.lang.Iterable<? extends java.lang.Long> values) { 6969 7038 ensureTimestampIsMutable(); 6970 super.addAll(values, timestamp_); 7039 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7040 values, timestamp_); 6971 7041 6972 7042 return this; … … 6986 7056 } 6987 7057 6988 // repeated sint64 changeset = 3 [packed = true];6989 7058 private java.util.List<java.lang.Long> changeset_ = java.util.Collections.emptyList(); 6990 7059 private void ensureChangesetIsMutable() { … … 7062 7131 java.lang.Iterable<? extends java.lang.Long> values) { 7063 7132 ensureChangesetIsMutable(); 7064 super.addAll(values, changeset_); 7133 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7134 values, changeset_); 7065 7135 7066 7136 return this; … … 7080 7150 } 7081 7151 7082 // repeated sint32 uid = 4 [packed = true];7083 7152 private java.util.List<java.lang.Integer> uid_ = java.util.Collections.emptyList(); 7084 7153 private void ensureUidIsMutable() { … … 7156 7225 java.lang.Iterable<? extends java.lang.Integer> values) { 7157 7226 ensureUidIsMutable(); 7158 super.addAll(values, uid_); 7227 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7228 values, uid_); 7159 7229 7160 7230 return this; … … 7174 7244 } 7175 7245 7176 // repeated sint32 user_sid = 5 [packed = true];7177 7246 private java.util.List<java.lang.Integer> userSid_ = java.util.Collections.emptyList(); 7178 7247 private void ensureUserSidIsMutable() { … … 7250 7319 java.lang.Iterable<? extends java.lang.Integer> values) { 7251 7320 ensureUserSidIsMutable(); 7252 super.addAll(values, userSid_); 7321 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7322 values, userSid_); 7253 7323 7254 7324 return this; … … 7268 7338 } 7269 7339 7270 // repeated bool visible = 6 [packed = true];7271 7340 private java.util.List<java.lang.Boolean> visible_ = java.util.Collections.emptyList(); 7272 7341 private void ensureVisibleIsMutable() { … … 7386 7455 java.lang.Iterable<? extends java.lang.Boolean> values) { 7387 7456 ensureVisibleIsMutable(); 7388 super.addAll(values, visible_); 7457 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7458 values, visible_); 7389 7459 7390 7460 return this; … … 7422 7492 } 7423 7493 7424 public interface ChangeSetOrBuilder 7425 extends com.google.protobuf.MessageLiteOrBuilder {7426 7427 // required int64 id = 1; 7494 public interface ChangeSetOrBuilder extends 7495 // @@protoc_insertion_point(interface_extends:OSMPBF.ChangeSet) 7496 com.google.protobuf.MessageLiteOrBuilder { 7497 7428 7498 /** 7429 7499 * <code>required int64 id = 1;</code> … … 7434 7504 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7435 7505 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7436 *7437 7506 * optional Info info = 4; 7438 7507 * </pre> … … 7447 7516 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7448 7517 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7449 *7450 7518 * optional Info info = 4; 7451 7519 * </pre> … … 7462 7530 */ 7463 7531 public static final class ChangeSet extends 7464 com.google.protobuf.GeneratedMessageLite 7465 implements ChangeSetOrBuilder { 7532 com.google.protobuf.GeneratedMessageLite implements 7533 // @@protoc_insertion_point(message_implements:OSMPBF.ChangeSet) 7534 ChangeSetOrBuilder { 7466 7535 // Use ChangeSet.newBuilder() to construct. 7467 7536 private ChangeSet(com.google.protobuf.GeneratedMessageLite.Builder builder) { 7468 7537 super(builder); 7469 7470 } 7471 private ChangeSet(boolean noInit) { }7538 this.unknownFields = builder.getUnknownFields(); 7539 } 7540 private ChangeSet(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 7472 7541 7473 7542 private static final ChangeSet defaultInstance; … … 7480 7549 } 7481 7550 7551 private final com.google.protobuf.ByteString unknownFields; 7482 7552 private ChangeSet( 7483 7553 com.google.protobuf.CodedInputStream input, … … 7486 7556 initFields(); 7487 7557 int mutable_bitField0_ = 0; 7558 com.google.protobuf.ByteString.Output unknownFieldsOutput = 7559 com.google.protobuf.ByteString.newOutput(); 7560 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 7561 com.google.protobuf.CodedOutputStream.newInstance( 7562 unknownFieldsOutput); 7488 7563 try { 7489 7564 boolean done = false; … … 7495 7570 break; 7496 7571 default: { 7497 if (!parseUnknownField(input, 7572 if (!parseUnknownField(input, unknownFieldsCodedOutput, 7498 7573 extensionRegistry, tag)) { 7499 7574 done = true; … … 7514 7589 e.getMessage()).setUnfinishedMessage(this); 7515 7590 } finally { 7591 try { 7592 unknownFieldsCodedOutput.flush(); 7593 } catch (java.io.IOException e) { 7594 // Should not happen 7595 } finally { 7596 unknownFields = unknownFieldsOutput.toByteString(); 7597 } 7516 7598 makeExtensionsImmutable(); 7517 7599 } … … 7533 7615 7534 7616 private int bitField0_; 7535 // required int64 id = 1;7536 7617 public static final int ID_FIELD_NUMBER = 1; 7537 7618 private long id_; … … 7544 7625 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7545 7626 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7546 *7547 7627 * optional Info info = 4; 7548 7628 * </pre> … … 7559 7639 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7560 7640 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7561 *7562 7641 * optional Info info = 4; 7563 7642 * </pre> … … 7573 7652 public final boolean isInitialized() { 7574 7653 byte isInitialized = memoizedIsInitialized; 7575 if (isInitialized != -1) return isInitialized == 1; 7654 if (isInitialized == 1) return true; 7655 if (isInitialized == 0) return false; 7576 7656 7577 7657 if (!hasId()) { … … 7589 7669 output.writeInt64(1, id_); 7590 7670 } 7671 output.writeRawBytes(unknownFields); 7591 7672 } 7592 7673 … … 7601 7682 .computeInt64Size(1, id_); 7602 7683 } 7684 size += unknownFields.size(); 7603 7685 memoizedSerializedSize = size; 7604 7686 return size; … … 7683 7765 com.google.protobuf.GeneratedMessageLite.Builder< 7684 7766 crosby.binary.Osmformat.ChangeSet, Builder> 7685 implements crosby.binary.Osmformat.ChangeSetOrBuilder { 7767 implements 7768 // @@protoc_insertion_point(builder_implements:OSMPBF.ChangeSet) 7769 crosby.binary.Osmformat.ChangeSetOrBuilder { 7686 7770 // Construct using crosby.binary.Osmformat.ChangeSet.newBuilder() 7687 7771 private Builder() { … … 7735 7819 setId(other.getId()); 7736 7820 } 7821 setUnknownFields( 7822 getUnknownFields().concat(other.unknownFields)); 7737 7823 return this; 7738 7824 } … … 7765 7851 private int bitField0_; 7766 7852 7767 // required int64 id = 1;7768 7853 private long id_ ; 7769 7854 /** … … 7775 7860 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7776 7861 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7777 *7778 7862 * optional Info info = 4; 7779 7863 * </pre> … … 7790 7874 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7791 7875 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7792 *7793 7876 * optional Info info = 4; 7794 7877 * </pre> … … 7805 7888 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7806 7889 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7807 *7808 7890 * optional Info info = 4; 7809 7891 * </pre> … … 7823 7905 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7824 7906 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7825 *7826 7907 * optional Info info = 4; 7827 7908 * </pre> … … 7845 7926 } 7846 7927 7847 public interface NodeOrBuilder 7848 extends com.google.protobuf.MessageLiteOrBuilder {7849 7850 // required sint64 id = 1; 7928 public interface NodeOrBuilder extends 7929 // @@protoc_insertion_point(interface_extends:OSMPBF.Node) 7930 com.google.protobuf.MessageLiteOrBuilder { 7931 7851 7932 /** 7852 7933 * <code>required sint64 id = 1;</code> … … 7858 7939 long getId(); 7859 7940 7860 // repeated uint32 keys = 2 [packed = true];7861 7941 /** 7862 7942 * <code>repeated uint32 keys = 2 [packed = true];</code> … … 7884 7964 int getKeys(int index); 7885 7965 7886 // repeated uint32 vals = 3 [packed = true];7887 7966 /** 7888 7967 * <code>repeated uint32 vals = 3 [packed = true];</code> … … 7910 7989 int getVals(int index); 7911 7990 7912 // optional .OSMPBF.Info info = 4;7913 7991 /** 7914 7992 * <code>optional .OSMPBF.Info info = 4;</code> … … 7928 8006 crosby.binary.Osmformat.Info getInfo(); 7929 8007 7930 // required sint64 lat = 8;7931 8008 /** 7932 8009 * <code>required sint64 lat = 8;</code> … … 7938 8015 long getLat(); 7939 8016 7940 // required sint64 lon = 9;7941 8017 /** 7942 8018 * <code>required sint64 lon = 9;</code> … … 7952 8028 */ 7953 8029 public static final class Node extends 7954 com.google.protobuf.GeneratedMessageLite 7955 implements NodeOrBuilder { 8030 com.google.protobuf.GeneratedMessageLite implements 8031 // @@protoc_insertion_point(message_implements:OSMPBF.Node) 8032 NodeOrBuilder { 7956 8033 // Use Node.newBuilder() to construct. 7957 8034 private Node(com.google.protobuf.GeneratedMessageLite.Builder builder) { 7958 8035 super(builder); 7959 7960 } 7961 private Node(boolean noInit) { }8036 this.unknownFields = builder.getUnknownFields(); 8037 } 8038 private Node(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 7962 8039 7963 8040 private static final Node defaultInstance; … … 7970 8047 } 7971 8048 8049 private final com.google.protobuf.ByteString unknownFields; 7972 8050 private Node( 7973 8051 com.google.protobuf.CodedInputStream input, … … 7976 8054 initFields(); 7977 8055 int mutable_bitField0_ = 0; 8056 com.google.protobuf.ByteString.Output unknownFieldsOutput = 8057 com.google.protobuf.ByteString.newOutput(); 8058 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 8059 com.google.protobuf.CodedOutputStream.newInstance( 8060 unknownFieldsOutput); 7978 8061 try { 7979 8062 boolean done = false; … … 7985 8068 break; 7986 8069 default: { 7987 if (!parseUnknownField(input, 8070 if (!parseUnknownField(input, unknownFieldsCodedOutput, 7988 8071 extensionRegistry, tag)) { 7989 8072 done = true; … … 8075 8158 vals_ = java.util.Collections.unmodifiableList(vals_); 8076 8159 } 8160 try { 8161 unknownFieldsCodedOutput.flush(); 8162 } catch (java.io.IOException e) { 8163 // Should not happen 8164 } finally { 8165 unknownFields = unknownFieldsOutput.toByteString(); 8166 } 8077 8167 makeExtensionsImmutable(); 8078 8168 } … … 8094 8184 8095 8185 private int bitField0_; 8096 // required sint64 id = 1;8097 8186 public static final int ID_FIELD_NUMBER = 1; 8098 8187 private long id_; … … 8110 8199 } 8111 8200 8112 // repeated uint32 keys = 2 [packed = true];8113 8201 public static final int KEYS_FIELD_NUMBER = 2; 8114 8202 private java.util.List<java.lang.Integer> keys_; … … 8146 8234 private int keysMemoizedSerializedSize = -1; 8147 8235 8148 // repeated uint32 vals = 3 [packed = true];8149 8236 public static final int VALS_FIELD_NUMBER = 3; 8150 8237 private java.util.List<java.lang.Integer> vals_; … … 8182 8269 private int valsMemoizedSerializedSize = -1; 8183 8270 8184 // optional .OSMPBF.Info info = 4;8185 8271 public static final int INFO_FIELD_NUMBER = 4; 8186 8272 private crosby.binary.Osmformat.Info info_; … … 8206 8292 } 8207 8293 8208 // required sint64 lat = 8;8209 8294 public static final int LAT_FIELD_NUMBER = 8; 8210 8295 private long lat_; … … 8222 8307 } 8223 8308 8224 // required sint64 lon = 9;8225 8309 public static final int LON_FIELD_NUMBER = 9; 8226 8310 private long lon_; … … 8249 8333 public final boolean isInitialized() { 8250 8334 byte isInitialized = memoizedIsInitialized; 8251 if (isInitialized != -1) return isInitialized == 1; 8335 if (isInitialized == 1) return true; 8336 if (isInitialized == 0) return false; 8252 8337 8253 8338 if (!hasId()) { … … 8296 8381 output.writeSInt64(9, lon_); 8297 8382 } 8383 output.writeRawBytes(unknownFields); 8298 8384 } 8299 8385 … … 8348 8434 .computeSInt64Size(9, lon_); 8349 8435 } 8436 size += unknownFields.size(); 8350 8437 memoizedSerializedSize = size; 8351 8438 return size; … … 8425 8512 com.google.protobuf.GeneratedMessageLite.Builder< 8426 8513 crosby.binary.Osmformat.Node, Builder> 8427 implements crosby.binary.Osmformat.NodeOrBuilder { 8514 implements 8515 // @@protoc_insertion_point(builder_implements:OSMPBF.Node) 8516 crosby.binary.Osmformat.NodeOrBuilder { 8428 8517 // Construct using crosby.binary.Osmformat.Node.newBuilder() 8429 8518 private Builder() { … … 8538 8627 setLon(other.getLon()); 8539 8628 } 8629 setUnknownFields( 8630 getUnknownFields().concat(other.unknownFields)); 8540 8631 return this; 8541 8632 } … … 8576 8667 private int bitField0_; 8577 8668 8578 // required sint64 id = 1;8579 8669 private long id_ ; 8580 8670 /** … … 8609 8699 } 8610 8700 8611 // repeated uint32 keys = 2 [packed = true];8612 8701 private java.util.List<java.lang.Integer> keys_ = java.util.Collections.emptyList(); 8613 8702 private void ensureKeysIsMutable() { … … 8685 8774 java.lang.Iterable<? extends java.lang.Integer> values) { 8686 8775 ensureKeysIsMutable(); 8687 super.addAll(values, keys_); 8776 com.google.protobuf.AbstractMessageLite.Builder.addAll( 8777 values, keys_); 8688 8778 8689 8779 return this; … … 8703 8793 } 8704 8794 8705 // repeated uint32 vals = 3 [packed = true];8706 8795 private java.util.List<java.lang.Integer> vals_ = java.util.Collections.emptyList(); 8707 8796 private void ensureValsIsMutable() { … … 8779 8868 java.lang.Iterable<? extends java.lang.Integer> values) { 8780 8869 ensureValsIsMutable(); 8781 super.addAll(values, vals_); 8870 com.google.protobuf.AbstractMessageLite.Builder.addAll( 8871 values, vals_); 8782 8872 8783 8873 return this; … … 8797 8887 } 8798 8888 8799 // optional .OSMPBF.Info info = 4;8800 8889 private crosby.binary.Osmformat.Info info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 8801 8890 /** … … 8882 8971 } 8883 8972 8884 // required sint64 lat = 8;8885 8973 private long lat_ ; 8886 8974 /** … … 8915 9003 } 8916 9004 8917 // required sint64 lon = 9;8918 9005 private long lon_ ; 8919 9006 /** … … 8959 9046 } 8960 9047 8961 public interface DenseNodesOrBuilder 8962 extends com.google.protobuf.MessageLiteOrBuilder {8963 8964 // repeated sint64 id = 1 [packed = true]; 9048 public interface DenseNodesOrBuilder extends 9049 // @@protoc_insertion_point(interface_extends:OSMPBF.DenseNodes) 9050 com.google.protobuf.MessageLiteOrBuilder { 9051 8965 9052 /** 8966 9053 * <code>repeated sint64 id = 1 [packed = true];</code> … … 8988 9075 long getId(int index); 8989 9076 8990 // optional .OSMPBF.DenseInfo denseinfo = 5;8991 9077 /** 8992 9078 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> … … 9006 9092 crosby.binary.Osmformat.DenseInfo getDenseinfo(); 9007 9093 9008 // repeated sint64 lat = 8 [packed = true];9009 9094 /** 9010 9095 * <code>repeated sint64 lat = 8 [packed = true];</code> … … 9032 9117 long getLat(int index); 9033 9118 9034 // repeated sint64 lon = 9 [packed = true];9035 9119 /** 9036 9120 * <code>repeated sint64 lon = 9 [packed = true];</code> … … 9058 9142 long getLon(int index); 9059 9143 9060 // repeated int32 keys_vals = 10 [packed = true];9061 9144 /** 9062 9145 * <code>repeated int32 keys_vals = 10 [packed = true];</code> … … 9088 9171 */ 9089 9172 public static final class DenseNodes extends 9090 com.google.protobuf.GeneratedMessageLite 9091 implements DenseNodesOrBuilder { 9173 com.google.protobuf.GeneratedMessageLite implements 9174 // @@protoc_insertion_point(message_implements:OSMPBF.DenseNodes) 9175 DenseNodesOrBuilder { 9092 9176 // Use DenseNodes.newBuilder() to construct. 9093 9177 private DenseNodes(com.google.protobuf.GeneratedMessageLite.Builder builder) { 9094 9178 super(builder); 9095 9096 } 9097 private DenseNodes(boolean noInit) { }9179 this.unknownFields = builder.getUnknownFields(); 9180 } 9181 private DenseNodes(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 9098 9182 9099 9183 private static final DenseNodes defaultInstance; … … 9106 9190 } 9107 9191 9192 private final com.google.protobuf.ByteString unknownFields; 9108 9193 private DenseNodes( 9109 9194 com.google.protobuf.CodedInputStream input, … … 9112 9197 initFields(); 9113 9198 int mutable_bitField0_ = 0; 9199 com.google.protobuf.ByteString.Output unknownFieldsOutput = 9200 com.google.protobuf.ByteString.newOutput(); 9201 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 9202 com.google.protobuf.CodedOutputStream.newInstance( 9203 unknownFieldsOutput); 9114 9204 try { 9115 9205 boolean done = false; … … 9121 9211 break; 9122 9212 default: { 9123 if (!parseUnknownField(input, 9213 if (!parseUnknownField(input, unknownFieldsCodedOutput, 9124 9214 extensionRegistry, tag)) { 9125 9215 done = true; … … 9244 9334 keysVals_ = java.util.Collections.unmodifiableList(keysVals_); 9245 9335 } 9336 try { 9337 unknownFieldsCodedOutput.flush(); 9338 } catch (java.io.IOException e) { 9339 // Should not happen 9340 } finally { 9341 unknownFields = unknownFieldsOutput.toByteString(); 9342 } 9246 9343 makeExtensionsImmutable(); 9247 9344 } … … 9263 9360 9264 9361 private int bitField0_; 9265 // repeated sint64 id = 1 [packed = true];9266 9362 public static final int ID_FIELD_NUMBER = 1; 9267 9363 private java.util.List<java.lang.Long> id_; … … 9299 9395 private int idMemoizedSerializedSize = -1; 9300 9396 9301 // optional .OSMPBF.DenseInfo denseinfo = 5;9302 9397 public static final int DENSEINFO_FIELD_NUMBER = 5; 9303 9398 private crosby.binary.Osmformat.DenseInfo denseinfo_; … … 9323 9418 } 9324 9419 9325 // repeated sint64 lat = 8 [packed = true];9326 9420 public static final int LAT_FIELD_NUMBER = 8; 9327 9421 private java.util.List<java.lang.Long> lat_; … … 9359 9453 private int latMemoizedSerializedSize = -1; 9360 9454 9361 // repeated sint64 lon = 9 [packed = true];9362 9455 public static final int LON_FIELD_NUMBER = 9; 9363 9456 private java.util.List<java.lang.Long> lon_; … … 9395 9488 private int lonMemoizedSerializedSize = -1; 9396 9489 9397 // repeated int32 keys_vals = 10 [packed = true];9398 9490 public static final int KEYS_VALS_FIELD_NUMBER = 10; 9399 9491 private java.util.List<java.lang.Integer> keysVals_; … … 9441 9533 public final boolean isInitialized() { 9442 9534 byte isInitialized = memoizedIsInitialized; 9443 if (isInitialized != -1) return isInitialized == 1; 9535 if (isInitialized == 1) return true; 9536 if (isInitialized == 0) return false; 9444 9537 9445 9538 memoizedIsInitialized = 1; … … 9481 9574 output.writeInt32NoTag(keysVals_.get(i)); 9482 9575 } 9576 output.writeRawBytes(unknownFields); 9483 9577 } 9484 9578 … … 9549 9643 keysValsMemoizedSerializedSize = dataSize; 9550 9644 } 9645 size += unknownFields.size(); 9551 9646 memoizedSerializedSize = size; 9552 9647 return size; … … 9626 9721 com.google.protobuf.GeneratedMessageLite.Builder< 9627 9722 crosby.binary.Osmformat.DenseNodes, Builder> 9628 implements crosby.binary.Osmformat.DenseNodesOrBuilder { 9723 implements 9724 // @@protoc_insertion_point(builder_implements:OSMPBF.DenseNodes) 9725 crosby.binary.Osmformat.DenseNodesOrBuilder { 9629 9726 // Construct using crosby.binary.Osmformat.DenseNodes.newBuilder() 9630 9727 private Builder() { … … 9746 9843 9747 9844 } 9845 setUnknownFields( 9846 getUnknownFields().concat(other.unknownFields)); 9748 9847 return this; 9749 9848 } … … 9772 9871 private int bitField0_; 9773 9872 9774 // repeated sint64 id = 1 [packed = true];9775 9873 private java.util.List<java.lang.Long> id_ = java.util.Collections.emptyList(); 9776 9874 private void ensureIdIsMutable() { … … 9848 9946 java.lang.Iterable<? extends java.lang.Long> values) { 9849 9947 ensureIdIsMutable(); 9850 super.addAll(values, id_); 9948 com.google.protobuf.AbstractMessageLite.Builder.addAll( 9949 values, id_); 9851 9950 9852 9951 return this; … … 9866 9965 } 9867 9966 9868 // optional .OSMPBF.DenseInfo denseinfo = 5;9869 9967 private crosby.binary.Osmformat.DenseInfo denseinfo_ = crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 9870 9968 /** … … 9951 10049 } 9952 10050 9953 // repeated sint64 lat = 8 [packed = true];9954 10051 private java.util.List<java.lang.Long> lat_ = java.util.Collections.emptyList(); 9955 10052 private void ensureLatIsMutable() { … … 10027 10124 java.lang.Iterable<? extends java.lang.Long> values) { 10028 10125 ensureLatIsMutable(); 10029 super.addAll(values, lat_); 10126 com.google.protobuf.AbstractMessageLite.Builder.addAll( 10127 values, lat_); 10030 10128 10031 10129 return this; … … 10045 10143 } 10046 10144 10047 // repeated sint64 lon = 9 [packed = true];10048 10145 private java.util.List<java.lang.Long> lon_ = java.util.Collections.emptyList(); 10049 10146 private void ensureLonIsMutable() { … … 10121 10218 java.lang.Iterable<? extends java.lang.Long> values) { 10122 10219 ensureLonIsMutable(); 10123 super.addAll(values, lon_); 10220 com.google.protobuf.AbstractMessageLite.Builder.addAll( 10221 values, lon_); 10124 10222 10125 10223 return this; … … 10139 10237 } 10140 10238 10141 // repeated int32 keys_vals = 10 [packed = true];10142 10239 private java.util.List<java.lang.Integer> keysVals_ = java.util.Collections.emptyList(); 10143 10240 private void ensureKeysValsIsMutable() { … … 10215 10312 java.lang.Iterable<? extends java.lang.Integer> values) { 10216 10313 ensureKeysValsIsMutable(); 10217 super.addAll(values, keysVals_); 10314 com.google.protobuf.AbstractMessageLite.Builder.addAll( 10315 values, keysVals_); 10218 10316 10219 10317 return this; … … 10244 10342 } 10245 10343 10246 public interface WayOrBuilder 10247 extends com.google.protobuf.MessageLiteOrBuilder {10248 10249 // required int64 id = 1; 10344 public interface WayOrBuilder extends 10345 // @@protoc_insertion_point(interface_extends:OSMPBF.Way) 10346 com.google.protobuf.MessageLiteOrBuilder { 10347 10250 10348 /** 10251 10349 * <code>required int64 id = 1;</code> … … 10257 10355 long getId(); 10258 10356 10259 // repeated uint32 keys = 2 [packed = true];10260 10357 /** 10261 10358 * <code>repeated uint32 keys = 2 [packed = true];</code> … … 10283 10380 int getKeys(int index); 10284 10381 10285 // repeated uint32 vals = 3 [packed = true];10286 10382 /** 10287 10383 * <code>repeated uint32 vals = 3 [packed = true];</code> … … 10297 10393 int getVals(int index); 10298 10394 10299 // optional .OSMPBF.Info info = 4;10300 10395 /** 10301 10396 * <code>optional .OSMPBF.Info info = 4;</code> … … 10307 10402 crosby.binary.Osmformat.Info getInfo(); 10308 10403 10309 // repeated sint64 refs = 8 [packed = true];10310 10404 /** 10311 10405 * <code>repeated sint64 refs = 8 [packed = true];</code> … … 10337 10431 */ 10338 10432 public static final class Way extends 10339 com.google.protobuf.GeneratedMessageLite 10340 implements WayOrBuilder { 10433 com.google.protobuf.GeneratedMessageLite implements 10434 // @@protoc_insertion_point(message_implements:OSMPBF.Way) 10435 WayOrBuilder { 10341 10436 // Use Way.newBuilder() to construct. 10342 10437 private Way(com.google.protobuf.GeneratedMessageLite.Builder builder) { 10343 10438 super(builder); 10344 10345 } 10346 private Way(boolean noInit) { }10439 this.unknownFields = builder.getUnknownFields(); 10440 } 10441 private Way(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 10347 10442 10348 10443 private static final Way defaultInstance; … … 10355 10450 } 10356 10451 10452 private final com.google.protobuf.ByteString unknownFields; 10357 10453 private Way( 10358 10454 com.google.protobuf.CodedInputStream input, … … 10361 10457 initFields(); 10362 10458 int mutable_bitField0_ = 0; 10459 com.google.protobuf.ByteString.Output unknownFieldsOutput = 10460 com.google.protobuf.ByteString.newOutput(); 10461 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 10462 com.google.protobuf.CodedOutputStream.newInstance( 10463 unknownFieldsOutput); 10363 10464 try { 10364 10465 boolean done = false; … … 10370 10471 break; 10371 10472 default: { 10372 if (!parseUnknownField(input, 10473 if (!parseUnknownField(input, unknownFieldsCodedOutput, 10373 10474 extensionRegistry, tag)) { 10374 10475 done = true; … … 10474 10575 refs_ = java.util.Collections.unmodifiableList(refs_); 10475 10576 } 10577 try { 10578 unknownFieldsCodedOutput.flush(); 10579 } catch (java.io.IOException e) { 10580 // Should not happen 10581 } finally { 10582 unknownFields = unknownFieldsOutput.toByteString(); 10583 } 10476 10584 makeExtensionsImmutable(); 10477 10585 } … … 10493 10601 10494 10602 private int bitField0_; 10495 // required int64 id = 1;10496 10603 public static final int ID_FIELD_NUMBER = 1; 10497 10604 private long id_; … … 10509 10616 } 10510 10617 10511 // repeated uint32 keys = 2 [packed = true];10512 10618 public static final int KEYS_FIELD_NUMBER = 2; 10513 10619 private java.util.List<java.lang.Integer> keys_; … … 10545 10651 private int keysMemoizedSerializedSize = -1; 10546 10652 10547 // repeated uint32 vals = 3 [packed = true];10548 10653 public static final int VALS_FIELD_NUMBER = 3; 10549 10654 private java.util.List<java.lang.Integer> vals_; … … 10569 10674 private int valsMemoizedSerializedSize = -1; 10570 10675 10571 // optional .OSMPBF.Info info = 4;10572 10676 public static final int INFO_FIELD_NUMBER = 4; 10573 10677 private crosby.binary.Osmformat.Info info_; … … 10585 10689 } 10586 10690 10587 // repeated sint64 refs = 8 [packed = true];10588 10691 public static final int REFS_FIELD_NUMBER = 8; 10589 10692 private java.util.List<java.lang.Long> refs_; … … 10631 10734 public final boolean isInitialized() { 10632 10735 byte isInitialized = memoizedIsInitialized; 10633 if (isInitialized != -1) return isInitialized == 1; 10736 if (isInitialized == 1) return true; 10737 if (isInitialized == 0) return false; 10634 10738 10635 10739 if (!hasId()) { … … 10671 10775 output.writeSInt64NoTag(refs_.get(i)); 10672 10776 } 10777 output.writeRawBytes(unknownFields); 10673 10778 } 10674 10779 … … 10729 10834 refsMemoizedSerializedSize = dataSize; 10730 10835 } 10836 size += unknownFields.size(); 10731 10837 memoizedSerializedSize = size; 10732 10838 return size; … … 10806 10912 com.google.protobuf.GeneratedMessageLite.Builder< 10807 10913 crosby.binary.Osmformat.Way, Builder> 10808 implements crosby.binary.Osmformat.WayOrBuilder { 10914 implements 10915 // @@protoc_insertion_point(builder_implements:OSMPBF.Way) 10916 crosby.binary.Osmformat.WayOrBuilder { 10809 10917 // Construct using crosby.binary.Osmformat.Way.newBuilder() 10810 10918 private Builder() { … … 10918 11026 10919 11027 } 11028 setUnknownFields( 11029 getUnknownFields().concat(other.unknownFields)); 10920 11030 return this; 10921 11031 } … … 10948 11058 private int bitField0_; 10949 11059 10950 // required int64 id = 1;10951 11060 private long id_ ; 10952 11061 /** … … 10981 11090 } 10982 11091 10983 // repeated uint32 keys = 2 [packed = true];10984 11092 private java.util.List<java.lang.Integer> keys_ = java.util.Collections.emptyList(); 10985 11093 private void ensureKeysIsMutable() { … … 11057 11165 java.lang.Iterable<? extends java.lang.Integer> values) { 11058 11166 ensureKeysIsMutable(); 11059 super.addAll(values, keys_); 11167 com.google.protobuf.AbstractMessageLite.Builder.addAll( 11168 values, keys_); 11060 11169 11061 11170 return this; … … 11075 11184 } 11076 11185 11077 // repeated uint32 vals = 3 [packed = true];11078 11186 private java.util.List<java.lang.Integer> vals_ = java.util.Collections.emptyList(); 11079 11187 private void ensureValsIsMutable() { … … 11127 11235 java.lang.Iterable<? extends java.lang.Integer> values) { 11128 11236 ensureValsIsMutable(); 11129 super.addAll(values, vals_); 11237 com.google.protobuf.AbstractMessageLite.Builder.addAll( 11238 values, vals_); 11130 11239 11131 11240 return this; … … 11141 11250 } 11142 11251 11143 // optional .OSMPBF.Info info = 4;11144 11252 private crosby.binary.Osmformat.Info info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 11145 11253 /** … … 11202 11310 } 11203 11311 11204 // repeated sint64 refs = 8 [packed = true];11205 11312 private java.util.List<java.lang.Long> refs_ = java.util.Collections.emptyList(); 11206 11313 private void ensureRefsIsMutable() { … … 11278 11385 java.lang.Iterable<? extends java.lang.Long> values) { 11279 11386 ensureRefsIsMutable(); 11280 super.addAll(values, refs_); 11387 com.google.protobuf.AbstractMessageLite.Builder.addAll( 11388 values, refs_); 11281 11389 11282 11390 return this; … … 11307 11415 } 11308 11416 11309 public interface RelationOrBuilder 11310 extends com.google.protobuf.MessageLiteOrBuilder {11311 11312 // required int64 id = 1; 11417 public interface RelationOrBuilder extends 11418 // @@protoc_insertion_point(interface_extends:OSMPBF.Relation) 11419 com.google.protobuf.MessageLiteOrBuilder { 11420 11313 11421 /** 11314 11422 * <code>required int64 id = 1;</code> … … 11320 11428 long getId(); 11321 11429 11322 // repeated uint32 keys = 2 [packed = true];11323 11430 /** 11324 11431 * <code>repeated uint32 keys = 2 [packed = true];</code> … … 11346 11453 int getKeys(int index); 11347 11454 11348 // repeated uint32 vals = 3 [packed = true];11349 11455 /** 11350 11456 * <code>repeated uint32 vals = 3 [packed = true];</code> … … 11360 11466 int getVals(int index); 11361 11467 11362 // optional .OSMPBF.Info info = 4;11363 11468 /** 11364 11469 * <code>optional .OSMPBF.Info info = 4;</code> … … 11370 11475 crosby.binary.Osmformat.Info getInfo(); 11371 11476 11372 // repeated int32 roles_sid = 8 [packed = true];11373 11477 /** 11374 11478 * <code>repeated int32 roles_sid = 8 [packed = true];</code> … … 11396 11500 int getRolesSid(int index); 11397 11501 11398 // repeated sint64 memids = 9 [packed = true];11399 11502 /** 11400 11503 * <code>repeated sint64 memids = 9 [packed = true];</code> … … 11422 11525 long getMemids(int index); 11423 11526 11424 // repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];11425 11527 /** 11426 11528 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> … … 11440 11542 */ 11441 11543 public static final class Relation extends 11442 com.google.protobuf.GeneratedMessageLite 11443 implements RelationOrBuilder { 11544 com.google.protobuf.GeneratedMessageLite implements 11545 // @@protoc_insertion_point(message_implements:OSMPBF.Relation) 11546 RelationOrBuilder { 11444 11547 // Use Relation.newBuilder() to construct. 11445 11548 private Relation(com.google.protobuf.GeneratedMessageLite.Builder builder) { 11446 11549 super(builder); 11447 11448 } 11449 private Relation(boolean noInit) { }11550 this.unknownFields = builder.getUnknownFields(); 11551 } 11552 private Relation(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 11450 11553 11451 11554 private static final Relation defaultInstance; … … 11458 11561 } 11459 11562 11563 private final com.google.protobuf.ByteString unknownFields; 11460 11564 private Relation( 11461 11565 com.google.protobuf.CodedInputStream input, … … 11464 11568 initFields(); 11465 11569 int mutable_bitField0_ = 0; 11570 com.google.protobuf.ByteString.Output unknownFieldsOutput = 11571 com.google.protobuf.ByteString.newOutput(); 11572 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 11573 com.google.protobuf.CodedOutputStream.newInstance( 11574 unknownFieldsOutput); 11466 11575 try { 11467 11576 boolean done = false; … … 11473 11582 break; 11474 11583 default: { 11475 if (!parseUnknownField(input, 11584 if (!parseUnknownField(input, unknownFieldsCodedOutput, 11476 11585 extensionRegistry, tag)) { 11477 11586 done = true; … … 11584 11693 int rawValue = input.readEnum(); 11585 11694 crosby.binary.Osmformat.Relation.MemberType value = crosby.binary.Osmformat.Relation.MemberType.valueOf(rawValue); 11586 if (value != null) { 11695 if (value == null) { 11696 unknownFieldsCodedOutput.writeRawVarint32(tag); 11697 unknownFieldsCodedOutput.writeRawVarint32(rawValue); 11698 } else { 11587 11699 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 11588 11700 types_ = new java.util.ArrayList<crosby.binary.Osmformat.Relation.MemberType>(); … … 11599 11711 int rawValue = input.readEnum(); 11600 11712 crosby.binary.Osmformat.Relation.MemberType value = crosby.binary.Osmformat.Relation.MemberType.valueOf(rawValue); 11601 if (value != null) { 11713 if (value == null) { 11714 unknownFieldsCodedOutput.writeRawVarint32(tag); 11715 unknownFieldsCodedOutput.writeRawVarint32(rawValue); 11716 } else { 11602 11717 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 11603 11718 types_ = new java.util.ArrayList<crosby.binary.Osmformat.Relation.MemberType>(); … … 11633 11748 types_ = java.util.Collections.unmodifiableList(types_); 11634 11749 } 11750 try { 11751 unknownFieldsCodedOutput.flush(); 11752 } catch (java.io.IOException e) { 11753 // Should not happen 11754 } finally { 11755 unknownFields = unknownFieldsOutput.toByteString(); 11756 } 11635 11757 makeExtensionsImmutable(); 11636 11758 } … … 11717 11839 11718 11840 private int bitField0_; 11719 // required int64 id = 1;11720 11841 public static final int ID_FIELD_NUMBER = 1; 11721 11842 private long id_; … … 11733 11854 } 11734 11855 11735 // repeated uint32 keys = 2 [packed = true];11736 11856 public static final int KEYS_FIELD_NUMBER = 2; 11737 11857 private java.util.List<java.lang.Integer> keys_; … … 11769 11889 private int keysMemoizedSerializedSize = -1; 11770 11890 11771 // repeated uint32 vals = 3 [packed = true];11772 11891 public static final int VALS_FIELD_NUMBER = 3; 11773 11892 private java.util.List<java.lang.Integer> vals_; … … 11793 11912 private int valsMemoizedSerializedSize = -1; 11794 11913 11795 // optional .OSMPBF.Info info = 4;11796 11914 public static final int INFO_FIELD_NUMBER = 4; 11797 11915 private crosby.binary.Osmformat.Info info_; … … 11809 11927 } 11810 11928 11811 // repeated int32 roles_sid = 8 [packed = true];11812 11929 public static final int ROLES_SID_FIELD_NUMBER = 8; 11813 11930 private java.util.List<java.lang.Integer> rolesSid_; … … 11845 11962 private int rolesSidMemoizedSerializedSize = -1; 11846 11963 11847 // repeated sint64 memids = 9 [packed = true];11848 11964 public static final int MEMIDS_FIELD_NUMBER = 9; 11849 11965 private java.util.List<java.lang.Long> memids_; … … 11881 11997 private int memidsMemoizedSerializedSize = -1; 11882 11998 11883 // repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];11884 11999 public static final int TYPES_FIELD_NUMBER = 10; 11885 12000 private java.util.List<crosby.binary.Osmformat.Relation.MemberType> types_; … … 11916 12031 public final boolean isInitialized() { 11917 12032 byte isInitialized = memoizedIsInitialized; 11918 if (isInitialized != -1) return isInitialized == 1; 12033 if (isInitialized == 1) return true; 12034 if (isInitialized == 0) return false; 11919 12035 11920 12036 if (!hasId()) { … … 11970 12086 output.writeEnumNoTag(types_.get(i).getNumber()); 11971 12087 } 12088 output.writeRawBytes(unknownFields); 11972 12089 } 11973 12090 … … 12054 12171 }typesMemoizedSerializedSize = dataSize; 12055 12172 } 12173 size += unknownFields.size(); 12056 12174 memoizedSerializedSize = size; 12057 12175 return size; … … 12131 12249 com.google.protobuf.GeneratedMessageLite.Builder< 12132 12250 crosby.binary.Osmformat.Relation, Builder> 12133 implements crosby.binary.Osmformat.RelationOrBuilder { 12251 implements 12252 // @@protoc_insertion_point(builder_implements:OSMPBF.Relation) 12253 crosby.binary.Osmformat.RelationOrBuilder { 12134 12254 // Construct using crosby.binary.Osmformat.Relation.newBuilder() 12135 12255 private Builder() { … … 12277 12397 12278 12398 } 12399 setUnknownFields( 12400 getUnknownFields().concat(other.unknownFields)); 12279 12401 return this; 12280 12402 } … … 12307 12429 private int bitField0_; 12308 12430 12309 // required int64 id = 1;12310 12431 private long id_ ; 12311 12432 /** … … 12340 12461 } 12341 12462 12342 // repeated uint32 keys = 2 [packed = true];12343 12463 private java.util.List<java.lang.Integer> keys_ = java.util.Collections.emptyList(); 12344 12464 private void ensureKeysIsMutable() { … … 12416 12536 java.lang.Iterable<? extends java.lang.Integer> values) { 12417 12537 ensureKeysIsMutable(); 12418 super.addAll(values, keys_); 12538 com.google.protobuf.AbstractMessageLite.Builder.addAll( 12539 values, keys_); 12419 12540 12420 12541 return this; … … 12434 12555 } 12435 12556 12436 // repeated uint32 vals = 3 [packed = true];12437 12557 private java.util.List<java.lang.Integer> vals_ = java.util.Collections.emptyList(); 12438 12558 private void ensureValsIsMutable() { … … 12486 12606 java.lang.Iterable<? extends java.lang.Integer> values) { 12487 12607 ensureValsIsMutable(); 12488 super.addAll(values, vals_); 12608 com.google.protobuf.AbstractMessageLite.Builder.addAll( 12609 values, vals_); 12489 12610 12490 12611 return this; … … 12500 12621 } 12501 12622 12502 // optional .OSMPBF.Info info = 4;12503 12623 private crosby.binary.Osmformat.Info info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 12504 12624 /** … … 12561 12681 } 12562 12682 12563 // repeated int32 roles_sid = 8 [packed = true];12564 12683 private java.util.List<java.lang.Integer> rolesSid_ = java.util.Collections.emptyList(); 12565 12684 private void ensureRolesSidIsMutable() { … … 12637 12756 java.lang.Iterable<? extends java.lang.Integer> values) { 12638 12757 ensureRolesSidIsMutable(); 12639 super.addAll(values, rolesSid_); 12758 com.google.protobuf.AbstractMessageLite.Builder.addAll( 12759 values, rolesSid_); 12640 12760 12641 12761 return this; … … 12655 12775 } 12656 12776 12657 // repeated sint64 memids = 9 [packed = true];12658 12777 private java.util.List<java.lang.Long> memids_ = java.util.Collections.emptyList(); 12659 12778 private void ensureMemidsIsMutable() { … … 12731 12850 java.lang.Iterable<? extends java.lang.Long> values) { 12732 12851 ensureMemidsIsMutable(); 12733 super.addAll(values, memids_); 12852 com.google.protobuf.AbstractMessageLite.Builder.addAll( 12853 values, memids_); 12734 12854 12735 12855 return this; … … 12749 12869 } 12750 12870 12751 // repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];12752 12871 private java.util.List<crosby.binary.Osmformat.Relation.MemberType> types_ = 12753 12872 java.util.Collections.emptyList(); … … 12807 12926 java.lang.Iterable<? extends crosby.binary.Osmformat.Relation.MemberType> values) { 12808 12927 ensureTypesIsMutable(); 12809 super.addAll(values, types_); 12928 com.google.protobuf.AbstractMessageLite.Builder.addAll( 12929 values, types_); 12810 12930 12811 12931 return this;
Note:
See TracChangeset
for help on using the changeset viewer.