Changeset 33772 in osm for applications/editors/josm/plugins/pbf/gen/crosby/binary/Osmformat.java
- Timestamp:
- 2017-11-04T21:50:31+01:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/pbf
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
gen/crosby/binary/Osmformat.java (modified) (385 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pbf
- Property svn:externals
-
old new 1 proto https://github.com/scrosby/OSM-binary/trunk/src 2 protobuf https://github.com/google/protobuf/tags/v2.6.1/src/google/protobuf/ 1 https://github.com/scrosby/OSM-binary/trunk/src proto 2 https://github.com/google/protobuf/tags/v3.4.1/src/google/protobuf protobuf
-
- Property svn:externals
-
applications/editors/josm/plugins/pbf/gen/crosby/binary/Osmformat.java
r31905 r33772 23 23 24 24 /** 25 * <pre> 26 * Additional tags to aid in parsing this dataset 27 * </pre> 28 * 25 29 * <code>repeated string required_features = 4;</code> 26 * 27 * <pre> 28 * Additional tags to aid in parsing this dataset 29 * </pre> 30 */ 31 com.google.protobuf.ProtocolStringList 30 */ 31 java.util.List<java.lang.String> 32 32 getRequiredFeaturesList(); 33 33 /** 34 * <pre> 35 * Additional tags to aid in parsing this dataset 36 * </pre> 37 * 34 38 * <code>repeated string required_features = 4;</code> 35 *36 * <pre>37 * Additional tags to aid in parsing this dataset38 * </pre>39 39 */ 40 40 int getRequiredFeaturesCount(); 41 41 /** 42 * <pre> 43 * Additional tags to aid in parsing this dataset 44 * </pre> 45 * 42 46 * <code>repeated string required_features = 4;</code> 43 *44 * <pre>45 * Additional tags to aid in parsing this dataset46 * </pre>47 47 */ 48 48 java.lang.String getRequiredFeatures(int index); 49 49 /** 50 * <pre> 51 * Additional tags to aid in parsing this dataset 52 * </pre> 53 * 50 54 * <code>repeated string required_features = 4;</code> 51 *52 * <pre>53 * Additional tags to aid in parsing this dataset54 * </pre>55 55 */ 56 56 com.google.protobuf.ByteString … … 60 60 * <code>repeated string optional_features = 5;</code> 61 61 */ 62 com.google.protobuf.ProtocolStringList62 java.util.List<java.lang.String> 63 63 getOptionalFeaturesList(); 64 64 /** … … 91 91 92 92 /** 93 * <pre> 94 * From the bbox field. 95 * </pre> 96 * 93 97 * <code>optional string source = 17;</code> 94 * 98 */ 99 boolean hasSource(); 100 /** 95 101 * <pre> 96 102 * From the bbox field. 97 103 * </pre> 98 */ 99 boolean hasSource(); 100 /** 104 * 101 105 * <code>optional string source = 17;</code> 102 * 106 */ 107 java.lang.String getSource(); 108 /** 103 109 * <pre> 104 110 * From the bbox field. 105 111 * </pre> 106 */ 107 java.lang.String getSource(); 108 /** 112 * 109 113 * <code>optional string source = 17;</code> 110 *111 * <pre>112 * From the bbox field.113 * </pre>114 114 */ 115 115 com.google.protobuf.ByteString … … 117 117 118 118 /** 119 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 120 * 121 * <pre> 122 * replication timestamp, expressed in seconds since the epoch, 119 * <pre> 120 * replication timestamp, expressed in seconds since the epoch, 123 121 * otherwise the same value as in the "timestamp=..." field 124 122 * in the state.txt file used by Osmosis 125 123 * </pre> 124 * 125 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 126 126 */ 127 127 boolean hasOsmosisReplicationTimestamp(); 128 128 /** 129 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 130 * 131 * <pre> 132 * replication timestamp, expressed in seconds since the epoch, 129 * <pre> 130 * replication timestamp, expressed in seconds since the epoch, 133 131 * otherwise the same value as in the "timestamp=..." field 134 132 * in the state.txt file used by Osmosis 135 133 * </pre> 134 * 135 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 136 136 */ 137 137 long getOsmosisReplicationTimestamp(); 138 138 139 139 /** 140 * <pre> 141 * replication sequence number (sequenceNumber in state.txt) 142 * </pre> 143 * 140 144 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 141 * 145 */ 146 boolean hasOsmosisReplicationSequenceNumber(); 147 /** 142 148 * <pre> 143 149 * replication sequence number (sequenceNumber in state.txt) 144 150 * </pre> 145 */ 146 boolean hasOsmosisReplicationSequenceNumber(); 147 /** 151 * 148 152 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 149 *150 * <pre>151 * replication sequence number (sequenceNumber in state.txt)152 * </pre>153 153 */ 154 154 long getOsmosisReplicationSequenceNumber(); 155 155 156 156 /** 157 * <pre> 158 * replication base URL (from Osmosis' configuration.txt file) 159 * </pre> 160 * 157 161 * <code>optional string osmosis_replication_base_url = 34;</code> 158 * 162 */ 163 boolean hasOsmosisReplicationBaseUrl(); 164 /** 159 165 * <pre> 160 166 * replication base URL (from Osmosis' configuration.txt file) 161 167 * </pre> 162 */ 163 boolean hasOsmosisReplicationBaseUrl(); 164 /** 168 * 165 169 * <code>optional string osmosis_replication_base_url = 34;</code> 166 * 170 */ 171 java.lang.String getOsmosisReplicationBaseUrl(); 172 /** 167 173 * <pre> 168 174 * replication base URL (from Osmosis' configuration.txt file) 169 175 * </pre> 170 */ 171 java.lang.String getOsmosisReplicationBaseUrl(); 172 /** 176 * 173 177 * <code>optional string osmosis_replication_base_url = 34;</code> 174 *175 * <pre>176 * replication base URL (from Osmosis' configuration.txt file)177 * </pre>178 178 */ 179 179 com.google.protobuf.ByteString … … 183 183 * Protobuf type {@code OSMPBF.HeaderBlock} 184 184 */ 185 public static final class HeaderBlock extends 186 com.google.protobuf.GeneratedMessageLite implements 185 public static final class HeaderBlock extends 186 com.google.protobuf.GeneratedMessageLite< 187 HeaderBlock, HeaderBlock.Builder> implements 187 188 // @@protoc_insertion_point(message_implements:OSMPBF.HeaderBlock) 188 189 HeaderBlockOrBuilder { 189 // Use HeaderBlock.newBuilder() to construct. 190 private HeaderBlock(com.google.protobuf.GeneratedMessageLite.Builder builder) { 191 super(builder); 192 this.unknownFields = builder.getUnknownFields(); 193 } 194 private HeaderBlock(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 195 196 private static final HeaderBlock defaultInstance; 197 public static HeaderBlock getDefaultInstance() { 198 return defaultInstance; 199 } 200 201 @Override 202 public HeaderBlock getDefaultInstanceForType() { 203 return defaultInstance; 204 } 205 206 private final com.google.protobuf.ByteString unknownFields; 207 private HeaderBlock( 208 com.google.protobuf.CodedInputStream input, 209 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 210 throws com.google.protobuf.InvalidProtocolBufferException { 211 initFields(); 212 int mutable_bitField0_ = 0; 213 com.google.protobuf.ByteString.Output unknownFieldsOutput = 214 com.google.protobuf.ByteString.newOutput(); 215 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 216 com.google.protobuf.CodedOutputStream.newInstance( 217 unknownFieldsOutput); 218 try { 219 boolean done = false; 220 while (!done) { 221 int tag = input.readTag(); 222 switch (tag) { 223 case 0: 224 done = true; 225 break; 226 default: { 227 if (!parseUnknownField(input, unknownFieldsCodedOutput, 228 extensionRegistry, tag)) { 229 done = true; 230 } 231 break; 232 } 233 case 10: { 234 crosby.binary.Osmformat.HeaderBBox.Builder subBuilder = null; 235 if (((bitField0_ & 0x00000001) == 0x00000001)) { 236 subBuilder = bbox_.toBuilder(); 237 } 238 bbox_ = input.readMessage(crosby.binary.Osmformat.HeaderBBox.PARSER, extensionRegistry); 239 if (subBuilder != null) { 240 subBuilder.mergeFrom(bbox_); 241 bbox_ = subBuilder.buildPartial(); 242 } 243 bitField0_ |= 0x00000001; 244 break; 245 } 246 case 34: { 247 com.google.protobuf.ByteString bs = input.readBytes(); 248 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 249 requiredFeatures_ = new com.google.protobuf.LazyStringArrayList(); 250 mutable_bitField0_ |= 0x00000002; 251 } 252 requiredFeatures_.add(bs); 253 break; 254 } 255 case 42: { 256 com.google.protobuf.ByteString bs = input.readBytes(); 257 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 258 optionalFeatures_ = new com.google.protobuf.LazyStringArrayList(); 259 mutable_bitField0_ |= 0x00000004; 260 } 261 optionalFeatures_.add(bs); 262 break; 263 } 264 case 130: { 265 com.google.protobuf.ByteString bs = input.readBytes(); 266 bitField0_ |= 0x00000002; 267 writingprogram_ = bs; 268 break; 269 } 270 case 138: { 271 com.google.protobuf.ByteString bs = input.readBytes(); 272 bitField0_ |= 0x00000004; 273 source_ = bs; 274 break; 275 } 276 case 256: { 277 bitField0_ |= 0x00000008; 278 osmosisReplicationTimestamp_ = input.readInt64(); 279 break; 280 } 281 case 264: { 282 bitField0_ |= 0x00000010; 283 osmosisReplicationSequenceNumber_ = input.readInt64(); 284 break; 285 } 286 case 274: { 287 com.google.protobuf.ByteString bs = input.readBytes(); 288 bitField0_ |= 0x00000020; 289 osmosisReplicationBaseUrl_ = bs; 290 break; 291 } 292 } 293 } 294 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 295 throw e.setUnfinishedMessage(this); 296 } catch (java.io.IOException e) { 297 throw new com.google.protobuf.InvalidProtocolBufferException( 298 e.getMessage()).setUnfinishedMessage(this); 299 } finally { 300 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 301 requiredFeatures_ = requiredFeatures_.getUnmodifiableView(); 302 } 303 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 304 optionalFeatures_ = optionalFeatures_.getUnmodifiableView(); 305 } 306 try { 307 unknownFieldsCodedOutput.flush(); 308 } catch (java.io.IOException e) { 309 // Should not happen 310 } finally { 311 unknownFields = unknownFieldsOutput.toByteString(); 312 } 313 makeExtensionsImmutable(); 314 } 315 } 316 public static com.google.protobuf.Parser<HeaderBlock> PARSER = 317 new com.google.protobuf.AbstractParser<HeaderBlock>() { 318 @Override 319 public HeaderBlock parsePartialFrom( 320 com.google.protobuf.CodedInputStream input, 321 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 322 throws com.google.protobuf.InvalidProtocolBufferException { 323 return new HeaderBlock(input, extensionRegistry); 324 } 325 }; 326 327 @java.lang.Override 328 public com.google.protobuf.Parser<HeaderBlock> getParserForType() { 329 return PARSER; 330 } 331 190 private HeaderBlock() { 191 requiredFeatures_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); 192 optionalFeatures_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); 193 writingprogram_ = ""; 194 source_ = ""; 195 osmosisReplicationBaseUrl_ = ""; 196 } 332 197 private int bitField0_; 333 198 public static final int BBOX_FIELD_NUMBER = 1; … … 336 201 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 337 202 */ 338 @Override 339 public boolean hasBbox() { 203 public boolean hasBbox() { 340 204 return ((bitField0_ & 0x00000001) == 0x00000001); 341 205 } … … 343 207 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 344 208 */ 345 @Override 346 public crosby.binary.Osmformat.HeaderBBox getBbox() { 347 return bbox_; 209 public crosby.binary.Osmformat.HeaderBBox getBbox() { 210 return bbox_ == null ? crosby.binary.Osmformat.HeaderBBox.getDefaultInstance() : bbox_; 211 } 212 /** 213 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 214 */ 215 private void setBbox(crosby.binary.Osmformat.HeaderBBox value) { 216 if (value == null) { 217 throw new NullPointerException(); 218 } 219 bbox_ = value; 220 bitField0_ |= 0x00000001; 221 } 222 /** 223 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 224 */ 225 private void setBbox( 226 crosby.binary.Osmformat.HeaderBBox.Builder builderForValue) { 227 bbox_ = builderForValue.build(); 228 bitField0_ |= 0x00000001; 229 } 230 /** 231 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 232 */ 233 private void mergeBbox(crosby.binary.Osmformat.HeaderBBox value) { 234 if (bbox_ != null && 235 bbox_ != crosby.binary.Osmformat.HeaderBBox.getDefaultInstance()) { 236 bbox_ = 237 crosby.binary.Osmformat.HeaderBBox.newBuilder(bbox_).mergeFrom(value).buildPartial(); 238 } else { 239 bbox_ = value; 240 } 241 bitField0_ |= 0x00000001; 242 } 243 /** 244 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 245 */ 246 private void clearBbox() { bbox_ = null; 247 bitField0_ = (bitField0_ & ~0x00000001); 348 248 } 349 249 350 250 public static final int REQUIRED_FEATURES_FIELD_NUMBER = 4; 351 private com.google.protobuf.LazyStringList requiredFeatures_; 352 /** 251 private com.google.protobuf.Internal.ProtobufList<java.lang.String> requiredFeatures_; 252 /** 253 * <pre> 254 * Additional tags to aid in parsing this dataset 255 * </pre> 256 * 353 257 * <code>repeated string required_features = 4;</code> 354 * 355 * <pre> 356 * Additional tags to aid in parsing this dataset 357 * </pre> 358 */ 359 @Override 360 public com.google.protobuf.ProtocolStringList 361 getRequiredFeaturesList() { 258 */ 259 public java.util.List<java.lang.String> getRequiredFeaturesList() { 362 260 return requiredFeatures_; 363 261 } 364 262 /** 263 * <pre> 264 * Additional tags to aid in parsing this dataset 265 * </pre> 266 * 365 267 * <code>repeated string required_features = 4;</code> 366 * 367 * <pre> 368 * Additional tags to aid in parsing this dataset 369 * </pre> 370 */ 371 @Override 372 public int getRequiredFeaturesCount() { 268 */ 269 public int getRequiredFeaturesCount() { 373 270 return requiredFeatures_.size(); 374 271 } 375 272 /** 273 * <pre> 274 * Additional tags to aid in parsing this dataset 275 * </pre> 276 * 376 277 * <code>repeated string required_features = 4;</code> 377 * 378 * <pre> 379 * Additional tags to aid in parsing this dataset 380 * </pre> 381 */ 382 @Override 383 public java.lang.String getRequiredFeatures(int index) { 278 */ 279 public java.lang.String getRequiredFeatures(int index) { 384 280 return requiredFeatures_.get(index); 385 281 } 386 282 /** 283 * <pre> 284 * Additional tags to aid in parsing this dataset 285 * </pre> 286 * 387 287 * <code>repeated string required_features = 4;</code> 388 * 389 * <pre> 390 * Additional tags to aid in parsing this dataset 391 * </pre> 392 */ 393 @Override 394 public com.google.protobuf.ByteString 288 */ 289 public com.google.protobuf.ByteString 395 290 getRequiredFeaturesBytes(int index) { 396 return requiredFeatures_.getByteString(index); 291 return com.google.protobuf.ByteString.copyFromUtf8( 292 requiredFeatures_.get(index)); 293 } 294 private void ensureRequiredFeaturesIsMutable() { 295 if (!requiredFeatures_.isModifiable()) { 296 requiredFeatures_ = 297 com.google.protobuf.GeneratedMessageLite.mutableCopy(requiredFeatures_); 298 } 299 } 300 /** 301 * <pre> 302 * Additional tags to aid in parsing this dataset 303 * </pre> 304 * 305 * <code>repeated string required_features = 4;</code> 306 */ 307 private void setRequiredFeatures( 308 int index, java.lang.String value) { 309 if (value == null) { 310 throw new NullPointerException(); 311 } 312 ensureRequiredFeaturesIsMutable(); 313 requiredFeatures_.set(index, value); 314 } 315 /** 316 * <pre> 317 * Additional tags to aid in parsing this dataset 318 * </pre> 319 * 320 * <code>repeated string required_features = 4;</code> 321 */ 322 private void addRequiredFeatures( 323 java.lang.String value) { 324 if (value == null) { 325 throw new NullPointerException(); 326 } 327 ensureRequiredFeaturesIsMutable(); 328 requiredFeatures_.add(value); 329 } 330 /** 331 * <pre> 332 * Additional tags to aid in parsing this dataset 333 * </pre> 334 * 335 * <code>repeated string required_features = 4;</code> 336 */ 337 private void addAllRequiredFeatures( 338 java.lang.Iterable<java.lang.String> values) { 339 ensureRequiredFeaturesIsMutable(); 340 com.google.protobuf.AbstractMessageLite.addAll( 341 values, requiredFeatures_); 342 } 343 /** 344 * <pre> 345 * Additional tags to aid in parsing this dataset 346 * </pre> 347 * 348 * <code>repeated string required_features = 4;</code> 349 */ 350 private void clearRequiredFeatures() { 351 requiredFeatures_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); 352 } 353 /** 354 * <pre> 355 * Additional tags to aid in parsing this dataset 356 * </pre> 357 * 358 * <code>repeated string required_features = 4;</code> 359 */ 360 private void addRequiredFeaturesBytes( 361 com.google.protobuf.ByteString value) { 362 if (value == null) { 363 throw new NullPointerException(); 364 } 365 ensureRequiredFeaturesIsMutable(); 366 requiredFeatures_.add(value.toStringUtf8()); 397 367 } 398 368 399 369 public static final int OPTIONAL_FEATURES_FIELD_NUMBER = 5; 400 private com.google.protobuf. LazyStringListoptionalFeatures_;370 private com.google.protobuf.Internal.ProtobufList<java.lang.String> optionalFeatures_; 401 371 /** 402 372 * <code>repeated string optional_features = 5;</code> 403 373 */ 404 @Override 405 public com.google.protobuf.ProtocolStringList 406 getOptionalFeaturesList() { 374 public java.util.List<java.lang.String> getOptionalFeaturesList() { 407 375 return optionalFeatures_; 408 376 } … … 410 378 * <code>repeated string optional_features = 5;</code> 411 379 */ 412 @Override 413 public int getOptionalFeaturesCount() { 380 public int getOptionalFeaturesCount() { 414 381 return optionalFeatures_.size(); 415 382 } … … 417 384 * <code>repeated string optional_features = 5;</code> 418 385 */ 419 @Override 420 public java.lang.String getOptionalFeatures(int index) { 386 public java.lang.String getOptionalFeatures(int index) { 421 387 return optionalFeatures_.get(index); 422 388 } … … 424 390 * <code>repeated string optional_features = 5;</code> 425 391 */ 426 @Override 427 public com.google.protobuf.ByteString 392 public com.google.protobuf.ByteString 428 393 getOptionalFeaturesBytes(int index) { 429 return optionalFeatures_.getByteString(index); 394 return com.google.protobuf.ByteString.copyFromUtf8( 395 optionalFeatures_.get(index)); 396 } 397 private void ensureOptionalFeaturesIsMutable() { 398 if (!optionalFeatures_.isModifiable()) { 399 optionalFeatures_ = 400 com.google.protobuf.GeneratedMessageLite.mutableCopy(optionalFeatures_); 401 } 402 } 403 /** 404 * <code>repeated string optional_features = 5;</code> 405 */ 406 private void setOptionalFeatures( 407 int index, java.lang.String value) { 408 if (value == null) { 409 throw new NullPointerException(); 410 } 411 ensureOptionalFeaturesIsMutable(); 412 optionalFeatures_.set(index, value); 413 } 414 /** 415 * <code>repeated string optional_features = 5;</code> 416 */ 417 private void addOptionalFeatures( 418 java.lang.String value) { 419 if (value == null) { 420 throw new NullPointerException(); 421 } 422 ensureOptionalFeaturesIsMutable(); 423 optionalFeatures_.add(value); 424 } 425 /** 426 * <code>repeated string optional_features = 5;</code> 427 */ 428 private void addAllOptionalFeatures( 429 java.lang.Iterable<java.lang.String> values) { 430 ensureOptionalFeaturesIsMutable(); 431 com.google.protobuf.AbstractMessageLite.addAll( 432 values, optionalFeatures_); 433 } 434 /** 435 * <code>repeated string optional_features = 5;</code> 436 */ 437 private void clearOptionalFeatures() { 438 optionalFeatures_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); 439 } 440 /** 441 * <code>repeated string optional_features = 5;</code> 442 */ 443 private void addOptionalFeaturesBytes( 444 com.google.protobuf.ByteString value) { 445 if (value == null) { 446 throw new NullPointerException(); 447 } 448 ensureOptionalFeaturesIsMutable(); 449 optionalFeatures_.add(value.toStringUtf8()); 430 450 } 431 451 432 452 public static final int WRITINGPROGRAM_FIELD_NUMBER = 16; 433 private java.lang. Objectwritingprogram_;453 private java.lang.String writingprogram_; 434 454 /** 435 455 * <code>optional string writingprogram = 16;</code> 436 456 */ 437 @Override 438 public boolean hasWritingprogram() { 457 public boolean hasWritingprogram() { 439 458 return ((bitField0_ & 0x00000002) == 0x00000002); 440 459 } … … 442 461 * <code>optional string writingprogram = 16;</code> 443 462 */ 444 @Override 445 public java.lang.String getWritingprogram() { 446 java.lang.Object ref = writingprogram_; 447 if (ref instanceof java.lang.String) { 448 return (java.lang.String) ref; 449 } else { 450 com.google.protobuf.ByteString bs = 451 (com.google.protobuf.ByteString) ref; 452 java.lang.String s = bs.toStringUtf8(); 453 if (bs.isValidUtf8()) { 454 writingprogram_ = s; 455 } 456 return s; 457 } 463 public java.lang.String getWritingprogram() { 464 return writingprogram_; 458 465 } 459 466 /** 460 467 * <code>optional string writingprogram = 16;</code> 461 468 */ 462 @Override 463 public com.google.protobuf.ByteString 469 public com.google.protobuf.ByteString 464 470 getWritingprogramBytes() { 465 java.lang.Object ref = writingprogram_; 466 if (ref instanceof java.lang.String) { 467 com.google.protobuf.ByteString b = 468 com.google.protobuf.ByteString.copyFromUtf8( 469 (java.lang.String) ref); 470 writingprogram_ = b; 471 return b; 472 } else { 473 return (com.google.protobuf.ByteString) ref; 474 } 471 return com.google.protobuf.ByteString.copyFromUtf8(writingprogram_); 472 } 473 /** 474 * <code>optional string writingprogram = 16;</code> 475 */ 476 private void setWritingprogram( 477 java.lang.String value) { 478 if (value == null) { 479 throw new NullPointerException(); 480 } 481 bitField0_ |= 0x00000002; 482 writingprogram_ = value; 483 } 484 /** 485 * <code>optional string writingprogram = 16;</code> 486 */ 487 private void clearWritingprogram() { 488 bitField0_ = (bitField0_ & ~0x00000002); 489 writingprogram_ = getDefaultInstance().getWritingprogram(); 490 } 491 /** 492 * <code>optional string writingprogram = 16;</code> 493 */ 494 private void setWritingprogramBytes( 495 com.google.protobuf.ByteString value) { 496 if (value == null) { 497 throw new NullPointerException(); 498 } 499 bitField0_ |= 0x00000002; 500 writingprogram_ = value.toStringUtf8(); 475 501 } 476 502 477 503 public static final int SOURCE_FIELD_NUMBER = 17; 478 private java.lang.Object source_; 479 /** 504 private java.lang.String source_; 505 /** 506 * <pre> 507 * From the bbox field. 508 * </pre> 509 * 480 510 * <code>optional string source = 17;</code> 481 * 511 */ 512 public boolean hasSource() { 513 return ((bitField0_ & 0x00000004) == 0x00000004); 514 } 515 /** 482 516 * <pre> 483 517 * From the bbox field. 484 518 * </pre> 485 */ 486 @Override 487 public boolean hasSource() { 488 return ((bitField0_ & 0x00000004) == 0x00000004); 489 } 490 /** 519 * 491 520 * <code>optional string source = 17;</code> 492 * 521 */ 522 public java.lang.String getSource() { 523 return source_; 524 } 525 /** 493 526 * <pre> 494 527 * From the bbox field. 495 528 * </pre> 496 */ 497 @Override 498 public java.lang.String getSource() { 499 java.lang.Object ref = source_; 500 if (ref instanceof java.lang.String) { 501 return (java.lang.String) ref; 502 } else { 503 com.google.protobuf.ByteString bs = 504 (com.google.protobuf.ByteString) ref; 505 java.lang.String s = bs.toStringUtf8(); 506 if (bs.isValidUtf8()) { 507 source_ = s; 508 } 509 return s; 510 } 511 } 512 /** 529 * 513 530 * <code>optional string source = 17;</code> 514 * 531 */ 532 public com.google.protobuf.ByteString 533 getSourceBytes() { 534 return com.google.protobuf.ByteString.copyFromUtf8(source_); 535 } 536 /** 515 537 * <pre> 516 538 * From the bbox field. 517 539 * </pre> 518 */ 519 @Override 520 public com.google.protobuf.ByteString 521 getSourceBytes() { 522 java.lang.Object ref = source_; 523 if (ref instanceof java.lang.String) { 524 com.google.protobuf.ByteString b = 525 com.google.protobuf.ByteString.copyFromUtf8( 526 (java.lang.String) ref); 527 source_ = b; 528 return b; 529 } else { 530 return (com.google.protobuf.ByteString) ref; 531 } 540 * 541 * <code>optional string source = 17;</code> 542 */ 543 private void setSource( 544 java.lang.String value) { 545 if (value == null) { 546 throw new NullPointerException(); 547 } 548 bitField0_ |= 0x00000004; 549 source_ = value; 550 } 551 /** 552 * <pre> 553 * From the bbox field. 554 * </pre> 555 * 556 * <code>optional string source = 17;</code> 557 */ 558 private void clearSource() { 559 bitField0_ = (bitField0_ & ~0x00000004); 560 source_ = getDefaultInstance().getSource(); 561 } 562 /** 563 * <pre> 564 * From the bbox field. 565 * </pre> 566 * 567 * <code>optional string source = 17;</code> 568 */ 569 private void setSourceBytes( 570 com.google.protobuf.ByteString value) { 571 if (value == null) { 572 throw new NullPointerException(); 573 } 574 bitField0_ |= 0x00000004; 575 source_ = value.toStringUtf8(); 532 576 } 533 577 … … 535 579 private long osmosisReplicationTimestamp_; 536 580 /** 537 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 538 * 539 * <pre> 540 * replication timestamp, expressed in seconds since the epoch, 581 * <pre> 582 * replication timestamp, expressed in seconds since the epoch, 541 583 * otherwise the same value as in the "timestamp=..." field 542 584 * in the state.txt file used by Osmosis 543 585 * </pre> 544 */ 545 @Override 546 public boolean hasOsmosisReplicationTimestamp() { 586 * 587 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 588 */ 589 public boolean hasOsmosisReplicationTimestamp() { 547 590 return ((bitField0_ & 0x00000008) == 0x00000008); 548 591 } 549 592 /** 550 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 551 * 552 * <pre> 553 * replication timestamp, expressed in seconds since the epoch, 593 * <pre> 594 * replication timestamp, expressed in seconds since the epoch, 554 595 * otherwise the same value as in the "timestamp=..." field 555 596 * in the state.txt file used by Osmosis 556 597 * </pre> 557 */ 558 @Override 559 public long getOsmosisReplicationTimestamp() { 598 * 599 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 600 */ 601 public long getOsmosisReplicationTimestamp() { 560 602 return osmosisReplicationTimestamp_; 603 } 604 /** 605 * <pre> 606 * replication timestamp, expressed in seconds since the epoch, 607 * otherwise the same value as in the "timestamp=..." field 608 * in the state.txt file used by Osmosis 609 * </pre> 610 * 611 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 612 */ 613 private void setOsmosisReplicationTimestamp(long value) { 614 bitField0_ |= 0x00000008; 615 osmosisReplicationTimestamp_ = value; 616 } 617 /** 618 * <pre> 619 * replication timestamp, expressed in seconds since the epoch, 620 * otherwise the same value as in the "timestamp=..." field 621 * in the state.txt file used by Osmosis 622 * </pre> 623 * 624 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 625 */ 626 private void clearOsmosisReplicationTimestamp() { 627 bitField0_ = (bitField0_ & ~0x00000008); 628 osmosisReplicationTimestamp_ = 0L; 561 629 } 562 630 … … 564 632 private long osmosisReplicationSequenceNumber_; 565 633 /** 634 * <pre> 635 * replication sequence number (sequenceNumber in state.txt) 636 * </pre> 637 * 566 638 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 567 * 639 */ 640 public boolean hasOsmosisReplicationSequenceNumber() { 641 return ((bitField0_ & 0x00000010) == 0x00000010); 642 } 643 /** 568 644 * <pre> 569 645 * replication sequence number (sequenceNumber in state.txt) 570 646 * </pre> 571 */ 572 @Override 573 public boolean hasOsmosisReplicationSequenceNumber() { 574 return ((bitField0_ & 0x00000010) == 0x00000010); 575 } 576 /** 647 * 577 648 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 578 * 649 */ 650 public long getOsmosisReplicationSequenceNumber() { 651 return osmosisReplicationSequenceNumber_; 652 } 653 /** 579 654 * <pre> 580 655 * replication sequence number (sequenceNumber in state.txt) 581 656 * </pre> 582 */ 583 @Override 584 public long getOsmosisReplicationSequenceNumber() { 585 return osmosisReplicationSequenceNumber_; 657 * 658 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 659 */ 660 private void setOsmosisReplicationSequenceNumber(long value) { 661 bitField0_ |= 0x00000010; 662 osmosisReplicationSequenceNumber_ = value; 663 } 664 /** 665 * <pre> 666 * replication sequence number (sequenceNumber in state.txt) 667 * </pre> 668 * 669 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 670 */ 671 private void clearOsmosisReplicationSequenceNumber() { 672 bitField0_ = (bitField0_ & ~0x00000010); 673 osmosisReplicationSequenceNumber_ = 0L; 586 674 } 587 675 588 676 public static final int OSMOSIS_REPLICATION_BASE_URL_FIELD_NUMBER = 34; 589 private java.lang.Object osmosisReplicationBaseUrl_; 590 /** 677 private java.lang.String osmosisReplicationBaseUrl_; 678 /** 679 * <pre> 680 * replication base URL (from Osmosis' configuration.txt file) 681 * </pre> 682 * 591 683 * <code>optional string osmosis_replication_base_url = 34;</code> 592 * 684 */ 685 public boolean hasOsmosisReplicationBaseUrl() { 686 return ((bitField0_ & 0x00000020) == 0x00000020); 687 } 688 /** 593 689 * <pre> 594 690 * replication base URL (from Osmosis' configuration.txt file) 595 691 * </pre> 596 */ 597 @Override 598 public boolean hasOsmosisReplicationBaseUrl() { 599 return ((bitField0_ & 0x00000020) == 0x00000020); 600 } 601 /** 692 * 602 693 * <code>optional string osmosis_replication_base_url = 34;</code> 603 * 694 */ 695 public java.lang.String getOsmosisReplicationBaseUrl() { 696 return osmosisReplicationBaseUrl_; 697 } 698 /** 604 699 * <pre> 605 700 * replication base URL (from Osmosis' configuration.txt file) 606 701 * </pre> 607 */ 608 @Override 609 public java.lang.String getOsmosisReplicationBaseUrl() { 610 java.lang.Object ref = osmosisReplicationBaseUrl_; 611 if (ref instanceof java.lang.String) { 612 return (java.lang.String) ref; 613 } else { 614 com.google.protobuf.ByteString bs = 615 (com.google.protobuf.ByteString) ref; 616 java.lang.String s = bs.toStringUtf8(); 617 if (bs.isValidUtf8()) { 618 osmosisReplicationBaseUrl_ = s; 619 } 620 return s; 621 } 622 } 623 /** 702 * 624 703 * <code>optional string osmosis_replication_base_url = 34;</code> 625 * 704 */ 705 public com.google.protobuf.ByteString 706 getOsmosisReplicationBaseUrlBytes() { 707 return com.google.protobuf.ByteString.copyFromUtf8(osmosisReplicationBaseUrl_); 708 } 709 /** 626 710 * <pre> 627 711 * replication base URL (from Osmosis' configuration.txt file) 628 712 * </pre> 629 */ 630 @Override 631 public com.google.protobuf.ByteString 632 getOsmosisReplicationBaseUrlBytes() { 633 java.lang.Object ref = osmosisReplicationBaseUrl_; 634 if (ref instanceof java.lang.String) { 635 com.google.protobuf.ByteString b = 636 com.google.protobuf.ByteString.copyFromUtf8( 637 (java.lang.String) ref); 638 osmosisReplicationBaseUrl_ = b; 639 return b; 640 } else { 641 return (com.google.protobuf.ByteString) ref; 642 } 643 } 644 645 private void initFields() { 646 bbox_ = crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); 647 requiredFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 648 optionalFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 649 writingprogram_ = ""; 650 source_ = ""; 651 osmosisReplicationTimestamp_ = 0L; 652 osmosisReplicationSequenceNumber_ = 0L; 653 osmosisReplicationBaseUrl_ = ""; 654 } 655 private byte memoizedIsInitialized = -1; 656 @Override 657 public final boolean isInitialized() { 658 byte isInitialized = memoizedIsInitialized; 659 if (isInitialized == 1) return true; 660 if (isInitialized == 0) return false; 661 662 if (hasBbox()) { 663 if (!getBbox().isInitialized()) { 664 memoizedIsInitialized = 0; 665 return false; 666 } 667 } 668 memoizedIsInitialized = 1; 669 return true; 670 } 671 672 @Override 673 public void writeTo(com.google.protobuf.CodedOutputStream output) 713 * 714 * <code>optional string osmosis_replication_base_url = 34;</code> 715 */ 716 private void setOsmosisReplicationBaseUrl( 717 java.lang.String value) { 718 if (value == null) { 719 throw new NullPointerException(); 720 } 721 bitField0_ |= 0x00000020; 722 osmosisReplicationBaseUrl_ = value; 723 } 724 /** 725 * <pre> 726 * replication base URL (from Osmosis' configuration.txt file) 727 * </pre> 728 * 729 * <code>optional string osmosis_replication_base_url = 34;</code> 730 */ 731 private void clearOsmosisReplicationBaseUrl() { 732 bitField0_ = (bitField0_ & ~0x00000020); 733 osmosisReplicationBaseUrl_ = getDefaultInstance().getOsmosisReplicationBaseUrl(); 734 } 735 /** 736 * <pre> 737 * replication base URL (from Osmosis' configuration.txt file) 738 * </pre> 739 * 740 * <code>optional string osmosis_replication_base_url = 34;</code> 741 */ 742 private void setOsmosisReplicationBaseUrlBytes( 743 com.google.protobuf.ByteString value) { 744 if (value == null) { 745 throw new NullPointerException(); 746 } 747 bitField0_ |= 0x00000020; 748 osmosisReplicationBaseUrl_ = value.toStringUtf8(); 749 } 750 751 public void writeTo(com.google.protobuf.CodedOutputStream output) 674 752 throws java.io.IOException { 675 getSerializedSize();676 753 if (((bitField0_ & 0x00000001) == 0x00000001)) { 677 output.writeMessage(1, bbox_);754 output.writeMessage(1, getBbox()); 678 755 } 679 756 for (int i = 0; i < requiredFeatures_.size(); i++) { 680 output.write Bytes(4, requiredFeatures_.getByteString(i));757 output.writeString(4, requiredFeatures_.get(i)); 681 758 } 682 759 for (int i = 0; i < optionalFeatures_.size(); i++) { 683 output.write Bytes(5, optionalFeatures_.getByteString(i));760 output.writeString(5, optionalFeatures_.get(i)); 684 761 } 685 762 if (((bitField0_ & 0x00000002) == 0x00000002)) { 686 output.write Bytes(16, getWritingprogramBytes());763 output.writeString(16, getWritingprogram()); 687 764 } 688 765 if (((bitField0_ & 0x00000004) == 0x00000004)) { 689 output.write Bytes(17, getSourceBytes());766 output.writeString(17, getSource()); 690 767 } 691 768 if (((bitField0_ & 0x00000008) == 0x00000008)) { … … 696 773 } 697 774 if (((bitField0_ & 0x00000020) == 0x00000020)) { 698 output.writeBytes(34, getOsmosisReplicationBaseUrlBytes()); 699 } 700 output.writeRawBytes(unknownFields); 701 } 702 703 private int memoizedSerializedSize = -1; 704 @Override 705 public int getSerializedSize() { 775 output.writeString(34, getOsmosisReplicationBaseUrl()); 776 } 777 unknownFields.writeTo(output); 778 } 779 780 public int getSerializedSize() { 706 781 int size = memoizedSerializedSize; 707 782 if (size != -1) return size; … … 710 785 if (((bitField0_ & 0x00000001) == 0x00000001)) { 711 786 size += com.google.protobuf.CodedOutputStream 712 .computeMessageSize(1, bbox_);787 .computeMessageSize(1, getBbox()); 713 788 } 714 789 { … … 716 791 for (int i = 0; i < requiredFeatures_.size(); i++) { 717 792 dataSize += com.google.protobuf.CodedOutputStream 718 .compute BytesSizeNoTag(requiredFeatures_.getByteString(i));793 .computeStringSizeNoTag(requiredFeatures_.get(i)); 719 794 } 720 795 size += dataSize; … … 725 800 for (int i = 0; i < optionalFeatures_.size(); i++) { 726 801 dataSize += com.google.protobuf.CodedOutputStream 727 .compute BytesSizeNoTag(optionalFeatures_.getByteString(i));802 .computeStringSizeNoTag(optionalFeatures_.get(i)); 728 803 } 729 804 size += dataSize; … … 732 807 if (((bitField0_ & 0x00000002) == 0x00000002)) { 733 808 size += com.google.protobuf.CodedOutputStream 734 .compute BytesSize(16, getWritingprogramBytes());809 .computeStringSize(16, getWritingprogram()); 735 810 } 736 811 if (((bitField0_ & 0x00000004) == 0x00000004)) { 737 812 size += com.google.protobuf.CodedOutputStream 738 .compute BytesSize(17, getSourceBytes());813 .computeStringSize(17, getSource()); 739 814 } 740 815 if (((bitField0_ & 0x00000008) == 0x00000008)) { … … 748 823 if (((bitField0_ & 0x00000020) == 0x00000020)) { 749 824 size += com.google.protobuf.CodedOutputStream 750 .compute BytesSize(34, getOsmosisReplicationBaseUrlBytes());751 } 752 size += unknownFields. size();825 .computeStringSize(34, getOsmosisReplicationBaseUrl()); 826 } 827 size += unknownFields.getSerializedSize(); 753 828 memoizedSerializedSize = size; 754 829 return size; 755 830 } 756 831 757 private static final long serialVersionUID = 0L; 758 @java.lang.Override 759 protected java.lang.Object writeReplace() 760 throws java.io.ObjectStreamException { 761 return super.writeReplace(); 762 } 763 832 public static crosby.binary.Osmformat.HeaderBlock parseFrom( 833 java.nio.ByteBuffer data) 834 throws com.google.protobuf.InvalidProtocolBufferException { 835 return com.google.protobuf.GeneratedMessageLite.parseFrom( 836 DEFAULT_INSTANCE, data); 837 } 838 public static crosby.binary.Osmformat.HeaderBlock parseFrom( 839 java.nio.ByteBuffer data, 840 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 841 throws com.google.protobuf.InvalidProtocolBufferException { 842 return com.google.protobuf.GeneratedMessageLite.parseFrom( 843 DEFAULT_INSTANCE, data, extensionRegistry); 844 } 764 845 public static crosby.binary.Osmformat.HeaderBlock parseFrom( 765 846 com.google.protobuf.ByteString data) 766 847 throws com.google.protobuf.InvalidProtocolBufferException { 767 return PARSER.parseFrom(data); 848 return com.google.protobuf.GeneratedMessageLite.parseFrom( 849 DEFAULT_INSTANCE, data); 768 850 } 769 851 public static crosby.binary.Osmformat.HeaderBlock parseFrom( … … 771 853 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 772 854 throws com.google.protobuf.InvalidProtocolBufferException { 773 return PARSER.parseFrom(data, extensionRegistry); 855 return com.google.protobuf.GeneratedMessageLite.parseFrom( 856 DEFAULT_INSTANCE, data, extensionRegistry); 774 857 } 775 858 public static crosby.binary.Osmformat.HeaderBlock parseFrom(byte[] data) 776 859 throws com.google.protobuf.InvalidProtocolBufferException { 777 return PARSER.parseFrom(data); 860 return com.google.protobuf.GeneratedMessageLite.parseFrom( 861 DEFAULT_INSTANCE, data); 778 862 } 779 863 public static crosby.binary.Osmformat.HeaderBlock parseFrom( … … 781 865 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 782 866 throws com.google.protobuf.InvalidProtocolBufferException { 783 return PARSER.parseFrom(data, extensionRegistry); 867 return com.google.protobuf.GeneratedMessageLite.parseFrom( 868 DEFAULT_INSTANCE, data, extensionRegistry); 784 869 } 785 870 public static crosby.binary.Osmformat.HeaderBlock parseFrom(java.io.InputStream input) 786 871 throws java.io.IOException { 787 return PARSER.parseFrom(input); 872 return com.google.protobuf.GeneratedMessageLite.parseFrom( 873 DEFAULT_INSTANCE, input); 788 874 } 789 875 public static crosby.binary.Osmformat.HeaderBlock parseFrom( … … 791 877 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 792 878 throws java.io.IOException { 793 return PARSER.parseFrom(input, extensionRegistry); 879 return com.google.protobuf.GeneratedMessageLite.parseFrom( 880 DEFAULT_INSTANCE, input, extensionRegistry); 794 881 } 795 882 public static crosby.binary.Osmformat.HeaderBlock parseDelimitedFrom(java.io.InputStream input) 796 883 throws java.io.IOException { 797 return PARSER.parseDelimitedFrom(input);884 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 798 885 } 799 886 public static crosby.binary.Osmformat.HeaderBlock parseDelimitedFrom( … … 801 888 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 802 889 throws java.io.IOException { 803 return PARSER.parseDelimitedFrom(input, extensionRegistry);890 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 804 891 } 805 892 public static crosby.binary.Osmformat.HeaderBlock parseFrom( 806 893 com.google.protobuf.CodedInputStream input) 807 894 throws java.io.IOException { 808 return PARSER.parseFrom(input); 895 return com.google.protobuf.GeneratedMessageLite.parseFrom( 896 DEFAULT_INSTANCE, input); 809 897 } 810 898 public static crosby.binary.Osmformat.HeaderBlock parseFrom( … … 812 900 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 813 901 throws java.io.IOException { 814 return PARSER.parseFrom(input, extensionRegistry); 815 } 816 817 public static Builder newBuilder() { return Builder.create(); } 818 @Override 819 public Builder newBuilderForType() { return newBuilder(); } 902 return com.google.protobuf.GeneratedMessageLite.parseFrom( 903 DEFAULT_INSTANCE, input, extensionRegistry); 904 } 905 906 public static Builder newBuilder() { 907 return DEFAULT_INSTANCE.toBuilder(); 908 } 820 909 public static Builder newBuilder(crosby.binary.Osmformat.HeaderBlock prototype) { 821 return newBuilder().mergeFrom(prototype); 822 } 823 @Override 824 public Builder toBuilder() { return newBuilder(this); } 910 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 911 } 825 912 826 913 /** … … 829 916 public static final class Builder extends 830 917 com.google.protobuf.GeneratedMessageLite.Builder< 831 crosby.binary.Osmformat.HeaderBlock, Builder> 832 implements 918 crosby.binary.Osmformat.HeaderBlock, Builder> implements 833 919 // @@protoc_insertion_point(builder_implements:OSMPBF.HeaderBlock) 834 920 crosby.binary.Osmformat.HeaderBlockOrBuilder { 835 921 // Construct using crosby.binary.Osmformat.HeaderBlock.newBuilder() 836 922 private Builder() { 837 maybeForceBuilderInitialization(); 838 } 839 840 private void maybeForceBuilderInitialization() { 841 } 842 private static Builder create() { 843 return new Builder(); 844 } 845 846 @Override 847 public Builder clear() { 848 super.clear(); 849 bbox_ = crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); 850 bitField0_ = (bitField0_ & ~0x00000001); 851 requiredFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 852 bitField0_ = (bitField0_ & ~0x00000002); 853 optionalFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 854 bitField0_ = (bitField0_ & ~0x00000004); 855 writingprogram_ = ""; 856 bitField0_ = (bitField0_ & ~0x00000008); 857 source_ = ""; 858 bitField0_ = (bitField0_ & ~0x00000010); 859 osmosisReplicationTimestamp_ = 0L; 860 bitField0_ = (bitField0_ & ~0x00000020); 861 osmosisReplicationSequenceNumber_ = 0L; 862 bitField0_ = (bitField0_ & ~0x00000040); 863 osmosisReplicationBaseUrl_ = ""; 864 bitField0_ = (bitField0_ & ~0x00000080); 865 return this; 866 } 867 868 @Override 869 public Builder clone() { 870 return create().mergeFrom(buildPartial()); 871 } 872 873 @Override 874 public crosby.binary.Osmformat.HeaderBlock getDefaultInstanceForType() { 875 return crosby.binary.Osmformat.HeaderBlock.getDefaultInstance(); 876 } 877 878 @Override 879 public crosby.binary.Osmformat.HeaderBlock build() { 880 crosby.binary.Osmformat.HeaderBlock result = buildPartial(); 881 if (!result.isInitialized()) { 882 throw newUninitializedMessageException(result); 883 } 884 return result; 885 } 886 887 @Override 888 public crosby.binary.Osmformat.HeaderBlock buildPartial() { 889 crosby.binary.Osmformat.HeaderBlock result = new crosby.binary.Osmformat.HeaderBlock(this); 890 int from_bitField0_ = bitField0_; 891 int to_bitField0_ = 0; 892 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 893 to_bitField0_ |= 0x00000001; 894 } 895 result.bbox_ = bbox_; 896 if (((bitField0_ & 0x00000002) == 0x00000002)) { 897 requiredFeatures_ = requiredFeatures_.getUnmodifiableView(); 898 bitField0_ = (bitField0_ & ~0x00000002); 899 } 900 result.requiredFeatures_ = requiredFeatures_; 901 if (((bitField0_ & 0x00000004) == 0x00000004)) { 902 optionalFeatures_ = optionalFeatures_.getUnmodifiableView(); 903 bitField0_ = (bitField0_ & ~0x00000004); 904 } 905 result.optionalFeatures_ = optionalFeatures_; 906 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 907 to_bitField0_ |= 0x00000002; 908 } 909 result.writingprogram_ = writingprogram_; 910 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 911 to_bitField0_ |= 0x00000004; 912 } 913 result.source_ = source_; 914 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 915 to_bitField0_ |= 0x00000008; 916 } 917 result.osmosisReplicationTimestamp_ = osmosisReplicationTimestamp_; 918 if (((from_bitField0_ & 0x00000040) == 0x00000040)) { 919 to_bitField0_ |= 0x00000010; 920 } 921 result.osmosisReplicationSequenceNumber_ = osmosisReplicationSequenceNumber_; 922 if (((from_bitField0_ & 0x00000080) == 0x00000080)) { 923 to_bitField0_ |= 0x00000020; 924 } 925 result.osmosisReplicationBaseUrl_ = osmosisReplicationBaseUrl_; 926 result.bitField0_ = to_bitField0_; 927 return result; 928 } 929 930 @Override 931 public Builder mergeFrom(crosby.binary.Osmformat.HeaderBlock other) { 932 if (other == crosby.binary.Osmformat.HeaderBlock.getDefaultInstance()) return this; 933 if (other.hasBbox()) { 934 mergeBbox(other.getBbox()); 935 } 936 if (!other.requiredFeatures_.isEmpty()) { 937 if (requiredFeatures_.isEmpty()) { 938 requiredFeatures_ = other.requiredFeatures_; 939 bitField0_ = (bitField0_ & ~0x00000002); 940 } else { 941 ensureRequiredFeaturesIsMutable(); 942 requiredFeatures_.addAll(other.requiredFeatures_); 943 } 944 945 } 946 if (!other.optionalFeatures_.isEmpty()) { 947 if (optionalFeatures_.isEmpty()) { 948 optionalFeatures_ = other.optionalFeatures_; 949 bitField0_ = (bitField0_ & ~0x00000004); 950 } else { 951 ensureOptionalFeaturesIsMutable(); 952 optionalFeatures_.addAll(other.optionalFeatures_); 953 } 954 955 } 956 if (other.hasWritingprogram()) { 957 bitField0_ |= 0x00000008; 958 writingprogram_ = other.writingprogram_; 959 960 } 961 if (other.hasSource()) { 962 bitField0_ |= 0x00000010; 963 source_ = other.source_; 964 965 } 966 if (other.hasOsmosisReplicationTimestamp()) { 967 setOsmosisReplicationTimestamp(other.getOsmosisReplicationTimestamp()); 968 } 969 if (other.hasOsmosisReplicationSequenceNumber()) { 970 setOsmosisReplicationSequenceNumber(other.getOsmosisReplicationSequenceNumber()); 971 } 972 if (other.hasOsmosisReplicationBaseUrl()) { 973 bitField0_ |= 0x00000080; 974 osmosisReplicationBaseUrl_ = other.osmosisReplicationBaseUrl_; 975 976 } 977 setUnknownFields( 978 getUnknownFields().concat(other.unknownFields)); 979 return this; 980 } 981 982 @Override 983 public final boolean isInitialized() { 984 if (hasBbox()) { 985 if (!getBbox().isInitialized()) { 986 987 return false; 988 } 989 } 990 return true; 991 } 992 993 @Override 994 public Builder mergeFrom( 995 com.google.protobuf.CodedInputStream input, 996 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 997 throws java.io.IOException { 998 crosby.binary.Osmformat.HeaderBlock parsedMessage = null; 999 try { 1000 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 1001 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1002 parsedMessage = (crosby.binary.Osmformat.HeaderBlock) e.getUnfinishedMessage(); 1003 throw e; 1004 } finally { 1005 if (parsedMessage != null) { 1006 mergeFrom(parsedMessage); 1007 } 1008 } 1009 return this; 1010 } 1011 private int bitField0_; 1012 1013 private crosby.binary.Osmformat.HeaderBBox bbox_ = crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); 923 super(DEFAULT_INSTANCE); 924 } 925 926 1014 927 /** 1015 928 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 1016 929 */ 1017 @Override 1018 public boolean hasBbox() { 1019 return ((bitField0_ & 0x00000001) == 0x00000001); 930 public boolean hasBbox() { 931 return instance.hasBbox(); 1020 932 } 1021 933 /** 1022 934 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 1023 935 */ 1024 @Override 1025 public crosby.binary.Osmformat.HeaderBBox getBbox() { 1026 return bbox_; 936 public crosby.binary.Osmformat.HeaderBBox getBbox() { 937 return instance.getBbox(); 1027 938 } 1028 939 /** … … 1030 941 */ 1031 942 public Builder setBbox(crosby.binary.Osmformat.HeaderBBox value) { 1032 if (value == null) { 1033 throw new NullPointerException(); 1034 } 1035 bbox_ = value; 1036 1037 bitField0_ |= 0x00000001; 1038 return this; 1039 } 943 copyOnWrite(); 944 instance.setBbox(value); 945 return this; 946 } 1040 947 /** 1041 948 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> … … 1043 950 public Builder setBbox( 1044 951 crosby.binary.Osmformat.HeaderBBox.Builder builderForValue) { 1045 bbox_ = builderForValue.build(); 1046 1047 bitField0_ |= 0x00000001; 952 copyOnWrite(); 953 instance.setBbox(builderForValue); 1048 954 return this; 1049 955 } … … 1052 958 */ 1053 959 public Builder mergeBbox(crosby.binary.Osmformat.HeaderBBox value) { 1054 if (((bitField0_ & 0x00000001) == 0x00000001) && 1055 bbox_ != crosby.binary.Osmformat.HeaderBBox.getDefaultInstance()) { 1056 bbox_ = 1057 crosby.binary.Osmformat.HeaderBBox.newBuilder(bbox_).mergeFrom(value).buildPartial(); 1058 } else { 1059 bbox_ = value; 1060 } 1061 1062 bitField0_ |= 0x00000001; 960 copyOnWrite(); 961 instance.mergeBbox(value); 1063 962 return this; 1064 963 } … … 1066 965 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 1067 966 */ 1068 public Builder clearBbox() { 1069 bbox_ = crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); 1070 1071 bitField0_ = (bitField0_ & ~0x00000001); 1072 return this; 1073 } 1074 1075 private com.google.protobuf.LazyStringList requiredFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1076 private void ensureRequiredFeaturesIsMutable() { 1077 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 1078 requiredFeatures_ = new com.google.protobuf.LazyStringArrayList(requiredFeatures_); 1079 bitField0_ |= 0x00000002; 1080 } 1081 } 1082 /** 967 public Builder clearBbox() { copyOnWrite(); 968 instance.clearBbox(); 969 return this; 970 } 971 972 /** 973 * <pre> 974 * Additional tags to aid in parsing this dataset 975 * </pre> 976 * 1083 977 * <code>repeated string required_features = 4;</code> 1084 * 1085 * <pre> 1086 * Additional tags to aid in parsing this dataset 1087 * </pre> 1088 */ 1089 @Override 1090 public com.google.protobuf.ProtocolStringList 978 */ 979 public java.util.List<java.lang.String> 1091 980 getRequiredFeaturesList() { 1092 return requiredFeatures_.getUnmodifiableView(); 1093 } 1094 /** 981 return java.util.Collections.unmodifiableList( 982 instance.getRequiredFeaturesList()); 983 } 984 /** 985 * <pre> 986 * Additional tags to aid in parsing this dataset 987 * </pre> 988 * 1095 989 * <code>repeated string required_features = 4;</code> 1096 * 1097 * <pre> 1098 * Additional tags to aid in parsing this dataset 1099 * </pre> 1100 */ 1101 @Override 1102 public int getRequiredFeaturesCount() { 1103 return requiredFeatures_.size(); 1104 } 1105 /** 990 */ 991 public int getRequiredFeaturesCount() { 992 return instance.getRequiredFeaturesCount(); 993 } 994 /** 995 * <pre> 996 * Additional tags to aid in parsing this dataset 997 * </pre> 998 * 1106 999 * <code>repeated string required_features = 4;</code> 1107 * 1108 * <pre> 1109 * Additional tags to aid in parsing this dataset 1110 * </pre> 1111 */ 1112 @Override 1113 public java.lang.String getRequiredFeatures(int index) { 1114 return requiredFeatures_.get(index); 1115 } 1116 /** 1000 */ 1001 public java.lang.String getRequiredFeatures(int index) { 1002 return instance.getRequiredFeatures(index); 1003 } 1004 /** 1005 * <pre> 1006 * Additional tags to aid in parsing this dataset 1007 * </pre> 1008 * 1117 1009 * <code>repeated string required_features = 4;</code> 1118 * 1119 * <pre> 1120 * Additional tags to aid in parsing this dataset 1121 * </pre> 1122 */ 1123 @Override 1124 public com.google.protobuf.ByteString 1010 */ 1011 public com.google.protobuf.ByteString 1125 1012 getRequiredFeaturesBytes(int index) { 1126 return requiredFeatures_.getByteString(index); 1127 } 1128 /** 1013 return instance.getRequiredFeaturesBytes(index); 1014 } 1015 /** 1016 * <pre> 1017 * Additional tags to aid in parsing this dataset 1018 * </pre> 1019 * 1129 1020 * <code>repeated string required_features = 4;</code> 1130 *1131 * <pre>1132 * Additional tags to aid in parsing this dataset1133 * </pre>1134 1021 */ 1135 1022 public Builder setRequiredFeatures( 1136 1023 int index, java.lang.String value) { 1137 if (value == null) {1138 throw new NullPointerException();1139 }1140 ensureRequiredFeaturesIsMutable();1141 requiredFeatures_.set(index, value);1142 1143 return this;1144 }1145 /**1024 copyOnWrite(); 1025 instance.setRequiredFeatures(index, value); 1026 return this; 1027 } 1028 /** 1029 * <pre> 1030 * Additional tags to aid in parsing this dataset 1031 * </pre> 1032 * 1146 1033 * <code>repeated string required_features = 4;</code> 1147 *1148 * <pre>1149 * Additional tags to aid in parsing this dataset1150 * </pre>1151 1034 */ 1152 1035 public Builder addRequiredFeatures( 1153 1036 java.lang.String value) { 1154 if (value == null) {1155 throw new NullPointerException();1156 }1157 ensureRequiredFeaturesIsMutable();1158 requiredFeatures_.add(value);1159 1160 return this;1161 }1162 /**1037 copyOnWrite(); 1038 instance.addRequiredFeatures(value); 1039 return this; 1040 } 1041 /** 1042 * <pre> 1043 * Additional tags to aid in parsing this dataset 1044 * </pre> 1045 * 1163 1046 * <code>repeated string required_features = 4;</code> 1164 *1165 * <pre>1166 * Additional tags to aid in parsing this dataset1167 * </pre>1168 1047 */ 1169 1048 public Builder addAllRequiredFeatures( 1170 1049 java.lang.Iterable<java.lang.String> values) { 1171 ensureRequiredFeaturesIsMutable(); 1172 com.google.protobuf.AbstractMessageLite.Builder.addAll( 1173 values, requiredFeatures_); 1174 1175 return this; 1176 } 1177 /** 1050 copyOnWrite(); 1051 instance.addAllRequiredFeatures(values); 1052 return this; 1053 } 1054 /** 1055 * <pre> 1056 * Additional tags to aid in parsing this dataset 1057 * </pre> 1058 * 1178 1059 * <code>repeated string required_features = 4;</code> 1179 *1180 * <pre>1181 * Additional tags to aid in parsing this dataset1182 * </pre>1183 1060 */ 1184 1061 public Builder clearRequiredFeatures() { 1185 requiredFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1186 bitField0_ = (bitField0_ & ~0x00000002); 1187 1188 return this; 1189 } 1190 /** 1062 copyOnWrite(); 1063 instance.clearRequiredFeatures(); 1064 return this; 1065 } 1066 /** 1067 * <pre> 1068 * Additional tags to aid in parsing this dataset 1069 * </pre> 1070 * 1191 1071 * <code>repeated string required_features = 4;</code> 1192 *1193 * <pre>1194 * Additional tags to aid in parsing this dataset1195 * </pre>1196 1072 */ 1197 1073 public Builder addRequiredFeaturesBytes( 1198 1074 com.google.protobuf.ByteString value) { 1199 if (value == null) { 1200 throw new NullPointerException(); 1201 } 1202 ensureRequiredFeaturesIsMutable(); 1203 requiredFeatures_.add(value); 1204 1205 return this; 1206 } 1207 1208 private com.google.protobuf.LazyStringList optionalFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1209 private void ensureOptionalFeaturesIsMutable() { 1210 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 1211 optionalFeatures_ = new com.google.protobuf.LazyStringArrayList(optionalFeatures_); 1212 bitField0_ |= 0x00000004; 1213 } 1214 } 1075 copyOnWrite(); 1076 instance.addRequiredFeaturesBytes(value); 1077 return this; 1078 } 1079 1215 1080 /** 1216 1081 * <code>repeated string optional_features = 5;</code> 1217 1082 */ 1218 @Override 1219 public com.google.protobuf.ProtocolStringList 1083 public java.util.List<java.lang.String> 1220 1084 getOptionalFeaturesList() { 1221 return optionalFeatures_.getUnmodifiableView(); 1085 return java.util.Collections.unmodifiableList( 1086 instance.getOptionalFeaturesList()); 1222 1087 } 1223 1088 /** 1224 1089 * <code>repeated string optional_features = 5;</code> 1225 1090 */ 1226 @Override 1227 public int getOptionalFeaturesCount() { 1228 return optionalFeatures_.size(); 1091 public int getOptionalFeaturesCount() { 1092 return instance.getOptionalFeaturesCount(); 1229 1093 } 1230 1094 /** 1231 1095 * <code>repeated string optional_features = 5;</code> 1232 1096 */ 1233 @Override 1234 public java.lang.String getOptionalFeatures(int index) { 1235 return optionalFeatures_.get(index); 1097 public java.lang.String getOptionalFeatures(int index) { 1098 return instance.getOptionalFeatures(index); 1236 1099 } 1237 1100 /** 1238 1101 * <code>repeated string optional_features = 5;</code> 1239 1102 */ 1240 @Override 1241 public com.google.protobuf.ByteString 1103 public com.google.protobuf.ByteString 1242 1104 getOptionalFeaturesBytes(int index) { 1243 return optionalFeatures_.getByteString(index);1105 return instance.getOptionalFeaturesBytes(index); 1244 1106 } 1245 1107 /** … … 1248 1110 public Builder setOptionalFeatures( 1249 1111 int index, java.lang.String value) { 1250 if (value == null) { 1251 throw new NullPointerException(); 1252 } 1253 ensureOptionalFeaturesIsMutable(); 1254 optionalFeatures_.set(index, value); 1255 1112 copyOnWrite(); 1113 instance.setOptionalFeatures(index, value); 1256 1114 return this; 1257 1115 } … … 1261 1119 public Builder addOptionalFeatures( 1262 1120 java.lang.String value) { 1263 if (value == null) { 1264 throw new NullPointerException(); 1265 } 1266 ensureOptionalFeaturesIsMutable(); 1267 optionalFeatures_.add(value); 1268 1121 copyOnWrite(); 1122 instance.addOptionalFeatures(value); 1269 1123 return this; 1270 1124 } … … 1274 1128 public Builder addAllOptionalFeatures( 1275 1129 java.lang.Iterable<java.lang.String> values) { 1276 ensureOptionalFeaturesIsMutable(); 1277 com.google.protobuf.AbstractMessageLite.Builder.addAll( 1278 values, optionalFeatures_); 1279 1130 copyOnWrite(); 1131 instance.addAllOptionalFeatures(values); 1280 1132 return this; 1281 1133 } … … 1284 1136 */ 1285 1137 public Builder clearOptionalFeatures() { 1286 optionalFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1287 bitField0_ = (bitField0_ & ~0x00000004); 1288 1138 copyOnWrite(); 1139 instance.clearOptionalFeatures(); 1289 1140 return this; 1290 1141 } … … 1294 1145 public Builder addOptionalFeaturesBytes( 1295 1146 com.google.protobuf.ByteString value) { 1296 if (value == null) { 1297 throw new NullPointerException(); 1298 } 1299 ensureOptionalFeaturesIsMutable(); 1300 optionalFeatures_.add(value); 1301 1302 return this; 1303 } 1304 1305 private java.lang.Object writingprogram_ = ""; 1147 copyOnWrite(); 1148 instance.addOptionalFeaturesBytes(value); 1149 return this; 1150 } 1151 1306 1152 /** 1307 1153 * <code>optional string writingprogram = 16;</code> 1308 1154 */ 1309 @Override 1310 public boolean hasWritingprogram() { 1311 return ((bitField0_ & 0x00000008) == 0x00000008); 1155 public boolean hasWritingprogram() { 1156 return instance.hasWritingprogram(); 1312 1157 } 1313 1158 /** 1314 1159 * <code>optional string writingprogram = 16;</code> 1315 1160 */ 1316 @Override 1317 public java.lang.String getWritingprogram() { 1318 java.lang.Object ref = writingprogram_; 1319 if (!(ref instanceof java.lang.String)) { 1320 com.google.protobuf.ByteString bs = 1321 (com.google.protobuf.ByteString) ref; 1322 java.lang.String s = bs.toStringUtf8(); 1323 if (bs.isValidUtf8()) { 1324 writingprogram_ = s; 1325 } 1326 return s; 1327 } else { 1328 return (java.lang.String) ref; 1329 } 1161 public java.lang.String getWritingprogram() { 1162 return instance.getWritingprogram(); 1330 1163 } 1331 1164 /** 1332 1165 * <code>optional string writingprogram = 16;</code> 1333 1166 */ 1334 @Override 1335 public com.google.protobuf.ByteString 1167 public com.google.protobuf.ByteString 1336 1168 getWritingprogramBytes() { 1337 java.lang.Object ref = writingprogram_; 1338 if (ref instanceof String) { 1339 com.google.protobuf.ByteString b = 1340 com.google.protobuf.ByteString.copyFromUtf8( 1341 (java.lang.String) ref); 1342 writingprogram_ = b; 1343 return b; 1344 } else { 1345 return (com.google.protobuf.ByteString) ref; 1346 } 1169 return instance.getWritingprogramBytes(); 1347 1170 } 1348 1171 /** … … 1351 1174 public Builder setWritingprogram( 1352 1175 java.lang.String value) { 1353 if (value == null) { 1354 throw new NullPointerException(); 1355 } 1356 bitField0_ |= 0x00000008; 1357 writingprogram_ = value; 1358 1176 copyOnWrite(); 1177 instance.setWritingprogram(value); 1359 1178 return this; 1360 1179 } … … 1363 1182 */ 1364 1183 public Builder clearWritingprogram() { 1365 bitField0_ = (bitField0_ & ~0x00000008); 1366 writingprogram_ = getDefaultInstance().getWritingprogram(); 1367 1184 copyOnWrite(); 1185 instance.clearWritingprogram(); 1368 1186 return this; 1369 1187 } … … 1373 1191 public Builder setWritingprogramBytes( 1374 1192 com.google.protobuf.ByteString value) { 1375 if (value == null) { 1376 throw new NullPointerException(); 1377 } 1378 bitField0_ |= 0x00000008; 1379 writingprogram_ = value; 1380 1381 return this; 1382 } 1383 1384 private java.lang.Object source_ = ""; 1385 /** 1193 copyOnWrite(); 1194 instance.setWritingprogramBytes(value); 1195 return this; 1196 } 1197 1198 /** 1199 * <pre> 1200 * From the bbox field. 1201 * </pre> 1202 * 1386 1203 * <code>optional string source = 17;</code> 1387 * 1204 */ 1205 public boolean hasSource() { 1206 return instance.hasSource(); 1207 } 1208 /** 1388 1209 * <pre> 1389 1210 * From the bbox field. 1390 1211 * </pre> 1391 */ 1392 @Override 1393 public boolean hasSource() { 1394 return ((bitField0_ & 0x00000010) == 0x00000010); 1395 } 1396 /** 1212 * 1397 1213 * <code>optional string source = 17;</code> 1398 * 1214 */ 1215 public java.lang.String getSource() { 1216 return instance.getSource(); 1217 } 1218 /** 1399 1219 * <pre> 1400 1220 * From the bbox field. 1401 1221 * </pre> 1402 */ 1403 @Override 1404 public java.lang.String getSource() { 1405 java.lang.Object ref = source_; 1406 if (!(ref instanceof java.lang.String)) { 1407 com.google.protobuf.ByteString bs = 1408 (com.google.protobuf.ByteString) ref; 1409 java.lang.String s = bs.toStringUtf8(); 1410 if (bs.isValidUtf8()) { 1411 source_ = s; 1412 } 1413 return s; 1414 } else { 1415 return (java.lang.String) ref; 1416 } 1417 } 1418 /** 1222 * 1419 1223 * <code>optional string source = 17;</code> 1420 * 1224 */ 1225 public com.google.protobuf.ByteString 1226 getSourceBytes() { 1227 return instance.getSourceBytes(); 1228 } 1229 /** 1421 1230 * <pre> 1422 1231 * From the bbox field. 1423 1232 * </pre> 1424 */ 1425 @Override 1426 public com.google.protobuf.ByteString 1427 getSourceBytes() { 1428 java.lang.Object ref = source_; 1429 if (ref instanceof String) { 1430 com.google.protobuf.ByteString b = 1431 com.google.protobuf.ByteString.copyFromUtf8( 1432 (java.lang.String) ref); 1433 source_ = b; 1434 return b; 1435 } else { 1436 return (com.google.protobuf.ByteString) ref; 1437 } 1438 } 1439 /** 1233 * 1440 1234 * <code>optional string source = 17;</code> 1441 *1442 * <pre>1443 * From the bbox field.1444 * </pre>1445 1235 */ 1446 1236 public Builder setSource( 1447 1237 java.lang.String value) { 1448 if (value == null) {1449 throw new NullPointerException();1450 }1451 bitField0_ |= 0x00000010;1452 source_ = value;1453 1454 return this;1455 }1456 /**1238 copyOnWrite(); 1239 instance.setSource(value); 1240 return this; 1241 } 1242 /** 1243 * <pre> 1244 * From the bbox field. 1245 * </pre> 1246 * 1457 1247 * <code>optional string source = 17;</code> 1458 * 1248 */ 1249 public Builder clearSource() { 1250 copyOnWrite(); 1251 instance.clearSource(); 1252 return this; 1253 } 1254 /** 1459 1255 * <pre> 1460 1256 * From the bbox field. 1461 1257 * </pre> 1462 */ 1463 public Builder clearSource() { 1464 bitField0_ = (bitField0_ & ~0x00000010); 1465 source_ = getDefaultInstance().getSource(); 1466 1467 return this; 1468 } 1469 /** 1258 * 1470 1259 * <code>optional string source = 17;</code> 1471 *1472 * <pre>1473 * From the bbox field.1474 * </pre>1475 1260 */ 1476 1261 public Builder setSourceBytes( 1477 1262 com.google.protobuf.ByteString value) { 1478 if (value == null) { 1479 throw new NullPointerException(); 1480 } 1481 bitField0_ |= 0x00000010; 1482 source_ = value; 1483 1484 return this; 1485 } 1486 1487 private long osmosisReplicationTimestamp_ ; 1488 /** 1489 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1490 * 1491 * <pre> 1492 * replication timestamp, expressed in seconds since the epoch, 1263 copyOnWrite(); 1264 instance.setSourceBytes(value); 1265 return this; 1266 } 1267 1268 /** 1269 * <pre> 1270 * replication timestamp, expressed in seconds since the epoch, 1493 1271 * otherwise the same value as in the "timestamp=..." field 1494 1272 * in the state.txt file used by Osmosis 1495 1273 * </pre> 1496 */ 1497 @Override 1498 public boolean hasOsmosisReplicationTimestamp() { 1499 return ((bitField0_ & 0x00000020) == 0x00000020); 1500 } 1501 /** 1274 * 1502 1275 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1503 * 1504 * <pre> 1505 * replication timestamp, expressed in seconds since the epoch, 1276 */ 1277 public boolean hasOsmosisReplicationTimestamp() { 1278 return instance.hasOsmosisReplicationTimestamp(); 1279 } 1280 /** 1281 * <pre> 1282 * replication timestamp, expressed in seconds since the epoch, 1506 1283 * otherwise the same value as in the "timestamp=..." field 1507 1284 * in the state.txt file used by Osmosis 1508 1285 * </pre> 1509 */ 1510 @Override 1511 public long getOsmosisReplicationTimestamp() { 1512 return osmosisReplicationTimestamp_; 1513 } 1514 /** 1286 * 1515 1287 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1516 * 1517 * <pre> 1518 * replication timestamp, expressed in seconds since the epoch, 1288 */ 1289 public long getOsmosisReplicationTimestamp() { 1290 return instance.getOsmosisReplicationTimestamp(); 1291 } 1292 /** 1293 * <pre> 1294 * replication timestamp, expressed in seconds since the epoch, 1519 1295 * otherwise the same value as in the "timestamp=..." field 1520 1296 * in the state.txt file used by Osmosis 1521 1297 * </pre> 1298 * 1299 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1522 1300 */ 1523 1301 public Builder setOsmosisReplicationTimestamp(long value) { 1524 bitField0_ |= 0x00000020; 1525 osmosisReplicationTimestamp_ = value; 1526 1527 return this; 1528 } 1529 /** 1530 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1531 * 1532 * <pre> 1533 * replication timestamp, expressed in seconds since the epoch, 1302 copyOnWrite(); 1303 instance.setOsmosisReplicationTimestamp(value); 1304 return this; 1305 } 1306 /** 1307 * <pre> 1308 * replication timestamp, expressed in seconds since the epoch, 1534 1309 * otherwise the same value as in the "timestamp=..." field 1535 1310 * in the state.txt file used by Osmosis 1536 1311 * </pre> 1312 * 1313 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1537 1314 */ 1538 1315 public Builder clearOsmosisReplicationTimestamp() { 1539 bitField0_ = (bitField0_ & ~0x00000020); 1540 osmosisReplicationTimestamp_ = 0L; 1541 1542 return this; 1543 } 1544 1545 private long osmosisReplicationSequenceNumber_ ; 1546 /** 1316 copyOnWrite(); 1317 instance.clearOsmosisReplicationTimestamp(); 1318 return this; 1319 } 1320 1321 /** 1322 * <pre> 1323 * replication sequence number (sequenceNumber in state.txt) 1324 * </pre> 1325 * 1547 1326 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 1548 * 1327 */ 1328 public boolean hasOsmosisReplicationSequenceNumber() { 1329 return instance.hasOsmosisReplicationSequenceNumber(); 1330 } 1331 /** 1549 1332 * <pre> 1550 1333 * replication sequence number (sequenceNumber in state.txt) 1551 1334 * </pre> 1552 */ 1553 @Override 1554 public boolean hasOsmosisReplicationSequenceNumber() { 1555 return ((bitField0_ & 0x00000040) == 0x00000040); 1556 } 1557 /** 1335 * 1558 1336 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 1559 * 1337 */ 1338 public long getOsmosisReplicationSequenceNumber() { 1339 return instance.getOsmosisReplicationSequenceNumber(); 1340 } 1341 /** 1560 1342 * <pre> 1561 1343 * replication sequence number (sequenceNumber in state.txt) 1562 1344 * </pre> 1563 */ 1564 @Override 1565 public long getOsmosisReplicationSequenceNumber() { 1566 return osmosisReplicationSequenceNumber_; 1567 } 1568 /** 1345 * 1569 1346 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 1570 * 1347 */ 1348 public Builder setOsmosisReplicationSequenceNumber(long value) { 1349 copyOnWrite(); 1350 instance.setOsmosisReplicationSequenceNumber(value); 1351 return this; 1352 } 1353 /** 1571 1354 * <pre> 1572 1355 * replication sequence number (sequenceNumber in state.txt) 1573 1356 * </pre> 1574 */ 1575 public Builder setOsmosisReplicationSequenceNumber(long value) { 1576 bitField0_ |= 0x00000040; 1577 osmosisReplicationSequenceNumber_ = value; 1578 1579 return this; 1580 } 1581 /** 1357 * 1582 1358 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 1583 *1584 * <pre>1585 * replication sequence number (sequenceNumber in state.txt)1586 * </pre>1587 1359 */ 1588 1360 public Builder clearOsmosisReplicationSequenceNumber() { 1589 bitField0_ = (bitField0_ & ~0x00000040); 1590 osmosisReplicationSequenceNumber_ = 0L; 1591 1592 return this; 1593 } 1594 1595 private java.lang.Object osmosisReplicationBaseUrl_ = ""; 1596 /** 1361 copyOnWrite(); 1362 instance.clearOsmosisReplicationSequenceNumber(); 1363 return this; 1364 } 1365 1366 /** 1367 * <pre> 1368 * replication base URL (from Osmosis' configuration.txt file) 1369 * </pre> 1370 * 1597 1371 * <code>optional string osmosis_replication_base_url = 34;</code> 1598 * 1372 */ 1373 public boolean hasOsmosisReplicationBaseUrl() { 1374 return instance.hasOsmosisReplicationBaseUrl(); 1375 } 1376 /** 1599 1377 * <pre> 1600 1378 * replication base URL (from Osmosis' configuration.txt file) 1601 1379 * </pre> 1602 */ 1603 @Override 1604 public boolean hasOsmosisReplicationBaseUrl() { 1605 return ((bitField0_ & 0x00000080) == 0x00000080); 1606 } 1607 /** 1380 * 1608 1381 * <code>optional string osmosis_replication_base_url = 34;</code> 1609 * 1382 */ 1383 public java.lang.String getOsmosisReplicationBaseUrl() { 1384 return instance.getOsmosisReplicationBaseUrl(); 1385 } 1386 /** 1610 1387 * <pre> 1611 1388 * replication base URL (from Osmosis' configuration.txt file) 1612 1389 * </pre> 1613 */ 1614 @Override 1615 public java.lang.String getOsmosisReplicationBaseUrl() { 1616 java.lang.Object ref = osmosisReplicationBaseUrl_; 1617 if (!(ref instanceof java.lang.String)) { 1618 com.google.protobuf.ByteString bs = 1619 (com.google.protobuf.ByteString) ref; 1620 java.lang.String s = bs.toStringUtf8(); 1621 if (bs.isValidUtf8()) { 1622 osmosisReplicationBaseUrl_ = s; 1623 } 1624 return s; 1625 } else { 1626 return (java.lang.String) ref; 1627 } 1628 } 1629 /** 1390 * 1630 1391 * <code>optional string osmosis_replication_base_url = 34;</code> 1631 * 1392 */ 1393 public com.google.protobuf.ByteString 1394 getOsmosisReplicationBaseUrlBytes() { 1395 return instance.getOsmosisReplicationBaseUrlBytes(); 1396 } 1397 /** 1632 1398 * <pre> 1633 1399 * replication base URL (from Osmosis' configuration.txt file) 1634 1400 * </pre> 1635 */ 1636 @Override 1637 public com.google.protobuf.ByteString 1638 getOsmosisReplicationBaseUrlBytes() { 1639 java.lang.Object ref = osmosisReplicationBaseUrl_; 1640 if (ref instanceof String) { 1641 com.google.protobuf.ByteString b = 1642 com.google.protobuf.ByteString.copyFromUtf8( 1643 (java.lang.String) ref); 1644 osmosisReplicationBaseUrl_ = b; 1645 return b; 1646 } else { 1647 return (com.google.protobuf.ByteString) ref; 1648 } 1649 } 1650 /** 1401 * 1651 1402 * <code>optional string osmosis_replication_base_url = 34;</code> 1652 *1653 * <pre>1654 * replication base URL (from Osmosis' configuration.txt file)1655 * </pre>1656 1403 */ 1657 1404 public Builder setOsmosisReplicationBaseUrl( 1658 1405 java.lang.String value) { 1659 if (value == null) {1660 throw new NullPointerException();1661 }1662 bitField0_ |= 0x00000080;1663 osmosisReplicationBaseUrl_ = value;1664 1665 return this;1666 }1667 /**1406 copyOnWrite(); 1407 instance.setOsmosisReplicationBaseUrl(value); 1408 return this; 1409 } 1410 /** 1411 * <pre> 1412 * replication base URL (from Osmosis' configuration.txt file) 1413 * </pre> 1414 * 1668 1415 * <code>optional string osmosis_replication_base_url = 34;</code> 1669 * 1416 */ 1417 public Builder clearOsmosisReplicationBaseUrl() { 1418 copyOnWrite(); 1419 instance.clearOsmosisReplicationBaseUrl(); 1420 return this; 1421 } 1422 /** 1670 1423 * <pre> 1671 1424 * replication base URL (from Osmosis' configuration.txt file) 1672 1425 * </pre> 1673 */ 1674 public Builder clearOsmosisReplicationBaseUrl() { 1675 bitField0_ = (bitField0_ & ~0x00000080); 1676 osmosisReplicationBaseUrl_ = getDefaultInstance().getOsmosisReplicationBaseUrl(); 1677 1678 return this; 1679 } 1680 /** 1426 * 1681 1427 * <code>optional string osmosis_replication_base_url = 34;</code> 1682 *1683 * <pre>1684 * replication base URL (from Osmosis' configuration.txt file)1685 * </pre>1686 1428 */ 1687 1429 public Builder setOsmosisReplicationBaseUrlBytes( 1688 1430 com.google.protobuf.ByteString value) { 1689 if (value == null) { 1690 throw new NullPointerException(); 1691 } 1692 bitField0_ |= 0x00000080; 1693 osmosisReplicationBaseUrl_ = value; 1694 1431 copyOnWrite(); 1432 instance.setOsmosisReplicationBaseUrlBytes(value); 1695 1433 return this; 1696 1434 } … … 1698 1436 // @@protoc_insertion_point(builder_scope:OSMPBF.HeaderBlock) 1699 1437 } 1700 1438 private byte memoizedIsInitialized = -1; 1439 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 1440 protected final java.lang.Object dynamicMethod( 1441 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 1442 java.lang.Object arg0, java.lang.Object arg1) { 1443 switch (method) { 1444 case NEW_MUTABLE_INSTANCE: { 1445 return new crosby.binary.Osmformat.HeaderBlock(); 1446 } 1447 case IS_INITIALIZED: { 1448 byte isInitialized = memoizedIsInitialized; 1449 if (isInitialized == 1) return DEFAULT_INSTANCE; 1450 if (isInitialized == 0) return null; 1451 1452 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 1453 if (hasBbox()) { 1454 if (!getBbox().isInitialized()) { 1455 if (shouldMemoize) { 1456 memoizedIsInitialized = 0; 1457 } 1458 return null; 1459 } 1460 } 1461 if (shouldMemoize) memoizedIsInitialized = 1; 1462 return DEFAULT_INSTANCE; 1463 1464 } 1465 case MAKE_IMMUTABLE: { 1466 requiredFeatures_.makeImmutable(); 1467 optionalFeatures_.makeImmutable(); 1468 return null; 1469 } 1470 case NEW_BUILDER: { 1471 return new Builder(); 1472 } 1473 case VISIT: { 1474 Visitor visitor = (Visitor) arg0; 1475 crosby.binary.Osmformat.HeaderBlock other = (crosby.binary.Osmformat.HeaderBlock) arg1; 1476 bbox_ = visitor.visitMessage(bbox_, other.bbox_); 1477 requiredFeatures_= visitor.visitList(requiredFeatures_, other.requiredFeatures_); 1478 optionalFeatures_= visitor.visitList(optionalFeatures_, other.optionalFeatures_); 1479 writingprogram_ = visitor.visitString( 1480 hasWritingprogram(), writingprogram_, 1481 other.hasWritingprogram(), other.writingprogram_); 1482 source_ = visitor.visitString( 1483 hasSource(), source_, 1484 other.hasSource(), other.source_); 1485 osmosisReplicationTimestamp_ = visitor.visitLong( 1486 hasOsmosisReplicationTimestamp(), osmosisReplicationTimestamp_, 1487 other.hasOsmosisReplicationTimestamp(), other.osmosisReplicationTimestamp_); 1488 osmosisReplicationSequenceNumber_ = visitor.visitLong( 1489 hasOsmosisReplicationSequenceNumber(), osmosisReplicationSequenceNumber_, 1490 other.hasOsmosisReplicationSequenceNumber(), other.osmosisReplicationSequenceNumber_); 1491 osmosisReplicationBaseUrl_ = visitor.visitString( 1492 hasOsmosisReplicationBaseUrl(), osmosisReplicationBaseUrl_, 1493 other.hasOsmosisReplicationBaseUrl(), other.osmosisReplicationBaseUrl_); 1494 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 1495 .INSTANCE) { 1496 bitField0_ |= other.bitField0_; 1497 } 1498 return this; 1499 } 1500 case MERGE_FROM_STREAM: { 1501 com.google.protobuf.CodedInputStream input = 1502 (com.google.protobuf.CodedInputStream) arg0; 1503 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 1504 (com.google.protobuf.ExtensionRegistryLite) arg1; 1505 try { 1506 boolean done = false; 1507 while (!done) { 1508 int tag = input.readTag(); 1509 switch (tag) { 1510 case 0: 1511 done = true; 1512 break; 1513 default: { 1514 if (!parseUnknownField(tag, input)) { 1515 done = true; 1516 } 1517 break; 1518 } 1519 case 10: { 1520 crosby.binary.Osmformat.HeaderBBox.Builder subBuilder = null; 1521 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1522 subBuilder = bbox_.toBuilder(); 1523 } 1524 bbox_ = input.readMessage(crosby.binary.Osmformat.HeaderBBox.parser(), extensionRegistry); 1525 if (subBuilder != null) { 1526 subBuilder.mergeFrom(bbox_); 1527 bbox_ = subBuilder.buildPartial(); 1528 } 1529 bitField0_ |= 0x00000001; 1530 break; 1531 } 1532 case 34: { 1533 java.lang.String s = input.readString(); 1534 if (!requiredFeatures_.isModifiable()) { 1535 requiredFeatures_ = 1536 com.google.protobuf.GeneratedMessageLite.mutableCopy(requiredFeatures_); 1537 } 1538 requiredFeatures_.add(s); 1539 break; 1540 } 1541 case 42: { 1542 java.lang.String s = input.readString(); 1543 if (!optionalFeatures_.isModifiable()) { 1544 optionalFeatures_ = 1545 com.google.protobuf.GeneratedMessageLite.mutableCopy(optionalFeatures_); 1546 } 1547 optionalFeatures_.add(s); 1548 break; 1549 } 1550 case 130: { 1551 java.lang.String s = input.readString(); 1552 bitField0_ |= 0x00000002; 1553 writingprogram_ = s; 1554 break; 1555 } 1556 case 138: { 1557 java.lang.String s = input.readString(); 1558 bitField0_ |= 0x00000004; 1559 source_ = s; 1560 break; 1561 } 1562 case 256: { 1563 bitField0_ |= 0x00000008; 1564 osmosisReplicationTimestamp_ = input.readInt64(); 1565 break; 1566 } 1567 case 264: { 1568 bitField0_ |= 0x00000010; 1569 osmosisReplicationSequenceNumber_ = input.readInt64(); 1570 break; 1571 } 1572 case 274: { 1573 java.lang.String s = input.readString(); 1574 bitField0_ |= 0x00000020; 1575 osmosisReplicationBaseUrl_ = s; 1576 break; 1577 } 1578 } 1579 } 1580 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1581 throw new RuntimeException(e.setUnfinishedMessage(this)); 1582 } catch (java.io.IOException e) { 1583 throw new RuntimeException( 1584 new com.google.protobuf.InvalidProtocolBufferException( 1585 e.getMessage()).setUnfinishedMessage(this)); 1586 } finally { 1587 } 1588 } 1589 // fall through 1590 case GET_DEFAULT_INSTANCE: { 1591 return DEFAULT_INSTANCE; 1592 } 1593 case GET_PARSER: { 1594 if (PARSER == null) { synchronized (crosby.binary.Osmformat.HeaderBlock.class) { 1595 if (PARSER == null) { 1596 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 1597 } 1598 } 1599 } 1600 return PARSER; 1601 } 1602 } 1603 throw new UnsupportedOperationException(); 1604 } 1605 1606 1607 // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBlock) 1608 private static final crosby.binary.Osmformat.HeaderBlock DEFAULT_INSTANCE; 1701 1609 static { 1702 defaultInstance = new HeaderBlock(true); 1703 defaultInstance.initFields(); 1704 } 1705 1706 // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBlock) 1610 DEFAULT_INSTANCE = new HeaderBlock(); 1611 DEFAULT_INSTANCE.makeImmutable(); 1612 } 1613 1614 public static crosby.binary.Osmformat.HeaderBlock getDefaultInstance() { 1615 return DEFAULT_INSTANCE; 1616 } 1617 1618 private static volatile com.google.protobuf.Parser<HeaderBlock> PARSER; 1619 1620 public static com.google.protobuf.Parser<HeaderBlock> parser() { 1621 return DEFAULT_INSTANCE.getParserForType(); 1622 } 1707 1623 } 1708 1624 … … 1750 1666 * Protobuf type {@code OSMPBF.HeaderBBox} 1751 1667 */ 1752 public static final class HeaderBBox extends 1753 com.google.protobuf.GeneratedMessageLite implements 1668 public static final class HeaderBBox extends 1669 com.google.protobuf.GeneratedMessageLite< 1670 HeaderBBox, HeaderBBox.Builder> implements 1754 1671 // @@protoc_insertion_point(message_implements:OSMPBF.HeaderBBox) 1755 1672 HeaderBBoxOrBuilder { 1756 // Use HeaderBBox.newBuilder() to construct. 1757 private HeaderBBox(com.google.protobuf.GeneratedMessageLite.Builder builder) { 1758 super(builder); 1759 this.unknownFields = builder.getUnknownFields(); 1760 } 1761 private HeaderBBox(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 1762 1763 private static final HeaderBBox defaultInstance; 1764 public static HeaderBBox getDefaultInstance() { 1765 return defaultInstance; 1766 } 1767 1768 @Override 1769 public HeaderBBox getDefaultInstanceForType() { 1770 return defaultInstance; 1771 } 1772 1773 private final com.google.protobuf.ByteString unknownFields; 1774 private HeaderBBox( 1775 com.google.protobuf.CodedInputStream input, 1776 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1777 throws com.google.protobuf.InvalidProtocolBufferException { 1778 initFields(); 1779 int mutable_bitField0_ = 0; 1780 com.google.protobuf.ByteString.Output unknownFieldsOutput = 1781 com.google.protobuf.ByteString.newOutput(); 1782 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 1783 com.google.protobuf.CodedOutputStream.newInstance( 1784 unknownFieldsOutput); 1785 try { 1786 boolean done = false; 1787 while (!done) { 1788 int tag = input.readTag(); 1789 switch (tag) { 1790 case 0: 1791 done = true; 1792 break; 1793 default: { 1794 if (!parseUnknownField(input, unknownFieldsCodedOutput, 1795 extensionRegistry, tag)) { 1796 done = true; 1797 } 1798 break; 1799 } 1800 case 8: { 1801 bitField0_ |= 0x00000001; 1802 left_ = input.readSInt64(); 1803 break; 1804 } 1805 case 16: { 1806 bitField0_ |= 0x00000002; 1807 right_ = input.readSInt64(); 1808 break; 1809 } 1810 case 24: { 1811 bitField0_ |= 0x00000004; 1812 top_ = input.readSInt64(); 1813 break; 1814 } 1815 case 32: { 1816 bitField0_ |= 0x00000008; 1817 bottom_ = input.readSInt64(); 1818 break; 1819 } 1820 } 1821 } 1822 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1823 throw e.setUnfinishedMessage(this); 1824 } catch (java.io.IOException e) { 1825 throw new com.google.protobuf.InvalidProtocolBufferException( 1826 e.getMessage()).setUnfinishedMessage(this); 1827 } finally { 1828 try { 1829 unknownFieldsCodedOutput.flush(); 1830 } catch (java.io.IOException e) { 1831 // Should not happen 1832 } finally { 1833 unknownFields = unknownFieldsOutput.toByteString(); 1834 } 1835 makeExtensionsImmutable(); 1836 } 1837 } 1838 public static com.google.protobuf.Parser<HeaderBBox> PARSER = 1839 new com.google.protobuf.AbstractParser<HeaderBBox>() { 1840 @Override 1841 public HeaderBBox parsePartialFrom( 1842 com.google.protobuf.CodedInputStream input, 1843 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1844 throws com.google.protobuf.InvalidProtocolBufferException { 1845 return new HeaderBBox(input, extensionRegistry); 1846 } 1847 }; 1848 1849 @java.lang.Override 1850 public com.google.protobuf.Parser<HeaderBBox> getParserForType() { 1851 return PARSER; 1852 } 1853 1673 private HeaderBBox() { 1674 } 1854 1675 private int bitField0_; 1855 1676 public static final int LEFT_FIELD_NUMBER = 1; … … 1858 1679 * <code>required sint64 left = 1;</code> 1859 1680 */ 1860 @Override 1861 public boolean hasLeft() { 1681 public boolean hasLeft() { 1862 1682 return ((bitField0_ & 0x00000001) == 0x00000001); 1863 1683 } … … 1865 1685 * <code>required sint64 left = 1;</code> 1866 1686 */ 1867 @Override 1868 public long getLeft() { 1687 public long getLeft() { 1869 1688 return left_; 1689 } 1690 /** 1691 * <code>required sint64 left = 1;</code> 1692 */ 1693 private void setLeft(long value) { 1694 bitField0_ |= 0x00000001; 1695 left_ = value; 1696 } 1697 /** 1698 * <code>required sint64 left = 1;</code> 1699 */ 1700 private void clearLeft() { 1701 bitField0_ = (bitField0_ & ~0x00000001); 1702 left_ = 0L; 1870 1703 } 1871 1704 … … 1875 1708 * <code>required sint64 right = 2;</code> 1876 1709 */ 1877 @Override 1878 public boolean hasRight() { 1710 public boolean hasRight() { 1879 1711 return ((bitField0_ & 0x00000002) == 0x00000002); 1880 1712 } … … 1882 1714 * <code>required sint64 right = 2;</code> 1883 1715 */ 1884 @Override 1885 public long getRight() { 1716 public long getRight() { 1886 1717 return right_; 1718 } 1719 /** 1720 * <code>required sint64 right = 2;</code> 1721 */ 1722 private void setRight(long value) { 1723 bitField0_ |= 0x00000002; 1724 right_ = value; 1725 } 1726 /** 1727 * <code>required sint64 right = 2;</code> 1728 */ 1729 private void clearRight() { 1730 bitField0_ = (bitField0_ & ~0x00000002); 1731 right_ = 0L; 1887 1732 } 1888 1733 … … 1892 1737 * <code>required sint64 top = 3;</code> 1893 1738 */ 1894 @Override 1895 public boolean hasTop() { 1739 public boolean hasTop() { 1896 1740 return ((bitField0_ & 0x00000004) == 0x00000004); 1897 1741 } … … 1899 1743 * <code>required sint64 top = 3;</code> 1900 1744 */ 1901 @Override 1902 public long getTop() { 1745 public long getTop() { 1903 1746 return top_; 1747 } 1748 /** 1749 * <code>required sint64 top = 3;</code> 1750 */ 1751 private void setTop(long value) { 1752 bitField0_ |= 0x00000004; 1753 top_ = value; 1754 } 1755 /** 1756 * <code>required sint64 top = 3;</code> 1757 */ 1758 private void clearTop() { 1759 bitField0_ = (bitField0_ & ~0x00000004); 1760 top_ = 0L; 1904 1761 } 1905 1762 … … 1909 1766 * <code>required sint64 bottom = 4;</code> 1910 1767 */ 1911 @Override 1912 public boolean hasBottom() { 1768 public boolean hasBottom() { 1913 1769 return ((bitField0_ & 0x00000008) == 0x00000008); 1914 1770 } … … 1916 1772 * <code>required sint64 bottom = 4;</code> 1917 1773 */ 1918 @Override 1919 public long getBottom() { 1774 public long getBottom() { 1920 1775 return bottom_; 1921 1776 } 1922 1923 private void initFields() { 1924 left_ = 0L; 1925 right_ = 0L; 1926 top_ = 0L; 1777 /** 1778 * <code>required sint64 bottom = 4;</code> 1779 */ 1780 private void setBottom(long value) { 1781 bitField0_ |= 0x00000008; 1782 bottom_ = value; 1783 } 1784 /** 1785 * <code>required sint64 bottom = 4;</code> 1786 */ 1787 private void clearBottom() { 1788 bitField0_ = (bitField0_ & ~0x00000008); 1927 1789 bottom_ = 0L; 1928 1790 } 1929 private byte memoizedIsInitialized = -1; 1930 @Override 1931 public final boolean isInitialized() { 1932 byte isInitialized = memoizedIsInitialized; 1933 if (isInitialized == 1) return true; 1934 if (isInitialized == 0) return false; 1935 1936 if (!hasLeft()) { 1937 memoizedIsInitialized = 0; 1938 return false; 1939 } 1940 if (!hasRight()) { 1941 memoizedIsInitialized = 0; 1942 return false; 1943 } 1944 if (!hasTop()) { 1945 memoizedIsInitialized = 0; 1946 return false; 1947 } 1948 if (!hasBottom()) { 1949 memoizedIsInitialized = 0; 1950 return false; 1951 } 1952 memoizedIsInitialized = 1; 1953 return true; 1954 } 1955 1956 @Override 1957 public void writeTo(com.google.protobuf.CodedOutputStream output) 1791 1792 public void writeTo(com.google.protobuf.CodedOutputStream output) 1958 1793 throws java.io.IOException { 1959 getSerializedSize();1960 1794 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1961 1795 output.writeSInt64(1, left_); … … 1970 1804 output.writeSInt64(4, bottom_); 1971 1805 } 1972 output.writeRawBytes(unknownFields); 1973 } 1974 1975 private int memoizedSerializedSize = -1; 1976 @Override 1977 public int getSerializedSize() { 1806 unknownFields.writeTo(output); 1807 } 1808 1809 public int getSerializedSize() { 1978 1810 int size = memoizedSerializedSize; 1979 1811 if (size != -1) return size; … … 1996 1828 .computeSInt64Size(4, bottom_); 1997 1829 } 1998 size += unknownFields. size();1830 size += unknownFields.getSerializedSize(); 1999 1831 memoizedSerializedSize = size; 2000 1832 return size; 2001 1833 } 2002 1834 2003 private static final long serialVersionUID = 0L; 2004 @java.lang.Override 2005 protected java.lang.Object writeReplace() 2006 throws java.io.ObjectStreamException { 2007 return super.writeReplace(); 2008 } 2009 1835 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 1836 java.nio.ByteBuffer data) 1837 throws com.google.protobuf.InvalidProtocolBufferException { 1838 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1839 DEFAULT_INSTANCE, data); 1840 } 1841 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 1842 java.nio.ByteBuffer data, 1843 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1844 throws com.google.protobuf.InvalidProtocolBufferException { 1845 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1846 DEFAULT_INSTANCE, data, extensionRegistry); 1847 } 2010 1848 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 2011 1849 com.google.protobuf.ByteString data) 2012 1850 throws com.google.protobuf.InvalidProtocolBufferException { 2013 return PARSER.parseFrom(data); 1851 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1852 DEFAULT_INSTANCE, data); 2014 1853 } 2015 1854 public static crosby.binary.Osmformat.HeaderBBox parseFrom( … … 2017 1856 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2018 1857 throws com.google.protobuf.InvalidProtocolBufferException { 2019 return PARSER.parseFrom(data, extensionRegistry); 1858 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1859 DEFAULT_INSTANCE, data, extensionRegistry); 2020 1860 } 2021 1861 public static crosby.binary.Osmformat.HeaderBBox parseFrom(byte[] data) 2022 1862 throws com.google.protobuf.InvalidProtocolBufferException { 2023 return PARSER.parseFrom(data); 1863 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1864 DEFAULT_INSTANCE, data); 2024 1865 } 2025 1866 public static crosby.binary.Osmformat.HeaderBBox parseFrom( … … 2027 1868 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2028 1869 throws com.google.protobuf.InvalidProtocolBufferException { 2029 return PARSER.parseFrom(data, extensionRegistry); 1870 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1871 DEFAULT_INSTANCE, data, extensionRegistry); 2030 1872 } 2031 1873 public static crosby.binary.Osmformat.HeaderBBox parseFrom(java.io.InputStream input) 2032 1874 throws java.io.IOException { 2033 return PARSER.parseFrom(input); 1875 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1876 DEFAULT_INSTANCE, input); 2034 1877 } 2035 1878 public static crosby.binary.Osmformat.HeaderBBox parseFrom( … … 2037 1880 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2038 1881 throws java.io.IOException { 2039 return PARSER.parseFrom(input, extensionRegistry); 1882 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1883 DEFAULT_INSTANCE, input, extensionRegistry); 2040 1884 } 2041 1885 public static crosby.binary.Osmformat.HeaderBBox parseDelimitedFrom(java.io.InputStream input) 2042 1886 throws java.io.IOException { 2043 return PARSER.parseDelimitedFrom(input);1887 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 2044 1888 } 2045 1889 public static crosby.binary.Osmformat.HeaderBBox parseDelimitedFrom( … … 2047 1891 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2048 1892 throws java.io.IOException { 2049 return PARSER.parseDelimitedFrom(input, extensionRegistry);1893 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 2050 1894 } 2051 1895 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 2052 1896 com.google.protobuf.CodedInputStream input) 2053 1897 throws java.io.IOException { 2054 return PARSER.parseFrom(input); 1898 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1899 DEFAULT_INSTANCE, input); 2055 1900 } 2056 1901 public static crosby.binary.Osmformat.HeaderBBox parseFrom( … … 2058 1903 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2059 1904 throws java.io.IOException { 2060 return PARSER.parseFrom(input, extensionRegistry); 2061 } 2062 2063 public static Builder newBuilder() { return Builder.create(); } 2064 @Override 2065 public Builder newBuilderForType() { return newBuilder(); } 1905 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1906 DEFAULT_INSTANCE, input, extensionRegistry); 1907 } 1908 1909 public static Builder newBuilder() { 1910 return DEFAULT_INSTANCE.toBuilder(); 1911 } 2066 1912 public static Builder newBuilder(crosby.binary.Osmformat.HeaderBBox prototype) { 2067 return newBuilder().mergeFrom(prototype); 2068 } 2069 @Override 2070 public Builder toBuilder() { return newBuilder(this); } 1913 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1914 } 2071 1915 2072 1916 /** … … 2075 1919 public static final class Builder extends 2076 1920 com.google.protobuf.GeneratedMessageLite.Builder< 2077 crosby.binary.Osmformat.HeaderBBox, Builder> 2078 implements 1921 crosby.binary.Osmformat.HeaderBBox, Builder> implements 2079 1922 // @@protoc_insertion_point(builder_implements:OSMPBF.HeaderBBox) 2080 1923 crosby.binary.Osmformat.HeaderBBoxOrBuilder { 2081 1924 // Construct using crosby.binary.Osmformat.HeaderBBox.newBuilder() 2082 1925 private Builder() { 2083 maybeForceBuilderInitialization(); 2084 } 2085 2086 private void maybeForceBuilderInitialization() { 2087 } 2088 private static Builder create() { 2089 return new Builder(); 2090 } 2091 2092 @Override 2093 public Builder clear() { 2094 super.clear(); 2095 left_ = 0L; 2096 bitField0_ = (bitField0_ & ~0x00000001); 2097 right_ = 0L; 2098 bitField0_ = (bitField0_ & ~0x00000002); 2099 top_ = 0L; 2100 bitField0_ = (bitField0_ & ~0x00000004); 2101 bottom_ = 0L; 2102 bitField0_ = (bitField0_ & ~0x00000008); 2103 return this; 2104 } 2105 2106 @Override 2107 public Builder clone() { 2108 return create().mergeFrom(buildPartial()); 2109 } 2110 2111 @Override 2112 public crosby.binary.Osmformat.HeaderBBox getDefaultInstanceForType() { 2113 return crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); 2114 } 2115 2116 @Override 2117 public crosby.binary.Osmformat.HeaderBBox build() { 2118 crosby.binary.Osmformat.HeaderBBox result = buildPartial(); 2119 if (!result.isInitialized()) { 2120 throw newUninitializedMessageException(result); 2121 } 2122 return result; 2123 } 2124 2125 @Override 2126 public crosby.binary.Osmformat.HeaderBBox buildPartial() { 2127 crosby.binary.Osmformat.HeaderBBox result = new crosby.binary.Osmformat.HeaderBBox(this); 2128 int from_bitField0_ = bitField0_; 2129 int to_bitField0_ = 0; 2130 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 2131 to_bitField0_ |= 0x00000001; 2132 } 2133 result.left_ = left_; 2134 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 2135 to_bitField0_ |= 0x00000002; 2136 } 2137 result.right_ = right_; 2138 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 2139 to_bitField0_ |= 0x00000004; 2140 } 2141 result.top_ = top_; 2142 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 2143 to_bitField0_ |= 0x00000008; 2144 } 2145 result.bottom_ = bottom_; 2146 result.bitField0_ = to_bitField0_; 2147 return result; 2148 } 2149 2150 @Override 2151 public Builder mergeFrom(crosby.binary.Osmformat.HeaderBBox other) { 2152 if (other == crosby.binary.Osmformat.HeaderBBox.getDefaultInstance()) return this; 2153 if (other.hasLeft()) { 2154 setLeft(other.getLeft()); 2155 } 2156 if (other.hasRight()) { 2157 setRight(other.getRight()); 2158 } 2159 if (other.hasTop()) { 2160 setTop(other.getTop()); 2161 } 2162 if (other.hasBottom()) { 2163 setBottom(other.getBottom()); 2164 } 2165 setUnknownFields( 2166 getUnknownFields().concat(other.unknownFields)); 2167 return this; 2168 } 2169 2170 @Override 2171 public final boolean isInitialized() { 2172 if (!hasLeft()) { 2173 2174 return false; 2175 } 2176 if (!hasRight()) { 2177 2178 return false; 2179 } 2180 if (!hasTop()) { 2181 2182 return false; 2183 } 2184 if (!hasBottom()) { 2185 2186 return false; 2187 } 2188 return true; 2189 } 2190 2191 @Override 2192 public Builder mergeFrom( 2193 com.google.protobuf.CodedInputStream input, 2194 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2195 throws java.io.IOException { 2196 crosby.binary.Osmformat.HeaderBBox parsedMessage = null; 2197 try { 2198 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 2199 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2200 parsedMessage = (crosby.binary.Osmformat.HeaderBBox) e.getUnfinishedMessage(); 2201 throw e; 2202 } finally { 2203 if (parsedMessage != null) { 2204 mergeFrom(parsedMessage); 1926 super(DEFAULT_INSTANCE); 1927 } 1928 1929 1930 /** 1931 * <code>required sint64 left = 1;</code> 1932 */ 1933 public boolean hasLeft() { 1934 return instance.hasLeft(); 1935 } 1936 /** 1937 * <code>required sint64 left = 1;</code> 1938 */ 1939 public long getLeft() { 1940 return instance.getLeft(); 1941 } 1942 /** 1943 * <code>required sint64 left = 1;</code> 1944 */ 1945 public Builder setLeft(long value) { 1946 copyOnWrite(); 1947 instance.setLeft(value); 1948 return this; 1949 } 1950 /** 1951 * <code>required sint64 left = 1;</code> 1952 */ 1953 public Builder clearLeft() { 1954 copyOnWrite(); 1955 instance.clearLeft(); 1956 return this; 1957 } 1958 1959 /** 1960 * <code>required sint64 right = 2;</code> 1961 */ 1962 public boolean hasRight() { 1963 return instance.hasRight(); 1964 } 1965 /** 1966 * <code>required sint64 right = 2;</code> 1967 */ 1968 public long getRight() { 1969 return instance.getRight(); 1970 } 1971 /** 1972 * <code>required sint64 right = 2;</code> 1973 */ 1974 public Builder setRight(long value) { 1975 copyOnWrite(); 1976 instance.setRight(value); 1977 return this; 1978 } 1979 /** 1980 * <code>required sint64 right = 2;</code> 1981 */ 1982 public Builder clearRight() { 1983 copyOnWrite(); 1984 instance.clearRight(); 1985 return this; 1986 } 1987 1988 /** 1989 * <code>required sint64 top = 3;</code> 1990 */ 1991 public boolean hasTop() { 1992 return instance.hasTop(); 1993 } 1994 /** 1995 * <code>required sint64 top = 3;</code> 1996 */ 1997 public long getTop() { 1998 return instance.getTop(); 1999 } 2000 /** 2001 * <code>required sint64 top = 3;</code> 2002 */ 2003 public Builder setTop(long value) { 2004 copyOnWrite(); 2005 instance.setTop(value); 2006 return this; 2007 } 2008 /** 2009 * <code>required sint64 top = 3;</code> 2010 */ 2011 public Builder clearTop() { 2012 copyOnWrite(); 2013 instance.clearTop(); 2014 return this; 2015 } 2016 2017 /** 2018 * <code>required sint64 bottom = 4;</code> 2019 */ 2020 public boolean hasBottom() { 2021 return instance.hasBottom(); 2022 } 2023 /** 2024 * <code>required sint64 bottom = 4;</code> 2025 */ 2026 public long getBottom() { 2027 return instance.getBottom(); 2028 } 2029 /** 2030 * <code>required sint64 bottom = 4;</code> 2031 */ 2032 public Builder setBottom(long value) { 2033 copyOnWrite(); 2034 instance.setBottom(value); 2035 return this; 2036 } 2037 /** 2038 * <code>required sint64 bottom = 4;</code> 2039 */ 2040 public Builder clearBottom() { 2041 copyOnWrite(); 2042 instance.clearBottom(); 2043 return this; 2044 } 2045 2046 // @@protoc_insertion_point(builder_scope:OSMPBF.HeaderBBox) 2047 } 2048 private byte memoizedIsInitialized = -1; 2049 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 2050 protected final java.lang.Object dynamicMethod( 2051 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 2052 java.lang.Object arg0, java.lang.Object arg1) { 2053 switch (method) { 2054 case NEW_MUTABLE_INSTANCE: { 2055 return new crosby.binary.Osmformat.HeaderBBox(); 2056 } 2057 case IS_INITIALIZED: { 2058 byte isInitialized = memoizedIsInitialized; 2059 if (isInitialized == 1) return DEFAULT_INSTANCE; 2060 if (isInitialized == 0) return null; 2061 2062 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 2063 if (!hasLeft()) { 2064 if (shouldMemoize) { 2065 memoizedIsInitialized = 0; 2066 } 2067 return null; 2205 2068 } 2206 } 2207 return this; 2208 } 2209 private int bitField0_; 2210 2211 private long left_ ; 2212 /** 2213 * <code>required sint64 left = 1;</code> 2214 */ 2215 @Override 2216 public boolean hasLeft() { 2217 return ((bitField0_ & 0x00000001) == 0x00000001); 2218 } 2219 /** 2220 * <code>required sint64 left = 1;</code> 2221 */ 2222 @Override 2223 public long getLeft() { 2224 return left_; 2225 } 2226 /** 2227 * <code>required sint64 left = 1;</code> 2228 */ 2229 public Builder setLeft(long value) { 2230 bitField0_ |= 0x00000001; 2231 left_ = value; 2232 2233 return this; 2234 } 2235 /** 2236 * <code>required sint64 left = 1;</code> 2237 */ 2238 public Builder clearLeft() { 2239 bitField0_ = (bitField0_ & ~0x00000001); 2240 left_ = 0L; 2241 2242 return this; 2243 } 2244 2245 private long right_ ; 2246 /** 2247 * <code>required sint64 right = 2;</code> 2248 */ 2249 @Override 2250 public boolean hasRight() { 2251 return ((bitField0_ & 0x00000002) == 0x00000002); 2252 } 2253 /** 2254 * <code>required sint64 right = 2;</code> 2255 */ 2256 @Override 2257 public long getRight() { 2258 return right_; 2259 } 2260 /** 2261 * <code>required sint64 right = 2;</code> 2262 */ 2263 public Builder setRight(long value) { 2264 bitField0_ |= 0x00000002; 2265 right_ = value; 2266 2267 return this; 2268 } 2269 /** 2270 * <code>required sint64 right = 2;</code> 2271 */ 2272 public Builder clearRight() { 2273 bitField0_ = (bitField0_ & ~0x00000002); 2274 right_ = 0L; 2275 2276 return this; 2277 } 2278 2279 private long top_ ; 2280 /** 2281 * <code>required sint64 top = 3;</code> 2282 */ 2283 @Override 2284 public boolean hasTop() { 2285 return ((bitField0_ & 0x00000004) == 0x00000004); 2286 } 2287 /** 2288 * <code>required sint64 top = 3;</code> 2289 */ 2290 @Override 2291 public long getTop() { 2292 return top_; 2293 } 2294 /** 2295 * <code>required sint64 top = 3;</code> 2296 */ 2297 public Builder setTop(long value) { 2298 bitField0_ |= 0x00000004; 2299 top_ = value; 2300 2301 return this; 2302 } 2303 /** 2304 * <code>required sint64 top = 3;</code> 2305 */ 2306 public Builder clearTop() { 2307 bitField0_ = (bitField0_ & ~0x00000004); 2308 top_ = 0L; 2309 2310 return this; 2311 } 2312 2313 private long bottom_ ; 2314 /** 2315 * <code>required sint64 bottom = 4;</code> 2316 */ 2317 @Override 2318 public boolean hasBottom() { 2319 return ((bitField0_ & 0x00000008) == 0x00000008); 2320 } 2321 /** 2322 * <code>required sint64 bottom = 4;</code> 2323 */ 2324 @Override 2325 public long getBottom() { 2326 return bottom_; 2327 } 2328 /** 2329 * <code>required sint64 bottom = 4;</code> 2330 */ 2331 public Builder setBottom(long value) { 2332 bitField0_ |= 0x00000008; 2333 bottom_ = value; 2334 2335 return this; 2336 } 2337 /** 2338 * <code>required sint64 bottom = 4;</code> 2339 */ 2340 public Builder clearBottom() { 2341 bitField0_ = (bitField0_ & ~0x00000008); 2342 bottom_ = 0L; 2343 2344 return this; 2345 } 2346 2347 // @@protoc_insertion_point(builder_scope:OSMPBF.HeaderBBox) 2348 } 2349 2069 if (!hasRight()) { 2070 if (shouldMemoize) { 2071 memoizedIsInitialized = 0; 2072 } 2073 return null; 2074 } 2075 if (!hasTop()) { 2076 if (shouldMemoize) { 2077 memoizedIsInitialized = 0; 2078 } 2079 return null; 2080 } 2081 if (!hasBottom()) { 2082 if (shouldMemoize) { 2083 memoizedIsInitialized = 0; 2084 } 2085 return null; 2086 } 2087 if (shouldMemoize) memoizedIsInitialized = 1; 2088 return DEFAULT_INSTANCE; 2089 2090 } 2091 case MAKE_IMMUTABLE: { 2092 return null; 2093 } 2094 case NEW_BUILDER: { 2095 return new Builder(); 2096 } 2097 case VISIT: { 2098 Visitor visitor = (Visitor) arg0; 2099 crosby.binary.Osmformat.HeaderBBox other = (crosby.binary.Osmformat.HeaderBBox) arg1; 2100 left_ = visitor.visitLong( 2101 hasLeft(), left_, 2102 other.hasLeft(), other.left_); 2103 right_ = visitor.visitLong( 2104 hasRight(), right_, 2105 other.hasRight(), other.right_); 2106 top_ = visitor.visitLong( 2107 hasTop(), top_, 2108 other.hasTop(), other.top_); 2109 bottom_ = visitor.visitLong( 2110 hasBottom(), bottom_, 2111 other.hasBottom(), other.bottom_); 2112 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 2113 .INSTANCE) { 2114 bitField0_ |= other.bitField0_; 2115 } 2116 return this; 2117 } 2118 case MERGE_FROM_STREAM: { 2119 com.google.protobuf.CodedInputStream input = 2120 (com.google.protobuf.CodedInputStream) arg0; 2121 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 2122 (com.google.protobuf.ExtensionRegistryLite) arg1; 2123 try { 2124 boolean done = false; 2125 while (!done) { 2126 int tag = input.readTag(); 2127 switch (tag) { 2128 case 0: 2129 done = true; 2130 break; 2131 default: { 2132 if (!parseUnknownField(tag, input)) { 2133 done = true; 2134 } 2135 break; 2136 } 2137 case 8: { 2138 bitField0_ |= 0x00000001; 2139 left_ = input.readSInt64(); 2140 break; 2141 } 2142 case 16: { 2143 bitField0_ |= 0x00000002; 2144 right_ = input.readSInt64(); 2145 break; 2146 } 2147 case 24: { 2148 bitField0_ |= 0x00000004; 2149 top_ = input.readSInt64(); 2150 break; 2151 } 2152 case 32: { 2153 bitField0_ |= 0x00000008; 2154 bottom_ = input.readSInt64(); 2155 break; 2156 } 2157 } 2158 } 2159 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2160 throw new RuntimeException(e.setUnfinishedMessage(this)); 2161 } catch (java.io.IOException e) { 2162 throw new RuntimeException( 2163 new com.google.protobuf.InvalidProtocolBufferException( 2164 e.getMessage()).setUnfinishedMessage(this)); 2165 } finally { 2166 } 2167 } 2168 // fall through 2169 case GET_DEFAULT_INSTANCE: { 2170 return DEFAULT_INSTANCE; 2171 } 2172 case GET_PARSER: { 2173 if (PARSER == null) { synchronized (crosby.binary.Osmformat.HeaderBBox.class) { 2174 if (PARSER == null) { 2175 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 2176 } 2177 } 2178 } 2179 return PARSER; 2180 } 2181 } 2182 throw new UnsupportedOperationException(); 2183 } 2184 2185 2186 // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBBox) 2187 private static final crosby.binary.Osmformat.HeaderBBox DEFAULT_INSTANCE; 2350 2188 static { 2351 defaultInstance = new HeaderBBox(true); 2352 defaultInstance.initFields(); 2353 } 2354 2355 // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBBox) 2189 DEFAULT_INSTANCE = new HeaderBBox(); 2190 DEFAULT_INSTANCE.makeImmutable(); 2191 } 2192 2193 public static crosby.binary.Osmformat.HeaderBBox getDefaultInstance() { 2194 return DEFAULT_INSTANCE; 2195 } 2196 2197 private static volatile com.google.protobuf.Parser<HeaderBBox> PARSER; 2198 2199 public static com.google.protobuf.Parser<HeaderBBox> parser() { 2200 return DEFAULT_INSTANCE.getParserForType(); 2201 } 2356 2202 } 2357 2203 … … 2372 2218 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2373 2219 */ 2374 java.util.List<crosby.binary.Osmformat.PrimitiveGroup> 2220 java.util.List<crosby.binary.Osmformat.PrimitiveGroup> 2375 2221 getPrimitivegroupList(); 2376 2222 /** … … 2384 2230 2385 2231 /** 2232 * <pre> 2233 * Granularity, units of nanodegrees, used to store coordinates in this block 2234 * </pre> 2235 * 2386 2236 * <code>optional int32 granularity = 17 [default = 100];</code> 2387 * 2237 */ 2238 boolean hasGranularity(); 2239 /** 2388 2240 * <pre> 2389 2241 * Granularity, units of nanodegrees, used to store coordinates in this block 2390 2242 * </pre> 2391 */ 2392 boolean hasGranularity(); 2393 /** 2243 * 2394 2244 * <code>optional int32 granularity = 17 [default = 100];</code> 2395 *2396 * <pre>2397 * Granularity, units of nanodegrees, used to store coordinates in this block2398 * </pre>2399 2245 */ 2400 2246 int getGranularity(); 2401 2247 2402 2248 /** 2249 * <pre> 2250 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2251 * </pre> 2252 * 2403 2253 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2404 * 2254 */ 2255 boolean hasLatOffset(); 2256 /** 2405 2257 * <pre> 2406 2258 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2407 2259 * </pre> 2408 */ 2409 boolean hasLatOffset(); 2410 /** 2260 * 2411 2261 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2412 *2413 * <pre>2414 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.2415 * </pre>2416 2262 */ 2417 2263 long getLatOffset(); … … 2427 2273 2428 2274 /** 2275 * <pre> 2276 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2277 * </pre> 2278 * 2429 2279 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2430 * 2280 */ 2281 boolean hasDateGranularity(); 2282 /** 2431 2283 * <pre> 2432 2284 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2433 2285 * </pre> 2434 */ 2435 boolean hasDateGranularity(); 2436 /** 2286 * 2437 2287 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2438 *2439 * <pre>2440 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.2441 * </pre>2442 2288 */ 2443 2289 int getDateGranularity(); … … 2446 2292 * Protobuf type {@code OSMPBF.PrimitiveBlock} 2447 2293 */ 2448 public static final class PrimitiveBlock extends 2449 com.google.protobuf.GeneratedMessageLite implements 2294 public static final class PrimitiveBlock extends 2295 com.google.protobuf.GeneratedMessageLite< 2296 PrimitiveBlock, PrimitiveBlock.Builder> implements 2450 2297 // @@protoc_insertion_point(message_implements:OSMPBF.PrimitiveBlock) 2451 2298 PrimitiveBlockOrBuilder { 2452 // Use PrimitiveBlock.newBuilder() to construct. 2453 private PrimitiveBlock(com.google.protobuf.GeneratedMessageLite.Builder builder) { 2454 super(builder); 2455 this.unknownFields = builder.getUnknownFields(); 2456 } 2457 private PrimitiveBlock(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 2458 2459 private static final PrimitiveBlock defaultInstance; 2460 public static PrimitiveBlock getDefaultInstance() { 2461 return defaultInstance; 2462 } 2463 2464 @Override 2465 public PrimitiveBlock getDefaultInstanceForType() { 2466 return defaultInstance; 2467 } 2468 2469 private final com.google.protobuf.ByteString unknownFields; 2470 private PrimitiveBlock( 2471 com.google.protobuf.CodedInputStream input, 2472 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2473 throws com.google.protobuf.InvalidProtocolBufferException { 2474 initFields(); 2475 int mutable_bitField0_ = 0; 2476 com.google.protobuf.ByteString.Output unknownFieldsOutput = 2477 com.google.protobuf.ByteString.newOutput(); 2478 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 2479 com.google.protobuf.CodedOutputStream.newInstance( 2480 unknownFieldsOutput); 2481 try { 2482 boolean done = false; 2483 while (!done) { 2484 int tag = input.readTag(); 2485 switch (tag) { 2486 case 0: 2487 done = true; 2488 break; 2489 default: { 2490 if (!parseUnknownField(input, unknownFieldsCodedOutput, 2491 extensionRegistry, tag)) { 2492 done = true; 2493 } 2494 break; 2495 } 2496 case 10: { 2497 crosby.binary.Osmformat.StringTable.Builder subBuilder = null; 2498 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2499 subBuilder = stringtable_.toBuilder(); 2500 } 2501 stringtable_ = input.readMessage(crosby.binary.Osmformat.StringTable.PARSER, extensionRegistry); 2502 if (subBuilder != null) { 2503 subBuilder.mergeFrom(stringtable_); 2504 stringtable_ = subBuilder.buildPartial(); 2505 } 2506 bitField0_ |= 0x00000001; 2507 break; 2508 } 2509 case 18: { 2510 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 2511 primitivegroup_ = new java.util.ArrayList<>(); 2512 mutable_bitField0_ |= 0x00000002; 2513 } 2514 primitivegroup_.add(input.readMessage(crosby.binary.Osmformat.PrimitiveGroup.PARSER, extensionRegistry)); 2515 break; 2516 } 2517 case 136: { 2518 bitField0_ |= 0x00000002; 2519 granularity_ = input.readInt32(); 2520 break; 2521 } 2522 case 144: { 2523 bitField0_ |= 0x00000010; 2524 dateGranularity_ = input.readInt32(); 2525 break; 2526 } 2527 case 152: { 2528 bitField0_ |= 0x00000004; 2529 latOffset_ = input.readInt64(); 2530 break; 2531 } 2532 case 160: { 2533 bitField0_ |= 0x00000008; 2534 lonOffset_ = input.readInt64(); 2535 break; 2536 } 2537 } 2538 } 2539 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2540 throw e.setUnfinishedMessage(this); 2541 } catch (java.io.IOException e) { 2542 throw new com.google.protobuf.InvalidProtocolBufferException( 2543 e.getMessage()).setUnfinishedMessage(this); 2544 } finally { 2545 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 2546 primitivegroup_ = java.util.Collections.unmodifiableList(primitivegroup_); 2547 } 2548 try { 2549 unknownFieldsCodedOutput.flush(); 2550 } catch (java.io.IOException e) { 2551 // Should not happen 2552 } finally { 2553 unknownFields = unknownFieldsOutput.toByteString(); 2554 } 2555 makeExtensionsImmutable(); 2556 } 2557 } 2558 public static com.google.protobuf.Parser<PrimitiveBlock> PARSER = 2559 new com.google.protobuf.AbstractParser<PrimitiveBlock>() { 2560 @Override 2561 public PrimitiveBlock parsePartialFrom( 2562 com.google.protobuf.CodedInputStream input, 2563 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2564 throws com.google.protobuf.InvalidProtocolBufferException { 2565 return new PrimitiveBlock(input, extensionRegistry); 2566 } 2567 }; 2568 2569 @java.lang.Override 2570 public com.google.protobuf.Parser<PrimitiveBlock> getParserForType() { 2571 return PARSER; 2572 } 2573 2299 private PrimitiveBlock() { 2300 primitivegroup_ = emptyProtobufList(); 2301 granularity_ = 100; 2302 dateGranularity_ = 1000; 2303 } 2574 2304 private int bitField0_; 2575 2305 public static final int STRINGTABLE_FIELD_NUMBER = 1; … … 2578 2308 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2579 2309 */ 2580 @Override 2581 public boolean hasStringtable() { 2310 public boolean hasStringtable() { 2582 2311 return ((bitField0_ & 0x00000001) == 0x00000001); 2583 2312 } … … 2585 2314 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2586 2315 */ 2587 @Override 2588 public crosby.binary.Osmformat.StringTable getStringtable() { 2589 return stringtable_; 2316 public crosby.binary.Osmformat.StringTable getStringtable() { 2317 return stringtable_ == null ? crosby.binary.Osmformat.StringTable.getDefaultInstance() : stringtable_; 2318 } 2319 /** 2320 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2321 */ 2322 private void setStringtable(crosby.binary.Osmformat.StringTable value) { 2323 if (value == null) { 2324 throw new NullPointerException(); 2325 } 2326 stringtable_ = value; 2327 bitField0_ |= 0x00000001; 2328 } 2329 /** 2330 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2331 */ 2332 private void setStringtable( 2333 crosby.binary.Osmformat.StringTable.Builder builderForValue) { 2334 stringtable_ = builderForValue.build(); 2335 bitField0_ |= 0x00000001; 2336 } 2337 /** 2338 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2339 */ 2340 private void mergeStringtable(crosby.binary.Osmformat.StringTable value) { 2341 if (stringtable_ != null && 2342 stringtable_ != crosby.binary.Osmformat.StringTable.getDefaultInstance()) { 2343 stringtable_ = 2344 crosby.binary.Osmformat.StringTable.newBuilder(stringtable_).mergeFrom(value).buildPartial(); 2345 } else { 2346 stringtable_ = value; 2347 } 2348 bitField0_ |= 0x00000001; 2349 } 2350 /** 2351 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2352 */ 2353 private void clearStringtable() { stringtable_ = null; 2354 bitField0_ = (bitField0_ & ~0x00000001); 2590 2355 } 2591 2356 2592 2357 public static final int PRIMITIVEGROUP_FIELD_NUMBER = 2; 2593 private java.util.List<crosby.binary.Osmformat.PrimitiveGroup> primitivegroup_;2358 private com.google.protobuf.Internal.ProtobufList<crosby.binary.Osmformat.PrimitiveGroup> primitivegroup_; 2594 2359 /** 2595 2360 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2596 2361 */ 2597 @Override 2598 public java.util.List<crosby.binary.Osmformat.PrimitiveGroup> getPrimitivegroupList() { 2362 public java.util.List<crosby.binary.Osmformat.PrimitiveGroup> getPrimitivegroupList() { 2599 2363 return primitivegroup_; 2600 2364 } … … 2602 2366 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2603 2367 */ 2604 public java.util.List<? extends crosby.binary.Osmformat.PrimitiveGroupOrBuilder> 2368 public java.util.List<? extends crosby.binary.Osmformat.PrimitiveGroupOrBuilder> 2605 2369 getPrimitivegroupOrBuilderList() { 2606 2370 return primitivegroup_; … … 2609 2373 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2610 2374 */ 2611 @Override 2612 public int getPrimitivegroupCount() { 2375 public int getPrimitivegroupCount() { 2613 2376 return primitivegroup_.size(); 2614 2377 } … … 2616 2379 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2617 2380 */ 2618 @Override 2619 public crosby.binary.Osmformat.PrimitiveGroup getPrimitivegroup(int index) { 2381 public crosby.binary.Osmformat.PrimitiveGroup getPrimitivegroup(int index) { 2620 2382 return primitivegroup_.get(index); 2621 2383 } … … 2627 2389 return primitivegroup_.get(index); 2628 2390 } 2391 private void ensurePrimitivegroupIsMutable() { 2392 if (!primitivegroup_.isModifiable()) { 2393 primitivegroup_ = 2394 com.google.protobuf.GeneratedMessageLite.mutableCopy(primitivegroup_); 2395 } 2396 } 2397 2398 /** 2399 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2400 */ 2401 private void setPrimitivegroup( 2402 int index, crosby.binary.Osmformat.PrimitiveGroup value) { 2403 if (value == null) { 2404 throw new NullPointerException(); 2405 } 2406 ensurePrimitivegroupIsMutable(); 2407 primitivegroup_.set(index, value); 2408 } 2409 /** 2410 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2411 */ 2412 private void setPrimitivegroup( 2413 int index, crosby.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { 2414 ensurePrimitivegroupIsMutable(); 2415 primitivegroup_.set(index, builderForValue.build()); 2416 } 2417 /** 2418 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2419 */ 2420 private void addPrimitivegroup(crosby.binary.Osmformat.PrimitiveGroup value) { 2421 if (value == null) { 2422 throw new NullPointerException(); 2423 } 2424 ensurePrimitivegroupIsMutable(); 2425 primitivegroup_.add(value); 2426 } 2427 /** 2428 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2429 */ 2430 private void addPrimitivegroup( 2431 int index, crosby.binary.Osmformat.PrimitiveGroup value) { 2432 if (value == null) { 2433 throw new NullPointerException(); 2434 } 2435 ensurePrimitivegroupIsMutable(); 2436 primitivegroup_.add(index, value); 2437 } 2438 /** 2439 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2440 */ 2441 private void addPrimitivegroup( 2442 crosby.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { 2443 ensurePrimitivegroupIsMutable(); 2444 primitivegroup_.add(builderForValue.build()); 2445 } 2446 /** 2447 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2448 */ 2449 private void addPrimitivegroup( 2450 int index, crosby.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { 2451 ensurePrimitivegroupIsMutable(); 2452 primitivegroup_.add(index, builderForValue.build()); 2453 } 2454 /** 2455 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2456 */ 2457 private void addAllPrimitivegroup( 2458 java.lang.Iterable<? extends crosby.binary.Osmformat.PrimitiveGroup> values) { 2459 ensurePrimitivegroupIsMutable(); 2460 com.google.protobuf.AbstractMessageLite.addAll( 2461 values, primitivegroup_); 2462 } 2463 /** 2464 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2465 */ 2466 private void clearPrimitivegroup() { 2467 primitivegroup_ = emptyProtobufList(); 2468 } 2469 /** 2470 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2471 */ 2472 private void removePrimitivegroup(int index) { 2473 ensurePrimitivegroupIsMutable(); 2474 primitivegroup_.remove(index); 2475 } 2629 2476 2630 2477 public static final int GRANULARITY_FIELD_NUMBER = 17; 2631 2478 private int granularity_; 2632 2479 /** 2480 * <pre> 2481 * Granularity, units of nanodegrees, used to store coordinates in this block 2482 * </pre> 2483 * 2633 2484 * <code>optional int32 granularity = 17 [default = 100];</code> 2634 * 2485 */ 2486 public boolean hasGranularity() { 2487 return ((bitField0_ & 0x00000002) == 0x00000002); 2488 } 2489 /** 2635 2490 * <pre> 2636 2491 * Granularity, units of nanodegrees, used to store coordinates in this block 2637 2492 * </pre> 2638 */ 2639 @Override 2640 public boolean hasGranularity() { 2641 return ((bitField0_ & 0x00000002) == 0x00000002); 2642 } 2643 /** 2493 * 2644 2494 * <code>optional int32 granularity = 17 [default = 100];</code> 2645 * 2495 */ 2496 public int getGranularity() { 2497 return granularity_; 2498 } 2499 /** 2646 2500 * <pre> 2647 2501 * Granularity, units of nanodegrees, used to store coordinates in this block 2648 2502 * </pre> 2649 */ 2650 @Override 2651 public int getGranularity() { 2652 return granularity_; 2503 * 2504 * <code>optional int32 granularity = 17 [default = 100];</code> 2505 */ 2506 private void setGranularity(int value) { 2507 bitField0_ |= 0x00000002; 2508 granularity_ = value; 2509 } 2510 /** 2511 * <pre> 2512 * Granularity, units of nanodegrees, used to store coordinates in this block 2513 * </pre> 2514 * 2515 * <code>optional int32 granularity = 17 [default = 100];</code> 2516 */ 2517 private void clearGranularity() { 2518 bitField0_ = (bitField0_ & ~0x00000002); 2519 granularity_ = 100; 2653 2520 } 2654 2521 … … 2656 2523 private long latOffset_; 2657 2524 /** 2525 * <pre> 2526 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2527 * </pre> 2528 * 2658 2529 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2659 * 2530 */ 2531 public boolean hasLatOffset() { 2532 return ((bitField0_ & 0x00000004) == 0x00000004); 2533 } 2534 /** 2660 2535 * <pre> 2661 2536 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2662 2537 * </pre> 2663 */ 2664 @Override 2665 public boolean hasLatOffset() { 2666 return ((bitField0_ & 0x00000004) == 0x00000004); 2667 } 2668 /** 2538 * 2669 2539 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2670 * 2540 */ 2541 public long getLatOffset() { 2542 return latOffset_; 2543 } 2544 /** 2671 2545 * <pre> 2672 2546 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2673 2547 * </pre> 2674 */ 2675 @Override 2676 public long getLatOffset() { 2677 return latOffset_; 2548 * 2549 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2550 */ 2551 private void setLatOffset(long value) { 2552 bitField0_ |= 0x00000004; 2553 latOffset_ = value; 2554 } 2555 /** 2556 * <pre> 2557 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2558 * </pre> 2559 * 2560 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2561 */ 2562 private void clearLatOffset() { 2563 bitField0_ = (bitField0_ & ~0x00000004); 2564 latOffset_ = 0L; 2678 2565 } 2679 2566 … … 2683 2570 * <code>optional int64 lon_offset = 20 [default = 0];</code> 2684 2571 */ 2685 @Override 2686 public boolean hasLonOffset() { 2572 public boolean hasLonOffset() { 2687 2573 return ((bitField0_ & 0x00000008) == 0x00000008); 2688 2574 } … … 2690 2576 * <code>optional int64 lon_offset = 20 [default = 0];</code> 2691 2577 */ 2692 @Override 2693 public long getLonOffset() { 2578 public long getLonOffset() { 2694 2579 return lonOffset_; 2580 } 2581 /** 2582 * <code>optional int64 lon_offset = 20 [default = 0];</code> 2583 */ 2584 private void setLonOffset(long value) { 2585 bitField0_ |= 0x00000008; 2586 lonOffset_ = value; 2587 } 2588 /** 2589 * <code>optional int64 lon_offset = 20 [default = 0];</code> 2590 */ 2591 private void clearLonOffset() { 2592 bitField0_ = (bitField0_ & ~0x00000008); 2593 lonOffset_ = 0L; 2695 2594 } 2696 2595 … … 2698 2597 private int dateGranularity_; 2699 2598 /** 2599 * <pre> 2600 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2601 * </pre> 2602 * 2700 2603 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2701 * 2604 */ 2605 public boolean hasDateGranularity() { 2606 return ((bitField0_ & 0x00000010) == 0x00000010); 2607 } 2608 /** 2702 2609 * <pre> 2703 2610 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2704 2611 * </pre> 2705 */ 2706 @Override 2707 public boolean hasDateGranularity() { 2708 return ((bitField0_ & 0x00000010) == 0x00000010); 2709 } 2710 /** 2612 * 2711 2613 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2712 * 2614 */ 2615 public int getDateGranularity() { 2616 return dateGranularity_; 2617 } 2618 /** 2713 2619 * <pre> 2714 2620 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2715 2621 * </pre> 2716 */ 2717 @Override 2718 public int getDateGranularity() { 2719 return dateGranularity_; 2720 } 2721 2722 private void initFields() { 2723 stringtable_ = crosby.binary.Osmformat.StringTable.getDefaultInstance(); 2724 primitivegroup_ = java.util.Collections.emptyList(); 2725 granularity_ = 100; 2726 latOffset_ = 0L; 2727 lonOffset_ = 0L; 2622 * 2623 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2624 */ 2625 private void setDateGranularity(int value) { 2626 bitField0_ |= 0x00000010; 2627 dateGranularity_ = value; 2628 } 2629 /** 2630 * <pre> 2631 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2632 * </pre> 2633 * 2634 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2635 */ 2636 private void clearDateGranularity() { 2637 bitField0_ = (bitField0_ & ~0x00000010); 2728 2638 dateGranularity_ = 1000; 2729 2639 } 2730 private byte memoizedIsInitialized = -1; 2731 @Override 2732 public final boolean isInitialized() { 2733 byte isInitialized = memoizedIsInitialized; 2734 if (isInitialized == 1) return true; 2735 if (isInitialized == 0) return false; 2736 2737 if (!hasStringtable()) { 2738 memoizedIsInitialized = 0; 2739 return false; 2740 } 2741 for (int i = 0; i < getPrimitivegroupCount(); i++) { 2742 if (!getPrimitivegroup(i).isInitialized()) { 2743 memoizedIsInitialized = 0; 2744 return false; 2745 } 2746 } 2747 memoizedIsInitialized = 1; 2748 return true; 2749 } 2750 2751 @Override 2752 public void writeTo(com.google.protobuf.CodedOutputStream output) 2640 2641 public void writeTo(com.google.protobuf.CodedOutputStream output) 2753 2642 throws java.io.IOException { 2754 getSerializedSize();2755 2643 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2756 output.writeMessage(1, stringtable_);2644 output.writeMessage(1, getStringtable()); 2757 2645 } 2758 2646 for (int i = 0; i < primitivegroup_.size(); i++) { … … 2771 2659 output.writeInt64(20, lonOffset_); 2772 2660 } 2773 output.writeRawBytes(unknownFields); 2774 } 2775 2776 private int memoizedSerializedSize = -1; 2777 @Override 2778 public int getSerializedSize() { 2661 unknownFields.writeTo(output); 2662 } 2663 2664 public int getSerializedSize() { 2779 2665 int size = memoizedSerializedSize; 2780 2666 if (size != -1) return size; … … 2783 2669 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2784 2670 size += com.google.protobuf.CodedOutputStream 2785 .computeMessageSize(1, stringtable_);2671 .computeMessageSize(1, getStringtable()); 2786 2672 } 2787 2673 for (int i = 0; i < primitivegroup_.size(); i++) { … … 2805 2691 .computeInt64Size(20, lonOffset_); 2806 2692 } 2807 size += unknownFields. size();2693 size += unknownFields.getSerializedSize(); 2808 2694 memoizedSerializedSize = size; 2809 2695 return size; 2810 2696 } 2811 2697 2812 private static final long serialVersionUID = 0L; 2813 @java.lang.Override 2814 protected java.lang.Object writeReplace() 2815 throws java.io.ObjectStreamException { 2816 return super.writeReplace(); 2817 } 2818 2698 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( 2699 java.nio.ByteBuffer data) 2700 throws com.google.protobuf.InvalidProtocolBufferException { 2701 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2702 DEFAULT_INSTANCE, data); 2703 } 2704 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( 2705 java.nio.ByteBuffer data, 2706 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2707 throws com.google.protobuf.InvalidProtocolBufferException { 2708 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2709 DEFAULT_INSTANCE, data, extensionRegistry); 2710 } 2819 2711 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( 2820 2712 com.google.protobuf.ByteString data) 2821 2713 throws com.google.protobuf.InvalidProtocolBufferException { 2822 return PARSER.parseFrom(data); 2714 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2715 DEFAULT_INSTANCE, data); 2823 2716 } 2824 2717 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( … … 2826 2719 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2827 2720 throws com.google.protobuf.InvalidProtocolBufferException { 2828 return PARSER.parseFrom(data, extensionRegistry); 2721 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2722 DEFAULT_INSTANCE, data, extensionRegistry); 2829 2723 } 2830 2724 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(byte[] data) 2831 2725 throws com.google.protobuf.InvalidProtocolBufferException { 2832 return PARSER.parseFrom(data); 2726 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2727 DEFAULT_INSTANCE, data); 2833 2728 } 2834 2729 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( … … 2836 2731 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2837 2732 throws com.google.protobuf.InvalidProtocolBufferException { 2838 return PARSER.parseFrom(data, extensionRegistry); 2733 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2734 DEFAULT_INSTANCE, data, extensionRegistry); 2839 2735 } 2840 2736 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(java.io.InputStream input) 2841 2737 throws java.io.IOException { 2842 return PARSER.parseFrom(input); 2738 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2739 DEFAULT_INSTANCE, input); 2843 2740 } 2844 2741 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( … … 2846 2743 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2847 2744 throws java.io.IOException { 2848 return PARSER.parseFrom(input, extensionRegistry); 2745 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2746 DEFAULT_INSTANCE, input, extensionRegistry); 2849 2747 } 2850 2748 public static crosby.binary.Osmformat.PrimitiveBlock parseDelimitedFrom(java.io.InputStream input) 2851 2749 throws java.io.IOException { 2852 return PARSER.parseDelimitedFrom(input);2750 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 2853 2751 } 2854 2752 public static crosby.binary.Osmformat.PrimitiveBlock parseDelimitedFrom( … … 2856 2754 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2857 2755 throws java.io.IOException { 2858 return PARSER.parseDelimitedFrom(input, extensionRegistry);2756 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 2859 2757 } 2860 2758 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( 2861 2759 com.google.protobuf.CodedInputStream input) 2862 2760 throws java.io.IOException { 2863 return PARSER.parseFrom(input); 2761 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2762 DEFAULT_INSTANCE, input); 2864 2763 } 2865 2764 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( … … 2867 2766 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2868 2767 throws java.io.IOException { 2869 return PARSER.parseFrom(input, extensionRegistry); 2870 } 2871 2872 public static Builder newBuilder() { return Builder.create(); } 2873 @Override 2874 public Builder newBuilderForType() { return newBuilder(); } 2768 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2769 DEFAULT_INSTANCE, input, extensionRegistry); 2770 } 2771 2772 public static Builder newBuilder() { 2773 return DEFAULT_INSTANCE.toBuilder(); 2774 } 2875 2775 public static Builder newBuilder(crosby.binary.Osmformat.PrimitiveBlock prototype) { 2876 return newBuilder().mergeFrom(prototype); 2877 } 2878 @Override 2879 public Builder toBuilder() { return newBuilder(this); } 2776 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2777 } 2880 2778 2881 2779 /** … … 2884 2782 public static final class Builder extends 2885 2783 com.google.protobuf.GeneratedMessageLite.Builder< 2886 crosby.binary.Osmformat.PrimitiveBlock, Builder> 2887 implements 2784 crosby.binary.Osmformat.PrimitiveBlock, Builder> implements 2888 2785 // @@protoc_insertion_point(builder_implements:OSMPBF.PrimitiveBlock) 2889 2786 crosby.binary.Osmformat.PrimitiveBlockOrBuilder { 2890 2787 // Construct using crosby.binary.Osmformat.PrimitiveBlock.newBuilder() 2891 2788 private Builder() { 2892 maybeForceBuilderInitialization(); 2893 } 2894 2895 private void maybeForceBuilderInitialization() { 2896 } 2897 private static Builder create() { 2898 return new Builder(); 2899 } 2900 2901 @Override 2902 public Builder clear() { 2903 super.clear(); 2904 stringtable_ = crosby.binary.Osmformat.StringTable.getDefaultInstance(); 2905 bitField0_ = (bitField0_ & ~0x00000001); 2906 primitivegroup_ = java.util.Collections.emptyList(); 2907 bitField0_ = (bitField0_ & ~0x00000002); 2908 granularity_ = 100; 2909 bitField0_ = (bitField0_ & ~0x00000004); 2910 latOffset_ = 0L; 2911 bitField0_ = (bitField0_ & ~0x00000008); 2912 lonOffset_ = 0L; 2913 bitField0_ = (bitField0_ & ~0x00000010); 2914 dateGranularity_ = 1000; 2915 bitField0_ = (bitField0_ & ~0x00000020); 2916 return this; 2917 } 2918 2919 @Override 2920 public Builder clone() { 2921 return create().mergeFrom(buildPartial()); 2922 } 2923 2924 @Override 2925 public crosby.binary.Osmformat.PrimitiveBlock getDefaultInstanceForType() { 2926 return crosby.binary.Osmformat.PrimitiveBlock.getDefaultInstance(); 2927 } 2928 2929 @Override 2930 public crosby.binary.Osmformat.PrimitiveBlock build() { 2931 crosby.binary.Osmformat.PrimitiveBlock result = buildPartial(); 2932 if (!result.isInitialized()) { 2933 throw newUninitializedMessageException(result); 2934 } 2935 return result; 2936 } 2937 2938 @Override 2939 public crosby.binary.Osmformat.PrimitiveBlock buildPartial() { 2940 crosby.binary.Osmformat.PrimitiveBlock result = new crosby.binary.Osmformat.PrimitiveBlock(this); 2941 int from_bitField0_ = bitField0_; 2942 int to_bitField0_ = 0; 2943 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 2944 to_bitField0_ |= 0x00000001; 2945 } 2946 result.stringtable_ = stringtable_; 2947 if (((bitField0_ & 0x00000002) == 0x00000002)) { 2948 primitivegroup_ = java.util.Collections.unmodifiableList(primitivegroup_); 2949 bitField0_ = (bitField0_ & ~0x00000002); 2950 } 2951 result.primitivegroup_ = primitivegroup_; 2952 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 2953 to_bitField0_ |= 0x00000002; 2954 } 2955 result.granularity_ = granularity_; 2956 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 2957 to_bitField0_ |= 0x00000004; 2958 } 2959 result.latOffset_ = latOffset_; 2960 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 2961 to_bitField0_ |= 0x00000008; 2962 } 2963 result.lonOffset_ = lonOffset_; 2964 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 2965 to_bitField0_ |= 0x00000010; 2966 } 2967 result.dateGranularity_ = dateGranularity_; 2968 result.bitField0_ = to_bitField0_; 2969 return result; 2970 } 2971 2972 @Override 2973 public Builder mergeFrom(crosby.binary.Osmformat.PrimitiveBlock other) { 2974 if (other == crosby.binary.Osmformat.PrimitiveBlock.getDefaultInstance()) return this; 2975 if (other.hasStringtable()) { 2976 mergeStringtable(other.getStringtable()); 2977 } 2978 if (!other.primitivegroup_.isEmpty()) { 2979 if (primitivegroup_.isEmpty()) { 2980 primitivegroup_ = other.primitivegroup_; 2981 bitField0_ = (bitField0_ & ~0x00000002); 2982 } else { 2983 ensurePrimitivegroupIsMutable(); 2984 primitivegroup_.addAll(other.primitivegroup_); 2985 } 2986 2987 } 2988 if (other.hasGranularity()) { 2989 setGranularity(other.getGranularity()); 2990 } 2991 if (other.hasLatOffset()) { 2992 setLatOffset(other.getLatOffset()); 2993 } 2994 if (other.hasLonOffset()) { 2995 setLonOffset(other.getLonOffset()); 2996 } 2997 if (other.hasDateGranularity()) { 2998 setDateGranularity(other.getDateGranularity()); 2999 } 3000 setUnknownFields( 3001 getUnknownFields().concat(other.unknownFields)); 3002 return this; 3003 } 3004 3005 @Override 3006 public final boolean isInitialized() { 3007 if (!hasStringtable()) { 3008 3009 return false; 3010 } 3011 for (int i = 0; i < getPrimitivegroupCount(); i++) { 3012 if (!getPrimitivegroup(i).isInitialized()) { 3013 3014 return false; 3015 } 3016 } 3017 return true; 3018 } 3019 3020 @Override 3021 public Builder mergeFrom( 3022 com.google.protobuf.CodedInputStream input, 3023 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3024 throws java.io.IOException { 3025 crosby.binary.Osmformat.PrimitiveBlock parsedMessage = null; 3026 try { 3027 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 3028 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3029 parsedMessage = (crosby.binary.Osmformat.PrimitiveBlock) e.getUnfinishedMessage(); 3030 throw e; 3031 } finally { 3032 if (parsedMessage != null) { 3033 mergeFrom(parsedMessage); 3034 } 3035 } 3036 return this; 3037 } 3038 private int bitField0_; 3039 3040 private crosby.binary.Osmformat.StringTable stringtable_ = crosby.binary.Osmformat.StringTable.getDefaultInstance(); 2789 super(DEFAULT_INSTANCE); 2790 } 2791 2792 3041 2793 /** 3042 2794 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 3043 2795 */ 3044 @Override 3045 public boolean hasStringtable() { 3046 return ((bitField0_ & 0x00000001) == 0x00000001); 2796 public boolean hasStringtable() { 2797 return instance.hasStringtable(); 3047 2798 } 3048 2799 /** 3049 2800 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 3050 2801 */ 3051 @Override 3052 public crosby.binary.Osmformat.StringTable getStringtable() { 3053 return stringtable_; 2802 public crosby.binary.Osmformat.StringTable getStringtable() { 2803 return instance.getStringtable(); 3054 2804 } 3055 2805 /** … … 3057 2807 */ 3058 2808 public Builder setStringtable(crosby.binary.Osmformat.StringTable value) { 3059 if (value == null) { 3060 throw new NullPointerException(); 3061 } 3062 stringtable_ = value; 3063 3064 bitField0_ |= 0x00000001; 3065 return this; 3066 } 2809 copyOnWrite(); 2810 instance.setStringtable(value); 2811 return this; 2812 } 3067 2813 /** 3068 2814 * <code>required .OSMPBF.StringTable stringtable = 1;</code> … … 3070 2816 public Builder setStringtable( 3071 2817 crosby.binary.Osmformat.StringTable.Builder builderForValue) { 3072 stringtable_ = builderForValue.build(); 3073 3074 bitField0_ |= 0x00000001; 2818 copyOnWrite(); 2819 instance.setStringtable(builderForValue); 3075 2820 return this; 3076 2821 } … … 3079 2824 */ 3080 2825 public Builder mergeStringtable(crosby.binary.Osmformat.StringTable value) { 3081 if (((bitField0_ & 0x00000001) == 0x00000001) && 3082 stringtable_ != crosby.binary.Osmformat.StringTable.getDefaultInstance()) { 3083 stringtable_ = 3084 crosby.binary.Osmformat.StringTable.newBuilder(stringtable_).mergeFrom(value).buildPartial(); 3085 } else { 3086 stringtable_ = value; 3087 } 3088 3089 bitField0_ |= 0x00000001; 2826 copyOnWrite(); 2827 instance.mergeStringtable(value); 3090 2828 return this; 3091 2829 } … … 3093 2831 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 3094 2832 */ 3095 public Builder clearStringtable() { 3096 stringtable_ = crosby.binary.Osmformat.StringTable.getDefaultInstance(); 3097 3098 bitField0_ = (bitField0_ & ~0x00000001); 3099 return this; 3100 } 3101 3102 private java.util.List<crosby.binary.Osmformat.PrimitiveGroup> primitivegroup_ = 3103 java.util.Collections.emptyList(); 3104 private void ensurePrimitivegroupIsMutable() { 3105 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 3106 primitivegroup_ = new java.util.ArrayList<>(primitivegroup_); 3107 bitField0_ |= 0x00000002; 3108 } 2833 public Builder clearStringtable() { copyOnWrite(); 2834 instance.clearStringtable(); 2835 return this; 3109 2836 } 3110 2837 … … 3112 2839 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 3113 2840 */ 3114 @Override3115 publicjava.util.List<crosby.binary.Osmformat.PrimitiveGroup> getPrimitivegroupList() {3116 return java.util.Collections.unmodifiableList(primitivegroup_);2841 public java.util.List<crosby.binary.Osmformat.PrimitiveGroup> getPrimitivegroupList() { 2842 return java.util.Collections.unmodifiableList( 2843 instance.getPrimitivegroupList()); 3117 2844 } 3118 2845 /** 3119 2846 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 3120 2847 */ 3121 @Override 3122 public int getPrimitivegroupCount() { 3123 return primitivegroup_.size(); 3124 } 3125 /** 2848 public int getPrimitivegroupCount() { 2849 return instance.getPrimitivegroupCount(); 2850 }/** 3126 2851 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 3127 2852 */ 3128 @Override 3129 public crosby.binary.Osmformat.PrimitiveGroup getPrimitivegroup(int index) { 3130 return primitivegroup_.get(index); 2853 public crosby.binary.Osmformat.PrimitiveGroup getPrimitivegroup(int index) { 2854 return instance.getPrimitivegroup(index); 3131 2855 } 3132 2856 /** … … 3135 2859 public Builder setPrimitivegroup( 3136 2860 int index, crosby.binary.Osmformat.PrimitiveGroup value) { 3137 if (value == null) { 3138 throw new NullPointerException(); 3139 } 3140 ensurePrimitivegroupIsMutable(); 3141 primitivegroup_.set(index, value); 3142 2861 copyOnWrite(); 2862 instance.setPrimitivegroup(index, value); 3143 2863 return this; 3144 2864 } … … 3148 2868 public Builder setPrimitivegroup( 3149 2869 int index, crosby.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { 3150 ensurePrimitivegroupIsMutable(); 3151 primitivegroup_.set(index, builderForValue.build()); 3152 2870 copyOnWrite(); 2871 instance.setPrimitivegroup(index, builderForValue); 3153 2872 return this; 3154 2873 } … … 3157 2876 */ 3158 2877 public Builder addPrimitivegroup(crosby.binary.Osmformat.PrimitiveGroup value) { 3159 if (value == null) { 3160 throw new NullPointerException(); 3161 } 3162 ensurePrimitivegroupIsMutable(); 3163 primitivegroup_.add(value); 3164 2878 copyOnWrite(); 2879 instance.addPrimitivegroup(value); 3165 2880 return this; 3166 2881 } … … 3170 2885 public Builder addPrimitivegroup( 3171 2886 int index, crosby.binary.Osmformat.PrimitiveGroup value) { 3172 if (value == null) { 3173 throw new NullPointerException(); 3174 } 3175 ensurePrimitivegroupIsMutable(); 3176 primitivegroup_.add(index, value); 3177 2887 copyOnWrite(); 2888 instance.addPrimitivegroup(index, value); 3178 2889 return this; 3179 2890 } … … 3183 2894 public Builder addPrimitivegroup( 3184 2895 crosby.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { 3185 ensurePrimitivegroupIsMutable(); 3186 primitivegroup_.add(builderForValue.build()); 3187 2896 copyOnWrite(); 2897 instance.addPrimitivegroup(builderForValue); 3188 2898 return this; 3189 2899 } … … 3193 2903 public Builder addPrimitivegroup( 3194 2904 int index, crosby.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { 3195 ensurePrimitivegroupIsMutable(); 3196 primitivegroup_.add(index, builderForValue.build()); 3197 2905 copyOnWrite(); 2906 instance.addPrimitivegroup(index, builderForValue); 3198 2907 return this; 3199 2908 } … … 3203 2912 public Builder addAllPrimitivegroup( 3204 2913 java.lang.Iterable<? extends crosby.binary.Osmformat.PrimitiveGroup> values) { 3205 ensurePrimitivegroupIsMutable(); 3206 com.google.protobuf.AbstractMessageLite.Builder.addAll( 3207 values, primitivegroup_); 3208 2914 copyOnWrite(); 2915 instance.addAllPrimitivegroup(values); 3209 2916 return this; 3210 2917 } … … 3213 2920 */ 3214 2921 public Builder clearPrimitivegroup() { 3215 primitivegroup_ = java.util.Collections.emptyList(); 3216 bitField0_ = (bitField0_ & ~0x00000002); 3217 2922 copyOnWrite(); 2923 instance.clearPrimitivegroup(); 3218 2924 return this; 3219 2925 } … … 3222 2928 */ 3223 2929 public Builder removePrimitivegroup(int index) { 3224 ensurePrimitivegroupIsMutable(); 3225 primitivegroup_.remove(index); 3226 3227 return this; 3228 } 3229 3230 private int granularity_ = 100; 3231 /** 2930 copyOnWrite(); 2931 instance.removePrimitivegroup(index); 2932 return this; 2933 } 2934 2935 /** 2936 * <pre> 2937 * Granularity, units of nanodegrees, used to store coordinates in this block 2938 * </pre> 2939 * 3232 2940 * <code>optional int32 granularity = 17 [default = 100];</code> 3233 * 2941 */ 2942 public boolean hasGranularity() { 2943 return instance.hasGranularity(); 2944 } 2945 /** 3234 2946 * <pre> 3235 2947 * Granularity, units of nanodegrees, used to store coordinates in this block 3236 2948 * </pre> 3237 */ 3238 @Override 3239 public boolean hasGranularity() { 3240 return ((bitField0_ & 0x00000004) == 0x00000004); 3241 } 3242 /** 2949 * 3243 2950 * <code>optional int32 granularity = 17 [default = 100];</code> 3244 * 2951 */ 2952 public int getGranularity() { 2953 return instance.getGranularity(); 2954 } 2955 /** 3245 2956 * <pre> 3246 2957 * Granularity, units of nanodegrees, used to store coordinates in this block 3247 2958 * </pre> 3248 */ 3249 @Override 3250 public int getGranularity() { 3251 return granularity_; 3252 } 3253 /** 2959 * 3254 2960 * <code>optional int32 granularity = 17 [default = 100];</code> 3255 * 2961 */ 2962 public Builder setGranularity(int value) { 2963 copyOnWrite(); 2964 instance.setGranularity(value); 2965 return this; 2966 } 2967 /** 3256 2968 * <pre> 3257 2969 * Granularity, units of nanodegrees, used to store coordinates in this block 3258 2970 * </pre> 3259 */ 3260 public Builder setGranularity(int value) { 3261 bitField0_ |= 0x00000004; 3262 granularity_ = value; 3263 3264 return this; 3265 } 3266 /** 2971 * 3267 2972 * <code>optional int32 granularity = 17 [default = 100];</code> 3268 *3269 * <pre>3270 * Granularity, units of nanodegrees, used to store coordinates in this block3271 * </pre>3272 2973 */ 3273 2974 public Builder clearGranularity() { 3274 bitField0_ = (bitField0_ & ~0x00000004); 3275 granularity_ = 100; 3276 3277 return this; 3278 } 3279 3280 private long latOffset_ ; 3281 /** 2975 copyOnWrite(); 2976 instance.clearGranularity(); 2977 return this; 2978 } 2979 2980 /** 2981 * <pre> 2982 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2983 * </pre> 2984 * 3282 2985 * <code>optional int64 lat_offset = 19 [default = 0];</code> 3283 * 2986 */ 2987 public boolean hasLatOffset() { 2988 return instance.hasLatOffset(); 2989 } 2990 /** 3284 2991 * <pre> 3285 2992 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 3286 2993 * </pre> 3287 */ 3288 @Override 3289 public boolean hasLatOffset() { 3290 return ((bitField0_ & 0x00000008) == 0x00000008); 3291 } 3292 /** 2994 * 3293 2995 * <code>optional int64 lat_offset = 19 [default = 0];</code> 3294 * 2996 */ 2997 public long getLatOffset() { 2998 return instance.getLatOffset(); 2999 } 3000 /** 3295 3001 * <pre> 3296 3002 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 3297 3003 * </pre> 3298 */ 3299 @Override 3300 public long getLatOffset() { 3301 return latOffset_; 3302 } 3303 /** 3004 * 3304 3005 * <code>optional int64 lat_offset = 19 [default = 0];</code> 3305 * 3006 */ 3007 public Builder setLatOffset(long value) { 3008 copyOnWrite(); 3009 instance.setLatOffset(value); 3010 return this; 3011 } 3012 /** 3306 3013 * <pre> 3307 3014 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 3308 3015 * </pre> 3309 */ 3310 public Builder setLatOffset(long value) { 3311 bitField0_ |= 0x00000008; 3312 latOffset_ = value; 3313 3314 return this; 3315 } 3316 /** 3016 * 3317 3017 * <code>optional int64 lat_offset = 19 [default = 0];</code> 3318 *3319 * <pre>3320 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.3321 * </pre>3322 3018 */ 3323 3019 public Builder clearLatOffset() { 3324 bitField0_ = (bitField0_ & ~0x00000008); 3325 latOffset_ = 0L; 3326 3327 return this; 3328 } 3329 3330 private long lonOffset_ ; 3020 copyOnWrite(); 3021 instance.clearLatOffset(); 3022 return this; 3023 } 3024 3331 3025 /** 3332 3026 * <code>optional int64 lon_offset = 20 [default = 0];</code> 3333 3027 */ 3334 @Override 3335 public boolean hasLonOffset() { 3336 return ((bitField0_ & 0x00000010) == 0x00000010); 3028 public boolean hasLonOffset() { 3029 return instance.hasLonOffset(); 3337 3030 } 3338 3031 /** 3339 3032 * <code>optional int64 lon_offset = 20 [default = 0];</code> 3340 3033 */ 3341 @Override 3342 public long getLonOffset() { 3343 return lonOffset_; 3034 public long getLonOffset() { 3035 return instance.getLonOffset(); 3344 3036 } 3345 3037 /** … … 3347 3039 */ 3348 3040 public Builder setLonOffset(long value) { 3349 bitField0_ |= 0x00000010; 3350 lonOffset_ = value; 3351 3041 copyOnWrite(); 3042 instance.setLonOffset(value); 3352 3043 return this; 3353 3044 } … … 3356 3047 */ 3357 3048 public Builder clearLonOffset() { 3358 bitField0_ = (bitField0_ & ~0x00000010); 3359 lonOffset_ = 0L; 3360 3361 return this; 3362 } 3363 3364 private int dateGranularity_ = 1000; 3365 /** 3049 copyOnWrite(); 3050 instance.clearLonOffset(); 3051 return this; 3052 } 3053 3054 /** 3055 * <pre> 3056 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 3057 * </pre> 3058 * 3366 3059 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 3367 * 3060 */ 3061 public boolean hasDateGranularity() { 3062 return instance.hasDateGranularity(); 3063 } 3064 /** 3368 3065 * <pre> 3369 3066 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 3370 3067 * </pre> 3371 */ 3372 @Override 3373 public boolean hasDateGranularity() { 3374 return ((bitField0_ & 0x00000020) == 0x00000020); 3375 } 3376 /** 3068 * 3377 3069 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 3378 * 3070 */ 3071 public int getDateGranularity() { 3072 return instance.getDateGranularity(); 3073 } 3074 /** 3379 3075 * <pre> 3380 3076 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 3381 3077 * </pre> 3382 */ 3383 @Override 3384 public int getDateGranularity() { 3385 return dateGranularity_; 3386 } 3387 /** 3078 * 3388 3079 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 3389 * 3080 */ 3081 public Builder setDateGranularity(int value) { 3082 copyOnWrite(); 3083 instance.setDateGranularity(value); 3084 return this; 3085 } 3086 /** 3390 3087 * <pre> 3391 3088 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 3392 3089 * </pre> 3393 */ 3394 public Builder setDateGranularity(int value) { 3395 bitField0_ |= 0x00000020; 3396 dateGranularity_ = value; 3397 3398 return this; 3399 } 3400 /** 3090 * 3401 3091 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 3402 *3403 * <pre>3404 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.3405 * </pre>3406 3092 */ 3407 3093 public Builder clearDateGranularity() { 3408 bitField0_ = (bitField0_ & ~0x00000020); 3409 dateGranularity_ = 1000; 3410 3094 copyOnWrite(); 3095 instance.clearDateGranularity(); 3411 3096 return this; 3412 3097 } … … 3414 3099 // @@protoc_insertion_point(builder_scope:OSMPBF.PrimitiveBlock) 3415 3100 } 3416 3101 private byte memoizedIsInitialized = -1; 3102 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 3103 protected final java.lang.Object dynamicMethod( 3104 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 3105 java.lang.Object arg0, java.lang.Object arg1) { 3106 switch (method) { 3107 case NEW_MUTABLE_INSTANCE: { 3108 return new crosby.binary.Osmformat.PrimitiveBlock(); 3109 } 3110 case IS_INITIALIZED: { 3111 byte isInitialized = memoizedIsInitialized; 3112 if (isInitialized == 1) return DEFAULT_INSTANCE; 3113 if (isInitialized == 0) return null; 3114 3115 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 3116 if (!hasStringtable()) { 3117 if (shouldMemoize) { 3118 memoizedIsInitialized = 0; 3119 } 3120 return null; 3121 } 3122 for (int i = 0; i < getPrimitivegroupCount(); i++) { 3123 if (!getPrimitivegroup(i).isInitialized()) { 3124 if (shouldMemoize) { 3125 memoizedIsInitialized = 0; 3126 } 3127 return null; 3128 } 3129 } 3130 if (shouldMemoize) memoizedIsInitialized = 1; 3131 return DEFAULT_INSTANCE; 3132 3133 } 3134 case MAKE_IMMUTABLE: { 3135 primitivegroup_.makeImmutable(); 3136 return null; 3137 } 3138 case NEW_BUILDER: { 3139 return new Builder(); 3140 } 3141 case VISIT: { 3142 Visitor visitor = (Visitor) arg0; 3143 crosby.binary.Osmformat.PrimitiveBlock other = (crosby.binary.Osmformat.PrimitiveBlock) arg1; 3144 stringtable_ = visitor.visitMessage(stringtable_, other.stringtable_); 3145 primitivegroup_= visitor.visitList(primitivegroup_, other.primitivegroup_); 3146 granularity_ = visitor.visitInt( 3147 hasGranularity(), granularity_, 3148 other.hasGranularity(), other.granularity_); 3149 latOffset_ = visitor.visitLong( 3150 hasLatOffset(), latOffset_, 3151 other.hasLatOffset(), other.latOffset_); 3152 lonOffset_ = visitor.visitLong( 3153 hasLonOffset(), lonOffset_, 3154 other.hasLonOffset(), other.lonOffset_); 3155 dateGranularity_ = visitor.visitInt( 3156 hasDateGranularity(), dateGranularity_, 3157 other.hasDateGranularity(), other.dateGranularity_); 3158 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 3159 .INSTANCE) { 3160 bitField0_ |= other.bitField0_; 3161 } 3162 return this; 3163 } 3164 case MERGE_FROM_STREAM: { 3165 com.google.protobuf.CodedInputStream input = 3166 (com.google.protobuf.CodedInputStream) arg0; 3167 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 3168 (com.google.protobuf.ExtensionRegistryLite) arg1; 3169 try { 3170 boolean done = false; 3171 while (!done) { 3172 int tag = input.readTag(); 3173 switch (tag) { 3174 case 0: 3175 done = true; 3176 break; 3177 default: { 3178 if (!parseUnknownField(tag, input)) { 3179 done = true; 3180 } 3181 break; 3182 } 3183 case 10: { 3184 crosby.binary.Osmformat.StringTable.Builder subBuilder = null; 3185 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3186 subBuilder = stringtable_.toBuilder(); 3187 } 3188 stringtable_ = input.readMessage(crosby.binary.Osmformat.StringTable.parser(), extensionRegistry); 3189 if (subBuilder != null) { 3190 subBuilder.mergeFrom(stringtable_); 3191 stringtable_ = subBuilder.buildPartial(); 3192 } 3193 bitField0_ |= 0x00000001; 3194 break; 3195 } 3196 case 18: { 3197 if (!primitivegroup_.isModifiable()) { 3198 primitivegroup_ = 3199 com.google.protobuf.GeneratedMessageLite.mutableCopy(primitivegroup_); 3200 } 3201 primitivegroup_.add( 3202 input.readMessage(crosby.binary.Osmformat.PrimitiveGroup.parser(), extensionRegistry)); 3203 break; 3204 } 3205 case 136: { 3206 bitField0_ |= 0x00000002; 3207 granularity_ = input.readInt32(); 3208 break; 3209 } 3210 case 144: { 3211 bitField0_ |= 0x00000010; 3212 dateGranularity_ = input.readInt32(); 3213 break; 3214 } 3215 case 152: { 3216 bitField0_ |= 0x00000004; 3217 latOffset_ = input.readInt64(); 3218 break; 3219 } 3220 case 160: { 3221 bitField0_ |= 0x00000008; 3222 lonOffset_ = input.readInt64(); 3223 break; 3224 } 3225 } 3226 } 3227 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3228 throw new RuntimeException(e.setUnfinishedMessage(this)); 3229 } catch (java.io.IOException e) { 3230 throw new RuntimeException( 3231 new com.google.protobuf.InvalidProtocolBufferException( 3232 e.getMessage()).setUnfinishedMessage(this)); 3233 } finally { 3234 } 3235 } 3236 // fall through 3237 case GET_DEFAULT_INSTANCE: { 3238 return DEFAULT_INSTANCE; 3239 } 3240 case GET_PARSER: { 3241 if (PARSER == null) { synchronized (crosby.binary.Osmformat.PrimitiveBlock.class) { 3242 if (PARSER == null) { 3243 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 3244 } 3245 } 3246 } 3247 return PARSER; 3248 } 3249 } 3250 throw new UnsupportedOperationException(); 3251 } 3252 3253 3254 // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveBlock) 3255 private static final crosby.binary.Osmformat.PrimitiveBlock DEFAULT_INSTANCE; 3417 3256 static { 3418 defaultInstance = new PrimitiveBlock(true); 3419 defaultInstance.initFields(); 3420 } 3421 3422 // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveBlock) 3257 DEFAULT_INSTANCE = new PrimitiveBlock(); 3258 DEFAULT_INSTANCE.makeImmutable(); 3259 } 3260 3261 public static crosby.binary.Osmformat.PrimitiveBlock getDefaultInstance() { 3262 return DEFAULT_INSTANCE; 3263 } 3264 3265 private static volatile com.google.protobuf.Parser<PrimitiveBlock> PARSER; 3266 3267 public static com.google.protobuf.Parser<PrimitiveBlock> parser() { 3268 return DEFAULT_INSTANCE.getParserForType(); 3269 } 3423 3270 } 3424 3271 … … 3430 3277 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3431 3278 */ 3432 java.util.List<crosby.binary.Osmformat.Node> 3279 java.util.List<crosby.binary.Osmformat.Node> 3433 3280 getNodesList(); 3434 3281 /** … … 3453 3300 * <code>repeated .OSMPBF.Way ways = 3;</code> 3454 3301 */ 3455 java.util.List<crosby.binary.Osmformat.Way> 3302 java.util.List<crosby.binary.Osmformat.Way> 3456 3303 getWaysList(); 3457 3304 /** … … 3467 3314 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3468 3315 */ 3469 java.util.List<crosby.binary.Osmformat.Relation> 3316 java.util.List<crosby.binary.Osmformat.Relation> 3470 3317 getRelationsList(); 3471 3318 /** … … 3481 3328 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3482 3329 */ 3483 java.util.List<crosby.binary.Osmformat.ChangeSet> 3330 java.util.List<crosby.binary.Osmformat.ChangeSet> 3484 3331 getChangesetsList(); 3485 3332 /** … … 3493 3340 } 3494 3341 /** 3495 * Protobuf type {@code OSMPBF.PrimitiveGroup}3496 *3497 3342 * <pre> 3498 3343 * Group of OSMPrimitives. All primitives in a group must be the same type. 3499 3344 * </pre> 3345 * 3346 * Protobuf type {@code OSMPBF.PrimitiveGroup} 3500 3347 */ 3501 public static final class PrimitiveGroup extends 3502 com.google.protobuf.GeneratedMessageLite implements 3348 public static final class PrimitiveGroup extends 3349 com.google.protobuf.GeneratedMessageLite< 3350 PrimitiveGroup, PrimitiveGroup.Builder> implements 3503 3351 // @@protoc_insertion_point(message_implements:OSMPBF.PrimitiveGroup) 3504 3352 PrimitiveGroupOrBuilder { 3505 // Use PrimitiveGroup.newBuilder() to construct. 3506 private PrimitiveGroup(com.google.protobuf.GeneratedMessageLite.Builder builder) { 3507 super(builder); 3508 this.unknownFields = builder.getUnknownFields(); 3509 } 3510 private PrimitiveGroup(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 3511 3512 private static final PrimitiveGroup defaultInstance; 3513 public static PrimitiveGroup getDefaultInstance() { 3514 return defaultInstance; 3515 } 3516 3517 @Override 3518 public PrimitiveGroup getDefaultInstanceForType() { 3519 return defaultInstance; 3520 } 3521 3522 private final com.google.protobuf.ByteString unknownFields; 3523 private PrimitiveGroup( 3524 com.google.protobuf.CodedInputStream input, 3525 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3526 throws com.google.protobuf.InvalidProtocolBufferException { 3527 initFields(); 3528 int mutable_bitField0_ = 0; 3529 com.google.protobuf.ByteString.Output unknownFieldsOutput = 3530 com.google.protobuf.ByteString.newOutput(); 3531 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 3532 com.google.protobuf.CodedOutputStream.newInstance( 3533 unknownFieldsOutput); 3534 try { 3535 boolean done = false; 3536 while (!done) { 3537 int tag = input.readTag(); 3538 switch (tag) { 3539 case 0: 3540 done = true; 3541 break; 3542 default: { 3543 if (!parseUnknownField(input, unknownFieldsCodedOutput, 3544 extensionRegistry, tag)) { 3545 done = true; 3546 } 3547 break; 3548 } 3549 case 10: { 3550 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 3551 nodes_ = new java.util.ArrayList<>(); 3552 mutable_bitField0_ |= 0x00000001; 3553 } 3554 nodes_.add(input.readMessage(crosby.binary.Osmformat.Node.PARSER, extensionRegistry)); 3555 break; 3556 } 3557 case 18: { 3558 crosby.binary.Osmformat.DenseNodes.Builder subBuilder = null; 3559 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3560 subBuilder = dense_.toBuilder(); 3561 } 3562 dense_ = input.readMessage(crosby.binary.Osmformat.DenseNodes.PARSER, extensionRegistry); 3563 if (subBuilder != null) { 3564 subBuilder.mergeFrom(dense_); 3565 dense_ = subBuilder.buildPartial(); 3566 } 3567 bitField0_ |= 0x00000001; 3568 break; 3569 } 3570 case 26: { 3571 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 3572 ways_ = new java.util.ArrayList<>(); 3573 mutable_bitField0_ |= 0x00000004; 3574 } 3575 ways_.add(input.readMessage(crosby.binary.Osmformat.Way.PARSER, extensionRegistry)); 3576 break; 3577 } 3578 case 34: { 3579 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 3580 relations_ = new java.util.ArrayList<>(); 3581 mutable_bitField0_ |= 0x00000008; 3582 } 3583 relations_.add(input.readMessage(crosby.binary.Osmformat.Relation.PARSER, extensionRegistry)); 3584 break; 3585 } 3586 case 42: { 3587 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 3588 changesets_ = new java.util.ArrayList<>(); 3589 mutable_bitField0_ |= 0x00000010; 3590 } 3591 changesets_.add(input.readMessage(crosby.binary.Osmformat.ChangeSet.PARSER, extensionRegistry)); 3592 break; 3593 } 3594 } 3595 } 3596 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3597 throw e.setUnfinishedMessage(this); 3598 } catch (java.io.IOException e) { 3599 throw new com.google.protobuf.InvalidProtocolBufferException( 3600 e.getMessage()).setUnfinishedMessage(this); 3601 } finally { 3602 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 3603 nodes_ = java.util.Collections.unmodifiableList(nodes_); 3604 } 3605 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 3606 ways_ = java.util.Collections.unmodifiableList(ways_); 3607 } 3608 if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 3609 relations_ = java.util.Collections.unmodifiableList(relations_); 3610 } 3611 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 3612 changesets_ = java.util.Collections.unmodifiableList(changesets_); 3613 } 3614 try { 3615 unknownFieldsCodedOutput.flush(); 3616 } catch (java.io.IOException e) { 3617 // Should not happen 3618 } finally { 3619 unknownFields = unknownFieldsOutput.toByteString(); 3620 } 3621 makeExtensionsImmutable(); 3622 } 3623 } 3624 public static com.google.protobuf.Parser<PrimitiveGroup> PARSER = 3625 new com.google.protobuf.AbstractParser<PrimitiveGroup>() { 3626 @Override 3627 public PrimitiveGroup parsePartialFrom( 3628 com.google.protobuf.CodedInputStream input, 3629 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3630 throws com.google.protobuf.InvalidProtocolBufferException { 3631 return new PrimitiveGroup(input, extensionRegistry); 3632 } 3633 }; 3634 3635 @java.lang.Override 3636 public com.google.protobuf.Parser<PrimitiveGroup> getParserForType() { 3637 return PARSER; 3638 } 3639 3353 private PrimitiveGroup() { 3354 nodes_ = emptyProtobufList(); 3355 ways_ = emptyProtobufList(); 3356 relations_ = emptyProtobufList(); 3357 changesets_ = emptyProtobufList(); 3358 } 3640 3359 private int bitField0_; 3641 3360 public static final int NODES_FIELD_NUMBER = 1; 3642 private java.util.List<crosby.binary.Osmformat.Node> nodes_;3361 private com.google.protobuf.Internal.ProtobufList<crosby.binary.Osmformat.Node> nodes_; 3643 3362 /** 3644 3363 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3645 3364 */ 3646 @Override 3647 public java.util.List<crosby.binary.Osmformat.Node> getNodesList() { 3365 public java.util.List<crosby.binary.Osmformat.Node> getNodesList() { 3648 3366 return nodes_; 3649 3367 } … … 3651 3369 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3652 3370 */ 3653 public java.util.List<? extends crosby.binary.Osmformat.NodeOrBuilder> 3371 public java.util.List<? extends crosby.binary.Osmformat.NodeOrBuilder> 3654 3372 getNodesOrBuilderList() { 3655 3373 return nodes_; … … 3658 3376 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3659 3377 */ 3660 @Override 3661 public int getNodesCount() { 3378 public int getNodesCount() { 3662 3379 return nodes_.size(); 3663 3380 } … … 3665 3382 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3666 3383 */ 3667 @Override 3668 public crosby.binary.Osmformat.Node getNodes(int index) { 3384 public crosby.binary.Osmformat.Node getNodes(int index) { 3669 3385 return nodes_.get(index); 3670 3386 } … … 3676 3392 return nodes_.get(index); 3677 3393 } 3394 private void ensureNodesIsMutable() { 3395 if (!nodes_.isModifiable()) { 3396 nodes_ = 3397 com.google.protobuf.GeneratedMessageLite.mutableCopy(nodes_); 3398 } 3399 } 3400 3401 /** 3402 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3403 */ 3404 private void setNodes( 3405 int index, crosby.binary.Osmformat.Node value) { 3406 if (value == null) { 3407 throw new NullPointerException(); 3408 } 3409 ensureNodesIsMutable(); 3410 nodes_.set(index, value); 3411 } 3412 /** 3413 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3414 */ 3415 private void setNodes( 3416 int index, crosby.binary.Osmformat.Node.Builder builderForValue) { 3417 ensureNodesIsMutable(); 3418 nodes_.set(index, builderForValue.build()); 3419 } 3420 /** 3421 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3422 */ 3423 private void addNodes(crosby.binary.Osmformat.Node value) { 3424 if (value == null) { 3425 throw new NullPointerException(); 3426 } 3427 ensureNodesIsMutable(); 3428 nodes_.add(value); 3429 } 3430 /** 3431 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3432 */ 3433 private void addNodes( 3434 int index, crosby.binary.Osmformat.Node value) { 3435 if (value == null) { 3436 throw new NullPointerException(); 3437 } 3438 ensureNodesIsMutable(); 3439 nodes_.add(index, value); 3440 } 3441 /** 3442 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3443 */ 3444 private void addNodes( 3445 crosby.binary.Osmformat.Node.Builder builderForValue) { 3446 ensureNodesIsMutable(); 3447 nodes_.add(builderForValue.build()); 3448 } 3449 /** 3450 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3451 */ 3452 private void addNodes( 3453 int index, crosby.binary.Osmformat.Node.Builder builderForValue) { 3454 ensureNodesIsMutable(); 3455 nodes_.add(index, builderForValue.build()); 3456 } 3457 /** 3458 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3459 */ 3460 private void addAllNodes( 3461 java.lang.Iterable<? extends crosby.binary.Osmformat.Node> values) { 3462 ensureNodesIsMutable(); 3463 com.google.protobuf.AbstractMessageLite.addAll( 3464 values, nodes_); 3465 } 3466 /** 3467 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3468 */ 3469 private void clearNodes() { 3470 nodes_ = emptyProtobufList(); 3471 } 3472 /** 3473 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3474 */ 3475 private void removeNodes(int index) { 3476 ensureNodesIsMutable(); 3477 nodes_.remove(index); 3478 } 3678 3479 3679 3480 public static final int DENSE_FIELD_NUMBER = 2; … … 3682 3483 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3683 3484 */ 3684 @Override 3685 public boolean hasDense() { 3485 public boolean hasDense() { 3686 3486 return ((bitField0_ & 0x00000001) == 0x00000001); 3687 3487 } … … 3689 3489 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3690 3490 */ 3691 @Override 3692 public crosby.binary.Osmformat.DenseNodes getDense() { 3693 return dense_; 3491 public crosby.binary.Osmformat.DenseNodes getDense() { 3492 return dense_ == null ? crosby.binary.Osmformat.DenseNodes.getDefaultInstance() : dense_; 3493 } 3494 /** 3495 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3496 */ 3497 private void setDense(crosby.binary.Osmformat.DenseNodes value) { 3498 if (value == null) { 3499 throw new NullPointerException(); 3500 } 3501 dense_ = value; 3502 bitField0_ |= 0x00000001; 3503 } 3504 /** 3505 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3506 */ 3507 private void setDense( 3508 crosby.binary.Osmformat.DenseNodes.Builder builderForValue) { 3509 dense_ = builderForValue.build(); 3510 bitField0_ |= 0x00000001; 3511 } 3512 /** 3513 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3514 */ 3515 private void mergeDense(crosby.binary.Osmformat.DenseNodes value) { 3516 if (dense_ != null && 3517 dense_ != crosby.binary.Osmformat.DenseNodes.getDefaultInstance()) { 3518 dense_ = 3519 crosby.binary.Osmformat.DenseNodes.newBuilder(dense_).mergeFrom(value).buildPartial(); 3520 } else { 3521 dense_ = value; 3522 } 3523 bitField0_ |= 0x00000001; 3524 } 3525 /** 3526 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3527 */ 3528 private void clearDense() { dense_ = null; 3529 bitField0_ = (bitField0_ & ~0x00000001); 3694 3530 } 3695 3531 3696 3532 public static final int WAYS_FIELD_NUMBER = 3; 3697 private java.util.List<crosby.binary.Osmformat.Way> ways_;3533 private com.google.protobuf.Internal.ProtobufList<crosby.binary.Osmformat.Way> ways_; 3698 3534 /** 3699 3535 * <code>repeated .OSMPBF.Way ways = 3;</code> 3700 3536 */ 3701 @Override 3702 public java.util.List<crosby.binary.Osmformat.Way> getWaysList() { 3537 public java.util.List<crosby.binary.Osmformat.Way> getWaysList() { 3703 3538 return ways_; 3704 3539 } … … 3706 3541 * <code>repeated .OSMPBF.Way ways = 3;</code> 3707 3542 */ 3708 public java.util.List<? extends crosby.binary.Osmformat.WayOrBuilder> 3543 public java.util.List<? extends crosby.binary.Osmformat.WayOrBuilder> 3709 3544 getWaysOrBuilderList() { 3710 3545 return ways_; … … 3713 3548 * <code>repeated .OSMPBF.Way ways = 3;</code> 3714 3549 */ 3715 @Override 3716 public int getWaysCount() { 3550 public int getWaysCount() { 3717 3551 return ways_.size(); 3718 3552 } … … 3720 3554 * <code>repeated .OSMPBF.Way ways = 3;</code> 3721 3555 */ 3722 @Override 3723 public crosby.binary.Osmformat.Way getWays(int index) { 3556 public crosby.binary.Osmformat.Way getWays(int index) { 3724 3557 return ways_.get(index); 3725 3558 } … … 3731 3564 return ways_.get(index); 3732 3565 } 3566 private void ensureWaysIsMutable() { 3567 if (!ways_.isModifiable()) { 3568 ways_ = 3569 com.google.protobuf.GeneratedMessageLite.mutableCopy(ways_); 3570 } 3571 } 3572 3573 /** 3574 * <code>repeated .OSMPBF.Way ways = 3;</code> 3575 */ 3576 private void setWays( 3577 int index, crosby.binary.Osmformat.Way value) { 3578 if (value == null) { 3579 throw new NullPointerException(); 3580 } 3581 ensureWaysIsMutable(); 3582 ways_.set(index, value); 3583 } 3584 /** 3585 * <code>repeated .OSMPBF.Way ways = 3;</code> 3586 */ 3587 private void setWays( 3588 int index, crosby.binary.Osmformat.Way.Builder builderForValue) { 3589 ensureWaysIsMutable(); 3590 ways_.set(index, builderForValue.build()); 3591 } 3592 /** 3593 * <code>repeated .OSMPBF.Way ways = 3;</code> 3594 */ 3595 private void addWays(crosby.binary.Osmformat.Way value) { 3596 if (value == null) { 3597 throw new NullPointerException(); 3598 } 3599 ensureWaysIsMutable(); 3600 ways_.add(value); 3601 } 3602 /** 3603 * <code>repeated .OSMPBF.Way ways = 3;</code> 3604 */ 3605 private void addWays( 3606 int index, crosby.binary.Osmformat.Way value) { 3607 if (value == null) { 3608 throw new NullPointerException(); 3609 } 3610 ensureWaysIsMutable(); 3611 ways_.add(index, value); 3612 } 3613 /** 3614 * <code>repeated .OSMPBF.Way ways = 3;</code> 3615 */ 3616 private void addWays( 3617 crosby.binary.Osmformat.Way.Builder builderForValue) { 3618 ensureWaysIsMutable(); 3619 ways_.add(builderForValue.build()); 3620 } 3621 /** 3622 * <code>repeated .OSMPBF.Way ways = 3;</code> 3623 */ 3624 private void addWays( 3625 int index, crosby.binary.Osmformat.Way.Builder builderForValue) { 3626 ensureWaysIsMutable(); 3627 ways_.add(index, builderForValue.build()); 3628 } 3629 /** 3630 * <code>repeated .OSMPBF.Way ways = 3;</code> 3631 */ 3632 private void addAllWays( 3633 java.lang.Iterable<? extends crosby.binary.Osmformat.Way> values) { 3634 ensureWaysIsMutable(); 3635 com.google.protobuf.AbstractMessageLite.addAll( 3636 values, ways_); 3637 } 3638 /** 3639 * <code>repeated .OSMPBF.Way ways = 3;</code> 3640 */ 3641 private void clearWays() { 3642 ways_ = emptyProtobufList(); 3643 } 3644 /** 3645 * <code>repeated .OSMPBF.Way ways = 3;</code> 3646 */ 3647 private void removeWays(int index) { 3648 ensureWaysIsMutable(); 3649 ways_.remove(index); 3650 } 3733 3651 3734 3652 public static final int RELATIONS_FIELD_NUMBER = 4; 3735 private java.util.List<crosby.binary.Osmformat.Relation> relations_;3653 private com.google.protobuf.Internal.ProtobufList<crosby.binary.Osmformat.Relation> relations_; 3736 3654 /** 3737 3655 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3738 3656 */ 3739 @Override 3740 public java.util.List<crosby.binary.Osmformat.Relation> getRelationsList() { 3657 public java.util.List<crosby.binary.Osmformat.Relation> getRelationsList() { 3741 3658 return relations_; 3742 3659 } … … 3744 3661 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3745 3662 */ 3746 public java.util.List<? extends crosby.binary.Osmformat.RelationOrBuilder> 3663 public java.util.List<? extends crosby.binary.Osmformat.RelationOrBuilder> 3747 3664 getRelationsOrBuilderList() { 3748 3665 return relations_; … … 3751 3668 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3752 3669 */ 3753 @Override 3754 public int getRelationsCount() { 3670 public int getRelationsCount() { 3755 3671 return relations_.size(); 3756 3672 } … … 3758 3674 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3759 3675 */ 3760 @Override 3761 public crosby.binary.Osmformat.Relation getRelations(int index) { 3676 public crosby.binary.Osmformat.Relation getRelations(int index) { 3762 3677 return relations_.get(index); 3763 3678 } … … 3769 3684 return relations_.get(index); 3770 3685 } 3686 private void ensureRelationsIsMutable() { 3687 if (!relations_.isModifiable()) { 3688 relations_ = 3689 com.google.protobuf.GeneratedMessageLite.mutableCopy(relations_); 3690 } 3691 } 3692 3693 /** 3694 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3695 */ 3696 private void setRelations( 3697 int index, crosby.binary.Osmformat.Relation value) { 3698 if (value == null) { 3699 throw new NullPointerException(); 3700 } 3701 ensureRelationsIsMutable(); 3702 relations_.set(index, value); 3703 } 3704 /** 3705 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3706 */ 3707 private void setRelations( 3708 int index, crosby.binary.Osmformat.Relation.Builder builderForValue) { 3709 ensureRelationsIsMutable(); 3710 relations_.set(index, builderForValue.build()); 3711 } 3712 /** 3713 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3714 */ 3715 private void addRelations(crosby.binary.Osmformat.Relation value) { 3716 if (value == null) { 3717 throw new NullPointerException(); 3718 } 3719 ensureRelationsIsMutable(); 3720 relations_.add(value); 3721 } 3722 /** 3723 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3724 */ 3725 private void addRelations( 3726 int index, crosby.binary.Osmformat.Relation value) { 3727 if (value == null) { 3728 throw new NullPointerException(); 3729 } 3730 ensureRelationsIsMutable(); 3731 relations_.add(index, value); 3732 } 3733 /** 3734 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3735 */ 3736 private void addRelations( 3737 crosby.binary.Osmformat.Relation.Builder builderForValue) { 3738 ensureRelationsIsMutable(); 3739 relations_.add(builderForValue.build()); 3740 } 3741 /** 3742 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3743 */ 3744 private void addRelations( 3745 int index, crosby.binary.Osmformat.Relation.Builder builderForValue) { 3746 ensureRelationsIsMutable(); 3747 relations_.add(index, builderForValue.build()); 3748 } 3749 /** 3750 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3751 */ 3752 private void addAllRelations( 3753 java.lang.Iterable<? extends crosby.binary.Osmformat.Relation> values) { 3754 ensureRelationsIsMutable(); 3755 com.google.protobuf.AbstractMessageLite.addAll( 3756 values, relations_); 3757 } 3758 /** 3759 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3760 */ 3761 private void clearRelations() { 3762 relations_ = emptyProtobufList(); 3763 } 3764 /** 3765 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3766 */ 3767 private void removeRelations(int index) { 3768 ensureRelationsIsMutable(); 3769 relations_.remove(index); 3770 } 3771 3771 3772 3772 public static final int CHANGESETS_FIELD_NUMBER = 5; 3773 private java.util.List<crosby.binary.Osmformat.ChangeSet> changesets_;3773 private com.google.protobuf.Internal.ProtobufList<crosby.binary.Osmformat.ChangeSet> changesets_; 3774 3774 /** 3775 3775 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3776 3776 */ 3777 @Override 3778 public java.util.List<crosby.binary.Osmformat.ChangeSet> getChangesetsList() { 3777 public java.util.List<crosby.binary.Osmformat.ChangeSet> getChangesetsList() { 3779 3778 return changesets_; 3780 3779 } … … 3782 3781 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3783 3782 */ 3784 public java.util.List<? extends crosby.binary.Osmformat.ChangeSetOrBuilder> 3783 public java.util.List<? extends crosby.binary.Osmformat.ChangeSetOrBuilder> 3785 3784 getChangesetsOrBuilderList() { 3786 3785 return changesets_; … … 3789 3788 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3790 3789 */ 3791 @Override 3792 public int getChangesetsCount() { 3790 public int getChangesetsCount() { 3793 3791 return changesets_.size(); 3794 3792 } … … 3796 3794 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3797 3795 */ 3798 @Override 3799 public crosby.binary.Osmformat.ChangeSet getChangesets(int index) { 3796 public crosby.binary.Osmformat.ChangeSet getChangesets(int index) { 3800 3797 return changesets_.get(index); 3801 3798 } … … 3807 3804 return changesets_.get(index); 3808 3805 } 3809 3810 private void initFields() { 3811 nodes_ = java.util.Collections.emptyList(); 3812 dense_ = crosby.binary.Osmformat.DenseNodes.getDefaultInstance(); 3813 ways_ = java.util.Collections.emptyList(); 3814 relations_ = java.util.Collections.emptyList(); 3815 changesets_ = java.util.Collections.emptyList(); 3816 } 3817 private byte memoizedIsInitialized = -1; 3818 @Override 3819 public final boolean isInitialized() { 3820 byte isInitialized = memoizedIsInitialized; 3821 if (isInitialized == 1) return true; 3822 if (isInitialized == 0) return false; 3823 3824 for (int i = 0; i < getNodesCount(); i++) { 3825 if (!getNodes(i).isInitialized()) { 3826 memoizedIsInitialized = 0; 3827 return false; 3828 } 3829 } 3830 for (int i = 0; i < getWaysCount(); i++) { 3831 if (!getWays(i).isInitialized()) { 3832 memoizedIsInitialized = 0; 3833 return false; 3834 } 3835 } 3836 for (int i = 0; i < getRelationsCount(); i++) { 3837 if (!getRelations(i).isInitialized()) { 3838 memoizedIsInitialized = 0; 3839 return false; 3840 } 3841 } 3842 for (int i = 0; i < getChangesetsCount(); i++) { 3843 if (!getChangesets(i).isInitialized()) { 3844 memoizedIsInitialized = 0; 3845 return false; 3846 } 3847 } 3848 memoizedIsInitialized = 1; 3849 return true; 3850 } 3851 3852 @Override 3853 public void writeTo(com.google.protobuf.CodedOutputStream output) 3806 private void ensureChangesetsIsMutable() { 3807 if (!changesets_.isModifiable()) { 3808 changesets_ = 3809 com.google.protobuf.GeneratedMessageLite.mutableCopy(changesets_); 3810 } 3811 } 3812 3813 /** 3814 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3815 */ 3816 private void setChangesets( 3817 int index, crosby.binary.Osmformat.ChangeSet value) { 3818 if (value == null) { 3819 throw new NullPointerException(); 3820 } 3821 ensureChangesetsIsMutable(); 3822 changesets_.set(index, value); 3823 } 3824 /** 3825 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3826 */ 3827 private void setChangesets( 3828 int index, crosby.binary.Osmformat.ChangeSet.Builder builderForValue) { 3829 ensureChangesetsIsMutable(); 3830 changesets_.set(index, builderForValue.build()); 3831 } 3832 /** 3833 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3834 */ 3835 private void addChangesets(crosby.binary.Osmformat.ChangeSet value) { 3836 if (value == null) { 3837 throw new NullPointerException(); 3838 } 3839 ensureChangesetsIsMutable(); 3840 changesets_.add(value); 3841 } 3842 /** 3843 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3844 */ 3845 private void addChangesets( 3846 int index, crosby.binary.Osmformat.ChangeSet value) { 3847 if (value == null) { 3848 throw new NullPointerException(); 3849 } 3850 ensureChangesetsIsMutable(); 3851 changesets_.add(index, value); 3852 } 3853 /** 3854 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3855 */ 3856 private void addChangesets( 3857 crosby.binary.Osmformat.ChangeSet.Builder builderForValue) { 3858 ensureChangesetsIsMutable(); 3859 changesets_.add(builderForValue.build()); 3860 } 3861 /** 3862 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3863 */ 3864 private void addChangesets( 3865 int index, crosby.binary.Osmformat.ChangeSet.Builder builderForValue) { 3866 ensureChangesetsIsMutable(); 3867 changesets_.add(index, builderForValue.build()); 3868 } 3869 /** 3870 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3871 */ 3872 private void addAllChangesets( 3873 java.lang.Iterable<? extends crosby.binary.Osmformat.ChangeSet> values) { 3874 ensureChangesetsIsMutable(); 3875 com.google.protobuf.AbstractMessageLite.addAll( 3876 values, changesets_); 3877 } 3878 /** 3879 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3880 */ 3881 private void clearChangesets() { 3882 changesets_ = emptyProtobufList(); 3883 } 3884 /** 3885 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3886 */ 3887 private void removeChangesets(int index) { 3888 ensureChangesetsIsMutable(); 3889 changesets_.remove(index); 3890 } 3891 3892 public void writeTo(com.google.protobuf.CodedOutputStream output) 3854 3893 throws java.io.IOException { 3855 getSerializedSize();3856 3894 for (int i = 0; i < nodes_.size(); i++) { 3857 3895 output.writeMessage(1, nodes_.get(i)); 3858 3896 } 3859 3897 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3860 output.writeMessage(2, dense_);3898 output.writeMessage(2, getDense()); 3861 3899 } 3862 3900 for (int i = 0; i < ways_.size(); i++) { … … 3869 3907 output.writeMessage(5, changesets_.get(i)); 3870 3908 } 3871 output.writeRawBytes(unknownFields); 3872 } 3873 3874 private int memoizedSerializedSize = -1; 3875 @Override 3876 public int getSerializedSize() { 3909 unknownFields.writeTo(output); 3910 } 3911 3912 public int getSerializedSize() { 3877 3913 int size = memoizedSerializedSize; 3878 3914 if (size != -1) return size; … … 3885 3921 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3886 3922 size += com.google.protobuf.CodedOutputStream 3887 .computeMessageSize(2, dense_);3923 .computeMessageSize(2, getDense()); 3888 3924 } 3889 3925 for (int i = 0; i < ways_.size(); i++) { … … 3899 3935 .computeMessageSize(5, changesets_.get(i)); 3900 3936 } 3901 size += unknownFields. size();3937 size += unknownFields.getSerializedSize(); 3902 3938 memoizedSerializedSize = size; 3903 3939 return size; 3904 3940 } 3905 3941 3906 private static final long serialVersionUID = 0L; 3907 @java.lang.Override 3908 protected java.lang.Object writeReplace() 3909 throws java.io.ObjectStreamException { 3910 return super.writeReplace(); 3911 } 3912 3942 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( 3943 java.nio.ByteBuffer data) 3944 throws com.google.protobuf.InvalidProtocolBufferException { 3945 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3946 DEFAULT_INSTANCE, data); 3947 } 3948 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( 3949 java.nio.ByteBuffer data, 3950 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3951 throws com.google.protobuf.InvalidProtocolBufferException { 3952 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3953 DEFAULT_INSTANCE, data, extensionRegistry); 3954 } 3913 3955 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( 3914 3956 com.google.protobuf.ByteString data) 3915 3957 throws com.google.protobuf.InvalidProtocolBufferException { 3916 return PARSER.parseFrom(data); 3958 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3959 DEFAULT_INSTANCE, data); 3917 3960 } 3918 3961 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( … … 3920 3963 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3921 3964 throws com.google.protobuf.InvalidProtocolBufferException { 3922 return PARSER.parseFrom(data, extensionRegistry); 3965 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3966 DEFAULT_INSTANCE, data, extensionRegistry); 3923 3967 } 3924 3968 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(byte[] data) 3925 3969 throws com.google.protobuf.InvalidProtocolBufferException { 3926 return PARSER.parseFrom(data); 3970 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3971 DEFAULT_INSTANCE, data); 3927 3972 } 3928 3973 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( … … 3930 3975 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3931 3976 throws com.google.protobuf.InvalidProtocolBufferException { 3932 return PARSER.parseFrom(data, extensionRegistry); 3977 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3978 DEFAULT_INSTANCE, data, extensionRegistry); 3933 3979 } 3934 3980 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(java.io.InputStream input) 3935 3981 throws java.io.IOException { 3936 return PARSER.parseFrom(input); 3982 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3983 DEFAULT_INSTANCE, input); 3937 3984 } 3938 3985 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( … … 3940 3987 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3941 3988 throws java.io.IOException { 3942 return PARSER.parseFrom(input, extensionRegistry); 3989 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3990 DEFAULT_INSTANCE, input, extensionRegistry); 3943 3991 } 3944 3992 public static crosby.binary.Osmformat.PrimitiveGroup parseDelimitedFrom(java.io.InputStream input) 3945 3993 throws java.io.IOException { 3946 return PARSER.parseDelimitedFrom(input);3994 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 3947 3995 } 3948 3996 public static crosby.binary.Osmformat.PrimitiveGroup parseDelimitedFrom( … … 3950 3998 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3951 3999 throws java.io.IOException { 3952 return PARSER.parseDelimitedFrom(input, extensionRegistry);4000 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 3953 4001 } 3954 4002 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( 3955 4003 com.google.protobuf.CodedInputStream input) 3956 4004 throws java.io.IOException { 3957 return PARSER.parseFrom(input); 4005 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4006 DEFAULT_INSTANCE, input); 3958 4007 } 3959 4008 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( … … 3961 4010 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3962 4011 throws java.io.IOException { 3963 return PARSER.parseFrom(input, extensionRegistry); 3964 } 3965 3966 public static Builder newBuilder() { return Builder.create(); } 3967 @Override 3968 public Builder newBuilderForType() { return newBuilder(); } 4012 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4013 DEFAULT_INSTANCE, input, extensionRegistry); 4014 } 4015 4016 public static Builder newBuilder() { 4017 return DEFAULT_INSTANCE.toBuilder(); 4018 } 3969 4019 public static Builder newBuilder(crosby.binary.Osmformat.PrimitiveGroup prototype) { 3970 return newBuilder().mergeFrom(prototype); 3971 } 3972 @Override 3973 public Builder toBuilder() { return newBuilder(this); } 3974 3975 /** 4020 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 4021 } 4022 4023 /** 4024 * <pre> 4025 * Group of OSMPrimitives. All primitives in a group must be the same type. 4026 * </pre> 4027 * 3976 4028 * Protobuf type {@code OSMPBF.PrimitiveGroup} 3977 *3978 * <pre>3979 * Group of OSMPrimitives. All primitives in a group must be the same type.3980 * </pre>3981 4029 */ 3982 4030 public static final class Builder extends 3983 4031 com.google.protobuf.GeneratedMessageLite.Builder< 3984 crosby.binary.Osmformat.PrimitiveGroup, Builder> 3985 implements 4032 crosby.binary.Osmformat.PrimitiveGroup, Builder> implements 3986 4033 // @@protoc_insertion_point(builder_implements:OSMPBF.PrimitiveGroup) 3987 4034 crosby.binary.Osmformat.PrimitiveGroupOrBuilder { 3988 4035 // Construct using crosby.binary.Osmformat.PrimitiveGroup.newBuilder() 3989 4036 private Builder() { 3990 maybeForceBuilderInitialization(); 3991 } 3992 3993 private void maybeForceBuilderInitialization() { 3994 } 3995 private static Builder create() { 3996 return new Builder(); 3997 } 3998 3999 @Override 4000 public Builder clear() { 4001 super.clear(); 4002 nodes_ = java.util.Collections.emptyList(); 4003 bitField0_ = (bitField0_ & ~0x00000001); 4004 dense_ = crosby.binary.Osmformat.DenseNodes.getDefaultInstance(); 4005 bitField0_ = (bitField0_ & ~0x00000002); 4006 ways_ = java.util.Collections.emptyList(); 4007 bitField0_ = (bitField0_ & ~0x00000004); 4008 relations_ = java.util.Collections.emptyList(); 4009 bitField0_ = (bitField0_ & ~0x00000008); 4010 changesets_ = java.util.Collections.emptyList(); 4011 bitField0_ = (bitField0_ & ~0x00000010); 4012 return this; 4013 } 4014 4015 @Override 4016 public Builder clone() { 4017 return create().mergeFrom(buildPartial()); 4018 } 4019 4020 @Override 4021 public crosby.binary.Osmformat.PrimitiveGroup getDefaultInstanceForType() { 4022 return crosby.binary.Osmformat.PrimitiveGroup.getDefaultInstance(); 4023 } 4024 4025 @Override 4026 public crosby.binary.Osmformat.PrimitiveGroup build() { 4027 crosby.binary.Osmformat.PrimitiveGroup result = buildPartial(); 4028 if (!result.isInitialized()) { 4029 throw newUninitializedMessageException(result); 4030 } 4031 return result; 4032 } 4033 4034 @Override 4035 public crosby.binary.Osmformat.PrimitiveGroup buildPartial() { 4036 crosby.binary.Osmformat.PrimitiveGroup result = new crosby.binary.Osmformat.PrimitiveGroup(this); 4037 int from_bitField0_ = bitField0_; 4038 int to_bitField0_ = 0; 4039 if (((bitField0_ & 0x00000001) == 0x00000001)) { 4040 nodes_ = java.util.Collections.unmodifiableList(nodes_); 4041 bitField0_ = (bitField0_ & ~0x00000001); 4042 } 4043 result.nodes_ = nodes_; 4044 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 4045 to_bitField0_ |= 0x00000001; 4046 } 4047 result.dense_ = dense_; 4048 if (((bitField0_ & 0x00000004) == 0x00000004)) { 4049 ways_ = java.util.Collections.unmodifiableList(ways_); 4050 bitField0_ = (bitField0_ & ~0x00000004); 4051 } 4052 result.ways_ = ways_; 4053 if (((bitField0_ & 0x00000008) == 0x00000008)) { 4054 relations_ = java.util.Collections.unmodifiableList(relations_); 4055 bitField0_ = (bitField0_ & ~0x00000008); 4056 } 4057 result.relations_ = relations_; 4058 if (((bitField0_ & 0x00000010) == 0x00000010)) { 4059 changesets_ = java.util.Collections.unmodifiableList(changesets_); 4060 bitField0_ = (bitField0_ & ~0x00000010); 4061 } 4062 result.changesets_ = changesets_; 4063 result.bitField0_ = to_bitField0_; 4064 return result; 4065 } 4066 4067 @Override 4068 public Builder mergeFrom(crosby.binary.Osmformat.PrimitiveGroup other) { 4069 if (other == crosby.binary.Osmformat.PrimitiveGroup.getDefaultInstance()) return this; 4070 if (!other.nodes_.isEmpty()) { 4071 if (nodes_.isEmpty()) { 4072 nodes_ = other.nodes_; 4073 bitField0_ = (bitField0_ & ~0x00000001); 4074 } else { 4075 ensureNodesIsMutable(); 4076 nodes_.addAll(other.nodes_); 4077 } 4078 4079 } 4080 if (other.hasDense()) { 4081 mergeDense(other.getDense()); 4082 } 4083 if (!other.ways_.isEmpty()) { 4084 if (ways_.isEmpty()) { 4085 ways_ = other.ways_; 4086 bitField0_ = (bitField0_ & ~0x00000004); 4087 } else { 4088 ensureWaysIsMutable(); 4089 ways_.addAll(other.ways_); 4090 } 4091 4092 } 4093 if (!other.relations_.isEmpty()) { 4094 if (relations_.isEmpty()) { 4095 relations_ = other.relations_; 4096 bitField0_ = (bitField0_ & ~0x00000008); 4097 } else { 4098 ensureRelationsIsMutable(); 4099 relations_.addAll(other.relations_); 4100 } 4101 4102 } 4103 if (!other.changesets_.isEmpty()) { 4104 if (changesets_.isEmpty()) { 4105 changesets_ = other.changesets_; 4106 bitField0_ = (bitField0_ & ~0x00000010); 4107 } else { 4108 ensureChangesetsIsMutable(); 4109 changesets_.addAll(other.changesets_); 4110 } 4111 4112 } 4113 setUnknownFields( 4114 getUnknownFields().concat(other.unknownFields)); 4115 return this; 4116 } 4117 4118 @Override 4119 public final boolean isInitialized() { 4120 for (int i = 0; i < getNodesCount(); i++) { 4121 if (!getNodes(i).isInitialized()) { 4122 4123 return false; 4124 } 4125 } 4126 for (int i = 0; i < getWaysCount(); i++) { 4127 if (!getWays(i).isInitialized()) { 4128 4129 return false; 4130 } 4131 } 4132 for (int i = 0; i < getRelationsCount(); i++) { 4133 if (!getRelations(i).isInitialized()) { 4134 4135 return false; 4136 } 4137 } 4138 for (int i = 0; i < getChangesetsCount(); i++) { 4139 if (!getChangesets(i).isInitialized()) { 4140 4141 return false; 4142 } 4143 } 4144 return true; 4145 } 4146 4147 @Override 4148 public Builder mergeFrom( 4149 com.google.protobuf.CodedInputStream input, 4150 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4151 throws java.io.IOException { 4152 crosby.binary.Osmformat.PrimitiveGroup parsedMessage = null; 4153 try { 4154 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 4155 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4156 parsedMessage = (crosby.binary.Osmformat.PrimitiveGroup) e.getUnfinishedMessage(); 4157 throw e; 4158 } finally { 4159 if (parsedMessage != null) { 4160 mergeFrom(parsedMessage); 4161 } 4162 } 4163 return this; 4164 } 4165 private int bitField0_; 4166 4167 private java.util.List<crosby.binary.Osmformat.Node> nodes_ = 4168 java.util.Collections.emptyList(); 4169 private void ensureNodesIsMutable() { 4170 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 4171 nodes_ = new java.util.ArrayList<>(nodes_); 4172 bitField0_ |= 0x00000001; 4173 } 4174 } 4037 super(DEFAULT_INSTANCE); 4038 } 4039 4175 4040 4176 4041 /** 4177 4042 * <code>repeated .OSMPBF.Node nodes = 1;</code> 4178 4043 */ 4179 @Override4180 publicjava.util.List<crosby.binary.Osmformat.Node> getNodesList() {4181 return java.util.Collections.unmodifiableList(nodes_);4044 public java.util.List<crosby.binary.Osmformat.Node> getNodesList() { 4045 return java.util.Collections.unmodifiableList( 4046 instance.getNodesList()); 4182 4047 } 4183 4048 /** 4184 4049 * <code>repeated .OSMPBF.Node nodes = 1;</code> 4185 4050 */ 4186 @Override 4187 public int getNodesCount() { 4188 return nodes_.size(); 4189 } 4190 /** 4051 public int getNodesCount() { 4052 return instance.getNodesCount(); 4053 }/** 4191 4054 * <code>repeated .OSMPBF.Node nodes = 1;</code> 4192 4055 */ 4193 @Override 4194 public crosby.binary.Osmformat.Node getNodes(int index) { 4195 return nodes_.get(index); 4056 public crosby.binary.Osmformat.Node getNodes(int index) { 4057 return instance.getNodes(index); 4196 4058 } 4197 4059 /** … … 4200 4062 public Builder setNodes( 4201 4063 int index, crosby.binary.Osmformat.Node value) { 4202 if (value == null) { 4203 throw new NullPointerException(); 4204 } 4205 ensureNodesIsMutable(); 4206 nodes_.set(index, value); 4207 4064 copyOnWrite(); 4065 instance.setNodes(index, value); 4208 4066 return this; 4209 4067 } … … 4213 4071 public Builder setNodes( 4214 4072 int index, crosby.binary.Osmformat.Node.Builder builderForValue) { 4215 ensureNodesIsMutable(); 4216 nodes_.set(index, builderForValue.build()); 4217 4073 copyOnWrite(); 4074 instance.setNodes(index, builderForValue); 4218 4075 return this; 4219 4076 } … … 4222 4079 */ 4223 4080 public Builder addNodes(crosby.binary.Osmformat.Node value) { 4224 if (value == null) { 4225 throw new NullPointerException(); 4226 } 4227 ensureNodesIsMutable(); 4228 nodes_.add(value); 4229 4081 copyOnWrite(); 4082 instance.addNodes(value); 4230 4083 return this; 4231 4084 } … … 4235 4088 public Builder addNodes( 4236 4089 int index, crosby.binary.Osmformat.Node value) { 4237 if (value == null) { 4238 throw new NullPointerException(); 4239 } 4240 ensureNodesIsMutable(); 4241 nodes_.add(index, value); 4242 4090 copyOnWrite(); 4091 instance.addNodes(index, value); 4243 4092 return this; 4244 4093 } … … 4248 4097 public Builder addNodes( 4249 4098 crosby.binary.Osmformat.Node.Builder builderForValue) { 4250 ensureNodesIsMutable(); 4251 nodes_.add(builderForValue.build()); 4252 4099 copyOnWrite(); 4100 instance.addNodes(builderForValue); 4253 4101 return this; 4254 4102 } … … 4258 4106 public Builder addNodes( 4259 4107 int index, crosby.binary.Osmformat.Node.Builder builderForValue) { 4260 ensureNodesIsMutable(); 4261 nodes_.add(index, builderForValue.build()); 4262 4108 copyOnWrite(); 4109 instance.addNodes(index, builderForValue); 4263 4110 return this; 4264 4111 } … … 4268 4115 public Builder addAllNodes( 4269 4116 java.lang.Iterable<? extends crosby.binary.Osmformat.Node> values) { 4270 ensureNodesIsMutable(); 4271 com.google.protobuf.AbstractMessageLite.Builder.addAll( 4272 values, nodes_); 4273 4117 copyOnWrite(); 4118 instance.addAllNodes(values); 4274 4119 return this; 4275 4120 } … … 4278 4123 */ 4279 4124 public Builder clearNodes() { 4280 nodes_ = java.util.Collections.emptyList(); 4281 bitField0_ = (bitField0_ & ~0x00000001); 4282 4125 copyOnWrite(); 4126 instance.clearNodes(); 4283 4127 return this; 4284 4128 } … … 4287 4131 */ 4288 4132 public Builder removeNodes(int index) { 4289 ensureNodesIsMutable(); 4290 nodes_.remove(index); 4291 4292 return this; 4293 } 4294 4295 private crosby.binary.Osmformat.DenseNodes dense_ = crosby.binary.Osmformat.DenseNodes.getDefaultInstance(); 4133 copyOnWrite(); 4134 instance.removeNodes(index); 4135 return this; 4136 } 4137 4296 4138 /** 4297 4139 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 4298 4140 */ 4299 @Override 4300 public boolean hasDense() { 4301 return ((bitField0_ & 0x00000002) == 0x00000002); 4141 public boolean hasDense() { 4142 return instance.hasDense(); 4302 4143 } 4303 4144 /** 4304 4145 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 4305 4146 */ 4306 @Override 4307 public crosby.binary.Osmformat.DenseNodes getDense() { 4308 return dense_; 4147 public crosby.binary.Osmformat.DenseNodes getDense() { 4148 return instance.getDense(); 4309 4149 } 4310 4150 /** … … 4312 4152 */ 4313 4153 public Builder setDense(crosby.binary.Osmformat.DenseNodes value) { 4314 if (value == null) { 4315 throw new NullPointerException(); 4316 } 4317 dense_ = value; 4318 4319 bitField0_ |= 0x00000002; 4320 return this; 4321 } 4154 copyOnWrite(); 4155 instance.setDense(value); 4156 return this; 4157 } 4322 4158 /** 4323 4159 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> … … 4325 4161 public Builder setDense( 4326 4162 crosby.binary.Osmformat.DenseNodes.Builder builderForValue) { 4327 dense_ = builderForValue.build(); 4328 4329 bitField0_ |= 0x00000002; 4163 copyOnWrite(); 4164 instance.setDense(builderForValue); 4330 4165 return this; 4331 4166 } … … 4334 4169 */ 4335 4170 public Builder mergeDense(crosby.binary.Osmformat.DenseNodes value) { 4336 if (((bitField0_ & 0x00000002) == 0x00000002) && 4337 dense_ != crosby.binary.Osmformat.DenseNodes.getDefaultInstance()) { 4338 dense_ = 4339 crosby.binary.Osmformat.DenseNodes.newBuilder(dense_).mergeFrom(value).buildPartial(); 4340 } else { 4341 dense_ = value; 4342 } 4343 4344 bitField0_ |= 0x00000002; 4171 copyOnWrite(); 4172 instance.mergeDense(value); 4345 4173 return this; 4346 4174 } … … 4348 4176 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 4349 4177 */ 4350 public Builder clearDense() { 4351 dense_ = crosby.binary.Osmformat.DenseNodes.getDefaultInstance(); 4352 4353 bitField0_ = (bitField0_ & ~0x00000002); 4354 return this; 4355 } 4356 4357 private java.util.List<crosby.binary.Osmformat.Way> ways_ = 4358 java.util.Collections.emptyList(); 4359 private void ensureWaysIsMutable() { 4360 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 4361 ways_ = new java.util.ArrayList<>(ways_); 4362 bitField0_ |= 0x00000004; 4363 } 4178 public Builder clearDense() { copyOnWrite(); 4179 instance.clearDense(); 4180 return this; 4364 4181 } 4365 4182 … … 4367 4184 * <code>repeated .OSMPBF.Way ways = 3;</code> 4368 4185 */ 4369 @Override4370 publicjava.util.List<crosby.binary.Osmformat.Way> getWaysList() {4371 return java.util.Collections.unmodifiableList(ways_);4186 public java.util.List<crosby.binary.Osmformat.Way> getWaysList() { 4187 return java.util.Collections.unmodifiableList( 4188 instance.getWaysList()); 4372 4189 } 4373 4190 /** 4374 4191 * <code>repeated .OSMPBF.Way ways = 3;</code> 4375 4192 */ 4376 @Override 4377 public int getWaysCount() { 4378 return ways_.size(); 4379 } 4380 /** 4193 public int getWaysCount() { 4194 return instance.getWaysCount(); 4195 }/** 4381 4196 * <code>repeated .OSMPBF.Way ways = 3;</code> 4382 4197 */ 4383 @Override 4384 public crosby.binary.Osmformat.Way getWays(int index) { 4385 return ways_.get(index); 4198 public crosby.binary.Osmformat.Way getWays(int index) { 4199 return instance.getWays(index); 4386 4200 } 4387 4201 /** … … 4390 4204 public Builder setWays( 4391 4205 int index, crosby.binary.Osmformat.Way value) { 4392 if (value == null) { 4393 throw new NullPointerException(); 4394 } 4395 ensureWaysIsMutable(); 4396 ways_.set(index, value); 4397 4206 copyOnWrite(); 4207 instance.setWays(index, value); 4398 4208 return this; 4399 4209 } … … 4403 4213 public Builder setWays( 4404 4214 int index, crosby.binary.Osmformat.Way.Builder builderForValue) { 4405 ensureWaysIsMutable(); 4406 ways_.set(index, builderForValue.build()); 4407 4215 copyOnWrite(); 4216 instance.setWays(index, builderForValue); 4408 4217 return this; 4409 4218 } … … 4412 4221 */ 4413 4222 public Builder addWays(crosby.binary.Osmformat.Way value) { 4414 if (value == null) { 4415 throw new NullPointerException(); 4416 } 4417 ensureWaysIsMutable(); 4418 ways_.add(value); 4419 4223 copyOnWrite(); 4224 instance.addWays(value); 4420 4225 return this; 4421 4226 } … … 4425 4230 public Builder addWays( 4426 4231 int index, crosby.binary.Osmformat.Way value) { 4427 if (value == null) { 4428 throw new NullPointerException(); 4429 } 4430 ensureWaysIsMutable(); 4431 ways_.add(index, value); 4432 4232 copyOnWrite(); 4233 instance.addWays(index, value); 4433 4234 return this; 4434 4235 } … … 4438 4239 public Builder addWays( 4439 4240 crosby.binary.Osmformat.Way.Builder builderForValue) { 4440 ensureWaysIsMutable(); 4441 ways_.add(builderForValue.build()); 4442 4241 copyOnWrite(); 4242 instance.addWays(builderForValue); 4443 4243 return this; 4444 4244 } … … 4448 4248 public Builder addWays( 4449 4249 int index, crosby.binary.Osmformat.Way.Builder builderForValue) { 4450 ensureWaysIsMutable(); 4451 ways_.add(index, builderForValue.build()); 4452 4250 copyOnWrite(); 4251 instance.addWays(index, builderForValue); 4453 4252 return this; 4454 4253 } … … 4458 4257 public Builder addAllWays( 4459 4258 java.lang.Iterable<? extends crosby.binary.Osmformat.Way> values) { 4460 ensureWaysIsMutable(); 4461 com.google.protobuf.AbstractMessageLite.Builder.addAll( 4462 values, ways_); 4463 4259 copyOnWrite(); 4260 instance.addAllWays(values); 4464 4261 return this; 4465 4262 } … … 4468 4265 */ 4469 4266 public Builder clearWays() { 4470 ways_ = java.util.Collections.emptyList(); 4471 bitField0_ = (bitField0_ & ~0x00000004); 4472 4267 copyOnWrite(); 4268 instance.clearWays(); 4473 4269 return this; 4474 4270 } … … 4477 4273 */ 4478 4274 public Builder removeWays(int index) { 4479 ensureWaysIsMutable(); 4480 ways_.remove(index); 4481 4482 return this; 4483 } 4484 4485 private java.util.List<crosby.binary.Osmformat.Relation> relations_ = 4486 java.util.Collections.emptyList(); 4487 private void ensureRelationsIsMutable() { 4488 if (!((bitField0_ & 0x00000008) == 0x00000008)) { 4489 relations_ = new java.util.ArrayList<>(relations_); 4490 bitField0_ |= 0x00000008; 4491 } 4275 copyOnWrite(); 4276 instance.removeWays(index); 4277 return this; 4492 4278 } 4493 4279 … … 4495 4281 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4496 4282 */ 4497 @Override4498 publicjava.util.List<crosby.binary.Osmformat.Relation> getRelationsList() {4499 return java.util.Collections.unmodifiableList(relations_);4283 public java.util.List<crosby.binary.Osmformat.Relation> getRelationsList() { 4284 return java.util.Collections.unmodifiableList( 4285 instance.getRelationsList()); 4500 4286 } 4501 4287 /** 4502 4288 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4503 4289 */ 4504 @Override 4505 public int getRelationsCount() { 4506 return relations_.size(); 4507 } 4508 /** 4290 public int getRelationsCount() { 4291 return instance.getRelationsCount(); 4292 }/** 4509 4293 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4510 4294 */ 4511 @Override 4512 public crosby.binary.Osmformat.Relation getRelations(int index) { 4513 return relations_.get(index); 4295 public crosby.binary.Osmformat.Relation getRelations(int index) { 4296 return instance.getRelations(index); 4514 4297 } 4515 4298 /** … … 4518 4301 public Builder setRelations( 4519 4302 int index, crosby.binary.Osmformat.Relation value) { 4520 if (value == null) { 4521 throw new NullPointerException(); 4522 } 4523 ensureRelationsIsMutable(); 4524 relations_.set(index, value); 4525 4303 copyOnWrite(); 4304 instance.setRelations(index, value); 4526 4305 return this; 4527 4306 } … … 4531 4310 public Builder setRelations( 4532 4311 int index, crosby.binary.Osmformat.Relation.Builder builderForValue) { 4533 ensureRelationsIsMutable(); 4534 relations_.set(index, builderForValue.build()); 4535 4312 copyOnWrite(); 4313 instance.setRelations(index, builderForValue); 4536 4314 return this; 4537 4315 } … … 4540 4318 */ 4541 4319 public Builder addRelations(crosby.binary.Osmformat.Relation value) { 4542 if (value == null) { 4543 throw new NullPointerException(); 4544 } 4545 ensureRelationsIsMutable(); 4546 relations_.add(value); 4547 4320 copyOnWrite(); 4321 instance.addRelations(value); 4548 4322 return this; 4549 4323 } … … 4553 4327 public Builder addRelations( 4554 4328 int index, crosby.binary.Osmformat.Relation value) { 4555 if (value == null) { 4556 throw new NullPointerException(); 4557 } 4558 ensureRelationsIsMutable(); 4559 relations_.add(index, value); 4560 4329 copyOnWrite(); 4330 instance.addRelations(index, value); 4561 4331 return this; 4562 4332 } … … 4566 4336 public Builder addRelations( 4567 4337 crosby.binary.Osmformat.Relation.Builder builderForValue) { 4568 ensureRelationsIsMutable(); 4569 relations_.add(builderForValue.build()); 4570 4338 copyOnWrite(); 4339 instance.addRelations(builderForValue); 4571 4340 return this; 4572 4341 } … … 4576 4345 public Builder addRelations( 4577 4346 int index, crosby.binary.Osmformat.Relation.Builder builderForValue) { 4578 ensureRelationsIsMutable(); 4579 relations_.add(index, builderForValue.build()); 4580 4347 copyOnWrite(); 4348 instance.addRelations(index, builderForValue); 4581 4349 return this; 4582 4350 } … … 4586 4354 public Builder addAllRelations( 4587 4355 java.lang.Iterable<? extends crosby.binary.Osmformat.Relation> values) { 4588 ensureRelationsIsMutable(); 4589 com.google.protobuf.AbstractMessageLite.Builder.addAll( 4590 values, relations_); 4591 4356 copyOnWrite(); 4357 instance.addAllRelations(values); 4592 4358 return this; 4593 4359 } … … 4596 4362 */ 4597 4363 public Builder clearRelations() { 4598 relations_ = java.util.Collections.emptyList(); 4599 bitField0_ = (bitField0_ & ~0x00000008); 4600 4364 copyOnWrite(); 4365 instance.clearRelations(); 4601 4366 return this; 4602 4367 } … … 4605 4370 */ 4606 4371 public Builder removeRelations(int index) { 4607 ensureRelationsIsMutable(); 4608 relations_.remove(index); 4609 4610 return this; 4611 } 4612 4613 private java.util.List<crosby.binary.Osmformat.ChangeSet> changesets_ = 4614 java.util.Collections.emptyList(); 4615 private void ensureChangesetsIsMutable() { 4616 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 4617 changesets_ = new java.util.ArrayList<>(changesets_); 4618 bitField0_ |= 0x00000010; 4619 } 4372 copyOnWrite(); 4373 instance.removeRelations(index); 4374 return this; 4620 4375 } 4621 4376 … … 4623 4378 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4624 4379 */ 4625 @Override4626 publicjava.util.List<crosby.binary.Osmformat.ChangeSet> getChangesetsList() {4627 return java.util.Collections.unmodifiableList(changesets_);4380 public java.util.List<crosby.binary.Osmformat.ChangeSet> getChangesetsList() { 4381 return java.util.Collections.unmodifiableList( 4382 instance.getChangesetsList()); 4628 4383 } 4629 4384 /** 4630 4385 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4631 4386 */ 4632 @Override 4633 public int getChangesetsCount() { 4634 return changesets_.size(); 4635 } 4636 /** 4387 public int getChangesetsCount() { 4388 return instance.getChangesetsCount(); 4389 }/** 4637 4390 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4638 4391 */ 4639 @Override 4640 public crosby.binary.Osmformat.ChangeSet getChangesets(int index) { 4641 return changesets_.get(index); 4392 public crosby.binary.Osmformat.ChangeSet getChangesets(int index) { 4393 return instance.getChangesets(index); 4642 4394 } 4643 4395 /** … … 4646 4398 public Builder setChangesets( 4647 4399 int index, crosby.binary.Osmformat.ChangeSet value) { 4648 if (value == null) { 4649 throw new NullPointerException(); 4650 } 4651 ensureChangesetsIsMutable(); 4652 changesets_.set(index, value); 4653 4400 copyOnWrite(); 4401 instance.setChangesets(index, value); 4654 4402 return this; 4655 4403 } … … 4659 4407 public Builder setChangesets( 4660 4408 int index, crosby.binary.Osmformat.ChangeSet.Builder builderForValue) { 4661 ensureChangesetsIsMutable(); 4662 changesets_.set(index, builderForValue.build()); 4663 4409 copyOnWrite(); 4410 instance.setChangesets(index, builderForValue); 4664 4411 return this; 4665 4412 } … … 4668 4415 */ 4669 4416 public Builder addChangesets(crosby.binary.Osmformat.ChangeSet value) { 4670 if (value == null) { 4671 throw new NullPointerException(); 4672 } 4673 ensureChangesetsIsMutable(); 4674 changesets_.add(value); 4675 4417 copyOnWrite(); 4418 instance.addChangesets(value); 4676 4419 return this; 4677 4420 } … … 4681 4424 public Builder addChangesets( 4682 4425 int index, crosby.binary.Osmformat.ChangeSet value) { 4683 if (value == null) { 4684 throw new NullPointerException(); 4685 } 4686 ensureChangesetsIsMutable(); 4687 changesets_.add(index, value); 4688 4426 copyOnWrite(); 4427 instance.addChangesets(index, value); 4689 4428 return this; 4690 4429 } … … 4694 4433 public Builder addChangesets( 4695 4434 crosby.binary.Osmformat.ChangeSet.Builder builderForValue) { 4696 ensureChangesetsIsMutable(); 4697 changesets_.add(builderForValue.build()); 4698 4435 copyOnWrite(); 4436 instance.addChangesets(builderForValue); 4699 4437 return this; 4700 4438 } … … 4704 4442 public Builder addChangesets( 4705 4443 int index, crosby.binary.Osmformat.ChangeSet.Builder builderForValue) { 4706 ensureChangesetsIsMutable(); 4707 changesets_.add(index, builderForValue.build()); 4708 4444 copyOnWrite(); 4445 instance.addChangesets(index, builderForValue); 4709 4446 return this; 4710 4447 } … … 4714 4451 public Builder addAllChangesets( 4715 4452 java.lang.Iterable<? extends crosby.binary.Osmformat.ChangeSet> values) { 4716 ensureChangesetsIsMutable(); 4717 com.google.protobuf.AbstractMessageLite.Builder.addAll( 4718 values, changesets_); 4719 4453 copyOnWrite(); 4454 instance.addAllChangesets(values); 4720 4455 return this; 4721 4456 } … … 4724 4459 */ 4725 4460 public Builder clearChangesets() { 4726 changesets_ = java.util.Collections.emptyList(); 4727 bitField0_ = (bitField0_ & ~0x00000010); 4728 4461 copyOnWrite(); 4462 instance.clearChangesets(); 4729 4463 return this; 4730 4464 } … … 4733 4467 */ 4734 4468 public Builder removeChangesets(int index) { 4735 ensureChangesetsIsMutable(); 4736 changesets_.remove(index); 4737 4469 copyOnWrite(); 4470 instance.removeChangesets(index); 4738 4471 return this; 4739 4472 } … … 4741 4474 // @@protoc_insertion_point(builder_scope:OSMPBF.PrimitiveGroup) 4742 4475 } 4743 4476 private byte memoizedIsInitialized = -1; 4477 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 4478 protected final java.lang.Object dynamicMethod( 4479 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 4480 java.lang.Object arg0, java.lang.Object arg1) { 4481 switch (method) { 4482 case NEW_MUTABLE_INSTANCE: { 4483 return new crosby.binary.Osmformat.PrimitiveGroup(); 4484 } 4485 case IS_INITIALIZED: { 4486 byte isInitialized = memoizedIsInitialized; 4487 if (isInitialized == 1) return DEFAULT_INSTANCE; 4488 if (isInitialized == 0) return null; 4489 4490 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 4491 for (int i = 0; i < getNodesCount(); i++) { 4492 if (!getNodes(i).isInitialized()) { 4493 if (shouldMemoize) { 4494 memoizedIsInitialized = 0; 4495 } 4496 return null; 4497 } 4498 } 4499 for (int i = 0; i < getWaysCount(); i++) { 4500 if (!getWays(i).isInitialized()) { 4501 if (shouldMemoize) { 4502 memoizedIsInitialized = 0; 4503 } 4504 return null; 4505 } 4506 } 4507 for (int i = 0; i < getRelationsCount(); i++) { 4508 if (!getRelations(i).isInitialized()) { 4509 if (shouldMemoize) { 4510 memoizedIsInitialized = 0; 4511 } 4512 return null; 4513 } 4514 } 4515 for (int i = 0; i < getChangesetsCount(); i++) { 4516 if (!getChangesets(i).isInitialized()) { 4517 if (shouldMemoize) { 4518 memoizedIsInitialized = 0; 4519 } 4520 return null; 4521 } 4522 } 4523 if (shouldMemoize) memoizedIsInitialized = 1; 4524 return DEFAULT_INSTANCE; 4525 4526 } 4527 case MAKE_IMMUTABLE: { 4528 nodes_.makeImmutable(); 4529 ways_.makeImmutable(); 4530 relations_.makeImmutable(); 4531 changesets_.makeImmutable(); 4532 return null; 4533 } 4534 case NEW_BUILDER: { 4535 return new Builder(); 4536 } 4537 case VISIT: { 4538 Visitor visitor = (Visitor) arg0; 4539 crosby.binary.Osmformat.PrimitiveGroup other = (crosby.binary.Osmformat.PrimitiveGroup) arg1; 4540 nodes_= visitor.visitList(nodes_, other.nodes_); 4541 dense_ = visitor.visitMessage(dense_, other.dense_); 4542 ways_= visitor.visitList(ways_, other.ways_); 4543 relations_= visitor.visitList(relations_, other.relations_); 4544 changesets_= visitor.visitList(changesets_, other.changesets_); 4545 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 4546 .INSTANCE) { 4547 bitField0_ |= other.bitField0_; 4548 } 4549 return this; 4550 } 4551 case MERGE_FROM_STREAM: { 4552 com.google.protobuf.CodedInputStream input = 4553 (com.google.protobuf.CodedInputStream) arg0; 4554 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 4555 (com.google.protobuf.ExtensionRegistryLite) arg1; 4556 try { 4557 boolean done = false; 4558 while (!done) { 4559 int tag = input.readTag(); 4560 switch (tag) { 4561 case 0: 4562 done = true; 4563 break; 4564 default: { 4565 if (!parseUnknownField(tag, input)) { 4566 done = true; 4567 } 4568 break; 4569 } 4570 case 10: { 4571 if (!nodes_.isModifiable()) { 4572 nodes_ = 4573 com.google.protobuf.GeneratedMessageLite.mutableCopy(nodes_); 4574 } 4575 nodes_.add( 4576 input.readMessage(crosby.binary.Osmformat.Node.parser(), extensionRegistry)); 4577 break; 4578 } 4579 case 18: { 4580 crosby.binary.Osmformat.DenseNodes.Builder subBuilder = null; 4581 if (((bitField0_ & 0x00000001) == 0x00000001)) { 4582 subBuilder = dense_.toBuilder(); 4583 } 4584 dense_ = input.readMessage(crosby.binary.Osmformat.DenseNodes.parser(), extensionRegistry); 4585 if (subBuilder != null) { 4586 subBuilder.mergeFrom(dense_); 4587 dense_ = subBuilder.buildPartial(); 4588 } 4589 bitField0_ |= 0x00000001; 4590 break; 4591 } 4592 case 26: { 4593 if (!ways_.isModifiable()) { 4594 ways_ = 4595 com.google.protobuf.GeneratedMessageLite.mutableCopy(ways_); 4596 } 4597 ways_.add( 4598 input.readMessage(crosby.binary.Osmformat.Way.parser(), extensionRegistry)); 4599 break; 4600 } 4601 case 34: { 4602 if (!relations_.isModifiable()) { 4603 relations_ = 4604 com.google.protobuf.GeneratedMessageLite.mutableCopy(relations_); 4605 } 4606 relations_.add( 4607 input.readMessage(crosby.binary.Osmformat.Relation.parser(), extensionRegistry)); 4608 break; 4609 } 4610 case 42: { 4611 if (!changesets_.isModifiable()) { 4612 changesets_ = 4613 com.google.protobuf.GeneratedMessageLite.mutableCopy(changesets_); 4614 } 4615 changesets_.add( 4616 input.readMessage(crosby.binary.Osmformat.ChangeSet.parser(), extensionRegistry)); 4617 break; 4618 } 4619 } 4620 } 4621 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4622 throw new RuntimeException(e.setUnfinishedMessage(this)); 4623 } catch (java.io.IOException e) { 4624 throw new RuntimeException( 4625 new com.google.protobuf.InvalidProtocolBufferException( 4626 e.getMessage()).setUnfinishedMessage(this)); 4627 } finally { 4628 } 4629 } 4630 // fall through 4631 case GET_DEFAULT_INSTANCE: { 4632 return DEFAULT_INSTANCE; 4633 } 4634 case GET_PARSER: { 4635 if (PARSER == null) { synchronized (crosby.binary.Osmformat.PrimitiveGroup.class) { 4636 if (PARSER == null) { 4637 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 4638 } 4639 } 4640 } 4641 return PARSER; 4642 } 4643 } 4644 throw new UnsupportedOperationException(); 4645 } 4646 4647 4648 // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveGroup) 4649 private static final crosby.binary.Osmformat.PrimitiveGroup DEFAULT_INSTANCE; 4744 4650 static { 4745 defaultInstance = new PrimitiveGroup(true); 4746 defaultInstance.initFields(); 4747 } 4748 4749 // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveGroup) 4651 DEFAULT_INSTANCE = new PrimitiveGroup(); 4652 DEFAULT_INSTANCE.makeImmutable(); 4653 } 4654 4655 public static crosby.binary.Osmformat.PrimitiveGroup getDefaultInstance() { 4656 return DEFAULT_INSTANCE; 4657 } 4658 4659 private static volatile com.google.protobuf.Parser<PrimitiveGroup> PARSER; 4660 4661 public static com.google.protobuf.Parser<PrimitiveGroup> parser() { 4662 return DEFAULT_INSTANCE.getParserForType(); 4663 } 4750 4664 } 4751 4665 … … 4768 4682 } 4769 4683 /** 4770 * Protobuf type {@code OSMPBF.StringTable}4771 *4772 4684 * <pre> 4773 4685 ** String table, contains the common strings in each block. … … 4775 4687 *index in the table is ALWAYS blank and unused. 4776 4688 * </pre> 4689 * 4690 * Protobuf type {@code OSMPBF.StringTable} 4777 4691 */ 4778 public static final class StringTable extends 4779 com.google.protobuf.GeneratedMessageLite implements 4692 public static final class StringTable extends 4693 com.google.protobuf.GeneratedMessageLite< 4694 StringTable, StringTable.Builder> implements 4780 4695 // @@protoc_insertion_point(message_implements:OSMPBF.StringTable) 4781 4696 StringTableOrBuilder { 4782 // Use StringTable.newBuilder() to construct. 4783 private StringTable(com.google.protobuf.GeneratedMessageLite.Builder builder) { 4784 super(builder); 4785 this.unknownFields = builder.getUnknownFields(); 4786 } 4787 private StringTable(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 4788 4789 private static final StringTable defaultInstance; 4790 public static StringTable getDefaultInstance() { 4791 return defaultInstance; 4792 } 4793 4794 @Override 4795 public StringTable getDefaultInstanceForType() { 4796 return defaultInstance; 4797 } 4798 4799 private final com.google.protobuf.ByteString unknownFields; 4800 private StringTable( 4801 com.google.protobuf.CodedInputStream input, 4802 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4803 throws com.google.protobuf.InvalidProtocolBufferException { 4804 initFields(); 4805 int mutable_bitField0_ = 0; 4806 com.google.protobuf.ByteString.Output unknownFieldsOutput = 4807 com.google.protobuf.ByteString.newOutput(); 4808 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 4809 com.google.protobuf.CodedOutputStream.newInstance( 4810 unknownFieldsOutput); 4811 try { 4812 boolean done = false; 4813 while (!done) { 4814 int tag = input.readTag(); 4815 switch (tag) { 4816 case 0: 4817 done = true; 4818 break; 4819 default: { 4820 if (!parseUnknownField(input, unknownFieldsCodedOutput, 4821 extensionRegistry, tag)) { 4822 done = true; 4823 } 4824 break; 4825 } 4826 case 10: { 4827 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 4828 s_ = new java.util.ArrayList<>(); 4829 mutable_bitField0_ |= 0x00000001; 4830 } 4831 s_.add(input.readBytes()); 4832 break; 4833 } 4834 } 4835 } 4836 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4837 throw e.setUnfinishedMessage(this); 4838 } catch (java.io.IOException e) { 4839 throw new com.google.protobuf.InvalidProtocolBufferException( 4840 e.getMessage()).setUnfinishedMessage(this); 4841 } finally { 4842 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 4843 s_ = java.util.Collections.unmodifiableList(s_); 4844 } 4845 try { 4846 unknownFieldsCodedOutput.flush(); 4847 } catch (java.io.IOException e) { 4848 // Should not happen 4849 } finally { 4850 unknownFields = unknownFieldsOutput.toByteString(); 4851 } 4852 makeExtensionsImmutable(); 4853 } 4854 } 4855 public static com.google.protobuf.Parser<StringTable> PARSER = 4856 new com.google.protobuf.AbstractParser<StringTable>() { 4857 @Override 4858 public StringTable parsePartialFrom( 4859 com.google.protobuf.CodedInputStream input, 4860 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4861 throws com.google.protobuf.InvalidProtocolBufferException { 4862 return new StringTable(input, extensionRegistry); 4863 } 4864 }; 4865 4866 @java.lang.Override 4867 public com.google.protobuf.Parser<StringTable> getParserForType() { 4868 return PARSER; 4869 } 4870 4697 private StringTable() { 4698 s_ = emptyProtobufList(); 4699 } 4871 4700 public static final int S_FIELD_NUMBER = 1; 4872 private java.util.List<com.google.protobuf.ByteString> s_;4701 private com.google.protobuf.Internal.ProtobufList<com.google.protobuf.ByteString> s_; 4873 4702 /** 4874 4703 * <code>repeated bytes s = 1;</code> 4875 4704 */ 4876 @Override 4877 public java.util.List<com.google.protobuf.ByteString> 4705 public java.util.List<com.google.protobuf.ByteString> 4878 4706 getSList() { 4879 4707 return s_; … … 4882 4710 * <code>repeated bytes s = 1;</code> 4883 4711 */ 4884 @Override 4885 public int getSCount() { 4712 public int getSCount() { 4886 4713 return s_.size(); 4887 4714 } … … 4889 4716 * <code>repeated bytes s = 1;</code> 4890 4717 */ 4891 @Override 4892 public com.google.protobuf.ByteString getS(int index) { 4718 public com.google.protobuf.ByteString getS(int index) { 4893 4719 return s_.get(index); 4894 4720 } 4895 4896 private void initFields() { 4897 s_ = java.util.Collections.emptyList(); 4898 } 4899 private byte memoizedIsInitialized = -1; 4900 @Override 4901 public final boolean isInitialized() { 4902 byte isInitialized = memoizedIsInitialized; 4903 if (isInitialized == 1) return true; 4904 if (isInitialized == 0) return false; 4905 4906 memoizedIsInitialized = 1; 4907 return true; 4908 } 4909 4910 @Override 4911 public void writeTo(com.google.protobuf.CodedOutputStream output) 4721 private void ensureSIsMutable() { 4722 if (!s_.isModifiable()) { 4723 s_ = 4724 com.google.protobuf.GeneratedMessageLite.mutableCopy(s_); 4725 } 4726 } 4727 /** 4728 * <code>repeated bytes s = 1;</code> 4729 */ 4730 private void setS( 4731 int index, com.google.protobuf.ByteString value) { 4732 if (value == null) { 4733 throw new NullPointerException(); 4734 } 4735 ensureSIsMutable(); 4736 s_.set(index, value); 4737 } 4738 /** 4739 * <code>repeated bytes s = 1;</code> 4740 */ 4741 private void addS(com.google.protobuf.ByteString value) { 4742 if (value == null) { 4743 throw new NullPointerException(); 4744 } 4745 ensureSIsMutable(); 4746 s_.add(value); 4747 } 4748 /** 4749 * <code>repeated bytes s = 1;</code> 4750 */ 4751 private void addAllS( 4752 java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { 4753 ensureSIsMutable(); 4754 com.google.protobuf.AbstractMessageLite.addAll( 4755 values, s_); 4756 } 4757 /** 4758 * <code>repeated bytes s = 1;</code> 4759 */ 4760 private void clearS() { 4761 s_ = emptyProtobufList(); 4762 } 4763 4764 public void writeTo(com.google.protobuf.CodedOutputStream output) 4912 4765 throws java.io.IOException { 4913 getSerializedSize();4914 4766 for (int i = 0; i < s_.size(); i++) { 4915 4767 output.writeBytes(1, s_.get(i)); 4916 4768 } 4917 output.writeRawBytes(unknownFields); 4918 } 4919 4920 private int memoizedSerializedSize = -1; 4921 @Override 4922 public int getSerializedSize() { 4769 unknownFields.writeTo(output); 4770 } 4771 4772 public int getSerializedSize() { 4923 4773 int size = memoizedSerializedSize; 4924 4774 if (size != -1) return size; … … 4934 4784 size += 1 * getSList().size(); 4935 4785 } 4936 size += unknownFields. size();4786 size += unknownFields.getSerializedSize(); 4937 4787 memoizedSerializedSize = size; 4938 4788 return size; 4939 4789 } 4940 4790 4941 private static final long serialVersionUID = 0L; 4942 @java.lang.Override 4943 protected java.lang.Object writeReplace() 4944 throws java.io.ObjectStreamException { 4945 return super.writeReplace(); 4946 } 4947 4791 public static crosby.binary.Osmformat.StringTable parseFrom( 4792 java.nio.ByteBuffer data) 4793 throws com.google.protobuf.InvalidProtocolBufferException { 4794 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4795 DEFAULT_INSTANCE, data); 4796 } 4797 public static crosby.binary.Osmformat.StringTable parseFrom( 4798 java.nio.ByteBuffer data, 4799 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4800 throws com.google.protobuf.InvalidProtocolBufferException { 4801 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4802 DEFAULT_INSTANCE, data, extensionRegistry); 4803 } 4948 4804 public static crosby.binary.Osmformat.StringTable parseFrom( 4949 4805 com.google.protobuf.ByteString data) 4950 4806 throws com.google.protobuf.InvalidProtocolBufferException { 4951 return PARSER.parseFrom(data); 4807 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4808 DEFAULT_INSTANCE, data); 4952 4809 } 4953 4810 public static crosby.binary.Osmformat.StringTable parseFrom( … … 4955 4812 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4956 4813 throws com.google.protobuf.InvalidProtocolBufferException { 4957 return PARSER.parseFrom(data, extensionRegistry); 4814 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4815 DEFAULT_INSTANCE, data, extensionRegistry); 4958 4816 } 4959 4817 public static crosby.binary.Osmformat.StringTable parseFrom(byte[] data) 4960 4818 throws com.google.protobuf.InvalidProtocolBufferException { 4961 return PARSER.parseFrom(data); 4819 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4820 DEFAULT_INSTANCE, data); 4962 4821 } 4963 4822 public static crosby.binary.Osmformat.StringTable parseFrom( … … 4965 4824 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4966 4825 throws com.google.protobuf.InvalidProtocolBufferException { 4967 return PARSER.parseFrom(data, extensionRegistry); 4826 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4827 DEFAULT_INSTANCE, data, extensionRegistry); 4968 4828 } 4969 4829 public static crosby.binary.Osmformat.StringTable parseFrom(java.io.InputStream input) 4970 4830 throws java.io.IOException { 4971 return PARSER.parseFrom(input); 4831 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4832 DEFAULT_INSTANCE, input); 4972 4833 } 4973 4834 public static crosby.binary.Osmformat.StringTable parseFrom( … … 4975 4836 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4976 4837 throws java.io.IOException { 4977 return PARSER.parseFrom(input, extensionRegistry); 4838 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4839 DEFAULT_INSTANCE, input, extensionRegistry); 4978 4840 } 4979 4841 public static crosby.binary.Osmformat.StringTable parseDelimitedFrom(java.io.InputStream input) 4980 4842 throws java.io.IOException { 4981 return PARSER.parseDelimitedFrom(input);4843 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 4982 4844 } 4983 4845 public static crosby.binary.Osmformat.StringTable parseDelimitedFrom( … … 4985 4847 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4986 4848 throws java.io.IOException { 4987 return PARSER.parseDelimitedFrom(input, extensionRegistry);4849 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 4988 4850 } 4989 4851 public static crosby.binary.Osmformat.StringTable parseFrom( 4990 4852 com.google.protobuf.CodedInputStream input) 4991 4853 throws java.io.IOException { 4992 return PARSER.parseFrom(input); 4854 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4855 DEFAULT_INSTANCE, input); 4993 4856 } 4994 4857 public static crosby.binary.Osmformat.StringTable parseFrom( … … 4996 4859 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4997 4860 throws java.io.IOException { 4998 return PARSER.parseFrom(input, extensionRegistry); 4999 } 5000 5001 public static Builder newBuilder() { return Builder.create(); } 5002 @Override 5003 public Builder newBuilderForType() { return newBuilder(); } 4861 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4862 DEFAULT_INSTANCE, input, extensionRegistry); 4863 } 4864 4865 public static Builder newBuilder() { 4866 return DEFAULT_INSTANCE.toBuilder(); 4867 } 5004 4868 public static Builder newBuilder(crosby.binary.Osmformat.StringTable prototype) { 5005 return newBuilder().mergeFrom(prototype); 5006 } 5007 @Override 5008 public Builder toBuilder() { return newBuilder(this); } 5009 5010 /** 5011 * Protobuf type {@code OSMPBF.StringTable} 5012 * 4869 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 4870 } 4871 4872 /** 5013 4873 * <pre> 5014 4874 ** String table, contains the common strings in each block. … … 5016 4876 *index in the table is ALWAYS blank and unused. 5017 4877 * </pre> 4878 * 4879 * Protobuf type {@code OSMPBF.StringTable} 5018 4880 */ 5019 4881 public static final class Builder extends 5020 4882 com.google.protobuf.GeneratedMessageLite.Builder< 5021 crosby.binary.Osmformat.StringTable, Builder> 5022 implements 4883 crosby.binary.Osmformat.StringTable, Builder> implements 5023 4884 // @@protoc_insertion_point(builder_implements:OSMPBF.StringTable) 5024 4885 crosby.binary.Osmformat.StringTableOrBuilder { 5025 4886 // Construct using crosby.binary.Osmformat.StringTable.newBuilder() 5026 4887 private Builder() { 5027 maybeForceBuilderInitialization(); 5028 } 5029 5030 private void maybeForceBuilderInitialization() { 5031 } 5032 private static Builder create() { 5033 return new Builder(); 5034 } 5035 5036 @Override 5037 public Builder clear() { 5038 super.clear(); 5039 s_ = java.util.Collections.emptyList(); 5040 bitField0_ = (bitField0_ & ~0x00000001); 5041 return this; 5042 } 5043 5044 @Override 5045 public Builder clone() { 5046 return create().mergeFrom(buildPartial()); 5047 } 5048 5049 @Override 5050 public crosby.binary.Osmformat.StringTable getDefaultInstanceForType() { 5051 return crosby.binary.Osmformat.StringTable.getDefaultInstance(); 5052 } 5053 5054 @Override 5055 public crosby.binary.Osmformat.StringTable build() { 5056 crosby.binary.Osmformat.StringTable result = buildPartial(); 5057 if (!result.isInitialized()) { 5058 throw newUninitializedMessageException(result); 5059 } 5060 return result; 5061 } 5062 5063 @Override 5064 public crosby.binary.Osmformat.StringTable buildPartial() { 5065 crosby.binary.Osmformat.StringTable result = new crosby.binary.Osmformat.StringTable(this); 5066 int from_bitField0_ = bitField0_; 5067 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5068 s_ = java.util.Collections.unmodifiableList(s_); 5069 bitField0_ = (bitField0_ & ~0x00000001); 5070 } 5071 result.s_ = s_; 5072 return result; 5073 } 5074 5075 @Override 5076 public Builder mergeFrom(crosby.binary.Osmformat.StringTable other) { 5077 if (other == crosby.binary.Osmformat.StringTable.getDefaultInstance()) return this; 5078 if (!other.s_.isEmpty()) { 5079 if (s_.isEmpty()) { 5080 s_ = other.s_; 5081 bitField0_ = (bitField0_ & ~0x00000001); 5082 } else { 5083 ensureSIsMutable(); 5084 s_.addAll(other.s_); 5085 } 5086 5087 } 5088 setUnknownFields( 5089 getUnknownFields().concat(other.unknownFields)); 5090 return this; 5091 } 5092 5093 @Override 5094 public final boolean isInitialized() { 5095 return true; 5096 } 5097 5098 @Override 5099 public Builder mergeFrom( 5100 com.google.protobuf.CodedInputStream input, 5101 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5102 throws java.io.IOException { 5103 crosby.binary.Osmformat.StringTable parsedMessage = null; 5104 try { 5105 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 5106 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5107 parsedMessage = (crosby.binary.Osmformat.StringTable) e.getUnfinishedMessage(); 5108 throw e; 5109 } finally { 5110 if (parsedMessage != null) { 5111 mergeFrom(parsedMessage); 5112 } 5113 } 5114 return this; 5115 } 5116 private int bitField0_; 5117 5118 private java.util.List<com.google.protobuf.ByteString> s_ = java.util.Collections.emptyList(); 5119 private void ensureSIsMutable() { 5120 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 5121 s_ = new java.util.ArrayList<>(s_); 5122 bitField0_ |= 0x00000001; 5123 } 5124 } 4888 super(DEFAULT_INSTANCE); 4889 } 4890 4891 5125 4892 /** 5126 4893 * <code>repeated bytes s = 1;</code> 5127 4894 */ 5128 @Override 5129 public java.util.List<com.google.protobuf.ByteString> 4895 public java.util.List<com.google.protobuf.ByteString> 5130 4896 getSList() { 5131 return java.util.Collections.unmodifiableList(s_); 4897 return java.util.Collections.unmodifiableList( 4898 instance.getSList()); 5132 4899 } 5133 4900 /** 5134 4901 * <code>repeated bytes s = 1;</code> 5135 4902 */ 5136 @Override 5137 public int getSCount() { 5138 return s_.size(); 4903 public int getSCount() { 4904 return instance.getSCount(); 5139 4905 } 5140 4906 /** 5141 4907 * <code>repeated bytes s = 1;</code> 5142 4908 */ 5143 @Override 5144 public com.google.protobuf.ByteString getS(int index) { 5145 return s_.get(index); 4909 public com.google.protobuf.ByteString getS(int index) { 4910 return instance.getS(index); 5146 4911 } 5147 4912 /** … … 5150 4915 public Builder setS( 5151 4916 int index, com.google.protobuf.ByteString value) { 5152 if (value == null) { 5153 throw new NullPointerException(); 5154 } 5155 ensureSIsMutable(); 5156 s_.set(index, value); 5157 4917 copyOnWrite(); 4918 instance.setS(index, value); 5158 4919 return this; 5159 4920 } … … 5162 4923 */ 5163 4924 public Builder addS(com.google.protobuf.ByteString value) { 5164 if (value == null) { 5165 throw new NullPointerException(); 5166 } 5167 ensureSIsMutable(); 5168 s_.add(value); 5169 4925 copyOnWrite(); 4926 instance.addS(value); 5170 4927 return this; 5171 4928 } … … 5175 4932 public Builder addAllS( 5176 4933 java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { 5177 ensureSIsMutable(); 5178 com.google.protobuf.AbstractMessageLite.Builder.addAll( 5179 values, s_); 5180 4934 copyOnWrite(); 4935 instance.addAllS(values); 5181 4936 return this; 5182 4937 } … … 5185 4940 */ 5186 4941 public Builder clearS() { 5187 s_ = java.util.Collections.emptyList(); 5188 bitField0_ = (bitField0_ & ~0x00000001); 5189 4942 copyOnWrite(); 4943 instance.clearS(); 5190 4944 return this; 5191 4945 } … … 5193 4947 // @@protoc_insertion_point(builder_scope:OSMPBF.StringTable) 5194 4948 } 5195 4949 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 4950 protected final java.lang.Object dynamicMethod( 4951 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 4952 java.lang.Object arg0, java.lang.Object arg1) { 4953 switch (method) { 4954 case NEW_MUTABLE_INSTANCE: { 4955 return new crosby.binary.Osmformat.StringTable(); 4956 } 4957 case IS_INITIALIZED: { 4958 return DEFAULT_INSTANCE; 4959 } 4960 case MAKE_IMMUTABLE: { 4961 s_.makeImmutable(); 4962 return null; 4963 } 4964 case NEW_BUILDER: { 4965 return new Builder(); 4966 } 4967 case VISIT: { 4968 Visitor visitor = (Visitor) arg0; 4969 crosby.binary.Osmformat.StringTable other = (crosby.binary.Osmformat.StringTable) arg1; 4970 s_= visitor.visitList(s_, other.s_); 4971 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 4972 .INSTANCE) { 4973 } 4974 return this; 4975 } 4976 case MERGE_FROM_STREAM: { 4977 com.google.protobuf.CodedInputStream input = 4978 (com.google.protobuf.CodedInputStream) arg0; 4979 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 4980 (com.google.protobuf.ExtensionRegistryLite) arg1; 4981 try { 4982 boolean done = false; 4983 while (!done) { 4984 int tag = input.readTag(); 4985 switch (tag) { 4986 case 0: 4987 done = true; 4988 break; 4989 default: { 4990 if (!parseUnknownField(tag, input)) { 4991 done = true; 4992 } 4993 break; 4994 } 4995 case 10: { 4996 if (!s_.isModifiable()) { 4997 s_ = 4998 com.google.protobuf.GeneratedMessageLite.mutableCopy(s_); 4999 } 5000 s_.add(input.readBytes()); 5001 break; 5002 } 5003 } 5004 } 5005 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5006 throw new RuntimeException(e.setUnfinishedMessage(this)); 5007 } catch (java.io.IOException e) { 5008 throw new RuntimeException( 5009 new com.google.protobuf.InvalidProtocolBufferException( 5010 e.getMessage()).setUnfinishedMessage(this)); 5011 } finally { 5012 } 5013 } 5014 // fall through 5015 case GET_DEFAULT_INSTANCE: { 5016 return DEFAULT_INSTANCE; 5017 } 5018 case GET_PARSER: { 5019 if (PARSER == null) { synchronized (crosby.binary.Osmformat.StringTable.class) { 5020 if (PARSER == null) { 5021 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 5022 } 5023 } 5024 } 5025 return PARSER; 5026 } 5027 } 5028 throw new UnsupportedOperationException(); 5029 } 5030 5031 5032 // @@protoc_insertion_point(class_scope:OSMPBF.StringTable) 5033 private static final crosby.binary.Osmformat.StringTable DEFAULT_INSTANCE; 5196 5034 static { 5197 defaultInstance = new StringTable(true); 5198 defaultInstance.initFields(); 5199 } 5200 5201 // @@protoc_insertion_point(class_scope:OSMPBF.StringTable) 5035 DEFAULT_INSTANCE = new StringTable(); 5036 DEFAULT_INSTANCE.makeImmutable(); 5037 } 5038 5039 public static crosby.binary.Osmformat.StringTable getDefaultInstance() { 5040 return DEFAULT_INSTANCE; 5041 } 5042 5043 private static volatile com.google.protobuf.Parser<StringTable> PARSER; 5044 5045 public static com.google.protobuf.Parser<StringTable> parser() { 5046 return DEFAULT_INSTANCE.getParserForType(); 5047 } 5202 5048 } 5203 5049 … … 5243 5089 5244 5090 /** 5091 * <pre> 5092 * String IDs 5093 * </pre> 5094 * 5245 5095 * <code>optional uint32 user_sid = 5;</code> 5246 * 5096 */ 5097 boolean hasUserSid(); 5098 /** 5247 5099 * <pre> 5248 5100 * String IDs 5249 5101 * </pre> 5250 */ 5251 boolean hasUserSid(); 5252 /** 5102 * 5253 5103 * <code>optional uint32 user_sid = 5;</code> 5254 *5255 * <pre>5256 * String IDs5257 * </pre>5258 5104 */ 5259 5105 int getUserSid(); 5260 5106 5261 5107 /** 5262 * <code>optional bool visible = 6;</code>5263 *5264 5108 * <pre> 5265 5109 * The visible flag is used to store history information. It indicates that … … 5272 5116 * set. 5273 5117 * </pre> 5118 * 5119 * <code>optional bool visible = 6;</code> 5274 5120 */ 5275 5121 boolean hasVisible(); 5276 5122 /** 5277 * <code>optional bool visible = 6;</code>5278 *5279 5123 * <pre> 5280 5124 * The visible flag is used to store history information. It indicates that … … 5287 5131 * set. 5288 5132 * </pre> 5133 * 5134 * <code>optional bool visible = 6;</code> 5289 5135 */ 5290 5136 boolean getVisible(); 5291 5137 } 5292 5138 /** 5139 * <pre> 5140 * Optional metadata that may be included into each primitive. 5141 * </pre> 5142 * 5293 5143 * Protobuf type {@code OSMPBF.Info} 5294 *5295 * <pre>5296 * Optional metadata that may be included into each primitive.5297 * </pre>5298 5144 */ 5299 public static final class Info extends 5300 com.google.protobuf.GeneratedMessageLite implements 5145 public static final class Info extends 5146 com.google.protobuf.GeneratedMessageLite< 5147 Info, Info.Builder> implements 5301 5148 // @@protoc_insertion_point(message_implements:OSMPBF.Info) 5302 5149 InfoOrBuilder { 5303 // Use Info.newBuilder() to construct. 5304 private Info(com.google.protobuf.GeneratedMessageLite.Builder builder) { 5305 super(builder); 5306 this.unknownFields = builder.getUnknownFields(); 5307 } 5308 private Info(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 5309 5310 private static final Info defaultInstance; 5311 public static Info getDefaultInstance() { 5312 return defaultInstance; 5313 } 5314 5315 @Override 5316 public Info getDefaultInstanceForType() { 5317 return defaultInstance; 5318 } 5319 5320 private final com.google.protobuf.ByteString unknownFields; 5321 private Info( 5322 com.google.protobuf.CodedInputStream input, 5323 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5324 throws com.google.protobuf.InvalidProtocolBufferException { 5325 initFields(); 5326 int mutable_bitField0_ = 0; 5327 com.google.protobuf.ByteString.Output unknownFieldsOutput = 5328 com.google.protobuf.ByteString.newOutput(); 5329 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 5330 com.google.protobuf.CodedOutputStream.newInstance( 5331 unknownFieldsOutput); 5332 try { 5333 boolean done = false; 5334 while (!done) { 5335 int tag = input.readTag(); 5336 switch (tag) { 5337 case 0: 5338 done = true; 5339 break; 5340 default: { 5341 if (!parseUnknownField(input, unknownFieldsCodedOutput, 5342 extensionRegistry, tag)) { 5343 done = true; 5344 } 5345 break; 5346 } 5347 case 8: { 5348 bitField0_ |= 0x00000001; 5349 version_ = input.readInt32(); 5350 break; 5351 } 5352 case 16: { 5353 bitField0_ |= 0x00000002; 5354 timestamp_ = input.readInt64(); 5355 break; 5356 } 5357 case 24: { 5358 bitField0_ |= 0x00000004; 5359 changeset_ = input.readInt64(); 5360 break; 5361 } 5362 case 32: { 5363 bitField0_ |= 0x00000008; 5364 uid_ = input.readInt32(); 5365 break; 5366 } 5367 case 40: { 5368 bitField0_ |= 0x00000010; 5369 userSid_ = input.readUInt32(); 5370 break; 5371 } 5372 case 48: { 5373 bitField0_ |= 0x00000020; 5374 visible_ = input.readBool(); 5375 break; 5376 } 5377 } 5378 } 5379 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5380 throw e.setUnfinishedMessage(this); 5381 } catch (java.io.IOException e) { 5382 throw new com.google.protobuf.InvalidProtocolBufferException( 5383 e.getMessage()).setUnfinishedMessage(this); 5384 } finally { 5385 try { 5386 unknownFieldsCodedOutput.flush(); 5387 } catch (java.io.IOException e) { 5388 // Should not happen 5389 } finally { 5390 unknownFields = unknownFieldsOutput.toByteString(); 5391 } 5392 makeExtensionsImmutable(); 5393 } 5394 } 5395 public static com.google.protobuf.Parser<Info> PARSER = 5396 new com.google.protobuf.AbstractParser<Info>() { 5397 @Override 5398 public Info parsePartialFrom( 5399 com.google.protobuf.CodedInputStream input, 5400 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5401 throws com.google.protobuf.InvalidProtocolBufferException { 5402 return new Info(input, extensionRegistry); 5403 } 5404 }; 5405 5406 @java.lang.Override 5407 public com.google.protobuf.Parser<Info> getParserForType() { 5408 return PARSER; 5409 } 5410 5150 private Info() { 5151 version_ = -1; 5152 } 5411 5153 private int bitField0_; 5412 5154 public static final int VERSION_FIELD_NUMBER = 1; … … 5415 5157 * <code>optional int32 version = 1 [default = -1];</code> 5416 5158 */ 5417 @Override 5418 public boolean hasVersion() { 5159 public boolean hasVersion() { 5419 5160 return ((bitField0_ & 0x00000001) == 0x00000001); 5420 5161 } … … 5422 5163 * <code>optional int32 version = 1 [default = -1];</code> 5423 5164 */ 5424 @Override 5425 public int getVersion() { 5165 public int getVersion() { 5426 5166 return version_; 5167 } 5168 /** 5169 * <code>optional int32 version = 1 [default = -1];</code> 5170 */ 5171 private void setVersion(int value) { 5172 bitField0_ |= 0x00000001; 5173 version_ = value; 5174 } 5175 /** 5176 * <code>optional int32 version = 1 [default = -1];</code> 5177 */ 5178 private void clearVersion() { 5179 bitField0_ = (bitField0_ & ~0x00000001); 5180 version_ = -1; 5427 5181 } 5428 5182 … … 5432 5186 * <code>optional int64 timestamp = 2;</code> 5433 5187 */ 5434 @Override 5435 public boolean hasTimestamp() { 5188 public boolean hasTimestamp() { 5436 5189 return ((bitField0_ & 0x00000002) == 0x00000002); 5437 5190 } … … 5439 5192 * <code>optional int64 timestamp = 2;</code> 5440 5193 */ 5441 @Override 5442 public long getTimestamp() { 5194 public long getTimestamp() { 5443 5195 return timestamp_; 5196 } 5197 /** 5198 * <code>optional int64 timestamp = 2;</code> 5199 */ 5200 private void setTimestamp(long value) { 5201 bitField0_ |= 0x00000002; 5202 timestamp_ = value; 5203 } 5204 /** 5205 * <code>optional int64 timestamp = 2;</code> 5206 */ 5207 private void clearTimestamp() { 5208 bitField0_ = (bitField0_ & ~0x00000002); 5209 timestamp_ = 0L; 5444 5210 } 5445 5211 … … 5449 5215 * <code>optional int64 changeset = 3;</code> 5450 5216 */ 5451 @Override 5452 public boolean hasChangeset() { 5217 public boolean hasChangeset() { 5453 5218 return ((bitField0_ & 0x00000004) == 0x00000004); 5454 5219 } … … 5456 5221 * <code>optional int64 changeset = 3;</code> 5457 5222 */ 5458 @Override 5459 public long getChangeset() { 5223 public long getChangeset() { 5460 5224 return changeset_; 5225 } 5226 /** 5227 * <code>optional int64 changeset = 3;</code> 5228 */ 5229 private void setChangeset(long value) { 5230 bitField0_ |= 0x00000004; 5231 changeset_ = value; 5232 } 5233 /** 5234 * <code>optional int64 changeset = 3;</code> 5235 */ 5236 private void clearChangeset() { 5237 bitField0_ = (bitField0_ & ~0x00000004); 5238 changeset_ = 0L; 5461 5239 } 5462 5240 … … 5466 5244 * <code>optional int32 uid = 4;</code> 5467 5245 */ 5468 @Override 5469 public boolean hasUid() { 5246 public boolean hasUid() { 5470 5247 return ((bitField0_ & 0x00000008) == 0x00000008); 5471 5248 } … … 5473 5250 * <code>optional int32 uid = 4;</code> 5474 5251 */ 5475 @Override 5476 public int getUid() { 5252 public int getUid() { 5477 5253 return uid_; 5254 } 5255 /** 5256 * <code>optional int32 uid = 4;</code> 5257 */ 5258 private void setUid(int value) { 5259 bitField0_ |= 0x00000008; 5260 uid_ = value; 5261 } 5262 /** 5263 * <code>optional int32 uid = 4;</code> 5264 */ 5265 private void clearUid() { 5266 bitField0_ = (bitField0_ & ~0x00000008); 5267 uid_ = 0; 5478 5268 } 5479 5269 … … 5481 5271 private int userSid_; 5482 5272 /** 5273 * <pre> 5274 * String IDs 5275 * </pre> 5276 * 5483 5277 * <code>optional uint32 user_sid = 5;</code> 5484 * 5278 */ 5279 public boolean hasUserSid() { 5280 return ((bitField0_ & 0x00000010) == 0x00000010); 5281 } 5282 /** 5485 5283 * <pre> 5486 5284 * String IDs 5487 5285 * </pre> 5488 */ 5489 @Override 5490 public boolean hasUserSid() { 5491 return ((bitField0_ & 0x00000010) == 0x00000010); 5492 } 5493 /** 5286 * 5494 5287 * <code>optional uint32 user_sid = 5;</code> 5495 * 5288 */ 5289 public int getUserSid() { 5290 return userSid_; 5291 } 5292 /** 5496 5293 * <pre> 5497 5294 * String IDs 5498 5295 * </pre> 5499 */ 5500 @Override 5501 public int getUserSid() { 5502 return userSid_; 5296 * 5297 * <code>optional uint32 user_sid = 5;</code> 5298 */ 5299 private void setUserSid(int value) { 5300 bitField0_ |= 0x00000010; 5301 userSid_ = value; 5302 } 5303 /** 5304 * <pre> 5305 * String IDs 5306 * </pre> 5307 * 5308 * <code>optional uint32 user_sid = 5;</code> 5309 */ 5310 private void clearUserSid() { 5311 bitField0_ = (bitField0_ & ~0x00000010); 5312 userSid_ = 0; 5503 5313 } 5504 5314 … … 5506 5316 private boolean visible_; 5507 5317 /** 5508 * <code>optional bool visible = 6;</code>5509 *5510 5318 * <pre> 5511 5319 * The visible flag is used to store history information. It indicates that … … 5518 5326 * set. 5519 5327 * </pre> 5520 */ 5521 @Override 5522 public boolean hasVisible() { 5328 * 5329 * <code>optional bool visible = 6;</code> 5330 */ 5331 public boolean hasVisible() { 5523 5332 return ((bitField0_ & 0x00000020) == 0x00000020); 5524 5333 } 5525 5334 /** 5526 * <code>optional bool visible = 6;</code>5527 *5528 5335 * <pre> 5529 5336 * The visible flag is used to store history information. It indicates that … … 5536 5343 * set. 5537 5344 * </pre> 5538 */ 5539 @Override 5540 public boolean getVisible() { 5345 * 5346 * <code>optional bool visible = 6;</code> 5347 */ 5348 public boolean getVisible() { 5541 5349 return visible_; 5542 5350 } 5543 5544 private void initFields() { 5545 version_ = -1; 5546 timestamp_ = 0L; 5547 changeset_ = 0L; 5548 uid_ = 0; 5549 userSid_ = 0; 5351 /** 5352 * <pre> 5353 * The visible flag is used to store history information. It indicates that 5354 * the current object version has been created by a delete operation on the 5355 * OSM API. 5356 * When a writer sets this flag, it MUST add a required_features tag with 5357 * value "HistoricalInformation" to the HeaderBlock. 5358 * If this flag is not available for some object it MUST be assumed to be 5359 * true if the file has the required_features tag "HistoricalInformation" 5360 * set. 5361 * </pre> 5362 * 5363 * <code>optional bool visible = 6;</code> 5364 */ 5365 private void setVisible(boolean value) { 5366 bitField0_ |= 0x00000020; 5367 visible_ = value; 5368 } 5369 /** 5370 * <pre> 5371 * The visible flag is used to store history information. It indicates that 5372 * the current object version has been created by a delete operation on the 5373 * OSM API. 5374 * When a writer sets this flag, it MUST add a required_features tag with 5375 * value "HistoricalInformation" to the HeaderBlock. 5376 * If this flag is not available for some object it MUST be assumed to be 5377 * true if the file has the required_features tag "HistoricalInformation" 5378 * set. 5379 * </pre> 5380 * 5381 * <code>optional bool visible = 6;</code> 5382 */ 5383 private void clearVisible() { 5384 bitField0_ = (bitField0_ & ~0x00000020); 5550 5385 visible_ = false; 5551 5386 } 5552 private byte memoizedIsInitialized = -1; 5553 @Override 5554 public final boolean isInitialized() { 5555 byte isInitialized = memoizedIsInitialized; 5556 if (isInitialized == 1) return true; 5557 if (isInitialized == 0) return false; 5558 5559 memoizedIsInitialized = 1; 5560 return true; 5561 } 5562 5563 @Override 5564 public void writeTo(com.google.protobuf.CodedOutputStream output) 5387 5388 public void writeTo(com.google.protobuf.CodedOutputStream output) 5565 5389 throws java.io.IOException { 5566 getSerializedSize();5567 5390 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5568 5391 output.writeInt32(1, version_); … … 5583 5406 output.writeBool(6, visible_); 5584 5407 } 5585 output.writeRawBytes(unknownFields); 5586 } 5587 5588 private int memoizedSerializedSize = -1; 5589 @Override 5590 public int getSerializedSize() { 5408 unknownFields.writeTo(output); 5409 } 5410 5411 public int getSerializedSize() { 5591 5412 int size = memoizedSerializedSize; 5592 5413 if (size != -1) return size; … … 5617 5438 .computeBoolSize(6, visible_); 5618 5439 } 5619 size += unknownFields. size();5440 size += unknownFields.getSerializedSize(); 5620 5441 memoizedSerializedSize = size; 5621 5442 return size; 5622 5443 } 5623 5444 5624 private static final long serialVersionUID = 0L; 5625 @java.lang.Override 5626 protected java.lang.Object writeReplace() 5627 throws java.io.ObjectStreamException { 5628 return super.writeReplace(); 5629 } 5630 5445 public static crosby.binary.Osmformat.Info parseFrom( 5446 java.nio.ByteBuffer data) 5447 throws com.google.protobuf.InvalidProtocolBufferException { 5448 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5449 DEFAULT_INSTANCE, data); 5450 } 5451 public static crosby.binary.Osmformat.Info parseFrom( 5452 java.nio.ByteBuffer data, 5453 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5454 throws com.google.protobuf.InvalidProtocolBufferException { 5455 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5456 DEFAULT_INSTANCE, data, extensionRegistry); 5457 } 5631 5458 public static crosby.binary.Osmformat.Info parseFrom( 5632 5459 com.google.protobuf.ByteString data) 5633 5460 throws com.google.protobuf.InvalidProtocolBufferException { 5634 return PARSER.parseFrom(data); 5461 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5462 DEFAULT_INSTANCE, data); 5635 5463 } 5636 5464 public static crosby.binary.Osmformat.Info parseFrom( … … 5638 5466 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5639 5467 throws com.google.protobuf.InvalidProtocolBufferException { 5640 return PARSER.parseFrom(data, extensionRegistry); 5468 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5469 DEFAULT_INSTANCE, data, extensionRegistry); 5641 5470 } 5642 5471 public static crosby.binary.Osmformat.Info parseFrom(byte[] data) 5643 5472 throws com.google.protobuf.InvalidProtocolBufferException { 5644 return PARSER.parseFrom(data); 5473 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5474 DEFAULT_INSTANCE, data); 5645 5475 } 5646 5476 public static crosby.binary.Osmformat.Info parseFrom( … … 5648 5478 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5649 5479 throws com.google.protobuf.InvalidProtocolBufferException { 5650 return PARSER.parseFrom(data, extensionRegistry); 5480 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5481 DEFAULT_INSTANCE, data, extensionRegistry); 5651 5482 } 5652 5483 public static crosby.binary.Osmformat.Info parseFrom(java.io.InputStream input) 5653 5484 throws java.io.IOException { 5654 return PARSER.parseFrom(input); 5485 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5486 DEFAULT_INSTANCE, input); 5655 5487 } 5656 5488 public static crosby.binary.Osmformat.Info parseFrom( … … 5658 5490 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5659 5491 throws java.io.IOException { 5660 return PARSER.parseFrom(input, extensionRegistry); 5492 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5493 DEFAULT_INSTANCE, input, extensionRegistry); 5661 5494 } 5662 5495 public static crosby.binary.Osmformat.Info parseDelimitedFrom(java.io.InputStream input) 5663 5496 throws java.io.IOException { 5664 return PARSER.parseDelimitedFrom(input);5497 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 5665 5498 } 5666 5499 public static crosby.binary.Osmformat.Info parseDelimitedFrom( … … 5668 5501 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5669 5502 throws java.io.IOException { 5670 return PARSER.parseDelimitedFrom(input, extensionRegistry);5503 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 5671 5504 } 5672 5505 public static crosby.binary.Osmformat.Info parseFrom( 5673 5506 com.google.protobuf.CodedInputStream input) 5674 5507 throws java.io.IOException { 5675 return PARSER.parseFrom(input); 5508 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5509 DEFAULT_INSTANCE, input); 5676 5510 } 5677 5511 public static crosby.binary.Osmformat.Info parseFrom( … … 5679 5513 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5680 5514 throws java.io.IOException { 5681 return PARSER.parseFrom(input, extensionRegistry); 5682 } 5683 5684 public static Builder newBuilder() { return Builder.create(); } 5685 @Override 5686 public Builder newBuilderForType() { return newBuilder(); } 5515 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5516 DEFAULT_INSTANCE, input, extensionRegistry); 5517 } 5518 5519 public static Builder newBuilder() { 5520 return DEFAULT_INSTANCE.toBuilder(); 5521 } 5687 5522 public static Builder newBuilder(crosby.binary.Osmformat.Info prototype) { 5688 return newBuilder().mergeFrom(prototype); 5689 } 5690 @Override 5691 public Builder toBuilder() { return newBuilder(this); } 5692 5693 /** 5523 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 5524 } 5525 5526 /** 5527 * <pre> 5528 * Optional metadata that may be included into each primitive. 5529 * </pre> 5530 * 5694 5531 * Protobuf type {@code OSMPBF.Info} 5695 *5696 * <pre>5697 * Optional metadata that may be included into each primitive.5698 * </pre>5699 5532 */ 5700 5533 public static final class Builder extends 5701 5534 com.google.protobuf.GeneratedMessageLite.Builder< 5702 crosby.binary.Osmformat.Info, Builder> 5703 implements 5535 crosby.binary.Osmformat.Info, Builder> implements 5704 5536 // @@protoc_insertion_point(builder_implements:OSMPBF.Info) 5705 5537 crosby.binary.Osmformat.InfoOrBuilder { 5706 5538 // Construct using crosby.binary.Osmformat.Info.newBuilder() 5707 5539 private Builder() { 5708 maybeForceBuilderInitialization(); 5709 } 5710 5711 private void maybeForceBuilderInitialization() { 5712 } 5713 private static Builder create() { 5714 return new Builder(); 5715 } 5716 5717 @Override 5718 public Builder clear() { 5719 super.clear(); 5720 version_ = -1; 5721 bitField0_ = (bitField0_ & ~0x00000001); 5722 timestamp_ = 0L; 5723 bitField0_ = (bitField0_ & ~0x00000002); 5724 changeset_ = 0L; 5725 bitField0_ = (bitField0_ & ~0x00000004); 5726 uid_ = 0; 5727 bitField0_ = (bitField0_ & ~0x00000008); 5728 userSid_ = 0; 5729 bitField0_ = (bitField0_ & ~0x00000010); 5730 visible_ = false; 5731 bitField0_ = (bitField0_ & ~0x00000020); 5732 return this; 5733 } 5734 5735 @Override 5736 public Builder clone() { 5737 return create().mergeFrom(buildPartial()); 5738 } 5739 5740 @Override 5741 public crosby.binary.Osmformat.Info getDefaultInstanceForType() { 5742 return crosby.binary.Osmformat.Info.getDefaultInstance(); 5743 } 5744 5745 @Override 5746 public crosby.binary.Osmformat.Info build() { 5747 crosby.binary.Osmformat.Info result = buildPartial(); 5748 if (!result.isInitialized()) { 5749 throw newUninitializedMessageException(result); 5750 } 5751 return result; 5752 } 5753 5754 @Override 5755 public crosby.binary.Osmformat.Info buildPartial() { 5756 crosby.binary.Osmformat.Info result = new crosby.binary.Osmformat.Info(this); 5757 int from_bitField0_ = bitField0_; 5758 int to_bitField0_ = 0; 5759 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 5760 to_bitField0_ |= 0x00000001; 5761 } 5762 result.version_ = version_; 5763 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 5764 to_bitField0_ |= 0x00000002; 5765 } 5766 result.timestamp_ = timestamp_; 5767 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 5768 to_bitField0_ |= 0x00000004; 5769 } 5770 result.changeset_ = changeset_; 5771 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 5772 to_bitField0_ |= 0x00000008; 5773 } 5774 result.uid_ = uid_; 5775 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 5776 to_bitField0_ |= 0x00000010; 5777 } 5778 result.userSid_ = userSid_; 5779 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 5780 to_bitField0_ |= 0x00000020; 5781 } 5782 result.visible_ = visible_; 5783 result.bitField0_ = to_bitField0_; 5784 return result; 5785 } 5786 5787 @Override 5788 public Builder mergeFrom(crosby.binary.Osmformat.Info other) { 5789 if (other == crosby.binary.Osmformat.Info.getDefaultInstance()) return this; 5790 if (other.hasVersion()) { 5791 setVersion(other.getVersion()); 5792 } 5793 if (other.hasTimestamp()) { 5794 setTimestamp(other.getTimestamp()); 5795 } 5796 if (other.hasChangeset()) { 5797 setChangeset(other.getChangeset()); 5798 } 5799 if (other.hasUid()) { 5800 setUid(other.getUid()); 5801 } 5802 if (other.hasUserSid()) { 5803 setUserSid(other.getUserSid()); 5804 } 5805 if (other.hasVisible()) { 5806 setVisible(other.getVisible()); 5807 } 5808 setUnknownFields( 5809 getUnknownFields().concat(other.unknownFields)); 5810 return this; 5811 } 5812 5813 @Override 5814 public final boolean isInitialized() { 5815 return true; 5816 } 5817 5818 @Override 5819 public Builder mergeFrom( 5820 com.google.protobuf.CodedInputStream input, 5821 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5822 throws java.io.IOException { 5823 crosby.binary.Osmformat.Info parsedMessage = null; 5824 try { 5825 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 5826 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5827 parsedMessage = (crosby.binary.Osmformat.Info) e.getUnfinishedMessage(); 5828 throw e; 5829 } finally { 5830 if (parsedMessage != null) { 5831 mergeFrom(parsedMessage); 5832 } 5833 } 5834 return this; 5835 } 5836 private int bitField0_; 5837 5838 private int version_ = -1; 5540 super(DEFAULT_INSTANCE); 5541 } 5542 5543 5839 5544 /** 5840 5545 * <code>optional int32 version = 1 [default = -1];</code> 5841 5546 */ 5842 @Override 5843 public boolean hasVersion() { 5844 return ((bitField0_ & 0x00000001) == 0x00000001); 5547 public boolean hasVersion() { 5548 return instance.hasVersion(); 5845 5549 } 5846 5550 /** 5847 5551 * <code>optional int32 version = 1 [default = -1];</code> 5848 5552 */ 5849 @Override 5850 public int getVersion() { 5851 return version_; 5553 public int getVersion() { 5554 return instance.getVersion(); 5852 5555 } 5853 5556 /** … … 5855 5558 */ 5856 5559 public Builder setVersion(int value) { 5857 bitField0_ |= 0x00000001; 5858 version_ = value; 5859 5560 copyOnWrite(); 5561 instance.setVersion(value); 5860 5562 return this; 5861 5563 } … … 5864 5566 */ 5865 5567 public Builder clearVersion() { 5866 bitField0_ = (bitField0_ & ~0x00000001); 5867 version_ = -1; 5868 5869 return this; 5870 } 5871 5872 private long timestamp_ ; 5568 copyOnWrite(); 5569 instance.clearVersion(); 5570 return this; 5571 } 5572 5873 5573 /** 5874 5574 * <code>optional int64 timestamp = 2;</code> 5875 5575 */ 5876 @Override 5877 public boolean hasTimestamp() { 5878 return ((bitField0_ & 0x00000002) == 0x00000002); 5576 public boolean hasTimestamp() { 5577 return instance.hasTimestamp(); 5879 5578 } 5880 5579 /** 5881 5580 * <code>optional int64 timestamp = 2;</code> 5882 5581 */ 5883 @Override 5884 public long getTimestamp() { 5885 return timestamp_; 5582 public long getTimestamp() { 5583 return instance.getTimestamp(); 5886 5584 } 5887 5585 /** … … 5889 5587 */ 5890 5588 public Builder setTimestamp(long value) { 5891 bitField0_ |= 0x00000002; 5892 timestamp_ = value; 5893 5589 copyOnWrite(); 5590 instance.setTimestamp(value); 5894 5591 return this; 5895 5592 } … … 5898 5595 */ 5899 5596 public Builder clearTimestamp() { 5900 bitField0_ = (bitField0_ & ~0x00000002); 5901 timestamp_ = 0L; 5902 5903 return this; 5904 } 5905 5906 private long changeset_ ; 5597 copyOnWrite(); 5598 instance.clearTimestamp(); 5599 return this; 5600 } 5601 5907 5602 /** 5908 5603 * <code>optional int64 changeset = 3;</code> 5909 5604 */ 5910 @Override 5911 public boolean hasChangeset() { 5912 return ((bitField0_ & 0x00000004) == 0x00000004); 5605 public boolean hasChangeset() { 5606 return instance.hasChangeset(); 5913 5607 } 5914 5608 /** 5915 5609 * <code>optional int64 changeset = 3;</code> 5916 5610 */ 5917 @Override 5918 public long getChangeset() { 5919 return changeset_; 5611 public long getChangeset() { 5612 return instance.getChangeset(); 5920 5613 } 5921 5614 /** … … 5923 5616 */ 5924 5617 public Builder setChangeset(long value) { 5925 bitField0_ |= 0x00000004; 5926 changeset_ = value; 5927 5618 copyOnWrite(); 5619 instance.setChangeset(value); 5928 5620 return this; 5929 5621 } … … 5932 5624 */ 5933 5625 public Builder clearChangeset() { 5934 bitField0_ = (bitField0_ & ~0x00000004); 5935 changeset_ = 0L; 5936 5937 return this; 5938 } 5939 5940 private int uid_ ; 5626 copyOnWrite(); 5627 instance.clearChangeset(); 5628 return this; 5629 } 5630 5941 5631 /** 5942 5632 * <code>optional int32 uid = 4;</code> 5943 5633 */ 5944 @Override 5945 public boolean hasUid() { 5946 return ((bitField0_ & 0x00000008) == 0x00000008); 5634 public boolean hasUid() { 5635 return instance.hasUid(); 5947 5636 } 5948 5637 /** 5949 5638 * <code>optional int32 uid = 4;</code> 5950 5639 */ 5951 @Override 5952 public int getUid() { 5953 return uid_; 5640 public int getUid() { 5641 return instance.getUid(); 5954 5642 } 5955 5643 /** … … 5957 5645 */ 5958 5646 public Builder setUid(int value) { 5959 bitField0_ |= 0x00000008; 5960 uid_ = value; 5961 5647 copyOnWrite(); 5648 instance.setUid(value); 5962 5649 return this; 5963 5650 } … … 5966 5653 */ 5967 5654 public Builder clearUid() { 5968 bitField0_ = (bitField0_ & ~0x00000008); 5969 uid_ = 0; 5970 5971 return this; 5972 } 5973 5974 private int userSid_ ; 5975 /** 5655 copyOnWrite(); 5656 instance.clearUid(); 5657 return this; 5658 } 5659 5660 /** 5661 * <pre> 5662 * String IDs 5663 * </pre> 5664 * 5976 5665 * <code>optional uint32 user_sid = 5;</code> 5977 * 5666 */ 5667 public boolean hasUserSid() { 5668 return instance.hasUserSid(); 5669 } 5670 /** 5978 5671 * <pre> 5979 5672 * String IDs 5980 5673 * </pre> 5981 */ 5982 @Override 5983 public boolean hasUserSid() { 5984 return ((bitField0_ & 0x00000010) == 0x00000010); 5985 } 5986 /** 5674 * 5987 5675 * <code>optional uint32 user_sid = 5;</code> 5988 * 5676 */ 5677 public int getUserSid() { 5678 return instance.getUserSid(); 5679 } 5680 /** 5989 5681 * <pre> 5990 5682 * String IDs 5991 5683 * </pre> 5992 */ 5993 @Override 5994 public int getUserSid() { 5995 return userSid_; 5996 } 5997 /** 5684 * 5998 5685 * <code>optional uint32 user_sid = 5;</code> 5999 * 5686 */ 5687 public Builder setUserSid(int value) { 5688 copyOnWrite(); 5689 instance.setUserSid(value); 5690 return this; 5691 } 5692 /** 6000 5693 * <pre> 6001 5694 * String IDs 6002 5695 * </pre> 6003 */ 6004 public Builder setUserSid(int value) { 6005 bitField0_ |= 0x00000010; 6006 userSid_ = value; 6007 6008 return this; 6009 } 6010 /** 5696 * 6011 5697 * <code>optional uint32 user_sid = 5;</code> 6012 *6013 * <pre>6014 * String IDs6015 * </pre>6016 5698 */ 6017 5699 public Builder clearUserSid() { 6018 bitField0_ = (bitField0_ & ~0x00000010); 6019 userSid_ = 0; 6020 6021 return this; 6022 } 6023 6024 private boolean visible_ ; 6025 /** 6026 * <code>optional bool visible = 6;</code> 6027 * 5700 copyOnWrite(); 5701 instance.clearUserSid(); 5702 return this; 5703 } 5704 5705 /** 6028 5706 * <pre> 6029 5707 * The visible flag is used to store history information. It indicates that … … 6036 5714 * set. 6037 5715 * </pre> 6038 */ 6039 @Override 6040 public boolean hasVisible() { 6041 return ((bitField0_ & 0x00000020) == 0x00000020); 6042 } 6043 /** 5716 * 6044 5717 * <code>optional bool visible = 6;</code> 6045 * 5718 */ 5719 public boolean hasVisible() { 5720 return instance.hasVisible(); 5721 } 5722 /** 6046 5723 * <pre> 6047 5724 * The visible flag is used to store history information. It indicates that … … 6054 5731 * set. 6055 5732 * </pre> 6056 */ 6057 @Override 6058 public boolean getVisible() { 6059 return visible_; 6060 } 6061 /** 5733 * 6062 5734 * <code>optional bool visible = 6;</code> 6063 * 5735 */ 5736 public boolean getVisible() { 5737 return instance.getVisible(); 5738 } 5739 /** 6064 5740 * <pre> 6065 5741 * The visible flag is used to store history information. It indicates that … … 6072 5748 * set. 6073 5749 * </pre> 5750 * 5751 * <code>optional bool visible = 6;</code> 6074 5752 */ 6075 5753 public Builder setVisible(boolean value) { 6076 bitField0_ |= 0x00000020; 6077 visible_ = value; 6078 6079 return this; 6080 } 6081 /** 6082 * <code>optional bool visible = 6;</code> 6083 * 5754 copyOnWrite(); 5755 instance.setVisible(value); 5756 return this; 5757 } 5758 /** 6084 5759 * <pre> 6085 5760 * The visible flag is used to store history information. It indicates that … … 6092 5767 * set. 6093 5768 * </pre> 5769 * 5770 * <code>optional bool visible = 6;</code> 6094 5771 */ 6095 5772 public Builder clearVisible() { 6096 bitField0_ = (bitField0_ & ~0x00000020); 6097 visible_ = false; 6098 5773 copyOnWrite(); 5774 instance.clearVisible(); 6099 5775 return this; 6100 5776 } … … 6102 5778 // @@protoc_insertion_point(builder_scope:OSMPBF.Info) 6103 5779 } 6104 5780 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 5781 protected final java.lang.Object dynamicMethod( 5782 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 5783 java.lang.Object arg0, java.lang.Object arg1) { 5784 switch (method) { 5785 case NEW_MUTABLE_INSTANCE: { 5786 return new crosby.binary.Osmformat.Info(); 5787 } 5788 case IS_INITIALIZED: { 5789 return DEFAULT_INSTANCE; 5790 } 5791 case MAKE_IMMUTABLE: { 5792 return null; 5793 } 5794 case NEW_BUILDER: { 5795 return new Builder(); 5796 } 5797 case VISIT: { 5798 Visitor visitor = (Visitor) arg0; 5799 crosby.binary.Osmformat.Info other = (crosby.binary.Osmformat.Info) arg1; 5800 version_ = visitor.visitInt( 5801 hasVersion(), version_, 5802 other.hasVersion(), other.version_); 5803 timestamp_ = visitor.visitLong( 5804 hasTimestamp(), timestamp_, 5805 other.hasTimestamp(), other.timestamp_); 5806 changeset_ = visitor.visitLong( 5807 hasChangeset(), changeset_, 5808 other.hasChangeset(), other.changeset_); 5809 uid_ = visitor.visitInt( 5810 hasUid(), uid_, 5811 other.hasUid(), other.uid_); 5812 userSid_ = visitor.visitInt( 5813 hasUserSid(), userSid_, 5814 other.hasUserSid(), other.userSid_); 5815 visible_ = visitor.visitBoolean( 5816 hasVisible(), visible_, 5817 other.hasVisible(), other.visible_); 5818 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 5819 .INSTANCE) { 5820 bitField0_ |= other.bitField0_; 5821 } 5822 return this; 5823 } 5824 case MERGE_FROM_STREAM: { 5825 com.google.protobuf.CodedInputStream input = 5826 (com.google.protobuf.CodedInputStream) arg0; 5827 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 5828 (com.google.protobuf.ExtensionRegistryLite) arg1; 5829 try { 5830 boolean done = false; 5831 while (!done) { 5832 int tag = input.readTag(); 5833 switch (tag) { 5834 case 0: 5835 done = true; 5836 break; 5837 default: { 5838 if (!parseUnknownField(tag, input)) { 5839 done = true; 5840 } 5841 break; 5842 } 5843 case 8: { 5844 bitField0_ |= 0x00000001; 5845 version_ = input.readInt32(); 5846 break; 5847 } 5848 case 16: { 5849 bitField0_ |= 0x00000002; 5850 timestamp_ = input.readInt64(); 5851 break; 5852 } 5853 case 24: { 5854 bitField0_ |= 0x00000004; 5855 changeset_ = input.readInt64(); 5856 break; 5857 } 5858 case 32: { 5859 bitField0_ |= 0x00000008; 5860 uid_ = input.readInt32(); 5861 break; 5862 } 5863 case 40: { 5864 bitField0_ |= 0x00000010; 5865 userSid_ = input.readUInt32(); 5866 break; 5867 } 5868 case 48: { 5869 bitField0_ |= 0x00000020; 5870 visible_ = input.readBool(); 5871 break; 5872 } 5873 } 5874 } 5875 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5876 throw new RuntimeException(e.setUnfinishedMessage(this)); 5877 } catch (java.io.IOException e) { 5878 throw new RuntimeException( 5879 new com.google.protobuf.InvalidProtocolBufferException( 5880 e.getMessage()).setUnfinishedMessage(this)); 5881 } finally { 5882 } 5883 } 5884 // fall through 5885 case GET_DEFAULT_INSTANCE: { 5886 return DEFAULT_INSTANCE; 5887 } 5888 case GET_PARSER: { 5889 if (PARSER == null) { synchronized (crosby.binary.Osmformat.Info.class) { 5890 if (PARSER == null) { 5891 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 5892 } 5893 } 5894 } 5895 return PARSER; 5896 } 5897 } 5898 throw new UnsupportedOperationException(); 5899 } 5900 5901 5902 // @@protoc_insertion_point(class_scope:OSMPBF.Info) 5903 private static final crosby.binary.Osmformat.Info DEFAULT_INSTANCE; 6105 5904 static { 6106 defaultInstance = new Info(true); 6107 defaultInstance.initFields(); 6108 } 6109 6110 // @@protoc_insertion_point(class_scope:OSMPBF.Info) 5905 DEFAULT_INSTANCE = new Info(); 5906 DEFAULT_INSTANCE.makeImmutable(); 5907 } 5908 5909 public static crosby.binary.Osmformat.Info getDefaultInstance() { 5910 return DEFAULT_INSTANCE; 5911 } 5912 5913 private static volatile com.google.protobuf.Parser<Info> PARSER; 5914 5915 public static com.google.protobuf.Parser<Info> parser() { 5916 return DEFAULT_INSTANCE.getParserForType(); 5917 } 6111 5918 } 6112 5919 … … 6129 5936 6130 5937 /** 5938 * <pre> 5939 * DELTA coded 5940 * </pre> 5941 * 6131 5942 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6132 * 5943 */ 5944 java.util.List<java.lang.Long> getTimestampList(); 5945 /** 6133 5946 * <pre> 6134 5947 * DELTA coded 6135 5948 * </pre> 6136 */ 6137 java.util.List<java.lang.Long> getTimestampList(); 6138 /** 5949 * 6139 5950 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6140 * 5951 */ 5952 int getTimestampCount(); 5953 /** 6141 5954 * <pre> 6142 5955 * DELTA coded 6143 5956 * </pre> 6144 */ 6145 int getTimestampCount(); 6146 /** 5957 * 6147 5958 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6148 * 5959 */ 5960 long getTimestamp(int index); 5961 5962 /** 6149 5963 * <pre> 6150 5964 * DELTA coded 6151 5965 * </pre> 6152 */ 6153 long getTimestamp(int index); 6154 6155 /** 5966 * 6156 5967 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6157 * 5968 */ 5969 java.util.List<java.lang.Long> getChangesetList(); 5970 /** 6158 5971 * <pre> 6159 5972 * DELTA coded 6160 5973 * </pre> 6161 */ 6162 java.util.List<java.lang.Long> getChangesetList(); 6163 /** 5974 * 6164 5975 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6165 * 5976 */ 5977 int getChangesetCount(); 5978 /** 6166 5979 * <pre> 6167 5980 * DELTA coded 6168 5981 * </pre> 6169 */ 6170 int getChangesetCount(); 6171 /** 5982 * 6172 5983 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6173 * 5984 */ 5985 long getChangeset(int index); 5986 5987 /** 6174 5988 * <pre> 6175 5989 * DELTA coded 6176 5990 * </pre> 6177 */ 6178 long getChangeset(int index); 6179 6180 /** 5991 * 6181 5992 * <code>repeated sint32 uid = 4 [packed = true];</code> 6182 * 5993 */ 5994 java.util.List<java.lang.Integer> getUidList(); 5995 /** 6183 5996 * <pre> 6184 5997 * DELTA coded 6185 5998 * </pre> 6186 */ 6187 java.util.List<java.lang.Integer> getUidList(); 6188 /** 5999 * 6189 6000 * <code>repeated sint32 uid = 4 [packed = true];</code> 6190 * 6001 */ 6002 int getUidCount(); 6003 /** 6191 6004 * <pre> 6192 6005 * DELTA coded 6193 6006 * </pre> 6194 */ 6195 int getUidCount(); 6196 /** 6007 * 6197 6008 * <code>repeated sint32 uid = 4 [packed = true];</code> 6198 *6199 * <pre>6200 * DELTA coded6201 * </pre>6202 6009 */ 6203 6010 int getUid(int index); 6204 6011 6205 6012 /** 6013 * <pre> 6014 * String IDs for usernames. DELTA coded 6015 * </pre> 6016 * 6206 6017 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6207 * 6018 */ 6019 java.util.List<java.lang.Integer> getUserSidList(); 6020 /** 6208 6021 * <pre> 6209 6022 * String IDs for usernames. DELTA coded 6210 6023 * </pre> 6211 */ 6212 java.util.List<java.lang.Integer> getUserSidList(); 6213 /** 6024 * 6214 6025 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6215 * 6026 */ 6027 int getUserSidCount(); 6028 /** 6216 6029 * <pre> 6217 6030 * String IDs for usernames. DELTA coded 6218 6031 * </pre> 6219 */ 6220 int getUserSidCount(); 6221 /** 6032 * 6222 6033 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6223 *6224 * <pre>6225 * String IDs for usernames. DELTA coded6226 * </pre>6227 6034 */ 6228 6035 int getUserSid(int index); 6229 6036 6230 6037 /** 6231 * <code>repeated bool visible = 6 [packed = true];</code>6232 *6233 6038 * <pre> 6234 6039 * The visible flag is used to store history information. It indicates that … … 6241 6046 * set. 6242 6047 * </pre> 6048 * 6049 * <code>repeated bool visible = 6 [packed = true];</code> 6243 6050 */ 6244 6051 java.util.List<java.lang.Boolean> getVisibleList(); 6245 6052 /** 6246 * <code>repeated bool visible = 6 [packed = true];</code>6247 *6248 6053 * <pre> 6249 6054 * The visible flag is used to store history information. It indicates that … … 6256 6061 * set. 6257 6062 * </pre> 6063 * 6064 * <code>repeated bool visible = 6 [packed = true];</code> 6258 6065 */ 6259 6066 int getVisibleCount(); 6260 6067 /** 6261 * <code>repeated bool visible = 6 [packed = true];</code>6262 *6263 6068 * <pre> 6264 6069 * The visible flag is used to store history information. It indicates that … … 6271 6076 * set. 6272 6077 * </pre> 6078 * 6079 * <code>repeated bool visible = 6 [packed = true];</code> 6273 6080 */ 6274 6081 boolean getVisible(int index); 6275 6082 } 6276 6083 /** 6084 * <pre> 6085 ** Optional metadata that may be included into each primitive. Special dense format used in DenseNodes. 6086 * </pre> 6087 * 6277 6088 * Protobuf type {@code OSMPBF.DenseInfo} 6278 *6279 * <pre>6280 ** Optional metadata that may be included into each primitive. Special dense format used in DenseNodes.6281 * </pre>6282 6089 */ 6283 public static final class DenseInfo extends 6284 com.google.protobuf.GeneratedMessageLite implements 6090 public static final class DenseInfo extends 6091 com.google.protobuf.GeneratedMessageLite< 6092 DenseInfo, DenseInfo.Builder> implements 6285 6093 // @@protoc_insertion_point(message_implements:OSMPBF.DenseInfo) 6286 6094 DenseInfoOrBuilder { 6287 // Use DenseInfo.newBuilder() to construct. 6288 private DenseInfo(com.google.protobuf.GeneratedMessageLite.Builder builder) { 6289 super(builder); 6290 this.unknownFields = builder.getUnknownFields(); 6291 } 6292 private DenseInfo(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 6293 6294 private static final DenseInfo defaultInstance; 6295 public static DenseInfo getDefaultInstance() { 6296 return defaultInstance; 6297 } 6298 6299 @Override 6300 public DenseInfo getDefaultInstanceForType() { 6301 return defaultInstance; 6302 } 6303 6304 private final com.google.protobuf.ByteString unknownFields; 6305 private DenseInfo( 6306 com.google.protobuf.CodedInputStream input, 6307 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6308 throws com.google.protobuf.InvalidProtocolBufferException { 6309 initFields(); 6310 int mutable_bitField0_ = 0; 6311 com.google.protobuf.ByteString.Output unknownFieldsOutput = 6312 com.google.protobuf.ByteString.newOutput(); 6313 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 6314 com.google.protobuf.CodedOutputStream.newInstance( 6315 unknownFieldsOutput); 6316 try { 6317 boolean done = false; 6318 while (!done) { 6319 int tag = input.readTag(); 6320 switch (tag) { 6321 case 0: 6322 done = true; 6323 break; 6324 default: { 6325 if (!parseUnknownField(input, unknownFieldsCodedOutput, 6326 extensionRegistry, tag)) { 6327 done = true; 6328 } 6329 break; 6330 } 6331 case 8: { 6332 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 6333 version_ = new java.util.ArrayList<>(); 6334 mutable_bitField0_ |= 0x00000001; 6335 } 6336 version_.add(input.readInt32()); 6337 break; 6338 } 6339 case 10: { 6340 int length = input.readRawVarint32(); 6341 int limit = input.pushLimit(length); 6342 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { 6343 version_ = new java.util.ArrayList<>(); 6344 mutable_bitField0_ |= 0x00000001; 6345 } 6346 while (input.getBytesUntilLimit() > 0) { 6347 version_.add(input.readInt32()); 6348 } 6349 input.popLimit(limit); 6350 break; 6351 } 6352 case 16: { 6353 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 6354 timestamp_ = new java.util.ArrayList<>(); 6355 mutable_bitField0_ |= 0x00000002; 6356 } 6357 timestamp_.add(input.readSInt64()); 6358 break; 6359 } 6360 case 18: { 6361 int length = input.readRawVarint32(); 6362 int limit = input.pushLimit(length); 6363 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { 6364 timestamp_ = new java.util.ArrayList<>(); 6365 mutable_bitField0_ |= 0x00000002; 6366 } 6367 while (input.getBytesUntilLimit() > 0) { 6368 timestamp_.add(input.readSInt64()); 6369 } 6370 input.popLimit(limit); 6371 break; 6372 } 6373 case 24: { 6374 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 6375 changeset_ = new java.util.ArrayList<>(); 6376 mutable_bitField0_ |= 0x00000004; 6377 } 6378 changeset_.add(input.readSInt64()); 6379 break; 6380 } 6381 case 26: { 6382 int length = input.readRawVarint32(); 6383 int limit = input.pushLimit(length); 6384 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { 6385 changeset_ = new java.util.ArrayList<>(); 6386 mutable_bitField0_ |= 0x00000004; 6387 } 6388 while (input.getBytesUntilLimit() > 0) { 6389 changeset_.add(input.readSInt64()); 6390 } 6391 input.popLimit(limit); 6392 break; 6393 } 6394 case 32: { 6395 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 6396 uid_ = new java.util.ArrayList<>(); 6397 mutable_bitField0_ |= 0x00000008; 6398 } 6399 uid_.add(input.readSInt32()); 6400 break; 6401 } 6402 case 34: { 6403 int length = input.readRawVarint32(); 6404 int limit = input.pushLimit(length); 6405 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { 6406 uid_ = new java.util.ArrayList<>(); 6407 mutable_bitField0_ |= 0x00000008; 6408 } 6409 while (input.getBytesUntilLimit() > 0) { 6410 uid_.add(input.readSInt32()); 6411 } 6412 input.popLimit(limit); 6413 break; 6414 } 6415 case 40: { 6416 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 6417 userSid_ = new java.util.ArrayList<>(); 6418 mutable_bitField0_ |= 0x00000010; 6419 } 6420 userSid_.add(input.readSInt32()); 6421 break; 6422 } 6423 case 42: { 6424 int length = input.readRawVarint32(); 6425 int limit = input.pushLimit(length); 6426 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { 6427 userSid_ = new java.util.ArrayList<>(); 6428 mutable_bitField0_ |= 0x00000010; 6429 } 6430 while (input.getBytesUntilLimit() > 0) { 6431 userSid_.add(input.readSInt32()); 6432 } 6433 input.popLimit(limit); 6434 break; 6435 } 6436 case 48: { 6437 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 6438 visible_ = new java.util.ArrayList<>(); 6439 mutable_bitField0_ |= 0x00000020; 6440 } 6441 visible_.add(input.readBool()); 6442 break; 6443 } 6444 case 50: { 6445 int length = input.readRawVarint32(); 6446 int limit = input.pushLimit(length); 6447 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { 6448 visible_ = new java.util.ArrayList<>(); 6449 mutable_bitField0_ |= 0x00000020; 6450 } 6451 while (input.getBytesUntilLimit() > 0) { 6452 visible_.add(input.readBool()); 6453 } 6454 input.popLimit(limit); 6455 break; 6456 } 6457 } 6458 } 6459 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6460 throw e.setUnfinishedMessage(this); 6461 } catch (java.io.IOException e) { 6462 throw new com.google.protobuf.InvalidProtocolBufferException( 6463 e.getMessage()).setUnfinishedMessage(this); 6464 } finally { 6465 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 6466 version_ = java.util.Collections.unmodifiableList(version_); 6467 } 6468 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 6469 timestamp_ = java.util.Collections.unmodifiableList(timestamp_); 6470 } 6471 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 6472 changeset_ = java.util.Collections.unmodifiableList(changeset_); 6473 } 6474 if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 6475 uid_ = java.util.Collections.unmodifiableList(uid_); 6476 } 6477 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 6478 userSid_ = java.util.Collections.unmodifiableList(userSid_); 6479 } 6480 if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 6481 visible_ = java.util.Collections.unmodifiableList(visible_); 6482 } 6483 try { 6484 unknownFieldsCodedOutput.flush(); 6485 } catch (java.io.IOException e) { 6486 // Should not happen 6487 } finally { 6488 unknownFields = unknownFieldsOutput.toByteString(); 6489 } 6490 makeExtensionsImmutable(); 6491 } 6492 } 6493 public static com.google.protobuf.Parser<DenseInfo> PARSER = 6494 new com.google.protobuf.AbstractParser<DenseInfo>() { 6495 @Override 6496 public DenseInfo parsePartialFrom( 6497 com.google.protobuf.CodedInputStream input, 6498 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6499 throws com.google.protobuf.InvalidProtocolBufferException { 6500 return new DenseInfo(input, extensionRegistry); 6501 } 6502 }; 6503 6504 @java.lang.Override 6505 public com.google.protobuf.Parser<DenseInfo> getParserForType() { 6506 return PARSER; 6507 } 6508 6095 private DenseInfo() { 6096 version_ = emptyIntList(); 6097 timestamp_ = emptyLongList(); 6098 changeset_ = emptyLongList(); 6099 uid_ = emptyIntList(); 6100 userSid_ = emptyIntList(); 6101 visible_ = emptyBooleanList(); 6102 } 6509 6103 public static final int VERSION_FIELD_NUMBER = 1; 6510 private java.util.List<java.lang.Integer>version_;6104 private com.google.protobuf.Internal.IntList version_; 6511 6105 /** 6512 6106 * <code>repeated int32 version = 1 [packed = true];</code> 6513 6107 */ 6514 @Override 6515 public java.util.List<java.lang.Integer> 6108 public java.util.List<java.lang.Integer> 6516 6109 getVersionList() { 6517 6110 return version_; … … 6520 6113 * <code>repeated int32 version = 1 [packed = true];</code> 6521 6114 */ 6522 @Override 6523 public int getVersionCount() { 6115 public int getVersionCount() { 6524 6116 return version_.size(); 6525 6117 } … … 6527 6119 * <code>repeated int32 version = 1 [packed = true];</code> 6528 6120 */ 6529 @Override 6530 public int getVersion(int index) { 6531 return version_.get(index); 6121 public int getVersion(int index) { 6122 return version_.getInt(index); 6532 6123 } 6533 6124 private int versionMemoizedSerializedSize = -1; 6125 private void ensureVersionIsMutable() { 6126 if (!version_.isModifiable()) { 6127 version_ = 6128 com.google.protobuf.GeneratedMessageLite.mutableCopy(version_); 6129 } 6130 } 6131 /** 6132 * <code>repeated int32 version = 1 [packed = true];</code> 6133 */ 6134 private void setVersion( 6135 int index, int value) { 6136 ensureVersionIsMutable(); 6137 version_.setInt(index, value); 6138 } 6139 /** 6140 * <code>repeated int32 version = 1 [packed = true];</code> 6141 */ 6142 private void addVersion(int value) { 6143 ensureVersionIsMutable(); 6144 version_.addInt(value); 6145 } 6146 /** 6147 * <code>repeated int32 version = 1 [packed = true];</code> 6148 */ 6149 private void addAllVersion( 6150 java.lang.Iterable<? extends java.lang.Integer> values) { 6151 ensureVersionIsMutable(); 6152 com.google.protobuf.AbstractMessageLite.addAll( 6153 values, version_); 6154 } 6155 /** 6156 * <code>repeated int32 version = 1 [packed = true];</code> 6157 */ 6158 private void clearVersion() { 6159 version_ = emptyIntList(); 6160 } 6534 6161 6535 6162 public static final int TIMESTAMP_FIELD_NUMBER = 2; 6536 private java.util.List<java.lang.Long> timestamp_; 6537 /** 6163 private com.google.protobuf.Internal.LongList timestamp_; 6164 /** 6165 * <pre> 6166 * DELTA coded 6167 * </pre> 6168 * 6538 6169 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6539 * 6540 * <pre> 6541 * DELTA coded 6542 * </pre> 6543 */ 6544 @Override 6545 public java.util.List<java.lang.Long> 6170 */ 6171 public java.util.List<java.lang.Long> 6546 6172 getTimestampList() { 6547 6173 return timestamp_; 6548 6174 } 6549 6175 /** 6176 * <pre> 6177 * DELTA coded 6178 * </pre> 6179 * 6550 6180 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6551 * 6181 */ 6182 public int getTimestampCount() { 6183 return timestamp_.size(); 6184 } 6185 /** 6552 6186 * <pre> 6553 6187 * DELTA coded 6554 6188 * </pre> 6555 */ 6556 @Override 6557 public int getTimestampCount() { 6558 return timestamp_.size(); 6559 } 6560 /** 6189 * 6561 6190 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6562 * 6191 */ 6192 public long getTimestamp(int index) { 6193 return timestamp_.getLong(index); 6194 } 6195 private int timestampMemoizedSerializedSize = -1; 6196 private void ensureTimestampIsMutable() { 6197 if (!timestamp_.isModifiable()) { 6198 timestamp_ = 6199 com.google.protobuf.GeneratedMessageLite.mutableCopy(timestamp_); 6200 } 6201 } 6202 /** 6563 6203 * <pre> 6564 6204 * DELTA coded 6565 6205 * </pre> 6566 */ 6567 @Override 6568 public long getTimestamp(int index) { 6569 return timestamp_.get(index); 6570 } 6571 private int timestampMemoizedSerializedSize = -1; 6206 * 6207 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6208 */ 6209 private void setTimestamp( 6210 int index, long value) { 6211 ensureTimestampIsMutable(); 6212 timestamp_.setLong(index, value); 6213 } 6214 /** 6215 * <pre> 6216 * DELTA coded 6217 * </pre> 6218 * 6219 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6220 */ 6221 private void addTimestamp(long value) { 6222 ensureTimestampIsMutable(); 6223 timestamp_.addLong(value); 6224 } 6225 /** 6226 * <pre> 6227 * DELTA coded 6228 * </pre> 6229 * 6230 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6231 */ 6232 private void addAllTimestamp( 6233 java.lang.Iterable<? extends java.lang.Long> values) { 6234 ensureTimestampIsMutable(); 6235 com.google.protobuf.AbstractMessageLite.addAll( 6236 values, timestamp_); 6237 } 6238 /** 6239 * <pre> 6240 * DELTA coded 6241 * </pre> 6242 * 6243 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6244 */ 6245 private void clearTimestamp() { 6246 timestamp_ = emptyLongList(); 6247 } 6572 6248 6573 6249 public static final int CHANGESET_FIELD_NUMBER = 3; 6574 private java.util.List<java.lang.Long> changeset_; 6575 /** 6250 private com.google.protobuf.Internal.LongList changeset_; 6251 /** 6252 * <pre> 6253 * DELTA coded 6254 * </pre> 6255 * 6576 6256 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6577 * 6578 * <pre> 6579 * DELTA coded 6580 * </pre> 6581 */ 6582 @Override 6583 public java.util.List<java.lang.Long> 6257 */ 6258 public java.util.List<java.lang.Long> 6584 6259 getChangesetList() { 6585 6260 return changeset_; 6586 6261 } 6587 6262 /** 6263 * <pre> 6264 * DELTA coded 6265 * </pre> 6266 * 6588 6267 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6589 * 6268 */ 6269 public int getChangesetCount() { 6270 return changeset_.size(); 6271 } 6272 /** 6590 6273 * <pre> 6591 6274 * DELTA coded 6592 6275 * </pre> 6593 */ 6594 @Override 6595 public int getChangesetCount() { 6596 return changeset_.size(); 6597 } 6598 /** 6276 * 6599 6277 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6600 * 6278 */ 6279 public long getChangeset(int index) { 6280 return changeset_.getLong(index); 6281 } 6282 private int changesetMemoizedSerializedSize = -1; 6283 private void ensureChangesetIsMutable() { 6284 if (!changeset_.isModifiable()) { 6285 changeset_ = 6286 com.google.protobuf.GeneratedMessageLite.mutableCopy(changeset_); 6287 } 6288 } 6289 /** 6601 6290 * <pre> 6602 6291 * DELTA coded 6603 6292 * </pre> 6604 */ 6605 @Override 6606 public long getChangeset(int index) { 6607 return changeset_.get(index); 6608 } 6609 private int changesetMemoizedSerializedSize = -1; 6293 * 6294 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6295 */ 6296 private void setChangeset( 6297 int index, long value) { 6298 ensureChangesetIsMutable(); 6299 changeset_.setLong(index, value); 6300 } 6301 /** 6302 * <pre> 6303 * DELTA coded 6304 * </pre> 6305 * 6306 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6307 */ 6308 private void addChangeset(long value) { 6309 ensureChangesetIsMutable(); 6310 changeset_.addLong(value); 6311 } 6312 /** 6313 * <pre> 6314 * DELTA coded 6315 * </pre> 6316 * 6317 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6318 */ 6319 private void addAllChangeset( 6320 java.lang.Iterable<? extends java.lang.Long> values) { 6321 ensureChangesetIsMutable(); 6322 com.google.protobuf.AbstractMessageLite.addAll( 6323 values, changeset_); 6324 } 6325 /** 6326 * <pre> 6327 * DELTA coded 6328 * </pre> 6329 * 6330 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6331 */ 6332 private void clearChangeset() { 6333 changeset_ = emptyLongList(); 6334 } 6610 6335 6611 6336 public static final int UID_FIELD_NUMBER = 4; 6612 private java.util.List<java.lang.Integer> uid_; 6613 /** 6337 private com.google.protobuf.Internal.IntList uid_; 6338 /** 6339 * <pre> 6340 * DELTA coded 6341 * </pre> 6342 * 6614 6343 * <code>repeated sint32 uid = 4 [packed = true];</code> 6615 * 6616 * <pre> 6617 * DELTA coded 6618 * </pre> 6619 */ 6620 @Override 6621 public java.util.List<java.lang.Integer> 6344 */ 6345 public java.util.List<java.lang.Integer> 6622 6346 getUidList() { 6623 6347 return uid_; 6624 6348 } 6625 6349 /** 6350 * <pre> 6351 * DELTA coded 6352 * </pre> 6353 * 6626 6354 * <code>repeated sint32 uid = 4 [packed = true];</code> 6627 * 6355 */ 6356 public int getUidCount() { 6357 return uid_.size(); 6358 } 6359 /** 6628 6360 * <pre> 6629 6361 * DELTA coded 6630 6362 * </pre> 6631 */ 6632 @Override 6633 public int getUidCount() { 6634 return uid_.size(); 6635 } 6636 /** 6363 * 6637 6364 * <code>repeated sint32 uid = 4 [packed = true];</code> 6638 * 6365 */ 6366 public int getUid(int index) { 6367 return uid_.getInt(index); 6368 } 6369 private int uidMemoizedSerializedSize = -1; 6370 private void ensureUidIsMutable() { 6371 if (!uid_.isModifiable()) { 6372 uid_ = 6373 com.google.protobuf.GeneratedMessageLite.mutableCopy(uid_); 6374 } 6375 } 6376 /** 6639 6377 * <pre> 6640 6378 * DELTA coded 6641 6379 * </pre> 6642 */ 6643 @Override 6644 public int getUid(int index) { 6645 return uid_.get(index); 6646 } 6647 private int uidMemoizedSerializedSize = -1; 6380 * 6381 * <code>repeated sint32 uid = 4 [packed = true];</code> 6382 */ 6383 private void setUid( 6384 int index, int value) { 6385 ensureUidIsMutable(); 6386 uid_.setInt(index, value); 6387 } 6388 /** 6389 * <pre> 6390 * DELTA coded 6391 * </pre> 6392 * 6393 * <code>repeated sint32 uid = 4 [packed = true];</code> 6394 */ 6395 private void addUid(int value) { 6396 ensureUidIsMutable(); 6397 uid_.addInt(value); 6398 } 6399 /** 6400 * <pre> 6401 * DELTA coded 6402 * </pre> 6403 * 6404 * <code>repeated sint32 uid = 4 [packed = true];</code> 6405 */ 6406 private void addAllUid( 6407 java.lang.Iterable<? extends java.lang.Integer> values) { 6408 ensureUidIsMutable(); 6409 com.google.protobuf.AbstractMessageLite.addAll( 6410 values, uid_); 6411 } 6412 /** 6413 * <pre> 6414 * DELTA coded 6415 * </pre> 6416 * 6417 * <code>repeated sint32 uid = 4 [packed = true];</code> 6418 */ 6419 private void clearUid() { 6420 uid_ = emptyIntList(); 6421 } 6648 6422 6649 6423 public static final int USER_SID_FIELD_NUMBER = 5; 6650 private java.util.List<java.lang.Integer> userSid_; 6651 /** 6424 private com.google.protobuf.Internal.IntList userSid_; 6425 /** 6426 * <pre> 6427 * String IDs for usernames. DELTA coded 6428 * </pre> 6429 * 6652 6430 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6653 * 6654 * <pre> 6655 * String IDs for usernames. DELTA coded 6656 * </pre> 6657 */ 6658 @Override 6659 public java.util.List<java.lang.Integer> 6431 */ 6432 public java.util.List<java.lang.Integer> 6660 6433 getUserSidList() { 6661 6434 return userSid_; 6662 6435 } 6663 6436 /** 6437 * <pre> 6438 * String IDs for usernames. DELTA coded 6439 * </pre> 6440 * 6664 6441 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6665 * 6442 */ 6443 public int getUserSidCount() { 6444 return userSid_.size(); 6445 } 6446 /** 6666 6447 * <pre> 6667 6448 * String IDs for usernames. DELTA coded 6668 6449 * </pre> 6669 */ 6670 @Override 6671 public int getUserSidCount() { 6672 return userSid_.size(); 6673 } 6674 /** 6450 * 6675 6451 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6676 * 6452 */ 6453 public int getUserSid(int index) { 6454 return userSid_.getInt(index); 6455 } 6456 private int userSidMemoizedSerializedSize = -1; 6457 private void ensureUserSidIsMutable() { 6458 if (!userSid_.isModifiable()) { 6459 userSid_ = 6460 com.google.protobuf.GeneratedMessageLite.mutableCopy(userSid_); 6461 } 6462 } 6463 /** 6677 6464 * <pre> 6678 6465 * String IDs for usernames. DELTA coded 6679 6466 * </pre> 6680 */ 6681 @Override 6682 public int getUserSid(int index) { 6683 return userSid_.get(index); 6684 } 6685 private int userSidMemoizedSerializedSize = -1; 6467 * 6468 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6469 */ 6470 private void setUserSid( 6471 int index, int value) { 6472 ensureUserSidIsMutable(); 6473 userSid_.setInt(index, value); 6474 } 6475 /** 6476 * <pre> 6477 * String IDs for usernames. DELTA coded 6478 * </pre> 6479 * 6480 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6481 */ 6482 private void addUserSid(int value) { 6483 ensureUserSidIsMutable(); 6484 userSid_.addInt(value); 6485 } 6486 /** 6487 * <pre> 6488 * String IDs for usernames. DELTA coded 6489 * </pre> 6490 * 6491 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6492 */ 6493 private void addAllUserSid( 6494 java.lang.Iterable<? extends java.lang.Integer> values) { 6495 ensureUserSidIsMutable(); 6496 com.google.protobuf.AbstractMessageLite.addAll( 6497 values, userSid_); 6498 } 6499 /** 6500 * <pre> 6501 * String IDs for usernames. DELTA coded 6502 * </pre> 6503 * 6504 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6505 */ 6506 private void clearUserSid() { 6507 userSid_ = emptyIntList(); 6508 } 6686 6509 6687 6510 public static final int VISIBLE_FIELD_NUMBER = 6; 6688 private java.util.List<java.lang.Boolean> visible_; 6689 /** 6690 * <code>repeated bool visible = 6 [packed = true];</code> 6691 * 6511 private com.google.protobuf.Internal.BooleanList visible_; 6512 /** 6692 6513 * <pre> 6693 6514 * The visible flag is used to store history information. It indicates that … … 6700 6521 * set. 6701 6522 * </pre> 6702 */ 6703 @Override 6704 public java.util.List<java.lang.Boolean> 6523 * 6524 * <code>repeated bool visible = 6 [packed = true];</code> 6525 */ 6526 public java.util.List<java.lang.Boolean> 6705 6527 getVisibleList() { 6706 6528 return visible_; 6707 6529 } 6708 6530 /** 6709 * <code>repeated bool visible = 6 [packed = true];</code>6710 *6711 6531 * <pre> 6712 6532 * The visible flag is used to store history information. It indicates that … … 6719 6539 * set. 6720 6540 * </pre> 6721 */ 6722 @Override 6723 public int getVisibleCount() { 6541 * 6542 * <code>repeated bool visible = 6 [packed = true];</code> 6543 */ 6544 public int getVisibleCount() { 6724 6545 return visible_.size(); 6725 6546 } 6726 6547 /** 6727 * <code>repeated bool visible = 6 [packed = true];</code>6728 *6729 6548 * <pre> 6730 6549 * The visible flag is used to store history information. It indicates that … … 6737 6556 * set. 6738 6557 * </pre> 6739 */ 6740 @Override 6741 public boolean getVisible(int index) { 6742 return visible_.get(index); 6558 * 6559 * <code>repeated bool visible = 6 [packed = true];</code> 6560 */ 6561 public boolean getVisible(int index) { 6562 return visible_.getBoolean(index); 6743 6563 } 6744 6564 private int visibleMemoizedSerializedSize = -1; 6745 6746 private void initFields() { 6747 version_ = java.util.Collections.emptyList(); 6748 timestamp_ = java.util.Collections.emptyList(); 6749 changeset_ = java.util.Collections.emptyList(); 6750 uid_ = java.util.Collections.emptyList(); 6751 userSid_ = java.util.Collections.emptyList(); 6752 visible_ = java.util.Collections.emptyList(); 6753 } 6754 private byte memoizedIsInitialized = -1; 6755 @Override 6756 public final boolean isInitialized() { 6757 byte isInitialized = memoizedIsInitialized; 6758 if (isInitialized == 1) return true; 6759 if (isInitialized == 0) return false; 6760 6761 memoizedIsInitialized = 1; 6762 return true; 6763 } 6764 6765 @Override 6766 public void writeTo(com.google.protobuf.CodedOutputStream output) 6565 private void ensureVisibleIsMutable() { 6566 if (!visible_.isModifiable()) { 6567 visible_ = 6568 com.google.protobuf.GeneratedMessageLite.mutableCopy(visible_); 6569 } 6570 } 6571 /** 6572 * <pre> 6573 * The visible flag is used to store history information. It indicates that 6574 * the current object version has been created by a delete operation on the 6575 * OSM API. 6576 * When a writer sets this flag, it MUST add a required_features tag with 6577 * value "HistoricalInformation" to the HeaderBlock. 6578 * If this flag is not available for some object it MUST be assumed to be 6579 * true if the file has the required_features tag "HistoricalInformation" 6580 * set. 6581 * </pre> 6582 * 6583 * <code>repeated bool visible = 6 [packed = true];</code> 6584 */ 6585 private void setVisible( 6586 int index, boolean value) { 6587 ensureVisibleIsMutable(); 6588 visible_.setBoolean(index, value); 6589 } 6590 /** 6591 * <pre> 6592 * The visible flag is used to store history information. It indicates that 6593 * the current object version has been created by a delete operation on the 6594 * OSM API. 6595 * When a writer sets this flag, it MUST add a required_features tag with 6596 * value "HistoricalInformation" to the HeaderBlock. 6597 * If this flag is not available for some object it MUST be assumed to be 6598 * true if the file has the required_features tag "HistoricalInformation" 6599 * set. 6600 * </pre> 6601 * 6602 * <code>repeated bool visible = 6 [packed = true];</code> 6603 */ 6604 private void addVisible(boolean value) { 6605 ensureVisibleIsMutable(); 6606 visible_.addBoolean(value); 6607 } 6608 /** 6609 * <pre> 6610 * The visible flag is used to store history information. It indicates that 6611 * the current object version has been created by a delete operation on the 6612 * OSM API. 6613 * When a writer sets this flag, it MUST add a required_features tag with 6614 * value "HistoricalInformation" to the HeaderBlock. 6615 * If this flag is not available for some object it MUST be assumed to be 6616 * true if the file has the required_features tag "HistoricalInformation" 6617 * set. 6618 * </pre> 6619 * 6620 * <code>repeated bool visible = 6 [packed = true];</code> 6621 */ 6622 private void addAllVisible( 6623 java.lang.Iterable<? extends java.lang.Boolean> values) { 6624 ensureVisibleIsMutable(); 6625 com.google.protobuf.AbstractMessageLite.addAll( 6626 values, visible_); 6627 } 6628 /** 6629 * <pre> 6630 * The visible flag is used to store history information. It indicates that 6631 * the current object version has been created by a delete operation on the 6632 * OSM API. 6633 * When a writer sets this flag, it MUST add a required_features tag with 6634 * value "HistoricalInformation" to the HeaderBlock. 6635 * If this flag is not available for some object it MUST be assumed to be 6636 * true if the file has the required_features tag "HistoricalInformation" 6637 * set. 6638 * </pre> 6639 * 6640 * <code>repeated bool visible = 6 [packed = true];</code> 6641 */ 6642 private void clearVisible() { 6643 visible_ = emptyBooleanList(); 6644 } 6645 6646 public void writeTo(com.google.protobuf.CodedOutputStream output) 6767 6647 throws java.io.IOException { 6768 6648 getSerializedSize(); 6769 6649 if (getVersionList().size() > 0) { 6770 output.write RawVarint32(10);6771 output.write RawVarint32(versionMemoizedSerializedSize);6650 output.writeUInt32NoTag(10); 6651 output.writeUInt32NoTag(versionMemoizedSerializedSize); 6772 6652 } 6773 6653 for (int i = 0; i < version_.size(); i++) { 6774 output.writeInt32NoTag(version_.get(i)); 6654 output.writeInt32NoTag(version_.getInt(i)); 6775 6655 } 6776 6656 if (getTimestampList().size() > 0) { 6777 output.write RawVarint32(18);6778 output.write RawVarint32(timestampMemoizedSerializedSize);6657 output.writeUInt32NoTag(18); 6658 output.writeUInt32NoTag(timestampMemoizedSerializedSize); 6779 6659 } 6780 6660 for (int i = 0; i < timestamp_.size(); i++) { 6781 output.writeSInt64NoTag(timestamp_.get(i)); 6661 output.writeSInt64NoTag(timestamp_.getLong(i)); 6782 6662 } 6783 6663 if (getChangesetList().size() > 0) { 6784 output.write RawVarint32(26);6785 output.write RawVarint32(changesetMemoizedSerializedSize);6664 output.writeUInt32NoTag(26); 6665 output.writeUInt32NoTag(changesetMemoizedSerializedSize); 6786 6666 } 6787 6667 for (int i = 0; i < changeset_.size(); i++) { 6788 output.writeSInt64NoTag(changeset_.get(i)); 6668 output.writeSInt64NoTag(changeset_.getLong(i)); 6789 6669 } 6790 6670 if (getUidList().size() > 0) { 6791 output.write RawVarint32(34);6792 output.write RawVarint32(uidMemoizedSerializedSize);6671 output.writeUInt32NoTag(34); 6672 output.writeUInt32NoTag(uidMemoizedSerializedSize); 6793 6673 } 6794 6674 for (int i = 0; i < uid_.size(); i++) { 6795 output.writeSInt32NoTag(uid_.get(i)); 6675 output.writeSInt32NoTag(uid_.getInt(i)); 6796 6676 } 6797 6677 if (getUserSidList().size() > 0) { 6798 output.write RawVarint32(42);6799 output.write RawVarint32(userSidMemoizedSerializedSize);6678 output.writeUInt32NoTag(42); 6679 output.writeUInt32NoTag(userSidMemoizedSerializedSize); 6800 6680 } 6801 6681 for (int i = 0; i < userSid_.size(); i++) { 6802 output.writeSInt32NoTag(userSid_.get(i)); 6682 output.writeSInt32NoTag(userSid_.getInt(i)); 6803 6683 } 6804 6684 if (getVisibleList().size() > 0) { 6805 output.write RawVarint32(50);6806 output.write RawVarint32(visibleMemoizedSerializedSize);6685 output.writeUInt32NoTag(50); 6686 output.writeUInt32NoTag(visibleMemoizedSerializedSize); 6807 6687 } 6808 6688 for (int i = 0; i < visible_.size(); i++) { 6809 output.writeBoolNoTag(visible_.get(i)); 6810 } 6811 output.writeRawBytes(unknownFields); 6812 } 6813 6814 private int memoizedSerializedSize = -1; 6815 @Override 6816 public int getSerializedSize() { 6689 output.writeBoolNoTag(visible_.getBoolean(i)); 6690 } 6691 unknownFields.writeTo(output); 6692 } 6693 6694 public int getSerializedSize() { 6817 6695 int size = memoizedSerializedSize; 6818 6696 if (size != -1) return size; … … 6823 6701 for (int i = 0; i < version_.size(); i++) { 6824 6702 dataSize += com.google.protobuf.CodedOutputStream 6825 .computeInt32SizeNoTag(version_.get(i)); 6703 .computeInt32SizeNoTag(version_.getInt(i)); 6826 6704 } 6827 6705 size += dataSize; … … 6837 6715 for (int i = 0; i < timestamp_.size(); i++) { 6838 6716 dataSize += com.google.protobuf.CodedOutputStream 6839 .computeSInt64SizeNoTag(timestamp_.get(i)); 6717 .computeSInt64SizeNoTag(timestamp_.getLong(i)); 6840 6718 } 6841 6719 size += dataSize; … … 6851 6729 for (int i = 0; i < changeset_.size(); i++) { 6852 6730 dataSize += com.google.protobuf.CodedOutputStream 6853 .computeSInt64SizeNoTag(changeset_.get(i)); 6731 .computeSInt64SizeNoTag(changeset_.getLong(i)); 6854 6732 } 6855 6733 size += dataSize; … … 6865 6743 for (int i = 0; i < uid_.size(); i++) { 6866 6744 dataSize += com.google.protobuf.CodedOutputStream 6867 .computeSInt32SizeNoTag(uid_.get(i)); 6745 .computeSInt32SizeNoTag(uid_.getInt(i)); 6868 6746 } 6869 6747 size += dataSize; … … 6879 6757 for (int i = 0; i < userSid_.size(); i++) { 6880 6758 dataSize += com.google.protobuf.CodedOutputStream 6881 .computeSInt32SizeNoTag(userSid_.get(i)); 6759 .computeSInt32SizeNoTag(userSid_.getInt(i)); 6882 6760 } 6883 6761 size += dataSize; … … 6900 6778 visibleMemoizedSerializedSize = dataSize; 6901 6779 } 6902 size += unknownFields. size();6780 size += unknownFields.getSerializedSize(); 6903 6781 memoizedSerializedSize = size; 6904 6782 return size; 6905 6783 } 6906 6784 6907 private static final long serialVersionUID = 0L; 6908 @java.lang.Override 6909 protected java.lang.Object writeReplace() 6910 throws java.io.ObjectStreamException { 6911 return super.writeReplace(); 6912 } 6913 6785 public static crosby.binary.Osmformat.DenseInfo parseFrom( 6786 java.nio.ByteBuffer data) 6787 throws com.google.protobuf.InvalidProtocolBufferException { 6788 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6789 DEFAULT_INSTANCE, data); 6790 } 6791 public static crosby.binary.Osmformat.DenseInfo parseFrom( 6792 java.nio.ByteBuffer data, 6793 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6794 throws com.google.protobuf.InvalidProtocolBufferException { 6795 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6796 DEFAULT_INSTANCE, data, extensionRegistry); 6797 } 6914 6798 public static crosby.binary.Osmformat.DenseInfo parseFrom( 6915 6799 com.google.protobuf.ByteString data) 6916 6800 throws com.google.protobuf.InvalidProtocolBufferException { 6917 return PARSER.parseFrom(data); 6801 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6802 DEFAULT_INSTANCE, data); 6918 6803 } 6919 6804 public static crosby.binary.Osmformat.DenseInfo parseFrom( … … 6921 6806 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6922 6807 throws com.google.protobuf.InvalidProtocolBufferException { 6923 return PARSER.parseFrom(data, extensionRegistry); 6808 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6809 DEFAULT_INSTANCE, data, extensionRegistry); 6924 6810 } 6925 6811 public static crosby.binary.Osmformat.DenseInfo parseFrom(byte[] data) 6926 6812 throws com.google.protobuf.InvalidProtocolBufferException { 6927 return PARSER.parseFrom(data); 6813 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6814 DEFAULT_INSTANCE, data); 6928 6815 } 6929 6816 public static crosby.binary.Osmformat.DenseInfo parseFrom( … … 6931 6818 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6932 6819 throws com.google.protobuf.InvalidProtocolBufferException { 6933 return PARSER.parseFrom(data, extensionRegistry); 6820 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6821 DEFAULT_INSTANCE, data, extensionRegistry); 6934 6822 } 6935 6823 public static crosby.binary.Osmformat.DenseInfo parseFrom(java.io.InputStream input) 6936 6824 throws java.io.IOException { 6937 return PARSER.parseFrom(input); 6825 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6826 DEFAULT_INSTANCE, input); 6938 6827 } 6939 6828 public static crosby.binary.Osmformat.DenseInfo parseFrom( … … 6941 6830 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6942 6831 throws java.io.IOException { 6943 return PARSER.parseFrom(input, extensionRegistry); 6832 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6833 DEFAULT_INSTANCE, input, extensionRegistry); 6944 6834 } 6945 6835 public static crosby.binary.Osmformat.DenseInfo parseDelimitedFrom(java.io.InputStream input) 6946 6836 throws java.io.IOException { 6947 return PARSER.parseDelimitedFrom(input);6837 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 6948 6838 } 6949 6839 public static crosby.binary.Osmformat.DenseInfo parseDelimitedFrom( … … 6951 6841 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6952 6842 throws java.io.IOException { 6953 return PARSER.parseDelimitedFrom(input, extensionRegistry);6843 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 6954 6844 } 6955 6845 public static crosby.binary.Osmformat.DenseInfo parseFrom( 6956 6846 com.google.protobuf.CodedInputStream input) 6957 6847 throws java.io.IOException { 6958 return PARSER.parseFrom(input); 6848 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6849 DEFAULT_INSTANCE, input); 6959 6850 } 6960 6851 public static crosby.binary.Osmformat.DenseInfo parseFrom( … … 6962 6853 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6963 6854 throws java.io.IOException { 6964 return PARSER.parseFrom(input, extensionRegistry); 6965 } 6966 6967 public static Builder newBuilder() { return Builder.create(); } 6968 @Override 6969 public Builder newBuilderForType() { return newBuilder(); } 6855 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6856 DEFAULT_INSTANCE, input, extensionRegistry); 6857 } 6858 6859 public static Builder newBuilder() { 6860 return DEFAULT_INSTANCE.toBuilder(); 6861 } 6970 6862 public static Builder newBuilder(crosby.binary.Osmformat.DenseInfo prototype) { 6971 return newBuilder().mergeFrom(prototype); 6972 } 6973 @Override 6974 public Builder toBuilder() { return newBuilder(this); } 6975 6976 /** 6863 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 6864 } 6865 6866 /** 6867 * <pre> 6868 ** Optional metadata that may be included into each primitive. Special dense format used in DenseNodes. 6869 * </pre> 6870 * 6977 6871 * Protobuf type {@code OSMPBF.DenseInfo} 6978 *6979 * <pre>6980 ** Optional metadata that may be included into each primitive. Special dense format used in DenseNodes.6981 * </pre>6982 6872 */ 6983 6873 public static final class Builder extends 6984 6874 com.google.protobuf.GeneratedMessageLite.Builder< 6985 crosby.binary.Osmformat.DenseInfo, Builder> 6986 implements 6875 crosby.binary.Osmformat.DenseInfo, Builder> implements 6987 6876 // @@protoc_insertion_point(builder_implements:OSMPBF.DenseInfo) 6988 6877 crosby.binary.Osmformat.DenseInfoOrBuilder { 6989 6878 // Construct using crosby.binary.Osmformat.DenseInfo.newBuilder() 6990 6879 private Builder() { 6991 maybeForceBuilderInitialization(); 6992 } 6993 6994 private void maybeForceBuilderInitialization() { 6995 } 6996 private static Builder create() { 6997 return new Builder(); 6998 } 6999 7000 @Override 7001 public Builder clear() { 7002 super.clear(); 7003 version_ = java.util.Collections.emptyList(); 7004 bitField0_ = (bitField0_ & ~0x00000001); 7005 timestamp_ = java.util.Collections.emptyList(); 7006 bitField0_ = (bitField0_ & ~0x00000002); 7007 changeset_ = java.util.Collections.emptyList(); 7008 bitField0_ = (bitField0_ & ~0x00000004); 7009 uid_ = java.util.Collections.emptyList(); 7010 bitField0_ = (bitField0_ & ~0x00000008); 7011 userSid_ = java.util.Collections.emptyList(); 7012 bitField0_ = (bitField0_ & ~0x00000010); 7013 visible_ = java.util.Collections.emptyList(); 7014 bitField0_ = (bitField0_ & ~0x00000020); 7015 return this; 7016 } 7017 7018 @Override 7019 public Builder clone() { 7020 return create().mergeFrom(buildPartial()); 7021 } 7022 7023 @Override 7024 public crosby.binary.Osmformat.DenseInfo getDefaultInstanceForType() { 7025 return crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 7026 } 7027 7028 @Override 7029 public crosby.binary.Osmformat.DenseInfo build() { 7030 crosby.binary.Osmformat.DenseInfo result = buildPartial(); 7031 if (!result.isInitialized()) { 7032 throw newUninitializedMessageException(result); 7033 } 7034 return result; 7035 } 7036 7037 @Override 7038 public crosby.binary.Osmformat.DenseInfo buildPartial() { 7039 crosby.binary.Osmformat.DenseInfo result = new crosby.binary.Osmformat.DenseInfo(this); 7040 int from_bitField0_ = bitField0_; 7041 if (((bitField0_ & 0x00000001) == 0x00000001)) { 7042 version_ = java.util.Collections.unmodifiableList(version_); 7043 bitField0_ = (bitField0_ & ~0x00000001); 7044 } 7045 result.version_ = version_; 7046 if (((bitField0_ & 0x00000002) == 0x00000002)) { 7047 timestamp_ = java.util.Collections.unmodifiableList(timestamp_); 7048 bitField0_ = (bitField0_ & ~0x00000002); 7049 } 7050 result.timestamp_ = timestamp_; 7051 if (((bitField0_ & 0x00000004) == 0x00000004)) { 7052 changeset_ = java.util.Collections.unmodifiableList(changeset_); 7053 bitField0_ = (bitField0_ & ~0x00000004); 7054 } 7055 result.changeset_ = changeset_; 7056 if (((bitField0_ & 0x00000008) == 0x00000008)) { 7057 uid_ = java.util.Collections.unmodifiableList(uid_); 7058 bitField0_ = (bitField0_ & ~0x00000008); 7059 } 7060 result.uid_ = uid_; 7061 if (((bitField0_ & 0x00000010) == 0x00000010)) { 7062 userSid_ = java.util.Collections.unmodifiableList(userSid_); 7063 bitField0_ = (bitField0_ & ~0x00000010); 7064 } 7065 result.userSid_ = userSid_; 7066 if (((bitField0_ & 0x00000020) == 0x00000020)) { 7067 visible_ = java.util.Collections.unmodifiableList(visible_); 7068 bitField0_ = (bitField0_ & ~0x00000020); 7069 } 7070 result.visible_ = visible_; 7071 return result; 7072 } 7073 7074 @Override 7075 public Builder mergeFrom(crosby.binary.Osmformat.DenseInfo other) { 7076 if (other == crosby.binary.Osmformat.DenseInfo.getDefaultInstance()) return this; 7077 if (!other.version_.isEmpty()) { 7078 if (version_.isEmpty()) { 7079 version_ = other.version_; 7080 bitField0_ = (bitField0_ & ~0x00000001); 7081 } else { 7082 ensureVersionIsMutable(); 7083 version_.addAll(other.version_); 7084 } 7085 7086 } 7087 if (!other.timestamp_.isEmpty()) { 7088 if (timestamp_.isEmpty()) { 7089 timestamp_ = other.timestamp_; 7090 bitField0_ = (bitField0_ & ~0x00000002); 7091 } else { 7092 ensureTimestampIsMutable(); 7093 timestamp_.addAll(other.timestamp_); 7094 } 7095 7096 } 7097 if (!other.changeset_.isEmpty()) { 7098 if (changeset_.isEmpty()) { 7099 changeset_ = other.changeset_; 7100 bitField0_ = (bitField0_ & ~0x00000004); 7101 } else { 7102 ensureChangesetIsMutable(); 7103 changeset_.addAll(other.changeset_); 7104 } 7105 7106 } 7107 if (!other.uid_.isEmpty()) { 7108 if (uid_.isEmpty()) { 7109 uid_ = other.uid_; 7110 bitField0_ = (bitField0_ & ~0x00000008); 7111 } else { 7112 ensureUidIsMutable(); 7113 uid_.addAll(other.uid_); 7114 } 7115 7116 } 7117 if (!other.userSid_.isEmpty()) { 7118 if (userSid_.isEmpty()) { 7119 userSid_ = other.userSid_; 7120 bitField0_ = (bitField0_ & ~0x00000010); 7121 } else { 7122 ensureUserSidIsMutable(); 7123 userSid_.addAll(other.userSid_); 7124 } 7125 7126 } 7127 if (!other.visible_.isEmpty()) { 7128 if (visible_.isEmpty()) { 7129 visible_ = other.visible_; 7130 bitField0_ = (bitField0_ & ~0x00000020); 7131 } else { 7132 ensureVisibleIsMutable(); 7133 visible_.addAll(other.visible_); 7134 } 7135 7136 } 7137 setUnknownFields( 7138 getUnknownFields().concat(other.unknownFields)); 7139 return this; 7140 } 7141 7142 @Override 7143 public final boolean isInitialized() { 7144 return true; 7145 } 7146 7147 @Override 7148 public Builder mergeFrom( 7149 com.google.protobuf.CodedInputStream input, 7150 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7151 throws java.io.IOException { 7152 crosby.binary.Osmformat.DenseInfo parsedMessage = null; 7153 try { 7154 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 7155 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7156 parsedMessage = (crosby.binary.Osmformat.DenseInfo) e.getUnfinishedMessage(); 7157 throw e; 7158 } finally { 7159 if (parsedMessage != null) { 7160 mergeFrom(parsedMessage); 7161 } 7162 } 7163 return this; 7164 } 7165 private int bitField0_; 7166 7167 private java.util.List<java.lang.Integer> version_ = java.util.Collections.emptyList(); 7168 private void ensureVersionIsMutable() { 7169 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 7170 version_ = new java.util.ArrayList<>(version_); 7171 bitField0_ |= 0x00000001; 7172 } 7173 } 6880 super(DEFAULT_INSTANCE); 6881 } 6882 6883 7174 6884 /** 7175 6885 * <code>repeated int32 version = 1 [packed = true];</code> 7176 6886 */ 7177 @Override 7178 public java.util.List<java.lang.Integer> 6887 public java.util.List<java.lang.Integer> 7179 6888 getVersionList() { 7180 return java.util.Collections.unmodifiableList(version_); 6889 return java.util.Collections.unmodifiableList( 6890 instance.getVersionList()); 7181 6891 } 7182 6892 /** 7183 6893 * <code>repeated int32 version = 1 [packed = true];</code> 7184 6894 */ 7185 @Override 7186 public int getVersionCount() { 7187 return version_.size(); 6895 public int getVersionCount() { 6896 return instance.getVersionCount(); 7188 6897 } 7189 6898 /** 7190 6899 * <code>repeated int32 version = 1 [packed = true];</code> 7191 6900 */ 7192 @Override 7193 public int getVersion(int index) { 7194 return version_.get(index); 6901 public int getVersion(int index) { 6902 return instance.getVersion(index); 7195 6903 } 7196 6904 /** … … 7199 6907 public Builder setVersion( 7200 6908 int index, int value) { 7201 ensureVersionIsMutable(); 7202 version_.set(index, value); 7203 6909 copyOnWrite(); 6910 instance.setVersion(index, value); 7204 6911 return this; 7205 6912 } … … 7208 6915 */ 7209 6916 public Builder addVersion(int value) { 7210 ensureVersionIsMutable(); 7211 version_.add(value); 7212 6917 copyOnWrite(); 6918 instance.addVersion(value); 7213 6919 return this; 7214 6920 } … … 7218 6924 public Builder addAllVersion( 7219 6925 java.lang.Iterable<? extends java.lang.Integer> values) { 7220 ensureVersionIsMutable(); 7221 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7222 values, version_); 7223 6926 copyOnWrite(); 6927 instance.addAllVersion(values); 7224 6928 return this; 7225 6929 } … … 7228 6932 */ 7229 6933 public Builder clearVersion() { 7230 version_ = java.util.Collections.emptyList(); 7231 bitField0_ = (bitField0_ & ~0x00000001); 7232 7233 return this; 7234 } 7235 7236 private java.util.List<java.lang.Long> timestamp_ = java.util.Collections.emptyList(); 7237 private void ensureTimestampIsMutable() { 7238 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 7239 timestamp_ = new java.util.ArrayList<>(timestamp_); 7240 bitField0_ |= 0x00000002; 7241 } 7242 } 7243 /** 6934 copyOnWrite(); 6935 instance.clearVersion(); 6936 return this; 6937 } 6938 6939 /** 6940 * <pre> 6941 * DELTA coded 6942 * </pre> 6943 * 7244 6944 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 7245 * 6945 */ 6946 public java.util.List<java.lang.Long> 6947 getTimestampList() { 6948 return java.util.Collections.unmodifiableList( 6949 instance.getTimestampList()); 6950 } 6951 /** 7246 6952 * <pre> 7247 6953 * DELTA coded 7248 6954 * </pre> 7249 */ 7250 @Override 7251 public java.util.List<java.lang.Long> 7252 getTimestampList() { 7253 return java.util.Collections.unmodifiableList(timestamp_); 7254 } 7255 /** 6955 * 7256 6956 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 7257 * 6957 */ 6958 public int getTimestampCount() { 6959 return instance.getTimestampCount(); 6960 } 6961 /** 7258 6962 * <pre> 7259 6963 * DELTA coded 7260 6964 * </pre> 7261 */ 7262 @Override 7263 public int getTimestampCount() { 7264 return timestamp_.size(); 7265 } 7266 /** 6965 * 7267 6966 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 7268 * 6967 */ 6968 public long getTimestamp(int index) { 6969 return instance.getTimestamp(index); 6970 } 6971 /** 7269 6972 * <pre> 7270 6973 * DELTA coded 7271 6974 * </pre> 7272 */ 7273 @Override 7274 public long getTimestamp(int index) { 7275 return timestamp_.get(index); 7276 } 7277 /** 6975 * 7278 6976 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 7279 *7280 * <pre>7281 * DELTA coded7282 * </pre>7283 6977 */ 7284 6978 public Builder setTimestamp( 7285 6979 int index, long value) { 7286 ensureTimestampIsMutable(); 7287 timestamp_.set(index, value); 7288 7289 return this; 7290 } 7291 /** 6980 copyOnWrite(); 6981 instance.setTimestamp(index, value); 6982 return this; 6983 } 6984 /** 6985 * <pre> 6986 * DELTA coded 6987 * </pre> 6988 * 7292 6989 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 7293 * 6990 */ 6991 public Builder addTimestamp(long value) { 6992 copyOnWrite(); 6993 instance.addTimestamp(value); 6994 return this; 6995 } 6996 /** 7294 6997 * <pre> 7295 6998 * DELTA coded 7296 6999 * </pre> 7297 */ 7298 public Builder addTimestamp(long value) { 7299 ensureTimestampIsMutable(); 7300 timestamp_.add(value); 7301 7302 return this; 7303 } 7304 /** 7000 * 7305 7001 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 7306 *7307 * <pre>7308 * DELTA coded7309 * </pre>7310 7002 */ 7311 7003 public Builder addAllTimestamp( 7312 7004 java.lang.Iterable<? extends java.lang.Long> values) { 7313 ensureTimestampIsMutable(); 7314 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7315 values, timestamp_); 7316 7317 return this; 7318 } 7319 /** 7005 copyOnWrite(); 7006 instance.addAllTimestamp(values); 7007 return this; 7008 } 7009 /** 7010 * <pre> 7011 * DELTA coded 7012 * </pre> 7013 * 7320 7014 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 7321 * 7015 */ 7016 public Builder clearTimestamp() { 7017 copyOnWrite(); 7018 instance.clearTimestamp(); 7019 return this; 7020 } 7021 7022 /** 7322 7023 * <pre> 7323 7024 * DELTA coded 7324 7025 * </pre> 7325 */ 7326 public Builder clearTimestamp() { 7327 timestamp_ = java.util.Collections.emptyList(); 7328 bitField0_ = (bitField0_ & ~0x00000002); 7329 7330 return this; 7331 } 7332 7333 private java.util.List<java.lang.Long> changeset_ = java.util.Collections.emptyList(); 7334 private void ensureChangesetIsMutable() { 7335 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 7336 changeset_ = new java.util.ArrayList<>(changeset_); 7337 bitField0_ |= 0x00000004; 7338 } 7339 } 7340 /** 7026 * 7341 7027 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7342 * 7028 */ 7029 public java.util.List<java.lang.Long> 7030 getChangesetList() { 7031 return java.util.Collections.unmodifiableList( 7032 instance.getChangesetList()); 7033 } 7034 /** 7343 7035 * <pre> 7344 7036 * DELTA coded 7345 7037 * </pre> 7346 */ 7347 @Override 7348 public java.util.List<java.lang.Long> 7349 getChangesetList() { 7350 return java.util.Collections.unmodifiableList(changeset_); 7351 } 7352 /** 7038 * 7353 7039 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7354 * 7040 */ 7041 public int getChangesetCount() { 7042 return instance.getChangesetCount(); 7043 } 7044 /** 7355 7045 * <pre> 7356 7046 * DELTA coded 7357 7047 * </pre> 7358 */ 7359 @Override 7360 public int getChangesetCount() { 7361 return changeset_.size(); 7362 } 7363 /** 7048 * 7364 7049 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7365 * 7050 */ 7051 public long getChangeset(int index) { 7052 return instance.getChangeset(index); 7053 } 7054 /** 7366 7055 * <pre> 7367 7056 * DELTA coded 7368 7057 * </pre> 7369 */ 7370 @Override 7371 public long getChangeset(int index) { 7372 return changeset_.get(index); 7373 } 7374 /** 7058 * 7375 7059 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7376 *7377 * <pre>7378 * DELTA coded7379 * </pre>7380 7060 */ 7381 7061 public Builder setChangeset( 7382 7062 int index, long value) { 7383 ensureChangesetIsMutable(); 7384 changeset_.set(index, value); 7385 7386 return this; 7387 } 7388 /** 7063 copyOnWrite(); 7064 instance.setChangeset(index, value); 7065 return this; 7066 } 7067 /** 7068 * <pre> 7069 * DELTA coded 7070 * </pre> 7071 * 7389 7072 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7390 * 7073 */ 7074 public Builder addChangeset(long value) { 7075 copyOnWrite(); 7076 instance.addChangeset(value); 7077 return this; 7078 } 7079 /** 7391 7080 * <pre> 7392 7081 * DELTA coded 7393 7082 * </pre> 7394 */ 7395 public Builder addChangeset(long value) { 7396 ensureChangesetIsMutable(); 7397 changeset_.add(value); 7398 7399 return this; 7400 } 7401 /** 7083 * 7402 7084 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7403 *7404 * <pre>7405 * DELTA coded7406 * </pre>7407 7085 */ 7408 7086 public Builder addAllChangeset( 7409 7087 java.lang.Iterable<? extends java.lang.Long> values) { 7410 ensureChangesetIsMutable(); 7411 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7412 values, changeset_); 7413 7414 return this; 7415 } 7416 /** 7088 copyOnWrite(); 7089 instance.addAllChangeset(values); 7090 return this; 7091 } 7092 /** 7093 * <pre> 7094 * DELTA coded 7095 * </pre> 7096 * 7417 7097 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7418 * 7098 */ 7099 public Builder clearChangeset() { 7100 copyOnWrite(); 7101 instance.clearChangeset(); 7102 return this; 7103 } 7104 7105 /** 7419 7106 * <pre> 7420 7107 * DELTA coded 7421 7108 * </pre> 7422 */ 7423 public Builder clearChangeset() { 7424 changeset_ = java.util.Collections.emptyList(); 7425 bitField0_ = (bitField0_ & ~0x00000004); 7426 7427 return this; 7428 } 7429 7430 private java.util.List<java.lang.Integer> uid_ = java.util.Collections.emptyList(); 7431 private void ensureUidIsMutable() { 7432 if (!((bitField0_ & 0x00000008) == 0x00000008)) { 7433 uid_ = new java.util.ArrayList<>(uid_); 7434 bitField0_ |= 0x00000008; 7435 } 7436 } 7437 /** 7109 * 7438 7110 * <code>repeated sint32 uid = 4 [packed = true];</code> 7439 * 7111 */ 7112 public java.util.List<java.lang.Integer> 7113 getUidList() { 7114 return java.util.Collections.unmodifiableList( 7115 instance.getUidList()); 7116 } 7117 /** 7440 7118 * <pre> 7441 7119 * DELTA coded 7442 7120 * </pre> 7443 */ 7444 @Override 7445 public java.util.List<java.lang.Integer> 7446 getUidList() { 7447 return java.util.Collections.unmodifiableList(uid_); 7448 } 7449 /** 7121 * 7450 7122 * <code>repeated sint32 uid = 4 [packed = true];</code> 7451 * 7123 */ 7124 public int getUidCount() { 7125 return instance.getUidCount(); 7126 } 7127 /** 7452 7128 * <pre> 7453 7129 * DELTA coded 7454 7130 * </pre> 7455 */ 7456 @Override 7457 public int getUidCount() { 7458 return uid_.size(); 7459 } 7460 /** 7131 * 7461 7132 * <code>repeated sint32 uid = 4 [packed = true];</code> 7462 * 7133 */ 7134 public int getUid(int index) { 7135 return instance.getUid(index); 7136 } 7137 /** 7463 7138 * <pre> 7464 7139 * DELTA coded 7465 7140 * </pre> 7466 */ 7467 @Override 7468 public int getUid(int index) { 7469 return uid_.get(index); 7470 } 7471 /** 7141 * 7472 7142 * <code>repeated sint32 uid = 4 [packed = true];</code> 7473 *7474 * <pre>7475 * DELTA coded7476 * </pre>7477 7143 */ 7478 7144 public Builder setUid( 7479 7145 int index, int value) { 7480 ensureUidIsMutable(); 7481 uid_.set(index, value); 7482 7483 return this; 7484 } 7485 /** 7146 copyOnWrite(); 7147 instance.setUid(index, value); 7148 return this; 7149 } 7150 /** 7151 * <pre> 7152 * DELTA coded 7153 * </pre> 7154 * 7486 7155 * <code>repeated sint32 uid = 4 [packed = true];</code> 7487 * 7156 */ 7157 public Builder addUid(int value) { 7158 copyOnWrite(); 7159 instance.addUid(value); 7160 return this; 7161 } 7162 /** 7488 7163 * <pre> 7489 7164 * DELTA coded 7490 7165 * </pre> 7491 */ 7492 public Builder addUid(int value) { 7493 ensureUidIsMutable(); 7494 uid_.add(value); 7495 7496 return this; 7497 } 7498 /** 7166 * 7499 7167 * <code>repeated sint32 uid = 4 [packed = true];</code> 7500 *7501 * <pre>7502 * DELTA coded7503 * </pre>7504 7168 */ 7505 7169 public Builder addAllUid( 7506 7170 java.lang.Iterable<? extends java.lang.Integer> values) { 7507 ensureUidIsMutable(); 7508 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7509 values, uid_); 7510 7511 return this; 7512 } 7513 /** 7171 copyOnWrite(); 7172 instance.addAllUid(values); 7173 return this; 7174 } 7175 /** 7176 * <pre> 7177 * DELTA coded 7178 * </pre> 7179 * 7514 7180 * <code>repeated sint32 uid = 4 [packed = true];</code> 7515 *7516 * <pre>7517 * DELTA coded7518 * </pre>7519 7181 */ 7520 7182 public Builder clearUid() { 7521 uid_ = java.util.Collections.emptyList(); 7522 bitField0_ = (bitField0_ & ~0x00000008); 7523 7524 return this; 7525 } 7526 7527 private java.util.List<java.lang.Integer> userSid_ = java.util.Collections.emptyList(); 7528 private void ensureUserSidIsMutable() { 7529 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 7530 userSid_ = new java.util.ArrayList<>(userSid_); 7531 bitField0_ |= 0x00000010; 7532 } 7533 } 7534 /** 7183 copyOnWrite(); 7184 instance.clearUid(); 7185 return this; 7186 } 7187 7188 /** 7189 * <pre> 7190 * String IDs for usernames. DELTA coded 7191 * </pre> 7192 * 7535 7193 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7536 * 7194 */ 7195 public java.util.List<java.lang.Integer> 7196 getUserSidList() { 7197 return java.util.Collections.unmodifiableList( 7198 instance.getUserSidList()); 7199 } 7200 /** 7537 7201 * <pre> 7538 7202 * String IDs for usernames. DELTA coded 7539 7203 * </pre> 7540 */ 7541 @Override 7542 public java.util.List<java.lang.Integer> 7543 getUserSidList() { 7544 return java.util.Collections.unmodifiableList(userSid_); 7545 } 7546 /** 7204 * 7547 7205 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7548 * 7206 */ 7207 public int getUserSidCount() { 7208 return instance.getUserSidCount(); 7209 } 7210 /** 7549 7211 * <pre> 7550 7212 * String IDs for usernames. DELTA coded 7551 7213 * </pre> 7552 */ 7553 @Override 7554 public int getUserSidCount() { 7555 return userSid_.size(); 7556 } 7557 /** 7214 * 7558 7215 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7559 * 7216 */ 7217 public int getUserSid(int index) { 7218 return instance.getUserSid(index); 7219 } 7220 /** 7560 7221 * <pre> 7561 7222 * String IDs for usernames. DELTA coded 7562 7223 * </pre> 7563 */ 7564 @Override 7565 public int getUserSid(int index) { 7566 return userSid_.get(index); 7567 } 7568 /** 7224 * 7569 7225 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7570 *7571 * <pre>7572 * String IDs for usernames. DELTA coded7573 * </pre>7574 7226 */ 7575 7227 public Builder setUserSid( 7576 7228 int index, int value) { 7577 ensureUserSidIsMutable(); 7578 userSid_.set(index, value); 7579 7580 return this; 7581 } 7582 /** 7229 copyOnWrite(); 7230 instance.setUserSid(index, value); 7231 return this; 7232 } 7233 /** 7234 * <pre> 7235 * String IDs for usernames. DELTA coded 7236 * </pre> 7237 * 7583 7238 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7584 * 7239 */ 7240 public Builder addUserSid(int value) { 7241 copyOnWrite(); 7242 instance.addUserSid(value); 7243 return this; 7244 } 7245 /** 7585 7246 * <pre> 7586 7247 * String IDs for usernames. DELTA coded 7587 7248 * </pre> 7588 */ 7589 public Builder addUserSid(int value) { 7590 ensureUserSidIsMutable(); 7591 userSid_.add(value); 7592 7593 return this; 7594 } 7595 /** 7249 * 7596 7250 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7597 *7598 * <pre>7599 * String IDs for usernames. DELTA coded7600 * </pre>7601 7251 */ 7602 7252 public Builder addAllUserSid( 7603 7253 java.lang.Iterable<? extends java.lang.Integer> values) { 7604 ensureUserSidIsMutable(); 7605 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7606 values, userSid_); 7607 7608 return this; 7609 } 7610 /** 7254 copyOnWrite(); 7255 instance.addAllUserSid(values); 7256 return this; 7257 } 7258 /** 7259 * <pre> 7260 * String IDs for usernames. DELTA coded 7261 * </pre> 7262 * 7611 7263 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7612 *7613 * <pre>7614 * String IDs for usernames. DELTA coded7615 * </pre>7616 7264 */ 7617 7265 public Builder clearUserSid() { 7618 userSid_ = java.util.Collections.emptyList(); 7619 bitField0_ = (bitField0_ & ~0x00000010); 7620 7621 return this; 7622 } 7623 7624 private java.util.List<java.lang.Boolean> visible_ = java.util.Collections.emptyList(); 7625 private void ensureVisibleIsMutable() { 7626 if (!((bitField0_ & 0x00000020) == 0x00000020)) { 7627 visible_ = new java.util.ArrayList<>(visible_); 7628 bitField0_ |= 0x00000020; 7629 } 7630 } 7631 /** 7632 * <code>repeated bool visible = 6 [packed = true];</code> 7633 * 7266 copyOnWrite(); 7267 instance.clearUserSid(); 7268 return this; 7269 } 7270 7271 /** 7634 7272 * <pre> 7635 7273 * The visible flag is used to store history information. It indicates that … … 7642 7280 * set. 7643 7281 * </pre> 7644 */ 7645 @Override 7646 public java.util.List<java.lang.Boolean> 7282 * 7283 * <code>repeated bool visible = 6 [packed = true];</code> 7284 */ 7285 public java.util.List<java.lang.Boolean> 7647 7286 getVisibleList() { 7648 return java.util.Collections.unmodifiableList(visible_); 7649 } 7650 /** 7651 * <code>repeated bool visible = 6 [packed = true];</code> 7652 * 7287 return java.util.Collections.unmodifiableList( 7288 instance.getVisibleList()); 7289 } 7290 /** 7653 7291 * <pre> 7654 7292 * The visible flag is used to store history information. It indicates that … … 7661 7299 * set. 7662 7300 * </pre> 7663 */ 7664 @Override 7665 public int getVisibleCount() { 7666 return visible_.size(); 7667 } 7668 /** 7301 * 7669 7302 * <code>repeated bool visible = 6 [packed = true];</code> 7670 * 7303 */ 7304 public int getVisibleCount() { 7305 return instance.getVisibleCount(); 7306 } 7307 /** 7671 7308 * <pre> 7672 7309 * The visible flag is used to store history information. It indicates that … … 7679 7316 * set. 7680 7317 * </pre> 7681 */ 7682 @Override 7683 public boolean getVisible(int index) { 7684 return visible_.get(index); 7685 } 7686 /** 7318 * 7687 7319 * <code>repeated bool visible = 6 [packed = true];</code> 7688 * 7320 */ 7321 public boolean getVisible(int index) { 7322 return instance.getVisible(index); 7323 } 7324 /** 7689 7325 * <pre> 7690 7326 * The visible flag is used to store history information. It indicates that … … 7697 7333 * set. 7698 7334 * </pre> 7335 * 7336 * <code>repeated bool visible = 6 [packed = true];</code> 7699 7337 */ 7700 7338 public Builder setVisible( 7701 7339 int index, boolean value) { 7702 ensureVisibleIsMutable(); 7703 visible_.set(index, value); 7704 7705 return this; 7706 } 7707 /** 7708 * <code>repeated bool visible = 6 [packed = true];</code> 7709 * 7340 copyOnWrite(); 7341 instance.setVisible(index, value); 7342 return this; 7343 } 7344 /** 7710 7345 * <pre> 7711 7346 * The visible flag is used to store history information. It indicates that … … 7718 7353 * set. 7719 7354 * </pre> 7355 * 7356 * <code>repeated bool visible = 6 [packed = true];</code> 7720 7357 */ 7721 7358 public Builder addVisible(boolean value) { 7722 ensureVisibleIsMutable(); 7723 visible_.add(value); 7724 7725 return this; 7726 } 7727 /** 7728 * <code>repeated bool visible = 6 [packed = true];</code> 7729 * 7359 copyOnWrite(); 7360 instance.addVisible(value); 7361 return this; 7362 } 7363 /** 7730 7364 * <pre> 7731 7365 * The visible flag is used to store history information. It indicates that … … 7738 7372 * set. 7739 7373 * </pre> 7374 * 7375 * <code>repeated bool visible = 6 [packed = true];</code> 7740 7376 */ 7741 7377 public Builder addAllVisible( 7742 7378 java.lang.Iterable<? extends java.lang.Boolean> values) { 7743 ensureVisibleIsMutable(); 7744 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7745 values, visible_); 7746 7747 return this; 7748 } 7749 /** 7750 * <code>repeated bool visible = 6 [packed = true];</code> 7751 * 7379 copyOnWrite(); 7380 instance.addAllVisible(values); 7381 return this; 7382 } 7383 /** 7752 7384 * <pre> 7753 7385 * The visible flag is used to store history information. It indicates that … … 7760 7392 * set. 7761 7393 * </pre> 7394 * 7395 * <code>repeated bool visible = 6 [packed = true];</code> 7762 7396 */ 7763 7397 public Builder clearVisible() { 7764 visible_ = java.util.Collections.emptyList(); 7765 bitField0_ = (bitField0_ & ~0x00000020); 7766 7398 copyOnWrite(); 7399 instance.clearVisible(); 7767 7400 return this; 7768 7401 } … … 7770 7403 // @@protoc_insertion_point(builder_scope:OSMPBF.DenseInfo) 7771 7404 } 7772 7405 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 7406 protected final java.lang.Object dynamicMethod( 7407 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 7408 java.lang.Object arg0, java.lang.Object arg1) { 7409 switch (method) { 7410 case NEW_MUTABLE_INSTANCE: { 7411 return new crosby.binary.Osmformat.DenseInfo(); 7412 } 7413 case IS_INITIALIZED: { 7414 return DEFAULT_INSTANCE; 7415 } 7416 case MAKE_IMMUTABLE: { 7417 version_.makeImmutable(); 7418 timestamp_.makeImmutable(); 7419 changeset_.makeImmutable(); 7420 uid_.makeImmutable(); 7421 userSid_.makeImmutable(); 7422 visible_.makeImmutable(); 7423 return null; 7424 } 7425 case NEW_BUILDER: { 7426 return new Builder(); 7427 } 7428 case VISIT: { 7429 Visitor visitor = (Visitor) arg0; 7430 crosby.binary.Osmformat.DenseInfo other = (crosby.binary.Osmformat.DenseInfo) arg1; 7431 version_= visitor.visitIntList(version_, other.version_); 7432 timestamp_= visitor.visitLongList(timestamp_, other.timestamp_); 7433 changeset_= visitor.visitLongList(changeset_, other.changeset_); 7434 uid_= visitor.visitIntList(uid_, other.uid_); 7435 userSid_= visitor.visitIntList(userSid_, other.userSid_); 7436 visible_= visitor.visitBooleanList(visible_, other.visible_); 7437 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 7438 .INSTANCE) { 7439 } 7440 return this; 7441 } 7442 case MERGE_FROM_STREAM: { 7443 com.google.protobuf.CodedInputStream input = 7444 (com.google.protobuf.CodedInputStream) arg0; 7445 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 7446 (com.google.protobuf.ExtensionRegistryLite) arg1; 7447 try { 7448 boolean done = false; 7449 while (!done) { 7450 int tag = input.readTag(); 7451 switch (tag) { 7452 case 0: 7453 done = true; 7454 break; 7455 default: { 7456 if (!parseUnknownField(tag, input)) { 7457 done = true; 7458 } 7459 break; 7460 } 7461 case 8: { 7462 if (!version_.isModifiable()) { 7463 version_ = 7464 com.google.protobuf.GeneratedMessageLite.mutableCopy(version_); 7465 } 7466 version_.addInt(input.readInt32()); 7467 break; 7468 } 7469 case 10: { 7470 int length = input.readRawVarint32(); 7471 int limit = input.pushLimit(length); 7472 if (!version_.isModifiable() && input.getBytesUntilLimit() > 0) { 7473 version_ = 7474 com.google.protobuf.GeneratedMessageLite.mutableCopy(version_); 7475 } 7476 while (input.getBytesUntilLimit() > 0) { 7477 version_.addInt(input.readInt32()); 7478 } 7479 input.popLimit(limit); 7480 break; 7481 } 7482 case 16: { 7483 if (!timestamp_.isModifiable()) { 7484 timestamp_ = 7485 com.google.protobuf.GeneratedMessageLite.mutableCopy(timestamp_); 7486 } 7487 timestamp_.addLong(input.readSInt64()); 7488 break; 7489 } 7490 case 18: { 7491 int length = input.readRawVarint32(); 7492 int limit = input.pushLimit(length); 7493 if (!timestamp_.isModifiable() && input.getBytesUntilLimit() > 0) { 7494 timestamp_ = 7495 com.google.protobuf.GeneratedMessageLite.mutableCopy(timestamp_); 7496 } 7497 while (input.getBytesUntilLimit() > 0) { 7498 timestamp_.addLong(input.readSInt64()); 7499 } 7500 input.popLimit(limit); 7501 break; 7502 } 7503 case 24: { 7504 if (!changeset_.isModifiable()) { 7505 changeset_ = 7506 com.google.protobuf.GeneratedMessageLite.mutableCopy(changeset_); 7507 } 7508 changeset_.addLong(input.readSInt64()); 7509 break; 7510 } 7511 case 26: { 7512 int length = input.readRawVarint32(); 7513 int limit = input.pushLimit(length); 7514 if (!changeset_.isModifiable() && input.getBytesUntilLimit() > 0) { 7515 changeset_ = 7516 com.google.protobuf.GeneratedMessageLite.mutableCopy(changeset_); 7517 } 7518 while (input.getBytesUntilLimit() > 0) { 7519 changeset_.addLong(input.readSInt64()); 7520 } 7521 input.popLimit(limit); 7522 break; 7523 } 7524 case 32: { 7525 if (!uid_.isModifiable()) { 7526 uid_ = 7527 com.google.protobuf.GeneratedMessageLite.mutableCopy(uid_); 7528 } 7529 uid_.addInt(input.readSInt32()); 7530 break; 7531 } 7532 case 34: { 7533 int length = input.readRawVarint32(); 7534 int limit = input.pushLimit(length); 7535 if (!uid_.isModifiable() && input.getBytesUntilLimit() > 0) { 7536 uid_ = 7537 com.google.protobuf.GeneratedMessageLite.mutableCopy(uid_); 7538 } 7539 while (input.getBytesUntilLimit() > 0) { 7540 uid_.addInt(input.readSInt32()); 7541 } 7542 input.popLimit(limit); 7543 break; 7544 } 7545 case 40: { 7546 if (!userSid_.isModifiable()) { 7547 userSid_ = 7548 com.google.protobuf.GeneratedMessageLite.mutableCopy(userSid_); 7549 } 7550 userSid_.addInt(input.readSInt32()); 7551 break; 7552 } 7553 case 42: { 7554 int length = input.readRawVarint32(); 7555 int limit = input.pushLimit(length); 7556 if (!userSid_.isModifiable() && input.getBytesUntilLimit() > 0) { 7557 userSid_ = 7558 com.google.protobuf.GeneratedMessageLite.mutableCopy(userSid_); 7559 } 7560 while (input.getBytesUntilLimit() > 0) { 7561 userSid_.addInt(input.readSInt32()); 7562 } 7563 input.popLimit(limit); 7564 break; 7565 } 7566 case 48: { 7567 if (!visible_.isModifiable()) { 7568 visible_ = 7569 com.google.protobuf.GeneratedMessageLite.mutableCopy(visible_); 7570 } 7571 visible_.addBoolean(input.readBool()); 7572 break; 7573 } 7574 case 50: { 7575 int length = input.readRawVarint32(); 7576 int limit = input.pushLimit(length); 7577 if (!visible_.isModifiable() && input.getBytesUntilLimit() > 0) { 7578 final int currentSize = visible_.size(); 7579 visible_ = visible_.mutableCopyWithCapacity( 7580 currentSize + (length/1)); 7581 } 7582 while (input.getBytesUntilLimit() > 0) { 7583 visible_.addBoolean(input.readBool()); 7584 } 7585 input.popLimit(limit); 7586 break; 7587 } 7588 } 7589 } 7590 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7591 throw new RuntimeException(e.setUnfinishedMessage(this)); 7592 } catch (java.io.IOException e) { 7593 throw new RuntimeException( 7594 new com.google.protobuf.InvalidProtocolBufferException( 7595 e.getMessage()).setUnfinishedMessage(this)); 7596 } finally { 7597 } 7598 } 7599 // fall through 7600 case GET_DEFAULT_INSTANCE: { 7601 return DEFAULT_INSTANCE; 7602 } 7603 case GET_PARSER: { 7604 if (PARSER == null) { synchronized (crosby.binary.Osmformat.DenseInfo.class) { 7605 if (PARSER == null) { 7606 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 7607 } 7608 } 7609 } 7610 return PARSER; 7611 } 7612 } 7613 throw new UnsupportedOperationException(); 7614 } 7615 7616 7617 // @@protoc_insertion_point(class_scope:OSMPBF.DenseInfo) 7618 private static final crosby.binary.Osmformat.DenseInfo DEFAULT_INSTANCE; 7773 7619 static { 7774 defaultInstance = new DenseInfo(true); 7775 defaultInstance.initFields(); 7776 } 7777 7778 // @@protoc_insertion_point(class_scope:OSMPBF.DenseInfo) 7620 DEFAULT_INSTANCE = new DenseInfo(); 7621 DEFAULT_INSTANCE.makeImmutable(); 7622 } 7623 7624 public static crosby.binary.Osmformat.DenseInfo getDefaultInstance() { 7625 return DEFAULT_INSTANCE; 7626 } 7627 7628 private static volatile com.google.protobuf.Parser<DenseInfo> PARSER; 7629 7630 public static com.google.protobuf.Parser<DenseInfo> parser() { 7631 return DEFAULT_INSTANCE.getParserForType(); 7632 } 7779 7633 } 7780 7634 … … 7784 7638 7785 7639 /** 7786 * <code>required int64 id = 1;</code> 7787 * 7788 * <pre> 7789 * 7640 * <pre> 7641 * 7790 7642 * // Parallel arrays. 7791 7643 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 7793 7645 * optional Info info = 4; 7794 7646 * </pre> 7647 * 7648 * <code>required int64 id = 1;</code> 7795 7649 */ 7796 7650 boolean hasId(); 7797 7651 /** 7798 * <code>required int64 id = 1;</code> 7799 * 7800 * <pre> 7801 * 7652 * <pre> 7653 * 7802 7654 * // Parallel arrays. 7803 7655 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 7805 7657 * optional Info info = 4; 7806 7658 * </pre> 7659 * 7660 * <code>required int64 id = 1;</code> 7807 7661 */ 7808 7662 long getId(); 7809 7663 } 7810 7664 /** 7811 * Protobuf type {@code OSMPBF.ChangeSet}7812 *7813 7665 * <pre> 7814 7666 * THIS IS STUB DESIGN FOR CHANGESETS. NOT USED RIGHT NOW. 7815 7667 * TODO: REMOVE THIS? 7816 7668 * </pre> 7669 * 7670 * Protobuf type {@code OSMPBF.ChangeSet} 7817 7671 */ 7818 public static final class ChangeSet extends 7819 com.google.protobuf.GeneratedMessageLite implements 7672 public static final class ChangeSet extends 7673 com.google.protobuf.GeneratedMessageLite< 7674 ChangeSet, ChangeSet.Builder> implements 7820 7675 // @@protoc_insertion_point(message_implements:OSMPBF.ChangeSet) 7821 7676 ChangeSetOrBuilder { 7822 // Use ChangeSet.newBuilder() to construct. 7823 private ChangeSet(com.google.protobuf.GeneratedMessageLite.Builder builder) { 7824 super(builder); 7825 this.unknownFields = builder.getUnknownFields(); 7826 } 7827 private ChangeSet(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 7828 7829 private static final ChangeSet defaultInstance; 7830 public static ChangeSet getDefaultInstance() { 7831 return defaultInstance; 7832 } 7833 7834 @Override 7835 public ChangeSet getDefaultInstanceForType() { 7836 return defaultInstance; 7837 } 7838 7839 private final com.google.protobuf.ByteString unknownFields; 7840 private ChangeSet( 7841 com.google.protobuf.CodedInputStream input, 7842 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7843 throws com.google.protobuf.InvalidProtocolBufferException { 7844 initFields(); 7845 int mutable_bitField0_ = 0; 7846 com.google.protobuf.ByteString.Output unknownFieldsOutput = 7847 com.google.protobuf.ByteString.newOutput(); 7848 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 7849 com.google.protobuf.CodedOutputStream.newInstance( 7850 unknownFieldsOutput); 7851 try { 7852 boolean done = false; 7853 while (!done) { 7854 int tag = input.readTag(); 7855 switch (tag) { 7856 case 0: 7857 done = true; 7858 break; 7859 default: { 7860 if (!parseUnknownField(input, unknownFieldsCodedOutput, 7861 extensionRegistry, tag)) { 7862 done = true; 7863 } 7864 break; 7865 } 7866 case 8: { 7867 bitField0_ |= 0x00000001; 7868 id_ = input.readInt64(); 7869 break; 7870 } 7871 } 7872 } 7873 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7874 throw e.setUnfinishedMessage(this); 7875 } catch (java.io.IOException e) { 7876 throw new com.google.protobuf.InvalidProtocolBufferException( 7877 e.getMessage()).setUnfinishedMessage(this); 7878 } finally { 7879 try { 7880 unknownFieldsCodedOutput.flush(); 7881 } catch (java.io.IOException e) { 7882 // Should not happen 7883 } finally { 7884 unknownFields = unknownFieldsOutput.toByteString(); 7885 } 7886 makeExtensionsImmutable(); 7887 } 7888 } 7889 public static com.google.protobuf.Parser<ChangeSet> PARSER = 7890 new com.google.protobuf.AbstractParser<ChangeSet>() { 7891 @Override 7892 public ChangeSet parsePartialFrom( 7893 com.google.protobuf.CodedInputStream input, 7894 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7895 throws com.google.protobuf.InvalidProtocolBufferException { 7896 return new ChangeSet(input, extensionRegistry); 7897 } 7898 }; 7899 7900 @java.lang.Override 7901 public com.google.protobuf.Parser<ChangeSet> getParserForType() { 7902 return PARSER; 7903 } 7904 7677 private ChangeSet() { 7678 } 7905 7679 private int bitField0_; 7906 7680 public static final int ID_FIELD_NUMBER = 1; 7907 7681 private long id_; 7908 7682 /** 7909 * <code>required int64 id = 1;</code> 7910 * 7911 * <pre> 7912 * 7683 * <pre> 7684 * 7913 7685 * // Parallel arrays. 7914 7686 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 7916 7688 * optional Info info = 4; 7917 7689 * </pre> 7918 */ 7919 @Override 7920 public boolean hasId() { 7690 * 7691 * <code>required int64 id = 1;</code> 7692 */ 7693 public boolean hasId() { 7921 7694 return ((bitField0_ & 0x00000001) == 0x00000001); 7922 7695 } 7923 7696 /** 7924 * <code>required int64 id = 1;</code> 7925 * 7926 * <pre> 7927 * 7697 * <pre> 7698 * 7928 7699 * // Parallel arrays. 7929 7700 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 7931 7702 * optional Info info = 4; 7932 7703 * </pre> 7933 */ 7934 @Override 7935 public long getId() { 7704 * 7705 * <code>required int64 id = 1;</code> 7706 */ 7707 public long getId() { 7936 7708 return id_; 7937 7709 } 7938 7939 private void initFields() { 7710 /** 7711 * <pre> 7712 * 7713 * // Parallel arrays. 7714 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7715 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7716 * optional Info info = 4; 7717 * </pre> 7718 * 7719 * <code>required int64 id = 1;</code> 7720 */ 7721 private void setId(long value) { 7722 bitField0_ |= 0x00000001; 7723 id_ = value; 7724 } 7725 /** 7726 * <pre> 7727 * 7728 * // Parallel arrays. 7729 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7730 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7731 * optional Info info = 4; 7732 * </pre> 7733 * 7734 * <code>required int64 id = 1;</code> 7735 */ 7736 private void clearId() { 7737 bitField0_ = (bitField0_ & ~0x00000001); 7940 7738 id_ = 0L; 7941 7739 } 7942 private byte memoizedIsInitialized = -1; 7943 @Override 7944 public final boolean isInitialized() { 7945 byte isInitialized = memoizedIsInitialized; 7946 if (isInitialized == 1) return true; 7947 if (isInitialized == 0) return false; 7948 7949 if (!hasId()) { 7950 memoizedIsInitialized = 0; 7951 return false; 7952 } 7953 memoizedIsInitialized = 1; 7954 return true; 7955 } 7956 7957 @Override 7958 public void writeTo(com.google.protobuf.CodedOutputStream output) 7740 7741 public void writeTo(com.google.protobuf.CodedOutputStream output) 7959 7742 throws java.io.IOException { 7960 getSerializedSize();7961 7743 if (((bitField0_ & 0x00000001) == 0x00000001)) { 7962 7744 output.writeInt64(1, id_); 7963 7745 } 7964 output.writeRawBytes(unknownFields); 7965 } 7966 7967 private int memoizedSerializedSize = -1; 7968 @Override 7969 public int getSerializedSize() { 7746 unknownFields.writeTo(output); 7747 } 7748 7749 public int getSerializedSize() { 7970 7750 int size = memoizedSerializedSize; 7971 7751 if (size != -1) return size; … … 7976 7756 .computeInt64Size(1, id_); 7977 7757 } 7978 size += unknownFields. size();7758 size += unknownFields.getSerializedSize(); 7979 7759 memoizedSerializedSize = size; 7980 7760 return size; 7981 7761 } 7982 7762 7983 private static final long serialVersionUID = 0L; 7984 @java.lang.Override 7985 protected java.lang.Object writeReplace() 7986 throws java.io.ObjectStreamException { 7987 return super.writeReplace(); 7988 } 7989 7763 public static crosby.binary.Osmformat.ChangeSet parseFrom( 7764 java.nio.ByteBuffer data) 7765 throws com.google.protobuf.InvalidProtocolBufferException { 7766 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7767 DEFAULT_INSTANCE, data); 7768 } 7769 public static crosby.binary.Osmformat.ChangeSet parseFrom( 7770 java.nio.ByteBuffer data, 7771 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7772 throws com.google.protobuf.InvalidProtocolBufferException { 7773 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7774 DEFAULT_INSTANCE, data, extensionRegistry); 7775 } 7990 7776 public static crosby.binary.Osmformat.ChangeSet parseFrom( 7991 7777 com.google.protobuf.ByteString data) 7992 7778 throws com.google.protobuf.InvalidProtocolBufferException { 7993 return PARSER.parseFrom(data); 7779 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7780 DEFAULT_INSTANCE, data); 7994 7781 } 7995 7782 public static crosby.binary.Osmformat.ChangeSet parseFrom( … … 7997 7784 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7998 7785 throws com.google.protobuf.InvalidProtocolBufferException { 7999 return PARSER.parseFrom(data, extensionRegistry); 7786 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7787 DEFAULT_INSTANCE, data, extensionRegistry); 8000 7788 } 8001 7789 public static crosby.binary.Osmformat.ChangeSet parseFrom(byte[] data) 8002 7790 throws com.google.protobuf.InvalidProtocolBufferException { 8003 return PARSER.parseFrom(data); 7791 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7792 DEFAULT_INSTANCE, data); 8004 7793 } 8005 7794 public static crosby.binary.Osmformat.ChangeSet parseFrom( … … 8007 7796 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8008 7797 throws com.google.protobuf.InvalidProtocolBufferException { 8009 return PARSER.parseFrom(data, extensionRegistry); 7798 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7799 DEFAULT_INSTANCE, data, extensionRegistry); 8010 7800 } 8011 7801 public static crosby.binary.Osmformat.ChangeSet parseFrom(java.io.InputStream input) 8012 7802 throws java.io.IOException { 8013 return PARSER.parseFrom(input); 7803 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7804 DEFAULT_INSTANCE, input); 8014 7805 } 8015 7806 public static crosby.binary.Osmformat.ChangeSet parseFrom( … … 8017 7808 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8018 7809 throws java.io.IOException { 8019 return PARSER.parseFrom(input, extensionRegistry); 7810 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7811 DEFAULT_INSTANCE, input, extensionRegistry); 8020 7812 } 8021 7813 public static crosby.binary.Osmformat.ChangeSet parseDelimitedFrom(java.io.InputStream input) 8022 7814 throws java.io.IOException { 8023 return PARSER.parseDelimitedFrom(input);7815 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 8024 7816 } 8025 7817 public static crosby.binary.Osmformat.ChangeSet parseDelimitedFrom( … … 8027 7819 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8028 7820 throws java.io.IOException { 8029 return PARSER.parseDelimitedFrom(input, extensionRegistry);7821 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 8030 7822 } 8031 7823 public static crosby.binary.Osmformat.ChangeSet parseFrom( 8032 7824 com.google.protobuf.CodedInputStream input) 8033 7825 throws java.io.IOException { 8034 return PARSER.parseFrom(input); 7826 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7827 DEFAULT_INSTANCE, input); 8035 7828 } 8036 7829 public static crosby.binary.Osmformat.ChangeSet parseFrom( … … 8038 7831 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8039 7832 throws java.io.IOException { 8040 return PARSER.parseFrom(input, extensionRegistry); 8041 } 8042 8043 public static Builder newBuilder() { return Builder.create(); } 8044 @Override 8045 public Builder newBuilderForType() { return newBuilder(); } 7833 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7834 DEFAULT_INSTANCE, input, extensionRegistry); 7835 } 7836 7837 public static Builder newBuilder() { 7838 return DEFAULT_INSTANCE.toBuilder(); 7839 } 8046 7840 public static Builder newBuilder(crosby.binary.Osmformat.ChangeSet prototype) { 8047 return newBuilder().mergeFrom(prototype); 8048 } 8049 @Override 8050 public Builder toBuilder() { return newBuilder(this); } 8051 8052 /** 8053 * Protobuf type {@code OSMPBF.ChangeSet} 8054 * 7841 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 7842 } 7843 7844 /** 8055 7845 * <pre> 8056 7846 * THIS IS STUB DESIGN FOR CHANGESETS. NOT USED RIGHT NOW. 8057 7847 * TODO: REMOVE THIS? 8058 7848 * </pre> 7849 * 7850 * Protobuf type {@code OSMPBF.ChangeSet} 8059 7851 */ 8060 7852 public static final class Builder extends 8061 7853 com.google.protobuf.GeneratedMessageLite.Builder< 8062 crosby.binary.Osmformat.ChangeSet, Builder> 8063 implements 7854 crosby.binary.Osmformat.ChangeSet, Builder> implements 8064 7855 // @@protoc_insertion_point(builder_implements:OSMPBF.ChangeSet) 8065 7856 crosby.binary.Osmformat.ChangeSetOrBuilder { 8066 7857 // Construct using crosby.binary.Osmformat.ChangeSet.newBuilder() 8067 7858 private Builder() { 8068 maybeForceBuilderInitialization(); 8069 } 8070 8071 private void maybeForceBuilderInitialization() { 8072 } 8073 private static Builder create() { 8074 return new Builder(); 8075 } 8076 8077 @Override 8078 public Builder clear() { 8079 super.clear(); 8080 id_ = 0L; 8081 bitField0_ = (bitField0_ & ~0x00000001); 8082 return this; 8083 } 8084 8085 @Override 8086 public Builder clone() { 8087 return create().mergeFrom(buildPartial()); 8088 } 8089 8090 @Override 8091 public crosby.binary.Osmformat.ChangeSet getDefaultInstanceForType() { 8092 return crosby.binary.Osmformat.ChangeSet.getDefaultInstance(); 8093 } 8094 8095 @Override 8096 public crosby.binary.Osmformat.ChangeSet build() { 8097 crosby.binary.Osmformat.ChangeSet result = buildPartial(); 8098 if (!result.isInitialized()) { 8099 throw newUninitializedMessageException(result); 8100 } 8101 return result; 8102 } 8103 8104 @Override 8105 public crosby.binary.Osmformat.ChangeSet buildPartial() { 8106 crosby.binary.Osmformat.ChangeSet result = new crosby.binary.Osmformat.ChangeSet(this); 8107 int from_bitField0_ = bitField0_; 8108 int to_bitField0_ = 0; 8109 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 8110 to_bitField0_ |= 0x00000001; 8111 } 8112 result.id_ = id_; 8113 result.bitField0_ = to_bitField0_; 8114 return result; 8115 } 8116 8117 @Override 8118 public Builder mergeFrom(crosby.binary.Osmformat.ChangeSet other) { 8119 if (other == crosby.binary.Osmformat.ChangeSet.getDefaultInstance()) return this; 8120 if (other.hasId()) { 8121 setId(other.getId()); 8122 } 8123 setUnknownFields( 8124 getUnknownFields().concat(other.unknownFields)); 8125 return this; 8126 } 8127 8128 @Override 8129 public final boolean isInitialized() { 8130 if (!hasId()) { 8131 8132 return false; 8133 } 8134 return true; 8135 } 8136 8137 @Override 8138 public Builder mergeFrom( 8139 com.google.protobuf.CodedInputStream input, 8140 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8141 throws java.io.IOException { 8142 crosby.binary.Osmformat.ChangeSet parsedMessage = null; 8143 try { 8144 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 8145 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8146 parsedMessage = (crosby.binary.Osmformat.ChangeSet) e.getUnfinishedMessage(); 8147 throw e; 8148 } finally { 8149 if (parsedMessage != null) { 8150 mergeFrom(parsedMessage); 8151 } 8152 } 8153 return this; 8154 } 8155 private int bitField0_; 8156 8157 private long id_ ; 8158 /** 8159 * <code>required int64 id = 1;</code> 8160 * 8161 * <pre> 8162 * 7859 super(DEFAULT_INSTANCE); 7860 } 7861 7862 7863 /** 7864 * <pre> 7865 * 8163 7866 * // Parallel arrays. 8164 7867 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 8166 7869 * optional Info info = 4; 8167 7870 * </pre> 8168 */ 8169 @Override 8170 public boolean hasId() { 8171 return ((bitField0_ & 0x00000001) == 0x00000001); 8172 } 8173 /** 7871 * 8174 7872 * <code>required int64 id = 1;</code> 8175 * 8176 * <pre> 8177 * 7873 */ 7874 public boolean hasId() { 7875 return instance.hasId(); 7876 } 7877 /** 7878 * <pre> 7879 * 8178 7880 * // Parallel arrays. 8179 7881 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 8181 7883 * optional Info info = 4; 8182 7884 * </pre> 8183 */ 8184 @Override 8185 public long getId() { 8186 return id_; 8187 } 8188 /** 7885 * 8189 7886 * <code>required int64 id = 1;</code> 8190 * 8191 * <pre> 8192 * 7887 */ 7888 public long getId() { 7889 return instance.getId(); 7890 } 7891 /** 7892 * <pre> 7893 * 8193 7894 * // Parallel arrays. 8194 7895 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 8196 7897 * optional Info info = 4; 8197 7898 * </pre> 7899 * 7900 * <code>required int64 id = 1;</code> 8198 7901 */ 8199 7902 public Builder setId(long value) { 8200 bitField0_ |= 0x00000001; 8201 id_ = value; 8202 8203 return this; 8204 } 8205 /** 8206 * <code>required int64 id = 1;</code> 8207 * 8208 * <pre> 8209 * 7903 copyOnWrite(); 7904 instance.setId(value); 7905 return this; 7906 } 7907 /** 7908 * <pre> 7909 * 8210 7910 * // Parallel arrays. 8211 7911 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 8213 7913 * optional Info info = 4; 8214 7914 * </pre> 7915 * 7916 * <code>required int64 id = 1;</code> 8215 7917 */ 8216 7918 public Builder clearId() { 8217 bitField0_ = (bitField0_ & ~0x00000001); 8218 id_ = 0L; 8219 7919 copyOnWrite(); 7920 instance.clearId(); 8220 7921 return this; 8221 7922 } … … 8223 7924 // @@protoc_insertion_point(builder_scope:OSMPBF.ChangeSet) 8224 7925 } 8225 7926 private byte memoizedIsInitialized = -1; 7927 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 7928 protected final java.lang.Object dynamicMethod( 7929 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 7930 java.lang.Object arg0, java.lang.Object arg1) { 7931 switch (method) { 7932 case NEW_MUTABLE_INSTANCE: { 7933 return new crosby.binary.Osmformat.ChangeSet(); 7934 } 7935 case IS_INITIALIZED: { 7936 byte isInitialized = memoizedIsInitialized; 7937 if (isInitialized == 1) return DEFAULT_INSTANCE; 7938 if (isInitialized == 0) return null; 7939 7940 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 7941 if (!hasId()) { 7942 if (shouldMemoize) { 7943 memoizedIsInitialized = 0; 7944 } 7945 return null; 7946 } 7947 if (shouldMemoize) memoizedIsInitialized = 1; 7948 return DEFAULT_INSTANCE; 7949 7950 } 7951 case MAKE_IMMUTABLE: { 7952 return null; 7953 } 7954 case NEW_BUILDER: { 7955 return new Builder(); 7956 } 7957 case VISIT: { 7958 Visitor visitor = (Visitor) arg0; 7959 crosby.binary.Osmformat.ChangeSet other = (crosby.binary.Osmformat.ChangeSet) arg1; 7960 id_ = visitor.visitLong( 7961 hasId(), id_, 7962 other.hasId(), other.id_); 7963 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 7964 .INSTANCE) { 7965 bitField0_ |= other.bitField0_; 7966 } 7967 return this; 7968 } 7969 case MERGE_FROM_STREAM: { 7970 com.google.protobuf.CodedInputStream input = 7971 (com.google.protobuf.CodedInputStream) arg0; 7972 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 7973 (com.google.protobuf.ExtensionRegistryLite) arg1; 7974 try { 7975 boolean done = false; 7976 while (!done) { 7977 int tag = input.readTag(); 7978 switch (tag) { 7979 case 0: 7980 done = true; 7981 break; 7982 default: { 7983 if (!parseUnknownField(tag, input)) { 7984 done = true; 7985 } 7986 break; 7987 } 7988 case 8: { 7989 bitField0_ |= 0x00000001; 7990 id_ = input.readInt64(); 7991 break; 7992 } 7993 } 7994 } 7995 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7996 throw new RuntimeException(e.setUnfinishedMessage(this)); 7997 } catch (java.io.IOException e) { 7998 throw new RuntimeException( 7999 new com.google.protobuf.InvalidProtocolBufferException( 8000 e.getMessage()).setUnfinishedMessage(this)); 8001 } finally { 8002 } 8003 } 8004 // fall through 8005 case GET_DEFAULT_INSTANCE: { 8006 return DEFAULT_INSTANCE; 8007 } 8008 case GET_PARSER: { 8009 if (PARSER == null) { synchronized (crosby.binary.Osmformat.ChangeSet.class) { 8010 if (PARSER == null) { 8011 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 8012 } 8013 } 8014 } 8015 return PARSER; 8016 } 8017 } 8018 throw new UnsupportedOperationException(); 8019 } 8020 8021 8022 // @@protoc_insertion_point(class_scope:OSMPBF.ChangeSet) 8023 private static final crosby.binary.Osmformat.ChangeSet DEFAULT_INSTANCE; 8226 8024 static { 8227 defaultInstance = new ChangeSet(true); 8228 defaultInstance.initFields(); 8229 } 8230 8231 // @@protoc_insertion_point(class_scope:OSMPBF.ChangeSet) 8025 DEFAULT_INSTANCE = new ChangeSet(); 8026 DEFAULT_INSTANCE.makeImmutable(); 8027 } 8028 8029 public static crosby.binary.Osmformat.ChangeSet getDefaultInstance() { 8030 return DEFAULT_INSTANCE; 8031 } 8032 8033 private static volatile com.google.protobuf.Parser<ChangeSet> PARSER; 8034 8035 public static com.google.protobuf.Parser<ChangeSet> parser() { 8036 return DEFAULT_INSTANCE.getParserForType(); 8037 } 8232 8038 } 8233 8039 … … 8246 8052 8247 8053 /** 8054 * <pre> 8055 * Parallel arrays. 8056 * </pre> 8057 * 8248 8058 * <code>repeated uint32 keys = 2 [packed = true];</code> 8249 * 8059 */ 8060 java.util.List<java.lang.Integer> getKeysList(); 8061 /** 8250 8062 * <pre> 8251 8063 * Parallel arrays. 8252 8064 * </pre> 8253 */ 8254 java.util.List<java.lang.Integer> getKeysList(); 8255 /** 8065 * 8256 8066 * <code>repeated uint32 keys = 2 [packed = true];</code> 8257 * 8067 */ 8068 int getKeysCount(); 8069 /** 8258 8070 * <pre> 8259 8071 * Parallel arrays. 8260 8072 * </pre> 8261 */ 8262 int getKeysCount(); 8263 /** 8073 * 8264 8074 * <code>repeated uint32 keys = 2 [packed = true];</code> 8265 *8266 * <pre>8267 * Parallel arrays.8268 * </pre>8269 8075 */ 8270 8076 int getKeys(int index); 8271 8077 8272 8078 /** 8079 * <pre> 8080 * String IDs. 8081 * </pre> 8082 * 8273 8083 * <code>repeated uint32 vals = 3 [packed = true];</code> 8274 * 8084 */ 8085 java.util.List<java.lang.Integer> getValsList(); 8086 /** 8275 8087 * <pre> 8276 8088 * String IDs. 8277 8089 * </pre> 8278 */ 8279 java.util.List<java.lang.Integer> getValsList(); 8280 /** 8090 * 8281 8091 * <code>repeated uint32 vals = 3 [packed = true];</code> 8282 * 8092 */ 8093 int getValsCount(); 8094 /** 8283 8095 * <pre> 8284 8096 * String IDs. 8285 8097 * </pre> 8286 */ 8287 int getValsCount(); 8288 /** 8098 * 8289 8099 * <code>repeated uint32 vals = 3 [packed = true];</code> 8290 *8291 * <pre>8292 * String IDs.8293 * </pre>8294 8100 */ 8295 8101 int getVals(int index); 8296 8102 8297 8103 /** 8104 * <pre> 8105 * May be omitted in omitmeta 8106 * </pre> 8107 * 8298 8108 * <code>optional .OSMPBF.Info info = 4;</code> 8299 * 8109 */ 8110 boolean hasInfo(); 8111 /** 8300 8112 * <pre> 8301 8113 * May be omitted in omitmeta 8302 8114 * </pre> 8303 */ 8304 boolean hasInfo(); 8305 /** 8115 * 8306 8116 * <code>optional .OSMPBF.Info info = 4;</code> 8307 *8308 * <pre>8309 * May be omitted in omitmeta8310 * </pre>8311 8117 */ 8312 8118 crosby.binary.Osmformat.Info getInfo(); … … 8333 8139 * Protobuf type {@code OSMPBF.Node} 8334 8140 */ 8335 public static final class Node extends 8336 com.google.protobuf.GeneratedMessageLite implements 8141 public static final class Node extends 8142 com.google.protobuf.GeneratedMessageLite< 8143 Node, Node.Builder> implements 8337 8144 // @@protoc_insertion_point(message_implements:OSMPBF.Node) 8338 8145 NodeOrBuilder { 8339 // Use Node.newBuilder() to construct. 8340 private Node(com.google.protobuf.GeneratedMessageLite.Builder builder) { 8341 super(builder); 8342 this.unknownFields = builder.getUnknownFields(); 8343 } 8344 private Node(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 8345 8346 private static final Node defaultInstance; 8347 public static Node getDefaultInstance() { 8348 return defaultInstance; 8349 } 8350 8351 @Override 8352 public Node getDefaultInstanceForType() { 8353 return defaultInstance; 8354 } 8355 8356 private final com.google.protobuf.ByteString unknownFields; 8357 private Node( 8358 com.google.protobuf.CodedInputStream input, 8359 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8360 throws com.google.protobuf.InvalidProtocolBufferException { 8361 initFields(); 8362 int mutable_bitField0_ = 0; 8363 com.google.protobuf.ByteString.Output unknownFieldsOutput = 8364 com.google.protobuf.ByteString.newOutput(); 8365 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 8366 com.google.protobuf.CodedOutputStream.newInstance( 8367 unknownFieldsOutput); 8368 try { 8369 boolean done = false; 8370 while (!done) { 8371 int tag = input.readTag(); 8372 switch (tag) { 8373 case 0: 8374 done = true; 8375 break; 8376 default: { 8377 if (!parseUnknownField(input, unknownFieldsCodedOutput, 8378 extensionRegistry, tag)) { 8379 done = true; 8380 } 8381 break; 8382 } 8383 case 8: { 8384 bitField0_ |= 0x00000001; 8385 id_ = input.readSInt64(); 8386 break; 8387 } 8388 case 16: { 8389 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 8390 keys_ = new java.util.ArrayList<>(); 8391 mutable_bitField0_ |= 0x00000002; 8392 } 8393 keys_.add(input.readUInt32()); 8394 break; 8395 } 8396 case 18: { 8397 int length = input.readRawVarint32(); 8398 int limit = input.pushLimit(length); 8399 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { 8400 keys_ = new java.util.ArrayList<>(); 8401 mutable_bitField0_ |= 0x00000002; 8402 } 8403 while (input.getBytesUntilLimit() > 0) { 8404 keys_.add(input.readUInt32()); 8405 } 8406 input.popLimit(limit); 8407 break; 8408 } 8409 case 24: { 8410 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 8411 vals_ = new java.util.ArrayList<>(); 8412 mutable_bitField0_ |= 0x00000004; 8413 } 8414 vals_.add(input.readUInt32()); 8415 break; 8416 } 8417 case 26: { 8418 int length = input.readRawVarint32(); 8419 int limit = input.pushLimit(length); 8420 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { 8421 vals_ = new java.util.ArrayList<>(); 8422 mutable_bitField0_ |= 0x00000004; 8423 } 8424 while (input.getBytesUntilLimit() > 0) { 8425 vals_.add(input.readUInt32()); 8426 } 8427 input.popLimit(limit); 8428 break; 8429 } 8430 case 34: { 8431 crosby.binary.Osmformat.Info.Builder subBuilder = null; 8432 if (((bitField0_ & 0x00000002) == 0x00000002)) { 8433 subBuilder = info_.toBuilder(); 8434 } 8435 info_ = input.readMessage(crosby.binary.Osmformat.Info.PARSER, extensionRegistry); 8436 if (subBuilder != null) { 8437 subBuilder.mergeFrom(info_); 8438 info_ = subBuilder.buildPartial(); 8439 } 8440 bitField0_ |= 0x00000002; 8441 break; 8442 } 8443 case 64: { 8444 bitField0_ |= 0x00000004; 8445 lat_ = input.readSInt64(); 8446 break; 8447 } 8448 case 72: { 8449 bitField0_ |= 0x00000008; 8450 lon_ = input.readSInt64(); 8451 break; 8452 } 8453 } 8454 } 8455 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8456 throw e.setUnfinishedMessage(this); 8457 } catch (java.io.IOException e) { 8458 throw new com.google.protobuf.InvalidProtocolBufferException( 8459 e.getMessage()).setUnfinishedMessage(this); 8460 } finally { 8461 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 8462 keys_ = java.util.Collections.unmodifiableList(keys_); 8463 } 8464 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 8465 vals_ = java.util.Collections.unmodifiableList(vals_); 8466 } 8467 try { 8468 unknownFieldsCodedOutput.flush(); 8469 } catch (java.io.IOException e) { 8470 // Should not happen 8471 } finally { 8472 unknownFields = unknownFieldsOutput.toByteString(); 8473 } 8474 makeExtensionsImmutable(); 8475 } 8476 } 8477 public static com.google.protobuf.Parser<Node> PARSER = 8478 new com.google.protobuf.AbstractParser<Node>() { 8479 @Override 8480 public Node parsePartialFrom( 8481 com.google.protobuf.CodedInputStream input, 8482 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8483 throws com.google.protobuf.InvalidProtocolBufferException { 8484 return new Node(input, extensionRegistry); 8485 } 8486 }; 8487 8488 @java.lang.Override 8489 public com.google.protobuf.Parser<Node> getParserForType() { 8490 return PARSER; 8491 } 8492 8146 private Node() { 8147 keys_ = emptyIntList(); 8148 vals_ = emptyIntList(); 8149 } 8493 8150 private int bitField0_; 8494 8151 public static final int ID_FIELD_NUMBER = 1; … … 8497 8154 * <code>required sint64 id = 1;</code> 8498 8155 */ 8499 @Override 8500 public boolean hasId() { 8156 public boolean hasId() { 8501 8157 return ((bitField0_ & 0x00000001) == 0x00000001); 8502 8158 } … … 8504 8160 * <code>required sint64 id = 1;</code> 8505 8161 */ 8506 @Override 8507 public long getId() { 8162 public long getId() { 8508 8163 return id_; 8509 8164 } 8165 /** 8166 * <code>required sint64 id = 1;</code> 8167 */ 8168 private void setId(long value) { 8169 bitField0_ |= 0x00000001; 8170 id_ = value; 8171 } 8172 /** 8173 * <code>required sint64 id = 1;</code> 8174 */ 8175 private void clearId() { 8176 bitField0_ = (bitField0_ & ~0x00000001); 8177 id_ = 0L; 8178 } 8510 8179 8511 8180 public static final int KEYS_FIELD_NUMBER = 2; 8512 private java.util.List<java.lang.Integer> keys_; 8513 /** 8181 private com.google.protobuf.Internal.IntList keys_; 8182 /** 8183 * <pre> 8184 * Parallel arrays. 8185 * </pre> 8186 * 8514 8187 * <code>repeated uint32 keys = 2 [packed = true];</code> 8515 * 8516 * <pre> 8517 * Parallel arrays. 8518 * </pre> 8519 */ 8520 @Override 8521 public java.util.List<java.lang.Integer> 8188 */ 8189 public java.util.List<java.lang.Integer> 8522 8190 getKeysList() { 8523 8191 return keys_; 8524 8192 } 8525 8193 /** 8194 * <pre> 8195 * Parallel arrays. 8196 * </pre> 8197 * 8526 8198 * <code>repeated uint32 keys = 2 [packed = true];</code> 8527 * 8199 */ 8200 public int getKeysCount() { 8201 return keys_.size(); 8202 } 8203 /** 8528 8204 * <pre> 8529 8205 * Parallel arrays. 8530 8206 * </pre> 8531 */ 8532 @Override 8533 public int getKeysCount() { 8534 return keys_.size(); 8535 } 8536 /** 8207 * 8537 8208 * <code>repeated uint32 keys = 2 [packed = true];</code> 8538 * 8209 */ 8210 public int getKeys(int index) { 8211 return keys_.getInt(index); 8212 } 8213 private int keysMemoizedSerializedSize = -1; 8214 private void ensureKeysIsMutable() { 8215 if (!keys_.isModifiable()) { 8216 keys_ = 8217 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 8218 } 8219 } 8220 /** 8539 8221 * <pre> 8540 8222 * Parallel arrays. 8541 8223 * </pre> 8542 */ 8543 @Override 8544 public int getKeys(int index) { 8545 return keys_.get(index); 8546 } 8547 private int keysMemoizedSerializedSize = -1; 8224 * 8225 * <code>repeated uint32 keys = 2 [packed = true];</code> 8226 */ 8227 private void setKeys( 8228 int index, int value) { 8229 ensureKeysIsMutable(); 8230 keys_.setInt(index, value); 8231 } 8232 /** 8233 * <pre> 8234 * Parallel arrays. 8235 * </pre> 8236 * 8237 * <code>repeated uint32 keys = 2 [packed = true];</code> 8238 */ 8239 private void addKeys(int value) { 8240 ensureKeysIsMutable(); 8241 keys_.addInt(value); 8242 } 8243 /** 8244 * <pre> 8245 * Parallel arrays. 8246 * </pre> 8247 * 8248 * <code>repeated uint32 keys = 2 [packed = true];</code> 8249 */ 8250 private void addAllKeys( 8251 java.lang.Iterable<? extends java.lang.Integer> values) { 8252 ensureKeysIsMutable(); 8253 com.google.protobuf.AbstractMessageLite.addAll( 8254 values, keys_); 8255 } 8256 /** 8257 * <pre> 8258 * Parallel arrays. 8259 * </pre> 8260 * 8261 * <code>repeated uint32 keys = 2 [packed = true];</code> 8262 */ 8263 private void clearKeys() { 8264 keys_ = emptyIntList(); 8265 } 8548 8266 8549 8267 public static final int VALS_FIELD_NUMBER = 3; 8550 private java.util.List<java.lang.Integer> vals_; 8551 /** 8268 private com.google.protobuf.Internal.IntList vals_; 8269 /** 8270 * <pre> 8271 * String IDs. 8272 * </pre> 8273 * 8552 8274 * <code>repeated uint32 vals = 3 [packed = true];</code> 8553 * 8554 * <pre> 8555 * String IDs. 8556 * </pre> 8557 */ 8558 @Override 8559 public java.util.List<java.lang.Integer> 8275 */ 8276 public java.util.List<java.lang.Integer> 8560 8277 getValsList() { 8561 8278 return vals_; 8562 8279 } 8563 8280 /** 8281 * <pre> 8282 * String IDs. 8283 * </pre> 8284 * 8564 8285 * <code>repeated uint32 vals = 3 [packed = true];</code> 8565 * 8286 */ 8287 public int getValsCount() { 8288 return vals_.size(); 8289 } 8290 /** 8566 8291 * <pre> 8567 8292 * String IDs. 8568 8293 * </pre> 8569 */ 8570 @Override 8571 public int getValsCount() { 8572 return vals_.size(); 8573 } 8574 /** 8294 * 8575 8295 * <code>repeated uint32 vals = 3 [packed = true];</code> 8576 * 8296 */ 8297 public int getVals(int index) { 8298 return vals_.getInt(index); 8299 } 8300 private int valsMemoizedSerializedSize = -1; 8301 private void ensureValsIsMutable() { 8302 if (!vals_.isModifiable()) { 8303 vals_ = 8304 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 8305 } 8306 } 8307 /** 8577 8308 * <pre> 8578 8309 * String IDs. 8579 8310 * </pre> 8580 */ 8581 @Override 8582 public int getVals(int index) { 8583 return vals_.get(index); 8584 } 8585 private int valsMemoizedSerializedSize = -1; 8311 * 8312 * <code>repeated uint32 vals = 3 [packed = true];</code> 8313 */ 8314 private void setVals( 8315 int index, int value) { 8316 ensureValsIsMutable(); 8317 vals_.setInt(index, value); 8318 } 8319 /** 8320 * <pre> 8321 * String IDs. 8322 * </pre> 8323 * 8324 * <code>repeated uint32 vals = 3 [packed = true];</code> 8325 */ 8326 private void addVals(int value) { 8327 ensureValsIsMutable(); 8328 vals_.addInt(value); 8329 } 8330 /** 8331 * <pre> 8332 * String IDs. 8333 * </pre> 8334 * 8335 * <code>repeated uint32 vals = 3 [packed = true];</code> 8336 */ 8337 private void addAllVals( 8338 java.lang.Iterable<? extends java.lang.Integer> values) { 8339 ensureValsIsMutable(); 8340 com.google.protobuf.AbstractMessageLite.addAll( 8341 values, vals_); 8342 } 8343 /** 8344 * <pre> 8345 * String IDs. 8346 * </pre> 8347 * 8348 * <code>repeated uint32 vals = 3 [packed = true];</code> 8349 */ 8350 private void clearVals() { 8351 vals_ = emptyIntList(); 8352 } 8586 8353 8587 8354 public static final int INFO_FIELD_NUMBER = 4; 8588 8355 private crosby.binary.Osmformat.Info info_; 8589 8356 /** 8357 * <pre> 8358 * May be omitted in omitmeta 8359 * </pre> 8360 * 8590 8361 * <code>optional .OSMPBF.Info info = 4;</code> 8591 * 8362 */ 8363 public boolean hasInfo() { 8364 return ((bitField0_ & 0x00000002) == 0x00000002); 8365 } 8366 /** 8592 8367 * <pre> 8593 8368 * May be omitted in omitmeta 8594 8369 * </pre> 8595 */ 8596 @Override 8597 public boolean hasInfo() { 8598 return ((bitField0_ & 0x00000002) == 0x00000002); 8599 } 8600 /** 8370 * 8601 8371 * <code>optional .OSMPBF.Info info = 4;</code> 8602 * 8372 */ 8373 public crosby.binary.Osmformat.Info getInfo() { 8374 return info_ == null ? crosby.binary.Osmformat.Info.getDefaultInstance() : info_; 8375 } 8376 /** 8603 8377 * <pre> 8604 8378 * May be omitted in omitmeta 8605 8379 * </pre> 8606 */ 8607 @Override 8608 public crosby.binary.Osmformat.Info getInfo() { 8609 return info_; 8380 * 8381 * <code>optional .OSMPBF.Info info = 4;</code> 8382 */ 8383 private void setInfo(crosby.binary.Osmformat.Info value) { 8384 if (value == null) { 8385 throw new NullPointerException(); 8386 } 8387 info_ = value; 8388 bitField0_ |= 0x00000002; 8389 } 8390 /** 8391 * <pre> 8392 * May be omitted in omitmeta 8393 * </pre> 8394 * 8395 * <code>optional .OSMPBF.Info info = 4;</code> 8396 */ 8397 private void setInfo( 8398 crosby.binary.Osmformat.Info.Builder builderForValue) { 8399 info_ = builderForValue.build(); 8400 bitField0_ |= 0x00000002; 8401 } 8402 /** 8403 * <pre> 8404 * May be omitted in omitmeta 8405 * </pre> 8406 * 8407 * <code>optional .OSMPBF.Info info = 4;</code> 8408 */ 8409 private void mergeInfo(crosby.binary.Osmformat.Info value) { 8410 if (info_ != null && 8411 info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) { 8412 info_ = 8413 crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial(); 8414 } else { 8415 info_ = value; 8416 } 8417 bitField0_ |= 0x00000002; 8418 } 8419 /** 8420 * <pre> 8421 * May be omitted in omitmeta 8422 * </pre> 8423 * 8424 * <code>optional .OSMPBF.Info info = 4;</code> 8425 */ 8426 private void clearInfo() { info_ = null; 8427 bitField0_ = (bitField0_ & ~0x00000002); 8610 8428 } 8611 8429 … … 8615 8433 * <code>required sint64 lat = 8;</code> 8616 8434 */ 8617 @Override 8618 public boolean hasLat() { 8435 public boolean hasLat() { 8619 8436 return ((bitField0_ & 0x00000004) == 0x00000004); 8620 8437 } … … 8622 8439 * <code>required sint64 lat = 8;</code> 8623 8440 */ 8624 @Override 8625 public long getLat() { 8441 public long getLat() { 8626 8442 return lat_; 8443 } 8444 /** 8445 * <code>required sint64 lat = 8;</code> 8446 */ 8447 private void setLat(long value) { 8448 bitField0_ |= 0x00000004; 8449 lat_ = value; 8450 } 8451 /** 8452 * <code>required sint64 lat = 8;</code> 8453 */ 8454 private void clearLat() { 8455 bitField0_ = (bitField0_ & ~0x00000004); 8456 lat_ = 0L; 8627 8457 } 8628 8458 … … 8632 8462 * <code>required sint64 lon = 9;</code> 8633 8463 */ 8634 @Override 8635 public boolean hasLon() { 8464 public boolean hasLon() { 8636 8465 return ((bitField0_ & 0x00000008) == 0x00000008); 8637 8466 } … … 8639 8468 * <code>required sint64 lon = 9;</code> 8640 8469 */ 8641 @Override 8642 public long getLon() { 8470 public long getLon() { 8643 8471 return lon_; 8644 8472 } 8645 8646 private void initFields() { 8647 id_ = 0L; 8648 keys_ = java.util.Collections.emptyList(); 8649 vals_ = java.util.Collections.emptyList(); 8650 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 8651 lat_ = 0L; 8473 /** 8474 * <code>required sint64 lon = 9;</code> 8475 */ 8476 private void setLon(long value) { 8477 bitField0_ |= 0x00000008; 8478 lon_ = value; 8479 } 8480 /** 8481 * <code>required sint64 lon = 9;</code> 8482 */ 8483 private void clearLon() { 8484 bitField0_ = (bitField0_ & ~0x00000008); 8652 8485 lon_ = 0L; 8653 8486 } 8654 private byte memoizedIsInitialized = -1; 8655 @Override 8656 public final boolean isInitialized() { 8657 byte isInitialized = memoizedIsInitialized; 8658 if (isInitialized == 1) return true; 8659 if (isInitialized == 0) return false; 8660 8661 if (!hasId()) { 8662 memoizedIsInitialized = 0; 8663 return false; 8664 } 8665 if (!hasLat()) { 8666 memoizedIsInitialized = 0; 8667 return false; 8668 } 8669 if (!hasLon()) { 8670 memoizedIsInitialized = 0; 8671 return false; 8672 } 8673 memoizedIsInitialized = 1; 8674 return true; 8675 } 8676 8677 @Override 8678 public void writeTo(com.google.protobuf.CodedOutputStream output) 8487 8488 public void writeTo(com.google.protobuf.CodedOutputStream output) 8679 8489 throws java.io.IOException { 8680 8490 getSerializedSize(); … … 8683 8493 } 8684 8494 if (getKeysList().size() > 0) { 8685 output.write RawVarint32(18);8686 output.write RawVarint32(keysMemoizedSerializedSize);8495 output.writeUInt32NoTag(18); 8496 output.writeUInt32NoTag(keysMemoizedSerializedSize); 8687 8497 } 8688 8498 for (int i = 0; i < keys_.size(); i++) { 8689 output.writeUInt32NoTag(keys_.get(i)); 8499 output.writeUInt32NoTag(keys_.getInt(i)); 8690 8500 } 8691 8501 if (getValsList().size() > 0) { 8692 output.write RawVarint32(26);8693 output.write RawVarint32(valsMemoizedSerializedSize);8502 output.writeUInt32NoTag(26); 8503 output.writeUInt32NoTag(valsMemoizedSerializedSize); 8694 8504 } 8695 8505 for (int i = 0; i < vals_.size(); i++) { 8696 output.writeUInt32NoTag(vals_.get(i)); 8506 output.writeUInt32NoTag(vals_.getInt(i)); 8697 8507 } 8698 8508 if (((bitField0_ & 0x00000002) == 0x00000002)) { 8699 output.writeMessage(4, info_);8509 output.writeMessage(4, getInfo()); 8700 8510 } 8701 8511 if (((bitField0_ & 0x00000004) == 0x00000004)) { … … 8705 8515 output.writeSInt64(9, lon_); 8706 8516 } 8707 output.writeRawBytes(unknownFields); 8708 } 8709 8710 private int memoizedSerializedSize = -1; 8711 @Override 8712 public int getSerializedSize() { 8517 unknownFields.writeTo(output); 8518 } 8519 8520 public int getSerializedSize() { 8713 8521 int size = memoizedSerializedSize; 8714 8522 if (size != -1) return size; … … 8723 8531 for (int i = 0; i < keys_.size(); i++) { 8724 8532 dataSize += com.google.protobuf.CodedOutputStream 8725 .computeUInt32SizeNoTag(keys_.get(i)); 8533 .computeUInt32SizeNoTag(keys_.getInt(i)); 8726 8534 } 8727 8535 size += dataSize; … … 8737 8545 for (int i = 0; i < vals_.size(); i++) { 8738 8546 dataSize += com.google.protobuf.CodedOutputStream 8739 .computeUInt32SizeNoTag(vals_.get(i)); 8547 .computeUInt32SizeNoTag(vals_.getInt(i)); 8740 8548 } 8741 8549 size += dataSize; … … 8749 8557 if (((bitField0_ & 0x00000002) == 0x00000002)) { 8750 8558 size += com.google.protobuf.CodedOutputStream 8751 .computeMessageSize(4, info_);8559 .computeMessageSize(4, getInfo()); 8752 8560 } 8753 8561 if (((bitField0_ & 0x00000004) == 0x00000004)) { … … 8759 8567 .computeSInt64Size(9, lon_); 8760 8568 } 8761 size += unknownFields. size();8569 size += unknownFields.getSerializedSize(); 8762 8570 memoizedSerializedSize = size; 8763 8571 return size; 8764 8572 } 8765 8573 8766 private static final long serialVersionUID = 0L; 8767 @java.lang.Override 8768 protected java.lang.Object writeReplace() 8769 throws java.io.ObjectStreamException { 8770 return super.writeReplace(); 8771 } 8772 8574 public static crosby.binary.Osmformat.Node parseFrom( 8575 java.nio.ByteBuffer data) 8576 throws com.google.protobuf.InvalidProtocolBufferException { 8577 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8578 DEFAULT_INSTANCE, data); 8579 } 8580 public static crosby.binary.Osmformat.Node parseFrom( 8581 java.nio.ByteBuffer data, 8582 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8583 throws com.google.protobuf.InvalidProtocolBufferException { 8584 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8585 DEFAULT_INSTANCE, data, extensionRegistry); 8586 } 8773 8587 public static crosby.binary.Osmformat.Node parseFrom( 8774 8588 com.google.protobuf.ByteString data) 8775 8589 throws com.google.protobuf.InvalidProtocolBufferException { 8776 return PARSER.parseFrom(data); 8590 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8591 DEFAULT_INSTANCE, data); 8777 8592 } 8778 8593 public static crosby.binary.Osmformat.Node parseFrom( … … 8780 8595 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8781 8596 throws com.google.protobuf.InvalidProtocolBufferException { 8782 return PARSER.parseFrom(data, extensionRegistry); 8597 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8598 DEFAULT_INSTANCE, data, extensionRegistry); 8783 8599 } 8784 8600 public static crosby.binary.Osmformat.Node parseFrom(byte[] data) 8785 8601 throws com.google.protobuf.InvalidProtocolBufferException { 8786 return PARSER.parseFrom(data); 8602 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8603 DEFAULT_INSTANCE, data); 8787 8604 } 8788 8605 public static crosby.binary.Osmformat.Node parseFrom( … … 8790 8607 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8791 8608 throws com.google.protobuf.InvalidProtocolBufferException { 8792 return PARSER.parseFrom(data, extensionRegistry); 8609 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8610 DEFAULT_INSTANCE, data, extensionRegistry); 8793 8611 } 8794 8612 public static crosby.binary.Osmformat.Node parseFrom(java.io.InputStream input) 8795 8613 throws java.io.IOException { 8796 return PARSER.parseFrom(input); 8614 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8615 DEFAULT_INSTANCE, input); 8797 8616 } 8798 8617 public static crosby.binary.Osmformat.Node parseFrom( … … 8800 8619 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8801 8620 throws java.io.IOException { 8802 return PARSER.parseFrom(input, extensionRegistry); 8621 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8622 DEFAULT_INSTANCE, input, extensionRegistry); 8803 8623 } 8804 8624 public static crosby.binary.Osmformat.Node parseDelimitedFrom(java.io.InputStream input) 8805 8625 throws java.io.IOException { 8806 return PARSER.parseDelimitedFrom(input);8626 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 8807 8627 } 8808 8628 public static crosby.binary.Osmformat.Node parseDelimitedFrom( … … 8810 8630 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8811 8631 throws java.io.IOException { 8812 return PARSER.parseDelimitedFrom(input, extensionRegistry);8632 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 8813 8633 } 8814 8634 public static crosby.binary.Osmformat.Node parseFrom( 8815 8635 com.google.protobuf.CodedInputStream input) 8816 8636 throws java.io.IOException { 8817 return PARSER.parseFrom(input); 8637 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8638 DEFAULT_INSTANCE, input); 8818 8639 } 8819 8640 public static crosby.binary.Osmformat.Node parseFrom( … … 8821 8642 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8822 8643 throws java.io.IOException { 8823 return PARSER.parseFrom(input, extensionRegistry); 8824 } 8825 8826 public static Builder newBuilder() { return Builder.create(); } 8827 @Override 8828 public Builder newBuilderForType() { return newBuilder(); } 8644 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8645 DEFAULT_INSTANCE, input, extensionRegistry); 8646 } 8647 8648 public static Builder newBuilder() { 8649 return DEFAULT_INSTANCE.toBuilder(); 8650 } 8829 8651 public static Builder newBuilder(crosby.binary.Osmformat.Node prototype) { 8830 return newBuilder().mergeFrom(prototype); 8831 } 8832 @Override 8833 public Builder toBuilder() { return newBuilder(this); } 8652 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 8653 } 8834 8654 8835 8655 /** … … 8838 8658 public static final class Builder extends 8839 8659 com.google.protobuf.GeneratedMessageLite.Builder< 8840 crosby.binary.Osmformat.Node, Builder> 8841 implements 8660 crosby.binary.Osmformat.Node, Builder> implements 8842 8661 // @@protoc_insertion_point(builder_implements:OSMPBF.Node) 8843 8662 crosby.binary.Osmformat.NodeOrBuilder { 8844 8663 // Construct using crosby.binary.Osmformat.Node.newBuilder() 8845 8664 private Builder() { 8846 maybeForceBuilderInitialization(); 8847 } 8848 8849 private void maybeForceBuilderInitialization() { 8850 } 8851 private static Builder create() { 8852 return new Builder(); 8853 } 8854 8855 @Override 8856 public Builder clear() { 8857 super.clear(); 8858 id_ = 0L; 8859 bitField0_ = (bitField0_ & ~0x00000001); 8860 keys_ = java.util.Collections.emptyList(); 8861 bitField0_ = (bitField0_ & ~0x00000002); 8862 vals_ = java.util.Collections.emptyList(); 8863 bitField0_ = (bitField0_ & ~0x00000004); 8864 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 8865 bitField0_ = (bitField0_ & ~0x00000008); 8866 lat_ = 0L; 8867 bitField0_ = (bitField0_ & ~0x00000010); 8868 lon_ = 0L; 8869 bitField0_ = (bitField0_ & ~0x00000020); 8870 return this; 8871 } 8872 8873 @Override 8874 public Builder clone() { 8875 return create().mergeFrom(buildPartial()); 8876 } 8877 8878 @Override 8879 public crosby.binary.Osmformat.Node getDefaultInstanceForType() { 8880 return crosby.binary.Osmformat.Node.getDefaultInstance(); 8881 } 8882 8883 @Override 8884 public crosby.binary.Osmformat.Node build() { 8885 crosby.binary.Osmformat.Node result = buildPartial(); 8886 if (!result.isInitialized()) { 8887 throw newUninitializedMessageException(result); 8888 } 8889 return result; 8890 } 8891 8892 @Override 8893 public crosby.binary.Osmformat.Node buildPartial() { 8894 crosby.binary.Osmformat.Node result = new crosby.binary.Osmformat.Node(this); 8895 int from_bitField0_ = bitField0_; 8896 int to_bitField0_ = 0; 8897 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 8898 to_bitField0_ |= 0x00000001; 8899 } 8900 result.id_ = id_; 8901 if (((bitField0_ & 0x00000002) == 0x00000002)) { 8902 keys_ = java.util.Collections.unmodifiableList(keys_); 8903 bitField0_ = (bitField0_ & ~0x00000002); 8904 } 8905 result.keys_ = keys_; 8906 if (((bitField0_ & 0x00000004) == 0x00000004)) { 8907 vals_ = java.util.Collections.unmodifiableList(vals_); 8908 bitField0_ = (bitField0_ & ~0x00000004); 8909 } 8910 result.vals_ = vals_; 8911 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 8912 to_bitField0_ |= 0x00000002; 8913 } 8914 result.info_ = info_; 8915 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 8916 to_bitField0_ |= 0x00000004; 8917 } 8918 result.lat_ = lat_; 8919 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 8920 to_bitField0_ |= 0x00000008; 8921 } 8922 result.lon_ = lon_; 8923 result.bitField0_ = to_bitField0_; 8924 return result; 8925 } 8926 8927 @Override 8928 public Builder mergeFrom(crosby.binary.Osmformat.Node other) { 8929 if (other == crosby.binary.Osmformat.Node.getDefaultInstance()) return this; 8930 if (other.hasId()) { 8931 setId(other.getId()); 8932 } 8933 if (!other.keys_.isEmpty()) { 8934 if (keys_.isEmpty()) { 8935 keys_ = other.keys_; 8936 bitField0_ = (bitField0_ & ~0x00000002); 8937 } else { 8938 ensureKeysIsMutable(); 8939 keys_.addAll(other.keys_); 8940 } 8941 8942 } 8943 if (!other.vals_.isEmpty()) { 8944 if (vals_.isEmpty()) { 8945 vals_ = other.vals_; 8946 bitField0_ = (bitField0_ & ~0x00000004); 8947 } else { 8948 ensureValsIsMutable(); 8949 vals_.addAll(other.vals_); 8950 } 8951 8952 } 8953 if (other.hasInfo()) { 8954 mergeInfo(other.getInfo()); 8955 } 8956 if (other.hasLat()) { 8957 setLat(other.getLat()); 8958 } 8959 if (other.hasLon()) { 8960 setLon(other.getLon()); 8961 } 8962 setUnknownFields( 8963 getUnknownFields().concat(other.unknownFields)); 8964 return this; 8965 } 8966 8967 @Override 8968 public final boolean isInitialized() { 8969 if (!hasId()) { 8970 8971 return false; 8972 } 8973 if (!hasLat()) { 8974 8975 return false; 8976 } 8977 if (!hasLon()) { 8978 8979 return false; 8980 } 8981 return true; 8982 } 8983 8984 @Override 8985 public Builder mergeFrom( 8986 com.google.protobuf.CodedInputStream input, 8987 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8988 throws java.io.IOException { 8989 crosby.binary.Osmformat.Node parsedMessage = null; 8990 try { 8991 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 8992 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8993 parsedMessage = (crosby.binary.Osmformat.Node) e.getUnfinishedMessage(); 8994 throw e; 8995 } finally { 8996 if (parsedMessage != null) { 8997 mergeFrom(parsedMessage); 8998 } 8999 } 9000 return this; 9001 } 9002 private int bitField0_; 9003 9004 private long id_ ; 8665 super(DEFAULT_INSTANCE); 8666 } 8667 8668 9005 8669 /** 9006 8670 * <code>required sint64 id = 1;</code> 9007 8671 */ 9008 @Override 9009 public boolean hasId() { 9010 return ((bitField0_ & 0x00000001) == 0x00000001); 8672 public boolean hasId() { 8673 return instance.hasId(); 9011 8674 } 9012 8675 /** 9013 8676 * <code>required sint64 id = 1;</code> 9014 8677 */ 9015 @Override 9016 public long getId() { 9017 return id_; 8678 public long getId() { 8679 return instance.getId(); 9018 8680 } 9019 8681 /** … … 9021 8683 */ 9022 8684 public Builder setId(long value) { 9023 bitField0_ |= 0x00000001; 9024 id_ = value; 9025 8685 copyOnWrite(); 8686 instance.setId(value); 9026 8687 return this; 9027 8688 } … … 9030 8691 */ 9031 8692 public Builder clearId() { 9032 bitField0_ = (bitField0_ & ~0x00000001); 9033 id_ = 0L; 9034 9035 return this; 9036 } 9037 9038 private java.util.List<java.lang.Integer> keys_ = java.util.Collections.emptyList(); 9039 private void ensureKeysIsMutable() { 9040 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 9041 keys_ = new java.util.ArrayList<>(keys_); 9042 bitField0_ |= 0x00000002; 9043 } 9044 } 9045 /** 8693 copyOnWrite(); 8694 instance.clearId(); 8695 return this; 8696 } 8697 8698 /** 8699 * <pre> 8700 * Parallel arrays. 8701 * </pre> 8702 * 9046 8703 * <code>repeated uint32 keys = 2 [packed = true];</code> 9047 * 8704 */ 8705 public java.util.List<java.lang.Integer> 8706 getKeysList() { 8707 return java.util.Collections.unmodifiableList( 8708 instance.getKeysList()); 8709 } 8710 /** 9048 8711 * <pre> 9049 8712 * Parallel arrays. 9050 8713 * </pre> 9051 */ 9052 @Override 9053 public java.util.List<java.lang.Integer> 9054 getKeysList() { 9055 return java.util.Collections.unmodifiableList(keys_); 9056 } 9057 /** 8714 * 9058 8715 * <code>repeated uint32 keys = 2 [packed = true];</code> 9059 * 8716 */ 8717 public int getKeysCount() { 8718 return instance.getKeysCount(); 8719 } 8720 /** 9060 8721 * <pre> 9061 8722 * Parallel arrays. 9062 8723 * </pre> 9063 */ 9064 @Override 9065 public int getKeysCount() { 9066 return keys_.size(); 9067 } 9068 /** 8724 * 9069 8725 * <code>repeated uint32 keys = 2 [packed = true];</code> 9070 * 8726 */ 8727 public int getKeys(int index) { 8728 return instance.getKeys(index); 8729 } 8730 /** 9071 8731 * <pre> 9072 8732 * Parallel arrays. 9073 8733 * </pre> 9074 */ 9075 @Override 9076 public int getKeys(int index) { 9077 return keys_.get(index); 9078 } 9079 /** 8734 * 9080 8735 * <code>repeated uint32 keys = 2 [packed = true];</code> 9081 *9082 * <pre>9083 * Parallel arrays.9084 * </pre>9085 8736 */ 9086 8737 public Builder setKeys( 9087 8738 int index, int value) { 9088 ensureKeysIsMutable(); 9089 keys_.set(index, value); 9090 9091 return this; 9092 } 9093 /** 8739 copyOnWrite(); 8740 instance.setKeys(index, value); 8741 return this; 8742 } 8743 /** 8744 * <pre> 8745 * Parallel arrays. 8746 * </pre> 8747 * 9094 8748 * <code>repeated uint32 keys = 2 [packed = true];</code> 9095 * 8749 */ 8750 public Builder addKeys(int value) { 8751 copyOnWrite(); 8752 instance.addKeys(value); 8753 return this; 8754 } 8755 /** 9096 8756 * <pre> 9097 8757 * Parallel arrays. 9098 8758 * </pre> 9099 */ 9100 public Builder addKeys(int value) { 9101 ensureKeysIsMutable(); 9102 keys_.add(value); 9103 9104 return this; 9105 } 9106 /** 8759 * 9107 8760 * <code>repeated uint32 keys = 2 [packed = true];</code> 9108 *9109 * <pre>9110 * Parallel arrays.9111 * </pre>9112 8761 */ 9113 8762 public Builder addAllKeys( 9114 8763 java.lang.Iterable<? extends java.lang.Integer> values) { 9115 ensureKeysIsMutable(); 9116 com.google.protobuf.AbstractMessageLite.Builder.addAll( 9117 values, keys_); 9118 9119 return this; 9120 } 9121 /** 8764 copyOnWrite(); 8765 instance.addAllKeys(values); 8766 return this; 8767 } 8768 /** 8769 * <pre> 8770 * Parallel arrays. 8771 * </pre> 8772 * 9122 8773 * <code>repeated uint32 keys = 2 [packed = true];</code> 9123 *9124 * <pre>9125 * Parallel arrays.9126 * </pre>9127 8774 */ 9128 8775 public Builder clearKeys() { 9129 keys_ = java.util.Collections.emptyList(); 9130 bitField0_ = (bitField0_ & ~0x00000002); 9131 9132 return this; 9133 } 9134 9135 private java.util.List<java.lang.Integer> vals_ = java.util.Collections.emptyList(); 9136 private void ensureValsIsMutable() { 9137 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 9138 vals_ = new java.util.ArrayList<>(vals_); 9139 bitField0_ |= 0x00000004; 9140 } 9141 } 9142 /** 8776 copyOnWrite(); 8777 instance.clearKeys(); 8778 return this; 8779 } 8780 8781 /** 8782 * <pre> 8783 * String IDs. 8784 * </pre> 8785 * 9143 8786 * <code>repeated uint32 vals = 3 [packed = true];</code> 9144 * 8787 */ 8788 public java.util.List<java.lang.Integer> 8789 getValsList() { 8790 return java.util.Collections.unmodifiableList( 8791 instance.getValsList()); 8792 } 8793 /** 9145 8794 * <pre> 9146 8795 * String IDs. 9147 8796 * </pre> 9148 */ 9149 @Override 9150 public java.util.List<java.lang.Integer> 9151 getValsList() { 9152 return java.util.Collections.unmodifiableList(vals_); 9153 } 9154 /** 8797 * 9155 8798 * <code>repeated uint32 vals = 3 [packed = true];</code> 9156 * 8799 */ 8800 public int getValsCount() { 8801 return instance.getValsCount(); 8802 } 8803 /** 9157 8804 * <pre> 9158 8805 * String IDs. 9159 8806 * </pre> 9160 */ 9161 @Override 9162 public int getValsCount() { 9163 return vals_.size(); 9164 } 9165 /** 8807 * 9166 8808 * <code>repeated uint32 vals = 3 [packed = true];</code> 9167 * 8809 */ 8810 public int getVals(int index) { 8811 return instance.getVals(index); 8812 } 8813 /** 9168 8814 * <pre> 9169 8815 * String IDs. 9170 8816 * </pre> 9171 */ 9172 @Override 9173 public int getVals(int index) { 9174 return vals_.get(index); 9175 } 9176 /** 8817 * 9177 8818 * <code>repeated uint32 vals = 3 [packed = true];</code> 9178 *9179 * <pre>9180 * String IDs.9181 * </pre>9182 8819 */ 9183 8820 public Builder setVals( 9184 8821 int index, int value) { 9185 ensureValsIsMutable(); 9186 vals_.set(index, value); 9187 9188 return this; 9189 } 9190 /** 8822 copyOnWrite(); 8823 instance.setVals(index, value); 8824 return this; 8825 } 8826 /** 8827 * <pre> 8828 * String IDs. 8829 * </pre> 8830 * 9191 8831 * <code>repeated uint32 vals = 3 [packed = true];</code> 9192 * 8832 */ 8833 public Builder addVals(int value) { 8834 copyOnWrite(); 8835 instance.addVals(value); 8836 return this; 8837 } 8838 /** 9193 8839 * <pre> 9194 8840 * String IDs. 9195 8841 * </pre> 9196 */ 9197 public Builder addVals(int value) { 9198 ensureValsIsMutable(); 9199 vals_.add(value); 9200 9201 return this; 9202 } 9203 /** 8842 * 9204 8843 * <code>repeated uint32 vals = 3 [packed = true];</code> 9205 *9206 * <pre>9207 * String IDs.9208 * </pre>9209 8844 */ 9210 8845 public Builder addAllVals( 9211 8846 java.lang.Iterable<? extends java.lang.Integer> values) { 9212 ensureValsIsMutable(); 9213 com.google.protobuf.AbstractMessageLite.Builder.addAll( 9214 values, vals_); 9215 9216 return this; 9217 } 9218 /** 8847 copyOnWrite(); 8848 instance.addAllVals(values); 8849 return this; 8850 } 8851 /** 8852 * <pre> 8853 * String IDs. 8854 * </pre> 8855 * 9219 8856 * <code>repeated uint32 vals = 3 [packed = true];</code> 9220 *9221 * <pre>9222 * String IDs.9223 * </pre>9224 8857 */ 9225 8858 public Builder clearVals() { 9226 vals_ = java.util.Collections.emptyList(); 9227 bitField0_ = (bitField0_ & ~0x00000004); 9228 9229 return this; 9230 } 9231 9232 private crosby.binary.Osmformat.Info info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 9233 /** 8859 copyOnWrite(); 8860 instance.clearVals(); 8861 return this; 8862 } 8863 8864 /** 8865 * <pre> 8866 * May be omitted in omitmeta 8867 * </pre> 8868 * 9234 8869 * <code>optional .OSMPBF.Info info = 4;</code> 9235 * 8870 */ 8871 public boolean hasInfo() { 8872 return instance.hasInfo(); 8873 } 8874 /** 9236 8875 * <pre> 9237 8876 * May be omitted in omitmeta 9238 8877 * </pre> 9239 */ 9240 @Override 9241 public boolean hasInfo() { 9242 return ((bitField0_ & 0x00000008) == 0x00000008); 9243 } 9244 /** 8878 * 9245 8879 * <code>optional .OSMPBF.Info info = 4;</code> 9246 * 8880 */ 8881 public crosby.binary.Osmformat.Info getInfo() { 8882 return instance.getInfo(); 8883 } 8884 /** 9247 8885 * <pre> 9248 8886 * May be omitted in omitmeta 9249 8887 * </pre> 9250 */ 9251 @Override 9252 public crosby.binary.Osmformat.Info getInfo() { 9253 return info_; 9254 } 9255 /** 8888 * 9256 8889 * <code>optional .OSMPBF.Info info = 4;</code> 9257 * 8890 */ 8891 public Builder setInfo(crosby.binary.Osmformat.Info value) { 8892 copyOnWrite(); 8893 instance.setInfo(value); 8894 return this; 8895 } 8896 /** 9258 8897 * <pre> 9259 8898 * May be omitted in omitmeta 9260 8899 * </pre> 9261 */ 9262 public Builder setInfo(crosby.binary.Osmformat.Info value) { 9263 if (value == null) { 9264 throw new NullPointerException(); 9265 } 9266 info_ = value; 9267 9268 bitField0_ |= 0x00000008; 9269 return this; 9270 } 9271 /** 8900 * 9272 8901 * <code>optional .OSMPBF.Info info = 4;</code> 9273 *9274 * <pre>9275 * May be omitted in omitmeta9276 * </pre>9277 8902 */ 9278 8903 public Builder setInfo( 9279 8904 crosby.binary.Osmformat.Info.Builder builderForValue) { 9280 info_ = builderForValue.build(); 9281 9282 bitField0_ |= 0x00000008; 9283 return this; 9284 } 9285 /** 8905 copyOnWrite(); 8906 instance.setInfo(builderForValue); 8907 return this; 8908 } 8909 /** 8910 * <pre> 8911 * May be omitted in omitmeta 8912 * </pre> 8913 * 9286 8914 * <code>optional .OSMPBF.Info info = 4;</code> 9287 * 8915 */ 8916 public Builder mergeInfo(crosby.binary.Osmformat.Info value) { 8917 copyOnWrite(); 8918 instance.mergeInfo(value); 8919 return this; 8920 } 8921 /** 9288 8922 * <pre> 9289 8923 * May be omitted in omitmeta 9290 8924 * </pre> 9291 */ 9292 public Builder mergeInfo(crosby.binary.Osmformat.Info value) { 9293 if (((bitField0_ & 0x00000008) == 0x00000008) && 9294 info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) { 9295 info_ = 9296 crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial(); 9297 } else { 9298 info_ = value; 9299 } 9300 9301 bitField0_ |= 0x00000008; 9302 return this; 9303 } 9304 /** 8925 * 9305 8926 * <code>optional .OSMPBF.Info info = 4;</code> 9306 * 9307 * <pre> 9308 * May be omitted in omitmeta 9309 * </pre> 9310 */ 9311 public Builder clearInfo() { 9312 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 9313 9314 bitField0_ = (bitField0_ & ~0x00000008); 9315 return this; 9316 } 9317 9318 private long lat_ ; 8927 */ 8928 public Builder clearInfo() { copyOnWrite(); 8929 instance.clearInfo(); 8930 return this; 8931 } 8932 9319 8933 /** 9320 8934 * <code>required sint64 lat = 8;</code> 9321 8935 */ 9322 @Override 9323 public boolean hasLat() { 9324 return ((bitField0_ & 0x00000010) == 0x00000010); 8936 public boolean hasLat() { 8937 return instance.hasLat(); 9325 8938 } 9326 8939 /** 9327 8940 * <code>required sint64 lat = 8;</code> 9328 8941 */ 9329 @Override 9330 public long getLat() { 9331 return lat_; 8942 public long getLat() { 8943 return instance.getLat(); 9332 8944 } 9333 8945 /** … … 9335 8947 */ 9336 8948 public Builder setLat(long value) { 9337 bitField0_ |= 0x00000010; 9338 lat_ = value; 9339 8949 copyOnWrite(); 8950 instance.setLat(value); 9340 8951 return this; 9341 8952 } … … 9344 8955 */ 9345 8956 public Builder clearLat() { 9346 bitField0_ = (bitField0_ & ~0x00000010); 9347 lat_ = 0L; 9348 9349 return this; 9350 } 9351 9352 private long lon_ ; 8957 copyOnWrite(); 8958 instance.clearLat(); 8959 return this; 8960 } 8961 9353 8962 /** 9354 8963 * <code>required sint64 lon = 9;</code> 9355 8964 */ 9356 @Override 9357 public boolean hasLon() { 9358 return ((bitField0_ & 0x00000020) == 0x00000020); 8965 public boolean hasLon() { 8966 return instance.hasLon(); 9359 8967 } 9360 8968 /** 9361 8969 * <code>required sint64 lon = 9;</code> 9362 8970 */ 9363 @Override 9364 public long getLon() { 9365 return lon_; 8971 public long getLon() { 8972 return instance.getLon(); 9366 8973 } 9367 8974 /** … … 9369 8976 */ 9370 8977 public Builder setLon(long value) { 9371 bitField0_ |= 0x00000020; 9372 lon_ = value; 9373 8978 copyOnWrite(); 8979 instance.setLon(value); 9374 8980 return this; 9375 8981 } … … 9378 8984 */ 9379 8985 public Builder clearLon() { 9380 bitField0_ = (bitField0_ & ~0x00000020); 9381 lon_ = 0L; 9382 8986 copyOnWrite(); 8987 instance.clearLon(); 9383 8988 return this; 9384 8989 } … … 9386 8991 // @@protoc_insertion_point(builder_scope:OSMPBF.Node) 9387 8992 } 9388 8993 private byte memoizedIsInitialized = -1; 8994 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 8995 protected final java.lang.Object dynamicMethod( 8996 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 8997 java.lang.Object arg0, java.lang.Object arg1) { 8998 switch (method) { 8999 case NEW_MUTABLE_INSTANCE: { 9000 return new crosby.binary.Osmformat.Node(); 9001 } 9002 case IS_INITIALIZED: { 9003 byte isInitialized = memoizedIsInitialized; 9004 if (isInitialized == 1) return DEFAULT_INSTANCE; 9005 if (isInitialized == 0) return null; 9006 9007 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 9008 if (!hasId()) { 9009 if (shouldMemoize) { 9010 memoizedIsInitialized = 0; 9011 } 9012 return null; 9013 } 9014 if (!hasLat()) { 9015 if (shouldMemoize) { 9016 memoizedIsInitialized = 0; 9017 } 9018 return null; 9019 } 9020 if (!hasLon()) { 9021 if (shouldMemoize) { 9022 memoizedIsInitialized = 0; 9023 } 9024 return null; 9025 } 9026 if (shouldMemoize) memoizedIsInitialized = 1; 9027 return DEFAULT_INSTANCE; 9028 9029 } 9030 case MAKE_IMMUTABLE: { 9031 keys_.makeImmutable(); 9032 vals_.makeImmutable(); 9033 return null; 9034 } 9035 case NEW_BUILDER: { 9036 return new Builder(); 9037 } 9038 case VISIT: { 9039 Visitor visitor = (Visitor) arg0; 9040 crosby.binary.Osmformat.Node other = (crosby.binary.Osmformat.Node) arg1; 9041 id_ = visitor.visitLong( 9042 hasId(), id_, 9043 other.hasId(), other.id_); 9044 keys_= visitor.visitIntList(keys_, other.keys_); 9045 vals_= visitor.visitIntList(vals_, other.vals_); 9046 info_ = visitor.visitMessage(info_, other.info_); 9047 lat_ = visitor.visitLong( 9048 hasLat(), lat_, 9049 other.hasLat(), other.lat_); 9050 lon_ = visitor.visitLong( 9051 hasLon(), lon_, 9052 other.hasLon(), other.lon_); 9053 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 9054 .INSTANCE) { 9055 bitField0_ |= other.bitField0_; 9056 } 9057 return this; 9058 } 9059 case MERGE_FROM_STREAM: { 9060 com.google.protobuf.CodedInputStream input = 9061 (com.google.protobuf.CodedInputStream) arg0; 9062 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 9063 (com.google.protobuf.ExtensionRegistryLite) arg1; 9064 try { 9065 boolean done = false; 9066 while (!done) { 9067 int tag = input.readTag(); 9068 switch (tag) { 9069 case 0: 9070 done = true; 9071 break; 9072 default: { 9073 if (!parseUnknownField(tag, input)) { 9074 done = true; 9075 } 9076 break; 9077 } 9078 case 8: { 9079 bitField0_ |= 0x00000001; 9080 id_ = input.readSInt64(); 9081 break; 9082 } 9083 case 16: { 9084 if (!keys_.isModifiable()) { 9085 keys_ = 9086 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 9087 } 9088 keys_.addInt(input.readUInt32()); 9089 break; 9090 } 9091 case 18: { 9092 int length = input.readRawVarint32(); 9093 int limit = input.pushLimit(length); 9094 if (!keys_.isModifiable() && input.getBytesUntilLimit() > 0) { 9095 keys_ = 9096 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 9097 } 9098 while (input.getBytesUntilLimit() > 0) { 9099 keys_.addInt(input.readUInt32()); 9100 } 9101 input.popLimit(limit); 9102 break; 9103 } 9104 case 24: { 9105 if (!vals_.isModifiable()) { 9106 vals_ = 9107 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 9108 } 9109 vals_.addInt(input.readUInt32()); 9110 break; 9111 } 9112 case 26: { 9113 int length = input.readRawVarint32(); 9114 int limit = input.pushLimit(length); 9115 if (!vals_.isModifiable() && input.getBytesUntilLimit() > 0) { 9116 vals_ = 9117 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 9118 } 9119 while (input.getBytesUntilLimit() > 0) { 9120 vals_.addInt(input.readUInt32()); 9121 } 9122 input.popLimit(limit); 9123 break; 9124 } 9125 case 34: { 9126 crosby.binary.Osmformat.Info.Builder subBuilder = null; 9127 if (((bitField0_ & 0x00000002) == 0x00000002)) { 9128 subBuilder = info_.toBuilder(); 9129 } 9130 info_ = input.readMessage(crosby.binary.Osmformat.Info.parser(), extensionRegistry); 9131 if (subBuilder != null) { 9132 subBuilder.mergeFrom(info_); 9133 info_ = subBuilder.buildPartial(); 9134 } 9135 bitField0_ |= 0x00000002; 9136 break; 9137 } 9138 case 64: { 9139 bitField0_ |= 0x00000004; 9140 lat_ = input.readSInt64(); 9141 break; 9142 } 9143 case 72: { 9144 bitField0_ |= 0x00000008; 9145 lon_ = input.readSInt64(); 9146 break; 9147 } 9148 } 9149 } 9150 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9151 throw new RuntimeException(e.setUnfinishedMessage(this)); 9152 } catch (java.io.IOException e) { 9153 throw new RuntimeException( 9154 new com.google.protobuf.InvalidProtocolBufferException( 9155 e.getMessage()).setUnfinishedMessage(this)); 9156 } finally { 9157 } 9158 } 9159 // fall through 9160 case GET_DEFAULT_INSTANCE: { 9161 return DEFAULT_INSTANCE; 9162 } 9163 case GET_PARSER: { 9164 if (PARSER == null) { synchronized (crosby.binary.Osmformat.Node.class) { 9165 if (PARSER == null) { 9166 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 9167 } 9168 } 9169 } 9170 return PARSER; 9171 } 9172 } 9173 throw new UnsupportedOperationException(); 9174 } 9175 9176 9177 // @@protoc_insertion_point(class_scope:OSMPBF.Node) 9178 private static final crosby.binary.Osmformat.Node DEFAULT_INSTANCE; 9389 9179 static { 9390 defaultInstance = new Node(true); 9391 defaultInstance.initFields(); 9392 } 9393 9394 // @@protoc_insertion_point(class_scope:OSMPBF.Node) 9180 DEFAULT_INSTANCE = new Node(); 9181 DEFAULT_INSTANCE.makeImmutable(); 9182 } 9183 9184 public static crosby.binary.Osmformat.Node getDefaultInstance() { 9185 return DEFAULT_INSTANCE; 9186 } 9187 9188 private static volatile com.google.protobuf.Parser<Node> PARSER; 9189 9190 public static com.google.protobuf.Parser<Node> parser() { 9191 return DEFAULT_INSTANCE.getParserForType(); 9192 } 9395 9193 } 9396 9194 … … 9400 9198 9401 9199 /** 9200 * <pre> 9201 * DELTA coded 9202 * </pre> 9203 * 9402 9204 * <code>repeated sint64 id = 1 [packed = true];</code> 9403 * 9205 */ 9206 java.util.List<java.lang.Long> getIdList(); 9207 /** 9404 9208 * <pre> 9405 9209 * DELTA coded 9406 9210 * </pre> 9407 */ 9408 java.util.List<java.lang.Long> getIdList(); 9409 /** 9211 * 9410 9212 * <code>repeated sint64 id = 1 [packed = true];</code> 9411 * 9213 */ 9214 int getIdCount(); 9215 /** 9412 9216 * <pre> 9413 9217 * DELTA coded 9414 9218 * </pre> 9415 */ 9416 int getIdCount(); 9417 /** 9219 * 9418 9220 * <code>repeated sint64 id = 1 [packed = true];</code> 9419 * 9221 */ 9222 long getId(int index); 9223 9224 /** 9225 * <pre> 9226 *repeated Info info = 4; 9227 * </pre> 9228 * 9229 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9230 */ 9231 boolean hasDenseinfo(); 9232 /** 9233 * <pre> 9234 *repeated Info info = 4; 9235 * </pre> 9236 * 9237 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9238 */ 9239 crosby.binary.Osmformat.DenseInfo getDenseinfo(); 9240 9241 /** 9420 9242 * <pre> 9421 9243 * DELTA coded 9422 9244 * </pre> 9423 */ 9424 long getId(int index); 9425 9426 /** 9427 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9428 * 9429 * <pre> 9430 *repeated Info info = 4; 9431 * </pre> 9432 */ 9433 boolean hasDenseinfo(); 9434 /** 9435 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9436 * 9437 * <pre> 9438 *repeated Info info = 4; 9439 * </pre> 9440 */ 9441 crosby.binary.Osmformat.DenseInfo getDenseinfo(); 9442 9443 /** 9245 * 9444 9246 * <code>repeated sint64 lat = 8 [packed = true];</code> 9445 * 9247 */ 9248 java.util.List<java.lang.Long> getLatList(); 9249 /** 9446 9250 * <pre> 9447 9251 * DELTA coded 9448 9252 * </pre> 9449 */ 9450 java.util.List<java.lang.Long> getLatList(); 9451 /** 9253 * 9452 9254 * <code>repeated sint64 lat = 8 [packed = true];</code> 9453 * 9255 */ 9256 int getLatCount(); 9257 /** 9454 9258 * <pre> 9455 9259 * DELTA coded 9456 9260 * </pre> 9457 */ 9458 int getLatCount(); 9459 /** 9261 * 9460 9262 * <code>repeated sint64 lat = 8 [packed = true];</code> 9461 * 9263 */ 9264 long getLat(int index); 9265 9266 /** 9462 9267 * <pre> 9463 9268 * DELTA coded 9464 9269 * </pre> 9465 */ 9466 long getLat(int index); 9467 9468 /** 9270 * 9469 9271 * <code>repeated sint64 lon = 9 [packed = true];</code> 9470 * 9272 */ 9273 java.util.List<java.lang.Long> getLonList(); 9274 /** 9471 9275 * <pre> 9472 9276 * DELTA coded 9473 9277 * </pre> 9474 */ 9475 java.util.List<java.lang.Long> getLonList(); 9476 /** 9278 * 9477 9279 * <code>repeated sint64 lon = 9 [packed = true];</code> 9478 * 9280 */ 9281 int getLonCount(); 9282 /** 9479 9283 * <pre> 9480 9284 * DELTA coded 9481 9285 * </pre> 9482 */ 9483 int getLonCount(); 9484 /** 9286 * 9485 9287 * <code>repeated sint64 lon = 9 [packed = true];</code> 9486 *9487 * <pre>9488 * DELTA coded9489 * </pre>9490 9288 */ 9491 9289 long getLon(int index); 9492 9290 9493 9291 /** 9292 * <pre> 9293 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9294 * </pre> 9295 * 9494 9296 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9495 * 9297 */ 9298 java.util.List<java.lang.Integer> getKeysValsList(); 9299 /** 9496 9300 * <pre> 9497 9301 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9498 9302 * </pre> 9499 */ 9500 java.util.List<java.lang.Integer> getKeysValsList(); 9501 /** 9303 * 9502 9304 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9503 * 9305 */ 9306 int getKeysValsCount(); 9307 /** 9504 9308 * <pre> 9505 9309 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9506 9310 * </pre> 9507 */ 9508 int getKeysValsCount(); 9509 /** 9311 * 9510 9312 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9511 *9512 * <pre>9513 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.9514 * </pre>9515 9313 */ 9516 9314 int getKeysVals(int index); … … 9519 9317 * Protobuf type {@code OSMPBF.DenseNodes} 9520 9318 */ 9521 public static final class DenseNodes extends 9522 com.google.protobuf.GeneratedMessageLite implements 9319 public static final class DenseNodes extends 9320 com.google.protobuf.GeneratedMessageLite< 9321 DenseNodes, DenseNodes.Builder> implements 9523 9322 // @@protoc_insertion_point(message_implements:OSMPBF.DenseNodes) 9524 9323 DenseNodesOrBuilder { 9525 // Use DenseNodes.newBuilder() to construct. 9526 private DenseNodes(com.google.protobuf.GeneratedMessageLite.Builder builder) { 9527 super(builder); 9528 this.unknownFields = builder.getUnknownFields(); 9529 } 9530 private DenseNodes(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 9531 9532 private static final DenseNodes defaultInstance; 9533 public static DenseNodes getDefaultInstance() { 9534 return defaultInstance; 9535 } 9536 9537 @Override 9538 public DenseNodes getDefaultInstanceForType() { 9539 return defaultInstance; 9540 } 9541 9542 private final com.google.protobuf.ByteString unknownFields; 9543 private DenseNodes( 9544 com.google.protobuf.CodedInputStream input, 9545 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9546 throws com.google.protobuf.InvalidProtocolBufferException { 9547 initFields(); 9548 int mutable_bitField0_ = 0; 9549 com.google.protobuf.ByteString.Output unknownFieldsOutput = 9550 com.google.protobuf.ByteString.newOutput(); 9551 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 9552 com.google.protobuf.CodedOutputStream.newInstance( 9553 unknownFieldsOutput); 9554 try { 9555 boolean done = false; 9556 while (!done) { 9557 int tag = input.readTag(); 9558 switch (tag) { 9559 case 0: 9560 done = true; 9561 break; 9562 default: { 9563 if (!parseUnknownField(input, unknownFieldsCodedOutput, 9564 extensionRegistry, tag)) { 9565 done = true; 9566 } 9567 break; 9568 } 9569 case 8: { 9570 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 9571 id_ = new java.util.ArrayList<>(); 9572 mutable_bitField0_ |= 0x00000001; 9573 } 9574 id_.add(input.readSInt64()); 9575 break; 9576 } 9577 case 10: { 9578 int length = input.readRawVarint32(); 9579 int limit = input.pushLimit(length); 9580 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { 9581 id_ = new java.util.ArrayList<>(); 9582 mutable_bitField0_ |= 0x00000001; 9583 } 9584 while (input.getBytesUntilLimit() > 0) { 9585 id_.add(input.readSInt64()); 9586 } 9587 input.popLimit(limit); 9588 break; 9589 } 9590 case 42: { 9591 crosby.binary.Osmformat.DenseInfo.Builder subBuilder = null; 9592 if (((bitField0_ & 0x00000001) == 0x00000001)) { 9593 subBuilder = denseinfo_.toBuilder(); 9594 } 9595 denseinfo_ = input.readMessage(crosby.binary.Osmformat.DenseInfo.PARSER, extensionRegistry); 9596 if (subBuilder != null) { 9597 subBuilder.mergeFrom(denseinfo_); 9598 denseinfo_ = subBuilder.buildPartial(); 9599 } 9600 bitField0_ |= 0x00000001; 9601 break; 9602 } 9603 case 64: { 9604 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 9605 lat_ = new java.util.ArrayList<>(); 9606 mutable_bitField0_ |= 0x00000004; 9607 } 9608 lat_.add(input.readSInt64()); 9609 break; 9610 } 9611 case 66: { 9612 int length = input.readRawVarint32(); 9613 int limit = input.pushLimit(length); 9614 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { 9615 lat_ = new java.util.ArrayList<>(); 9616 mutable_bitField0_ |= 0x00000004; 9617 } 9618 while (input.getBytesUntilLimit() > 0) { 9619 lat_.add(input.readSInt64()); 9620 } 9621 input.popLimit(limit); 9622 break; 9623 } 9624 case 72: { 9625 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 9626 lon_ = new java.util.ArrayList<>(); 9627 mutable_bitField0_ |= 0x00000008; 9628 } 9629 lon_.add(input.readSInt64()); 9630 break; 9631 } 9632 case 74: { 9633 int length = input.readRawVarint32(); 9634 int limit = input.pushLimit(length); 9635 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { 9636 lon_ = new java.util.ArrayList<>(); 9637 mutable_bitField0_ |= 0x00000008; 9638 } 9639 while (input.getBytesUntilLimit() > 0) { 9640 lon_.add(input.readSInt64()); 9641 } 9642 input.popLimit(limit); 9643 break; 9644 } 9645 case 80: { 9646 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 9647 keysVals_ = new java.util.ArrayList<>(); 9648 mutable_bitField0_ |= 0x00000010; 9649 } 9650 keysVals_.add(input.readInt32()); 9651 break; 9652 } 9653 case 82: { 9654 int length = input.readRawVarint32(); 9655 int limit = input.pushLimit(length); 9656 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { 9657 keysVals_ = new java.util.ArrayList<>(); 9658 mutable_bitField0_ |= 0x00000010; 9659 } 9660 while (input.getBytesUntilLimit() > 0) { 9661 keysVals_.add(input.readInt32()); 9662 } 9663 input.popLimit(limit); 9664 break; 9665 } 9666 } 9667 } 9668 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9669 throw e.setUnfinishedMessage(this); 9670 } catch (java.io.IOException e) { 9671 throw new com.google.protobuf.InvalidProtocolBufferException( 9672 e.getMessage()).setUnfinishedMessage(this); 9673 } finally { 9674 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 9675 id_ = java.util.Collections.unmodifiableList(id_); 9676 } 9677 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 9678 lat_ = java.util.Collections.unmodifiableList(lat_); 9679 } 9680 if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 9681 lon_ = java.util.Collections.unmodifiableList(lon_); 9682 } 9683 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 9684 keysVals_ = java.util.Collections.unmodifiableList(keysVals_); 9685 } 9686 try { 9687 unknownFieldsCodedOutput.flush(); 9688 } catch (java.io.IOException e) { 9689 // Should not happen 9690 } finally { 9691 unknownFields = unknownFieldsOutput.toByteString(); 9692 } 9693 makeExtensionsImmutable(); 9694 } 9695 } 9696 public static com.google.protobuf.Parser<DenseNodes> PARSER = 9697 new com.google.protobuf.AbstractParser<DenseNodes>() { 9698 @Override 9699 public DenseNodes parsePartialFrom( 9700 com.google.protobuf.CodedInputStream input, 9701 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9702 throws com.google.protobuf.InvalidProtocolBufferException { 9703 return new DenseNodes(input, extensionRegistry); 9704 } 9705 }; 9706 9707 @java.lang.Override 9708 public com.google.protobuf.Parser<DenseNodes> getParserForType() { 9709 return PARSER; 9710 } 9711 9324 private DenseNodes() { 9325 id_ = emptyLongList(); 9326 lat_ = emptyLongList(); 9327 lon_ = emptyLongList(); 9328 keysVals_ = emptyIntList(); 9329 } 9712 9330 private int bitField0_; 9713 9331 public static final int ID_FIELD_NUMBER = 1; 9714 private java.util.List<java.lang.Long> id_; 9715 /** 9332 private com.google.protobuf.Internal.LongList id_; 9333 /** 9334 * <pre> 9335 * DELTA coded 9336 * </pre> 9337 * 9716 9338 * <code>repeated sint64 id = 1 [packed = true];</code> 9717 * 9718 * <pre> 9719 * DELTA coded 9720 * </pre> 9721 */ 9722 @Override 9723 public java.util.List<java.lang.Long> 9339 */ 9340 public java.util.List<java.lang.Long> 9724 9341 getIdList() { 9725 9342 return id_; 9726 9343 } 9727 9344 /** 9345 * <pre> 9346 * DELTA coded 9347 * </pre> 9348 * 9728 9349 * <code>repeated sint64 id = 1 [packed = true];</code> 9729 * 9350 */ 9351 public int getIdCount() { 9352 return id_.size(); 9353 } 9354 /** 9730 9355 * <pre> 9731 9356 * DELTA coded 9732 9357 * </pre> 9733 */ 9734 @Override 9735 public int getIdCount() { 9736 return id_.size(); 9737 } 9738 /** 9358 * 9739 9359 * <code>repeated sint64 id = 1 [packed = true];</code> 9740 * 9360 */ 9361 public long getId(int index) { 9362 return id_.getLong(index); 9363 } 9364 private int idMemoizedSerializedSize = -1; 9365 private void ensureIdIsMutable() { 9366 if (!id_.isModifiable()) { 9367 id_ = 9368 com.google.protobuf.GeneratedMessageLite.mutableCopy(id_); 9369 } 9370 } 9371 /** 9741 9372 * <pre> 9742 9373 * DELTA coded 9743 9374 * </pre> 9744 */ 9745 @Override 9746 public long getId(int index) { 9747 return id_.get(index); 9748 } 9749 private int idMemoizedSerializedSize = -1; 9375 * 9376 * <code>repeated sint64 id = 1 [packed = true];</code> 9377 */ 9378 private void setId( 9379 int index, long value) { 9380 ensureIdIsMutable(); 9381 id_.setLong(index, value); 9382 } 9383 /** 9384 * <pre> 9385 * DELTA coded 9386 * </pre> 9387 * 9388 * <code>repeated sint64 id = 1 [packed = true];</code> 9389 */ 9390 private void addId(long value) { 9391 ensureIdIsMutable(); 9392 id_.addLong(value); 9393 } 9394 /** 9395 * <pre> 9396 * DELTA coded 9397 * </pre> 9398 * 9399 * <code>repeated sint64 id = 1 [packed = true];</code> 9400 */ 9401 private void addAllId( 9402 java.lang.Iterable<? extends java.lang.Long> values) { 9403 ensureIdIsMutable(); 9404 com.google.protobuf.AbstractMessageLite.addAll( 9405 values, id_); 9406 } 9407 /** 9408 * <pre> 9409 * DELTA coded 9410 * </pre> 9411 * 9412 * <code>repeated sint64 id = 1 [packed = true];</code> 9413 */ 9414 private void clearId() { 9415 id_ = emptyLongList(); 9416 } 9750 9417 9751 9418 public static final int DENSEINFO_FIELD_NUMBER = 5; 9752 9419 private crosby.binary.Osmformat.DenseInfo denseinfo_; 9753 9420 /** 9421 * <pre> 9422 *repeated Info info = 4; 9423 * </pre> 9424 * 9754 9425 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9755 * 9426 */ 9427 public boolean hasDenseinfo() { 9428 return ((bitField0_ & 0x00000001) == 0x00000001); 9429 } 9430 /** 9756 9431 * <pre> 9757 9432 *repeated Info info = 4; 9758 9433 * </pre> 9759 */ 9760 @Override 9761 public boolean hasDenseinfo() { 9762 return ((bitField0_ & 0x00000001) == 0x00000001); 9763 } 9764 /** 9434 * 9765 9435 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9766 * 9436 */ 9437 public crosby.binary.Osmformat.DenseInfo getDenseinfo() { 9438 return denseinfo_ == null ? crosby.binary.Osmformat.DenseInfo.getDefaultInstance() : denseinfo_; 9439 } 9440 /** 9767 9441 * <pre> 9768 9442 *repeated Info info = 4; 9769 9443 * </pre> 9770 */ 9771 @Override 9772 public crosby.binary.Osmformat.DenseInfo getDenseinfo() { 9773 return denseinfo_; 9444 * 9445 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9446 */ 9447 private void setDenseinfo(crosby.binary.Osmformat.DenseInfo value) { 9448 if (value == null) { 9449 throw new NullPointerException(); 9450 } 9451 denseinfo_ = value; 9452 bitField0_ |= 0x00000001; 9453 } 9454 /** 9455 * <pre> 9456 *repeated Info info = 4; 9457 * </pre> 9458 * 9459 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9460 */ 9461 private void setDenseinfo( 9462 crosby.binary.Osmformat.DenseInfo.Builder builderForValue) { 9463 denseinfo_ = builderForValue.build(); 9464 bitField0_ |= 0x00000001; 9465 } 9466 /** 9467 * <pre> 9468 *repeated Info info = 4; 9469 * </pre> 9470 * 9471 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9472 */ 9473 private void mergeDenseinfo(crosby.binary.Osmformat.DenseInfo value) { 9474 if (denseinfo_ != null && 9475 denseinfo_ != crosby.binary.Osmformat.DenseInfo.getDefaultInstance()) { 9476 denseinfo_ = 9477 crosby.binary.Osmformat.DenseInfo.newBuilder(denseinfo_).mergeFrom(value).buildPartial(); 9478 } else { 9479 denseinfo_ = value; 9480 } 9481 bitField0_ |= 0x00000001; 9482 } 9483 /** 9484 * <pre> 9485 *repeated Info info = 4; 9486 * </pre> 9487 * 9488 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9489 */ 9490 private void clearDenseinfo() { denseinfo_ = null; 9491 bitField0_ = (bitField0_ & ~0x00000001); 9774 9492 } 9775 9493 9776 9494 public static final int LAT_FIELD_NUMBER = 8; 9777 private java.util.List<java.lang.Long> lat_; 9778 /** 9495 private com.google.protobuf.Internal.LongList lat_; 9496 /** 9497 * <pre> 9498 * DELTA coded 9499 * </pre> 9500 * 9779 9501 * <code>repeated sint64 lat = 8 [packed = true];</code> 9780 * 9781 * <pre> 9782 * DELTA coded 9783 * </pre> 9784 */ 9785 @Override 9786 public java.util.List<java.lang.Long> 9502 */ 9503 public java.util.List<java.lang.Long> 9787 9504 getLatList() { 9788 9505 return lat_; 9789 9506 } 9790 9507 /** 9508 * <pre> 9509 * DELTA coded 9510 * </pre> 9511 * 9791 9512 * <code>repeated sint64 lat = 8 [packed = true];</code> 9792 * 9513 */ 9514 public int getLatCount() { 9515 return lat_.size(); 9516 } 9517 /** 9793 9518 * <pre> 9794 9519 * DELTA coded 9795 9520 * </pre> 9796 */ 9797 @Override 9798 public int getLatCount() { 9799 return lat_.size(); 9800 } 9801 /** 9521 * 9802 9522 * <code>repeated sint64 lat = 8 [packed = true];</code> 9803 * 9523 */ 9524 public long getLat(int index) { 9525 return lat_.getLong(index); 9526 } 9527 private int latMemoizedSerializedSize = -1; 9528 private void ensureLatIsMutable() { 9529 if (!lat_.isModifiable()) { 9530 lat_ = 9531 com.google.protobuf.GeneratedMessageLite.mutableCopy(lat_); 9532 } 9533 } 9534 /** 9804 9535 * <pre> 9805 9536 * DELTA coded 9806 9537 * </pre> 9807 */ 9808 @Override 9809 public long getLat(int index) { 9810 return lat_.get(index); 9811 } 9812 private int latMemoizedSerializedSize = -1; 9538 * 9539 * <code>repeated sint64 lat = 8 [packed = true];</code> 9540 */ 9541 private void setLat( 9542 int index, long value) { 9543 ensureLatIsMutable(); 9544 lat_.setLong(index, value); 9545 } 9546 /** 9547 * <pre> 9548 * DELTA coded 9549 * </pre> 9550 * 9551 * <code>repeated sint64 lat = 8 [packed = true];</code> 9552 */ 9553 private void addLat(long value) { 9554 ensureLatIsMutable(); 9555 lat_.addLong(value); 9556 } 9557 /** 9558 * <pre> 9559 * DELTA coded 9560 * </pre> 9561 * 9562 * <code>repeated sint64 lat = 8 [packed = true];</code> 9563 */ 9564 private void addAllLat( 9565 java.lang.Iterable<? extends java.lang.Long> values) { 9566 ensureLatIsMutable(); 9567 com.google.protobuf.AbstractMessageLite.addAll( 9568 values, lat_); 9569 } 9570 /** 9571 * <pre> 9572 * DELTA coded 9573 * </pre> 9574 * 9575 * <code>repeated sint64 lat = 8 [packed = true];</code> 9576 */ 9577 private void clearLat() { 9578 lat_ = emptyLongList(); 9579 } 9813 9580 9814 9581 public static final int LON_FIELD_NUMBER = 9; 9815 private java.util.List<java.lang.Long> lon_; 9816 /** 9582 private com.google.protobuf.Internal.LongList lon_; 9583 /** 9584 * <pre> 9585 * DELTA coded 9586 * </pre> 9587 * 9817 9588 * <code>repeated sint64 lon = 9 [packed = true];</code> 9818 * 9819 * <pre> 9820 * DELTA coded 9821 * </pre> 9822 */ 9823 @Override 9824 public java.util.List<java.lang.Long> 9589 */ 9590 public java.util.List<java.lang.Long> 9825 9591 getLonList() { 9826 9592 return lon_; 9827 9593 } 9828 9594 /** 9595 * <pre> 9596 * DELTA coded 9597 * </pre> 9598 * 9829 9599 * <code>repeated sint64 lon = 9 [packed = true];</code> 9830 * 9600 */ 9601 public int getLonCount() { 9602 return lon_.size(); 9603 } 9604 /** 9831 9605 * <pre> 9832 9606 * DELTA coded 9833 9607 * </pre> 9834 */ 9835 @Override 9836 public int getLonCount() { 9837 return lon_.size(); 9838 } 9839 /** 9608 * 9840 9609 * <code>repeated sint64 lon = 9 [packed = true];</code> 9841 * 9610 */ 9611 public long getLon(int index) { 9612 return lon_.getLong(index); 9613 } 9614 private int lonMemoizedSerializedSize = -1; 9615 private void ensureLonIsMutable() { 9616 if (!lon_.isModifiable()) { 9617 lon_ = 9618 com.google.protobuf.GeneratedMessageLite.mutableCopy(lon_); 9619 } 9620 } 9621 /** 9842 9622 * <pre> 9843 9623 * DELTA coded 9844 9624 * </pre> 9845 */ 9846 @Override 9847 public long getLon(int index) { 9848 return lon_.get(index); 9849 } 9850 private int lonMemoizedSerializedSize = -1; 9625 * 9626 * <code>repeated sint64 lon = 9 [packed = true];</code> 9627 */ 9628 private void setLon( 9629 int index, long value) { 9630 ensureLonIsMutable(); 9631 lon_.setLong(index, value); 9632 } 9633 /** 9634 * <pre> 9635 * DELTA coded 9636 * </pre> 9637 * 9638 * <code>repeated sint64 lon = 9 [packed = true];</code> 9639 */ 9640 private void addLon(long value) { 9641 ensureLonIsMutable(); 9642 lon_.addLong(value); 9643 } 9644 /** 9645 * <pre> 9646 * DELTA coded 9647 * </pre> 9648 * 9649 * <code>repeated sint64 lon = 9 [packed = true];</code> 9650 */ 9651 private void addAllLon( 9652 java.lang.Iterable<? extends java.lang.Long> values) { 9653 ensureLonIsMutable(); 9654 com.google.protobuf.AbstractMessageLite.addAll( 9655 values, lon_); 9656 } 9657 /** 9658 * <pre> 9659 * DELTA coded 9660 * </pre> 9661 * 9662 * <code>repeated sint64 lon = 9 [packed = true];</code> 9663 */ 9664 private void clearLon() { 9665 lon_ = emptyLongList(); 9666 } 9851 9667 9852 9668 public static final int KEYS_VALS_FIELD_NUMBER = 10; 9853 private java.util.List<java.lang.Integer> keysVals_; 9854 /** 9669 private com.google.protobuf.Internal.IntList keysVals_; 9670 /** 9671 * <pre> 9672 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9673 * </pre> 9674 * 9855 9675 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9856 * 9857 * <pre> 9858 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9859 * </pre> 9860 */ 9861 @Override 9862 public java.util.List<java.lang.Integer> 9676 */ 9677 public java.util.List<java.lang.Integer> 9863 9678 getKeysValsList() { 9864 9679 return keysVals_; 9865 9680 } 9866 9681 /** 9682 * <pre> 9683 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9684 * </pre> 9685 * 9867 9686 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9868 * 9687 */ 9688 public int getKeysValsCount() { 9689 return keysVals_.size(); 9690 } 9691 /** 9869 9692 * <pre> 9870 9693 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9871 9694 * </pre> 9872 */ 9873 @Override 9874 public int getKeysValsCount() { 9875 return keysVals_.size(); 9876 } 9877 /** 9695 * 9878 9696 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9879 * 9697 */ 9698 public int getKeysVals(int index) { 9699 return keysVals_.getInt(index); 9700 } 9701 private int keysValsMemoizedSerializedSize = -1; 9702 private void ensureKeysValsIsMutable() { 9703 if (!keysVals_.isModifiable()) { 9704 keysVals_ = 9705 com.google.protobuf.GeneratedMessageLite.mutableCopy(keysVals_); 9706 } 9707 } 9708 /** 9880 9709 * <pre> 9881 9710 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9882 9711 * </pre> 9883 */ 9884 @Override 9885 public int getKeysVals(int index) { 9886 return keysVals_.get(index); 9887 } 9888 private int keysValsMemoizedSerializedSize = -1; 9889 9890 private void initFields() { 9891 id_ = java.util.Collections.emptyList(); 9892 denseinfo_ = crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 9893 lat_ = java.util.Collections.emptyList(); 9894 lon_ = java.util.Collections.emptyList(); 9895 keysVals_ = java.util.Collections.emptyList(); 9896 } 9897 private byte memoizedIsInitialized = -1; 9898 @Override 9899 public final boolean isInitialized() { 9900 byte isInitialized = memoizedIsInitialized; 9901 if (isInitialized == 1) return true; 9902 if (isInitialized == 0) return false; 9903 9904 memoizedIsInitialized = 1; 9905 return true; 9906 } 9907 9908 @Override 9909 public void writeTo(com.google.protobuf.CodedOutputStream output) 9712 * 9713 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9714 */ 9715 private void setKeysVals( 9716 int index, int value) { 9717 ensureKeysValsIsMutable(); 9718 keysVals_.setInt(index, value); 9719 } 9720 /** 9721 * <pre> 9722 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9723 * </pre> 9724 * 9725 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9726 */ 9727 private void addKeysVals(int value) { 9728 ensureKeysValsIsMutable(); 9729 keysVals_.addInt(value); 9730 } 9731 /** 9732 * <pre> 9733 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9734 * </pre> 9735 * 9736 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9737 */ 9738 private void addAllKeysVals( 9739 java.lang.Iterable<? extends java.lang.Integer> values) { 9740 ensureKeysValsIsMutable(); 9741 com.google.protobuf.AbstractMessageLite.addAll( 9742 values, keysVals_); 9743 } 9744 /** 9745 * <pre> 9746 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9747 * </pre> 9748 * 9749 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9750 */ 9751 private void clearKeysVals() { 9752 keysVals_ = emptyIntList(); 9753 } 9754 9755 public void writeTo(com.google.protobuf.CodedOutputStream output) 9910 9756 throws java.io.IOException { 9911 9757 getSerializedSize(); 9912 9758 if (getIdList().size() > 0) { 9913 output.write RawVarint32(10);9914 output.write RawVarint32(idMemoizedSerializedSize);9759 output.writeUInt32NoTag(10); 9760 output.writeUInt32NoTag(idMemoizedSerializedSize); 9915 9761 } 9916 9762 for (int i = 0; i < id_.size(); i++) { 9917 output.writeSInt64NoTag(id_.get(i)); 9763 output.writeSInt64NoTag(id_.getLong(i)); 9918 9764 } 9919 9765 if (((bitField0_ & 0x00000001) == 0x00000001)) { 9920 output.writeMessage(5, denseinfo_);9766 output.writeMessage(5, getDenseinfo()); 9921 9767 } 9922 9768 if (getLatList().size() > 0) { 9923 output.write RawVarint32(66);9924 output.write RawVarint32(latMemoizedSerializedSize);9769 output.writeUInt32NoTag(66); 9770 output.writeUInt32NoTag(latMemoizedSerializedSize); 9925 9771 } 9926 9772 for (int i = 0; i < lat_.size(); i++) { 9927 output.writeSInt64NoTag(lat_.get(i)); 9773 output.writeSInt64NoTag(lat_.getLong(i)); 9928 9774 } 9929 9775 if (getLonList().size() > 0) { 9930 output.write RawVarint32(74);9931 output.write RawVarint32(lonMemoizedSerializedSize);9776 output.writeUInt32NoTag(74); 9777 output.writeUInt32NoTag(lonMemoizedSerializedSize); 9932 9778 } 9933 9779 for (int i = 0; i < lon_.size(); i++) { 9934 output.writeSInt64NoTag(lon_.get(i)); 9780 output.writeSInt64NoTag(lon_.getLong(i)); 9935 9781 } 9936 9782 if (getKeysValsList().size() > 0) { 9937 output.write RawVarint32(82);9938 output.write RawVarint32(keysValsMemoizedSerializedSize);9783 output.writeUInt32NoTag(82); 9784 output.writeUInt32NoTag(keysValsMemoizedSerializedSize); 9939 9785 } 9940 9786 for (int i = 0; i < keysVals_.size(); i++) { 9941 output.writeInt32NoTag(keysVals_.get(i)); 9942 } 9943 output.writeRawBytes(unknownFields); 9944 } 9945 9946 private int memoizedSerializedSize = -1; 9947 @Override 9948 public int getSerializedSize() { 9787 output.writeInt32NoTag(keysVals_.getInt(i)); 9788 } 9789 unknownFields.writeTo(output); 9790 } 9791 9792 public int getSerializedSize() { 9949 9793 int size = memoizedSerializedSize; 9950 9794 if (size != -1) return size; … … 9955 9799 for (int i = 0; i < id_.size(); i++) { 9956 9800 dataSize += com.google.protobuf.CodedOutputStream 9957 .computeSInt64SizeNoTag(id_.get(i)); 9801 .computeSInt64SizeNoTag(id_.getLong(i)); 9958 9802 } 9959 9803 size += dataSize; … … 9967 9811 if (((bitField0_ & 0x00000001) == 0x00000001)) { 9968 9812 size += com.google.protobuf.CodedOutputStream 9969 .computeMessageSize(5, denseinfo_);9813 .computeMessageSize(5, getDenseinfo()); 9970 9814 } 9971 9815 { … … 9973 9817 for (int i = 0; i < lat_.size(); i++) { 9974 9818 dataSize += com.google.protobuf.CodedOutputStream 9975 .computeSInt64SizeNoTag(lat_.get(i)); 9819 .computeSInt64SizeNoTag(lat_.getLong(i)); 9976 9820 } 9977 9821 size += dataSize; … … 9987 9831 for (int i = 0; i < lon_.size(); i++) { 9988 9832 dataSize += com.google.protobuf.CodedOutputStream 9989 .computeSInt64SizeNoTag(lon_.get(i)); 9833 .computeSInt64SizeNoTag(lon_.getLong(i)); 9990 9834 } 9991 9835 size += dataSize; … … 10001 9845 for (int i = 0; i < keysVals_.size(); i++) { 10002 9846 dataSize += com.google.protobuf.CodedOutputStream 10003 .computeInt32SizeNoTag(keysVals_.get(i)); 9847 .computeInt32SizeNoTag(keysVals_.getInt(i)); 10004 9848 } 10005 9849 size += dataSize; … … 10011 9855 keysValsMemoizedSerializedSize = dataSize; 10012 9856 } 10013 size += unknownFields. size();9857 size += unknownFields.getSerializedSize(); 10014 9858 memoizedSerializedSize = size; 10015 9859 return size; 10016 9860 } 10017 9861 10018 private static final long serialVersionUID = 0L; 10019 @java.lang.Override 10020 protected java.lang.Object writeReplace() 10021 throws java.io.ObjectStreamException { 10022 return super.writeReplace(); 10023 } 10024 9862 public static crosby.binary.Osmformat.DenseNodes parseFrom( 9863 java.nio.ByteBuffer data) 9864 throws com.google.protobuf.InvalidProtocolBufferException { 9865 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9866 DEFAULT_INSTANCE, data); 9867 } 9868 public static crosby.binary.Osmformat.DenseNodes parseFrom( 9869 java.nio.ByteBuffer data, 9870 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9871 throws com.google.protobuf.InvalidProtocolBufferException { 9872 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9873 DEFAULT_INSTANCE, data, extensionRegistry); 9874 } 10025 9875 public static crosby.binary.Osmformat.DenseNodes parseFrom( 10026 9876 com.google.protobuf.ByteString data) 10027 9877 throws com.google.protobuf.InvalidProtocolBufferException { 10028 return PARSER.parseFrom(data); 9878 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9879 DEFAULT_INSTANCE, data); 10029 9880 } 10030 9881 public static crosby.binary.Osmformat.DenseNodes parseFrom( … … 10032 9883 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10033 9884 throws com.google.protobuf.InvalidProtocolBufferException { 10034 return PARSER.parseFrom(data, extensionRegistry); 9885 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9886 DEFAULT_INSTANCE, data, extensionRegistry); 10035 9887 } 10036 9888 public static crosby.binary.Osmformat.DenseNodes parseFrom(byte[] data) 10037 9889 throws com.google.protobuf.InvalidProtocolBufferException { 10038 return PARSER.parseFrom(data); 9890 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9891 DEFAULT_INSTANCE, data); 10039 9892 } 10040 9893 public static crosby.binary.Osmformat.DenseNodes parseFrom( … … 10042 9895 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10043 9896 throws com.google.protobuf.InvalidProtocolBufferException { 10044 return PARSER.parseFrom(data, extensionRegistry); 9897 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9898 DEFAULT_INSTANCE, data, extensionRegistry); 10045 9899 } 10046 9900 public static crosby.binary.Osmformat.DenseNodes parseFrom(java.io.InputStream input) 10047 9901 throws java.io.IOException { 10048 return PARSER.parseFrom(input); 9902 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9903 DEFAULT_INSTANCE, input); 10049 9904 } 10050 9905 public static crosby.binary.Osmformat.DenseNodes parseFrom( … … 10052 9907 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10053 9908 throws java.io.IOException { 10054 return PARSER.parseFrom(input, extensionRegistry); 9909 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9910 DEFAULT_INSTANCE, input, extensionRegistry); 10055 9911 } 10056 9912 public static crosby.binary.Osmformat.DenseNodes parseDelimitedFrom(java.io.InputStream input) 10057 9913 throws java.io.IOException { 10058 return PARSER.parseDelimitedFrom(input);9914 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 10059 9915 } 10060 9916 public static crosby.binary.Osmformat.DenseNodes parseDelimitedFrom( … … 10062 9918 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10063 9919 throws java.io.IOException { 10064 return PARSER.parseDelimitedFrom(input, extensionRegistry);9920 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 10065 9921 } 10066 9922 public static crosby.binary.Osmformat.DenseNodes parseFrom( 10067 9923 com.google.protobuf.CodedInputStream input) 10068 9924 throws java.io.IOException { 10069 return PARSER.parseFrom(input); 9925 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9926 DEFAULT_INSTANCE, input); 10070 9927 } 10071 9928 public static crosby.binary.Osmformat.DenseNodes parseFrom( … … 10073 9930 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10074 9931 throws java.io.IOException { 10075 return PARSER.parseFrom(input, extensionRegistry); 10076 } 10077 10078 public static Builder newBuilder() { return Builder.create(); } 10079 @Override 10080 public Builder newBuilderForType() { return newBuilder(); } 9932 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9933 DEFAULT_INSTANCE, input, extensionRegistry); 9934 } 9935 9936 public static Builder newBuilder() { 9937 return DEFAULT_INSTANCE.toBuilder(); 9938 } 10081 9939 public static Builder newBuilder(crosby.binary.Osmformat.DenseNodes prototype) { 10082 return newBuilder().mergeFrom(prototype); 10083 } 10084 @Override 10085 public Builder toBuilder() { return newBuilder(this); } 9940 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 9941 } 10086 9942 10087 9943 /** … … 10090 9946 public static final class Builder extends 10091 9947 com.google.protobuf.GeneratedMessageLite.Builder< 10092 crosby.binary.Osmformat.DenseNodes, Builder> 10093 implements 9948 crosby.binary.Osmformat.DenseNodes, Builder> implements 10094 9949 // @@protoc_insertion_point(builder_implements:OSMPBF.DenseNodes) 10095 9950 crosby.binary.Osmformat.DenseNodesOrBuilder { 10096 9951 // Construct using crosby.binary.Osmformat.DenseNodes.newBuilder() 10097 9952 private Builder() { 10098 maybeForceBuilderInitialization(); 10099 } 10100 10101 private void maybeForceBuilderInitialization() { 10102 } 10103 private static Builder create() { 10104 return new Builder(); 10105 } 10106 10107 @Override 10108 public Builder clear() { 10109 super.clear(); 10110 id_ = java.util.Collections.emptyList(); 10111 bitField0_ = (bitField0_ & ~0x00000001); 10112 denseinfo_ = crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 10113 bitField0_ = (bitField0_ & ~0x00000002); 10114 lat_ = java.util.Collections.emptyList(); 10115 bitField0_ = (bitField0_ & ~0x00000004); 10116 lon_ = java.util.Collections.emptyList(); 10117 bitField0_ = (bitField0_ & ~0x00000008); 10118 keysVals_ = java.util.Collections.emptyList(); 10119 bitField0_ = (bitField0_ & ~0x00000010); 10120 return this; 10121 } 10122 10123 @Override 10124 public Builder clone() { 10125 return create().mergeFrom(buildPartial()); 10126 } 10127 10128 @Override 10129 public crosby.binary.Osmformat.DenseNodes getDefaultInstanceForType() { 10130 return crosby.binary.Osmformat.DenseNodes.getDefaultInstance(); 10131 } 10132 10133 @Override 10134 public crosby.binary.Osmformat.DenseNodes build() { 10135 crosby.binary.Osmformat.DenseNodes result = buildPartial(); 10136 if (!result.isInitialized()) { 10137 throw newUninitializedMessageException(result); 10138 } 10139 return result; 10140 } 10141 10142 @Override 10143 public crosby.binary.Osmformat.DenseNodes buildPartial() { 10144 crosby.binary.Osmformat.DenseNodes result = new crosby.binary.Osmformat.DenseNodes(this); 10145 int from_bitField0_ = bitField0_; 10146 int to_bitField0_ = 0; 10147 if (((bitField0_ & 0x00000001) == 0x00000001)) { 10148 id_ = java.util.Collections.unmodifiableList(id_); 10149 bitField0_ = (bitField0_ & ~0x00000001); 10150 } 10151 result.id_ = id_; 10152 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 10153 to_bitField0_ |= 0x00000001; 10154 } 10155 result.denseinfo_ = denseinfo_; 10156 if (((bitField0_ & 0x00000004) == 0x00000004)) { 10157 lat_ = java.util.Collections.unmodifiableList(lat_); 10158 bitField0_ = (bitField0_ & ~0x00000004); 10159 } 10160 result.lat_ = lat_; 10161 if (((bitField0_ & 0x00000008) == 0x00000008)) { 10162 lon_ = java.util.Collections.unmodifiableList(lon_); 10163 bitField0_ = (bitField0_ & ~0x00000008); 10164 } 10165 result.lon_ = lon_; 10166 if (((bitField0_ & 0x00000010) == 0x00000010)) { 10167 keysVals_ = java.util.Collections.unmodifiableList(keysVals_); 10168 bitField0_ = (bitField0_ & ~0x00000010); 10169 } 10170 result.keysVals_ = keysVals_; 10171 result.bitField0_ = to_bitField0_; 10172 return result; 10173 } 10174 10175 @Override 10176 public Builder mergeFrom(crosby.binary.Osmformat.DenseNodes other) { 10177 if (other == crosby.binary.Osmformat.DenseNodes.getDefaultInstance()) return this; 10178 if (!other.id_.isEmpty()) { 10179 if (id_.isEmpty()) { 10180 id_ = other.id_; 10181 bitField0_ = (bitField0_ & ~0x00000001); 10182 } else { 10183 ensureIdIsMutable(); 10184 id_.addAll(other.id_); 10185 } 10186 10187 } 10188 if (other.hasDenseinfo()) { 10189 mergeDenseinfo(other.getDenseinfo()); 10190 } 10191 if (!other.lat_.isEmpty()) { 10192 if (lat_.isEmpty()) { 10193 lat_ = other.lat_; 10194 bitField0_ = (bitField0_ & ~0x00000004); 10195 } else { 10196 ensureLatIsMutable(); 10197 lat_.addAll(other.lat_); 10198 } 10199 10200 } 10201 if (!other.lon_.isEmpty()) { 10202 if (lon_.isEmpty()) { 10203 lon_ = other.lon_; 10204 bitField0_ = (bitField0_ & ~0x00000008); 10205 } else { 10206 ensureLonIsMutable(); 10207 lon_.addAll(other.lon_); 10208 } 10209 10210 } 10211 if (!other.keysVals_.isEmpty()) { 10212 if (keysVals_.isEmpty()) { 10213 keysVals_ = other.keysVals_; 10214 bitField0_ = (bitField0_ & ~0x00000010); 10215 } else { 10216 ensureKeysValsIsMutable(); 10217 keysVals_.addAll(other.keysVals_); 10218 } 10219 10220 } 10221 setUnknownFields( 10222 getUnknownFields().concat(other.unknownFields)); 10223 return this; 10224 } 10225 10226 @Override 10227 public final boolean isInitialized() { 10228 return true; 10229 } 10230 10231 @Override 10232 public Builder mergeFrom( 10233 com.google.protobuf.CodedInputStream input, 10234 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10235 throws java.io.IOException { 10236 crosby.binary.Osmformat.DenseNodes parsedMessage = null; 10237 try { 10238 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 10239 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 10240 parsedMessage = (crosby.binary.Osmformat.DenseNodes) e.getUnfinishedMessage(); 10241 throw e; 10242 } finally { 10243 if (parsedMessage != null) { 10244 mergeFrom(parsedMessage); 10245 } 10246 } 10247 return this; 10248 } 10249 private int bitField0_; 10250 10251 private java.util.List<java.lang.Long> id_ = java.util.Collections.emptyList(); 10252 private void ensureIdIsMutable() { 10253 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 10254 id_ = new java.util.ArrayList<>(id_); 10255 bitField0_ |= 0x00000001; 10256 } 10257 } 10258 /** 9953 super(DEFAULT_INSTANCE); 9954 } 9955 9956 9957 /** 9958 * <pre> 9959 * DELTA coded 9960 * </pre> 9961 * 10259 9962 * <code>repeated sint64 id = 1 [packed = true];</code> 10260 * 9963 */ 9964 public java.util.List<java.lang.Long> 9965 getIdList() { 9966 return java.util.Collections.unmodifiableList( 9967 instance.getIdList()); 9968 } 9969 /** 10261 9970 * <pre> 10262 9971 * DELTA coded 10263 9972 * </pre> 10264 */ 10265 @Override 10266 public java.util.List<java.lang.Long> 10267 getIdList() { 10268 return java.util.Collections.unmodifiableList(id_); 10269 } 10270 /** 9973 * 10271 9974 * <code>repeated sint64 id = 1 [packed = true];</code> 10272 * 9975 */ 9976 public int getIdCount() { 9977 return instance.getIdCount(); 9978 } 9979 /** 10273 9980 * <pre> 10274 9981 * DELTA coded 10275 9982 * </pre> 10276 */ 10277 @Override 10278 public int getIdCount() { 10279 return id_.size(); 10280 } 10281 /** 9983 * 10282 9984 * <code>repeated sint64 id = 1 [packed = true];</code> 10283 * 9985 */ 9986 public long getId(int index) { 9987 return instance.getId(index); 9988 } 9989 /** 10284 9990 * <pre> 10285 9991 * DELTA coded 10286 9992 * </pre> 10287 */ 10288 @Override 10289 public long getId(int index) { 10290 return id_.get(index); 10291 } 10292 /** 9993 * 10293 9994 * <code>repeated sint64 id = 1 [packed = true];</code> 10294 *10295 * <pre>10296 * DELTA coded10297 * </pre>10298 9995 */ 10299 9996 public Builder setId( 10300 9997 int index, long value) { 10301 ensureIdIsMutable(); 10302 id_.set(index, value); 10303 10304 return this; 10305 } 10306 /** 9998 copyOnWrite(); 9999 instance.setId(index, value); 10000 return this; 10001 } 10002 /** 10003 * <pre> 10004 * DELTA coded 10005 * </pre> 10006 * 10307 10007 * <code>repeated sint64 id = 1 [packed = true];</code> 10308 * 10008 */ 10009 public Builder addId(long value) { 10010 copyOnWrite(); 10011 instance.addId(value); 10012 return this; 10013 } 10014 /** 10309 10015 * <pre> 10310 10016 * DELTA coded 10311 10017 * </pre> 10312 */ 10313 public Builder addId(long value) { 10314 ensureIdIsMutable(); 10315 id_.add(value); 10316 10317 return this; 10318 } 10319 /** 10018 * 10320 10019 * <code>repeated sint64 id = 1 [packed = true];</code> 10321 *10322 * <pre>10323 * DELTA coded10324 * </pre>10325 10020 */ 10326 10021 public Builder addAllId( 10327 10022 java.lang.Iterable<? extends java.lang.Long> values) { 10328 ensureIdIsMutable(); 10329 com.google.protobuf.AbstractMessageLite.Builder.addAll( 10330 values, id_); 10331 10332 return this; 10333 } 10334 /** 10023 copyOnWrite(); 10024 instance.addAllId(values); 10025 return this; 10026 } 10027 /** 10028 * <pre> 10029 * DELTA coded 10030 * </pre> 10031 * 10335 10032 * <code>repeated sint64 id = 1 [packed = true];</code> 10336 *10337 * <pre>10338 * DELTA coded10339 * </pre>10340 10033 */ 10341 10034 public Builder clearId() { 10342 id_ = java.util.Collections.emptyList(); 10343 bitField0_ = (bitField0_ & ~0x00000001); 10344 10345 return this; 10346 } 10347 10348 private crosby.binary.Osmformat.DenseInfo denseinfo_ = crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 10349 /** 10035 copyOnWrite(); 10036 instance.clearId(); 10037 return this; 10038 } 10039 10040 /** 10041 * <pre> 10042 *repeated Info info = 4; 10043 * </pre> 10044 * 10350 10045 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 10351 * 10046 */ 10047 public boolean hasDenseinfo() { 10048 return instance.hasDenseinfo(); 10049 } 10050 /** 10352 10051 * <pre> 10353 10052 *repeated Info info = 4; 10354 10053 * </pre> 10355 */ 10356 @Override 10357 public boolean hasDenseinfo() { 10358 return ((bitField0_ & 0x00000002) == 0x00000002); 10359 } 10360 /** 10054 * 10361 10055 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 10362 * 10056 */ 10057 public crosby.binary.Osmformat.DenseInfo getDenseinfo() { 10058 return instance.getDenseinfo(); 10059 } 10060 /** 10363 10061 * <pre> 10364 10062 *repeated Info info = 4; 10365 10063 * </pre> 10366 */ 10367 @Override 10368 public crosby.binary.Osmformat.DenseInfo getDenseinfo() { 10369 return denseinfo_; 10370 } 10371 /** 10064 * 10372 10065 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 10373 * 10066 */ 10067 public Builder setDenseinfo(crosby.binary.Osmformat.DenseInfo value) { 10068 copyOnWrite(); 10069 instance.setDenseinfo(value); 10070 return this; 10071 } 10072 /** 10374 10073 * <pre> 10375 10074 *repeated Info info = 4; 10376 10075 * </pre> 10377 */ 10378 public Builder setDenseinfo(crosby.binary.Osmformat.DenseInfo value) { 10379 if (value == null) { 10380 throw new NullPointerException(); 10381 } 10382 denseinfo_ = value; 10383 10384 bitField0_ |= 0x00000002; 10385 return this; 10386 } 10387 /** 10076 * 10388 10077 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 10389 *10390 * <pre>10391 *repeated Info info = 4;10392 * </pre>10393 10078 */ 10394 10079 public Builder setDenseinfo( 10395 10080 crosby.binary.Osmformat.DenseInfo.Builder builderForValue) { 10396 denseinfo_ = builderForValue.build(); 10397 10398 bitField0_ |= 0x00000002; 10399 return this; 10400 } 10401 /** 10081 copyOnWrite(); 10082 instance.setDenseinfo(builderForValue); 10083 return this; 10084 } 10085 /** 10086 * <pre> 10087 *repeated Info info = 4; 10088 * </pre> 10089 * 10402 10090 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 10403 * 10091 */ 10092 public Builder mergeDenseinfo(crosby.binary.Osmformat.DenseInfo value) { 10093 copyOnWrite(); 10094 instance.mergeDenseinfo(value); 10095 return this; 10096 } 10097 /** 10404 10098 * <pre> 10405 10099 *repeated Info info = 4; 10406 10100 * </pre> 10407 */ 10408 public Builder mergeDenseinfo(crosby.binary.Osmformat.DenseInfo value) { 10409 if (((bitField0_ & 0x00000002) == 0x00000002) && 10410 denseinfo_ != crosby.binary.Osmformat.DenseInfo.getDefaultInstance()) { 10411 denseinfo_ = 10412 crosby.binary.Osmformat.DenseInfo.newBuilder(denseinfo_).mergeFrom(value).buildPartial(); 10413 } else { 10414 denseinfo_ = value; 10415 } 10416 10417 bitField0_ |= 0x00000002; 10418 return this; 10419 } 10420 /** 10101 * 10421 10102 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 10422 * 10423 * <pre> 10424 *repeated Info info = 4; 10425 * </pre> 10426 */ 10427 public Builder clearDenseinfo() { 10428 denseinfo_ = crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 10429 10430 bitField0_ = (bitField0_ & ~0x00000002); 10431 return this; 10432 } 10433 10434 private java.util.List<java.lang.Long> lat_ = java.util.Collections.emptyList(); 10435 private void ensureLatIsMutable() { 10436 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 10437 lat_ = new java.util.ArrayList<>(lat_); 10438 bitField0_ |= 0x00000004; 10439 } 10440 } 10441 /** 10103 */ 10104 public Builder clearDenseinfo() { copyOnWrite(); 10105 instance.clearDenseinfo(); 10106 return this; 10107 } 10108 10109 /** 10110 * <pre> 10111 * DELTA coded 10112 * </pre> 10113 * 10442 10114 * <code>repeated sint64 lat = 8 [packed = true];</code> 10443 * 10115 */ 10116 public java.util.List<java.lang.Long> 10117 getLatList() { 10118 return java.util.Collections.unmodifiableList( 10119 instance.getLatList()); 10120 } 10121 /** 10444 10122 * <pre> 10445 10123 * DELTA coded 10446 10124 * </pre> 10447 */ 10448 @Override 10449 public java.util.List<java.lang.Long> 10450 getLatList() { 10451 return java.util.Collections.unmodifiableList(lat_); 10452 } 10453 /** 10125 * 10454 10126 * <code>repeated sint64 lat = 8 [packed = true];</code> 10455 * 10127 */ 10128 public int getLatCount() { 10129 return instance.getLatCount(); 10130 } 10131 /** 10456 10132 * <pre> 10457 10133 * DELTA coded 10458 10134 * </pre> 10459 */ 10460 @Override 10461 public int getLatCount() { 10462 return lat_.size(); 10463 } 10464 /** 10135 * 10465 10136 * <code>repeated sint64 lat = 8 [packed = true];</code> 10466 * 10137 */ 10138 public long getLat(int index) { 10139 return instance.getLat(index); 10140 } 10141 /** 10467 10142 * <pre> 10468 10143 * DELTA coded 10469 10144 * </pre> 10470 */ 10471 @Override 10472 public long getLat(int index) { 10473 return lat_.get(index); 10474 } 10475 /** 10145 * 10476 10146 * <code>repeated sint64 lat = 8 [packed = true];</code> 10477 *10478 * <pre>10479 * DELTA coded10480 * </pre>10481 10147 */ 10482 10148 public Builder setLat( 10483 10149 int index, long value) { 10484 ensureLatIsMutable(); 10485 lat_.set(index, value); 10486 10487 return this; 10488 } 10489 /** 10150 copyOnWrite(); 10151 instance.setLat(index, value); 10152 return this; 10153 } 10154 /** 10155 * <pre> 10156 * DELTA coded 10157 * </pre> 10158 * 10490 10159 * <code>repeated sint64 lat = 8 [packed = true];</code> 10491 * 10160 */ 10161 public Builder addLat(long value) { 10162 copyOnWrite(); 10163 instance.addLat(value); 10164 return this; 10165 } 10166 /** 10492 10167 * <pre> 10493 10168 * DELTA coded 10494 10169 * </pre> 10495 */ 10496 public Builder addLat(long value) { 10497 ensureLatIsMutable(); 10498 lat_.add(value); 10499 10500 return this; 10501 } 10502 /** 10170 * 10503 10171 * <code>repeated sint64 lat = 8 [packed = true];</code> 10504 *10505 * <pre>10506 * DELTA coded10507 * </pre>10508 10172 */ 10509 10173 public Builder addAllLat( 10510 10174 java.lang.Iterable<? extends java.lang.Long> values) { 10511 ensureLatIsMutable(); 10512 com.google.protobuf.AbstractMessageLite.Builder.addAll( 10513 values, lat_); 10514 10515 return this; 10516 } 10517 /** 10175 copyOnWrite(); 10176 instance.addAllLat(values); 10177 return this; 10178 } 10179 /** 10180 * <pre> 10181 * DELTA coded 10182 * </pre> 10183 * 10518 10184 * <code>repeated sint64 lat = 8 [packed = true];</code> 10519 * 10185 */ 10186 public Builder clearLat() { 10187 copyOnWrite(); 10188 instance.clearLat(); 10189 return this; 10190 } 10191 10192 /** 10520 10193 * <pre> 10521 10194 * DELTA coded 10522 10195 * </pre> 10523 */ 10524 public Builder clearLat() { 10525 lat_ = java.util.Collections.emptyList(); 10526 bitField0_ = (bitField0_ & ~0x00000004); 10527 10528 return this; 10529 } 10530 10531 private java.util.List<java.lang.Long> lon_ = java.util.Collections.emptyList(); 10532 private void ensureLonIsMutable() { 10533 if (!((bitField0_ & 0x00000008) == 0x00000008)) { 10534 lon_ = new java.util.ArrayList<>(lon_); 10535 bitField0_ |= 0x00000008; 10536 } 10537 } 10538 /** 10196 * 10539 10197 * <code>repeated sint64 lon = 9 [packed = true];</code> 10540 * 10198 */ 10199 public java.util.List<java.lang.Long> 10200 getLonList() { 10201 return java.util.Collections.unmodifiableList( 10202 instance.getLonList()); 10203 } 10204 /** 10541 10205 * <pre> 10542 10206 * DELTA coded 10543 10207 * </pre> 10544 */ 10545 @Override 10546 public java.util.List<java.lang.Long> 10547 getLonList() { 10548 return java.util.Collections.unmodifiableList(lon_); 10549 } 10550 /** 10208 * 10551 10209 * <code>repeated sint64 lon = 9 [packed = true];</code> 10552 * 10210 */ 10211 public int getLonCount() { 10212 return instance.getLonCount(); 10213 } 10214 /** 10553 10215 * <pre> 10554 10216 * DELTA coded 10555 10217 * </pre> 10556 */ 10557 @Override 10558 public int getLonCount() { 10559 return lon_.size(); 10560 } 10561 /** 10218 * 10562 10219 * <code>repeated sint64 lon = 9 [packed = true];</code> 10563 * 10220 */ 10221 public long getLon(int index) { 10222 return instance.getLon(index); 10223 } 10224 /** 10564 10225 * <pre> 10565 10226 * DELTA coded 10566 10227 * </pre> 10567 */ 10568 @Override 10569 public long getLon(int index) { 10570 return lon_.get(index); 10571 } 10572 /** 10228 * 10573 10229 * <code>repeated sint64 lon = 9 [packed = true];</code> 10574 *10575 * <pre>10576 * DELTA coded10577 * </pre>10578 10230 */ 10579 10231 public Builder setLon( 10580 10232 int index, long value) { 10581 ensureLonIsMutable(); 10582 lon_.set(index, value); 10583 10584 return this; 10585 } 10586 /** 10233 copyOnWrite(); 10234 instance.setLon(index, value); 10235 return this; 10236 } 10237 /** 10238 * <pre> 10239 * DELTA coded 10240 * </pre> 10241 * 10587 10242 * <code>repeated sint64 lon = 9 [packed = true];</code> 10588 * 10243 */ 10244 public Builder addLon(long value) { 10245 copyOnWrite(); 10246 instance.addLon(value); 10247 return this; 10248 } 10249 /** 10589 10250 * <pre> 10590 10251 * DELTA coded 10591 10252 * </pre> 10592 */ 10593 public Builder addLon(long value) { 10594 ensureLonIsMutable(); 10595 lon_.add(value); 10596 10597 return this; 10598 } 10599 /** 10253 * 10600 10254 * <code>repeated sint64 lon = 9 [packed = true];</code> 10601 *10602 * <pre>10603 * DELTA coded10604 * </pre>10605 10255 */ 10606 10256 public Builder addAllLon( 10607 10257 java.lang.Iterable<? extends java.lang.Long> values) { 10608 ensureLonIsMutable(); 10609 com.google.protobuf.AbstractMessageLite.Builder.addAll( 10610 values, lon_); 10611 10612 return this; 10613 } 10614 /** 10258 copyOnWrite(); 10259 instance.addAllLon(values); 10260 return this; 10261 } 10262 /** 10263 * <pre> 10264 * DELTA coded 10265 * </pre> 10266 * 10615 10267 * <code>repeated sint64 lon = 9 [packed = true];</code> 10616 *10617 * <pre>10618 * DELTA coded10619 * </pre>10620 10268 */ 10621 10269 public Builder clearLon() { 10622 lon_ = java.util.Collections.emptyList(); 10623 bitField0_ = (bitField0_ & ~0x00000008); 10624 10625 return this; 10626 } 10627 10628 private java.util.List<java.lang.Integer> keysVals_ = java.util.Collections.emptyList(); 10629 private void ensureKeysValsIsMutable() { 10630 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 10631 keysVals_ = new java.util.ArrayList<>(keysVals_); 10632 bitField0_ |= 0x00000010; 10633 } 10634 } 10635 /** 10270 copyOnWrite(); 10271 instance.clearLon(); 10272 return this; 10273 } 10274 10275 /** 10276 * <pre> 10277 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10278 * </pre> 10279 * 10636 10280 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10637 * 10281 */ 10282 public java.util.List<java.lang.Integer> 10283 getKeysValsList() { 10284 return java.util.Collections.unmodifiableList( 10285 instance.getKeysValsList()); 10286 } 10287 /** 10638 10288 * <pre> 10639 10289 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10640 10290 * </pre> 10641 */ 10642 @Override 10643 public java.util.List<java.lang.Integer> 10644 getKeysValsList() { 10645 return java.util.Collections.unmodifiableList(keysVals_); 10646 } 10647 /** 10291 * 10648 10292 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10649 * 10293 */ 10294 public int getKeysValsCount() { 10295 return instance.getKeysValsCount(); 10296 } 10297 /** 10650 10298 * <pre> 10651 10299 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10652 10300 * </pre> 10653 */ 10654 @Override 10655 public int getKeysValsCount() { 10656 return keysVals_.size(); 10657 } 10658 /** 10301 * 10659 10302 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10660 * 10303 */ 10304 public int getKeysVals(int index) { 10305 return instance.getKeysVals(index); 10306 } 10307 /** 10661 10308 * <pre> 10662 10309 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10663 10310 * </pre> 10664 */ 10665 @Override 10666 public int getKeysVals(int index) { 10667 return keysVals_.get(index); 10668 } 10669 /** 10311 * 10670 10312 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10671 *10672 * <pre>10673 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.10674 * </pre>10675 10313 */ 10676 10314 public Builder setKeysVals( 10677 10315 int index, int value) { 10678 ensureKeysValsIsMutable(); 10679 keysVals_.set(index, value); 10680 10681 return this; 10682 } 10683 /** 10316 copyOnWrite(); 10317 instance.setKeysVals(index, value); 10318 return this; 10319 } 10320 /** 10321 * <pre> 10322 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10323 * </pre> 10324 * 10684 10325 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10685 * 10326 */ 10327 public Builder addKeysVals(int value) { 10328 copyOnWrite(); 10329 instance.addKeysVals(value); 10330 return this; 10331 } 10332 /** 10686 10333 * <pre> 10687 10334 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10688 10335 * </pre> 10689 */ 10690 public Builder addKeysVals(int value) { 10691 ensureKeysValsIsMutable(); 10692 keysVals_.add(value); 10693 10694 return this; 10695 } 10696 /** 10336 * 10697 10337 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10698 *10699 * <pre>10700 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.10701 * </pre>10702 10338 */ 10703 10339 public Builder addAllKeysVals( 10704 10340 java.lang.Iterable<? extends java.lang.Integer> values) { 10705 ensureKeysValsIsMutable(); 10706 com.google.protobuf.AbstractMessageLite.Builder.addAll( 10707 values, keysVals_); 10708 10709 return this; 10710 } 10711 /** 10341 copyOnWrite(); 10342 instance.addAllKeysVals(values); 10343 return this; 10344 } 10345 /** 10346 * <pre> 10347 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10348 * </pre> 10349 * 10712 10350 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10713 *10714 * <pre>10715 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.10716 * </pre>10717 10351 */ 10718 10352 public Builder clearKeysVals() { 10719 keysVals_ = java.util.Collections.emptyList(); 10720 bitField0_ = (bitField0_ & ~0x00000010); 10721 10353 copyOnWrite(); 10354 instance.clearKeysVals(); 10722 10355 return this; 10723 10356 } … … 10725 10358 // @@protoc_insertion_point(builder_scope:OSMPBF.DenseNodes) 10726 10359 } 10727 10360 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 10361 protected final java.lang.Object dynamicMethod( 10362 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 10363 java.lang.Object arg0, java.lang.Object arg1) { 10364 switch (method) { 10365 case NEW_MUTABLE_INSTANCE: { 10366 return new crosby.binary.Osmformat.DenseNodes(); 10367 } 10368 case IS_INITIALIZED: { 10369 return DEFAULT_INSTANCE; 10370 } 10371 case MAKE_IMMUTABLE: { 10372 id_.makeImmutable(); 10373 lat_.makeImmutable(); 10374 lon_.makeImmutable(); 10375 keysVals_.makeImmutable(); 10376 return null; 10377 } 10378 case NEW_BUILDER: { 10379 return new Builder(); 10380 } 10381 case VISIT: { 10382 Visitor visitor = (Visitor) arg0; 10383 crosby.binary.Osmformat.DenseNodes other = (crosby.binary.Osmformat.DenseNodes) arg1; 10384 id_= visitor.visitLongList(id_, other.id_); 10385 denseinfo_ = visitor.visitMessage(denseinfo_, other.denseinfo_); 10386 lat_= visitor.visitLongList(lat_, other.lat_); 10387 lon_= visitor.visitLongList(lon_, other.lon_); 10388 keysVals_= visitor.visitIntList(keysVals_, other.keysVals_); 10389 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 10390 .INSTANCE) { 10391 bitField0_ |= other.bitField0_; 10392 } 10393 return this; 10394 } 10395 case MERGE_FROM_STREAM: { 10396 com.google.protobuf.CodedInputStream input = 10397 (com.google.protobuf.CodedInputStream) arg0; 10398 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 10399 (com.google.protobuf.ExtensionRegistryLite) arg1; 10400 try { 10401 boolean done = false; 10402 while (!done) { 10403 int tag = input.readTag(); 10404 switch (tag) { 10405 case 0: 10406 done = true; 10407 break; 10408 default: { 10409 if (!parseUnknownField(tag, input)) { 10410 done = true; 10411 } 10412 break; 10413 } 10414 case 8: { 10415 if (!id_.isModifiable()) { 10416 id_ = 10417 com.google.protobuf.GeneratedMessageLite.mutableCopy(id_); 10418 } 10419 id_.addLong(input.readSInt64()); 10420 break; 10421 } 10422 case 10: { 10423 int length = input.readRawVarint32(); 10424 int limit = input.pushLimit(length); 10425 if (!id_.isModifiable() && input.getBytesUntilLimit() > 0) { 10426 id_ = 10427 com.google.protobuf.GeneratedMessageLite.mutableCopy(id_); 10428 } 10429 while (input.getBytesUntilLimit() > 0) { 10430 id_.addLong(input.readSInt64()); 10431 } 10432 input.popLimit(limit); 10433 break; 10434 } 10435 case 42: { 10436 crosby.binary.Osmformat.DenseInfo.Builder subBuilder = null; 10437 if (((bitField0_ & 0x00000001) == 0x00000001)) { 10438 subBuilder = denseinfo_.toBuilder(); 10439 } 10440 denseinfo_ = input.readMessage(crosby.binary.Osmformat.DenseInfo.parser(), extensionRegistry); 10441 if (subBuilder != null) { 10442 subBuilder.mergeFrom(denseinfo_); 10443 denseinfo_ = subBuilder.buildPartial(); 10444 } 10445 bitField0_ |= 0x00000001; 10446 break; 10447 } 10448 case 64: { 10449 if (!lat_.isModifiable()) { 10450 lat_ = 10451 com.google.protobuf.GeneratedMessageLite.mutableCopy(lat_); 10452 } 10453 lat_.addLong(input.readSInt64()); 10454 break; 10455 } 10456 case 66: { 10457 int length = input.readRawVarint32(); 10458 int limit = input.pushLimit(length); 10459 if (!lat_.isModifiable() && input.getBytesUntilLimit() > 0) { 10460 lat_ = 10461 com.google.protobuf.GeneratedMessageLite.mutableCopy(lat_); 10462 } 10463 while (input.getBytesUntilLimit() > 0) { 10464 lat_.addLong(input.readSInt64()); 10465 } 10466 input.popLimit(limit); 10467 break; 10468 } 10469 case 72: { 10470 if (!lon_.isModifiable()) { 10471 lon_ = 10472 com.google.protobuf.GeneratedMessageLite.mutableCopy(lon_); 10473 } 10474 lon_.addLong(input.readSInt64()); 10475 break; 10476 } 10477 case 74: { 10478 int length = input.readRawVarint32(); 10479 int limit = input.pushLimit(length); 10480 if (!lon_.isModifiable() && input.getBytesUntilLimit() > 0) { 10481 lon_ = 10482 com.google.protobuf.GeneratedMessageLite.mutableCopy(lon_); 10483 } 10484 while (input.getBytesUntilLimit() > 0) { 10485 lon_.addLong(input.readSInt64()); 10486 } 10487 input.popLimit(limit); 10488 break; 10489 } 10490 case 80: { 10491 if (!keysVals_.isModifiable()) { 10492 keysVals_ = 10493 com.google.protobuf.GeneratedMessageLite.mutableCopy(keysVals_); 10494 } 10495 keysVals_.addInt(input.readInt32()); 10496 break; 10497 } 10498 case 82: { 10499 int length = input.readRawVarint32(); 10500 int limit = input.pushLimit(length); 10501 if (!keysVals_.isModifiable() && input.getBytesUntilLimit() > 0) { 10502 keysVals_ = 10503 com.google.protobuf.GeneratedMessageLite.mutableCopy(keysVals_); 10504 } 10505 while (input.getBytesUntilLimit() > 0) { 10506 keysVals_.addInt(input.readInt32()); 10507 } 10508 input.popLimit(limit); 10509 break; 10510 } 10511 } 10512 } 10513 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 10514 throw new RuntimeException(e.setUnfinishedMessage(this)); 10515 } catch (java.io.IOException e) { 10516 throw new RuntimeException( 10517 new com.google.protobuf.InvalidProtocolBufferException( 10518 e.getMessage()).setUnfinishedMessage(this)); 10519 } finally { 10520 } 10521 } 10522 // fall through 10523 case GET_DEFAULT_INSTANCE: { 10524 return DEFAULT_INSTANCE; 10525 } 10526 case GET_PARSER: { 10527 if (PARSER == null) { synchronized (crosby.binary.Osmformat.DenseNodes.class) { 10528 if (PARSER == null) { 10529 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 10530 } 10531 } 10532 } 10533 return PARSER; 10534 } 10535 } 10536 throw new UnsupportedOperationException(); 10537 } 10538 10539 10540 // @@protoc_insertion_point(class_scope:OSMPBF.DenseNodes) 10541 private static final crosby.binary.Osmformat.DenseNodes DEFAULT_INSTANCE; 10728 10542 static { 10729 defaultInstance = new DenseNodes(true); 10730 defaultInstance.initFields(); 10731 } 10732 10733 // @@protoc_insertion_point(class_scope:OSMPBF.DenseNodes) 10543 DEFAULT_INSTANCE = new DenseNodes(); 10544 DEFAULT_INSTANCE.makeImmutable(); 10545 } 10546 10547 public static crosby.binary.Osmformat.DenseNodes getDefaultInstance() { 10548 return DEFAULT_INSTANCE; 10549 } 10550 10551 private static volatile com.google.protobuf.Parser<DenseNodes> PARSER; 10552 10553 public static com.google.protobuf.Parser<DenseNodes> parser() { 10554 return DEFAULT_INSTANCE.getParserForType(); 10555 } 10734 10556 } 10735 10557 … … 10748 10570 10749 10571 /** 10572 * <pre> 10573 * Parallel arrays. 10574 * </pre> 10575 * 10750 10576 * <code>repeated uint32 keys = 2 [packed = true];</code> 10751 * 10577 */ 10578 java.util.List<java.lang.Integer> getKeysList(); 10579 /** 10752 10580 * <pre> 10753 10581 * Parallel arrays. 10754 10582 * </pre> 10755 */ 10756 java.util.List<java.lang.Integer> getKeysList(); 10757 /** 10583 * 10758 10584 * <code>repeated uint32 keys = 2 [packed = true];</code> 10759 * 10585 */ 10586 int getKeysCount(); 10587 /** 10760 10588 * <pre> 10761 10589 * Parallel arrays. 10762 10590 * </pre> 10763 */ 10764 int getKeysCount(); 10765 /** 10591 * 10766 10592 * <code>repeated uint32 keys = 2 [packed = true];</code> 10767 *10768 * <pre>10769 * Parallel arrays.10770 * </pre>10771 10593 */ 10772 10594 int getKeys(int index); … … 10795 10617 10796 10618 /** 10619 * <pre> 10620 * DELTA coded 10621 * </pre> 10622 * 10797 10623 * <code>repeated sint64 refs = 8 [packed = true];</code> 10798 * 10624 */ 10625 java.util.List<java.lang.Long> getRefsList(); 10626 /** 10799 10627 * <pre> 10800 10628 * DELTA coded 10801 10629 * </pre> 10802 */ 10803 java.util.List<java.lang.Long> getRefsList(); 10804 /** 10630 * 10805 10631 * <code>repeated sint64 refs = 8 [packed = true];</code> 10806 * 10632 */ 10633 int getRefsCount(); 10634 /** 10807 10635 * <pre> 10808 10636 * DELTA coded 10809 10637 * </pre> 10810 */ 10811 int getRefsCount(); 10812 /** 10638 * 10813 10639 * <code>repeated sint64 refs = 8 [packed = true];</code> 10814 *10815 * <pre>10816 * DELTA coded10817 * </pre>10818 10640 */ 10819 10641 long getRefs(int index); … … 10822 10644 * Protobuf type {@code OSMPBF.Way} 10823 10645 */ 10824 public static final class Way extends 10825 com.google.protobuf.GeneratedMessageLite implements 10646 public static final class Way extends 10647 com.google.protobuf.GeneratedMessageLite< 10648 Way, Way.Builder> implements 10826 10649 // @@protoc_insertion_point(message_implements:OSMPBF.Way) 10827 10650 WayOrBuilder { 10828 // Use Way.newBuilder() to construct. 10829 private Way(com.google.protobuf.GeneratedMessageLite.Builder builder) { 10830 super(builder); 10831 this.unknownFields = builder.getUnknownFields(); 10832 } 10833 private Way(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 10834 10835 private static final Way defaultInstance; 10836 public static Way getDefaultInstance() { 10837 return defaultInstance; 10838 } 10839 10840 @Override 10841 public Way getDefaultInstanceForType() { 10842 return defaultInstance; 10843 } 10844 10845 private final com.google.protobuf.ByteString unknownFields; 10846 private Way( 10847 com.google.protobuf.CodedInputStream input, 10848 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10849 throws com.google.protobuf.InvalidProtocolBufferException { 10850 initFields(); 10851 int mutable_bitField0_ = 0; 10852 com.google.protobuf.ByteString.Output unknownFieldsOutput = 10853 com.google.protobuf.ByteString.newOutput(); 10854 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 10855 com.google.protobuf.CodedOutputStream.newInstance( 10856 unknownFieldsOutput); 10857 try { 10858 boolean done = false; 10859 while (!done) { 10860 int tag = input.readTag(); 10861 switch (tag) { 10862 case 0: 10863 done = true; 10864 break; 10865 default: { 10866 if (!parseUnknownField(input, unknownFieldsCodedOutput, 10867 extensionRegistry, tag)) { 10868 done = true; 10869 } 10870 break; 10871 } 10872 case 8: { 10873 bitField0_ |= 0x00000001; 10874 id_ = input.readInt64(); 10875 break; 10876 } 10877 case 16: { 10878 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 10879 keys_ = new java.util.ArrayList<>(); 10880 mutable_bitField0_ |= 0x00000002; 10881 } 10882 keys_.add(input.readUInt32()); 10883 break; 10884 } 10885 case 18: { 10886 int length = input.readRawVarint32(); 10887 int limit = input.pushLimit(length); 10888 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { 10889 keys_ = new java.util.ArrayList<>(); 10890 mutable_bitField0_ |= 0x00000002; 10891 } 10892 while (input.getBytesUntilLimit() > 0) { 10893 keys_.add(input.readUInt32()); 10894 } 10895 input.popLimit(limit); 10896 break; 10897 } 10898 case 24: { 10899 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 10900 vals_ = new java.util.ArrayList<>(); 10901 mutable_bitField0_ |= 0x00000004; 10902 } 10903 vals_.add(input.readUInt32()); 10904 break; 10905 } 10906 case 26: { 10907 int length = input.readRawVarint32(); 10908 int limit = input.pushLimit(length); 10909 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { 10910 vals_ = new java.util.ArrayList<>(); 10911 mutable_bitField0_ |= 0x00000004; 10912 } 10913 while (input.getBytesUntilLimit() > 0) { 10914 vals_.add(input.readUInt32()); 10915 } 10916 input.popLimit(limit); 10917 break; 10918 } 10919 case 34: { 10920 crosby.binary.Osmformat.Info.Builder subBuilder = null; 10921 if (((bitField0_ & 0x00000002) == 0x00000002)) { 10922 subBuilder = info_.toBuilder(); 10923 } 10924 info_ = input.readMessage(crosby.binary.Osmformat.Info.PARSER, extensionRegistry); 10925 if (subBuilder != null) { 10926 subBuilder.mergeFrom(info_); 10927 info_ = subBuilder.buildPartial(); 10928 } 10929 bitField0_ |= 0x00000002; 10930 break; 10931 } 10932 case 64: { 10933 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 10934 refs_ = new java.util.ArrayList<>(); 10935 mutable_bitField0_ |= 0x00000010; 10936 } 10937 refs_.add(input.readSInt64()); 10938 break; 10939 } 10940 case 66: { 10941 int length = input.readRawVarint32(); 10942 int limit = input.pushLimit(length); 10943 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { 10944 refs_ = new java.util.ArrayList<>(); 10945 mutable_bitField0_ |= 0x00000010; 10946 } 10947 while (input.getBytesUntilLimit() > 0) { 10948 refs_.add(input.readSInt64()); 10949 } 10950 input.popLimit(limit); 10951 break; 10952 } 10953 } 10954 } 10955 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 10956 throw e.setUnfinishedMessage(this); 10957 } catch (java.io.IOException e) { 10958 throw new com.google.protobuf.InvalidProtocolBufferException( 10959 e.getMessage()).setUnfinishedMessage(this); 10960 } finally { 10961 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 10962 keys_ = java.util.Collections.unmodifiableList(keys_); 10963 } 10964 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 10965 vals_ = java.util.Collections.unmodifiableList(vals_); 10966 } 10967 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 10968 refs_ = java.util.Collections.unmodifiableList(refs_); 10969 } 10970 try { 10971 unknownFieldsCodedOutput.flush(); 10972 } catch (java.io.IOException e) { 10973 // Should not happen 10974 } finally { 10975 unknownFields = unknownFieldsOutput.toByteString(); 10976 } 10977 makeExtensionsImmutable(); 10978 } 10979 } 10980 public static com.google.protobuf.Parser<Way> PARSER = 10981 new com.google.protobuf.AbstractParser<Way>() { 10982 @Override 10983 public Way parsePartialFrom( 10984 com.google.protobuf.CodedInputStream input, 10985 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10986 throws com.google.protobuf.InvalidProtocolBufferException { 10987 return new Way(input, extensionRegistry); 10988 } 10989 }; 10990 10991 @java.lang.Override 10992 public com.google.protobuf.Parser<Way> getParserForType() { 10993 return PARSER; 10994 } 10995 10651 private Way() { 10652 keys_ = emptyIntList(); 10653 vals_ = emptyIntList(); 10654 refs_ = emptyLongList(); 10655 } 10996 10656 private int bitField0_; 10997 10657 public static final int ID_FIELD_NUMBER = 1; … … 11000 10660 * <code>required int64 id = 1;</code> 11001 10661 */ 11002 @Override 11003 public boolean hasId() { 10662 public boolean hasId() { 11004 10663 return ((bitField0_ & 0x00000001) == 0x00000001); 11005 10664 } … … 11007 10666 * <code>required int64 id = 1;</code> 11008 10667 */ 11009 @Override 11010 public long getId() { 10668 public long getId() { 11011 10669 return id_; 11012 10670 } 10671 /** 10672 * <code>required int64 id = 1;</code> 10673 */ 10674 private void setId(long value) { 10675 bitField0_ |= 0x00000001; 10676 id_ = value; 10677 } 10678 /** 10679 * <code>required int64 id = 1;</code> 10680 */ 10681 private void clearId() { 10682 bitField0_ = (bitField0_ & ~0x00000001); 10683 id_ = 0L; 10684 } 11013 10685 11014 10686 public static final int KEYS_FIELD_NUMBER = 2; 11015 private java.util.List<java.lang.Integer> keys_; 11016 /** 10687 private com.google.protobuf.Internal.IntList keys_; 10688 /** 10689 * <pre> 10690 * Parallel arrays. 10691 * </pre> 10692 * 11017 10693 * <code>repeated uint32 keys = 2 [packed = true];</code> 11018 * 11019 * <pre> 11020 * Parallel arrays. 11021 * </pre> 11022 */ 11023 @Override 11024 public java.util.List<java.lang.Integer> 10694 */ 10695 public java.util.List<java.lang.Integer> 11025 10696 getKeysList() { 11026 10697 return keys_; 11027 10698 } 11028 10699 /** 10700 * <pre> 10701 * Parallel arrays. 10702 * </pre> 10703 * 11029 10704 * <code>repeated uint32 keys = 2 [packed = true];</code> 11030 * 10705 */ 10706 public int getKeysCount() { 10707 return keys_.size(); 10708 } 10709 /** 11031 10710 * <pre> 11032 10711 * Parallel arrays. 11033 10712 * </pre> 11034 */ 11035 @Override 11036 public int getKeysCount() { 11037 return keys_.size(); 11038 } 11039 /** 10713 * 11040 10714 * <code>repeated uint32 keys = 2 [packed = true];</code> 11041 * 10715 */ 10716 public int getKeys(int index) { 10717 return keys_.getInt(index); 10718 } 10719 private int keysMemoizedSerializedSize = -1; 10720 private void ensureKeysIsMutable() { 10721 if (!keys_.isModifiable()) { 10722 keys_ = 10723 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 10724 } 10725 } 10726 /** 11042 10727 * <pre> 11043 10728 * Parallel arrays. 11044 10729 * </pre> 11045 */ 11046 @Override 11047 public int getKeys(int index) { 11048 return keys_.get(index); 11049 } 11050 private int keysMemoizedSerializedSize = -1; 10730 * 10731 * <code>repeated uint32 keys = 2 [packed = true];</code> 10732 */ 10733 private void setKeys( 10734 int index, int value) { 10735 ensureKeysIsMutable(); 10736 keys_.setInt(index, value); 10737 } 10738 /** 10739 * <pre> 10740 * Parallel arrays. 10741 * </pre> 10742 * 10743 * <code>repeated uint32 keys = 2 [packed = true];</code> 10744 */ 10745 private void addKeys(int value) { 10746 ensureKeysIsMutable(); 10747 keys_.addInt(value); 10748 } 10749 /** 10750 * <pre> 10751 * Parallel arrays. 10752 * </pre> 10753 * 10754 * <code>repeated uint32 keys = 2 [packed = true];</code> 10755 */ 10756 private void addAllKeys( 10757 java.lang.Iterable<? extends java.lang.Integer> values) { 10758 ensureKeysIsMutable(); 10759 com.google.protobuf.AbstractMessageLite.addAll( 10760 values, keys_); 10761 } 10762 /** 10763 * <pre> 10764 * Parallel arrays. 10765 * </pre> 10766 * 10767 * <code>repeated uint32 keys = 2 [packed = true];</code> 10768 */ 10769 private void clearKeys() { 10770 keys_ = emptyIntList(); 10771 } 11051 10772 11052 10773 public static final int VALS_FIELD_NUMBER = 3; 11053 private java.util.List<java.lang.Integer>vals_;10774 private com.google.protobuf.Internal.IntList vals_; 11054 10775 /** 11055 10776 * <code>repeated uint32 vals = 3 [packed = true];</code> 11056 10777 */ 11057 @Override 11058 public java.util.List<java.lang.Integer> 10778 public java.util.List<java.lang.Integer> 11059 10779 getValsList() { 11060 10780 return vals_; … … 11063 10783 * <code>repeated uint32 vals = 3 [packed = true];</code> 11064 10784 */ 11065 @Override 11066 public int getValsCount() { 10785 public int getValsCount() { 11067 10786 return vals_.size(); 11068 10787 } … … 11070 10789 * <code>repeated uint32 vals = 3 [packed = true];</code> 11071 10790 */ 11072 @Override 11073 public int getVals(int index) { 11074 return vals_.get(index); 10791 public int getVals(int index) { 10792 return vals_.getInt(index); 11075 10793 } 11076 10794 private int valsMemoizedSerializedSize = -1; 10795 private void ensureValsIsMutable() { 10796 if (!vals_.isModifiable()) { 10797 vals_ = 10798 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 10799 } 10800 } 10801 /** 10802 * <code>repeated uint32 vals = 3 [packed = true];</code> 10803 */ 10804 private void setVals( 10805 int index, int value) { 10806 ensureValsIsMutable(); 10807 vals_.setInt(index, value); 10808 } 10809 /** 10810 * <code>repeated uint32 vals = 3 [packed = true];</code> 10811 */ 10812 private void addVals(int value) { 10813 ensureValsIsMutable(); 10814 vals_.addInt(value); 10815 } 10816 /** 10817 * <code>repeated uint32 vals = 3 [packed = true];</code> 10818 */ 10819 private void addAllVals( 10820 java.lang.Iterable<? extends java.lang.Integer> values) { 10821 ensureValsIsMutable(); 10822 com.google.protobuf.AbstractMessageLite.addAll( 10823 values, vals_); 10824 } 10825 /** 10826 * <code>repeated uint32 vals = 3 [packed = true];</code> 10827 */ 10828 private void clearVals() { 10829 vals_ = emptyIntList(); 10830 } 11077 10831 11078 10832 public static final int INFO_FIELD_NUMBER = 4; … … 11081 10835 * <code>optional .OSMPBF.Info info = 4;</code> 11082 10836 */ 11083 @Override 11084 public boolean hasInfo() { 10837 public boolean hasInfo() { 11085 10838 return ((bitField0_ & 0x00000002) == 0x00000002); 11086 10839 } … … 11088 10841 * <code>optional .OSMPBF.Info info = 4;</code> 11089 10842 */ 11090 @Override 11091 public crosby.binary.Osmformat.Info getInfo() { 11092 return info_; 10843 public crosby.binary.Osmformat.Info getInfo() { 10844 return info_ == null ? crosby.binary.Osmformat.Info.getDefaultInstance() : info_; 10845 } 10846 /** 10847 * <code>optional .OSMPBF.Info info = 4;</code> 10848 */ 10849 private void setInfo(crosby.binary.Osmformat.Info value) { 10850 if (value == null) { 10851 throw new NullPointerException(); 10852 } 10853 info_ = value; 10854 bitField0_ |= 0x00000002; 10855 } 10856 /** 10857 * <code>optional .OSMPBF.Info info = 4;</code> 10858 */ 10859 private void setInfo( 10860 crosby.binary.Osmformat.Info.Builder builderForValue) { 10861 info_ = builderForValue.build(); 10862 bitField0_ |= 0x00000002; 10863 } 10864 /** 10865 * <code>optional .OSMPBF.Info info = 4;</code> 10866 */ 10867 private void mergeInfo(crosby.binary.Osmformat.Info value) { 10868 if (info_ != null && 10869 info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) { 10870 info_ = 10871 crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial(); 10872 } else { 10873 info_ = value; 10874 } 10875 bitField0_ |= 0x00000002; 10876 } 10877 /** 10878 * <code>optional .OSMPBF.Info info = 4;</code> 10879 */ 10880 private void clearInfo() { info_ = null; 10881 bitField0_ = (bitField0_ & ~0x00000002); 11093 10882 } 11094 10883 11095 10884 public static final int REFS_FIELD_NUMBER = 8; 11096 private java.util.List<java.lang.Long> refs_; 11097 /** 10885 private com.google.protobuf.Internal.LongList refs_; 10886 /** 10887 * <pre> 10888 * DELTA coded 10889 * </pre> 10890 * 11098 10891 * <code>repeated sint64 refs = 8 [packed = true];</code> 11099 * 11100 * <pre> 11101 * DELTA coded 11102 * </pre> 11103 */ 11104 @Override 11105 public java.util.List<java.lang.Long> 10892 */ 10893 public java.util.List<java.lang.Long> 11106 10894 getRefsList() { 11107 10895 return refs_; 11108 10896 } 11109 10897 /** 10898 * <pre> 10899 * DELTA coded 10900 * </pre> 10901 * 11110 10902 * <code>repeated sint64 refs = 8 [packed = true];</code> 11111 * 10903 */ 10904 public int getRefsCount() { 10905 return refs_.size(); 10906 } 10907 /** 11112 10908 * <pre> 11113 10909 * DELTA coded 11114 10910 * </pre> 11115 */ 11116 @Override 11117 public int getRefsCount() { 11118 return refs_.size(); 11119 } 11120 /** 10911 * 11121 10912 * <code>repeated sint64 refs = 8 [packed = true];</code> 11122 * 10913 */ 10914 public long getRefs(int index) { 10915 return refs_.getLong(index); 10916 } 10917 private int refsMemoizedSerializedSize = -1; 10918 private void ensureRefsIsMutable() { 10919 if (!refs_.isModifiable()) { 10920 refs_ = 10921 com.google.protobuf.GeneratedMessageLite.mutableCopy(refs_); 10922 } 10923 } 10924 /** 11123 10925 * <pre> 11124 10926 * DELTA coded 11125 10927 * </pre> 11126 */ 11127 @Override 11128 public long getRefs(int index) { 11129 return refs_.get(index); 11130 } 11131 private int refsMemoizedSerializedSize = -1; 11132 11133 private void initFields() { 11134 id_ = 0L; 11135 keys_ = java.util.Collections.emptyList(); 11136 vals_ = java.util.Collections.emptyList(); 11137 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 11138 refs_ = java.util.Collections.emptyList(); 11139 } 11140 private byte memoizedIsInitialized = -1; 11141 @Override 11142 public final boolean isInitialized() { 11143 byte isInitialized = memoizedIsInitialized; 11144 if (isInitialized == 1) return true; 11145 if (isInitialized == 0) return false; 11146 11147 if (!hasId()) { 11148 memoizedIsInitialized = 0; 11149 return false; 11150 } 11151 memoizedIsInitialized = 1; 11152 return true; 11153 } 11154 11155 @Override 11156 public void writeTo(com.google.protobuf.CodedOutputStream output) 10928 * 10929 * <code>repeated sint64 refs = 8 [packed = true];</code> 10930 */ 10931 private void setRefs( 10932 int index, long value) { 10933 ensureRefsIsMutable(); 10934 refs_.setLong(index, value); 10935 } 10936 /** 10937 * <pre> 10938 * DELTA coded 10939 * </pre> 10940 * 10941 * <code>repeated sint64 refs = 8 [packed = true];</code> 10942 */ 10943 private void addRefs(long value) { 10944 ensureRefsIsMutable(); 10945 refs_.addLong(value); 10946 } 10947 /** 10948 * <pre> 10949 * DELTA coded 10950 * </pre> 10951 * 10952 * <code>repeated sint64 refs = 8 [packed = true];</code> 10953 */ 10954 private void addAllRefs( 10955 java.lang.Iterable<? extends java.lang.Long> values) { 10956 ensureRefsIsMutable(); 10957 com.google.protobuf.AbstractMessageLite.addAll( 10958 values, refs_); 10959 } 10960 /** 10961 * <pre> 10962 * DELTA coded 10963 * </pre> 10964 * 10965 * <code>repeated sint64 refs = 8 [packed = true];</code> 10966 */ 10967 private void clearRefs() { 10968 refs_ = emptyLongList(); 10969 } 10970 10971 public void writeTo(com.google.protobuf.CodedOutputStream output) 11157 10972 throws java.io.IOException { 11158 10973 getSerializedSize(); … … 11161 10976 } 11162 10977 if (getKeysList().size() > 0) { 11163 output.write RawVarint32(18);11164 output.write RawVarint32(keysMemoizedSerializedSize);10978 output.writeUInt32NoTag(18); 10979 output.writeUInt32NoTag(keysMemoizedSerializedSize); 11165 10980 } 11166 10981 for (int i = 0; i < keys_.size(); i++) { 11167 output.writeUInt32NoTag(keys_.get(i)); 10982 output.writeUInt32NoTag(keys_.getInt(i)); 11168 10983 } 11169 10984 if (getValsList().size() > 0) { 11170 output.write RawVarint32(26);11171 output.write RawVarint32(valsMemoizedSerializedSize);10985 output.writeUInt32NoTag(26); 10986 output.writeUInt32NoTag(valsMemoizedSerializedSize); 11172 10987 } 11173 10988 for (int i = 0; i < vals_.size(); i++) { 11174 output.writeUInt32NoTag(vals_.get(i)); 10989 output.writeUInt32NoTag(vals_.getInt(i)); 11175 10990 } 11176 10991 if (((bitField0_ & 0x00000002) == 0x00000002)) { 11177 output.writeMessage(4, info_);10992 output.writeMessage(4, getInfo()); 11178 10993 } 11179 10994 if (getRefsList().size() > 0) { 11180 output.write RawVarint32(66);11181 output.write RawVarint32(refsMemoizedSerializedSize);10995 output.writeUInt32NoTag(66); 10996 output.writeUInt32NoTag(refsMemoizedSerializedSize); 11182 10997 } 11183 10998 for (int i = 0; i < refs_.size(); i++) { 11184 output.writeSInt64NoTag(refs_.get(i)); 11185 } 11186 output.writeRawBytes(unknownFields); 11187 } 11188 11189 private int memoizedSerializedSize = -1; 11190 @Override 11191 public int getSerializedSize() { 10999 output.writeSInt64NoTag(refs_.getLong(i)); 11000 } 11001 unknownFields.writeTo(output); 11002 } 11003 11004 public int getSerializedSize() { 11192 11005 int size = memoizedSerializedSize; 11193 11006 if (size != -1) return size; … … 11202 11015 for (int i = 0; i < keys_.size(); i++) { 11203 11016 dataSize += com.google.protobuf.CodedOutputStream 11204 .computeUInt32SizeNoTag(keys_.get(i)); 11017 .computeUInt32SizeNoTag(keys_.getInt(i)); 11205 11018 } 11206 11019 size += dataSize; … … 11216 11029 for (int i = 0; i < vals_.size(); i++) { 11217 11030 dataSize += com.google.protobuf.CodedOutputStream 11218 .computeUInt32SizeNoTag(vals_.get(i)); 11031 .computeUInt32SizeNoTag(vals_.getInt(i)); 11219 11032 } 11220 11033 size += dataSize; … … 11228 11041 if (((bitField0_ & 0x00000002) == 0x00000002)) { 11229 11042 size += com.google.protobuf.CodedOutputStream 11230 .computeMessageSize(4, info_);11043 .computeMessageSize(4, getInfo()); 11231 11044 } 11232 11045 { … … 11234 11047 for (int i = 0; i < refs_.size(); i++) { 11235 11048 dataSize += com.google.protobuf.CodedOutputStream 11236 .computeSInt64SizeNoTag(refs_.get(i)); 11049 .computeSInt64SizeNoTag(refs_.getLong(i)); 11237 11050 } 11238 11051 size += dataSize; … … 11244 11057 refsMemoizedSerializedSize = dataSize; 11245 11058 } 11246 size += unknownFields. size();11059 size += unknownFields.getSerializedSize(); 11247 11060 memoizedSerializedSize = size; 11248 11061 return size; 11249 11062 } 11250 11063 11251 private static final long serialVersionUID = 0L; 11252 @java.lang.Override 11253 protected java.lang.Object writeReplace() 11254 throws java.io.ObjectStreamException { 11255 return super.writeReplace(); 11256 } 11257 11064 public static crosby.binary.Osmformat.Way parseFrom( 11065 java.nio.ByteBuffer data) 11066 throws com.google.protobuf.InvalidProtocolBufferException { 11067 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11068 DEFAULT_INSTANCE, data); 11069 } 11070 public static crosby.binary.Osmformat.Way parseFrom( 11071 java.nio.ByteBuffer data, 11072 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11073 throws com.google.protobuf.InvalidProtocolBufferException { 11074 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11075 DEFAULT_INSTANCE, data, extensionRegistry); 11076 } 11258 11077 public static crosby.binary.Osmformat.Way parseFrom( 11259 11078 com.google.protobuf.ByteString data) 11260 11079 throws com.google.protobuf.InvalidProtocolBufferException { 11261 return PARSER.parseFrom(data); 11080 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11081 DEFAULT_INSTANCE, data); 11262 11082 } 11263 11083 public static crosby.binary.Osmformat.Way parseFrom( … … 11265 11085 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11266 11086 throws com.google.protobuf.InvalidProtocolBufferException { 11267 return PARSER.parseFrom(data, extensionRegistry); 11087 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11088 DEFAULT_INSTANCE, data, extensionRegistry); 11268 11089 } 11269 11090 public static crosby.binary.Osmformat.Way parseFrom(byte[] data) 11270 11091 throws com.google.protobuf.InvalidProtocolBufferException { 11271 return PARSER.parseFrom(data); 11092 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11093 DEFAULT_INSTANCE, data); 11272 11094 } 11273 11095 public static crosby.binary.Osmformat.Way parseFrom( … … 11275 11097 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11276 11098 throws com.google.protobuf.InvalidProtocolBufferException { 11277 return PARSER.parseFrom(data, extensionRegistry); 11099 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11100 DEFAULT_INSTANCE, data, extensionRegistry); 11278 11101 } 11279 11102 public static crosby.binary.Osmformat.Way parseFrom(java.io.InputStream input) 11280 11103 throws java.io.IOException { 11281 return PARSER.parseFrom(input); 11104 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11105 DEFAULT_INSTANCE, input); 11282 11106 } 11283 11107 public static crosby.binary.Osmformat.Way parseFrom( … … 11285 11109 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11286 11110 throws java.io.IOException { 11287 return PARSER.parseFrom(input, extensionRegistry); 11111 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11112 DEFAULT_INSTANCE, input, extensionRegistry); 11288 11113 } 11289 11114 public static crosby.binary.Osmformat.Way parseDelimitedFrom(java.io.InputStream input) 11290 11115 throws java.io.IOException { 11291 return PARSER.parseDelimitedFrom(input);11116 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 11292 11117 } 11293 11118 public static crosby.binary.Osmformat.Way parseDelimitedFrom( … … 11295 11120 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11296 11121 throws java.io.IOException { 11297 return PARSER.parseDelimitedFrom(input, extensionRegistry);11122 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 11298 11123 } 11299 11124 public static crosby.binary.Osmformat.Way parseFrom( 11300 11125 com.google.protobuf.CodedInputStream input) 11301 11126 throws java.io.IOException { 11302 return PARSER.parseFrom(input); 11127 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11128 DEFAULT_INSTANCE, input); 11303 11129 } 11304 11130 public static crosby.binary.Osmformat.Way parseFrom( … … 11306 11132 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11307 11133 throws java.io.IOException { 11308 return PARSER.parseFrom(input, extensionRegistry); 11309 } 11310 11311 public static Builder newBuilder() { return Builder.create(); } 11312 @Override 11313 public Builder newBuilderForType() { return newBuilder(); } 11134 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11135 DEFAULT_INSTANCE, input, extensionRegistry); 11136 } 11137 11138 public static Builder newBuilder() { 11139 return DEFAULT_INSTANCE.toBuilder(); 11140 } 11314 11141 public static Builder newBuilder(crosby.binary.Osmformat.Way prototype) { 11315 return newBuilder().mergeFrom(prototype); 11316 } 11317 @Override 11318 public Builder toBuilder() { return newBuilder(this); } 11142 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 11143 } 11319 11144 11320 11145 /** … … 11323 11148 public static final class Builder extends 11324 11149 com.google.protobuf.GeneratedMessageLite.Builder< 11325 crosby.binary.Osmformat.Way, Builder> 11326 implements 11150 crosby.binary.Osmformat.Way, Builder> implements 11327 11151 // @@protoc_insertion_point(builder_implements:OSMPBF.Way) 11328 11152 crosby.binary.Osmformat.WayOrBuilder { 11329 11153 // Construct using crosby.binary.Osmformat.Way.newBuilder() 11330 11154 private Builder() { 11331 maybeForceBuilderInitialization(); 11332 } 11333 11334 private void maybeForceBuilderInitialization() { 11335 } 11336 private static Builder create() { 11337 return new Builder(); 11338 } 11339 11340 @Override 11341 public Builder clear() { 11342 super.clear(); 11343 id_ = 0L; 11344 bitField0_ = (bitField0_ & ~0x00000001); 11345 keys_ = java.util.Collections.emptyList(); 11346 bitField0_ = (bitField0_ & ~0x00000002); 11347 vals_ = java.util.Collections.emptyList(); 11348 bitField0_ = (bitField0_ & ~0x00000004); 11349 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 11350 bitField0_ = (bitField0_ & ~0x00000008); 11351 refs_ = java.util.Collections.emptyList(); 11352 bitField0_ = (bitField0_ & ~0x00000010); 11353 return this; 11354 } 11355 11356 @Override 11357 public Builder clone() { 11358 return create().mergeFrom(buildPartial()); 11359 } 11360 11361 @Override 11362 public crosby.binary.Osmformat.Way getDefaultInstanceForType() { 11363 return crosby.binary.Osmformat.Way.getDefaultInstance(); 11364 } 11365 11366 @Override 11367 public crosby.binary.Osmformat.Way build() { 11368 crosby.binary.Osmformat.Way result = buildPartial(); 11369 if (!result.isInitialized()) { 11370 throw newUninitializedMessageException(result); 11371 } 11372 return result; 11373 } 11374 11375 @Override 11376 public crosby.binary.Osmformat.Way buildPartial() { 11377 crosby.binary.Osmformat.Way result = new crosby.binary.Osmformat.Way(this); 11378 int from_bitField0_ = bitField0_; 11379 int to_bitField0_ = 0; 11380 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 11381 to_bitField0_ |= 0x00000001; 11382 } 11383 result.id_ = id_; 11384 if (((bitField0_ & 0x00000002) == 0x00000002)) { 11385 keys_ = java.util.Collections.unmodifiableList(keys_); 11386 bitField0_ = (bitField0_ & ~0x00000002); 11387 } 11388 result.keys_ = keys_; 11389 if (((bitField0_ & 0x00000004) == 0x00000004)) { 11390 vals_ = java.util.Collections.unmodifiableList(vals_); 11391 bitField0_ = (bitField0_ & ~0x00000004); 11392 } 11393 result.vals_ = vals_; 11394 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 11395 to_bitField0_ |= 0x00000002; 11396 } 11397 result.info_ = info_; 11398 if (((bitField0_ & 0x00000010) == 0x00000010)) { 11399 refs_ = java.util.Collections.unmodifiableList(refs_); 11400 bitField0_ = (bitField0_ & ~0x00000010); 11401 } 11402 result.refs_ = refs_; 11403 result.bitField0_ = to_bitField0_; 11404 return result; 11405 } 11406 11407 @Override 11408 public Builder mergeFrom(crosby.binary.Osmformat.Way other) { 11409 if (other == crosby.binary.Osmformat.Way.getDefaultInstance()) return this; 11410 if (other.hasId()) { 11411 setId(other.getId()); 11412 } 11413 if (!other.keys_.isEmpty()) { 11414 if (keys_.isEmpty()) { 11415 keys_ = other.keys_; 11416 bitField0_ = (bitField0_ & ~0x00000002); 11417 } else { 11418 ensureKeysIsMutable(); 11419 keys_.addAll(other.keys_); 11420 } 11421 11422 } 11423 if (!other.vals_.isEmpty()) { 11424 if (vals_.isEmpty()) { 11425 vals_ = other.vals_; 11426 bitField0_ = (bitField0_ & ~0x00000004); 11427 } else { 11428 ensureValsIsMutable(); 11429 vals_.addAll(other.vals_); 11430 } 11431 11432 } 11433 if (other.hasInfo()) { 11434 mergeInfo(other.getInfo()); 11435 } 11436 if (!other.refs_.isEmpty()) { 11437 if (refs_.isEmpty()) { 11438 refs_ = other.refs_; 11439 bitField0_ = (bitField0_ & ~0x00000010); 11440 } else { 11441 ensureRefsIsMutable(); 11442 refs_.addAll(other.refs_); 11443 } 11444 11445 } 11446 setUnknownFields( 11447 getUnknownFields().concat(other.unknownFields)); 11448 return this; 11449 } 11450 11451 @Override 11452 public final boolean isInitialized() { 11453 if (!hasId()) { 11454 11455 return false; 11456 } 11457 return true; 11458 } 11459 11460 @Override 11461 public Builder mergeFrom( 11462 com.google.protobuf.CodedInputStream input, 11463 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11464 throws java.io.IOException { 11465 crosby.binary.Osmformat.Way parsedMessage = null; 11466 try { 11467 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 11468 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 11469 parsedMessage = (crosby.binary.Osmformat.Way) e.getUnfinishedMessage(); 11470 throw e; 11471 } finally { 11472 if (parsedMessage != null) { 11473 mergeFrom(parsedMessage); 11474 } 11475 } 11476 return this; 11477 } 11478 private int bitField0_; 11479 11480 private long id_ ; 11155 super(DEFAULT_INSTANCE); 11156 } 11157 11158 11481 11159 /** 11482 11160 * <code>required int64 id = 1;</code> 11483 11161 */ 11484 @Override 11485 public boolean hasId() { 11486 return ((bitField0_ & 0x00000001) == 0x00000001); 11162 public boolean hasId() { 11163 return instance.hasId(); 11487 11164 } 11488 11165 /** 11489 11166 * <code>required int64 id = 1;</code> 11490 11167 */ 11491 @Override 11492 public long getId() { 11493 return id_; 11168 public long getId() { 11169 return instance.getId(); 11494 11170 } 11495 11171 /** … … 11497 11173 */ 11498 11174 public Builder setId(long value) { 11499 bitField0_ |= 0x00000001; 11500 id_ = value; 11501 11175 copyOnWrite(); 11176 instance.setId(value); 11502 11177 return this; 11503 11178 } … … 11506 11181 */ 11507 11182 public Builder clearId() { 11508 bitField0_ = (bitField0_ & ~0x00000001); 11509 id_ = 0L; 11510 11511 return this; 11512 } 11513 11514 private java.util.List<java.lang.Integer> keys_ = java.util.Collections.emptyList(); 11515 private void ensureKeysIsMutable() { 11516 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 11517 keys_ = new java.util.ArrayList<>(keys_); 11518 bitField0_ |= 0x00000002; 11519 } 11520 } 11521 /** 11183 copyOnWrite(); 11184 instance.clearId(); 11185 return this; 11186 } 11187 11188 /** 11189 * <pre> 11190 * Parallel arrays. 11191 * </pre> 11192 * 11522 11193 * <code>repeated uint32 keys = 2 [packed = true];</code> 11523 * 11194 */ 11195 public java.util.List<java.lang.Integer> 11196 getKeysList() { 11197 return java.util.Collections.unmodifiableList( 11198 instance.getKeysList()); 11199 } 11200 /** 11524 11201 * <pre> 11525 11202 * Parallel arrays. 11526 11203 * </pre> 11527 */ 11528 @Override 11529 public java.util.List<java.lang.Integer> 11530 getKeysList() { 11531 return java.util.Collections.unmodifiableList(keys_); 11532 } 11533 /** 11204 * 11534 11205 * <code>repeated uint32 keys = 2 [packed = true];</code> 11535 * 11206 */ 11207 public int getKeysCount() { 11208 return instance.getKeysCount(); 11209 } 11210 /** 11536 11211 * <pre> 11537 11212 * Parallel arrays. 11538 11213 * </pre> 11539 */ 11540 @Override 11541 public int getKeysCount() { 11542 return keys_.size(); 11543 } 11544 /** 11214 * 11545 11215 * <code>repeated uint32 keys = 2 [packed = true];</code> 11546 * 11216 */ 11217 public int getKeys(int index) { 11218 return instance.getKeys(index); 11219 } 11220 /** 11547 11221 * <pre> 11548 11222 * Parallel arrays. 11549 11223 * </pre> 11550 */ 11551 @Override 11552 public int getKeys(int index) { 11553 return keys_.get(index); 11554 } 11555 /** 11224 * 11556 11225 * <code>repeated uint32 keys = 2 [packed = true];</code> 11557 *11558 * <pre>11559 * Parallel arrays.11560 * </pre>11561 11226 */ 11562 11227 public Builder setKeys( 11563 11228 int index, int value) { 11564 ensureKeysIsMutable(); 11565 keys_.set(index, value); 11566 11567 return this; 11568 } 11569 /** 11229 copyOnWrite(); 11230 instance.setKeys(index, value); 11231 return this; 11232 } 11233 /** 11234 * <pre> 11235 * Parallel arrays. 11236 * </pre> 11237 * 11570 11238 * <code>repeated uint32 keys = 2 [packed = true];</code> 11571 * 11239 */ 11240 public Builder addKeys(int value) { 11241 copyOnWrite(); 11242 instance.addKeys(value); 11243 return this; 11244 } 11245 /** 11572 11246 * <pre> 11573 11247 * Parallel arrays. 11574 11248 * </pre> 11575 */ 11576 public Builder addKeys(int value) { 11577 ensureKeysIsMutable(); 11578 keys_.add(value); 11579 11580 return this; 11581 } 11582 /** 11249 * 11583 11250 * <code>repeated uint32 keys = 2 [packed = true];</code> 11584 *11585 * <pre>11586 * Parallel arrays.11587 * </pre>11588 11251 */ 11589 11252 public Builder addAllKeys( 11590 11253 java.lang.Iterable<? extends java.lang.Integer> values) { 11591 ensureKeysIsMutable(); 11592 com.google.protobuf.AbstractMessageLite.Builder.addAll( 11593 values, keys_); 11594 11595 return this; 11596 } 11597 /** 11254 copyOnWrite(); 11255 instance.addAllKeys(values); 11256 return this; 11257 } 11258 /** 11259 * <pre> 11260 * Parallel arrays. 11261 * </pre> 11262 * 11598 11263 * <code>repeated uint32 keys = 2 [packed = true];</code> 11599 *11600 * <pre>11601 * Parallel arrays.11602 * </pre>11603 11264 */ 11604 11265 public Builder clearKeys() { 11605 keys_ = java.util.Collections.emptyList(); 11606 bitField0_ = (bitField0_ & ~0x00000002); 11607 11608 return this; 11609 } 11610 11611 private java.util.List<java.lang.Integer> vals_ = java.util.Collections.emptyList(); 11612 private void ensureValsIsMutable() { 11613 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 11614 vals_ = new java.util.ArrayList<>(vals_); 11615 bitField0_ |= 0x00000004; 11616 } 11617 } 11266 copyOnWrite(); 11267 instance.clearKeys(); 11268 return this; 11269 } 11270 11618 11271 /** 11619 11272 * <code>repeated uint32 vals = 3 [packed = true];</code> 11620 11273 */ 11621 @Override 11622 public java.util.List<java.lang.Integer> 11274 public java.util.List<java.lang.Integer> 11623 11275 getValsList() { 11624 return java.util.Collections.unmodifiableList(vals_); 11276 return java.util.Collections.unmodifiableList( 11277 instance.getValsList()); 11625 11278 } 11626 11279 /** 11627 11280 * <code>repeated uint32 vals = 3 [packed = true];</code> 11628 11281 */ 11629 @Override 11630 public int getValsCount() { 11631 return vals_.size(); 11282 public int getValsCount() { 11283 return instance.getValsCount(); 11632 11284 } 11633 11285 /** 11634 11286 * <code>repeated uint32 vals = 3 [packed = true];</code> 11635 11287 */ 11636 @Override 11637 public int getVals(int index) { 11638 return vals_.get(index); 11288 public int getVals(int index) { 11289 return instance.getVals(index); 11639 11290 } 11640 11291 /** … … 11643 11294 public Builder setVals( 11644 11295 int index, int value) { 11645 ensureValsIsMutable(); 11646 vals_.set(index, value); 11647 11296 copyOnWrite(); 11297 instance.setVals(index, value); 11648 11298 return this; 11649 11299 } … … 11652 11302 */ 11653 11303 public Builder addVals(int value) { 11654 ensureValsIsMutable(); 11655 vals_.add(value); 11656 11304 copyOnWrite(); 11305 instance.addVals(value); 11657 11306 return this; 11658 11307 } … … 11662 11311 public Builder addAllVals( 11663 11312 java.lang.Iterable<? extends java.lang.Integer> values) { 11664 ensureValsIsMutable(); 11665 com.google.protobuf.AbstractMessageLite.Builder.addAll( 11666 values, vals_); 11667 11313 copyOnWrite(); 11314 instance.addAllVals(values); 11668 11315 return this; 11669 11316 } … … 11672 11319 */ 11673 11320 public Builder clearVals() { 11674 vals_ = java.util.Collections.emptyList(); 11675 bitField0_ = (bitField0_ & ~0x00000004); 11676 11677 return this; 11678 } 11679 11680 private crosby.binary.Osmformat.Info info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 11321 copyOnWrite(); 11322 instance.clearVals(); 11323 return this; 11324 } 11325 11681 11326 /** 11682 11327 * <code>optional .OSMPBF.Info info = 4;</code> 11683 11328 */ 11684 @Override 11685 public boolean hasInfo() { 11686 return ((bitField0_ & 0x00000008) == 0x00000008); 11329 public boolean hasInfo() { 11330 return instance.hasInfo(); 11687 11331 } 11688 11332 /** 11689 11333 * <code>optional .OSMPBF.Info info = 4;</code> 11690 11334 */ 11691 @Override 11692 public crosby.binary.Osmformat.Info getInfo() { 11693 return info_; 11335 public crosby.binary.Osmformat.Info getInfo() { 11336 return instance.getInfo(); 11694 11337 } 11695 11338 /** … … 11697 11340 */ 11698 11341 public Builder setInfo(crosby.binary.Osmformat.Info value) { 11699 if (value == null) { 11700 throw new NullPointerException(); 11701 } 11702 info_ = value; 11703 11704 bitField0_ |= 0x00000008; 11705 return this; 11706 } 11342 copyOnWrite(); 11343 instance.setInfo(value); 11344 return this; 11345 } 11707 11346 /** 11708 11347 * <code>optional .OSMPBF.Info info = 4;</code> … … 11710 11349 public Builder setInfo( 11711 11350 crosby.binary.Osmformat.Info.Builder builderForValue) { 11712 info_ = builderForValue.build(); 11713 11714 bitField0_ |= 0x00000008; 11351 copyOnWrite(); 11352 instance.setInfo(builderForValue); 11715 11353 return this; 11716 11354 } … … 11719 11357 */ 11720 11358 public Builder mergeInfo(crosby.binary.Osmformat.Info value) { 11721 if (((bitField0_ & 0x00000008) == 0x00000008) && 11722 info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) { 11723 info_ = 11724 crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial(); 11725 } else { 11726 info_ = value; 11727 } 11728 11729 bitField0_ |= 0x00000008; 11359 copyOnWrite(); 11360 instance.mergeInfo(value); 11730 11361 return this; 11731 11362 } … … 11733 11364 * <code>optional .OSMPBF.Info info = 4;</code> 11734 11365 */ 11735 public Builder clearInfo() { 11736 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 11737 11738 bitField0_ = (bitField0_ & ~0x00000008); 11739 return this; 11740 } 11741 11742 private java.util.List<java.lang.Long> refs_ = java.util.Collections.emptyList(); 11743 private void ensureRefsIsMutable() { 11744 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 11745 refs_ = new java.util.ArrayList<>(refs_); 11746 bitField0_ |= 0x00000010; 11747 } 11748 } 11749 /** 11366 public Builder clearInfo() { copyOnWrite(); 11367 instance.clearInfo(); 11368 return this; 11369 } 11370 11371 /** 11372 * <pre> 11373 * DELTA coded 11374 * </pre> 11375 * 11750 11376 * <code>repeated sint64 refs = 8 [packed = true];</code> 11751 * 11377 */ 11378 public java.util.List<java.lang.Long> 11379 getRefsList() { 11380 return java.util.Collections.unmodifiableList( 11381 instance.getRefsList()); 11382 } 11383 /** 11752 11384 * <pre> 11753 11385 * DELTA coded 11754 11386 * </pre> 11755 */ 11756 @Override 11757 public java.util.List<java.lang.Long> 11758 getRefsList() { 11759 return java.util.Collections.unmodifiableList(refs_); 11760 } 11761 /** 11387 * 11762 11388 * <code>repeated sint64 refs = 8 [packed = true];</code> 11763 * 11389 */ 11390 public int getRefsCount() { 11391 return instance.getRefsCount(); 11392 } 11393 /** 11764 11394 * <pre> 11765 11395 * DELTA coded 11766 11396 * </pre> 11767 */ 11768 @Override 11769 public int getRefsCount() { 11770 return refs_.size(); 11771 } 11772 /** 11397 * 11773 11398 * <code>repeated sint64 refs = 8 [packed = true];</code> 11774 * 11399 */ 11400 public long getRefs(int index) { 11401 return instance.getRefs(index); 11402 } 11403 /** 11775 11404 * <pre> 11776 11405 * DELTA coded 11777 11406 * </pre> 11778 */ 11779 @Override 11780 public long getRefs(int index) { 11781 return refs_.get(index); 11782 } 11783 /** 11407 * 11784 11408 * <code>repeated sint64 refs = 8 [packed = true];</code> 11785 *11786 * <pre>11787 * DELTA coded11788 * </pre>11789 11409 */ 11790 11410 public Builder setRefs( 11791 11411 int index, long value) { 11792 ensureRefsIsMutable(); 11793 refs_.set(index, value); 11794 11795 return this; 11796 } 11797 /** 11412 copyOnWrite(); 11413 instance.setRefs(index, value); 11414 return this; 11415 } 11416 /** 11417 * <pre> 11418 * DELTA coded 11419 * </pre> 11420 * 11798 11421 * <code>repeated sint64 refs = 8 [packed = true];</code> 11799 * 11422 */ 11423 public Builder addRefs(long value) { 11424 copyOnWrite(); 11425 instance.addRefs(value); 11426 return this; 11427 } 11428 /** 11800 11429 * <pre> 11801 11430 * DELTA coded 11802 11431 * </pre> 11803 */ 11804 public Builder addRefs(long value) { 11805 ensureRefsIsMutable(); 11806 refs_.add(value); 11807 11808 return this; 11809 } 11810 /** 11432 * 11811 11433 * <code>repeated sint64 refs = 8 [packed = true];</code> 11812 *11813 * <pre>11814 * DELTA coded11815 * </pre>11816 11434 */ 11817 11435 public Builder addAllRefs( 11818 11436 java.lang.Iterable<? extends java.lang.Long> values) { 11819 ensureRefsIsMutable(); 11820 com.google.protobuf.AbstractMessageLite.Builder.addAll( 11821 values, refs_); 11822 11823 return this; 11824 } 11825 /** 11437 copyOnWrite(); 11438 instance.addAllRefs(values); 11439 return this; 11440 } 11441 /** 11442 * <pre> 11443 * DELTA coded 11444 * </pre> 11445 * 11826 11446 * <code>repeated sint64 refs = 8 [packed = true];</code> 11827 *11828 * <pre>11829 * DELTA coded11830 * </pre>11831 11447 */ 11832 11448 public Builder clearRefs() { 11833 refs_ = java.util.Collections.emptyList(); 11834 bitField0_ = (bitField0_ & ~0x00000010); 11835 11449 copyOnWrite(); 11450 instance.clearRefs(); 11836 11451 return this; 11837 11452 } … … 11839 11454 // @@protoc_insertion_point(builder_scope:OSMPBF.Way) 11840 11455 } 11841 11456 private byte memoizedIsInitialized = -1; 11457 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 11458 protected final java.lang.Object dynamicMethod( 11459 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 11460 java.lang.Object arg0, java.lang.Object arg1) { 11461 switch (method) { 11462 case NEW_MUTABLE_INSTANCE: { 11463 return new crosby.binary.Osmformat.Way(); 11464 } 11465 case IS_INITIALIZED: { 11466 byte isInitialized = memoizedIsInitialized; 11467 if (isInitialized == 1) return DEFAULT_INSTANCE; 11468 if (isInitialized == 0) return null; 11469 11470 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 11471 if (!hasId()) { 11472 if (shouldMemoize) { 11473 memoizedIsInitialized = 0; 11474 } 11475 return null; 11476 } 11477 if (shouldMemoize) memoizedIsInitialized = 1; 11478 return DEFAULT_INSTANCE; 11479 11480 } 11481 case MAKE_IMMUTABLE: { 11482 keys_.makeImmutable(); 11483 vals_.makeImmutable(); 11484 refs_.makeImmutable(); 11485 return null; 11486 } 11487 case NEW_BUILDER: { 11488 return new Builder(); 11489 } 11490 case VISIT: { 11491 Visitor visitor = (Visitor) arg0; 11492 crosby.binary.Osmformat.Way other = (crosby.binary.Osmformat.Way) arg1; 11493 id_ = visitor.visitLong( 11494 hasId(), id_, 11495 other.hasId(), other.id_); 11496 keys_= visitor.visitIntList(keys_, other.keys_); 11497 vals_= visitor.visitIntList(vals_, other.vals_); 11498 info_ = visitor.visitMessage(info_, other.info_); 11499 refs_= visitor.visitLongList(refs_, other.refs_); 11500 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 11501 .INSTANCE) { 11502 bitField0_ |= other.bitField0_; 11503 } 11504 return this; 11505 } 11506 case MERGE_FROM_STREAM: { 11507 com.google.protobuf.CodedInputStream input = 11508 (com.google.protobuf.CodedInputStream) arg0; 11509 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 11510 (com.google.protobuf.ExtensionRegistryLite) arg1; 11511 try { 11512 boolean done = false; 11513 while (!done) { 11514 int tag = input.readTag(); 11515 switch (tag) { 11516 case 0: 11517 done = true; 11518 break; 11519 default: { 11520 if (!parseUnknownField(tag, input)) { 11521 done = true; 11522 } 11523 break; 11524 } 11525 case 8: { 11526 bitField0_ |= 0x00000001; 11527 id_ = input.readInt64(); 11528 break; 11529 } 11530 case 16: { 11531 if (!keys_.isModifiable()) { 11532 keys_ = 11533 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 11534 } 11535 keys_.addInt(input.readUInt32()); 11536 break; 11537 } 11538 case 18: { 11539 int length = input.readRawVarint32(); 11540 int limit = input.pushLimit(length); 11541 if (!keys_.isModifiable() && input.getBytesUntilLimit() > 0) { 11542 keys_ = 11543 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 11544 } 11545 while (input.getBytesUntilLimit() > 0) { 11546 keys_.addInt(input.readUInt32()); 11547 } 11548 input.popLimit(limit); 11549 break; 11550 } 11551 case 24: { 11552 if (!vals_.isModifiable()) { 11553 vals_ = 11554 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 11555 } 11556 vals_.addInt(input.readUInt32()); 11557 break; 11558 } 11559 case 26: { 11560 int length = input.readRawVarint32(); 11561 int limit = input.pushLimit(length); 11562 if (!vals_.isModifiable() && input.getBytesUntilLimit() > 0) { 11563 vals_ = 11564 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 11565 } 11566 while (input.getBytesUntilLimit() > 0) { 11567 vals_.addInt(input.readUInt32()); 11568 } 11569 input.popLimit(limit); 11570 break; 11571 } 11572 case 34: { 11573 crosby.binary.Osmformat.Info.Builder subBuilder = null; 11574 if (((bitField0_ & 0x00000002) == 0x00000002)) { 11575 subBuilder = info_.toBuilder(); 11576 } 11577 info_ = input.readMessage(crosby.binary.Osmformat.Info.parser(), extensionRegistry); 11578 if (subBuilder != null) { 11579 subBuilder.mergeFrom(info_); 11580 info_ = subBuilder.buildPartial(); 11581 } 11582 bitField0_ |= 0x00000002; 11583 break; 11584 } 11585 case 64: { 11586 if (!refs_.isModifiable()) { 11587 refs_ = 11588 com.google.protobuf.GeneratedMessageLite.mutableCopy(refs_); 11589 } 11590 refs_.addLong(input.readSInt64()); 11591 break; 11592 } 11593 case 66: { 11594 int length = input.readRawVarint32(); 11595 int limit = input.pushLimit(length); 11596 if (!refs_.isModifiable() && input.getBytesUntilLimit() > 0) { 11597 refs_ = 11598 com.google.protobuf.GeneratedMessageLite.mutableCopy(refs_); 11599 } 11600 while (input.getBytesUntilLimit() > 0) { 11601 refs_.addLong(input.readSInt64()); 11602 } 11603 input.popLimit(limit); 11604 break; 11605 } 11606 } 11607 } 11608 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 11609 throw new RuntimeException(e.setUnfinishedMessage(this)); 11610 } catch (java.io.IOException e) { 11611 throw new RuntimeException( 11612 new com.google.protobuf.InvalidProtocolBufferException( 11613 e.getMessage()).setUnfinishedMessage(this)); 11614 } finally { 11615 } 11616 } 11617 // fall through 11618 case GET_DEFAULT_INSTANCE: { 11619 return DEFAULT_INSTANCE; 11620 } 11621 case GET_PARSER: { 11622 if (PARSER == null) { synchronized (crosby.binary.Osmformat.Way.class) { 11623 if (PARSER == null) { 11624 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 11625 } 11626 } 11627 } 11628 return PARSER; 11629 } 11630 } 11631 throw new UnsupportedOperationException(); 11632 } 11633 11634 11635 // @@protoc_insertion_point(class_scope:OSMPBF.Way) 11636 private static final crosby.binary.Osmformat.Way DEFAULT_INSTANCE; 11842 11637 static { 11843 defaultInstance = new Way(true); 11844 defaultInstance.initFields(); 11845 } 11846 11847 // @@protoc_insertion_point(class_scope:OSMPBF.Way) 11638 DEFAULT_INSTANCE = new Way(); 11639 DEFAULT_INSTANCE.makeImmutable(); 11640 } 11641 11642 public static crosby.binary.Osmformat.Way getDefaultInstance() { 11643 return DEFAULT_INSTANCE; 11644 } 11645 11646 private static volatile com.google.protobuf.Parser<Way> PARSER; 11647 11648 public static com.google.protobuf.Parser<Way> parser() { 11649 return DEFAULT_INSTANCE.getParserForType(); 11650 } 11848 11651 } 11849 11652 … … 11862 11665 11863 11666 /** 11667 * <pre> 11668 * Parallel arrays. 11669 * </pre> 11670 * 11864 11671 * <code>repeated uint32 keys = 2 [packed = true];</code> 11865 * 11672 */ 11673 java.util.List<java.lang.Integer> getKeysList(); 11674 /** 11866 11675 * <pre> 11867 11676 * Parallel arrays. 11868 11677 * </pre> 11869 */ 11870 java.util.List<java.lang.Integer> getKeysList(); 11871 /** 11678 * 11872 11679 * <code>repeated uint32 keys = 2 [packed = true];</code> 11873 * 11680 */ 11681 int getKeysCount(); 11682 /** 11874 11683 * <pre> 11875 11684 * Parallel arrays. 11876 11685 * </pre> 11877 */ 11878 int getKeysCount(); 11879 /** 11686 * 11880 11687 * <code>repeated uint32 keys = 2 [packed = true];</code> 11881 *11882 * <pre>11883 * Parallel arrays.11884 * </pre>11885 11688 */ 11886 11689 int getKeys(int index); … … 11909 11712 11910 11713 /** 11714 * <pre> 11715 * Parallel arrays 11716 * </pre> 11717 * 11911 11718 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 11912 * 11719 */ 11720 java.util.List<java.lang.Integer> getRolesSidList(); 11721 /** 11913 11722 * <pre> 11914 11723 * Parallel arrays 11915 11724 * </pre> 11916 */ 11917 java.util.List<java.lang.Integer> getRolesSidList(); 11918 /** 11725 * 11919 11726 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 11920 * 11727 */ 11728 int getRolesSidCount(); 11729 /** 11921 11730 * <pre> 11922 11731 * Parallel arrays 11923 11732 * </pre> 11924 */ 11925 int getRolesSidCount(); 11926 /** 11733 * 11927 11734 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 11928 *11929 * <pre>11930 * Parallel arrays11931 * </pre>11932 11735 */ 11933 11736 int getRolesSid(int index); 11934 11737 11935 11738 /** 11739 * <pre> 11740 * DELTA encoded 11741 * </pre> 11742 * 11936 11743 * <code>repeated sint64 memids = 9 [packed = true];</code> 11937 * 11744 */ 11745 java.util.List<java.lang.Long> getMemidsList(); 11746 /** 11938 11747 * <pre> 11939 11748 * DELTA encoded 11940 11749 * </pre> 11941 */ 11942 java.util.List<java.lang.Long> getMemidsList(); 11943 /** 11750 * 11944 11751 * <code>repeated sint64 memids = 9 [packed = true];</code> 11945 * 11752 */ 11753 int getMemidsCount(); 11754 /** 11946 11755 * <pre> 11947 11756 * DELTA encoded 11948 11757 * </pre> 11949 */ 11950 int getMemidsCount(); 11951 /** 11758 * 11952 11759 * <code>repeated sint64 memids = 9 [packed = true];</code> 11953 *11954 * <pre>11955 * DELTA encoded11956 * </pre>11957 11760 */ 11958 11761 long getMemids(int index); … … 11974 11777 * Protobuf type {@code OSMPBF.Relation} 11975 11778 */ 11976 public static final class Relation extends 11977 com.google.protobuf.GeneratedMessageLite implements 11779 public static final class Relation extends 11780 com.google.protobuf.GeneratedMessageLite< 11781 Relation, Relation.Builder> implements 11978 11782 // @@protoc_insertion_point(message_implements:OSMPBF.Relation) 11979 11783 RelationOrBuilder { 11980 // Use Relation.newBuilder() to construct. 11981 private Relation(com.google.protobuf.GeneratedMessageLite.Builder builder) { 11982 super(builder); 11983 this.unknownFields = builder.getUnknownFields(); 11984 } 11985 private Relation(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 11986 11987 private static final Relation defaultInstance; 11988 public static Relation getDefaultInstance() { 11989 return defaultInstance; 11990 } 11991 11992 @Override 11993 public Relation getDefaultInstanceForType() { 11994 return defaultInstance; 11995 } 11996 11997 private final com.google.protobuf.ByteString unknownFields; 11998 private Relation( 11999 com.google.protobuf.CodedInputStream input, 12000 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12001 throws com.google.protobuf.InvalidProtocolBufferException { 12002 initFields(); 12003 int mutable_bitField0_ = 0; 12004 com.google.protobuf.ByteString.Output unknownFieldsOutput = 12005 com.google.protobuf.ByteString.newOutput(); 12006 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 12007 com.google.protobuf.CodedOutputStream.newInstance( 12008 unknownFieldsOutput); 12009 try { 12010 boolean done = false; 12011 while (!done) { 12012 int tag = input.readTag(); 12013 switch (tag) { 12014 case 0: 12015 done = true; 12016 break; 12017 default: { 12018 if (!parseUnknownField(input, unknownFieldsCodedOutput, 12019 extensionRegistry, tag)) { 12020 done = true; 12021 } 12022 break; 12023 } 12024 case 8: { 12025 bitField0_ |= 0x00000001; 12026 id_ = input.readInt64(); 12027 break; 12028 } 12029 case 16: { 12030 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 12031 keys_ = new java.util.ArrayList<>(); 12032 mutable_bitField0_ |= 0x00000002; 12033 } 12034 keys_.add(input.readUInt32()); 12035 break; 12036 } 12037 case 18: { 12038 int length = input.readRawVarint32(); 12039 int limit = input.pushLimit(length); 12040 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { 12041 keys_ = new java.util.ArrayList<>(); 12042 mutable_bitField0_ |= 0x00000002; 12043 } 12044 while (input.getBytesUntilLimit() > 0) { 12045 keys_.add(input.readUInt32()); 12046 } 12047 input.popLimit(limit); 12048 break; 12049 } 12050 case 24: { 12051 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 12052 vals_ = new java.util.ArrayList<>(); 12053 mutable_bitField0_ |= 0x00000004; 12054 } 12055 vals_.add(input.readUInt32()); 12056 break; 12057 } 12058 case 26: { 12059 int length = input.readRawVarint32(); 12060 int limit = input.pushLimit(length); 12061 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { 12062 vals_ = new java.util.ArrayList<>(); 12063 mutable_bitField0_ |= 0x00000004; 12064 } 12065 while (input.getBytesUntilLimit() > 0) { 12066 vals_.add(input.readUInt32()); 12067 } 12068 input.popLimit(limit); 12069 break; 12070 } 12071 case 34: { 12072 crosby.binary.Osmformat.Info.Builder subBuilder = null; 12073 if (((bitField0_ & 0x00000002) == 0x00000002)) { 12074 subBuilder = info_.toBuilder(); 12075 } 12076 info_ = input.readMessage(crosby.binary.Osmformat.Info.PARSER, extensionRegistry); 12077 if (subBuilder != null) { 12078 subBuilder.mergeFrom(info_); 12079 info_ = subBuilder.buildPartial(); 12080 } 12081 bitField0_ |= 0x00000002; 12082 break; 12083 } 12084 case 64: { 12085 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 12086 rolesSid_ = new java.util.ArrayList<>(); 12087 mutable_bitField0_ |= 0x00000010; 12088 } 12089 rolesSid_.add(input.readInt32()); 12090 break; 12091 } 12092 case 66: { 12093 int length = input.readRawVarint32(); 12094 int limit = input.pushLimit(length); 12095 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { 12096 rolesSid_ = new java.util.ArrayList<>(); 12097 mutable_bitField0_ |= 0x00000010; 12098 } 12099 while (input.getBytesUntilLimit() > 0) { 12100 rolesSid_.add(input.readInt32()); 12101 } 12102 input.popLimit(limit); 12103 break; 12104 } 12105 case 72: { 12106 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 12107 memids_ = new java.util.ArrayList<>(); 12108 mutable_bitField0_ |= 0x00000020; 12109 } 12110 memids_.add(input.readSInt64()); 12111 break; 12112 } 12113 case 74: { 12114 int length = input.readRawVarint32(); 12115 int limit = input.pushLimit(length); 12116 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { 12117 memids_ = new java.util.ArrayList<>(); 12118 mutable_bitField0_ |= 0x00000020; 12119 } 12120 while (input.getBytesUntilLimit() > 0) { 12121 memids_.add(input.readSInt64()); 12122 } 12123 input.popLimit(limit); 12124 break; 12125 } 12126 case 80: { 12127 int rawValue = input.readEnum(); 12128 crosby.binary.Osmformat.Relation.MemberType value = crosby.binary.Osmformat.Relation.MemberType.valueOf(rawValue); 12129 if (value == null) { 12130 unknownFieldsCodedOutput.writeRawVarint32(tag); 12131 unknownFieldsCodedOutput.writeRawVarint32(rawValue); 12132 } else { 12133 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 12134 types_ = new java.util.ArrayList<>(); 12135 mutable_bitField0_ |= 0x00000040; 12136 } 12137 types_.add(value); 12138 } 12139 break; 12140 } 12141 case 82: { 12142 int length = input.readRawVarint32(); 12143 int oldLimit = input.pushLimit(length); 12144 while(input.getBytesUntilLimit() > 0) { 12145 int rawValue = input.readEnum(); 12146 crosby.binary.Osmformat.Relation.MemberType value = crosby.binary.Osmformat.Relation.MemberType.valueOf(rawValue); 12147 if (value == null) { 12148 unknownFieldsCodedOutput.writeRawVarint32(tag); 12149 unknownFieldsCodedOutput.writeRawVarint32(rawValue); 12150 } else { 12151 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 12152 types_ = new java.util.ArrayList<>(); 12153 mutable_bitField0_ |= 0x00000040; 12154 } 12155 types_.add(value); 12156 } 12157 } 12158 input.popLimit(oldLimit); 12159 break; 12160 } 12161 } 12162 } 12163 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 12164 throw e.setUnfinishedMessage(this); 12165 } catch (java.io.IOException e) { 12166 throw new com.google.protobuf.InvalidProtocolBufferException( 12167 e.getMessage()).setUnfinishedMessage(this); 12168 } finally { 12169 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 12170 keys_ = java.util.Collections.unmodifiableList(keys_); 12171 } 12172 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 12173 vals_ = java.util.Collections.unmodifiableList(vals_); 12174 } 12175 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 12176 rolesSid_ = java.util.Collections.unmodifiableList(rolesSid_); 12177 } 12178 if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 12179 memids_ = java.util.Collections.unmodifiableList(memids_); 12180 } 12181 if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 12182 types_ = java.util.Collections.unmodifiableList(types_); 12183 } 12184 try { 12185 unknownFieldsCodedOutput.flush(); 12186 } catch (java.io.IOException e) { 12187 // Should not happen 12188 } finally { 12189 unknownFields = unknownFieldsOutput.toByteString(); 12190 } 12191 makeExtensionsImmutable(); 12192 } 12193 } 12194 public static com.google.protobuf.Parser<Relation> PARSER = 12195 new com.google.protobuf.AbstractParser<Relation>() { 12196 @Override 12197 public Relation parsePartialFrom( 12198 com.google.protobuf.CodedInputStream input, 12199 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12200 throws com.google.protobuf.InvalidProtocolBufferException { 12201 return new Relation(input, extensionRegistry); 12202 } 12203 }; 12204 12205 @java.lang.Override 12206 public com.google.protobuf.Parser<Relation> getParserForType() { 12207 return PARSER; 12208 } 12209 11784 private Relation() { 11785 keys_ = emptyIntList(); 11786 vals_ = emptyIntList(); 11787 rolesSid_ = emptyIntList(); 11788 memids_ = emptyLongList(); 11789 types_ = emptyIntList(); 11790 } 12210 11791 /** 12211 11792 * Protobuf enum {@code OSMPBF.Relation.MemberType} … … 12216 11797 * <code>NODE = 0;</code> 12217 11798 */ 12218 NODE(0 , 0),11799 NODE(0), 12219 11800 /** 12220 11801 * <code>WAY = 1;</code> 12221 11802 */ 12222 WAY(1 , 1),11803 WAY(1), 12223 11804 /** 12224 11805 * <code>RELATION = 2;</code> 12225 11806 */ 12226 RELATION(2 , 2),11807 RELATION(2), 12227 11808 ; 12228 11809 … … 12241 11822 12242 11823 12243 @Override 12244 public final int getNumber() { return value; } 12245 11824 public final int getNumber() { 11825 return value; 11826 } 11827 11828 /** 11829 * @deprecated Use {@link #forNumber(int)} instead. 11830 */ 11831 @java.lang.Deprecated 12246 11832 public static MemberType valueOf(int value) { 11833 return forNumber(value); 11834 } 11835 11836 public static MemberType forNumber(int value) { 12247 11837 switch (value) { 12248 11838 case 0: return NODE; … … 12257 11847 return internalValueMap; 12258 11848 } 12259 private static com.google.protobuf.Internal.EnumLiteMap< MemberType>12260 internalValueMap = 11849 private static final com.google.protobuf.Internal.EnumLiteMap< 11850 MemberType> internalValueMap = 12261 11851 new com.google.protobuf.Internal.EnumLiteMap<MemberType>() { 12262 @Override 12263 public MemberType findValueByNumber(int number) { 12264 return MemberType.valueOf(number); 11852 public MemberType findValueByNumber(int number) { 11853 return MemberType.forNumber(number); 12265 11854 } 12266 11855 }; … … 12268 11857 private final int value; 12269 11858 12270 private MemberType(int index, intvalue) {11859 private MemberType(int value) { 12271 11860 this.value = value; 12272 11861 } … … 12281 11870 * <code>required int64 id = 1;</code> 12282 11871 */ 12283 @Override 12284 public boolean hasId() { 11872 public boolean hasId() { 12285 11873 return ((bitField0_ & 0x00000001) == 0x00000001); 12286 11874 } … … 12288 11876 * <code>required int64 id = 1;</code> 12289 11877 */ 12290 @Override 12291 public long getId() { 11878 public long getId() { 12292 11879 return id_; 12293 11880 } 11881 /** 11882 * <code>required int64 id = 1;</code> 11883 */ 11884 private void setId(long value) { 11885 bitField0_ |= 0x00000001; 11886 id_ = value; 11887 } 11888 /** 11889 * <code>required int64 id = 1;</code> 11890 */ 11891 private void clearId() { 11892 bitField0_ = (bitField0_ & ~0x00000001); 11893 id_ = 0L; 11894 } 12294 11895 12295 11896 public static final int KEYS_FIELD_NUMBER = 2; 12296 private java.util.List<java.lang.Integer> keys_; 12297 /** 11897 private com.google.protobuf.Internal.IntList keys_; 11898 /** 11899 * <pre> 11900 * Parallel arrays. 11901 * </pre> 11902 * 12298 11903 * <code>repeated uint32 keys = 2 [packed = true];</code> 12299 * 12300 * <pre> 12301 * Parallel arrays. 12302 * </pre> 12303 */ 12304 @Override 12305 public java.util.List<java.lang.Integer> 11904 */ 11905 public java.util.List<java.lang.Integer> 12306 11906 getKeysList() { 12307 11907 return keys_; 12308 11908 } 12309 11909 /** 11910 * <pre> 11911 * Parallel arrays. 11912 * </pre> 11913 * 12310 11914 * <code>repeated uint32 keys = 2 [packed = true];</code> 12311 * 11915 */ 11916 public int getKeysCount() { 11917 return keys_.size(); 11918 } 11919 /** 12312 11920 * <pre> 12313 11921 * Parallel arrays. 12314 11922 * </pre> 12315 */ 12316 @Override 12317 public int getKeysCount() { 12318 return keys_.size(); 12319 } 12320 /** 11923 * 12321 11924 * <code>repeated uint32 keys = 2 [packed = true];</code> 12322 * 11925 */ 11926 public int getKeys(int index) { 11927 return keys_.getInt(index); 11928 } 11929 private int keysMemoizedSerializedSize = -1; 11930 private void ensureKeysIsMutable() { 11931 if (!keys_.isModifiable()) { 11932 keys_ = 11933 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 11934 } 11935 } 11936 /** 12323 11937 * <pre> 12324 11938 * Parallel arrays. 12325 11939 * </pre> 12326 */ 12327 @Override 12328 public int getKeys(int index) { 12329 return keys_.get(index); 12330 } 12331 private int keysMemoizedSerializedSize = -1; 11940 * 11941 * <code>repeated uint32 keys = 2 [packed = true];</code> 11942 */ 11943 private void setKeys( 11944 int index, int value) { 11945 ensureKeysIsMutable(); 11946 keys_.setInt(index, value); 11947 } 11948 /** 11949 * <pre> 11950 * Parallel arrays. 11951 * </pre> 11952 * 11953 * <code>repeated uint32 keys = 2 [packed = true];</code> 11954 */ 11955 private void addKeys(int value) { 11956 ensureKeysIsMutable(); 11957 keys_.addInt(value); 11958 } 11959 /** 11960 * <pre> 11961 * Parallel arrays. 11962 * </pre> 11963 * 11964 * <code>repeated uint32 keys = 2 [packed = true];</code> 11965 */ 11966 private void addAllKeys( 11967 java.lang.Iterable<? extends java.lang.Integer> values) { 11968 ensureKeysIsMutable(); 11969 com.google.protobuf.AbstractMessageLite.addAll( 11970 values, keys_); 11971 } 11972 /** 11973 * <pre> 11974 * Parallel arrays. 11975 * </pre> 11976 * 11977 * <code>repeated uint32 keys = 2 [packed = true];</code> 11978 */ 11979 private void clearKeys() { 11980 keys_ = emptyIntList(); 11981 } 12332 11982 12333 11983 public static final int VALS_FIELD_NUMBER = 3; 12334 private java.util.List<java.lang.Integer>vals_;11984 private com.google.protobuf.Internal.IntList vals_; 12335 11985 /** 12336 11986 * <code>repeated uint32 vals = 3 [packed = true];</code> 12337 11987 */ 12338 @Override 12339 public java.util.List<java.lang.Integer> 11988 public java.util.List<java.lang.Integer> 12340 11989 getValsList() { 12341 11990 return vals_; … … 12344 11993 * <code>repeated uint32 vals = 3 [packed = true];</code> 12345 11994 */ 12346 @Override 12347 public int getValsCount() { 11995 public int getValsCount() { 12348 11996 return vals_.size(); 12349 11997 } … … 12351 11999 * <code>repeated uint32 vals = 3 [packed = true];</code> 12352 12000 */ 12353 @Override 12354 public int getVals(int index) { 12355 return vals_.get(index); 12001 public int getVals(int index) { 12002 return vals_.getInt(index); 12356 12003 } 12357 12004 private int valsMemoizedSerializedSize = -1; 12005 private void ensureValsIsMutable() { 12006 if (!vals_.isModifiable()) { 12007 vals_ = 12008 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 12009 } 12010 } 12011 /** 12012 * <code>repeated uint32 vals = 3 [packed = true];</code> 12013 */ 12014 private void setVals( 12015 int index, int value) { 12016 ensureValsIsMutable(); 12017 vals_.setInt(index, value); 12018 } 12019 /** 12020 * <code>repeated uint32 vals = 3 [packed = true];</code> 12021 */ 12022 private void addVals(int value) { 12023 ensureValsIsMutable(); 12024 vals_.addInt(value); 12025 } 12026 /** 12027 * <code>repeated uint32 vals = 3 [packed = true];</code> 12028 */ 12029 private void addAllVals( 12030 java.lang.Iterable<? extends java.lang.Integer> values) { 12031 ensureValsIsMutable(); 12032 com.google.protobuf.AbstractMessageLite.addAll( 12033 values, vals_); 12034 } 12035 /** 12036 * <code>repeated uint32 vals = 3 [packed = true];</code> 12037 */ 12038 private void clearVals() { 12039 vals_ = emptyIntList(); 12040 } 12358 12041 12359 12042 public static final int INFO_FIELD_NUMBER = 4; … … 12362 12045 * <code>optional .OSMPBF.Info info = 4;</code> 12363 12046 */ 12364 @Override 12365 public boolean hasInfo() { 12047 public boolean hasInfo() { 12366 12048 return ((bitField0_ & 0x00000002) == 0x00000002); 12367 12049 } … … 12369 12051 * <code>optional .OSMPBF.Info info = 4;</code> 12370 12052 */ 12371 @Override 12372 public crosby.binary.Osmformat.Info getInfo() { 12373 return info_; 12053 public crosby.binary.Osmformat.Info getInfo() { 12054 return info_ == null ? crosby.binary.Osmformat.Info.getDefaultInstance() : info_; 12055 } 12056 /** 12057 * <code>optional .OSMPBF.Info info = 4;</code> 12058 */ 12059 private void setInfo(crosby.binary.Osmformat.Info value) { 12060 if (value == null) { 12061 throw new NullPointerException(); 12062 } 12063 info_ = value; 12064 bitField0_ |= 0x00000002; 12065 } 12066 /** 12067 * <code>optional .OSMPBF.Info info = 4;</code> 12068 */ 12069 private void setInfo( 12070 crosby.binary.Osmformat.Info.Builder builderForValue) { 12071 info_ = builderForValue.build(); 12072 bitField0_ |= 0x00000002; 12073 } 12074 /** 12075 * <code>optional .OSMPBF.Info info = 4;</code> 12076 */ 12077 private void mergeInfo(crosby.binary.Osmformat.Info value) { 12078 if (info_ != null && 12079 info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) { 12080 info_ = 12081 crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial(); 12082 } else { 12083 info_ = value; 12084 } 12085 bitField0_ |= 0x00000002; 12086 } 12087 /** 12088 * <code>optional .OSMPBF.Info info = 4;</code> 12089 */ 12090 private void clearInfo() { info_ = null; 12091 bitField0_ = (bitField0_ & ~0x00000002); 12374 12092 } 12375 12093 12376 12094 public static final int ROLES_SID_FIELD_NUMBER = 8; 12377 private java.util.List<java.lang.Integer> rolesSid_; 12378 /** 12095 private com.google.protobuf.Internal.IntList rolesSid_; 12096 /** 12097 * <pre> 12098 * Parallel arrays 12099 * </pre> 12100 * 12379 12101 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12380 * 12381 * <pre> 12382 * Parallel arrays 12383 * </pre> 12384 */ 12385 @Override 12386 public java.util.List<java.lang.Integer> 12102 */ 12103 public java.util.List<java.lang.Integer> 12387 12104 getRolesSidList() { 12388 12105 return rolesSid_; 12389 12106 } 12390 12107 /** 12108 * <pre> 12109 * Parallel arrays 12110 * </pre> 12111 * 12391 12112 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12392 * 12113 */ 12114 public int getRolesSidCount() { 12115 return rolesSid_.size(); 12116 } 12117 /** 12393 12118 * <pre> 12394 12119 * Parallel arrays 12395 12120 * </pre> 12396 */ 12397 @Override 12398 public int getRolesSidCount() { 12399 return rolesSid_.size(); 12400 } 12401 /** 12121 * 12402 12122 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12403 * 12123 */ 12124 public int getRolesSid(int index) { 12125 return rolesSid_.getInt(index); 12126 } 12127 private int rolesSidMemoizedSerializedSize = -1; 12128 private void ensureRolesSidIsMutable() { 12129 if (!rolesSid_.isModifiable()) { 12130 rolesSid_ = 12131 com.google.protobuf.GeneratedMessageLite.mutableCopy(rolesSid_); 12132 } 12133 } 12134 /** 12404 12135 * <pre> 12405 12136 * Parallel arrays 12406 12137 * </pre> 12407 */ 12408 @Override 12409 public int getRolesSid(int index) { 12410 return rolesSid_.get(index); 12411 } 12412 private int rolesSidMemoizedSerializedSize = -1; 12138 * 12139 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12140 */ 12141 private void setRolesSid( 12142 int index, int value) { 12143 ensureRolesSidIsMutable(); 12144 rolesSid_.setInt(index, value); 12145 } 12146 /** 12147 * <pre> 12148 * Parallel arrays 12149 * </pre> 12150 * 12151 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12152 */ 12153 private void addRolesSid(int value) { 12154 ensureRolesSidIsMutable(); 12155 rolesSid_.addInt(value); 12156 } 12157 /** 12158 * <pre> 12159 * Parallel arrays 12160 * </pre> 12161 * 12162 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12163 */ 12164 private void addAllRolesSid( 12165 java.lang.Iterable<? extends java.lang.Integer> values) { 12166 ensureRolesSidIsMutable(); 12167 com.google.protobuf.AbstractMessageLite.addAll( 12168 values, rolesSid_); 12169 } 12170 /** 12171 * <pre> 12172 * Parallel arrays 12173 * </pre> 12174 * 12175 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12176 */ 12177 private void clearRolesSid() { 12178 rolesSid_ = emptyIntList(); 12179 } 12413 12180 12414 12181 public static final int MEMIDS_FIELD_NUMBER = 9; 12415 private java.util.List<java.lang.Long> memids_; 12416 /** 12182 private com.google.protobuf.Internal.LongList memids_; 12183 /** 12184 * <pre> 12185 * DELTA encoded 12186 * </pre> 12187 * 12417 12188 * <code>repeated sint64 memids = 9 [packed = true];</code> 12418 * 12419 * <pre> 12420 * DELTA encoded 12421 * </pre> 12422 */ 12423 @Override 12424 public java.util.List<java.lang.Long> 12189 */ 12190 public java.util.List<java.lang.Long> 12425 12191 getMemidsList() { 12426 12192 return memids_; 12427 12193 } 12428 12194 /** 12195 * <pre> 12196 * DELTA encoded 12197 * </pre> 12198 * 12429 12199 * <code>repeated sint64 memids = 9 [packed = true];</code> 12430 * 12200 */ 12201 public int getMemidsCount() { 12202 return memids_.size(); 12203 } 12204 /** 12431 12205 * <pre> 12432 12206 * DELTA encoded 12433 12207 * </pre> 12434 */ 12435 @Override 12436 public int getMemidsCount() { 12437 return memids_.size(); 12438 } 12439 /** 12208 * 12440 12209 * <code>repeated sint64 memids = 9 [packed = true];</code> 12441 * 12210 */ 12211 public long getMemids(int index) { 12212 return memids_.getLong(index); 12213 } 12214 private int memidsMemoizedSerializedSize = -1; 12215 private void ensureMemidsIsMutable() { 12216 if (!memids_.isModifiable()) { 12217 memids_ = 12218 com.google.protobuf.GeneratedMessageLite.mutableCopy(memids_); 12219 } 12220 } 12221 /** 12442 12222 * <pre> 12443 12223 * DELTA encoded 12444 12224 * </pre> 12445 */ 12446 @Override 12447 public long getMemids(int index) { 12448 return memids_.get(index); 12449 } 12450 private int memidsMemoizedSerializedSize = -1; 12225 * 12226 * <code>repeated sint64 memids = 9 [packed = true];</code> 12227 */ 12228 private void setMemids( 12229 int index, long value) { 12230 ensureMemidsIsMutable(); 12231 memids_.setLong(index, value); 12232 } 12233 /** 12234 * <pre> 12235 * DELTA encoded 12236 * </pre> 12237 * 12238 * <code>repeated sint64 memids = 9 [packed = true];</code> 12239 */ 12240 private void addMemids(long value) { 12241 ensureMemidsIsMutable(); 12242 memids_.addLong(value); 12243 } 12244 /** 12245 * <pre> 12246 * DELTA encoded 12247 * </pre> 12248 * 12249 * <code>repeated sint64 memids = 9 [packed = true];</code> 12250 */ 12251 private void addAllMemids( 12252 java.lang.Iterable<? extends java.lang.Long> values) { 12253 ensureMemidsIsMutable(); 12254 com.google.protobuf.AbstractMessageLite.addAll( 12255 values, memids_); 12256 } 12257 /** 12258 * <pre> 12259 * DELTA encoded 12260 * </pre> 12261 * 12262 * <code>repeated sint64 memids = 9 [packed = true];</code> 12263 */ 12264 private void clearMemids() { 12265 memids_ = emptyLongList(); 12266 } 12451 12267 12452 12268 public static final int TYPES_FIELD_NUMBER = 10; 12453 private java.util.List<crosby.binary.Osmformat.Relation.MemberType> types_; 12269 private com.google.protobuf.Internal.IntList types_; 12270 private static final com.google.protobuf.Internal.ListAdapter.Converter< 12271 java.lang.Integer, crosby.binary.Osmformat.Relation.MemberType> types_converter_ = 12272 new com.google.protobuf.Internal.ListAdapter.Converter< 12273 java.lang.Integer, crosby.binary.Osmformat.Relation.MemberType>() { 12274 public crosby.binary.Osmformat.Relation.MemberType convert(java.lang.Integer from) { 12275 crosby.binary.Osmformat.Relation.MemberType result = crosby.binary.Osmformat.Relation.MemberType.forNumber(from); 12276 return result == null ? crosby.binary.Osmformat.Relation.MemberType.NODE : result; 12277 } 12278 }; 12454 12279 /** 12455 12280 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12456 12281 */ 12457 @Override12458 public java.util.List<crosby.binary.Osmformat.Relation.MemberType> getTypesList() { 12459 returntypes_;12282 public java.util.List<crosby.binary.Osmformat.Relation.MemberType> getTypesList() { 12283 return new com.google.protobuf.Internal.ListAdapter< 12284 java.lang.Integer, crosby.binary.Osmformat.Relation.MemberType>(types_, types_converter_); 12460 12285 } 12461 12286 /** 12462 12287 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12463 12288 */ 12464 @Override 12465 public int getTypesCount() { 12289 public int getTypesCount() { 12466 12290 return types_.size(); 12467 12291 } … … 12469 12293 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12470 12294 */ 12471 @Override 12472 public crosby.binary.Osmformat.Relation.MemberType getTypes(int index) { 12473 return types_.get(index); 12295 public crosby.binary.Osmformat.Relation.MemberType getTypes(int index) { 12296 return types_converter_.convert(types_.getInt(index)); 12474 12297 } 12475 12298 private int typesMemoizedSerializedSize; 12476 12477 private void initFields() { 12478 id_ = 0L; 12479 keys_ = java.util.Collections.emptyList(); 12480 vals_ = java.util.Collections.emptyList(); 12481 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 12482 rolesSid_ = java.util.Collections.emptyList(); 12483 memids_ = java.util.Collections.emptyList(); 12484 types_ = java.util.Collections.emptyList(); 12485 } 12486 private byte memoizedIsInitialized = -1; 12487 @Override 12488 public final boolean isInitialized() { 12489 byte isInitialized = memoizedIsInitialized; 12490 if (isInitialized == 1) return true; 12491 if (isInitialized == 0) return false; 12492 12493 if (!hasId()) { 12494 memoizedIsInitialized = 0; 12495 return false; 12496 } 12497 memoizedIsInitialized = 1; 12498 return true; 12499 } 12500 12501 @Override 12502 public void writeTo(com.google.protobuf.CodedOutputStream output) 12299 private void ensureTypesIsMutable() { 12300 if (!types_.isModifiable()) { 12301 types_ = 12302 com.google.protobuf.GeneratedMessageLite.mutableCopy(types_); 12303 } 12304 } 12305 /** 12306 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12307 */ 12308 private void setTypes( 12309 int index, crosby.binary.Osmformat.Relation.MemberType value) { 12310 if (value == null) { 12311 throw new NullPointerException(); 12312 } 12313 ensureTypesIsMutable(); 12314 types_.setInt(index, value.getNumber()); 12315 } 12316 /** 12317 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12318 */ 12319 private void addTypes(crosby.binary.Osmformat.Relation.MemberType value) { 12320 if (value == null) { 12321 throw new NullPointerException(); 12322 } 12323 ensureTypesIsMutable(); 12324 types_.addInt(value.getNumber()); 12325 } 12326 /** 12327 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12328 */ 12329 private void addAllTypes( 12330 java.lang.Iterable<? extends crosby.binary.Osmformat.Relation.MemberType> values) { 12331 ensureTypesIsMutable(); 12332 for (crosby.binary.Osmformat.Relation.MemberType value : values) { 12333 types_.addInt(value.getNumber()); 12334 } 12335 } 12336 /** 12337 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12338 */ 12339 private void clearTypes() { 12340 types_ = emptyIntList(); 12341 } 12342 12343 public void writeTo(com.google.protobuf.CodedOutputStream output) 12503 12344 throws java.io.IOException { 12504 12345 getSerializedSize(); … … 12507 12348 } 12508 12349 if (getKeysList().size() > 0) { 12509 output.write RawVarint32(18);12510 output.write RawVarint32(keysMemoizedSerializedSize);12350 output.writeUInt32NoTag(18); 12351 output.writeUInt32NoTag(keysMemoizedSerializedSize); 12511 12352 } 12512 12353 for (int i = 0; i < keys_.size(); i++) { 12513 output.writeUInt32NoTag(keys_.get(i)); 12354 output.writeUInt32NoTag(keys_.getInt(i)); 12514 12355 } 12515 12356 if (getValsList().size() > 0) { 12516 output.write RawVarint32(26);12517 output.write RawVarint32(valsMemoizedSerializedSize);12357 output.writeUInt32NoTag(26); 12358 output.writeUInt32NoTag(valsMemoizedSerializedSize); 12518 12359 } 12519 12360 for (int i = 0; i < vals_.size(); i++) { 12520 output.writeUInt32NoTag(vals_.get(i)); 12361 output.writeUInt32NoTag(vals_.getInt(i)); 12521 12362 } 12522 12363 if (((bitField0_ & 0x00000002) == 0x00000002)) { 12523 output.writeMessage(4, info_);12364 output.writeMessage(4, getInfo()); 12524 12365 } 12525 12366 if (getRolesSidList().size() > 0) { 12526 output.write RawVarint32(66);12527 output.write RawVarint32(rolesSidMemoizedSerializedSize);12367 output.writeUInt32NoTag(66); 12368 output.writeUInt32NoTag(rolesSidMemoizedSerializedSize); 12528 12369 } 12529 12370 for (int i = 0; i < rolesSid_.size(); i++) { 12530 output.writeInt32NoTag(rolesSid_.get(i)); 12371 output.writeInt32NoTag(rolesSid_.getInt(i)); 12531 12372 } 12532 12373 if (getMemidsList().size() > 0) { 12533 output.write RawVarint32(74);12534 output.write RawVarint32(memidsMemoizedSerializedSize);12374 output.writeUInt32NoTag(74); 12375 output.writeUInt32NoTag(memidsMemoizedSerializedSize); 12535 12376 } 12536 12377 for (int i = 0; i < memids_.size(); i++) { 12537 output.writeSInt64NoTag(memids_.get(i)); 12378 output.writeSInt64NoTag(memids_.getLong(i)); 12538 12379 } 12539 12380 if (getTypesList().size() > 0) { 12540 output.write RawVarint32(82);12541 output.write RawVarint32(typesMemoizedSerializedSize);12381 output.writeUInt32NoTag(82); 12382 output.writeUInt32NoTag(typesMemoizedSerializedSize); 12542 12383 } 12543 12384 for (int i = 0; i < types_.size(); i++) { 12544 output.writeEnumNoTag(types_.get(i).getNumber()); 12545 } 12546 output.writeRawBytes(unknownFields); 12547 } 12548 12549 private int memoizedSerializedSize = -1; 12550 @Override 12551 public int getSerializedSize() { 12385 output.writeEnumNoTag(types_.getInt(i)); 12386 } 12387 unknownFields.writeTo(output); 12388 } 12389 12390 public int getSerializedSize() { 12552 12391 int size = memoizedSerializedSize; 12553 12392 if (size != -1) return size; … … 12562 12401 for (int i = 0; i < keys_.size(); i++) { 12563 12402 dataSize += com.google.protobuf.CodedOutputStream 12564 .computeUInt32SizeNoTag(keys_.get(i)); 12403 .computeUInt32SizeNoTag(keys_.getInt(i)); 12565 12404 } 12566 12405 size += dataSize; … … 12576 12415 for (int i = 0; i < vals_.size(); i++) { 12577 12416 dataSize += com.google.protobuf.CodedOutputStream 12578 .computeUInt32SizeNoTag(vals_.get(i)); 12417 .computeUInt32SizeNoTag(vals_.getInt(i)); 12579 12418 } 12580 12419 size += dataSize; … … 12588 12427 if (((bitField0_ & 0x00000002) == 0x00000002)) { 12589 12428 size += com.google.protobuf.CodedOutputStream 12590 .computeMessageSize(4, info_);12429 .computeMessageSize(4, getInfo()); 12591 12430 } 12592 12431 { … … 12594 12433 for (int i = 0; i < rolesSid_.size(); i++) { 12595 12434 dataSize += com.google.protobuf.CodedOutputStream 12596 .computeInt32SizeNoTag(rolesSid_.get(i)); 12435 .computeInt32SizeNoTag(rolesSid_.getInt(i)); 12597 12436 } 12598 12437 size += dataSize; … … 12608 12447 for (int i = 0; i < memids_.size(); i++) { 12609 12448 dataSize += com.google.protobuf.CodedOutputStream 12610 .computeSInt64SizeNoTag(memids_.get(i)); 12449 .computeSInt64SizeNoTag(memids_.getLong(i)); 12611 12450 } 12612 12451 size += dataSize; … … 12622 12461 for (int i = 0; i < types_.size(); i++) { 12623 12462 dataSize += com.google.protobuf.CodedOutputStream 12624 .computeEnumSizeNoTag(types_.get (i).getNumber());12463 .computeEnumSizeNoTag(types_.getInt(i)); 12625 12464 } 12626 12465 size += dataSize; 12627 12466 if (!getTypesList().isEmpty()) { size += 1; 12628 12467 size += com.google.protobuf.CodedOutputStream 12629 .compute RawVarint32Size(dataSize);12468 .computeUInt32SizeNoTag(dataSize); 12630 12469 }typesMemoizedSerializedSize = dataSize; 12631 12470 } 12632 size += unknownFields. size();12471 size += unknownFields.getSerializedSize(); 12633 12472 memoizedSerializedSize = size; 12634 12473 return size; 12635 12474 } 12636 12475 12637 private static final long serialVersionUID = 0L; 12638 @java.lang.Override 12639 protected java.lang.Object writeReplace() 12640 throws java.io.ObjectStreamException { 12641 return super.writeReplace(); 12642 } 12643 12476 public static crosby.binary.Osmformat.Relation parseFrom( 12477 java.nio.ByteBuffer data) 12478 throws com.google.protobuf.InvalidProtocolBufferException { 12479 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12480 DEFAULT_INSTANCE, data); 12481 } 12482 public static crosby.binary.Osmformat.Relation parseFrom( 12483 java.nio.ByteBuffer data, 12484 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12485 throws com.google.protobuf.InvalidProtocolBufferException { 12486 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12487 DEFAULT_INSTANCE, data, extensionRegistry); 12488 } 12644 12489 public static crosby.binary.Osmformat.Relation parseFrom( 12645 12490 com.google.protobuf.ByteString data) 12646 12491 throws com.google.protobuf.InvalidProtocolBufferException { 12647 return PARSER.parseFrom(data); 12492 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12493 DEFAULT_INSTANCE, data); 12648 12494 } 12649 12495 public static crosby.binary.Osmformat.Relation parseFrom( … … 12651 12497 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12652 12498 throws com.google.protobuf.InvalidProtocolBufferException { 12653 return PARSER.parseFrom(data, extensionRegistry); 12499 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12500 DEFAULT_INSTANCE, data, extensionRegistry); 12654 12501 } 12655 12502 public static crosby.binary.Osmformat.Relation parseFrom(byte[] data) 12656 12503 throws com.google.protobuf.InvalidProtocolBufferException { 12657 return PARSER.parseFrom(data); 12504 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12505 DEFAULT_INSTANCE, data); 12658 12506 } 12659 12507 public static crosby.binary.Osmformat.Relation parseFrom( … … 12661 12509 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12662 12510 throws com.google.protobuf.InvalidProtocolBufferException { 12663 return PARSER.parseFrom(data, extensionRegistry); 12511 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12512 DEFAULT_INSTANCE, data, extensionRegistry); 12664 12513 } 12665 12514 public static crosby.binary.Osmformat.Relation parseFrom(java.io.InputStream input) 12666 12515 throws java.io.IOException { 12667 return PARSER.parseFrom(input); 12516 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12517 DEFAULT_INSTANCE, input); 12668 12518 } 12669 12519 public static crosby.binary.Osmformat.Relation parseFrom( … … 12671 12521 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12672 12522 throws java.io.IOException { 12673 return PARSER.parseFrom(input, extensionRegistry); 12523 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12524 DEFAULT_INSTANCE, input, extensionRegistry); 12674 12525 } 12675 12526 public static crosby.binary.Osmformat.Relation parseDelimitedFrom(java.io.InputStream input) 12676 12527 throws java.io.IOException { 12677 return PARSER.parseDelimitedFrom(input);12528 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 12678 12529 } 12679 12530 public static crosby.binary.Osmformat.Relation parseDelimitedFrom( … … 12681 12532 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12682 12533 throws java.io.IOException { 12683 return PARSER.parseDelimitedFrom(input, extensionRegistry);12534 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 12684 12535 } 12685 12536 public static crosby.binary.Osmformat.Relation parseFrom( 12686 12537 com.google.protobuf.CodedInputStream input) 12687 12538 throws java.io.IOException { 12688 return PARSER.parseFrom(input); 12539 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12540 DEFAULT_INSTANCE, input); 12689 12541 } 12690 12542 public static crosby.binary.Osmformat.Relation parseFrom( … … 12692 12544 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12693 12545 throws java.io.IOException { 12694 return PARSER.parseFrom(input, extensionRegistry); 12695 } 12696 12697 public static Builder newBuilder() { return Builder.create(); } 12698 @Override 12699 public Builder newBuilderForType() { return newBuilder(); } 12546 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12547 DEFAULT_INSTANCE, input, extensionRegistry); 12548 } 12549 12550 public static Builder newBuilder() { 12551 return DEFAULT_INSTANCE.toBuilder(); 12552 } 12700 12553 public static Builder newBuilder(crosby.binary.Osmformat.Relation prototype) { 12701 return newBuilder().mergeFrom(prototype); 12702 } 12703 @Override 12704 public Builder toBuilder() { return newBuilder(this); } 12554 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 12555 } 12705 12556 12706 12557 /** … … 12709 12560 public static final class Builder extends 12710 12561 com.google.protobuf.GeneratedMessageLite.Builder< 12711 crosby.binary.Osmformat.Relation, Builder> 12712 implements 12562 crosby.binary.Osmformat.Relation, Builder> implements 12713 12563 // @@protoc_insertion_point(builder_implements:OSMPBF.Relation) 12714 12564 crosby.binary.Osmformat.RelationOrBuilder { 12715 12565 // Construct using crosby.binary.Osmformat.Relation.newBuilder() 12716 12566 private Builder() { 12717 maybeForceBuilderInitialization(); 12718 } 12719 12720 private void maybeForceBuilderInitialization() { 12721 } 12722 private static Builder create() { 12723 return new Builder(); 12724 } 12725 12726 @Override 12727 public Builder clear() { 12728 super.clear(); 12729 id_ = 0L; 12730 bitField0_ = (bitField0_ & ~0x00000001); 12731 keys_ = java.util.Collections.emptyList(); 12732 bitField0_ = (bitField0_ & ~0x00000002); 12733 vals_ = java.util.Collections.emptyList(); 12734 bitField0_ = (bitField0_ & ~0x00000004); 12735 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 12736 bitField0_ = (bitField0_ & ~0x00000008); 12737 rolesSid_ = java.util.Collections.emptyList(); 12738 bitField0_ = (bitField0_ & ~0x00000010); 12739 memids_ = java.util.Collections.emptyList(); 12740 bitField0_ = (bitField0_ & ~0x00000020); 12741 types_ = java.util.Collections.emptyList(); 12742 bitField0_ = (bitField0_ & ~0x00000040); 12743 return this; 12744 } 12745 12746 @Override 12747 public Builder clone() { 12748 return create().mergeFrom(buildPartial()); 12749 } 12750 12751 @Override 12752 public crosby.binary.Osmformat.Relation getDefaultInstanceForType() { 12753 return crosby.binary.Osmformat.Relation.getDefaultInstance(); 12754 } 12755 12756 @Override 12757 public crosby.binary.Osmformat.Relation build() { 12758 crosby.binary.Osmformat.Relation result = buildPartial(); 12759 if (!result.isInitialized()) { 12760 throw newUninitializedMessageException(result); 12761 } 12762 return result; 12763 } 12764 12765 @Override 12766 public crosby.binary.Osmformat.Relation buildPartial() { 12767 crosby.binary.Osmformat.Relation result = new crosby.binary.Osmformat.Relation(this); 12768 int from_bitField0_ = bitField0_; 12769 int to_bitField0_ = 0; 12770 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 12771 to_bitField0_ |= 0x00000001; 12772 } 12773 result.id_ = id_; 12774 if (((bitField0_ & 0x00000002) == 0x00000002)) { 12775 keys_ = java.util.Collections.unmodifiableList(keys_); 12776 bitField0_ = (bitField0_ & ~0x00000002); 12777 } 12778 result.keys_ = keys_; 12779 if (((bitField0_ & 0x00000004) == 0x00000004)) { 12780 vals_ = java.util.Collections.unmodifiableList(vals_); 12781 bitField0_ = (bitField0_ & ~0x00000004); 12782 } 12783 result.vals_ = vals_; 12784 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 12785 to_bitField0_ |= 0x00000002; 12786 } 12787 result.info_ = info_; 12788 if (((bitField0_ & 0x00000010) == 0x00000010)) { 12789 rolesSid_ = java.util.Collections.unmodifiableList(rolesSid_); 12790 bitField0_ = (bitField0_ & ~0x00000010); 12791 } 12792 result.rolesSid_ = rolesSid_; 12793 if (((bitField0_ & 0x00000020) == 0x00000020)) { 12794 memids_ = java.util.Collections.unmodifiableList(memids_); 12795 bitField0_ = (bitField0_ & ~0x00000020); 12796 } 12797 result.memids_ = memids_; 12798 if (((bitField0_ & 0x00000040) == 0x00000040)) { 12799 types_ = java.util.Collections.unmodifiableList(types_); 12800 bitField0_ = (bitField0_ & ~0x00000040); 12801 } 12802 result.types_ = types_; 12803 result.bitField0_ = to_bitField0_; 12804 return result; 12805 } 12806 12807 @Override 12808 public Builder mergeFrom(crosby.binary.Osmformat.Relation other) { 12809 if (other == crosby.binary.Osmformat.Relation.getDefaultInstance()) return this; 12810 if (other.hasId()) { 12811 setId(other.getId()); 12812 } 12813 if (!other.keys_.isEmpty()) { 12814 if (keys_.isEmpty()) { 12815 keys_ = other.keys_; 12816 bitField0_ = (bitField0_ & ~0x00000002); 12817 } else { 12818 ensureKeysIsMutable(); 12819 keys_.addAll(other.keys_); 12820 } 12821 12822 } 12823 if (!other.vals_.isEmpty()) { 12824 if (vals_.isEmpty()) { 12825 vals_ = other.vals_; 12826 bitField0_ = (bitField0_ & ~0x00000004); 12827 } else { 12828 ensureValsIsMutable(); 12829 vals_.addAll(other.vals_); 12830 } 12831 12832 } 12833 if (other.hasInfo()) { 12834 mergeInfo(other.getInfo()); 12835 } 12836 if (!other.rolesSid_.isEmpty()) { 12837 if (rolesSid_.isEmpty()) { 12838 rolesSid_ = other.rolesSid_; 12839 bitField0_ = (bitField0_ & ~0x00000010); 12840 } else { 12841 ensureRolesSidIsMutable(); 12842 rolesSid_.addAll(other.rolesSid_); 12843 } 12844 12845 } 12846 if (!other.memids_.isEmpty()) { 12847 if (memids_.isEmpty()) { 12848 memids_ = other.memids_; 12849 bitField0_ = (bitField0_ & ~0x00000020); 12850 } else { 12851 ensureMemidsIsMutable(); 12852 memids_.addAll(other.memids_); 12853 } 12854 12855 } 12856 if (!other.types_.isEmpty()) { 12857 if (types_.isEmpty()) { 12858 types_ = other.types_; 12859 bitField0_ = (bitField0_ & ~0x00000040); 12860 } else { 12861 ensureTypesIsMutable(); 12862 types_.addAll(other.types_); 12863 } 12864 12865 } 12866 setUnknownFields( 12867 getUnknownFields().concat(other.unknownFields)); 12868 return this; 12869 } 12870 12871 @Override 12872 public final boolean isInitialized() { 12873 if (!hasId()) { 12874 12875 return false; 12876 } 12877 return true; 12878 } 12879 12880 @Override 12881 public Builder mergeFrom( 12882 com.google.protobuf.CodedInputStream input, 12883 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12884 throws java.io.IOException { 12885 crosby.binary.Osmformat.Relation parsedMessage = null; 12886 try { 12887 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 12888 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 12889 parsedMessage = (crosby.binary.Osmformat.Relation) e.getUnfinishedMessage(); 12890 throw e; 12891 } finally { 12892 if (parsedMessage != null) { 12893 mergeFrom(parsedMessage); 12894 } 12895 } 12896 return this; 12897 } 12898 private int bitField0_; 12899 12900 private long id_ ; 12567 super(DEFAULT_INSTANCE); 12568 } 12569 12570 12901 12571 /** 12902 12572 * <code>required int64 id = 1;</code> 12903 12573 */ 12904 @Override 12905 public boolean hasId() { 12906 return ((bitField0_ & 0x00000001) == 0x00000001); 12574 public boolean hasId() { 12575 return instance.hasId(); 12907 12576 } 12908 12577 /** 12909 12578 * <code>required int64 id = 1;</code> 12910 12579 */ 12911 @Override 12912 public long getId() { 12913 return id_; 12580 public long getId() { 12581 return instance.getId(); 12914 12582 } 12915 12583 /** … … 12917 12585 */ 12918 12586 public Builder setId(long value) { 12919 bitField0_ |= 0x00000001; 12920 id_ = value; 12921 12587 copyOnWrite(); 12588 instance.setId(value); 12922 12589 return this; 12923 12590 } … … 12926 12593 */ 12927 12594 public Builder clearId() { 12928 bitField0_ = (bitField0_ & ~0x00000001); 12929 id_ = 0L; 12930 12931 return this; 12932 } 12933 12934 private java.util.List<java.lang.Integer> keys_ = java.util.Collections.emptyList(); 12935 private void ensureKeysIsMutable() { 12936 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 12937 keys_ = new java.util.ArrayList<>(keys_); 12938 bitField0_ |= 0x00000002; 12939 } 12940 } 12941 /** 12595 copyOnWrite(); 12596 instance.clearId(); 12597 return this; 12598 } 12599 12600 /** 12601 * <pre> 12602 * Parallel arrays. 12603 * </pre> 12604 * 12942 12605 * <code>repeated uint32 keys = 2 [packed = true];</code> 12943 * 12606 */ 12607 public java.util.List<java.lang.Integer> 12608 getKeysList() { 12609 return java.util.Collections.unmodifiableList( 12610 instance.getKeysList()); 12611 } 12612 /** 12944 12613 * <pre> 12945 12614 * Parallel arrays. 12946 12615 * </pre> 12947 */ 12948 @Override 12949 public java.util.List<java.lang.Integer> 12950 getKeysList() { 12951 return java.util.Collections.unmodifiableList(keys_); 12952 } 12953 /** 12616 * 12954 12617 * <code>repeated uint32 keys = 2 [packed = true];</code> 12955 * 12618 */ 12619 public int getKeysCount() { 12620 return instance.getKeysCount(); 12621 } 12622 /** 12956 12623 * <pre> 12957 12624 * Parallel arrays. 12958 12625 * </pre> 12959 */ 12960 @Override 12961 public int getKeysCount() { 12962 return keys_.size(); 12963 } 12964 /** 12626 * 12965 12627 * <code>repeated uint32 keys = 2 [packed = true];</code> 12966 * 12628 */ 12629 public int getKeys(int index) { 12630 return instance.getKeys(index); 12631 } 12632 /** 12967 12633 * <pre> 12968 12634 * Parallel arrays. 12969 12635 * </pre> 12970 */ 12971 @Override 12972 public int getKeys(int index) { 12973 return keys_.get(index); 12974 } 12975 /** 12636 * 12976 12637 * <code>repeated uint32 keys = 2 [packed = true];</code> 12977 *12978 * <pre>12979 * Parallel arrays.12980 * </pre>12981 12638 */ 12982 12639 public Builder setKeys( 12983 12640 int index, int value) { 12984 ensureKeysIsMutable(); 12985 keys_.set(index, value); 12986 12987 return this; 12988 } 12989 /** 12641 copyOnWrite(); 12642 instance.setKeys(index, value); 12643 return this; 12644 } 12645 /** 12646 * <pre> 12647 * Parallel arrays. 12648 * </pre> 12649 * 12990 12650 * <code>repeated uint32 keys = 2 [packed = true];</code> 12991 * 12651 */ 12652 public Builder addKeys(int value) { 12653 copyOnWrite(); 12654 instance.addKeys(value); 12655 return this; 12656 } 12657 /** 12992 12658 * <pre> 12993 12659 * Parallel arrays. 12994 12660 * </pre> 12995 */ 12996 public Builder addKeys(int value) { 12997 ensureKeysIsMutable(); 12998 keys_.add(value); 12999 13000 return this; 13001 } 13002 /** 12661 * 13003 12662 * <code>repeated uint32 keys = 2 [packed = true];</code> 13004 *13005 * <pre>13006 * Parallel arrays.13007 * </pre>13008 12663 */ 13009 12664 public Builder addAllKeys( 13010 12665 java.lang.Iterable<? extends java.lang.Integer> values) { 13011 ensureKeysIsMutable(); 13012 com.google.protobuf.AbstractMessageLite.Builder.addAll( 13013 values, keys_); 13014 13015 return this; 13016 } 13017 /** 12666 copyOnWrite(); 12667 instance.addAllKeys(values); 12668 return this; 12669 } 12670 /** 12671 * <pre> 12672 * Parallel arrays. 12673 * </pre> 12674 * 13018 12675 * <code>repeated uint32 keys = 2 [packed = true];</code> 13019 *13020 * <pre>13021 * Parallel arrays.13022 * </pre>13023 12676 */ 13024 12677 public Builder clearKeys() { 13025 keys_ = java.util.Collections.emptyList(); 13026 bitField0_ = (bitField0_ & ~0x00000002); 13027 13028 return this; 13029 } 13030 13031 private java.util.List<java.lang.Integer> vals_ = java.util.Collections.emptyList(); 13032 private void ensureValsIsMutable() { 13033 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 13034 vals_ = new java.util.ArrayList<>(vals_); 13035 bitField0_ |= 0x00000004; 13036 } 13037 } 12678 copyOnWrite(); 12679 instance.clearKeys(); 12680 return this; 12681 } 12682 13038 12683 /** 13039 12684 * <code>repeated uint32 vals = 3 [packed = true];</code> 13040 12685 */ 13041 @Override 13042 public java.util.List<java.lang.Integer> 12686 public java.util.List<java.lang.Integer> 13043 12687 getValsList() { 13044 return java.util.Collections.unmodifiableList(vals_); 12688 return java.util.Collections.unmodifiableList( 12689 instance.getValsList()); 13045 12690 } 13046 12691 /** 13047 12692 * <code>repeated uint32 vals = 3 [packed = true];</code> 13048 12693 */ 13049 @Override 13050 public int getValsCount() { 13051 return vals_.size(); 12694 public int getValsCount() { 12695 return instance.getValsCount(); 13052 12696 } 13053 12697 /** 13054 12698 * <code>repeated uint32 vals = 3 [packed = true];</code> 13055 12699 */ 13056 @Override 13057 public int getVals(int index) { 13058 return vals_.get(index); 12700 public int getVals(int index) { 12701 return instance.getVals(index); 13059 12702 } 13060 12703 /** … … 13063 12706 public Builder setVals( 13064 12707 int index, int value) { 13065 ensureValsIsMutable(); 13066 vals_.set(index, value); 13067 12708 copyOnWrite(); 12709 instance.setVals(index, value); 13068 12710 return this; 13069 12711 } … … 13072 12714 */ 13073 12715 public Builder addVals(int value) { 13074 ensureValsIsMutable(); 13075 vals_.add(value); 13076 12716 copyOnWrite(); 12717 instance.addVals(value); 13077 12718 return this; 13078 12719 } … … 13082 12723 public Builder addAllVals( 13083 12724 java.lang.Iterable<? extends java.lang.Integer> values) { 13084 ensureValsIsMutable(); 13085 com.google.protobuf.AbstractMessageLite.Builder.addAll( 13086 values, vals_); 13087 12725 copyOnWrite(); 12726 instance.addAllVals(values); 13088 12727 return this; 13089 12728 } … … 13092 12731 */ 13093 12732 public Builder clearVals() { 13094 vals_ = java.util.Collections.emptyList(); 13095 bitField0_ = (bitField0_ & ~0x00000004); 13096 13097 return this; 13098 } 13099 13100 private crosby.binary.Osmformat.Info info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 12733 copyOnWrite(); 12734 instance.clearVals(); 12735 return this; 12736 } 12737 13101 12738 /** 13102 12739 * <code>optional .OSMPBF.Info info = 4;</code> 13103 12740 */ 13104 @Override 13105 public boolean hasInfo() { 13106 return ((bitField0_ & 0x00000008) == 0x00000008); 12741 public boolean hasInfo() { 12742 return instance.hasInfo(); 13107 12743 } 13108 12744 /** 13109 12745 * <code>optional .OSMPBF.Info info = 4;</code> 13110 12746 */ 13111 @Override 13112 public crosby.binary.Osmformat.Info getInfo() { 13113 return info_; 12747 public crosby.binary.Osmformat.Info getInfo() { 12748 return instance.getInfo(); 13114 12749 } 13115 12750 /** … … 13117 12752 */ 13118 12753 public Builder setInfo(crosby.binary.Osmformat.Info value) { 13119 if (value == null) { 13120 throw new NullPointerException(); 13121 } 13122 info_ = value; 13123 13124 bitField0_ |= 0x00000008; 13125 return this; 13126 } 12754 copyOnWrite(); 12755 instance.setInfo(value); 12756 return this; 12757 } 13127 12758 /** 13128 12759 * <code>optional .OSMPBF.Info info = 4;</code> … … 13130 12761 public Builder setInfo( 13131 12762 crosby.binary.Osmformat.Info.Builder builderForValue) { 13132 info_ = builderForValue.build(); 13133 13134 bitField0_ |= 0x00000008; 12763 copyOnWrite(); 12764 instance.setInfo(builderForValue); 13135 12765 return this; 13136 12766 } … … 13139 12769 */ 13140 12770 public Builder mergeInfo(crosby.binary.Osmformat.Info value) { 13141 if (((bitField0_ & 0x00000008) == 0x00000008) && 13142 info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) { 13143 info_ = 13144 crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial(); 13145 } else { 13146 info_ = value; 13147 } 13148 13149 bitField0_ |= 0x00000008; 12771 copyOnWrite(); 12772 instance.mergeInfo(value); 13150 12773 return this; 13151 12774 } … … 13153 12776 * <code>optional .OSMPBF.Info info = 4;</code> 13154 12777 */ 13155 public Builder clearInfo() { 13156 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 13157 13158 bitField0_ = (bitField0_ & ~0x00000008); 13159 return this; 13160 } 13161 13162 private java.util.List<java.lang.Integer> rolesSid_ = java.util.Collections.emptyList(); 13163 private void ensureRolesSidIsMutable() { 13164 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 13165 rolesSid_ = new java.util.ArrayList<>(rolesSid_); 13166 bitField0_ |= 0x00000010; 13167 } 13168 } 13169 /** 12778 public Builder clearInfo() { copyOnWrite(); 12779 instance.clearInfo(); 12780 return this; 12781 } 12782 12783 /** 12784 * <pre> 12785 * Parallel arrays 12786 * </pre> 12787 * 13170 12788 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 13171 * 12789 */ 12790 public java.util.List<java.lang.Integer> 12791 getRolesSidList() { 12792 return java.util.Collections.unmodifiableList( 12793 instance.getRolesSidList()); 12794 } 12795 /** 13172 12796 * <pre> 13173 12797 * Parallel arrays 13174 12798 * </pre> 13175 */ 13176 @Override 13177 public java.util.List<java.lang.Integer> 13178 getRolesSidList() { 13179 return java.util.Collections.unmodifiableList(rolesSid_); 13180 } 13181 /** 12799 * 13182 12800 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 13183 * 12801 */ 12802 public int getRolesSidCount() { 12803 return instance.getRolesSidCount(); 12804 } 12805 /** 13184 12806 * <pre> 13185 12807 * Parallel arrays 13186 12808 * </pre> 13187 */ 13188 @Override 13189 public int getRolesSidCount() { 13190 return rolesSid_.size(); 13191 } 13192 /** 12809 * 13193 12810 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 13194 * 12811 */ 12812 public int getRolesSid(int index) { 12813 return instance.getRolesSid(index); 12814 } 12815 /** 13195 12816 * <pre> 13196 12817 * Parallel arrays 13197 12818 * </pre> 13198 */ 13199 @Override 13200 public int getRolesSid(int index) { 13201 return rolesSid_.get(index); 13202 } 13203 /** 12819 * 13204 12820 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 13205 *13206 * <pre>13207 * Parallel arrays13208 * </pre>13209 12821 */ 13210 12822 public Builder setRolesSid( 13211 12823 int index, int value) { 13212 ensureRolesSidIsMutable(); 13213 rolesSid_.set(index, value); 13214 13215 return this; 13216 } 13217 /** 12824 copyOnWrite(); 12825 instance.setRolesSid(index, value); 12826 return this; 12827 } 12828 /** 12829 * <pre> 12830 * Parallel arrays 12831 * </pre> 12832 * 13218 12833 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 13219 * 12834 */ 12835 public Builder addRolesSid(int value) { 12836 copyOnWrite(); 12837 instance.addRolesSid(value); 12838 return this; 12839 } 12840 /** 13220 12841 * <pre> 13221 12842 * Parallel arrays 13222 12843 * </pre> 13223 */ 13224 public Builder addRolesSid(int value) { 13225 ensureRolesSidIsMutable(); 13226 rolesSid_.add(value); 13227 13228 return this; 13229 } 13230 /** 12844 * 13231 12845 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 13232 *13233 * <pre>13234 * Parallel arrays13235 * </pre>13236 12846 */ 13237 12847 public Builder addAllRolesSid( 13238 12848 java.lang.Iterable<? extends java.lang.Integer> values) { 13239 ensureRolesSidIsMutable(); 13240 com.google.protobuf.AbstractMessageLite.Builder.addAll( 13241 values, rolesSid_); 13242 13243 return this; 13244 } 13245 /** 12849 copyOnWrite(); 12850 instance.addAllRolesSid(values); 12851 return this; 12852 } 12853 /** 12854 * <pre> 12855 * Parallel arrays 12856 * </pre> 12857 * 13246 12858 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 13247 *13248 * <pre>13249 * Parallel arrays13250 * </pre>13251 12859 */ 13252 12860 public Builder clearRolesSid() { 13253 rolesSid_ = java.util.Collections.emptyList(); 13254 bitField0_ = (bitField0_ & ~0x00000010); 13255 13256 return this; 13257 } 13258 13259 private java.util.List<java.lang.Long> memids_ = java.util.Collections.emptyList(); 13260 private void ensureMemidsIsMutable() { 13261 if (!((bitField0_ & 0x00000020) == 0x00000020)) { 13262 memids_ = new java.util.ArrayList<>(memids_); 13263 bitField0_ |= 0x00000020; 13264 } 13265 } 13266 /** 12861 copyOnWrite(); 12862 instance.clearRolesSid(); 12863 return this; 12864 } 12865 12866 /** 12867 * <pre> 12868 * DELTA encoded 12869 * </pre> 12870 * 13267 12871 * <code>repeated sint64 memids = 9 [packed = true];</code> 13268 * 12872 */ 12873 public java.util.List<java.lang.Long> 12874 getMemidsList() { 12875 return java.util.Collections.unmodifiableList( 12876 instance.getMemidsList()); 12877 } 12878 /** 13269 12879 * <pre> 13270 12880 * DELTA encoded 13271 12881 * </pre> 13272 */ 13273 @Override 13274 public java.util.List<java.lang.Long> 13275 getMemidsList() { 13276 return java.util.Collections.unmodifiableList(memids_); 13277 } 13278 /** 12882 * 13279 12883 * <code>repeated sint64 memids = 9 [packed = true];</code> 13280 * 12884 */ 12885 public int getMemidsCount() { 12886 return instance.getMemidsCount(); 12887 } 12888 /** 13281 12889 * <pre> 13282 12890 * DELTA encoded 13283 12891 * </pre> 13284 */ 13285 @Override 13286 public int getMemidsCount() { 13287 return memids_.size(); 13288 } 13289 /** 12892 * 13290 12893 * <code>repeated sint64 memids = 9 [packed = true];</code> 13291 * 12894 */ 12895 public long getMemids(int index) { 12896 return instance.getMemids(index); 12897 } 12898 /** 13292 12899 * <pre> 13293 12900 * DELTA encoded 13294 12901 * </pre> 13295 */ 13296 @Override 13297 public long getMemids(int index) { 13298 return memids_.get(index); 13299 } 13300 /** 12902 * 13301 12903 * <code>repeated sint64 memids = 9 [packed = true];</code> 13302 *13303 * <pre>13304 * DELTA encoded13305 * </pre>13306 12904 */ 13307 12905 public Builder setMemids( 13308 12906 int index, long value) { 13309 ensureMemidsIsMutable(); 13310 memids_.set(index, value); 13311 13312 return this; 13313 } 13314 /** 12907 copyOnWrite(); 12908 instance.setMemids(index, value); 12909 return this; 12910 } 12911 /** 12912 * <pre> 12913 * DELTA encoded 12914 * </pre> 12915 * 13315 12916 * <code>repeated sint64 memids = 9 [packed = true];</code> 13316 * 12917 */ 12918 public Builder addMemids(long value) { 12919 copyOnWrite(); 12920 instance.addMemids(value); 12921 return this; 12922 } 12923 /** 13317 12924 * <pre> 13318 12925 * DELTA encoded 13319 12926 * </pre> 13320 */ 13321 public Builder addMemids(long value) { 13322 ensureMemidsIsMutable(); 13323 memids_.add(value); 13324 13325 return this; 13326 } 13327 /** 12927 * 13328 12928 * <code>repeated sint64 memids = 9 [packed = true];</code> 13329 *13330 * <pre>13331 * DELTA encoded13332 * </pre>13333 12929 */ 13334 12930 public Builder addAllMemids( 13335 12931 java.lang.Iterable<? extends java.lang.Long> values) { 13336 ensureMemidsIsMutable(); 13337 com.google.protobuf.AbstractMessageLite.Builder.addAll( 13338 values, memids_); 13339 13340 return this; 13341 } 13342 /** 12932 copyOnWrite(); 12933 instance.addAllMemids(values); 12934 return this; 12935 } 12936 /** 12937 * <pre> 12938 * DELTA encoded 12939 * </pre> 12940 * 13343 12941 * <code>repeated sint64 memids = 9 [packed = true];</code> 13344 *13345 * <pre>13346 * DELTA encoded13347 * </pre>13348 12942 */ 13349 12943 public Builder clearMemids() { 13350 memids_ = java.util.Collections.emptyList(); 13351 bitField0_ = (bitField0_ & ~0x00000020); 13352 13353 return this; 13354 } 13355 13356 private java.util.List<crosby.binary.Osmformat.Relation.MemberType> types_ = 13357 java.util.Collections.emptyList(); 13358 private void ensureTypesIsMutable() { 13359 if (!((bitField0_ & 0x00000040) == 0x00000040)) { 13360 types_ = new java.util.ArrayList<>(types_); 13361 bitField0_ |= 0x00000040; 13362 } 13363 } 12944 copyOnWrite(); 12945 instance.clearMemids(); 12946 return this; 12947 } 12948 13364 12949 /** 13365 12950 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 13366 12951 */ 13367 @Override 13368 public java.util.List<crosby.binary.Osmformat.Relation.MemberType> getTypesList() { 13369 return java.util.Collections.unmodifiableList(types_); 12952 public java.util.List<crosby.binary.Osmformat.Relation.MemberType> getTypesList() { 12953 return instance.getTypesList(); 13370 12954 } 13371 12955 /** 13372 12956 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 13373 12957 */ 13374 @Override 13375 public int getTypesCount() { 13376 return types_.size(); 12958 public int getTypesCount() { 12959 return instance.getTypesCount(); 13377 12960 } 13378 12961 /** 13379 12962 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 13380 12963 */ 13381 @Override 13382 public crosby.binary.Osmformat.Relation.MemberType getTypes(int index) { 13383 return types_.get(index); 12964 public crosby.binary.Osmformat.Relation.MemberType getTypes(int index) { 12965 return instance.getTypes(index); 13384 12966 } 13385 12967 /** … … 13388 12970 public Builder setTypes( 13389 12971 int index, crosby.binary.Osmformat.Relation.MemberType value) { 13390 if (value == null) { 13391 throw new NullPointerException(); 13392 } 13393 ensureTypesIsMutable(); 13394 types_.set(index, value); 13395 12972 copyOnWrite(); 12973 instance.setTypes(index, value); 13396 12974 return this; 13397 12975 } … … 13400 12978 */ 13401 12979 public Builder addTypes(crosby.binary.Osmformat.Relation.MemberType value) { 13402 if (value == null) { 13403 throw new NullPointerException(); 13404 } 13405 ensureTypesIsMutable(); 13406 types_.add(value); 13407 12980 copyOnWrite(); 12981 instance.addTypes(value); 13408 12982 return this; 13409 12983 } … … 13413 12987 public Builder addAllTypes( 13414 12988 java.lang.Iterable<? extends crosby.binary.Osmformat.Relation.MemberType> values) { 13415 ensureTypesIsMutable(); 13416 com.google.protobuf.AbstractMessageLite.Builder.addAll( 13417 values, types_); 13418 13419 return this; 12989 copyOnWrite(); 12990 instance.addAllTypes(values); return this; 13420 12991 } 13421 12992 /** … … 13423 12994 */ 13424 12995 public Builder clearTypes() { 13425 types_ = java.util.Collections.emptyList(); 13426 bitField0_ = (bitField0_ & ~0x00000040); 13427 12996 copyOnWrite(); 12997 instance.clearTypes(); 13428 12998 return this; 13429 12999 } … … 13431 13001 // @@protoc_insertion_point(builder_scope:OSMPBF.Relation) 13432 13002 } 13433 13003 private byte memoizedIsInitialized = -1; 13004 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 13005 protected final java.lang.Object dynamicMethod( 13006 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 13007 java.lang.Object arg0, java.lang.Object arg1) { 13008 switch (method) { 13009 case NEW_MUTABLE_INSTANCE: { 13010 return new crosby.binary.Osmformat.Relation(); 13011 } 13012 case IS_INITIALIZED: { 13013 byte isInitialized = memoizedIsInitialized; 13014 if (isInitialized == 1) return DEFAULT_INSTANCE; 13015 if (isInitialized == 0) return null; 13016 13017 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 13018 if (!hasId()) { 13019 if (shouldMemoize) { 13020 memoizedIsInitialized = 0; 13021 } 13022 return null; 13023 } 13024 if (shouldMemoize) memoizedIsInitialized = 1; 13025 return DEFAULT_INSTANCE; 13026 13027 } 13028 case MAKE_IMMUTABLE: { 13029 keys_.makeImmutable(); 13030 vals_.makeImmutable(); 13031 rolesSid_.makeImmutable(); 13032 memids_.makeImmutable(); 13033 types_.makeImmutable(); 13034 return null; 13035 } 13036 case NEW_BUILDER: { 13037 return new Builder(); 13038 } 13039 case VISIT: { 13040 Visitor visitor = (Visitor) arg0; 13041 crosby.binary.Osmformat.Relation other = (crosby.binary.Osmformat.Relation) arg1; 13042 id_ = visitor.visitLong( 13043 hasId(), id_, 13044 other.hasId(), other.id_); 13045 keys_= visitor.visitIntList(keys_, other.keys_); 13046 vals_= visitor.visitIntList(vals_, other.vals_); 13047 info_ = visitor.visitMessage(info_, other.info_); 13048 rolesSid_= visitor.visitIntList(rolesSid_, other.rolesSid_); 13049 memids_= visitor.visitLongList(memids_, other.memids_); 13050 types_= visitor.visitIntList(types_, other.types_); 13051 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 13052 .INSTANCE) { 13053 bitField0_ |= other.bitField0_; 13054 } 13055 return this; 13056 } 13057 case MERGE_FROM_STREAM: { 13058 com.google.protobuf.CodedInputStream input = 13059 (com.google.protobuf.CodedInputStream) arg0; 13060 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 13061 (com.google.protobuf.ExtensionRegistryLite) arg1; 13062 try { 13063 boolean done = false; 13064 while (!done) { 13065 int tag = input.readTag(); 13066 switch (tag) { 13067 case 0: 13068 done = true; 13069 break; 13070 default: { 13071 if (!parseUnknownField(tag, input)) { 13072 done = true; 13073 } 13074 break; 13075 } 13076 case 8: { 13077 bitField0_ |= 0x00000001; 13078 id_ = input.readInt64(); 13079 break; 13080 } 13081 case 16: { 13082 if (!keys_.isModifiable()) { 13083 keys_ = 13084 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 13085 } 13086 keys_.addInt(input.readUInt32()); 13087 break; 13088 } 13089 case 18: { 13090 int length = input.readRawVarint32(); 13091 int limit = input.pushLimit(length); 13092 if (!keys_.isModifiable() && input.getBytesUntilLimit() > 0) { 13093 keys_ = 13094 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 13095 } 13096 while (input.getBytesUntilLimit() > 0) { 13097 keys_.addInt(input.readUInt32()); 13098 } 13099 input.popLimit(limit); 13100 break; 13101 } 13102 case 24: { 13103 if (!vals_.isModifiable()) { 13104 vals_ = 13105 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 13106 } 13107 vals_.addInt(input.readUInt32()); 13108 break; 13109 } 13110 case 26: { 13111 int length = input.readRawVarint32(); 13112 int limit = input.pushLimit(length); 13113 if (!vals_.isModifiable() && input.getBytesUntilLimit() > 0) { 13114 vals_ = 13115 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 13116 } 13117 while (input.getBytesUntilLimit() > 0) { 13118 vals_.addInt(input.readUInt32()); 13119 } 13120 input.popLimit(limit); 13121 break; 13122 } 13123 case 34: { 13124 crosby.binary.Osmformat.Info.Builder subBuilder = null; 13125 if (((bitField0_ & 0x00000002) == 0x00000002)) { 13126 subBuilder = info_.toBuilder(); 13127 } 13128 info_ = input.readMessage(crosby.binary.Osmformat.Info.parser(), extensionRegistry); 13129 if (subBuilder != null) { 13130 subBuilder.mergeFrom(info_); 13131 info_ = subBuilder.buildPartial(); 13132 } 13133 bitField0_ |= 0x00000002; 13134 break; 13135 } 13136 case 64: { 13137 if (!rolesSid_.isModifiable()) { 13138 rolesSid_ = 13139 com.google.protobuf.GeneratedMessageLite.mutableCopy(rolesSid_); 13140 } 13141 rolesSid_.addInt(input.readInt32()); 13142 break; 13143 } 13144 case 66: { 13145 int length = input.readRawVarint32(); 13146 int limit = input.pushLimit(length); 13147 if (!rolesSid_.isModifiable() && input.getBytesUntilLimit() > 0) { 13148 rolesSid_ = 13149 com.google.protobuf.GeneratedMessageLite.mutableCopy(rolesSid_); 13150 } 13151 while (input.getBytesUntilLimit() > 0) { 13152 rolesSid_.addInt(input.readInt32()); 13153 } 13154 input.popLimit(limit); 13155 break; 13156 } 13157 case 72: { 13158 if (!memids_.isModifiable()) { 13159 memids_ = 13160 com.google.protobuf.GeneratedMessageLite.mutableCopy(memids_); 13161 } 13162 memids_.addLong(input.readSInt64()); 13163 break; 13164 } 13165 case 74: { 13166 int length = input.readRawVarint32(); 13167 int limit = input.pushLimit(length); 13168 if (!memids_.isModifiable() && input.getBytesUntilLimit() > 0) { 13169 memids_ = 13170 com.google.protobuf.GeneratedMessageLite.mutableCopy(memids_); 13171 } 13172 while (input.getBytesUntilLimit() > 0) { 13173 memids_.addLong(input.readSInt64()); 13174 } 13175 input.popLimit(limit); 13176 break; 13177 } 13178 case 80: { 13179 if (!types_.isModifiable()) { 13180 types_ = 13181 com.google.protobuf.GeneratedMessageLite.mutableCopy(types_); 13182 } 13183 int rawValue = input.readEnum(); 13184 crosby.binary.Osmformat.Relation.MemberType value = crosby.binary.Osmformat.Relation.MemberType.forNumber(rawValue); 13185 if (value == null) { 13186 super.mergeVarintField(10, rawValue); 13187 } else { 13188 types_.addInt(rawValue); 13189 } 13190 break; 13191 } 13192 case 82: { 13193 if (!types_.isModifiable()) { 13194 types_ = 13195 com.google.protobuf.GeneratedMessageLite.mutableCopy(types_); 13196 } 13197 int length = input.readRawVarint32(); 13198 int oldLimit = input.pushLimit(length); 13199 while(input.getBytesUntilLimit() > 0) { 13200 int rawValue = input.readEnum(); 13201 crosby.binary.Osmformat.Relation.MemberType value = crosby.binary.Osmformat.Relation.MemberType.forNumber(rawValue); 13202 if (value == null) { 13203 super.mergeVarintField(10, rawValue); 13204 } else { 13205 types_.addInt(rawValue); 13206 } 13207 } 13208 input.popLimit(oldLimit); 13209 break; 13210 } 13211 } 13212 } 13213 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 13214 throw new RuntimeException(e.setUnfinishedMessage(this)); 13215 } catch (java.io.IOException e) { 13216 throw new RuntimeException( 13217 new com.google.protobuf.InvalidProtocolBufferException( 13218 e.getMessage()).setUnfinishedMessage(this)); 13219 } finally { 13220 } 13221 } 13222 // fall through 13223 case GET_DEFAULT_INSTANCE: { 13224 return DEFAULT_INSTANCE; 13225 } 13226 case GET_PARSER: { 13227 if (PARSER == null) { synchronized (crosby.binary.Osmformat.Relation.class) { 13228 if (PARSER == null) { 13229 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 13230 } 13231 } 13232 } 13233 return PARSER; 13234 } 13235 } 13236 throw new UnsupportedOperationException(); 13237 } 13238 13239 13240 // @@protoc_insertion_point(class_scope:OSMPBF.Relation) 13241 private static final crosby.binary.Osmformat.Relation DEFAULT_INSTANCE; 13434 13242 static { 13435 defaultInstance = new Relation(true); 13436 defaultInstance.initFields(); 13437 } 13438 13439 // @@protoc_insertion_point(class_scope:OSMPBF.Relation) 13243 DEFAULT_INSTANCE = new Relation(); 13244 DEFAULT_INSTANCE.makeImmutable(); 13245 } 13246 13247 public static crosby.binary.Osmformat.Relation getDefaultInstance() { 13248 return DEFAULT_INSTANCE; 13249 } 13250 13251 private static volatile com.google.protobuf.Parser<Relation> PARSER; 13252 13253 public static com.google.protobuf.Parser<Relation> parser() { 13254 return DEFAULT_INSTANCE.getParserForType(); 13255 } 13440 13256 } 13441 13257
Note:
See TracChangeset
for help on using the changeset viewer.
