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