Changeset 30490 in osm for applications
- Timestamp:
- 2014-06-09T18:08:08+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/pbf
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pbf/build.xml
r30416 r30490 2 2 <project name="pbf" default="dist" basedir="."> 3 3 4 <!-- enter the SVN commit message -->5 <property name="commit.message" value="Commit message"/>6 4 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 5 <property name="plugin.main.version" value="7001"/> … … 15 13 <!--<property name="plugin.icon" value="images/pbf_24.png"/>--> 16 14 <property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/PBF"/> 17 <!--<property name="plugin.early" value="..."/>-->18 <!--<property name="plugin.requires" value="..."/>-->19 <!--<property name="plugin.stage" value="..."/>-->20 15 21 16 <!-- ** include targets that all plugins have in common ** --> … … 28 23 --> 29 24 <target name="compile" depends="init"> 30 <echo message="compiling sources for 25 <echo message="compiling sources for ${plugin.jar} ... "/> 31 26 <javac classpath="${josm}" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false"> 32 27 <compilerarg value="-Xlint:deprecation"/> … … 36 31 </javac> 37 32 </target> 38 39 33 </project> -
applications/editors/josm/plugins/pbf/gen/com/google/protobuf/DescriptorProtos.java
r28900 r30490 11 11 public interface FileDescriptorSetOrBuilder 12 12 extends com.google.protobuf.MessageOrBuilder { 13 13 14 14 // repeated .google.protobuf.FileDescriptorProto file = 1; 15 /** 16 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 17 */ 15 18 java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> 16 19 getFileList(); 20 /** 21 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 22 */ 17 23 com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index); 24 /** 25 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 26 */ 18 27 int getFileCount(); 28 /** 29 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 30 */ 19 31 java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> 20 32 getFileOrBuilderList(); 33 /** 34 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 35 */ 21 36 com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( 22 37 int index); 23 38 } 39 /** 40 * Protobuf type {@code google.protobuf.FileDescriptorSet} 41 * 42 * <pre> 43 * The protocol compiler can output a FileDescriptorSet containing the .proto 44 * files it parses. 45 * </pre> 46 */ 24 47 public static final class FileDescriptorSet extends 25 48 com.google.protobuf.GeneratedMessage 26 49 implements FileDescriptorSetOrBuilder { 27 50 // Use FileDescriptorSet.newBuilder() to construct. 28 private FileDescriptorSet( Builderbuilder) {51 private FileDescriptorSet(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 29 52 super(builder); 30 } 31 private FileDescriptorSet(boolean noInit) {} 32 53 this.unknownFields = builder.getUnknownFields(); 54 } 55 private FileDescriptorSet(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 56 33 57 private static final FileDescriptorSet defaultInstance; 34 58 public static FileDescriptorSet getDefaultInstance() { 35 59 return defaultInstance; 36 60 } 37 61 38 62 public FileDescriptorSet getDefaultInstanceForType() { 39 63 return defaultInstance; 40 64 } 41 65 66 private final com.google.protobuf.UnknownFieldSet unknownFields; 67 @java.lang.Override 68 public final com.google.protobuf.UnknownFieldSet 69 getUnknownFields() { 70 return this.unknownFields; 71 } 72 private FileDescriptorSet( 73 com.google.protobuf.CodedInputStream input, 74 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 75 throws com.google.protobuf.InvalidProtocolBufferException { 76 initFields(); 77 int mutable_bitField0_ = 0; 78 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 79 com.google.protobuf.UnknownFieldSet.newBuilder(); 80 try { 81 boolean done = false; 82 while (!done) { 83 int tag = input.readTag(); 84 switch (tag) { 85 case 0: 86 done = true; 87 break; 88 default: { 89 if (!parseUnknownField(input, unknownFields, 90 extensionRegistry, tag)) { 91 done = true; 92 } 93 break; 94 } 95 case 10: { 96 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 97 file_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FileDescriptorProto>(); 98 mutable_bitField0_ |= 0x00000001; 99 } 100 file_.add(input.readMessage(com.google.protobuf.DescriptorProtos.FileDescriptorProto.PARSER, extensionRegistry)); 101 break; 102 } 103 } 104 } 105 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 106 throw e.setUnfinishedMessage(this); 107 } catch (java.io.IOException e) { 108 throw new com.google.protobuf.InvalidProtocolBufferException( 109 e.getMessage()).setUnfinishedMessage(this); 110 } finally { 111 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 112 file_ = java.util.Collections.unmodifiableList(file_); 113 } 114 this.unknownFields = unknownFields.build(); 115 makeExtensionsImmutable(); 116 } 117 } 42 118 public static final com.google.protobuf.Descriptors.Descriptor 43 119 getDescriptor() { 44 120 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_descriptor; 45 121 } 46 122 47 123 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 48 124 internalGetFieldAccessorTable() { 49 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable; 50 } 51 125 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable 126 .ensureFieldAccessorsInitialized( 127 com.google.protobuf.DescriptorProtos.FileDescriptorSet.class, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder.class); 128 } 129 130 public static com.google.protobuf.Parser<FileDescriptorSet> PARSER = 131 new com.google.protobuf.AbstractParser<FileDescriptorSet>() { 132 public FileDescriptorSet parsePartialFrom( 133 com.google.protobuf.CodedInputStream input, 134 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 135 throws com.google.protobuf.InvalidProtocolBufferException { 136 return new FileDescriptorSet(input, extensionRegistry); 137 } 138 }; 139 140 @java.lang.Override 141 public com.google.protobuf.Parser<FileDescriptorSet> getParserForType() { 142 return PARSER; 143 } 144 52 145 // repeated .google.protobuf.FileDescriptorProto file = 1; 53 146 public static final int FILE_FIELD_NUMBER = 1; 54 147 private java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> file_; 148 /** 149 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 150 */ 55 151 public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> getFileList() { 56 152 return file_; 57 153 } 154 /** 155 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 156 */ 58 157 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> 59 158 getFileOrBuilderList() { 60 159 return file_; 61 160 } 161 /** 162 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 163 */ 62 164 public int getFileCount() { 63 165 return file_.size(); 64 166 } 167 /** 168 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 169 */ 65 170 public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) { 66 171 return file_.get(index); 67 172 } 173 /** 174 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 175 */ 68 176 public com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( 69 177 int index) { 70 178 return file_.get(index); 71 179 } 72 180 73 181 private void initFields() { 74 182 file_ = java.util.Collections.emptyList(); … … 78 186 byte isInitialized = memoizedIsInitialized; 79 187 if (isInitialized != -1) return isInitialized == 1; 80 188 81 189 for (int i = 0; i < getFileCount(); i++) { 82 190 if (!getFile(i).isInitialized()) { … … 88 196 return true; 89 197 } 90 198 91 199 public void writeTo(com.google.protobuf.CodedOutputStream output) 92 200 throws java.io.IOException { … … 97 205 getUnknownFields().writeTo(output); 98 206 } 99 207 100 208 private int memoizedSerializedSize = -1; 101 209 public int getSerializedSize() { 102 210 int size = memoizedSerializedSize; 103 211 if (size != -1) return size; 104 212 105 213 size = 0; 106 214 for (int i = 0; i < file_.size(); i++) { … … 112 220 return size; 113 221 } 114 222 115 223 private static final long serialVersionUID = 0L; 116 224 @java.lang.Override … … 119 227 return super.writeReplace(); 120 228 } 121 229 122 230 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( 123 231 com.google.protobuf.ByteString data) 124 232 throws com.google.protobuf.InvalidProtocolBufferException { 125 return newBuilder().mergeFrom(data).buildParsed();233 return PARSER.parseFrom(data); 126 234 } 127 235 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( … … 129 237 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 130 238 throws com.google.protobuf.InvalidProtocolBufferException { 131 return newBuilder().mergeFrom(data, extensionRegistry) 132 .buildParsed(); 239 return PARSER.parseFrom(data, extensionRegistry); 133 240 } 134 241 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(byte[] data) 135 242 throws com.google.protobuf.InvalidProtocolBufferException { 136 return newBuilder().mergeFrom(data).buildParsed();243 return PARSER.parseFrom(data); 137 244 } 138 245 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( … … 140 247 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 141 248 throws com.google.protobuf.InvalidProtocolBufferException { 142 return newBuilder().mergeFrom(data, extensionRegistry) 143 .buildParsed(); 249 return PARSER.parseFrom(data, extensionRegistry); 144 250 } 145 251 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(java.io.InputStream input) 146 252 throws java.io.IOException { 147 return newBuilder().mergeFrom(input).buildParsed();253 return PARSER.parseFrom(input); 148 254 } 149 255 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( … … 151 257 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 152 258 throws java.io.IOException { 153 return newBuilder().mergeFrom(input, extensionRegistry) 154 .buildParsed(); 259 return PARSER.parseFrom(input, extensionRegistry); 155 260 } 156 261 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseDelimitedFrom(java.io.InputStream input) 157 262 throws java.io.IOException { 158 Builder builder = newBuilder(); 159 if (builder.mergeDelimitedFrom(input)) { 160 return builder.buildParsed(); 161 } else { 162 return null; 163 } 263 return PARSER.parseDelimitedFrom(input); 164 264 } 165 265 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseDelimitedFrom( … … 167 267 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 168 268 throws java.io.IOException { 169 Builder builder = newBuilder(); 170 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 171 return builder.buildParsed(); 172 } else { 173 return null; 174 } 269 return PARSER.parseDelimitedFrom(input, extensionRegistry); 175 270 } 176 271 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( 177 272 com.google.protobuf.CodedInputStream input) 178 273 throws java.io.IOException { 179 return newBuilder().mergeFrom(input).buildParsed();274 return PARSER.parseFrom(input); 180 275 } 181 276 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( … … 183 278 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 184 279 throws java.io.IOException { 185 return newBuilder().mergeFrom(input, extensionRegistry) 186 .buildParsed(); 187 } 188 280 return PARSER.parseFrom(input, extensionRegistry); 281 } 282 189 283 public static Builder newBuilder() { return Builder.create(); } 190 284 public Builder newBuilderForType() { return newBuilder(); } … … 193 287 } 194 288 public Builder toBuilder() { return newBuilder(this); } 195 289 196 290 @java.lang.Override 197 291 protected Builder newBuilderForType( … … 200 294 return builder; 201 295 } 296 /** 297 * Protobuf type {@code google.protobuf.FileDescriptorSet} 298 * 299 * <pre> 300 * The protocol compiler can output a FileDescriptorSet containing the .proto 301 * files it parses. 302 * </pre> 303 */ 202 304 public static final class Builder extends 203 305 com.google.protobuf.GeneratedMessage.Builder<Builder> … … 207 309 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_descriptor; 208 310 } 209 311 210 312 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 211 313 internalGetFieldAccessorTable() { 212 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable; 213 } 214 314 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable 315 .ensureFieldAccessorsInitialized( 316 com.google.protobuf.DescriptorProtos.FileDescriptorSet.class, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder.class); 317 } 318 215 319 // Construct using com.google.protobuf.DescriptorProtos.FileDescriptorSet.newBuilder() 216 320 private Builder() { 217 321 maybeForceBuilderInitialization(); 218 322 } 219 220 private Builder(BuilderParent parent) { 323 324 private Builder( 325 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 221 326 super(parent); 222 327 maybeForceBuilderInitialization(); … … 230 335 return new Builder(); 231 336 } 232 337 233 338 public Builder clear() { 234 339 super.clear(); … … 241 346 return this; 242 347 } 243 348 244 349 public Builder clone() { 245 350 return create().mergeFrom(buildPartial()); 246 351 } 247 352 248 353 public com.google.protobuf.Descriptors.Descriptor 249 354 getDescriptorForType() { 250 return com.google.protobuf.DescriptorProtos. FileDescriptorSet.getDescriptor();251 } 252 355 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_descriptor; 356 } 357 253 358 public com.google.protobuf.DescriptorProtos.FileDescriptorSet getDefaultInstanceForType() { 254 359 return com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance(); 255 360 } 256 361 257 362 public com.google.protobuf.DescriptorProtos.FileDescriptorSet build() { 258 363 com.google.protobuf.DescriptorProtos.FileDescriptorSet result = buildPartial(); … … 262 367 return result; 263 368 } 264 265 private com.google.protobuf.DescriptorProtos.FileDescriptorSet buildParsed() 266 throws com.google.protobuf.InvalidProtocolBufferException { 267 com.google.protobuf.DescriptorProtos.FileDescriptorSet result = buildPartial(); 268 if (!result.isInitialized()) { 269 throw newUninitializedMessageException( 270 result).asInvalidProtocolBufferException(); 271 } 272 return result; 273 } 274 369 275 370 public com.google.protobuf.DescriptorProtos.FileDescriptorSet buildPartial() { 276 371 com.google.protobuf.DescriptorProtos.FileDescriptorSet result = new com.google.protobuf.DescriptorProtos.FileDescriptorSet(this); … … 288 383 return result; 289 384 } 290 385 291 386 public Builder mergeFrom(com.google.protobuf.Message other) { 292 387 if (other instanceof com.google.protobuf.DescriptorProtos.FileDescriptorSet) { … … 297 392 } 298 393 } 299 394 300 395 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FileDescriptorSet other) { 301 396 if (other == com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) return this; … … 329 424 return this; 330 425 } 331 426 332 427 public final boolean isInitialized() { 333 428 for (int i = 0; i < getFileCount(); i++) { … … 339 434 return true; 340 435 } 341 436 342 437 public Builder mergeFrom( 343 438 com.google.protobuf.CodedInputStream input, 344 439 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 345 440 throws java.io.IOException { 346 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 347 com.google.protobuf.UnknownFieldSet.newBuilder( 348 this.getUnknownFields()); 349 while (true) { 350 int tag = input.readTag(); 351 switch (tag) { 352 case 0: 353 this.setUnknownFields(unknownFields.build()); 354 onChanged(); 355 return this; 356 default: { 357 if (!parseUnknownField(input, unknownFields, 358 extensionRegistry, tag)) { 359 this.setUnknownFields(unknownFields.build()); 360 onChanged(); 361 return this; 362 } 363 break; 364 } 365 case 10: { 366 com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.FileDescriptorProto.newBuilder(); 367 input.readMessage(subBuilder, extensionRegistry); 368 addFile(subBuilder.buildPartial()); 369 break; 370 } 441 com.google.protobuf.DescriptorProtos.FileDescriptorSet parsedMessage = null; 442 try { 443 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 444 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 445 parsedMessage = (com.google.protobuf.DescriptorProtos.FileDescriptorSet) e.getUnfinishedMessage(); 446 throw e; 447 } finally { 448 if (parsedMessage != null) { 449 mergeFrom(parsedMessage); 371 450 } 372 451 } 373 }374 452 return this; 453 } 375 454 private int bitField0_; 376 455 377 456 // repeated .google.protobuf.FileDescriptorProto file = 1; 378 457 private java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> file_ = … … 384 463 } 385 464 } 386 465 387 466 private com.google.protobuf.RepeatedFieldBuilder< 388 467 com.google.protobuf.DescriptorProtos.FileDescriptorProto, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> fileBuilder_; 389 468 469 /** 470 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 471 */ 390 472 public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> getFileList() { 391 473 if (fileBuilder_ == null) { … … 395 477 } 396 478 } 479 /** 480 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 481 */ 397 482 public int getFileCount() { 398 483 if (fileBuilder_ == null) { … … 402 487 } 403 488 } 489 /** 490 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 491 */ 404 492 public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) { 405 493 if (fileBuilder_ == null) { … … 409 497 } 410 498 } 499 /** 500 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 501 */ 411 502 public Builder setFile( 412 503 int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) { … … 423 514 return this; 424 515 } 516 /** 517 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 518 */ 425 519 public Builder setFile( 426 520 int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) { … … 434 528 return this; 435 529 } 530 /** 531 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 532 */ 436 533 public Builder addFile(com.google.protobuf.DescriptorProtos.FileDescriptorProto value) { 437 534 if (fileBuilder_ == null) { … … 447 544 return this; 448 545 } 546 /** 547 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 548 */ 449 549 public Builder addFile( 450 550 int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) { … … 461 561 return this; 462 562 } 563 /** 564 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 565 */ 463 566 public Builder addFile( 464 567 com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) { … … 472 575 return this; 473 576 } 577 /** 578 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 579 */ 474 580 public Builder addFile( 475 581 int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) { … … 483 589 return this; 484 590 } 591 /** 592 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 593 */ 485 594 public Builder addAllFile( 486 595 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProto> values) { … … 494 603 return this; 495 604 } 605 /** 606 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 607 */ 496 608 public Builder clearFile() { 497 609 if (fileBuilder_ == null) { … … 504 616 return this; 505 617 } 618 /** 619 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 620 */ 506 621 public Builder removeFile(int index) { 507 622 if (fileBuilder_ == null) { … … 514 629 return this; 515 630 } 631 /** 632 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 633 */ 516 634 public com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder getFileBuilder( 517 635 int index) { 518 636 return getFileFieldBuilder().getBuilder(index); 519 637 } 638 /** 639 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 640 */ 520 641 public com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( 521 642 int index) { … … 525 646 } 526 647 } 648 /** 649 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 650 */ 527 651 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> 528 652 getFileOrBuilderList() { … … 533 657 } 534 658 } 659 /** 660 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 661 */ 535 662 public com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder addFileBuilder() { 536 663 return getFileFieldBuilder().addBuilder( 537 664 com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance()); 538 665 } 666 /** 667 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 668 */ 539 669 public com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder addFileBuilder( 540 670 int index) { … … 542 672 index, com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance()); 543 673 } 674 /** 675 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 676 */ 544 677 public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder> 545 678 getFileBuilderList() { … … 560 693 return fileBuilder_; 561 694 } 562 695 563 696 // @@protoc_insertion_point(builder_scope:google.protobuf.FileDescriptorSet) 564 697 } 565 698 566 699 static { 567 700 defaultInstance = new FileDescriptorSet(true); 568 701 defaultInstance.initFields(); 569 702 } 570 703 571 704 // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet) 572 705 } 573 706 574 707 public interface FileDescriptorProtoOrBuilder 575 708 extends com.google.protobuf.MessageOrBuilder { 576 709 577 710 // optional string name = 1; 711 /** 712 * <code>optional string name = 1;</code> 713 * 714 * <pre> 715 * file name, relative to root of source tree 716 * </pre> 717 */ 578 718 boolean hasName(); 579 String getName(); 580 719 /** 720 * <code>optional string name = 1;</code> 721 * 722 * <pre> 723 * file name, relative to root of source tree 724 * </pre> 725 */ 726 java.lang.String getName(); 727 /** 728 * <code>optional string name = 1;</code> 729 * 730 * <pre> 731 * file name, relative to root of source tree 732 * </pre> 733 */ 734 com.google.protobuf.ByteString 735 getNameBytes(); 736 581 737 // optional string package = 2; 738 /** 739 * <code>optional string package = 2;</code> 740 * 741 * <pre> 742 * e.g. "foo", "foo.bar", etc. 743 * </pre> 744 */ 582 745 boolean hasPackage(); 583 String getPackage(); 584 746 /** 747 * <code>optional string package = 2;</code> 748 * 749 * <pre> 750 * e.g. "foo", "foo.bar", etc. 751 * </pre> 752 */ 753 java.lang.String getPackage(); 754 /** 755 * <code>optional string package = 2;</code> 756 * 757 * <pre> 758 * e.g. "foo", "foo.bar", etc. 759 * </pre> 760 */ 761 com.google.protobuf.ByteString 762 getPackageBytes(); 763 585 764 // repeated string dependency = 3; 586 java.util.List<String> getDependencyList(); 765 /** 766 * <code>repeated string dependency = 3;</code> 767 * 768 * <pre> 769 * Names of files imported by this file. 770 * </pre> 771 */ 772 java.util.List<java.lang.String> 773 getDependencyList(); 774 /** 775 * <code>repeated string dependency = 3;</code> 776 * 777 * <pre> 778 * Names of files imported by this file. 779 * </pre> 780 */ 587 781 int getDependencyCount(); 588 String getDependency(int index); 589 782 /** 783 * <code>repeated string dependency = 3;</code> 784 * 785 * <pre> 786 * Names of files imported by this file. 787 * </pre> 788 */ 789 java.lang.String getDependency(int index); 790 /** 791 * <code>repeated string dependency = 3;</code> 792 * 793 * <pre> 794 * Names of files imported by this file. 795 * </pre> 796 */ 797 com.google.protobuf.ByteString 798 getDependencyBytes(int index); 799 590 800 // repeated int32 public_dependency = 10; 801 /** 802 * <code>repeated int32 public_dependency = 10;</code> 803 * 804 * <pre> 805 * Indexes of the public imported files in the dependency list above. 806 * </pre> 807 */ 591 808 java.util.List<java.lang.Integer> getPublicDependencyList(); 809 /** 810 * <code>repeated int32 public_dependency = 10;</code> 811 * 812 * <pre> 813 * Indexes of the public imported files in the dependency list above. 814 * </pre> 815 */ 592 816 int getPublicDependencyCount(); 817 /** 818 * <code>repeated int32 public_dependency = 10;</code> 819 * 820 * <pre> 821 * Indexes of the public imported files in the dependency list above. 822 * </pre> 823 */ 593 824 int getPublicDependency(int index); 594 825 595 826 // repeated int32 weak_dependency = 11; 827 /** 828 * <code>repeated int32 weak_dependency = 11;</code> 829 * 830 * <pre> 831 * Indexes of the weak imported files in the dependency list. 832 * For Google-internal migration only. Do not use. 833 * </pre> 834 */ 596 835 java.util.List<java.lang.Integer> getWeakDependencyList(); 836 /** 837 * <code>repeated int32 weak_dependency = 11;</code> 838 * 839 * <pre> 840 * Indexes of the weak imported files in the dependency list. 841 * For Google-internal migration only. Do not use. 842 * </pre> 843 */ 597 844 int getWeakDependencyCount(); 845 /** 846 * <code>repeated int32 weak_dependency = 11;</code> 847 * 848 * <pre> 849 * Indexes of the weak imported files in the dependency list. 850 * For Google-internal migration only. Do not use. 851 * </pre> 852 */ 598 853 int getWeakDependency(int index); 599 854 600 855 // repeated .google.protobuf.DescriptorProto message_type = 4; 856 /** 857 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 858 * 859 * <pre> 860 * All top-level definitions in this file. 861 * </pre> 862 */ 601 863 java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> 602 864 getMessageTypeList(); 865 /** 866 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 867 * 868 * <pre> 869 * All top-level definitions in this file. 870 * </pre> 871 */ 603 872 com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index); 873 /** 874 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 875 * 876 * <pre> 877 * All top-level definitions in this file. 878 * </pre> 879 */ 604 880 int getMessageTypeCount(); 881 /** 882 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 883 * 884 * <pre> 885 * All top-level definitions in this file. 886 * </pre> 887 */ 605 888 java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 606 889 getMessageTypeOrBuilderList(); 890 /** 891 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 892 * 893 * <pre> 894 * All top-level definitions in this file. 895 * </pre> 896 */ 607 897 com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( 608 898 int index); 609 899 610 900 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; 901 /** 902 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 903 */ 611 904 java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> 612 905 getEnumTypeList(); 906 /** 907 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 908 */ 613 909 com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index); 910 /** 911 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 912 */ 614 913 int getEnumTypeCount(); 914 /** 915 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 916 */ 615 917 java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 616 918 getEnumTypeOrBuilderList(); 919 /** 920 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 921 */ 617 922 com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( 618 923 int index); 619 924 620 925 // repeated .google.protobuf.ServiceDescriptorProto service = 6; 926 /** 927 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 928 */ 621 929 java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> 622 930 getServiceList(); 931 /** 932 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 933 */ 623 934 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index); 935 /** 936 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 937 */ 624 938 int getServiceCount(); 939 /** 940 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 941 */ 625 942 java.util.List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> 626 943 getServiceOrBuilderList(); 944 /** 945 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 946 */ 627 947 com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( 628 948 int index); 629 949 630 950 // repeated .google.protobuf.FieldDescriptorProto extension = 7; 951 /** 952 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 953 */ 631 954 java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> 632 955 getExtensionList(); 956 /** 957 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 958 */ 633 959 com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index); 960 /** 961 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 962 */ 634 963 int getExtensionCount(); 964 /** 965 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 966 */ 635 967 java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 636 968 getExtensionOrBuilderList(); 969 /** 970 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 971 */ 637 972 com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( 638 973 int index); 639 974 640 975 // optional .google.protobuf.FileOptions options = 8; 976 /** 977 * <code>optional .google.protobuf.FileOptions options = 8;</code> 978 */ 641 979 boolean hasOptions(); 980 /** 981 * <code>optional .google.protobuf.FileOptions options = 8;</code> 982 */ 642 983 com.google.protobuf.DescriptorProtos.FileOptions getOptions(); 984 /** 985 * <code>optional .google.protobuf.FileOptions options = 8;</code> 986 */ 643 987 com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder(); 644 988 645 989 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; 990 /** 991 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 992 * 993 * <pre> 994 * This field contains optional information about the original source code. 995 * You may safely remove this entire field whithout harming runtime 996 * functionality of the descriptors -- the information is needed only by 997 * development tools. 998 * </pre> 999 */ 646 1000 boolean hasSourceCodeInfo(); 1001 /** 1002 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 1003 * 1004 * <pre> 1005 * This field contains optional information about the original source code. 1006 * You may safely remove this entire field whithout harming runtime 1007 * functionality of the descriptors -- the information is needed only by 1008 * development tools. 1009 * </pre> 1010 */ 647 1011 com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo(); 1012 /** 1013 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 1014 * 1015 * <pre> 1016 * This field contains optional information about the original source code. 1017 * You may safely remove this entire field whithout harming runtime 1018 * functionality of the descriptors -- the information is needed only by 1019 * development tools. 1020 * </pre> 1021 */ 648 1022 com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder(); 649 1023 } 1024 /** 1025 * Protobuf type {@code google.protobuf.FileDescriptorProto} 1026 * 1027 * <pre> 1028 * Describes a complete .proto file. 1029 * </pre> 1030 */ 650 1031 public static final class FileDescriptorProto extends 651 1032 com.google.protobuf.GeneratedMessage 652 1033 implements FileDescriptorProtoOrBuilder { 653 1034 // Use FileDescriptorProto.newBuilder() to construct. 654 private FileDescriptorProto( Builderbuilder) {1035 private FileDescriptorProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 655 1036 super(builder); 656 } 657 private FileDescriptorProto(boolean noInit) {} 658 1037 this.unknownFields = builder.getUnknownFields(); 1038 } 1039 private FileDescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 1040 659 1041 private static final FileDescriptorProto defaultInstance; 660 1042 public static FileDescriptorProto getDefaultInstance() { 661 1043 return defaultInstance; 662 1044 } 663 1045 664 1046 public FileDescriptorProto getDefaultInstanceForType() { 665 1047 return defaultInstance; 666 1048 } 667 668 public static final com.google.protobuf.Descriptors.Descriptor 669 getDescriptor() { 670 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor; 671 } 672 673 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 674 internalGetFieldAccessorTable() { 675 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable; 676 } 677 678 private int bitField0_; 679 // optional string name = 1; 680 public static final int NAME_FIELD_NUMBER = 1; 681 private java.lang.Object name_; 682 public boolean hasName() { 683 return ((bitField0_ & 0x00000001) == 0x00000001); 684 } 685 public String getName() { 686 java.lang.Object ref = name_; 687 if (ref instanceof String) { 688 return (String) ref; 689 } else { 690 com.google.protobuf.ByteString bs = 691 (com.google.protobuf.ByteString) ref; 692 String s = bs.toStringUtf8(); 693 if (com.google.protobuf.Internal.isValidUtf8(bs)) { 694 name_ = s; 695 } 696 return s; 697 } 698 } 699 private com.google.protobuf.ByteString getNameBytes() { 700 java.lang.Object ref = name_; 701 if (ref instanceof String) { 702 com.google.protobuf.ByteString b = 703 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 704 name_ = b; 705 return b; 706 } else { 707 return (com.google.protobuf.ByteString) ref; 708 } 709 } 710 711 // optional string package = 2; 712 public static final int PACKAGE_FIELD_NUMBER = 2; 713 private java.lang.Object package_; 714 public boolean hasPackage() { 715 return ((bitField0_ & 0x00000002) == 0x00000002); 716 } 717 public String getPackage() { 718 java.lang.Object ref = package_; 719 if (ref instanceof String) { 720 return (String) ref; 721 } else { 722 com.google.protobuf.ByteString bs = 723 (com.google.protobuf.ByteString) ref; 724 String s = bs.toStringUtf8(); 725 if (com.google.protobuf.Internal.isValidUtf8(bs)) { 726 package_ = s; 727 } 728 return s; 729 } 730 } 731 private com.google.protobuf.ByteString getPackageBytes() { 732 java.lang.Object ref = package_; 733 if (ref instanceof String) { 734 com.google.protobuf.ByteString b = 735 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 736 package_ = b; 737 return b; 738 } else { 739 return (com.google.protobuf.ByteString) ref; 740 } 741 } 742 743 // repeated string dependency = 3; 744 public static final int DEPENDENCY_FIELD_NUMBER = 3; 745 private com.google.protobuf.LazyStringList dependency_; 746 public java.util.List<String> 747 getDependencyList() { 748 return dependency_; 749 } 750 public int getDependencyCount() { 751 return dependency_.size(); 752 } 753 public String getDependency(int index) { 754 return dependency_.get(index); 755 } 756 757 // repeated int32 public_dependency = 10; 758 public static final int PUBLIC_DEPENDENCY_FIELD_NUMBER = 10; 759 private java.util.List<java.lang.Integer> publicDependency_; 760 public java.util.List<java.lang.Integer> 761 getPublicDependencyList() { 762 return publicDependency_; 763 } 764 public int getPublicDependencyCount() { 765 return publicDependency_.size(); 766 } 767 public int getPublicDependency(int index) { 768 return publicDependency_.get(index); 769 } 770 771 // repeated int32 weak_dependency = 11; 772 public static final int WEAK_DEPENDENCY_FIELD_NUMBER = 11; 773 private java.util.List<java.lang.Integer> weakDependency_; 774 public java.util.List<java.lang.Integer> 775 getWeakDependencyList() { 776 return weakDependency_; 777 } 778 public int getWeakDependencyCount() { 779 return weakDependency_.size(); 780 } 781 public int getWeakDependency(int index) { 782 return weakDependency_.get(index); 783 } 784 785 // repeated .google.protobuf.DescriptorProto message_type = 4; 786 public static final int MESSAGE_TYPE_FIELD_NUMBER = 4; 787 private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> messageType_; 788 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getMessageTypeList() { 789 return messageType_; 790 } 791 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 792 getMessageTypeOrBuilderList() { 793 return messageType_; 794 } 795 public int getMessageTypeCount() { 796 return messageType_.size(); 797 } 798 public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) { 799 return messageType_.get(index); 800 } 801 public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( 802 int index) { 803 return messageType_.get(index); 804 } 805 806 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; 807 public static final int ENUM_TYPE_FIELD_NUMBER = 5; 808 private java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> enumType_; 809 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { 810 return enumType_; 811 } 812 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 813 getEnumTypeOrBuilderList() { 814 return enumType_; 815 } 816 public int getEnumTypeCount() { 817 return enumType_.size(); 818 } 819 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { 820 return enumType_.get(index); 821 } 822 public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( 823 int index) { 824 return enumType_.get(index); 825 } 826 827 // repeated .google.protobuf.ServiceDescriptorProto service = 6; 828 public static final int SERVICE_FIELD_NUMBER = 6; 829 private java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> service_; 830 public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> getServiceList() { 831 return service_; 832 } 833 public java.util.List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> 834 getServiceOrBuilderList() { 835 return service_; 836 } 837 public int getServiceCount() { 838 return service_.size(); 839 } 840 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) { 841 return service_.get(index); 842 } 843 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( 844 int index) { 845 return service_.get(index); 846 } 847 848 // repeated .google.protobuf.FieldDescriptorProto extension = 7; 849 public static final int EXTENSION_FIELD_NUMBER = 7; 850 private java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> extension_; 851 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { 852 return extension_; 853 } 854 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 855 getExtensionOrBuilderList() { 856 return extension_; 857 } 858 public int getExtensionCount() { 859 return extension_.size(); 860 } 861 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { 862 return extension_.get(index); 863 } 864 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( 865 int index) { 866 return extension_.get(index); 867 } 868 869 // optional .google.protobuf.FileOptions options = 8; 870 public static final int OPTIONS_FIELD_NUMBER = 8; 871 private com.google.protobuf.DescriptorProtos.FileOptions options_; 872 public boolean hasOptions() { 873 return ((bitField0_ & 0x00000004) == 0x00000004); 874 } 875 public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { 876 return options_; 877 } 878 public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { 879 return options_; 880 } 881 882 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; 883 public static final int SOURCE_CODE_INFO_FIELD_NUMBER = 9; 884 private com.google.protobuf.DescriptorProtos.SourceCodeInfo sourceCodeInfo_; 885 public boolean hasSourceCodeInfo() { 886 return ((bitField0_ & 0x00000008) == 0x00000008); 887 } 888 public com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { 889 return sourceCodeInfo_; 890 } 891 public com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder() { 892 return sourceCodeInfo_; 893 } 894 895 private void initFields() { 896 name_ = ""; 897 package_ = ""; 898 dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; 899 publicDependency_ = java.util.Collections.emptyList();; 900 weakDependency_ = java.util.Collections.emptyList();; 901 messageType_ = java.util.Collections.emptyList(); 902 enumType_ = java.util.Collections.emptyList(); 903 service_ = java.util.Collections.emptyList(); 904 extension_ = java.util.Collections.emptyList(); 905 options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); 906 sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); 907 } 908 private byte memoizedIsInitialized = -1; 909 public final boolean isInitialized() { 910 byte isInitialized = memoizedIsInitialized; 911 if (isInitialized != -1) return isInitialized == 1; 912 913 for (int i = 0; i < getMessageTypeCount(); i++) { 914 if (!getMessageType(i).isInitialized()) { 915 memoizedIsInitialized = 0; 916 return false; 917 } 918 } 919 for (int i = 0; i < getEnumTypeCount(); i++) { 920 if (!getEnumType(i).isInitialized()) { 921 memoizedIsInitialized = 0; 922 return false; 923 } 924 } 925 for (int i = 0; i < getServiceCount(); i++) { 926 if (!getService(i).isInitialized()) { 927 memoizedIsInitialized = 0; 928 return false; 929 } 930 } 931 for (int i = 0; i < getExtensionCount(); i++) { 932 if (!getExtension(i).isInitialized()) { 933 memoizedIsInitialized = 0; 934 return false; 935 } 936 } 937 if (hasOptions()) { 938 if (!getOptions().isInitialized()) { 939 memoizedIsInitialized = 0; 940 return false; 941 } 942 } 943 memoizedIsInitialized = 1; 944 return true; 945 } 946 947 public void writeTo(com.google.protobuf.CodedOutputStream output) 948 throws java.io.IOException { 949 getSerializedSize(); 950 if (((bitField0_ & 0x00000001) == 0x00000001)) { 951 output.writeBytes(1, getNameBytes()); 952 } 953 if (((bitField0_ & 0x00000002) == 0x00000002)) { 954 output.writeBytes(2, getPackageBytes()); 955 } 956 for (int i = 0; i < dependency_.size(); i++) { 957 output.writeBytes(3, dependency_.getByteString(i)); 958 } 959 for (int i = 0; i < messageType_.size(); i++) { 960 output.writeMessage(4, messageType_.get(i)); 961 } 962 for (int i = 0; i < enumType_.size(); i++) { 963 output.writeMessage(5, enumType_.get(i)); 964 } 965 for (int i = 0; i < service_.size(); i++) { 966 output.writeMessage(6, service_.get(i)); 967 } 968 for (int i = 0; i < extension_.size(); i++) { 969 output.writeMessage(7, extension_.get(i)); 970 } 971 if (((bitField0_ & 0x00000004) == 0x00000004)) { 972 output.writeMessage(8, options_); 973 } 974 if (((bitField0_ & 0x00000008) == 0x00000008)) { 975 output.writeMessage(9, sourceCodeInfo_); 976 } 977 for (int i = 0; i < publicDependency_.size(); i++) { 978 output.writeInt32(10, publicDependency_.get(i)); 979 } 980 for (int i = 0; i < weakDependency_.size(); i++) { 981 output.writeInt32(11, weakDependency_.get(i)); 982 } 983 getUnknownFields().writeTo(output); 984 } 985 986 private int memoizedSerializedSize = -1; 987 public int getSerializedSize() { 988 int size = memoizedSerializedSize; 989 if (size != -1) return size; 990 991 size = 0; 992 if (((bitField0_ & 0x00000001) == 0x00000001)) { 993 size += com.google.protobuf.CodedOutputStream 994 .computeBytesSize(1, getNameBytes()); 995 } 996 if (((bitField0_ & 0x00000002) == 0x00000002)) { 997 size += com.google.protobuf.CodedOutputStream 998 .computeBytesSize(2, getPackageBytes()); 999 } 1000 { 1001 int dataSize = 0; 1002 for (int i = 0; i < dependency_.size(); i++) { 1003 dataSize += com.google.protobuf.CodedOutputStream 1004 .computeBytesSizeNoTag(dependency_.getByteString(i)); 1005 } 1006 size += dataSize; 1007 size += 1 * getDependencyList().size(); 1008 } 1009 for (int i = 0; i < messageType_.size(); i++) { 1010 size += com.google.protobuf.CodedOutputStream 1011 .computeMessageSize(4, messageType_.get(i)); 1012 } 1013 for (int i = 0; i < enumType_.size(); i++) { 1014 size += com.google.protobuf.CodedOutputStream 1015 .computeMessageSize(5, enumType_.get(i)); 1016 } 1017 for (int i = 0; i < service_.size(); i++) { 1018 size += com.google.protobuf.CodedOutputStream 1019 .computeMessageSize(6, service_.get(i)); 1020 } 1021 for (int i = 0; i < extension_.size(); i++) { 1022 size += com.google.protobuf.CodedOutputStream 1023 .computeMessageSize(7, extension_.get(i)); 1024 } 1025 if (((bitField0_ & 0x00000004) == 0x00000004)) { 1026 size += com.google.protobuf.CodedOutputStream 1027 .computeMessageSize(8, options_); 1028 } 1029 if (((bitField0_ & 0x00000008) == 0x00000008)) { 1030 size += com.google.protobuf.CodedOutputStream 1031 .computeMessageSize(9, sourceCodeInfo_); 1032 } 1033 { 1034 int dataSize = 0; 1035 for (int i = 0; i < publicDependency_.size(); i++) { 1036 dataSize += com.google.protobuf.CodedOutputStream 1037 .computeInt32SizeNoTag(publicDependency_.get(i)); 1038 } 1039 size += dataSize; 1040 size += 1 * getPublicDependencyList().size(); 1041 } 1042 { 1043 int dataSize = 0; 1044 for (int i = 0; i < weakDependency_.size(); i++) { 1045 dataSize += com.google.protobuf.CodedOutputStream 1046 .computeInt32SizeNoTag(weakDependency_.get(i)); 1047 } 1048 size += dataSize; 1049 size += 1 * getWeakDependencyList().size(); 1050 } 1051 size += getUnknownFields().getSerializedSize(); 1052 memoizedSerializedSize = size; 1053 return size; 1054 } 1055 1056 private static final long serialVersionUID = 0L; 1049 1050 private final com.google.protobuf.UnknownFieldSet unknownFields; 1057 1051 @java.lang.Override 1058 protected java.lang.Object writeReplace() 1059 throws java.io.ObjectStreamException { 1060 return super.writeReplace(); 1061 } 1062 1063 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 1064 com.google.protobuf.ByteString data) 1065 throws com.google.protobuf.InvalidProtocolBufferException { 1066 return newBuilder().mergeFrom(data).buildParsed(); 1067 } 1068 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 1069 com.google.protobuf.ByteString data, 1052 public final com.google.protobuf.UnknownFieldSet 1053 getUnknownFields() { 1054 return this.unknownFields; 1055 } 1056 private FileDescriptorProto( 1057 com.google.protobuf.CodedInputStream input, 1070 1058 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1071 1059 throws com.google.protobuf.InvalidProtocolBufferException { 1072 return newBuilder().mergeFrom(data, extensionRegistry) 1073 .buildParsed(); 1074 } 1075 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(byte[] data) 1076 throws com.google.protobuf.InvalidProtocolBufferException { 1077 return newBuilder().mergeFrom(data).buildParsed(); 1078 } 1079 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 1080 byte[] data, 1081 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1082 throws com.google.protobuf.InvalidProtocolBufferException { 1083 return newBuilder().mergeFrom(data, extensionRegistry) 1084 .buildParsed(); 1085 } 1086 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(java.io.InputStream input) 1087 throws java.io.IOException { 1088 return newBuilder().mergeFrom(input).buildParsed(); 1089 } 1090 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 1091 java.io.InputStream input, 1092 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1093 throws java.io.IOException { 1094 return newBuilder().mergeFrom(input, extensionRegistry) 1095 .buildParsed(); 1096 } 1097 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom(java.io.InputStream input) 1098 throws java.io.IOException { 1099 Builder builder = newBuilder(); 1100 if (builder.mergeDelimitedFrom(input)) { 1101 return builder.buildParsed(); 1102 } else { 1103 return null; 1104 } 1105 } 1106 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom( 1107 java.io.InputStream input, 1108 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1109 throws java.io.IOException { 1110 Builder builder = newBuilder(); 1111 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 1112 return builder.buildParsed(); 1113 } else { 1114 return null; 1115 } 1116 } 1117 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 1118 com.google.protobuf.CodedInputStream input) 1119 throws java.io.IOException { 1120 return newBuilder().mergeFrom(input).buildParsed(); 1121 } 1122 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 1123 com.google.protobuf.CodedInputStream input, 1124 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1125 throws java.io.IOException { 1126 return newBuilder().mergeFrom(input, extensionRegistry) 1127 .buildParsed(); 1128 } 1129 1130 public static Builder newBuilder() { return Builder.create(); } 1131 public Builder newBuilderForType() { return newBuilder(); } 1132 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileDescriptorProto prototype) { 1133 return newBuilder().mergeFrom(prototype); 1134 } 1135 public Builder toBuilder() { return newBuilder(this); } 1136 1137 @java.lang.Override 1138 protected Builder newBuilderForType( 1139 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 1140 Builder builder = new Builder(parent); 1141 return builder; 1142 } 1143 public static final class Builder extends 1144 com.google.protobuf.GeneratedMessage.Builder<Builder> 1145 implements com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder { 1146 public static final com.google.protobuf.Descriptors.Descriptor 1147 getDescriptor() { 1148 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor; 1149 } 1150 1151 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1152 internalGetFieldAccessorTable() { 1153 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable; 1154 } 1155 1156 // Construct using com.google.protobuf.DescriptorProtos.FileDescriptorProto.newBuilder() 1157 private Builder() { 1158 maybeForceBuilderInitialization(); 1159 } 1160 1161 private Builder(BuilderParent parent) { 1162 super(parent); 1163 maybeForceBuilderInitialization(); 1164 } 1165 private void maybeForceBuilderInitialization() { 1166 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 1167 getMessageTypeFieldBuilder(); 1168 getEnumTypeFieldBuilder(); 1169 getServiceFieldBuilder(); 1170 getExtensionFieldBuilder(); 1171 getOptionsFieldBuilder(); 1172 getSourceCodeInfoFieldBuilder(); 1173 } 1174 } 1175 private static Builder create() { 1176 return new Builder(); 1177 } 1178 1179 public Builder clear() { 1180 super.clear(); 1181 name_ = ""; 1182 bitField0_ = (bitField0_ & ~0x00000001); 1183 package_ = ""; 1184 bitField0_ = (bitField0_ & ~0x00000002); 1185 dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1186 bitField0_ = (bitField0_ & ~0x00000004); 1187 publicDependency_ = java.util.Collections.emptyList();; 1188 bitField0_ = (bitField0_ & ~0x00000008); 1189 weakDependency_ = java.util.Collections.emptyList();; 1190 bitField0_ = (bitField0_ & ~0x00000010); 1191 if (messageTypeBuilder_ == null) { 1192 messageType_ = java.util.Collections.emptyList(); 1193 bitField0_ = (bitField0_ & ~0x00000020); 1194 } else { 1195 messageTypeBuilder_.clear(); 1196 } 1197 if (enumTypeBuilder_ == null) { 1198 enumType_ = java.util.Collections.emptyList(); 1199 bitField0_ = (bitField0_ & ~0x00000040); 1200 } else { 1201 enumTypeBuilder_.clear(); 1202 } 1203 if (serviceBuilder_ == null) { 1204 service_ = java.util.Collections.emptyList(); 1205 bitField0_ = (bitField0_ & ~0x00000080); 1206 } else { 1207 serviceBuilder_.clear(); 1208 } 1209 if (extensionBuilder_ == null) { 1210 extension_ = java.util.Collections.emptyList(); 1211 bitField0_ = (bitField0_ & ~0x00000100); 1212 } else { 1213 extensionBuilder_.clear(); 1214 } 1215 if (optionsBuilder_ == null) { 1216 options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); 1217 } else { 1218 optionsBuilder_.clear(); 1219 } 1220 bitField0_ = (bitField0_ & ~0x00000200); 1221 if (sourceCodeInfoBuilder_ == null) { 1222 sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); 1223 } else { 1224 sourceCodeInfoBuilder_.clear(); 1225 } 1226 bitField0_ = (bitField0_ & ~0x00000400); 1227 return this; 1228 } 1229 1230 public Builder clone() { 1231 return create().mergeFrom(buildPartial()); 1232 } 1233 1234 public com.google.protobuf.Descriptors.Descriptor 1235 getDescriptorForType() { 1236 return com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDescriptor(); 1237 } 1238 1239 public com.google.protobuf.DescriptorProtos.FileDescriptorProto getDefaultInstanceForType() { 1240 return com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance(); 1241 } 1242 1243 public com.google.protobuf.DescriptorProtos.FileDescriptorProto build() { 1244 com.google.protobuf.DescriptorProtos.FileDescriptorProto result = buildPartial(); 1245 if (!result.isInitialized()) { 1246 throw newUninitializedMessageException(result); 1247 } 1248 return result; 1249 } 1250 1251 private com.google.protobuf.DescriptorProtos.FileDescriptorProto buildParsed() 1252 throws com.google.protobuf.InvalidProtocolBufferException { 1253 com.google.protobuf.DescriptorProtos.FileDescriptorProto result = buildPartial(); 1254 if (!result.isInitialized()) { 1255 throw newUninitializedMessageException( 1256 result).asInvalidProtocolBufferException(); 1257 } 1258 return result; 1259 } 1260 1261 public com.google.protobuf.DescriptorProtos.FileDescriptorProto buildPartial() { 1262 com.google.protobuf.DescriptorProtos.FileDescriptorProto result = new com.google.protobuf.DescriptorProtos.FileDescriptorProto(this); 1263 int from_bitField0_ = bitField0_; 1264 int to_bitField0_ = 0; 1265 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 1266 to_bitField0_ |= 0x00000001; 1267 } 1268 result.name_ = name_; 1269 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 1270 to_bitField0_ |= 0x00000002; 1271 } 1272 result.package_ = package_; 1273 if (((bitField0_ & 0x00000004) == 0x00000004)) { 1274 dependency_ = new com.google.protobuf.UnmodifiableLazyStringList( 1275 dependency_); 1276 bitField0_ = (bitField0_ & ~0x00000004); 1277 } 1278 result.dependency_ = dependency_; 1279 if (((bitField0_ & 0x00000008) == 0x00000008)) { 1280 publicDependency_ = java.util.Collections.unmodifiableList(publicDependency_); 1281 bitField0_ = (bitField0_ & ~0x00000008); 1282 } 1283 result.publicDependency_ = publicDependency_; 1284 if (((bitField0_ & 0x00000010) == 0x00000010)) { 1285 weakDependency_ = java.util.Collections.unmodifiableList(weakDependency_); 1286 bitField0_ = (bitField0_ & ~0x00000010); 1287 } 1288 result.weakDependency_ = weakDependency_; 1289 if (messageTypeBuilder_ == null) { 1290 if (((bitField0_ & 0x00000020) == 0x00000020)) { 1291 messageType_ = java.util.Collections.unmodifiableList(messageType_); 1292 bitField0_ = (bitField0_ & ~0x00000020); 1293 } 1294 result.messageType_ = messageType_; 1295 } else { 1296 result.messageType_ = messageTypeBuilder_.build(); 1297 } 1298 if (enumTypeBuilder_ == null) { 1299 if (((bitField0_ & 0x00000040) == 0x00000040)) { 1300 enumType_ = java.util.Collections.unmodifiableList(enumType_); 1301 bitField0_ = (bitField0_ & ~0x00000040); 1302 } 1303 result.enumType_ = enumType_; 1304 } else { 1305 result.enumType_ = enumTypeBuilder_.build(); 1306 } 1307 if (serviceBuilder_ == null) { 1308 if (((bitField0_ & 0x00000080) == 0x00000080)) { 1309 service_ = java.util.Collections.unmodifiableList(service_); 1310 bitField0_ = (bitField0_ & ~0x00000080); 1311 } 1312 result.service_ = service_; 1313 } else { 1314 result.service_ = serviceBuilder_.build(); 1315 } 1316 if (extensionBuilder_ == null) { 1317 if (((bitField0_ & 0x00000100) == 0x00000100)) { 1318 extension_ = java.util.Collections.unmodifiableList(extension_); 1319 bitField0_ = (bitField0_ & ~0x00000100); 1320 } 1321 result.extension_ = extension_; 1322 } else { 1323 result.extension_ = extensionBuilder_.build(); 1324 } 1325 if (((from_bitField0_ & 0x00000200) == 0x00000200)) { 1326 to_bitField0_ |= 0x00000004; 1327 } 1328 if (optionsBuilder_ == null) { 1329 result.options_ = options_; 1330 } else { 1331 result.options_ = optionsBuilder_.build(); 1332 } 1333 if (((from_bitField0_ & 0x00000400) == 0x00000400)) { 1334 to_bitField0_ |= 0x00000008; 1335 } 1336 if (sourceCodeInfoBuilder_ == null) { 1337 result.sourceCodeInfo_ = sourceCodeInfo_; 1338 } else { 1339 result.sourceCodeInfo_ = sourceCodeInfoBuilder_.build(); 1340 } 1341 result.bitField0_ = to_bitField0_; 1342 onBuilt(); 1343 return result; 1344 } 1345 1346 public Builder mergeFrom(com.google.protobuf.Message other) { 1347 if (other instanceof com.google.protobuf.DescriptorProtos.FileDescriptorProto) { 1348 return mergeFrom((com.google.protobuf.DescriptorProtos.FileDescriptorProto)other); 1349 } else { 1350 super.mergeFrom(other); 1351 return this; 1352 } 1353 } 1354 1355 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FileDescriptorProto other) { 1356 if (other == com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance()) return this; 1357 if (other.hasName()) { 1358 setName(other.getName()); 1359 } 1360 if (other.hasPackage()) { 1361 setPackage(other.getPackage()); 1362 } 1363 if (!other.dependency_.isEmpty()) { 1364 if (dependency_.isEmpty()) { 1365 dependency_ = other.dependency_; 1366 bitField0_ = (bitField0_ & ~0x00000004); 1367 } else { 1368 ensureDependencyIsMutable(); 1369 dependency_.addAll(other.dependency_); 1370 } 1371 onChanged(); 1372 } 1373 if (!other.publicDependency_.isEmpty()) { 1374 if (publicDependency_.isEmpty()) { 1375 publicDependency_ = other.publicDependency_; 1376 bitField0_ = (bitField0_ & ~0x00000008); 1377 } else { 1378 ensurePublicDependencyIsMutable(); 1379 publicDependency_.addAll(other.publicDependency_); 1380 } 1381 onChanged(); 1382 } 1383 if (!other.weakDependency_.isEmpty()) { 1384 if (weakDependency_.isEmpty()) { 1385 weakDependency_ = other.weakDependency_; 1386 bitField0_ = (bitField0_ & ~0x00000010); 1387 } else { 1388 ensureWeakDependencyIsMutable(); 1389 weakDependency_.addAll(other.weakDependency_); 1390 } 1391 onChanged(); 1392 } 1393 if (messageTypeBuilder_ == null) { 1394 if (!other.messageType_.isEmpty()) { 1395 if (messageType_.isEmpty()) { 1396 messageType_ = other.messageType_; 1397 bitField0_ = (bitField0_ & ~0x00000020); 1398 } else { 1399 ensureMessageTypeIsMutable(); 1400 messageType_.addAll(other.messageType_); 1401 } 1402 onChanged(); 1403 } 1404 } else { 1405 if (!other.messageType_.isEmpty()) { 1406 if (messageTypeBuilder_.isEmpty()) { 1407 messageTypeBuilder_.dispose(); 1408 messageTypeBuilder_ = null; 1409 messageType_ = other.messageType_; 1410 bitField0_ = (bitField0_ & ~0x00000020); 1411 messageTypeBuilder_ = 1412 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 1413 getMessageTypeFieldBuilder() : null; 1414 } else { 1415 messageTypeBuilder_.addAllMessages(other.messageType_); 1416 } 1417 } 1418 } 1419 if (enumTypeBuilder_ == null) { 1420 if (!other.enumType_.isEmpty()) { 1421 if (enumType_.isEmpty()) { 1422 enumType_ = other.enumType_; 1423 bitField0_ = (bitField0_ & ~0x00000040); 1424 } else { 1425 ensureEnumTypeIsMutable(); 1426 enumType_.addAll(other.enumType_); 1427 } 1428 onChanged(); 1429 } 1430 } else { 1431 if (!other.enumType_.isEmpty()) { 1432 if (enumTypeBuilder_.isEmpty()) { 1433 enumTypeBuilder_.dispose(); 1434 enumTypeBuilder_ = null; 1435 enumType_ = other.enumType_; 1436 bitField0_ = (bitField0_ & ~0x00000040); 1437 enumTypeBuilder_ = 1438 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 1439 getEnumTypeFieldBuilder() : null; 1440 } else { 1441 enumTypeBuilder_.addAllMessages(other.enumType_); 1442 } 1443 } 1444 } 1445 if (serviceBuilder_ == null) { 1446 if (!other.service_.isEmpty()) { 1447 if (service_.isEmpty()) { 1448 service_ = other.service_; 1449 bitField0_ = (bitField0_ & ~0x00000080); 1450 } else { 1451 ensureServiceIsMutable(); 1452 service_.addAll(other.service_); 1453 } 1454 onChanged(); 1455 } 1456 } else { 1457 if (!other.service_.isEmpty()) { 1458 if (serviceBuilder_.isEmpty()) { 1459 serviceBuilder_.dispose(); 1460 serviceBuilder_ = null; 1461 service_ = other.service_; 1462 bitField0_ = (bitField0_ & ~0x00000080); 1463 serviceBuilder_ = 1464 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 1465 getServiceFieldBuilder() : null; 1466 } else { 1467 serviceBuilder_.addAllMessages(other.service_); 1468 } 1469 } 1470 } 1471 if (extensionBuilder_ == null) { 1472 if (!other.extension_.isEmpty()) { 1473 if (extension_.isEmpty()) { 1474 extension_ = other.extension_; 1475 bitField0_ = (bitField0_ & ~0x00000100); 1476 } else { 1477 ensureExtensionIsMutable(); 1478 extension_.addAll(other.extension_); 1479 } 1480 onChanged(); 1481 } 1482 } else { 1483 if (!other.extension_.isEmpty()) { 1484 if (extensionBuilder_.isEmpty()) { 1485 extensionBuilder_.dispose(); 1486 extensionBuilder_ = null; 1487 extension_ = other.extension_; 1488 bitField0_ = (bitField0_ & ~0x00000100); 1489 extensionBuilder_ = 1490 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 1491 getExtensionFieldBuilder() : null; 1492 } else { 1493 extensionBuilder_.addAllMessages(other.extension_); 1494 } 1495 } 1496 } 1497 if (other.hasOptions()) { 1498 mergeOptions(other.getOptions()); 1499 } 1500 if (other.hasSourceCodeInfo()) { 1501 mergeSourceCodeInfo(other.getSourceCodeInfo()); 1502 } 1503 this.mergeUnknownFields(other.getUnknownFields()); 1504 return this; 1505 } 1506 1507 public final boolean isInitialized() { 1508 for (int i = 0; i < getMessageTypeCount(); i++) { 1509 if (!getMessageType(i).isInitialized()) { 1510 1511 return false; 1512 } 1513 } 1514 for (int i = 0; i < getEnumTypeCount(); i++) { 1515 if (!getEnumType(i).isInitialized()) { 1516 1517 return false; 1518 } 1519 } 1520 for (int i = 0; i < getServiceCount(); i++) { 1521 if (!getService(i).isInitialized()) { 1522 1523 return false; 1524 } 1525 } 1526 for (int i = 0; i < getExtensionCount(); i++) { 1527 if (!getExtension(i).isInitialized()) { 1528 1529 return false; 1530 } 1531 } 1532 if (hasOptions()) { 1533 if (!getOptions().isInitialized()) { 1534 1535 return false; 1536 } 1537 } 1538 return true; 1539 } 1540 1541 public Builder mergeFrom( 1542 com.google.protobuf.CodedInputStream input, 1543 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1544 throws java.io.IOException { 1545 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 1546 com.google.protobuf.UnknownFieldSet.newBuilder( 1547 this.getUnknownFields()); 1548 while (true) { 1060 initFields(); 1061 int mutable_bitField0_ = 0; 1062 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 1063 com.google.protobuf.UnknownFieldSet.newBuilder(); 1064 try { 1065 boolean done = false; 1066 while (!done) { 1549 1067 int tag = input.readTag(); 1550 1068 switch (tag) { 1551 1069 case 0: 1552 this.setUnknownFields(unknownFields.build()); 1553 onChanged(); 1554 return this; 1070 done = true; 1071 break; 1555 1072 default: { 1556 1073 if (!parseUnknownField(input, unknownFields, 1557 1074 extensionRegistry, tag)) { 1558 this.setUnknownFields(unknownFields.build()); 1559 onChanged(); 1560 return this; 1075 done = true; 1561 1076 } 1562 1077 break; … … 1573 1088 } 1574 1089 case 26: { 1575 ensureDependencyIsMutable(); 1090 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 1091 dependency_ = new com.google.protobuf.LazyStringArrayList(); 1092 mutable_bitField0_ |= 0x00000004; 1093 } 1576 1094 dependency_.add(input.readBytes()); 1577 1095 break; 1578 1096 } 1579 1097 case 34: { 1580 com.google.protobuf.DescriptorProtos.DescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.DescriptorProto.newBuilder(); 1581 input.readMessage(subBuilder, extensionRegistry); 1582 addMessageType(subBuilder.buildPartial()); 1098 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 1099 messageType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>(); 1100 mutable_bitField0_ |= 0x00000020; 1101 } 1102 messageType_.add(input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.PARSER, extensionRegistry)); 1583 1103 break; 1584 1104 } 1585 1105 case 42: { 1586 com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.EnumDescriptorProto.newBuilder(); 1587 input.readMessage(subBuilder, extensionRegistry); 1588 addEnumType(subBuilder.buildPartial()); 1106 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 1107 enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>(); 1108 mutable_bitField0_ |= 0x00000040; 1109 } 1110 enumType_.add(input.readMessage(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.PARSER, extensionRegistry)); 1589 1111 break; 1590 1112 } 1591 1113 case 50: { 1592 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.newBuilder(); 1593 input.readMessage(subBuilder, extensionRegistry); 1594 addService(subBuilder.buildPartial()); 1114 if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { 1115 service_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto>(); 1116 mutable_bitField0_ |= 0x00000080; 1117 } 1118 service_.add(input.readMessage(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.PARSER, extensionRegistry)); 1595 1119 break; 1596 1120 } 1597 1121 case 58: { 1598 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.newBuilder(); 1599 input.readMessage(subBuilder, extensionRegistry); 1600 addExtension(subBuilder.buildPartial()); 1122 if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { 1123 extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>(); 1124 mutable_bitField0_ |= 0x00000100; 1125 } 1126 extension_.add(input.readMessage(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); 1601 1127 break; 1602 1128 } 1603 1129 case 66: { 1604 com.google.protobuf.DescriptorProtos.FileOptions.Builder subBuilder = com.google.protobuf.DescriptorProtos.FileOptions.newBuilder();1605 if ( hasOptions()) {1606 subBuilder .mergeFrom(getOptions());1130 com.google.protobuf.DescriptorProtos.FileOptions.Builder subBuilder = null; 1131 if (((bitField0_ & 0x00000004) == 0x00000004)) { 1132 subBuilder = options_.toBuilder(); 1607 1133 } 1608 input.readMessage(subBuilder, extensionRegistry); 1609 setOptions(subBuilder.buildPartial()); 1134 options_ = input.readMessage(com.google.protobuf.DescriptorProtos.FileOptions.PARSER, extensionRegistry); 1135 if (subBuilder != null) { 1136 subBuilder.mergeFrom(options_); 1137 options_ = subBuilder.buildPartial(); 1138 } 1139 bitField0_ |= 0x00000004; 1610 1140 break; 1611 1141 } 1612 1142 case 74: { 1613 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder subBuilder = com.google.protobuf.DescriptorProtos.SourceCodeInfo.newBuilder();1614 if ( hasSourceCodeInfo()) {1615 subBuilder .mergeFrom(getSourceCodeInfo());1143 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder subBuilder = null; 1144 if (((bitField0_ & 0x00000008) == 0x00000008)) { 1145 subBuilder = sourceCodeInfo_.toBuilder(); 1616 1146 } 1617 input.readMessage(subBuilder, extensionRegistry); 1618 setSourceCodeInfo(subBuilder.buildPartial()); 1147 sourceCodeInfo_ = input.readMessage(com.google.protobuf.DescriptorProtos.SourceCodeInfo.PARSER, extensionRegistry); 1148 if (subBuilder != null) { 1149 subBuilder.mergeFrom(sourceCodeInfo_); 1150 sourceCodeInfo_ = subBuilder.buildPartial(); 1151 } 1152 bitField0_ |= 0x00000008; 1619 1153 break; 1620 1154 } 1621 1155 case 80: { 1622 ensurePublicDependencyIsMutable(); 1156 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 1157 publicDependency_ = new java.util.ArrayList<java.lang.Integer>(); 1158 mutable_bitField0_ |= 0x00000008; 1159 } 1623 1160 publicDependency_.add(input.readInt32()); 1624 1161 break; … … 1627 1164 int length = input.readRawVarint32(); 1628 1165 int limit = input.pushLimit(length); 1166 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { 1167 publicDependency_ = new java.util.ArrayList<java.lang.Integer>(); 1168 mutable_bitField0_ |= 0x00000008; 1169 } 1629 1170 while (input.getBytesUntilLimit() > 0) { 1630 addPublicDependency(input.readInt32());1171 publicDependency_.add(input.readInt32()); 1631 1172 } 1632 1173 input.popLimit(limit); … … 1634 1175 } 1635 1176 case 88: { 1636 ensureWeakDependencyIsMutable(); 1177 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 1178 weakDependency_ = new java.util.ArrayList<java.lang.Integer>(); 1179 mutable_bitField0_ |= 0x00000010; 1180 } 1637 1181 weakDependency_.add(input.readInt32()); 1638 1182 break; … … 1641 1185 int length = input.readRawVarint32(); 1642 1186 int limit = input.pushLimit(length); 1187 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { 1188 weakDependency_ = new java.util.ArrayList<java.lang.Integer>(); 1189 mutable_bitField0_ |= 0x00000010; 1190 } 1643 1191 while (input.getBytesUntilLimit() > 0) { 1644 addWeakDependency(input.readInt32());1192 weakDependency_.add(input.readInt32()); 1645 1193 } 1646 1194 input.popLimit(limit); … … 1649 1197 } 1650 1198 } 1651 } 1652 1199 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1200 throw e.setUnfinishedMessage(this); 1201 } catch (java.io.IOException e) { 1202 throw new com.google.protobuf.InvalidProtocolBufferException( 1203 e.getMessage()).setUnfinishedMessage(this); 1204 } finally { 1205 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 1206 dependency_ = new com.google.protobuf.UnmodifiableLazyStringList(dependency_); 1207 } 1208 if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 1209 messageType_ = java.util.Collections.unmodifiableList(messageType_); 1210 } 1211 if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 1212 enumType_ = java.util.Collections.unmodifiableList(enumType_); 1213 } 1214 if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { 1215 service_ = java.util.Collections.unmodifiableList(service_); 1216 } 1217 if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { 1218 extension_ = java.util.Collections.unmodifiableList(extension_); 1219 } 1220 if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 1221 publicDependency_ = java.util.Collections.unmodifiableList(publicDependency_); 1222 } 1223 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 1224 weakDependency_ = java.util.Collections.unmodifiableList(weakDependency_); 1225 } 1226 this.unknownFields = unknownFields.build(); 1227 makeExtensionsImmutable(); 1228 } 1229 } 1230 public static final com.google.protobuf.Descriptors.Descriptor 1231 getDescriptor() { 1232 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor; 1233 } 1234 1235 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1236 internalGetFieldAccessorTable() { 1237 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable 1238 .ensureFieldAccessorsInitialized( 1239 com.google.protobuf.DescriptorProtos.FileDescriptorProto.class, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder.class); 1240 } 1241 1242 public static com.google.protobuf.Parser<FileDescriptorProto> PARSER = 1243 new com.google.protobuf.AbstractParser<FileDescriptorProto>() { 1244 public FileDescriptorProto parsePartialFrom( 1245 com.google.protobuf.CodedInputStream input, 1246 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1247 throws com.google.protobuf.InvalidProtocolBufferException { 1248 return new FileDescriptorProto(input, extensionRegistry); 1249 } 1250 }; 1251 1252 @java.lang.Override 1253 public com.google.protobuf.Parser<FileDescriptorProto> getParserForType() { 1254 return PARSER; 1255 } 1256 1257 private int bitField0_; 1258 // optional string name = 1; 1259 public static final int NAME_FIELD_NUMBER = 1; 1260 private java.lang.Object name_; 1261 /** 1262 * <code>optional string name = 1;</code> 1263 * 1264 * <pre> 1265 * file name, relative to root of source tree 1266 * </pre> 1267 */ 1268 public boolean hasName() { 1269 return ((bitField0_ & 0x00000001) == 0x00000001); 1270 } 1271 /** 1272 * <code>optional string name = 1;</code> 1273 * 1274 * <pre> 1275 * file name, relative to root of source tree 1276 * </pre> 1277 */ 1278 public java.lang.String getName() { 1279 java.lang.Object ref = name_; 1280 if (ref instanceof java.lang.String) { 1281 return (java.lang.String) ref; 1282 } else { 1283 com.google.protobuf.ByteString bs = 1284 (com.google.protobuf.ByteString) ref; 1285 java.lang.String s = bs.toStringUtf8(); 1286 if (bs.isValidUtf8()) { 1287 name_ = s; 1288 } 1289 return s; 1290 } 1291 } 1292 /** 1293 * <code>optional string name = 1;</code> 1294 * 1295 * <pre> 1296 * file name, relative to root of source tree 1297 * </pre> 1298 */ 1299 public com.google.protobuf.ByteString 1300 getNameBytes() { 1301 java.lang.Object ref = name_; 1302 if (ref instanceof java.lang.String) { 1303 com.google.protobuf.ByteString b = 1304 com.google.protobuf.ByteString.copyFromUtf8( 1305 (java.lang.String) ref); 1306 name_ = b; 1307 return b; 1308 } else { 1309 return (com.google.protobuf.ByteString) ref; 1310 } 1311 } 1312 1313 // optional string package = 2; 1314 public static final int PACKAGE_FIELD_NUMBER = 2; 1315 private java.lang.Object package_; 1316 /** 1317 * <code>optional string package = 2;</code> 1318 * 1319 * <pre> 1320 * e.g. "foo", "foo.bar", etc. 1321 * </pre> 1322 */ 1323 public boolean hasPackage() { 1324 return ((bitField0_ & 0x00000002) == 0x00000002); 1325 } 1326 /** 1327 * <code>optional string package = 2;</code> 1328 * 1329 * <pre> 1330 * e.g. "foo", "foo.bar", etc. 1331 * </pre> 1332 */ 1333 public java.lang.String getPackage() { 1334 java.lang.Object ref = package_; 1335 if (ref instanceof java.lang.String) { 1336 return (java.lang.String) ref; 1337 } else { 1338 com.google.protobuf.ByteString bs = 1339 (com.google.protobuf.ByteString) ref; 1340 java.lang.String s = bs.toStringUtf8(); 1341 if (bs.isValidUtf8()) { 1342 package_ = s; 1343 } 1344 return s; 1345 } 1346 } 1347 /** 1348 * <code>optional string package = 2;</code> 1349 * 1350 * <pre> 1351 * e.g. "foo", "foo.bar", etc. 1352 * </pre> 1353 */ 1354 public com.google.protobuf.ByteString 1355 getPackageBytes() { 1356 java.lang.Object ref = package_; 1357 if (ref instanceof java.lang.String) { 1358 com.google.protobuf.ByteString b = 1359 com.google.protobuf.ByteString.copyFromUtf8( 1360 (java.lang.String) ref); 1361 package_ = b; 1362 return b; 1363 } else { 1364 return (com.google.protobuf.ByteString) ref; 1365 } 1366 } 1367 1368 // repeated string dependency = 3; 1369 public static final int DEPENDENCY_FIELD_NUMBER = 3; 1370 private com.google.protobuf.LazyStringList dependency_; 1371 /** 1372 * <code>repeated string dependency = 3;</code> 1373 * 1374 * <pre> 1375 * Names of files imported by this file. 1376 * </pre> 1377 */ 1378 public java.util.List<java.lang.String> 1379 getDependencyList() { 1380 return dependency_; 1381 } 1382 /** 1383 * <code>repeated string dependency = 3;</code> 1384 * 1385 * <pre> 1386 * Names of files imported by this file. 1387 * </pre> 1388 */ 1389 public int getDependencyCount() { 1390 return dependency_.size(); 1391 } 1392 /** 1393 * <code>repeated string dependency = 3;</code> 1394 * 1395 * <pre> 1396 * Names of files imported by this file. 1397 * </pre> 1398 */ 1399 public java.lang.String getDependency(int index) { 1400 return dependency_.get(index); 1401 } 1402 /** 1403 * <code>repeated string dependency = 3;</code> 1404 * 1405 * <pre> 1406 * Names of files imported by this file. 1407 * </pre> 1408 */ 1409 public com.google.protobuf.ByteString 1410 getDependencyBytes(int index) { 1411 return dependency_.getByteString(index); 1412 } 1413 1414 // repeated int32 public_dependency = 10; 1415 public static final int PUBLIC_DEPENDENCY_FIELD_NUMBER = 10; 1416 private java.util.List<java.lang.Integer> publicDependency_; 1417 /** 1418 * <code>repeated int32 public_dependency = 10;</code> 1419 * 1420 * <pre> 1421 * Indexes of the public imported files in the dependency list above. 1422 * </pre> 1423 */ 1424 public java.util.List<java.lang.Integer> 1425 getPublicDependencyList() { 1426 return publicDependency_; 1427 } 1428 /** 1429 * <code>repeated int32 public_dependency = 10;</code> 1430 * 1431 * <pre> 1432 * Indexes of the public imported files in the dependency list above. 1433 * </pre> 1434 */ 1435 public int getPublicDependencyCount() { 1436 return publicDependency_.size(); 1437 } 1438 /** 1439 * <code>repeated int32 public_dependency = 10;</code> 1440 * 1441 * <pre> 1442 * Indexes of the public imported files in the dependency list above. 1443 * </pre> 1444 */ 1445 public int getPublicDependency(int index) { 1446 return publicDependency_.get(index); 1447 } 1448 1449 // repeated int32 weak_dependency = 11; 1450 public static final int WEAK_DEPENDENCY_FIELD_NUMBER = 11; 1451 private java.util.List<java.lang.Integer> weakDependency_; 1452 /** 1453 * <code>repeated int32 weak_dependency = 11;</code> 1454 * 1455 * <pre> 1456 * Indexes of the weak imported files in the dependency list. 1457 * For Google-internal migration only. Do not use. 1458 * </pre> 1459 */ 1460 public java.util.List<java.lang.Integer> 1461 getWeakDependencyList() { 1462 return weakDependency_; 1463 } 1464 /** 1465 * <code>repeated int32 weak_dependency = 11;</code> 1466 * 1467 * <pre> 1468 * Indexes of the weak imported files in the dependency list. 1469 * For Google-internal migration only. Do not use. 1470 * </pre> 1471 */ 1472 public int getWeakDependencyCount() { 1473 return weakDependency_.size(); 1474 } 1475 /** 1476 * <code>repeated int32 weak_dependency = 11;</code> 1477 * 1478 * <pre> 1479 * Indexes of the weak imported files in the dependency list. 1480 * For Google-internal migration only. Do not use. 1481 * </pre> 1482 */ 1483 public int getWeakDependency(int index) { 1484 return weakDependency_.get(index); 1485 } 1486 1487 // repeated .google.protobuf.DescriptorProto message_type = 4; 1488 public static final int MESSAGE_TYPE_FIELD_NUMBER = 4; 1489 private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> messageType_; 1490 /** 1491 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 1492 * 1493 * <pre> 1494 * All top-level definitions in this file. 1495 * </pre> 1496 */ 1497 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getMessageTypeList() { 1498 return messageType_; 1499 } 1500 /** 1501 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 1502 * 1503 * <pre> 1504 * All top-level definitions in this file. 1505 * </pre> 1506 */ 1507 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 1508 getMessageTypeOrBuilderList() { 1509 return messageType_; 1510 } 1511 /** 1512 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 1513 * 1514 * <pre> 1515 * All top-level definitions in this file. 1516 * </pre> 1517 */ 1518 public int getMessageTypeCount() { 1519 return messageType_.size(); 1520 } 1521 /** 1522 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 1523 * 1524 * <pre> 1525 * All top-level definitions in this file. 1526 * </pre> 1527 */ 1528 public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) { 1529 return messageType_.get(index); 1530 } 1531 /** 1532 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 1533 * 1534 * <pre> 1535 * All top-level definitions in this file. 1536 * </pre> 1537 */ 1538 public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( 1539 int index) { 1540 return messageType_.get(index); 1541 } 1542 1543 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; 1544 public static final int ENUM_TYPE_FIELD_NUMBER = 5; 1545 private java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> enumType_; 1546 /** 1547 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 1548 */ 1549 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { 1550 return enumType_; 1551 } 1552 /** 1553 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 1554 */ 1555 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 1556 getEnumTypeOrBuilderList() { 1557 return enumType_; 1558 } 1559 /** 1560 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 1561 */ 1562 public int getEnumTypeCount() { 1563 return enumType_.size(); 1564 } 1565 /** 1566 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 1567 */ 1568 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { 1569 return enumType_.get(index); 1570 } 1571 /** 1572 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 1573 */ 1574 public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( 1575 int index) { 1576 return enumType_.get(index); 1577 } 1578 1579 // repeated .google.protobuf.ServiceDescriptorProto service = 6; 1580 public static final int SERVICE_FIELD_NUMBER = 6; 1581 private java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> service_; 1582 /** 1583 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 1584 */ 1585 public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> getServiceList() { 1586 return service_; 1587 } 1588 /** 1589 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 1590 */ 1591 public java.util.List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> 1592 getServiceOrBuilderList() { 1593 return service_; 1594 } 1595 /** 1596 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 1597 */ 1598 public int getServiceCount() { 1599 return service_.size(); 1600 } 1601 /** 1602 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 1603 */ 1604 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) { 1605 return service_.get(index); 1606 } 1607 /** 1608 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 1609 */ 1610 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( 1611 int index) { 1612 return service_.get(index); 1613 } 1614 1615 // repeated .google.protobuf.FieldDescriptorProto extension = 7; 1616 public static final int EXTENSION_FIELD_NUMBER = 7; 1617 private java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> extension_; 1618 /** 1619 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 1620 */ 1621 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { 1622 return extension_; 1623 } 1624 /** 1625 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 1626 */ 1627 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 1628 getExtensionOrBuilderList() { 1629 return extension_; 1630 } 1631 /** 1632 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 1633 */ 1634 public int getExtensionCount() { 1635 return extension_.size(); 1636 } 1637 /** 1638 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 1639 */ 1640 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { 1641 return extension_.get(index); 1642 } 1643 /** 1644 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 1645 */ 1646 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( 1647 int index) { 1648 return extension_.get(index); 1649 } 1650 1651 // optional .google.protobuf.FileOptions options = 8; 1652 public static final int OPTIONS_FIELD_NUMBER = 8; 1653 private com.google.protobuf.DescriptorProtos.FileOptions options_; 1654 /** 1655 * <code>optional .google.protobuf.FileOptions options = 8;</code> 1656 */ 1657 public boolean hasOptions() { 1658 return ((bitField0_ & 0x00000004) == 0x00000004); 1659 } 1660 /** 1661 * <code>optional .google.protobuf.FileOptions options = 8;</code> 1662 */ 1663 public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { 1664 return options_; 1665 } 1666 /** 1667 * <code>optional .google.protobuf.FileOptions options = 8;</code> 1668 */ 1669 public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { 1670 return options_; 1671 } 1672 1673 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; 1674 public static final int SOURCE_CODE_INFO_FIELD_NUMBER = 9; 1675 private com.google.protobuf.DescriptorProtos.SourceCodeInfo sourceCodeInfo_; 1676 /** 1677 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 1678 * 1679 * <pre> 1680 * This field contains optional information about the original source code. 1681 * You may safely remove this entire field whithout harming runtime 1682 * functionality of the descriptors -- the information is needed only by 1683 * development tools. 1684 * </pre> 1685 */ 1686 public boolean hasSourceCodeInfo() { 1687 return ((bitField0_ & 0x00000008) == 0x00000008); 1688 } 1689 /** 1690 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 1691 * 1692 * <pre> 1693 * This field contains optional information about the original source code. 1694 * You may safely remove this entire field whithout harming runtime 1695 * functionality of the descriptors -- the information is needed only by 1696 * development tools. 1697 * </pre> 1698 */ 1699 public com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { 1700 return sourceCodeInfo_; 1701 } 1702 /** 1703 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 1704 * 1705 * <pre> 1706 * This field contains optional information about the original source code. 1707 * You may safely remove this entire field whithout harming runtime 1708 * functionality of the descriptors -- the information is needed only by 1709 * development tools. 1710 * </pre> 1711 */ 1712 public com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder() { 1713 return sourceCodeInfo_; 1714 } 1715 1716 private void initFields() { 1717 name_ = ""; 1718 package_ = ""; 1719 dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1720 publicDependency_ = java.util.Collections.emptyList(); 1721 weakDependency_ = java.util.Collections.emptyList(); 1722 messageType_ = java.util.Collections.emptyList(); 1723 enumType_ = java.util.Collections.emptyList(); 1724 service_ = java.util.Collections.emptyList(); 1725 extension_ = java.util.Collections.emptyList(); 1726 options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); 1727 sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); 1728 } 1729 private byte memoizedIsInitialized = -1; 1730 public final boolean isInitialized() { 1731 byte isInitialized = memoizedIsInitialized; 1732 if (isInitialized != -1) return isInitialized == 1; 1733 1734 for (int i = 0; i < getMessageTypeCount(); i++) { 1735 if (!getMessageType(i).isInitialized()) { 1736 memoizedIsInitialized = 0; 1737 return false; 1738 } 1739 } 1740 for (int i = 0; i < getEnumTypeCount(); i++) { 1741 if (!getEnumType(i).isInitialized()) { 1742 memoizedIsInitialized = 0; 1743 return false; 1744 } 1745 } 1746 for (int i = 0; i < getServiceCount(); i++) { 1747 if (!getService(i).isInitialized()) { 1748 memoizedIsInitialized = 0; 1749 return false; 1750 } 1751 } 1752 for (int i = 0; i < getExtensionCount(); i++) { 1753 if (!getExtension(i).isInitialized()) { 1754 memoizedIsInitialized = 0; 1755 return false; 1756 } 1757 } 1758 if (hasOptions()) { 1759 if (!getOptions().isInitialized()) { 1760 memoizedIsInitialized = 0; 1761 return false; 1762 } 1763 } 1764 memoizedIsInitialized = 1; 1765 return true; 1766 } 1767 1768 public void writeTo(com.google.protobuf.CodedOutputStream output) 1769 throws java.io.IOException { 1770 getSerializedSize(); 1771 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1772 output.writeBytes(1, getNameBytes()); 1773 } 1774 if (((bitField0_ & 0x00000002) == 0x00000002)) { 1775 output.writeBytes(2, getPackageBytes()); 1776 } 1777 for (int i = 0; i < dependency_.size(); i++) { 1778 output.writeBytes(3, dependency_.getByteString(i)); 1779 } 1780 for (int i = 0; i < messageType_.size(); i++) { 1781 output.writeMessage(4, messageType_.get(i)); 1782 } 1783 for (int i = 0; i < enumType_.size(); i++) { 1784 output.writeMessage(5, enumType_.get(i)); 1785 } 1786 for (int i = 0; i < service_.size(); i++) { 1787 output.writeMessage(6, service_.get(i)); 1788 } 1789 for (int i = 0; i < extension_.size(); i++) { 1790 output.writeMessage(7, extension_.get(i)); 1791 } 1792 if (((bitField0_ & 0x00000004) == 0x00000004)) { 1793 output.writeMessage(8, options_); 1794 } 1795 if (((bitField0_ & 0x00000008) == 0x00000008)) { 1796 output.writeMessage(9, sourceCodeInfo_); 1797 } 1798 for (int i = 0; i < publicDependency_.size(); i++) { 1799 output.writeInt32(10, publicDependency_.get(i)); 1800 } 1801 for (int i = 0; i < weakDependency_.size(); i++) { 1802 output.writeInt32(11, weakDependency_.get(i)); 1803 } 1804 getUnknownFields().writeTo(output); 1805 } 1806 1807 private int memoizedSerializedSize = -1; 1808 public int getSerializedSize() { 1809 int size = memoizedSerializedSize; 1810 if (size != -1) return size; 1811 1812 size = 0; 1813 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1814 size += com.google.protobuf.CodedOutputStream 1815 .computeBytesSize(1, getNameBytes()); 1816 } 1817 if (((bitField0_ & 0x00000002) == 0x00000002)) { 1818 size += com.google.protobuf.CodedOutputStream 1819 .computeBytesSize(2, getPackageBytes()); 1820 } 1821 { 1822 int dataSize = 0; 1823 for (int i = 0; i < dependency_.size(); i++) { 1824 dataSize += com.google.protobuf.CodedOutputStream 1825 .computeBytesSizeNoTag(dependency_.getByteString(i)); 1826 } 1827 size += dataSize; 1828 size += 1 * getDependencyList().size(); 1829 } 1830 for (int i = 0; i < messageType_.size(); i++) { 1831 size += com.google.protobuf.CodedOutputStream 1832 .computeMessageSize(4, messageType_.get(i)); 1833 } 1834 for (int i = 0; i < enumType_.size(); i++) { 1835 size += com.google.protobuf.CodedOutputStream 1836 .computeMessageSize(5, enumType_.get(i)); 1837 } 1838 for (int i = 0; i < service_.size(); i++) { 1839 size += com.google.protobuf.CodedOutputStream 1840 .computeMessageSize(6, service_.get(i)); 1841 } 1842 for (int i = 0; i < extension_.size(); i++) { 1843 size += com.google.protobuf.CodedOutputStream 1844 .computeMessageSize(7, extension_.get(i)); 1845 } 1846 if (((bitField0_ & 0x00000004) == 0x00000004)) { 1847 size += com.google.protobuf.CodedOutputStream 1848 .computeMessageSize(8, options_); 1849 } 1850 if (((bitField0_ & 0x00000008) == 0x00000008)) { 1851 size += com.google.protobuf.CodedOutputStream 1852 .computeMessageSize(9, sourceCodeInfo_); 1853 } 1854 { 1855 int dataSize = 0; 1856 for (int i = 0; i < publicDependency_.size(); i++) { 1857 dataSize += com.google.protobuf.CodedOutputStream 1858 .computeInt32SizeNoTag(publicDependency_.get(i)); 1859 } 1860 size += dataSize; 1861 size += 1 * getPublicDependencyList().size(); 1862 } 1863 { 1864 int dataSize = 0; 1865 for (int i = 0; i < weakDependency_.size(); i++) { 1866 dataSize += com.google.protobuf.CodedOutputStream 1867 .computeInt32SizeNoTag(weakDependency_.get(i)); 1868 } 1869 size += dataSize; 1870 size += 1 * getWeakDependencyList().size(); 1871 } 1872 size += getUnknownFields().getSerializedSize(); 1873 memoizedSerializedSize = size; 1874 return size; 1875 } 1876 1877 private static final long serialVersionUID = 0L; 1878 @java.lang.Override 1879 protected java.lang.Object writeReplace() 1880 throws java.io.ObjectStreamException { 1881 return super.writeReplace(); 1882 } 1883 1884 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 1885 com.google.protobuf.ByteString data) 1886 throws com.google.protobuf.InvalidProtocolBufferException { 1887 return PARSER.parseFrom(data); 1888 } 1889 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 1890 com.google.protobuf.ByteString data, 1891 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1892 throws com.google.protobuf.InvalidProtocolBufferException { 1893 return PARSER.parseFrom(data, extensionRegistry); 1894 } 1895 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(byte[] data) 1896 throws com.google.protobuf.InvalidProtocolBufferException { 1897 return PARSER.parseFrom(data); 1898 } 1899 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 1900 byte[] data, 1901 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1902 throws com.google.protobuf.InvalidProtocolBufferException { 1903 return PARSER.parseFrom(data, extensionRegistry); 1904 } 1905 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(java.io.InputStream input) 1906 throws java.io.IOException { 1907 return PARSER.parseFrom(input); 1908 } 1909 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 1910 java.io.InputStream input, 1911 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1912 throws java.io.IOException { 1913 return PARSER.parseFrom(input, extensionRegistry); 1914 } 1915 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom(java.io.InputStream input) 1916 throws java.io.IOException { 1917 return PARSER.parseDelimitedFrom(input); 1918 } 1919 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom( 1920 java.io.InputStream input, 1921 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1922 throws java.io.IOException { 1923 return PARSER.parseDelimitedFrom(input, extensionRegistry); 1924 } 1925 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 1926 com.google.protobuf.CodedInputStream input) 1927 throws java.io.IOException { 1928 return PARSER.parseFrom(input); 1929 } 1930 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 1931 com.google.protobuf.CodedInputStream input, 1932 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1933 throws java.io.IOException { 1934 return PARSER.parseFrom(input, extensionRegistry); 1935 } 1936 1937 public static Builder newBuilder() { return Builder.create(); } 1938 public Builder newBuilderForType() { return newBuilder(); } 1939 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileDescriptorProto prototype) { 1940 return newBuilder().mergeFrom(prototype); 1941 } 1942 public Builder toBuilder() { return newBuilder(this); } 1943 1944 @java.lang.Override 1945 protected Builder newBuilderForType( 1946 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 1947 Builder builder = new Builder(parent); 1948 return builder; 1949 } 1950 /** 1951 * Protobuf type {@code google.protobuf.FileDescriptorProto} 1952 * 1953 * <pre> 1954 * Describes a complete .proto file. 1955 * </pre> 1956 */ 1957 public static final class Builder extends 1958 com.google.protobuf.GeneratedMessage.Builder<Builder> 1959 implements com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder { 1960 public static final com.google.protobuf.Descriptors.Descriptor 1961 getDescriptor() { 1962 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor; 1963 } 1964 1965 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1966 internalGetFieldAccessorTable() { 1967 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable 1968 .ensureFieldAccessorsInitialized( 1969 com.google.protobuf.DescriptorProtos.FileDescriptorProto.class, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder.class); 1970 } 1971 1972 // Construct using com.google.protobuf.DescriptorProtos.FileDescriptorProto.newBuilder() 1973 private Builder() { 1974 maybeForceBuilderInitialization(); 1975 } 1976 1977 private Builder( 1978 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 1979 super(parent); 1980 maybeForceBuilderInitialization(); 1981 } 1982 private void maybeForceBuilderInitialization() { 1983 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 1984 getMessageTypeFieldBuilder(); 1985 getEnumTypeFieldBuilder(); 1986 getServiceFieldBuilder(); 1987 getExtensionFieldBuilder(); 1988 getOptionsFieldBuilder(); 1989 getSourceCodeInfoFieldBuilder(); 1990 } 1991 } 1992 private static Builder create() { 1993 return new Builder(); 1994 } 1995 1996 public Builder clear() { 1997 super.clear(); 1998 name_ = ""; 1999 bitField0_ = (bitField0_ & ~0x00000001); 2000 package_ = ""; 2001 bitField0_ = (bitField0_ & ~0x00000002); 2002 dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2003 bitField0_ = (bitField0_ & ~0x00000004); 2004 publicDependency_ = java.util.Collections.emptyList(); 2005 bitField0_ = (bitField0_ & ~0x00000008); 2006 weakDependency_ = java.util.Collections.emptyList(); 2007 bitField0_ = (bitField0_ & ~0x00000010); 2008 if (messageTypeBuilder_ == null) { 2009 messageType_ = java.util.Collections.emptyList(); 2010 bitField0_ = (bitField0_ & ~0x00000020); 2011 } else { 2012 messageTypeBuilder_.clear(); 2013 } 2014 if (enumTypeBuilder_ == null) { 2015 enumType_ = java.util.Collections.emptyList(); 2016 bitField0_ = (bitField0_ & ~0x00000040); 2017 } else { 2018 enumTypeBuilder_.clear(); 2019 } 2020 if (serviceBuilder_ == null) { 2021 service_ = java.util.Collections.emptyList(); 2022 bitField0_ = (bitField0_ & ~0x00000080); 2023 } else { 2024 serviceBuilder_.clear(); 2025 } 2026 if (extensionBuilder_ == null) { 2027 extension_ = java.util.Collections.emptyList(); 2028 bitField0_ = (bitField0_ & ~0x00000100); 2029 } else { 2030 extensionBuilder_.clear(); 2031 } 2032 if (optionsBuilder_ == null) { 2033 options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); 2034 } else { 2035 optionsBuilder_.clear(); 2036 } 2037 bitField0_ = (bitField0_ & ~0x00000200); 2038 if (sourceCodeInfoBuilder_ == null) { 2039 sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); 2040 } else { 2041 sourceCodeInfoBuilder_.clear(); 2042 } 2043 bitField0_ = (bitField0_ & ~0x00000400); 2044 return this; 2045 } 2046 2047 public Builder clone() { 2048 return create().mergeFrom(buildPartial()); 2049 } 2050 2051 public com.google.protobuf.Descriptors.Descriptor 2052 getDescriptorForType() { 2053 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor; 2054 } 2055 2056 public com.google.protobuf.DescriptorProtos.FileDescriptorProto getDefaultInstanceForType() { 2057 return com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance(); 2058 } 2059 2060 public com.google.protobuf.DescriptorProtos.FileDescriptorProto build() { 2061 com.google.protobuf.DescriptorProtos.FileDescriptorProto result = buildPartial(); 2062 if (!result.isInitialized()) { 2063 throw newUninitializedMessageException(result); 2064 } 2065 return result; 2066 } 2067 2068 public com.google.protobuf.DescriptorProtos.FileDescriptorProto buildPartial() { 2069 com.google.protobuf.DescriptorProtos.FileDescriptorProto result = new com.google.protobuf.DescriptorProtos.FileDescriptorProto(this); 2070 int from_bitField0_ = bitField0_; 2071 int to_bitField0_ = 0; 2072 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 2073 to_bitField0_ |= 0x00000001; 2074 } 2075 result.name_ = name_; 2076 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 2077 to_bitField0_ |= 0x00000002; 2078 } 2079 result.package_ = package_; 2080 if (((bitField0_ & 0x00000004) == 0x00000004)) { 2081 dependency_ = new com.google.protobuf.UnmodifiableLazyStringList( 2082 dependency_); 2083 bitField0_ = (bitField0_ & ~0x00000004); 2084 } 2085 result.dependency_ = dependency_; 2086 if (((bitField0_ & 0x00000008) == 0x00000008)) { 2087 publicDependency_ = java.util.Collections.unmodifiableList(publicDependency_); 2088 bitField0_ = (bitField0_ & ~0x00000008); 2089 } 2090 result.publicDependency_ = publicDependency_; 2091 if (((bitField0_ & 0x00000010) == 0x00000010)) { 2092 weakDependency_ = java.util.Collections.unmodifiableList(weakDependency_); 2093 bitField0_ = (bitField0_ & ~0x00000010); 2094 } 2095 result.weakDependency_ = weakDependency_; 2096 if (messageTypeBuilder_ == null) { 2097 if (((bitField0_ & 0x00000020) == 0x00000020)) { 2098 messageType_ = java.util.Collections.unmodifiableList(messageType_); 2099 bitField0_ = (bitField0_ & ~0x00000020); 2100 } 2101 result.messageType_ = messageType_; 2102 } else { 2103 result.messageType_ = messageTypeBuilder_.build(); 2104 } 2105 if (enumTypeBuilder_ == null) { 2106 if (((bitField0_ & 0x00000040) == 0x00000040)) { 2107 enumType_ = java.util.Collections.unmodifiableList(enumType_); 2108 bitField0_ = (bitField0_ & ~0x00000040); 2109 } 2110 result.enumType_ = enumType_; 2111 } else { 2112 result.enumType_ = enumTypeBuilder_.build(); 2113 } 2114 if (serviceBuilder_ == null) { 2115 if (((bitField0_ & 0x00000080) == 0x00000080)) { 2116 service_ = java.util.Collections.unmodifiableList(service_); 2117 bitField0_ = (bitField0_ & ~0x00000080); 2118 } 2119 result.service_ = service_; 2120 } else { 2121 result.service_ = serviceBuilder_.build(); 2122 } 2123 if (extensionBuilder_ == null) { 2124 if (((bitField0_ & 0x00000100) == 0x00000100)) { 2125 extension_ = java.util.Collections.unmodifiableList(extension_); 2126 bitField0_ = (bitField0_ & ~0x00000100); 2127 } 2128 result.extension_ = extension_; 2129 } else { 2130 result.extension_ = extensionBuilder_.build(); 2131 } 2132 if (((from_bitField0_ & 0x00000200) == 0x00000200)) { 2133 to_bitField0_ |= 0x00000004; 2134 } 2135 if (optionsBuilder_ == null) { 2136 result.options_ = options_; 2137 } else { 2138 result.options_ = optionsBuilder_.build(); 2139 } 2140 if (((from_bitField0_ & 0x00000400) == 0x00000400)) { 2141 to_bitField0_ |= 0x00000008; 2142 } 2143 if (sourceCodeInfoBuilder_ == null) { 2144 result.sourceCodeInfo_ = sourceCodeInfo_; 2145 } else { 2146 result.sourceCodeInfo_ = sourceCodeInfoBuilder_.build(); 2147 } 2148 result.bitField0_ = to_bitField0_; 2149 onBuilt(); 2150 return result; 2151 } 2152 2153 public Builder mergeFrom(com.google.protobuf.Message other) { 2154 if (other instanceof com.google.protobuf.DescriptorProtos.FileDescriptorProto) { 2155 return mergeFrom((com.google.protobuf.DescriptorProtos.FileDescriptorProto)other); 2156 } else { 2157 super.mergeFrom(other); 2158 return this; 2159 } 2160 } 2161 2162 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FileDescriptorProto other) { 2163 if (other == com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance()) return this; 2164 if (other.hasName()) { 2165 bitField0_ |= 0x00000001; 2166 name_ = other.name_; 2167 onChanged(); 2168 } 2169 if (other.hasPackage()) { 2170 bitField0_ |= 0x00000002; 2171 package_ = other.package_; 2172 onChanged(); 2173 } 2174 if (!other.dependency_.isEmpty()) { 2175 if (dependency_.isEmpty()) { 2176 dependency_ = other.dependency_; 2177 bitField0_ = (bitField0_ & ~0x00000004); 2178 } else { 2179 ensureDependencyIsMutable(); 2180 dependency_.addAll(other.dependency_); 2181 } 2182 onChanged(); 2183 } 2184 if (!other.publicDependency_.isEmpty()) { 2185 if (publicDependency_.isEmpty()) { 2186 publicDependency_ = other.publicDependency_; 2187 bitField0_ = (bitField0_ & ~0x00000008); 2188 } else { 2189 ensurePublicDependencyIsMutable(); 2190 publicDependency_.addAll(other.publicDependency_); 2191 } 2192 onChanged(); 2193 } 2194 if (!other.weakDependency_.isEmpty()) { 2195 if (weakDependency_.isEmpty()) { 2196 weakDependency_ = other.weakDependency_; 2197 bitField0_ = (bitField0_ & ~0x00000010); 2198 } else { 2199 ensureWeakDependencyIsMutable(); 2200 weakDependency_.addAll(other.weakDependency_); 2201 } 2202 onChanged(); 2203 } 2204 if (messageTypeBuilder_ == null) { 2205 if (!other.messageType_.isEmpty()) { 2206 if (messageType_.isEmpty()) { 2207 messageType_ = other.messageType_; 2208 bitField0_ = (bitField0_ & ~0x00000020); 2209 } else { 2210 ensureMessageTypeIsMutable(); 2211 messageType_.addAll(other.messageType_); 2212 } 2213 onChanged(); 2214 } 2215 } else { 2216 if (!other.messageType_.isEmpty()) { 2217 if (messageTypeBuilder_.isEmpty()) { 2218 messageTypeBuilder_.dispose(); 2219 messageTypeBuilder_ = null; 2220 messageType_ = other.messageType_; 2221 bitField0_ = (bitField0_ & ~0x00000020); 2222 messageTypeBuilder_ = 2223 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 2224 getMessageTypeFieldBuilder() : null; 2225 } else { 2226 messageTypeBuilder_.addAllMessages(other.messageType_); 2227 } 2228 } 2229 } 2230 if (enumTypeBuilder_ == null) { 2231 if (!other.enumType_.isEmpty()) { 2232 if (enumType_.isEmpty()) { 2233 enumType_ = other.enumType_; 2234 bitField0_ = (bitField0_ & ~0x00000040); 2235 } else { 2236 ensureEnumTypeIsMutable(); 2237 enumType_.addAll(other.enumType_); 2238 } 2239 onChanged(); 2240 } 2241 } else { 2242 if (!other.enumType_.isEmpty()) { 2243 if (enumTypeBuilder_.isEmpty()) { 2244 enumTypeBuilder_.dispose(); 2245 enumTypeBuilder_ = null; 2246 enumType_ = other.enumType_; 2247 bitField0_ = (bitField0_ & ~0x00000040); 2248 enumTypeBuilder_ = 2249 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 2250 getEnumTypeFieldBuilder() : null; 2251 } else { 2252 enumTypeBuilder_.addAllMessages(other.enumType_); 2253 } 2254 } 2255 } 2256 if (serviceBuilder_ == null) { 2257 if (!other.service_.isEmpty()) { 2258 if (service_.isEmpty()) { 2259 service_ = other.service_; 2260 bitField0_ = (bitField0_ & ~0x00000080); 2261 } else { 2262 ensureServiceIsMutable(); 2263 service_.addAll(other.service_); 2264 } 2265 onChanged(); 2266 } 2267 } else { 2268 if (!other.service_.isEmpty()) { 2269 if (serviceBuilder_.isEmpty()) { 2270 serviceBuilder_.dispose(); 2271 serviceBuilder_ = null; 2272 service_ = other.service_; 2273 bitField0_ = (bitField0_ & ~0x00000080); 2274 serviceBuilder_ = 2275 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 2276 getServiceFieldBuilder() : null; 2277 } else { 2278 serviceBuilder_.addAllMessages(other.service_); 2279 } 2280 } 2281 } 2282 if (extensionBuilder_ == null) { 2283 if (!other.extension_.isEmpty()) { 2284 if (extension_.isEmpty()) { 2285 extension_ = other.extension_; 2286 bitField0_ = (bitField0_ & ~0x00000100); 2287 } else { 2288 ensureExtensionIsMutable(); 2289 extension_.addAll(other.extension_); 2290 } 2291 onChanged(); 2292 } 2293 } else { 2294 if (!other.extension_.isEmpty()) { 2295 if (extensionBuilder_.isEmpty()) { 2296 extensionBuilder_.dispose(); 2297 extensionBuilder_ = null; 2298 extension_ = other.extension_; 2299 bitField0_ = (bitField0_ & ~0x00000100); 2300 extensionBuilder_ = 2301 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 2302 getExtensionFieldBuilder() : null; 2303 } else { 2304 extensionBuilder_.addAllMessages(other.extension_); 2305 } 2306 } 2307 } 2308 if (other.hasOptions()) { 2309 mergeOptions(other.getOptions()); 2310 } 2311 if (other.hasSourceCodeInfo()) { 2312 mergeSourceCodeInfo(other.getSourceCodeInfo()); 2313 } 2314 this.mergeUnknownFields(other.getUnknownFields()); 2315 return this; 2316 } 2317 2318 public final boolean isInitialized() { 2319 for (int i = 0; i < getMessageTypeCount(); i++) { 2320 if (!getMessageType(i).isInitialized()) { 2321 2322 return false; 2323 } 2324 } 2325 for (int i = 0; i < getEnumTypeCount(); i++) { 2326 if (!getEnumType(i).isInitialized()) { 2327 2328 return false; 2329 } 2330 } 2331 for (int i = 0; i < getServiceCount(); i++) { 2332 if (!getService(i).isInitialized()) { 2333 2334 return false; 2335 } 2336 } 2337 for (int i = 0; i < getExtensionCount(); i++) { 2338 if (!getExtension(i).isInitialized()) { 2339 2340 return false; 2341 } 2342 } 2343 if (hasOptions()) { 2344 if (!getOptions().isInitialized()) { 2345 2346 return false; 2347 } 2348 } 2349 return true; 2350 } 2351 2352 public Builder mergeFrom( 2353 com.google.protobuf.CodedInputStream input, 2354 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2355 throws java.io.IOException { 2356 com.google.protobuf.DescriptorProtos.FileDescriptorProto parsedMessage = null; 2357 try { 2358 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 2359 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2360 parsedMessage = (com.google.protobuf.DescriptorProtos.FileDescriptorProto) e.getUnfinishedMessage(); 2361 throw e; 2362 } finally { 2363 if (parsedMessage != null) { 2364 mergeFrom(parsedMessage); 2365 } 2366 } 2367 return this; 2368 } 1653 2369 private int bitField0_; 1654 2370 1655 2371 // optional string name = 1; 1656 2372 private java.lang.Object name_ = ""; 2373 /** 2374 * <code>optional string name = 1;</code> 2375 * 2376 * <pre> 2377 * file name, relative to root of source tree 2378 * </pre> 2379 */ 1657 2380 public boolean hasName() { 1658 2381 return ((bitField0_ & 0x00000001) == 0x00000001); 1659 2382 } 1660 public String getName() { 2383 /** 2384 * <code>optional string name = 1;</code> 2385 * 2386 * <pre> 2387 * file name, relative to root of source tree 2388 * </pre> 2389 */ 2390 public java.lang.String getName() { 1661 2391 java.lang.Object ref = name_; 1662 if (!(ref instanceof String)) { 1663 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 2392 if (!(ref instanceof java.lang.String)) { 2393 java.lang.String s = ((com.google.protobuf.ByteString) ref) 2394 .toStringUtf8(); 1664 2395 name_ = s; 1665 2396 return s; 1666 2397 } else { 1667 return (String) ref; 1668 } 1669 } 1670 public Builder setName(String value) { 2398 return (java.lang.String) ref; 2399 } 2400 } 2401 /** 2402 * <code>optional string name = 1;</code> 2403 * 2404 * <pre> 2405 * file name, relative to root of source tree 2406 * </pre> 2407 */ 2408 public com.google.protobuf.ByteString 2409 getNameBytes() { 2410 java.lang.Object ref = name_; 2411 if (ref instanceof String) { 2412 com.google.protobuf.ByteString b = 2413 com.google.protobuf.ByteString.copyFromUtf8( 2414 (java.lang.String) ref); 2415 name_ = b; 2416 return b; 2417 } else { 2418 return (com.google.protobuf.ByteString) ref; 2419 } 2420 } 2421 /** 2422 * <code>optional string name = 1;</code> 2423 * 2424 * <pre> 2425 * file name, relative to root of source tree 2426 * </pre> 2427 */ 2428 public Builder setName( 2429 java.lang.String value) { 1671 2430 if (value == null) { 1672 2431 throw new NullPointerException(); … … 1677 2436 return this; 1678 2437 } 2438 /** 2439 * <code>optional string name = 1;</code> 2440 * 2441 * <pre> 2442 * file name, relative to root of source tree 2443 * </pre> 2444 */ 1679 2445 public Builder clearName() { 1680 2446 bitField0_ = (bitField0_ & ~0x00000001); … … 1683 2449 return this; 1684 2450 } 1685 void setName(com.google.protobuf.ByteString value) { 1686 bitField0_ |= 0x00000001; 2451 /** 2452 * <code>optional string name = 1;</code> 2453 * 2454 * <pre> 2455 * file name, relative to root of source tree 2456 * </pre> 2457 */ 2458 public Builder setNameBytes( 2459 com.google.protobuf.ByteString value) { 2460 if (value == null) { 2461 throw new NullPointerException(); 2462 } 2463 bitField0_ |= 0x00000001; 1687 2464 name_ = value; 1688 2465 onChanged(); 1689 } 1690 2466 return this; 2467 } 2468 1691 2469 // optional string package = 2; 1692 2470 private java.lang.Object package_ = ""; 2471 /** 2472 * <code>optional string package = 2;</code> 2473 * 2474 * <pre> 2475 * e.g. "foo", "foo.bar", etc. 2476 * </pre> 2477 */ 1693 2478 public boolean hasPackage() { 1694 2479 return ((bitField0_ & 0x00000002) == 0x00000002); 1695 2480 } 1696 public String getPackage() { 2481 /** 2482 * <code>optional string package = 2;</code> 2483 * 2484 * <pre> 2485 * e.g. "foo", "foo.bar", etc. 2486 * </pre> 2487 */ 2488 public java.lang.String getPackage() { 1697 2489 java.lang.Object ref = package_; 1698 if (!(ref instanceof String)) { 1699 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 2490 if (!(ref instanceof java.lang.String)) { 2491 java.lang.String s = ((com.google.protobuf.ByteString) ref) 2492 .toStringUtf8(); 1700 2493 package_ = s; 1701 2494 return s; 1702 2495 } else { 1703 return (String) ref; 1704 } 1705 } 1706 public Builder setPackage(String value) { 2496 return (java.lang.String) ref; 2497 } 2498 } 2499 /** 2500 * <code>optional string package = 2;</code> 2501 * 2502 * <pre> 2503 * e.g. "foo", "foo.bar", etc. 2504 * </pre> 2505 */ 2506 public com.google.protobuf.ByteString 2507 getPackageBytes() { 2508 java.lang.Object ref = package_; 2509 if (ref instanceof String) { 2510 com.google.protobuf.ByteString b = 2511 com.google.protobuf.ByteString.copyFromUtf8( 2512 (java.lang.String) ref); 2513 package_ = b; 2514 return b; 2515 } else { 2516 return (com.google.protobuf.ByteString) ref; 2517 } 2518 } 2519 /** 2520 * <code>optional string package = 2;</code> 2521 * 2522 * <pre> 2523 * e.g. "foo", "foo.bar", etc. 2524 * </pre> 2525 */ 2526 public Builder setPackage( 2527 java.lang.String value) { 1707 2528 if (value == null) { 1708 2529 throw new NullPointerException(); … … 1713 2534 return this; 1714 2535 } 2536 /** 2537 * <code>optional string package = 2;</code> 2538 * 2539 * <pre> 2540 * e.g. "foo", "foo.bar", etc. 2541 * </pre> 2542 */ 1715 2543 public Builder clearPackage() { 1716 2544 bitField0_ = (bitField0_ & ~0x00000002); … … 1719 2547 return this; 1720 2548 } 1721 void setPackage(com.google.protobuf.ByteString value) { 1722 bitField0_ |= 0x00000002; 2549 /** 2550 * <code>optional string package = 2;</code> 2551 * 2552 * <pre> 2553 * e.g. "foo", "foo.bar", etc. 2554 * </pre> 2555 */ 2556 public Builder setPackageBytes( 2557 com.google.protobuf.ByteString value) { 2558 if (value == null) { 2559 throw new NullPointerException(); 2560 } 2561 bitField0_ |= 0x00000002; 1723 2562 package_ = value; 1724 2563 onChanged(); 1725 } 1726 2564 return this; 2565 } 2566 1727 2567 // repeated string dependency = 3; 1728 2568 private com.google.protobuf.LazyStringList dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; … … 1733 2573 } 1734 2574 } 1735 public java.util.List<String> 2575 /** 2576 * <code>repeated string dependency = 3;</code> 2577 * 2578 * <pre> 2579 * Names of files imported by this file. 2580 * </pre> 2581 */ 2582 public java.util.List<java.lang.String> 1736 2583 getDependencyList() { 1737 2584 return java.util.Collections.unmodifiableList(dependency_); 1738 2585 } 2586 /** 2587 * <code>repeated string dependency = 3;</code> 2588 * 2589 * <pre> 2590 * Names of files imported by this file. 2591 * </pre> 2592 */ 1739 2593 public int getDependencyCount() { 1740 2594 return dependency_.size(); 1741 2595 } 1742 public String getDependency(int index) { 2596 /** 2597 * <code>repeated string dependency = 3;</code> 2598 * 2599 * <pre> 2600 * Names of files imported by this file. 2601 * </pre> 2602 */ 2603 public java.lang.String getDependency(int index) { 1743 2604 return dependency_.get(index); 1744 2605 } 2606 /** 2607 * <code>repeated string dependency = 3;</code> 2608 * 2609 * <pre> 2610 * Names of files imported by this file. 2611 * </pre> 2612 */ 2613 public com.google.protobuf.ByteString 2614 getDependencyBytes(int index) { 2615 return dependency_.getByteString(index); 2616 } 2617 /** 2618 * <code>repeated string dependency = 3;</code> 2619 * 2620 * <pre> 2621 * Names of files imported by this file. 2622 * </pre> 2623 */ 1745 2624 public Builder setDependency( 1746 int index, String value) {2625 int index, java.lang.String value) { 1747 2626 if (value == null) { 1748 2627 throw new NullPointerException(); … … 1753 2632 return this; 1754 2633 } 1755 public Builder addDependency(String value) { 2634 /** 2635 * <code>repeated string dependency = 3;</code> 2636 * 2637 * <pre> 2638 * Names of files imported by this file. 2639 * </pre> 2640 */ 2641 public Builder addDependency( 2642 java.lang.String value) { 1756 2643 if (value == null) { 1757 2644 throw new NullPointerException(); … … 1762 2649 return this; 1763 2650 } 2651 /** 2652 * <code>repeated string dependency = 3;</code> 2653 * 2654 * <pre> 2655 * Names of files imported by this file. 2656 * </pre> 2657 */ 1764 2658 public Builder addAllDependency( 1765 java.lang.Iterable< String> values) {2659 java.lang.Iterable<java.lang.String> values) { 1766 2660 ensureDependencyIsMutable(); 1767 2661 super.addAll(values, dependency_); … … 1769 2663 return this; 1770 2664 } 2665 /** 2666 * <code>repeated string dependency = 3;</code> 2667 * 2668 * <pre> 2669 * Names of files imported by this file. 2670 * </pre> 2671 */ 1771 2672 public Builder clearDependency() { 1772 2673 dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; … … 1775 2676 return this; 1776 2677 } 1777 void addDependency(com.google.protobuf.ByteString value) { 1778 ensureDependencyIsMutable(); 2678 /** 2679 * <code>repeated string dependency = 3;</code> 2680 * 2681 * <pre> 2682 * Names of files imported by this file. 2683 * </pre> 2684 */ 2685 public Builder addDependencyBytes( 2686 com.google.protobuf.ByteString value) { 2687 if (value == null) { 2688 throw new NullPointerException(); 2689 } 2690 ensureDependencyIsMutable(); 1779 2691 dependency_.add(value); 1780 2692 onChanged(); 1781 } 1782 2693 return this; 2694 } 2695 1783 2696 // repeated int32 public_dependency = 10; 1784 private java.util.List<java.lang.Integer> publicDependency_ = java.util.Collections.emptyList(); ;2697 private java.util.List<java.lang.Integer> publicDependency_ = java.util.Collections.emptyList(); 1785 2698 private void ensurePublicDependencyIsMutable() { 1786 2699 if (!((bitField0_ & 0x00000008) == 0x00000008)) { … … 1789 2702 } 1790 2703 } 2704 /** 2705 * <code>repeated int32 public_dependency = 10;</code> 2706 * 2707 * <pre> 2708 * Indexes of the public imported files in the dependency list above. 2709 * </pre> 2710 */ 1791 2711 public java.util.List<java.lang.Integer> 1792 2712 getPublicDependencyList() { 1793 2713 return java.util.Collections.unmodifiableList(publicDependency_); 1794 2714 } 2715 /** 2716 * <code>repeated int32 public_dependency = 10;</code> 2717 * 2718 * <pre> 2719 * Indexes of the public imported files in the dependency list above. 2720 * </pre> 2721 */ 1795 2722 public int getPublicDependencyCount() { 1796 2723 return publicDependency_.size(); 1797 2724 } 2725 /** 2726 * <code>repeated int32 public_dependency = 10;</code> 2727 * 2728 * <pre> 2729 * Indexes of the public imported files in the dependency list above. 2730 * </pre> 2731 */ 1798 2732 public int getPublicDependency(int index) { 1799 2733 return publicDependency_.get(index); 1800 2734 } 2735 /** 2736 * <code>repeated int32 public_dependency = 10;</code> 2737 * 2738 * <pre> 2739 * Indexes of the public imported files in the dependency list above. 2740 * </pre> 2741 */ 1801 2742 public Builder setPublicDependency( 1802 2743 int index, int value) { … … 1806 2747 return this; 1807 2748 } 2749 /** 2750 * <code>repeated int32 public_dependency = 10;</code> 2751 * 2752 * <pre> 2753 * Indexes of the public imported files in the dependency list above. 2754 * </pre> 2755 */ 1808 2756 public Builder addPublicDependency(int value) { 1809 2757 ensurePublicDependencyIsMutable(); … … 1812 2760 return this; 1813 2761 } 2762 /** 2763 * <code>repeated int32 public_dependency = 10;</code> 2764 * 2765 * <pre> 2766 * Indexes of the public imported files in the dependency list above. 2767 * </pre> 2768 */ 1814 2769 public Builder addAllPublicDependency( 1815 2770 java.lang.Iterable<? extends java.lang.Integer> values) { … … 1819 2774 return this; 1820 2775 } 2776 /** 2777 * <code>repeated int32 public_dependency = 10;</code> 2778 * 2779 * <pre> 2780 * Indexes of the public imported files in the dependency list above. 2781 * </pre> 2782 */ 1821 2783 public Builder clearPublicDependency() { 1822 publicDependency_ = java.util.Collections.emptyList(); ;2784 publicDependency_ = java.util.Collections.emptyList(); 1823 2785 bitField0_ = (bitField0_ & ~0x00000008); 1824 2786 onChanged(); 1825 2787 return this; 1826 2788 } 1827 2789 1828 2790 // repeated int32 weak_dependency = 11; 1829 private java.util.List<java.lang.Integer> weakDependency_ = java.util.Collections.emptyList(); ;2791 private java.util.List<java.lang.Integer> weakDependency_ = java.util.Collections.emptyList(); 1830 2792 private void ensureWeakDependencyIsMutable() { 1831 2793 if (!((bitField0_ & 0x00000010) == 0x00000010)) { … … 1834 2796 } 1835 2797 } 2798 /** 2799 * <code>repeated int32 weak_dependency = 11;</code> 2800 * 2801 * <pre> 2802 * Indexes of the weak imported files in the dependency list. 2803 * For Google-internal migration only. Do not use. 2804 * </pre> 2805 */ 1836 2806 public java.util.List<java.lang.Integer> 1837 2807 getWeakDependencyList() { 1838 2808 return java.util.Collections.unmodifiableList(weakDependency_); 1839 2809 } 2810 /** 2811 * <code>repeated int32 weak_dependency = 11;</code> 2812 * 2813 * <pre> 2814 * Indexes of the weak imported files in the dependency list. 2815 * For Google-internal migration only. Do not use. 2816 * </pre> 2817 */ 1840 2818 public int getWeakDependencyCount() { 1841 2819 return weakDependency_.size(); 1842 2820 } 2821 /** 2822 * <code>repeated int32 weak_dependency = 11;</code> 2823 * 2824 * <pre> 2825 * Indexes of the weak imported files in the dependency list. 2826 * For Google-internal migration only. Do not use. 2827 * </pre> 2828 */ 1843 2829 public int getWeakDependency(int index) { 1844 2830 return weakDependency_.get(index); 1845 2831 } 2832 /** 2833 * <code>repeated int32 weak_dependency = 11;</code> 2834 * 2835 * <pre> 2836 * Indexes of the weak imported files in the dependency list. 2837 * For Google-internal migration only. Do not use. 2838 * </pre> 2839 */ 1846 2840 public Builder setWeakDependency( 1847 2841 int index, int value) { … … 1851 2845 return this; 1852 2846 } 2847 /** 2848 * <code>repeated int32 weak_dependency = 11;</code> 2849 * 2850 * <pre> 2851 * Indexes of the weak imported files in the dependency list. 2852 * For Google-internal migration only. Do not use. 2853 * </pre> 2854 */ 1853 2855 public Builder addWeakDependency(int value) { 1854 2856 ensureWeakDependencyIsMutable(); … … 1857 2859 return this; 1858 2860 } 2861 /** 2862 * <code>repeated int32 weak_dependency = 11;</code> 2863 * 2864 * <pre> 2865 * Indexes of the weak imported files in the dependency list. 2866 * For Google-internal migration only. Do not use. 2867 * </pre> 2868 */ 1859 2869 public Builder addAllWeakDependency( 1860 2870 java.lang.Iterable<? extends java.lang.Integer> values) { … … 1864 2874 return this; 1865 2875 } 2876 /** 2877 * <code>repeated int32 weak_dependency = 11;</code> 2878 * 2879 * <pre> 2880 * Indexes of the weak imported files in the dependency list. 2881 * For Google-internal migration only. Do not use. 2882 * </pre> 2883 */ 1866 2884 public Builder clearWeakDependency() { 1867 weakDependency_ = java.util.Collections.emptyList(); ;2885 weakDependency_ = java.util.Collections.emptyList(); 1868 2886 bitField0_ = (bitField0_ & ~0x00000010); 1869 2887 onChanged(); 1870 2888 return this; 1871 2889 } 1872 2890 1873 2891 // repeated .google.protobuf.DescriptorProto message_type = 4; 1874 2892 private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> messageType_ = … … 1880 2898 } 1881 2899 } 1882 2900 1883 2901 private com.google.protobuf.RepeatedFieldBuilder< 1884 2902 com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> messageTypeBuilder_; 1885 2903 2904 /** 2905 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 2906 * 2907 * <pre> 2908 * All top-level definitions in this file. 2909 * </pre> 2910 */ 1886 2911 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getMessageTypeList() { 1887 2912 if (messageTypeBuilder_ == null) { … … 1891 2916 } 1892 2917 } 2918 /** 2919 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 2920 * 2921 * <pre> 2922 * All top-level definitions in this file. 2923 * </pre> 2924 */ 1893 2925 public int getMessageTypeCount() { 1894 2926 if (messageTypeBuilder_ == null) { … … 1898 2930 } 1899 2931 } 2932 /** 2933 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 2934 * 2935 * <pre> 2936 * All top-level definitions in this file. 2937 * </pre> 2938 */ 1900 2939 public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) { 1901 2940 if (messageTypeBuilder_ == null) { … … 1905 2944 } 1906 2945 } 2946 /** 2947 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 2948 * 2949 * <pre> 2950 * All top-level definitions in this file. 2951 * </pre> 2952 */ 1907 2953 public Builder setMessageType( 1908 2954 int index, com.google.protobuf.DescriptorProtos.DescriptorProto value) { … … 1919 2965 return this; 1920 2966 } 2967 /** 2968 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 2969 * 2970 * <pre> 2971 * All top-level definitions in this file. 2972 * </pre> 2973 */ 1921 2974 public Builder setMessageType( 1922 2975 int index, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { … … 1930 2983 return this; 1931 2984 } 2985 /** 2986 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 2987 * 2988 * <pre> 2989 * All top-level definitions in this file. 2990 * </pre> 2991 */ 1932 2992 public Builder addMessageType(com.google.protobuf.DescriptorProtos.DescriptorProto value) { 1933 2993 if (messageTypeBuilder_ == null) { … … 1943 3003 return this; 1944 3004 } 3005 /** 3006 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3007 * 3008 * <pre> 3009 * All top-level definitions in this file. 3010 * </pre> 3011 */ 1945 3012 public Builder addMessageType( 1946 3013 int index, com.google.protobuf.DescriptorProtos.DescriptorProto value) { … … 1957 3024 return this; 1958 3025 } 3026 /** 3027 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3028 * 3029 * <pre> 3030 * All top-level definitions in this file. 3031 * </pre> 3032 */ 1959 3033 public Builder addMessageType( 1960 3034 com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { … … 1968 3042 return this; 1969 3043 } 3044 /** 3045 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3046 * 3047 * <pre> 3048 * All top-level definitions in this file. 3049 * </pre> 3050 */ 1970 3051 public Builder addMessageType( 1971 3052 int index, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { … … 1979 3060 return this; 1980 3061 } 3062 /** 3063 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3064 * 3065 * <pre> 3066 * All top-level definitions in this file. 3067 * </pre> 3068 */ 1981 3069 public Builder addAllMessageType( 1982 3070 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.DescriptorProto> values) { … … 1990 3078 return this; 1991 3079 } 3080 /** 3081 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3082 * 3083 * <pre> 3084 * All top-level definitions in this file. 3085 * </pre> 3086 */ 1992 3087 public Builder clearMessageType() { 1993 3088 if (messageTypeBuilder_ == null) { … … 2000 3095 return this; 2001 3096 } 3097 /** 3098 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3099 * 3100 * <pre> 3101 * All top-level definitions in this file. 3102 * </pre> 3103 */ 2002 3104 public Builder removeMessageType(int index) { 2003 3105 if (messageTypeBuilder_ == null) { … … 2010 3112 return this; 2011 3113 } 3114 /** 3115 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3116 * 3117 * <pre> 3118 * All top-level definitions in this file. 3119 * </pre> 3120 */ 2012 3121 public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getMessageTypeBuilder( 2013 3122 int index) { 2014 3123 return getMessageTypeFieldBuilder().getBuilder(index); 2015 3124 } 3125 /** 3126 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3127 * 3128 * <pre> 3129 * All top-level definitions in this file. 3130 * </pre> 3131 */ 2016 3132 public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( 2017 3133 int index) { … … 2021 3137 } 2022 3138 } 3139 /** 3140 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3141 * 3142 * <pre> 3143 * All top-level definitions in this file. 3144 * </pre> 3145 */ 2023 3146 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 2024 3147 getMessageTypeOrBuilderList() { … … 2029 3152 } 2030 3153 } 3154 /** 3155 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3156 * 3157 * <pre> 3158 * All top-level definitions in this file. 3159 * </pre> 3160 */ 2031 3161 public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder() { 2032 3162 return getMessageTypeFieldBuilder().addBuilder( 2033 3163 com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()); 2034 3164 } 3165 /** 3166 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3167 * 3168 * <pre> 3169 * All top-level definitions in this file. 3170 * </pre> 3171 */ 2035 3172 public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder( 2036 3173 int index) { … … 2038 3175 index, com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()); 2039 3176 } 3177 /** 3178 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3179 * 3180 * <pre> 3181 * All top-level definitions in this file. 3182 * </pre> 3183 */ 2040 3184 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.Builder> 2041 3185 getMessageTypeBuilderList() { … … 2056 3200 return messageTypeBuilder_; 2057 3201 } 2058 3202 2059 3203 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; 2060 3204 private java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> enumType_ = … … 2066 3210 } 2067 3211 } 2068 3212 2069 3213 private com.google.protobuf.RepeatedFieldBuilder< 2070 3214 com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> enumTypeBuilder_; 2071 3215 3216 /** 3217 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3218 */ 2072 3219 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { 2073 3220 if (enumTypeBuilder_ == null) { … … 2077 3224 } 2078 3225 } 3226 /** 3227 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3228 */ 2079 3229 public int getEnumTypeCount() { 2080 3230 if (enumTypeBuilder_ == null) { … … 2084 3234 } 2085 3235 } 3236 /** 3237 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3238 */ 2086 3239 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { 2087 3240 if (enumTypeBuilder_ == null) { … … 2091 3244 } 2092 3245 } 3246 /** 3247 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3248 */ 2093 3249 public Builder setEnumType( 2094 3250 int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { … … 2105 3261 return this; 2106 3262 } 3263 /** 3264 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3265 */ 2107 3266 public Builder setEnumType( 2108 3267 int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { … … 2116 3275 return this; 2117 3276 } 3277 /** 3278 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3279 */ 2118 3280 public Builder addEnumType(com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { 2119 3281 if (enumTypeBuilder_ == null) { … … 2129 3291 return this; 2130 3292 } 3293 /** 3294 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3295 */ 2131 3296 public Builder addEnumType( 2132 3297 int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { … … 2143 3308 return this; 2144 3309 } 3310 /** 3311 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3312 */ 2145 3313 public Builder addEnumType( 2146 3314 com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { … … 2154 3322 return this; 2155 3323 } 3324 /** 3325 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3326 */ 2156 3327 public Builder addEnumType( 2157 3328 int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { … … 2165 3336 return this; 2166 3337 } 3338 /** 3339 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3340 */ 2167 3341 public Builder addAllEnumType( 2168 3342 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProto> values) { … … 2176 3350 return this; 2177 3351 } 3352 /** 3353 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3354 */ 2178 3355 public Builder clearEnumType() { 2179 3356 if (enumTypeBuilder_ == null) { … … 2186 3363 return this; 2187 3364 } 3365 /** 3366 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3367 */ 2188 3368 public Builder removeEnumType(int index) { 2189 3369 if (enumTypeBuilder_ == null) { … … 2196 3376 return this; 2197 3377 } 3378 /** 3379 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3380 */ 2198 3381 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder( 2199 3382 int index) { 2200 3383 return getEnumTypeFieldBuilder().getBuilder(index); 2201 3384 } 3385 /** 3386 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3387 */ 2202 3388 public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( 2203 3389 int index) { … … 2207 3393 } 2208 3394 } 3395 /** 3396 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3397 */ 2209 3398 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 2210 3399 getEnumTypeOrBuilderList() { … … 2215 3404 } 2216 3405 } 3406 /** 3407 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3408 */ 2217 3409 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder() { 2218 3410 return getEnumTypeFieldBuilder().addBuilder( 2219 3411 com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); 2220 3412 } 3413 /** 3414 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3415 */ 2221 3416 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder( 2222 3417 int index) { … … 2224 3419 index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); 2225 3420 } 3421 /** 3422 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3423 */ 2226 3424 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder> 2227 3425 getEnumTypeBuilderList() { … … 2242 3440 return enumTypeBuilder_; 2243 3441 } 2244 3442 2245 3443 // repeated .google.protobuf.ServiceDescriptorProto service = 6; 2246 3444 private java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> service_ = … … 2252 3450 } 2253 3451 } 2254 3452 2255 3453 private com.google.protobuf.RepeatedFieldBuilder< 2256 3454 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> serviceBuilder_; 2257 3455 3456 /** 3457 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3458 */ 2258 3459 public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> getServiceList() { 2259 3460 if (serviceBuilder_ == null) { … … 2263 3464 } 2264 3465 } 3466 /** 3467 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3468 */ 2265 3469 public int getServiceCount() { 2266 3470 if (serviceBuilder_ == null) { … … 2270 3474 } 2271 3475 } 3476 /** 3477 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3478 */ 2272 3479 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) { 2273 3480 if (serviceBuilder_ == null) { … … 2277 3484 } 2278 3485 } 3486 /** 3487 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3488 */ 2279 3489 public Builder setService( 2280 3490 int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto value) { … … 2291 3501 return this; 2292 3502 } 3503 /** 3504 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3505 */ 2293 3506 public Builder setService( 2294 3507 int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) { … … 2302 3515 return this; 2303 3516 } 3517 /** 3518 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3519 */ 2304 3520 public Builder addService(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto value) { 2305 3521 if (serviceBuilder_ == null) { … … 2315 3531 return this; 2316 3532 } 3533 /** 3534 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3535 */ 2317 3536 public Builder addService( 2318 3537 int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto value) { … … 2329 3548 return this; 2330 3549 } 3550 /** 3551 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3552 */ 2331 3553 public Builder addService( 2332 3554 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) { … … 2340 3562 return this; 2341 3563 } 3564 /** 3565 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3566 */ 2342 3567 public Builder addService( 2343 3568 int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) { … … 2351 3576 return this; 2352 3577 } 3578 /** 3579 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3580 */ 2353 3581 public Builder addAllService( 2354 3582 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> values) { … … 2362 3590 return this; 2363 3591 } 3592 /** 3593 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3594 */ 2364 3595 public Builder clearService() { 2365 3596 if (serviceBuilder_ == null) { … … 2372 3603 return this; 2373 3604 } 3605 /** 3606 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3607 */ 2374 3608 public Builder removeService(int index) { 2375 3609 if (serviceBuilder_ == null) { … … 2382 3616 return this; 2383 3617 } 3618 /** 3619 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3620 */ 2384 3621 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder getServiceBuilder( 2385 3622 int index) { 2386 3623 return getServiceFieldBuilder().getBuilder(index); 2387 3624 } 3625 /** 3626 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3627 */ 2388 3628 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( 2389 3629 int index) { … … 2393 3633 } 2394 3634 } 3635 /** 3636 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3637 */ 2395 3638 public java.util.List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> 2396 3639 getServiceOrBuilderList() { … … 2401 3644 } 2402 3645 } 3646 /** 3647 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3648 */ 2403 3649 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder() { 2404 3650 return getServiceFieldBuilder().addBuilder( 2405 3651 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.getDefaultInstance()); 2406 3652 } 3653 /** 3654 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3655 */ 2407 3656 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder( 2408 3657 int index) { … … 2410 3659 index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.getDefaultInstance()); 2411 3660 } 3661 /** 3662 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3663 */ 2412 3664 public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder> 2413 3665 getServiceBuilderList() { … … 2428 3680 return serviceBuilder_; 2429 3681 } 2430 3682 2431 3683 // repeated .google.protobuf.FieldDescriptorProto extension = 7; 2432 3684 private java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> extension_ = … … 2438 3690 } 2439 3691 } 2440 3692 2441 3693 private com.google.protobuf.RepeatedFieldBuilder< 2442 3694 com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> extensionBuilder_; 2443 3695 3696 /** 3697 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3698 */ 2444 3699 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { 2445 3700 if (extensionBuilder_ == null) { … … 2449 3704 } 2450 3705 } 3706 /** 3707 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3708 */ 2451 3709 public int getExtensionCount() { 2452 3710 if (extensionBuilder_ == null) { … … 2456 3714 } 2457 3715 } 3716 /** 3717 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3718 */ 2458 3719 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { 2459 3720 if (extensionBuilder_ == null) { … … 2463 3724 } 2464 3725 } 3726 /** 3727 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3728 */ 2465 3729 public Builder setExtension( 2466 3730 int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { … … 2477 3741 return this; 2478 3742 } 3743 /** 3744 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3745 */ 2479 3746 public Builder setExtension( 2480 3747 int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { … … 2488 3755 return this; 2489 3756 } 3757 /** 3758 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3759 */ 2490 3760 public Builder addExtension(com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { 2491 3761 if (extensionBuilder_ == null) { … … 2501 3771 return this; 2502 3772 } 3773 /** 3774 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3775 */ 2503 3776 public Builder addExtension( 2504 3777 int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { … … 2515 3788 return this; 2516 3789 } 3790 /** 3791 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3792 */ 2517 3793 public Builder addExtension( 2518 3794 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { … … 2526 3802 return this; 2527 3803 } 3804 /** 3805 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3806 */ 2528 3807 public Builder addExtension( 2529 3808 int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { … … 2537 3816 return this; 2538 3817 } 3818 /** 3819 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3820 */ 2539 3821 public Builder addAllExtension( 2540 3822 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProto> values) { … … 2548 3830 return this; 2549 3831 } 3832 /** 3833 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3834 */ 2550 3835 public Builder clearExtension() { 2551 3836 if (extensionBuilder_ == null) { … … 2558 3843 return this; 2559 3844 } 3845 /** 3846 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3847 */ 2560 3848 public Builder removeExtension(int index) { 2561 3849 if (extensionBuilder_ == null) { … … 2568 3856 return this; 2569 3857 } 3858 /** 3859 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3860 */ 2570 3861 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder( 2571 3862 int index) { 2572 3863 return getExtensionFieldBuilder().getBuilder(index); 2573 3864 } 3865 /** 3866 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3867 */ 2574 3868 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( 2575 3869 int index) { … … 2579 3873 } 2580 3874 } 3875 /** 3876 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3877 */ 2581 3878 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 2582 3879 getExtensionOrBuilderList() { … … 2587 3884 } 2588 3885 } 3886 /** 3887 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3888 */ 2589 3889 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder() { 2590 3890 return getExtensionFieldBuilder().addBuilder( 2591 3891 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); 2592 3892 } 3893 /** 3894 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3895 */ 2593 3896 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder( 2594 3897 int index) { … … 2596 3899 index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); 2597 3900 } 3901 /** 3902 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3903 */ 2598 3904 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder> 2599 3905 getExtensionBuilderList() { … … 2614 3920 return extensionBuilder_; 2615 3921 } 2616 3922 2617 3923 // optional .google.protobuf.FileOptions options = 8; 2618 3924 private com.google.protobuf.DescriptorProtos.FileOptions options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); 2619 3925 private com.google.protobuf.SingleFieldBuilder< 2620 3926 com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder> optionsBuilder_; 3927 /** 3928 * <code>optional .google.protobuf.FileOptions options = 8;</code> 3929 */ 2621 3930 public boolean hasOptions() { 2622 3931 return ((bitField0_ & 0x00000200) == 0x00000200); 2623 3932 } 3933 /** 3934 * <code>optional .google.protobuf.FileOptions options = 8;</code> 3935 */ 2624 3936 public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { 2625 3937 if (optionsBuilder_ == null) { … … 2629 3941 } 2630 3942 } 3943 /** 3944 * <code>optional .google.protobuf.FileOptions options = 8;</code> 3945 */ 2631 3946 public Builder setOptions(com.google.protobuf.DescriptorProtos.FileOptions value) { 2632 3947 if (optionsBuilder_ == null) { … … 2642 3957 return this; 2643 3958 } 3959 /** 3960 * <code>optional .google.protobuf.FileOptions options = 8;</code> 3961 */ 2644 3962 public Builder setOptions( 2645 3963 com.google.protobuf.DescriptorProtos.FileOptions.Builder builderForValue) { … … 2653 3971 return this; 2654 3972 } 3973 /** 3974 * <code>optional .google.protobuf.FileOptions options = 8;</code> 3975 */ 2655 3976 public Builder mergeOptions(com.google.protobuf.DescriptorProtos.FileOptions value) { 2656 3977 if (optionsBuilder_ == null) { … … 2669 3990 return this; 2670 3991 } 3992 /** 3993 * <code>optional .google.protobuf.FileOptions options = 8;</code> 3994 */ 2671 3995 public Builder clearOptions() { 2672 3996 if (optionsBuilder_ == null) { … … 2679 4003 return this; 2680 4004 } 4005 /** 4006 * <code>optional .google.protobuf.FileOptions options = 8;</code> 4007 */ 2681 4008 public com.google.protobuf.DescriptorProtos.FileOptions.Builder getOptionsBuilder() { 2682 4009 bitField0_ |= 0x00000200; … … 2684 4011 return getOptionsFieldBuilder().getBuilder(); 2685 4012 } 4013 /** 4014 * <code>optional .google.protobuf.FileOptions options = 8;</code> 4015 */ 2686 4016 public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { 2687 4017 if (optionsBuilder_ != null) { … … 2691 4021 } 2692 4022 } 4023 /** 4024 * <code>optional .google.protobuf.FileOptions options = 8;</code> 4025 */ 2693 4026 private com.google.protobuf.SingleFieldBuilder< 2694 4027 com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder> … … 2704 4037 return optionsBuilder_; 2705 4038 } 2706 4039 2707 4040 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; 2708 4041 private com.google.protobuf.DescriptorProtos.SourceCodeInfo sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); 2709 4042 private com.google.protobuf.SingleFieldBuilder< 2710 4043 com.google.protobuf.DescriptorProtos.SourceCodeInfo, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder> sourceCodeInfoBuilder_; 4044 /** 4045 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4046 * 4047 * <pre> 4048 * This field contains optional information about the original source code. 4049 * You may safely remove this entire field whithout harming runtime 4050 * functionality of the descriptors -- the information is needed only by 4051 * development tools. 4052 * </pre> 4053 */ 2711 4054 public boolean hasSourceCodeInfo() { 2712 4055 return ((bitField0_ & 0x00000400) == 0x00000400); 2713 4056 } 4057 /** 4058 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4059 * 4060 * <pre> 4061 * This field contains optional information about the original source code. 4062 * You may safely remove this entire field whithout harming runtime 4063 * functionality of the descriptors -- the information is needed only by 4064 * development tools. 4065 * </pre> 4066 */ 2714 4067 public com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { 2715 4068 if (sourceCodeInfoBuilder_ == null) { … … 2719 4072 } 2720 4073 } 4074 /** 4075 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4076 * 4077 * <pre> 4078 * This field contains optional information about the original source code. 4079 * You may safely remove this entire field whithout harming runtime 4080 * functionality of the descriptors -- the information is needed only by 4081 * development tools. 4082 * </pre> 4083 */ 2721 4084 public Builder setSourceCodeInfo(com.google.protobuf.DescriptorProtos.SourceCodeInfo value) { 2722 4085 if (sourceCodeInfoBuilder_ == null) { … … 2732 4095 return this; 2733 4096 } 4097 /** 4098 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4099 * 4100 * <pre> 4101 * This field contains optional information about the original source code. 4102 * You may safely remove this entire field whithout harming runtime 4103 * functionality of the descriptors -- the information is needed only by 4104 * development tools. 4105 * </pre> 4106 */ 2734 4107 public Builder setSourceCodeInfo( 2735 4108 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder builderForValue) { … … 2743 4116 return this; 2744 4117 } 4118 /** 4119 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4120 * 4121 * <pre> 4122 * This field contains optional information about the original source code. 4123 * You may safely remove this entire field whithout harming runtime 4124 * functionality of the descriptors -- the information is needed only by 4125 * development tools. 4126 * </pre> 4127 */ 2745 4128 public Builder mergeSourceCodeInfo(com.google.protobuf.DescriptorProtos.SourceCodeInfo value) { 2746 4129 if (sourceCodeInfoBuilder_ == null) { … … 2759 4142 return this; 2760 4143 } 4144 /** 4145 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4146 * 4147 * <pre> 4148 * This field contains optional information about the original source code. 4149 * You may safely remove this entire field whithout harming runtime 4150 * functionality of the descriptors -- the information is needed only by 4151 * development tools. 4152 * </pre> 4153 */ 2761 4154 public Builder clearSourceCodeInfo() { 2762 4155 if (sourceCodeInfoBuilder_ == null) { … … 2769 4162 return this; 2770 4163 } 4164 /** 4165 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4166 * 4167 * <pre> 4168 * This field contains optional information about the original source code. 4169 * You may safely remove this entire field whithout harming runtime 4170 * functionality of the descriptors -- the information is needed only by 4171 * development tools. 4172 * </pre> 4173 */ 2771 4174 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder getSourceCodeInfoBuilder() { 2772 4175 bitField0_ |= 0x00000400; … … 2774 4177 return getSourceCodeInfoFieldBuilder().getBuilder(); 2775 4178 } 4179 /** 4180 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4181 * 4182 * <pre> 4183 * This field contains optional information about the original source code. 4184 * You may safely remove this entire field whithout harming runtime 4185 * functionality of the descriptors -- the information is needed only by 4186 * development tools. 4187 * </pre> 4188 */ 2776 4189 public com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder() { 2777 4190 if (sourceCodeInfoBuilder_ != null) { … … 2781 4194 } 2782 4195 } 4196 /** 4197 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4198 * 4199 * <pre> 4200 * This field contains optional information about the original source code. 4201 * You may safely remove this entire field whithout harming runtime 4202 * functionality of the descriptors -- the information is needed only by 4203 * development tools. 4204 * </pre> 4205 */ 2783 4206 private com.google.protobuf.SingleFieldBuilder< 2784 4207 com.google.protobuf.DescriptorProtos.SourceCodeInfo, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder> … … 2794 4217 return sourceCodeInfoBuilder_; 2795 4218 } 2796 4219 2797 4220 // @@protoc_insertion_point(builder_scope:google.protobuf.FileDescriptorProto) 2798 4221 } 2799 4222 2800 4223 static { 2801 4224 defaultInstance = new FileDescriptorProto(true); 2802 4225 defaultInstance.initFields(); 2803 4226 } 2804 4227 2805 4228 // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto) 2806 4229 } 2807 4230 2808 4231 public interface DescriptorProtoOrBuilder 2809 4232 extends com.google.protobuf.MessageOrBuilder { 2810 4233 2811 4234 // optional string name = 1; 4235 /** 4236 * <code>optional string name = 1;</code> 4237 */ 2812 4238 boolean hasName(); 2813 String getName(); 2814 4239 /** 4240 * <code>optional string name = 1;</code> 4241 */ 4242 java.lang.String getName(); 4243 /** 4244 * <code>optional string name = 1;</code> 4245 */ 4246 com.google.protobuf.ByteString 4247 getNameBytes(); 4248 2815 4249 // repeated .google.protobuf.FieldDescriptorProto field = 2; 4250 /** 4251 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 4252 */ 2816 4253 java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> 2817 4254 getFieldList(); 4255 /** 4256 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 4257 */ 2818 4258 com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index); 4259 /** 4260 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 4261 */ 2819 4262 int getFieldCount(); 4263 /** 4264 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 4265 */ 2820 4266 java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 2821 4267 getFieldOrBuilderList(); 4268 /** 4269 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 4270 */ 2822 4271 com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( 2823 4272 int index); 2824 4273 2825 4274 // repeated .google.protobuf.FieldDescriptorProto extension = 6; 4275 /** 4276 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 4277 */ 2826 4278 java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> 2827 4279 getExtensionList(); 4280 /** 4281 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 4282 */ 2828 4283 com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index); 4284 /** 4285 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 4286 */ 2829 4287 int getExtensionCount(); 4288 /** 4289 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 4290 */ 2830 4291 java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 2831 4292 getExtensionOrBuilderList(); 4293 /** 4294 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 4295 */ 2832 4296 com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( 2833 4297 int index); 2834 4298 2835 4299 // repeated .google.protobuf.DescriptorProto nested_type = 3; 4300 /** 4301 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 4302 */ 2836 4303 java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> 2837 4304 getNestedTypeList(); 4305 /** 4306 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 4307 */ 2838 4308 com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index); 4309 /** 4310 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 4311 */ 2839 4312 int getNestedTypeCount(); 4313 /** 4314 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 4315 */ 2840 4316 java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 2841 4317 getNestedTypeOrBuilderList(); 4318 /** 4319 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 4320 */ 2842 4321 com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( 2843 4322 int index); 2844 4323 2845 4324 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; 4325 /** 4326 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 4327 */ 2846 4328 java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> 2847 4329 getEnumTypeList(); 4330 /** 4331 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 4332 */ 2848 4333 com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index); 4334 /** 4335 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 4336 */ 2849 4337 int getEnumTypeCount(); 4338 /** 4339 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 4340 */ 2850 4341 java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 2851 4342 getEnumTypeOrBuilderList(); 4343 /** 4344 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 4345 */ 2852 4346 com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( 2853 4347 int index); 2854 4348 2855 4349 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; 4350 /** 4351 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 4352 */ 2856 4353 java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> 2857 4354 getExtensionRangeList(); 4355 /** 4356 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 4357 */ 2858 4358 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index); 4359 /** 4360 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 4361 */ 2859 4362 int getExtensionRangeCount(); 4363 /** 4364 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 4365 */ 2860 4366 java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> 2861 4367 getExtensionRangeOrBuilderList(); 4368 /** 4369 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 4370 */ 2862 4371 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( 2863 4372 int index); 2864 4373 2865 4374 // optional .google.protobuf.MessageOptions options = 7; 4375 /** 4376 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 4377 */ 2866 4378 boolean hasOptions(); 4379 /** 4380 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 4381 */ 2867 4382 com.google.protobuf.DescriptorProtos.MessageOptions getOptions(); 4383 /** 4384 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 4385 */ 2868 4386 com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder(); 2869 4387 } 4388 /** 4389 * Protobuf type {@code google.protobuf.DescriptorProto} 4390 * 4391 * <pre> 4392 * Describes a message type. 4393 * </pre> 4394 */ 2870 4395 public static final class DescriptorProto extends 2871 4396 com.google.protobuf.GeneratedMessage 2872 4397 implements DescriptorProtoOrBuilder { 2873 4398 // Use DescriptorProto.newBuilder() to construct. 2874 private DescriptorProto( Builderbuilder) {4399 private DescriptorProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 2875 4400 super(builder); 2876 } 2877 private DescriptorProto(boolean noInit) {} 2878 4401 this.unknownFields = builder.getUnknownFields(); 4402 } 4403 private DescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 4404 2879 4405 private static final DescriptorProto defaultInstance; 2880 4406 public static DescriptorProto getDefaultInstance() { 2881 4407 return defaultInstance; 2882 4408 } 2883 4409 2884 4410 public DescriptorProto getDefaultInstanceForType() { 2885 4411 return defaultInstance; 2886 4412 } 2887 4413 4414 private final com.google.protobuf.UnknownFieldSet unknownFields; 4415 @java.lang.Override 4416 public final com.google.protobuf.UnknownFieldSet 4417 getUnknownFields() { 4418 return this.unknownFields; 4419 } 4420 private DescriptorProto( 4421 com.google.protobuf.CodedInputStream input, 4422 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4423 throws com.google.protobuf.InvalidProtocolBufferException { 4424 initFields(); 4425 int mutable_bitField0_ = 0; 4426 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 4427 com.google.protobuf.UnknownFieldSet.newBuilder(); 4428 try { 4429 boolean done = false; 4430 while (!done) { 4431 int tag = input.readTag(); 4432 switch (tag) { 4433 case 0: 4434 done = true; 4435 break; 4436 default: { 4437 if (!parseUnknownField(input, unknownFields, 4438 extensionRegistry, tag)) { 4439 done = true; 4440 } 4441 break; 4442 } 4443 case 10: { 4444 bitField0_ |= 0x00000001; 4445 name_ = input.readBytes(); 4446 break; 4447 } 4448 case 18: { 4449 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 4450 field_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>(); 4451 mutable_bitField0_ |= 0x00000002; 4452 } 4453 field_.add(input.readMessage(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); 4454 break; 4455 } 4456 case 26: { 4457 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 4458 nestedType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>(); 4459 mutable_bitField0_ |= 0x00000008; 4460 } 4461 nestedType_.add(input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.PARSER, extensionRegistry)); 4462 break; 4463 } 4464 case 34: { 4465 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 4466 enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>(); 4467 mutable_bitField0_ |= 0x00000010; 4468 } 4469 enumType_.add(input.readMessage(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.PARSER, extensionRegistry)); 4470 break; 4471 } 4472 case 42: { 4473 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 4474 extensionRange_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange>(); 4475 mutable_bitField0_ |= 0x00000020; 4476 } 4477 extensionRange_.add(input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.PARSER, extensionRegistry)); 4478 break; 4479 } 4480 case 50: { 4481 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 4482 extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>(); 4483 mutable_bitField0_ |= 0x00000004; 4484 } 4485 extension_.add(input.readMessage(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); 4486 break; 4487 } 4488 case 58: { 4489 com.google.protobuf.DescriptorProtos.MessageOptions.Builder subBuilder = null; 4490 if (((bitField0_ & 0x00000002) == 0x00000002)) { 4491 subBuilder = options_.toBuilder(); 4492 } 4493 options_ = input.readMessage(com.google.protobuf.DescriptorProtos.MessageOptions.PARSER, extensionRegistry); 4494 if (subBuilder != null) { 4495 subBuilder.mergeFrom(options_); 4496 options_ = subBuilder.buildPartial(); 4497 } 4498 bitField0_ |= 0x00000002; 4499 break; 4500 } 4501 } 4502 } 4503 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4504 throw e.setUnfinishedMessage(this); 4505 } catch (java.io.IOException e) { 4506 throw new com.google.protobuf.InvalidProtocolBufferException( 4507 e.getMessage()).setUnfinishedMessage(this); 4508 } finally { 4509 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 4510 field_ = java.util.Collections.unmodifiableList(field_); 4511 } 4512 if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 4513 nestedType_ = java.util.Collections.unmodifiableList(nestedType_); 4514 } 4515 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 4516 enumType_ = java.util.Collections.unmodifiableList(enumType_); 4517 } 4518 if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 4519 extensionRange_ = java.util.Collections.unmodifiableList(extensionRange_); 4520 } 4521 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 4522 extension_ = java.util.Collections.unmodifiableList(extension_); 4523 } 4524 this.unknownFields = unknownFields.build(); 4525 makeExtensionsImmutable(); 4526 } 4527 } 2888 4528 public static final com.google.protobuf.Descriptors.Descriptor 2889 4529 getDescriptor() { 2890 4530 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_descriptor; 2891 4531 } 2892 4532 2893 4533 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 2894 4534 internalGetFieldAccessorTable() { 2895 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_fieldAccessorTable; 2896 } 2897 4535 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_fieldAccessorTable 4536 .ensureFieldAccessorsInitialized( 4537 com.google.protobuf.DescriptorProtos.DescriptorProto.class, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder.class); 4538 } 4539 4540 public static com.google.protobuf.Parser<DescriptorProto> PARSER = 4541 new com.google.protobuf.AbstractParser<DescriptorProto>() { 4542 public DescriptorProto parsePartialFrom( 4543 com.google.protobuf.CodedInputStream input, 4544 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4545 throws com.google.protobuf.InvalidProtocolBufferException { 4546 return new DescriptorProto(input, extensionRegistry); 4547 } 4548 }; 4549 4550 @java.lang.Override 4551 public com.google.protobuf.Parser<DescriptorProto> getParserForType() { 4552 return PARSER; 4553 } 4554 2898 4555 public interface ExtensionRangeOrBuilder 2899 4556 extends com.google.protobuf.MessageOrBuilder { 2900 4557 2901 4558 // optional int32 start = 1; 4559 /** 4560 * <code>optional int32 start = 1;</code> 4561 */ 2902 4562 boolean hasStart(); 4563 /** 4564 * <code>optional int32 start = 1;</code> 4565 */ 2903 4566 int getStart(); 2904 4567 2905 4568 // optional int32 end = 2; 4569 /** 4570 * <code>optional int32 end = 2;</code> 4571 */ 2906 4572 boolean hasEnd(); 4573 /** 4574 * <code>optional int32 end = 2;</code> 4575 */ 2907 4576 int getEnd(); 2908 4577 } 4578 /** 4579 * Protobuf type {@code google.protobuf.DescriptorProto.ExtensionRange} 4580 */ 2909 4581 public static final class ExtensionRange extends 2910 4582 com.google.protobuf.GeneratedMessage 2911 4583 implements ExtensionRangeOrBuilder { 2912 4584 // Use ExtensionRange.newBuilder() to construct. 2913 private ExtensionRange( Builderbuilder) {4585 private ExtensionRange(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 2914 4586 super(builder); 2915 } 2916 private ExtensionRange(boolean noInit) {} 2917 4587 this.unknownFields = builder.getUnknownFields(); 4588 } 4589 private ExtensionRange(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 4590 2918 4591 private static final ExtensionRange defaultInstance; 2919 4592 public static ExtensionRange getDefaultInstance() { 2920 4593 return defaultInstance; 2921 4594 } 2922 4595 2923 4596 public ExtensionRange getDefaultInstanceForType() { 2924 4597 return defaultInstance; 2925 4598 } 2926 4599 4600 private final com.google.protobuf.UnknownFieldSet unknownFields; 4601 @java.lang.Override 4602 public final com.google.protobuf.UnknownFieldSet 4603 getUnknownFields() { 4604 return this.unknownFields; 4605 } 4606 private ExtensionRange( 4607 com.google.protobuf.CodedInputStream input, 4608 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4609 throws com.google.protobuf.InvalidProtocolBufferException { 4610 initFields(); 4611 int mutable_bitField0_ = 0; 4612 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 4613 com.google.protobuf.UnknownFieldSet.newBuilder(); 4614 try { 4615 boolean done = false; 4616 while (!done) { 4617 int tag = input.readTag(); 4618 switch (tag) { 4619 case 0: 4620 done = true; 4621 break; 4622 default: { 4623 if (!parseUnknownField(input, unknownFields, 4624 extensionRegistry, tag)) { 4625 done = true; 4626 } 4627 break; 4628 } 4629 case 8: { 4630 bitField0_ |= 0x00000001; 4631 start_ = input.readInt32(); 4632 break; 4633 } 4634 case 16: { 4635 bitField0_ |= 0x00000002; 4636 end_ = input.readInt32(); 4637 break; 4638 } 4639 } 4640 } 4641 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4642 throw e.setUnfinishedMessage(this); 4643 } catch (java.io.IOException e) { 4644 throw new com.google.protobuf.InvalidProtocolBufferException( 4645 e.getMessage()).setUnfinishedMessage(this); 4646 } finally { 4647 this.unknownFields = unknownFields.build(); 4648 makeExtensionsImmutable(); 4649 } 4650 } 2927 4651 public static final com.google.protobuf.Descriptors.Descriptor 2928 4652 getDescriptor() { 2929 4653 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; 2930 4654 } 2931 4655 2932 4656 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 2933 4657 internalGetFieldAccessorTable() { 2934 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable; 2935 } 2936 4658 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable 4659 .ensureFieldAccessorsInitialized( 4660 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.class, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder.class); 4661 } 4662 4663 public static com.google.protobuf.Parser<ExtensionRange> PARSER = 4664 new com.google.protobuf.AbstractParser<ExtensionRange>() { 4665 public ExtensionRange parsePartialFrom( 4666 com.google.protobuf.CodedInputStream input, 4667 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4668 throws com.google.protobuf.InvalidProtocolBufferException { 4669 return new ExtensionRange(input, extensionRegistry); 4670 } 4671 }; 4672 4673 @java.lang.Override 4674 public com.google.protobuf.Parser<ExtensionRange> getParserForType() { 4675 return PARSER; 4676 } 4677 2937 4678 private int bitField0_; 2938 4679 // optional int32 start = 1; 2939 4680 public static final int START_FIELD_NUMBER = 1; 2940 4681 private int start_; 4682 /** 4683 * <code>optional int32 start = 1;</code> 4684 */ 2941 4685 public boolean hasStart() { 2942 4686 return ((bitField0_ & 0x00000001) == 0x00000001); 2943 4687 } 4688 /** 4689 * <code>optional int32 start = 1;</code> 4690 */ 2944 4691 public int getStart() { 2945 4692 return start_; 2946 4693 } 2947 4694 2948 4695 // optional int32 end = 2; 2949 4696 public static final int END_FIELD_NUMBER = 2; 2950 4697 private int end_; 4698 /** 4699 * <code>optional int32 end = 2;</code> 4700 */ 2951 4701 public boolean hasEnd() { 2952 4702 return ((bitField0_ & 0x00000002) == 0x00000002); 2953 4703 } 4704 /** 4705 * <code>optional int32 end = 2;</code> 4706 */ 2954 4707 public int getEnd() { 2955 4708 return end_; 2956 4709 } 2957 4710 2958 4711 private void initFields() { 2959 4712 start_ = 0; … … 2964 4717 byte isInitialized = memoizedIsInitialized; 2965 4718 if (isInitialized != -1) return isInitialized == 1; 2966 4719 2967 4720 memoizedIsInitialized = 1; 2968 4721 return true; 2969 4722 } 2970 4723 2971 4724 public void writeTo(com.google.protobuf.CodedOutputStream output) 2972 4725 throws java.io.IOException { … … 2980 4733 getUnknownFields().writeTo(output); 2981 4734 } 2982 4735 2983 4736 private int memoizedSerializedSize = -1; 2984 4737 public int getSerializedSize() { 2985 4738 int size = memoizedSerializedSize; 2986 4739 if (size != -1) return size; 2987 4740 2988 4741 size = 0; 2989 4742 if (((bitField0_ & 0x00000001) == 0x00000001)) { … … 2999 4752 return size; 3000 4753 } 3001 4754 3002 4755 private static final long serialVersionUID = 0L; 3003 4756 @java.lang.Override … … 3006 4759 return super.writeReplace(); 3007 4760 } 3008 4761 3009 4762 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( 3010 4763 com.google.protobuf.ByteString data) 3011 4764 throws com.google.protobuf.InvalidProtocolBufferException { 3012 return newBuilder().mergeFrom(data).buildParsed();4765 return PARSER.parseFrom(data); 3013 4766 } 3014 4767 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( … … 3016 4769 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3017 4770 throws com.google.protobuf.InvalidProtocolBufferException { 3018 return newBuilder().mergeFrom(data, extensionRegistry) 3019 .buildParsed(); 4771 return PARSER.parseFrom(data, extensionRegistry); 3020 4772 } 3021 4773 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom(byte[] data) 3022 4774 throws com.google.protobuf.InvalidProtocolBufferException { 3023 return newBuilder().mergeFrom(data).buildParsed();4775 return PARSER.parseFrom(data); 3024 4776 } 3025 4777 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( … … 3027 4779 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3028 4780 throws com.google.protobuf.InvalidProtocolBufferException { 3029 return newBuilder().mergeFrom(data, extensionRegistry) 3030 .buildParsed(); 4781 return PARSER.parseFrom(data, extensionRegistry); 3031 4782 } 3032 4783 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom(java.io.InputStream input) 3033 4784 throws java.io.IOException { 3034 return newBuilder().mergeFrom(input).buildParsed();4785 return PARSER.parseFrom(input); 3035 4786 } 3036 4787 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( … … 3038 4789 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3039 4790 throws java.io.IOException { 3040 return newBuilder().mergeFrom(input, extensionRegistry) 3041 .buildParsed(); 4791 return PARSER.parseFrom(input, extensionRegistry); 3042 4792 } 3043 4793 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseDelimitedFrom(java.io.InputStream input) 3044 4794 throws java.io.IOException { 3045 Builder builder = newBuilder(); 3046 if (builder.mergeDelimitedFrom(input)) { 3047 return builder.buildParsed(); 3048 } else { 3049 return null; 3050 } 4795 return PARSER.parseDelimitedFrom(input); 3051 4796 } 3052 4797 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseDelimitedFrom( … … 3054 4799 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3055 4800 throws java.io.IOException { 3056 Builder builder = newBuilder(); 3057 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 3058 return builder.buildParsed(); 3059 } else { 3060 return null; 3061 } 4801 return PARSER.parseDelimitedFrom(input, extensionRegistry); 3062 4802 } 3063 4803 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( 3064 4804 com.google.protobuf.CodedInputStream input) 3065 4805 throws java.io.IOException { 3066 return newBuilder().mergeFrom(input).buildParsed();4806 return PARSER.parseFrom(input); 3067 4807 } 3068 4808 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( … … 3070 4810 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3071 4811 throws java.io.IOException { 3072 return newBuilder().mergeFrom(input, extensionRegistry) 3073 .buildParsed(); 3074 } 3075 4812 return PARSER.parseFrom(input, extensionRegistry); 4813 } 4814 3076 4815 public static Builder newBuilder() { return Builder.create(); } 3077 4816 public Builder newBuilderForType() { return newBuilder(); } … … 3080 4819 } 3081 4820 public Builder toBuilder() { return newBuilder(this); } 3082 4821 3083 4822 @java.lang.Override 3084 4823 protected Builder newBuilderForType( … … 3087 4826 return builder; 3088 4827 } 4828 /** 4829 * Protobuf type {@code google.protobuf.DescriptorProto.ExtensionRange} 4830 */ 3089 4831 public static final class Builder extends 3090 4832 com.google.protobuf.GeneratedMessage.Builder<Builder> … … 3094 4836 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; 3095 4837 } 3096 4838 3097 4839 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 3098 4840 internalGetFieldAccessorTable() { 3099 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable; 3100 } 3101 4841 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable 4842 .ensureFieldAccessorsInitialized( 4843 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.class, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder.class); 4844 } 4845 3102 4846 // Construct using com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.newBuilder() 3103 4847 private Builder() { 3104 4848 maybeForceBuilderInitialization(); 3105 4849 } 3106 3107 private Builder(BuilderParent parent) { 4850 4851 private Builder( 4852 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 3108 4853 super(parent); 3109 4854 maybeForceBuilderInitialization(); … … 3116 4861 return new Builder(); 3117 4862 } 3118 4863 3119 4864 public Builder clear() { 3120 4865 super.clear(); … … 3125 4870 return this; 3126 4871 } 3127 4872 3128 4873 public Builder clone() { 3129 4874 return create().mergeFrom(buildPartial()); 3130 4875 } 3131 4876 3132 4877 public com.google.protobuf.Descriptors.Descriptor 3133 4878 getDescriptorForType() { 3134 return com.google.protobuf.DescriptorProtos. DescriptorProto.ExtensionRange.getDescriptor();3135 } 3136 4879 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; 4880 } 4881 3137 4882 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getDefaultInstanceForType() { 3138 4883 return com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance(); 3139 4884 } 3140 4885 3141 4886 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange build() { 3142 4887 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange result = buildPartial(); … … 3146 4891 return result; 3147 4892 } 3148 3149 private com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange buildParsed() 3150 throws com.google.protobuf.InvalidProtocolBufferException { 3151 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange result = buildPartial(); 3152 if (!result.isInitialized()) { 3153 throw newUninitializedMessageException( 3154 result).asInvalidProtocolBufferException(); 3155 } 3156 return result; 3157 } 3158 4893 3159 4894 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange buildPartial() { 3160 4895 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange result = new com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange(this); … … 3173 4908 return result; 3174 4909 } 3175 4910 3176 4911 public Builder mergeFrom(com.google.protobuf.Message other) { 3177 4912 if (other instanceof com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange) { … … 3182 4917 } 3183 4918 } 3184 4919 3185 4920 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange other) { 3186 4921 if (other == com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance()) return this; … … 3194 4929 return this; 3195 4930 } 3196 4931 3197 4932 public final boolean isInitialized() { 3198 4933 return true; 3199 4934 } 3200 4935 3201 4936 public Builder mergeFrom( 3202 4937 com.google.protobuf.CodedInputStream input, 3203 4938 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3204 4939 throws java.io.IOException { 3205 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 3206 com.google.protobuf.UnknownFieldSet.newBuilder( 3207 this.getUnknownFields()); 3208 while (true) { 3209 int tag = input.readTag(); 3210 switch (tag) { 3211 case 0: 3212 this.setUnknownFields(unknownFields.build()); 3213 onChanged(); 3214 return this; 3215 default: { 3216 if (!parseUnknownField(input, unknownFields, 3217 extensionRegistry, tag)) { 3218 this.setUnknownFields(unknownFields.build()); 3219 onChanged(); 3220 return this; 3221 } 3222 break; 3223 } 3224 case 8: { 3225 bitField0_ |= 0x00000001; 3226 start_ = input.readInt32(); 3227 break; 3228 } 3229 case 16: { 3230 bitField0_ |= 0x00000002; 3231 end_ = input.readInt32(); 3232 break; 3233 } 4940 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parsedMessage = null; 4941 try { 4942 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 4943 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4944 parsedMessage = (com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange) e.getUnfinishedMessage(); 4945 throw e; 4946 } finally { 4947 if (parsedMessage != null) { 4948 mergeFrom(parsedMessage); 3234 4949 } 3235 4950 } 3236 }3237 4951 return this; 4952 } 3238 4953 private int bitField0_; 3239 4954 3240 4955 // optional int32 start = 1; 3241 4956 private int start_ ; 4957 /** 4958 * <code>optional int32 start = 1;</code> 4959 */ 3242 4960 public boolean hasStart() { 3243 4961 return ((bitField0_ & 0x00000001) == 0x00000001); 3244 4962 } 4963 /** 4964 * <code>optional int32 start = 1;</code> 4965 */ 3245 4966 public int getStart() { 3246 4967 return start_; 3247 4968 } 4969 /** 4970 * <code>optional int32 start = 1;</code> 4971 */ 3248 4972 public Builder setStart(int value) { 3249 4973 bitField0_ |= 0x00000001; … … 3252 4976 return this; 3253 4977 } 4978 /** 4979 * <code>optional int32 start = 1;</code> 4980 */ 3254 4981 public Builder clearStart() { 3255 4982 bitField0_ = (bitField0_ & ~0x00000001); … … 3258 4985 return this; 3259 4986 } 3260 4987 3261 4988 // optional int32 end = 2; 3262 4989 private int end_ ; 4990 /** 4991 * <code>optional int32 end = 2;</code> 4992 */ 3263 4993 public boolean hasEnd() { 3264 4994 return ((bitField0_ & 0x00000002) == 0x00000002); 3265 4995 } 4996 /** 4997 * <code>optional int32 end = 2;</code> 4998 */ 3266 4999 public int getEnd() { 3267 5000 return end_; 3268 5001 } 5002 /** 5003 * <code>optional int32 end = 2;</code> 5004 */ 3269 5005 public Builder setEnd(int value) { 3270 5006 bitField0_ |= 0x00000002; … … 3273 5009 return this; 3274 5010 } 5011 /** 5012 * <code>optional int32 end = 2;</code> 5013 */ 3275 5014 public Builder clearEnd() { 3276 5015 bitField0_ = (bitField0_ & ~0x00000002); … … 3279 5018 return this; 3280 5019 } 3281 5020 3282 5021 // @@protoc_insertion_point(builder_scope:google.protobuf.DescriptorProto.ExtensionRange) 3283 5022 } 3284 5023 3285 5024 static { 3286 5025 defaultInstance = new ExtensionRange(true); 3287 5026 defaultInstance.initFields(); 3288 5027 } 3289 5028 3290 5029 // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange) 3291 5030 } 3292 5031 3293 5032 private int bitField0_; 3294 5033 // optional string name = 1; 3295 5034 public static final int NAME_FIELD_NUMBER = 1; 3296 5035 private java.lang.Object name_; 5036 /** 5037 * <code>optional string name = 1;</code> 5038 */ 3297 5039 public boolean hasName() { 3298 5040 return ((bitField0_ & 0x00000001) == 0x00000001); 3299 5041 } 3300 public String getName() { 5042 /** 5043 * <code>optional string name = 1;</code> 5044 */ 5045 public java.lang.String getName() { 3301 5046 java.lang.Object ref = name_; 3302 if (ref instanceof String) {3303 return ( String) ref;5047 if (ref instanceof java.lang.String) { 5048 return (java.lang.String) ref; 3304 5049 } else { 3305 5050 com.google.protobuf.ByteString bs = 3306 5051 (com.google.protobuf.ByteString) ref; 3307 String s = bs.toStringUtf8();3308 if ( com.google.protobuf.Internal.isValidUtf8(bs)) {5052 java.lang.String s = bs.toStringUtf8(); 5053 if (bs.isValidUtf8()) { 3309 5054 name_ = s; 3310 5055 } … … 3312 5057 } 3313 5058 } 3314 private com.google.protobuf.ByteString getNameBytes() { 5059 /** 5060 * <code>optional string name = 1;</code> 5061 */ 5062 public com.google.protobuf.ByteString 5063 getNameBytes() { 3315 5064 java.lang.Object ref = name_; 3316 if (ref instanceof String) {5065 if (ref instanceof java.lang.String) { 3317 5066 com.google.protobuf.ByteString b = 3318 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 5067 com.google.protobuf.ByteString.copyFromUtf8( 5068 (java.lang.String) ref); 3319 5069 name_ = b; 3320 5070 return b; … … 3323 5073 } 3324 5074 } 3325 5075 3326 5076 // repeated .google.protobuf.FieldDescriptorProto field = 2; 3327 5077 public static final int FIELD_FIELD_NUMBER = 2; 3328 5078 private java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> field_; 5079 /** 5080 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5081 */ 3329 5082 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getFieldList() { 3330 5083 return field_; 3331 5084 } 5085 /** 5086 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5087 */ 3332 5088 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 3333 5089 getFieldOrBuilderList() { 3334 5090 return field_; 3335 5091 } 5092 /** 5093 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5094 */ 3336 5095 public int getFieldCount() { 3337 5096 return field_.size(); 3338 5097 } 5098 /** 5099 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5100 */ 3339 5101 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index) { 3340 5102 return field_.get(index); 3341 5103 } 5104 /** 5105 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5106 */ 3342 5107 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( 3343 5108 int index) { 3344 5109 return field_.get(index); 3345 5110 } 3346 5111 3347 5112 // repeated .google.protobuf.FieldDescriptorProto extension = 6; 3348 5113 public static final int EXTENSION_FIELD_NUMBER = 6; 3349 5114 private java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> extension_; 5115 /** 5116 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 5117 */ 3350 5118 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { 3351 5119 return extension_; 3352 5120 } 5121 /** 5122 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 5123 */ 3353 5124 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 3354 5125 getExtensionOrBuilderList() { 3355 5126 return extension_; 3356 5127 } 5128 /** 5129 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 5130 */ 3357 5131 public int getExtensionCount() { 3358 5132 return extension_.size(); 3359 5133 } 5134 /** 5135 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 5136 */ 3360 5137 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { 3361 5138 return extension_.get(index); 3362 5139 } 5140 /** 5141 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 5142 */ 3363 5143 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( 3364 5144 int index) { 3365 5145 return extension_.get(index); 3366 5146 } 3367 5147 3368 5148 // repeated .google.protobuf.DescriptorProto nested_type = 3; 3369 5149 public static final int NESTED_TYPE_FIELD_NUMBER = 3; 3370 5150 private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> nestedType_; 5151 /** 5152 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 5153 */ 3371 5154 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getNestedTypeList() { 3372 5155 return nestedType_; 3373 5156 } 5157 /** 5158 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 5159 */ 3374 5160 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 3375 5161 getNestedTypeOrBuilderList() { 3376 5162 return nestedType_; 3377 5163 } 5164 /** 5165 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 5166 */ 3378 5167 public int getNestedTypeCount() { 3379 5168 return nestedType_.size(); 3380 5169 } 5170 /** 5171 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 5172 */ 3381 5173 public com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index) { 3382 5174 return nestedType_.get(index); 3383 5175 } 5176 /** 5177 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 5178 */ 3384 5179 public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( 3385 5180 int index) { 3386 5181 return nestedType_.get(index); 3387 5182 } 3388 5183 3389 5184 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; 3390 5185 public static final int ENUM_TYPE_FIELD_NUMBER = 4; 3391 5186 private java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> enumType_; 5187 /** 5188 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 5189 */ 3392 5190 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { 3393 5191 return enumType_; 3394 5192 } 5193 /** 5194 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 5195 */ 3395 5196 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 3396 5197 getEnumTypeOrBuilderList() { 3397 5198 return enumType_; 3398 5199 } 5200 /** 5201 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 5202 */ 3399 5203 public int getEnumTypeCount() { 3400 5204 return enumType_.size(); 3401 5205 } 5206 /** 5207 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 5208 */ 3402 5209 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { 3403 5210 return enumType_.get(index); 3404 5211 } 5212 /** 5213 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 5214 */ 3405 5215 public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( 3406 5216 int index) { 3407 5217 return enumType_.get(index); 3408 5218 } 3409 5219 3410 5220 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; 3411 5221 public static final int EXTENSION_RANGE_FIELD_NUMBER = 5; 3412 5222 private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> extensionRange_; 5223 /** 5224 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 5225 */ 3413 5226 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> getExtensionRangeList() { 3414 5227 return extensionRange_; 3415 5228 } 5229 /** 5230 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 5231 */ 3416 5232 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> 3417 5233 getExtensionRangeOrBuilderList() { 3418 5234 return extensionRange_; 3419 5235 } 5236 /** 5237 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 5238 */ 3420 5239 public int getExtensionRangeCount() { 3421 5240 return extensionRange_.size(); 3422 5241 } 5242 /** 5243 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 5244 */ 3423 5245 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index) { 3424 5246 return extensionRange_.get(index); 3425 5247 } 5248 /** 5249 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 5250 */ 3426 5251 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( 3427 5252 int index) { 3428 5253 return extensionRange_.get(index); 3429 5254 } 3430 5255 3431 5256 // optional .google.protobuf.MessageOptions options = 7; 3432 5257 public static final int OPTIONS_FIELD_NUMBER = 7; 3433 5258 private com.google.protobuf.DescriptorProtos.MessageOptions options_; 5259 /** 5260 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 5261 */ 3434 5262 public boolean hasOptions() { 3435 5263 return ((bitField0_ & 0x00000002) == 0x00000002); 3436 5264 } 5265 /** 5266 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 5267 */ 3437 5268 public com.google.protobuf.DescriptorProtos.MessageOptions getOptions() { 3438 5269 return options_; 3439 5270 } 5271 /** 5272 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 5273 */ 3440 5274 public com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder() { 3441 5275 return options_; 3442 5276 } 3443 5277 3444 5278 private void initFields() { 3445 5279 name_ = ""; … … 3455 5289 byte isInitialized = memoizedIsInitialized; 3456 5290 if (isInitialized != -1) return isInitialized == 1; 3457 5291 3458 5292 for (int i = 0; i < getFieldCount(); i++) { 3459 5293 if (!getField(i).isInitialized()) { … … 3489 5323 return true; 3490 5324 } 3491 5325 3492 5326 public void writeTo(com.google.protobuf.CodedOutputStream output) 3493 5327 throws java.io.IOException { … … 3516 5350 getUnknownFields().writeTo(output); 3517 5351 } 3518 5352 3519 5353 private int memoizedSerializedSize = -1; 3520 5354 public int getSerializedSize() { 3521 5355 int size = memoizedSerializedSize; 3522 5356 if (size != -1) return size; 3523 5357 3524 5358 size = 0; 3525 5359 if (((bitField0_ & 0x00000001) == 0x00000001)) { … … 3555 5389 return size; 3556 5390 } 3557 5391 3558 5392 private static final long serialVersionUID = 0L; 3559 5393 @java.lang.Override … … 3562 5396 return super.writeReplace(); 3563 5397 } 3564 5398 3565 5399 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( 3566 5400 com.google.protobuf.ByteString data) 3567 5401 throws com.google.protobuf.InvalidProtocolBufferException { 3568 return newBuilder().mergeFrom(data).buildParsed();5402 return PARSER.parseFrom(data); 3569 5403 } 3570 5404 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( … … 3572 5406 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3573 5407 throws com.google.protobuf.InvalidProtocolBufferException { 3574 return newBuilder().mergeFrom(data, extensionRegistry) 3575 .buildParsed(); 5408 return PARSER.parseFrom(data, extensionRegistry); 3576 5409 } 3577 5410 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom(byte[] data) 3578 5411 throws com.google.protobuf.InvalidProtocolBufferException { 3579 return newBuilder().mergeFrom(data).buildParsed();5412 return PARSER.parseFrom(data); 3580 5413 } 3581 5414 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( … … 3583 5416 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3584 5417 throws com.google.protobuf.InvalidProtocolBufferException { 3585 return newBuilder().mergeFrom(data, extensionRegistry) 3586 .buildParsed(); 5418 return PARSER.parseFrom(data, extensionRegistry); 3587 5419 } 3588 5420 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom(java.io.InputStream input) 3589 5421 throws java.io.IOException { 3590 return newBuilder().mergeFrom(input).buildParsed();5422 return PARSER.parseFrom(input); 3591 5423 } 3592 5424 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( … … 3594 5426 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3595 5427 throws java.io.IOException { 3596 return newBuilder().mergeFrom(input, extensionRegistry) 3597 .buildParsed(); 5428 return PARSER.parseFrom(input, extensionRegistry); 3598 5429 } 3599 5430 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseDelimitedFrom(java.io.InputStream input) 3600 5431 throws java.io.IOException { 3601 Builder builder = newBuilder(); 3602 if (builder.mergeDelimitedFrom(input)) { 3603 return builder.buildParsed(); 3604 } else { 3605 return null; 3606 } 5432 return PARSER.parseDelimitedFrom(input); 3607 5433 } 3608 5434 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseDelimitedFrom( … … 3610 5436 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3611 5437 throws java.io.IOException { 3612 Builder builder = newBuilder(); 3613 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 3614 return builder.buildParsed(); 3615 } else { 3616 return null; 3617 } 5438 return PARSER.parseDelimitedFrom(input, extensionRegistry); 3618 5439 } 3619 5440 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( 3620 5441 com.google.protobuf.CodedInputStream input) 3621 5442 throws java.io.IOException { 3622 return newBuilder().mergeFrom(input).buildParsed();5443 return PARSER.parseFrom(input); 3623 5444 } 3624 5445 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( … … 3626 5447 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3627 5448 throws java.io.IOException { 3628 return newBuilder().mergeFrom(input, extensionRegistry) 3629 .buildParsed(); 3630 } 3631 5449 return PARSER.parseFrom(input, extensionRegistry); 5450 } 5451 3632 5452 public static Builder newBuilder() { return Builder.create(); } 3633 5453 public Builder newBuilderForType() { return newBuilder(); } … … 3636 5456 } 3637 5457 public Builder toBuilder() { return newBuilder(this); } 3638 5458 3639 5459 @java.lang.Override 3640 5460 protected Builder newBuilderForType( … … 3643 5463 return builder; 3644 5464 } 5465 /** 5466 * Protobuf type {@code google.protobuf.DescriptorProto} 5467 * 5468 * <pre> 5469 * Describes a message type. 5470 * </pre> 5471 */ 3645 5472 public static final class Builder extends 3646 5473 com.google.protobuf.GeneratedMessage.Builder<Builder> … … 3650 5477 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_descriptor; 3651 5478 } 3652 5479 3653 5480 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 3654 5481 internalGetFieldAccessorTable() { 3655 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_fieldAccessorTable; 3656 } 3657 5482 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_fieldAccessorTable 5483 .ensureFieldAccessorsInitialized( 5484 com.google.protobuf.DescriptorProtos.DescriptorProto.class, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder.class); 5485 } 5486 3658 5487 // Construct using com.google.protobuf.DescriptorProtos.DescriptorProto.newBuilder() 3659 5488 private Builder() { 3660 5489 maybeForceBuilderInitialization(); 3661 5490 } 3662 3663 private Builder(BuilderParent parent) { 5491 5492 private Builder( 5493 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 3664 5494 super(parent); 3665 5495 maybeForceBuilderInitialization(); … … 3678 5508 return new Builder(); 3679 5509 } 3680 5510 3681 5511 public Builder clear() { 3682 5512 super.clear(); … … 3721 5551 return this; 3722 5552 } 3723 5553 3724 5554 public Builder clone() { 3725 5555 return create().mergeFrom(buildPartial()); 3726 5556 } 3727 5557 3728 5558 public com.google.protobuf.Descriptors.Descriptor 3729 5559 getDescriptorForType() { 3730 return com.google.protobuf.DescriptorProtos. DescriptorProto.getDescriptor();3731 } 3732 5560 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_descriptor; 5561 } 5562 3733 5563 public com.google.protobuf.DescriptorProtos.DescriptorProto getDefaultInstanceForType() { 3734 5564 return com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance(); 3735 5565 } 3736 5566 3737 5567 public com.google.protobuf.DescriptorProtos.DescriptorProto build() { 3738 5568 com.google.protobuf.DescriptorProtos.DescriptorProto result = buildPartial(); … … 3742 5572 return result; 3743 5573 } 3744 3745 private com.google.protobuf.DescriptorProtos.DescriptorProto buildParsed() 3746 throws com.google.protobuf.InvalidProtocolBufferException { 3747 com.google.protobuf.DescriptorProtos.DescriptorProto result = buildPartial(); 3748 if (!result.isInitialized()) { 3749 throw newUninitializedMessageException( 3750 result).asInvalidProtocolBufferException(); 3751 } 3752 return result; 3753 } 3754 5574 3755 5575 public com.google.protobuf.DescriptorProtos.DescriptorProto buildPartial() { 3756 5576 com.google.protobuf.DescriptorProtos.DescriptorProto result = new com.google.protobuf.DescriptorProtos.DescriptorProto(this); … … 3818 5638 return result; 3819 5639 } 3820 5640 3821 5641 public Builder mergeFrom(com.google.protobuf.Message other) { 3822 5642 if (other instanceof com.google.protobuf.DescriptorProtos.DescriptorProto) { … … 3827 5647 } 3828 5648 } 3829 5649 3830 5650 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.DescriptorProto other) { 3831 5651 if (other == com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()) return this; 3832 5652 if (other.hasName()) { 3833 setName(other.getName()); 5653 bitField0_ |= 0x00000001; 5654 name_ = other.name_; 5655 onChanged(); 3834 5656 } 3835 5657 if (fieldBuilder_ == null) { … … 3969 5791 return this; 3970 5792 } 3971 5793 3972 5794 public final boolean isInitialized() { 3973 5795 for (int i = 0; i < getFieldCount(); i++) { … … 4003 5825 return true; 4004 5826 } 4005 5827 4006 5828 public Builder mergeFrom( 4007 5829 com.google.protobuf.CodedInputStream input, 4008 5830 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4009 5831 throws java.io.IOException { 4010 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 4011 com.google.protobuf.UnknownFieldSet.newBuilder( 4012 this.getUnknownFields()); 4013 while (true) { 4014 int tag = input.readTag(); 4015 switch (tag) { 4016 case 0: 4017 this.setUnknownFields(unknownFields.build()); 4018 onChanged(); 4019 return this; 4020 default: { 4021 if (!parseUnknownField(input, unknownFields, 4022 extensionRegistry, tag)) { 4023 this.setUnknownFields(unknownFields.build()); 4024 onChanged(); 4025 return this; 4026 } 4027 break; 4028 } 4029 case 10: { 4030 bitField0_ |= 0x00000001; 4031 name_ = input.readBytes(); 4032 break; 4033 } 4034 case 18: { 4035 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.newBuilder(); 4036 input.readMessage(subBuilder, extensionRegistry); 4037 addField(subBuilder.buildPartial()); 4038 break; 4039 } 4040 case 26: { 4041 com.google.protobuf.DescriptorProtos.DescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.DescriptorProto.newBuilder(); 4042 input.readMessage(subBuilder, extensionRegistry); 4043 addNestedType(subBuilder.buildPartial()); 4044 break; 4045 } 4046 case 34: { 4047 com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.EnumDescriptorProto.newBuilder(); 4048 input.readMessage(subBuilder, extensionRegistry); 4049 addEnumType(subBuilder.buildPartial()); 4050 break; 4051 } 4052 case 42: { 4053 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder subBuilder = com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.newBuilder(); 4054 input.readMessage(subBuilder, extensionRegistry); 4055 addExtensionRange(subBuilder.buildPartial()); 4056 break; 4057 } 4058 case 50: { 4059 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.newBuilder(); 4060 input.readMessage(subBuilder, extensionRegistry); 4061 addExtension(subBuilder.buildPartial()); 4062 break; 4063 } 4064 case 58: { 4065 com.google.protobuf.DescriptorProtos.MessageOptions.Builder subBuilder = com.google.protobuf.DescriptorProtos.MessageOptions.newBuilder(); 4066 if (hasOptions()) { 4067 subBuilder.mergeFrom(getOptions()); 4068 } 4069 input.readMessage(subBuilder, extensionRegistry); 4070 setOptions(subBuilder.buildPartial()); 4071 break; 4072 } 5832 com.google.protobuf.DescriptorProtos.DescriptorProto parsedMessage = null; 5833 try { 5834 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 5835 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5836 parsedMessage = (com.google.protobuf.DescriptorProtos.DescriptorProto) e.getUnfinishedMessage(); 5837 throw e; 5838 } finally { 5839 if (parsedMessage != null) { 5840 mergeFrom(parsedMessage); 4073 5841 } 4074 5842 } 4075 }4076 5843 return this; 5844 } 4077 5845 private int bitField0_; 4078 5846 4079 5847 // optional string name = 1; 4080 5848 private java.lang.Object name_ = ""; 5849 /** 5850 * <code>optional string name = 1;</code> 5851 */ 4081 5852 public boolean hasName() { 4082 5853 return ((bitField0_ & 0x00000001) == 0x00000001); 4083 5854 } 4084 public String getName() { 5855 /** 5856 * <code>optional string name = 1;</code> 5857 */ 5858 public java.lang.String getName() { 4085 5859 java.lang.Object ref = name_; 4086 if (!(ref instanceof String)) { 4087 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 5860 if (!(ref instanceof java.lang.String)) { 5861 java.lang.String s = ((com.google.protobuf.ByteString) ref) 5862 .toStringUtf8(); 4088 5863 name_ = s; 4089 5864 return s; 4090 5865 } else { 4091 return (String) ref; 4092 } 4093 } 4094 public Builder setName(String value) { 5866 return (java.lang.String) ref; 5867 } 5868 } 5869 /** 5870 * <code>optional string name = 1;</code> 5871 */ 5872 public com.google.protobuf.ByteString 5873 getNameBytes() { 5874 java.lang.Object ref = name_; 5875 if (ref instanceof String) { 5876 com.google.protobuf.ByteString b = 5877 com.google.protobuf.ByteString.copyFromUtf8( 5878 (java.lang.String) ref); 5879 name_ = b; 5880 return b; 5881 } else { 5882 return (com.google.protobuf.ByteString) ref; 5883 } 5884 } 5885 /** 5886 * <code>optional string name = 1;</code> 5887 */ 5888 public Builder setName( 5889 java.lang.String value) { 4095 5890 if (value == null) { 4096 5891 throw new NullPointerException(); … … 4101 5896 return this; 4102 5897 } 5898 /** 5899 * <code>optional string name = 1;</code> 5900 */ 4103 5901 public Builder clearName() { 4104 5902 bitField0_ = (bitField0_ & ~0x00000001); … … 4107 5905 return this; 4108 5906 } 4109 void setName(com.google.protobuf.ByteString value) { 4110 bitField0_ |= 0x00000001; 5907 /** 5908 * <code>optional string name = 1;</code> 5909 */ 5910 public Builder setNameBytes( 5911 com.google.protobuf.ByteString value) { 5912 if (value == null) { 5913 throw new NullPointerException(); 5914 } 5915 bitField0_ |= 0x00000001; 4111 5916 name_ = value; 4112 5917 onChanged(); 4113 } 4114 5918 return this; 5919 } 5920 4115 5921 // repeated .google.protobuf.FieldDescriptorProto field = 2; 4116 5922 private java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> field_ = … … 4122 5928 } 4123 5929 } 4124 5930 4125 5931 private com.google.protobuf.RepeatedFieldBuilder< 4126 5932 com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> fieldBuilder_; 4127 5933 5934 /** 5935 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5936 */ 4128 5937 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getFieldList() { 4129 5938 if (fieldBuilder_ == null) { … … 4133 5942 } 4134 5943 } 5944 /** 5945 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5946 */ 4135 5947 public int getFieldCount() { 4136 5948 if (fieldBuilder_ == null) { … … 4140 5952 } 4141 5953 } 5954 /** 5955 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5956 */ 4142 5957 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index) { 4143 5958 if (fieldBuilder_ == null) { … … 4147 5962 } 4148 5963 } 5964 /** 5965 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5966 */ 4149 5967 public Builder setField( 4150 5968 int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { … … 4161 5979 return this; 4162 5980 } 5981 /** 5982 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5983 */ 4163 5984 public Builder setField( 4164 5985 int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { … … 4172 5993 return this; 4173 5994 } 5995 /** 5996 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5997 */ 4174 5998 public Builder addField(com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { 4175 5999 if (fieldBuilder_ == null) { … … 4185 6009 return this; 4186 6010 } 6011 /** 6012 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6013 */ 4187 6014 public Builder addField( 4188 6015 int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { … … 4199 6026 return this; 4200 6027 } 6028 /** 6029 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6030 */ 4201 6031 public Builder addField( 4202 6032 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { … … 4210 6040 return this; 4211 6041 } 6042 /** 6043 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6044 */ 4212 6045 public Builder addField( 4213 6046 int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { … … 4221 6054 return this; 4222 6055 } 6056 /** 6057 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6058 */ 4223 6059 public Builder addAllField( 4224 6060 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProto> values) { … … 4232 6068 return this; 4233 6069 } 6070 /** 6071 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6072 */ 4234 6073 public Builder clearField() { 4235 6074 if (fieldBuilder_ == null) { … … 4242 6081 return this; 4243 6082 } 6083 /** 6084 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6085 */ 4244 6086 public Builder removeField(int index) { 4245 6087 if (fieldBuilder_ == null) { … … 4252 6094 return this; 4253 6095 } 6096 /** 6097 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6098 */ 4254 6099 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getFieldBuilder( 4255 6100 int index) { 4256 6101 return getFieldFieldBuilder().getBuilder(index); 4257 6102 } 6103 /** 6104 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6105 */ 4258 6106 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( 4259 6107 int index) { … … 4263 6111 } 4264 6112 } 6113 /** 6114 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6115 */ 4265 6116 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 4266 6117 getFieldOrBuilderList() { … … 4271 6122 } 4272 6123 } 6124 /** 6125 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6126 */ 4273 6127 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addFieldBuilder() { 4274 6128 return getFieldFieldBuilder().addBuilder( 4275 6129 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); 4276 6130 } 6131 /** 6132 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6133 */ 4277 6134 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addFieldBuilder( 4278 6135 int index) { … … 4280 6137 index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); 4281 6138 } 6139 /** 6140 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6141 */ 4282 6142 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder> 4283 6143 getFieldBuilderList() { … … 4298 6158 return fieldBuilder_; 4299 6159 } 4300 6160 4301 6161 // repeated .google.protobuf.FieldDescriptorProto extension = 6; 4302 6162 private java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> extension_ = … … 4308 6168 } 4309 6169 } 4310 6170 4311 6171 private com.google.protobuf.RepeatedFieldBuilder< 4312 6172 com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> extensionBuilder_; 4313 6173 6174 /** 6175 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6176 */ 4314 6177 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { 4315 6178 if (extensionBuilder_ == null) { … … 4319 6182 } 4320 6183 } 6184 /** 6185 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6186 */ 4321 6187 public int getExtensionCount() { 4322 6188 if (extensionBuilder_ == null) { … … 4326 6192 } 4327 6193 } 6194 /** 6195 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6196 */ 4328 6197 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { 4329 6198 if (extensionBuilder_ == null) { … … 4333 6202 } 4334 6203 } 6204 /** 6205 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6206 */ 4335 6207 public Builder setExtension( 4336 6208 int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { … … 4347 6219 return this; 4348 6220 } 6221 /** 6222 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6223 */ 4349 6224 public Builder setExtension( 4350 6225 int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { … … 4358 6233 return this; 4359 6234 } 6235 /** 6236 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6237 */ 4360 6238 public Builder addExtension(com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { 4361 6239 if (extensionBuilder_ == null) { … … 4371 6249 return this; 4372 6250 } 6251 /** 6252 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6253 */ 4373 6254 public Builder addExtension( 4374 6255 int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { … … 4385 6266 return this; 4386 6267 } 6268 /** 6269 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6270 */ 4387 6271 public Builder addExtension( 4388 6272 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { … … 4396 6280 return this; 4397 6281 } 6282 /** 6283 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6284 */ 4398 6285 public Builder addExtension( 4399 6286 int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { … … 4407 6294 return this; 4408 6295 } 6296 /** 6297 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6298 */ 4409 6299 public Builder addAllExtension( 4410 6300 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProto> values) { … … 4418 6308 return this; 4419 6309 } 6310 /** 6311 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6312 */ 4420 6313 public Builder clearExtension() { 4421 6314 if (extensionBuilder_ == null) { … … 4428 6321 return this; 4429 6322 } 6323 /** 6324 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6325 */ 4430 6326 public Builder removeExtension(int index) { 4431 6327 if (extensionBuilder_ == null) { … … 4438 6334 return this; 4439 6335 } 6336 /** 6337 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6338 */ 4440 6339 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder( 4441 6340 int index) { 4442 6341 return getExtensionFieldBuilder().getBuilder(index); 4443 6342 } 6343 /** 6344 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6345 */ 4444 6346 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( 4445 6347 int index) { … … 4449 6351 } 4450 6352 } 6353 /** 6354 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6355 */ 4451 6356 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 4452 6357 getExtensionOrBuilderList() { … … 4457 6362 } 4458 6363 } 6364 /** 6365 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6366 */ 4459 6367 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder() { 4460 6368 return getExtensionFieldBuilder().addBuilder( 4461 6369 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); 4462 6370 } 6371 /** 6372 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6373 */ 4463 6374 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder( 4464 6375 int index) { … … 4466 6377 index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); 4467 6378 } 6379 /** 6380 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6381 */ 4468 6382 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder> 4469 6383 getExtensionBuilderList() { … … 4484 6398 return extensionBuilder_; 4485 6399 } 4486 6400 4487 6401 // repeated .google.protobuf.DescriptorProto nested_type = 3; 4488 6402 private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> nestedType_ = … … 4494 6408 } 4495 6409 } 4496 6410 4497 6411 private com.google.protobuf.RepeatedFieldBuilder< 4498 6412 com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> nestedTypeBuilder_; 4499 6413 6414 /** 6415 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6416 */ 4500 6417 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getNestedTypeList() { 4501 6418 if (nestedTypeBuilder_ == null) { … … 4505 6422 } 4506 6423 } 6424 /** 6425 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6426 */ 4507 6427 public int getNestedTypeCount() { 4508 6428 if (nestedTypeBuilder_ == null) { … … 4512 6432 } 4513 6433 } 6434 /** 6435 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6436 */ 4514 6437 public com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index) { 4515 6438 if (nestedTypeBuilder_ == null) { … … 4519 6442 } 4520 6443 } 6444 /** 6445 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6446 */ 4521 6447 public Builder setNestedType( 4522 6448 int index, com.google.protobuf.DescriptorProtos.DescriptorProto value) { … … 4533 6459 return this; 4534 6460 } 6461 /** 6462 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6463 */ 4535 6464 public Builder setNestedType( 4536 6465 int index, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { … … 4544 6473 return this; 4545 6474 } 6475 /** 6476 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6477 */ 4546 6478 public Builder addNestedType(com.google.protobuf.DescriptorProtos.DescriptorProto value) { 4547 6479 if (nestedTypeBuilder_ == null) { … … 4557 6489 return this; 4558 6490 } 6491 /** 6492 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6493 */ 4559 6494 public Builder addNestedType( 4560 6495 int index, com.google.protobuf.DescriptorProtos.DescriptorProto value) { … … 4571 6506 return this; 4572 6507 } 6508 /** 6509 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6510 */ 4573 6511 public Builder addNestedType( 4574 6512 com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { … … 4582 6520 return this; 4583 6521 } 6522 /** 6523 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6524 */ 4584 6525 public Builder addNestedType( 4585 6526 int index, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { … … 4593 6534 return this; 4594 6535 } 6536 /** 6537 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6538 */ 4595 6539 public Builder addAllNestedType( 4596 6540 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.DescriptorProto> values) { … … 4604 6548 return this; 4605 6549 } 6550 /** 6551 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6552 */ 4606 6553 public Builder clearNestedType() { 4607 6554 if (nestedTypeBuilder_ == null) { … … 4614 6561 return this; 4615 6562 } 6563 /** 6564 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6565 */ 4616 6566 public Builder removeNestedType(int index) { 4617 6567 if (nestedTypeBuilder_ == null) { … … 4624 6574 return this; 4625 6575 } 6576 /** 6577 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6578 */ 4626 6579 public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getNestedTypeBuilder( 4627 6580 int index) { 4628 6581 return getNestedTypeFieldBuilder().getBuilder(index); 4629 6582 } 6583 /** 6584 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6585 */ 4630 6586 public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( 4631 6587 int index) { … … 4635 6591 } 4636 6592 } 6593 /** 6594 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6595 */ 4637 6596 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 4638 6597 getNestedTypeOrBuilderList() { … … 4643 6602 } 4644 6603 } 6604 /** 6605 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6606 */ 4645 6607 public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addNestedTypeBuilder() { 4646 6608 return getNestedTypeFieldBuilder().addBuilder( 4647 6609 com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()); 4648 6610 } 6611 /** 6612 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6613 */ 4649 6614 public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addNestedTypeBuilder( 4650 6615 int index) { … … 4652 6617 index, com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()); 4653 6618 } 6619 /** 6620 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6621 */ 4654 6622 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.Builder> 4655 6623 getNestedTypeBuilderList() { … … 4670 6638 return nestedTypeBuilder_; 4671 6639 } 4672 6640 4673 6641 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; 4674 6642 private java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> enumType_ = … … 4680 6648 } 4681 6649 } 4682 6650 4683 6651 private com.google.protobuf.RepeatedFieldBuilder< 4684 6652 com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> enumTypeBuilder_; 4685 6653 6654 /** 6655 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6656 */ 4686 6657 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { 4687 6658 if (enumTypeBuilder_ == null) { … … 4691 6662 } 4692 6663 } 6664 /** 6665 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6666 */ 4693 6667 public int getEnumTypeCount() { 4694 6668 if (enumTypeBuilder_ == null) { … … 4698 6672 } 4699 6673 } 6674 /** 6675 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6676 */ 4700 6677 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { 4701 6678 if (enumTypeBuilder_ == null) { … … 4705 6682 } 4706 6683 } 6684 /** 6685 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6686 */ 4707 6687 public Builder setEnumType( 4708 6688 int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { … … 4719 6699 return this; 4720 6700 } 6701 /** 6702 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6703 */ 4721 6704 public Builder setEnumType( 4722 6705 int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { … … 4730 6713 return this; 4731 6714 } 6715 /** 6716 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6717 */ 4732 6718 public Builder addEnumType(com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { 4733 6719 if (enumTypeBuilder_ == null) { … … 4743 6729 return this; 4744 6730 } 6731 /** 6732 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6733 */ 4745 6734 public Builder addEnumType( 4746 6735 int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { … … 4757 6746 return this; 4758 6747 } 6748 /** 6749 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6750 */ 4759 6751 public Builder addEnumType( 4760 6752 com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { … … 4768 6760 return this; 4769 6761 } 6762 /** 6763 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6764 */ 4770 6765 public Builder addEnumType( 4771 6766 int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { … … 4779 6774 return this; 4780 6775 } 6776 /** 6777 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6778 */ 4781 6779 public Builder addAllEnumType( 4782 6780 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProto> values) { … … 4790 6788 return this; 4791 6789 } 6790 /** 6791 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6792 */ 4792 6793 public Builder clearEnumType() { 4793 6794 if (enumTypeBuilder_ == null) { … … 4800 6801 return this; 4801 6802 } 6803 /** 6804 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6805 */ 4802 6806 public Builder removeEnumType(int index) { 4803 6807 if (enumTypeBuilder_ == null) { … … 4810 6814 return this; 4811 6815 } 6816 /** 6817 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6818 */ 4812 6819 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder( 4813 6820 int index) { 4814 6821 return getEnumTypeFieldBuilder().getBuilder(index); 4815 6822 } 6823 /** 6824 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6825 */ 4816 6826 public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( 4817 6827 int index) { … … 4821 6831 } 4822 6832 } 6833 /** 6834 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6835 */ 4823 6836 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 4824 6837 getEnumTypeOrBuilderList() { … … 4829 6842 } 4830 6843 } 6844 /** 6845 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6846 */ 4831 6847 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder() { 4832 6848 return getEnumTypeFieldBuilder().addBuilder( 4833 6849 com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); 4834 6850 } 6851 /** 6852 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6853 */ 4835 6854 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder( 4836 6855 int index) { … … 4838 6857 index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); 4839 6858 } 6859 /** 6860 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6861 */ 4840 6862 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder> 4841 6863 getEnumTypeBuilderList() { … … 4856 6878 return enumTypeBuilder_; 4857 6879 } 4858 6880 4859 6881 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; 4860 6882 private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> extensionRange_ = … … 4866 6888 } 4867 6889 } 4868 6890 4869 6891 private com.google.protobuf.RepeatedFieldBuilder< 4870 6892 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> extensionRangeBuilder_; 4871 6893 6894 /** 6895 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 6896 */ 4872 6897 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> getExtensionRangeList() { 4873 6898 if (extensionRangeBuilder_ == null) { … … 4877 6902 } 4878 6903 } 6904 /** 6905 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 6906 */ 4879 6907 public int getExtensionRangeCount() { 4880 6908 if (extensionRangeBuilder_ == null) { … … 4884 6912 } 4885 6913 } 6914 /** 6915 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 6916 */ 4886 6917 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index) { 4887 6918 if (extensionRangeBuilder_ == null) { … … 4891 6922 } 4892 6923 } 6924 /** 6925 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 6926 */ 4893 6927 public Builder setExtensionRange( 4894 6928 int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange value) { … … 4905 6939 return this; 4906 6940 } 6941 /** 6942 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 6943 */ 4907 6944 public Builder setExtensionRange( 4908 6945 int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue) { … … 4916 6953 return this; 4917 6954 } 6955 /** 6956 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 6957 */ 4918 6958 public Builder addExtensionRange(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange value) { 4919 6959 if (extensionRangeBuilder_ == null) { … … 4929 6969 return this; 4930 6970 } 6971 /** 6972 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 6973 */ 4931 6974 public Builder addExtensionRange( 4932 6975 int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange value) { … … 4943 6986 return this; 4944 6987 } 6988 /** 6989 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 6990 */ 4945 6991 public Builder addExtensionRange( 4946 6992 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue) { … … 4954 7000 return this; 4955 7001 } 7002 /** 7003 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7004 */ 4956 7005 public Builder addExtensionRange( 4957 7006 int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue) { … … 4965 7014 return this; 4966 7015 } 7016 /** 7017 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7018 */ 4967 7019 public Builder addAllExtensionRange( 4968 7020 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> values) { … … 4976 7028 return this; 4977 7029 } 7030 /** 7031 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7032 */ 4978 7033 public Builder clearExtensionRange() { 4979 7034 if (extensionRangeBuilder_ == null) { … … 4986 7041 return this; 4987 7042 } 7043 /** 7044 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7045 */ 4988 7046 public Builder removeExtensionRange(int index) { 4989 7047 if (extensionRangeBuilder_ == null) { … … 4996 7054 return this; 4997 7055 } 7056 /** 7057 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7058 */ 4998 7059 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder getExtensionRangeBuilder( 4999 7060 int index) { 5000 7061 return getExtensionRangeFieldBuilder().getBuilder(index); 5001 7062 } 7063 /** 7064 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7065 */ 5002 7066 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( 5003 7067 int index) { … … 5007 7071 } 5008 7072 } 7073 /** 7074 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7075 */ 5009 7076 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> 5010 7077 getExtensionRangeOrBuilderList() { … … 5015 7082 } 5016 7083 } 7084 /** 7085 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7086 */ 5017 7087 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder addExtensionRangeBuilder() { 5018 7088 return getExtensionRangeFieldBuilder().addBuilder( 5019 7089 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance()); 5020 7090 } 7091 /** 7092 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7093 */ 5021 7094 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder addExtensionRangeBuilder( 5022 7095 int index) { … … 5024 7097 index, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance()); 5025 7098 } 7099 /** 7100 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7101 */ 5026 7102 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder> 5027 7103 getExtensionRangeBuilderList() { … … 5042 7118 return extensionRangeBuilder_; 5043 7119 } 5044 7120 5045 7121 // optional .google.protobuf.MessageOptions options = 7; 5046 7122 private com.google.protobuf.DescriptorProtos.MessageOptions options_ = com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance(); 5047 7123 private com.google.protobuf.SingleFieldBuilder< 5048 7124 com.google.protobuf.DescriptorProtos.MessageOptions, com.google.protobuf.DescriptorProtos.MessageOptions.Builder, com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder> optionsBuilder_; 7125 /** 7126 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 7127 */ 5049 7128 public boolean hasOptions() { 5050 7129 return ((bitField0_ & 0x00000040) == 0x00000040); 5051 7130 } 7131 /** 7132 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 7133 */ 5052 7134 public com.google.protobuf.DescriptorProtos.MessageOptions getOptions() { 5053 7135 if (optionsBuilder_ == null) { … … 5057 7139 } 5058 7140 } 7141 /** 7142 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 7143 */ 5059 7144 public Builder setOptions(com.google.protobuf.DescriptorProtos.MessageOptions value) { 5060 7145 if (optionsBuilder_ == null) { … … 5070 7155 return this; 5071 7156 } 7157 /** 7158 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 7159 */ 5072 7160 public Builder setOptions( 5073 7161 com.google.protobuf.DescriptorProtos.MessageOptions.Builder builderForValue) { … … 5081 7169 return this; 5082 7170 } 7171 /** 7172 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 7173 */ 5083 7174 public Builder mergeOptions(com.google.protobuf.DescriptorProtos.MessageOptions value) { 5084 7175 if (optionsBuilder_ == null) { … … 5097 7188 return this; 5098 7189 } 7190 /** 7191 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 7192 */ 5099 7193 public Builder clearOptions() { 5100 7194 if (optionsBuilder_ == null) { … … 5107 7201 return this; 5108 7202 } 7203 /** 7204 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 7205 */ 5109 7206 public com.google.protobuf.DescriptorProtos.MessageOptions.Builder getOptionsBuilder() { 5110 7207 bitField0_ |= 0x00000040; … … 5112 7209 return getOptionsFieldBuilder().getBuilder(); 5113 7210 } 7211 /** 7212 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 7213 */ 5114 7214 public com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder() { 5115 7215 if (optionsBuilder_ != null) { … … 5119 7219 } 5120 7220 } 7221 /** 7222 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 7223 */ 5121 7224 private com.google.protobuf.SingleFieldBuilder< 5122 7225 com.google.protobuf.DescriptorProtos.MessageOptions, com.google.protobuf.DescriptorProtos.MessageOptions.Builder, com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder> … … 5132 7235 return optionsBuilder_; 5133 7236 } 5134 7237 5135 7238 // @@protoc_insertion_point(builder_scope:google.protobuf.DescriptorProto) 5136 7239 } 5137 7240 5138 7241 static { 5139 7242 defaultInstance = new DescriptorProto(true); 5140 7243 defaultInstance.initFields(); 5141 7244 } 5142 7245 5143 7246 // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto) 5144 7247 } 5145 7248 5146 7249 public interface FieldDescriptorProtoOrBuilder 5147 7250 extends com.google.protobuf.MessageOrBuilder { 5148 7251 5149 7252 // optional string name = 1; 7253 /** 7254 * <code>optional string name = 1;</code> 7255 */ 5150 7256 boolean hasName(); 5151 String getName(); 5152 7257 /** 7258 * <code>optional string name = 1;</code> 7259 */ 7260 java.lang.String getName(); 7261 /** 7262 * <code>optional string name = 1;</code> 7263 */ 7264 com.google.protobuf.ByteString 7265 getNameBytes(); 7266 5153 7267 // optional int32 number = 3; 7268 /** 7269 * <code>optional int32 number = 3;</code> 7270 */ 5154 7271 boolean hasNumber(); 7272 /** 7273 * <code>optional int32 number = 3;</code> 7274 */ 5155 7275 int getNumber(); 5156 7276 5157 7277 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; 7278 /** 7279 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 7280 */ 5158 7281 boolean hasLabel(); 7282 /** 7283 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 7284 */ 5159 7285 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel(); 5160 7286 5161 7287 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; 7288 /** 7289 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 7290 * 7291 * <pre> 7292 * If type_name is set, this need not be set. If both this and type_name 7293 * are set, this must be either TYPE_ENUM or TYPE_MESSAGE. 7294 * </pre> 7295 */ 5162 7296 boolean hasType(); 7297 /** 7298 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 7299 * 7300 * <pre> 7301 * If type_name is set, this need not be set. If both this and type_name 7302 * are set, this must be either TYPE_ENUM or TYPE_MESSAGE. 7303 * </pre> 7304 */ 5163 7305 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType(); 5164 7306 5165 7307 // optional string type_name = 6; 7308 /** 7309 * <code>optional string type_name = 6;</code> 7310 * 7311 * <pre> 7312 * For message and enum types, this is the name of the type. If the name 7313 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 7314 * rules are used to find the type (i.e. first the nested types within this 7315 * message are searched, then within the parent, on up to the root 7316 * namespace). 7317 * </pre> 7318 */ 5166 7319 boolean hasTypeName(); 5167 String getTypeName(); 5168 7320 /** 7321 * <code>optional string type_name = 6;</code> 7322 * 7323 * <pre> 7324 * For message and enum types, this is the name of the type. If the name 7325 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 7326 * rules are used to find the type (i.e. first the nested types within this 7327 * message are searched, then within the parent, on up to the root 7328 * namespace). 7329 * </pre> 7330 */ 7331 java.lang.String getTypeName(); 7332 /** 7333 * <code>optional string type_name = 6;</code> 7334 * 7335 * <pre> 7336 * For message and enum types, this is the name of the type. If the name 7337 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 7338 * rules are used to find the type (i.e. first the nested types within this 7339 * message are searched, then within the parent, on up to the root 7340 * namespace). 7341 * </pre> 7342 */ 7343 com.google.protobuf.ByteString 7344 getTypeNameBytes(); 7345 5169 7346 // optional string extendee = 2; 7347 /** 7348 * <code>optional string extendee = 2;</code> 7349 * 7350 * <pre> 7351 * For extensions, this is the name of the type being extended. It is 7352 * resolved in the same manner as type_name. 7353 * </pre> 7354 */ 5170 7355 boolean hasExtendee(); 5171 String getExtendee(); 5172 7356 /** 7357 * <code>optional string extendee = 2;</code> 7358 * 7359 * <pre> 7360 * For extensions, this is the name of the type being extended. It is 7361 * resolved in the same manner as type_name. 7362 * </pre> 7363 */ 7364 java.lang.String getExtendee(); 7365 /** 7366 * <code>optional string extendee = 2;</code> 7367 * 7368 * <pre> 7369 * For extensions, this is the name of the type being extended. It is 7370 * resolved in the same manner as type_name. 7371 * </pre> 7372 */ 7373 com.google.protobuf.ByteString 7374 getExtendeeBytes(); 7375 5173 7376 // optional string default_value = 7; 7377 /** 7378 * <code>optional string default_value = 7;</code> 7379 * 7380 * <pre> 7381 * For numeric types, contains the original text representation of the value. 7382 * For booleans, "true" or "false". 7383 * For strings, contains the default text contents (not escaped in any way). 7384 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 7385 * TODO(kenton): Base-64 encode? 7386 * </pre> 7387 */ 5174 7388 boolean hasDefaultValue(); 5175 String getDefaultValue(); 5176 7389 /** 7390 * <code>optional string default_value = 7;</code> 7391 * 7392 * <pre> 7393 * For numeric types, contains the original text representation of the value. 7394 * For booleans, "true" or "false". 7395 * For strings, contains the default text contents (not escaped in any way). 7396 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 7397 * TODO(kenton): Base-64 encode? 7398 * </pre> 7399 */ 7400 java.lang.String getDefaultValue(); 7401 /** 7402 * <code>optional string default_value = 7;</code> 7403 * 7404 * <pre> 7405 * For numeric types, contains the original text representation of the value. 7406 * For booleans, "true" or "false". 7407 * For strings, contains the default text contents (not escaped in any way). 7408 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 7409 * TODO(kenton): Base-64 encode? 7410 * </pre> 7411 */ 7412 com.google.protobuf.ByteString 7413 getDefaultValueBytes(); 7414 5177 7415 // optional .google.protobuf.FieldOptions options = 8; 7416 /** 7417 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 7418 */ 5178 7419 boolean hasOptions(); 7420 /** 7421 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 7422 */ 5179 7423 com.google.protobuf.DescriptorProtos.FieldOptions getOptions(); 7424 /** 7425 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 7426 */ 5180 7427 com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder(); 5181 7428 } 7429 /** 7430 * Protobuf type {@code google.protobuf.FieldDescriptorProto} 7431 * 7432 * <pre> 7433 * Describes a field within a message. 7434 * </pre> 7435 */ 5182 7436 public static final class FieldDescriptorProto extends 5183 7437 com.google.protobuf.GeneratedMessage 5184 7438 implements FieldDescriptorProtoOrBuilder { 5185 7439 // Use FieldDescriptorProto.newBuilder() to construct. 5186 private FieldDescriptorProto( Builderbuilder) {7440 private FieldDescriptorProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 5187 7441 super(builder); 5188 } 5189 private FieldDescriptorProto(boolean noInit) {} 5190 7442 this.unknownFields = builder.getUnknownFields(); 7443 } 7444 private FieldDescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 7445 5191 7446 private static final FieldDescriptorProto defaultInstance; 5192 7447 public static FieldDescriptorProto getDefaultInstance() { 5193 7448 return defaultInstance; 5194 7449 } 5195 7450 5196 7451 public FieldDescriptorProto getDefaultInstanceForType() { 5197 7452 return defaultInstance; 5198 7453 } 5199 5200 public static final com.google.protobuf.Descriptors.Descriptor 5201 getDescriptor() { 5202 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_descriptor; 5203 } 5204 5205 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 5206 internalGetFieldAccessorTable() { 5207 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_fieldAccessorTable; 5208 } 5209 5210 public enum Type 5211 implements com.google.protobuf.ProtocolMessageEnum { 5212 TYPE_DOUBLE(0, 1), 5213 TYPE_FLOAT(1, 2), 5214 TYPE_INT64(2, 3), 5215 TYPE_UINT64(3, 4), 5216 TYPE_INT32(4, 5), 5217 TYPE_FIXED64(5, 6), 5218 TYPE_FIXED32(6, 7), 5219 TYPE_BOOL(7, 8), 5220 TYPE_STRING(8, 9), 5221 TYPE_GROUP(9, 10), 5222 TYPE_MESSAGE(10, 11), 5223 TYPE_BYTES(11, 12), 5224 TYPE_UINT32(12, 13), 5225 TYPE_ENUM(13, 14), 5226 TYPE_SFIXED32(14, 15), 5227 TYPE_SFIXED64(15, 16), 5228 TYPE_SINT32(16, 17), 5229 TYPE_SINT64(17, 18), 5230 ; 5231 5232 public static final int TYPE_DOUBLE_VALUE = 1; 5233 public static final int TYPE_FLOAT_VALUE = 2; 5234 public static final int TYPE_INT64_VALUE = 3; 5235 public static final int TYPE_UINT64_VALUE = 4; 5236 public static final int TYPE_INT32_VALUE = 5; 5237 public static final int TYPE_FIXED64_VALUE = 6; 5238 public static final int TYPE_FIXED32_VALUE = 7; 5239 public static final int TYPE_BOOL_VALUE = 8; 5240 public static final int TYPE_STRING_VALUE = 9; 5241 public static final int TYPE_GROUP_VALUE = 10; 5242 public static final int TYPE_MESSAGE_VALUE = 11; 5243 public static final int TYPE_BYTES_VALUE = 12; 5244 public static final int TYPE_UINT32_VALUE = 13; 5245 public static final int TYPE_ENUM_VALUE = 14; 5246 public static final int TYPE_SFIXED32_VALUE = 15; 5247 public static final int TYPE_SFIXED64_VALUE = 16; 5248 public static final int TYPE_SINT32_VALUE = 17; 5249 public static final int TYPE_SINT64_VALUE = 18; 5250 5251 5252 public final int getNumber() { return value; } 5253 5254 public static Type valueOf(int value) { 5255 switch (value) { 5256 case 1: return TYPE_DOUBLE; 5257 case 2: return TYPE_FLOAT; 5258 case 3: return TYPE_INT64; 5259 case 4: return TYPE_UINT64; 5260 case 5: return TYPE_INT32; 5261 case 6: return TYPE_FIXED64; 5262 case 7: return TYPE_FIXED32; 5263 case 8: return TYPE_BOOL; 5264 case 9: return TYPE_STRING; 5265 case 10: return TYPE_GROUP; 5266 case 11: return TYPE_MESSAGE; 5267 case 12: return TYPE_BYTES; 5268 case 13: return TYPE_UINT32; 5269 case 14: return TYPE_ENUM; 5270 case 15: return TYPE_SFIXED32; 5271 case 16: return TYPE_SFIXED64; 5272 case 17: return TYPE_SINT32; 5273 case 18: return TYPE_SINT64; 5274 default: return null; 5275 } 5276 } 5277 5278 public static com.google.protobuf.Internal.EnumLiteMap<Type> 5279 internalGetValueMap() { 5280 return internalValueMap; 5281 } 5282 private static com.google.protobuf.Internal.EnumLiteMap<Type> 5283 internalValueMap = 5284 new com.google.protobuf.Internal.EnumLiteMap<Type>() { 5285 public Type findValueByNumber(int number) { 5286 return Type.valueOf(number); 5287 } 5288 }; 5289 5290 public final com.google.protobuf.Descriptors.EnumValueDescriptor 5291 getValueDescriptor() { 5292 return getDescriptor().getValues().get(index); 5293 } 5294 public final com.google.protobuf.Descriptors.EnumDescriptor 5295 getDescriptorForType() { 5296 return getDescriptor(); 5297 } 5298 public static final com.google.protobuf.Descriptors.EnumDescriptor 5299 getDescriptor() { 5300 return com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDescriptor().getEnumTypes().get(0); 5301 } 5302 5303 private static final Type[] VALUES = { 5304 TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT64, TYPE_UINT64, TYPE_INT32, TYPE_FIXED64, TYPE_FIXED32, TYPE_BOOL, TYPE_STRING, TYPE_GROUP, TYPE_MESSAGE, TYPE_BYTES, TYPE_UINT32, TYPE_ENUM, TYPE_SFIXED32, TYPE_SFIXED64, TYPE_SINT32, TYPE_SINT64, 5305 }; 5306 5307 public static Type valueOf( 5308 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 5309 if (desc.getType() != getDescriptor()) { 5310 throw new java.lang.IllegalArgumentException( 5311 "EnumValueDescriptor is not for this type."); 5312 } 5313 return VALUES[desc.getIndex()]; 5314 } 5315 5316 private final int index; 5317 private final int value; 5318 5319 private Type(int index, int value) { 5320 this.index = index; 5321 this.value = value; 5322 } 5323 5324 // @@protoc_insertion_point(enum_scope:google.protobuf.FieldDescriptorProto.Type) 5325 } 5326 5327 public enum Label 5328 implements com.google.protobuf.ProtocolMessageEnum { 5329 LABEL_OPTIONAL(0, 1), 5330 LABEL_REQUIRED(1, 2), 5331 LABEL_REPEATED(2, 3), 5332 ; 5333 5334 public static final int LABEL_OPTIONAL_VALUE = 1; 5335 public static final int LABEL_REQUIRED_VALUE = 2; 5336 public static final int LABEL_REPEATED_VALUE = 3; 5337 5338 5339 public final int getNumber() { return value; } 5340 5341 public static Label valueOf(int value) { 5342 switch (value) { 5343 case 1: return LABEL_OPTIONAL; 5344 case 2: return LABEL_REQUIRED; 5345 case 3: return LABEL_REPEATED; 5346 default: return null; 5347 } 5348 } 5349 5350 public static com.google.protobuf.Internal.EnumLiteMap<Label> 5351 internalGetValueMap() { 5352 return internalValueMap; 5353 } 5354 private static com.google.protobuf.Internal.EnumLiteMap<Label> 5355 internalValueMap = 5356 new com.google.protobuf.Internal.EnumLiteMap<Label>() { 5357 public Label findValueByNumber(int number) { 5358 return Label.valueOf(number); 5359 } 5360 }; 5361 5362 public final com.google.protobuf.Descriptors.EnumValueDescriptor 5363 getValueDescriptor() { 5364 return getDescriptor().getValues().get(index); 5365 } 5366 public final com.google.protobuf.Descriptors.EnumDescriptor 5367 getDescriptorForType() { 5368 return getDescriptor(); 5369 } 5370 public static final com.google.protobuf.Descriptors.EnumDescriptor 5371 getDescriptor() { 5372 return com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDescriptor().getEnumTypes().get(1); 5373 } 5374 5375 private static final Label[] VALUES = { 5376 LABEL_OPTIONAL, LABEL_REQUIRED, LABEL_REPEATED, 5377 }; 5378 5379 public static Label valueOf( 5380 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 5381 if (desc.getType() != getDescriptor()) { 5382 throw new java.lang.IllegalArgumentException( 5383 "EnumValueDescriptor is not for this type."); 5384 } 5385 return VALUES[desc.getIndex()]; 5386 } 5387 5388 private final int index; 5389 private final int value; 5390 5391 private Label(int index, int value) { 5392 this.index = index; 5393 this.value = value; 5394 } 5395 5396 // @@protoc_insertion_point(enum_scope:google.protobuf.FieldDescriptorProto.Label) 5397 } 5398 5399 private int bitField0_; 5400 // optional string name = 1; 5401 public static final int NAME_FIELD_NUMBER = 1; 5402 private java.lang.Object name_; 5403 public boolean hasName() { 5404 return ((bitField0_ & 0x00000001) == 0x00000001); 5405 } 5406 public String getName() { 5407 java.lang.Object ref = name_; 5408 if (ref instanceof String) { 5409 return (String) ref; 5410 } else { 5411 com.google.protobuf.ByteString bs = 5412 (com.google.protobuf.ByteString) ref; 5413 String s = bs.toStringUtf8(); 5414 if (com.google.protobuf.Internal.isValidUtf8(bs)) { 5415 name_ = s; 5416 } 5417 return s; 5418 } 5419 } 5420 private com.google.protobuf.ByteString getNameBytes() { 5421 java.lang.Object ref = name_; 5422 if (ref instanceof String) { 5423 com.google.protobuf.ByteString b = 5424 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 5425 name_ = b; 5426 return b; 5427 } else { 5428 return (com.google.protobuf.ByteString) ref; 5429 } 5430 } 5431 5432 // optional int32 number = 3; 5433 public static final int NUMBER_FIELD_NUMBER = 3; 5434 private int number_; 5435 public boolean hasNumber() { 5436 return ((bitField0_ & 0x00000002) == 0x00000002); 5437 } 5438 public int getNumber() { 5439 return number_; 5440 } 5441 5442 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; 5443 public static final int LABEL_FIELD_NUMBER = 4; 5444 private com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label label_; 5445 public boolean hasLabel() { 5446 return ((bitField0_ & 0x00000004) == 0x00000004); 5447 } 5448 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel() { 5449 return label_; 5450 } 5451 5452 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; 5453 public static final int TYPE_FIELD_NUMBER = 5; 5454 private com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type type_; 5455 public boolean hasType() { 5456 return ((bitField0_ & 0x00000008) == 0x00000008); 5457 } 5458 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType() { 5459 return type_; 5460 } 5461 5462 // optional string type_name = 6; 5463 public static final int TYPE_NAME_FIELD_NUMBER = 6; 5464 private java.lang.Object typeName_; 5465 public boolean hasTypeName() { 5466 return ((bitField0_ & 0x00000010) == 0x00000010); 5467 } 5468 public String getTypeName() { 5469 java.lang.Object ref = typeName_; 5470 if (ref instanceof String) { 5471 return (String) ref; 5472 } else { 5473 com.google.protobuf.ByteString bs = 5474 (com.google.protobuf.ByteString) ref; 5475 String s = bs.toStringUtf8(); 5476 if (com.google.protobuf.Internal.isValidUtf8(bs)) { 5477 typeName_ = s; 5478 } 5479 return s; 5480 } 5481 } 5482 private com.google.protobuf.ByteString getTypeNameBytes() { 5483 java.lang.Object ref = typeName_; 5484 if (ref instanceof String) { 5485 com.google.protobuf.ByteString b = 5486 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 5487 typeName_ = b; 5488 return b; 5489 } else { 5490 return (com.google.protobuf.ByteString) ref; 5491 } 5492 } 5493 5494 // optional string extendee = 2; 5495 public static final int EXTENDEE_FIELD_NUMBER = 2; 5496 private java.lang.Object extendee_; 5497 public boolean hasExtendee() { 5498 return ((bitField0_ & 0x00000020) == 0x00000020); 5499 } 5500 public String getExtendee() { 5501 java.lang.Object ref = extendee_; 5502 if (ref instanceof String) { 5503 return (String) ref; 5504 } else { 5505 com.google.protobuf.ByteString bs = 5506 (com.google.protobuf.ByteString) ref; 5507 String s = bs.toStringUtf8(); 5508 if (com.google.protobuf.Internal.isValidUtf8(bs)) { 5509 extendee_ = s; 5510 } 5511 return s; 5512 } 5513 } 5514 private com.google.protobuf.ByteString getExtendeeBytes() { 5515 java.lang.Object ref = extendee_; 5516 if (ref instanceof String) { 5517 com.google.protobuf.ByteString b = 5518 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 5519 extendee_ = b; 5520 return b; 5521 } else { 5522 return (com.google.protobuf.ByteString) ref; 5523 } 5524 } 5525 5526 // optional string default_value = 7; 5527 public static final int DEFAULT_VALUE_FIELD_NUMBER = 7; 5528 private java.lang.Object defaultValue_; 5529 public boolean hasDefaultValue() { 5530 return ((bitField0_ & 0x00000040) == 0x00000040); 5531 } 5532 public String getDefaultValue() { 5533 java.lang.Object ref = defaultValue_; 5534 if (ref instanceof String) { 5535 return (String) ref; 5536 } else { 5537 com.google.protobuf.ByteString bs = 5538 (com.google.protobuf.ByteString) ref; 5539 String s = bs.toStringUtf8(); 5540 if (com.google.protobuf.Internal.isValidUtf8(bs)) { 5541 defaultValue_ = s; 5542 } 5543 return s; 5544 } 5545 } 5546 private com.google.protobuf.ByteString getDefaultValueBytes() { 5547 java.lang.Object ref = defaultValue_; 5548 if (ref instanceof String) { 5549 com.google.protobuf.ByteString b = 5550 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 5551 defaultValue_ = b; 5552 return b; 5553 } else { 5554 return (com.google.protobuf.ByteString) ref; 5555 } 5556 } 5557 5558 // optional .google.protobuf.FieldOptions options = 8; 5559 public static final int OPTIONS_FIELD_NUMBER = 8; 5560 private com.google.protobuf.DescriptorProtos.FieldOptions options_; 5561 public boolean hasOptions() { 5562 return ((bitField0_ & 0x00000080) == 0x00000080); 5563 } 5564 public com.google.protobuf.DescriptorProtos.FieldOptions getOptions() { 5565 return options_; 5566 } 5567 public com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder() { 5568 return options_; 5569 } 5570 5571 private void initFields() { 5572 name_ = ""; 5573 number_ = 0; 5574 label_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.LABEL_OPTIONAL; 5575 type_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE; 5576 typeName_ = ""; 5577 extendee_ = ""; 5578 defaultValue_ = ""; 5579 options_ = com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance(); 5580 } 5581 private byte memoizedIsInitialized = -1; 5582 public final boolean isInitialized() { 5583 byte isInitialized = memoizedIsInitialized; 5584 if (isInitialized != -1) return isInitialized == 1; 5585 5586 if (hasOptions()) { 5587 if (!getOptions().isInitialized()) { 5588 memoizedIsInitialized = 0; 5589 return false; 5590 } 5591 } 5592 memoizedIsInitialized = 1; 5593 return true; 5594 } 5595 5596 public void writeTo(com.google.protobuf.CodedOutputStream output) 5597 throws java.io.IOException { 5598 getSerializedSize(); 5599 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5600 output.writeBytes(1, getNameBytes()); 5601 } 5602 if (((bitField0_ & 0x00000020) == 0x00000020)) { 5603 output.writeBytes(2, getExtendeeBytes()); 5604 } 5605 if (((bitField0_ & 0x00000002) == 0x00000002)) { 5606 output.writeInt32(3, number_); 5607 } 5608 if (((bitField0_ & 0x00000004) == 0x00000004)) { 5609 output.writeEnum(4, label_.getNumber()); 5610 } 5611 if (((bitField0_ & 0x00000008) == 0x00000008)) { 5612 output.writeEnum(5, type_.getNumber()); 5613 } 5614 if (((bitField0_ & 0x00000010) == 0x00000010)) { 5615 output.writeBytes(6, getTypeNameBytes()); 5616 } 5617 if (((bitField0_ & 0x00000040) == 0x00000040)) { 5618 output.writeBytes(7, getDefaultValueBytes()); 5619 } 5620 if (((bitField0_ & 0x00000080) == 0x00000080)) { 5621 output.writeMessage(8, options_); 5622 } 5623 getUnknownFields().writeTo(output); 5624 } 5625 5626 private int memoizedSerializedSize = -1; 5627 public int getSerializedSize() { 5628 int size = memoizedSerializedSize; 5629 if (size != -1) return size; 5630 5631 size = 0; 5632 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5633 size += com.google.protobuf.CodedOutputStream 5634 .computeBytesSize(1, getNameBytes()); 5635 } 5636 if (((bitField0_ & 0x00000020) == 0x00000020)) { 5637 size += com.google.protobuf.CodedOutputStream 5638 .computeBytesSize(2, getExtendeeBytes()); 5639 } 5640 if (((bitField0_ & 0x00000002) == 0x00000002)) { 5641 size += com.google.protobuf.CodedOutputStream 5642 .computeInt32Size(3, number_); 5643 } 5644 if (((bitField0_ & 0x00000004) == 0x00000004)) { 5645 size += com.google.protobuf.CodedOutputStream 5646 .computeEnumSize(4, label_.getNumber()); 5647 } 5648 if (((bitField0_ & 0x00000008) == 0x00000008)) { 5649 size += com.google.protobuf.CodedOutputStream 5650 .computeEnumSize(5, type_.getNumber()); 5651 } 5652 if (((bitField0_ & 0x00000010) == 0x00000010)) { 5653 size += com.google.protobuf.CodedOutputStream 5654 .computeBytesSize(6, getTypeNameBytes()); 5655 } 5656 if (((bitField0_ & 0x00000040) == 0x00000040)) { 5657 size += com.google.protobuf.CodedOutputStream 5658 .computeBytesSize(7, getDefaultValueBytes()); 5659 } 5660 if (((bitField0_ & 0x00000080) == 0x00000080)) { 5661 size += com.google.protobuf.CodedOutputStream 5662 .computeMessageSize(8, options_); 5663 } 5664 size += getUnknownFields().getSerializedSize(); 5665 memoizedSerializedSize = size; 5666 return size; 5667 } 5668 5669 private static final long serialVersionUID = 0L; 7454 7455 private final com.google.protobuf.UnknownFieldSet unknownFields; 5670 7456 @java.lang.Override 5671 protected java.lang.Object writeReplace() 5672 throws java.io.ObjectStreamException { 5673 return super.writeReplace(); 5674 } 5675 5676 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 5677 com.google.protobuf.ByteString data) 5678 throws com.google.protobuf.InvalidProtocolBufferException { 5679 return newBuilder().mergeFrom(data).buildParsed(); 5680 } 5681 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 5682 com.google.protobuf.ByteString data, 7457 public final com.google.protobuf.UnknownFieldSet 7458 getUnknownFields() { 7459 return this.unknownFields; 7460 } 7461 private FieldDescriptorProto( 7462 com.google.protobuf.CodedInputStream input, 5683 7463 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5684 7464 throws com.google.protobuf.InvalidProtocolBufferException { 5685 return newBuilder().mergeFrom(data, extensionRegistry) 5686 .buildParsed(); 5687 } 5688 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom(byte[] data) 5689 throws com.google.protobuf.InvalidProtocolBufferException { 5690 return newBuilder().mergeFrom(data).buildParsed(); 5691 } 5692 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 5693 byte[] data, 5694 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5695 throws com.google.protobuf.InvalidProtocolBufferException { 5696 return newBuilder().mergeFrom(data, extensionRegistry) 5697 .buildParsed(); 5698 } 5699 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom(java.io.InputStream input) 5700 throws java.io.IOException { 5701 return newBuilder().mergeFrom(input).buildParsed(); 5702 } 5703 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 5704 java.io.InputStream input, 5705 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5706 throws java.io.IOException { 5707 return newBuilder().mergeFrom(input, extensionRegistry) 5708 .buildParsed(); 5709 } 5710 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseDelimitedFrom(java.io.InputStream input) 5711 throws java.io.IOException { 5712 Builder builder = newBuilder(); 5713 if (builder.mergeDelimitedFrom(input)) { 5714 return builder.buildParsed(); 5715 } else { 5716 return null; 5717 } 5718 } 5719 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseDelimitedFrom( 5720 java.io.InputStream input, 5721 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5722 throws java.io.IOException { 5723 Builder builder = newBuilder(); 5724 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 5725 return builder.buildParsed(); 5726 } else { 5727 return null; 5728 } 5729 } 5730 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 5731 com.google.protobuf.CodedInputStream input) 5732 throws java.io.IOException { 5733 return newBuilder().mergeFrom(input).buildParsed(); 5734 } 5735 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 5736 com.google.protobuf.CodedInputStream input, 5737 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5738 throws java.io.IOException { 5739 return newBuilder().mergeFrom(input, extensionRegistry) 5740 .buildParsed(); 5741 } 5742 5743 public static Builder newBuilder() { return Builder.create(); } 5744 public Builder newBuilderForType() { return newBuilder(); } 5745 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FieldDescriptorProto prototype) { 5746 return newBuilder().mergeFrom(prototype); 5747 } 5748 public Builder toBuilder() { return newBuilder(this); } 5749 5750 @java.lang.Override 5751 protected Builder newBuilderForType( 5752 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 5753 Builder builder = new Builder(parent); 5754 return builder; 5755 } 5756 public static final class Builder extends 5757 com.google.protobuf.GeneratedMessage.Builder<Builder> 5758 implements com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder { 5759 public static final com.google.protobuf.Descriptors.Descriptor 5760 getDescriptor() { 5761 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_descriptor; 5762 } 5763 5764 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 5765 internalGetFieldAccessorTable() { 5766 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_fieldAccessorTable; 5767 } 5768 5769 // Construct using com.google.protobuf.DescriptorProtos.FieldDescriptorProto.newBuilder() 5770 private Builder() { 5771 maybeForceBuilderInitialization(); 5772 } 5773 5774 private Builder(BuilderParent parent) { 5775 super(parent); 5776 maybeForceBuilderInitialization(); 5777 } 5778 private void maybeForceBuilderInitialization() { 5779 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 5780 getOptionsFieldBuilder(); 5781 } 5782 } 5783 private static Builder create() { 5784 return new Builder(); 5785 } 5786 5787 public Builder clear() { 5788 super.clear(); 5789 name_ = ""; 5790 bitField0_ = (bitField0_ & ~0x00000001); 5791 number_ = 0; 5792 bitField0_ = (bitField0_ & ~0x00000002); 5793 label_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.LABEL_OPTIONAL; 5794 bitField0_ = (bitField0_ & ~0x00000004); 5795 type_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE; 5796 bitField0_ = (bitField0_ & ~0x00000008); 5797 typeName_ = ""; 5798 bitField0_ = (bitField0_ & ~0x00000010); 5799 extendee_ = ""; 5800 bitField0_ = (bitField0_ & ~0x00000020); 5801 defaultValue_ = ""; 5802 bitField0_ = (bitField0_ & ~0x00000040); 5803 if (optionsBuilder_ == null) { 5804 options_ = com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance(); 5805 } else { 5806 optionsBuilder_.clear(); 5807 } 5808 bitField0_ = (bitField0_ & ~0x00000080); 5809 return this; 5810 } 5811 5812 public Builder clone() { 5813 return create().mergeFrom(buildPartial()); 5814 } 5815 5816 public com.google.protobuf.Descriptors.Descriptor 5817 getDescriptorForType() { 5818 return com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDescriptor(); 5819 } 5820 5821 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getDefaultInstanceForType() { 5822 return com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance(); 5823 } 5824 5825 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto build() { 5826 com.google.protobuf.DescriptorProtos.FieldDescriptorProto result = buildPartial(); 5827 if (!result.isInitialized()) { 5828 throw newUninitializedMessageException(result); 5829 } 5830 return result; 5831 } 5832 5833 private com.google.protobuf.DescriptorProtos.FieldDescriptorProto buildParsed() 5834 throws com.google.protobuf.InvalidProtocolBufferException { 5835 com.google.protobuf.DescriptorProtos.FieldDescriptorProto result = buildPartial(); 5836 if (!result.isInitialized()) { 5837 throw newUninitializedMessageException( 5838 result).asInvalidProtocolBufferException(); 5839 } 5840 return result; 5841 } 5842 5843 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto buildPartial() { 5844 com.google.protobuf.DescriptorProtos.FieldDescriptorProto result = new com.google.protobuf.DescriptorProtos.FieldDescriptorProto(this); 5845 int from_bitField0_ = bitField0_; 5846 int to_bitField0_ = 0; 5847 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 5848 to_bitField0_ |= 0x00000001; 5849 } 5850 result.name_ = name_; 5851 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 5852 to_bitField0_ |= 0x00000002; 5853 } 5854 result.number_ = number_; 5855 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 5856 to_bitField0_ |= 0x00000004; 5857 } 5858 result.label_ = label_; 5859 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 5860 to_bitField0_ |= 0x00000008; 5861 } 5862 result.type_ = type_; 5863 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 5864 to_bitField0_ |= 0x00000010; 5865 } 5866 result.typeName_ = typeName_; 5867 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 5868 to_bitField0_ |= 0x00000020; 5869 } 5870 result.extendee_ = extendee_; 5871 if (((from_bitField0_ & 0x00000040) == 0x00000040)) { 5872 to_bitField0_ |= 0x00000040; 5873 } 5874 result.defaultValue_ = defaultValue_; 5875 if (((from_bitField0_ & 0x00000080) == 0x00000080)) { 5876 to_bitField0_ |= 0x00000080; 5877 } 5878 if (optionsBuilder_ == null) { 5879 result.options_ = options_; 5880 } else { 5881 result.options_ = optionsBuilder_.build(); 5882 } 5883 result.bitField0_ = to_bitField0_; 5884 onBuilt(); 5885 return result; 5886 } 5887 5888 public Builder mergeFrom(com.google.protobuf.Message other) { 5889 if (other instanceof com.google.protobuf.DescriptorProtos.FieldDescriptorProto) { 5890 return mergeFrom((com.google.protobuf.DescriptorProtos.FieldDescriptorProto)other); 5891 } else { 5892 super.mergeFrom(other); 5893 return this; 5894 } 5895 } 5896 5897 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FieldDescriptorProto other) { 5898 if (other == com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()) return this; 5899 if (other.hasName()) { 5900 setName(other.getName()); 5901 } 5902 if (other.hasNumber()) { 5903 setNumber(other.getNumber()); 5904 } 5905 if (other.hasLabel()) { 5906 setLabel(other.getLabel()); 5907 } 5908 if (other.hasType()) { 5909 setType(other.getType()); 5910 } 5911 if (other.hasTypeName()) { 5912 setTypeName(other.getTypeName()); 5913 } 5914 if (other.hasExtendee()) { 5915 setExtendee(other.getExtendee()); 5916 } 5917 if (other.hasDefaultValue()) { 5918 setDefaultValue(other.getDefaultValue()); 5919 } 5920 if (other.hasOptions()) { 5921 mergeOptions(other.getOptions()); 5922 } 5923 this.mergeUnknownFields(other.getUnknownFields()); 5924 return this; 5925 } 5926 5927 public final boolean isInitialized() { 5928 if (hasOptions()) { 5929 if (!getOptions().isInitialized()) { 5930 5931 return false; 5932 } 5933 } 5934 return true; 5935 } 5936 5937 public Builder mergeFrom( 5938 com.google.protobuf.CodedInputStream input, 5939 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5940 throws java.io.IOException { 5941 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 5942 com.google.protobuf.UnknownFieldSet.newBuilder( 5943 this.getUnknownFields()); 5944 while (true) { 7465 initFields(); 7466 int mutable_bitField0_ = 0; 7467 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 7468 com.google.protobuf.UnknownFieldSet.newBuilder(); 7469 try { 7470 boolean done = false; 7471 while (!done) { 5945 7472 int tag = input.readTag(); 5946 7473 switch (tag) { 5947 7474 case 0: 5948 this.setUnknownFields(unknownFields.build()); 5949 onChanged(); 5950 return this; 7475 done = true; 7476 break; 5951 7477 default: { 5952 7478 if (!parseUnknownField(input, unknownFields, 5953 7479 extensionRegistry, tag)) { 5954 this.setUnknownFields(unknownFields.build()); 5955 onChanged(); 5956 return this; 7480 done = true; 5957 7481 } 5958 7482 break; … … 6006 7530 } 6007 7531 case 66: { 6008 com.google.protobuf.DescriptorProtos.FieldOptions.Builder subBuilder = com.google.protobuf.DescriptorProtos.FieldOptions.newBuilder();6009 if ( hasOptions()) {6010 subBuilder .mergeFrom(getOptions());7532 com.google.protobuf.DescriptorProtos.FieldOptions.Builder subBuilder = null; 7533 if (((bitField0_ & 0x00000080) == 0x00000080)) { 7534 subBuilder = options_.toBuilder(); 6011 7535 } 6012 input.readMessage(subBuilder, extensionRegistry); 6013 setOptions(subBuilder.buildPartial()); 7536 options_ = input.readMessage(com.google.protobuf.DescriptorProtos.FieldOptions.PARSER, extensionRegistry); 7537 if (subBuilder != null) { 7538 subBuilder.mergeFrom(options_); 7539 options_ = subBuilder.buildPartial(); 7540 } 7541 bitField0_ |= 0x00000080; 6014 7542 break; 6015 7543 } 6016 7544 } 6017 7545 } 6018 } 6019 7546 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7547 throw e.setUnfinishedMessage(this); 7548 } catch (java.io.IOException e) { 7549 throw new com.google.protobuf.InvalidProtocolBufferException( 7550 e.getMessage()).setUnfinishedMessage(this); 7551 } finally { 7552 this.unknownFields = unknownFields.build(); 7553 makeExtensionsImmutable(); 7554 } 7555 } 7556 public static final com.google.protobuf.Descriptors.Descriptor 7557 getDescriptor() { 7558 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_descriptor; 7559 } 7560 7561 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 7562 internalGetFieldAccessorTable() { 7563 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_fieldAccessorTable 7564 .ensureFieldAccessorsInitialized( 7565 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.class, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder.class); 7566 } 7567 7568 public static com.google.protobuf.Parser<FieldDescriptorProto> PARSER = 7569 new com.google.protobuf.AbstractParser<FieldDescriptorProto>() { 7570 public FieldDescriptorProto parsePartialFrom( 7571 com.google.protobuf.CodedInputStream input, 7572 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7573 throws com.google.protobuf.InvalidProtocolBufferException { 7574 return new FieldDescriptorProto(input, extensionRegistry); 7575 } 7576 }; 7577 7578 @java.lang.Override 7579 public com.google.protobuf.Parser<FieldDescriptorProto> getParserForType() { 7580 return PARSER; 7581 } 7582 7583 /** 7584 * Protobuf enum {@code google.protobuf.FieldDescriptorProto.Type} 7585 */ 7586 public enum Type 7587 implements com.google.protobuf.ProtocolMessageEnum { 7588 /** 7589 * <code>TYPE_DOUBLE = 1;</code> 7590 * 7591 * <pre> 7592 * 0 is reserved for errors. 7593 * Order is weird for historical reasons. 7594 * </pre> 7595 */ 7596 TYPE_DOUBLE(0, 1), 7597 /** 7598 * <code>TYPE_FLOAT = 2;</code> 7599 */ 7600 TYPE_FLOAT(1, 2), 7601 /** 7602 * <code>TYPE_INT64 = 3;</code> 7603 * 7604 * <pre> 7605 * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if 7606 * negative values are likely. 7607 * </pre> 7608 */ 7609 TYPE_INT64(2, 3), 7610 /** 7611 * <code>TYPE_UINT64 = 4;</code> 7612 */ 7613 TYPE_UINT64(3, 4), 7614 /** 7615 * <code>TYPE_INT32 = 5;</code> 7616 * 7617 * <pre> 7618 * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if 7619 * negative values are likely. 7620 * </pre> 7621 */ 7622 TYPE_INT32(4, 5), 7623 /** 7624 * <code>TYPE_FIXED64 = 6;</code> 7625 */ 7626 TYPE_FIXED64(5, 6), 7627 /** 7628 * <code>TYPE_FIXED32 = 7;</code> 7629 */ 7630 TYPE_FIXED32(6, 7), 7631 /** 7632 * <code>TYPE_BOOL = 8;</code> 7633 */ 7634 TYPE_BOOL(7, 8), 7635 /** 7636 * <code>TYPE_STRING = 9;</code> 7637 */ 7638 TYPE_STRING(8, 9), 7639 /** 7640 * <code>TYPE_GROUP = 10;</code> 7641 * 7642 * <pre> 7643 * Tag-delimited aggregate. 7644 * </pre> 7645 */ 7646 TYPE_GROUP(9, 10), 7647 /** 7648 * <code>TYPE_MESSAGE = 11;</code> 7649 * 7650 * <pre> 7651 * Length-delimited aggregate. 7652 * </pre> 7653 */ 7654 TYPE_MESSAGE(10, 11), 7655 /** 7656 * <code>TYPE_BYTES = 12;</code> 7657 * 7658 * <pre> 7659 * New in version 2. 7660 * </pre> 7661 */ 7662 TYPE_BYTES(11, 12), 7663 /** 7664 * <code>TYPE_UINT32 = 13;</code> 7665 */ 7666 TYPE_UINT32(12, 13), 7667 /** 7668 * <code>TYPE_ENUM = 14;</code> 7669 */ 7670 TYPE_ENUM(13, 14), 7671 /** 7672 * <code>TYPE_SFIXED32 = 15;</code> 7673 */ 7674 TYPE_SFIXED32(14, 15), 7675 /** 7676 * <code>TYPE_SFIXED64 = 16;</code> 7677 */ 7678 TYPE_SFIXED64(15, 16), 7679 /** 7680 * <code>TYPE_SINT32 = 17;</code> 7681 * 7682 * <pre> 7683 * Uses ZigZag encoding. 7684 * </pre> 7685 */ 7686 TYPE_SINT32(16, 17), 7687 /** 7688 * <code>TYPE_SINT64 = 18;</code> 7689 * 7690 * <pre> 7691 * Uses ZigZag encoding. 7692 * </pre> 7693 */ 7694 TYPE_SINT64(17, 18), 7695 ; 7696 7697 /** 7698 * <code>TYPE_DOUBLE = 1;</code> 7699 * 7700 * <pre> 7701 * 0 is reserved for errors. 7702 * Order is weird for historical reasons. 7703 * </pre> 7704 */ 7705 public static final int TYPE_DOUBLE_VALUE = 1; 7706 /** 7707 * <code>TYPE_FLOAT = 2;</code> 7708 */ 7709 public static final int TYPE_FLOAT_VALUE = 2; 7710 /** 7711 * <code>TYPE_INT64 = 3;</code> 7712 * 7713 * <pre> 7714 * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if 7715 * negative values are likely. 7716 * </pre> 7717 */ 7718 public static final int TYPE_INT64_VALUE = 3; 7719 /** 7720 * <code>TYPE_UINT64 = 4;</code> 7721 */ 7722 public static final int TYPE_UINT64_VALUE = 4; 7723 /** 7724 * <code>TYPE_INT32 = 5;</code> 7725 * 7726 * <pre> 7727 * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if 7728 * negative values are likely. 7729 * </pre> 7730 */ 7731 public static final int TYPE_INT32_VALUE = 5; 7732 /** 7733 * <code>TYPE_FIXED64 = 6;</code> 7734 */ 7735 public static final int TYPE_FIXED64_VALUE = 6; 7736 /** 7737 * <code>TYPE_FIXED32 = 7;</code> 7738 */ 7739 public static final int TYPE_FIXED32_VALUE = 7; 7740 /** 7741 * <code>TYPE_BOOL = 8;</code> 7742 */ 7743 public static final int TYPE_BOOL_VALUE = 8; 7744 /** 7745 * <code>TYPE_STRING = 9;</code> 7746 */ 7747 public static final int TYPE_STRING_VALUE = 9; 7748 /** 7749 * <code>TYPE_GROUP = 10;</code> 7750 * 7751 * <pre> 7752 * Tag-delimited aggregate. 7753 * </pre> 7754 */ 7755 public static final int TYPE_GROUP_VALUE = 10; 7756 /** 7757 * <code>TYPE_MESSAGE = 11;</code> 7758 * 7759 * <pre> 7760 * Length-delimited aggregate. 7761 * </pre> 7762 */ 7763 public static final int TYPE_MESSAGE_VALUE = 11; 7764 /** 7765 * <code>TYPE_BYTES = 12;</code> 7766 * 7767 * <pre> 7768 * New in version 2. 7769 * </pre> 7770 */ 7771 public static final int TYPE_BYTES_VALUE = 12; 7772 /** 7773 * <code>TYPE_UINT32 = 13;</code> 7774 */ 7775 public static final int TYPE_UINT32_VALUE = 13; 7776 /** 7777 * <code>TYPE_ENUM = 14;</code> 7778 */ 7779 public static final int TYPE_ENUM_VALUE = 14; 7780 /** 7781 * <code>TYPE_SFIXED32 = 15;</code> 7782 */ 7783 public static final int TYPE_SFIXED32_VALUE = 15; 7784 /** 7785 * <code>TYPE_SFIXED64 = 16;</code> 7786 */ 7787 public static final int TYPE_SFIXED64_VALUE = 16; 7788 /** 7789 * <code>TYPE_SINT32 = 17;</code> 7790 * 7791 * <pre> 7792 * Uses ZigZag encoding. 7793 * </pre> 7794 */ 7795 public static final int TYPE_SINT32_VALUE = 17; 7796 /** 7797 * <code>TYPE_SINT64 = 18;</code> 7798 * 7799 * <pre> 7800 * Uses ZigZag encoding. 7801 * </pre> 7802 */ 7803 public static final int TYPE_SINT64_VALUE = 18; 7804 7805 7806 public final int getNumber() { return value; } 7807 7808 public static Type valueOf(int value) { 7809 switch (value) { 7810 case 1: return TYPE_DOUBLE; 7811 case 2: return TYPE_FLOAT; 7812 case 3: return TYPE_INT64; 7813 case 4: return TYPE_UINT64; 7814 case 5: return TYPE_INT32; 7815 case 6: return TYPE_FIXED64; 7816 case 7: return TYPE_FIXED32; 7817 case 8: return TYPE_BOOL; 7818 case 9: return TYPE_STRING; 7819 case 10: return TYPE_GROUP; 7820 case 11: return TYPE_MESSAGE; 7821 case 12: return TYPE_BYTES; 7822 case 13: return TYPE_UINT32; 7823 case 14: return TYPE_ENUM; 7824 case 15: return TYPE_SFIXED32; 7825 case 16: return TYPE_SFIXED64; 7826 case 17: return TYPE_SINT32; 7827 case 18: return TYPE_SINT64; 7828 default: return null; 7829 } 7830 } 7831 7832 public static com.google.protobuf.Internal.EnumLiteMap<Type> 7833 internalGetValueMap() { 7834 return internalValueMap; 7835 } 7836 private static com.google.protobuf.Internal.EnumLiteMap<Type> 7837 internalValueMap = 7838 new com.google.protobuf.Internal.EnumLiteMap<Type>() { 7839 public Type findValueByNumber(int number) { 7840 return Type.valueOf(number); 7841 } 7842 }; 7843 7844 public final com.google.protobuf.Descriptors.EnumValueDescriptor 7845 getValueDescriptor() { 7846 return getDescriptor().getValues().get(index); 7847 } 7848 public final com.google.protobuf.Descriptors.EnumDescriptor 7849 getDescriptorForType() { 7850 return getDescriptor(); 7851 } 7852 public static final com.google.protobuf.Descriptors.EnumDescriptor 7853 getDescriptor() { 7854 return com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDescriptor().getEnumTypes().get(0); 7855 } 7856 7857 private static final Type[] VALUES = values(); 7858 7859 public static Type valueOf( 7860 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 7861 if (desc.getType() != getDescriptor()) { 7862 throw new java.lang.IllegalArgumentException( 7863 "EnumValueDescriptor is not for this type."); 7864 } 7865 return VALUES[desc.getIndex()]; 7866 } 7867 7868 private final int index; 7869 private final int value; 7870 7871 private Type(int index, int value) { 7872 this.index = index; 7873 this.value = value; 7874 } 7875 7876 // @@protoc_insertion_point(enum_scope:google.protobuf.FieldDescriptorProto.Type) 7877 } 7878 7879 /** 7880 * Protobuf enum {@code google.protobuf.FieldDescriptorProto.Label} 7881 */ 7882 public enum Label 7883 implements com.google.protobuf.ProtocolMessageEnum { 7884 /** 7885 * <code>LABEL_OPTIONAL = 1;</code> 7886 * 7887 * <pre> 7888 * 0 is reserved for errors 7889 * </pre> 7890 */ 7891 LABEL_OPTIONAL(0, 1), 7892 /** 7893 * <code>LABEL_REQUIRED = 2;</code> 7894 */ 7895 LABEL_REQUIRED(1, 2), 7896 /** 7897 * <code>LABEL_REPEATED = 3;</code> 7898 * 7899 * <pre> 7900 * TODO(sanjay): Should we add LABEL_MAP? 7901 * </pre> 7902 */ 7903 LABEL_REPEATED(2, 3), 7904 ; 7905 7906 /** 7907 * <code>LABEL_OPTIONAL = 1;</code> 7908 * 7909 * <pre> 7910 * 0 is reserved for errors 7911 * </pre> 7912 */ 7913 public static final int LABEL_OPTIONAL_VALUE = 1; 7914 /** 7915 * <code>LABEL_REQUIRED = 2;</code> 7916 */ 7917 public static final int LABEL_REQUIRED_VALUE = 2; 7918 /** 7919 * <code>LABEL_REPEATED = 3;</code> 7920 * 7921 * <pre> 7922 * TODO(sanjay): Should we add LABEL_MAP? 7923 * </pre> 7924 */ 7925 public static final int LABEL_REPEATED_VALUE = 3; 7926 7927 7928 public final int getNumber() { return value; } 7929 7930 public static Label valueOf(int value) { 7931 switch (value) { 7932 case 1: return LABEL_OPTIONAL; 7933 case 2: return LABEL_REQUIRED; 7934 case 3: return LABEL_REPEATED; 7935 default: return null; 7936 } 7937 } 7938 7939 public static com.google.protobuf.Internal.EnumLiteMap<Label> 7940 internalGetValueMap() { 7941 return internalValueMap; 7942 } 7943 private static com.google.protobuf.Internal.EnumLiteMap<Label> 7944 internalValueMap = 7945 new com.google.protobuf.Internal.EnumLiteMap<Label>() { 7946 public Label findValueByNumber(int number) { 7947 return Label.valueOf(number); 7948 } 7949 }; 7950 7951 public final com.google.protobuf.Descriptors.EnumValueDescriptor 7952 getValueDescriptor() { 7953 return getDescriptor().getValues().get(index); 7954 } 7955 public final com.google.protobuf.Descriptors.EnumDescriptor 7956 getDescriptorForType() { 7957 return getDescriptor(); 7958 } 7959 public static final com.google.protobuf.Descriptors.EnumDescriptor 7960 getDescriptor() { 7961 return com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDescriptor().getEnumTypes().get(1); 7962 } 7963 7964 private static final Label[] VALUES = values(); 7965 7966 public static Label valueOf( 7967 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 7968 if (desc.getType() != getDescriptor()) { 7969 throw new java.lang.IllegalArgumentException( 7970 "EnumValueDescriptor is not for this type."); 7971 } 7972 return VALUES[desc.getIndex()]; 7973 } 7974 7975 private final int index; 7976 private final int value; 7977 7978 private Label(int index, int value) { 7979 this.index = index; 7980 this.value = value; 7981 } 7982 7983 // @@protoc_insertion_point(enum_scope:google.protobuf.FieldDescriptorProto.Label) 7984 } 7985 7986 private int bitField0_; 7987 // optional string name = 1; 7988 public static final int NAME_FIELD_NUMBER = 1; 7989 private java.lang.Object name_; 7990 /** 7991 * <code>optional string name = 1;</code> 7992 */ 7993 public boolean hasName() { 7994 return ((bitField0_ & 0x00000001) == 0x00000001); 7995 } 7996 /** 7997 * <code>optional string name = 1;</code> 7998 */ 7999 public java.lang.String getName() { 8000 java.lang.Object ref = name_; 8001 if (ref instanceof java.lang.String) { 8002 return (java.lang.String) ref; 8003 } else { 8004 com.google.protobuf.ByteString bs = 8005 (com.google.protobuf.ByteString) ref; 8006 java.lang.String s = bs.toStringUtf8(); 8007 if (bs.isValidUtf8()) { 8008 name_ = s; 8009 } 8010 return s; 8011 } 8012 } 8013 /** 8014 * <code>optional string name = 1;</code> 8015 */ 8016 public com.google.protobuf.ByteString 8017 getNameBytes() { 8018 java.lang.Object ref = name_; 8019 if (ref instanceof java.lang.String) { 8020 com.google.protobuf.ByteString b = 8021 com.google.protobuf.ByteString.copyFromUtf8( 8022 (java.lang.String) ref); 8023 name_ = b; 8024 return b; 8025 } else { 8026 return (com.google.protobuf.ByteString) ref; 8027 } 8028 } 8029 8030 // optional int32 number = 3; 8031 public static final int NUMBER_FIELD_NUMBER = 3; 8032 private int number_; 8033 /** 8034 * <code>optional int32 number = 3;</code> 8035 */ 8036 public boolean hasNumber() { 8037 return ((bitField0_ & 0x00000002) == 0x00000002); 8038 } 8039 /** 8040 * <code>optional int32 number = 3;</code> 8041 */ 8042 public int getNumber() { 8043 return number_; 8044 } 8045 8046 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; 8047 public static final int LABEL_FIELD_NUMBER = 4; 8048 private com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label label_; 8049 /** 8050 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 8051 */ 8052 public boolean hasLabel() { 8053 return ((bitField0_ & 0x00000004) == 0x00000004); 8054 } 8055 /** 8056 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 8057 */ 8058 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel() { 8059 return label_; 8060 } 8061 8062 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; 8063 public static final int TYPE_FIELD_NUMBER = 5; 8064 private com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type type_; 8065 /** 8066 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 8067 * 8068 * <pre> 8069 * If type_name is set, this need not be set. If both this and type_name 8070 * are set, this must be either TYPE_ENUM or TYPE_MESSAGE. 8071 * </pre> 8072 */ 8073 public boolean hasType() { 8074 return ((bitField0_ & 0x00000008) == 0x00000008); 8075 } 8076 /** 8077 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 8078 * 8079 * <pre> 8080 * If type_name is set, this need not be set. If both this and type_name 8081 * are set, this must be either TYPE_ENUM or TYPE_MESSAGE. 8082 * </pre> 8083 */ 8084 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType() { 8085 return type_; 8086 } 8087 8088 // optional string type_name = 6; 8089 public static final int TYPE_NAME_FIELD_NUMBER = 6; 8090 private java.lang.Object typeName_; 8091 /** 8092 * <code>optional string type_name = 6;</code> 8093 * 8094 * <pre> 8095 * For message and enum types, this is the name of the type. If the name 8096 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 8097 * rules are used to find the type (i.e. first the nested types within this 8098 * message are searched, then within the parent, on up to the root 8099 * namespace). 8100 * </pre> 8101 */ 8102 public boolean hasTypeName() { 8103 return ((bitField0_ & 0x00000010) == 0x00000010); 8104 } 8105 /** 8106 * <code>optional string type_name = 6;</code> 8107 * 8108 * <pre> 8109 * For message and enum types, this is the name of the type. If the name 8110 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 8111 * rules are used to find the type (i.e. first the nested types within this 8112 * message are searched, then within the parent, on up to the root 8113 * namespace). 8114 * </pre> 8115 */ 8116 public java.lang.String getTypeName() { 8117 java.lang.Object ref = typeName_; 8118 if (ref instanceof java.lang.String) { 8119 return (java.lang.String) ref; 8120 } else { 8121 com.google.protobuf.ByteString bs = 8122 (com.google.protobuf.ByteString) ref; 8123 java.lang.String s = bs.toStringUtf8(); 8124 if (bs.isValidUtf8()) { 8125 typeName_ = s; 8126 } 8127 return s; 8128 } 8129 } 8130 /** 8131 * <code>optional string type_name = 6;</code> 8132 * 8133 * <pre> 8134 * For message and enum types, this is the name of the type. If the name 8135 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 8136 * rules are used to find the type (i.e. first the nested types within this 8137 * message are searched, then within the parent, on up to the root 8138 * namespace). 8139 * </pre> 8140 */ 8141 public com.google.protobuf.ByteString 8142 getTypeNameBytes() { 8143 java.lang.Object ref = typeName_; 8144 if (ref instanceof java.lang.String) { 8145 com.google.protobuf.ByteString b = 8146 com.google.protobuf.ByteString.copyFromUtf8( 8147 (java.lang.String) ref); 8148 typeName_ = b; 8149 return b; 8150 } else { 8151 return (com.google.protobuf.ByteString) ref; 8152 } 8153 } 8154 8155 // optional string extendee = 2; 8156 public static final int EXTENDEE_FIELD_NUMBER = 2; 8157 private java.lang.Object extendee_; 8158 /** 8159 * <code>optional string extendee = 2;</code> 8160 * 8161 * <pre> 8162 * For extensions, this is the name of the type being extended. It is 8163 * resolved in the same manner as type_name. 8164 * </pre> 8165 */ 8166 public boolean hasExtendee() { 8167 return ((bitField0_ & 0x00000020) == 0x00000020); 8168 } 8169 /** 8170 * <code>optional string extendee = 2;</code> 8171 * 8172 * <pre> 8173 * For extensions, this is the name of the type being extended. It is 8174 * resolved in the same manner as type_name. 8175 * </pre> 8176 */ 8177 public java.lang.String getExtendee() { 8178 java.lang.Object ref = extendee_; 8179 if (ref instanceof java.lang.String) { 8180 return (java.lang.String) ref; 8181 } else { 8182 com.google.protobuf.ByteString bs = 8183 (com.google.protobuf.ByteString) ref; 8184 java.lang.String s = bs.toStringUtf8(); 8185 if (bs.isValidUtf8()) { 8186 extendee_ = s; 8187 } 8188 return s; 8189 } 8190 } 8191 /** 8192 * <code>optional string extendee = 2;</code> 8193 * 8194 * <pre> 8195 * For extensions, this is the name of the type being extended. It is 8196 * resolved in the same manner as type_name. 8197 * </pre> 8198 */ 8199 public com.google.protobuf.ByteString 8200 getExtendeeBytes() { 8201 java.lang.Object ref = extendee_; 8202 if (ref instanceof java.lang.String) { 8203 com.google.protobuf.ByteString b = 8204 com.google.protobuf.ByteString.copyFromUtf8( 8205 (java.lang.String) ref); 8206 extendee_ = b; 8207 return b; 8208 } else { 8209 return (com.google.protobuf.ByteString) ref; 8210 } 8211 } 8212 8213 // optional string default_value = 7; 8214 public static final int DEFAULT_VALUE_FIELD_NUMBER = 7; 8215 private java.lang.Object defaultValue_; 8216 /** 8217 * <code>optional string default_value = 7;</code> 8218 * 8219 * <pre> 8220 * For numeric types, contains the original text representation of the value. 8221 * For booleans, "true" or "false". 8222 * For strings, contains the default text contents (not escaped in any way). 8223 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 8224 * TODO(kenton): Base-64 encode? 8225 * </pre> 8226 */ 8227 public boolean hasDefaultValue() { 8228 return ((bitField0_ & 0x00000040) == 0x00000040); 8229 } 8230 /** 8231 * <code>optional string default_value = 7;</code> 8232 * 8233 * <pre> 8234 * For numeric types, contains the original text representation of the value. 8235 * For booleans, "true" or "false". 8236 * For strings, contains the default text contents (not escaped in any way). 8237 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 8238 * TODO(kenton): Base-64 encode? 8239 * </pre> 8240 */ 8241 public java.lang.String getDefaultValue() { 8242 java.lang.Object ref = defaultValue_; 8243 if (ref instanceof java.lang.String) { 8244 return (java.lang.String) ref; 8245 } else { 8246 com.google.protobuf.ByteString bs = 8247 (com.google.protobuf.ByteString) ref; 8248 java.lang.String s = bs.toStringUtf8(); 8249 if (bs.isValidUtf8()) { 8250 defaultValue_ = s; 8251 } 8252 return s; 8253 } 8254 } 8255 /** 8256 * <code>optional string default_value = 7;</code> 8257 * 8258 * <pre> 8259 * For numeric types, contains the original text representation of the value. 8260 * For booleans, "true" or "false". 8261 * For strings, contains the default text contents (not escaped in any way). 8262 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 8263 * TODO(kenton): Base-64 encode? 8264 * </pre> 8265 */ 8266 public com.google.protobuf.ByteString 8267 getDefaultValueBytes() { 8268 java.lang.Object ref = defaultValue_; 8269 if (ref instanceof java.lang.String) { 8270 com.google.protobuf.ByteString b = 8271 com.google.protobuf.ByteString.copyFromUtf8( 8272 (java.lang.String) ref); 8273 defaultValue_ = b; 8274 return b; 8275 } else { 8276 return (com.google.protobuf.ByteString) ref; 8277 } 8278 } 8279 8280 // optional .google.protobuf.FieldOptions options = 8; 8281 public static final int OPTIONS_FIELD_NUMBER = 8; 8282 private com.google.protobuf.DescriptorProtos.FieldOptions options_; 8283 /** 8284 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 8285 */ 8286 public boolean hasOptions() { 8287 return ((bitField0_ & 0x00000080) == 0x00000080); 8288 } 8289 /** 8290 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 8291 */ 8292 public com.google.protobuf.DescriptorProtos.FieldOptions getOptions() { 8293 return options_; 8294 } 8295 /** 8296 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 8297 */ 8298 public com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder() { 8299 return options_; 8300 } 8301 8302 private void initFields() { 8303 name_ = ""; 8304 number_ = 0; 8305 label_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.LABEL_OPTIONAL; 8306 type_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE; 8307 typeName_ = ""; 8308 extendee_ = ""; 8309 defaultValue_ = ""; 8310 options_ = com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance(); 8311 } 8312 private byte memoizedIsInitialized = -1; 8313 public final boolean isInitialized() { 8314 byte isInitialized = memoizedIsInitialized; 8315 if (isInitialized != -1) return isInitialized == 1; 8316 8317 if (hasOptions()) { 8318 if (!getOptions().isInitialized()) { 8319 memoizedIsInitialized = 0; 8320 return false; 8321 } 8322 } 8323 memoizedIsInitialized = 1; 8324 return true; 8325 } 8326 8327 public void writeTo(com.google.protobuf.CodedOutputStream output) 8328 throws java.io.IOException { 8329 getSerializedSize(); 8330 if (((bitField0_ & 0x00000001) == 0x00000001)) { 8331 output.writeBytes(1, getNameBytes()); 8332 } 8333 if (((bitField0_ & 0x00000020) == 0x00000020)) { 8334 output.writeBytes(2, getExtendeeBytes()); 8335 } 8336 if (((bitField0_ & 0x00000002) == 0x00000002)) { 8337 output.writeInt32(3, number_); 8338 } 8339 if (((bitField0_ & 0x00000004) == 0x00000004)) { 8340 output.writeEnum(4, label_.getNumber()); 8341 } 8342 if (((bitField0_ & 0x00000008) == 0x00000008)) { 8343 output.writeEnum(5, type_.getNumber()); 8344 } 8345 if (((bitField0_ & 0x00000010) == 0x00000010)) { 8346 output.writeBytes(6, getTypeNameBytes()); 8347 } 8348 if (((bitField0_ & 0x00000040) == 0x00000040)) { 8349 output.writeBytes(7, getDefaultValueBytes()); 8350 } 8351 if (((bitField0_ & 0x00000080) == 0x00000080)) { 8352 output.writeMessage(8, options_); 8353 } 8354 getUnknownFields().writeTo(output); 8355 } 8356 8357 private int memoizedSerializedSize = -1; 8358 public int getSerializedSize() { 8359 int size = memoizedSerializedSize; 8360 if (size != -1) return size; 8361 8362 size = 0; 8363 if (((bitField0_ & 0x00000001) == 0x00000001)) { 8364 size += com.google.protobuf.CodedOutputStream 8365 .computeBytesSize(1, getNameBytes()); 8366 } 8367 if (((bitField0_ & 0x00000020) == 0x00000020)) { 8368 size += com.google.protobuf.CodedOutputStream 8369 .computeBytesSize(2, getExtendeeBytes()); 8370 } 8371 if (((bitField0_ & 0x00000002) == 0x00000002)) { 8372 size += com.google.protobuf.CodedOutputStream 8373 .computeInt32Size(3, number_); 8374 } 8375 if (((bitField0_ & 0x00000004) == 0x00000004)) { 8376 size += com.google.protobuf.CodedOutputStream 8377 .computeEnumSize(4, label_.getNumber()); 8378 } 8379 if (((bitField0_ & 0x00000008) == 0x00000008)) { 8380 size += com.google.protobuf.CodedOutputStream 8381 .computeEnumSize(5, type_.getNumber()); 8382 } 8383 if (((bitField0_ & 0x00000010) == 0x00000010)) { 8384 size += com.google.protobuf.CodedOutputStream 8385 .computeBytesSize(6, getTypeNameBytes()); 8386 } 8387 if (((bitField0_ & 0x00000040) == 0x00000040)) { 8388 size += com.google.protobuf.CodedOutputStream 8389 .computeBytesSize(7, getDefaultValueBytes()); 8390 } 8391 if (((bitField0_ & 0x00000080) == 0x00000080)) { 8392 size += com.google.protobuf.CodedOutputStream 8393 .computeMessageSize(8, options_); 8394 } 8395 size += getUnknownFields().getSerializedSize(); 8396 memoizedSerializedSize = size; 8397 return size; 8398 } 8399 8400 private static final long serialVersionUID = 0L; 8401 @java.lang.Override 8402 protected java.lang.Object writeReplace() 8403 throws java.io.ObjectStreamException { 8404 return super.writeReplace(); 8405 } 8406 8407 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 8408 com.google.protobuf.ByteString data) 8409 throws com.google.protobuf.InvalidProtocolBufferException { 8410 return PARSER.parseFrom(data); 8411 } 8412 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 8413 com.google.protobuf.ByteString data, 8414 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8415 throws com.google.protobuf.InvalidProtocolBufferException { 8416 return PARSER.parseFrom(data, extensionRegistry); 8417 } 8418 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom(byte[] data) 8419 throws com.google.protobuf.InvalidProtocolBufferException { 8420 return PARSER.parseFrom(data); 8421 } 8422 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 8423 byte[] data, 8424 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8425 throws com.google.protobuf.InvalidProtocolBufferException { 8426 return PARSER.parseFrom(data, extensionRegistry); 8427 } 8428 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom(java.io.InputStream input) 8429 throws java.io.IOException { 8430 return PARSER.parseFrom(input); 8431 } 8432 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 8433 java.io.InputStream input, 8434 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8435 throws java.io.IOException { 8436 return PARSER.parseFrom(input, extensionRegistry); 8437 } 8438 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseDelimitedFrom(java.io.InputStream input) 8439 throws java.io.IOException { 8440 return PARSER.parseDelimitedFrom(input); 8441 } 8442 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseDelimitedFrom( 8443 java.io.InputStream input, 8444 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8445 throws java.io.IOException { 8446 return PARSER.parseDelimitedFrom(input, extensionRegistry); 8447 } 8448 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 8449 com.google.protobuf.CodedInputStream input) 8450 throws java.io.IOException { 8451 return PARSER.parseFrom(input); 8452 } 8453 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 8454 com.google.protobuf.CodedInputStream input, 8455 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8456 throws java.io.IOException { 8457 return PARSER.parseFrom(input, extensionRegistry); 8458 } 8459 8460 public static Builder newBuilder() { return Builder.create(); } 8461 public Builder newBuilderForType() { return newBuilder(); } 8462 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FieldDescriptorProto prototype) { 8463 return newBuilder().mergeFrom(prototype); 8464 } 8465 public Builder toBuilder() { return newBuilder(this); } 8466 8467 @java.lang.Override 8468 protected Builder newBuilderForType( 8469 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 8470 Builder builder = new Builder(parent); 8471 return builder; 8472 } 8473 /** 8474 * Protobuf type {@code google.protobuf.FieldDescriptorProto} 8475 * 8476 * <pre> 8477 * Describes a field within a message. 8478 * </pre> 8479 */ 8480 public static final class Builder extends 8481 com.google.protobuf.GeneratedMessage.Builder<Builder> 8482 implements com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder { 8483 public static final com.google.protobuf.Descriptors.Descriptor 8484 getDescriptor() { 8485 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_descriptor; 8486 } 8487 8488 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 8489 internalGetFieldAccessorTable() { 8490 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_fieldAccessorTable 8491 .ensureFieldAccessorsInitialized( 8492 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.class, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder.class); 8493 } 8494 8495 // Construct using com.google.protobuf.DescriptorProtos.FieldDescriptorProto.newBuilder() 8496 private Builder() { 8497 maybeForceBuilderInitialization(); 8498 } 8499 8500 private Builder( 8501 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 8502 super(parent); 8503 maybeForceBuilderInitialization(); 8504 } 8505 private void maybeForceBuilderInitialization() { 8506 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 8507 getOptionsFieldBuilder(); 8508 } 8509 } 8510 private static Builder create() { 8511 return new Builder(); 8512 } 8513 8514 public Builder clear() { 8515 super.clear(); 8516 name_ = ""; 8517 bitField0_ = (bitField0_ & ~0x00000001); 8518 number_ = 0; 8519 bitField0_ = (bitField0_ & ~0x00000002); 8520 label_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.LABEL_OPTIONAL; 8521 bitField0_ = (bitField0_ & ~0x00000004); 8522 type_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE; 8523 bitField0_ = (bitField0_ & ~0x00000008); 8524 typeName_ = ""; 8525 bitField0_ = (bitField0_ & ~0x00000010); 8526 extendee_ = ""; 8527 bitField0_ = (bitField0_ & ~0x00000020); 8528 defaultValue_ = ""; 8529 bitField0_ = (bitField0_ & ~0x00000040); 8530 if (optionsBuilder_ == null) { 8531 options_ = com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance(); 8532 } else { 8533 optionsBuilder_.clear(); 8534 } 8535 bitField0_ = (bitField0_ & ~0x00000080); 8536 return this; 8537 } 8538 8539 public Builder clone() { 8540 return create().mergeFrom(buildPartial()); 8541 } 8542 8543 public com.google.protobuf.Descriptors.Descriptor 8544 getDescriptorForType() { 8545 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_descriptor; 8546 } 8547 8548 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getDefaultInstanceForType() { 8549 return com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance(); 8550 } 8551 8552 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto build() { 8553 com.google.protobuf.DescriptorProtos.FieldDescriptorProto result = buildPartial(); 8554 if (!result.isInitialized()) { 8555 throw newUninitializedMessageException(result); 8556 } 8557 return result; 8558 } 8559 8560 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto buildPartial() { 8561 com.google.protobuf.DescriptorProtos.FieldDescriptorProto result = new com.google.protobuf.DescriptorProtos.FieldDescriptorProto(this); 8562 int from_bitField0_ = bitField0_; 8563 int to_bitField0_ = 0; 8564 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 8565 to_bitField0_ |= 0x00000001; 8566 } 8567 result.name_ = name_; 8568 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 8569 to_bitField0_ |= 0x00000002; 8570 } 8571 result.number_ = number_; 8572 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 8573 to_bitField0_ |= 0x00000004; 8574 } 8575 result.label_ = label_; 8576 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 8577 to_bitField0_ |= 0x00000008; 8578 } 8579 result.type_ = type_; 8580 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 8581 to_bitField0_ |= 0x00000010; 8582 } 8583 result.typeName_ = typeName_; 8584 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 8585 to_bitField0_ |= 0x00000020; 8586 } 8587 result.extendee_ = extendee_; 8588 if (((from_bitField0_ & 0x00000040) == 0x00000040)) { 8589 to_bitField0_ |= 0x00000040; 8590 } 8591 result.defaultValue_ = defaultValue_; 8592 if (((from_bitField0_ & 0x00000080) == 0x00000080)) { 8593 to_bitField0_ |= 0x00000080; 8594 } 8595 if (optionsBuilder_ == null) { 8596 result.options_ = options_; 8597 } else { 8598 result.options_ = optionsBuilder_.build(); 8599 } 8600 result.bitField0_ = to_bitField0_; 8601 onBuilt(); 8602 return result; 8603 } 8604 8605 public Builder mergeFrom(com.google.protobuf.Message other) { 8606 if (other instanceof com.google.protobuf.DescriptorProtos.FieldDescriptorProto) { 8607 return mergeFrom((com.google.protobuf.DescriptorProtos.FieldDescriptorProto)other); 8608 } else { 8609 super.mergeFrom(other); 8610 return this; 8611 } 8612 } 8613 8614 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FieldDescriptorProto other) { 8615 if (other == com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()) return this; 8616 if (other.hasName()) { 8617 bitField0_ |= 0x00000001; 8618 name_ = other.name_; 8619 onChanged(); 8620 } 8621 if (other.hasNumber()) { 8622 setNumber(other.getNumber()); 8623 } 8624 if (other.hasLabel()) { 8625 setLabel(other.getLabel()); 8626 } 8627 if (other.hasType()) { 8628 setType(other.getType()); 8629 } 8630 if (other.hasTypeName()) { 8631 bitField0_ |= 0x00000010; 8632 typeName_ = other.typeName_; 8633 onChanged(); 8634 } 8635 if (other.hasExtendee()) { 8636 bitField0_ |= 0x00000020; 8637 extendee_ = other.extendee_; 8638 onChanged(); 8639 } 8640 if (other.hasDefaultValue()) { 8641 bitField0_ |= 0x00000040; 8642 defaultValue_ = other.defaultValue_; 8643 onChanged(); 8644 } 8645 if (other.hasOptions()) { 8646 mergeOptions(other.getOptions()); 8647 } 8648 this.mergeUnknownFields(other.getUnknownFields()); 8649 return this; 8650 } 8651 8652 public final boolean isInitialized() { 8653 if (hasOptions()) { 8654 if (!getOptions().isInitialized()) { 8655 8656 return false; 8657 } 8658 } 8659 return true; 8660 } 8661 8662 public Builder mergeFrom( 8663 com.google.protobuf.CodedInputStream input, 8664 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8665 throws java.io.IOException { 8666 com.google.protobuf.DescriptorProtos.FieldDescriptorProto parsedMessage = null; 8667 try { 8668 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 8669 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8670 parsedMessage = (com.google.protobuf.DescriptorProtos.FieldDescriptorProto) e.getUnfinishedMessage(); 8671 throw e; 8672 } finally { 8673 if (parsedMessage != null) { 8674 mergeFrom(parsedMessage); 8675 } 8676 } 8677 return this; 8678 } 6020 8679 private int bitField0_; 6021 8680 6022 8681 // optional string name = 1; 6023 8682 private java.lang.Object name_ = ""; 8683 /** 8684 * <code>optional string name = 1;</code> 8685 */ 6024 8686 public boolean hasName() { 6025 8687 return ((bitField0_ & 0x00000001) == 0x00000001); 6026 8688 } 6027 public String getName() { 8689 /** 8690 * <code>optional string name = 1;</code> 8691 */ 8692 public java.lang.String getName() { 6028 8693 java.lang.Object ref = name_; 6029 if (!(ref instanceof String)) { 6030 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 8694 if (!(ref instanceof java.lang.String)) { 8695 java.lang.String s = ((com.google.protobuf.ByteString) ref) 8696 .toStringUtf8(); 6031 8697 name_ = s; 6032 8698 return s; 6033 8699 } else { 6034 return (String) ref; 6035 } 6036 } 6037 public Builder setName(String value) { 8700 return (java.lang.String) ref; 8701 } 8702 } 8703 /** 8704 * <code>optional string name = 1;</code> 8705 */ 8706 public com.google.protobuf.ByteString 8707 getNameBytes() { 8708 java.lang.Object ref = name_; 8709 if (ref instanceof String) { 8710 com.google.protobuf.ByteString b = 8711 com.google.protobuf.ByteString.copyFromUtf8( 8712 (java.lang.String) ref); 8713 name_ = b; 8714 return b; 8715 } else { 8716 return (com.google.protobuf.ByteString) ref; 8717 } 8718 } 8719 /** 8720 * <code>optional string name = 1;</code> 8721 */ 8722 public Builder setName( 8723 java.lang.String value) { 6038 8724 if (value == null) { 6039 8725 throw new NullPointerException(); … … 6044 8730 return this; 6045 8731 } 8732 /** 8733 * <code>optional string name = 1;</code> 8734 */ 6046 8735 public Builder clearName() { 6047 8736 bitField0_ = (bitField0_ & ~0x00000001); … … 6050 8739 return this; 6051 8740 } 6052 void setName(com.google.protobuf.ByteString value) { 6053 bitField0_ |= 0x00000001; 8741 /** 8742 * <code>optional string name = 1;</code> 8743 */ 8744 public Builder setNameBytes( 8745 com.google.protobuf.ByteString value) { 8746 if (value == null) { 8747 throw new NullPointerException(); 8748 } 8749 bitField0_ |= 0x00000001; 6054 8750 name_ = value; 6055 8751 onChanged(); 6056 } 6057 8752 return this; 8753 } 8754 6058 8755 // optional int32 number = 3; 6059 8756 private int number_ ; 8757 /** 8758 * <code>optional int32 number = 3;</code> 8759 */ 6060 8760 public boolean hasNumber() { 6061 8761 return ((bitField0_ & 0x00000002) == 0x00000002); 6062 8762 } 8763 /** 8764 * <code>optional int32 number = 3;</code> 8765 */ 6063 8766 public int getNumber() { 6064 8767 return number_; 6065 8768 } 8769 /** 8770 * <code>optional int32 number = 3;</code> 8771 */ 6066 8772 public Builder setNumber(int value) { 6067 8773 bitField0_ |= 0x00000002; … … 6070 8776 return this; 6071 8777 } 8778 /** 8779 * <code>optional int32 number = 3;</code> 8780 */ 6072 8781 public Builder clearNumber() { 6073 8782 bitField0_ = (bitField0_ & ~0x00000002); … … 6076 8785 return this; 6077 8786 } 6078 8787 6079 8788 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; 6080 8789 private com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label label_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.LABEL_OPTIONAL; 8790 /** 8791 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 8792 */ 6081 8793 public boolean hasLabel() { 6082 8794 return ((bitField0_ & 0x00000004) == 0x00000004); 6083 8795 } 8796 /** 8797 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 8798 */ 6084 8799 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel() { 6085 8800 return label_; 6086 8801 } 8802 /** 8803 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 8804 */ 6087 8805 public Builder setLabel(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label value) { 6088 8806 if (value == null) { … … 6094 8812 return this; 6095 8813 } 8814 /** 8815 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 8816 */ 6096 8817 public Builder clearLabel() { 6097 8818 bitField0_ = (bitField0_ & ~0x00000004); … … 6100 8821 return this; 6101 8822 } 6102 8823 6103 8824 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; 6104 8825 private com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type type_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE; 8826 /** 8827 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 8828 * 8829 * <pre> 8830 * If type_name is set, this need not be set. If both this and type_name 8831 * are set, this must be either TYPE_ENUM or TYPE_MESSAGE. 8832 * </pre> 8833 */ 6105 8834 public boolean hasType() { 6106 8835 return ((bitField0_ & 0x00000008) == 0x00000008); 6107 8836 } 8837 /** 8838 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 8839 * 8840 * <pre> 8841 * If type_name is set, this need not be set. If both this and type_name 8842 * are set, this must be either TYPE_ENUM or TYPE_MESSAGE. 8843 * </pre> 8844 */ 6108 8845 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType() { 6109 8846 return type_; 6110 8847 } 8848 /** 8849 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 8850 * 8851 * <pre> 8852 * If type_name is set, this need not be set. If both this and type_name 8853 * are set, this must be either TYPE_ENUM or TYPE_MESSAGE. 8854 * </pre> 8855 */ 6111 8856 public Builder setType(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type value) { 6112 8857 if (value == null) { … … 6118 8863 return this; 6119 8864 } 8865 /** 8866 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 8867 * 8868 * <pre> 8869 * If type_name is set, this need not be set. If both this and type_name 8870 * are set, this must be either TYPE_ENUM or TYPE_MESSAGE. 8871 * </pre> 8872 */ 6120 8873 public Builder clearType() { 6121 8874 bitField0_ = (bitField0_ & ~0x00000008); … … 6124 8877 return this; 6125 8878 } 6126 8879 6127 8880 // optional string type_name = 6; 6128 8881 private java.lang.Object typeName_ = ""; 8882 /** 8883 * <code>optional string type_name = 6;</code> 8884 * 8885 * <pre> 8886 * For message and enum types, this is the name of the type. If the name 8887 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 8888 * rules are used to find the type (i.e. first the nested types within this 8889 * message are searched, then within the parent, on up to the root 8890 * namespace). 8891 * </pre> 8892 */ 6129 8893 public boolean hasTypeName() { 6130 8894 return ((bitField0_ & 0x00000010) == 0x00000010); 6131 8895 } 6132 public String getTypeName() { 8896 /** 8897 * <code>optional string type_name = 6;</code> 8898 * 8899 * <pre> 8900 * For message and enum types, this is the name of the type. If the name 8901 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 8902 * rules are used to find the type (i.e. first the nested types within this 8903 * message are searched, then within the parent, on up to the root 8904 * namespace). 8905 * </pre> 8906 */ 8907 public java.lang.String getTypeName() { 6133 8908 java.lang.Object ref = typeName_; 6134 if (!(ref instanceof String)) { 6135 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 8909 if (!(ref instanceof java.lang.String)) { 8910 java.lang.String s = ((com.google.protobuf.ByteString) ref) 8911 .toStringUtf8(); 6136 8912 typeName_ = s; 6137 8913 return s; 6138 8914 } else { 6139 return (String) ref; 6140 } 6141 } 6142 public Builder setTypeName(String value) { 8915 return (java.lang.String) ref; 8916 } 8917 } 8918 /** 8919 * <code>optional string type_name = 6;</code> 8920 * 8921 * <pre> 8922 * For message and enum types, this is the name of the type. If the name 8923 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 8924 * rules are used to find the type (i.e. first the nested types within this 8925 * message are searched, then within the parent, on up to the root 8926 * namespace). 8927 * </pre> 8928 */ 8929 public com.google.protobuf.ByteString 8930 getTypeNameBytes() { 8931 java.lang.Object ref = typeName_; 8932 if (ref instanceof String) { 8933 com.google.protobuf.ByteString b = 8934 com.google.protobuf.ByteString.copyFromUtf8( 8935 (java.lang.String) ref); 8936 typeName_ = b; 8937 return b; 8938 } else { 8939 return (com.google.protobuf.ByteString) ref; 8940 } 8941 } 8942 /** 8943 * <code>optional string type_name = 6;</code> 8944 * 8945 * <pre> 8946 * For message and enum types, this is the name of the type. If the name 8947 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 8948 * rules are used to find the type (i.e. first the nested types within this 8949 * message are searched, then within the parent, on up to the root 8950 * namespace). 8951 * </pre> 8952 */ 8953 public Builder setTypeName( 8954 java.lang.String value) { 6143 8955 if (value == null) { 6144 8956 throw new NullPointerException(); … … 6149 8961 return this; 6150 8962 } 8963 /** 8964 * <code>optional string type_name = 6;</code> 8965 * 8966 * <pre> 8967 * For message and enum types, this is the name of the type. If the name 8968 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 8969 * rules are used to find the type (i.e. first the nested types within this 8970 * message are searched, then within the parent, on up to the root 8971 * namespace). 8972 * </pre> 8973 */ 6151 8974 public Builder clearTypeName() { 6152 8975 bitField0_ = (bitField0_ & ~0x00000010); … … 6155 8978 return this; 6156 8979 } 6157 void setTypeName(com.google.protobuf.ByteString value) { 6158 bitField0_ |= 0x00000010; 8980 /** 8981 * <code>optional string type_name = 6;</code> 8982 * 8983 * <pre> 8984 * For message and enum types, this is the name of the type. If the name 8985 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 8986 * rules are used to find the type (i.e. first the nested types within this 8987 * message are searched, then within the parent, on up to the root 8988 * namespace). 8989 * </pre> 8990 */ 8991 public Builder setTypeNameBytes( 8992 com.google.protobuf.ByteString value) { 8993 if (value == null) { 8994 throw new NullPointerException(); 8995 } 8996 bitField0_ |= 0x00000010; 6159 8997 typeName_ = value; 6160 8998 onChanged(); 6161 } 6162 8999 return this; 9000 } 9001 6163 9002 // optional string extendee = 2; 6164 9003 private java.lang.Object extendee_ = ""; 9004 /** 9005 * <code>optional string extendee = 2;</code> 9006 * 9007 * <pre> 9008 * For extensions, this is the name of the type being extended. It is 9009 * resolved in the same manner as type_name. 9010 * </pre> 9011 */ 6165 9012 public boolean hasExtendee() { 6166 9013 return ((bitField0_ & 0x00000020) == 0x00000020); 6167 9014 } 6168 public String getExtendee() { 9015 /** 9016 * <code>optional string extendee = 2;</code> 9017 * 9018 * <pre> 9019 * For extensions, this is the name of the type being extended. It is 9020 * resolved in the same manner as type_name. 9021 * </pre> 9022 */ 9023 public java.lang.String getExtendee() { 6169 9024 java.lang.Object ref = extendee_; 6170 if (!(ref instanceof String)) { 6171 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 9025 if (!(ref instanceof java.lang.String)) { 9026 java.lang.String s = ((com.google.protobuf.ByteString) ref) 9027 .toStringUtf8(); 6172 9028 extendee_ = s; 6173 9029 return s; 6174 9030 } else { 6175 return (String) ref; 6176 } 6177 } 6178 public Builder setExtendee(String value) { 9031 return (java.lang.String) ref; 9032 } 9033 } 9034 /** 9035 * <code>optional string extendee = 2;</code> 9036 * 9037 * <pre> 9038 * For extensions, this is the name of the type being extended. It is 9039 * resolved in the same manner as type_name. 9040 * </pre> 9041 */ 9042 public com.google.protobuf.ByteString 9043 getExtendeeBytes() { 9044 java.lang.Object ref = extendee_; 9045 if (ref instanceof String) { 9046 com.google.protobuf.ByteString b = 9047 com.google.protobuf.ByteString.copyFromUtf8( 9048 (java.lang.String) ref); 9049 extendee_ = b; 9050 return b; 9051 } else { 9052 return (com.google.protobuf.ByteString) ref; 9053 } 9054 } 9055 /** 9056 * <code>optional string extendee = 2;</code> 9057 * 9058 * <pre> 9059 * For extensions, this is the name of the type being extended. It is 9060 * resolved in the same manner as type_name. 9061 * </pre> 9062 */ 9063 public Builder setExtendee( 9064 java.lang.String value) { 6179 9065 if (value == null) { 6180 9066 throw new NullPointerException(); … … 6185 9071 return this; 6186 9072 } 9073 /** 9074 * <code>optional string extendee = 2;</code> 9075 * 9076 * <pre> 9077 * For extensions, this is the name of the type being extended. It is 9078 * resolved in the same manner as type_name. 9079 * </pre> 9080 */ 6187 9081 public Builder clearExtendee() { 6188 9082 bitField0_ = (bitField0_ & ~0x00000020); … … 6191 9085 return this; 6192 9086 } 6193 void setExtendee(com.google.protobuf.ByteString value) { 6194 bitField0_ |= 0x00000020; 9087 /** 9088 * <code>optional string extendee = 2;</code> 9089 * 9090 * <pre> 9091 * For extensions, this is the name of the type being extended. It is 9092 * resolved in the same manner as type_name. 9093 * </pre> 9094 */ 9095 public Builder setExtendeeBytes( 9096 com.google.protobuf.ByteString value) { 9097 if (value == null) { 9098 throw new NullPointerException(); 9099 } 9100 bitField0_ |= 0x00000020; 6195 9101 extendee_ = value; 6196 9102 onChanged(); 6197 } 6198 9103 return this; 9104 } 9105 6199 9106 // optional string default_value = 7; 6200 9107 private java.lang.Object defaultValue_ = ""; 9108 /** 9109 * <code>optional string default_value = 7;</code> 9110 * 9111 * <pre> 9112 * For numeric types, contains the original text representation of the value. 9113 * For booleans, "true" or "false". 9114 * For strings, contains the default text contents (not escaped in any way). 9115 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 9116 * TODO(kenton): Base-64 encode? 9117 * </pre> 9118 */ 6201 9119 public boolean hasDefaultValue() { 6202 9120 return ((bitField0_ & 0x00000040) == 0x00000040); 6203 9121 } 6204 public String getDefaultValue() { 9122 /** 9123 * <code>optional string default_value = 7;</code> 9124 * 9125 * <pre> 9126 * For numeric types, contains the original text representation of the value. 9127 * For booleans, "true" or "false". 9128 * For strings, contains the default text contents (not escaped in any way). 9129 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 9130 * TODO(kenton): Base-64 encode? 9131 * </pre> 9132 */ 9133 public java.lang.String getDefaultValue() { 6205 9134 java.lang.Object ref = defaultValue_; 6206 if (!(ref instanceof String)) { 6207 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 9135 if (!(ref instanceof java.lang.String)) { 9136 java.lang.String s = ((com.google.protobuf.ByteString) ref) 9137 .toStringUtf8(); 6208 9138 defaultValue_ = s; 6209 9139 return s; 6210 9140 } else { 6211 return (String) ref; 6212 } 6213 } 6214 public Builder setDefaultValue(String value) { 9141 return (java.lang.String) ref; 9142 } 9143 } 9144 /** 9145 * <code>optional string default_value = 7;</code> 9146 * 9147 * <pre> 9148 * For numeric types, contains the original text representation of the value. 9149 * For booleans, "true" or "false". 9150 * For strings, contains the default text contents (not escaped in any way). 9151 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 9152 * TODO(kenton): Base-64 encode? 9153 * </pre> 9154 */ 9155 public com.google.protobuf.ByteString 9156 getDefaultValueBytes() { 9157 java.lang.Object ref = defaultValue_; 9158 if (ref instanceof String) { 9159 com.google.protobuf.ByteString b = 9160 com.google.protobuf.ByteString.copyFromUtf8( 9161 (java.lang.String) ref); 9162 defaultValue_ = b; 9163 return b; 9164 } else { 9165 return (com.google.protobuf.ByteString) ref; 9166 } 9167 } 9168 /** 9169 * <code>optional string default_value = 7;</code> 9170 * 9171 * <pre> 9172 * For numeric types, contains the original text representation of the value. 9173 * For booleans, "true" or "false". 9174 * For strings, contains the default text contents (not escaped in any way). 9175 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 9176 * TODO(kenton): Base-64 encode? 9177 * </pre> 9178 */ 9179 public Builder setDefaultValue( 9180 java.lang.String value) { 6215 9181 if (value == null) { 6216 9182 throw new NullPointerException(); … … 6221 9187 return this; 6222 9188 } 9189 /** 9190 * <code>optional string default_value = 7;</code> 9191 * 9192 * <pre> 9193 * For numeric types, contains the original text representation of the value. 9194 * For booleans, "true" or "false". 9195 * For strings, contains the default text contents (not escaped in any way). 9196 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 9197 * TODO(kenton): Base-64 encode? 9198 * </pre> 9199 */ 6223 9200 public Builder clearDefaultValue() { 6224 9201 bitField0_ = (bitField0_ & ~0x00000040); … … 6227 9204 return this; 6228 9205 } 6229 void setDefaultValue(com.google.protobuf.ByteString value) { 6230 bitField0_ |= 0x00000040; 9206 /** 9207 * <code>optional string default_value = 7;</code> 9208 * 9209 * <pre> 9210 * For numeric types, contains the original text representation of the value. 9211 * For booleans, "true" or "false". 9212 * For strings, contains the default text contents (not escaped in any way). 9213 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 9214 * TODO(kenton): Base-64 encode? 9215 * </pre> 9216 */ 9217 public Builder setDefaultValueBytes( 9218 com.google.protobuf.ByteString value) { 9219 if (value == null) { 9220 throw new NullPointerException(); 9221 } 9222 bitField0_ |= 0x00000040; 6231 9223 defaultValue_ = value; 6232 9224 onChanged(); 6233 } 6234 9225 return this; 9226 } 9227 6235 9228 // optional .google.protobuf.FieldOptions options = 8; 6236 9229 private com.google.protobuf.DescriptorProtos.FieldOptions options_ = com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance(); 6237 9230 private com.google.protobuf.SingleFieldBuilder< 6238 9231 com.google.protobuf.DescriptorProtos.FieldOptions, com.google.protobuf.DescriptorProtos.FieldOptions.Builder, com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder> optionsBuilder_; 9232 /** 9233 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 9234 */ 6239 9235 public boolean hasOptions() { 6240 9236 return ((bitField0_ & 0x00000080) == 0x00000080); 6241 9237 } 9238 /** 9239 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 9240 */ 6242 9241 public com.google.protobuf.DescriptorProtos.FieldOptions getOptions() { 6243 9242 if (optionsBuilder_ == null) { … … 6247 9246 } 6248 9247 } 9248 /** 9249 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 9250 */ 6249 9251 public Builder setOptions(com.google.protobuf.DescriptorProtos.FieldOptions value) { 6250 9252 if (optionsBuilder_ == null) { … … 6260 9262 return this; 6261 9263 } 9264 /** 9265 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 9266 */ 6262 9267 public Builder setOptions( 6263 9268 com.google.protobuf.DescriptorProtos.FieldOptions.Builder builderForValue) { … … 6271 9276 return this; 6272 9277 } 9278 /** 9279 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 9280 */ 6273 9281 public Builder mergeOptions(com.google.protobuf.DescriptorProtos.FieldOptions value) { 6274 9282 if (optionsBuilder_ == null) { … … 6287 9295 return this; 6288 9296 } 9297 /** 9298 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 9299 */ 6289 9300 public Builder clearOptions() { 6290 9301 if (optionsBuilder_ == null) { … … 6297 9308 return this; 6298 9309 } 9310 /** 9311 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 9312 */ 6299 9313 public com.google.protobuf.DescriptorProtos.FieldOptions.Builder getOptionsBuilder() { 6300 9314 bitField0_ |= 0x00000080; … … 6302 9316 return getOptionsFieldBuilder().getBuilder(); 6303 9317 } 9318 /** 9319 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 9320 */ 6304 9321 public com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder() { 6305 9322 if (optionsBuilder_ != null) { … … 6309 9326 } 6310 9327 } 9328 /** 9329 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 9330 */ 6311 9331 private com.google.protobuf.SingleFieldBuilder< 6312 9332 com.google.protobuf.DescriptorProtos.FieldOptions, com.google.protobuf.DescriptorProtos.FieldOptions.Builder, com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder> … … 6322 9342 return optionsBuilder_; 6323 9343 } 6324 9344 6325 9345 // @@protoc_insertion_point(builder_scope:google.protobuf.FieldDescriptorProto) 6326 9346 } 6327 9347 6328 9348 static { 6329 9349 defaultInstance = new FieldDescriptorProto(true); 6330 9350 defaultInstance.initFields(); 6331 9351 } 6332 9352 6333 9353 // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto) 6334 9354 } 6335 9355 6336 9356 public interface EnumDescriptorProtoOrBuilder 6337 9357 extends com.google.protobuf.MessageOrBuilder { 6338 9358 6339 9359 // optional string name = 1; 9360 /** 9361 * <code>optional string name = 1;</code> 9362 */ 6340 9363 boolean hasName(); 6341 String getName(); 6342 9364 /** 9365 * <code>optional string name = 1;</code> 9366 */ 9367 java.lang.String getName(); 9368 /** 9369 * <code>optional string name = 1;</code> 9370 */ 9371 com.google.protobuf.ByteString 9372 getNameBytes(); 9373 6343 9374 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; 9375 /** 9376 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 9377 */ 6344 9378 java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> 6345 9379 getValueList(); 9380 /** 9381 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 9382 */ 6346 9383 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getValue(int index); 9384 /** 9385 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 9386 */ 6347 9387 int getValueCount(); 9388 /** 9389 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 9390 */ 6348 9391 java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> 6349 9392 getValueOrBuilderList(); 9393 /** 9394 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 9395 */ 6350 9396 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder( 6351 9397 int index); 6352 9398 6353 9399 // optional .google.protobuf.EnumOptions options = 3; 9400 /** 9401 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 9402 */ 6354 9403 boolean hasOptions(); 9404 /** 9405 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 9406 */ 6355 9407 com.google.protobuf.DescriptorProtos.EnumOptions getOptions(); 9408 /** 9409 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 9410 */ 6356 9411 com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder(); 6357 9412 } 9413 /** 9414 * Protobuf type {@code google.protobuf.EnumDescriptorProto} 9415 * 9416 * <pre> 9417 * Describes an enum type. 9418 * </pre> 9419 */ 6358 9420 public static final class EnumDescriptorProto extends 6359 9421 com.google.protobuf.GeneratedMessage 6360 9422 implements EnumDescriptorProtoOrBuilder { 6361 9423 // Use EnumDescriptorProto.newBuilder() to construct. 6362 private EnumDescriptorProto( Builderbuilder) {9424 private EnumDescriptorProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 6363 9425 super(builder); 6364 } 6365 private EnumDescriptorProto(boolean noInit) {} 6366 9426 this.unknownFields = builder.getUnknownFields(); 9427 } 9428 private EnumDescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 9429 6367 9430 private static final EnumDescriptorProto defaultInstance; 6368 9431 public static EnumDescriptorProto getDefaultInstance() { 6369 9432 return defaultInstance; 6370 9433 } 6371 9434 6372 9435 public EnumDescriptorProto getDefaultInstanceForType() { 6373 9436 return defaultInstance; 6374 9437 } 6375 9438 9439 private final com.google.protobuf.UnknownFieldSet unknownFields; 9440 @java.lang.Override 9441 public final com.google.protobuf.UnknownFieldSet 9442 getUnknownFields() { 9443 return this.unknownFields; 9444 } 9445 private EnumDescriptorProto( 9446 com.google.protobuf.CodedInputStream input, 9447 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9448 throws com.google.protobuf.InvalidProtocolBufferException { 9449 initFields(); 9450 int mutable_bitField0_ = 0; 9451 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 9452 com.google.protobuf.UnknownFieldSet.newBuilder(); 9453 try { 9454 boolean done = false; 9455 while (!done) { 9456 int tag = input.readTag(); 9457 switch (tag) { 9458 case 0: 9459 done = true; 9460 break; 9461 default: { 9462 if (!parseUnknownField(input, unknownFields, 9463 extensionRegistry, tag)) { 9464 done = true; 9465 } 9466 break; 9467 } 9468 case 10: { 9469 bitField0_ |= 0x00000001; 9470 name_ = input.readBytes(); 9471 break; 9472 } 9473 case 18: { 9474 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 9475 value_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto>(); 9476 mutable_bitField0_ |= 0x00000002; 9477 } 9478 value_.add(input.readMessage(com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.PARSER, extensionRegistry)); 9479 break; 9480 } 9481 case 26: { 9482 com.google.protobuf.DescriptorProtos.EnumOptions.Builder subBuilder = null; 9483 if (((bitField0_ & 0x00000002) == 0x00000002)) { 9484 subBuilder = options_.toBuilder(); 9485 } 9486 options_ = input.readMessage(com.google.protobuf.DescriptorProtos.EnumOptions.PARSER, extensionRegistry); 9487 if (subBuilder != null) { 9488 subBuilder.mergeFrom(options_); 9489 options_ = subBuilder.buildPartial(); 9490 } 9491 bitField0_ |= 0x00000002; 9492 break; 9493 } 9494 } 9495 } 9496 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9497 throw e.setUnfinishedMessage(this); 9498 } catch (java.io.IOException e) { 9499 throw new com.google.protobuf.InvalidProtocolBufferException( 9500 e.getMessage()).setUnfinishedMessage(this); 9501 } finally { 9502 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 9503 value_ = java.util.Collections.unmodifiableList(value_); 9504 } 9505 this.unknownFields = unknownFields.build(); 9506 makeExtensionsImmutable(); 9507 } 9508 } 6376 9509 public static final com.google.protobuf.Descriptors.Descriptor 6377 9510 getDescriptor() { 6378 9511 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_descriptor; 6379 9512 } 6380 9513 6381 9514 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 6382 9515 internalGetFieldAccessorTable() { 6383 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_fieldAccessorTable; 6384 } 6385 9516 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_fieldAccessorTable 9517 .ensureFieldAccessorsInitialized( 9518 com.google.protobuf.DescriptorProtos.EnumDescriptorProto.class, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder.class); 9519 } 9520 9521 public static com.google.protobuf.Parser<EnumDescriptorProto> PARSER = 9522 new com.google.protobuf.AbstractParser<EnumDescriptorProto>() { 9523 public EnumDescriptorProto parsePartialFrom( 9524 com.google.protobuf.CodedInputStream input, 9525 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9526 throws com.google.protobuf.InvalidProtocolBufferException { 9527 return new EnumDescriptorProto(input, extensionRegistry); 9528 } 9529 }; 9530 9531 @java.lang.Override 9532 public com.google.protobuf.Parser<EnumDescriptorProto> getParserForType() { 9533 return PARSER; 9534 } 9535 6386 9536 private int bitField0_; 6387 9537 // optional string name = 1; 6388 9538 public static final int NAME_FIELD_NUMBER = 1; 6389 9539 private java.lang.Object name_; 9540 /** 9541 * <code>optional string name = 1;</code> 9542 */ 6390 9543 public boolean hasName() { 6391 9544 return ((bitField0_ & 0x00000001) == 0x00000001); 6392 9545 } 6393 public String getName() { 9546 /** 9547 * <code>optional string name = 1;</code> 9548 */ 9549 public java.lang.String getName() { 6394 9550 java.lang.Object ref = name_; 6395 if (ref instanceof String) {6396 return ( String) ref;9551 if (ref instanceof java.lang.String) { 9552 return (java.lang.String) ref; 6397 9553 } else { 6398 9554 com.google.protobuf.ByteString bs = 6399 9555 (com.google.protobuf.ByteString) ref; 6400 String s = bs.toStringUtf8();6401 if ( com.google.protobuf.Internal.isValidUtf8(bs)) {9556 java.lang.String s = bs.toStringUtf8(); 9557 if (bs.isValidUtf8()) { 6402 9558 name_ = s; 6403 9559 } … … 6405 9561 } 6406 9562 } 6407 private com.google.protobuf.ByteString getNameBytes() { 9563 /** 9564 * <code>optional string name = 1;</code> 9565 */ 9566 public com.google.protobuf.ByteString 9567 getNameBytes() { 6408 9568 java.lang.Object ref = name_; 6409 if (ref instanceof String) {9569 if (ref instanceof java.lang.String) { 6410 9570 com.google.protobuf.ByteString b = 6411 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 9571 com.google.protobuf.ByteString.copyFromUtf8( 9572 (java.lang.String) ref); 6412 9573 name_ = b; 6413 9574 return b; … … 6416 9577 } 6417 9578 } 6418 9579 6419 9580 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; 6420 9581 public static final int VALUE_FIELD_NUMBER = 2; 6421 9582 private java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> value_; 9583 /** 9584 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 9585 */ 6422 9586 public java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> getValueList() { 6423 9587 return value_; 6424 9588 } 9589 /** 9590 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 9591 */ 6425 9592 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> 6426 9593 getValueOrBuilderList() { 6427 9594 return value_; 6428 9595 } 9596 /** 9597 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 9598 */ 6429 9599 public int getValueCount() { 6430 9600 return value_.size(); 6431 9601 } 9602 /** 9603 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 9604 */ 6432 9605 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getValue(int index) { 6433 9606 return value_.get(index); 6434 9607 } 9608 /** 9609 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 9610 */ 6435 9611 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder( 6436 9612 int index) { 6437 9613 return value_.get(index); 6438 9614 } 6439 9615 6440 9616 // optional .google.protobuf.EnumOptions options = 3; 6441 9617 public static final int OPTIONS_FIELD_NUMBER = 3; 6442 9618 private com.google.protobuf.DescriptorProtos.EnumOptions options_; 9619 /** 9620 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 9621 */ 6443 9622 public boolean hasOptions() { 6444 9623 return ((bitField0_ & 0x00000002) == 0x00000002); 6445 9624 } 9625 /** 9626 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 9627 */ 6446 9628 public com.google.protobuf.DescriptorProtos.EnumOptions getOptions() { 6447 9629 return options_; 6448 9630 } 9631 /** 9632 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 9633 */ 6449 9634 public com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder() { 6450 9635 return options_; 6451 9636 } 6452 9637 6453 9638 private void initFields() { 6454 9639 name_ = ""; … … 6460 9645 byte isInitialized = memoizedIsInitialized; 6461 9646 if (isInitialized != -1) return isInitialized == 1; 6462 9647 6463 9648 for (int i = 0; i < getValueCount(); i++) { 6464 9649 if (!getValue(i).isInitialized()) { … … 6476 9661 return true; 6477 9662 } 6478 9663 6479 9664 public void writeTo(com.google.protobuf.CodedOutputStream output) 6480 9665 throws java.io.IOException { … … 6491 9676 getUnknownFields().writeTo(output); 6492 9677 } 6493 9678 6494 9679 private int memoizedSerializedSize = -1; 6495 9680 public int getSerializedSize() { 6496 9681 int size = memoizedSerializedSize; 6497 9682 if (size != -1) return size; 6498 9683 6499 9684 size = 0; 6500 9685 if (((bitField0_ & 0x00000001) == 0x00000001)) { … … 6514 9699 return size; 6515 9700 } 6516 9701 6517 9702 private static final long serialVersionUID = 0L; 6518 9703 @java.lang.Override … … 6521 9706 return super.writeReplace(); 6522 9707 } 6523 9708 6524 9709 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( 6525 9710 com.google.protobuf.ByteString data) 6526 9711 throws com.google.protobuf.InvalidProtocolBufferException { 6527 return newBuilder().mergeFrom(data).buildParsed();9712 return PARSER.parseFrom(data); 6528 9713 } 6529 9714 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( … … 6531 9716 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6532 9717 throws com.google.protobuf.InvalidProtocolBufferException { 6533 return newBuilder().mergeFrom(data, extensionRegistry) 6534 .buildParsed(); 9718 return PARSER.parseFrom(data, extensionRegistry); 6535 9719 } 6536 9720 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom(byte[] data) 6537 9721 throws com.google.protobuf.InvalidProtocolBufferException { 6538 return newBuilder().mergeFrom(data).buildParsed();9722 return PARSER.parseFrom(data); 6539 9723 } 6540 9724 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( … … 6542 9726 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6543 9727 throws com.google.protobuf.InvalidProtocolBufferException { 6544 return newBuilder().mergeFrom(data, extensionRegistry) 6545 .buildParsed(); 9728 return PARSER.parseFrom(data, extensionRegistry); 6546 9729 } 6547 9730 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom(java.io.InputStream input) 6548 9731 throws java.io.IOException { 6549 return newBuilder().mergeFrom(input).buildParsed();9732 return PARSER.parseFrom(input); 6550 9733 } 6551 9734 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( … … 6553 9736 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6554 9737 throws java.io.IOException { 6555 return newBuilder().mergeFrom(input, extensionRegistry) 6556 .buildParsed(); 9738 return PARSER.parseFrom(input, extensionRegistry); 6557 9739 } 6558 9740 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseDelimitedFrom(java.io.InputStream input) 6559 9741 throws java.io.IOException { 6560 Builder builder = newBuilder(); 6561 if (builder.mergeDelimitedFrom(input)) { 6562 return builder.buildParsed(); 6563 } else { 6564 return null; 6565 } 9742 return PARSER.parseDelimitedFrom(input); 6566 9743 } 6567 9744 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseDelimitedFrom( … … 6569 9746 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6570 9747 throws java.io.IOException { 6571 Builder builder = newBuilder(); 6572 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 6573 return builder.buildParsed(); 6574 } else { 6575 return null; 6576 } 9748 return PARSER.parseDelimitedFrom(input, extensionRegistry); 6577 9749 } 6578 9750 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( 6579 9751 com.google.protobuf.CodedInputStream input) 6580 9752 throws java.io.IOException { 6581 return newBuilder().mergeFrom(input).buildParsed();9753 return PARSER.parseFrom(input); 6582 9754 } 6583 9755 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( … … 6585 9757 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6586 9758 throws java.io.IOException { 6587 return newBuilder().mergeFrom(input, extensionRegistry) 6588 .buildParsed(); 6589 } 6590 9759 return PARSER.parseFrom(input, extensionRegistry); 9760 } 9761 6591 9762 public static Builder newBuilder() { return Builder.create(); } 6592 9763 public Builder newBuilderForType() { return newBuilder(); } … … 6595 9766 } 6596 9767 public Builder toBuilder() { return newBuilder(this); } 6597 9768 6598 9769 @java.lang.Override 6599 9770 protected Builder newBuilderForType( … … 6602 9773 return builder; 6603 9774 } 9775 /** 9776 * Protobuf type {@code google.protobuf.EnumDescriptorProto} 9777 * 9778 * <pre> 9779 * Describes an enum type. 9780 * </pre> 9781 */ 6604 9782 public static final class Builder extends 6605 9783 com.google.protobuf.GeneratedMessage.Builder<Builder> … … 6609 9787 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_descriptor; 6610 9788 } 6611 9789 6612 9790 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 6613 9791 internalGetFieldAccessorTable() { 6614 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_fieldAccessorTable; 6615 } 6616 9792 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_fieldAccessorTable 9793 .ensureFieldAccessorsInitialized( 9794 com.google.protobuf.DescriptorProtos.EnumDescriptorProto.class, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder.class); 9795 } 9796 6617 9797 // Construct using com.google.protobuf.DescriptorProtos.EnumDescriptorProto.newBuilder() 6618 9798 private Builder() { 6619 9799 maybeForceBuilderInitialization(); 6620 9800 } 6621 6622 private Builder(BuilderParent parent) { 9801 9802 private Builder( 9803 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 6623 9804 super(parent); 6624 9805 maybeForceBuilderInitialization(); … … 6633 9814 return new Builder(); 6634 9815 } 6635 9816 6636 9817 public Builder clear() { 6637 9818 super.clear(); … … 6652 9833 return this; 6653 9834 } 6654 9835 6655 9836 public Builder clone() { 6656 9837 return create().mergeFrom(buildPartial()); 6657 9838 } 6658 9839 6659 9840 public com.google.protobuf.Descriptors.Descriptor 6660 9841 getDescriptorForType() { 6661 return com.google.protobuf.DescriptorProtos. EnumDescriptorProto.getDescriptor();6662 } 6663 9842 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_descriptor; 9843 } 9844 6664 9845 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getDefaultInstanceForType() { 6665 9846 return com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance(); 6666 9847 } 6667 9848 6668 9849 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto build() { 6669 9850 com.google.protobuf.DescriptorProtos.EnumDescriptorProto result = buildPartial(); … … 6673 9854 return result; 6674 9855 } 6675 6676 private com.google.protobuf.DescriptorProtos.EnumDescriptorProto buildParsed() 6677 throws com.google.protobuf.InvalidProtocolBufferException { 6678 com.google.protobuf.DescriptorProtos.EnumDescriptorProto result = buildPartial(); 6679 if (!result.isInitialized()) { 6680 throw newUninitializedMessageException( 6681 result).asInvalidProtocolBufferException(); 6682 } 6683 return result; 6684 } 6685 9856 6686 9857 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto buildPartial() { 6687 9858 com.google.protobuf.DescriptorProtos.EnumDescriptorProto result = new com.google.protobuf.DescriptorProtos.EnumDescriptorProto(this); … … 6713 9884 return result; 6714 9885 } 6715 9886 6716 9887 public Builder mergeFrom(com.google.protobuf.Message other) { 6717 9888 if (other instanceof com.google.protobuf.DescriptorProtos.EnumDescriptorProto) { … … 6722 9893 } 6723 9894 } 6724 9895 6725 9896 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.EnumDescriptorProto other) { 6726 9897 if (other == com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()) return this; 6727 9898 if (other.hasName()) { 6728 setName(other.getName()); 9899 bitField0_ |= 0x00000001; 9900 name_ = other.name_; 9901 onChanged(); 6729 9902 } 6730 9903 if (valueBuilder_ == null) { … … 6760 9933 return this; 6761 9934 } 6762 9935 6763 9936 public final boolean isInitialized() { 6764 9937 for (int i = 0; i < getValueCount(); i++) { … … 6776 9949 return true; 6777 9950 } 6778 9951 6779 9952 public Builder mergeFrom( 6780 9953 com.google.protobuf.CodedInputStream input, 6781 9954 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6782 9955 throws java.io.IOException { 6783 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 6784 com.google.protobuf.UnknownFieldSet.newBuilder( 6785 this.getUnknownFields()); 6786 while (true) { 6787 int tag = input.readTag(); 6788 switch (tag) { 6789 case 0: 6790 this.setUnknownFields(unknownFields.build()); 6791 onChanged(); 6792 return this; 6793 default: { 6794 if (!parseUnknownField(input, unknownFields, 6795 extensionRegistry, tag)) { 6796 this.setUnknownFields(unknownFields.build()); 6797 onChanged(); 6798 return this; 6799 } 6800 break; 6801 } 6802 case 10: { 6803 bitField0_ |= 0x00000001; 6804 name_ = input.readBytes(); 6805 break; 6806 } 6807 case 18: { 6808 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.newBuilder(); 6809 input.readMessage(subBuilder, extensionRegistry); 6810 addValue(subBuilder.buildPartial()); 6811 break; 6812 } 6813 case 26: { 6814 com.google.protobuf.DescriptorProtos.EnumOptions.Builder subBuilder = com.google.protobuf.DescriptorProtos.EnumOptions.newBuilder(); 6815 if (hasOptions()) { 6816 subBuilder.mergeFrom(getOptions()); 6817 } 6818 input.readMessage(subBuilder, extensionRegistry); 6819 setOptions(subBuilder.buildPartial()); 6820 break; 6821 } 9956 com.google.protobuf.DescriptorProtos.EnumDescriptorProto parsedMessage = null; 9957 try { 9958 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 9959 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9960 parsedMessage = (com.google.protobuf.DescriptorProtos.EnumDescriptorProto) e.getUnfinishedMessage(); 9961 throw e; 9962 } finally { 9963 if (parsedMessage != null) { 9964 mergeFrom(parsedMessage); 6822 9965 } 6823 9966 } 6824 }6825 9967 return this; 9968 } 6826 9969 private int bitField0_; 6827 9970 6828 9971 // optional string name = 1; 6829 9972 private java.lang.Object name_ = ""; 9973 /** 9974 * <code>optional string name = 1;</code> 9975 */ 6830 9976 public boolean hasName() { 6831 9977 return ((bitField0_ & 0x00000001) == 0x00000001); 6832 9978 } 6833 public String getName() { 9979 /** 9980 * <code>optional string name = 1;</code> 9981 */ 9982 public java.lang.String getName() { 6834 9983 java.lang.Object ref = name_; 6835 if (!(ref instanceof String)) { 6836 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 9984 if (!(ref instanceof java.lang.String)) { 9985 java.lang.String s = ((com.google.protobuf.ByteString) ref) 9986 .toStringUtf8(); 6837 9987 name_ = s; 6838 9988 return s; 6839 9989 } else { 6840 return (String) ref; 6841 } 6842 } 6843 public Builder setName(String value) { 9990 return (java.lang.String) ref; 9991 } 9992 } 9993 /** 9994 * <code>optional string name = 1;</code> 9995 */ 9996 public com.google.protobuf.ByteString 9997 getNameBytes() { 9998 java.lang.Object ref = name_; 9999 if (ref instanceof String) { 10000 com.google.protobuf.ByteString b = 10001 com.google.protobuf.ByteString.copyFromUtf8( 10002 (java.lang.String) ref); 10003 name_ = b; 10004 return b; 10005 } else { 10006 return (com.google.protobuf.ByteString) ref; 10007 } 10008 } 10009 /** 10010 * <code>optional string name = 1;</code> 10011 */ 10012 public Builder setName( 10013 java.lang.String value) { 6844 10014 if (value == null) { 6845 10015 throw new NullPointerException(); … … 6850 10020 return this; 6851 10021 } 10022 /** 10023 * <code>optional string name = 1;</code> 10024 */ 6852 10025 public Builder clearName() { 6853 10026 bitField0_ = (bitField0_ & ~0x00000001); … … 6856 10029 return this; 6857 10030 } 6858 void setName(com.google.protobuf.ByteString value) { 6859 bitField0_ |= 0x00000001; 10031 /** 10032 * <code>optional string name = 1;</code> 10033 */ 10034 public Builder setNameBytes( 10035 com.google.protobuf.ByteString value) { 10036 if (value == null) { 10037 throw new NullPointerException(); 10038 } 10039 bitField0_ |= 0x00000001; 6860 10040 name_ = value; 6861 10041 onChanged(); 6862 } 6863 10042 return this; 10043 } 10044 6864 10045 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; 6865 10046 private java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> value_ = … … 6871 10052 } 6872 10053 } 6873 10054 6874 10055 private com.google.protobuf.RepeatedFieldBuilder< 6875 10056 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> valueBuilder_; 6876 10057 10058 /** 10059 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10060 */ 6877 10061 public java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> getValueList() { 6878 10062 if (valueBuilder_ == null) { … … 6882 10066 } 6883 10067 } 10068 /** 10069 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10070 */ 6884 10071 public int getValueCount() { 6885 10072 if (valueBuilder_ == null) { … … 6889 10076 } 6890 10077 } 10078 /** 10079 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10080 */ 6891 10081 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getValue(int index) { 6892 10082 if (valueBuilder_ == null) { … … 6896 10086 } 6897 10087 } 10088 /** 10089 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10090 */ 6898 10091 public Builder setValue( 6899 10092 int index, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto value) { … … 6910 10103 return this; 6911 10104 } 10105 /** 10106 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10107 */ 6912 10108 public Builder setValue( 6913 10109 int index, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) { … … 6921 10117 return this; 6922 10118 } 10119 /** 10120 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10121 */ 6923 10122 public Builder addValue(com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto value) { 6924 10123 if (valueBuilder_ == null) { … … 6934 10133 return this; 6935 10134 } 10135 /** 10136 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10137 */ 6936 10138 public Builder addValue( 6937 10139 int index, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto value) { … … 6948 10150 return this; 6949 10151 } 10152 /** 10153 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10154 */ 6950 10155 public Builder addValue( 6951 10156 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) { … … 6959 10164 return this; 6960 10165 } 10166 /** 10167 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10168 */ 6961 10169 public Builder addValue( 6962 10170 int index, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) { … … 6970 10178 return this; 6971 10179 } 10180 /** 10181 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10182 */ 6972 10183 public Builder addAllValue( 6973 10184 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> values) { … … 6981 10192 return this; 6982 10193 } 10194 /** 10195 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10196 */ 6983 10197 public Builder clearValue() { 6984 10198 if (valueBuilder_ == null) { … … 6991 10205 return this; 6992 10206 } 10207 /** 10208 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10209 */ 6993 10210 public Builder removeValue(int index) { 6994 10211 if (valueBuilder_ == null) { … … 7001 10218 return this; 7002 10219 } 10220 /** 10221 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10222 */ 7003 10223 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder getValueBuilder( 7004 10224 int index) { 7005 10225 return getValueFieldBuilder().getBuilder(index); 7006 10226 } 10227 /** 10228 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10229 */ 7007 10230 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder( 7008 10231 int index) { … … 7012 10235 } 7013 10236 } 10237 /** 10238 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10239 */ 7014 10240 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> 7015 10241 getValueOrBuilderList() { … … 7020 10246 } 7021 10247 } 10248 /** 10249 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10250 */ 7022 10251 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder addValueBuilder() { 7023 10252 return getValueFieldBuilder().addBuilder( 7024 10253 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.getDefaultInstance()); 7025 10254 } 10255 /** 10256 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10257 */ 7026 10258 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder addValueBuilder( 7027 10259 int index) { … … 7029 10261 index, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.getDefaultInstance()); 7030 10262 } 10263 /** 10264 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10265 */ 7031 10266 public java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder> 7032 10267 getValueBuilderList() { … … 7047 10282 return valueBuilder_; 7048 10283 } 7049 10284 7050 10285 // optional .google.protobuf.EnumOptions options = 3; 7051 10286 private com.google.protobuf.DescriptorProtos.EnumOptions options_ = com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance(); 7052 10287 private com.google.protobuf.SingleFieldBuilder< 7053 10288 com.google.protobuf.DescriptorProtos.EnumOptions, com.google.protobuf.DescriptorProtos.EnumOptions.Builder, com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder> optionsBuilder_; 10289 /** 10290 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 10291 */ 7054 10292 public boolean hasOptions() { 7055 10293 return ((bitField0_ & 0x00000004) == 0x00000004); 7056 10294 } 10295 /** 10296 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 10297 */ 7057 10298 public com.google.protobuf.DescriptorProtos.EnumOptions getOptions() { 7058 10299 if (optionsBuilder_ == null) { … … 7062 10303 } 7063 10304 } 10305 /** 10306 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 10307 */ 7064 10308 public Builder setOptions(com.google.protobuf.DescriptorProtos.EnumOptions value) { 7065 10309 if (optionsBuilder_ == null) { … … 7075 10319 return this; 7076 10320 } 10321 /** 10322 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 10323 */ 7077 10324 public Builder setOptions( 7078 10325 com.google.protobuf.DescriptorProtos.EnumOptions.Builder builderForValue) { … … 7086 10333 return this; 7087 10334 } 10335 /** 10336 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 10337 */ 7088 10338 public Builder mergeOptions(com.google.protobuf.DescriptorProtos.EnumOptions value) { 7089 10339 if (optionsBuilder_ == null) { … … 7102 10352 return this; 7103 10353 } 10354 /** 10355 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 10356 */ 7104 10357 public Builder clearOptions() { 7105 10358 if (optionsBuilder_ == null) { … … 7112 10365 return this; 7113 10366 } 10367 /** 10368 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 10369 */ 7114 10370 public com.google.protobuf.DescriptorProtos.EnumOptions.Builder getOptionsBuilder() { 7115 10371 bitField0_ |= 0x00000004; … … 7117 10373 return getOptionsFieldBuilder().getBuilder(); 7118 10374 } 10375 /** 10376 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 10377 */ 7119 10378 public com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder() { 7120 10379 if (optionsBuilder_ != null) { … … 7124 10383 } 7125 10384 } 10385 /** 10386 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 10387 */ 7126 10388 private com.google.protobuf.SingleFieldBuilder< 7127 10389 com.google.protobuf.DescriptorProtos.EnumOptions, com.google.protobuf.DescriptorProtos.EnumOptions.Builder, com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder> … … 7137 10399 return optionsBuilder_; 7138 10400 } 7139 10401 7140 10402 // @@protoc_insertion_point(builder_scope:google.protobuf.EnumDescriptorProto) 7141 10403 } 7142 10404 7143 10405 static { 7144 10406 defaultInstance = new EnumDescriptorProto(true); 7145 10407 defaultInstance.initFields(); 7146 10408 } 7147 10409 7148 10410 // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto) 7149 10411 } 7150 10412 7151 10413 public interface EnumValueDescriptorProtoOrBuilder 7152 10414 extends com.google.protobuf.MessageOrBuilder { 7153 10415 7154 10416 // optional string name = 1; 10417 /** 10418 * <code>optional string name = 1;</code> 10419 */ 7155 10420 boolean hasName(); 7156 String getName(); 7157 10421 /** 10422 * <code>optional string name = 1;</code> 10423 */ 10424 java.lang.String getName(); 10425 /** 10426 * <code>optional string name = 1;</code> 10427 */ 10428 com.google.protobuf.ByteString 10429 getNameBytes(); 10430 7158 10431 // optional int32 number = 2; 10432 /** 10433 * <code>optional int32 number = 2;</code> 10434 */ 7159 10435 boolean hasNumber(); 10436 /** 10437 * <code>optional int32 number = 2;</code> 10438 */ 7160 10439 int getNumber(); 7161 10440 7162 10441 // optional .google.protobuf.EnumValueOptions options = 3; 10442 /** 10443 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 10444 */ 7163 10445 boolean hasOptions(); 10446 /** 10447 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 10448 */ 7164 10449 com.google.protobuf.DescriptorProtos.EnumValueOptions getOptions(); 10450 /** 10451 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 10452 */ 7165 10453 com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder getOptionsOrBuilder(); 7166 10454 } 10455 /** 10456 * Protobuf type {@code google.protobuf.EnumValueDescriptorProto} 10457 * 10458 * <pre> 10459 * Describes a value within an enum. 10460 * </pre> 10461 */ 7167 10462 public static final class EnumValueDescriptorProto extends 7168 10463 com.google.protobuf.GeneratedMessage 7169 10464 implements EnumValueDescriptorProtoOrBuilder { 7170 10465 // Use EnumValueDescriptorProto.newBuilder() to construct. 7171 private EnumValueDescriptorProto( Builderbuilder) {10466 private EnumValueDescriptorProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 7172 10467 super(builder); 7173 } 7174 private EnumValueDescriptorProto(boolean noInit) {} 7175 10468 this.unknownFields = builder.getUnknownFields(); 10469 } 10470 private EnumValueDescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 10471 7176 10472 private static final EnumValueDescriptorProto defaultInstance; 7177 10473 public static EnumValueDescriptorProto getDefaultInstance() { 7178 10474 return defaultInstance; 7179 10475 } 7180 10476 7181 10477 public EnumValueDescriptorProto getDefaultInstanceForType() { 7182 10478 return defaultInstance; 7183 10479 } 7184 7185 public static final com.google.protobuf.Descriptors.Descriptor 7186 getDescriptor() { 7187 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_descriptor; 7188 } 7189 7190 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 7191 internalGetFieldAccessorTable() { 7192 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_fieldAccessorTable; 7193 } 7194 7195 private int bitField0_; 7196 // optional string name = 1; 7197 public static final int NAME_FIELD_NUMBER = 1; 7198 private java.lang.Object name_; 7199 public boolean hasName() { 7200 return ((bitField0_ & 0x00000001) == 0x00000001); 7201 } 7202 public String getName() { 7203 java.lang.Object ref = name_; 7204 if (ref instanceof String) { 7205 return (String) ref; 7206 } else { 7207 com.google.protobuf.ByteString bs = 7208 (com.google.protobuf.ByteString) ref; 7209 String s = bs.toStringUtf8(); 7210 if (com.google.protobuf.Internal.isValidUtf8(bs)) { 7211 name_ = s; 7212 } 7213 return s; 7214 } 7215 } 7216 private com.google.protobuf.ByteString getNameBytes() { 7217 java.lang.Object ref = name_; 7218 if (ref instanceof String) { 7219 com.google.protobuf.ByteString b = 7220 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 7221 name_ = b; 7222 return b; 7223 } else { 7224 return (com.google.protobuf.ByteString) ref; 7225 } 7226 } 7227 7228 // optional int32 number = 2; 7229 public static final int NUMBER_FIELD_NUMBER = 2; 7230 private int number_; 7231 public boolean hasNumber() { 7232 return ((bitField0_ & 0x00000002) == 0x00000002); 7233 } 7234 public int getNumber() { 7235 return number_; 7236 } 7237 7238 // optional .google.protobuf.EnumValueOptions options = 3; 7239 public static final int OPTIONS_FIELD_NUMBER = 3; 7240 private com.google.protobuf.DescriptorProtos.EnumValueOptions options_; 7241 public boolean hasOptions() { 7242 return ((bitField0_ & 0x00000004) == 0x00000004); 7243 } 7244 public com.google.protobuf.DescriptorProtos.EnumValueOptions getOptions() { 7245 return options_; 7246 } 7247 public com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder getOptionsOrBuilder() { 7248 return options_; 7249 } 7250 7251 private void initFields() { 7252 name_ = ""; 7253 number_ = 0; 7254 options_ = com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance(); 7255 } 7256 private byte memoizedIsInitialized = -1; 7257 public final boolean isInitialized() { 7258 byte isInitialized = memoizedIsInitialized; 7259 if (isInitialized != -1) return isInitialized == 1; 7260 7261 if (hasOptions()) { 7262 if (!getOptions().isInitialized()) { 7263 memoizedIsInitialized = 0; 7264 return false; 7265 } 7266 } 7267 memoizedIsInitialized = 1; 7268 return true; 7269 } 7270 7271 public void writeTo(com.google.protobuf.CodedOutputStream output) 7272 throws java.io.IOException { 7273 getSerializedSize(); 7274 if (((bitField0_ & 0x00000001) == 0x00000001)) { 7275 output.writeBytes(1, getNameBytes()); 7276 } 7277 if (((bitField0_ & 0x00000002) == 0x00000002)) { 7278 output.writeInt32(2, number_); 7279 } 7280 if (((bitField0_ & 0x00000004) == 0x00000004)) { 7281 output.writeMessage(3, options_); 7282 } 7283 getUnknownFields().writeTo(output); 7284 } 7285 7286 private int memoizedSerializedSize = -1; 7287 public int getSerializedSize() { 7288 int size = memoizedSerializedSize; 7289 if (size != -1) return size; 7290 7291 size = 0; 7292 if (((bitField0_ & 0x00000001) == 0x00000001)) { 7293 size += com.google.protobuf.CodedOutputStream 7294 .computeBytesSize(1, getNameBytes()); 7295 } 7296 if (((bitField0_ & 0x00000002) == 0x00000002)) { 7297 size += com.google.protobuf.CodedOutputStream 7298 .computeInt32Size(2, number_); 7299 } 7300 if (((bitField0_ & 0x00000004) == 0x00000004)) { 7301 size += com.google.protobuf.CodedOutputStream 7302 .computeMessageSize(3, options_); 7303 } 7304 size += getUnknownFields().getSerializedSize(); 7305 memoizedSerializedSize = size; 7306 return size; 7307 } 7308 7309 private static final long serialVersionUID = 0L; 10480 10481 private final com.google.protobuf.UnknownFieldSet unknownFields; 7310 10482 @java.lang.Override 7311 protected java.lang.Object writeReplace() 7312 throws java.io.ObjectStreamException { 7313 return super.writeReplace(); 7314 } 7315 7316 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 7317 com.google.protobuf.ByteString data) 7318 throws com.google.protobuf.InvalidProtocolBufferException { 7319 return newBuilder().mergeFrom(data).buildParsed(); 7320 } 7321 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 7322 com.google.protobuf.ByteString data, 10483 public final com.google.protobuf.UnknownFieldSet 10484 getUnknownFields() { 10485 return this.unknownFields; 10486 } 10487 private EnumValueDescriptorProto( 10488 com.google.protobuf.CodedInputStream input, 7323 10489 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7324 10490 throws com.google.protobuf.InvalidProtocolBufferException { 7325 return newBuilder().mergeFrom(data, extensionRegistry) 7326 .buildParsed(); 7327 } 7328 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom(byte[] data) 7329 throws com.google.protobuf.InvalidProtocolBufferException { 7330 return newBuilder().mergeFrom(data).buildParsed(); 7331 } 7332 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 7333 byte[] data, 7334 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7335 throws com.google.protobuf.InvalidProtocolBufferException { 7336 return newBuilder().mergeFrom(data, extensionRegistry) 7337 .buildParsed(); 7338 } 7339 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom(java.io.InputStream input) 7340 throws java.io.IOException { 7341 return newBuilder().mergeFrom(input).buildParsed(); 7342 } 7343 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 7344 java.io.InputStream input, 7345 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7346 throws java.io.IOException { 7347 return newBuilder().mergeFrom(input, extensionRegistry) 7348 .buildParsed(); 7349 } 7350 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseDelimitedFrom(java.io.InputStream input) 7351 throws java.io.IOException { 7352 Builder builder = newBuilder(); 7353 if (builder.mergeDelimitedFrom(input)) { 7354 return builder.buildParsed(); 7355 } else { 7356 return null; 7357 } 7358 } 7359 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseDelimitedFrom( 7360 java.io.InputStream input, 7361 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7362 throws java.io.IOException { 7363 Builder builder = newBuilder(); 7364 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 7365 return builder.buildParsed(); 7366 } else { 7367 return null; 7368 } 7369 } 7370 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 7371 com.google.protobuf.CodedInputStream input) 7372 throws java.io.IOException { 7373 return newBuilder().mergeFrom(input).buildParsed(); 7374 } 7375 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 7376 com.google.protobuf.CodedInputStream input, 7377 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7378 throws java.io.IOException { 7379 return newBuilder().mergeFrom(input, extensionRegistry) 7380 .buildParsed(); 7381 } 7382 7383 public static Builder newBuilder() { return Builder.create(); } 7384 public Builder newBuilderForType() { return newBuilder(); } 7385 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto prototype) { 7386 return newBuilder().mergeFrom(prototype); 7387 } 7388 public Builder toBuilder() { return newBuilder(this); } 7389 7390 @java.lang.Override 7391 protected Builder newBuilderForType( 7392 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 7393 Builder builder = new Builder(parent); 7394 return builder; 7395 } 7396 public static final class Builder extends 7397 com.google.protobuf.GeneratedMessage.Builder<Builder> 7398 implements com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder { 7399 public static final com.google.protobuf.Descriptors.Descriptor 7400 getDescriptor() { 7401 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_descriptor; 7402 } 7403 7404 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 7405 internalGetFieldAccessorTable() { 7406 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_fieldAccessorTable; 7407 } 7408 7409 // Construct using com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.newBuilder() 7410 private Builder() { 7411 maybeForceBuilderInitialization(); 7412 } 7413 7414 private Builder(BuilderParent parent) { 7415 super(parent); 7416 maybeForceBuilderInitialization(); 7417 } 7418 private void maybeForceBuilderInitialization() { 7419 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 7420 getOptionsFieldBuilder(); 7421 } 7422 } 7423 private static Builder create() { 7424 return new Builder(); 7425 } 7426 7427 public Builder clear() { 7428 super.clear(); 7429 name_ = ""; 7430 bitField0_ = (bitField0_ & ~0x00000001); 7431 number_ = 0; 7432 bitField0_ = (bitField0_ & ~0x00000002); 7433 if (optionsBuilder_ == null) { 7434 options_ = com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance(); 7435 } else { 7436 optionsBuilder_.clear(); 7437 } 7438 bitField0_ = (bitField0_ & ~0x00000004); 7439 return this; 7440 } 7441 7442 public Builder clone() { 7443 return create().mergeFrom(buildPartial()); 7444 } 7445 7446 public com.google.protobuf.Descriptors.Descriptor 7447 getDescriptorForType() { 7448 return com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.getDescriptor(); 7449 } 7450 7451 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getDefaultInstanceForType() { 7452 return com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.getDefaultInstance(); 7453 } 7454 7455 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto build() { 7456 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto result = buildPartial(); 7457 if (!result.isInitialized()) { 7458 throw newUninitializedMessageException(result); 7459 } 7460 return result; 7461 } 7462 7463 private com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto buildParsed() 7464 throws com.google.protobuf.InvalidProtocolBufferException { 7465 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto result = buildPartial(); 7466 if (!result.isInitialized()) { 7467 throw newUninitializedMessageException( 7468 result).asInvalidProtocolBufferException(); 7469 } 7470 return result; 7471 } 7472 7473 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto buildPartial() { 7474 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto result = new com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto(this); 7475 int from_bitField0_ = bitField0_; 7476 int to_bitField0_ = 0; 7477 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 7478 to_bitField0_ |= 0x00000001; 7479 } 7480 result.name_ = name_; 7481 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 7482 to_bitField0_ |= 0x00000002; 7483 } 7484 result.number_ = number_; 7485 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 7486 to_bitField0_ |= 0x00000004; 7487 } 7488 if (optionsBuilder_ == null) { 7489 result.options_ = options_; 7490 } else { 7491 result.options_ = optionsBuilder_.build(); 7492 } 7493 result.bitField0_ = to_bitField0_; 7494 onBuilt(); 7495 return result; 7496 } 7497 7498 public Builder mergeFrom(com.google.protobuf.Message other) { 7499 if (other instanceof com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto) { 7500 return mergeFrom((com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto)other); 7501 } else { 7502 super.mergeFrom(other); 7503 return this; 7504 } 7505 } 7506 7507 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto other) { 7508 if (other == com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.getDefaultInstance()) return this; 7509 if (other.hasName()) { 7510 setName(other.getName()); 7511 } 7512 if (other.hasNumber()) { 7513 setNumber(other.getNumber()); 7514 } 7515 if (other.hasOptions()) { 7516 mergeOptions(other.getOptions()); 7517 } 7518 this.mergeUnknownFields(other.getUnknownFields()); 7519 return this; 7520 } 7521 7522 public final boolean isInitialized() { 7523 if (hasOptions()) { 7524 if (!getOptions().isInitialized()) { 7525 7526 return false; 7527 } 7528 } 7529 return true; 7530 } 7531 7532 public Builder mergeFrom( 7533 com.google.protobuf.CodedInputStream input, 7534 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7535 throws java.io.IOException { 7536 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 7537 com.google.protobuf.UnknownFieldSet.newBuilder( 7538 this.getUnknownFields()); 7539 while (true) { 10491 initFields(); 10492 int mutable_bitField0_ = 0; 10493 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 10494 com.google.protobuf.UnknownFieldSet.newBuilder(); 10495 try { 10496 boolean done = false; 10497 while (!done) { 7540 10498 int tag = input.readTag(); 7541 10499 switch (tag) { 7542 10500 case 0: 7543 this.setUnknownFields(unknownFields.build()); 7544 onChanged(); 7545 return this; 10501 done = true; 10502 break; 7546 10503 default: { 7547 10504 if (!parseUnknownField(input, unknownFields, 7548 10505 extensionRegistry, tag)) { 7549 this.setUnknownFields(unknownFields.build()); 7550 onChanged(); 7551 return this; 10506 done = true; 7552 10507 } 7553 10508 break; … … 7564 10519 } 7565 10520 case 26: { 7566 com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder subBuilder = com.google.protobuf.DescriptorProtos.EnumValueOptions.newBuilder();7567 if ( hasOptions()) {7568 subBuilder .mergeFrom(getOptions());10521 com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder subBuilder = null; 10522 if (((bitField0_ & 0x00000004) == 0x00000004)) { 10523 subBuilder = options_.toBuilder(); 7569 10524 } 7570 input.readMessage(subBuilder, extensionRegistry); 7571 setOptions(subBuilder.buildPartial()); 10525 options_ = input.readMessage(com.google.protobuf.DescriptorProtos.EnumValueOptions.PARSER, extensionRegistry); 10526 if (subBuilder != null) { 10527 subBuilder.mergeFrom(options_); 10528 options_ = subBuilder.buildPartial(); 10529 } 10530 bitField0_ |= 0x00000004; 7572 10531 break; 7573 10532 } 7574 10533 } 7575 10534 } 7576 } 7577 10535 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 10536 throw e.setUnfinishedMessage(this); 10537 } catch (java.io.IOException e) { 10538 throw new com.google.protobuf.InvalidProtocolBufferException( 10539 e.getMessage()).setUnfinishedMessage(this); 10540 } finally { 10541 this.unknownFields = unknownFields.build(); 10542 makeExtensionsImmutable(); 10543 } 10544 } 10545 public static final com.google.protobuf.Descriptors.Descriptor 10546 getDescriptor() { 10547 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_descriptor; 10548 } 10549 10550 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 10551 internalGetFieldAccessorTable() { 10552 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_fieldAccessorTable 10553 .ensureFieldAccessorsInitialized( 10554 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.class, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder.class); 10555 } 10556 10557 public static com.google.protobuf.Parser<EnumValueDescriptorProto> PARSER = 10558 new com.google.protobuf.AbstractParser<EnumValueDescriptorProto>() { 10559 public EnumValueDescriptorProto parsePartialFrom( 10560 com.google.protobuf.CodedInputStream input, 10561 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10562 throws com.google.protobuf.InvalidProtocolBufferException { 10563 return new EnumValueDescriptorProto(input, extensionRegistry); 10564 } 10565 }; 10566 10567 @java.lang.Override 10568 public com.google.protobuf.Parser<EnumValueDescriptorProto> getParserForType() { 10569 return PARSER; 10570 } 10571 10572 private int bitField0_; 10573 // optional string name = 1; 10574 public static final int NAME_FIELD_NUMBER = 1; 10575 private java.lang.Object name_; 10576 /** 10577 * <code>optional string name = 1;</code> 10578 */ 10579 public boolean hasName() { 10580 return ((bitField0_ & 0x00000001) == 0x00000001); 10581 } 10582 /** 10583 * <code>optional string name = 1;</code> 10584 */ 10585 public java.lang.String getName() { 10586 java.lang.Object ref = name_; 10587 if (ref instanceof java.lang.String) { 10588 return (java.lang.String) ref; 10589 } else { 10590 com.google.protobuf.ByteString bs = 10591 (com.google.protobuf.ByteString) ref; 10592 java.lang.String s = bs.toStringUtf8(); 10593 if (bs.isValidUtf8()) { 10594 name_ = s; 10595 } 10596 return s; 10597 } 10598 } 10599 /** 10600 * <code>optional string name = 1;</code> 10601 */ 10602 public com.google.protobuf.ByteString 10603 getNameBytes() { 10604 java.lang.Object ref = name_; 10605 if (ref instanceof java.lang.String) { 10606 com.google.protobuf.ByteString b = 10607 com.google.protobuf.ByteString.copyFromUtf8( 10608 (java.lang.String) ref); 10609 name_ = b; 10610 return b; 10611 } else { 10612 return (com.google.protobuf.ByteString) ref; 10613 } 10614 } 10615 10616 // optional int32 number = 2; 10617 public static final int NUMBER_FIELD_NUMBER = 2; 10618 private int number_; 10619 /** 10620 * <code>optional int32 number = 2;</code> 10621 */ 10622 public boolean hasNumber() { 10623 return ((bitField0_ & 0x00000002) == 0x00000002); 10624 } 10625 /** 10626 * <code>optional int32 number = 2;</code> 10627 */ 10628 public int getNumber() { 10629 return number_; 10630 } 10631 10632 // optional .google.protobuf.EnumValueOptions options = 3; 10633 public static final int OPTIONS_FIELD_NUMBER = 3; 10634 private com.google.protobuf.DescriptorProtos.EnumValueOptions options_; 10635 /** 10636 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 10637 */ 10638 public boolean hasOptions() { 10639 return ((bitField0_ & 0x00000004) == 0x00000004); 10640 } 10641 /** 10642 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 10643 */ 10644 public com.google.protobuf.DescriptorProtos.EnumValueOptions getOptions() { 10645 return options_; 10646 } 10647 /** 10648 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 10649 */ 10650 public com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder getOptionsOrBuilder() { 10651 return options_; 10652 } 10653 10654 private void initFields() { 10655 name_ = ""; 10656 number_ = 0; 10657 options_ = com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance(); 10658 } 10659 private byte memoizedIsInitialized = -1; 10660 public final boolean isInitialized() { 10661 byte isInitialized = memoizedIsInitialized; 10662 if (isInitialized != -1) return isInitialized == 1; 10663 10664 if (hasOptions()) { 10665 if (!getOptions().isInitialized()) { 10666 memoizedIsInitialized = 0; 10667 return false; 10668 } 10669 } 10670 memoizedIsInitialized = 1; 10671 return true; 10672 } 10673 10674 public void writeTo(com.google.protobuf.CodedOutputStream output) 10675 throws java.io.IOException { 10676 getSerializedSize(); 10677 if (((bitField0_ & 0x00000001) == 0x00000001)) { 10678 output.writeBytes(1, getNameBytes()); 10679 } 10680 if (((bitField0_ & 0x00000002) == 0x00000002)) { 10681 output.writeInt32(2, number_); 10682 } 10683 if (((bitField0_ & 0x00000004) == 0x00000004)) { 10684 output.writeMessage(3, options_); 10685 } 10686 getUnknownFields().writeTo(output); 10687 } 10688 10689 private int memoizedSerializedSize = -1; 10690 public int getSerializedSize() { 10691 int size = memoizedSerializedSize; 10692 if (size != -1) return size; 10693 10694 size = 0; 10695 if (((bitField0_ & 0x00000001) == 0x00000001)) { 10696 size += com.google.protobuf.CodedOutputStream 10697 .computeBytesSize(1, getNameBytes()); 10698 } 10699 if (((bitField0_ & 0x00000002) == 0x00000002)) { 10700 size += com.google.protobuf.CodedOutputStream 10701 .computeInt32Size(2, number_); 10702 } 10703 if (((bitField0_ & 0x00000004) == 0x00000004)) { 10704 size += com.google.protobuf.CodedOutputStream 10705 .computeMessageSize(3, options_); 10706 } 10707 size += getUnknownFields().getSerializedSize(); 10708 memoizedSerializedSize = size; 10709 return size; 10710 } 10711 10712 private static final long serialVersionUID = 0L; 10713 @java.lang.Override 10714 protected java.lang.Object writeReplace() 10715 throws java.io.ObjectStreamException { 10716 return super.writeReplace(); 10717 } 10718 10719 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 10720 com.google.protobuf.ByteString data) 10721 throws com.google.protobuf.InvalidProtocolBufferException { 10722 return PARSER.parseFrom(data); 10723 } 10724 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 10725 com.google.protobuf.ByteString data, 10726 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10727 throws com.google.protobuf.InvalidProtocolBufferException { 10728 return PARSER.parseFrom(data, extensionRegistry); 10729 } 10730 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom(byte[] data) 10731 throws com.google.protobuf.InvalidProtocolBufferException { 10732 return PARSER.parseFrom(data); 10733 } 10734 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 10735 byte[] data, 10736 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10737 throws com.google.protobuf.InvalidProtocolBufferException { 10738 return PARSER.parseFrom(data, extensionRegistry); 10739 } 10740 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom(java.io.InputStream input) 10741 throws java.io.IOException { 10742 return PARSER.parseFrom(input); 10743 } 10744 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 10745 java.io.InputStream input, 10746 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10747 throws java.io.IOException { 10748 return PARSER.parseFrom(input, extensionRegistry); 10749 } 10750 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseDelimitedFrom(java.io.InputStream input) 10751 throws java.io.IOException { 10752 return PARSER.parseDelimitedFrom(input); 10753 } 10754 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseDelimitedFrom( 10755 java.io.InputStream input, 10756 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10757 throws java.io.IOException { 10758 return PARSER.parseDelimitedFrom(input, extensionRegistry); 10759 } 10760 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 10761 com.google.protobuf.CodedInputStream input) 10762 throws java.io.IOException { 10763 return PARSER.parseFrom(input); 10764 } 10765 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 10766 com.google.protobuf.CodedInputStream input, 10767 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10768 throws java.io.IOException { 10769 return PARSER.parseFrom(input, extensionRegistry); 10770 } 10771 10772 public static Builder newBuilder() { return Builder.create(); } 10773 public Builder newBuilderForType() { return newBuilder(); } 10774 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto prototype) { 10775 return newBuilder().mergeFrom(prototype); 10776 } 10777 public Builder toBuilder() { return newBuilder(this); } 10778 10779 @java.lang.Override 10780 protected Builder newBuilderForType( 10781 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 10782 Builder builder = new Builder(parent); 10783 return builder; 10784 } 10785 /** 10786 * Protobuf type {@code google.protobuf.EnumValueDescriptorProto} 10787 * 10788 * <pre> 10789 * Describes a value within an enum. 10790 * </pre> 10791 */ 10792 public static final class Builder extends 10793 com.google.protobuf.GeneratedMessage.Builder<Builder> 10794 implements com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder { 10795 public static final com.google.protobuf.Descriptors.Descriptor 10796 getDescriptor() { 10797 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_descriptor; 10798 } 10799 10800 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 10801 internalGetFieldAccessorTable() { 10802 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_fieldAccessorTable 10803 .ensureFieldAccessorsInitialized( 10804 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.class, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder.class); 10805 } 10806 10807 // Construct using com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.newBuilder() 10808 private Builder() { 10809 maybeForceBuilderInitialization(); 10810 } 10811 10812 private Builder( 10813 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 10814 super(parent); 10815 maybeForceBuilderInitialization(); 10816 } 10817 private void maybeForceBuilderInitialization() { 10818 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 10819 getOptionsFieldBuilder(); 10820 } 10821 } 10822 private static Builder create() { 10823 return new Builder(); 10824 } 10825 10826 public Builder clear() { 10827 super.clear(); 10828 name_ = ""; 10829 bitField0_ = (bitField0_ & ~0x00000001); 10830 number_ = 0; 10831 bitField0_ = (bitField0_ & ~0x00000002); 10832 if (optionsBuilder_ == null) { 10833 options_ = com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance(); 10834 } else { 10835 optionsBuilder_.clear(); 10836 } 10837 bitField0_ = (bitField0_ & ~0x00000004); 10838 return this; 10839 } 10840 10841 public Builder clone() { 10842 return create().mergeFrom(buildPartial()); 10843 } 10844 10845 public com.google.protobuf.Descriptors.Descriptor 10846 getDescriptorForType() { 10847 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_descriptor; 10848 } 10849 10850 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getDefaultInstanceForType() { 10851 return com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.getDefaultInstance(); 10852 } 10853 10854 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto build() { 10855 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto result = buildPartial(); 10856 if (!result.isInitialized()) { 10857 throw newUninitializedMessageException(result); 10858 } 10859 return result; 10860 } 10861 10862 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto buildPartial() { 10863 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto result = new com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto(this); 10864 int from_bitField0_ = bitField0_; 10865 int to_bitField0_ = 0; 10866 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 10867 to_bitField0_ |= 0x00000001; 10868 } 10869 result.name_ = name_; 10870 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 10871 to_bitField0_ |= 0x00000002; 10872 } 10873 result.number_ = number_; 10874 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 10875 to_bitField0_ |= 0x00000004; 10876 } 10877 if (optionsBuilder_ == null) { 10878 result.options_ = options_; 10879 } else { 10880 result.options_ = optionsBuilder_.build(); 10881 } 10882 result.bitField0_ = to_bitField0_; 10883 onBuilt(); 10884 return result; 10885 } 10886 10887 public Builder mergeFrom(com.google.protobuf.Message other) { 10888 if (other instanceof com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto) { 10889 return mergeFrom((com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto)other); 10890 } else { 10891 super.mergeFrom(other); 10892 return this; 10893 } 10894 } 10895 10896 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto other) { 10897 if (other == com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.getDefaultInstance()) return this; 10898 if (other.hasName()) { 10899 bitField0_ |= 0x00000001; 10900 name_ = other.name_; 10901 onChanged(); 10902 } 10903 if (other.hasNumber()) { 10904 setNumber(other.getNumber()); 10905 } 10906 if (other.hasOptions()) { 10907 mergeOptions(other.getOptions()); 10908 } 10909 this.mergeUnknownFields(other.getUnknownFields()); 10910 return this; 10911 } 10912 10913 public final boolean isInitialized() { 10914 if (hasOptions()) { 10915 if (!getOptions().isInitialized()) { 10916 10917 return false; 10918 } 10919 } 10920 return true; 10921 } 10922 10923 public Builder mergeFrom( 10924 com.google.protobuf.CodedInputStream input, 10925 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10926 throws java.io.IOException { 10927 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parsedMessage = null; 10928 try { 10929 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 10930 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 10931 parsedMessage = (com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto) e.getUnfinishedMessage(); 10932 throw e; 10933 } finally { 10934 if (parsedMessage != null) { 10935 mergeFrom(parsedMessage); 10936 } 10937 } 10938 return this; 10939 } 7578 10940 private int bitField0_; 7579 10941 7580 10942 // optional string name = 1; 7581 10943 private java.lang.Object name_ = ""; 10944 /** 10945 * <code>optional string name = 1;</code> 10946 */ 7582 10947 public boolean hasName() { 7583 10948 return ((bitField0_ & 0x00000001) == 0x00000001); 7584 10949 } 7585 public String getName() { 10950 /** 10951 * <code>optional string name = 1;</code> 10952 */ 10953 public java.lang.String getName() { 7586 10954 java.lang.Object ref = name_; 7587 if (!(ref instanceof String)) { 7588 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 10955 if (!(ref instanceof java.lang.String)) { 10956 java.lang.String s = ((com.google.protobuf.ByteString) ref) 10957 .toStringUtf8(); 7589 10958 name_ = s; 7590 10959 return s; 7591 10960 } else { 7592 return (String) ref; 7593 } 7594 } 7595 public Builder setName(String value) { 10961 return (java.lang.String) ref; 10962 } 10963 } 10964 /** 10965 * <code>optional string name = 1;</code> 10966 */ 10967 public com.google.protobuf.ByteString 10968 getNameBytes() { 10969 java.lang.Object ref = name_; 10970 if (ref instanceof String) { 10971 com.google.protobuf.ByteString b = 10972 com.google.protobuf.ByteString.copyFromUtf8( 10973 (java.lang.String) ref); 10974 name_ = b; 10975 return b; 10976 } else { 10977 return (com.google.protobuf.ByteString) ref; 10978 } 10979 } 10980 /** 10981 * <code>optional string name = 1;</code> 10982 */ 10983 public Builder setName( 10984 java.lang.String value) { 7596 10985 if (value == null) { 7597 10986 throw new NullPointerException(); … … 7602 10991 return this; 7603 10992 } 10993 /** 10994 * <code>optional string name = 1;</code> 10995 */ 7604 10996 public Builder clearName() { 7605 10997 bitField0_ = (bitField0_ & ~0x00000001); … … 7608 11000 return this; 7609 11001 } 7610 void setName(com.google.protobuf.ByteString value) { 7611 bitField0_ |= 0x00000001; 11002 /** 11003 * <code>optional string name = 1;</code> 11004 */ 11005 public Builder setNameBytes( 11006 com.google.protobuf.ByteString value) { 11007 if (value == null) { 11008 throw new NullPointerException(); 11009 } 11010 bitField0_ |= 0x00000001; 7612 11011 name_ = value; 7613 11012 onChanged(); 7614 } 7615 11013 return this; 11014 } 11015 7616 11016 // optional int32 number = 2; 7617 11017 private int number_ ; 11018 /** 11019 * <code>optional int32 number = 2;</code> 11020 */ 7618 11021 public boolean hasNumber() { 7619 11022 return ((bitField0_ & 0x00000002) == 0x00000002); 7620 11023 } 11024 /** 11025 * <code>optional int32 number = 2;</code> 11026 */ 7621 11027 public int getNumber() { 7622 11028 return number_; 7623 11029 } 11030 /** 11031 * <code>optional int32 number = 2;</code> 11032 */ 7624 11033 public Builder setNumber(int value) { 7625 11034 bitField0_ |= 0x00000002; … … 7628 11037 return this; 7629 11038 } 11039 /** 11040 * <code>optional int32 number = 2;</code> 11041 */ 7630 11042 public Builder clearNumber() { 7631 11043 bitField0_ = (bitField0_ & ~0x00000002); … … 7634 11046 return this; 7635 11047 } 7636 11048 7637 11049 // optional .google.protobuf.EnumValueOptions options = 3; 7638 11050 private com.google.protobuf.DescriptorProtos.EnumValueOptions options_ = com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance(); 7639 11051 private com.google.protobuf.SingleFieldBuilder< 7640 11052 com.google.protobuf.DescriptorProtos.EnumValueOptions, com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder, com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder> optionsBuilder_; 11053 /** 11054 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 11055 */ 7641 11056 public boolean hasOptions() { 7642 11057 return ((bitField0_ & 0x00000004) == 0x00000004); 7643 11058 } 11059 /** 11060 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 11061 */ 7644 11062 public com.google.protobuf.DescriptorProtos.EnumValueOptions getOptions() { 7645 11063 if (optionsBuilder_ == null) { … … 7649 11067 } 7650 11068 } 11069 /** 11070 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 11071 */ 7651 11072 public Builder setOptions(com.google.protobuf.DescriptorProtos.EnumValueOptions value) { 7652 11073 if (optionsBuilder_ == null) { … … 7662 11083 return this; 7663 11084 } 11085 /** 11086 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 11087 */ 7664 11088 public Builder setOptions( 7665 11089 com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder builderForValue) { … … 7673 11097 return this; 7674 11098 } 11099 /** 11100 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 11101 */ 7675 11102 public Builder mergeOptions(com.google.protobuf.DescriptorProtos.EnumValueOptions value) { 7676 11103 if (optionsBuilder_ == null) { … … 7689 11116 return this; 7690 11117 } 11118 /** 11119 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 11120 */ 7691 11121 public Builder clearOptions() { 7692 11122 if (optionsBuilder_ == null) { … … 7699 11129 return this; 7700 11130 } 11131 /** 11132 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 11133 */ 7701 11134 public com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder getOptionsBuilder() { 7702 11135 bitField0_ |= 0x00000004; … … 7704 11137 return getOptionsFieldBuilder().getBuilder(); 7705 11138 } 11139 /** 11140 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 11141 */ 7706 11142 public com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder getOptionsOrBuilder() { 7707 11143 if (optionsBuilder_ != null) { … … 7711 11147 } 7712 11148 } 11149 /** 11150 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 11151 */ 7713 11152 private com.google.protobuf.SingleFieldBuilder< 7714 11153 com.google.protobuf.DescriptorProtos.EnumValueOptions, com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder, com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder> … … 7724 11163 return optionsBuilder_; 7725 11164 } 7726 11165 7727 11166 // @@protoc_insertion_point(builder_scope:google.protobuf.EnumValueDescriptorProto) 7728 11167 } 7729 11168 7730 11169 static { 7731 11170 defaultInstance = new EnumValueDescriptorProto(true); 7732 11171 defaultInstance.initFields(); 7733 11172 } 7734 11173 7735 11174 // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto) 7736 11175 } 7737 11176 7738 11177 public interface ServiceDescriptorProtoOrBuilder 7739 11178 extends com.google.protobuf.MessageOrBuilder { 7740 11179 7741 11180 // optional string name = 1; 11181 /** 11182 * <code>optional string name = 1;</code> 11183 */ 7742 11184 boolean hasName(); 7743 String getName(); 7744 11185 /** 11186 * <code>optional string name = 1;</code> 11187 */ 11188 java.lang.String getName(); 11189 /** 11190 * <code>optional string name = 1;</code> 11191 */ 11192 com.google.protobuf.ByteString 11193 getNameBytes(); 11194 7745 11195 // repeated .google.protobuf.MethodDescriptorProto method = 2; 11196 /** 11197 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11198 */ 7746 11199 java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> 7747 11200 getMethodList(); 11201 /** 11202 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11203 */ 7748 11204 com.google.protobuf.DescriptorProtos.MethodDescriptorProto getMethod(int index); 11205 /** 11206 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11207 */ 7749 11208 int getMethodCount(); 11209 /** 11210 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11211 */ 7750 11212 java.util.List<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> 7751 11213 getMethodOrBuilderList(); 11214 /** 11215 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11216 */ 7752 11217 com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder getMethodOrBuilder( 7753 11218 int index); 7754 11219 7755 11220 // optional .google.protobuf.ServiceOptions options = 3; 11221 /** 11222 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 11223 */ 7756 11224 boolean hasOptions(); 11225 /** 11226 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 11227 */ 7757 11228 com.google.protobuf.DescriptorProtos.ServiceOptions getOptions(); 11229 /** 11230 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 11231 */ 7758 11232 com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder getOptionsOrBuilder(); 7759 11233 } 11234 /** 11235 * Protobuf type {@code google.protobuf.ServiceDescriptorProto} 11236 * 11237 * <pre> 11238 * Describes a service. 11239 * </pre> 11240 */ 7760 11241 public static final class ServiceDescriptorProto extends 7761 11242 com.google.protobuf.GeneratedMessage 7762 11243 implements ServiceDescriptorProtoOrBuilder { 7763 11244 // Use ServiceDescriptorProto.newBuilder() to construct. 7764 private ServiceDescriptorProto( Builderbuilder) {11245 private ServiceDescriptorProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 7765 11246 super(builder); 7766 } 7767 private ServiceDescriptorProto(boolean noInit) {} 7768 11247 this.unknownFields = builder.getUnknownFields(); 11248 } 11249 private ServiceDescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 11250 7769 11251 private static final ServiceDescriptorProto defaultInstance; 7770 11252 public static ServiceDescriptorProto getDefaultInstance() { 7771 11253 return defaultInstance; 7772 11254 } 7773 11255 7774 11256 public ServiceDescriptorProto getDefaultInstanceForType() { 7775 11257 return defaultInstance; 7776 11258 } 7777 11259 11260 private final com.google.protobuf.UnknownFieldSet unknownFields; 11261 @java.lang.Override 11262 public final com.google.protobuf.UnknownFieldSet 11263 getUnknownFields() { 11264 return this.unknownFields; 11265 } 11266 private ServiceDescriptorProto( 11267 com.google.protobuf.CodedInputStream input, 11268 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11269 throws com.google.protobuf.InvalidProtocolBufferException { 11270 initFields(); 11271 int mutable_bitField0_ = 0; 11272 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 11273 com.google.protobuf.UnknownFieldSet.newBuilder(); 11274 try { 11275 boolean done = false; 11276 while (!done) { 11277 int tag = input.readTag(); 11278 switch (tag) { 11279 case 0: 11280 done = true; 11281 break; 11282 default: { 11283 if (!parseUnknownField(input, unknownFields, 11284 extensionRegistry, tag)) { 11285 done = true; 11286 } 11287 break; 11288 } 11289 case 10: { 11290 bitField0_ |= 0x00000001; 11291 name_ = input.readBytes(); 11292 break; 11293 } 11294 case 18: { 11295 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 11296 method_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.MethodDescriptorProto>(); 11297 mutable_bitField0_ |= 0x00000002; 11298 } 11299 method_.add(input.readMessage(com.google.protobuf.DescriptorProtos.MethodDescriptorProto.PARSER, extensionRegistry)); 11300 break; 11301 } 11302 case 26: { 11303 com.google.protobuf.DescriptorProtos.ServiceOptions.Builder subBuilder = null; 11304 if (((bitField0_ & 0x00000002) == 0x00000002)) { 11305 subBuilder = options_.toBuilder(); 11306 } 11307 options_ = input.readMessage(com.google.protobuf.DescriptorProtos.ServiceOptions.PARSER, extensionRegistry); 11308 if (subBuilder != null) { 11309 subBuilder.mergeFrom(options_); 11310 options_ = subBuilder.buildPartial(); 11311 } 11312 bitField0_ |= 0x00000002; 11313 break; 11314 } 11315 } 11316 } 11317 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 11318 throw e.setUnfinishedMessage(this); 11319 } catch (java.io.IOException e) { 11320 throw new com.google.protobuf.InvalidProtocolBufferException( 11321 e.getMessage()).setUnfinishedMessage(this); 11322 } finally { 11323 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 11324 method_ = java.util.Collections.unmodifiableList(method_); 11325 } 11326 this.unknownFields = unknownFields.build(); 11327 makeExtensionsImmutable(); 11328 } 11329 } 7778 11330 public static final com.google.protobuf.Descriptors.Descriptor 7779 11331 getDescriptor() { 7780 11332 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceDescriptorProto_descriptor; 7781 11333 } 7782 11334 7783 11335 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 7784 11336 internalGetFieldAccessorTable() { 7785 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceDescriptorProto_fieldAccessorTable; 7786 } 7787 11337 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceDescriptorProto_fieldAccessorTable 11338 .ensureFieldAccessorsInitialized( 11339 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.class, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder.class); 11340 } 11341 11342 public static com.google.protobuf.Parser<ServiceDescriptorProto> PARSER = 11343 new com.google.protobuf.AbstractParser<ServiceDescriptorProto>() { 11344 public ServiceDescriptorProto parsePartialFrom( 11345 com.google.protobuf.CodedInputStream input, 11346 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11347 throws com.google.protobuf.InvalidProtocolBufferException { 11348 return new ServiceDescriptorProto(input, extensionRegistry); 11349 } 11350 }; 11351 11352 @java.lang.Override 11353 public com.google.protobuf.Parser<ServiceDescriptorProto> getParserForType() { 11354 return PARSER; 11355 } 11356 7788 11357 private int bitField0_; 7789 11358 // optional string name = 1; 7790 11359 public static final int NAME_FIELD_NUMBER = 1; 7791 11360 private java.lang.Object name_; 11361 /** 11362 * <code>optional string name = 1;</code> 11363 */ 7792 11364 public boolean hasName() { 7793 11365 return ((bitField0_ & 0x00000001) == 0x00000001); 7794 11366 } 7795 public String getName() { 11367 /** 11368 * <code>optional string name = 1;</code> 11369 */ 11370 public java.lang.String getName() { 7796 11371 java.lang.Object ref = name_; 7797 if (ref instanceof String) {7798 return ( String) ref;11372 if (ref instanceof java.lang.String) { 11373 return (java.lang.String) ref; 7799 11374 } else { 7800 11375 com.google.protobuf.ByteString bs = 7801 11376 (com.google.protobuf.ByteString) ref; 7802 String s = bs.toStringUtf8();7803 if ( com.google.protobuf.Internal.isValidUtf8(bs)) {11377 java.lang.String s = bs.toStringUtf8(); 11378 if (bs.isValidUtf8()) { 7804 11379 name_ = s; 7805 11380 } … … 7807 11382 } 7808 11383 } 7809 private com.google.protobuf.ByteString getNameBytes() { 11384 /** 11385 * <code>optional string name = 1;</code> 11386 */ 11387 public com.google.protobuf.ByteString 11388 getNameBytes() { 7810 11389 java.lang.Object ref = name_; 7811 if (ref instanceof String) {11390 if (ref instanceof java.lang.String) { 7812 11391 com.google.protobuf.ByteString b = 7813 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 11392 com.google.protobuf.ByteString.copyFromUtf8( 11393 (java.lang.String) ref); 7814 11394 name_ = b; 7815 11395 return b; … … 7818 11398 } 7819 11399 } 7820 11400 7821 11401 // repeated .google.protobuf.MethodDescriptorProto method = 2; 7822 11402 public static final int METHOD_FIELD_NUMBER = 2; 7823 11403 private java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> method_; 11404 /** 11405 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11406 */ 7824 11407 public java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> getMethodList() { 7825 11408 return method_; 7826 11409 } 11410 /** 11411 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11412 */ 7827 11413 public java.util.List<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> 7828 11414 getMethodOrBuilderList() { 7829 11415 return method_; 7830 11416 } 11417 /** 11418 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11419 */ 7831 11420 public int getMethodCount() { 7832 11421 return method_.size(); 7833 11422 } 11423 /** 11424 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11425 */ 7834 11426 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getMethod(int index) { 7835 11427 return method_.get(index); 7836 11428 } 11429 /** 11430 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11431 */ 7837 11432 public com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder getMethodOrBuilder( 7838 11433 int index) { 7839 11434 return method_.get(index); 7840 11435 } 7841 11436 7842 11437 // optional .google.protobuf.ServiceOptions options = 3; 7843 11438 public static final int OPTIONS_FIELD_NUMBER = 3; 7844 11439 private com.google.protobuf.DescriptorProtos.ServiceOptions options_; 11440 /** 11441 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 11442 */ 7845 11443 public boolean hasOptions() { 7846 11444 return ((bitField0_ & 0x00000002) == 0x00000002); 7847 11445 } 11446 /** 11447 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 11448 */ 7848 11449 public com.google.protobuf.DescriptorProtos.ServiceOptions getOptions() { 7849 11450 return options_; 7850 11451 } 11452 /** 11453 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 11454 */ 7851 11455 public com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder getOptionsOrBuilder() { 7852 11456 return options_; 7853 11457 } 7854 11458 7855 11459 private void initFields() { 7856 11460 name_ = ""; … … 7862 11466 byte isInitialized = memoizedIsInitialized; 7863 11467 if (isInitialized != -1) return isInitialized == 1; 7864 11468 7865 11469 for (int i = 0; i < getMethodCount(); i++) { 7866 11470 if (!getMethod(i).isInitialized()) { … … 7878 11482 return true; 7879 11483 } 7880 11484 7881 11485 public void writeTo(com.google.protobuf.CodedOutputStream output) 7882 11486 throws java.io.IOException { … … 7893 11497 getUnknownFields().writeTo(output); 7894 11498 } 7895 11499 7896 11500 private int memoizedSerializedSize = -1; 7897 11501 public int getSerializedSize() { 7898 11502 int size = memoizedSerializedSize; 7899 11503 if (size != -1) return size; 7900 11504 7901 11505 size = 0; 7902 11506 if (((bitField0_ & 0x00000001) == 0x00000001)) { … … 7916 11520 return size; 7917 11521 } 7918 11522 7919 11523 private static final long serialVersionUID = 0L; 7920 11524 @java.lang.Override … … 7923 11527 return super.writeReplace(); 7924 11528 } 7925 11529 7926 11530 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( 7927 11531 com.google.protobuf.ByteString data) 7928 11532 throws com.google.protobuf.InvalidProtocolBufferException { 7929 return newBuilder().mergeFrom(data).buildParsed();11533 return PARSER.parseFrom(data); 7930 11534 } 7931 11535 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( … … 7933 11537 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7934 11538 throws com.google.protobuf.InvalidProtocolBufferException { 7935 return newBuilder().mergeFrom(data, extensionRegistry) 7936 .buildParsed(); 11539 return PARSER.parseFrom(data, extensionRegistry); 7937 11540 } 7938 11541 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom(byte[] data) 7939 11542 throws com.google.protobuf.InvalidProtocolBufferException { 7940 return newBuilder().mergeFrom(data).buildParsed();11543 return PARSER.parseFrom(data); 7941 11544 } 7942 11545 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( … … 7944 11547 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7945 11548 throws com.google.protobuf.InvalidProtocolBufferException { 7946 return newBuilder().mergeFrom(data, extensionRegistry) 7947 .buildParsed(); 11549 return PARSER.parseFrom(data, extensionRegistry); 7948 11550 } 7949 11551 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom(java.io.InputStream input) 7950 11552 throws java.io.IOException { 7951 return newBuilder().mergeFrom(input).buildParsed();11553 return PARSER.parseFrom(input); 7952 11554 } 7953 11555 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( … … 7955 11557 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7956 11558 throws java.io.IOException { 7957 return newBuilder().mergeFrom(input, extensionRegistry) 7958 .buildParsed(); 11559 return PARSER.parseFrom(input, extensionRegistry); 7959 11560 } 7960 11561 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseDelimitedFrom(java.io.InputStream input) 7961 11562 throws java.io.IOException { 7962 Builder builder = newBuilder(); 7963 if (builder.mergeDelimitedFrom(input)) { 7964 return builder.buildParsed(); 7965 } else { 7966 return null; 7967 } 11563 return PARSER.parseDelimitedFrom(input); 7968 11564 } 7969 11565 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseDelimitedFrom( … … 7971 11567 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7972 11568 throws java.io.IOException { 7973 Builder builder = newBuilder(); 7974 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 7975 return builder.buildParsed(); 7976 } else { 7977 return null; 7978 } 11569 return PARSER.parseDelimitedFrom(input, extensionRegistry); 7979 11570 } 7980 11571 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( 7981 11572 com.google.protobuf.CodedInputStream input) 7982 11573 throws java.io.IOException { 7983 return newBuilder().mergeFrom(input).buildParsed();11574 return PARSER.parseFrom(input); 7984 11575 } 7985 11576 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( … … 7987 11578 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7988 11579 throws java.io.IOException { 7989 return newBuilder().mergeFrom(input, extensionRegistry) 7990 .buildParsed(); 7991 } 7992 11580 return PARSER.parseFrom(input, extensionRegistry); 11581 } 11582 7993 11583 public static Builder newBuilder() { return Builder.create(); } 7994 11584 public Builder newBuilderForType() { return newBuilder(); } … … 7997 11587 } 7998 11588 public Builder toBuilder() { return newBuilder(this); } 7999 11589 8000 11590 @java.lang.Override 8001 11591 protected Builder newBuilderForType( … … 8004 11594 return builder; 8005 11595 } 11596 /** 11597 * Protobuf type {@code google.protobuf.ServiceDescriptorProto} 11598 * 11599 * <pre> 11600 * Describes a service. 11601 * </pre> 11602 */ 8006 11603 public static final class Builder extends 8007 11604 com.google.protobuf.GeneratedMessage.Builder<Builder> … … 8011 11608 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceDescriptorProto_descriptor; 8012 11609 } 8013 11610 8014 11611 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 8015 11612 internalGetFieldAccessorTable() { 8016 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceDescriptorProto_fieldAccessorTable; 8017 } 8018 11613 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceDescriptorProto_fieldAccessorTable 11614 .ensureFieldAccessorsInitialized( 11615 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.class, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder.class); 11616 } 11617 8019 11618 // Construct using com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.newBuilder() 8020 11619 private Builder() { 8021 11620 maybeForceBuilderInitialization(); 8022 11621 } 8023 8024 private Builder(BuilderParent parent) { 11622 11623 private Builder( 11624 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 8025 11625 super(parent); 8026 11626 maybeForceBuilderInitialization(); … … 8035 11635 return new Builder(); 8036 11636 } 8037 11637 8038 11638 public Builder clear() { 8039 11639 super.clear(); … … 8054 11654 return this; 8055 11655 } 8056 11656 8057 11657 public Builder clone() { 8058 11658 return create().mergeFrom(buildPartial()); 8059 11659 } 8060 11660 8061 11661 public com.google.protobuf.Descriptors.Descriptor 8062 11662 getDescriptorForType() { 8063 return com.google.protobuf.DescriptorProtos. ServiceDescriptorProto.getDescriptor();8064 } 8065 11663 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceDescriptorProto_descriptor; 11664 } 11665 8066 11666 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getDefaultInstanceForType() { 8067 11667 return com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.getDefaultInstance(); 8068 11668 } 8069 11669 8070 11670 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto build() { 8071 11671 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto result = buildPartial(); … … 8075 11675 return result; 8076 11676 } 8077 8078 private com.google.protobuf.DescriptorProtos.ServiceDescriptorProto buildParsed() 8079 throws com.google.protobuf.InvalidProtocolBufferException { 8080 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto result = buildPartial(); 8081 if (!result.isInitialized()) { 8082 throw newUninitializedMessageException( 8083 result).asInvalidProtocolBufferException(); 8084 } 8085 return result; 8086 } 8087 11677 8088 11678 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto buildPartial() { 8089 11679 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto result = new com.google.protobuf.DescriptorProtos.ServiceDescriptorProto(this); … … 8115 11705 return result; 8116 11706 } 8117 11707 8118 11708 public Builder mergeFrom(com.google.protobuf.Message other) { 8119 11709 if (other instanceof com.google.protobuf.DescriptorProtos.ServiceDescriptorProto) { … … 8124 11714 } 8125 11715 } 8126 11716 8127 11717 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto other) { 8128 11718 if (other == com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.getDefaultInstance()) return this; 8129 11719 if (other.hasName()) { 8130 setName(other.getName()); 11720 bitField0_ |= 0x00000001; 11721 name_ = other.name_; 11722 onChanged(); 8131 11723 } 8132 11724 if (methodBuilder_ == null) { … … 8162 11754 return this; 8163 11755 } 8164 11756 8165 11757 public final boolean isInitialized() { 8166 11758 for (int i = 0; i < getMethodCount(); i++) { … … 8178 11770 return true; 8179 11771 } 8180 11772 8181 11773 public Builder mergeFrom( 8182 11774 com.google.protobuf.CodedInputStream input, 8183 11775 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8184 11776 throws java.io.IOException { 8185 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 8186 com.google.protobuf.UnknownFieldSet.newBuilder( 8187 this.getUnknownFields()); 8188 while (true) { 8189 int tag = input.readTag(); 8190 switch (tag) { 8191 case 0: 8192 this.setUnknownFields(unknownFields.build()); 8193 onChanged(); 8194 return this; 8195 default: { 8196 if (!parseUnknownField(input, unknownFields, 8197 extensionRegistry, tag)) { 8198 this.setUnknownFields(unknownFields.build()); 8199 onChanged(); 8200 return this; 8201 } 8202 break; 8203 } 8204 case 10: { 8205 bitField0_ |= 0x00000001; 8206 name_ = input.readBytes(); 8207 break; 8208 } 8209 case 18: { 8210 com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.MethodDescriptorProto.newBuilder(); 8211 input.readMessage(subBuilder, extensionRegistry); 8212 addMethod(subBuilder.buildPartial()); 8213 break; 8214 } 8215 case 26: { 8216 com.google.protobuf.DescriptorProtos.ServiceOptions.Builder subBuilder = com.google.protobuf.DescriptorProtos.ServiceOptions.newBuilder(); 8217 if (hasOptions()) { 8218 subBuilder.mergeFrom(getOptions()); 8219 } 8220 input.readMessage(subBuilder, extensionRegistry); 8221 setOptions(subBuilder.buildPartial()); 8222 break; 8223 } 11777 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parsedMessage = null; 11778 try { 11779 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 11780 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 11781 parsedMessage = (com.google.protobuf.DescriptorProtos.ServiceDescriptorProto) e.getUnfinishedMessage(); 11782 throw e; 11783 } finally { 11784 if (parsedMessage != null) { 11785 mergeFrom(parsedMessage); 8224 11786 } 8225 11787 } 8226 }8227 11788 return this; 11789 } 8228 11790 private int bitField0_; 8229 11791 8230 11792 // optional string name = 1; 8231 11793 private java.lang.Object name_ = ""; 11794 /** 11795 * <code>optional string name = 1;</code> 11796 */ 8232 11797 public boolean hasName() { 8233 11798 return ((bitField0_ & 0x00000001) == 0x00000001); 8234 11799 } 8235 public String getName() { 11800 /** 11801 * <code>optional string name = 1;</code> 11802 */ 11803 public java.lang.String getName() { 8236 11804 java.lang.Object ref = name_; 8237 if (!(ref instanceof String)) { 8238 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 11805 if (!(ref instanceof java.lang.String)) { 11806 java.lang.String s = ((com.google.protobuf.ByteString) ref) 11807 .toStringUtf8(); 8239 11808 name_ = s; 8240 11809 return s; 8241 11810 } else { 8242 return (String) ref; 8243 } 8244 } 8245 public Builder setName(String value) { 11811 return (java.lang.String) ref; 11812 } 11813 } 11814 /** 11815 * <code>optional string name = 1;</code> 11816 */ 11817 public com.google.protobuf.ByteString 11818 getNameBytes() { 11819 java.lang.Object ref = name_; 11820 if (ref instanceof String) { 11821 com.google.protobuf.ByteString b = 11822 com.google.protobuf.ByteString.copyFromUtf8( 11823 (java.lang.String) ref); 11824 name_ = b; 11825 return b; 11826 } else { 11827 return (com.google.protobuf.ByteString) ref; 11828 } 11829 } 11830 /** 11831 * <code>optional string name = 1;</code> 11832 */ 11833 public Builder setName( 11834 java.lang.String value) { 8246 11835 if (value == null) { 8247 11836 throw new NullPointerException(); … … 8252 11841 return this; 8253 11842 } 11843 /** 11844 * <code>optional string name = 1;</code> 11845 */ 8254 11846 public Builder clearName() { 8255 11847 bitField0_ = (bitField0_ & ~0x00000001); … … 8258 11850 return this; 8259 11851 } 8260 void setName(com.google.protobuf.ByteString value) { 8261 bitField0_ |= 0x00000001; 11852 /** 11853 * <code>optional string name = 1;</code> 11854 */ 11855 public Builder setNameBytes( 11856 com.google.protobuf.ByteString value) { 11857 if (value == null) { 11858 throw new NullPointerException(); 11859 } 11860 bitField0_ |= 0x00000001; 8262 11861 name_ = value; 8263 11862 onChanged(); 8264 } 8265 11863 return this; 11864 } 11865 8266 11866 // repeated .google.protobuf.MethodDescriptorProto method = 2; 8267 11867 private java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> method_ = … … 8273 11873 } 8274 11874 } 8275 11875 8276 11876 private com.google.protobuf.RepeatedFieldBuilder< 8277 11877 com.google.protobuf.DescriptorProtos.MethodDescriptorProto, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> methodBuilder_; 8278 11878 11879 /** 11880 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11881 */ 8279 11882 public java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> getMethodList() { 8280 11883 if (methodBuilder_ == null) { … … 8284 11887 } 8285 11888 } 11889 /** 11890 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11891 */ 8286 11892 public int getMethodCount() { 8287 11893 if (methodBuilder_ == null) { … … 8291 11897 } 8292 11898 } 11899 /** 11900 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11901 */ 8293 11902 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getMethod(int index) { 8294 11903 if (methodBuilder_ == null) { … … 8298 11907 } 8299 11908 } 11909 /** 11910 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11911 */ 8300 11912 public Builder setMethod( 8301 11913 int index, com.google.protobuf.DescriptorProtos.MethodDescriptorProto value) { … … 8312 11924 return this; 8313 11925 } 11926 /** 11927 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11928 */ 8314 11929 public Builder setMethod( 8315 11930 int index, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder builderForValue) { … … 8323 11938 return this; 8324 11939 } 11940 /** 11941 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11942 */ 8325 11943 public Builder addMethod(com.google.protobuf.DescriptorProtos.MethodDescriptorProto value) { 8326 11944 if (methodBuilder_ == null) { … … 8336 11954 return this; 8337 11955 } 11956 /** 11957 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11958 */ 8338 11959 public Builder addMethod( 8339 11960 int index, com.google.protobuf.DescriptorProtos.MethodDescriptorProto value) { … … 8350 11971 return this; 8351 11972 } 11973 /** 11974 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11975 */ 8352 11976 public Builder addMethod( 8353 11977 com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder builderForValue) { … … 8361 11985 return this; 8362 11986 } 11987 /** 11988 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 11989 */ 8363 11990 public Builder addMethod( 8364 11991 int index, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder builderForValue) { … … 8372 11999 return this; 8373 12000 } 12001 /** 12002 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12003 */ 8374 12004 public Builder addAllMethod( 8375 12005 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProto> values) { … … 8383 12013 return this; 8384 12014 } 12015 /** 12016 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12017 */ 8385 12018 public Builder clearMethod() { 8386 12019 if (methodBuilder_ == null) { … … 8393 12026 return this; 8394 12027 } 12028 /** 12029 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12030 */ 8395 12031 public Builder removeMethod(int index) { 8396 12032 if (methodBuilder_ == null) { … … 8403 12039 return this; 8404 12040 } 12041 /** 12042 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12043 */ 8405 12044 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder getMethodBuilder( 8406 12045 int index) { 8407 12046 return getMethodFieldBuilder().getBuilder(index); 8408 12047 } 12048 /** 12049 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12050 */ 8409 12051 public com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder getMethodOrBuilder( 8410 12052 int index) { … … 8414 12056 } 8415 12057 } 12058 /** 12059 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12060 */ 8416 12061 public java.util.List<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> 8417 12062 getMethodOrBuilderList() { … … 8422 12067 } 8423 12068 } 12069 /** 12070 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12071 */ 8424 12072 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder addMethodBuilder() { 8425 12073 return getMethodFieldBuilder().addBuilder( 8426 12074 com.google.protobuf.DescriptorProtos.MethodDescriptorProto.getDefaultInstance()); 8427 12075 } 12076 /** 12077 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12078 */ 8428 12079 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder addMethodBuilder( 8429 12080 int index) { … … 8431 12082 index, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.getDefaultInstance()); 8432 12083 } 12084 /** 12085 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12086 */ 8433 12087 public java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder> 8434 12088 getMethodBuilderList() { … … 8449 12103 return methodBuilder_; 8450 12104 } 8451 12105 8452 12106 // optional .google.protobuf.ServiceOptions options = 3; 8453 12107 private com.google.protobuf.DescriptorProtos.ServiceOptions options_ = com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance(); 8454 12108 private com.google.protobuf.SingleFieldBuilder< 8455 12109 com.google.protobuf.DescriptorProtos.ServiceOptions, com.google.protobuf.DescriptorProtos.ServiceOptions.Builder, com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder> optionsBuilder_; 12110 /** 12111 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 12112 */ 8456 12113 public boolean hasOptions() { 8457 12114 return ((bitField0_ & 0x00000004) == 0x00000004); 8458 12115 } 12116 /** 12117 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 12118 */ 8459 12119 public com.google.protobuf.DescriptorProtos.ServiceOptions getOptions() { 8460 12120 if (optionsBuilder_ == null) { … … 8464 12124 } 8465 12125 } 12126 /** 12127 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 12128 */ 8466 12129 public Builder setOptions(com.google.protobuf.DescriptorProtos.ServiceOptions value) { 8467 12130 if (optionsBuilder_ == null) { … … 8477 12140 return this; 8478 12141 } 12142 /** 12143 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 12144 */ 8479 12145 public Builder setOptions( 8480 12146 com.google.protobuf.DescriptorProtos.ServiceOptions.Builder builderForValue) { … … 8488 12154 return this; 8489 12155 } 12156 /** 12157 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 12158 */ 8490 12159 public Builder mergeOptions(com.google.protobuf.DescriptorProtos.ServiceOptions value) { 8491 12160 if (optionsBuilder_ == null) { … … 8504 12173 return this; 8505 12174 } 12175 /** 12176 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 12177 */ 8506 12178 public Builder clearOptions() { 8507 12179 if (optionsBuilder_ == null) { … … 8514 12186 return this; 8515 12187 } 12188 /** 12189 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 12190 */ 8516 12191 public com.google.protobuf.DescriptorProtos.ServiceOptions.Builder getOptionsBuilder() { 8517 12192 bitField0_ |= 0x00000004; … … 8519 12194 return getOptionsFieldBuilder().getBuilder(); 8520 12195 } 12196 /** 12197 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 12198 */ 8521 12199 public com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder getOptionsOrBuilder() { 8522 12200 if (optionsBuilder_ != null) { … … 8526 12204 } 8527 12205 } 12206 /** 12207 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 12208 */ 8528 12209 private com.google.protobuf.SingleFieldBuilder< 8529 12210 com.google.protobuf.DescriptorProtos.ServiceOptions, com.google.protobuf.DescriptorProtos.ServiceOptions.Builder, com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder> … … 8539 12220 return optionsBuilder_; 8540 12221 } 8541 12222 8542 12223 // @@protoc_insertion_point(builder_scope:google.protobuf.ServiceDescriptorProto) 8543 12224 } 8544 12225 8545 12226 static { 8546 12227 defaultInstance = new ServiceDescriptorProto(true); 8547 12228 defaultInstance.initFields(); 8548 12229 } 8549 12230 8550 12231 // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto) 8551 12232 } 8552 12233 8553 12234 public interface MethodDescriptorProtoOrBuilder 8554 12235 extends com.google.protobuf.MessageOrBuilder { 8555 12236 8556 12237 // optional string name = 1; 12238 /** 12239 * <code>optional string name = 1;</code> 12240 */ 8557 12241 boolean hasName(); 8558 String getName(); 8559 12242 /** 12243 * <code>optional string name = 1;</code> 12244 */ 12245 java.lang.String getName(); 12246 /** 12247 * <code>optional string name = 1;</code> 12248 */ 12249 com.google.protobuf.ByteString 12250 getNameBytes(); 12251 8560 12252 // optional string input_type = 2; 12253 /** 12254 * <code>optional string input_type = 2;</code> 12255 * 12256 * <pre> 12257 * Input and output type names. These are resolved in the same way as 12258 * FieldDescriptorProto.type_name, but must refer to a message type. 12259 * </pre> 12260 */ 8561 12261 boolean hasInputType(); 8562 String getInputType(); 8563 12262 /** 12263 * <code>optional string input_type = 2;</code> 12264 * 12265 * <pre> 12266 * Input and output type names. These are resolved in the same way as 12267 * FieldDescriptorProto.type_name, but must refer to a message type. 12268 * </pre> 12269 */ 12270 java.lang.String getInputType(); 12271 /** 12272 * <code>optional string input_type = 2;</code> 12273 * 12274 * <pre> 12275 * Input and output type names. These are resolved in the same way as 12276 * FieldDescriptorProto.type_name, but must refer to a message type. 12277 * </pre> 12278 */ 12279 com.google.protobuf.ByteString 12280 getInputTypeBytes(); 12281 8564 12282 // optional string output_type = 3; 12283 /** 12284 * <code>optional string output_type = 3;</code> 12285 */ 8565 12286 boolean hasOutputType(); 8566 String getOutputType(); 8567 12287 /** 12288 * <code>optional string output_type = 3;</code> 12289 */ 12290 java.lang.String getOutputType(); 12291 /** 12292 * <code>optional string output_type = 3;</code> 12293 */ 12294 com.google.protobuf.ByteString 12295 getOutputTypeBytes(); 12296 8568 12297 // optional .google.protobuf.MethodOptions options = 4; 12298 /** 12299 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 12300 */ 8569 12301 boolean hasOptions(); 12302 /** 12303 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 12304 */ 8570 12305 com.google.protobuf.DescriptorProtos.MethodOptions getOptions(); 12306 /** 12307 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 12308 */ 8571 12309 com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder(); 8572 12310 } 12311 /** 12312 * Protobuf type {@code google.protobuf.MethodDescriptorProto} 12313 * 12314 * <pre> 12315 * Describes a method of a service. 12316 * </pre> 12317 */ 8573 12318 public static final class MethodDescriptorProto extends 8574 12319 com.google.protobuf.GeneratedMessage 8575 12320 implements MethodDescriptorProtoOrBuilder { 8576 12321 // Use MethodDescriptorProto.newBuilder() to construct. 8577 private MethodDescriptorProto( Builderbuilder) {12322 private MethodDescriptorProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 8578 12323 super(builder); 8579 } 8580 private MethodDescriptorProto(boolean noInit) {} 8581 12324 this.unknownFields = builder.getUnknownFields(); 12325 } 12326 private MethodDescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 12327 8582 12328 private static final MethodDescriptorProto defaultInstance; 8583 12329 public static MethodDescriptorProto getDefaultInstance() { 8584 12330 return defaultInstance; 8585 12331 } 8586 12332 8587 12333 public MethodDescriptorProto getDefaultInstanceForType() { 8588 12334 return defaultInstance; 8589 12335 } 8590 8591 public static final com.google.protobuf.Descriptors.Descriptor 8592 getDescriptor() { 8593 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_descriptor; 8594 } 8595 8596 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 8597 internalGetFieldAccessorTable() { 8598 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_fieldAccessorTable; 8599 } 8600 8601 private int bitField0_; 8602 // optional string name = 1; 8603 public static final int NAME_FIELD_NUMBER = 1; 8604 private java.lang.Object name_; 8605 public boolean hasName() { 8606 return ((bitField0_ & 0x00000001) == 0x00000001); 8607 } 8608 public String getName() { 8609 java.lang.Object ref = name_; 8610 if (ref instanceof String) { 8611 return (String) ref; 8612 } else { 8613 com.google.protobuf.ByteString bs = 8614 (com.google.protobuf.ByteString) ref; 8615 String s = bs.toStringUtf8(); 8616 if (com.google.protobuf.Internal.isValidUtf8(bs)) { 8617 name_ = s; 8618 } 8619 return s; 8620 } 8621 } 8622 private com.google.protobuf.ByteString getNameBytes() { 8623 java.lang.Object ref = name_; 8624 if (ref instanceof String) { 8625 com.google.protobuf.ByteString b = 8626 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 8627 name_ = b; 8628 return b; 8629 } else { 8630 return (com.google.protobuf.ByteString) ref; 8631 } 8632 } 8633 8634 // optional string input_type = 2; 8635 public static final int INPUT_TYPE_FIELD_NUMBER = 2; 8636 private java.lang.Object inputType_; 8637 public boolean hasInputType() { 8638 return ((bitField0_ & 0x00000002) == 0x00000002); 8639 } 8640 public String getInputType() { 8641 java.lang.Object ref = inputType_; 8642 if (ref instanceof String) { 8643 return (String) ref; 8644 } else { 8645 com.google.protobuf.ByteString bs = 8646 (com.google.protobuf.ByteString) ref; 8647 String s = bs.toStringUtf8(); 8648 if (com.google.protobuf.Internal.isValidUtf8(bs)) { 8649 inputType_ = s; 8650 } 8651 return s; 8652 } 8653 } 8654 private com.google.protobuf.ByteString getInputTypeBytes() { 8655 java.lang.Object ref = inputType_; 8656 if (ref instanceof String) { 8657 com.google.protobuf.ByteString b = 8658 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 8659 inputType_ = b; 8660 return b; 8661 } else { 8662 return (com.google.protobuf.ByteString) ref; 8663 } 8664 } 8665 8666 // optional string output_type = 3; 8667 public static final int OUTPUT_TYPE_FIELD_NUMBER = 3; 8668 private java.lang.Object outputType_; 8669 public boolean hasOutputType() { 8670 return ((bitField0_ & 0x00000004) == 0x00000004); 8671 } 8672 public String getOutputType() { 8673 java.lang.Object ref = outputType_; 8674 if (ref instanceof String) { 8675 return (String) ref; 8676 } else { 8677 com.google.protobuf.ByteString bs = 8678 (com.google.protobuf.ByteString) ref; 8679 String s = bs.toStringUtf8(); 8680 if (com.google.protobuf.Internal.isValidUtf8(bs)) { 8681 outputType_ = s; 8682 } 8683 return s; 8684 } 8685 } 8686 private com.google.protobuf.ByteString getOutputTypeBytes() { 8687 java.lang.Object ref = outputType_; 8688 if (ref instanceof String) { 8689 com.google.protobuf.ByteString b = 8690 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 8691 outputType_ = b; 8692 return b; 8693 } else { 8694 return (com.google.protobuf.ByteString) ref; 8695 } 8696 } 8697 8698 // optional .google.protobuf.MethodOptions options = 4; 8699 public static final int OPTIONS_FIELD_NUMBER = 4; 8700 private com.google.protobuf.DescriptorProtos.MethodOptions options_; 8701 public boolean hasOptions() { 8702 return ((bitField0_ & 0x00000008) == 0x00000008); 8703 } 8704 public com.google.protobuf.DescriptorProtos.MethodOptions getOptions() { 8705 return options_; 8706 } 8707 public com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder() { 8708 return options_; 8709 } 8710 8711 private void initFields() { 8712 name_ = ""; 8713 inputType_ = ""; 8714 outputType_ = ""; 8715 options_ = com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance(); 8716 } 8717 private byte memoizedIsInitialized = -1; 8718 public final boolean isInitialized() { 8719 byte isInitialized = memoizedIsInitialized; 8720 if (isInitialized != -1) return isInitialized == 1; 8721 8722 if (hasOptions()) { 8723 if (!getOptions().isInitialized()) { 8724 memoizedIsInitialized = 0; 8725 return false; 8726 } 8727 } 8728 memoizedIsInitialized = 1; 8729 return true; 8730 } 8731 8732 public void writeTo(com.google.protobuf.CodedOutputStream output) 8733 throws java.io.IOException { 8734 getSerializedSize(); 8735 if (((bitField0_ & 0x00000001) == 0x00000001)) { 8736 output.writeBytes(1, getNameBytes()); 8737 } 8738 if (((bitField0_ & 0x00000002) == 0x00000002)) { 8739 output.writeBytes(2, getInputTypeBytes()); 8740 } 8741 if (((bitField0_ & 0x00000004) == 0x00000004)) { 8742 output.writeBytes(3, getOutputTypeBytes()); 8743 } 8744 if (((bitField0_ & 0x00000008) == 0x00000008)) { 8745 output.writeMessage(4, options_); 8746 } 8747 getUnknownFields().writeTo(output); 8748 } 8749 8750 private int memoizedSerializedSize = -1; 8751 public int getSerializedSize() { 8752 int size = memoizedSerializedSize; 8753 if (size != -1) return size; 8754 8755 size = 0; 8756 if (((bitField0_ & 0x00000001) == 0x00000001)) { 8757 size += com.google.protobuf.CodedOutputStream 8758 .computeBytesSize(1, getNameBytes()); 8759 } 8760 if (((bitField0_ & 0x00000002) == 0x00000002)) { 8761 size += com.google.protobuf.CodedOutputStream 8762 .computeBytesSize(2, getInputTypeBytes()); 8763 } 8764 if (((bitField0_ & 0x00000004) == 0x00000004)) { 8765 size += com.google.protobuf.CodedOutputStream 8766 .computeBytesSize(3, getOutputTypeBytes()); 8767 } 8768 if (((bitField0_ & 0x00000008) == 0x00000008)) { 8769 size += com.google.protobuf.CodedOutputStream 8770 .computeMessageSize(4, options_); 8771 } 8772 size += getUnknownFields().getSerializedSize(); 8773 memoizedSerializedSize = size; 8774 return size; 8775 } 8776 8777 private static final long serialVersionUID = 0L; 12336 12337 private final com.google.protobuf.UnknownFieldSet unknownFields; 8778 12338 @java.lang.Override 8779 protected java.lang.Object writeReplace() 8780 throws java.io.ObjectStreamException { 8781 return super.writeReplace(); 8782 } 8783 8784 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 8785 com.google.protobuf.ByteString data) 8786 throws com.google.protobuf.InvalidProtocolBufferException { 8787 return newBuilder().mergeFrom(data).buildParsed(); 8788 } 8789 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 8790 com.google.protobuf.ByteString data, 12339 public final com.google.protobuf.UnknownFieldSet 12340 getUnknownFields() { 12341 return this.unknownFields; 12342 } 12343 private MethodDescriptorProto( 12344 com.google.protobuf.CodedInputStream input, 8791 12345 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8792 12346 throws com.google.protobuf.InvalidProtocolBufferException { 8793 return newBuilder().mergeFrom(data, extensionRegistry) 8794 .buildParsed(); 8795 } 8796 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom(byte[] data) 8797 throws com.google.protobuf.InvalidProtocolBufferException { 8798 return newBuilder().mergeFrom(data).buildParsed(); 8799 } 8800 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 8801 byte[] data, 8802 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8803 throws com.google.protobuf.InvalidProtocolBufferException { 8804 return newBuilder().mergeFrom(data, extensionRegistry) 8805 .buildParsed(); 8806 } 8807 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom(java.io.InputStream input) 8808 throws java.io.IOException { 8809 return newBuilder().mergeFrom(input).buildParsed(); 8810 } 8811 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 8812 java.io.InputStream input, 8813 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8814 throws java.io.IOException { 8815 return newBuilder().mergeFrom(input, extensionRegistry) 8816 .buildParsed(); 8817 } 8818 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseDelimitedFrom(java.io.InputStream input) 8819 throws java.io.IOException { 8820 Builder builder = newBuilder(); 8821 if (builder.mergeDelimitedFrom(input)) { 8822 return builder.buildParsed(); 8823 } else { 8824 return null; 8825 } 8826 } 8827 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseDelimitedFrom( 8828 java.io.InputStream input, 8829 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8830 throws java.io.IOException { 8831 Builder builder = newBuilder(); 8832 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 8833 return builder.buildParsed(); 8834 } else { 8835 return null; 8836 } 8837 } 8838 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 8839 com.google.protobuf.CodedInputStream input) 8840 throws java.io.IOException { 8841 return newBuilder().mergeFrom(input).buildParsed(); 8842 } 8843 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 8844 com.google.protobuf.CodedInputStream input, 8845 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8846 throws java.io.IOException { 8847 return newBuilder().mergeFrom(input, extensionRegistry) 8848 .buildParsed(); 8849 } 8850 8851 public static Builder newBuilder() { return Builder.create(); } 8852 public Builder newBuilderForType() { return newBuilder(); } 8853 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.MethodDescriptorProto prototype) { 8854 return newBuilder().mergeFrom(prototype); 8855 } 8856 public Builder toBuilder() { return newBuilder(this); } 8857 8858 @java.lang.Override 8859 protected Builder newBuilderForType( 8860 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 8861 Builder builder = new Builder(parent); 8862 return builder; 8863 } 8864 public static final class Builder extends 8865 com.google.protobuf.GeneratedMessage.Builder<Builder> 8866 implements com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder { 8867 public static final com.google.protobuf.Descriptors.Descriptor 8868 getDescriptor() { 8869 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_descriptor; 8870 } 8871 8872 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 8873 internalGetFieldAccessorTable() { 8874 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_fieldAccessorTable; 8875 } 8876 8877 // Construct using com.google.protobuf.DescriptorProtos.MethodDescriptorProto.newBuilder() 8878 private Builder() { 8879 maybeForceBuilderInitialization(); 8880 } 8881 8882 private Builder(BuilderParent parent) { 8883 super(parent); 8884 maybeForceBuilderInitialization(); 8885 } 8886 private void maybeForceBuilderInitialization() { 8887 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 8888 getOptionsFieldBuilder(); 8889 } 8890 } 8891 private static Builder create() { 8892 return new Builder(); 8893 } 8894 8895 public Builder clear() { 8896 super.clear(); 8897 name_ = ""; 8898 bitField0_ = (bitField0_ & ~0x00000001); 8899 inputType_ = ""; 8900 bitField0_ = (bitField0_ & ~0x00000002); 8901 outputType_ = ""; 8902 bitField0_ = (bitField0_ & ~0x00000004); 8903 if (optionsBuilder_ == null) { 8904 options_ = com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance(); 8905 } else { 8906 optionsBuilder_.clear(); 8907 } 8908 bitField0_ = (bitField0_ & ~0x00000008); 8909 return this; 8910 } 8911 8912 public Builder clone() { 8913 return create().mergeFrom(buildPartial()); 8914 } 8915 8916 public com.google.protobuf.Descriptors.Descriptor 8917 getDescriptorForType() { 8918 return com.google.protobuf.DescriptorProtos.MethodDescriptorProto.getDescriptor(); 8919 } 8920 8921 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getDefaultInstanceForType() { 8922 return com.google.protobuf.DescriptorProtos.MethodDescriptorProto.getDefaultInstance(); 8923 } 8924 8925 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto build() { 8926 com.google.protobuf.DescriptorProtos.MethodDescriptorProto result = buildPartial(); 8927 if (!result.isInitialized()) { 8928 throw newUninitializedMessageException(result); 8929 } 8930 return result; 8931 } 8932 8933 private com.google.protobuf.DescriptorProtos.MethodDescriptorProto buildParsed() 8934 throws com.google.protobuf.InvalidProtocolBufferException { 8935 com.google.protobuf.DescriptorProtos.MethodDescriptorProto result = buildPartial(); 8936 if (!result.isInitialized()) { 8937 throw newUninitializedMessageException( 8938 result).asInvalidProtocolBufferException(); 8939 } 8940 return result; 8941 } 8942 8943 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto buildPartial() { 8944 com.google.protobuf.DescriptorProtos.MethodDescriptorProto result = new com.google.protobuf.DescriptorProtos.MethodDescriptorProto(this); 8945 int from_bitField0_ = bitField0_; 8946 int to_bitField0_ = 0; 8947 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 8948 to_bitField0_ |= 0x00000001; 8949 } 8950 result.name_ = name_; 8951 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 8952 to_bitField0_ |= 0x00000002; 8953 } 8954 result.inputType_ = inputType_; 8955 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 8956 to_bitField0_ |= 0x00000004; 8957 } 8958 result.outputType_ = outputType_; 8959 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 8960 to_bitField0_ |= 0x00000008; 8961 } 8962 if (optionsBuilder_ == null) { 8963 result.options_ = options_; 8964 } else { 8965 result.options_ = optionsBuilder_.build(); 8966 } 8967 result.bitField0_ = to_bitField0_; 8968 onBuilt(); 8969 return result; 8970 } 8971 8972 public Builder mergeFrom(com.google.protobuf.Message other) { 8973 if (other instanceof com.google.protobuf.DescriptorProtos.MethodDescriptorProto) { 8974 return mergeFrom((com.google.protobuf.DescriptorProtos.MethodDescriptorProto)other); 8975 } else { 8976 super.mergeFrom(other); 8977 return this; 8978 } 8979 } 8980 8981 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.MethodDescriptorProto other) { 8982 if (other == com.google.protobuf.DescriptorProtos.MethodDescriptorProto.getDefaultInstance()) return this; 8983 if (other.hasName()) { 8984 setName(other.getName()); 8985 } 8986 if (other.hasInputType()) { 8987 setInputType(other.getInputType()); 8988 } 8989 if (other.hasOutputType()) { 8990 setOutputType(other.getOutputType()); 8991 } 8992 if (other.hasOptions()) { 8993 mergeOptions(other.getOptions()); 8994 } 8995 this.mergeUnknownFields(other.getUnknownFields()); 8996 return this; 8997 } 8998 8999 public final boolean isInitialized() { 9000 if (hasOptions()) { 9001 if (!getOptions().isInitialized()) { 9002 9003 return false; 9004 } 9005 } 9006 return true; 9007 } 9008 9009 public Builder mergeFrom( 9010 com.google.protobuf.CodedInputStream input, 9011 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9012 throws java.io.IOException { 9013 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 9014 com.google.protobuf.UnknownFieldSet.newBuilder( 9015 this.getUnknownFields()); 9016 while (true) { 12347 initFields(); 12348 int mutable_bitField0_ = 0; 12349 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 12350 com.google.protobuf.UnknownFieldSet.newBuilder(); 12351 try { 12352 boolean done = false; 12353 while (!done) { 9017 12354 int tag = input.readTag(); 9018 12355 switch (tag) { 9019 12356 case 0: 9020 this.setUnknownFields(unknownFields.build()); 9021 onChanged(); 9022 return this; 12357 done = true; 12358 break; 9023 12359 default: { 9024 12360 if (!parseUnknownField(input, unknownFields, 9025 12361 extensionRegistry, tag)) { 9026 this.setUnknownFields(unknownFields.build()); 9027 onChanged(); 9028 return this; 12362 done = true; 9029 12363 } 9030 12364 break; … … 9046 12380 } 9047 12381 case 34: { 9048 com.google.protobuf.DescriptorProtos.MethodOptions.Builder subBuilder = com.google.protobuf.DescriptorProtos.MethodOptions.newBuilder();9049 if ( hasOptions()) {9050 subBuilder .mergeFrom(getOptions());12382 com.google.protobuf.DescriptorProtos.MethodOptions.Builder subBuilder = null; 12383 if (((bitField0_ & 0x00000008) == 0x00000008)) { 12384 subBuilder = options_.toBuilder(); 9051 12385 } 9052 input.readMessage(subBuilder, extensionRegistry); 9053 setOptions(subBuilder.buildPartial()); 12386 options_ = input.readMessage(com.google.protobuf.DescriptorProtos.MethodOptions.PARSER, extensionRegistry); 12387 if (subBuilder != null) { 12388 subBuilder.mergeFrom(options_); 12389 options_ = subBuilder.buildPartial(); 12390 } 12391 bitField0_ |= 0x00000008; 9054 12392 break; 9055 12393 } 9056 12394 } 9057 12395 } 9058 } 9059 12396 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 12397 throw e.setUnfinishedMessage(this); 12398 } catch (java.io.IOException e) { 12399 throw new com.google.protobuf.InvalidProtocolBufferException( 12400 e.getMessage()).setUnfinishedMessage(this); 12401 } finally { 12402 this.unknownFields = unknownFields.build(); 12403 makeExtensionsImmutable(); 12404 } 12405 } 12406 public static final com.google.protobuf.Descriptors.Descriptor 12407 getDescriptor() { 12408 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_descriptor; 12409 } 12410 12411 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 12412 internalGetFieldAccessorTable() { 12413 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_fieldAccessorTable 12414 .ensureFieldAccessorsInitialized( 12415 com.google.protobuf.DescriptorProtos.MethodDescriptorProto.class, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder.class); 12416 } 12417 12418 public static com.google.protobuf.Parser<MethodDescriptorProto> PARSER = 12419 new com.google.protobuf.AbstractParser<MethodDescriptorProto>() { 12420 public MethodDescriptorProto parsePartialFrom( 12421 com.google.protobuf.CodedInputStream input, 12422 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12423 throws com.google.protobuf.InvalidProtocolBufferException { 12424 return new MethodDescriptorProto(input, extensionRegistry); 12425 } 12426 }; 12427 12428 @java.lang.Override 12429 public com.google.protobuf.Parser<MethodDescriptorProto> getParserForType() { 12430 return PARSER; 12431 } 12432 12433 private int bitField0_; 12434 // optional string name = 1; 12435 public static final int NAME_FIELD_NUMBER = 1; 12436 private java.lang.Object name_; 12437 /** 12438 * <code>optional string name = 1;</code> 12439 */ 12440 public boolean hasName() { 12441 return ((bitField0_ & 0x00000001) == 0x00000001); 12442 } 12443 /** 12444 * <code>optional string name = 1;</code> 12445 */ 12446 public java.lang.String getName() { 12447 java.lang.Object ref = name_; 12448 if (ref instanceof java.lang.String) { 12449 return (java.lang.String) ref; 12450 } else { 12451 com.google.protobuf.ByteString bs = 12452 (com.google.protobuf.ByteString) ref; 12453 java.lang.String s = bs.toStringUtf8(); 12454 if (bs.isValidUtf8()) { 12455 name_ = s; 12456 } 12457 return s; 12458 } 12459 } 12460 /** 12461 * <code>optional string name = 1;</code> 12462 */ 12463 public com.google.protobuf.ByteString 12464 getNameBytes() { 12465 java.lang.Object ref = name_; 12466 if (ref instanceof java.lang.String) { 12467 com.google.protobuf.ByteString b = 12468 com.google.protobuf.ByteString.copyFromUtf8( 12469 (java.lang.String) ref); 12470 name_ = b; 12471 return b; 12472 } else { 12473 return (com.google.protobuf.ByteString) ref; 12474 } 12475 } 12476 12477 // optional string input_type = 2; 12478 public static final int INPUT_TYPE_FIELD_NUMBER = 2; 12479 private java.lang.Object inputType_; 12480 /** 12481 * <code>optional string input_type = 2;</code> 12482 * 12483 * <pre> 12484 * Input and output type names. These are resolved in the same way as 12485 * FieldDescriptorProto.type_name, but must refer to a message type. 12486 * </pre> 12487 */ 12488 public boolean hasInputType() { 12489 return ((bitField0_ & 0x00000002) == 0x00000002); 12490 } 12491 /** 12492 * <code>optional string input_type = 2;</code> 12493 * 12494 * <pre> 12495 * Input and output type names. These are resolved in the same way as 12496 * FieldDescriptorProto.type_name, but must refer to a message type. 12497 * </pre> 12498 */ 12499 public java.lang.String getInputType() { 12500 java.lang.Object ref = inputType_; 12501 if (ref instanceof java.lang.String) { 12502 return (java.lang.String) ref; 12503 } else { 12504 com.google.protobuf.ByteString bs = 12505 (com.google.protobuf.ByteString) ref; 12506 java.lang.String s = bs.toStringUtf8(); 12507 if (bs.isValidUtf8()) { 12508 inputType_ = s; 12509 } 12510 return s; 12511 } 12512 } 12513 /** 12514 * <code>optional string input_type = 2;</code> 12515 * 12516 * <pre> 12517 * Input and output type names. These are resolved in the same way as 12518 * FieldDescriptorProto.type_name, but must refer to a message type. 12519 * </pre> 12520 */ 12521 public com.google.protobuf.ByteString 12522 getInputTypeBytes() { 12523 java.lang.Object ref = inputType_; 12524 if (ref instanceof java.lang.String) { 12525 com.google.protobuf.ByteString b = 12526 com.google.protobuf.ByteString.copyFromUtf8( 12527 (java.lang.String) ref); 12528 inputType_ = b; 12529 return b; 12530 } else { 12531 return (com.google.protobuf.ByteString) ref; 12532 } 12533 } 12534 12535 // optional string output_type = 3; 12536 public static final int OUTPUT_TYPE_FIELD_NUMBER = 3; 12537 private java.lang.Object outputType_; 12538 /** 12539 * <code>optional string output_type = 3;</code> 12540 */ 12541 public boolean hasOutputType() { 12542 return ((bitField0_ & 0x00000004) == 0x00000004); 12543 } 12544 /** 12545 * <code>optional string output_type = 3;</code> 12546 */ 12547 public java.lang.String getOutputType() { 12548 java.lang.Object ref = outputType_; 12549 if (ref instanceof java.lang.String) { 12550 return (java.lang.String) ref; 12551 } else { 12552 com.google.protobuf.ByteString bs = 12553 (com.google.protobuf.ByteString) ref; 12554 java.lang.String s = bs.toStringUtf8(); 12555 if (bs.isValidUtf8()) { 12556 outputType_ = s; 12557 } 12558 return s; 12559 } 12560 } 12561 /** 12562 * <code>optional string output_type = 3;</code> 12563 */ 12564 public com.google.protobuf.ByteString 12565 getOutputTypeBytes() { 12566 java.lang.Object ref = outputType_; 12567 if (ref instanceof java.lang.String) { 12568 com.google.protobuf.ByteString b = 12569 com.google.protobuf.ByteString.copyFromUtf8( 12570 (java.lang.String) ref); 12571 outputType_ = b; 12572 return b; 12573 } else { 12574 return (com.google.protobuf.ByteString) ref; 12575 } 12576 } 12577 12578 // optional .google.protobuf.MethodOptions options = 4; 12579 public static final int OPTIONS_FIELD_NUMBER = 4; 12580 private com.google.protobuf.DescriptorProtos.MethodOptions options_; 12581 /** 12582 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 12583 */ 12584 public boolean hasOptions() { 12585 return ((bitField0_ & 0x00000008) == 0x00000008); 12586 } 12587 /** 12588 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 12589 */ 12590 public com.google.protobuf.DescriptorProtos.MethodOptions getOptions() { 12591 return options_; 12592 } 12593 /** 12594 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 12595 */ 12596 public com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder() { 12597 return options_; 12598 } 12599 12600 private void initFields() { 12601 name_ = ""; 12602 inputType_ = ""; 12603 outputType_ = ""; 12604 options_ = com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance(); 12605 } 12606 private byte memoizedIsInitialized = -1; 12607 public final boolean isInitialized() { 12608 byte isInitialized = memoizedIsInitialized; 12609 if (isInitialized != -1) return isInitialized == 1; 12610 12611 if (hasOptions()) { 12612 if (!getOptions().isInitialized()) { 12613 memoizedIsInitialized = 0; 12614 return false; 12615 } 12616 } 12617 memoizedIsInitialized = 1; 12618 return true; 12619 } 12620 12621 public void writeTo(com.google.protobuf.CodedOutputStream output) 12622 throws java.io.IOException { 12623 getSerializedSize(); 12624 if (((bitField0_ & 0x00000001) == 0x00000001)) { 12625 output.writeBytes(1, getNameBytes()); 12626 } 12627 if (((bitField0_ & 0x00000002) == 0x00000002)) { 12628 output.writeBytes(2, getInputTypeBytes()); 12629 } 12630 if (((bitField0_ & 0x00000004) == 0x00000004)) { 12631 output.writeBytes(3, getOutputTypeBytes()); 12632 } 12633 if (((bitField0_ & 0x00000008) == 0x00000008)) { 12634 output.writeMessage(4, options_); 12635 } 12636 getUnknownFields().writeTo(output); 12637 } 12638 12639 private int memoizedSerializedSize = -1; 12640 public int getSerializedSize() { 12641 int size = memoizedSerializedSize; 12642 if (size != -1) return size; 12643 12644 size = 0; 12645 if (((bitField0_ & 0x00000001) == 0x00000001)) { 12646 size += com.google.protobuf.CodedOutputStream 12647 .computeBytesSize(1, getNameBytes()); 12648 } 12649 if (((bitField0_ & 0x00000002) == 0x00000002)) { 12650 size += com.google.protobuf.CodedOutputStream 12651 .computeBytesSize(2, getInputTypeBytes()); 12652 } 12653 if (((bitField0_ & 0x00000004) == 0x00000004)) { 12654 size += com.google.protobuf.CodedOutputStream 12655 .computeBytesSize(3, getOutputTypeBytes()); 12656 } 12657 if (((bitField0_ & 0x00000008) == 0x00000008)) { 12658 size += com.google.protobuf.CodedOutputStream 12659 .computeMessageSize(4, options_); 12660 } 12661 size += getUnknownFields().getSerializedSize(); 12662 memoizedSerializedSize = size; 12663 return size; 12664 } 12665 12666 private static final long serialVersionUID = 0L; 12667 @java.lang.Override 12668 protected java.lang.Object writeReplace() 12669 throws java.io.ObjectStreamException { 12670 return super.writeReplace(); 12671 } 12672 12673 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 12674 com.google.protobuf.ByteString data) 12675 throws com.google.protobuf.InvalidProtocolBufferException { 12676 return PARSER.parseFrom(data); 12677 } 12678 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 12679 com.google.protobuf.ByteString data, 12680 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12681 throws com.google.protobuf.InvalidProtocolBufferException { 12682 return PARSER.parseFrom(data, extensionRegistry); 12683 } 12684 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom(byte[] data) 12685 throws com.google.protobuf.InvalidProtocolBufferException { 12686 return PARSER.parseFrom(data); 12687 } 12688 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 12689 byte[] data, 12690 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12691 throws com.google.protobuf.InvalidProtocolBufferException { 12692 return PARSER.parseFrom(data, extensionRegistry); 12693 } 12694 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom(java.io.InputStream input) 12695 throws java.io.IOException { 12696 return PARSER.parseFrom(input); 12697 } 12698 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 12699 java.io.InputStream input, 12700 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12701 throws java.io.IOException { 12702 return PARSER.parseFrom(input, extensionRegistry); 12703 } 12704 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseDelimitedFrom(java.io.InputStream input) 12705 throws java.io.IOException { 12706 return PARSER.parseDelimitedFrom(input); 12707 } 12708 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseDelimitedFrom( 12709 java.io.InputStream input, 12710 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12711 throws java.io.IOException { 12712 return PARSER.parseDelimitedFrom(input, extensionRegistry); 12713 } 12714 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 12715 com.google.protobuf.CodedInputStream input) 12716 throws java.io.IOException { 12717 return PARSER.parseFrom(input); 12718 } 12719 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 12720 com.google.protobuf.CodedInputStream input, 12721 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12722 throws java.io.IOException { 12723 return PARSER.parseFrom(input, extensionRegistry); 12724 } 12725 12726 public static Builder newBuilder() { return Builder.create(); } 12727 public Builder newBuilderForType() { return newBuilder(); } 12728 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.MethodDescriptorProto prototype) { 12729 return newBuilder().mergeFrom(prototype); 12730 } 12731 public Builder toBuilder() { return newBuilder(this); } 12732 12733 @java.lang.Override 12734 protected Builder newBuilderForType( 12735 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 12736 Builder builder = new Builder(parent); 12737 return builder; 12738 } 12739 /** 12740 * Protobuf type {@code google.protobuf.MethodDescriptorProto} 12741 * 12742 * <pre> 12743 * Describes a method of a service. 12744 * </pre> 12745 */ 12746 public static final class Builder extends 12747 com.google.protobuf.GeneratedMessage.Builder<Builder> 12748 implements com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder { 12749 public static final com.google.protobuf.Descriptors.Descriptor 12750 getDescriptor() { 12751 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_descriptor; 12752 } 12753 12754 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 12755 internalGetFieldAccessorTable() { 12756 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_fieldAccessorTable 12757 .ensureFieldAccessorsInitialized( 12758 com.google.protobuf.DescriptorProtos.MethodDescriptorProto.class, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder.class); 12759 } 12760 12761 // Construct using com.google.protobuf.DescriptorProtos.MethodDescriptorProto.newBuilder() 12762 private Builder() { 12763 maybeForceBuilderInitialization(); 12764 } 12765 12766 private Builder( 12767 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 12768 super(parent); 12769 maybeForceBuilderInitialization(); 12770 } 12771 private void maybeForceBuilderInitialization() { 12772 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 12773 getOptionsFieldBuilder(); 12774 } 12775 } 12776 private static Builder create() { 12777 return new Builder(); 12778 } 12779 12780 public Builder clear() { 12781 super.clear(); 12782 name_ = ""; 12783 bitField0_ = (bitField0_ & ~0x00000001); 12784 inputType_ = ""; 12785 bitField0_ = (bitField0_ & ~0x00000002); 12786 outputType_ = ""; 12787 bitField0_ = (bitField0_ & ~0x00000004); 12788 if (optionsBuilder_ == null) { 12789 options_ = com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance(); 12790 } else { 12791 optionsBuilder_.clear(); 12792 } 12793 bitField0_ = (bitField0_ & ~0x00000008); 12794 return this; 12795 } 12796 12797 public Builder clone() { 12798 return create().mergeFrom(buildPartial()); 12799 } 12800 12801 public com.google.protobuf.Descriptors.Descriptor 12802 getDescriptorForType() { 12803 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_descriptor; 12804 } 12805 12806 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getDefaultInstanceForType() { 12807 return com.google.protobuf.DescriptorProtos.MethodDescriptorProto.getDefaultInstance(); 12808 } 12809 12810 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto build() { 12811 com.google.protobuf.DescriptorProtos.MethodDescriptorProto result = buildPartial(); 12812 if (!result.isInitialized()) { 12813 throw newUninitializedMessageException(result); 12814 } 12815 return result; 12816 } 12817 12818 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto buildPartial() { 12819 com.google.protobuf.DescriptorProtos.MethodDescriptorProto result = new com.google.protobuf.DescriptorProtos.MethodDescriptorProto(this); 12820 int from_bitField0_ = bitField0_; 12821 int to_bitField0_ = 0; 12822 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 12823 to_bitField0_ |= 0x00000001; 12824 } 12825 result.name_ = name_; 12826 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 12827 to_bitField0_ |= 0x00000002; 12828 } 12829 result.inputType_ = inputType_; 12830 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 12831 to_bitField0_ |= 0x00000004; 12832 } 12833 result.outputType_ = outputType_; 12834 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 12835 to_bitField0_ |= 0x00000008; 12836 } 12837 if (optionsBuilder_ == null) { 12838 result.options_ = options_; 12839 } else { 12840 result.options_ = optionsBuilder_.build(); 12841 } 12842 result.bitField0_ = to_bitField0_; 12843 onBuilt(); 12844 return result; 12845 } 12846 12847 public Builder mergeFrom(com.google.protobuf.Message other) { 12848 if (other instanceof com.google.protobuf.DescriptorProtos.MethodDescriptorProto) { 12849 return mergeFrom((com.google.protobuf.DescriptorProtos.MethodDescriptorProto)other); 12850 } else { 12851 super.mergeFrom(other); 12852 return this; 12853 } 12854 } 12855 12856 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.MethodDescriptorProto other) { 12857 if (other == com.google.protobuf.DescriptorProtos.MethodDescriptorProto.getDefaultInstance()) return this; 12858 if (other.hasName()) { 12859 bitField0_ |= 0x00000001; 12860 name_ = other.name_; 12861 onChanged(); 12862 } 12863 if (other.hasInputType()) { 12864 bitField0_ |= 0x00000002; 12865 inputType_ = other.inputType_; 12866 onChanged(); 12867 } 12868 if (other.hasOutputType()) { 12869 bitField0_ |= 0x00000004; 12870 outputType_ = other.outputType_; 12871 onChanged(); 12872 } 12873 if (other.hasOptions()) { 12874 mergeOptions(other.getOptions()); 12875 } 12876 this.mergeUnknownFields(other.getUnknownFields()); 12877 return this; 12878 } 12879 12880 public final boolean isInitialized() { 12881 if (hasOptions()) { 12882 if (!getOptions().isInitialized()) { 12883 12884 return false; 12885 } 12886 } 12887 return true; 12888 } 12889 12890 public Builder mergeFrom( 12891 com.google.protobuf.CodedInputStream input, 12892 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12893 throws java.io.IOException { 12894 com.google.protobuf.DescriptorProtos.MethodDescriptorProto parsedMessage = null; 12895 try { 12896 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 12897 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 12898 parsedMessage = (com.google.protobuf.DescriptorProtos.MethodDescriptorProto) e.getUnfinishedMessage(); 12899 throw e; 12900 } finally { 12901 if (parsedMessage != null) { 12902 mergeFrom(parsedMessage); 12903 } 12904 } 12905 return this; 12906 } 9060 12907 private int bitField0_; 9061 12908 9062 12909 // optional string name = 1; 9063 12910 private java.lang.Object name_ = ""; 12911 /** 12912 * <code>optional string name = 1;</code> 12913 */ 9064 12914 public boolean hasName() { 9065 12915 return ((bitField0_ & 0x00000001) == 0x00000001); 9066 12916 } 9067 public String getName() { 12917 /** 12918 * <code>optional string name = 1;</code> 12919 */ 12920 public java.lang.String getName() { 9068 12921 java.lang.Object ref = name_; 9069 if (!(ref instanceof String)) { 9070 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 12922 if (!(ref instanceof java.lang.String)) { 12923 java.lang.String s = ((com.google.protobuf.ByteString) ref) 12924 .toStringUtf8(); 9071 12925 name_ = s; 9072 12926 return s; 9073 12927 } else { 9074 return (String) ref; 9075 } 9076 } 9077 public Builder setName(String value) { 12928 return (java.lang.String) ref; 12929 } 12930 } 12931 /** 12932 * <code>optional string name = 1;</code> 12933 */ 12934 public com.google.protobuf.ByteString 12935 getNameBytes() { 12936 java.lang.Object ref = name_; 12937 if (ref instanceof String) { 12938 com.google.protobuf.ByteString b = 12939 com.google.protobuf.ByteString.copyFromUtf8( 12940 (java.lang.String) ref); 12941 name_ = b; 12942 return b; 12943 } else { 12944 return (com.google.protobuf.ByteString) ref; 12945 } 12946 } 12947 /** 12948 * <code>optional string name = 1;</code> 12949 */ 12950 public Builder setName( 12951 java.lang.String value) { 9078 12952 if (value == null) { 9079 12953 throw new NullPointerException(); … … 9084 12958 return this; 9085 12959 } 12960 /** 12961 * <code>optional string name = 1;</code> 12962 */ 9086 12963 public Builder clearName() { 9087 12964 bitField0_ = (bitField0_ & ~0x00000001); … … 9090 12967 return this; 9091 12968 } 9092 void setName(com.google.protobuf.ByteString value) { 9093 bitField0_ |= 0x00000001; 12969 /** 12970 * <code>optional string name = 1;</code> 12971 */ 12972 public Builder setNameBytes( 12973 com.google.protobuf.ByteString value) { 12974 if (value == null) { 12975 throw new NullPointerException(); 12976 } 12977 bitField0_ |= 0x00000001; 9094 12978 name_ = value; 9095 12979 onChanged(); 9096 } 9097 12980 return this; 12981 } 12982 9098 12983 // optional string input_type = 2; 9099 12984 private java.lang.Object inputType_ = ""; 12985 /** 12986 * <code>optional string input_type = 2;</code> 12987 * 12988 * <pre> 12989 * Input and output type names. These are resolved in the same way as 12990 * FieldDescriptorProto.type_name, but must refer to a message type. 12991 * </pre> 12992 */ 9100 12993 public boolean hasInputType() { 9101 12994 return ((bitField0_ & 0x00000002) == 0x00000002); 9102 12995 } 9103 public String getInputType() { 12996 /** 12997 * <code>optional string input_type = 2;</code> 12998 * 12999 * <pre> 13000 * Input and output type names. These are resolved in the same way as 13001 * FieldDescriptorProto.type_name, but must refer to a message type. 13002 * </pre> 13003 */ 13004 public java.lang.String getInputType() { 9104 13005 java.lang.Object ref = inputType_; 9105 if (!(ref instanceof String)) { 9106 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 13006 if (!(ref instanceof java.lang.String)) { 13007 java.lang.String s = ((com.google.protobuf.ByteString) ref) 13008 .toStringUtf8(); 9107 13009 inputType_ = s; 9108 13010 return s; 9109 13011 } else { 9110 return (String) ref; 9111 } 9112 } 9113 public Builder setInputType(String value) { 13012 return (java.lang.String) ref; 13013 } 13014 } 13015 /** 13016 * <code>optional string input_type = 2;</code> 13017 * 13018 * <pre> 13019 * Input and output type names. These are resolved in the same way as 13020 * FieldDescriptorProto.type_name, but must refer to a message type. 13021 * </pre> 13022 */ 13023 public com.google.protobuf.ByteString 13024 getInputTypeBytes() { 13025 java.lang.Object ref = inputType_; 13026 if (ref instanceof String) { 13027 com.google.protobuf.ByteString b = 13028 com.google.protobuf.ByteString.copyFromUtf8( 13029 (java.lang.String) ref); 13030 inputType_ = b; 13031 return b; 13032 } else { 13033 return (com.google.protobuf.ByteString) ref; 13034 } 13035 } 13036 /** 13037 * <code>optional string input_type = 2;</code> 13038 * 13039 * <pre> 13040 * Input and output type names. These are resolved in the same way as 13041 * FieldDescriptorProto.type_name, but must refer to a message type. 13042 * </pre> 13043 */ 13044 public Builder setInputType( 13045 java.lang.String value) { 9114 13046 if (value == null) { 9115 13047 throw new NullPointerException(); … … 9120 13052 return this; 9121 13053 } 13054 /** 13055 * <code>optional string input_type = 2;</code> 13056 * 13057 * <pre> 13058 * Input and output type names. These are resolved in the same way as 13059 * FieldDescriptorProto.type_name, but must refer to a message type. 13060 * </pre> 13061 */ 9122 13062 public Builder clearInputType() { 9123 13063 bitField0_ = (bitField0_ & ~0x00000002); … … 9126 13066 return this; 9127 13067 } 9128 void setInputType(com.google.protobuf.ByteString value) { 9129 bitField0_ |= 0x00000002; 13068 /** 13069 * <code>optional string input_type = 2;</code> 13070 * 13071 * <pre> 13072 * Input and output type names. These are resolved in the same way as 13073 * FieldDescriptorProto.type_name, but must refer to a message type. 13074 * </pre> 13075 */ 13076 public Builder setInputTypeBytes( 13077 com.google.protobuf.ByteString value) { 13078 if (value == null) { 13079 throw new NullPointerException(); 13080 } 13081 bitField0_ |= 0x00000002; 9130 13082 inputType_ = value; 9131 13083 onChanged(); 9132 } 9133 13084 return this; 13085 } 13086 9134 13087 // optional string output_type = 3; 9135 13088 private java.lang.Object outputType_ = ""; 13089 /** 13090 * <code>optional string output_type = 3;</code> 13091 */ 9136 13092 public boolean hasOutputType() { 9137 13093 return ((bitField0_ & 0x00000004) == 0x00000004); 9138 13094 } 9139 public String getOutputType() { 13095 /** 13096 * <code>optional string output_type = 3;</code> 13097 */ 13098 public java.lang.String getOutputType() { 9140 13099 java.lang.Object ref = outputType_; 9141 if (!(ref instanceof String)) { 9142 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 13100 if (!(ref instanceof java.lang.String)) { 13101 java.lang.String s = ((com.google.protobuf.ByteString) ref) 13102 .toStringUtf8(); 9143 13103 outputType_ = s; 9144 13104 return s; 9145 13105 } else { 9146 return (String) ref; 9147 } 9148 } 9149 public Builder setOutputType(String value) { 13106 return (java.lang.String) ref; 13107 } 13108 } 13109 /** 13110 * <code>optional string output_type = 3;</code> 13111 */ 13112 public com.google.protobuf.ByteString 13113 getOutputTypeBytes() { 13114 java.lang.Object ref = outputType_; 13115 if (ref instanceof String) { 13116 com.google.protobuf.ByteString b = 13117 com.google.protobuf.ByteString.copyFromUtf8( 13118 (java.lang.String) ref); 13119 outputType_ = b; 13120 return b; 13121 } else { 13122 return (com.google.protobuf.ByteString) ref; 13123 } 13124 } 13125 /** 13126 * <code>optional string output_type = 3;</code> 13127 */ 13128 public Builder setOutputType( 13129 java.lang.String value) { 9150 13130 if (value == null) { 9151 13131 throw new NullPointerException(); … … 9156 13136 return this; 9157 13137 } 13138 /** 13139 * <code>optional string output_type = 3;</code> 13140 */ 9158 13141 public Builder clearOutputType() { 9159 13142 bitField0_ = (bitField0_ & ~0x00000004); … … 9162 13145 return this; 9163 13146 } 9164 void setOutputType(com.google.protobuf.ByteString value) { 9165 bitField0_ |= 0x00000004; 13147 /** 13148 * <code>optional string output_type = 3;</code> 13149 */ 13150 public Builder setOutputTypeBytes( 13151 com.google.protobuf.ByteString value) { 13152 if (value == null) { 13153 throw new NullPointerException(); 13154 } 13155 bitField0_ |= 0x00000004; 9166 13156 outputType_ = value; 9167 13157 onChanged(); 9168 } 9169 13158 return this; 13159 } 13160 9170 13161 // optional .google.protobuf.MethodOptions options = 4; 9171 13162 private com.google.protobuf.DescriptorProtos.MethodOptions options_ = com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance(); 9172 13163 private com.google.protobuf.SingleFieldBuilder< 9173 13164 com.google.protobuf.DescriptorProtos.MethodOptions, com.google.protobuf.DescriptorProtos.MethodOptions.Builder, com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder> optionsBuilder_; 13165 /** 13166 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 13167 */ 9174 13168 public boolean hasOptions() { 9175 13169 return ((bitField0_ & 0x00000008) == 0x00000008); 9176 13170 } 13171 /** 13172 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 13173 */ 9177 13174 public com.google.protobuf.DescriptorProtos.MethodOptions getOptions() { 9178 13175 if (optionsBuilder_ == null) { … … 9182 13179 } 9183 13180 } 13181 /** 13182 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 13183 */ 9184 13184 public Builder setOptions(com.google.protobuf.DescriptorProtos.MethodOptions value) { 9185 13185 if (optionsBuilder_ == null) { … … 9195 13195 return this; 9196 13196 } 13197 /** 13198 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 13199 */ 9197 13200 public Builder setOptions( 9198 13201 com.google.protobuf.DescriptorProtos.MethodOptions.Builder builderForValue) { … … 9206 13209 return this; 9207 13210 } 13211 /** 13212 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 13213 */ 9208 13214 public Builder mergeOptions(com.google.protobuf.DescriptorProtos.MethodOptions value) { 9209 13215 if (optionsBuilder_ == null) { … … 9222 13228 return this; 9223 13229 } 13230 /** 13231 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 13232 */ 9224 13233 public Builder clearOptions() { 9225 13234 if (optionsBuilder_ == null) { … … 9232 13241 return this; 9233 13242 } 13243 /** 13244 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 13245 */ 9234 13246 public com.google.protobuf.DescriptorProtos.MethodOptions.Builder getOptionsBuilder() { 9235 13247 bitField0_ |= 0x00000008; … … 9237 13249 return getOptionsFieldBuilder().getBuilder(); 9238 13250 } 13251 /** 13252 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 13253 */ 9239 13254 public com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder() { 9240 13255 if (optionsBuilder_ != null) { … … 9244 13259 } 9245 13260 } 13261 /** 13262 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 13263 */ 9246 13264 private com.google.protobuf.SingleFieldBuilder< 9247 13265 com.google.protobuf.DescriptorProtos.MethodOptions, com.google.protobuf.DescriptorProtos.MethodOptions.Builder, com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder> … … 9257 13275 return optionsBuilder_; 9258 13276 } 9259 13277 9260 13278 // @@protoc_insertion_point(builder_scope:google.protobuf.MethodDescriptorProto) 9261 13279 } 9262 13280 9263 13281 static { 9264 13282 defaultInstance = new MethodDescriptorProto(true); 9265 13283 defaultInstance.initFields(); 9266 13284 } 9267 13285 9268 13286 // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto) 9269 13287 } 9270 13288 9271 13289 public interface FileOptionsOrBuilder extends 9272 13290 com.google.protobuf.GeneratedMessage. 9273 13291 ExtendableMessageOrBuilder<FileOptions> { 9274 13292 9275 13293 // optional string java_package = 1; 13294 /** 13295 * <code>optional string java_package = 1;</code> 13296 * 13297 * <pre> 13298 * Sets the Java package where classes generated from this .proto will be 13299 * placed. By default, the proto package is used, but this is often 13300 * inappropriate because proto packages do not normally start with backwards 13301 * domain names. 13302 * </pre> 13303 */ 9276 13304 boolean hasJavaPackage(); 9277 String getJavaPackage(); 9278 13305 /** 13306 * <code>optional string java_package = 1;</code> 13307 * 13308 * <pre> 13309 * Sets the Java package where classes generated from this .proto will be 13310 * placed. By default, the proto package is used, but this is often 13311 * inappropriate because proto packages do not normally start with backwards 13312 * domain names. 13313 * </pre> 13314 */ 13315 java.lang.String getJavaPackage(); 13316 /** 13317 * <code>optional string java_package = 1;</code> 13318 * 13319 * <pre> 13320 * Sets the Java package where classes generated from this .proto will be 13321 * placed. By default, the proto package is used, but this is often 13322 * inappropriate because proto packages do not normally start with backwards 13323 * domain names. 13324 * </pre> 13325 */ 13326 com.google.protobuf.ByteString 13327 getJavaPackageBytes(); 13328 9279 13329 // optional string java_outer_classname = 8; 13330 /** 13331 * <code>optional string java_outer_classname = 8;</code> 13332 * 13333 * <pre> 13334 * If set, all the classes from the .proto file are wrapped in a single 13335 * outer class with the given name. This applies to both Proto1 13336 * (equivalent to the old "--one_java_file" option) and Proto2 (where 13337 * a .proto always translates to a single class, but you may want to 13338 * explicitly choose the class name). 13339 * </pre> 13340 */ 9280 13341 boolean hasJavaOuterClassname(); 9281 String getJavaOuterClassname(); 9282 13342 /** 13343 * <code>optional string java_outer_classname = 8;</code> 13344 * 13345 * <pre> 13346 * If set, all the classes from the .proto file are wrapped in a single 13347 * outer class with the given name. This applies to both Proto1 13348 * (equivalent to the old "--one_java_file" option) and Proto2 (where 13349 * a .proto always translates to a single class, but you may want to 13350 * explicitly choose the class name). 13351 * </pre> 13352 */ 13353 java.lang.String getJavaOuterClassname(); 13354 /** 13355 * <code>optional string java_outer_classname = 8;</code> 13356 * 13357 * <pre> 13358 * If set, all the classes from the .proto file are wrapped in a single 13359 * outer class with the given name. This applies to both Proto1 13360 * (equivalent to the old "--one_java_file" option) and Proto2 (where 13361 * a .proto always translates to a single class, but you may want to 13362 * explicitly choose the class name). 13363 * </pre> 13364 */ 13365 com.google.protobuf.ByteString 13366 getJavaOuterClassnameBytes(); 13367 9283 13368 // optional bool java_multiple_files = 10 [default = false]; 13369 /** 13370 * <code>optional bool java_multiple_files = 10 [default = false];</code> 13371 * 13372 * <pre> 13373 * If set true, then the Java code generator will generate a separate .java 13374 * file for each top-level message, enum, and service defined in the .proto 13375 * file. Thus, these types will *not* be nested inside the outer class 13376 * named by java_outer_classname. However, the outer class will still be 13377 * generated to contain the file's getDescriptor() method as well as any 13378 * top-level extensions defined in the file. 13379 * </pre> 13380 */ 9284 13381 boolean hasJavaMultipleFiles(); 13382 /** 13383 * <code>optional bool java_multiple_files = 10 [default = false];</code> 13384 * 13385 * <pre> 13386 * If set true, then the Java code generator will generate a separate .java 13387 * file for each top-level message, enum, and service defined in the .proto 13388 * file. Thus, these types will *not* be nested inside the outer class 13389 * named by java_outer_classname. However, the outer class will still be 13390 * generated to contain the file's getDescriptor() method as well as any 13391 * top-level extensions defined in the file. 13392 * </pre> 13393 */ 9285 13394 boolean getJavaMultipleFiles(); 9286 13395 9287 13396 // optional bool java_generate_equals_and_hash = 20 [default = false]; 13397 /** 13398 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> 13399 * 13400 * <pre> 13401 * If set true, then the Java code generator will generate equals() and 13402 * hashCode() methods for all messages defined in the .proto file. This is 13403 * purely a speed optimization, as the AbstractMessage base class includes 13404 * reflection-based implementations of these methods. 13405 * </pre> 13406 */ 9288 13407 boolean hasJavaGenerateEqualsAndHash(); 13408 /** 13409 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> 13410 * 13411 * <pre> 13412 * If set true, then the Java code generator will generate equals() and 13413 * hashCode() methods for all messages defined in the .proto file. This is 13414 * purely a speed optimization, as the AbstractMessage base class includes 13415 * reflection-based implementations of these methods. 13416 * </pre> 13417 */ 9289 13418 boolean getJavaGenerateEqualsAndHash(); 9290 13419 9291 13420 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; 13421 /** 13422 * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> 13423 */ 9292 13424 boolean hasOptimizeFor(); 13425 /** 13426 * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> 13427 */ 9293 13428 com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor(); 9294 13429 9295 13430 // optional string go_package = 11; 13431 /** 13432 * <code>optional string go_package = 11;</code> 13433 * 13434 * <pre> 13435 * Sets the Go package where structs generated from this .proto will be 13436 * placed. There is no default. 13437 * </pre> 13438 */ 9296 13439 boolean hasGoPackage(); 9297 String getGoPackage(); 9298 13440 /** 13441 * <code>optional string go_package = 11;</code> 13442 * 13443 * <pre> 13444 * Sets the Go package where structs generated from this .proto will be 13445 * placed. There is no default. 13446 * </pre> 13447 */ 13448 java.lang.String getGoPackage(); 13449 /** 13450 * <code>optional string go_package = 11;</code> 13451 * 13452 * <pre> 13453 * Sets the Go package where structs generated from this .proto will be 13454 * placed. There is no default. 13455 * </pre> 13456 */ 13457 com.google.protobuf.ByteString 13458 getGoPackageBytes(); 13459 9299 13460 // optional bool cc_generic_services = 16 [default = false]; 13461 /** 13462 * <code>optional bool cc_generic_services = 16 [default = false];</code> 13463 * 13464 * <pre> 13465 * Should generic services be generated in each language? "Generic" services 13466 * are not specific to any particular RPC system. They are generated by the 13467 * main code generators in each language (without additional plugins). 13468 * Generic services were the only kind of service generation supported by 13469 * early versions of proto2. 13470 * 13471 * Generic services are now considered deprecated in favor of using plugins 13472 * that generate code specific to your particular RPC system. Therefore, 13473 * these default to false. Old code which depends on generic services should 13474 * explicitly set them to true. 13475 * </pre> 13476 */ 9300 13477 boolean hasCcGenericServices(); 13478 /** 13479 * <code>optional bool cc_generic_services = 16 [default = false];</code> 13480 * 13481 * <pre> 13482 * Should generic services be generated in each language? "Generic" services 13483 * are not specific to any particular RPC system. They are generated by the 13484 * main code generators in each language (without additional plugins). 13485 * Generic services were the only kind of service generation supported by 13486 * early versions of proto2. 13487 * 13488 * Generic services are now considered deprecated in favor of using plugins 13489 * that generate code specific to your particular RPC system. Therefore, 13490 * these default to false. Old code which depends on generic services should 13491 * explicitly set them to true. 13492 * </pre> 13493 */ 9301 13494 boolean getCcGenericServices(); 9302 13495 9303 13496 // optional bool java_generic_services = 17 [default = false]; 13497 /** 13498 * <code>optional bool java_generic_services = 17 [default = false];</code> 13499 */ 9304 13500 boolean hasJavaGenericServices(); 13501 /** 13502 * <code>optional bool java_generic_services = 17 [default = false];</code> 13503 */ 9305 13504 boolean getJavaGenericServices(); 9306 13505 9307 13506 // optional bool py_generic_services = 18 [default = false]; 13507 /** 13508 * <code>optional bool py_generic_services = 18 [default = false];</code> 13509 */ 9308 13510 boolean hasPyGenericServices(); 13511 /** 13512 * <code>optional bool py_generic_services = 18 [default = false];</code> 13513 */ 9309 13514 boolean getPyGenericServices(); 9310 13515 9311 13516 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 13517 /** 13518 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 13519 * 13520 * <pre> 13521 * The parser stores options it doesn't recognize here. See above. 13522 * </pre> 13523 */ 9312 13524 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 9313 13525 getUninterpretedOptionList(); 13526 /** 13527 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 13528 * 13529 * <pre> 13530 * The parser stores options it doesn't recognize here. See above. 13531 * </pre> 13532 */ 9314 13533 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 13534 /** 13535 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 13536 * 13537 * <pre> 13538 * The parser stores options it doesn't recognize here. See above. 13539 * </pre> 13540 */ 9315 13541 int getUninterpretedOptionCount(); 13542 /** 13543 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 13544 * 13545 * <pre> 13546 * The parser stores options it doesn't recognize here. See above. 13547 * </pre> 13548 */ 9316 13549 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 9317 13550 getUninterpretedOptionOrBuilderList(); 13551 /** 13552 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 13553 * 13554 * <pre> 13555 * The parser stores options it doesn't recognize here. See above. 13556 * </pre> 13557 */ 9318 13558 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 9319 13559 int index); 9320 13560 } 13561 /** 13562 * Protobuf type {@code google.protobuf.FileOptions} 13563 */ 9321 13564 public static final class FileOptions extends 9322 13565 com.google.protobuf.GeneratedMessage.ExtendableMessage< 9323 13566 FileOptions> implements FileOptionsOrBuilder { 9324 13567 // Use FileOptions.newBuilder() to construct. 9325 private FileOptions( Builderbuilder) {13568 private FileOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.DescriptorProtos.FileOptions, ?> builder) { 9326 13569 super(builder); 9327 } 9328 private FileOptions(boolean noInit) {} 9329 13570 this.unknownFields = builder.getUnknownFields(); 13571 } 13572 private FileOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 13573 9330 13574 private static final FileOptions defaultInstance; 9331 13575 public static FileOptions getDefaultInstance() { 9332 13576 return defaultInstance; 9333 13577 } 9334 13578 9335 13579 public FileOptions getDefaultInstanceForType() { 9336 13580 return defaultInstance; 9337 13581 } 9338 9339 public static final com.google.protobuf.Descriptors.Descriptor 9340 getDescriptor() { 9341 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_descriptor; 9342 } 9343 9344 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 9345 internalGetFieldAccessorTable() { 9346 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_fieldAccessorTable; 9347 } 9348 9349 public enum OptimizeMode 9350 implements com.google.protobuf.ProtocolMessageEnum { 9351 SPEED(0, 1), 9352 CODE_SIZE(1, 2), 9353 LITE_RUNTIME(2, 3), 9354 ; 9355 9356 public static final int SPEED_VALUE = 1; 9357 public static final int CODE_SIZE_VALUE = 2; 9358 public static final int LITE_RUNTIME_VALUE = 3; 9359 9360 9361 public final int getNumber() { return value; } 9362 9363 public static OptimizeMode valueOf(int value) { 9364 switch (value) { 9365 case 1: return SPEED; 9366 case 2: return CODE_SIZE; 9367 case 3: return LITE_RUNTIME; 9368 default: return null; 9369 } 9370 } 9371 9372 public static com.google.protobuf.Internal.EnumLiteMap<OptimizeMode> 9373 internalGetValueMap() { 9374 return internalValueMap; 9375 } 9376 private static com.google.protobuf.Internal.EnumLiteMap<OptimizeMode> 9377 internalValueMap = 9378 new com.google.protobuf.Internal.EnumLiteMap<OptimizeMode>() { 9379 public OptimizeMode findValueByNumber(int number) { 9380 return OptimizeMode.valueOf(number); 9381 } 9382 }; 9383 9384 public final com.google.protobuf.Descriptors.EnumValueDescriptor 9385 getValueDescriptor() { 9386 return getDescriptor().getValues().get(index); 9387 } 9388 public final com.google.protobuf.Descriptors.EnumDescriptor 9389 getDescriptorForType() { 9390 return getDescriptor(); 9391 } 9392 public static final com.google.protobuf.Descriptors.EnumDescriptor 9393 getDescriptor() { 9394 return com.google.protobuf.DescriptorProtos.FileOptions.getDescriptor().getEnumTypes().get(0); 9395 } 9396 9397 private static final OptimizeMode[] VALUES = { 9398 SPEED, CODE_SIZE, LITE_RUNTIME, 9399 }; 9400 9401 public static OptimizeMode valueOf( 9402 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 9403 if (desc.getType() != getDescriptor()) { 9404 throw new java.lang.IllegalArgumentException( 9405 "EnumValueDescriptor is not for this type."); 9406 } 9407 return VALUES[desc.getIndex()]; 9408 } 9409 9410 private final int index; 9411 private final int value; 9412 9413 private OptimizeMode(int index, int value) { 9414 this.index = index; 9415 this.value = value; 9416 } 9417 9418 // @@protoc_insertion_point(enum_scope:google.protobuf.FileOptions.OptimizeMode) 9419 } 9420 9421 private int bitField0_; 9422 // optional string java_package = 1; 9423 public static final int JAVA_PACKAGE_FIELD_NUMBER = 1; 9424 private java.lang.Object javaPackage_; 9425 public boolean hasJavaPackage() { 9426 return ((bitField0_ & 0x00000001) == 0x00000001); 9427 } 9428 public String getJavaPackage() { 9429 java.lang.Object ref = javaPackage_; 9430 if (ref instanceof String) { 9431 return (String) ref; 9432 } else { 9433 com.google.protobuf.ByteString bs = 9434 (com.google.protobuf.ByteString) ref; 9435 String s = bs.toStringUtf8(); 9436 if (com.google.protobuf.Internal.isValidUtf8(bs)) { 9437 javaPackage_ = s; 9438 } 9439 return s; 9440 } 9441 } 9442 private com.google.protobuf.ByteString getJavaPackageBytes() { 9443 java.lang.Object ref = javaPackage_; 9444 if (ref instanceof String) { 9445 com.google.protobuf.ByteString b = 9446 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 9447 javaPackage_ = b; 9448 return b; 9449 } else { 9450 return (com.google.protobuf.ByteString) ref; 9451 } 9452 } 9453 9454 // optional string java_outer_classname = 8; 9455 public static final int JAVA_OUTER_CLASSNAME_FIELD_NUMBER = 8; 9456 private java.lang.Object javaOuterClassname_; 9457 public boolean hasJavaOuterClassname() { 9458 return ((bitField0_ & 0x00000002) == 0x00000002); 9459 } 9460 public String getJavaOuterClassname() { 9461 java.lang.Object ref = javaOuterClassname_; 9462 if (ref instanceof String) { 9463 return (String) ref; 9464 } else { 9465 com.google.protobuf.ByteString bs = 9466 (com.google.protobuf.ByteString) ref; 9467 String s = bs.toStringUtf8(); 9468 if (com.google.protobuf.Internal.isValidUtf8(bs)) { 9469 javaOuterClassname_ = s; 9470 } 9471 return s; 9472 } 9473 } 9474 private com.google.protobuf.ByteString getJavaOuterClassnameBytes() { 9475 java.lang.Object ref = javaOuterClassname_; 9476 if (ref instanceof String) { 9477 com.google.protobuf.ByteString b = 9478 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 9479 javaOuterClassname_ = b; 9480 return b; 9481 } else { 9482 return (com.google.protobuf.ByteString) ref; 9483 } 9484 } 9485 9486 // optional bool java_multiple_files = 10 [default = false]; 9487 public static final int JAVA_MULTIPLE_FILES_FIELD_NUMBER = 10; 9488 private boolean javaMultipleFiles_; 9489 public boolean hasJavaMultipleFiles() { 9490 return ((bitField0_ & 0x00000004) == 0x00000004); 9491 } 9492 public boolean getJavaMultipleFiles() { 9493 return javaMultipleFiles_; 9494 } 9495 9496 // optional bool java_generate_equals_and_hash = 20 [default = false]; 9497 public static final int JAVA_GENERATE_EQUALS_AND_HASH_FIELD_NUMBER = 20; 9498 private boolean javaGenerateEqualsAndHash_; 9499 public boolean hasJavaGenerateEqualsAndHash() { 9500 return ((bitField0_ & 0x00000008) == 0x00000008); 9501 } 9502 public boolean getJavaGenerateEqualsAndHash() { 9503 return javaGenerateEqualsAndHash_; 9504 } 9505 9506 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; 9507 public static final int OPTIMIZE_FOR_FIELD_NUMBER = 9; 9508 private com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode optimizeFor_; 9509 public boolean hasOptimizeFor() { 9510 return ((bitField0_ & 0x00000010) == 0x00000010); 9511 } 9512 public com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor() { 9513 return optimizeFor_; 9514 } 9515 9516 // optional string go_package = 11; 9517 public static final int GO_PACKAGE_FIELD_NUMBER = 11; 9518 private java.lang.Object goPackage_; 9519 public boolean hasGoPackage() { 9520 return ((bitField0_ & 0x00000020) == 0x00000020); 9521 } 9522 public String getGoPackage() { 9523 java.lang.Object ref = goPackage_; 9524 if (ref instanceof String) { 9525 return (String) ref; 9526 } else { 9527 com.google.protobuf.ByteString bs = 9528 (com.google.protobuf.ByteString) ref; 9529 String s = bs.toStringUtf8(); 9530 if (com.google.protobuf.Internal.isValidUtf8(bs)) { 9531 goPackage_ = s; 9532 } 9533 return s; 9534 } 9535 } 9536 private com.google.protobuf.ByteString getGoPackageBytes() { 9537 java.lang.Object ref = goPackage_; 9538 if (ref instanceof String) { 9539 com.google.protobuf.ByteString b = 9540 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 9541 goPackage_ = b; 9542 return b; 9543 } else { 9544 return (com.google.protobuf.ByteString) ref; 9545 } 9546 } 9547 9548 // optional bool cc_generic_services = 16 [default = false]; 9549 public static final int CC_GENERIC_SERVICES_FIELD_NUMBER = 16; 9550 private boolean ccGenericServices_; 9551 public boolean hasCcGenericServices() { 9552 return ((bitField0_ & 0x00000040) == 0x00000040); 9553 } 9554 public boolean getCcGenericServices() { 9555 return ccGenericServices_; 9556 } 9557 9558 // optional bool java_generic_services = 17 [default = false]; 9559 public static final int JAVA_GENERIC_SERVICES_FIELD_NUMBER = 17; 9560 private boolean javaGenericServices_; 9561 public boolean hasJavaGenericServices() { 9562 return ((bitField0_ & 0x00000080) == 0x00000080); 9563 } 9564 public boolean getJavaGenericServices() { 9565 return javaGenericServices_; 9566 } 9567 9568 // optional bool py_generic_services = 18 [default = false]; 9569 public static final int PY_GENERIC_SERVICES_FIELD_NUMBER = 18; 9570 private boolean pyGenericServices_; 9571 public boolean hasPyGenericServices() { 9572 return ((bitField0_ & 0x00000100) == 0x00000100); 9573 } 9574 public boolean getPyGenericServices() { 9575 return pyGenericServices_; 9576 } 9577 9578 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 9579 public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; 9580 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 9581 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 9582 return uninterpretedOption_; 9583 } 9584 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 9585 getUninterpretedOptionOrBuilderList() { 9586 return uninterpretedOption_; 9587 } 9588 public int getUninterpretedOptionCount() { 9589 return uninterpretedOption_.size(); 9590 } 9591 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 9592 return uninterpretedOption_.get(index); 9593 } 9594 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 9595 int index) { 9596 return uninterpretedOption_.get(index); 9597 } 9598 9599 private void initFields() { 9600 javaPackage_ = ""; 9601 javaOuterClassname_ = ""; 9602 javaMultipleFiles_ = false; 9603 javaGenerateEqualsAndHash_ = false; 9604 optimizeFor_ = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED; 9605 goPackage_ = ""; 9606 ccGenericServices_ = false; 9607 javaGenericServices_ = false; 9608 pyGenericServices_ = false; 9609 uninterpretedOption_ = java.util.Collections.emptyList(); 9610 } 9611 private byte memoizedIsInitialized = -1; 9612 public final boolean isInitialized() { 9613 byte isInitialized = memoizedIsInitialized; 9614 if (isInitialized != -1) return isInitialized == 1; 9615 9616 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 9617 if (!getUninterpretedOption(i).isInitialized()) { 9618 memoizedIsInitialized = 0; 9619 return false; 9620 } 9621 } 9622 if (!extensionsAreInitialized()) { 9623 memoizedIsInitialized = 0; 9624 return false; 9625 } 9626 memoizedIsInitialized = 1; 9627 return true; 9628 } 9629 9630 public void writeTo(com.google.protobuf.CodedOutputStream output) 9631 throws java.io.IOException { 9632 getSerializedSize(); 9633 com.google.protobuf.GeneratedMessage 9634 .ExtendableMessage<com.google.protobuf.DescriptorProtos.FileOptions>.ExtensionWriter extensionWriter = 9635 newExtensionWriter(); 9636 if (((bitField0_ & 0x00000001) == 0x00000001)) { 9637 output.writeBytes(1, getJavaPackageBytes()); 9638 } 9639 if (((bitField0_ & 0x00000002) == 0x00000002)) { 9640 output.writeBytes(8, getJavaOuterClassnameBytes()); 9641 } 9642 if (((bitField0_ & 0x00000010) == 0x00000010)) { 9643 output.writeEnum(9, optimizeFor_.getNumber()); 9644 } 9645 if (((bitField0_ & 0x00000004) == 0x00000004)) { 9646 output.writeBool(10, javaMultipleFiles_); 9647 } 9648 if (((bitField0_ & 0x00000020) == 0x00000020)) { 9649 output.writeBytes(11, getGoPackageBytes()); 9650 } 9651 if (((bitField0_ & 0x00000040) == 0x00000040)) { 9652 output.writeBool(16, ccGenericServices_); 9653 } 9654 if (((bitField0_ & 0x00000080) == 0x00000080)) { 9655 output.writeBool(17, javaGenericServices_); 9656 } 9657 if (((bitField0_ & 0x00000100) == 0x00000100)) { 9658 output.writeBool(18, pyGenericServices_); 9659 } 9660 if (((bitField0_ & 0x00000008) == 0x00000008)) { 9661 output.writeBool(20, javaGenerateEqualsAndHash_); 9662 } 9663 for (int i = 0; i < uninterpretedOption_.size(); i++) { 9664 output.writeMessage(999, uninterpretedOption_.get(i)); 9665 } 9666 extensionWriter.writeUntil(536870912, output); 9667 getUnknownFields().writeTo(output); 9668 } 9669 9670 private int memoizedSerializedSize = -1; 9671 public int getSerializedSize() { 9672 int size = memoizedSerializedSize; 9673 if (size != -1) return size; 9674 9675 size = 0; 9676 if (((bitField0_ & 0x00000001) == 0x00000001)) { 9677 size += com.google.protobuf.CodedOutputStream 9678 .computeBytesSize(1, getJavaPackageBytes()); 9679 } 9680 if (((bitField0_ & 0x00000002) == 0x00000002)) { 9681 size += com.google.protobuf.CodedOutputStream 9682 .computeBytesSize(8, getJavaOuterClassnameBytes()); 9683 } 9684 if (((bitField0_ & 0x00000010) == 0x00000010)) { 9685 size += com.google.protobuf.CodedOutputStream 9686 .computeEnumSize(9, optimizeFor_.getNumber()); 9687 } 9688 if (((bitField0_ & 0x00000004) == 0x00000004)) { 9689 size += com.google.protobuf.CodedOutputStream 9690 .computeBoolSize(10, javaMultipleFiles_); 9691 } 9692 if (((bitField0_ & 0x00000020) == 0x00000020)) { 9693 size += com.google.protobuf.CodedOutputStream 9694 .computeBytesSize(11, getGoPackageBytes()); 9695 } 9696 if (((bitField0_ & 0x00000040) == 0x00000040)) { 9697 size += com.google.protobuf.CodedOutputStream 9698 .computeBoolSize(16, ccGenericServices_); 9699 } 9700 if (((bitField0_ & 0x00000080) == 0x00000080)) { 9701 size += com.google.protobuf.CodedOutputStream 9702 .computeBoolSize(17, javaGenericServices_); 9703 } 9704 if (((bitField0_ & 0x00000100) == 0x00000100)) { 9705 size += com.google.protobuf.CodedOutputStream 9706 .computeBoolSize(18, pyGenericServices_); 9707 } 9708 if (((bitField0_ & 0x00000008) == 0x00000008)) { 9709 size += com.google.protobuf.CodedOutputStream 9710 .computeBoolSize(20, javaGenerateEqualsAndHash_); 9711 } 9712 for (int i = 0; i < uninterpretedOption_.size(); i++) { 9713 size += com.google.protobuf.CodedOutputStream 9714 .computeMessageSize(999, uninterpretedOption_.get(i)); 9715 } 9716 size += extensionsSerializedSize(); 9717 size += getUnknownFields().getSerializedSize(); 9718 memoizedSerializedSize = size; 9719 return size; 9720 } 9721 9722 private static final long serialVersionUID = 0L; 13582 13583 private final com.google.protobuf.UnknownFieldSet unknownFields; 9723 13584 @java.lang.Override 9724 protected java.lang.Object writeReplace() 9725 throws java.io.ObjectStreamException { 9726 return super.writeReplace(); 9727 } 9728 9729 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 9730 com.google.protobuf.ByteString data) 9731 throws com.google.protobuf.InvalidProtocolBufferException { 9732 return newBuilder().mergeFrom(data).buildParsed(); 9733 } 9734 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 9735 com.google.protobuf.ByteString data, 13585 public final com.google.protobuf.UnknownFieldSet 13586 getUnknownFields() { 13587 return this.unknownFields; 13588 } 13589 private FileOptions( 13590 com.google.protobuf.CodedInputStream input, 9736 13591 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9737 13592 throws com.google.protobuf.InvalidProtocolBufferException { 9738 return newBuilder().mergeFrom(data, extensionRegistry) 9739 .buildParsed(); 9740 } 9741 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom(byte[] data) 9742 throws com.google.protobuf.InvalidProtocolBufferException { 9743 return newBuilder().mergeFrom(data).buildParsed(); 9744 } 9745 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 9746 byte[] data, 9747 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9748 throws com.google.protobuf.InvalidProtocolBufferException { 9749 return newBuilder().mergeFrom(data, extensionRegistry) 9750 .buildParsed(); 9751 } 9752 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom(java.io.InputStream input) 9753 throws java.io.IOException { 9754 return newBuilder().mergeFrom(input).buildParsed(); 9755 } 9756 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 9757 java.io.InputStream input, 9758 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9759 throws java.io.IOException { 9760 return newBuilder().mergeFrom(input, extensionRegistry) 9761 .buildParsed(); 9762 } 9763 public static com.google.protobuf.DescriptorProtos.FileOptions parseDelimitedFrom(java.io.InputStream input) 9764 throws java.io.IOException { 9765 Builder builder = newBuilder(); 9766 if (builder.mergeDelimitedFrom(input)) { 9767 return builder.buildParsed(); 9768 } else { 9769 return null; 9770 } 9771 } 9772 public static com.google.protobuf.DescriptorProtos.FileOptions parseDelimitedFrom( 9773 java.io.InputStream input, 9774 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9775 throws java.io.IOException { 9776 Builder builder = newBuilder(); 9777 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 9778 return builder.buildParsed(); 9779 } else { 9780 return null; 9781 } 9782 } 9783 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 9784 com.google.protobuf.CodedInputStream input) 9785 throws java.io.IOException { 9786 return newBuilder().mergeFrom(input).buildParsed(); 9787 } 9788 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 9789 com.google.protobuf.CodedInputStream input, 9790 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9791 throws java.io.IOException { 9792 return newBuilder().mergeFrom(input, extensionRegistry) 9793 .buildParsed(); 9794 } 9795 9796 public static Builder newBuilder() { return Builder.create(); } 9797 public Builder newBuilderForType() { return newBuilder(); } 9798 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileOptions prototype) { 9799 return newBuilder().mergeFrom(prototype); 9800 } 9801 public Builder toBuilder() { return newBuilder(this); } 9802 9803 @java.lang.Override 9804 protected Builder newBuilderForType( 9805 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 9806 Builder builder = new Builder(parent); 9807 return builder; 9808 } 9809 public static final class Builder extends 9810 com.google.protobuf.GeneratedMessage.ExtendableBuilder< 9811 com.google.protobuf.DescriptorProtos.FileOptions, Builder> implements com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder { 9812 public static final com.google.protobuf.Descriptors.Descriptor 9813 getDescriptor() { 9814 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_descriptor; 9815 } 9816 9817 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 9818 internalGetFieldAccessorTable() { 9819 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_fieldAccessorTable; 9820 } 9821 9822 // Construct using com.google.protobuf.DescriptorProtos.FileOptions.newBuilder() 9823 private Builder() { 9824 maybeForceBuilderInitialization(); 9825 } 9826 9827 private Builder(BuilderParent parent) { 9828 super(parent); 9829 maybeForceBuilderInitialization(); 9830 } 9831 private void maybeForceBuilderInitialization() { 9832 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 9833 getUninterpretedOptionFieldBuilder(); 9834 } 9835 } 9836 private static Builder create() { 9837 return new Builder(); 9838 } 9839 9840 public Builder clear() { 9841 super.clear(); 9842 javaPackage_ = ""; 9843 bitField0_ = (bitField0_ & ~0x00000001); 9844 javaOuterClassname_ = ""; 9845 bitField0_ = (bitField0_ & ~0x00000002); 9846 javaMultipleFiles_ = false; 9847 bitField0_ = (bitField0_ & ~0x00000004); 9848 javaGenerateEqualsAndHash_ = false; 9849 bitField0_ = (bitField0_ & ~0x00000008); 9850 optimizeFor_ = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED; 9851 bitField0_ = (bitField0_ & ~0x00000010); 9852 goPackage_ = ""; 9853 bitField0_ = (bitField0_ & ~0x00000020); 9854 ccGenericServices_ = false; 9855 bitField0_ = (bitField0_ & ~0x00000040); 9856 javaGenericServices_ = false; 9857 bitField0_ = (bitField0_ & ~0x00000080); 9858 pyGenericServices_ = false; 9859 bitField0_ = (bitField0_ & ~0x00000100); 9860 if (uninterpretedOptionBuilder_ == null) { 9861 uninterpretedOption_ = java.util.Collections.emptyList(); 9862 bitField0_ = (bitField0_ & ~0x00000200); 9863 } else { 9864 uninterpretedOptionBuilder_.clear(); 9865 } 9866 return this; 9867 } 9868 9869 public Builder clone() { 9870 return create().mergeFrom(buildPartial()); 9871 } 9872 9873 public com.google.protobuf.Descriptors.Descriptor 9874 getDescriptorForType() { 9875 return com.google.protobuf.DescriptorProtos.FileOptions.getDescriptor(); 9876 } 9877 9878 public com.google.protobuf.DescriptorProtos.FileOptions getDefaultInstanceForType() { 9879 return com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); 9880 } 9881 9882 public com.google.protobuf.DescriptorProtos.FileOptions build() { 9883 com.google.protobuf.DescriptorProtos.FileOptions result = buildPartial(); 9884 if (!result.isInitialized()) { 9885 throw newUninitializedMessageException(result); 9886 } 9887 return result; 9888 } 9889 9890 private com.google.protobuf.DescriptorProtos.FileOptions buildParsed() 9891 throws com.google.protobuf.InvalidProtocolBufferException { 9892 com.google.protobuf.DescriptorProtos.FileOptions result = buildPartial(); 9893 if (!result.isInitialized()) { 9894 throw newUninitializedMessageException( 9895 result).asInvalidProtocolBufferException(); 9896 } 9897 return result; 9898 } 9899 9900 public com.google.protobuf.DescriptorProtos.FileOptions buildPartial() { 9901 com.google.protobuf.DescriptorProtos.FileOptions result = new com.google.protobuf.DescriptorProtos.FileOptions(this); 9902 int from_bitField0_ = bitField0_; 9903 int to_bitField0_ = 0; 9904 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 9905 to_bitField0_ |= 0x00000001; 9906 } 9907 result.javaPackage_ = javaPackage_; 9908 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 9909 to_bitField0_ |= 0x00000002; 9910 } 9911 result.javaOuterClassname_ = javaOuterClassname_; 9912 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 9913 to_bitField0_ |= 0x00000004; 9914 } 9915 result.javaMultipleFiles_ = javaMultipleFiles_; 9916 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 9917 to_bitField0_ |= 0x00000008; 9918 } 9919 result.javaGenerateEqualsAndHash_ = javaGenerateEqualsAndHash_; 9920 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 9921 to_bitField0_ |= 0x00000010; 9922 } 9923 result.optimizeFor_ = optimizeFor_; 9924 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 9925 to_bitField0_ |= 0x00000020; 9926 } 9927 result.goPackage_ = goPackage_; 9928 if (((from_bitField0_ & 0x00000040) == 0x00000040)) { 9929 to_bitField0_ |= 0x00000040; 9930 } 9931 result.ccGenericServices_ = ccGenericServices_; 9932 if (((from_bitField0_ & 0x00000080) == 0x00000080)) { 9933 to_bitField0_ |= 0x00000080; 9934 } 9935 result.javaGenericServices_ = javaGenericServices_; 9936 if (((from_bitField0_ & 0x00000100) == 0x00000100)) { 9937 to_bitField0_ |= 0x00000100; 9938 } 9939 result.pyGenericServices_ = pyGenericServices_; 9940 if (uninterpretedOptionBuilder_ == null) { 9941 if (((bitField0_ & 0x00000200) == 0x00000200)) { 9942 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 9943 bitField0_ = (bitField0_ & ~0x00000200); 9944 } 9945 result.uninterpretedOption_ = uninterpretedOption_; 9946 } else { 9947 result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); 9948 } 9949 result.bitField0_ = to_bitField0_; 9950 onBuilt(); 9951 return result; 9952 } 9953 9954 public Builder mergeFrom(com.google.protobuf.Message other) { 9955 if (other instanceof com.google.protobuf.DescriptorProtos.FileOptions) { 9956 return mergeFrom((com.google.protobuf.DescriptorProtos.FileOptions)other); 9957 } else { 9958 super.mergeFrom(other); 9959 return this; 9960 } 9961 } 9962 9963 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FileOptions other) { 9964 if (other == com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance()) return this; 9965 if (other.hasJavaPackage()) { 9966 setJavaPackage(other.getJavaPackage()); 9967 } 9968 if (other.hasJavaOuterClassname()) { 9969 setJavaOuterClassname(other.getJavaOuterClassname()); 9970 } 9971 if (other.hasJavaMultipleFiles()) { 9972 setJavaMultipleFiles(other.getJavaMultipleFiles()); 9973 } 9974 if (other.hasJavaGenerateEqualsAndHash()) { 9975 setJavaGenerateEqualsAndHash(other.getJavaGenerateEqualsAndHash()); 9976 } 9977 if (other.hasOptimizeFor()) { 9978 setOptimizeFor(other.getOptimizeFor()); 9979 } 9980 if (other.hasGoPackage()) { 9981 setGoPackage(other.getGoPackage()); 9982 } 9983 if (other.hasCcGenericServices()) { 9984 setCcGenericServices(other.getCcGenericServices()); 9985 } 9986 if (other.hasJavaGenericServices()) { 9987 setJavaGenericServices(other.getJavaGenericServices()); 9988 } 9989 if (other.hasPyGenericServices()) { 9990 setPyGenericServices(other.getPyGenericServices()); 9991 } 9992 if (uninterpretedOptionBuilder_ == null) { 9993 if (!other.uninterpretedOption_.isEmpty()) { 9994 if (uninterpretedOption_.isEmpty()) { 9995 uninterpretedOption_ = other.uninterpretedOption_; 9996 bitField0_ = (bitField0_ & ~0x00000200); 9997 } else { 9998 ensureUninterpretedOptionIsMutable(); 9999 uninterpretedOption_.addAll(other.uninterpretedOption_); 10000 } 10001 onChanged(); 10002 } 10003 } else { 10004 if (!other.uninterpretedOption_.isEmpty()) { 10005 if (uninterpretedOptionBuilder_.isEmpty()) { 10006 uninterpretedOptionBuilder_.dispose(); 10007 uninterpretedOptionBuilder_ = null; 10008 uninterpretedOption_ = other.uninterpretedOption_; 10009 bitField0_ = (bitField0_ & ~0x00000200); 10010 uninterpretedOptionBuilder_ = 10011 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 10012 getUninterpretedOptionFieldBuilder() : null; 10013 } else { 10014 uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); 10015 } 10016 } 10017 } 10018 this.mergeExtensionFields(other); 10019 this.mergeUnknownFields(other.getUnknownFields()); 10020 return this; 10021 } 10022 10023 public final boolean isInitialized() { 10024 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 10025 if (!getUninterpretedOption(i).isInitialized()) { 10026 10027 return false; 10028 } 10029 } 10030 if (!extensionsAreInitialized()) { 10031 10032 return false; 10033 } 10034 return true; 10035 } 10036 10037 public Builder mergeFrom( 10038 com.google.protobuf.CodedInputStream input, 10039 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10040 throws java.io.IOException { 10041 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 10042 com.google.protobuf.UnknownFieldSet.newBuilder( 10043 this.getUnknownFields()); 10044 while (true) { 13593 initFields(); 13594 int mutable_bitField0_ = 0; 13595 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 13596 com.google.protobuf.UnknownFieldSet.newBuilder(); 13597 try { 13598 boolean done = false; 13599 while (!done) { 10045 13600 int tag = input.readTag(); 10046 13601 switch (tag) { 10047 13602 case 0: 10048 this.setUnknownFields(unknownFields.build()); 10049 onChanged(); 10050 return this; 13603 done = true; 13604 break; 10051 13605 default: { 10052 13606 if (!parseUnknownField(input, unknownFields, 10053 13607 extensionRegistry, tag)) { 10054 this.setUnknownFields(unknownFields.build()); 10055 onChanged(); 10056 return this; 13608 done = true; 10057 13609 } 10058 13610 break; … … 10110 13662 } 10111 13663 case 7994: { 10112 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder subBuilder = com.google.protobuf.DescriptorProtos.UninterpretedOption.newBuilder(); 10113 input.readMessage(subBuilder, extensionRegistry); 10114 addUninterpretedOption(subBuilder.buildPartial()); 13664 if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { 13665 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 13666 mutable_bitField0_ |= 0x00000200; 13667 } 13668 uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 10115 13669 break; 10116 13670 } 10117 13671 } 10118 13672 } 10119 } 10120 13673 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 13674 throw e.setUnfinishedMessage(this); 13675 } catch (java.io.IOException e) { 13676 throw new com.google.protobuf.InvalidProtocolBufferException( 13677 e.getMessage()).setUnfinishedMessage(this); 13678 } finally { 13679 if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { 13680 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 13681 } 13682 this.unknownFields = unknownFields.build(); 13683 makeExtensionsImmutable(); 13684 } 13685 } 13686 public static final com.google.protobuf.Descriptors.Descriptor 13687 getDescriptor() { 13688 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_descriptor; 13689 } 13690 13691 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 13692 internalGetFieldAccessorTable() { 13693 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_fieldAccessorTable 13694 .ensureFieldAccessorsInitialized( 13695 com.google.protobuf.DescriptorProtos.FileOptions.class, com.google.protobuf.DescriptorProtos.FileOptions.Builder.class); 13696 } 13697 13698 public static com.google.protobuf.Parser<FileOptions> PARSER = 13699 new com.google.protobuf.AbstractParser<FileOptions>() { 13700 public FileOptions parsePartialFrom( 13701 com.google.protobuf.CodedInputStream input, 13702 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13703 throws com.google.protobuf.InvalidProtocolBufferException { 13704 return new FileOptions(input, extensionRegistry); 13705 } 13706 }; 13707 13708 @java.lang.Override 13709 public com.google.protobuf.Parser<FileOptions> getParserForType() { 13710 return PARSER; 13711 } 13712 13713 /** 13714 * Protobuf enum {@code google.protobuf.FileOptions.OptimizeMode} 13715 * 13716 * <pre> 13717 * Generated classes can be optimized for speed or code size. 13718 * </pre> 13719 */ 13720 public enum OptimizeMode 13721 implements com.google.protobuf.ProtocolMessageEnum { 13722 /** 13723 * <code>SPEED = 1;</code> 13724 * 13725 * <pre> 13726 * Generate complete code for parsing, serialization, 13727 * </pre> 13728 */ 13729 SPEED(0, 1), 13730 /** 13731 * <code>CODE_SIZE = 2;</code> 13732 * 13733 * <pre> 13734 * etc. 13735 * </pre> 13736 */ 13737 CODE_SIZE(1, 2), 13738 /** 13739 * <code>LITE_RUNTIME = 3;</code> 13740 * 13741 * <pre> 13742 * Generate code using MessageLite and the lite runtime. 13743 * </pre> 13744 */ 13745 LITE_RUNTIME(2, 3), 13746 ; 13747 13748 /** 13749 * <code>SPEED = 1;</code> 13750 * 13751 * <pre> 13752 * Generate complete code for parsing, serialization, 13753 * </pre> 13754 */ 13755 public static final int SPEED_VALUE = 1; 13756 /** 13757 * <code>CODE_SIZE = 2;</code> 13758 * 13759 * <pre> 13760 * etc. 13761 * </pre> 13762 */ 13763 public static final int CODE_SIZE_VALUE = 2; 13764 /** 13765 * <code>LITE_RUNTIME = 3;</code> 13766 * 13767 * <pre> 13768 * Generate code using MessageLite and the lite runtime. 13769 * </pre> 13770 */ 13771 public static final int LITE_RUNTIME_VALUE = 3; 13772 13773 13774 public final int getNumber() { return value; } 13775 13776 public static OptimizeMode valueOf(int value) { 13777 switch (value) { 13778 case 1: return SPEED; 13779 case 2: return CODE_SIZE; 13780 case 3: return LITE_RUNTIME; 13781 default: return null; 13782 } 13783 } 13784 13785 public static com.google.protobuf.Internal.EnumLiteMap<OptimizeMode> 13786 internalGetValueMap() { 13787 return internalValueMap; 13788 } 13789 private static com.google.protobuf.Internal.EnumLiteMap<OptimizeMode> 13790 internalValueMap = 13791 new com.google.protobuf.Internal.EnumLiteMap<OptimizeMode>() { 13792 public OptimizeMode findValueByNumber(int number) { 13793 return OptimizeMode.valueOf(number); 13794 } 13795 }; 13796 13797 public final com.google.protobuf.Descriptors.EnumValueDescriptor 13798 getValueDescriptor() { 13799 return getDescriptor().getValues().get(index); 13800 } 13801 public final com.google.protobuf.Descriptors.EnumDescriptor 13802 getDescriptorForType() { 13803 return getDescriptor(); 13804 } 13805 public static final com.google.protobuf.Descriptors.EnumDescriptor 13806 getDescriptor() { 13807 return com.google.protobuf.DescriptorProtos.FileOptions.getDescriptor().getEnumTypes().get(0); 13808 } 13809 13810 private static final OptimizeMode[] VALUES = values(); 13811 13812 public static OptimizeMode valueOf( 13813 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 13814 if (desc.getType() != getDescriptor()) { 13815 throw new java.lang.IllegalArgumentException( 13816 "EnumValueDescriptor is not for this type."); 13817 } 13818 return VALUES[desc.getIndex()]; 13819 } 13820 13821 private final int index; 13822 private final int value; 13823 13824 private OptimizeMode(int index, int value) { 13825 this.index = index; 13826 this.value = value; 13827 } 13828 13829 // @@protoc_insertion_point(enum_scope:google.protobuf.FileOptions.OptimizeMode) 13830 } 13831 13832 private int bitField0_; 13833 // optional string java_package = 1; 13834 public static final int JAVA_PACKAGE_FIELD_NUMBER = 1; 13835 private java.lang.Object javaPackage_; 13836 /** 13837 * <code>optional string java_package = 1;</code> 13838 * 13839 * <pre> 13840 * Sets the Java package where classes generated from this .proto will be 13841 * placed. By default, the proto package is used, but this is often 13842 * inappropriate because proto packages do not normally start with backwards 13843 * domain names. 13844 * </pre> 13845 */ 13846 public boolean hasJavaPackage() { 13847 return ((bitField0_ & 0x00000001) == 0x00000001); 13848 } 13849 /** 13850 * <code>optional string java_package = 1;</code> 13851 * 13852 * <pre> 13853 * Sets the Java package where classes generated from this .proto will be 13854 * placed. By default, the proto package is used, but this is often 13855 * inappropriate because proto packages do not normally start with backwards 13856 * domain names. 13857 * </pre> 13858 */ 13859 public java.lang.String getJavaPackage() { 13860 java.lang.Object ref = javaPackage_; 13861 if (ref instanceof java.lang.String) { 13862 return (java.lang.String) ref; 13863 } else { 13864 com.google.protobuf.ByteString bs = 13865 (com.google.protobuf.ByteString) ref; 13866 java.lang.String s = bs.toStringUtf8(); 13867 if (bs.isValidUtf8()) { 13868 javaPackage_ = s; 13869 } 13870 return s; 13871 } 13872 } 13873 /** 13874 * <code>optional string java_package = 1;</code> 13875 * 13876 * <pre> 13877 * Sets the Java package where classes generated from this .proto will be 13878 * placed. By default, the proto package is used, but this is often 13879 * inappropriate because proto packages do not normally start with backwards 13880 * domain names. 13881 * </pre> 13882 */ 13883 public com.google.protobuf.ByteString 13884 getJavaPackageBytes() { 13885 java.lang.Object ref = javaPackage_; 13886 if (ref instanceof java.lang.String) { 13887 com.google.protobuf.ByteString b = 13888 com.google.protobuf.ByteString.copyFromUtf8( 13889 (java.lang.String) ref); 13890 javaPackage_ = b; 13891 return b; 13892 } else { 13893 return (com.google.protobuf.ByteString) ref; 13894 } 13895 } 13896 13897 // optional string java_outer_classname = 8; 13898 public static final int JAVA_OUTER_CLASSNAME_FIELD_NUMBER = 8; 13899 private java.lang.Object javaOuterClassname_; 13900 /** 13901 * <code>optional string java_outer_classname = 8;</code> 13902 * 13903 * <pre> 13904 * If set, all the classes from the .proto file are wrapped in a single 13905 * outer class with the given name. This applies to both Proto1 13906 * (equivalent to the old "--one_java_file" option) and Proto2 (where 13907 * a .proto always translates to a single class, but you may want to 13908 * explicitly choose the class name). 13909 * </pre> 13910 */ 13911 public boolean hasJavaOuterClassname() { 13912 return ((bitField0_ & 0x00000002) == 0x00000002); 13913 } 13914 /** 13915 * <code>optional string java_outer_classname = 8;</code> 13916 * 13917 * <pre> 13918 * If set, all the classes from the .proto file are wrapped in a single 13919 * outer class with the given name. This applies to both Proto1 13920 * (equivalent to the old "--one_java_file" option) and Proto2 (where 13921 * a .proto always translates to a single class, but you may want to 13922 * explicitly choose the class name). 13923 * </pre> 13924 */ 13925 public java.lang.String getJavaOuterClassname() { 13926 java.lang.Object ref = javaOuterClassname_; 13927 if (ref instanceof java.lang.String) { 13928 return (java.lang.String) ref; 13929 } else { 13930 com.google.protobuf.ByteString bs = 13931 (com.google.protobuf.ByteString) ref; 13932 java.lang.String s = bs.toStringUtf8(); 13933 if (bs.isValidUtf8()) { 13934 javaOuterClassname_ = s; 13935 } 13936 return s; 13937 } 13938 } 13939 /** 13940 * <code>optional string java_outer_classname = 8;</code> 13941 * 13942 * <pre> 13943 * If set, all the classes from the .proto file are wrapped in a single 13944 * outer class with the given name. This applies to both Proto1 13945 * (equivalent to the old "--one_java_file" option) and Proto2 (where 13946 * a .proto always translates to a single class, but you may want to 13947 * explicitly choose the class name). 13948 * </pre> 13949 */ 13950 public com.google.protobuf.ByteString 13951 getJavaOuterClassnameBytes() { 13952 java.lang.Object ref = javaOuterClassname_; 13953 if (ref instanceof java.lang.String) { 13954 com.google.protobuf.ByteString b = 13955 com.google.protobuf.ByteString.copyFromUtf8( 13956 (java.lang.String) ref); 13957 javaOuterClassname_ = b; 13958 return b; 13959 } else { 13960 return (com.google.protobuf.ByteString) ref; 13961 } 13962 } 13963 13964 // optional bool java_multiple_files = 10 [default = false]; 13965 public static final int JAVA_MULTIPLE_FILES_FIELD_NUMBER = 10; 13966 private boolean javaMultipleFiles_; 13967 /** 13968 * <code>optional bool java_multiple_files = 10 [default = false];</code> 13969 * 13970 * <pre> 13971 * If set true, then the Java code generator will generate a separate .java 13972 * file for each top-level message, enum, and service defined in the .proto 13973 * file. Thus, these types will *not* be nested inside the outer class 13974 * named by java_outer_classname. However, the outer class will still be 13975 * generated to contain the file's getDescriptor() method as well as any 13976 * top-level extensions defined in the file. 13977 * </pre> 13978 */ 13979 public boolean hasJavaMultipleFiles() { 13980 return ((bitField0_ & 0x00000004) == 0x00000004); 13981 } 13982 /** 13983 * <code>optional bool java_multiple_files = 10 [default = false];</code> 13984 * 13985 * <pre> 13986 * If set true, then the Java code generator will generate a separate .java 13987 * file for each top-level message, enum, and service defined in the .proto 13988 * file. Thus, these types will *not* be nested inside the outer class 13989 * named by java_outer_classname. However, the outer class will still be 13990 * generated to contain the file's getDescriptor() method as well as any 13991 * top-level extensions defined in the file. 13992 * </pre> 13993 */ 13994 public boolean getJavaMultipleFiles() { 13995 return javaMultipleFiles_; 13996 } 13997 13998 // optional bool java_generate_equals_and_hash = 20 [default = false]; 13999 public static final int JAVA_GENERATE_EQUALS_AND_HASH_FIELD_NUMBER = 20; 14000 private boolean javaGenerateEqualsAndHash_; 14001 /** 14002 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> 14003 * 14004 * <pre> 14005 * If set true, then the Java code generator will generate equals() and 14006 * hashCode() methods for all messages defined in the .proto file. This is 14007 * purely a speed optimization, as the AbstractMessage base class includes 14008 * reflection-based implementations of these methods. 14009 * </pre> 14010 */ 14011 public boolean hasJavaGenerateEqualsAndHash() { 14012 return ((bitField0_ & 0x00000008) == 0x00000008); 14013 } 14014 /** 14015 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> 14016 * 14017 * <pre> 14018 * If set true, then the Java code generator will generate equals() and 14019 * hashCode() methods for all messages defined in the .proto file. This is 14020 * purely a speed optimization, as the AbstractMessage base class includes 14021 * reflection-based implementations of these methods. 14022 * </pre> 14023 */ 14024 public boolean getJavaGenerateEqualsAndHash() { 14025 return javaGenerateEqualsAndHash_; 14026 } 14027 14028 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; 14029 public static final int OPTIMIZE_FOR_FIELD_NUMBER = 9; 14030 private com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode optimizeFor_; 14031 /** 14032 * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> 14033 */ 14034 public boolean hasOptimizeFor() { 14035 return ((bitField0_ & 0x00000010) == 0x00000010); 14036 } 14037 /** 14038 * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> 14039 */ 14040 public com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor() { 14041 return optimizeFor_; 14042 } 14043 14044 // optional string go_package = 11; 14045 public static final int GO_PACKAGE_FIELD_NUMBER = 11; 14046 private java.lang.Object goPackage_; 14047 /** 14048 * <code>optional string go_package = 11;</code> 14049 * 14050 * <pre> 14051 * Sets the Go package where structs generated from this .proto will be 14052 * placed. There is no default. 14053 * </pre> 14054 */ 14055 public boolean hasGoPackage() { 14056 return ((bitField0_ & 0x00000020) == 0x00000020); 14057 } 14058 /** 14059 * <code>optional string go_package = 11;</code> 14060 * 14061 * <pre> 14062 * Sets the Go package where structs generated from this .proto will be 14063 * placed. There is no default. 14064 * </pre> 14065 */ 14066 public java.lang.String getGoPackage() { 14067 java.lang.Object ref = goPackage_; 14068 if (ref instanceof java.lang.String) { 14069 return (java.lang.String) ref; 14070 } else { 14071 com.google.protobuf.ByteString bs = 14072 (com.google.protobuf.ByteString) ref; 14073 java.lang.String s = bs.toStringUtf8(); 14074 if (bs.isValidUtf8()) { 14075 goPackage_ = s; 14076 } 14077 return s; 14078 } 14079 } 14080 /** 14081 * <code>optional string go_package = 11;</code> 14082 * 14083 * <pre> 14084 * Sets the Go package where structs generated from this .proto will be 14085 * placed. There is no default. 14086 * </pre> 14087 */ 14088 public com.google.protobuf.ByteString 14089 getGoPackageBytes() { 14090 java.lang.Object ref = goPackage_; 14091 if (ref instanceof java.lang.String) { 14092 com.google.protobuf.ByteString b = 14093 com.google.protobuf.ByteString.copyFromUtf8( 14094 (java.lang.String) ref); 14095 goPackage_ = b; 14096 return b; 14097 } else { 14098 return (com.google.protobuf.ByteString) ref; 14099 } 14100 } 14101 14102 // optional bool cc_generic_services = 16 [default = false]; 14103 public static final int CC_GENERIC_SERVICES_FIELD_NUMBER = 16; 14104 private boolean ccGenericServices_; 14105 /** 14106 * <code>optional bool cc_generic_services = 16 [default = false];</code> 14107 * 14108 * <pre> 14109 * Should generic services be generated in each language? "Generic" services 14110 * are not specific to any particular RPC system. They are generated by the 14111 * main code generators in each language (without additional plugins). 14112 * Generic services were the only kind of service generation supported by 14113 * early versions of proto2. 14114 * 14115 * Generic services are now considered deprecated in favor of using plugins 14116 * that generate code specific to your particular RPC system. Therefore, 14117 * these default to false. Old code which depends on generic services should 14118 * explicitly set them to true. 14119 * </pre> 14120 */ 14121 public boolean hasCcGenericServices() { 14122 return ((bitField0_ & 0x00000040) == 0x00000040); 14123 } 14124 /** 14125 * <code>optional bool cc_generic_services = 16 [default = false];</code> 14126 * 14127 * <pre> 14128 * Should generic services be generated in each language? "Generic" services 14129 * are not specific to any particular RPC system. They are generated by the 14130 * main code generators in each language (without additional plugins). 14131 * Generic services were the only kind of service generation supported by 14132 * early versions of proto2. 14133 * 14134 * Generic services are now considered deprecated in favor of using plugins 14135 * that generate code specific to your particular RPC system. Therefore, 14136 * these default to false. Old code which depends on generic services should 14137 * explicitly set them to true. 14138 * </pre> 14139 */ 14140 public boolean getCcGenericServices() { 14141 return ccGenericServices_; 14142 } 14143 14144 // optional bool java_generic_services = 17 [default = false]; 14145 public static final int JAVA_GENERIC_SERVICES_FIELD_NUMBER = 17; 14146 private boolean javaGenericServices_; 14147 /** 14148 * <code>optional bool java_generic_services = 17 [default = false];</code> 14149 */ 14150 public boolean hasJavaGenericServices() { 14151 return ((bitField0_ & 0x00000080) == 0x00000080); 14152 } 14153 /** 14154 * <code>optional bool java_generic_services = 17 [default = false];</code> 14155 */ 14156 public boolean getJavaGenericServices() { 14157 return javaGenericServices_; 14158 } 14159 14160 // optional bool py_generic_services = 18 [default = false]; 14161 public static final int PY_GENERIC_SERVICES_FIELD_NUMBER = 18; 14162 private boolean pyGenericServices_; 14163 /** 14164 * <code>optional bool py_generic_services = 18 [default = false];</code> 14165 */ 14166 public boolean hasPyGenericServices() { 14167 return ((bitField0_ & 0x00000100) == 0x00000100); 14168 } 14169 /** 14170 * <code>optional bool py_generic_services = 18 [default = false];</code> 14171 */ 14172 public boolean getPyGenericServices() { 14173 return pyGenericServices_; 14174 } 14175 14176 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 14177 public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; 14178 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 14179 /** 14180 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 14181 * 14182 * <pre> 14183 * The parser stores options it doesn't recognize here. See above. 14184 * </pre> 14185 */ 14186 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 14187 return uninterpretedOption_; 14188 } 14189 /** 14190 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 14191 * 14192 * <pre> 14193 * The parser stores options it doesn't recognize here. See above. 14194 * </pre> 14195 */ 14196 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 14197 getUninterpretedOptionOrBuilderList() { 14198 return uninterpretedOption_; 14199 } 14200 /** 14201 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 14202 * 14203 * <pre> 14204 * The parser stores options it doesn't recognize here. See above. 14205 * </pre> 14206 */ 14207 public int getUninterpretedOptionCount() { 14208 return uninterpretedOption_.size(); 14209 } 14210 /** 14211 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 14212 * 14213 * <pre> 14214 * The parser stores options it doesn't recognize here. See above. 14215 * </pre> 14216 */ 14217 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 14218 return uninterpretedOption_.get(index); 14219 } 14220 /** 14221 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 14222 * 14223 * <pre> 14224 * The parser stores options it doesn't recognize here. See above. 14225 * </pre> 14226 */ 14227 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 14228 int index) { 14229 return uninterpretedOption_.get(index); 14230 } 14231 14232 private void initFields() { 14233 javaPackage_ = ""; 14234 javaOuterClassname_ = ""; 14235 javaMultipleFiles_ = false; 14236 javaGenerateEqualsAndHash_ = false; 14237 optimizeFor_ = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED; 14238 goPackage_ = ""; 14239 ccGenericServices_ = false; 14240 javaGenericServices_ = false; 14241 pyGenericServices_ = false; 14242 uninterpretedOption_ = java.util.Collections.emptyList(); 14243 } 14244 private byte memoizedIsInitialized = -1; 14245 public final boolean isInitialized() { 14246 byte isInitialized = memoizedIsInitialized; 14247 if (isInitialized != -1) return isInitialized == 1; 14248 14249 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 14250 if (!getUninterpretedOption(i).isInitialized()) { 14251 memoizedIsInitialized = 0; 14252 return false; 14253 } 14254 } 14255 if (!extensionsAreInitialized()) { 14256 memoizedIsInitialized = 0; 14257 return false; 14258 } 14259 memoizedIsInitialized = 1; 14260 return true; 14261 } 14262 14263 public void writeTo(com.google.protobuf.CodedOutputStream output) 14264 throws java.io.IOException { 14265 getSerializedSize(); 14266 com.google.protobuf.GeneratedMessage 14267 .ExtendableMessage<com.google.protobuf.DescriptorProtos.FileOptions>.ExtensionWriter extensionWriter = 14268 newExtensionWriter(); 14269 if (((bitField0_ & 0x00000001) == 0x00000001)) { 14270 output.writeBytes(1, getJavaPackageBytes()); 14271 } 14272 if (((bitField0_ & 0x00000002) == 0x00000002)) { 14273 output.writeBytes(8, getJavaOuterClassnameBytes()); 14274 } 14275 if (((bitField0_ & 0x00000010) == 0x00000010)) { 14276 output.writeEnum(9, optimizeFor_.getNumber()); 14277 } 14278 if (((bitField0_ & 0x00000004) == 0x00000004)) { 14279 output.writeBool(10, javaMultipleFiles_); 14280 } 14281 if (((bitField0_ & 0x00000020) == 0x00000020)) { 14282 output.writeBytes(11, getGoPackageBytes()); 14283 } 14284 if (((bitField0_ & 0x00000040) == 0x00000040)) { 14285 output.writeBool(16, ccGenericServices_); 14286 } 14287 if (((bitField0_ & 0x00000080) == 0x00000080)) { 14288 output.writeBool(17, javaGenericServices_); 14289 } 14290 if (((bitField0_ & 0x00000100) == 0x00000100)) { 14291 output.writeBool(18, pyGenericServices_); 14292 } 14293 if (((bitField0_ & 0x00000008) == 0x00000008)) { 14294 output.writeBool(20, javaGenerateEqualsAndHash_); 14295 } 14296 for (int i = 0; i < uninterpretedOption_.size(); i++) { 14297 output.writeMessage(999, uninterpretedOption_.get(i)); 14298 } 14299 extensionWriter.writeUntil(536870912, output); 14300 getUnknownFields().writeTo(output); 14301 } 14302 14303 private int memoizedSerializedSize = -1; 14304 public int getSerializedSize() { 14305 int size = memoizedSerializedSize; 14306 if (size != -1) return size; 14307 14308 size = 0; 14309 if (((bitField0_ & 0x00000001) == 0x00000001)) { 14310 size += com.google.protobuf.CodedOutputStream 14311 .computeBytesSize(1, getJavaPackageBytes()); 14312 } 14313 if (((bitField0_ & 0x00000002) == 0x00000002)) { 14314 size += com.google.protobuf.CodedOutputStream 14315 .computeBytesSize(8, getJavaOuterClassnameBytes()); 14316 } 14317 if (((bitField0_ & 0x00000010) == 0x00000010)) { 14318 size += com.google.protobuf.CodedOutputStream 14319 .computeEnumSize(9, optimizeFor_.getNumber()); 14320 } 14321 if (((bitField0_ & 0x00000004) == 0x00000004)) { 14322 size += com.google.protobuf.CodedOutputStream 14323 .computeBoolSize(10, javaMultipleFiles_); 14324 } 14325 if (((bitField0_ & 0x00000020) == 0x00000020)) { 14326 size += com.google.protobuf.CodedOutputStream 14327 .computeBytesSize(11, getGoPackageBytes()); 14328 } 14329 if (((bitField0_ & 0x00000040) == 0x00000040)) { 14330 size += com.google.protobuf.CodedOutputStream 14331 .computeBoolSize(16, ccGenericServices_); 14332 } 14333 if (((bitField0_ & 0x00000080) == 0x00000080)) { 14334 size += com.google.protobuf.CodedOutputStream 14335 .computeBoolSize(17, javaGenericServices_); 14336 } 14337 if (((bitField0_ & 0x00000100) == 0x00000100)) { 14338 size += com.google.protobuf.CodedOutputStream 14339 .computeBoolSize(18, pyGenericServices_); 14340 } 14341 if (((bitField0_ & 0x00000008) == 0x00000008)) { 14342 size += com.google.protobuf.CodedOutputStream 14343 .computeBoolSize(20, javaGenerateEqualsAndHash_); 14344 } 14345 for (int i = 0; i < uninterpretedOption_.size(); i++) { 14346 size += com.google.protobuf.CodedOutputStream 14347 .computeMessageSize(999, uninterpretedOption_.get(i)); 14348 } 14349 size += extensionsSerializedSize(); 14350 size += getUnknownFields().getSerializedSize(); 14351 memoizedSerializedSize = size; 14352 return size; 14353 } 14354 14355 private static final long serialVersionUID = 0L; 14356 @java.lang.Override 14357 protected java.lang.Object writeReplace() 14358 throws java.io.ObjectStreamException { 14359 return super.writeReplace(); 14360 } 14361 14362 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 14363 com.google.protobuf.ByteString data) 14364 throws com.google.protobuf.InvalidProtocolBufferException { 14365 return PARSER.parseFrom(data); 14366 } 14367 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 14368 com.google.protobuf.ByteString data, 14369 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14370 throws com.google.protobuf.InvalidProtocolBufferException { 14371 return PARSER.parseFrom(data, extensionRegistry); 14372 } 14373 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom(byte[] data) 14374 throws com.google.protobuf.InvalidProtocolBufferException { 14375 return PARSER.parseFrom(data); 14376 } 14377 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 14378 byte[] data, 14379 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14380 throws com.google.protobuf.InvalidProtocolBufferException { 14381 return PARSER.parseFrom(data, extensionRegistry); 14382 } 14383 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom(java.io.InputStream input) 14384 throws java.io.IOException { 14385 return PARSER.parseFrom(input); 14386 } 14387 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 14388 java.io.InputStream input, 14389 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14390 throws java.io.IOException { 14391 return PARSER.parseFrom(input, extensionRegistry); 14392 } 14393 public static com.google.protobuf.DescriptorProtos.FileOptions parseDelimitedFrom(java.io.InputStream input) 14394 throws java.io.IOException { 14395 return PARSER.parseDelimitedFrom(input); 14396 } 14397 public static com.google.protobuf.DescriptorProtos.FileOptions parseDelimitedFrom( 14398 java.io.InputStream input, 14399 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14400 throws java.io.IOException { 14401 return PARSER.parseDelimitedFrom(input, extensionRegistry); 14402 } 14403 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 14404 com.google.protobuf.CodedInputStream input) 14405 throws java.io.IOException { 14406 return PARSER.parseFrom(input); 14407 } 14408 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 14409 com.google.protobuf.CodedInputStream input, 14410 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14411 throws java.io.IOException { 14412 return PARSER.parseFrom(input, extensionRegistry); 14413 } 14414 14415 public static Builder newBuilder() { return Builder.create(); } 14416 public Builder newBuilderForType() { return newBuilder(); } 14417 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileOptions prototype) { 14418 return newBuilder().mergeFrom(prototype); 14419 } 14420 public Builder toBuilder() { return newBuilder(this); } 14421 14422 @java.lang.Override 14423 protected Builder newBuilderForType( 14424 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 14425 Builder builder = new Builder(parent); 14426 return builder; 14427 } 14428 /** 14429 * Protobuf type {@code google.protobuf.FileOptions} 14430 */ 14431 public static final class Builder extends 14432 com.google.protobuf.GeneratedMessage.ExtendableBuilder< 14433 com.google.protobuf.DescriptorProtos.FileOptions, Builder> implements com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder { 14434 public static final com.google.protobuf.Descriptors.Descriptor 14435 getDescriptor() { 14436 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_descriptor; 14437 } 14438 14439 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 14440 internalGetFieldAccessorTable() { 14441 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_fieldAccessorTable 14442 .ensureFieldAccessorsInitialized( 14443 com.google.protobuf.DescriptorProtos.FileOptions.class, com.google.protobuf.DescriptorProtos.FileOptions.Builder.class); 14444 } 14445 14446 // Construct using com.google.protobuf.DescriptorProtos.FileOptions.newBuilder() 14447 private Builder() { 14448 maybeForceBuilderInitialization(); 14449 } 14450 14451 private Builder( 14452 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 14453 super(parent); 14454 maybeForceBuilderInitialization(); 14455 } 14456 private void maybeForceBuilderInitialization() { 14457 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 14458 getUninterpretedOptionFieldBuilder(); 14459 } 14460 } 14461 private static Builder create() { 14462 return new Builder(); 14463 } 14464 14465 public Builder clear() { 14466 super.clear(); 14467 javaPackage_ = ""; 14468 bitField0_ = (bitField0_ & ~0x00000001); 14469 javaOuterClassname_ = ""; 14470 bitField0_ = (bitField0_ & ~0x00000002); 14471 javaMultipleFiles_ = false; 14472 bitField0_ = (bitField0_ & ~0x00000004); 14473 javaGenerateEqualsAndHash_ = false; 14474 bitField0_ = (bitField0_ & ~0x00000008); 14475 optimizeFor_ = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED; 14476 bitField0_ = (bitField0_ & ~0x00000010); 14477 goPackage_ = ""; 14478 bitField0_ = (bitField0_ & ~0x00000020); 14479 ccGenericServices_ = false; 14480 bitField0_ = (bitField0_ & ~0x00000040); 14481 javaGenericServices_ = false; 14482 bitField0_ = (bitField0_ & ~0x00000080); 14483 pyGenericServices_ = false; 14484 bitField0_ = (bitField0_ & ~0x00000100); 14485 if (uninterpretedOptionBuilder_ == null) { 14486 uninterpretedOption_ = java.util.Collections.emptyList(); 14487 bitField0_ = (bitField0_ & ~0x00000200); 14488 } else { 14489 uninterpretedOptionBuilder_.clear(); 14490 } 14491 return this; 14492 } 14493 14494 public Builder clone() { 14495 return create().mergeFrom(buildPartial()); 14496 } 14497 14498 public com.google.protobuf.Descriptors.Descriptor 14499 getDescriptorForType() { 14500 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_descriptor; 14501 } 14502 14503 public com.google.protobuf.DescriptorProtos.FileOptions getDefaultInstanceForType() { 14504 return com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); 14505 } 14506 14507 public com.google.protobuf.DescriptorProtos.FileOptions build() { 14508 com.google.protobuf.DescriptorProtos.FileOptions result = buildPartial(); 14509 if (!result.isInitialized()) { 14510 throw newUninitializedMessageException(result); 14511 } 14512 return result; 14513 } 14514 14515 public com.google.protobuf.DescriptorProtos.FileOptions buildPartial() { 14516 com.google.protobuf.DescriptorProtos.FileOptions result = new com.google.protobuf.DescriptorProtos.FileOptions(this); 14517 int from_bitField0_ = bitField0_; 14518 int to_bitField0_ = 0; 14519 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 14520 to_bitField0_ |= 0x00000001; 14521 } 14522 result.javaPackage_ = javaPackage_; 14523 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 14524 to_bitField0_ |= 0x00000002; 14525 } 14526 result.javaOuterClassname_ = javaOuterClassname_; 14527 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 14528 to_bitField0_ |= 0x00000004; 14529 } 14530 result.javaMultipleFiles_ = javaMultipleFiles_; 14531 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 14532 to_bitField0_ |= 0x00000008; 14533 } 14534 result.javaGenerateEqualsAndHash_ = javaGenerateEqualsAndHash_; 14535 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 14536 to_bitField0_ |= 0x00000010; 14537 } 14538 result.optimizeFor_ = optimizeFor_; 14539 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 14540 to_bitField0_ |= 0x00000020; 14541 } 14542 result.goPackage_ = goPackage_; 14543 if (((from_bitField0_ & 0x00000040) == 0x00000040)) { 14544 to_bitField0_ |= 0x00000040; 14545 } 14546 result.ccGenericServices_ = ccGenericServices_; 14547 if (((from_bitField0_ & 0x00000080) == 0x00000080)) { 14548 to_bitField0_ |= 0x00000080; 14549 } 14550 result.javaGenericServices_ = javaGenericServices_; 14551 if (((from_bitField0_ & 0x00000100) == 0x00000100)) { 14552 to_bitField0_ |= 0x00000100; 14553 } 14554 result.pyGenericServices_ = pyGenericServices_; 14555 if (uninterpretedOptionBuilder_ == null) { 14556 if (((bitField0_ & 0x00000200) == 0x00000200)) { 14557 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 14558 bitField0_ = (bitField0_ & ~0x00000200); 14559 } 14560 result.uninterpretedOption_ = uninterpretedOption_; 14561 } else { 14562 result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); 14563 } 14564 result.bitField0_ = to_bitField0_; 14565 onBuilt(); 14566 return result; 14567 } 14568 14569 public Builder mergeFrom(com.google.protobuf.Message other) { 14570 if (other instanceof com.google.protobuf.DescriptorProtos.FileOptions) { 14571 return mergeFrom((com.google.protobuf.DescriptorProtos.FileOptions)other); 14572 } else { 14573 super.mergeFrom(other); 14574 return this; 14575 } 14576 } 14577 14578 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FileOptions other) { 14579 if (other == com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance()) return this; 14580 if (other.hasJavaPackage()) { 14581 bitField0_ |= 0x00000001; 14582 javaPackage_ = other.javaPackage_; 14583 onChanged(); 14584 } 14585 if (other.hasJavaOuterClassname()) { 14586 bitField0_ |= 0x00000002; 14587 javaOuterClassname_ = other.javaOuterClassname_; 14588 onChanged(); 14589 } 14590 if (other.hasJavaMultipleFiles()) { 14591 setJavaMultipleFiles(other.getJavaMultipleFiles()); 14592 } 14593 if (other.hasJavaGenerateEqualsAndHash()) { 14594 setJavaGenerateEqualsAndHash(other.getJavaGenerateEqualsAndHash()); 14595 } 14596 if (other.hasOptimizeFor()) { 14597 setOptimizeFor(other.getOptimizeFor()); 14598 } 14599 if (other.hasGoPackage()) { 14600 bitField0_ |= 0x00000020; 14601 goPackage_ = other.goPackage_; 14602 onChanged(); 14603 } 14604 if (other.hasCcGenericServices()) { 14605 setCcGenericServices(other.getCcGenericServices()); 14606 } 14607 if (other.hasJavaGenericServices()) { 14608 setJavaGenericServices(other.getJavaGenericServices()); 14609 } 14610 if (other.hasPyGenericServices()) { 14611 setPyGenericServices(other.getPyGenericServices()); 14612 } 14613 if (uninterpretedOptionBuilder_ == null) { 14614 if (!other.uninterpretedOption_.isEmpty()) { 14615 if (uninterpretedOption_.isEmpty()) { 14616 uninterpretedOption_ = other.uninterpretedOption_; 14617 bitField0_ = (bitField0_ & ~0x00000200); 14618 } else { 14619 ensureUninterpretedOptionIsMutable(); 14620 uninterpretedOption_.addAll(other.uninterpretedOption_); 14621 } 14622 onChanged(); 14623 } 14624 } else { 14625 if (!other.uninterpretedOption_.isEmpty()) { 14626 if (uninterpretedOptionBuilder_.isEmpty()) { 14627 uninterpretedOptionBuilder_.dispose(); 14628 uninterpretedOptionBuilder_ = null; 14629 uninterpretedOption_ = other.uninterpretedOption_; 14630 bitField0_ = (bitField0_ & ~0x00000200); 14631 uninterpretedOptionBuilder_ = 14632 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 14633 getUninterpretedOptionFieldBuilder() : null; 14634 } else { 14635 uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); 14636 } 14637 } 14638 } 14639 this.mergeExtensionFields(other); 14640 this.mergeUnknownFields(other.getUnknownFields()); 14641 return this; 14642 } 14643 14644 public final boolean isInitialized() { 14645 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 14646 if (!getUninterpretedOption(i).isInitialized()) { 14647 14648 return false; 14649 } 14650 } 14651 if (!extensionsAreInitialized()) { 14652 14653 return false; 14654 } 14655 return true; 14656 } 14657 14658 public Builder mergeFrom( 14659 com.google.protobuf.CodedInputStream input, 14660 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14661 throws java.io.IOException { 14662 com.google.protobuf.DescriptorProtos.FileOptions parsedMessage = null; 14663 try { 14664 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 14665 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 14666 parsedMessage = (com.google.protobuf.DescriptorProtos.FileOptions) e.getUnfinishedMessage(); 14667 throw e; 14668 } finally { 14669 if (parsedMessage != null) { 14670 mergeFrom(parsedMessage); 14671 } 14672 } 14673 return this; 14674 } 10121 14675 private int bitField0_; 10122 14676 10123 14677 // optional string java_package = 1; 10124 14678 private java.lang.Object javaPackage_ = ""; 14679 /** 14680 * <code>optional string java_package = 1;</code> 14681 * 14682 * <pre> 14683 * Sets the Java package where classes generated from this .proto will be 14684 * placed. By default, the proto package is used, but this is often 14685 * inappropriate because proto packages do not normally start with backwards 14686 * domain names. 14687 * </pre> 14688 */ 10125 14689 public boolean hasJavaPackage() { 10126 14690 return ((bitField0_ & 0x00000001) == 0x00000001); 10127 14691 } 10128 public String getJavaPackage() { 14692 /** 14693 * <code>optional string java_package = 1;</code> 14694 * 14695 * <pre> 14696 * Sets the Java package where classes generated from this .proto will be 14697 * placed. By default, the proto package is used, but this is often 14698 * inappropriate because proto packages do not normally start with backwards 14699 * domain names. 14700 * </pre> 14701 */ 14702 public java.lang.String getJavaPackage() { 10129 14703 java.lang.Object ref = javaPackage_; 10130 if (!(ref instanceof String)) { 10131 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 14704 if (!(ref instanceof java.lang.String)) { 14705 java.lang.String s = ((com.google.protobuf.ByteString) ref) 14706 .toStringUtf8(); 10132 14707 javaPackage_ = s; 10133 14708 return s; 10134 14709 } else { 10135 return (String) ref; 10136 } 10137 } 10138 public Builder setJavaPackage(String value) { 14710 return (java.lang.String) ref; 14711 } 14712 } 14713 /** 14714 * <code>optional string java_package = 1;</code> 14715 * 14716 * <pre> 14717 * Sets the Java package where classes generated from this .proto will be 14718 * placed. By default, the proto package is used, but this is often 14719 * inappropriate because proto packages do not normally start with backwards 14720 * domain names. 14721 * </pre> 14722 */ 14723 public com.google.protobuf.ByteString 14724 getJavaPackageBytes() { 14725 java.lang.Object ref = javaPackage_; 14726 if (ref instanceof String) { 14727 com.google.protobuf.ByteString b = 14728 com.google.protobuf.ByteString.copyFromUtf8( 14729 (java.lang.String) ref); 14730 javaPackage_ = b; 14731 return b; 14732 } else { 14733 return (com.google.protobuf.ByteString) ref; 14734 } 14735 } 14736 /** 14737 * <code>optional string java_package = 1;</code> 14738 * 14739 * <pre> 14740 * Sets the Java package where classes generated from this .proto will be 14741 * placed. By default, the proto package is used, but this is often 14742 * inappropriate because proto packages do not normally start with backwards 14743 * domain names. 14744 * </pre> 14745 */ 14746 public Builder setJavaPackage( 14747 java.lang.String value) { 10139 14748 if (value == null) { 10140 14749 throw new NullPointerException(); … … 10145 14754 return this; 10146 14755 } 14756 /** 14757 * <code>optional string java_package = 1;</code> 14758 * 14759 * <pre> 14760 * Sets the Java package where classes generated from this .proto will be 14761 * placed. By default, the proto package is used, but this is often 14762 * inappropriate because proto packages do not normally start with backwards 14763 * domain names. 14764 * </pre> 14765 */ 10147 14766 public Builder clearJavaPackage() { 10148 14767 bitField0_ = (bitField0_ & ~0x00000001); … … 10151 14770 return this; 10152 14771 } 10153 void setJavaPackage(com.google.protobuf.ByteString value) { 10154 bitField0_ |= 0x00000001; 14772 /** 14773 * <code>optional string java_package = 1;</code> 14774 * 14775 * <pre> 14776 * Sets the Java package where classes generated from this .proto will be 14777 * placed. By default, the proto package is used, but this is often 14778 * inappropriate because proto packages do not normally start with backwards 14779 * domain names. 14780 * </pre> 14781 */ 14782 public Builder setJavaPackageBytes( 14783 com.google.protobuf.ByteString value) { 14784 if (value == null) { 14785 throw new NullPointerException(); 14786 } 14787 bitField0_ |= 0x00000001; 10155 14788 javaPackage_ = value; 10156 14789 onChanged(); 10157 } 10158 14790 return this; 14791 } 14792 10159 14793 // optional string java_outer_classname = 8; 10160 14794 private java.lang.Object javaOuterClassname_ = ""; 14795 /** 14796 * <code>optional string java_outer_classname = 8;</code> 14797 * 14798 * <pre> 14799 * If set, all the classes from the .proto file are wrapped in a single 14800 * outer class with the given name. This applies to both Proto1 14801 * (equivalent to the old "--one_java_file" option) and Proto2 (where 14802 * a .proto always translates to a single class, but you may want to 14803 * explicitly choose the class name). 14804 * </pre> 14805 */ 10161 14806 public boolean hasJavaOuterClassname() { 10162 14807 return ((bitField0_ & 0x00000002) == 0x00000002); 10163 14808 } 10164 public String getJavaOuterClassname() { 14809 /** 14810 * <code>optional string java_outer_classname = 8;</code> 14811 * 14812 * <pre> 14813 * If set, all the classes from the .proto file are wrapped in a single 14814 * outer class with the given name. This applies to both Proto1 14815 * (equivalent to the old "--one_java_file" option) and Proto2 (where 14816 * a .proto always translates to a single class, but you may want to 14817 * explicitly choose the class name). 14818 * </pre> 14819 */ 14820 public java.lang.String getJavaOuterClassname() { 10165 14821 java.lang.Object ref = javaOuterClassname_; 10166 if (!(ref instanceof String)) { 10167 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 14822 if (!(ref instanceof java.lang.String)) { 14823 java.lang.String s = ((com.google.protobuf.ByteString) ref) 14824 .toStringUtf8(); 10168 14825 javaOuterClassname_ = s; 10169 14826 return s; 10170 14827 } else { 10171 return (String) ref; 10172 } 10173 } 10174 public Builder setJavaOuterClassname(String value) { 14828 return (java.lang.String) ref; 14829 } 14830 } 14831 /** 14832 * <code>optional string java_outer_classname = 8;</code> 14833 * 14834 * <pre> 14835 * If set, all the classes from the .proto file are wrapped in a single 14836 * outer class with the given name. This applies to both Proto1 14837 * (equivalent to the old "--one_java_file" option) and Proto2 (where 14838 * a .proto always translates to a single class, but you may want to 14839 * explicitly choose the class name). 14840 * </pre> 14841 */ 14842 public com.google.protobuf.ByteString 14843 getJavaOuterClassnameBytes() { 14844 java.lang.Object ref = javaOuterClassname_; 14845 if (ref instanceof String) { 14846 com.google.protobuf.ByteString b = 14847 com.google.protobuf.ByteString.copyFromUtf8( 14848 (java.lang.String) ref); 14849 javaOuterClassname_ = b; 14850 return b; 14851 } else { 14852 return (com.google.protobuf.ByteString) ref; 14853 } 14854 } 14855 /** 14856 * <code>optional string java_outer_classname = 8;</code> 14857 * 14858 * <pre> 14859 * If set, all the classes from the .proto file are wrapped in a single 14860 * outer class with the given name. This applies to both Proto1 14861 * (equivalent to the old "--one_java_file" option) and Proto2 (where 14862 * a .proto always translates to a single class, but you may want to 14863 * explicitly choose the class name). 14864 * </pre> 14865 */ 14866 public Builder setJavaOuterClassname( 14867 java.lang.String value) { 10175 14868 if (value == null) { 10176 14869 throw new NullPointerException(); … … 10181 14874 return this; 10182 14875 } 14876 /** 14877 * <code>optional string java_outer_classname = 8;</code> 14878 * 14879 * <pre> 14880 * If set, all the classes from the .proto file are wrapped in a single 14881 * outer class with the given name. This applies to both Proto1 14882 * (equivalent to the old "--one_java_file" option) and Proto2 (where 14883 * a .proto always translates to a single class, but you may want to 14884 * explicitly choose the class name). 14885 * </pre> 14886 */ 10183 14887 public Builder clearJavaOuterClassname() { 10184 14888 bitField0_ = (bitField0_ & ~0x00000002); … … 10187 14891 return this; 10188 14892 } 10189 void setJavaOuterClassname(com.google.protobuf.ByteString value) { 10190 bitField0_ |= 0x00000002; 14893 /** 14894 * <code>optional string java_outer_classname = 8;</code> 14895 * 14896 * <pre> 14897 * If set, all the classes from the .proto file are wrapped in a single 14898 * outer class with the given name. This applies to both Proto1 14899 * (equivalent to the old "--one_java_file" option) and Proto2 (where 14900 * a .proto always translates to a single class, but you may want to 14901 * explicitly choose the class name). 14902 * </pre> 14903 */ 14904 public Builder setJavaOuterClassnameBytes( 14905 com.google.protobuf.ByteString value) { 14906 if (value == null) { 14907 throw new NullPointerException(); 14908 } 14909 bitField0_ |= 0x00000002; 10191 14910 javaOuterClassname_ = value; 10192 14911 onChanged(); 10193 } 10194 14912 return this; 14913 } 14914 10195 14915 // optional bool java_multiple_files = 10 [default = false]; 10196 14916 private boolean javaMultipleFiles_ ; 14917 /** 14918 * <code>optional bool java_multiple_files = 10 [default = false];</code> 14919 * 14920 * <pre> 14921 * If set true, then the Java code generator will generate a separate .java 14922 * file for each top-level message, enum, and service defined in the .proto 14923 * file. Thus, these types will *not* be nested inside the outer class 14924 * named by java_outer_classname. However, the outer class will still be 14925 * generated to contain the file's getDescriptor() method as well as any 14926 * top-level extensions defined in the file. 14927 * </pre> 14928 */ 10197 14929 public boolean hasJavaMultipleFiles() { 10198 14930 return ((bitField0_ & 0x00000004) == 0x00000004); 10199 14931 } 14932 /** 14933 * <code>optional bool java_multiple_files = 10 [default = false];</code> 14934 * 14935 * <pre> 14936 * If set true, then the Java code generator will generate a separate .java 14937 * file for each top-level message, enum, and service defined in the .proto 14938 * file. Thus, these types will *not* be nested inside the outer class 14939 * named by java_outer_classname. However, the outer class will still be 14940 * generated to contain the file's getDescriptor() method as well as any 14941 * top-level extensions defined in the file. 14942 * </pre> 14943 */ 10200 14944 public boolean getJavaMultipleFiles() { 10201 14945 return javaMultipleFiles_; 10202 14946 } 14947 /** 14948 * <code>optional bool java_multiple_files = 10 [default = false];</code> 14949 * 14950 * <pre> 14951 * If set true, then the Java code generator will generate a separate .java 14952 * file for each top-level message, enum, and service defined in the .proto 14953 * file. Thus, these types will *not* be nested inside the outer class 14954 * named by java_outer_classname. However, the outer class will still be 14955 * generated to contain the file's getDescriptor() method as well as any 14956 * top-level extensions defined in the file. 14957 * </pre> 14958 */ 10203 14959 public Builder setJavaMultipleFiles(boolean value) { 10204 14960 bitField0_ |= 0x00000004; … … 10207 14963 return this; 10208 14964 } 14965 /** 14966 * <code>optional bool java_multiple_files = 10 [default = false];</code> 14967 * 14968 * <pre> 14969 * If set true, then the Java code generator will generate a separate .java 14970 * file for each top-level message, enum, and service defined in the .proto 14971 * file. Thus, these types will *not* be nested inside the outer class 14972 * named by java_outer_classname. However, the outer class will still be 14973 * generated to contain the file's getDescriptor() method as well as any 14974 * top-level extensions defined in the file. 14975 * </pre> 14976 */ 10209 14977 public Builder clearJavaMultipleFiles() { 10210 14978 bitField0_ = (bitField0_ & ~0x00000004); … … 10213 14981 return this; 10214 14982 } 10215 14983 10216 14984 // optional bool java_generate_equals_and_hash = 20 [default = false]; 10217 14985 private boolean javaGenerateEqualsAndHash_ ; 14986 /** 14987 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> 14988 * 14989 * <pre> 14990 * If set true, then the Java code generator will generate equals() and 14991 * hashCode() methods for all messages defined in the .proto file. This is 14992 * purely a speed optimization, as the AbstractMessage base class includes 14993 * reflection-based implementations of these methods. 14994 * </pre> 14995 */ 10218 14996 public boolean hasJavaGenerateEqualsAndHash() { 10219 14997 return ((bitField0_ & 0x00000008) == 0x00000008); 10220 14998 } 14999 /** 15000 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> 15001 * 15002 * <pre> 15003 * If set true, then the Java code generator will generate equals() and 15004 * hashCode() methods for all messages defined in the .proto file. This is 15005 * purely a speed optimization, as the AbstractMessage base class includes 15006 * reflection-based implementations of these methods. 15007 * </pre> 15008 */ 10221 15009 public boolean getJavaGenerateEqualsAndHash() { 10222 15010 return javaGenerateEqualsAndHash_; 10223 15011 } 15012 /** 15013 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> 15014 * 15015 * <pre> 15016 * If set true, then the Java code generator will generate equals() and 15017 * hashCode() methods for all messages defined in the .proto file. This is 15018 * purely a speed optimization, as the AbstractMessage base class includes 15019 * reflection-based implementations of these methods. 15020 * </pre> 15021 */ 10224 15022 public Builder setJavaGenerateEqualsAndHash(boolean value) { 10225 15023 bitField0_ |= 0x00000008; … … 10228 15026 return this; 10229 15027 } 15028 /** 15029 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> 15030 * 15031 * <pre> 15032 * If set true, then the Java code generator will generate equals() and 15033 * hashCode() methods for all messages defined in the .proto file. This is 15034 * purely a speed optimization, as the AbstractMessage base class includes 15035 * reflection-based implementations of these methods. 15036 * </pre> 15037 */ 10230 15038 public Builder clearJavaGenerateEqualsAndHash() { 10231 15039 bitField0_ = (bitField0_ & ~0x00000008); … … 10234 15042 return this; 10235 15043 } 10236 15044 10237 15045 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; 10238 15046 private com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode optimizeFor_ = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED; 15047 /** 15048 * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> 15049 */ 10239 15050 public boolean hasOptimizeFor() { 10240 15051 return ((bitField0_ & 0x00000010) == 0x00000010); 10241 15052 } 15053 /** 15054 * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> 15055 */ 10242 15056 public com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor() { 10243 15057 return optimizeFor_; 10244 15058 } 15059 /** 15060 * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> 15061 */ 10245 15062 public Builder setOptimizeFor(com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode value) { 10246 15063 if (value == null) { … … 10252 15069 return this; 10253 15070 } 15071 /** 15072 * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> 15073 */ 10254 15074 public Builder clearOptimizeFor() { 10255 15075 bitField0_ = (bitField0_ & ~0x00000010); … … 10258 15078 return this; 10259 15079 } 10260 15080 10261 15081 // optional string go_package = 11; 10262 15082 private java.lang.Object goPackage_ = ""; 15083 /** 15084 * <code>optional string go_package = 11;</code> 15085 * 15086 * <pre> 15087 * Sets the Go package where structs generated from this .proto will be 15088 * placed. There is no default. 15089 * </pre> 15090 */ 10263 15091 public boolean hasGoPackage() { 10264 15092 return ((bitField0_ & 0x00000020) == 0x00000020); 10265 15093 } 10266 public String getGoPackage() { 15094 /** 15095 * <code>optional string go_package = 11;</code> 15096 * 15097 * <pre> 15098 * Sets the Go package where structs generated from this .proto will be 15099 * placed. There is no default. 15100 * </pre> 15101 */ 15102 public java.lang.String getGoPackage() { 10267 15103 java.lang.Object ref = goPackage_; 10268 if (!(ref instanceof String)) { 10269 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 15104 if (!(ref instanceof java.lang.String)) { 15105 java.lang.String s = ((com.google.protobuf.ByteString) ref) 15106 .toStringUtf8(); 10270 15107 goPackage_ = s; 10271 15108 return s; 10272 15109 } else { 10273 return (String) ref; 10274 } 10275 } 10276 public Builder setGoPackage(String value) { 15110 return (java.lang.String) ref; 15111 } 15112 } 15113 /** 15114 * <code>optional string go_package = 11;</code> 15115 * 15116 * <pre> 15117 * Sets the Go package where structs generated from this .proto will be 15118 * placed. There is no default. 15119 * </pre> 15120 */ 15121 public com.google.protobuf.ByteString 15122 getGoPackageBytes() { 15123 java.lang.Object ref = goPackage_; 15124 if (ref instanceof String) { 15125 com.google.protobuf.ByteString b = 15126 com.google.protobuf.ByteString.copyFromUtf8( 15127 (java.lang.String) ref); 15128 goPackage_ = b; 15129 return b; 15130 } else { 15131 return (com.google.protobuf.ByteString) ref; 15132 } 15133 } 15134 /** 15135 * <code>optional string go_package = 11;</code> 15136 * 15137 * <pre> 15138 * Sets the Go package where structs generated from this .proto will be 15139 * placed. There is no default. 15140 * </pre> 15141 */ 15142 public Builder setGoPackage( 15143 java.lang.String value) { 10277 15144 if (value == null) { 10278 15145 throw new NullPointerException(); … … 10283 15150 return this; 10284 15151 } 15152 /** 15153 * <code>optional string go_package = 11;</code> 15154 * 15155 * <pre> 15156 * Sets the Go package where structs generated from this .proto will be 15157 * placed. There is no default. 15158 * </pre> 15159 */ 10285 15160 public Builder clearGoPackage() { 10286 15161 bitField0_ = (bitField0_ & ~0x00000020); … … 10289 15164 return this; 10290 15165 } 10291 void setGoPackage(com.google.protobuf.ByteString value) { 10292 bitField0_ |= 0x00000020; 15166 /** 15167 * <code>optional string go_package = 11;</code> 15168 * 15169 * <pre> 15170 * Sets the Go package where structs generated from this .proto will be 15171 * placed. There is no default. 15172 * </pre> 15173 */ 15174 public Builder setGoPackageBytes( 15175 com.google.protobuf.ByteString value) { 15176 if (value == null) { 15177 throw new NullPointerException(); 15178 } 15179 bitField0_ |= 0x00000020; 10293 15180 goPackage_ = value; 10294 15181 onChanged(); 10295 } 10296 15182 return this; 15183 } 15184 10297 15185 // optional bool cc_generic_services = 16 [default = false]; 10298 15186 private boolean ccGenericServices_ ; 15187 /** 15188 * <code>optional bool cc_generic_services = 16 [default = false];</code> 15189 * 15190 * <pre> 15191 * Should generic services be generated in each language? "Generic" services 15192 * are not specific to any particular RPC system. They are generated by the 15193 * main code generators in each language (without additional plugins). 15194 * Generic services were the only kind of service generation supported by 15195 * early versions of proto2. 15196 * 15197 * Generic services are now considered deprecated in favor of using plugins 15198 * that generate code specific to your particular RPC system. Therefore, 15199 * these default to false. Old code which depends on generic services should 15200 * explicitly set them to true. 15201 * </pre> 15202 */ 10299 15203 public boolean hasCcGenericServices() { 10300 15204 return ((bitField0_ & 0x00000040) == 0x00000040); 10301 15205 } 15206 /** 15207 * <code>optional bool cc_generic_services = 16 [default = false];</code> 15208 * 15209 * <pre> 15210 * Should generic services be generated in each language? "Generic" services 15211 * are not specific to any particular RPC system. They are generated by the 15212 * main code generators in each language (without additional plugins). 15213 * Generic services were the only kind of service generation supported by 15214 * early versions of proto2. 15215 * 15216 * Generic services are now considered deprecated in favor of using plugins 15217 * that generate code specific to your particular RPC system. Therefore, 15218 * these default to false. Old code which depends on generic services should 15219 * explicitly set them to true. 15220 * </pre> 15221 */ 10302 15222 public boolean getCcGenericServices() { 10303 15223 return ccGenericServices_; 10304 15224 } 15225 /** 15226 * <code>optional bool cc_generic_services = 16 [default = false];</code> 15227 * 15228 * <pre> 15229 * Should generic services be generated in each language? "Generic" services 15230 * are not specific to any particular RPC system. They are generated by the 15231 * main code generators in each language (without additional plugins). 15232 * Generic services were the only kind of service generation supported by 15233 * early versions of proto2. 15234 * 15235 * Generic services are now considered deprecated in favor of using plugins 15236 * that generate code specific to your particular RPC system. Therefore, 15237 * these default to false. Old code which depends on generic services should 15238 * explicitly set them to true. 15239 * </pre> 15240 */ 10305 15241 public Builder setCcGenericServices(boolean value) { 10306 15242 bitField0_ |= 0x00000040; … … 10309 15245 return this; 10310 15246 } 15247 /** 15248 * <code>optional bool cc_generic_services = 16 [default = false];</code> 15249 * 15250 * <pre> 15251 * Should generic services be generated in each language? "Generic" services 15252 * are not specific to any particular RPC system. They are generated by the 15253 * main code generators in each language (without additional plugins). 15254 * Generic services were the only kind of service generation supported by 15255 * early versions of proto2. 15256 * 15257 * Generic services are now considered deprecated in favor of using plugins 15258 * that generate code specific to your particular RPC system. Therefore, 15259 * these default to false. Old code which depends on generic services should 15260 * explicitly set them to true. 15261 * </pre> 15262 */ 10311 15263 public Builder clearCcGenericServices() { 10312 15264 bitField0_ = (bitField0_ & ~0x00000040); … … 10315 15267 return this; 10316 15268 } 10317 15269 10318 15270 // optional bool java_generic_services = 17 [default = false]; 10319 15271 private boolean javaGenericServices_ ; 15272 /** 15273 * <code>optional bool java_generic_services = 17 [default = false];</code> 15274 */ 10320 15275 public boolean hasJavaGenericServices() { 10321 15276 return ((bitField0_ & 0x00000080) == 0x00000080); 10322 15277 } 15278 /** 15279 * <code>optional bool java_generic_services = 17 [default = false];</code> 15280 */ 10323 15281 public boolean getJavaGenericServices() { 10324 15282 return javaGenericServices_; 10325 15283 } 15284 /** 15285 * <code>optional bool java_generic_services = 17 [default = false];</code> 15286 */ 10326 15287 public Builder setJavaGenericServices(boolean value) { 10327 15288 bitField0_ |= 0x00000080; … … 10330 15291 return this; 10331 15292 } 15293 /** 15294 * <code>optional bool java_generic_services = 17 [default = false];</code> 15295 */ 10332 15296 public Builder clearJavaGenericServices() { 10333 15297 bitField0_ = (bitField0_ & ~0x00000080); … … 10336 15300 return this; 10337 15301 } 10338 15302 10339 15303 // optional bool py_generic_services = 18 [default = false]; 10340 15304 private boolean pyGenericServices_ ; 15305 /** 15306 * <code>optional bool py_generic_services = 18 [default = false];</code> 15307 */ 10341 15308 public boolean hasPyGenericServices() { 10342 15309 return ((bitField0_ & 0x00000100) == 0x00000100); 10343 15310 } 15311 /** 15312 * <code>optional bool py_generic_services = 18 [default = false];</code> 15313 */ 10344 15314 public boolean getPyGenericServices() { 10345 15315 return pyGenericServices_; 10346 15316 } 15317 /** 15318 * <code>optional bool py_generic_services = 18 [default = false];</code> 15319 */ 10347 15320 public Builder setPyGenericServices(boolean value) { 10348 15321 bitField0_ |= 0x00000100; … … 10351 15324 return this; 10352 15325 } 15326 /** 15327 * <code>optional bool py_generic_services = 18 [default = false];</code> 15328 */ 10353 15329 public Builder clearPyGenericServices() { 10354 15330 bitField0_ = (bitField0_ & ~0x00000100); … … 10357 15333 return this; 10358 15334 } 10359 15335 10360 15336 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 10361 15337 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = … … 10367 15343 } 10368 15344 } 10369 15345 10370 15346 private com.google.protobuf.RepeatedFieldBuilder< 10371 15347 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 10372 15348 15349 /** 15350 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15351 * 15352 * <pre> 15353 * The parser stores options it doesn't recognize here. See above. 15354 * </pre> 15355 */ 10373 15356 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 10374 15357 if (uninterpretedOptionBuilder_ == null) { … … 10378 15361 } 10379 15362 } 15363 /** 15364 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15365 * 15366 * <pre> 15367 * The parser stores options it doesn't recognize here. See above. 15368 * </pre> 15369 */ 10380 15370 public int getUninterpretedOptionCount() { 10381 15371 if (uninterpretedOptionBuilder_ == null) { … … 10385 15375 } 10386 15376 } 15377 /** 15378 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15379 * 15380 * <pre> 15381 * The parser stores options it doesn't recognize here. See above. 15382 * </pre> 15383 */ 10387 15384 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 10388 15385 if (uninterpretedOptionBuilder_ == null) { … … 10392 15389 } 10393 15390 } 15391 /** 15392 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15393 * 15394 * <pre> 15395 * The parser stores options it doesn't recognize here. See above. 15396 * </pre> 15397 */ 10394 15398 public Builder setUninterpretedOption( 10395 15399 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 10406 15410 return this; 10407 15411 } 15412 /** 15413 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15414 * 15415 * <pre> 15416 * The parser stores options it doesn't recognize here. See above. 15417 * </pre> 15418 */ 10408 15419 public Builder setUninterpretedOption( 10409 15420 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 10417 15428 return this; 10418 15429 } 15430 /** 15431 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15432 * 15433 * <pre> 15434 * The parser stores options it doesn't recognize here. See above. 15435 * </pre> 15436 */ 10419 15437 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { 10420 15438 if (uninterpretedOptionBuilder_ == null) { … … 10430 15448 return this; 10431 15449 } 15450 /** 15451 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15452 * 15453 * <pre> 15454 * The parser stores options it doesn't recognize here. See above. 15455 * </pre> 15456 */ 10432 15457 public Builder addUninterpretedOption( 10433 15458 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 10444 15469 return this; 10445 15470 } 15471 /** 15472 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15473 * 15474 * <pre> 15475 * The parser stores options it doesn't recognize here. See above. 15476 * </pre> 15477 */ 10446 15478 public Builder addUninterpretedOption( 10447 15479 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 10455 15487 return this; 10456 15488 } 15489 /** 15490 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15491 * 15492 * <pre> 15493 * The parser stores options it doesn't recognize here. See above. 15494 * </pre> 15495 */ 10457 15496 public Builder addUninterpretedOption( 10458 15497 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 10466 15505 return this; 10467 15506 } 15507 /** 15508 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15509 * 15510 * <pre> 15511 * The parser stores options it doesn't recognize here. See above. 15512 * </pre> 15513 */ 10468 15514 public Builder addAllUninterpretedOption( 10469 15515 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { … … 10477 15523 return this; 10478 15524 } 15525 /** 15526 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15527 * 15528 * <pre> 15529 * The parser stores options it doesn't recognize here. See above. 15530 * </pre> 15531 */ 10479 15532 public Builder clearUninterpretedOption() { 10480 15533 if (uninterpretedOptionBuilder_ == null) { … … 10487 15540 return this; 10488 15541 } 15542 /** 15543 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15544 * 15545 * <pre> 15546 * The parser stores options it doesn't recognize here. See above. 15547 * </pre> 15548 */ 10489 15549 public Builder removeUninterpretedOption(int index) { 10490 15550 if (uninterpretedOptionBuilder_ == null) { … … 10497 15557 return this; 10498 15558 } 15559 /** 15560 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15561 * 15562 * <pre> 15563 * The parser stores options it doesn't recognize here. See above. 15564 * </pre> 15565 */ 10499 15566 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( 10500 15567 int index) { 10501 15568 return getUninterpretedOptionFieldBuilder().getBuilder(index); 10502 15569 } 15570 /** 15571 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15572 * 15573 * <pre> 15574 * The parser stores options it doesn't recognize here. See above. 15575 * </pre> 15576 */ 10503 15577 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 10504 15578 int index) { … … 10508 15582 } 10509 15583 } 15584 /** 15585 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15586 * 15587 * <pre> 15588 * The parser stores options it doesn't recognize here. See above. 15589 * </pre> 15590 */ 10510 15591 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 10511 15592 getUninterpretedOptionOrBuilderList() { … … 10516 15597 } 10517 15598 } 15599 /** 15600 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15601 * 15602 * <pre> 15603 * The parser stores options it doesn't recognize here. See above. 15604 * </pre> 15605 */ 10518 15606 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { 10519 15607 return getUninterpretedOptionFieldBuilder().addBuilder( 10520 15608 com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 10521 15609 } 15610 /** 15611 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15612 * 15613 * <pre> 15614 * The parser stores options it doesn't recognize here. See above. 15615 * </pre> 15616 */ 10522 15617 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( 10523 15618 int index) { … … 10525 15620 index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 10526 15621 } 15622 /** 15623 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15624 * 15625 * <pre> 15626 * The parser stores options it doesn't recognize here. See above. 15627 * </pre> 15628 */ 10527 15629 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 10528 15630 getUninterpretedOptionBuilderList() { … … 10543 15645 return uninterpretedOptionBuilder_; 10544 15646 } 10545 15647 10546 15648 // @@protoc_insertion_point(builder_scope:google.protobuf.FileOptions) 10547 15649 } 10548 15650 10549 15651 static { 10550 15652 defaultInstance = new FileOptions(true); 10551 15653 defaultInstance.initFields(); 10552 15654 } 10553 15655 10554 15656 // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions) 10555 15657 } 10556 15658 10557 15659 public interface MessageOptionsOrBuilder extends 10558 15660 com.google.protobuf.GeneratedMessage. 10559 15661 ExtendableMessageOrBuilder<MessageOptions> { 10560 15662 10561 15663 // optional bool message_set_wire_format = 1 [default = false]; 15664 /** 15665 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 15666 * 15667 * <pre> 15668 * Set true to use the old proto1 MessageSet wire format for extensions. 15669 * This is provided for backwards-compatibility with the MessageSet wire 15670 * format. You should not use this for any other reason: It's less 15671 * efficient, has fewer features, and is more complicated. 15672 * 15673 * The message must be defined exactly as follows: 15674 * message Foo { 15675 * option message_set_wire_format = true; 15676 * extensions 4 to max; 15677 * } 15678 * Note that the message cannot have any defined fields; MessageSets only 15679 * have extensions. 15680 * 15681 * All extensions of your type must be singular messages; e.g. they cannot 15682 * be int32s, enums, or repeated messages. 15683 * 15684 * Because this is an option, the above two restrictions are not enforced by 15685 * the protocol compiler. 15686 * </pre> 15687 */ 10562 15688 boolean hasMessageSetWireFormat(); 15689 /** 15690 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 15691 * 15692 * <pre> 15693 * Set true to use the old proto1 MessageSet wire format for extensions. 15694 * This is provided for backwards-compatibility with the MessageSet wire 15695 * format. You should not use this for any other reason: It's less 15696 * efficient, has fewer features, and is more complicated. 15697 * 15698 * The message must be defined exactly as follows: 15699 * message Foo { 15700 * option message_set_wire_format = true; 15701 * extensions 4 to max; 15702 * } 15703 * Note that the message cannot have any defined fields; MessageSets only 15704 * have extensions. 15705 * 15706 * All extensions of your type must be singular messages; e.g. they cannot 15707 * be int32s, enums, or repeated messages. 15708 * 15709 * Because this is an option, the above two restrictions are not enforced by 15710 * the protocol compiler. 15711 * </pre> 15712 */ 10563 15713 boolean getMessageSetWireFormat(); 10564 15714 10565 15715 // optional bool no_standard_descriptor_accessor = 2 [default = false]; 15716 /** 15717 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 15718 * 15719 * <pre> 15720 * Disables the generation of the standard "descriptor()" accessor, which can 15721 * conflict with a field of the same name. This is meant to make migration 15722 * from proto1 easier; new code should avoid fields named "descriptor". 15723 * </pre> 15724 */ 10566 15725 boolean hasNoStandardDescriptorAccessor(); 15726 /** 15727 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 15728 * 15729 * <pre> 15730 * Disables the generation of the standard "descriptor()" accessor, which can 15731 * conflict with a field of the same name. This is meant to make migration 15732 * from proto1 easier; new code should avoid fields named "descriptor". 15733 * </pre> 15734 */ 10567 15735 boolean getNoStandardDescriptorAccessor(); 10568 15736 10569 15737 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 15738 /** 15739 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15740 * 15741 * <pre> 15742 * The parser stores options it doesn't recognize here. See above. 15743 * </pre> 15744 */ 10570 15745 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 10571 15746 getUninterpretedOptionList(); 15747 /** 15748 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15749 * 15750 * <pre> 15751 * The parser stores options it doesn't recognize here. See above. 15752 * </pre> 15753 */ 10572 15754 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 15755 /** 15756 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15757 * 15758 * <pre> 15759 * The parser stores options it doesn't recognize here. See above. 15760 * </pre> 15761 */ 10573 15762 int getUninterpretedOptionCount(); 15763 /** 15764 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15765 * 15766 * <pre> 15767 * The parser stores options it doesn't recognize here. See above. 15768 * </pre> 15769 */ 10574 15770 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 10575 15771 getUninterpretedOptionOrBuilderList(); 15772 /** 15773 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15774 * 15775 * <pre> 15776 * The parser stores options it doesn't recognize here. See above. 15777 * </pre> 15778 */ 10576 15779 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 10577 15780 int index); 10578 15781 } 15782 /** 15783 * Protobuf type {@code google.protobuf.MessageOptions} 15784 */ 10579 15785 public static final class MessageOptions extends 10580 15786 com.google.protobuf.GeneratedMessage.ExtendableMessage< 10581 15787 MessageOptions> implements MessageOptionsOrBuilder { 10582 15788 // Use MessageOptions.newBuilder() to construct. 10583 private MessageOptions( Builderbuilder) {15789 private MessageOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.DescriptorProtos.MessageOptions, ?> builder) { 10584 15790 super(builder); 10585 } 10586 private MessageOptions(boolean noInit) {} 10587 15791 this.unknownFields = builder.getUnknownFields(); 15792 } 15793 private MessageOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 15794 10588 15795 private static final MessageOptions defaultInstance; 10589 15796 public static MessageOptions getDefaultInstance() { 10590 15797 return defaultInstance; 10591 15798 } 10592 15799 10593 15800 public MessageOptions getDefaultInstanceForType() { 10594 15801 return defaultInstance; 10595 15802 } 10596 10597 public static final com.google.protobuf.Descriptors.Descriptor 10598 getDescriptor() { 10599 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_descriptor; 10600 } 10601 10602 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 10603 internalGetFieldAccessorTable() { 10604 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_fieldAccessorTable; 10605 } 10606 10607 private int bitField0_; 10608 // optional bool message_set_wire_format = 1 [default = false]; 10609 public static final int MESSAGE_SET_WIRE_FORMAT_FIELD_NUMBER = 1; 10610 private boolean messageSetWireFormat_; 10611 public boolean hasMessageSetWireFormat() { 10612 return ((bitField0_ & 0x00000001) == 0x00000001); 10613 } 10614 public boolean getMessageSetWireFormat() { 10615 return messageSetWireFormat_; 10616 } 10617 10618 // optional bool no_standard_descriptor_accessor = 2 [default = false]; 10619 public static final int NO_STANDARD_DESCRIPTOR_ACCESSOR_FIELD_NUMBER = 2; 10620 private boolean noStandardDescriptorAccessor_; 10621 public boolean hasNoStandardDescriptorAccessor() { 10622 return ((bitField0_ & 0x00000002) == 0x00000002); 10623 } 10624 public boolean getNoStandardDescriptorAccessor() { 10625 return noStandardDescriptorAccessor_; 10626 } 10627 10628 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 10629 public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; 10630 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 10631 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 10632 return uninterpretedOption_; 10633 } 10634 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 10635 getUninterpretedOptionOrBuilderList() { 10636 return uninterpretedOption_; 10637 } 10638 public int getUninterpretedOptionCount() { 10639 return uninterpretedOption_.size(); 10640 } 10641 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 10642 return uninterpretedOption_.get(index); 10643 } 10644 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 10645 int index) { 10646 return uninterpretedOption_.get(index); 10647 } 10648 10649 private void initFields() { 10650 messageSetWireFormat_ = false; 10651 noStandardDescriptorAccessor_ = false; 10652 uninterpretedOption_ = java.util.Collections.emptyList(); 10653 } 10654 private byte memoizedIsInitialized = -1; 10655 public final boolean isInitialized() { 10656 byte isInitialized = memoizedIsInitialized; 10657 if (isInitialized != -1) return isInitialized == 1; 10658 10659 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 10660 if (!getUninterpretedOption(i).isInitialized()) { 10661 memoizedIsInitialized = 0; 10662 return false; 10663 } 10664 } 10665 if (!extensionsAreInitialized()) { 10666 memoizedIsInitialized = 0; 10667 return false; 10668 } 10669 memoizedIsInitialized = 1; 10670 return true; 10671 } 10672 10673 public void writeTo(com.google.protobuf.CodedOutputStream output) 10674 throws java.io.IOException { 10675 getSerializedSize(); 10676 com.google.protobuf.GeneratedMessage 10677 .ExtendableMessage<com.google.protobuf.DescriptorProtos.MessageOptions>.ExtensionWriter extensionWriter = 10678 newExtensionWriter(); 10679 if (((bitField0_ & 0x00000001) == 0x00000001)) { 10680 output.writeBool(1, messageSetWireFormat_); 10681 } 10682 if (((bitField0_ & 0x00000002) == 0x00000002)) { 10683 output.writeBool(2, noStandardDescriptorAccessor_); 10684 } 10685 for (int i = 0; i < uninterpretedOption_.size(); i++) { 10686 output.writeMessage(999, uninterpretedOption_.get(i)); 10687 } 10688 extensionWriter.writeUntil(536870912, output); 10689 getUnknownFields().writeTo(output); 10690 } 10691 10692 private int memoizedSerializedSize = -1; 10693 public int getSerializedSize() { 10694 int size = memoizedSerializedSize; 10695 if (size != -1) return size; 10696 10697 size = 0; 10698 if (((bitField0_ & 0x00000001) == 0x00000001)) { 10699 size += com.google.protobuf.CodedOutputStream 10700 .computeBoolSize(1, messageSetWireFormat_); 10701 } 10702 if (((bitField0_ & 0x00000002) == 0x00000002)) { 10703 size += com.google.protobuf.CodedOutputStream 10704 .computeBoolSize(2, noStandardDescriptorAccessor_); 10705 } 10706 for (int i = 0; i < uninterpretedOption_.size(); i++) { 10707 size += com.google.protobuf.CodedOutputStream 10708 .computeMessageSize(999, uninterpretedOption_.get(i)); 10709 } 10710 size += extensionsSerializedSize(); 10711 size += getUnknownFields().getSerializedSize(); 10712 memoizedSerializedSize = size; 10713 return size; 10714 } 10715 10716 private static final long serialVersionUID = 0L; 15803 15804 private final com.google.protobuf.UnknownFieldSet unknownFields; 10717 15805 @java.lang.Override 10718 protected java.lang.Object writeReplace() 10719 throws java.io.ObjectStreamException { 10720 return super.writeReplace(); 10721 } 10722 10723 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 10724 com.google.protobuf.ByteString data) 10725 throws com.google.protobuf.InvalidProtocolBufferException { 10726 return newBuilder().mergeFrom(data).buildParsed(); 10727 } 10728 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 10729 com.google.protobuf.ByteString data, 15806 public final com.google.protobuf.UnknownFieldSet 15807 getUnknownFields() { 15808 return this.unknownFields; 15809 } 15810 private MessageOptions( 15811 com.google.protobuf.CodedInputStream input, 10730 15812 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10731 15813 throws com.google.protobuf.InvalidProtocolBufferException { 10732 return newBuilder().mergeFrom(data, extensionRegistry) 10733 .buildParsed(); 10734 } 10735 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom(byte[] data) 10736 throws com.google.protobuf.InvalidProtocolBufferException { 10737 return newBuilder().mergeFrom(data).buildParsed(); 10738 } 10739 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 10740 byte[] data, 10741 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10742 throws com.google.protobuf.InvalidProtocolBufferException { 10743 return newBuilder().mergeFrom(data, extensionRegistry) 10744 .buildParsed(); 10745 } 10746 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom(java.io.InputStream input) 10747 throws java.io.IOException { 10748 return newBuilder().mergeFrom(input).buildParsed(); 10749 } 10750 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 10751 java.io.InputStream input, 10752 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10753 throws java.io.IOException { 10754 return newBuilder().mergeFrom(input, extensionRegistry) 10755 .buildParsed(); 10756 } 10757 public static com.google.protobuf.DescriptorProtos.MessageOptions parseDelimitedFrom(java.io.InputStream input) 10758 throws java.io.IOException { 10759 Builder builder = newBuilder(); 10760 if (builder.mergeDelimitedFrom(input)) { 10761 return builder.buildParsed(); 10762 } else { 10763 return null; 10764 } 10765 } 10766 public static com.google.protobuf.DescriptorProtos.MessageOptions parseDelimitedFrom( 10767 java.io.InputStream input, 10768 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10769 throws java.io.IOException { 10770 Builder builder = newBuilder(); 10771 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 10772 return builder.buildParsed(); 10773 } else { 10774 return null; 10775 } 10776 } 10777 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 10778 com.google.protobuf.CodedInputStream input) 10779 throws java.io.IOException { 10780 return newBuilder().mergeFrom(input).buildParsed(); 10781 } 10782 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 10783 com.google.protobuf.CodedInputStream input, 10784 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10785 throws java.io.IOException { 10786 return newBuilder().mergeFrom(input, extensionRegistry) 10787 .buildParsed(); 10788 } 10789 10790 public static Builder newBuilder() { return Builder.create(); } 10791 public Builder newBuilderForType() { return newBuilder(); } 10792 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.MessageOptions prototype) { 10793 return newBuilder().mergeFrom(prototype); 10794 } 10795 public Builder toBuilder() { return newBuilder(this); } 10796 10797 @java.lang.Override 10798 protected Builder newBuilderForType( 10799 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 10800 Builder builder = new Builder(parent); 10801 return builder; 10802 } 10803 public static final class Builder extends 10804 com.google.protobuf.GeneratedMessage.ExtendableBuilder< 10805 com.google.protobuf.DescriptorProtos.MessageOptions, Builder> implements com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder { 10806 public static final com.google.protobuf.Descriptors.Descriptor 10807 getDescriptor() { 10808 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_descriptor; 10809 } 10810 10811 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 10812 internalGetFieldAccessorTable() { 10813 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_fieldAccessorTable; 10814 } 10815 10816 // Construct using com.google.protobuf.DescriptorProtos.MessageOptions.newBuilder() 10817 private Builder() { 10818 maybeForceBuilderInitialization(); 10819 } 10820 10821 private Builder(BuilderParent parent) { 10822 super(parent); 10823 maybeForceBuilderInitialization(); 10824 } 10825 private void maybeForceBuilderInitialization() { 10826 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 10827 getUninterpretedOptionFieldBuilder(); 10828 } 10829 } 10830 private static Builder create() { 10831 return new Builder(); 10832 } 10833 10834 public Builder clear() { 10835 super.clear(); 10836 messageSetWireFormat_ = false; 10837 bitField0_ = (bitField0_ & ~0x00000001); 10838 noStandardDescriptorAccessor_ = false; 10839 bitField0_ = (bitField0_ & ~0x00000002); 10840 if (uninterpretedOptionBuilder_ == null) { 10841 uninterpretedOption_ = java.util.Collections.emptyList(); 10842 bitField0_ = (bitField0_ & ~0x00000004); 10843 } else { 10844 uninterpretedOptionBuilder_.clear(); 10845 } 10846 return this; 10847 } 10848 10849 public Builder clone() { 10850 return create().mergeFrom(buildPartial()); 10851 } 10852 10853 public com.google.protobuf.Descriptors.Descriptor 10854 getDescriptorForType() { 10855 return com.google.protobuf.DescriptorProtos.MessageOptions.getDescriptor(); 10856 } 10857 10858 public com.google.protobuf.DescriptorProtos.MessageOptions getDefaultInstanceForType() { 10859 return com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance(); 10860 } 10861 10862 public com.google.protobuf.DescriptorProtos.MessageOptions build() { 10863 com.google.protobuf.DescriptorProtos.MessageOptions result = buildPartial(); 10864 if (!result.isInitialized()) { 10865 throw newUninitializedMessageException(result); 10866 } 10867 return result; 10868 } 10869 10870 private com.google.protobuf.DescriptorProtos.MessageOptions buildParsed() 10871 throws com.google.protobuf.InvalidProtocolBufferException { 10872 com.google.protobuf.DescriptorProtos.MessageOptions result = buildPartial(); 10873 if (!result.isInitialized()) { 10874 throw newUninitializedMessageException( 10875 result).asInvalidProtocolBufferException(); 10876 } 10877 return result; 10878 } 10879 10880 public com.google.protobuf.DescriptorProtos.MessageOptions buildPartial() { 10881 com.google.protobuf.DescriptorProtos.MessageOptions result = new com.google.protobuf.DescriptorProtos.MessageOptions(this); 10882 int from_bitField0_ = bitField0_; 10883 int to_bitField0_ = 0; 10884 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 10885 to_bitField0_ |= 0x00000001; 10886 } 10887 result.messageSetWireFormat_ = messageSetWireFormat_; 10888 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 10889 to_bitField0_ |= 0x00000002; 10890 } 10891 result.noStandardDescriptorAccessor_ = noStandardDescriptorAccessor_; 10892 if (uninterpretedOptionBuilder_ == null) { 10893 if (((bitField0_ & 0x00000004) == 0x00000004)) { 10894 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 10895 bitField0_ = (bitField0_ & ~0x00000004); 10896 } 10897 result.uninterpretedOption_ = uninterpretedOption_; 10898 } else { 10899 result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); 10900 } 10901 result.bitField0_ = to_bitField0_; 10902 onBuilt(); 10903 return result; 10904 } 10905 10906 public Builder mergeFrom(com.google.protobuf.Message other) { 10907 if (other instanceof com.google.protobuf.DescriptorProtos.MessageOptions) { 10908 return mergeFrom((com.google.protobuf.DescriptorProtos.MessageOptions)other); 10909 } else { 10910 super.mergeFrom(other); 10911 return this; 10912 } 10913 } 10914 10915 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.MessageOptions other) { 10916 if (other == com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance()) return this; 10917 if (other.hasMessageSetWireFormat()) { 10918 setMessageSetWireFormat(other.getMessageSetWireFormat()); 10919 } 10920 if (other.hasNoStandardDescriptorAccessor()) { 10921 setNoStandardDescriptorAccessor(other.getNoStandardDescriptorAccessor()); 10922 } 10923 if (uninterpretedOptionBuilder_ == null) { 10924 if (!other.uninterpretedOption_.isEmpty()) { 10925 if (uninterpretedOption_.isEmpty()) { 10926 uninterpretedOption_ = other.uninterpretedOption_; 10927 bitField0_ = (bitField0_ & ~0x00000004); 10928 } else { 10929 ensureUninterpretedOptionIsMutable(); 10930 uninterpretedOption_.addAll(other.uninterpretedOption_); 10931 } 10932 onChanged(); 10933 } 10934 } else { 10935 if (!other.uninterpretedOption_.isEmpty()) { 10936 if (uninterpretedOptionBuilder_.isEmpty()) { 10937 uninterpretedOptionBuilder_.dispose(); 10938 uninterpretedOptionBuilder_ = null; 10939 uninterpretedOption_ = other.uninterpretedOption_; 10940 bitField0_ = (bitField0_ & ~0x00000004); 10941 uninterpretedOptionBuilder_ = 10942 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 10943 getUninterpretedOptionFieldBuilder() : null; 10944 } else { 10945 uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); 10946 } 10947 } 10948 } 10949 this.mergeExtensionFields(other); 10950 this.mergeUnknownFields(other.getUnknownFields()); 10951 return this; 10952 } 10953 10954 public final boolean isInitialized() { 10955 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 10956 if (!getUninterpretedOption(i).isInitialized()) { 10957 10958 return false; 10959 } 10960 } 10961 if (!extensionsAreInitialized()) { 10962 10963 return false; 10964 } 10965 return true; 10966 } 10967 10968 public Builder mergeFrom( 10969 com.google.protobuf.CodedInputStream input, 10970 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10971 throws java.io.IOException { 10972 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 10973 com.google.protobuf.UnknownFieldSet.newBuilder( 10974 this.getUnknownFields()); 10975 while (true) { 15814 initFields(); 15815 int mutable_bitField0_ = 0; 15816 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 15817 com.google.protobuf.UnknownFieldSet.newBuilder(); 15818 try { 15819 boolean done = false; 15820 while (!done) { 10976 15821 int tag = input.readTag(); 10977 15822 switch (tag) { 10978 15823 case 0: 10979 this.setUnknownFields(unknownFields.build()); 10980 onChanged(); 10981 return this; 15824 done = true; 15825 break; 10982 15826 default: { 10983 15827 if (!parseUnknownField(input, unknownFields, 10984 15828 extensionRegistry, tag)) { 10985 this.setUnknownFields(unknownFields.build()); 10986 onChanged(); 10987 return this; 15829 done = true; 10988 15830 } 10989 15831 break; … … 11000 15842 } 11001 15843 case 7994: { 11002 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder subBuilder = com.google.protobuf.DescriptorProtos.UninterpretedOption.newBuilder(); 11003 input.readMessage(subBuilder, extensionRegistry); 11004 addUninterpretedOption(subBuilder.buildPartial()); 15844 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 15845 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 15846 mutable_bitField0_ |= 0x00000004; 15847 } 15848 uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 11005 15849 break; 11006 15850 } 11007 15851 } 11008 15852 } 11009 } 11010 15853 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 15854 throw e.setUnfinishedMessage(this); 15855 } catch (java.io.IOException e) { 15856 throw new com.google.protobuf.InvalidProtocolBufferException( 15857 e.getMessage()).setUnfinishedMessage(this); 15858 } finally { 15859 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 15860 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 15861 } 15862 this.unknownFields = unknownFields.build(); 15863 makeExtensionsImmutable(); 15864 } 15865 } 15866 public static final com.google.protobuf.Descriptors.Descriptor 15867 getDescriptor() { 15868 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_descriptor; 15869 } 15870 15871 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 15872 internalGetFieldAccessorTable() { 15873 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_fieldAccessorTable 15874 .ensureFieldAccessorsInitialized( 15875 com.google.protobuf.DescriptorProtos.MessageOptions.class, com.google.protobuf.DescriptorProtos.MessageOptions.Builder.class); 15876 } 15877 15878 public static com.google.protobuf.Parser<MessageOptions> PARSER = 15879 new com.google.protobuf.AbstractParser<MessageOptions>() { 15880 public MessageOptions parsePartialFrom( 15881 com.google.protobuf.CodedInputStream input, 15882 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 15883 throws com.google.protobuf.InvalidProtocolBufferException { 15884 return new MessageOptions(input, extensionRegistry); 15885 } 15886 }; 15887 15888 @java.lang.Override 15889 public com.google.protobuf.Parser<MessageOptions> getParserForType() { 15890 return PARSER; 15891 } 15892 15893 private int bitField0_; 15894 // optional bool message_set_wire_format = 1 [default = false]; 15895 public static final int MESSAGE_SET_WIRE_FORMAT_FIELD_NUMBER = 1; 15896 private boolean messageSetWireFormat_; 15897 /** 15898 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 15899 * 15900 * <pre> 15901 * Set true to use the old proto1 MessageSet wire format for extensions. 15902 * This is provided for backwards-compatibility with the MessageSet wire 15903 * format. You should not use this for any other reason: It's less 15904 * efficient, has fewer features, and is more complicated. 15905 * 15906 * The message must be defined exactly as follows: 15907 * message Foo { 15908 * option message_set_wire_format = true; 15909 * extensions 4 to max; 15910 * } 15911 * Note that the message cannot have any defined fields; MessageSets only 15912 * have extensions. 15913 * 15914 * All extensions of your type must be singular messages; e.g. they cannot 15915 * be int32s, enums, or repeated messages. 15916 * 15917 * Because this is an option, the above two restrictions are not enforced by 15918 * the protocol compiler. 15919 * </pre> 15920 */ 15921 public boolean hasMessageSetWireFormat() { 15922 return ((bitField0_ & 0x00000001) == 0x00000001); 15923 } 15924 /** 15925 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 15926 * 15927 * <pre> 15928 * Set true to use the old proto1 MessageSet wire format for extensions. 15929 * This is provided for backwards-compatibility with the MessageSet wire 15930 * format. You should not use this for any other reason: It's less 15931 * efficient, has fewer features, and is more complicated. 15932 * 15933 * The message must be defined exactly as follows: 15934 * message Foo { 15935 * option message_set_wire_format = true; 15936 * extensions 4 to max; 15937 * } 15938 * Note that the message cannot have any defined fields; MessageSets only 15939 * have extensions. 15940 * 15941 * All extensions of your type must be singular messages; e.g. they cannot 15942 * be int32s, enums, or repeated messages. 15943 * 15944 * Because this is an option, the above two restrictions are not enforced by 15945 * the protocol compiler. 15946 * </pre> 15947 */ 15948 public boolean getMessageSetWireFormat() { 15949 return messageSetWireFormat_; 15950 } 15951 15952 // optional bool no_standard_descriptor_accessor = 2 [default = false]; 15953 public static final int NO_STANDARD_DESCRIPTOR_ACCESSOR_FIELD_NUMBER = 2; 15954 private boolean noStandardDescriptorAccessor_; 15955 /** 15956 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 15957 * 15958 * <pre> 15959 * Disables the generation of the standard "descriptor()" accessor, which can 15960 * conflict with a field of the same name. This is meant to make migration 15961 * from proto1 easier; new code should avoid fields named "descriptor". 15962 * </pre> 15963 */ 15964 public boolean hasNoStandardDescriptorAccessor() { 15965 return ((bitField0_ & 0x00000002) == 0x00000002); 15966 } 15967 /** 15968 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 15969 * 15970 * <pre> 15971 * Disables the generation of the standard "descriptor()" accessor, which can 15972 * conflict with a field of the same name. This is meant to make migration 15973 * from proto1 easier; new code should avoid fields named "descriptor". 15974 * </pre> 15975 */ 15976 public boolean getNoStandardDescriptorAccessor() { 15977 return noStandardDescriptorAccessor_; 15978 } 15979 15980 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 15981 public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; 15982 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 15983 /** 15984 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15985 * 15986 * <pre> 15987 * The parser stores options it doesn't recognize here. See above. 15988 * </pre> 15989 */ 15990 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 15991 return uninterpretedOption_; 15992 } 15993 /** 15994 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15995 * 15996 * <pre> 15997 * The parser stores options it doesn't recognize here. See above. 15998 * </pre> 15999 */ 16000 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 16001 getUninterpretedOptionOrBuilderList() { 16002 return uninterpretedOption_; 16003 } 16004 /** 16005 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16006 * 16007 * <pre> 16008 * The parser stores options it doesn't recognize here. See above. 16009 * </pre> 16010 */ 16011 public int getUninterpretedOptionCount() { 16012 return uninterpretedOption_.size(); 16013 } 16014 /** 16015 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16016 * 16017 * <pre> 16018 * The parser stores options it doesn't recognize here. See above. 16019 * </pre> 16020 */ 16021 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 16022 return uninterpretedOption_.get(index); 16023 } 16024 /** 16025 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16026 * 16027 * <pre> 16028 * The parser stores options it doesn't recognize here. See above. 16029 * </pre> 16030 */ 16031 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 16032 int index) { 16033 return uninterpretedOption_.get(index); 16034 } 16035 16036 private void initFields() { 16037 messageSetWireFormat_ = false; 16038 noStandardDescriptorAccessor_ = false; 16039 uninterpretedOption_ = java.util.Collections.emptyList(); 16040 } 16041 private byte memoizedIsInitialized = -1; 16042 public final boolean isInitialized() { 16043 byte isInitialized = memoizedIsInitialized; 16044 if (isInitialized != -1) return isInitialized == 1; 16045 16046 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 16047 if (!getUninterpretedOption(i).isInitialized()) { 16048 memoizedIsInitialized = 0; 16049 return false; 16050 } 16051 } 16052 if (!extensionsAreInitialized()) { 16053 memoizedIsInitialized = 0; 16054 return false; 16055 } 16056 memoizedIsInitialized = 1; 16057 return true; 16058 } 16059 16060 public void writeTo(com.google.protobuf.CodedOutputStream output) 16061 throws java.io.IOException { 16062 getSerializedSize(); 16063 com.google.protobuf.GeneratedMessage 16064 .ExtendableMessage<com.google.protobuf.DescriptorProtos.MessageOptions>.ExtensionWriter extensionWriter = 16065 newExtensionWriter(); 16066 if (((bitField0_ & 0x00000001) == 0x00000001)) { 16067 output.writeBool(1, messageSetWireFormat_); 16068 } 16069 if (((bitField0_ & 0x00000002) == 0x00000002)) { 16070 output.writeBool(2, noStandardDescriptorAccessor_); 16071 } 16072 for (int i = 0; i < uninterpretedOption_.size(); i++) { 16073 output.writeMessage(999, uninterpretedOption_.get(i)); 16074 } 16075 extensionWriter.writeUntil(536870912, output); 16076 getUnknownFields().writeTo(output); 16077 } 16078 16079 private int memoizedSerializedSize = -1; 16080 public int getSerializedSize() { 16081 int size = memoizedSerializedSize; 16082 if (size != -1) return size; 16083 16084 size = 0; 16085 if (((bitField0_ & 0x00000001) == 0x00000001)) { 16086 size += com.google.protobuf.CodedOutputStream 16087 .computeBoolSize(1, messageSetWireFormat_); 16088 } 16089 if (((bitField0_ & 0x00000002) == 0x00000002)) { 16090 size += com.google.protobuf.CodedOutputStream 16091 .computeBoolSize(2, noStandardDescriptorAccessor_); 16092 } 16093 for (int i = 0; i < uninterpretedOption_.size(); i++) { 16094 size += com.google.protobuf.CodedOutputStream 16095 .computeMessageSize(999, uninterpretedOption_.get(i)); 16096 } 16097 size += extensionsSerializedSize(); 16098 size += getUnknownFields().getSerializedSize(); 16099 memoizedSerializedSize = size; 16100 return size; 16101 } 16102 16103 private static final long serialVersionUID = 0L; 16104 @java.lang.Override 16105 protected java.lang.Object writeReplace() 16106 throws java.io.ObjectStreamException { 16107 return super.writeReplace(); 16108 } 16109 16110 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 16111 com.google.protobuf.ByteString data) 16112 throws com.google.protobuf.InvalidProtocolBufferException { 16113 return PARSER.parseFrom(data); 16114 } 16115 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 16116 com.google.protobuf.ByteString data, 16117 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16118 throws com.google.protobuf.InvalidProtocolBufferException { 16119 return PARSER.parseFrom(data, extensionRegistry); 16120 } 16121 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom(byte[] data) 16122 throws com.google.protobuf.InvalidProtocolBufferException { 16123 return PARSER.parseFrom(data); 16124 } 16125 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 16126 byte[] data, 16127 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16128 throws com.google.protobuf.InvalidProtocolBufferException { 16129 return PARSER.parseFrom(data, extensionRegistry); 16130 } 16131 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom(java.io.InputStream input) 16132 throws java.io.IOException { 16133 return PARSER.parseFrom(input); 16134 } 16135 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 16136 java.io.InputStream input, 16137 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16138 throws java.io.IOException { 16139 return PARSER.parseFrom(input, extensionRegistry); 16140 } 16141 public static com.google.protobuf.DescriptorProtos.MessageOptions parseDelimitedFrom(java.io.InputStream input) 16142 throws java.io.IOException { 16143 return PARSER.parseDelimitedFrom(input); 16144 } 16145 public static com.google.protobuf.DescriptorProtos.MessageOptions parseDelimitedFrom( 16146 java.io.InputStream input, 16147 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16148 throws java.io.IOException { 16149 return PARSER.parseDelimitedFrom(input, extensionRegistry); 16150 } 16151 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 16152 com.google.protobuf.CodedInputStream input) 16153 throws java.io.IOException { 16154 return PARSER.parseFrom(input); 16155 } 16156 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 16157 com.google.protobuf.CodedInputStream input, 16158 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16159 throws java.io.IOException { 16160 return PARSER.parseFrom(input, extensionRegistry); 16161 } 16162 16163 public static Builder newBuilder() { return Builder.create(); } 16164 public Builder newBuilderForType() { return newBuilder(); } 16165 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.MessageOptions prototype) { 16166 return newBuilder().mergeFrom(prototype); 16167 } 16168 public Builder toBuilder() { return newBuilder(this); } 16169 16170 @java.lang.Override 16171 protected Builder newBuilderForType( 16172 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 16173 Builder builder = new Builder(parent); 16174 return builder; 16175 } 16176 /** 16177 * Protobuf type {@code google.protobuf.MessageOptions} 16178 */ 16179 public static final class Builder extends 16180 com.google.protobuf.GeneratedMessage.ExtendableBuilder< 16181 com.google.protobuf.DescriptorProtos.MessageOptions, Builder> implements com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder { 16182 public static final com.google.protobuf.Descriptors.Descriptor 16183 getDescriptor() { 16184 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_descriptor; 16185 } 16186 16187 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 16188 internalGetFieldAccessorTable() { 16189 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_fieldAccessorTable 16190 .ensureFieldAccessorsInitialized( 16191 com.google.protobuf.DescriptorProtos.MessageOptions.class, com.google.protobuf.DescriptorProtos.MessageOptions.Builder.class); 16192 } 16193 16194 // Construct using com.google.protobuf.DescriptorProtos.MessageOptions.newBuilder() 16195 private Builder() { 16196 maybeForceBuilderInitialization(); 16197 } 16198 16199 private Builder( 16200 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 16201 super(parent); 16202 maybeForceBuilderInitialization(); 16203 } 16204 private void maybeForceBuilderInitialization() { 16205 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 16206 getUninterpretedOptionFieldBuilder(); 16207 } 16208 } 16209 private static Builder create() { 16210 return new Builder(); 16211 } 16212 16213 public Builder clear() { 16214 super.clear(); 16215 messageSetWireFormat_ = false; 16216 bitField0_ = (bitField0_ & ~0x00000001); 16217 noStandardDescriptorAccessor_ = false; 16218 bitField0_ = (bitField0_ & ~0x00000002); 16219 if (uninterpretedOptionBuilder_ == null) { 16220 uninterpretedOption_ = java.util.Collections.emptyList(); 16221 bitField0_ = (bitField0_ & ~0x00000004); 16222 } else { 16223 uninterpretedOptionBuilder_.clear(); 16224 } 16225 return this; 16226 } 16227 16228 public Builder clone() { 16229 return create().mergeFrom(buildPartial()); 16230 } 16231 16232 public com.google.protobuf.Descriptors.Descriptor 16233 getDescriptorForType() { 16234 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_descriptor; 16235 } 16236 16237 public com.google.protobuf.DescriptorProtos.MessageOptions getDefaultInstanceForType() { 16238 return com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance(); 16239 } 16240 16241 public com.google.protobuf.DescriptorProtos.MessageOptions build() { 16242 com.google.protobuf.DescriptorProtos.MessageOptions result = buildPartial(); 16243 if (!result.isInitialized()) { 16244 throw newUninitializedMessageException(result); 16245 } 16246 return result; 16247 } 16248 16249 public com.google.protobuf.DescriptorProtos.MessageOptions buildPartial() { 16250 com.google.protobuf.DescriptorProtos.MessageOptions result = new com.google.protobuf.DescriptorProtos.MessageOptions(this); 16251 int from_bitField0_ = bitField0_; 16252 int to_bitField0_ = 0; 16253 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 16254 to_bitField0_ |= 0x00000001; 16255 } 16256 result.messageSetWireFormat_ = messageSetWireFormat_; 16257 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 16258 to_bitField0_ |= 0x00000002; 16259 } 16260 result.noStandardDescriptorAccessor_ = noStandardDescriptorAccessor_; 16261 if (uninterpretedOptionBuilder_ == null) { 16262 if (((bitField0_ & 0x00000004) == 0x00000004)) { 16263 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 16264 bitField0_ = (bitField0_ & ~0x00000004); 16265 } 16266 result.uninterpretedOption_ = uninterpretedOption_; 16267 } else { 16268 result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); 16269 } 16270 result.bitField0_ = to_bitField0_; 16271 onBuilt(); 16272 return result; 16273 } 16274 16275 public Builder mergeFrom(com.google.protobuf.Message other) { 16276 if (other instanceof com.google.protobuf.DescriptorProtos.MessageOptions) { 16277 return mergeFrom((com.google.protobuf.DescriptorProtos.MessageOptions)other); 16278 } else { 16279 super.mergeFrom(other); 16280 return this; 16281 } 16282 } 16283 16284 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.MessageOptions other) { 16285 if (other == com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance()) return this; 16286 if (other.hasMessageSetWireFormat()) { 16287 setMessageSetWireFormat(other.getMessageSetWireFormat()); 16288 } 16289 if (other.hasNoStandardDescriptorAccessor()) { 16290 setNoStandardDescriptorAccessor(other.getNoStandardDescriptorAccessor()); 16291 } 16292 if (uninterpretedOptionBuilder_ == null) { 16293 if (!other.uninterpretedOption_.isEmpty()) { 16294 if (uninterpretedOption_.isEmpty()) { 16295 uninterpretedOption_ = other.uninterpretedOption_; 16296 bitField0_ = (bitField0_ & ~0x00000004); 16297 } else { 16298 ensureUninterpretedOptionIsMutable(); 16299 uninterpretedOption_.addAll(other.uninterpretedOption_); 16300 } 16301 onChanged(); 16302 } 16303 } else { 16304 if (!other.uninterpretedOption_.isEmpty()) { 16305 if (uninterpretedOptionBuilder_.isEmpty()) { 16306 uninterpretedOptionBuilder_.dispose(); 16307 uninterpretedOptionBuilder_ = null; 16308 uninterpretedOption_ = other.uninterpretedOption_; 16309 bitField0_ = (bitField0_ & ~0x00000004); 16310 uninterpretedOptionBuilder_ = 16311 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 16312 getUninterpretedOptionFieldBuilder() : null; 16313 } else { 16314 uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); 16315 } 16316 } 16317 } 16318 this.mergeExtensionFields(other); 16319 this.mergeUnknownFields(other.getUnknownFields()); 16320 return this; 16321 } 16322 16323 public final boolean isInitialized() { 16324 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 16325 if (!getUninterpretedOption(i).isInitialized()) { 16326 16327 return false; 16328 } 16329 } 16330 if (!extensionsAreInitialized()) { 16331 16332 return false; 16333 } 16334 return true; 16335 } 16336 16337 public Builder mergeFrom( 16338 com.google.protobuf.CodedInputStream input, 16339 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16340 throws java.io.IOException { 16341 com.google.protobuf.DescriptorProtos.MessageOptions parsedMessage = null; 16342 try { 16343 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 16344 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 16345 parsedMessage = (com.google.protobuf.DescriptorProtos.MessageOptions) e.getUnfinishedMessage(); 16346 throw e; 16347 } finally { 16348 if (parsedMessage != null) { 16349 mergeFrom(parsedMessage); 16350 } 16351 } 16352 return this; 16353 } 11011 16354 private int bitField0_; 11012 16355 11013 16356 // optional bool message_set_wire_format = 1 [default = false]; 11014 16357 private boolean messageSetWireFormat_ ; 16358 /** 16359 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 16360 * 16361 * <pre> 16362 * Set true to use the old proto1 MessageSet wire format for extensions. 16363 * This is provided for backwards-compatibility with the MessageSet wire 16364 * format. You should not use this for any other reason: It's less 16365 * efficient, has fewer features, and is more complicated. 16366 * 16367 * The message must be defined exactly as follows: 16368 * message Foo { 16369 * option message_set_wire_format = true; 16370 * extensions 4 to max; 16371 * } 16372 * Note that the message cannot have any defined fields; MessageSets only 16373 * have extensions. 16374 * 16375 * All extensions of your type must be singular messages; e.g. they cannot 16376 * be int32s, enums, or repeated messages. 16377 * 16378 * Because this is an option, the above two restrictions are not enforced by 16379 * the protocol compiler. 16380 * </pre> 16381 */ 11015 16382 public boolean hasMessageSetWireFormat() { 11016 16383 return ((bitField0_ & 0x00000001) == 0x00000001); 11017 16384 } 16385 /** 16386 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 16387 * 16388 * <pre> 16389 * Set true to use the old proto1 MessageSet wire format for extensions. 16390 * This is provided for backwards-compatibility with the MessageSet wire 16391 * format. You should not use this for any other reason: It's less 16392 * efficient, has fewer features, and is more complicated. 16393 * 16394 * The message must be defined exactly as follows: 16395 * message Foo { 16396 * option message_set_wire_format = true; 16397 * extensions 4 to max; 16398 * } 16399 * Note that the message cannot have any defined fields; MessageSets only 16400 * have extensions. 16401 * 16402 * All extensions of your type must be singular messages; e.g. they cannot 16403 * be int32s, enums, or repeated messages. 16404 * 16405 * Because this is an option, the above two restrictions are not enforced by 16406 * the protocol compiler. 16407 * </pre> 16408 */ 11018 16409 public boolean getMessageSetWireFormat() { 11019 16410 return messageSetWireFormat_; 11020 16411 } 16412 /** 16413 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 16414 * 16415 * <pre> 16416 * Set true to use the old proto1 MessageSet wire format for extensions. 16417 * This is provided for backwards-compatibility with the MessageSet wire 16418 * format. You should not use this for any other reason: It's less 16419 * efficient, has fewer features, and is more complicated. 16420 * 16421 * The message must be defined exactly as follows: 16422 * message Foo { 16423 * option message_set_wire_format = true; 16424 * extensions 4 to max; 16425 * } 16426 * Note that the message cannot have any defined fields; MessageSets only 16427 * have extensions. 16428 * 16429 * All extensions of your type must be singular messages; e.g. they cannot 16430 * be int32s, enums, or repeated messages. 16431 * 16432 * Because this is an option, the above two restrictions are not enforced by 16433 * the protocol compiler. 16434 * </pre> 16435 */ 11021 16436 public Builder setMessageSetWireFormat(boolean value) { 11022 16437 bitField0_ |= 0x00000001; … … 11025 16440 return this; 11026 16441 } 16442 /** 16443 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 16444 * 16445 * <pre> 16446 * Set true to use the old proto1 MessageSet wire format for extensions. 16447 * This is provided for backwards-compatibility with the MessageSet wire 16448 * format. You should not use this for any other reason: It's less 16449 * efficient, has fewer features, and is more complicated. 16450 * 16451 * The message must be defined exactly as follows: 16452 * message Foo { 16453 * option message_set_wire_format = true; 16454 * extensions 4 to max; 16455 * } 16456 * Note that the message cannot have any defined fields; MessageSets only 16457 * have extensions. 16458 * 16459 * All extensions of your type must be singular messages; e.g. they cannot 16460 * be int32s, enums, or repeated messages. 16461 * 16462 * Because this is an option, the above two restrictions are not enforced by 16463 * the protocol compiler. 16464 * </pre> 16465 */ 11027 16466 public Builder clearMessageSetWireFormat() { 11028 16467 bitField0_ = (bitField0_ & ~0x00000001); … … 11031 16470 return this; 11032 16471 } 11033 16472 11034 16473 // optional bool no_standard_descriptor_accessor = 2 [default = false]; 11035 16474 private boolean noStandardDescriptorAccessor_ ; 16475 /** 16476 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 16477 * 16478 * <pre> 16479 * Disables the generation of the standard "descriptor()" accessor, which can 16480 * conflict with a field of the same name. This is meant to make migration 16481 * from proto1 easier; new code should avoid fields named "descriptor". 16482 * </pre> 16483 */ 11036 16484 public boolean hasNoStandardDescriptorAccessor() { 11037 16485 return ((bitField0_ & 0x00000002) == 0x00000002); 11038 16486 } 16487 /** 16488 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 16489 * 16490 * <pre> 16491 * Disables the generation of the standard "descriptor()" accessor, which can 16492 * conflict with a field of the same name. This is meant to make migration 16493 * from proto1 easier; new code should avoid fields named "descriptor". 16494 * </pre> 16495 */ 11039 16496 public boolean getNoStandardDescriptorAccessor() { 11040 16497 return noStandardDescriptorAccessor_; 11041 16498 } 16499 /** 16500 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 16501 * 16502 * <pre> 16503 * Disables the generation of the standard "descriptor()" accessor, which can 16504 * conflict with a field of the same name. This is meant to make migration 16505 * from proto1 easier; new code should avoid fields named "descriptor". 16506 * </pre> 16507 */ 11042 16508 public Builder setNoStandardDescriptorAccessor(boolean value) { 11043 16509 bitField0_ |= 0x00000002; … … 11046 16512 return this; 11047 16513 } 16514 /** 16515 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 16516 * 16517 * <pre> 16518 * Disables the generation of the standard "descriptor()" accessor, which can 16519 * conflict with a field of the same name. This is meant to make migration 16520 * from proto1 easier; new code should avoid fields named "descriptor". 16521 * </pre> 16522 */ 11048 16523 public Builder clearNoStandardDescriptorAccessor() { 11049 16524 bitField0_ = (bitField0_ & ~0x00000002); … … 11052 16527 return this; 11053 16528 } 11054 16529 11055 16530 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11056 16531 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = … … 11062 16537 } 11063 16538 } 11064 16539 11065 16540 private com.google.protobuf.RepeatedFieldBuilder< 11066 16541 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 11067 16542 16543 /** 16544 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16545 * 16546 * <pre> 16547 * The parser stores options it doesn't recognize here. See above. 16548 * </pre> 16549 */ 11068 16550 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 11069 16551 if (uninterpretedOptionBuilder_ == null) { … … 11073 16555 } 11074 16556 } 16557 /** 16558 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16559 * 16560 * <pre> 16561 * The parser stores options it doesn't recognize here. See above. 16562 * </pre> 16563 */ 11075 16564 public int getUninterpretedOptionCount() { 11076 16565 if (uninterpretedOptionBuilder_ == null) { … … 11080 16569 } 11081 16570 } 16571 /** 16572 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16573 * 16574 * <pre> 16575 * The parser stores options it doesn't recognize here. See above. 16576 * </pre> 16577 */ 11082 16578 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 11083 16579 if (uninterpretedOptionBuilder_ == null) { … … 11087 16583 } 11088 16584 } 16585 /** 16586 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16587 * 16588 * <pre> 16589 * The parser stores options it doesn't recognize here. See above. 16590 * </pre> 16591 */ 11089 16592 public Builder setUninterpretedOption( 11090 16593 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 11101 16604 return this; 11102 16605 } 16606 /** 16607 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16608 * 16609 * <pre> 16610 * The parser stores options it doesn't recognize here. See above. 16611 * </pre> 16612 */ 11103 16613 public Builder setUninterpretedOption( 11104 16614 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 11112 16622 return this; 11113 16623 } 16624 /** 16625 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16626 * 16627 * <pre> 16628 * The parser stores options it doesn't recognize here. See above. 16629 * </pre> 16630 */ 11114 16631 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { 11115 16632 if (uninterpretedOptionBuilder_ == null) { … … 11125 16642 return this; 11126 16643 } 16644 /** 16645 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16646 * 16647 * <pre> 16648 * The parser stores options it doesn't recognize here. See above. 16649 * </pre> 16650 */ 11127 16651 public Builder addUninterpretedOption( 11128 16652 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 11139 16663 return this; 11140 16664 } 16665 /** 16666 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16667 * 16668 * <pre> 16669 * The parser stores options it doesn't recognize here. See above. 16670 * </pre> 16671 */ 11141 16672 public Builder addUninterpretedOption( 11142 16673 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 11150 16681 return this; 11151 16682 } 16683 /** 16684 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16685 * 16686 * <pre> 16687 * The parser stores options it doesn't recognize here. See above. 16688 * </pre> 16689 */ 11152 16690 public Builder addUninterpretedOption( 11153 16691 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 11161 16699 return this; 11162 16700 } 16701 /** 16702 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16703 * 16704 * <pre> 16705 * The parser stores options it doesn't recognize here. See above. 16706 * </pre> 16707 */ 11163 16708 public Builder addAllUninterpretedOption( 11164 16709 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { … … 11172 16717 return this; 11173 16718 } 16719 /** 16720 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16721 * 16722 * <pre> 16723 * The parser stores options it doesn't recognize here. See above. 16724 * </pre> 16725 */ 11174 16726 public Builder clearUninterpretedOption() { 11175 16727 if (uninterpretedOptionBuilder_ == null) { … … 11182 16734 return this; 11183 16735 } 16736 /** 16737 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16738 * 16739 * <pre> 16740 * The parser stores options it doesn't recognize here. See above. 16741 * </pre> 16742 */ 11184 16743 public Builder removeUninterpretedOption(int index) { 11185 16744 if (uninterpretedOptionBuilder_ == null) { … … 11192 16751 return this; 11193 16752 } 16753 /** 16754 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16755 * 16756 * <pre> 16757 * The parser stores options it doesn't recognize here. See above. 16758 * </pre> 16759 */ 11194 16760 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( 11195 16761 int index) { 11196 16762 return getUninterpretedOptionFieldBuilder().getBuilder(index); 11197 16763 } 16764 /** 16765 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16766 * 16767 * <pre> 16768 * The parser stores options it doesn't recognize here. See above. 16769 * </pre> 16770 */ 11198 16771 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 11199 16772 int index) { … … 11203 16776 } 11204 16777 } 16778 /** 16779 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16780 * 16781 * <pre> 16782 * The parser stores options it doesn't recognize here. See above. 16783 * </pre> 16784 */ 11205 16785 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 11206 16786 getUninterpretedOptionOrBuilderList() { … … 11211 16791 } 11212 16792 } 16793 /** 16794 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16795 * 16796 * <pre> 16797 * The parser stores options it doesn't recognize here. See above. 16798 * </pre> 16799 */ 11213 16800 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { 11214 16801 return getUninterpretedOptionFieldBuilder().addBuilder( 11215 16802 com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 11216 16803 } 16804 /** 16805 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16806 * 16807 * <pre> 16808 * The parser stores options it doesn't recognize here. See above. 16809 * </pre> 16810 */ 11217 16811 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( 11218 16812 int index) { … … 11220 16814 index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 11221 16815 } 16816 /** 16817 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 16818 * 16819 * <pre> 16820 * The parser stores options it doesn't recognize here. See above. 16821 * </pre> 16822 */ 11222 16823 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 11223 16824 getUninterpretedOptionBuilderList() { … … 11238 16839 return uninterpretedOptionBuilder_; 11239 16840 } 11240 16841 11241 16842 // @@protoc_insertion_point(builder_scope:google.protobuf.MessageOptions) 11242 16843 } 11243 16844 11244 16845 static { 11245 16846 defaultInstance = new MessageOptions(true); 11246 16847 defaultInstance.initFields(); 11247 16848 } 11248 16849 11249 16850 // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions) 11250 16851 } 11251 16852 11252 16853 public interface FieldOptionsOrBuilder extends 11253 16854 com.google.protobuf.GeneratedMessage. 11254 16855 ExtendableMessageOrBuilder<FieldOptions> { 11255 16856 11256 16857 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; 16858 /** 16859 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 16860 * 16861 * <pre> 16862 * The ctype option instructs the C++ code generator to use a different 16863 * representation of the field than it normally would. See the specific 16864 * options below. This option is not yet implemented in the open source 16865 * release -- sorry, we'll try to include it in a future version! 16866 * </pre> 16867 */ 11257 16868 boolean hasCtype(); 16869 /** 16870 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 16871 * 16872 * <pre> 16873 * The ctype option instructs the C++ code generator to use a different 16874 * representation of the field than it normally would. See the specific 16875 * options below. This option is not yet implemented in the open source 16876 * release -- sorry, we'll try to include it in a future version! 16877 * </pre> 16878 */ 11258 16879 com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype(); 11259 16880 11260 16881 // optional bool packed = 2; 16882 /** 16883 * <code>optional bool packed = 2;</code> 16884 * 16885 * <pre> 16886 * The packed option can be enabled for repeated primitive fields to enable 16887 * a more efficient representation on the wire. Rather than repeatedly 16888 * writing the tag and type for each element, the entire array is encoded as 16889 * a single length-delimited blob. 16890 * </pre> 16891 */ 11261 16892 boolean hasPacked(); 16893 /** 16894 * <code>optional bool packed = 2;</code> 16895 * 16896 * <pre> 16897 * The packed option can be enabled for repeated primitive fields to enable 16898 * a more efficient representation on the wire. Rather than repeatedly 16899 * writing the tag and type for each element, the entire array is encoded as 16900 * a single length-delimited blob. 16901 * </pre> 16902 */ 11262 16903 boolean getPacked(); 11263 16904 11264 16905 // optional bool lazy = 5 [default = false]; 16906 /** 16907 * <code>optional bool lazy = 5 [default = false];</code> 16908 * 16909 * <pre> 16910 * Should this field be parsed lazily? Lazy applies only to message-type 16911 * fields. It means that when the outer message is initially parsed, the 16912 * inner message's contents will not be parsed but instead stored in encoded 16913 * form. The inner message will actually be parsed when it is first accessed. 16914 * 16915 * This is only a hint. Implementations are free to choose whether to use 16916 * eager or lazy parsing regardless of the value of this option. However, 16917 * setting this option true suggests that the protocol author believes that 16918 * using lazy parsing on this field is worth the additional bookkeeping 16919 * overhead typically needed to implement it. 16920 * 16921 * This option does not affect the public interface of any generated code; 16922 * all method signatures remain the same. Furthermore, thread-safety of the 16923 * interface is not affected by this option; const methods remain safe to 16924 * call from multiple threads concurrently, while non-const methods continue 16925 * to require exclusive access. 16926 * 16927 * 16928 * Note that implementations may choose not to check required fields within 16929 * a lazy sub-message. That is, calling IsInitialized() on the outher message 16930 * may return true even if the inner message has missing required fields. 16931 * This is necessary because otherwise the inner message would have to be 16932 * parsed in order to perform the check, defeating the purpose of lazy 16933 * parsing. An implementation which chooses not to check required fields 16934 * must be consistent about it. That is, for any particular sub-message, the 16935 * implementation must either *always* check its required fields, or *never* 16936 * check its required fields, regardless of whether or not the message has 16937 * been parsed. 16938 * </pre> 16939 */ 11265 16940 boolean hasLazy(); 16941 /** 16942 * <code>optional bool lazy = 5 [default = false];</code> 16943 * 16944 * <pre> 16945 * Should this field be parsed lazily? Lazy applies only to message-type 16946 * fields. It means that when the outer message is initially parsed, the 16947 * inner message's contents will not be parsed but instead stored in encoded 16948 * form. The inner message will actually be parsed when it is first accessed. 16949 * 16950 * This is only a hint. Implementations are free to choose whether to use 16951 * eager or lazy parsing regardless of the value of this option. However, 16952 * setting this option true suggests that the protocol author believes that 16953 * using lazy parsing on this field is worth the additional bookkeeping 16954 * overhead typically needed to implement it. 16955 * 16956 * This option does not affect the public interface of any generated code; 16957 * all method signatures remain the same. Furthermore, thread-safety of the 16958 * interface is not affected by this option; const methods remain safe to 16959 * call from multiple threads concurrently, while non-const methods continue 16960 * to require exclusive access. 16961 * 16962 * 16963 * Note that implementations may choose not to check required fields within 16964 * a lazy sub-message. That is, calling IsInitialized() on the outher message 16965 * may return true even if the inner message has missing required fields. 16966 * This is necessary because otherwise the inner message would have to be 16967 * parsed in order to perform the check, defeating the purpose of lazy 16968 * parsing. An implementation which chooses not to check required fields 16969 * must be consistent about it. That is, for any particular sub-message, the 16970 * implementation must either *always* check its required fields, or *never* 16971 * check its required fields, regardless of whether or not the message has 16972 * been parsed. 16973 * </pre> 16974 */ 11266 16975 boolean getLazy(); 11267 16976 11268 16977 // optional bool deprecated = 3 [default = false]; 16978 /** 16979 * <code>optional bool deprecated = 3 [default = false];</code> 16980 * 16981 * <pre> 16982 * Is this field deprecated? 16983 * Depending on the target platform, this can emit Deprecated annotations 16984 * for accessors, or it will be completely ignored; in the very least, this 16985 * is a formalization for deprecating fields. 16986 * </pre> 16987 */ 11269 16988 boolean hasDeprecated(); 16989 /** 16990 * <code>optional bool deprecated = 3 [default = false];</code> 16991 * 16992 * <pre> 16993 * Is this field deprecated? 16994 * Depending on the target platform, this can emit Deprecated annotations 16995 * for accessors, or it will be completely ignored; in the very least, this 16996 * is a formalization for deprecating fields. 16997 * </pre> 16998 */ 11270 16999 boolean getDeprecated(); 11271 17000 11272 17001 // optional string experimental_map_key = 9; 17002 /** 17003 * <code>optional string experimental_map_key = 9;</code> 17004 * 17005 * <pre> 17006 * EXPERIMENTAL. DO NOT USE. 17007 * For "map" fields, the name of the field in the enclosed type that 17008 * is the key for this map. For example, suppose we have: 17009 * message Item { 17010 * required string name = 1; 17011 * required string value = 2; 17012 * } 17013 * message Config { 17014 * repeated Item items = 1 [experimental_map_key="name"]; 17015 * } 17016 * In this situation, the map key for Item will be set to "name". 17017 * TODO: Fully-implement this, then remove the "experimental_" prefix. 17018 * </pre> 17019 */ 11273 17020 boolean hasExperimentalMapKey(); 11274 String getExperimentalMapKey(); 11275 17021 /** 17022 * <code>optional string experimental_map_key = 9;</code> 17023 * 17024 * <pre> 17025 * EXPERIMENTAL. DO NOT USE. 17026 * For "map" fields, the name of the field in the enclosed type that 17027 * is the key for this map. For example, suppose we have: 17028 * message Item { 17029 * required string name = 1; 17030 * required string value = 2; 17031 * } 17032 * message Config { 17033 * repeated Item items = 1 [experimental_map_key="name"]; 17034 * } 17035 * In this situation, the map key for Item will be set to "name". 17036 * TODO: Fully-implement this, then remove the "experimental_" prefix. 17037 * </pre> 17038 */ 17039 java.lang.String getExperimentalMapKey(); 17040 /** 17041 * <code>optional string experimental_map_key = 9;</code> 17042 * 17043 * <pre> 17044 * EXPERIMENTAL. DO NOT USE. 17045 * For "map" fields, the name of the field in the enclosed type that 17046 * is the key for this map. For example, suppose we have: 17047 * message Item { 17048 * required string name = 1; 17049 * required string value = 2; 17050 * } 17051 * message Config { 17052 * repeated Item items = 1 [experimental_map_key="name"]; 17053 * } 17054 * In this situation, the map key for Item will be set to "name". 17055 * TODO: Fully-implement this, then remove the "experimental_" prefix. 17056 * </pre> 17057 */ 17058 com.google.protobuf.ByteString 17059 getExperimentalMapKeyBytes(); 17060 11276 17061 // optional bool weak = 10 [default = false]; 17062 /** 17063 * <code>optional bool weak = 10 [default = false];</code> 17064 * 17065 * <pre> 17066 * For Google-internal migration only. Do not use. 17067 * </pre> 17068 */ 11277 17069 boolean hasWeak(); 17070 /** 17071 * <code>optional bool weak = 10 [default = false];</code> 17072 * 17073 * <pre> 17074 * For Google-internal migration only. Do not use. 17075 * </pre> 17076 */ 11278 17077 boolean getWeak(); 11279 17078 11280 17079 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 17080 /** 17081 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17082 * 17083 * <pre> 17084 * The parser stores options it doesn't recognize here. See above. 17085 * </pre> 17086 */ 11281 17087 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 11282 17088 getUninterpretedOptionList(); 17089 /** 17090 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17091 * 17092 * <pre> 17093 * The parser stores options it doesn't recognize here. See above. 17094 * </pre> 17095 */ 11283 17096 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 17097 /** 17098 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17099 * 17100 * <pre> 17101 * The parser stores options it doesn't recognize here. See above. 17102 * </pre> 17103 */ 11284 17104 int getUninterpretedOptionCount(); 17105 /** 17106 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17107 * 17108 * <pre> 17109 * The parser stores options it doesn't recognize here. See above. 17110 * </pre> 17111 */ 11285 17112 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 11286 17113 getUninterpretedOptionOrBuilderList(); 17114 /** 17115 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17116 * 17117 * <pre> 17118 * The parser stores options it doesn't recognize here. See above. 17119 * </pre> 17120 */ 11287 17121 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 11288 17122 int index); 11289 17123 } 17124 /** 17125 * Protobuf type {@code google.protobuf.FieldOptions} 17126 */ 11290 17127 public static final class FieldOptions extends 11291 17128 com.google.protobuf.GeneratedMessage.ExtendableMessage< 11292 17129 FieldOptions> implements FieldOptionsOrBuilder { 11293 17130 // Use FieldOptions.newBuilder() to construct. 11294 private FieldOptions( Builderbuilder) {17131 private FieldOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.DescriptorProtos.FieldOptions, ?> builder) { 11295 17132 super(builder); 11296 } 11297 private FieldOptions(boolean noInit) {} 11298 17133 this.unknownFields = builder.getUnknownFields(); 17134 } 17135 private FieldOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 17136 11299 17137 private static final FieldOptions defaultInstance; 11300 17138 public static FieldOptions getDefaultInstance() { 11301 17139 return defaultInstance; 11302 17140 } 11303 17141 11304 17142 public FieldOptions getDefaultInstanceForType() { 11305 17143 return defaultInstance; 11306 17144 } 11307 11308 public static final com.google.protobuf.Descriptors.Descriptor 11309 getDescriptor() { 11310 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_descriptor; 11311 } 11312 11313 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 11314 internalGetFieldAccessorTable() { 11315 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_fieldAccessorTable; 11316 } 11317 11318 public enum CType 11319 implements com.google.protobuf.ProtocolMessageEnum { 11320 STRING(0, 0), 11321 CORD(1, 1), 11322 STRING_PIECE(2, 2), 11323 ; 11324 11325 public static final int STRING_VALUE = 0; 11326 public static final int CORD_VALUE = 1; 11327 public static final int STRING_PIECE_VALUE = 2; 11328 11329 11330 public final int getNumber() { return value; } 11331 11332 public static CType valueOf(int value) { 11333 switch (value) { 11334 case 0: return STRING; 11335 case 1: return CORD; 11336 case 2: return STRING_PIECE; 11337 default: return null; 11338 } 11339 } 11340 11341 public static com.google.protobuf.Internal.EnumLiteMap<CType> 11342 internalGetValueMap() { 11343 return internalValueMap; 11344 } 11345 private static com.google.protobuf.Internal.EnumLiteMap<CType> 11346 internalValueMap = 11347 new com.google.protobuf.Internal.EnumLiteMap<CType>() { 11348 public CType findValueByNumber(int number) { 11349 return CType.valueOf(number); 11350 } 11351 }; 11352 11353 public final com.google.protobuf.Descriptors.EnumValueDescriptor 11354 getValueDescriptor() { 11355 return getDescriptor().getValues().get(index); 11356 } 11357 public final com.google.protobuf.Descriptors.EnumDescriptor 11358 getDescriptorForType() { 11359 return getDescriptor(); 11360 } 11361 public static final com.google.protobuf.Descriptors.EnumDescriptor 11362 getDescriptor() { 11363 return com.google.protobuf.DescriptorProtos.FieldOptions.getDescriptor().getEnumTypes().get(0); 11364 } 11365 11366 private static final CType[] VALUES = { 11367 STRING, CORD, STRING_PIECE, 11368 }; 11369 11370 public static CType valueOf( 11371 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 11372 if (desc.getType() != getDescriptor()) { 11373 throw new java.lang.IllegalArgumentException( 11374 "EnumValueDescriptor is not for this type."); 11375 } 11376 return VALUES[desc.getIndex()]; 11377 } 11378 11379 private final int index; 11380 private final int value; 11381 11382 private CType(int index, int value) { 11383 this.index = index; 11384 this.value = value; 11385 } 11386 11387 // @@protoc_insertion_point(enum_scope:google.protobuf.FieldOptions.CType) 11388 } 11389 11390 private int bitField0_; 11391 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; 11392 public static final int CTYPE_FIELD_NUMBER = 1; 11393 private com.google.protobuf.DescriptorProtos.FieldOptions.CType ctype_; 11394 public boolean hasCtype() { 11395 return ((bitField0_ & 0x00000001) == 0x00000001); 11396 } 11397 public com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype() { 11398 return ctype_; 11399 } 11400 11401 // optional bool packed = 2; 11402 public static final int PACKED_FIELD_NUMBER = 2; 11403 private boolean packed_; 11404 public boolean hasPacked() { 11405 return ((bitField0_ & 0x00000002) == 0x00000002); 11406 } 11407 public boolean getPacked() { 11408 return packed_; 11409 } 11410 11411 // optional bool lazy = 5 [default = false]; 11412 public static final int LAZY_FIELD_NUMBER = 5; 11413 private boolean lazy_; 11414 public boolean hasLazy() { 11415 return ((bitField0_ & 0x00000004) == 0x00000004); 11416 } 11417 public boolean getLazy() { 11418 return lazy_; 11419 } 11420 11421 // optional bool deprecated = 3 [default = false]; 11422 public static final int DEPRECATED_FIELD_NUMBER = 3; 11423 private boolean deprecated_; 11424 public boolean hasDeprecated() { 11425 return ((bitField0_ & 0x00000008) == 0x00000008); 11426 } 11427 public boolean getDeprecated() { 11428 return deprecated_; 11429 } 11430 11431 // optional string experimental_map_key = 9; 11432 public static final int EXPERIMENTAL_MAP_KEY_FIELD_NUMBER = 9; 11433 private java.lang.Object experimentalMapKey_; 11434 public boolean hasExperimentalMapKey() { 11435 return ((bitField0_ & 0x00000010) == 0x00000010); 11436 } 11437 public String getExperimentalMapKey() { 11438 java.lang.Object ref = experimentalMapKey_; 11439 if (ref instanceof String) { 11440 return (String) ref; 11441 } else { 11442 com.google.protobuf.ByteString bs = 11443 (com.google.protobuf.ByteString) ref; 11444 String s = bs.toStringUtf8(); 11445 if (com.google.protobuf.Internal.isValidUtf8(bs)) { 11446 experimentalMapKey_ = s; 11447 } 11448 return s; 11449 } 11450 } 11451 private com.google.protobuf.ByteString getExperimentalMapKeyBytes() { 11452 java.lang.Object ref = experimentalMapKey_; 11453 if (ref instanceof String) { 11454 com.google.protobuf.ByteString b = 11455 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 11456 experimentalMapKey_ = b; 11457 return b; 11458 } else { 11459 return (com.google.protobuf.ByteString) ref; 11460 } 11461 } 11462 11463 // optional bool weak = 10 [default = false]; 11464 public static final int WEAK_FIELD_NUMBER = 10; 11465 private boolean weak_; 11466 public boolean hasWeak() { 11467 return ((bitField0_ & 0x00000020) == 0x00000020); 11468 } 11469 public boolean getWeak() { 11470 return weak_; 11471 } 11472 11473 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11474 public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; 11475 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 11476 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 11477 return uninterpretedOption_; 11478 } 11479 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 11480 getUninterpretedOptionOrBuilderList() { 11481 return uninterpretedOption_; 11482 } 11483 public int getUninterpretedOptionCount() { 11484 return uninterpretedOption_.size(); 11485 } 11486 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 11487 return uninterpretedOption_.get(index); 11488 } 11489 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 11490 int index) { 11491 return uninterpretedOption_.get(index); 11492 } 11493 11494 private void initFields() { 11495 ctype_ = com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING; 11496 packed_ = false; 11497 lazy_ = false; 11498 deprecated_ = false; 11499 experimentalMapKey_ = ""; 11500 weak_ = false; 11501 uninterpretedOption_ = java.util.Collections.emptyList(); 11502 } 11503 private byte memoizedIsInitialized = -1; 11504 public final boolean isInitialized() { 11505 byte isInitialized = memoizedIsInitialized; 11506 if (isInitialized != -1) return isInitialized == 1; 11507 11508 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 11509 if (!getUninterpretedOption(i).isInitialized()) { 11510 memoizedIsInitialized = 0; 11511 return false; 11512 } 11513 } 11514 if (!extensionsAreInitialized()) { 11515 memoizedIsInitialized = 0; 11516 return false; 11517 } 11518 memoizedIsInitialized = 1; 11519 return true; 11520 } 11521 11522 public void writeTo(com.google.protobuf.CodedOutputStream output) 11523 throws java.io.IOException { 11524 getSerializedSize(); 11525 com.google.protobuf.GeneratedMessage 11526 .ExtendableMessage<com.google.protobuf.DescriptorProtos.FieldOptions>.ExtensionWriter extensionWriter = 11527 newExtensionWriter(); 11528 if (((bitField0_ & 0x00000001) == 0x00000001)) { 11529 output.writeEnum(1, ctype_.getNumber()); 11530 } 11531 if (((bitField0_ & 0x00000002) == 0x00000002)) { 11532 output.writeBool(2, packed_); 11533 } 11534 if (((bitField0_ & 0x00000008) == 0x00000008)) { 11535 output.writeBool(3, deprecated_); 11536 } 11537 if (((bitField0_ & 0x00000004) == 0x00000004)) { 11538 output.writeBool(5, lazy_); 11539 } 11540 if (((bitField0_ & 0x00000010) == 0x00000010)) { 11541 output.writeBytes(9, getExperimentalMapKeyBytes()); 11542 } 11543 if (((bitField0_ & 0x00000020) == 0x00000020)) { 11544 output.writeBool(10, weak_); 11545 } 11546 for (int i = 0; i < uninterpretedOption_.size(); i++) { 11547 output.writeMessage(999, uninterpretedOption_.get(i)); 11548 } 11549 extensionWriter.writeUntil(536870912, output); 11550 getUnknownFields().writeTo(output); 11551 } 11552 11553 private int memoizedSerializedSize = -1; 11554 public int getSerializedSize() { 11555 int size = memoizedSerializedSize; 11556 if (size != -1) return size; 11557 11558 size = 0; 11559 if (((bitField0_ & 0x00000001) == 0x00000001)) { 11560 size += com.google.protobuf.CodedOutputStream 11561 .computeEnumSize(1, ctype_.getNumber()); 11562 } 11563 if (((bitField0_ & 0x00000002) == 0x00000002)) { 11564 size += com.google.protobuf.CodedOutputStream 11565 .computeBoolSize(2, packed_); 11566 } 11567 if (((bitField0_ & 0x00000008) == 0x00000008)) { 11568 size += com.google.protobuf.CodedOutputStream 11569 .computeBoolSize(3, deprecated_); 11570 } 11571 if (((bitField0_ & 0x00000004) == 0x00000004)) { 11572 size += com.google.protobuf.CodedOutputStream 11573 .computeBoolSize(5, lazy_); 11574 } 11575 if (((bitField0_ & 0x00000010) == 0x00000010)) { 11576 size += com.google.protobuf.CodedOutputStream 11577 .computeBytesSize(9, getExperimentalMapKeyBytes()); 11578 } 11579 if (((bitField0_ & 0x00000020) == 0x00000020)) { 11580 size += com.google.protobuf.CodedOutputStream 11581 .computeBoolSize(10, weak_); 11582 } 11583 for (int i = 0; i < uninterpretedOption_.size(); i++) { 11584 size += com.google.protobuf.CodedOutputStream 11585 .computeMessageSize(999, uninterpretedOption_.get(i)); 11586 } 11587 size += extensionsSerializedSize(); 11588 size += getUnknownFields().getSerializedSize(); 11589 memoizedSerializedSize = size; 11590 return size; 11591 } 11592 11593 private static final long serialVersionUID = 0L; 17145 17146 private final com.google.protobuf.UnknownFieldSet unknownFields; 11594 17147 @java.lang.Override 11595 protected java.lang.Object writeReplace() 11596 throws java.io.ObjectStreamException { 11597 return super.writeReplace(); 11598 } 11599 11600 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 11601 com.google.protobuf.ByteString data) 11602 throws com.google.protobuf.InvalidProtocolBufferException { 11603 return newBuilder().mergeFrom(data).buildParsed(); 11604 } 11605 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 11606 com.google.protobuf.ByteString data, 17148 public final com.google.protobuf.UnknownFieldSet 17149 getUnknownFields() { 17150 return this.unknownFields; 17151 } 17152 private FieldOptions( 17153 com.google.protobuf.CodedInputStream input, 11607 17154 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11608 17155 throws com.google.protobuf.InvalidProtocolBufferException { 11609 return newBuilder().mergeFrom(data, extensionRegistry) 11610 .buildParsed(); 11611 } 11612 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom(byte[] data) 11613 throws com.google.protobuf.InvalidProtocolBufferException { 11614 return newBuilder().mergeFrom(data).buildParsed(); 11615 } 11616 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 11617 byte[] data, 11618 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11619 throws com.google.protobuf.InvalidProtocolBufferException { 11620 return newBuilder().mergeFrom(data, extensionRegistry) 11621 .buildParsed(); 11622 } 11623 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom(java.io.InputStream input) 11624 throws java.io.IOException { 11625 return newBuilder().mergeFrom(input).buildParsed(); 11626 } 11627 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 11628 java.io.InputStream input, 11629 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11630 throws java.io.IOException { 11631 return newBuilder().mergeFrom(input, extensionRegistry) 11632 .buildParsed(); 11633 } 11634 public static com.google.protobuf.DescriptorProtos.FieldOptions parseDelimitedFrom(java.io.InputStream input) 11635 throws java.io.IOException { 11636 Builder builder = newBuilder(); 11637 if (builder.mergeDelimitedFrom(input)) { 11638 return builder.buildParsed(); 11639 } else { 11640 return null; 11641 } 11642 } 11643 public static com.google.protobuf.DescriptorProtos.FieldOptions parseDelimitedFrom( 11644 java.io.InputStream input, 11645 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11646 throws java.io.IOException { 11647 Builder builder = newBuilder(); 11648 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 11649 return builder.buildParsed(); 11650 } else { 11651 return null; 11652 } 11653 } 11654 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 11655 com.google.protobuf.CodedInputStream input) 11656 throws java.io.IOException { 11657 return newBuilder().mergeFrom(input).buildParsed(); 11658 } 11659 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 11660 com.google.protobuf.CodedInputStream input, 11661 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11662 throws java.io.IOException { 11663 return newBuilder().mergeFrom(input, extensionRegistry) 11664 .buildParsed(); 11665 } 11666 11667 public static Builder newBuilder() { return Builder.create(); } 11668 public Builder newBuilderForType() { return newBuilder(); } 11669 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FieldOptions prototype) { 11670 return newBuilder().mergeFrom(prototype); 11671 } 11672 public Builder toBuilder() { return newBuilder(this); } 11673 11674 @java.lang.Override 11675 protected Builder newBuilderForType( 11676 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 11677 Builder builder = new Builder(parent); 11678 return builder; 11679 } 11680 public static final class Builder extends 11681 com.google.protobuf.GeneratedMessage.ExtendableBuilder< 11682 com.google.protobuf.DescriptorProtos.FieldOptions, Builder> implements com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder { 11683 public static final com.google.protobuf.Descriptors.Descriptor 11684 getDescriptor() { 11685 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_descriptor; 11686 } 11687 11688 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 11689 internalGetFieldAccessorTable() { 11690 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_fieldAccessorTable; 11691 } 11692 11693 // Construct using com.google.protobuf.DescriptorProtos.FieldOptions.newBuilder() 11694 private Builder() { 11695 maybeForceBuilderInitialization(); 11696 } 11697 11698 private Builder(BuilderParent parent) { 11699 super(parent); 11700 maybeForceBuilderInitialization(); 11701 } 11702 private void maybeForceBuilderInitialization() { 11703 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 11704 getUninterpretedOptionFieldBuilder(); 11705 } 11706 } 11707 private static Builder create() { 11708 return new Builder(); 11709 } 11710 11711 public Builder clear() { 11712 super.clear(); 11713 ctype_ = com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING; 11714 bitField0_ = (bitField0_ & ~0x00000001); 11715 packed_ = false; 11716 bitField0_ = (bitField0_ & ~0x00000002); 11717 lazy_ = false; 11718 bitField0_ = (bitField0_ & ~0x00000004); 11719 deprecated_ = false; 11720 bitField0_ = (bitField0_ & ~0x00000008); 11721 experimentalMapKey_ = ""; 11722 bitField0_ = (bitField0_ & ~0x00000010); 11723 weak_ = false; 11724 bitField0_ = (bitField0_ & ~0x00000020); 11725 if (uninterpretedOptionBuilder_ == null) { 11726 uninterpretedOption_ = java.util.Collections.emptyList(); 11727 bitField0_ = (bitField0_ & ~0x00000040); 11728 } else { 11729 uninterpretedOptionBuilder_.clear(); 11730 } 11731 return this; 11732 } 11733 11734 public Builder clone() { 11735 return create().mergeFrom(buildPartial()); 11736 } 11737 11738 public com.google.protobuf.Descriptors.Descriptor 11739 getDescriptorForType() { 11740 return com.google.protobuf.DescriptorProtos.FieldOptions.getDescriptor(); 11741 } 11742 11743 public com.google.protobuf.DescriptorProtos.FieldOptions getDefaultInstanceForType() { 11744 return com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance(); 11745 } 11746 11747 public com.google.protobuf.DescriptorProtos.FieldOptions build() { 11748 com.google.protobuf.DescriptorProtos.FieldOptions result = buildPartial(); 11749 if (!result.isInitialized()) { 11750 throw newUninitializedMessageException(result); 11751 } 11752 return result; 11753 } 11754 11755 private com.google.protobuf.DescriptorProtos.FieldOptions buildParsed() 11756 throws com.google.protobuf.InvalidProtocolBufferException { 11757 com.google.protobuf.DescriptorProtos.FieldOptions result = buildPartial(); 11758 if (!result.isInitialized()) { 11759 throw newUninitializedMessageException( 11760 result).asInvalidProtocolBufferException(); 11761 } 11762 return result; 11763 } 11764 11765 public com.google.protobuf.DescriptorProtos.FieldOptions buildPartial() { 11766 com.google.protobuf.DescriptorProtos.FieldOptions result = new com.google.protobuf.DescriptorProtos.FieldOptions(this); 11767 int from_bitField0_ = bitField0_; 11768 int to_bitField0_ = 0; 11769 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 11770 to_bitField0_ |= 0x00000001; 11771 } 11772 result.ctype_ = ctype_; 11773 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 11774 to_bitField0_ |= 0x00000002; 11775 } 11776 result.packed_ = packed_; 11777 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 11778 to_bitField0_ |= 0x00000004; 11779 } 11780 result.lazy_ = lazy_; 11781 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 11782 to_bitField0_ |= 0x00000008; 11783 } 11784 result.deprecated_ = deprecated_; 11785 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 11786 to_bitField0_ |= 0x00000010; 11787 } 11788 result.experimentalMapKey_ = experimentalMapKey_; 11789 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 11790 to_bitField0_ |= 0x00000020; 11791 } 11792 result.weak_ = weak_; 11793 if (uninterpretedOptionBuilder_ == null) { 11794 if (((bitField0_ & 0x00000040) == 0x00000040)) { 11795 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 11796 bitField0_ = (bitField0_ & ~0x00000040); 11797 } 11798 result.uninterpretedOption_ = uninterpretedOption_; 11799 } else { 11800 result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); 11801 } 11802 result.bitField0_ = to_bitField0_; 11803 onBuilt(); 11804 return result; 11805 } 11806 11807 public Builder mergeFrom(com.google.protobuf.Message other) { 11808 if (other instanceof com.google.protobuf.DescriptorProtos.FieldOptions) { 11809 return mergeFrom((com.google.protobuf.DescriptorProtos.FieldOptions)other); 11810 } else { 11811 super.mergeFrom(other); 11812 return this; 11813 } 11814 } 11815 11816 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FieldOptions other) { 11817 if (other == com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance()) return this; 11818 if (other.hasCtype()) { 11819 setCtype(other.getCtype()); 11820 } 11821 if (other.hasPacked()) { 11822 setPacked(other.getPacked()); 11823 } 11824 if (other.hasLazy()) { 11825 setLazy(other.getLazy()); 11826 } 11827 if (other.hasDeprecated()) { 11828 setDeprecated(other.getDeprecated()); 11829 } 11830 if (other.hasExperimentalMapKey()) { 11831 setExperimentalMapKey(other.getExperimentalMapKey()); 11832 } 11833 if (other.hasWeak()) { 11834 setWeak(other.getWeak()); 11835 } 11836 if (uninterpretedOptionBuilder_ == null) { 11837 if (!other.uninterpretedOption_.isEmpty()) { 11838 if (uninterpretedOption_.isEmpty()) { 11839 uninterpretedOption_ = other.uninterpretedOption_; 11840 bitField0_ = (bitField0_ & ~0x00000040); 11841 } else { 11842 ensureUninterpretedOptionIsMutable(); 11843 uninterpretedOption_.addAll(other.uninterpretedOption_); 11844 } 11845 onChanged(); 11846 } 11847 } else { 11848 if (!other.uninterpretedOption_.isEmpty()) { 11849 if (uninterpretedOptionBuilder_.isEmpty()) { 11850 uninterpretedOptionBuilder_.dispose(); 11851 uninterpretedOptionBuilder_ = null; 11852 uninterpretedOption_ = other.uninterpretedOption_; 11853 bitField0_ = (bitField0_ & ~0x00000040); 11854 uninterpretedOptionBuilder_ = 11855 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 11856 getUninterpretedOptionFieldBuilder() : null; 11857 } else { 11858 uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); 11859 } 11860 } 11861 } 11862 this.mergeExtensionFields(other); 11863 this.mergeUnknownFields(other.getUnknownFields()); 11864 return this; 11865 } 11866 11867 public final boolean isInitialized() { 11868 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 11869 if (!getUninterpretedOption(i).isInitialized()) { 11870 11871 return false; 11872 } 11873 } 11874 if (!extensionsAreInitialized()) { 11875 11876 return false; 11877 } 11878 return true; 11879 } 11880 11881 public Builder mergeFrom( 11882 com.google.protobuf.CodedInputStream input, 11883 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11884 throws java.io.IOException { 11885 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 11886 com.google.protobuf.UnknownFieldSet.newBuilder( 11887 this.getUnknownFields()); 11888 while (true) { 17156 initFields(); 17157 int mutable_bitField0_ = 0; 17158 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 17159 com.google.protobuf.UnknownFieldSet.newBuilder(); 17160 try { 17161 boolean done = false; 17162 while (!done) { 11889 17163 int tag = input.readTag(); 11890 17164 switch (tag) { 11891 17165 case 0: 11892 this.setUnknownFields(unknownFields.build()); 11893 onChanged(); 11894 return this; 17166 done = true; 17167 break; 11895 17168 default: { 11896 17169 if (!parseUnknownField(input, unknownFields, 11897 17170 extensionRegistry, tag)) { 11898 this.setUnknownFields(unknownFields.build()); 11899 onChanged(); 11900 return this; 17171 done = true; 11901 17172 } 11902 17173 break; … … 11939 17210 } 11940 17211 case 7994: { 11941 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder subBuilder = com.google.protobuf.DescriptorProtos.UninterpretedOption.newBuilder(); 11942 input.readMessage(subBuilder, extensionRegistry); 11943 addUninterpretedOption(subBuilder.buildPartial()); 17212 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 17213 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 17214 mutable_bitField0_ |= 0x00000040; 17215 } 17216 uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 11944 17217 break; 11945 17218 } 11946 17219 } 11947 17220 } 11948 } 11949 17221 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 17222 throw e.setUnfinishedMessage(this); 17223 } catch (java.io.IOException e) { 17224 throw new com.google.protobuf.InvalidProtocolBufferException( 17225 e.getMessage()).setUnfinishedMessage(this); 17226 } finally { 17227 if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 17228 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 17229 } 17230 this.unknownFields = unknownFields.build(); 17231 makeExtensionsImmutable(); 17232 } 17233 } 17234 public static final com.google.protobuf.Descriptors.Descriptor 17235 getDescriptor() { 17236 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_descriptor; 17237 } 17238 17239 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 17240 internalGetFieldAccessorTable() { 17241 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_fieldAccessorTable 17242 .ensureFieldAccessorsInitialized( 17243 com.google.protobuf.DescriptorProtos.FieldOptions.class, com.google.protobuf.DescriptorProtos.FieldOptions.Builder.class); 17244 } 17245 17246 public static com.google.protobuf.Parser<FieldOptions> PARSER = 17247 new com.google.protobuf.AbstractParser<FieldOptions>() { 17248 public FieldOptions parsePartialFrom( 17249 com.google.protobuf.CodedInputStream input, 17250 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 17251 throws com.google.protobuf.InvalidProtocolBufferException { 17252 return new FieldOptions(input, extensionRegistry); 17253 } 17254 }; 17255 17256 @java.lang.Override 17257 public com.google.protobuf.Parser<FieldOptions> getParserForType() { 17258 return PARSER; 17259 } 17260 17261 /** 17262 * Protobuf enum {@code google.protobuf.FieldOptions.CType} 17263 */ 17264 public enum CType 17265 implements com.google.protobuf.ProtocolMessageEnum { 17266 /** 17267 * <code>STRING = 0;</code> 17268 * 17269 * <pre> 17270 * Default mode. 17271 * </pre> 17272 */ 17273 STRING(0, 0), 17274 /** 17275 * <code>CORD = 1;</code> 17276 */ 17277 CORD(1, 1), 17278 /** 17279 * <code>STRING_PIECE = 2;</code> 17280 */ 17281 STRING_PIECE(2, 2), 17282 ; 17283 17284 /** 17285 * <code>STRING = 0;</code> 17286 * 17287 * <pre> 17288 * Default mode. 17289 * </pre> 17290 */ 17291 public static final int STRING_VALUE = 0; 17292 /** 17293 * <code>CORD = 1;</code> 17294 */ 17295 public static final int CORD_VALUE = 1; 17296 /** 17297 * <code>STRING_PIECE = 2;</code> 17298 */ 17299 public static final int STRING_PIECE_VALUE = 2; 17300 17301 17302 public final int getNumber() { return value; } 17303 17304 public static CType valueOf(int value) { 17305 switch (value) { 17306 case 0: return STRING; 17307 case 1: return CORD; 17308 case 2: return STRING_PIECE; 17309 default: return null; 17310 } 17311 } 17312 17313 public static com.google.protobuf.Internal.EnumLiteMap<CType> 17314 internalGetValueMap() { 17315 return internalValueMap; 17316 } 17317 private static com.google.protobuf.Internal.EnumLiteMap<CType> 17318 internalValueMap = 17319 new com.google.protobuf.Internal.EnumLiteMap<CType>() { 17320 public CType findValueByNumber(int number) { 17321 return CType.valueOf(number); 17322 } 17323 }; 17324 17325 public final com.google.protobuf.Descriptors.EnumValueDescriptor 17326 getValueDescriptor() { 17327 return getDescriptor().getValues().get(index); 17328 } 17329 public final com.google.protobuf.Descriptors.EnumDescriptor 17330 getDescriptorForType() { 17331 return getDescriptor(); 17332 } 17333 public static final com.google.protobuf.Descriptors.EnumDescriptor 17334 getDescriptor() { 17335 return com.google.protobuf.DescriptorProtos.FieldOptions.getDescriptor().getEnumTypes().get(0); 17336 } 17337 17338 private static final CType[] VALUES = values(); 17339 17340 public static CType valueOf( 17341 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 17342 if (desc.getType() != getDescriptor()) { 17343 throw new java.lang.IllegalArgumentException( 17344 "EnumValueDescriptor is not for this type."); 17345 } 17346 return VALUES[desc.getIndex()]; 17347 } 17348 17349 private final int index; 17350 private final int value; 17351 17352 private CType(int index, int value) { 17353 this.index = index; 17354 this.value = value; 17355 } 17356 17357 // @@protoc_insertion_point(enum_scope:google.protobuf.FieldOptions.CType) 17358 } 17359 17360 private int bitField0_; 17361 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; 17362 public static final int CTYPE_FIELD_NUMBER = 1; 17363 private com.google.protobuf.DescriptorProtos.FieldOptions.CType ctype_; 17364 /** 17365 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 17366 * 17367 * <pre> 17368 * The ctype option instructs the C++ code generator to use a different 17369 * representation of the field than it normally would. See the specific 17370 * options below. This option is not yet implemented in the open source 17371 * release -- sorry, we'll try to include it in a future version! 17372 * </pre> 17373 */ 17374 public boolean hasCtype() { 17375 return ((bitField0_ & 0x00000001) == 0x00000001); 17376 } 17377 /** 17378 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 17379 * 17380 * <pre> 17381 * The ctype option instructs the C++ code generator to use a different 17382 * representation of the field than it normally would. See the specific 17383 * options below. This option is not yet implemented in the open source 17384 * release -- sorry, we'll try to include it in a future version! 17385 * </pre> 17386 */ 17387 public com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype() { 17388 return ctype_; 17389 } 17390 17391 // optional bool packed = 2; 17392 public static final int PACKED_FIELD_NUMBER = 2; 17393 private boolean packed_; 17394 /** 17395 * <code>optional bool packed = 2;</code> 17396 * 17397 * <pre> 17398 * The packed option can be enabled for repeated primitive fields to enable 17399 * a more efficient representation on the wire. Rather than repeatedly 17400 * writing the tag and type for each element, the entire array is encoded as 17401 * a single length-delimited blob. 17402 * </pre> 17403 */ 17404 public boolean hasPacked() { 17405 return ((bitField0_ & 0x00000002) == 0x00000002); 17406 } 17407 /** 17408 * <code>optional bool packed = 2;</code> 17409 * 17410 * <pre> 17411 * The packed option can be enabled for repeated primitive fields to enable 17412 * a more efficient representation on the wire. Rather than repeatedly 17413 * writing the tag and type for each element, the entire array is encoded as 17414 * a single length-delimited blob. 17415 * </pre> 17416 */ 17417 public boolean getPacked() { 17418 return packed_; 17419 } 17420 17421 // optional bool lazy = 5 [default = false]; 17422 public static final int LAZY_FIELD_NUMBER = 5; 17423 private boolean lazy_; 17424 /** 17425 * <code>optional bool lazy = 5 [default = false];</code> 17426 * 17427 * <pre> 17428 * Should this field be parsed lazily? Lazy applies only to message-type 17429 * fields. It means that when the outer message is initially parsed, the 17430 * inner message's contents will not be parsed but instead stored in encoded 17431 * form. The inner message will actually be parsed when it is first accessed. 17432 * 17433 * This is only a hint. Implementations are free to choose whether to use 17434 * eager or lazy parsing regardless of the value of this option. However, 17435 * setting this option true suggests that the protocol author believes that 17436 * using lazy parsing on this field is worth the additional bookkeeping 17437 * overhead typically needed to implement it. 17438 * 17439 * This option does not affect the public interface of any generated code; 17440 * all method signatures remain the same. Furthermore, thread-safety of the 17441 * interface is not affected by this option; const methods remain safe to 17442 * call from multiple threads concurrently, while non-const methods continue 17443 * to require exclusive access. 17444 * 17445 * 17446 * Note that implementations may choose not to check required fields within 17447 * a lazy sub-message. That is, calling IsInitialized() on the outher message 17448 * may return true even if the inner message has missing required fields. 17449 * This is necessary because otherwise the inner message would have to be 17450 * parsed in order to perform the check, defeating the purpose of lazy 17451 * parsing. An implementation which chooses not to check required fields 17452 * must be consistent about it. That is, for any particular sub-message, the 17453 * implementation must either *always* check its required fields, or *never* 17454 * check its required fields, regardless of whether or not the message has 17455 * been parsed. 17456 * </pre> 17457 */ 17458 public boolean hasLazy() { 17459 return ((bitField0_ & 0x00000004) == 0x00000004); 17460 } 17461 /** 17462 * <code>optional bool lazy = 5 [default = false];</code> 17463 * 17464 * <pre> 17465 * Should this field be parsed lazily? Lazy applies only to message-type 17466 * fields. It means that when the outer message is initially parsed, the 17467 * inner message's contents will not be parsed but instead stored in encoded 17468 * form. The inner message will actually be parsed when it is first accessed. 17469 * 17470 * This is only a hint. Implementations are free to choose whether to use 17471 * eager or lazy parsing regardless of the value of this option. However, 17472 * setting this option true suggests that the protocol author believes that 17473 * using lazy parsing on this field is worth the additional bookkeeping 17474 * overhead typically needed to implement it. 17475 * 17476 * This option does not affect the public interface of any generated code; 17477 * all method signatures remain the same. Furthermore, thread-safety of the 17478 * interface is not affected by this option; const methods remain safe to 17479 * call from multiple threads concurrently, while non-const methods continue 17480 * to require exclusive access. 17481 * 17482 * 17483 * Note that implementations may choose not to check required fields within 17484 * a lazy sub-message. That is, calling IsInitialized() on the outher message 17485 * may return true even if the inner message has missing required fields. 17486 * This is necessary because otherwise the inner message would have to be 17487 * parsed in order to perform the check, defeating the purpose of lazy 17488 * parsing. An implementation which chooses not to check required fields 17489 * must be consistent about it. That is, for any particular sub-message, the 17490 * implementation must either *always* check its required fields, or *never* 17491 * check its required fields, regardless of whether or not the message has 17492 * been parsed. 17493 * </pre> 17494 */ 17495 public boolean getLazy() { 17496 return lazy_; 17497 } 17498 17499 // optional bool deprecated = 3 [default = false]; 17500 public static final int DEPRECATED_FIELD_NUMBER = 3; 17501 private boolean deprecated_; 17502 /** 17503 * <code>optional bool deprecated = 3 [default = false];</code> 17504 * 17505 * <pre> 17506 * Is this field deprecated? 17507 * Depending on the target platform, this can emit Deprecated annotations 17508 * for accessors, or it will be completely ignored; in the very least, this 17509 * is a formalization for deprecating fields. 17510 * </pre> 17511 */ 17512 public boolean hasDeprecated() { 17513 return ((bitField0_ & 0x00000008) == 0x00000008); 17514 } 17515 /** 17516 * <code>optional bool deprecated = 3 [default = false];</code> 17517 * 17518 * <pre> 17519 * Is this field deprecated? 17520 * Depending on the target platform, this can emit Deprecated annotations 17521 * for accessors, or it will be completely ignored; in the very least, this 17522 * is a formalization for deprecating fields. 17523 * </pre> 17524 */ 17525 public boolean getDeprecated() { 17526 return deprecated_; 17527 } 17528 17529 // optional string experimental_map_key = 9; 17530 public static final int EXPERIMENTAL_MAP_KEY_FIELD_NUMBER = 9; 17531 private java.lang.Object experimentalMapKey_; 17532 /** 17533 * <code>optional string experimental_map_key = 9;</code> 17534 * 17535 * <pre> 17536 * EXPERIMENTAL. DO NOT USE. 17537 * For "map" fields, the name of the field in the enclosed type that 17538 * is the key for this map. For example, suppose we have: 17539 * message Item { 17540 * required string name = 1; 17541 * required string value = 2; 17542 * } 17543 * message Config { 17544 * repeated Item items = 1 [experimental_map_key="name"]; 17545 * } 17546 * In this situation, the map key for Item will be set to "name". 17547 * TODO: Fully-implement this, then remove the "experimental_" prefix. 17548 * </pre> 17549 */ 17550 public boolean hasExperimentalMapKey() { 17551 return ((bitField0_ & 0x00000010) == 0x00000010); 17552 } 17553 /** 17554 * <code>optional string experimental_map_key = 9;</code> 17555 * 17556 * <pre> 17557 * EXPERIMENTAL. DO NOT USE. 17558 * For "map" fields, the name of the field in the enclosed type that 17559 * is the key for this map. For example, suppose we have: 17560 * message Item { 17561 * required string name = 1; 17562 * required string value = 2; 17563 * } 17564 * message Config { 17565 * repeated Item items = 1 [experimental_map_key="name"]; 17566 * } 17567 * In this situation, the map key for Item will be set to "name". 17568 * TODO: Fully-implement this, then remove the "experimental_" prefix. 17569 * </pre> 17570 */ 17571 public java.lang.String getExperimentalMapKey() { 17572 java.lang.Object ref = experimentalMapKey_; 17573 if (ref instanceof java.lang.String) { 17574 return (java.lang.String) ref; 17575 } else { 17576 com.google.protobuf.ByteString bs = 17577 (com.google.protobuf.ByteString) ref; 17578 java.lang.String s = bs.toStringUtf8(); 17579 if (bs.isValidUtf8()) { 17580 experimentalMapKey_ = s; 17581 } 17582 return s; 17583 } 17584 } 17585 /** 17586 * <code>optional string experimental_map_key = 9;</code> 17587 * 17588 * <pre> 17589 * EXPERIMENTAL. DO NOT USE. 17590 * For "map" fields, the name of the field in the enclosed type that 17591 * is the key for this map. For example, suppose we have: 17592 * message Item { 17593 * required string name = 1; 17594 * required string value = 2; 17595 * } 17596 * message Config { 17597 * repeated Item items = 1 [experimental_map_key="name"]; 17598 * } 17599 * In this situation, the map key for Item will be set to "name". 17600 * TODO: Fully-implement this, then remove the "experimental_" prefix. 17601 * </pre> 17602 */ 17603 public com.google.protobuf.ByteString 17604 getExperimentalMapKeyBytes() { 17605 java.lang.Object ref = experimentalMapKey_; 17606 if (ref instanceof java.lang.String) { 17607 com.google.protobuf.ByteString b = 17608 com.google.protobuf.ByteString.copyFromUtf8( 17609 (java.lang.String) ref); 17610 experimentalMapKey_ = b; 17611 return b; 17612 } else { 17613 return (com.google.protobuf.ByteString) ref; 17614 } 17615 } 17616 17617 // optional bool weak = 10 [default = false]; 17618 public static final int WEAK_FIELD_NUMBER = 10; 17619 private boolean weak_; 17620 /** 17621 * <code>optional bool weak = 10 [default = false];</code> 17622 * 17623 * <pre> 17624 * For Google-internal migration only. Do not use. 17625 * </pre> 17626 */ 17627 public boolean hasWeak() { 17628 return ((bitField0_ & 0x00000020) == 0x00000020); 17629 } 17630 /** 17631 * <code>optional bool weak = 10 [default = false];</code> 17632 * 17633 * <pre> 17634 * For Google-internal migration only. Do not use. 17635 * </pre> 17636 */ 17637 public boolean getWeak() { 17638 return weak_; 17639 } 17640 17641 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 17642 public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; 17643 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 17644 /** 17645 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17646 * 17647 * <pre> 17648 * The parser stores options it doesn't recognize here. See above. 17649 * </pre> 17650 */ 17651 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 17652 return uninterpretedOption_; 17653 } 17654 /** 17655 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17656 * 17657 * <pre> 17658 * The parser stores options it doesn't recognize here. See above. 17659 * </pre> 17660 */ 17661 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 17662 getUninterpretedOptionOrBuilderList() { 17663 return uninterpretedOption_; 17664 } 17665 /** 17666 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17667 * 17668 * <pre> 17669 * The parser stores options it doesn't recognize here. See above. 17670 * </pre> 17671 */ 17672 public int getUninterpretedOptionCount() { 17673 return uninterpretedOption_.size(); 17674 } 17675 /** 17676 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17677 * 17678 * <pre> 17679 * The parser stores options it doesn't recognize here. See above. 17680 * </pre> 17681 */ 17682 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 17683 return uninterpretedOption_.get(index); 17684 } 17685 /** 17686 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17687 * 17688 * <pre> 17689 * The parser stores options it doesn't recognize here. See above. 17690 * </pre> 17691 */ 17692 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 17693 int index) { 17694 return uninterpretedOption_.get(index); 17695 } 17696 17697 private void initFields() { 17698 ctype_ = com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING; 17699 packed_ = false; 17700 lazy_ = false; 17701 deprecated_ = false; 17702 experimentalMapKey_ = ""; 17703 weak_ = false; 17704 uninterpretedOption_ = java.util.Collections.emptyList(); 17705 } 17706 private byte memoizedIsInitialized = -1; 17707 public final boolean isInitialized() { 17708 byte isInitialized = memoizedIsInitialized; 17709 if (isInitialized != -1) return isInitialized == 1; 17710 17711 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 17712 if (!getUninterpretedOption(i).isInitialized()) { 17713 memoizedIsInitialized = 0; 17714 return false; 17715 } 17716 } 17717 if (!extensionsAreInitialized()) { 17718 memoizedIsInitialized = 0; 17719 return false; 17720 } 17721 memoizedIsInitialized = 1; 17722 return true; 17723 } 17724 17725 public void writeTo(com.google.protobuf.CodedOutputStream output) 17726 throws java.io.IOException { 17727 getSerializedSize(); 17728 com.google.protobuf.GeneratedMessage 17729 .ExtendableMessage<com.google.protobuf.DescriptorProtos.FieldOptions>.ExtensionWriter extensionWriter = 17730 newExtensionWriter(); 17731 if (((bitField0_ & 0x00000001) == 0x00000001)) { 17732 output.writeEnum(1, ctype_.getNumber()); 17733 } 17734 if (((bitField0_ & 0x00000002) == 0x00000002)) { 17735 output.writeBool(2, packed_); 17736 } 17737 if (((bitField0_ & 0x00000008) == 0x00000008)) { 17738 output.writeBool(3, deprecated_); 17739 } 17740 if (((bitField0_ & 0x00000004) == 0x00000004)) { 17741 output.writeBool(5, lazy_); 17742 } 17743 if (((bitField0_ & 0x00000010) == 0x00000010)) { 17744 output.writeBytes(9, getExperimentalMapKeyBytes()); 17745 } 17746 if (((bitField0_ & 0x00000020) == 0x00000020)) { 17747 output.writeBool(10, weak_); 17748 } 17749 for (int i = 0; i < uninterpretedOption_.size(); i++) { 17750 output.writeMessage(999, uninterpretedOption_.get(i)); 17751 } 17752 extensionWriter.writeUntil(536870912, output); 17753 getUnknownFields().writeTo(output); 17754 } 17755 17756 private int memoizedSerializedSize = -1; 17757 public int getSerializedSize() { 17758 int size = memoizedSerializedSize; 17759 if (size != -1) return size; 17760 17761 size = 0; 17762 if (((bitField0_ & 0x00000001) == 0x00000001)) { 17763 size += com.google.protobuf.CodedOutputStream 17764 .computeEnumSize(1, ctype_.getNumber()); 17765 } 17766 if (((bitField0_ & 0x00000002) == 0x00000002)) { 17767 size += com.google.protobuf.CodedOutputStream 17768 .computeBoolSize(2, packed_); 17769 } 17770 if (((bitField0_ & 0x00000008) == 0x00000008)) { 17771 size += com.google.protobuf.CodedOutputStream 17772 .computeBoolSize(3, deprecated_); 17773 } 17774 if (((bitField0_ & 0x00000004) == 0x00000004)) { 17775 size += com.google.protobuf.CodedOutputStream 17776 .computeBoolSize(5, lazy_); 17777 } 17778 if (((bitField0_ & 0x00000010) == 0x00000010)) { 17779 size += com.google.protobuf.CodedOutputStream 17780 .computeBytesSize(9, getExperimentalMapKeyBytes()); 17781 } 17782 if (((bitField0_ & 0x00000020) == 0x00000020)) { 17783 size += com.google.protobuf.CodedOutputStream 17784 .computeBoolSize(10, weak_); 17785 } 17786 for (int i = 0; i < uninterpretedOption_.size(); i++) { 17787 size += com.google.protobuf.CodedOutputStream 17788 .computeMessageSize(999, uninterpretedOption_.get(i)); 17789 } 17790 size += extensionsSerializedSize(); 17791 size += getUnknownFields().getSerializedSize(); 17792 memoizedSerializedSize = size; 17793 return size; 17794 } 17795 17796 private static final long serialVersionUID = 0L; 17797 @java.lang.Override 17798 protected java.lang.Object writeReplace() 17799 throws java.io.ObjectStreamException { 17800 return super.writeReplace(); 17801 } 17802 17803 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 17804 com.google.protobuf.ByteString data) 17805 throws com.google.protobuf.InvalidProtocolBufferException { 17806 return PARSER.parseFrom(data); 17807 } 17808 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 17809 com.google.protobuf.ByteString data, 17810 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 17811 throws com.google.protobuf.InvalidProtocolBufferException { 17812 return PARSER.parseFrom(data, extensionRegistry); 17813 } 17814 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom(byte[] data) 17815 throws com.google.protobuf.InvalidProtocolBufferException { 17816 return PARSER.parseFrom(data); 17817 } 17818 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 17819 byte[] data, 17820 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 17821 throws com.google.protobuf.InvalidProtocolBufferException { 17822 return PARSER.parseFrom(data, extensionRegistry); 17823 } 17824 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom(java.io.InputStream input) 17825 throws java.io.IOException { 17826 return PARSER.parseFrom(input); 17827 } 17828 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 17829 java.io.InputStream input, 17830 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 17831 throws java.io.IOException { 17832 return PARSER.parseFrom(input, extensionRegistry); 17833 } 17834 public static com.google.protobuf.DescriptorProtos.FieldOptions parseDelimitedFrom(java.io.InputStream input) 17835 throws java.io.IOException { 17836 return PARSER.parseDelimitedFrom(input); 17837 } 17838 public static com.google.protobuf.DescriptorProtos.FieldOptions parseDelimitedFrom( 17839 java.io.InputStream input, 17840 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 17841 throws java.io.IOException { 17842 return PARSER.parseDelimitedFrom(input, extensionRegistry); 17843 } 17844 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 17845 com.google.protobuf.CodedInputStream input) 17846 throws java.io.IOException { 17847 return PARSER.parseFrom(input); 17848 } 17849 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 17850 com.google.protobuf.CodedInputStream input, 17851 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 17852 throws java.io.IOException { 17853 return PARSER.parseFrom(input, extensionRegistry); 17854 } 17855 17856 public static Builder newBuilder() { return Builder.create(); } 17857 public Builder newBuilderForType() { return newBuilder(); } 17858 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FieldOptions prototype) { 17859 return newBuilder().mergeFrom(prototype); 17860 } 17861 public Builder toBuilder() { return newBuilder(this); } 17862 17863 @java.lang.Override 17864 protected Builder newBuilderForType( 17865 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 17866 Builder builder = new Builder(parent); 17867 return builder; 17868 } 17869 /** 17870 * Protobuf type {@code google.protobuf.FieldOptions} 17871 */ 17872 public static final class Builder extends 17873 com.google.protobuf.GeneratedMessage.ExtendableBuilder< 17874 com.google.protobuf.DescriptorProtos.FieldOptions, Builder> implements com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder { 17875 public static final com.google.protobuf.Descriptors.Descriptor 17876 getDescriptor() { 17877 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_descriptor; 17878 } 17879 17880 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 17881 internalGetFieldAccessorTable() { 17882 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_fieldAccessorTable 17883 .ensureFieldAccessorsInitialized( 17884 com.google.protobuf.DescriptorProtos.FieldOptions.class, com.google.protobuf.DescriptorProtos.FieldOptions.Builder.class); 17885 } 17886 17887 // Construct using com.google.protobuf.DescriptorProtos.FieldOptions.newBuilder() 17888 private Builder() { 17889 maybeForceBuilderInitialization(); 17890 } 17891 17892 private Builder( 17893 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 17894 super(parent); 17895 maybeForceBuilderInitialization(); 17896 } 17897 private void maybeForceBuilderInitialization() { 17898 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 17899 getUninterpretedOptionFieldBuilder(); 17900 } 17901 } 17902 private static Builder create() { 17903 return new Builder(); 17904 } 17905 17906 public Builder clear() { 17907 super.clear(); 17908 ctype_ = com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING; 17909 bitField0_ = (bitField0_ & ~0x00000001); 17910 packed_ = false; 17911 bitField0_ = (bitField0_ & ~0x00000002); 17912 lazy_ = false; 17913 bitField0_ = (bitField0_ & ~0x00000004); 17914 deprecated_ = false; 17915 bitField0_ = (bitField0_ & ~0x00000008); 17916 experimentalMapKey_ = ""; 17917 bitField0_ = (bitField0_ & ~0x00000010); 17918 weak_ = false; 17919 bitField0_ = (bitField0_ & ~0x00000020); 17920 if (uninterpretedOptionBuilder_ == null) { 17921 uninterpretedOption_ = java.util.Collections.emptyList(); 17922 bitField0_ = (bitField0_ & ~0x00000040); 17923 } else { 17924 uninterpretedOptionBuilder_.clear(); 17925 } 17926 return this; 17927 } 17928 17929 public Builder clone() { 17930 return create().mergeFrom(buildPartial()); 17931 } 17932 17933 public com.google.protobuf.Descriptors.Descriptor 17934 getDescriptorForType() { 17935 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_descriptor; 17936 } 17937 17938 public com.google.protobuf.DescriptorProtos.FieldOptions getDefaultInstanceForType() { 17939 return com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance(); 17940 } 17941 17942 public com.google.protobuf.DescriptorProtos.FieldOptions build() { 17943 com.google.protobuf.DescriptorProtos.FieldOptions result = buildPartial(); 17944 if (!result.isInitialized()) { 17945 throw newUninitializedMessageException(result); 17946 } 17947 return result; 17948 } 17949 17950 public com.google.protobuf.DescriptorProtos.FieldOptions buildPartial() { 17951 com.google.protobuf.DescriptorProtos.FieldOptions result = new com.google.protobuf.DescriptorProtos.FieldOptions(this); 17952 int from_bitField0_ = bitField0_; 17953 int to_bitField0_ = 0; 17954 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 17955 to_bitField0_ |= 0x00000001; 17956 } 17957 result.ctype_ = ctype_; 17958 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 17959 to_bitField0_ |= 0x00000002; 17960 } 17961 result.packed_ = packed_; 17962 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 17963 to_bitField0_ |= 0x00000004; 17964 } 17965 result.lazy_ = lazy_; 17966 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 17967 to_bitField0_ |= 0x00000008; 17968 } 17969 result.deprecated_ = deprecated_; 17970 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 17971 to_bitField0_ |= 0x00000010; 17972 } 17973 result.experimentalMapKey_ = experimentalMapKey_; 17974 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 17975 to_bitField0_ |= 0x00000020; 17976 } 17977 result.weak_ = weak_; 17978 if (uninterpretedOptionBuilder_ == null) { 17979 if (((bitField0_ & 0x00000040) == 0x00000040)) { 17980 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 17981 bitField0_ = (bitField0_ & ~0x00000040); 17982 } 17983 result.uninterpretedOption_ = uninterpretedOption_; 17984 } else { 17985 result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); 17986 } 17987 result.bitField0_ = to_bitField0_; 17988 onBuilt(); 17989 return result; 17990 } 17991 17992 public Builder mergeFrom(com.google.protobuf.Message other) { 17993 if (other instanceof com.google.protobuf.DescriptorProtos.FieldOptions) { 17994 return mergeFrom((com.google.protobuf.DescriptorProtos.FieldOptions)other); 17995 } else { 17996 super.mergeFrom(other); 17997 return this; 17998 } 17999 } 18000 18001 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FieldOptions other) { 18002 if (other == com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance()) return this; 18003 if (other.hasCtype()) { 18004 setCtype(other.getCtype()); 18005 } 18006 if (other.hasPacked()) { 18007 setPacked(other.getPacked()); 18008 } 18009 if (other.hasLazy()) { 18010 setLazy(other.getLazy()); 18011 } 18012 if (other.hasDeprecated()) { 18013 setDeprecated(other.getDeprecated()); 18014 } 18015 if (other.hasExperimentalMapKey()) { 18016 bitField0_ |= 0x00000010; 18017 experimentalMapKey_ = other.experimentalMapKey_; 18018 onChanged(); 18019 } 18020 if (other.hasWeak()) { 18021 setWeak(other.getWeak()); 18022 } 18023 if (uninterpretedOptionBuilder_ == null) { 18024 if (!other.uninterpretedOption_.isEmpty()) { 18025 if (uninterpretedOption_.isEmpty()) { 18026 uninterpretedOption_ = other.uninterpretedOption_; 18027 bitField0_ = (bitField0_ & ~0x00000040); 18028 } else { 18029 ensureUninterpretedOptionIsMutable(); 18030 uninterpretedOption_.addAll(other.uninterpretedOption_); 18031 } 18032 onChanged(); 18033 } 18034 } else { 18035 if (!other.uninterpretedOption_.isEmpty()) { 18036 if (uninterpretedOptionBuilder_.isEmpty()) { 18037 uninterpretedOptionBuilder_.dispose(); 18038 uninterpretedOptionBuilder_ = null; 18039 uninterpretedOption_ = other.uninterpretedOption_; 18040 bitField0_ = (bitField0_ & ~0x00000040); 18041 uninterpretedOptionBuilder_ = 18042 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 18043 getUninterpretedOptionFieldBuilder() : null; 18044 } else { 18045 uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); 18046 } 18047 } 18048 } 18049 this.mergeExtensionFields(other); 18050 this.mergeUnknownFields(other.getUnknownFields()); 18051 return this; 18052 } 18053 18054 public final boolean isInitialized() { 18055 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 18056 if (!getUninterpretedOption(i).isInitialized()) { 18057 18058 return false; 18059 } 18060 } 18061 if (!extensionsAreInitialized()) { 18062 18063 return false; 18064 } 18065 return true; 18066 } 18067 18068 public Builder mergeFrom( 18069 com.google.protobuf.CodedInputStream input, 18070 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 18071 throws java.io.IOException { 18072 com.google.protobuf.DescriptorProtos.FieldOptions parsedMessage = null; 18073 try { 18074 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 18075 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 18076 parsedMessage = (com.google.protobuf.DescriptorProtos.FieldOptions) e.getUnfinishedMessage(); 18077 throw e; 18078 } finally { 18079 if (parsedMessage != null) { 18080 mergeFrom(parsedMessage); 18081 } 18082 } 18083 return this; 18084 } 11950 18085 private int bitField0_; 11951 18086 11952 18087 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; 11953 18088 private com.google.protobuf.DescriptorProtos.FieldOptions.CType ctype_ = com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING; 18089 /** 18090 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 18091 * 18092 * <pre> 18093 * The ctype option instructs the C++ code generator to use a different 18094 * representation of the field than it normally would. See the specific 18095 * options below. This option is not yet implemented in the open source 18096 * release -- sorry, we'll try to include it in a future version! 18097 * </pre> 18098 */ 11954 18099 public boolean hasCtype() { 11955 18100 return ((bitField0_ & 0x00000001) == 0x00000001); 11956 18101 } 18102 /** 18103 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 18104 * 18105 * <pre> 18106 * The ctype option instructs the C++ code generator to use a different 18107 * representation of the field than it normally would. See the specific 18108 * options below. This option is not yet implemented in the open source 18109 * release -- sorry, we'll try to include it in a future version! 18110 * </pre> 18111 */ 11957 18112 public com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype() { 11958 18113 return ctype_; 11959 18114 } 18115 /** 18116 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 18117 * 18118 * <pre> 18119 * The ctype option instructs the C++ code generator to use a different 18120 * representation of the field than it normally would. See the specific 18121 * options below. This option is not yet implemented in the open source 18122 * release -- sorry, we'll try to include it in a future version! 18123 * </pre> 18124 */ 11960 18125 public Builder setCtype(com.google.protobuf.DescriptorProtos.FieldOptions.CType value) { 11961 18126 if (value == null) { … … 11967 18132 return this; 11968 18133 } 18134 /** 18135 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 18136 * 18137 * <pre> 18138 * The ctype option instructs the C++ code generator to use a different 18139 * representation of the field than it normally would. See the specific 18140 * options below. This option is not yet implemented in the open source 18141 * release -- sorry, we'll try to include it in a future version! 18142 * </pre> 18143 */ 11969 18144 public Builder clearCtype() { 11970 18145 bitField0_ = (bitField0_ & ~0x00000001); … … 11973 18148 return this; 11974 18149 } 11975 18150 11976 18151 // optional bool packed = 2; 11977 18152 private boolean packed_ ; 18153 /** 18154 * <code>optional bool packed = 2;</code> 18155 * 18156 * <pre> 18157 * The packed option can be enabled for repeated primitive fields to enable 18158 * a more efficient representation on the wire. Rather than repeatedly 18159 * writing the tag and type for each element, the entire array is encoded as 18160 * a single length-delimited blob. 18161 * </pre> 18162 */ 11978 18163 public boolean hasPacked() { 11979 18164 return ((bitField0_ & 0x00000002) == 0x00000002); 11980 18165 } 18166 /** 18167 * <code>optional bool packed = 2;</code> 18168 * 18169 * <pre> 18170 * The packed option can be enabled for repeated primitive fields to enable 18171 * a more efficient representation on the wire. Rather than repeatedly 18172 * writing the tag and type for each element, the entire array is encoded as 18173 * a single length-delimited blob. 18174 * </pre> 18175 */ 11981 18176 public boolean getPacked() { 11982 18177 return packed_; 11983 18178 } 18179 /** 18180 * <code>optional bool packed = 2;</code> 18181 * 18182 * <pre> 18183 * The packed option can be enabled for repeated primitive fields to enable 18184 * a more efficient representation on the wire. Rather than repeatedly 18185 * writing the tag and type for each element, the entire array is encoded as 18186 * a single length-delimited blob. 18187 * </pre> 18188 */ 11984 18189 public Builder setPacked(boolean value) { 11985 18190 bitField0_ |= 0x00000002; … … 11988 18193 return this; 11989 18194 } 18195 /** 18196 * <code>optional bool packed = 2;</code> 18197 * 18198 * <pre> 18199 * The packed option can be enabled for repeated primitive fields to enable 18200 * a more efficient representation on the wire. Rather than repeatedly 18201 * writing the tag and type for each element, the entire array is encoded as 18202 * a single length-delimited blob. 18203 * </pre> 18204 */ 11990 18205 public Builder clearPacked() { 11991 18206 bitField0_ = (bitField0_ & ~0x00000002); … … 11994 18209 return this; 11995 18210 } 11996 18211 11997 18212 // optional bool lazy = 5 [default = false]; 11998 18213 private boolean lazy_ ; 18214 /** 18215 * <code>optional bool lazy = 5 [default = false];</code> 18216 * 18217 * <pre> 18218 * Should this field be parsed lazily? Lazy applies only to message-type 18219 * fields. It means that when the outer message is initially parsed, the 18220 * inner message's contents will not be parsed but instead stored in encoded 18221 * form. The inner message will actually be parsed when it is first accessed. 18222 * 18223 * This is only a hint. Implementations are free to choose whether to use 18224 * eager or lazy parsing regardless of the value of this option. However, 18225 * setting this option true suggests that the protocol author believes that 18226 * using lazy parsing on this field is worth the additional bookkeeping 18227 * overhead typically needed to implement it. 18228 * 18229 * This option does not affect the public interface of any generated code; 18230 * all method signatures remain the same. Furthermore, thread-safety of the 18231 * interface is not affected by this option; const methods remain safe to 18232 * call from multiple threads concurrently, while non-const methods continue 18233 * to require exclusive access. 18234 * 18235 * 18236 * Note that implementations may choose not to check required fields within 18237 * a lazy sub-message. That is, calling IsInitialized() on the outher message 18238 * may return true even if the inner message has missing required fields. 18239 * This is necessary because otherwise the inner message would have to be 18240 * parsed in order to perform the check, defeating the purpose of lazy 18241 * parsing. An implementation which chooses not to check required fields 18242 * must be consistent about it. That is, for any particular sub-message, the 18243 * implementation must either *always* check its required fields, or *never* 18244 * check its required fields, regardless of whether or not the message has 18245 * been parsed. 18246 * </pre> 18247 */ 11999 18248 public boolean hasLazy() { 12000 18249 return ((bitField0_ & 0x00000004) == 0x00000004); 12001 18250 } 18251 /** 18252 * <code>optional bool lazy = 5 [default = false];</code> 18253 * 18254 * <pre> 18255 * Should this field be parsed lazily? Lazy applies only to message-type 18256 * fields. It means that when the outer message is initially parsed, the 18257 * inner message's contents will not be parsed but instead stored in encoded 18258 * form. The inner message will actually be parsed when it is first accessed. 18259 * 18260 * This is only a hint. Implementations are free to choose whether to use 18261 * eager or lazy parsing regardless of the value of this option. However, 18262 * setting this option true suggests that the protocol author believes that 18263 * using lazy parsing on this field is worth the additional bookkeeping 18264 * overhead typically needed to implement it. 18265 * 18266 * This option does not affect the public interface of any generated code; 18267 * all method signatures remain the same. Furthermore, thread-safety of the 18268 * interface is not affected by this option; const methods remain safe to 18269 * call from multiple threads concurrently, while non-const methods continue 18270 * to require exclusive access. 18271 * 18272 * 18273 * Note that implementations may choose not to check required fields within 18274 * a lazy sub-message. That is, calling IsInitialized() on the outher message 18275 * may return true even if the inner message has missing required fields. 18276 * This is necessary because otherwise the inner message would have to be 18277 * parsed in order to perform the check, defeating the purpose of lazy 18278 * parsing. An implementation which chooses not to check required fields 18279 * must be consistent about it. That is, for any particular sub-message, the 18280 * implementation must either *always* check its required fields, or *never* 18281 * check its required fields, regardless of whether or not the message has 18282 * been parsed. 18283 * </pre> 18284 */ 12002 18285 public boolean getLazy() { 12003 18286 return lazy_; 12004 18287 } 18288 /** 18289 * <code>optional bool lazy = 5 [default = false];</code> 18290 * 18291 * <pre> 18292 * Should this field be parsed lazily? Lazy applies only to message-type 18293 * fields. It means that when the outer message is initially parsed, the 18294 * inner message's contents will not be parsed but instead stored in encoded 18295 * form. The inner message will actually be parsed when it is first accessed. 18296 * 18297 * This is only a hint. Implementations are free to choose whether to use 18298 * eager or lazy parsing regardless of the value of this option. However, 18299 * setting this option true suggests that the protocol author believes that 18300 * using lazy parsing on this field is worth the additional bookkeeping 18301 * overhead typically needed to implement it. 18302 * 18303 * This option does not affect the public interface of any generated code; 18304 * all method signatures remain the same. Furthermore, thread-safety of the 18305 * interface is not affected by this option; const methods remain safe to 18306 * call from multiple threads concurrently, while non-const methods continue 18307 * to require exclusive access. 18308 * 18309 * 18310 * Note that implementations may choose not to check required fields within 18311 * a lazy sub-message. That is, calling IsInitialized() on the outher message 18312 * may return true even if the inner message has missing required fields. 18313 * This is necessary because otherwise the inner message would have to be 18314 * parsed in order to perform the check, defeating the purpose of lazy 18315 * parsing. An implementation which chooses not to check required fields 18316 * must be consistent about it. That is, for any particular sub-message, the 18317 * implementation must either *always* check its required fields, or *never* 18318 * check its required fields, regardless of whether or not the message has 18319 * been parsed. 18320 * </pre> 18321 */ 12005 18322 public Builder setLazy(boolean value) { 12006 18323 bitField0_ |= 0x00000004; … … 12009 18326 return this; 12010 18327 } 18328 /** 18329 * <code>optional bool lazy = 5 [default = false];</code> 18330 * 18331 * <pre> 18332 * Should this field be parsed lazily? Lazy applies only to message-type 18333 * fields. It means that when the outer message is initially parsed, the 18334 * inner message's contents will not be parsed but instead stored in encoded 18335 * form. The inner message will actually be parsed when it is first accessed. 18336 * 18337 * This is only a hint. Implementations are free to choose whether to use 18338 * eager or lazy parsing regardless of the value of this option. However, 18339 * setting this option true suggests that the protocol author believes that 18340 * using lazy parsing on this field is worth the additional bookkeeping 18341 * overhead typically needed to implement it. 18342 * 18343 * This option does not affect the public interface of any generated code; 18344 * all method signatures remain the same. Furthermore, thread-safety of the 18345 * interface is not affected by this option; const methods remain safe to 18346 * call from multiple threads concurrently, while non-const methods continue 18347 * to require exclusive access. 18348 * 18349 * 18350 * Note that implementations may choose not to check required fields within 18351 * a lazy sub-message. That is, calling IsInitialized() on the outher message 18352 * may return true even if the inner message has missing required fields. 18353 * This is necessary because otherwise the inner message would have to be 18354 * parsed in order to perform the check, defeating the purpose of lazy 18355 * parsing. An implementation which chooses not to check required fields 18356 * must be consistent about it. That is, for any particular sub-message, the 18357 * implementation must either *always* check its required fields, or *never* 18358 * check its required fields, regardless of whether or not the message has 18359 * been parsed. 18360 * </pre> 18361 */ 12011 18362 public Builder clearLazy() { 12012 18363 bitField0_ = (bitField0_ & ~0x00000004); … … 12015 18366 return this; 12016 18367 } 12017 18368 12018 18369 // optional bool deprecated = 3 [default = false]; 12019 18370 private boolean deprecated_ ; 18371 /** 18372 * <code>optional bool deprecated = 3 [default = false];</code> 18373 * 18374 * <pre> 18375 * Is this field deprecated? 18376 * Depending on the target platform, this can emit Deprecated annotations 18377 * for accessors, or it will be completely ignored; in the very least, this 18378 * is a formalization for deprecating fields. 18379 * </pre> 18380 */ 12020 18381 public boolean hasDeprecated() { 12021 18382 return ((bitField0_ & 0x00000008) == 0x00000008); 12022 18383 } 18384 /** 18385 * <code>optional bool deprecated = 3 [default = false];</code> 18386 * 18387 * <pre> 18388 * Is this field deprecated? 18389 * Depending on the target platform, this can emit Deprecated annotations 18390 * for accessors, or it will be completely ignored; in the very least, this 18391 * is a formalization for deprecating fields. 18392 * </pre> 18393 */ 12023 18394 public boolean getDeprecated() { 12024 18395 return deprecated_; 12025 18396 } 18397 /** 18398 * <code>optional bool deprecated = 3 [default = false];</code> 18399 * 18400 * <pre> 18401 * Is this field deprecated? 18402 * Depending on the target platform, this can emit Deprecated annotations 18403 * for accessors, or it will be completely ignored; in the very least, this 18404 * is a formalization for deprecating fields. 18405 * </pre> 18406 */ 12026 18407 public Builder setDeprecated(boolean value) { 12027 18408 bitField0_ |= 0x00000008; … … 12030 18411 return this; 12031 18412 } 18413 /** 18414 * <code>optional bool deprecated = 3 [default = false];</code> 18415 * 18416 * <pre> 18417 * Is this field deprecated? 18418 * Depending on the target platform, this can emit Deprecated annotations 18419 * for accessors, or it will be completely ignored; in the very least, this 18420 * is a formalization for deprecating fields. 18421 * </pre> 18422 */ 12032 18423 public Builder clearDeprecated() { 12033 18424 bitField0_ = (bitField0_ & ~0x00000008); … … 12036 18427 return this; 12037 18428 } 12038 18429 12039 18430 // optional string experimental_map_key = 9; 12040 18431 private java.lang.Object experimentalMapKey_ = ""; 18432 /** 18433 * <code>optional string experimental_map_key = 9;</code> 18434 * 18435 * <pre> 18436 * EXPERIMENTAL. DO NOT USE. 18437 * For "map" fields, the name of the field in the enclosed type that 18438 * is the key for this map. For example, suppose we have: 18439 * message Item { 18440 * required string name = 1; 18441 * required string value = 2; 18442 * } 18443 * message Config { 18444 * repeated Item items = 1 [experimental_map_key="name"]; 18445 * } 18446 * In this situation, the map key for Item will be set to "name". 18447 * TODO: Fully-implement this, then remove the "experimental_" prefix. 18448 * </pre> 18449 */ 12041 18450 public boolean hasExperimentalMapKey() { 12042 18451 return ((bitField0_ & 0x00000010) == 0x00000010); 12043 18452 } 12044 public String getExperimentalMapKey() { 18453 /** 18454 * <code>optional string experimental_map_key = 9;</code> 18455 * 18456 * <pre> 18457 * EXPERIMENTAL. DO NOT USE. 18458 * For "map" fields, the name of the field in the enclosed type that 18459 * is the key for this map. For example, suppose we have: 18460 * message Item { 18461 * required string name = 1; 18462 * required string value = 2; 18463 * } 18464 * message Config { 18465 * repeated Item items = 1 [experimental_map_key="name"]; 18466 * } 18467 * In this situation, the map key for Item will be set to "name". 18468 * TODO: Fully-implement this, then remove the "experimental_" prefix. 18469 * </pre> 18470 */ 18471 public java.lang.String getExperimentalMapKey() { 12045 18472 java.lang.Object ref = experimentalMapKey_; 12046 if (!(ref instanceof String)) { 12047 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 18473 if (!(ref instanceof java.lang.String)) { 18474 java.lang.String s = ((com.google.protobuf.ByteString) ref) 18475 .toStringUtf8(); 12048 18476 experimentalMapKey_ = s; 12049 18477 return s; 12050 18478 } else { 12051 return (String) ref; 12052 } 12053 } 12054 public Builder setExperimentalMapKey(String value) { 18479 return (java.lang.String) ref; 18480 } 18481 } 18482 /** 18483 * <code>optional string experimental_map_key = 9;</code> 18484 * 18485 * <pre> 18486 * EXPERIMENTAL. DO NOT USE. 18487 * For "map" fields, the name of the field in the enclosed type that 18488 * is the key for this map. For example, suppose we have: 18489 * message Item { 18490 * required string name = 1; 18491 * required string value = 2; 18492 * } 18493 * message Config { 18494 * repeated Item items = 1 [experimental_map_key="name"]; 18495 * } 18496 * In this situation, the map key for Item will be set to "name". 18497 * TODO: Fully-implement this, then remove the "experimental_" prefix. 18498 * </pre> 18499 */ 18500 public com.google.protobuf.ByteString 18501 getExperimentalMapKeyBytes() { 18502 java.lang.Object ref = experimentalMapKey_; 18503 if (ref instanceof String) { 18504 com.google.protobuf.ByteString b = 18505 com.google.protobuf.ByteString.copyFromUtf8( 18506 (java.lang.String) ref); 18507 experimentalMapKey_ = b; 18508 return b; 18509 } else { 18510 return (com.google.protobuf.ByteString) ref; 18511 } 18512 } 18513 /** 18514 * <code>optional string experimental_map_key = 9;</code> 18515 * 18516 * <pre> 18517 * EXPERIMENTAL. DO NOT USE. 18518 * For "map" fields, the name of the field in the enclosed type that 18519 * is the key for this map. For example, suppose we have: 18520 * message Item { 18521 * required string name = 1; 18522 * required string value = 2; 18523 * } 18524 * message Config { 18525 * repeated Item items = 1 [experimental_map_key="name"]; 18526 * } 18527 * In this situation, the map key for Item will be set to "name". 18528 * TODO: Fully-implement this, then remove the "experimental_" prefix. 18529 * </pre> 18530 */ 18531 public Builder setExperimentalMapKey( 18532 java.lang.String value) { 12055 18533 if (value == null) { 12056 18534 throw new NullPointerException(); … … 12061 18539 return this; 12062 18540 } 18541 /** 18542 * <code>optional string experimental_map_key = 9;</code> 18543 * 18544 * <pre> 18545 * EXPERIMENTAL. DO NOT USE. 18546 * For "map" fields, the name of the field in the enclosed type that 18547 * is the key for this map. For example, suppose we have: 18548 * message Item { 18549 * required string name = 1; 18550 * required string value = 2; 18551 * } 18552 * message Config { 18553 * repeated Item items = 1 [experimental_map_key="name"]; 18554 * } 18555 * In this situation, the map key for Item will be set to "name". 18556 * TODO: Fully-implement this, then remove the "experimental_" prefix. 18557 * </pre> 18558 */ 12063 18559 public Builder clearExperimentalMapKey() { 12064 18560 bitField0_ = (bitField0_ & ~0x00000010); … … 12067 18563 return this; 12068 18564 } 12069 void setExperimentalMapKey(com.google.protobuf.ByteString value) { 12070 bitField0_ |= 0x00000010; 18565 /** 18566 * <code>optional string experimental_map_key = 9;</code> 18567 * 18568 * <pre> 18569 * EXPERIMENTAL. DO NOT USE. 18570 * For "map" fields, the name of the field in the enclosed type that 18571 * is the key for this map. For example, suppose we have: 18572 * message Item { 18573 * required string name = 1; 18574 * required string value = 2; 18575 * } 18576 * message Config { 18577 * repeated Item items = 1 [experimental_map_key="name"]; 18578 * } 18579 * In this situation, the map key for Item will be set to "name". 18580 * TODO: Fully-implement this, then remove the "experimental_" prefix. 18581 * </pre> 18582 */ 18583 public Builder setExperimentalMapKeyBytes( 18584 com.google.protobuf.ByteString value) { 18585 if (value == null) { 18586 throw new NullPointerException(); 18587 } 18588 bitField0_ |= 0x00000010; 12071 18589 experimentalMapKey_ = value; 12072 18590 onChanged(); 12073 } 12074 18591 return this; 18592 } 18593 12075 18594 // optional bool weak = 10 [default = false]; 12076 18595 private boolean weak_ ; 18596 /** 18597 * <code>optional bool weak = 10 [default = false];</code> 18598 * 18599 * <pre> 18600 * For Google-internal migration only. Do not use. 18601 * </pre> 18602 */ 12077 18603 public boolean hasWeak() { 12078 18604 return ((bitField0_ & 0x00000020) == 0x00000020); 12079 18605 } 18606 /** 18607 * <code>optional bool weak = 10 [default = false];</code> 18608 * 18609 * <pre> 18610 * For Google-internal migration only. Do not use. 18611 * </pre> 18612 */ 12080 18613 public boolean getWeak() { 12081 18614 return weak_; 12082 18615 } 18616 /** 18617 * <code>optional bool weak = 10 [default = false];</code> 18618 * 18619 * <pre> 18620 * For Google-internal migration only. Do not use. 18621 * </pre> 18622 */ 12083 18623 public Builder setWeak(boolean value) { 12084 18624 bitField0_ |= 0x00000020; … … 12087 18627 return this; 12088 18628 } 18629 /** 18630 * <code>optional bool weak = 10 [default = false];</code> 18631 * 18632 * <pre> 18633 * For Google-internal migration only. Do not use. 18634 * </pre> 18635 */ 12089 18636 public Builder clearWeak() { 12090 18637 bitField0_ = (bitField0_ & ~0x00000020); … … 12093 18640 return this; 12094 18641 } 12095 18642 12096 18643 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 12097 18644 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = … … 12103 18650 } 12104 18651 } 12105 18652 12106 18653 private com.google.protobuf.RepeatedFieldBuilder< 12107 18654 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 12108 18655 18656 /** 18657 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18658 * 18659 * <pre> 18660 * The parser stores options it doesn't recognize here. See above. 18661 * </pre> 18662 */ 12109 18663 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 12110 18664 if (uninterpretedOptionBuilder_ == null) { … … 12114 18668 } 12115 18669 } 18670 /** 18671 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18672 * 18673 * <pre> 18674 * The parser stores options it doesn't recognize here. See above. 18675 * </pre> 18676 */ 12116 18677 public int getUninterpretedOptionCount() { 12117 18678 if (uninterpretedOptionBuilder_ == null) { … … 12121 18682 } 12122 18683 } 18684 /** 18685 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18686 * 18687 * <pre> 18688 * The parser stores options it doesn't recognize here. See above. 18689 * </pre> 18690 */ 12123 18691 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 12124 18692 if (uninterpretedOptionBuilder_ == null) { … … 12128 18696 } 12129 18697 } 18698 /** 18699 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18700 * 18701 * <pre> 18702 * The parser stores options it doesn't recognize here. See above. 18703 * </pre> 18704 */ 12130 18705 public Builder setUninterpretedOption( 12131 18706 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 12142 18717 return this; 12143 18718 } 18719 /** 18720 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18721 * 18722 * <pre> 18723 * The parser stores options it doesn't recognize here. See above. 18724 * </pre> 18725 */ 12144 18726 public Builder setUninterpretedOption( 12145 18727 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 12153 18735 return this; 12154 18736 } 18737 /** 18738 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18739 * 18740 * <pre> 18741 * The parser stores options it doesn't recognize here. See above. 18742 * </pre> 18743 */ 12155 18744 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { 12156 18745 if (uninterpretedOptionBuilder_ == null) { … … 12166 18755 return this; 12167 18756 } 18757 /** 18758 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18759 * 18760 * <pre> 18761 * The parser stores options it doesn't recognize here. See above. 18762 * </pre> 18763 */ 12168 18764 public Builder addUninterpretedOption( 12169 18765 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 12180 18776 return this; 12181 18777 } 18778 /** 18779 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18780 * 18781 * <pre> 18782 * The parser stores options it doesn't recognize here. See above. 18783 * </pre> 18784 */ 12182 18785 public Builder addUninterpretedOption( 12183 18786 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 12191 18794 return this; 12192 18795 } 18796 /** 18797 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18798 * 18799 * <pre> 18800 * The parser stores options it doesn't recognize here. See above. 18801 * </pre> 18802 */ 12193 18803 public Builder addUninterpretedOption( 12194 18804 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 12202 18812 return this; 12203 18813 } 18814 /** 18815 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18816 * 18817 * <pre> 18818 * The parser stores options it doesn't recognize here. See above. 18819 * </pre> 18820 */ 12204 18821 public Builder addAllUninterpretedOption( 12205 18822 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { … … 12213 18830 return this; 12214 18831 } 18832 /** 18833 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18834 * 18835 * <pre> 18836 * The parser stores options it doesn't recognize here. See above. 18837 * </pre> 18838 */ 12215 18839 public Builder clearUninterpretedOption() { 12216 18840 if (uninterpretedOptionBuilder_ == null) { … … 12223 18847 return this; 12224 18848 } 18849 /** 18850 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18851 * 18852 * <pre> 18853 * The parser stores options it doesn't recognize here. See above. 18854 * </pre> 18855 */ 12225 18856 public Builder removeUninterpretedOption(int index) { 12226 18857 if (uninterpretedOptionBuilder_ == null) { … … 12233 18864 return this; 12234 18865 } 18866 /** 18867 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18868 * 18869 * <pre> 18870 * The parser stores options it doesn't recognize here. See above. 18871 * </pre> 18872 */ 12235 18873 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( 12236 18874 int index) { 12237 18875 return getUninterpretedOptionFieldBuilder().getBuilder(index); 12238 18876 } 18877 /** 18878 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18879 * 18880 * <pre> 18881 * The parser stores options it doesn't recognize here. See above. 18882 * </pre> 18883 */ 12239 18884 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 12240 18885 int index) { … … 12244 18889 } 12245 18890 } 18891 /** 18892 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18893 * 18894 * <pre> 18895 * The parser stores options it doesn't recognize here. See above. 18896 * </pre> 18897 */ 12246 18898 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 12247 18899 getUninterpretedOptionOrBuilderList() { … … 12252 18904 } 12253 18905 } 18906 /** 18907 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18908 * 18909 * <pre> 18910 * The parser stores options it doesn't recognize here. See above. 18911 * </pre> 18912 */ 12254 18913 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { 12255 18914 return getUninterpretedOptionFieldBuilder().addBuilder( 12256 18915 com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 12257 18916 } 18917 /** 18918 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18919 * 18920 * <pre> 18921 * The parser stores options it doesn't recognize here. See above. 18922 * </pre> 18923 */ 12258 18924 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( 12259 18925 int index) { … … 12261 18927 index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 12262 18928 } 18929 /** 18930 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18931 * 18932 * <pre> 18933 * The parser stores options it doesn't recognize here. See above. 18934 * </pre> 18935 */ 12263 18936 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 12264 18937 getUninterpretedOptionBuilderList() { … … 12279 18952 return uninterpretedOptionBuilder_; 12280 18953 } 12281 18954 12282 18955 // @@protoc_insertion_point(builder_scope:google.protobuf.FieldOptions) 12283 18956 } 12284 18957 12285 18958 static { 12286 18959 defaultInstance = new FieldOptions(true); 12287 18960 defaultInstance.initFields(); 12288 18961 } 12289 18962 12290 18963 // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions) 12291 18964 } 12292 18965 12293 18966 public interface EnumOptionsOrBuilder extends 12294 18967 com.google.protobuf.GeneratedMessage. 12295 18968 ExtendableMessageOrBuilder<EnumOptions> { 12296 18969 12297 18970 // optional bool allow_alias = 2 [default = true]; 18971 /** 18972 * <code>optional bool allow_alias = 2 [default = true];</code> 18973 * 18974 * <pre> 18975 * Set this option to false to disallow mapping different tag names to a same 18976 * value. 18977 * </pre> 18978 */ 12298 18979 boolean hasAllowAlias(); 18980 /** 18981 * <code>optional bool allow_alias = 2 [default = true];</code> 18982 * 18983 * <pre> 18984 * Set this option to false to disallow mapping different tag names to a same 18985 * value. 18986 * </pre> 18987 */ 12299 18988 boolean getAllowAlias(); 12300 18989 12301 18990 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 18991 /** 18992 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18993 * 18994 * <pre> 18995 * The parser stores options it doesn't recognize here. See above. 18996 * </pre> 18997 */ 12302 18998 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 12303 18999 getUninterpretedOptionList(); 19000 /** 19001 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19002 * 19003 * <pre> 19004 * The parser stores options it doesn't recognize here. See above. 19005 * </pre> 19006 */ 12304 19007 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 19008 /** 19009 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19010 * 19011 * <pre> 19012 * The parser stores options it doesn't recognize here. See above. 19013 * </pre> 19014 */ 12305 19015 int getUninterpretedOptionCount(); 19016 /** 19017 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19018 * 19019 * <pre> 19020 * The parser stores options it doesn't recognize here. See above. 19021 * </pre> 19022 */ 12306 19023 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 12307 19024 getUninterpretedOptionOrBuilderList(); 19025 /** 19026 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19027 * 19028 * <pre> 19029 * The parser stores options it doesn't recognize here. See above. 19030 * </pre> 19031 */ 12308 19032 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 12309 19033 int index); 12310 19034 } 19035 /** 19036 * Protobuf type {@code google.protobuf.EnumOptions} 19037 */ 12311 19038 public static final class EnumOptions extends 12312 19039 com.google.protobuf.GeneratedMessage.ExtendableMessage< 12313 19040 EnumOptions> implements EnumOptionsOrBuilder { 12314 19041 // Use EnumOptions.newBuilder() to construct. 12315 private EnumOptions( Builderbuilder) {19042 private EnumOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.DescriptorProtos.EnumOptions, ?> builder) { 12316 19043 super(builder); 12317 } 12318 private EnumOptions(boolean noInit) {} 12319 19044 this.unknownFields = builder.getUnknownFields(); 19045 } 19046 private EnumOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 19047 12320 19048 private static final EnumOptions defaultInstance; 12321 19049 public static EnumOptions getDefaultInstance() { 12322 19050 return defaultInstance; 12323 19051 } 12324 19052 12325 19053 public EnumOptions getDefaultInstanceForType() { 12326 19054 return defaultInstance; 12327 19055 } 12328 19056 19057 private final com.google.protobuf.UnknownFieldSet unknownFields; 19058 @java.lang.Override 19059 public final com.google.protobuf.UnknownFieldSet 19060 getUnknownFields() { 19061 return this.unknownFields; 19062 } 19063 private EnumOptions( 19064 com.google.protobuf.CodedInputStream input, 19065 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 19066 throws com.google.protobuf.InvalidProtocolBufferException { 19067 initFields(); 19068 int mutable_bitField0_ = 0; 19069 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 19070 com.google.protobuf.UnknownFieldSet.newBuilder(); 19071 try { 19072 boolean done = false; 19073 while (!done) { 19074 int tag = input.readTag(); 19075 switch (tag) { 19076 case 0: 19077 done = true; 19078 break; 19079 default: { 19080 if (!parseUnknownField(input, unknownFields, 19081 extensionRegistry, tag)) { 19082 done = true; 19083 } 19084 break; 19085 } 19086 case 16: { 19087 bitField0_ |= 0x00000001; 19088 allowAlias_ = input.readBool(); 19089 break; 19090 } 19091 case 7994: { 19092 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 19093 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 19094 mutable_bitField0_ |= 0x00000002; 19095 } 19096 uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 19097 break; 19098 } 19099 } 19100 } 19101 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 19102 throw e.setUnfinishedMessage(this); 19103 } catch (java.io.IOException e) { 19104 throw new com.google.protobuf.InvalidProtocolBufferException( 19105 e.getMessage()).setUnfinishedMessage(this); 19106 } finally { 19107 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 19108 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 19109 } 19110 this.unknownFields = unknownFields.build(); 19111 makeExtensionsImmutable(); 19112 } 19113 } 12329 19114 public static final com.google.protobuf.Descriptors.Descriptor 12330 19115 getDescriptor() { 12331 19116 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumOptions_descriptor; 12332 19117 } 12333 19118 12334 19119 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 12335 19120 internalGetFieldAccessorTable() { 12336 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumOptions_fieldAccessorTable; 12337 } 12338 19121 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumOptions_fieldAccessorTable 19122 .ensureFieldAccessorsInitialized( 19123 com.google.protobuf.DescriptorProtos.EnumOptions.class, com.google.protobuf.DescriptorProtos.EnumOptions.Builder.class); 19124 } 19125 19126 public static com.google.protobuf.Parser<EnumOptions> PARSER = 19127 new com.google.protobuf.AbstractParser<EnumOptions>() { 19128 public EnumOptions parsePartialFrom( 19129 com.google.protobuf.CodedInputStream input, 19130 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 19131 throws com.google.protobuf.InvalidProtocolBufferException { 19132 return new EnumOptions(input, extensionRegistry); 19133 } 19134 }; 19135 19136 @java.lang.Override 19137 public com.google.protobuf.Parser<EnumOptions> getParserForType() { 19138 return PARSER; 19139 } 19140 12339 19141 private int bitField0_; 12340 19142 // optional bool allow_alias = 2 [default = true]; 12341 19143 public static final int ALLOW_ALIAS_FIELD_NUMBER = 2; 12342 19144 private boolean allowAlias_; 19145 /** 19146 * <code>optional bool allow_alias = 2 [default = true];</code> 19147 * 19148 * <pre> 19149 * Set this option to false to disallow mapping different tag names to a same 19150 * value. 19151 * </pre> 19152 */ 12343 19153 public boolean hasAllowAlias() { 12344 19154 return ((bitField0_ & 0x00000001) == 0x00000001); 12345 19155 } 19156 /** 19157 * <code>optional bool allow_alias = 2 [default = true];</code> 19158 * 19159 * <pre> 19160 * Set this option to false to disallow mapping different tag names to a same 19161 * value. 19162 * </pre> 19163 */ 12346 19164 public boolean getAllowAlias() { 12347 19165 return allowAlias_; 12348 19166 } 12349 19167 12350 19168 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 12351 19169 public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; 12352 19170 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 19171 /** 19172 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19173 * 19174 * <pre> 19175 * The parser stores options it doesn't recognize here. See above. 19176 * </pre> 19177 */ 12353 19178 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 12354 19179 return uninterpretedOption_; 12355 19180 } 19181 /** 19182 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19183 * 19184 * <pre> 19185 * The parser stores options it doesn't recognize here. See above. 19186 * </pre> 19187 */ 12356 19188 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 12357 19189 getUninterpretedOptionOrBuilderList() { 12358 19190 return uninterpretedOption_; 12359 19191 } 19192 /** 19193 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19194 * 19195 * <pre> 19196 * The parser stores options it doesn't recognize here. See above. 19197 * </pre> 19198 */ 12360 19199 public int getUninterpretedOptionCount() { 12361 19200 return uninterpretedOption_.size(); 12362 19201 } 19202 /** 19203 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19204 * 19205 * <pre> 19206 * The parser stores options it doesn't recognize here. See above. 19207 * </pre> 19208 */ 12363 19209 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 12364 19210 return uninterpretedOption_.get(index); 12365 19211 } 19212 /** 19213 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19214 * 19215 * <pre> 19216 * The parser stores options it doesn't recognize here. See above. 19217 * </pre> 19218 */ 12366 19219 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 12367 19220 int index) { 12368 19221 return uninterpretedOption_.get(index); 12369 19222 } 12370 19223 12371 19224 private void initFields() { 12372 19225 allowAlias_ = true; … … 12377 19230 byte isInitialized = memoizedIsInitialized; 12378 19231 if (isInitialized != -1) return isInitialized == 1; 12379 19232 12380 19233 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 12381 19234 if (!getUninterpretedOption(i).isInitialized()) { … … 12391 19244 return true; 12392 19245 } 12393 19246 12394 19247 public void writeTo(com.google.protobuf.CodedOutputStream output) 12395 19248 throws java.io.IOException { … … 12407 19260 getUnknownFields().writeTo(output); 12408 19261 } 12409 19262 12410 19263 private int memoizedSerializedSize = -1; 12411 19264 public int getSerializedSize() { 12412 19265 int size = memoizedSerializedSize; 12413 19266 if (size != -1) return size; 12414 19267 12415 19268 size = 0; 12416 19269 if (((bitField0_ & 0x00000001) == 0x00000001)) { … … 12427 19280 return size; 12428 19281 } 12429 19282 12430 19283 private static final long serialVersionUID = 0L; 12431 19284 @java.lang.Override … … 12434 19287 return super.writeReplace(); 12435 19288 } 12436 19289 12437 19290 public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( 12438 19291 com.google.protobuf.ByteString data) 12439 19292 throws com.google.protobuf.InvalidProtocolBufferException { 12440 return newBuilder().mergeFrom(data).buildParsed();19293 return PARSER.parseFrom(data); 12441 19294 } 12442 19295 public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( … … 12444 19297 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12445 19298 throws com.google.protobuf.InvalidProtocolBufferException { 12446 return newBuilder().mergeFrom(data, extensionRegistry) 12447 .buildParsed(); 19299 return PARSER.parseFrom(data, extensionRegistry); 12448 19300 } 12449 19301 public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom(byte[] data) 12450 19302 throws com.google.protobuf.InvalidProtocolBufferException { 12451 return newBuilder().mergeFrom(data).buildParsed();19303 return PARSER.parseFrom(data); 12452 19304 } 12453 19305 public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( … … 12455 19307 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12456 19308 throws com.google.protobuf.InvalidProtocolBufferException { 12457 return newBuilder().mergeFrom(data, extensionRegistry) 12458 .buildParsed(); 19309 return PARSER.parseFrom(data, extensionRegistry); 12459 19310 } 12460 19311 public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom(java.io.InputStream input) 12461 19312 throws java.io.IOException { 12462 return newBuilder().mergeFrom(input).buildParsed();19313 return PARSER.parseFrom(input); 12463 19314 } 12464 19315 public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( … … 12466 19317 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12467 19318 throws java.io.IOException { 12468 return newBuilder().mergeFrom(input, extensionRegistry) 12469 .buildParsed(); 19319 return PARSER.parseFrom(input, extensionRegistry); 12470 19320 } 12471 19321 public static com.google.protobuf.DescriptorProtos.EnumOptions parseDelimitedFrom(java.io.InputStream input) 12472 19322 throws java.io.IOException { 12473 Builder builder = newBuilder(); 12474 if (builder.mergeDelimitedFrom(input)) { 12475 return builder.buildParsed(); 12476 } else { 12477 return null; 12478 } 19323 return PARSER.parseDelimitedFrom(input); 12479 19324 } 12480 19325 public static com.google.protobuf.DescriptorProtos.EnumOptions parseDelimitedFrom( … … 12482 19327 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12483 19328 throws java.io.IOException { 12484 Builder builder = newBuilder(); 12485 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 12486 return builder.buildParsed(); 12487 } else { 12488 return null; 12489 } 19329 return PARSER.parseDelimitedFrom(input, extensionRegistry); 12490 19330 } 12491 19331 public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( 12492 19332 com.google.protobuf.CodedInputStream input) 12493 19333 throws java.io.IOException { 12494 return newBuilder().mergeFrom(input).buildParsed();19334 return PARSER.parseFrom(input); 12495 19335 } 12496 19336 public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( … … 12498 19338 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12499 19339 throws java.io.IOException { 12500 return newBuilder().mergeFrom(input, extensionRegistry) 12501 .buildParsed(); 12502 } 12503 19340 return PARSER.parseFrom(input, extensionRegistry); 19341 } 19342 12504 19343 public static Builder newBuilder() { return Builder.create(); } 12505 19344 public Builder newBuilderForType() { return newBuilder(); } … … 12508 19347 } 12509 19348 public Builder toBuilder() { return newBuilder(this); } 12510 19349 12511 19350 @java.lang.Override 12512 19351 protected Builder newBuilderForType( … … 12515 19354 return builder; 12516 19355 } 19356 /** 19357 * Protobuf type {@code google.protobuf.EnumOptions} 19358 */ 12517 19359 public static final class Builder extends 12518 19360 com.google.protobuf.GeneratedMessage.ExtendableBuilder< … … 12522 19364 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumOptions_descriptor; 12523 19365 } 12524 19366 12525 19367 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 12526 19368 internalGetFieldAccessorTable() { 12527 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumOptions_fieldAccessorTable; 12528 } 12529 19369 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumOptions_fieldAccessorTable 19370 .ensureFieldAccessorsInitialized( 19371 com.google.protobuf.DescriptorProtos.EnumOptions.class, com.google.protobuf.DescriptorProtos.EnumOptions.Builder.class); 19372 } 19373 12530 19374 // Construct using com.google.protobuf.DescriptorProtos.EnumOptions.newBuilder() 12531 19375 private Builder() { 12532 19376 maybeForceBuilderInitialization(); 12533 19377 } 12534 12535 private Builder(BuilderParent parent) { 19378 19379 private Builder( 19380 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 12536 19381 super(parent); 12537 19382 maybeForceBuilderInitialization(); … … 12545 19390 return new Builder(); 12546 19391 } 12547 19392 12548 19393 public Builder clear() { 12549 19394 super.clear(); … … 12558 19403 return this; 12559 19404 } 12560 19405 12561 19406 public Builder clone() { 12562 19407 return create().mergeFrom(buildPartial()); 12563 19408 } 12564 19409 12565 19410 public com.google.protobuf.Descriptors.Descriptor 12566 19411 getDescriptorForType() { 12567 return com.google.protobuf.DescriptorProtos. EnumOptions.getDescriptor();12568 } 12569 19412 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumOptions_descriptor; 19413 } 19414 12570 19415 public com.google.protobuf.DescriptorProtos.EnumOptions getDefaultInstanceForType() { 12571 19416 return com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance(); 12572 19417 } 12573 19418 12574 19419 public com.google.protobuf.DescriptorProtos.EnumOptions build() { 12575 19420 com.google.protobuf.DescriptorProtos.EnumOptions result = buildPartial(); … … 12579 19424 return result; 12580 19425 } 12581 12582 private com.google.protobuf.DescriptorProtos.EnumOptions buildParsed() 12583 throws com.google.protobuf.InvalidProtocolBufferException { 12584 com.google.protobuf.DescriptorProtos.EnumOptions result = buildPartial(); 12585 if (!result.isInitialized()) { 12586 throw newUninitializedMessageException( 12587 result).asInvalidProtocolBufferException(); 12588 } 12589 return result; 12590 } 12591 19426 12592 19427 public com.google.protobuf.DescriptorProtos.EnumOptions buildPartial() { 12593 19428 com.google.protobuf.DescriptorProtos.EnumOptions result = new com.google.protobuf.DescriptorProtos.EnumOptions(this); … … 12611 19446 return result; 12612 19447 } 12613 19448 12614 19449 public Builder mergeFrom(com.google.protobuf.Message other) { 12615 19450 if (other instanceof com.google.protobuf.DescriptorProtos.EnumOptions) { … … 12620 19455 } 12621 19456 } 12622 19457 12623 19458 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.EnumOptions other) { 12624 19459 if (other == com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance()) return this; … … 12656 19491 return this; 12657 19492 } 12658 19493 12659 19494 public final boolean isInitialized() { 12660 19495 for (int i = 0; i < getUninterpretedOptionCount(); i++) { … … 12670 19505 return true; 12671 19506 } 12672 19507 12673 19508 public Builder mergeFrom( 12674 19509 com.google.protobuf.CodedInputStream input, 12675 19510 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12676 19511 throws java.io.IOException { 12677 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 12678 com.google.protobuf.UnknownFieldSet.newBuilder( 12679 this.getUnknownFields()); 12680 while (true) { 12681 int tag = input.readTag(); 12682 switch (tag) { 12683 case 0: 12684 this.setUnknownFields(unknownFields.build()); 12685 onChanged(); 12686 return this; 12687 default: { 12688 if (!parseUnknownField(input, unknownFields, 12689 extensionRegistry, tag)) { 12690 this.setUnknownFields(unknownFields.build()); 12691 onChanged(); 12692 return this; 12693 } 12694 break; 12695 } 12696 case 16: { 12697 bitField0_ |= 0x00000001; 12698 allowAlias_ = input.readBool(); 12699 break; 12700 } 12701 case 7994: { 12702 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder subBuilder = com.google.protobuf.DescriptorProtos.UninterpretedOption.newBuilder(); 12703 input.readMessage(subBuilder, extensionRegistry); 12704 addUninterpretedOption(subBuilder.buildPartial()); 12705 break; 12706 } 19512 com.google.protobuf.DescriptorProtos.EnumOptions parsedMessage = null; 19513 try { 19514 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 19515 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 19516 parsedMessage = (com.google.protobuf.DescriptorProtos.EnumOptions) e.getUnfinishedMessage(); 19517 throw e; 19518 } finally { 19519 if (parsedMessage != null) { 19520 mergeFrom(parsedMessage); 12707 19521 } 12708 19522 } 12709 }12710 19523 return this; 19524 } 12711 19525 private int bitField0_; 12712 19526 12713 19527 // optional bool allow_alias = 2 [default = true]; 12714 19528 private boolean allowAlias_ = true; 19529 /** 19530 * <code>optional bool allow_alias = 2 [default = true];</code> 19531 * 19532 * <pre> 19533 * Set this option to false to disallow mapping different tag names to a same 19534 * value. 19535 * </pre> 19536 */ 12715 19537 public boolean hasAllowAlias() { 12716 19538 return ((bitField0_ & 0x00000001) == 0x00000001); 12717 19539 } 19540 /** 19541 * <code>optional bool allow_alias = 2 [default = true];</code> 19542 * 19543 * <pre> 19544 * Set this option to false to disallow mapping different tag names to a same 19545 * value. 19546 * </pre> 19547 */ 12718 19548 public boolean getAllowAlias() { 12719 19549 return allowAlias_; 12720 19550 } 19551 /** 19552 * <code>optional bool allow_alias = 2 [default = true];</code> 19553 * 19554 * <pre> 19555 * Set this option to false to disallow mapping different tag names to a same 19556 * value. 19557 * </pre> 19558 */ 12721 19559 public Builder setAllowAlias(boolean value) { 12722 19560 bitField0_ |= 0x00000001; … … 12725 19563 return this; 12726 19564 } 19565 /** 19566 * <code>optional bool allow_alias = 2 [default = true];</code> 19567 * 19568 * <pre> 19569 * Set this option to false to disallow mapping different tag names to a same 19570 * value. 19571 * </pre> 19572 */ 12727 19573 public Builder clearAllowAlias() { 12728 19574 bitField0_ = (bitField0_ & ~0x00000001); … … 12731 19577 return this; 12732 19578 } 12733 19579 12734 19580 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 12735 19581 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = … … 12741 19587 } 12742 19588 } 12743 19589 12744 19590 private com.google.protobuf.RepeatedFieldBuilder< 12745 19591 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 12746 19592 19593 /** 19594 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19595 * 19596 * <pre> 19597 * The parser stores options it doesn't recognize here. See above. 19598 * </pre> 19599 */ 12747 19600 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 12748 19601 if (uninterpretedOptionBuilder_ == null) { … … 12752 19605 } 12753 19606 } 19607 /** 19608 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19609 * 19610 * <pre> 19611 * The parser stores options it doesn't recognize here. See above. 19612 * </pre> 19613 */ 12754 19614 public int getUninterpretedOptionCount() { 12755 19615 if (uninterpretedOptionBuilder_ == null) { … … 12759 19619 } 12760 19620 } 19621 /** 19622 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19623 * 19624 * <pre> 19625 * The parser stores options it doesn't recognize here. See above. 19626 * </pre> 19627 */ 12761 19628 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 12762 19629 if (uninterpretedOptionBuilder_ == null) { … … 12766 19633 } 12767 19634 } 19635 /** 19636 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19637 * 19638 * <pre> 19639 * The parser stores options it doesn't recognize here. See above. 19640 * </pre> 19641 */ 12768 19642 public Builder setUninterpretedOption( 12769 19643 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 12780 19654 return this; 12781 19655 } 19656 /** 19657 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19658 * 19659 * <pre> 19660 * The parser stores options it doesn't recognize here. See above. 19661 * </pre> 19662 */ 12782 19663 public Builder setUninterpretedOption( 12783 19664 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 12791 19672 return this; 12792 19673 } 19674 /** 19675 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19676 * 19677 * <pre> 19678 * The parser stores options it doesn't recognize here. See above. 19679 * </pre> 19680 */ 12793 19681 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { 12794 19682 if (uninterpretedOptionBuilder_ == null) { … … 12804 19692 return this; 12805 19693 } 19694 /** 19695 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19696 * 19697 * <pre> 19698 * The parser stores options it doesn't recognize here. See above. 19699 * </pre> 19700 */ 12806 19701 public Builder addUninterpretedOption( 12807 19702 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 12818 19713 return this; 12819 19714 } 19715 /** 19716 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19717 * 19718 * <pre> 19719 * The parser stores options it doesn't recognize here. See above. 19720 * </pre> 19721 */ 12820 19722 public Builder addUninterpretedOption( 12821 19723 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 12829 19731 return this; 12830 19732 } 19733 /** 19734 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19735 * 19736 * <pre> 19737 * The parser stores options it doesn't recognize here. See above. 19738 * </pre> 19739 */ 12831 19740 public Builder addUninterpretedOption( 12832 19741 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 12840 19749 return this; 12841 19750 } 19751 /** 19752 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19753 * 19754 * <pre> 19755 * The parser stores options it doesn't recognize here. See above. 19756 * </pre> 19757 */ 12842 19758 public Builder addAllUninterpretedOption( 12843 19759 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { … … 12851 19767 return this; 12852 19768 } 19769 /** 19770 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19771 * 19772 * <pre> 19773 * The parser stores options it doesn't recognize here. See above. 19774 * </pre> 19775 */ 12853 19776 public Builder clearUninterpretedOption() { 12854 19777 if (uninterpretedOptionBuilder_ == null) { … … 12861 19784 return this; 12862 19785 } 19786 /** 19787 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19788 * 19789 * <pre> 19790 * The parser stores options it doesn't recognize here. See above. 19791 * </pre> 19792 */ 12863 19793 public Builder removeUninterpretedOption(int index) { 12864 19794 if (uninterpretedOptionBuilder_ == null) { … … 12871 19801 return this; 12872 19802 } 19803 /** 19804 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19805 * 19806 * <pre> 19807 * The parser stores options it doesn't recognize here. See above. 19808 * </pre> 19809 */ 12873 19810 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( 12874 19811 int index) { 12875 19812 return getUninterpretedOptionFieldBuilder().getBuilder(index); 12876 19813 } 19814 /** 19815 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19816 * 19817 * <pre> 19818 * The parser stores options it doesn't recognize here. See above. 19819 * </pre> 19820 */ 12877 19821 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 12878 19822 int index) { … … 12882 19826 } 12883 19827 } 19828 /** 19829 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19830 * 19831 * <pre> 19832 * The parser stores options it doesn't recognize here. See above. 19833 * </pre> 19834 */ 12884 19835 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 12885 19836 getUninterpretedOptionOrBuilderList() { … … 12890 19841 } 12891 19842 } 19843 /** 19844 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19845 * 19846 * <pre> 19847 * The parser stores options it doesn't recognize here. See above. 19848 * </pre> 19849 */ 12892 19850 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { 12893 19851 return getUninterpretedOptionFieldBuilder().addBuilder( 12894 19852 com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 12895 19853 } 19854 /** 19855 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19856 * 19857 * <pre> 19858 * The parser stores options it doesn't recognize here. See above. 19859 * </pre> 19860 */ 12896 19861 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( 12897 19862 int index) { … … 12899 19864 index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 12900 19865 } 19866 /** 19867 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19868 * 19869 * <pre> 19870 * The parser stores options it doesn't recognize here. See above. 19871 * </pre> 19872 */ 12901 19873 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 12902 19874 getUninterpretedOptionBuilderList() { … … 12917 19889 return uninterpretedOptionBuilder_; 12918 19890 } 12919 19891 12920 19892 // @@protoc_insertion_point(builder_scope:google.protobuf.EnumOptions) 12921 19893 } 12922 19894 12923 19895 static { 12924 19896 defaultInstance = new EnumOptions(true); 12925 19897 defaultInstance.initFields(); 12926 19898 } 12927 19899 12928 19900 // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions) 12929 19901 } 12930 19902 12931 19903 public interface EnumValueOptionsOrBuilder extends 12932 19904 com.google.protobuf.GeneratedMessage. 12933 19905 ExtendableMessageOrBuilder<EnumValueOptions> { 12934 19906 12935 19907 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 19908 /** 19909 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19910 * 19911 * <pre> 19912 * The parser stores options it doesn't recognize here. See above. 19913 * </pre> 19914 */ 12936 19915 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 12937 19916 getUninterpretedOptionList(); 19917 /** 19918 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19919 * 19920 * <pre> 19921 * The parser stores options it doesn't recognize here. See above. 19922 * </pre> 19923 */ 12938 19924 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 19925 /** 19926 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19927 * 19928 * <pre> 19929 * The parser stores options it doesn't recognize here. See above. 19930 * </pre> 19931 */ 12939 19932 int getUninterpretedOptionCount(); 19933 /** 19934 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19935 * 19936 * <pre> 19937 * The parser stores options it doesn't recognize here. See above. 19938 * </pre> 19939 */ 12940 19940 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 12941 19941 getUninterpretedOptionOrBuilderList(); 19942 /** 19943 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19944 * 19945 * <pre> 19946 * The parser stores options it doesn't recognize here. See above. 19947 * </pre> 19948 */ 12942 19949 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 12943 19950 int index); 12944 19951 } 19952 /** 19953 * Protobuf type {@code google.protobuf.EnumValueOptions} 19954 */ 12945 19955 public static final class EnumValueOptions extends 12946 19956 com.google.protobuf.GeneratedMessage.ExtendableMessage< 12947 19957 EnumValueOptions> implements EnumValueOptionsOrBuilder { 12948 19958 // Use EnumValueOptions.newBuilder() to construct. 12949 private EnumValueOptions( Builderbuilder) {19959 private EnumValueOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.DescriptorProtos.EnumValueOptions, ?> builder) { 12950 19960 super(builder); 12951 } 12952 private EnumValueOptions(boolean noInit) {} 12953 19961 this.unknownFields = builder.getUnknownFields(); 19962 } 19963 private EnumValueOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 19964 12954 19965 private static final EnumValueOptions defaultInstance; 12955 19966 public static EnumValueOptions getDefaultInstance() { 12956 19967 return defaultInstance; 12957 19968 } 12958 19969 12959 19970 public EnumValueOptions getDefaultInstanceForType() { 12960 19971 return defaultInstance; 12961 19972 } 12962 19973 19974 private final com.google.protobuf.UnknownFieldSet unknownFields; 19975 @java.lang.Override 19976 public final com.google.protobuf.UnknownFieldSet 19977 getUnknownFields() { 19978 return this.unknownFields; 19979 } 19980 private EnumValueOptions( 19981 com.google.protobuf.CodedInputStream input, 19982 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 19983 throws com.google.protobuf.InvalidProtocolBufferException { 19984 initFields(); 19985 int mutable_bitField0_ = 0; 19986 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 19987 com.google.protobuf.UnknownFieldSet.newBuilder(); 19988 try { 19989 boolean done = false; 19990 while (!done) { 19991 int tag = input.readTag(); 19992 switch (tag) { 19993 case 0: 19994 done = true; 19995 break; 19996 default: { 19997 if (!parseUnknownField(input, unknownFields, 19998 extensionRegistry, tag)) { 19999 done = true; 20000 } 20001 break; 20002 } 20003 case 7994: { 20004 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 20005 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 20006 mutable_bitField0_ |= 0x00000001; 20007 } 20008 uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 20009 break; 20010 } 20011 } 20012 } 20013 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 20014 throw e.setUnfinishedMessage(this); 20015 } catch (java.io.IOException e) { 20016 throw new com.google.protobuf.InvalidProtocolBufferException( 20017 e.getMessage()).setUnfinishedMessage(this); 20018 } finally { 20019 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 20020 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 20021 } 20022 this.unknownFields = unknownFields.build(); 20023 makeExtensionsImmutable(); 20024 } 20025 } 12963 20026 public static final com.google.protobuf.Descriptors.Descriptor 12964 20027 getDescriptor() { 12965 20028 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueOptions_descriptor; 12966 20029 } 12967 20030 12968 20031 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 12969 20032 internalGetFieldAccessorTable() { 12970 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable; 12971 } 12972 20033 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable 20034 .ensureFieldAccessorsInitialized( 20035 com.google.protobuf.DescriptorProtos.EnumValueOptions.class, com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder.class); 20036 } 20037 20038 public static com.google.protobuf.Parser<EnumValueOptions> PARSER = 20039 new com.google.protobuf.AbstractParser<EnumValueOptions>() { 20040 public EnumValueOptions parsePartialFrom( 20041 com.google.protobuf.CodedInputStream input, 20042 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 20043 throws com.google.protobuf.InvalidProtocolBufferException { 20044 return new EnumValueOptions(input, extensionRegistry); 20045 } 20046 }; 20047 20048 @java.lang.Override 20049 public com.google.protobuf.Parser<EnumValueOptions> getParserForType() { 20050 return PARSER; 20051 } 20052 12973 20053 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 12974 20054 public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; 12975 20055 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 20056 /** 20057 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20058 * 20059 * <pre> 20060 * The parser stores options it doesn't recognize here. See above. 20061 * </pre> 20062 */ 12976 20063 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 12977 20064 return uninterpretedOption_; 12978 20065 } 20066 /** 20067 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20068 * 20069 * <pre> 20070 * The parser stores options it doesn't recognize here. See above. 20071 * </pre> 20072 */ 12979 20073 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 12980 20074 getUninterpretedOptionOrBuilderList() { 12981 20075 return uninterpretedOption_; 12982 20076 } 20077 /** 20078 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20079 * 20080 * <pre> 20081 * The parser stores options it doesn't recognize here. See above. 20082 * </pre> 20083 */ 12983 20084 public int getUninterpretedOptionCount() { 12984 20085 return uninterpretedOption_.size(); 12985 20086 } 20087 /** 20088 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20089 * 20090 * <pre> 20091 * The parser stores options it doesn't recognize here. See above. 20092 * </pre> 20093 */ 12986 20094 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 12987 20095 return uninterpretedOption_.get(index); 12988 20096 } 20097 /** 20098 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20099 * 20100 * <pre> 20101 * The parser stores options it doesn't recognize here. See above. 20102 * </pre> 20103 */ 12989 20104 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 12990 20105 int index) { 12991 20106 return uninterpretedOption_.get(index); 12992 20107 } 12993 20108 12994 20109 private void initFields() { 12995 20110 uninterpretedOption_ = java.util.Collections.emptyList(); … … 12999 20114 byte isInitialized = memoizedIsInitialized; 13000 20115 if (isInitialized != -1) return isInitialized == 1; 13001 20116 13002 20117 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 13003 20118 if (!getUninterpretedOption(i).isInitialized()) { … … 13013 20128 return true; 13014 20129 } 13015 20130 13016 20131 public void writeTo(com.google.protobuf.CodedOutputStream output) 13017 20132 throws java.io.IOException { … … 13026 20141 getUnknownFields().writeTo(output); 13027 20142 } 13028 20143 13029 20144 private int memoizedSerializedSize = -1; 13030 20145 public int getSerializedSize() { 13031 20146 int size = memoizedSerializedSize; 13032 20147 if (size != -1) return size; 13033 20148 13034 20149 size = 0; 13035 20150 for (int i = 0; i < uninterpretedOption_.size(); i++) { … … 13042 20157 return size; 13043 20158 } 13044 20159 13045 20160 private static final long serialVersionUID = 0L; 13046 20161 @java.lang.Override … … 13049 20164 return super.writeReplace(); 13050 20165 } 13051 20166 13052 20167 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( 13053 20168 com.google.protobuf.ByteString data) 13054 20169 throws com.google.protobuf.InvalidProtocolBufferException { 13055 return newBuilder().mergeFrom(data).buildParsed();20170 return PARSER.parseFrom(data); 13056 20171 } 13057 20172 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( … … 13059 20174 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13060 20175 throws com.google.protobuf.InvalidProtocolBufferException { 13061 return newBuilder().mergeFrom(data, extensionRegistry) 13062 .buildParsed(); 20176 return PARSER.parseFrom(data, extensionRegistry); 13063 20177 } 13064 20178 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom(byte[] data) 13065 20179 throws com.google.protobuf.InvalidProtocolBufferException { 13066 return newBuilder().mergeFrom(data).buildParsed();20180 return PARSER.parseFrom(data); 13067 20181 } 13068 20182 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( … … 13070 20184 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13071 20185 throws com.google.protobuf.InvalidProtocolBufferException { 13072 return newBuilder().mergeFrom(data, extensionRegistry) 13073 .buildParsed(); 20186 return PARSER.parseFrom(data, extensionRegistry); 13074 20187 } 13075 20188 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom(java.io.InputStream input) 13076 20189 throws java.io.IOException { 13077 return newBuilder().mergeFrom(input).buildParsed();20190 return PARSER.parseFrom(input); 13078 20191 } 13079 20192 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( … … 13081 20194 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13082 20195 throws java.io.IOException { 13083 return newBuilder().mergeFrom(input, extensionRegistry) 13084 .buildParsed(); 20196 return PARSER.parseFrom(input, extensionRegistry); 13085 20197 } 13086 20198 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseDelimitedFrom(java.io.InputStream input) 13087 20199 throws java.io.IOException { 13088 Builder builder = newBuilder(); 13089 if (builder.mergeDelimitedFrom(input)) { 13090 return builder.buildParsed(); 13091 } else { 13092 return null; 13093 } 20200 return PARSER.parseDelimitedFrom(input); 13094 20201 } 13095 20202 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseDelimitedFrom( … … 13097 20204 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13098 20205 throws java.io.IOException { 13099 Builder builder = newBuilder(); 13100 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 13101 return builder.buildParsed(); 13102 } else { 13103 return null; 13104 } 20206 return PARSER.parseDelimitedFrom(input, extensionRegistry); 13105 20207 } 13106 20208 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( 13107 20209 com.google.protobuf.CodedInputStream input) 13108 20210 throws java.io.IOException { 13109 return newBuilder().mergeFrom(input).buildParsed();20211 return PARSER.parseFrom(input); 13110 20212 } 13111 20213 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( … … 13113 20215 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13114 20216 throws java.io.IOException { 13115 return newBuilder().mergeFrom(input, extensionRegistry) 13116 .buildParsed(); 13117 } 13118 20217 return PARSER.parseFrom(input, extensionRegistry); 20218 } 20219 13119 20220 public static Builder newBuilder() { return Builder.create(); } 13120 20221 public Builder newBuilderForType() { return newBuilder(); } … … 13123 20224 } 13124 20225 public Builder toBuilder() { return newBuilder(this); } 13125 20226 13126 20227 @java.lang.Override 13127 20228 protected Builder newBuilderForType( … … 13130 20231 return builder; 13131 20232 } 20233 /** 20234 * Protobuf type {@code google.protobuf.EnumValueOptions} 20235 */ 13132 20236 public static final class Builder extends 13133 20237 com.google.protobuf.GeneratedMessage.ExtendableBuilder< … … 13137 20241 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueOptions_descriptor; 13138 20242 } 13139 20243 13140 20244 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 13141 20245 internalGetFieldAccessorTable() { 13142 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable; 13143 } 13144 20246 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable 20247 .ensureFieldAccessorsInitialized( 20248 com.google.protobuf.DescriptorProtos.EnumValueOptions.class, com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder.class); 20249 } 20250 13145 20251 // Construct using com.google.protobuf.DescriptorProtos.EnumValueOptions.newBuilder() 13146 20252 private Builder() { 13147 20253 maybeForceBuilderInitialization(); 13148 20254 } 13149 13150 private Builder(BuilderParent parent) { 20255 20256 private Builder( 20257 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 13151 20258 super(parent); 13152 20259 maybeForceBuilderInitialization(); … … 13160 20267 return new Builder(); 13161 20268 } 13162 20269 13163 20270 public Builder clear() { 13164 20271 super.clear(); … … 13171 20278 return this; 13172 20279 } 13173 20280 13174 20281 public Builder clone() { 13175 20282 return create().mergeFrom(buildPartial()); 13176 20283 } 13177 20284 13178 20285 public com.google.protobuf.Descriptors.Descriptor 13179 20286 getDescriptorForType() { 13180 return com.google.protobuf.DescriptorProtos. EnumValueOptions.getDescriptor();13181 } 13182 20287 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueOptions_descriptor; 20288 } 20289 13183 20290 public com.google.protobuf.DescriptorProtos.EnumValueOptions getDefaultInstanceForType() { 13184 20291 return com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance(); 13185 20292 } 13186 20293 13187 20294 public com.google.protobuf.DescriptorProtos.EnumValueOptions build() { 13188 20295 com.google.protobuf.DescriptorProtos.EnumValueOptions result = buildPartial(); … … 13192 20299 return result; 13193 20300 } 13194 13195 private com.google.protobuf.DescriptorProtos.EnumValueOptions buildParsed() 13196 throws com.google.protobuf.InvalidProtocolBufferException { 13197 com.google.protobuf.DescriptorProtos.EnumValueOptions result = buildPartial(); 13198 if (!result.isInitialized()) { 13199 throw newUninitializedMessageException( 13200 result).asInvalidProtocolBufferException(); 13201 } 13202 return result; 13203 } 13204 20301 13205 20302 public com.google.protobuf.DescriptorProtos.EnumValueOptions buildPartial() { 13206 20303 com.google.protobuf.DescriptorProtos.EnumValueOptions result = new com.google.protobuf.DescriptorProtos.EnumValueOptions(this); … … 13218 20315 return result; 13219 20316 } 13220 20317 13221 20318 public Builder mergeFrom(com.google.protobuf.Message other) { 13222 20319 if (other instanceof com.google.protobuf.DescriptorProtos.EnumValueOptions) { … … 13227 20324 } 13228 20325 } 13229 20326 13230 20327 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.EnumValueOptions other) { 13231 20328 if (other == com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance()) return this; … … 13260 20357 return this; 13261 20358 } 13262 20359 13263 20360 public final boolean isInitialized() { 13264 20361 for (int i = 0; i < getUninterpretedOptionCount(); i++) { … … 13274 20371 return true; 13275 20372 } 13276 20373 13277 20374 public Builder mergeFrom( 13278 20375 com.google.protobuf.CodedInputStream input, 13279 20376 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13280 20377 throws java.io.IOException { 13281 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 13282 com.google.protobuf.UnknownFieldSet.newBuilder( 13283 this.getUnknownFields()); 13284 while (true) { 13285 int tag = input.readTag(); 13286 switch (tag) { 13287 case 0: 13288 this.setUnknownFields(unknownFields.build()); 13289 onChanged(); 13290 return this; 13291 default: { 13292 if (!parseUnknownField(input, unknownFields, 13293 extensionRegistry, tag)) { 13294 this.setUnknownFields(unknownFields.build()); 13295 onChanged(); 13296 return this; 13297 } 13298 break; 13299 } 13300 case 7994: { 13301 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder subBuilder = com.google.protobuf.DescriptorProtos.UninterpretedOption.newBuilder(); 13302 input.readMessage(subBuilder, extensionRegistry); 13303 addUninterpretedOption(subBuilder.buildPartial()); 13304 break; 13305 } 20378 com.google.protobuf.DescriptorProtos.EnumValueOptions parsedMessage = null; 20379 try { 20380 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 20381 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 20382 parsedMessage = (com.google.protobuf.DescriptorProtos.EnumValueOptions) e.getUnfinishedMessage(); 20383 throw e; 20384 } finally { 20385 if (parsedMessage != null) { 20386 mergeFrom(parsedMessage); 13306 20387 } 13307 20388 } 13308 }13309 20389 return this; 20390 } 13310 20391 private int bitField0_; 13311 20392 13312 20393 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 13313 20394 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = … … 13319 20400 } 13320 20401 } 13321 20402 13322 20403 private com.google.protobuf.RepeatedFieldBuilder< 13323 20404 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 13324 20405 20406 /** 20407 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20408 * 20409 * <pre> 20410 * The parser stores options it doesn't recognize here. See above. 20411 * </pre> 20412 */ 13325 20413 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 13326 20414 if (uninterpretedOptionBuilder_ == null) { … … 13330 20418 } 13331 20419 } 20420 /** 20421 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20422 * 20423 * <pre> 20424 * The parser stores options it doesn't recognize here. See above. 20425 * </pre> 20426 */ 13332 20427 public int getUninterpretedOptionCount() { 13333 20428 if (uninterpretedOptionBuilder_ == null) { … … 13337 20432 } 13338 20433 } 20434 /** 20435 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20436 * 20437 * <pre> 20438 * The parser stores options it doesn't recognize here. See above. 20439 * </pre> 20440 */ 13339 20441 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 13340 20442 if (uninterpretedOptionBuilder_ == null) { … … 13344 20446 } 13345 20447 } 20448 /** 20449 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20450 * 20451 * <pre> 20452 * The parser stores options it doesn't recognize here. See above. 20453 * </pre> 20454 */ 13346 20455 public Builder setUninterpretedOption( 13347 20456 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 13358 20467 return this; 13359 20468 } 20469 /** 20470 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20471 * 20472 * <pre> 20473 * The parser stores options it doesn't recognize here. See above. 20474 * </pre> 20475 */ 13360 20476 public Builder setUninterpretedOption( 13361 20477 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 13369 20485 return this; 13370 20486 } 20487 /** 20488 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20489 * 20490 * <pre> 20491 * The parser stores options it doesn't recognize here. See above. 20492 * </pre> 20493 */ 13371 20494 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { 13372 20495 if (uninterpretedOptionBuilder_ == null) { … … 13382 20505 return this; 13383 20506 } 20507 /** 20508 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20509 * 20510 * <pre> 20511 * The parser stores options it doesn't recognize here. See above. 20512 * </pre> 20513 */ 13384 20514 public Builder addUninterpretedOption( 13385 20515 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 13396 20526 return this; 13397 20527 } 20528 /** 20529 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20530 * 20531 * <pre> 20532 * The parser stores options it doesn't recognize here. See above. 20533 * </pre> 20534 */ 13398 20535 public Builder addUninterpretedOption( 13399 20536 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 13407 20544 return this; 13408 20545 } 20546 /** 20547 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20548 * 20549 * <pre> 20550 * The parser stores options it doesn't recognize here. See above. 20551 * </pre> 20552 */ 13409 20553 public Builder addUninterpretedOption( 13410 20554 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 13418 20562 return this; 13419 20563 } 20564 /** 20565 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20566 * 20567 * <pre> 20568 * The parser stores options it doesn't recognize here. See above. 20569 * </pre> 20570 */ 13420 20571 public Builder addAllUninterpretedOption( 13421 20572 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { … … 13429 20580 return this; 13430 20581 } 20582 /** 20583 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20584 * 20585 * <pre> 20586 * The parser stores options it doesn't recognize here. See above. 20587 * </pre> 20588 */ 13431 20589 public Builder clearUninterpretedOption() { 13432 20590 if (uninterpretedOptionBuilder_ == null) { … … 13439 20597 return this; 13440 20598 } 20599 /** 20600 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20601 * 20602 * <pre> 20603 * The parser stores options it doesn't recognize here. See above. 20604 * </pre> 20605 */ 13441 20606 public Builder removeUninterpretedOption(int index) { 13442 20607 if (uninterpretedOptionBuilder_ == null) { … … 13449 20614 return this; 13450 20615 } 20616 /** 20617 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20618 * 20619 * <pre> 20620 * The parser stores options it doesn't recognize here. See above. 20621 * </pre> 20622 */ 13451 20623 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( 13452 20624 int index) { 13453 20625 return getUninterpretedOptionFieldBuilder().getBuilder(index); 13454 20626 } 20627 /** 20628 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20629 * 20630 * <pre> 20631 * The parser stores options it doesn't recognize here. See above. 20632 * </pre> 20633 */ 13455 20634 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 13456 20635 int index) { … … 13460 20639 } 13461 20640 } 20641 /** 20642 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20643 * 20644 * <pre> 20645 * The parser stores options it doesn't recognize here. See above. 20646 * </pre> 20647 */ 13462 20648 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 13463 20649 getUninterpretedOptionOrBuilderList() { … … 13468 20654 } 13469 20655 } 20656 /** 20657 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20658 * 20659 * <pre> 20660 * The parser stores options it doesn't recognize here. See above. 20661 * </pre> 20662 */ 13470 20663 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { 13471 20664 return getUninterpretedOptionFieldBuilder().addBuilder( 13472 20665 com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 13473 20666 } 20667 /** 20668 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20669 * 20670 * <pre> 20671 * The parser stores options it doesn't recognize here. See above. 20672 * </pre> 20673 */ 13474 20674 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( 13475 20675 int index) { … … 13477 20677 index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 13478 20678 } 20679 /** 20680 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20681 * 20682 * <pre> 20683 * The parser stores options it doesn't recognize here. See above. 20684 * </pre> 20685 */ 13479 20686 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 13480 20687 getUninterpretedOptionBuilderList() { … … 13495 20702 return uninterpretedOptionBuilder_; 13496 20703 } 13497 20704 13498 20705 // @@protoc_insertion_point(builder_scope:google.protobuf.EnumValueOptions) 13499 20706 } 13500 20707 13501 20708 static { 13502 20709 defaultInstance = new EnumValueOptions(true); 13503 20710 defaultInstance.initFields(); 13504 20711 } 13505 20712 13506 20713 // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions) 13507 20714 } 13508 20715 13509 20716 public interface ServiceOptionsOrBuilder extends 13510 20717 com.google.protobuf.GeneratedMessage. 13511 20718 ExtendableMessageOrBuilder<ServiceOptions> { 13512 20719 13513 20720 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 20721 /** 20722 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20723 * 20724 * <pre> 20725 * The parser stores options it doesn't recognize here. See above. 20726 * </pre> 20727 */ 13514 20728 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 13515 20729 getUninterpretedOptionList(); 20730 /** 20731 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20732 * 20733 * <pre> 20734 * The parser stores options it doesn't recognize here. See above. 20735 * </pre> 20736 */ 13516 20737 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 20738 /** 20739 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20740 * 20741 * <pre> 20742 * The parser stores options it doesn't recognize here. See above. 20743 * </pre> 20744 */ 13517 20745 int getUninterpretedOptionCount(); 20746 /** 20747 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20748 * 20749 * <pre> 20750 * The parser stores options it doesn't recognize here. See above. 20751 * </pre> 20752 */ 13518 20753 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 13519 20754 getUninterpretedOptionOrBuilderList(); 20755 /** 20756 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20757 * 20758 * <pre> 20759 * The parser stores options it doesn't recognize here. See above. 20760 * </pre> 20761 */ 13520 20762 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 13521 20763 int index); 13522 20764 } 20765 /** 20766 * Protobuf type {@code google.protobuf.ServiceOptions} 20767 */ 13523 20768 public static final class ServiceOptions extends 13524 20769 com.google.protobuf.GeneratedMessage.ExtendableMessage< 13525 20770 ServiceOptions> implements ServiceOptionsOrBuilder { 13526 20771 // Use ServiceOptions.newBuilder() to construct. 13527 private ServiceOptions( Builderbuilder) {20772 private ServiceOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.DescriptorProtos.ServiceOptions, ?> builder) { 13528 20773 super(builder); 13529 } 13530 private ServiceOptions(boolean noInit) {} 13531 20774 this.unknownFields = builder.getUnknownFields(); 20775 } 20776 private ServiceOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 20777 13532 20778 private static final ServiceOptions defaultInstance; 13533 20779 public static ServiceOptions getDefaultInstance() { 13534 20780 return defaultInstance; 13535 20781 } 13536 20782 13537 20783 public ServiceOptions getDefaultInstanceForType() { 13538 20784 return defaultInstance; 13539 20785 } 13540 20786 20787 private final com.google.protobuf.UnknownFieldSet unknownFields; 20788 @java.lang.Override 20789 public final com.google.protobuf.UnknownFieldSet 20790 getUnknownFields() { 20791 return this.unknownFields; 20792 } 20793 private ServiceOptions( 20794 com.google.protobuf.CodedInputStream input, 20795 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 20796 throws com.google.protobuf.InvalidProtocolBufferException { 20797 initFields(); 20798 int mutable_bitField0_ = 0; 20799 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 20800 com.google.protobuf.UnknownFieldSet.newBuilder(); 20801 try { 20802 boolean done = false; 20803 while (!done) { 20804 int tag = input.readTag(); 20805 switch (tag) { 20806 case 0: 20807 done = true; 20808 break; 20809 default: { 20810 if (!parseUnknownField(input, unknownFields, 20811 extensionRegistry, tag)) { 20812 done = true; 20813 } 20814 break; 20815 } 20816 case 7994: { 20817 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 20818 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 20819 mutable_bitField0_ |= 0x00000001; 20820 } 20821 uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 20822 break; 20823 } 20824 } 20825 } 20826 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 20827 throw e.setUnfinishedMessage(this); 20828 } catch (java.io.IOException e) { 20829 throw new com.google.protobuf.InvalidProtocolBufferException( 20830 e.getMessage()).setUnfinishedMessage(this); 20831 } finally { 20832 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 20833 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 20834 } 20835 this.unknownFields = unknownFields.build(); 20836 makeExtensionsImmutable(); 20837 } 20838 } 13541 20839 public static final com.google.protobuf.Descriptors.Descriptor 13542 20840 getDescriptor() { 13543 20841 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceOptions_descriptor; 13544 20842 } 13545 20843 13546 20844 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 13547 20845 internalGetFieldAccessorTable() { 13548 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceOptions_fieldAccessorTable; 13549 } 13550 20846 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceOptions_fieldAccessorTable 20847 .ensureFieldAccessorsInitialized( 20848 com.google.protobuf.DescriptorProtos.ServiceOptions.class, com.google.protobuf.DescriptorProtos.ServiceOptions.Builder.class); 20849 } 20850 20851 public static com.google.protobuf.Parser<ServiceOptions> PARSER = 20852 new com.google.protobuf.AbstractParser<ServiceOptions>() { 20853 public ServiceOptions parsePartialFrom( 20854 com.google.protobuf.CodedInputStream input, 20855 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 20856 throws com.google.protobuf.InvalidProtocolBufferException { 20857 return new ServiceOptions(input, extensionRegistry); 20858 } 20859 }; 20860 20861 @java.lang.Override 20862 public com.google.protobuf.Parser<ServiceOptions> getParserForType() { 20863 return PARSER; 20864 } 20865 13551 20866 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 13552 20867 public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; 13553 20868 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 20869 /** 20870 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20871 * 20872 * <pre> 20873 * The parser stores options it doesn't recognize here. See above. 20874 * </pre> 20875 */ 13554 20876 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 13555 20877 return uninterpretedOption_; 13556 20878 } 20879 /** 20880 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20881 * 20882 * <pre> 20883 * The parser stores options it doesn't recognize here. See above. 20884 * </pre> 20885 */ 13557 20886 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 13558 20887 getUninterpretedOptionOrBuilderList() { 13559 20888 return uninterpretedOption_; 13560 20889 } 20890 /** 20891 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20892 * 20893 * <pre> 20894 * The parser stores options it doesn't recognize here. See above. 20895 * </pre> 20896 */ 13561 20897 public int getUninterpretedOptionCount() { 13562 20898 return uninterpretedOption_.size(); 13563 20899 } 20900 /** 20901 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20902 * 20903 * <pre> 20904 * The parser stores options it doesn't recognize here. See above. 20905 * </pre> 20906 */ 13564 20907 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 13565 20908 return uninterpretedOption_.get(index); 13566 20909 } 20910 /** 20911 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20912 * 20913 * <pre> 20914 * The parser stores options it doesn't recognize here. See above. 20915 * </pre> 20916 */ 13567 20917 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 13568 20918 int index) { 13569 20919 return uninterpretedOption_.get(index); 13570 20920 } 13571 20921 13572 20922 private void initFields() { 13573 20923 uninterpretedOption_ = java.util.Collections.emptyList(); … … 13577 20927 byte isInitialized = memoizedIsInitialized; 13578 20928 if (isInitialized != -1) return isInitialized == 1; 13579 20929 13580 20930 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 13581 20931 if (!getUninterpretedOption(i).isInitialized()) { … … 13591 20941 return true; 13592 20942 } 13593 20943 13594 20944 public void writeTo(com.google.protobuf.CodedOutputStream output) 13595 20945 throws java.io.IOException { … … 13604 20954 getUnknownFields().writeTo(output); 13605 20955 } 13606 20956 13607 20957 private int memoizedSerializedSize = -1; 13608 20958 public int getSerializedSize() { 13609 20959 int size = memoizedSerializedSize; 13610 20960 if (size != -1) return size; 13611 20961 13612 20962 size = 0; 13613 20963 for (int i = 0; i < uninterpretedOption_.size(); i++) { … … 13620 20970 return size; 13621 20971 } 13622 20972 13623 20973 private static final long serialVersionUID = 0L; 13624 20974 @java.lang.Override … … 13627 20977 return super.writeReplace(); 13628 20978 } 13629 20979 13630 20980 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( 13631 20981 com.google.protobuf.ByteString data) 13632 20982 throws com.google.protobuf.InvalidProtocolBufferException { 13633 return newBuilder().mergeFrom(data).buildParsed();20983 return PARSER.parseFrom(data); 13634 20984 } 13635 20985 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( … … 13637 20987 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13638 20988 throws com.google.protobuf.InvalidProtocolBufferException { 13639 return newBuilder().mergeFrom(data, extensionRegistry) 13640 .buildParsed(); 20989 return PARSER.parseFrom(data, extensionRegistry); 13641 20990 } 13642 20991 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom(byte[] data) 13643 20992 throws com.google.protobuf.InvalidProtocolBufferException { 13644 return newBuilder().mergeFrom(data).buildParsed();20993 return PARSER.parseFrom(data); 13645 20994 } 13646 20995 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( … … 13648 20997 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13649 20998 throws com.google.protobuf.InvalidProtocolBufferException { 13650 return newBuilder().mergeFrom(data, extensionRegistry) 13651 .buildParsed(); 20999 return PARSER.parseFrom(data, extensionRegistry); 13652 21000 } 13653 21001 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom(java.io.InputStream input) 13654 21002 throws java.io.IOException { 13655 return newBuilder().mergeFrom(input).buildParsed();21003 return PARSER.parseFrom(input); 13656 21004 } 13657 21005 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( … … 13659 21007 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13660 21008 throws java.io.IOException { 13661 return newBuilder().mergeFrom(input, extensionRegistry) 13662 .buildParsed(); 21009 return PARSER.parseFrom(input, extensionRegistry); 13663 21010 } 13664 21011 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseDelimitedFrom(java.io.InputStream input) 13665 21012 throws java.io.IOException { 13666 Builder builder = newBuilder(); 13667 if (builder.mergeDelimitedFrom(input)) { 13668 return builder.buildParsed(); 13669 } else { 13670 return null; 13671 } 21013 return PARSER.parseDelimitedFrom(input); 13672 21014 } 13673 21015 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseDelimitedFrom( … … 13675 21017 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13676 21018 throws java.io.IOException { 13677 Builder builder = newBuilder(); 13678 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 13679 return builder.buildParsed(); 13680 } else { 13681 return null; 13682 } 21019 return PARSER.parseDelimitedFrom(input, extensionRegistry); 13683 21020 } 13684 21021 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( 13685 21022 com.google.protobuf.CodedInputStream input) 13686 21023 throws java.io.IOException { 13687 return newBuilder().mergeFrom(input).buildParsed();21024 return PARSER.parseFrom(input); 13688 21025 } 13689 21026 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( … … 13691 21028 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13692 21029 throws java.io.IOException { 13693 return newBuilder().mergeFrom(input, extensionRegistry) 13694 .buildParsed(); 13695 } 13696 21030 return PARSER.parseFrom(input, extensionRegistry); 21031 } 21032 13697 21033 public static Builder newBuilder() { return Builder.create(); } 13698 21034 public Builder newBuilderForType() { return newBuilder(); } … … 13701 21037 } 13702 21038 public Builder toBuilder() { return newBuilder(this); } 13703 21039 13704 21040 @java.lang.Override 13705 21041 protected Builder newBuilderForType( … … 13708 21044 return builder; 13709 21045 } 21046 /** 21047 * Protobuf type {@code google.protobuf.ServiceOptions} 21048 */ 13710 21049 public static final class Builder extends 13711 21050 com.google.protobuf.GeneratedMessage.ExtendableBuilder< … … 13715 21054 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceOptions_descriptor; 13716 21055 } 13717 21056 13718 21057 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 13719 21058 internalGetFieldAccessorTable() { 13720 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceOptions_fieldAccessorTable; 13721 } 13722 21059 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceOptions_fieldAccessorTable 21060 .ensureFieldAccessorsInitialized( 21061 com.google.protobuf.DescriptorProtos.ServiceOptions.class, com.google.protobuf.DescriptorProtos.ServiceOptions.Builder.class); 21062 } 21063 13723 21064 // Construct using com.google.protobuf.DescriptorProtos.ServiceOptions.newBuilder() 13724 21065 private Builder() { 13725 21066 maybeForceBuilderInitialization(); 13726 21067 } 13727 13728 private Builder(BuilderParent parent) { 21068 21069 private Builder( 21070 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 13729 21071 super(parent); 13730 21072 maybeForceBuilderInitialization(); … … 13738 21080 return new Builder(); 13739 21081 } 13740 21082 13741 21083 public Builder clear() { 13742 21084 super.clear(); … … 13749 21091 return this; 13750 21092 } 13751 21093 13752 21094 public Builder clone() { 13753 21095 return create().mergeFrom(buildPartial()); 13754 21096 } 13755 21097 13756 21098 public com.google.protobuf.Descriptors.Descriptor 13757 21099 getDescriptorForType() { 13758 return com.google.protobuf.DescriptorProtos. ServiceOptions.getDescriptor();13759 } 13760 21100 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceOptions_descriptor; 21101 } 21102 13761 21103 public com.google.protobuf.DescriptorProtos.ServiceOptions getDefaultInstanceForType() { 13762 21104 return com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance(); 13763 21105 } 13764 21106 13765 21107 public com.google.protobuf.DescriptorProtos.ServiceOptions build() { 13766 21108 com.google.protobuf.DescriptorProtos.ServiceOptions result = buildPartial(); … … 13770 21112 return result; 13771 21113 } 13772 13773 private com.google.protobuf.DescriptorProtos.ServiceOptions buildParsed() 13774 throws com.google.protobuf.InvalidProtocolBufferException { 13775 com.google.protobuf.DescriptorProtos.ServiceOptions result = buildPartial(); 13776 if (!result.isInitialized()) { 13777 throw newUninitializedMessageException( 13778 result).asInvalidProtocolBufferException(); 13779 } 13780 return result; 13781 } 13782 21114 13783 21115 public com.google.protobuf.DescriptorProtos.ServiceOptions buildPartial() { 13784 21116 com.google.protobuf.DescriptorProtos.ServiceOptions result = new com.google.protobuf.DescriptorProtos.ServiceOptions(this); … … 13796 21128 return result; 13797 21129 } 13798 21130 13799 21131 public Builder mergeFrom(com.google.protobuf.Message other) { 13800 21132 if (other instanceof com.google.protobuf.DescriptorProtos.ServiceOptions) { … … 13805 21137 } 13806 21138 } 13807 21139 13808 21140 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.ServiceOptions other) { 13809 21141 if (other == com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance()) return this; … … 13838 21170 return this; 13839 21171 } 13840 21172 13841 21173 public final boolean isInitialized() { 13842 21174 for (int i = 0; i < getUninterpretedOptionCount(); i++) { … … 13852 21184 return true; 13853 21185 } 13854 21186 13855 21187 public Builder mergeFrom( 13856 21188 com.google.protobuf.CodedInputStream input, 13857 21189 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13858 21190 throws java.io.IOException { 13859 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 13860 com.google.protobuf.UnknownFieldSet.newBuilder( 13861 this.getUnknownFields()); 13862 while (true) { 13863 int tag = input.readTag(); 13864 switch (tag) { 13865 case 0: 13866 this.setUnknownFields(unknownFields.build()); 13867 onChanged(); 13868 return this; 13869 default: { 13870 if (!parseUnknownField(input, unknownFields, 13871 extensionRegistry, tag)) { 13872 this.setUnknownFields(unknownFields.build()); 13873 onChanged(); 13874 return this; 13875 } 13876 break; 13877 } 13878 case 7994: { 13879 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder subBuilder = com.google.protobuf.DescriptorProtos.UninterpretedOption.newBuilder(); 13880 input.readMessage(subBuilder, extensionRegistry); 13881 addUninterpretedOption(subBuilder.buildPartial()); 13882 break; 13883 } 21191 com.google.protobuf.DescriptorProtos.ServiceOptions parsedMessage = null; 21192 try { 21193 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 21194 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 21195 parsedMessage = (com.google.protobuf.DescriptorProtos.ServiceOptions) e.getUnfinishedMessage(); 21196 throw e; 21197 } finally { 21198 if (parsedMessage != null) { 21199 mergeFrom(parsedMessage); 13884 21200 } 13885 21201 } 13886 }13887 21202 return this; 21203 } 13888 21204 private int bitField0_; 13889 21205 13890 21206 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 13891 21207 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = … … 13897 21213 } 13898 21214 } 13899 21215 13900 21216 private com.google.protobuf.RepeatedFieldBuilder< 13901 21217 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 13902 21218 21219 /** 21220 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21221 * 21222 * <pre> 21223 * The parser stores options it doesn't recognize here. See above. 21224 * </pre> 21225 */ 13903 21226 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 13904 21227 if (uninterpretedOptionBuilder_ == null) { … … 13908 21231 } 13909 21232 } 21233 /** 21234 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21235 * 21236 * <pre> 21237 * The parser stores options it doesn't recognize here. See above. 21238 * </pre> 21239 */ 13910 21240 public int getUninterpretedOptionCount() { 13911 21241 if (uninterpretedOptionBuilder_ == null) { … … 13915 21245 } 13916 21246 } 21247 /** 21248 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21249 * 21250 * <pre> 21251 * The parser stores options it doesn't recognize here. See above. 21252 * </pre> 21253 */ 13917 21254 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 13918 21255 if (uninterpretedOptionBuilder_ == null) { … … 13922 21259 } 13923 21260 } 21261 /** 21262 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21263 * 21264 * <pre> 21265 * The parser stores options it doesn't recognize here. See above. 21266 * </pre> 21267 */ 13924 21268 public Builder setUninterpretedOption( 13925 21269 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 13936 21280 return this; 13937 21281 } 21282 /** 21283 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21284 * 21285 * <pre> 21286 * The parser stores options it doesn't recognize here. See above. 21287 * </pre> 21288 */ 13938 21289 public Builder setUninterpretedOption( 13939 21290 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 13947 21298 return this; 13948 21299 } 21300 /** 21301 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21302 * 21303 * <pre> 21304 * The parser stores options it doesn't recognize here. See above. 21305 * </pre> 21306 */ 13949 21307 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { 13950 21308 if (uninterpretedOptionBuilder_ == null) { … … 13960 21318 return this; 13961 21319 } 21320 /** 21321 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21322 * 21323 * <pre> 21324 * The parser stores options it doesn't recognize here. See above. 21325 * </pre> 21326 */ 13962 21327 public Builder addUninterpretedOption( 13963 21328 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 13974 21339 return this; 13975 21340 } 21341 /** 21342 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21343 * 21344 * <pre> 21345 * The parser stores options it doesn't recognize here. See above. 21346 * </pre> 21347 */ 13976 21348 public Builder addUninterpretedOption( 13977 21349 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 13985 21357 return this; 13986 21358 } 21359 /** 21360 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21361 * 21362 * <pre> 21363 * The parser stores options it doesn't recognize here. See above. 21364 * </pre> 21365 */ 13987 21366 public Builder addUninterpretedOption( 13988 21367 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 13996 21375 return this; 13997 21376 } 21377 /** 21378 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21379 * 21380 * <pre> 21381 * The parser stores options it doesn't recognize here. See above. 21382 * </pre> 21383 */ 13998 21384 public Builder addAllUninterpretedOption( 13999 21385 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { … … 14007 21393 return this; 14008 21394 } 21395 /** 21396 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21397 * 21398 * <pre> 21399 * The parser stores options it doesn't recognize here. See above. 21400 * </pre> 21401 */ 14009 21402 public Builder clearUninterpretedOption() { 14010 21403 if (uninterpretedOptionBuilder_ == null) { … … 14017 21410 return this; 14018 21411 } 21412 /** 21413 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21414 * 21415 * <pre> 21416 * The parser stores options it doesn't recognize here. See above. 21417 * </pre> 21418 */ 14019 21419 public Builder removeUninterpretedOption(int index) { 14020 21420 if (uninterpretedOptionBuilder_ == null) { … … 14027 21427 return this; 14028 21428 } 21429 /** 21430 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21431 * 21432 * <pre> 21433 * The parser stores options it doesn't recognize here. See above. 21434 * </pre> 21435 */ 14029 21436 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( 14030 21437 int index) { 14031 21438 return getUninterpretedOptionFieldBuilder().getBuilder(index); 14032 21439 } 21440 /** 21441 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21442 * 21443 * <pre> 21444 * The parser stores options it doesn't recognize here. See above. 21445 * </pre> 21446 */ 14033 21447 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 14034 21448 int index) { … … 14038 21452 } 14039 21453 } 21454 /** 21455 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21456 * 21457 * <pre> 21458 * The parser stores options it doesn't recognize here. See above. 21459 * </pre> 21460 */ 14040 21461 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 14041 21462 getUninterpretedOptionOrBuilderList() { … … 14046 21467 } 14047 21468 } 21469 /** 21470 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21471 * 21472 * <pre> 21473 * The parser stores options it doesn't recognize here. See above. 21474 * </pre> 21475 */ 14048 21476 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { 14049 21477 return getUninterpretedOptionFieldBuilder().addBuilder( 14050 21478 com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 14051 21479 } 21480 /** 21481 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21482 * 21483 * <pre> 21484 * The parser stores options it doesn't recognize here. See above. 21485 * </pre> 21486 */ 14052 21487 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( 14053 21488 int index) { … … 14055 21490 index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 14056 21491 } 21492 /** 21493 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21494 * 21495 * <pre> 21496 * The parser stores options it doesn't recognize here. See above. 21497 * </pre> 21498 */ 14057 21499 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 14058 21500 getUninterpretedOptionBuilderList() { … … 14073 21515 return uninterpretedOptionBuilder_; 14074 21516 } 14075 21517 14076 21518 // @@protoc_insertion_point(builder_scope:google.protobuf.ServiceOptions) 14077 21519 } 14078 21520 14079 21521 static { 14080 21522 defaultInstance = new ServiceOptions(true); 14081 21523 defaultInstance.initFields(); 14082 21524 } 14083 21525 14084 21526 // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions) 14085 21527 } 14086 21528 14087 21529 public interface MethodOptionsOrBuilder extends 14088 21530 com.google.protobuf.GeneratedMessage. 14089 21531 ExtendableMessageOrBuilder<MethodOptions> { 14090 21532 14091 21533 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 21534 /** 21535 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21536 * 21537 * <pre> 21538 * The parser stores options it doesn't recognize here. See above. 21539 * </pre> 21540 */ 14092 21541 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 14093 21542 getUninterpretedOptionList(); 21543 /** 21544 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21545 * 21546 * <pre> 21547 * The parser stores options it doesn't recognize here. See above. 21548 * </pre> 21549 */ 14094 21550 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 21551 /** 21552 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21553 * 21554 * <pre> 21555 * The parser stores options it doesn't recognize here. See above. 21556 * </pre> 21557 */ 14095 21558 int getUninterpretedOptionCount(); 21559 /** 21560 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21561 * 21562 * <pre> 21563 * The parser stores options it doesn't recognize here. See above. 21564 * </pre> 21565 */ 14096 21566 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 14097 21567 getUninterpretedOptionOrBuilderList(); 21568 /** 21569 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21570 * 21571 * <pre> 21572 * The parser stores options it doesn't recognize here. See above. 21573 * </pre> 21574 */ 14098 21575 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 14099 21576 int index); 14100 21577 } 21578 /** 21579 * Protobuf type {@code google.protobuf.MethodOptions} 21580 */ 14101 21581 public static final class MethodOptions extends 14102 21582 com.google.protobuf.GeneratedMessage.ExtendableMessage< 14103 21583 MethodOptions> implements MethodOptionsOrBuilder { 14104 21584 // Use MethodOptions.newBuilder() to construct. 14105 private MethodOptions( Builderbuilder) {21585 private MethodOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.DescriptorProtos.MethodOptions, ?> builder) { 14106 21586 super(builder); 14107 } 14108 private MethodOptions(boolean noInit) {} 14109 21587 this.unknownFields = builder.getUnknownFields(); 21588 } 21589 private MethodOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 21590 14110 21591 private static final MethodOptions defaultInstance; 14111 21592 public static MethodOptions getDefaultInstance() { 14112 21593 return defaultInstance; 14113 21594 } 14114 21595 14115 21596 public MethodOptions getDefaultInstanceForType() { 14116 21597 return defaultInstance; 14117 21598 } 14118 21599 21600 private final com.google.protobuf.UnknownFieldSet unknownFields; 21601 @java.lang.Override 21602 public final com.google.protobuf.UnknownFieldSet 21603 getUnknownFields() { 21604 return this.unknownFields; 21605 } 21606 private MethodOptions( 21607 com.google.protobuf.CodedInputStream input, 21608 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 21609 throws com.google.protobuf.InvalidProtocolBufferException { 21610 initFields(); 21611 int mutable_bitField0_ = 0; 21612 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 21613 com.google.protobuf.UnknownFieldSet.newBuilder(); 21614 try { 21615 boolean done = false; 21616 while (!done) { 21617 int tag = input.readTag(); 21618 switch (tag) { 21619 case 0: 21620 done = true; 21621 break; 21622 default: { 21623 if (!parseUnknownField(input, unknownFields, 21624 extensionRegistry, tag)) { 21625 done = true; 21626 } 21627 break; 21628 } 21629 case 7994: { 21630 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 21631 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 21632 mutable_bitField0_ |= 0x00000001; 21633 } 21634 uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 21635 break; 21636 } 21637 } 21638 } 21639 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 21640 throw e.setUnfinishedMessage(this); 21641 } catch (java.io.IOException e) { 21642 throw new com.google.protobuf.InvalidProtocolBufferException( 21643 e.getMessage()).setUnfinishedMessage(this); 21644 } finally { 21645 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 21646 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 21647 } 21648 this.unknownFields = unknownFields.build(); 21649 makeExtensionsImmutable(); 21650 } 21651 } 14119 21652 public static final com.google.protobuf.Descriptors.Descriptor 14120 21653 getDescriptor() { 14121 21654 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodOptions_descriptor; 14122 21655 } 14123 21656 14124 21657 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 14125 21658 internalGetFieldAccessorTable() { 14126 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodOptions_fieldAccessorTable; 14127 } 14128 21659 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodOptions_fieldAccessorTable 21660 .ensureFieldAccessorsInitialized( 21661 com.google.protobuf.DescriptorProtos.MethodOptions.class, com.google.protobuf.DescriptorProtos.MethodOptions.Builder.class); 21662 } 21663 21664 public static com.google.protobuf.Parser<MethodOptions> PARSER = 21665 new com.google.protobuf.AbstractParser<MethodOptions>() { 21666 public MethodOptions parsePartialFrom( 21667 com.google.protobuf.CodedInputStream input, 21668 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 21669 throws com.google.protobuf.InvalidProtocolBufferException { 21670 return new MethodOptions(input, extensionRegistry); 21671 } 21672 }; 21673 21674 @java.lang.Override 21675 public com.google.protobuf.Parser<MethodOptions> getParserForType() { 21676 return PARSER; 21677 } 21678 14129 21679 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 14130 21680 public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; 14131 21681 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 21682 /** 21683 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21684 * 21685 * <pre> 21686 * The parser stores options it doesn't recognize here. See above. 21687 * </pre> 21688 */ 14132 21689 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 14133 21690 return uninterpretedOption_; 14134 21691 } 21692 /** 21693 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21694 * 21695 * <pre> 21696 * The parser stores options it doesn't recognize here. See above. 21697 * </pre> 21698 */ 14135 21699 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 14136 21700 getUninterpretedOptionOrBuilderList() { 14137 21701 return uninterpretedOption_; 14138 21702 } 21703 /** 21704 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21705 * 21706 * <pre> 21707 * The parser stores options it doesn't recognize here. See above. 21708 * </pre> 21709 */ 14139 21710 public int getUninterpretedOptionCount() { 14140 21711 return uninterpretedOption_.size(); 14141 21712 } 21713 /** 21714 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21715 * 21716 * <pre> 21717 * The parser stores options it doesn't recognize here. See above. 21718 * </pre> 21719 */ 14142 21720 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 14143 21721 return uninterpretedOption_.get(index); 14144 21722 } 21723 /** 21724 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21725 * 21726 * <pre> 21727 * The parser stores options it doesn't recognize here. See above. 21728 * </pre> 21729 */ 14145 21730 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 14146 21731 int index) { 14147 21732 return uninterpretedOption_.get(index); 14148 21733 } 14149 21734 14150 21735 private void initFields() { 14151 21736 uninterpretedOption_ = java.util.Collections.emptyList(); … … 14155 21740 byte isInitialized = memoizedIsInitialized; 14156 21741 if (isInitialized != -1) return isInitialized == 1; 14157 21742 14158 21743 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 14159 21744 if (!getUninterpretedOption(i).isInitialized()) { … … 14169 21754 return true; 14170 21755 } 14171 21756 14172 21757 public void writeTo(com.google.protobuf.CodedOutputStream output) 14173 21758 throws java.io.IOException { … … 14182 21767 getUnknownFields().writeTo(output); 14183 21768 } 14184 21769 14185 21770 private int memoizedSerializedSize = -1; 14186 21771 public int getSerializedSize() { 14187 21772 int size = memoizedSerializedSize; 14188 21773 if (size != -1) return size; 14189 21774 14190 21775 size = 0; 14191 21776 for (int i = 0; i < uninterpretedOption_.size(); i++) { … … 14198 21783 return size; 14199 21784 } 14200 21785 14201 21786 private static final long serialVersionUID = 0L; 14202 21787 @java.lang.Override … … 14205 21790 return super.writeReplace(); 14206 21791 } 14207 21792 14208 21793 public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( 14209 21794 com.google.protobuf.ByteString data) 14210 21795 throws com.google.protobuf.InvalidProtocolBufferException { 14211 return newBuilder().mergeFrom(data).buildParsed();21796 return PARSER.parseFrom(data); 14212 21797 } 14213 21798 public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( … … 14215 21800 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14216 21801 throws com.google.protobuf.InvalidProtocolBufferException { 14217 return newBuilder().mergeFrom(data, extensionRegistry) 14218 .buildParsed(); 21802 return PARSER.parseFrom(data, extensionRegistry); 14219 21803 } 14220 21804 public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom(byte[] data) 14221 21805 throws com.google.protobuf.InvalidProtocolBufferException { 14222 return newBuilder().mergeFrom(data).buildParsed();21806 return PARSER.parseFrom(data); 14223 21807 } 14224 21808 public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( … … 14226 21810 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14227 21811 throws com.google.protobuf.InvalidProtocolBufferException { 14228 return newBuilder().mergeFrom(data, extensionRegistry) 14229 .buildParsed(); 21812 return PARSER.parseFrom(data, extensionRegistry); 14230 21813 } 14231 21814 public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom(java.io.InputStream input) 14232 21815 throws java.io.IOException { 14233 return newBuilder().mergeFrom(input).buildParsed();21816 return PARSER.parseFrom(input); 14234 21817 } 14235 21818 public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( … … 14237 21820 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14238 21821 throws java.io.IOException { 14239 return newBuilder().mergeFrom(input, extensionRegistry) 14240 .buildParsed(); 21822 return PARSER.parseFrom(input, extensionRegistry); 14241 21823 } 14242 21824 public static com.google.protobuf.DescriptorProtos.MethodOptions parseDelimitedFrom(java.io.InputStream input) 14243 21825 throws java.io.IOException { 14244 Builder builder = newBuilder(); 14245 if (builder.mergeDelimitedFrom(input)) { 14246 return builder.buildParsed(); 14247 } else { 14248 return null; 14249 } 21826 return PARSER.parseDelimitedFrom(input); 14250 21827 } 14251 21828 public static com.google.protobuf.DescriptorProtos.MethodOptions parseDelimitedFrom( … … 14253 21830 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14254 21831 throws java.io.IOException { 14255 Builder builder = newBuilder(); 14256 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 14257 return builder.buildParsed(); 14258 } else { 14259 return null; 14260 } 21832 return PARSER.parseDelimitedFrom(input, extensionRegistry); 14261 21833 } 14262 21834 public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( 14263 21835 com.google.protobuf.CodedInputStream input) 14264 21836 throws java.io.IOException { 14265 return newBuilder().mergeFrom(input).buildParsed();21837 return PARSER.parseFrom(input); 14266 21838 } 14267 21839 public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( … … 14269 21841 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14270 21842 throws java.io.IOException { 14271 return newBuilder().mergeFrom(input, extensionRegistry) 14272 .buildParsed(); 14273 } 14274 21843 return PARSER.parseFrom(input, extensionRegistry); 21844 } 21845 14275 21846 public static Builder newBuilder() { return Builder.create(); } 14276 21847 public Builder newBuilderForType() { return newBuilder(); } … … 14279 21850 } 14280 21851 public Builder toBuilder() { return newBuilder(this); } 14281 21852 14282 21853 @java.lang.Override 14283 21854 protected Builder newBuilderForType( … … 14286 21857 return builder; 14287 21858 } 21859 /** 21860 * Protobuf type {@code google.protobuf.MethodOptions} 21861 */ 14288 21862 public static final class Builder extends 14289 21863 com.google.protobuf.GeneratedMessage.ExtendableBuilder< … … 14293 21867 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodOptions_descriptor; 14294 21868 } 14295 21869 14296 21870 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 14297 21871 internalGetFieldAccessorTable() { 14298 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodOptions_fieldAccessorTable; 14299 } 14300 21872 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodOptions_fieldAccessorTable 21873 .ensureFieldAccessorsInitialized( 21874 com.google.protobuf.DescriptorProtos.MethodOptions.class, com.google.protobuf.DescriptorProtos.MethodOptions.Builder.class); 21875 } 21876 14301 21877 // Construct using com.google.protobuf.DescriptorProtos.MethodOptions.newBuilder() 14302 21878 private Builder() { 14303 21879 maybeForceBuilderInitialization(); 14304 21880 } 14305 14306 private Builder(BuilderParent parent) { 21881 21882 private Builder( 21883 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 14307 21884 super(parent); 14308 21885 maybeForceBuilderInitialization(); … … 14316 21893 return new Builder(); 14317 21894 } 14318 21895 14319 21896 public Builder clear() { 14320 21897 super.clear(); … … 14327 21904 return this; 14328 21905 } 14329 21906 14330 21907 public Builder clone() { 14331 21908 return create().mergeFrom(buildPartial()); 14332 21909 } 14333 21910 14334 21911 public com.google.protobuf.Descriptors.Descriptor 14335 21912 getDescriptorForType() { 14336 return com.google.protobuf.DescriptorProtos. MethodOptions.getDescriptor();14337 } 14338 21913 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodOptions_descriptor; 21914 } 21915 14339 21916 public com.google.protobuf.DescriptorProtos.MethodOptions getDefaultInstanceForType() { 14340 21917 return com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance(); 14341 21918 } 14342 21919 14343 21920 public com.google.protobuf.DescriptorProtos.MethodOptions build() { 14344 21921 com.google.protobuf.DescriptorProtos.MethodOptions result = buildPartial(); … … 14348 21925 return result; 14349 21926 } 14350 14351 private com.google.protobuf.DescriptorProtos.MethodOptions buildParsed() 14352 throws com.google.protobuf.InvalidProtocolBufferException { 14353 com.google.protobuf.DescriptorProtos.MethodOptions result = buildPartial(); 14354 if (!result.isInitialized()) { 14355 throw newUninitializedMessageException( 14356 result).asInvalidProtocolBufferException(); 14357 } 14358 return result; 14359 } 14360 21927 14361 21928 public com.google.protobuf.DescriptorProtos.MethodOptions buildPartial() { 14362 21929 com.google.protobuf.DescriptorProtos.MethodOptions result = new com.google.protobuf.DescriptorProtos.MethodOptions(this); … … 14374 21941 return result; 14375 21942 } 14376 21943 14377 21944 public Builder mergeFrom(com.google.protobuf.Message other) { 14378 21945 if (other instanceof com.google.protobuf.DescriptorProtos.MethodOptions) { … … 14383 21950 } 14384 21951 } 14385 21952 14386 21953 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.MethodOptions other) { 14387 21954 if (other == com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance()) return this; … … 14416 21983 return this; 14417 21984 } 14418 21985 14419 21986 public final boolean isInitialized() { 14420 21987 for (int i = 0; i < getUninterpretedOptionCount(); i++) { … … 14430 21997 return true; 14431 21998 } 14432 21999 14433 22000 public Builder mergeFrom( 14434 22001 com.google.protobuf.CodedInputStream input, 14435 22002 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14436 22003 throws java.io.IOException { 14437 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 14438 com.google.protobuf.UnknownFieldSet.newBuilder( 14439 this.getUnknownFields()); 14440 while (true) { 14441 int tag = input.readTag(); 14442 switch (tag) { 14443 case 0: 14444 this.setUnknownFields(unknownFields.build()); 14445 onChanged(); 14446 return this; 14447 default: { 14448 if (!parseUnknownField(input, unknownFields, 14449 extensionRegistry, tag)) { 14450 this.setUnknownFields(unknownFields.build()); 14451 onChanged(); 14452 return this; 14453 } 14454 break; 14455 } 14456 case 7994: { 14457 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder subBuilder = com.google.protobuf.DescriptorProtos.UninterpretedOption.newBuilder(); 14458 input.readMessage(subBuilder, extensionRegistry); 14459 addUninterpretedOption(subBuilder.buildPartial()); 14460 break; 14461 } 22004 com.google.protobuf.DescriptorProtos.MethodOptions parsedMessage = null; 22005 try { 22006 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 22007 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 22008 parsedMessage = (com.google.protobuf.DescriptorProtos.MethodOptions) e.getUnfinishedMessage(); 22009 throw e; 22010 } finally { 22011 if (parsedMessage != null) { 22012 mergeFrom(parsedMessage); 14462 22013 } 14463 22014 } 14464 }14465 22015 return this; 22016 } 14466 22017 private int bitField0_; 14467 22018 14468 22019 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 14469 22020 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = … … 14475 22026 } 14476 22027 } 14477 22028 14478 22029 private com.google.protobuf.RepeatedFieldBuilder< 14479 22030 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 14480 22031 22032 /** 22033 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22034 * 22035 * <pre> 22036 * The parser stores options it doesn't recognize here. See above. 22037 * </pre> 22038 */ 14481 22039 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 14482 22040 if (uninterpretedOptionBuilder_ == null) { … … 14486 22044 } 14487 22045 } 22046 /** 22047 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22048 * 22049 * <pre> 22050 * The parser stores options it doesn't recognize here. See above. 22051 * </pre> 22052 */ 14488 22053 public int getUninterpretedOptionCount() { 14489 22054 if (uninterpretedOptionBuilder_ == null) { … … 14493 22058 } 14494 22059 } 22060 /** 22061 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22062 * 22063 * <pre> 22064 * The parser stores options it doesn't recognize here. See above. 22065 * </pre> 22066 */ 14495 22067 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 14496 22068 if (uninterpretedOptionBuilder_ == null) { … … 14500 22072 } 14501 22073 } 22074 /** 22075 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22076 * 22077 * <pre> 22078 * The parser stores options it doesn't recognize here. See above. 22079 * </pre> 22080 */ 14502 22081 public Builder setUninterpretedOption( 14503 22082 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 14514 22093 return this; 14515 22094 } 22095 /** 22096 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22097 * 22098 * <pre> 22099 * The parser stores options it doesn't recognize here. See above. 22100 * </pre> 22101 */ 14516 22102 public Builder setUninterpretedOption( 14517 22103 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 14525 22111 return this; 14526 22112 } 22113 /** 22114 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22115 * 22116 * <pre> 22117 * The parser stores options it doesn't recognize here. See above. 22118 * </pre> 22119 */ 14527 22120 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { 14528 22121 if (uninterpretedOptionBuilder_ == null) { … … 14538 22131 return this; 14539 22132 } 22133 /** 22134 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22135 * 22136 * <pre> 22137 * The parser stores options it doesn't recognize here. See above. 22138 * </pre> 22139 */ 14540 22140 public Builder addUninterpretedOption( 14541 22141 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 14552 22152 return this; 14553 22153 } 22154 /** 22155 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22156 * 22157 * <pre> 22158 * The parser stores options it doesn't recognize here. See above. 22159 * </pre> 22160 */ 14554 22161 public Builder addUninterpretedOption( 14555 22162 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 14563 22170 return this; 14564 22171 } 22172 /** 22173 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22174 * 22175 * <pre> 22176 * The parser stores options it doesn't recognize here. See above. 22177 * </pre> 22178 */ 14565 22179 public Builder addUninterpretedOption( 14566 22180 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { … … 14574 22188 return this; 14575 22189 } 22190 /** 22191 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22192 * 22193 * <pre> 22194 * The parser stores options it doesn't recognize here. See above. 22195 * </pre> 22196 */ 14576 22197 public Builder addAllUninterpretedOption( 14577 22198 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { … … 14585 22206 return this; 14586 22207 } 22208 /** 22209 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22210 * 22211 * <pre> 22212 * The parser stores options it doesn't recognize here. See above. 22213 * </pre> 22214 */ 14587 22215 public Builder clearUninterpretedOption() { 14588 22216 if (uninterpretedOptionBuilder_ == null) { … … 14595 22223 return this; 14596 22224 } 22225 /** 22226 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22227 * 22228 * <pre> 22229 * The parser stores options it doesn't recognize here. See above. 22230 * </pre> 22231 */ 14597 22232 public Builder removeUninterpretedOption(int index) { 14598 22233 if (uninterpretedOptionBuilder_ == null) { … … 14605 22240 return this; 14606 22241 } 22242 /** 22243 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22244 * 22245 * <pre> 22246 * The parser stores options it doesn't recognize here. See above. 22247 * </pre> 22248 */ 14607 22249 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( 14608 22250 int index) { 14609 22251 return getUninterpretedOptionFieldBuilder().getBuilder(index); 14610 22252 } 22253 /** 22254 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22255 * 22256 * <pre> 22257 * The parser stores options it doesn't recognize here. See above. 22258 * </pre> 22259 */ 14611 22260 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 14612 22261 int index) { … … 14616 22265 } 14617 22266 } 22267 /** 22268 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22269 * 22270 * <pre> 22271 * The parser stores options it doesn't recognize here. See above. 22272 * </pre> 22273 */ 14618 22274 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 14619 22275 getUninterpretedOptionOrBuilderList() { … … 14624 22280 } 14625 22281 } 22282 /** 22283 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22284 * 22285 * <pre> 22286 * The parser stores options it doesn't recognize here. See above. 22287 * </pre> 22288 */ 14626 22289 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { 14627 22290 return getUninterpretedOptionFieldBuilder().addBuilder( 14628 22291 com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 14629 22292 } 22293 /** 22294 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22295 * 22296 * <pre> 22297 * The parser stores options it doesn't recognize here. See above. 22298 * </pre> 22299 */ 14630 22300 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( 14631 22301 int index) { … … 14633 22303 index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 14634 22304 } 22305 /** 22306 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22307 * 22308 * <pre> 22309 * The parser stores options it doesn't recognize here. See above. 22310 * </pre> 22311 */ 14635 22312 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 14636 22313 getUninterpretedOptionBuilderList() { … … 14651 22328 return uninterpretedOptionBuilder_; 14652 22329 } 14653 22330 14654 22331 // @@protoc_insertion_point(builder_scope:google.protobuf.MethodOptions) 14655 22332 } 14656 22333 14657 22334 static { 14658 22335 defaultInstance = new MethodOptions(true); 14659 22336 defaultInstance.initFields(); 14660 22337 } 14661 22338 14662 22339 // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions) 14663 22340 } 14664 22341 14665 22342 public interface UninterpretedOptionOrBuilder 14666 22343 extends com.google.protobuf.MessageOrBuilder { 14667 22344 14668 22345 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; 22346 /** 22347 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 22348 */ 14669 22349 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> 14670 22350 getNameList(); 22351 /** 22352 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 22353 */ 14671 22354 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getName(int index); 22355 /** 22356 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 22357 */ 14672 22358 int getNameCount(); 22359 /** 22360 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 22361 */ 14673 22362 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> 14674 22363 getNameOrBuilderList(); 22364 /** 22365 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 22366 */ 14675 22367 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder( 14676 22368 int index); 14677 22369 14678 22370 // optional string identifier_value = 3; 22371 /** 22372 * <code>optional string identifier_value = 3;</code> 22373 * 22374 * <pre> 22375 * The value of the uninterpreted option, in whatever type the tokenizer 22376 * identified it as during parsing. Exactly one of these should be set. 22377 * </pre> 22378 */ 14679 22379 boolean hasIdentifierValue(); 14680 String getIdentifierValue(); 14681 22380 /** 22381 * <code>optional string identifier_value = 3;</code> 22382 * 22383 * <pre> 22384 * The value of the uninterpreted option, in whatever type the tokenizer 22385 * identified it as during parsing. Exactly one of these should be set. 22386 * </pre> 22387 */ 22388 java.lang.String getIdentifierValue(); 22389 /** 22390 * <code>optional string identifier_value = 3;</code> 22391 * 22392 * <pre> 22393 * The value of the uninterpreted option, in whatever type the tokenizer 22394 * identified it as during parsing. Exactly one of these should be set. 22395 * </pre> 22396 */ 22397 com.google.protobuf.ByteString 22398 getIdentifierValueBytes(); 22399 14682 22400 // optional uint64 positive_int_value = 4; 22401 /** 22402 * <code>optional uint64 positive_int_value = 4;</code> 22403 */ 14683 22404 boolean hasPositiveIntValue(); 22405 /** 22406 * <code>optional uint64 positive_int_value = 4;</code> 22407 */ 14684 22408 long getPositiveIntValue(); 14685 22409 14686 22410 // optional int64 negative_int_value = 5; 22411 /** 22412 * <code>optional int64 negative_int_value = 5;</code> 22413 */ 14687 22414 boolean hasNegativeIntValue(); 22415 /** 22416 * <code>optional int64 negative_int_value = 5;</code> 22417 */ 14688 22418 long getNegativeIntValue(); 14689 22419 14690 22420 // optional double double_value = 6; 22421 /** 22422 * <code>optional double double_value = 6;</code> 22423 */ 14691 22424 boolean hasDoubleValue(); 22425 /** 22426 * <code>optional double double_value = 6;</code> 22427 */ 14692 22428 double getDoubleValue(); 14693 22429 14694 22430 // optional bytes string_value = 7; 22431 /** 22432 * <code>optional bytes string_value = 7;</code> 22433 */ 14695 22434 boolean hasStringValue(); 22435 /** 22436 * <code>optional bytes string_value = 7;</code> 22437 */ 14696 22438 com.google.protobuf.ByteString getStringValue(); 14697 22439 14698 22440 // optional string aggregate_value = 8; 22441 /** 22442 * <code>optional string aggregate_value = 8;</code> 22443 */ 14699 22444 boolean hasAggregateValue(); 14700 String getAggregateValue(); 22445 /** 22446 * <code>optional string aggregate_value = 8;</code> 22447 */ 22448 java.lang.String getAggregateValue(); 22449 /** 22450 * <code>optional string aggregate_value = 8;</code> 22451 */ 22452 com.google.protobuf.ByteString 22453 getAggregateValueBytes(); 14701 22454 } 22455 /** 22456 * Protobuf type {@code google.protobuf.UninterpretedOption} 22457 * 22458 * <pre> 22459 * A message representing a option the parser does not recognize. This only 22460 * appears in options protos created by the compiler::Parser class. 22461 * DescriptorPool resolves these when building Descriptor objects. Therefore, 22462 * options protos in descriptor objects (e.g. returned by Descriptor::options(), 22463 * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions 22464 * in them. 22465 * </pre> 22466 */ 14702 22467 public static final class UninterpretedOption extends 14703 22468 com.google.protobuf.GeneratedMessage 14704 22469 implements UninterpretedOptionOrBuilder { 14705 22470 // Use UninterpretedOption.newBuilder() to construct. 14706 private UninterpretedOption( Builderbuilder) {22471 private UninterpretedOption(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 14707 22472 super(builder); 14708 } 14709 private UninterpretedOption(boolean noInit) {} 14710 22473 this.unknownFields = builder.getUnknownFields(); 22474 } 22475 private UninterpretedOption(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 22476 14711 22477 private static final UninterpretedOption defaultInstance; 14712 22478 public static UninterpretedOption getDefaultInstance() { 14713 22479 return defaultInstance; 14714 22480 } 14715 22481 14716 22482 public UninterpretedOption getDefaultInstanceForType() { 14717 22483 return defaultInstance; 14718 22484 } 14719 22485 22486 private final com.google.protobuf.UnknownFieldSet unknownFields; 22487 @java.lang.Override 22488 public final com.google.protobuf.UnknownFieldSet 22489 getUnknownFields() { 22490 return this.unknownFields; 22491 } 22492 private UninterpretedOption( 22493 com.google.protobuf.CodedInputStream input, 22494 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 22495 throws com.google.protobuf.InvalidProtocolBufferException { 22496 initFields(); 22497 int mutable_bitField0_ = 0; 22498 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 22499 com.google.protobuf.UnknownFieldSet.newBuilder(); 22500 try { 22501 boolean done = false; 22502 while (!done) { 22503 int tag = input.readTag(); 22504 switch (tag) { 22505 case 0: 22506 done = true; 22507 break; 22508 default: { 22509 if (!parseUnknownField(input, unknownFields, 22510 extensionRegistry, tag)) { 22511 done = true; 22512 } 22513 break; 22514 } 22515 case 18: { 22516 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 22517 name_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart>(); 22518 mutable_bitField0_ |= 0x00000001; 22519 } 22520 name_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.PARSER, extensionRegistry)); 22521 break; 22522 } 22523 case 26: { 22524 bitField0_ |= 0x00000001; 22525 identifierValue_ = input.readBytes(); 22526 break; 22527 } 22528 case 32: { 22529 bitField0_ |= 0x00000002; 22530 positiveIntValue_ = input.readUInt64(); 22531 break; 22532 } 22533 case 40: { 22534 bitField0_ |= 0x00000004; 22535 negativeIntValue_ = input.readInt64(); 22536 break; 22537 } 22538 case 49: { 22539 bitField0_ |= 0x00000008; 22540 doubleValue_ = input.readDouble(); 22541 break; 22542 } 22543 case 58: { 22544 bitField0_ |= 0x00000010; 22545 stringValue_ = input.readBytes(); 22546 break; 22547 } 22548 case 66: { 22549 bitField0_ |= 0x00000020; 22550 aggregateValue_ = input.readBytes(); 22551 break; 22552 } 22553 } 22554 } 22555 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 22556 throw e.setUnfinishedMessage(this); 22557 } catch (java.io.IOException e) { 22558 throw new com.google.protobuf.InvalidProtocolBufferException( 22559 e.getMessage()).setUnfinishedMessage(this); 22560 } finally { 22561 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 22562 name_ = java.util.Collections.unmodifiableList(name_); 22563 } 22564 this.unknownFields = unknownFields.build(); 22565 makeExtensionsImmutable(); 22566 } 22567 } 14720 22568 public static final com.google.protobuf.Descriptors.Descriptor 14721 22569 getDescriptor() { 14722 22570 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_descriptor; 14723 22571 } 14724 22572 14725 22573 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 14726 22574 internalGetFieldAccessorTable() { 14727 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable; 14728 } 14729 22575 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable 22576 .ensureFieldAccessorsInitialized( 22577 com.google.protobuf.DescriptorProtos.UninterpretedOption.class, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder.class); 22578 } 22579 22580 public static com.google.protobuf.Parser<UninterpretedOption> PARSER = 22581 new com.google.protobuf.AbstractParser<UninterpretedOption>() { 22582 public UninterpretedOption parsePartialFrom( 22583 com.google.protobuf.CodedInputStream input, 22584 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 22585 throws com.google.protobuf.InvalidProtocolBufferException { 22586 return new UninterpretedOption(input, extensionRegistry); 22587 } 22588 }; 22589 22590 @java.lang.Override 22591 public com.google.protobuf.Parser<UninterpretedOption> getParserForType() { 22592 return PARSER; 22593 } 22594 14730 22595 public interface NamePartOrBuilder 14731 22596 extends com.google.protobuf.MessageOrBuilder { 14732 22597 14733 22598 // required string name_part = 1; 22599 /** 22600 * <code>required string name_part = 1;</code> 22601 */ 14734 22602 boolean hasNamePart(); 14735 String getNamePart(); 14736 22603 /** 22604 * <code>required string name_part = 1;</code> 22605 */ 22606 java.lang.String getNamePart(); 22607 /** 22608 * <code>required string name_part = 1;</code> 22609 */ 22610 com.google.protobuf.ByteString 22611 getNamePartBytes(); 22612 14737 22613 // required bool is_extension = 2; 22614 /** 22615 * <code>required bool is_extension = 2;</code> 22616 */ 14738 22617 boolean hasIsExtension(); 22618 /** 22619 * <code>required bool is_extension = 2;</code> 22620 */ 14739 22621 boolean getIsExtension(); 14740 22622 } 22623 /** 22624 * Protobuf type {@code google.protobuf.UninterpretedOption.NamePart} 22625 * 22626 * <pre> 22627 * The name of the uninterpreted option. Each string represents a segment in 22628 * a dot-separated name. is_extension is true iff a segment represents an 22629 * extension (denoted with parentheses in options specs in .proto files). 22630 * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents 22631 * "foo.(bar.baz).qux". 22632 * </pre> 22633 */ 14741 22634 public static final class NamePart extends 14742 22635 com.google.protobuf.GeneratedMessage 14743 22636 implements NamePartOrBuilder { 14744 22637 // Use NamePart.newBuilder() to construct. 14745 private NamePart( Builderbuilder) {22638 private NamePart(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 14746 22639 super(builder); 14747 } 14748 private NamePart(boolean noInit) {} 14749 22640 this.unknownFields = builder.getUnknownFields(); 22641 } 22642 private NamePart(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 22643 14750 22644 private static final NamePart defaultInstance; 14751 22645 public static NamePart getDefaultInstance() { 14752 22646 return defaultInstance; 14753 22647 } 14754 22648 14755 22649 public NamePart getDefaultInstanceForType() { 14756 22650 return defaultInstance; 14757 22651 } 14758 22652 22653 private final com.google.protobuf.UnknownFieldSet unknownFields; 22654 @java.lang.Override 22655 public final com.google.protobuf.UnknownFieldSet 22656 getUnknownFields() { 22657 return this.unknownFields; 22658 } 22659 private NamePart( 22660 com.google.protobuf.CodedInputStream input, 22661 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 22662 throws com.google.protobuf.InvalidProtocolBufferException { 22663 initFields(); 22664 int mutable_bitField0_ = 0; 22665 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 22666 com.google.protobuf.UnknownFieldSet.newBuilder(); 22667 try { 22668 boolean done = false; 22669 while (!done) { 22670 int tag = input.readTag(); 22671 switch (tag) { 22672 case 0: 22673 done = true; 22674 break; 22675 default: { 22676 if (!parseUnknownField(input, unknownFields, 22677 extensionRegistry, tag)) { 22678 done = true; 22679 } 22680 break; 22681 } 22682 case 10: { 22683 bitField0_ |= 0x00000001; 22684 namePart_ = input.readBytes(); 22685 break; 22686 } 22687 case 16: { 22688 bitField0_ |= 0x00000002; 22689 isExtension_ = input.readBool(); 22690 break; 22691 } 22692 } 22693 } 22694 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 22695 throw e.setUnfinishedMessage(this); 22696 } catch (java.io.IOException e) { 22697 throw new com.google.protobuf.InvalidProtocolBufferException( 22698 e.getMessage()).setUnfinishedMessage(this); 22699 } finally { 22700 this.unknownFields = unknownFields.build(); 22701 makeExtensionsImmutable(); 22702 } 22703 } 14759 22704 public static final com.google.protobuf.Descriptors.Descriptor 14760 22705 getDescriptor() { 14761 22706 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor; 14762 22707 } 14763 22708 14764 22709 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 14765 22710 internalGetFieldAccessorTable() { 14766 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable; 14767 } 14768 22711 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable 22712 .ensureFieldAccessorsInitialized( 22713 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.class, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder.class); 22714 } 22715 22716 public static com.google.protobuf.Parser<NamePart> PARSER = 22717 new com.google.protobuf.AbstractParser<NamePart>() { 22718 public NamePart parsePartialFrom( 22719 com.google.protobuf.CodedInputStream input, 22720 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 22721 throws com.google.protobuf.InvalidProtocolBufferException { 22722 return new NamePart(input, extensionRegistry); 22723 } 22724 }; 22725 22726 @java.lang.Override 22727 public com.google.protobuf.Parser<NamePart> getParserForType() { 22728 return PARSER; 22729 } 22730 14769 22731 private int bitField0_; 14770 22732 // required string name_part = 1; 14771 22733 public static final int NAME_PART_FIELD_NUMBER = 1; 14772 22734 private java.lang.Object namePart_; 22735 /** 22736 * <code>required string name_part = 1;</code> 22737 */ 14773 22738 public boolean hasNamePart() { 14774 22739 return ((bitField0_ & 0x00000001) == 0x00000001); 14775 22740 } 14776 public String getNamePart() { 22741 /** 22742 * <code>required string name_part = 1;</code> 22743 */ 22744 public java.lang.String getNamePart() { 14777 22745 java.lang.Object ref = namePart_; 14778 if (ref instanceof String) {14779 return ( String) ref;22746 if (ref instanceof java.lang.String) { 22747 return (java.lang.String) ref; 14780 22748 } else { 14781 22749 com.google.protobuf.ByteString bs = 14782 22750 (com.google.protobuf.ByteString) ref; 14783 String s = bs.toStringUtf8();14784 if ( com.google.protobuf.Internal.isValidUtf8(bs)) {22751 java.lang.String s = bs.toStringUtf8(); 22752 if (bs.isValidUtf8()) { 14785 22753 namePart_ = s; 14786 22754 } … … 14788 22756 } 14789 22757 } 14790 private com.google.protobuf.ByteString getNamePartBytes() { 22758 /** 22759 * <code>required string name_part = 1;</code> 22760 */ 22761 public com.google.protobuf.ByteString 22762 getNamePartBytes() { 14791 22763 java.lang.Object ref = namePart_; 14792 if (ref instanceof String) {22764 if (ref instanceof java.lang.String) { 14793 22765 com.google.protobuf.ByteString b = 14794 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 22766 com.google.protobuf.ByteString.copyFromUtf8( 22767 (java.lang.String) ref); 14795 22768 namePart_ = b; 14796 22769 return b; … … 14799 22772 } 14800 22773 } 14801 22774 14802 22775 // required bool is_extension = 2; 14803 22776 public static final int IS_EXTENSION_FIELD_NUMBER = 2; 14804 22777 private boolean isExtension_; 22778 /** 22779 * <code>required bool is_extension = 2;</code> 22780 */ 14805 22781 public boolean hasIsExtension() { 14806 22782 return ((bitField0_ & 0x00000002) == 0x00000002); 14807 22783 } 22784 /** 22785 * <code>required bool is_extension = 2;</code> 22786 */ 14808 22787 public boolean getIsExtension() { 14809 22788 return isExtension_; 14810 22789 } 14811 22790 14812 22791 private void initFields() { 14813 22792 namePart_ = ""; … … 14818 22797 byte isInitialized = memoizedIsInitialized; 14819 22798 if (isInitialized != -1) return isInitialized == 1; 14820 22799 14821 22800 if (!hasNamePart()) { 14822 22801 memoizedIsInitialized = 0; … … 14830 22809 return true; 14831 22810 } 14832 22811 14833 22812 public void writeTo(com.google.protobuf.CodedOutputStream output) 14834 22813 throws java.io.IOException { … … 14842 22821 getUnknownFields().writeTo(output); 14843 22822 } 14844 22823 14845 22824 private int memoizedSerializedSize = -1; 14846 22825 public int getSerializedSize() { 14847 22826 int size = memoizedSerializedSize; 14848 22827 if (size != -1) return size; 14849 22828 14850 22829 size = 0; 14851 22830 if (((bitField0_ & 0x00000001) == 0x00000001)) { … … 14861 22840 return size; 14862 22841 } 14863 22842 14864 22843 private static final long serialVersionUID = 0L; 14865 22844 @java.lang.Override … … 14868 22847 return super.writeReplace(); 14869 22848 } 14870 22849 14871 22850 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( 14872 22851 com.google.protobuf.ByteString data) 14873 22852 throws com.google.protobuf.InvalidProtocolBufferException { 14874 return newBuilder().mergeFrom(data).buildParsed();22853 return PARSER.parseFrom(data); 14875 22854 } 14876 22855 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( … … 14878 22857 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14879 22858 throws com.google.protobuf.InvalidProtocolBufferException { 14880 return newBuilder().mergeFrom(data, extensionRegistry) 14881 .buildParsed(); 22859 return PARSER.parseFrom(data, extensionRegistry); 14882 22860 } 14883 22861 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom(byte[] data) 14884 22862 throws com.google.protobuf.InvalidProtocolBufferException { 14885 return newBuilder().mergeFrom(data).buildParsed();22863 return PARSER.parseFrom(data); 14886 22864 } 14887 22865 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( … … 14889 22867 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14890 22868 throws com.google.protobuf.InvalidProtocolBufferException { 14891 return newBuilder().mergeFrom(data, extensionRegistry) 14892 .buildParsed(); 22869 return PARSER.parseFrom(data, extensionRegistry); 14893 22870 } 14894 22871 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom(java.io.InputStream input) 14895 22872 throws java.io.IOException { 14896 return newBuilder().mergeFrom(input).buildParsed();22873 return PARSER.parseFrom(input); 14897 22874 } 14898 22875 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( … … 14900 22877 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14901 22878 throws java.io.IOException { 14902 return newBuilder().mergeFrom(input, extensionRegistry) 14903 .buildParsed(); 22879 return PARSER.parseFrom(input, extensionRegistry); 14904 22880 } 14905 22881 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseDelimitedFrom(java.io.InputStream input) 14906 22882 throws java.io.IOException { 14907 Builder builder = newBuilder(); 14908 if (builder.mergeDelimitedFrom(input)) { 14909 return builder.buildParsed(); 14910 } else { 14911 return null; 14912 } 22883 return PARSER.parseDelimitedFrom(input); 14913 22884 } 14914 22885 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseDelimitedFrom( … … 14916 22887 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14917 22888 throws java.io.IOException { 14918 Builder builder = newBuilder(); 14919 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 14920 return builder.buildParsed(); 14921 } else { 14922 return null; 14923 } 22889 return PARSER.parseDelimitedFrom(input, extensionRegistry); 14924 22890 } 14925 22891 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( 14926 22892 com.google.protobuf.CodedInputStream input) 14927 22893 throws java.io.IOException { 14928 return newBuilder().mergeFrom(input).buildParsed();22894 return PARSER.parseFrom(input); 14929 22895 } 14930 22896 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( … … 14932 22898 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14933 22899 throws java.io.IOException { 14934 return newBuilder().mergeFrom(input, extensionRegistry) 14935 .buildParsed(); 14936 } 14937 22900 return PARSER.parseFrom(input, extensionRegistry); 22901 } 22902 14938 22903 public static Builder newBuilder() { return Builder.create(); } 14939 22904 public Builder newBuilderForType() { return newBuilder(); } … … 14942 22907 } 14943 22908 public Builder toBuilder() { return newBuilder(this); } 14944 22909 14945 22910 @java.lang.Override 14946 22911 protected Builder newBuilderForType( … … 14949 22914 return builder; 14950 22915 } 22916 /** 22917 * Protobuf type {@code google.protobuf.UninterpretedOption.NamePart} 22918 * 22919 * <pre> 22920 * The name of the uninterpreted option. Each string represents a segment in 22921 * a dot-separated name. is_extension is true iff a segment represents an 22922 * extension (denoted with parentheses in options specs in .proto files). 22923 * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents 22924 * "foo.(bar.baz).qux". 22925 * </pre> 22926 */ 14951 22927 public static final class Builder extends 14952 22928 com.google.protobuf.GeneratedMessage.Builder<Builder> … … 14956 22932 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor; 14957 22933 } 14958 22934 14959 22935 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 14960 22936 internalGetFieldAccessorTable() { 14961 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable; 14962 } 14963 22937 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable 22938 .ensureFieldAccessorsInitialized( 22939 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.class, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder.class); 22940 } 22941 14964 22942 // Construct using com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.newBuilder() 14965 22943 private Builder() { 14966 22944 maybeForceBuilderInitialization(); 14967 22945 } 14968 14969 private Builder(BuilderParent parent) { 22946 22947 private Builder( 22948 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 14970 22949 super(parent); 14971 22950 maybeForceBuilderInitialization(); … … 14978 22957 return new Builder(); 14979 22958 } 14980 22959 14981 22960 public Builder clear() { 14982 22961 super.clear(); … … 14987 22966 return this; 14988 22967 } 14989 22968 14990 22969 public Builder clone() { 14991 22970 return create().mergeFrom(buildPartial()); 14992 22971 } 14993 22972 14994 22973 public com.google.protobuf.Descriptors.Descriptor 14995 22974 getDescriptorForType() { 14996 return com.google.protobuf.DescriptorProtos. UninterpretedOption.NamePart.getDescriptor();14997 } 14998 22975 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor; 22976 } 22977 14999 22978 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getDefaultInstanceForType() { 15000 22979 return com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.getDefaultInstance(); 15001 22980 } 15002 22981 15003 22982 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart build() { 15004 22983 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart result = buildPartial(); … … 15008 22987 return result; 15009 22988 } 15010 15011 private com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart buildParsed() 15012 throws com.google.protobuf.InvalidProtocolBufferException { 15013 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart result = buildPartial(); 15014 if (!result.isInitialized()) { 15015 throw newUninitializedMessageException( 15016 result).asInvalidProtocolBufferException(); 15017 } 15018 return result; 15019 } 15020 22989 15021 22990 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart buildPartial() { 15022 22991 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart result = new com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart(this); … … 15035 23004 return result; 15036 23005 } 15037 23006 15038 23007 public Builder mergeFrom(com.google.protobuf.Message other) { 15039 23008 if (other instanceof com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart) { … … 15044 23013 } 15045 23014 } 15046 23015 15047 23016 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart other) { 15048 23017 if (other == com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.getDefaultInstance()) return this; 15049 23018 if (other.hasNamePart()) { 15050 setNamePart(other.getNamePart()); 23019 bitField0_ |= 0x00000001; 23020 namePart_ = other.namePart_; 23021 onChanged(); 15051 23022 } 15052 23023 if (other.hasIsExtension()) { … … 15056 23027 return this; 15057 23028 } 15058 23029 15059 23030 public final boolean isInitialized() { 15060 23031 if (!hasNamePart()) { … … 15068 23039 return true; 15069 23040 } 15070 23041 15071 23042 public Builder mergeFrom( 15072 23043 com.google.protobuf.CodedInputStream input, 15073 23044 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 15074 23045 throws java.io.IOException { 15075 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 15076 com.google.protobuf.UnknownFieldSet.newBuilder( 15077 this.getUnknownFields()); 15078 while (true) { 15079 int tag = input.readTag(); 15080 switch (tag) { 15081 case 0: 15082 this.setUnknownFields(unknownFields.build()); 15083 onChanged(); 15084 return this; 15085 default: { 15086 if (!parseUnknownField(input, unknownFields, 15087 extensionRegistry, tag)) { 15088 this.setUnknownFields(unknownFields.build()); 15089 onChanged(); 15090 return this; 15091 } 15092 break; 15093 } 15094 case 10: { 15095 bitField0_ |= 0x00000001; 15096 namePart_ = input.readBytes(); 15097 break; 15098 } 15099 case 16: { 15100 bitField0_ |= 0x00000002; 15101 isExtension_ = input.readBool(); 15102 break; 15103 } 23046 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parsedMessage = null; 23047 try { 23048 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 23049 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 23050 parsedMessage = (com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart) e.getUnfinishedMessage(); 23051 throw e; 23052 } finally { 23053 if (parsedMessage != null) { 23054 mergeFrom(parsedMessage); 15104 23055 } 15105 23056 } 15106 }15107 23057 return this; 23058 } 15108 23059 private int bitField0_; 15109 23060 15110 23061 // required string name_part = 1; 15111 23062 private java.lang.Object namePart_ = ""; 23063 /** 23064 * <code>required string name_part = 1;</code> 23065 */ 15112 23066 public boolean hasNamePart() { 15113 23067 return ((bitField0_ & 0x00000001) == 0x00000001); 15114 23068 } 15115 public String getNamePart() { 23069 /** 23070 * <code>required string name_part = 1;</code> 23071 */ 23072 public java.lang.String getNamePart() { 15116 23073 java.lang.Object ref = namePart_; 15117 if (!(ref instanceof String)) { 15118 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 23074 if (!(ref instanceof java.lang.String)) { 23075 java.lang.String s = ((com.google.protobuf.ByteString) ref) 23076 .toStringUtf8(); 15119 23077 namePart_ = s; 15120 23078 return s; 15121 23079 } else { 15122 return ( String) ref;23080 return (java.lang.String) ref; 15123 23081 } 15124 23082 } 15125 public Builder setNamePart(String value) { 23083 /** 23084 * <code>required string name_part = 1;</code> 23085 */ 23086 public com.google.protobuf.ByteString 23087 getNamePartBytes() { 23088 java.lang.Object ref = namePart_; 23089 if (ref instanceof String) { 23090 com.google.protobuf.ByteString b = 23091 com.google.protobuf.ByteString.copyFromUtf8( 23092 (java.lang.String) ref); 23093 namePart_ = b; 23094 return b; 23095 } else { 23096 return (com.google.protobuf.ByteString) ref; 23097 } 23098 } 23099 /** 23100 * <code>required string name_part = 1;</code> 23101 */ 23102 public Builder setNamePart( 23103 java.lang.String value) { 15126 23104 if (value == null) { 15127 23105 throw new NullPointerException(); … … 15132 23110 return this; 15133 23111 } 23112 /** 23113 * <code>required string name_part = 1;</code> 23114 */ 15134 23115 public Builder clearNamePart() { 15135 23116 bitField0_ = (bitField0_ & ~0x00000001); … … 15138 23119 return this; 15139 23120 } 15140 void setNamePart(com.google.protobuf.ByteString value) { 15141 bitField0_ |= 0x00000001; 23121 /** 23122 * <code>required string name_part = 1;</code> 23123 */ 23124 public Builder setNamePartBytes( 23125 com.google.protobuf.ByteString value) { 23126 if (value == null) { 23127 throw new NullPointerException(); 23128 } 23129 bitField0_ |= 0x00000001; 15142 23130 namePart_ = value; 15143 23131 onChanged(); 15144 } 15145 23132 return this; 23133 } 23134 15146 23135 // required bool is_extension = 2; 15147 23136 private boolean isExtension_ ; 23137 /** 23138 * <code>required bool is_extension = 2;</code> 23139 */ 15148 23140 public boolean hasIsExtension() { 15149 23141 return ((bitField0_ & 0x00000002) == 0x00000002); 15150 23142 } 23143 /** 23144 * <code>required bool is_extension = 2;</code> 23145 */ 15151 23146 public boolean getIsExtension() { 15152 23147 return isExtension_; 15153 23148 } 23149 /** 23150 * <code>required bool is_extension = 2;</code> 23151 */ 15154 23152 public Builder setIsExtension(boolean value) { 15155 23153 bitField0_ |= 0x00000002; … … 15158 23156 return this; 15159 23157 } 23158 /** 23159 * <code>required bool is_extension = 2;</code> 23160 */ 15160 23161 public Builder clearIsExtension() { 15161 23162 bitField0_ = (bitField0_ & ~0x00000002); … … 15164 23165 return this; 15165 23166 } 15166 23167 15167 23168 // @@protoc_insertion_point(builder_scope:google.protobuf.UninterpretedOption.NamePart) 15168 23169 } 15169 23170 15170 23171 static { 15171 23172 defaultInstance = new NamePart(true); 15172 23173 defaultInstance.initFields(); 15173 23174 } 15174 23175 15175 23176 // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart) 15176 23177 } 15177 23178 15178 23179 private int bitField0_; 15179 23180 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; 15180 23181 public static final int NAME_FIELD_NUMBER = 2; 15181 23182 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> name_; 23183 /** 23184 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23185 */ 15182 23186 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> getNameList() { 15183 23187 return name_; 15184 23188 } 23189 /** 23190 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23191 */ 15185 23192 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> 15186 23193 getNameOrBuilderList() { 15187 23194 return name_; 15188 23195 } 23196 /** 23197 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23198 */ 15189 23199 public int getNameCount() { 15190 23200 return name_.size(); 15191 23201 } 23202 /** 23203 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23204 */ 15192 23205 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getName(int index) { 15193 23206 return name_.get(index); 15194 23207 } 23208 /** 23209 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23210 */ 15195 23211 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder( 15196 23212 int index) { 15197 23213 return name_.get(index); 15198 23214 } 15199 23215 15200 23216 // optional string identifier_value = 3; 15201 23217 public static final int IDENTIFIER_VALUE_FIELD_NUMBER = 3; 15202 23218 private java.lang.Object identifierValue_; 23219 /** 23220 * <code>optional string identifier_value = 3;</code> 23221 * 23222 * <pre> 23223 * The value of the uninterpreted option, in whatever type the tokenizer 23224 * identified it as during parsing. Exactly one of these should be set. 23225 * </pre> 23226 */ 15203 23227 public boolean hasIdentifierValue() { 15204 23228 return ((bitField0_ & 0x00000001) == 0x00000001); 15205 23229 } 15206 public String getIdentifierValue() { 23230 /** 23231 * <code>optional string identifier_value = 3;</code> 23232 * 23233 * <pre> 23234 * The value of the uninterpreted option, in whatever type the tokenizer 23235 * identified it as during parsing. Exactly one of these should be set. 23236 * </pre> 23237 */ 23238 public java.lang.String getIdentifierValue() { 15207 23239 java.lang.Object ref = identifierValue_; 15208 if (ref instanceof String) {15209 return ( String) ref;23240 if (ref instanceof java.lang.String) { 23241 return (java.lang.String) ref; 15210 23242 } else { 15211 23243 com.google.protobuf.ByteString bs = 15212 23244 (com.google.protobuf.ByteString) ref; 15213 String s = bs.toStringUtf8();15214 if ( com.google.protobuf.Internal.isValidUtf8(bs)) {23245 java.lang.String s = bs.toStringUtf8(); 23246 if (bs.isValidUtf8()) { 15215 23247 identifierValue_ = s; 15216 23248 } … … 15218 23250 } 15219 23251 } 15220 private com.google.protobuf.ByteString getIdentifierValueBytes() { 23252 /** 23253 * <code>optional string identifier_value = 3;</code> 23254 * 23255 * <pre> 23256 * The value of the uninterpreted option, in whatever type the tokenizer 23257 * identified it as during parsing. Exactly one of these should be set. 23258 * </pre> 23259 */ 23260 public com.google.protobuf.ByteString 23261 getIdentifierValueBytes() { 15221 23262 java.lang.Object ref = identifierValue_; 15222 if (ref instanceof String) {23263 if (ref instanceof java.lang.String) { 15223 23264 com.google.protobuf.ByteString b = 15224 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 23265 com.google.protobuf.ByteString.copyFromUtf8( 23266 (java.lang.String) ref); 15225 23267 identifierValue_ = b; 15226 23268 return b; … … 15229 23271 } 15230 23272 } 15231 23273 15232 23274 // optional uint64 positive_int_value = 4; 15233 23275 public static final int POSITIVE_INT_VALUE_FIELD_NUMBER = 4; 15234 23276 private long positiveIntValue_; 23277 /** 23278 * <code>optional uint64 positive_int_value = 4;</code> 23279 */ 15235 23280 public boolean hasPositiveIntValue() { 15236 23281 return ((bitField0_ & 0x00000002) == 0x00000002); 15237 23282 } 23283 /** 23284 * <code>optional uint64 positive_int_value = 4;</code> 23285 */ 15238 23286 public long getPositiveIntValue() { 15239 23287 return positiveIntValue_; 15240 23288 } 15241 23289 15242 23290 // optional int64 negative_int_value = 5; 15243 23291 public static final int NEGATIVE_INT_VALUE_FIELD_NUMBER = 5; 15244 23292 private long negativeIntValue_; 23293 /** 23294 * <code>optional int64 negative_int_value = 5;</code> 23295 */ 15245 23296 public boolean hasNegativeIntValue() { 15246 23297 return ((bitField0_ & 0x00000004) == 0x00000004); 15247 23298 } 23299 /** 23300 * <code>optional int64 negative_int_value = 5;</code> 23301 */ 15248 23302 public long getNegativeIntValue() { 15249 23303 return negativeIntValue_; 15250 23304 } 15251 23305 15252 23306 // optional double double_value = 6; 15253 23307 public static final int DOUBLE_VALUE_FIELD_NUMBER = 6; 15254 23308 private double doubleValue_; 23309 /** 23310 * <code>optional double double_value = 6;</code> 23311 */ 15255 23312 public boolean hasDoubleValue() { 15256 23313 return ((bitField0_ & 0x00000008) == 0x00000008); 15257 23314 } 23315 /** 23316 * <code>optional double double_value = 6;</code> 23317 */ 15258 23318 public double getDoubleValue() { 15259 23319 return doubleValue_; 15260 23320 } 15261 23321 15262 23322 // optional bytes string_value = 7; 15263 23323 public static final int STRING_VALUE_FIELD_NUMBER = 7; 15264 23324 private com.google.protobuf.ByteString stringValue_; 23325 /** 23326 * <code>optional bytes string_value = 7;</code> 23327 */ 15265 23328 public boolean hasStringValue() { 15266 23329 return ((bitField0_ & 0x00000010) == 0x00000010); 15267 23330 } 23331 /** 23332 * <code>optional bytes string_value = 7;</code> 23333 */ 15268 23334 public com.google.protobuf.ByteString getStringValue() { 15269 23335 return stringValue_; 15270 23336 } 15271 23337 15272 23338 // optional string aggregate_value = 8; 15273 23339 public static final int AGGREGATE_VALUE_FIELD_NUMBER = 8; 15274 23340 private java.lang.Object aggregateValue_; 23341 /** 23342 * <code>optional string aggregate_value = 8;</code> 23343 */ 15275 23344 public boolean hasAggregateValue() { 15276 23345 return ((bitField0_ & 0x00000020) == 0x00000020); 15277 23346 } 15278 public String getAggregateValue() { 23347 /** 23348 * <code>optional string aggregate_value = 8;</code> 23349 */ 23350 public java.lang.String getAggregateValue() { 15279 23351 java.lang.Object ref = aggregateValue_; 15280 if (ref instanceof String) {15281 return ( String) ref;23352 if (ref instanceof java.lang.String) { 23353 return (java.lang.String) ref; 15282 23354 } else { 15283 23355 com.google.protobuf.ByteString bs = 15284 23356 (com.google.protobuf.ByteString) ref; 15285 String s = bs.toStringUtf8();15286 if ( com.google.protobuf.Internal.isValidUtf8(bs)) {23357 java.lang.String s = bs.toStringUtf8(); 23358 if (bs.isValidUtf8()) { 15287 23359 aggregateValue_ = s; 15288 23360 } … … 15290 23362 } 15291 23363 } 15292 private com.google.protobuf.ByteString getAggregateValueBytes() { 23364 /** 23365 * <code>optional string aggregate_value = 8;</code> 23366 */ 23367 public com.google.protobuf.ByteString 23368 getAggregateValueBytes() { 15293 23369 java.lang.Object ref = aggregateValue_; 15294 if (ref instanceof String) {23370 if (ref instanceof java.lang.String) { 15295 23371 com.google.protobuf.ByteString b = 15296 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 23372 com.google.protobuf.ByteString.copyFromUtf8( 23373 (java.lang.String) ref); 15297 23374 aggregateValue_ = b; 15298 23375 return b; … … 15301 23378 } 15302 23379 } 15303 23380 15304 23381 private void initFields() { 15305 23382 name_ = java.util.Collections.emptyList(); … … 15315 23392 byte isInitialized = memoizedIsInitialized; 15316 23393 if (isInitialized != -1) return isInitialized == 1; 15317 23394 15318 23395 for (int i = 0; i < getNameCount(); i++) { 15319 23396 if (!getName(i).isInitialized()) { … … 15325 23402 return true; 15326 23403 } 15327 23404 15328 23405 public void writeTo(com.google.protobuf.CodedOutputStream output) 15329 23406 throws java.io.IOException { … … 15352 23429 getUnknownFields().writeTo(output); 15353 23430 } 15354 23431 15355 23432 private int memoizedSerializedSize = -1; 15356 23433 public int getSerializedSize() { 15357 23434 int size = memoizedSerializedSize; 15358 23435 if (size != -1) return size; 15359 23436 15360 23437 size = 0; 15361 23438 for (int i = 0; i < name_.size(); i++) { … … 15391 23468 return size; 15392 23469 } 15393 23470 15394 23471 private static final long serialVersionUID = 0L; 15395 23472 @java.lang.Override … … 15398 23475 return super.writeReplace(); 15399 23476 } 15400 23477 15401 23478 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( 15402 23479 com.google.protobuf.ByteString data) 15403 23480 throws com.google.protobuf.InvalidProtocolBufferException { 15404 return newBuilder().mergeFrom(data).buildParsed();23481 return PARSER.parseFrom(data); 15405 23482 } 15406 23483 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( … … 15408 23485 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 15409 23486 throws com.google.protobuf.InvalidProtocolBufferException { 15410 return newBuilder().mergeFrom(data, extensionRegistry) 15411 .buildParsed(); 23487 return PARSER.parseFrom(data, extensionRegistry); 15412 23488 } 15413 23489 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom(byte[] data) 15414 23490 throws com.google.protobuf.InvalidProtocolBufferException { 15415 return newBuilder().mergeFrom(data).buildParsed();23491 return PARSER.parseFrom(data); 15416 23492 } 15417 23493 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( … … 15419 23495 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 15420 23496 throws com.google.protobuf.InvalidProtocolBufferException { 15421 return newBuilder().mergeFrom(data, extensionRegistry) 15422 .buildParsed(); 23497 return PARSER.parseFrom(data, extensionRegistry); 15423 23498 } 15424 23499 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom(java.io.InputStream input) 15425 23500 throws java.io.IOException { 15426 return newBuilder().mergeFrom(input).buildParsed();23501 return PARSER.parseFrom(input); 15427 23502 } 15428 23503 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( … … 15430 23505 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 15431 23506 throws java.io.IOException { 15432 return newBuilder().mergeFrom(input, extensionRegistry) 15433 .buildParsed(); 23507 return PARSER.parseFrom(input, extensionRegistry); 15434 23508 } 15435 23509 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseDelimitedFrom(java.io.InputStream input) 15436 23510 throws java.io.IOException { 15437 Builder builder = newBuilder(); 15438 if (builder.mergeDelimitedFrom(input)) { 15439 return builder.buildParsed(); 15440 } else { 15441 return null; 15442 } 23511 return PARSER.parseDelimitedFrom(input); 15443 23512 } 15444 23513 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseDelimitedFrom( … … 15446 23515 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 15447 23516 throws java.io.IOException { 15448 Builder builder = newBuilder(); 15449 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 15450 return builder.buildParsed(); 15451 } else { 15452 return null; 15453 } 23517 return PARSER.parseDelimitedFrom(input, extensionRegistry); 15454 23518 } 15455 23519 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( 15456 23520 com.google.protobuf.CodedInputStream input) 15457 23521 throws java.io.IOException { 15458 return newBuilder().mergeFrom(input).buildParsed();23522 return PARSER.parseFrom(input); 15459 23523 } 15460 23524 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( … … 15462 23526 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 15463 23527 throws java.io.IOException { 15464 return newBuilder().mergeFrom(input, extensionRegistry) 15465 .buildParsed(); 15466 } 15467 23528 return PARSER.parseFrom(input, extensionRegistry); 23529 } 23530 15468 23531 public static Builder newBuilder() { return Builder.create(); } 15469 23532 public Builder newBuilderForType() { return newBuilder(); } … … 15472 23535 } 15473 23536 public Builder toBuilder() { return newBuilder(this); } 15474 23537 15475 23538 @java.lang.Override 15476 23539 protected Builder newBuilderForType( … … 15479 23542 return builder; 15480 23543 } 23544 /** 23545 * Protobuf type {@code google.protobuf.UninterpretedOption} 23546 * 23547 * <pre> 23548 * A message representing a option the parser does not recognize. This only 23549 * appears in options protos created by the compiler::Parser class. 23550 * DescriptorPool resolves these when building Descriptor objects. Therefore, 23551 * options protos in descriptor objects (e.g. returned by Descriptor::options(), 23552 * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions 23553 * in them. 23554 * </pre> 23555 */ 15481 23556 public static final class Builder extends 15482 23557 com.google.protobuf.GeneratedMessage.Builder<Builder> … … 15486 23561 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_descriptor; 15487 23562 } 15488 23563 15489 23564 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 15490 23565 internalGetFieldAccessorTable() { 15491 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable; 15492 } 15493 23566 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable 23567 .ensureFieldAccessorsInitialized( 23568 com.google.protobuf.DescriptorProtos.UninterpretedOption.class, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder.class); 23569 } 23570 15494 23571 // Construct using com.google.protobuf.DescriptorProtos.UninterpretedOption.newBuilder() 15495 23572 private Builder() { 15496 23573 maybeForceBuilderInitialization(); 15497 23574 } 15498 15499 private Builder(BuilderParent parent) { 23575 23576 private Builder( 23577 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 15500 23578 super(parent); 15501 23579 maybeForceBuilderInitialization(); … … 15509 23587 return new Builder(); 15510 23588 } 15511 23589 15512 23590 public Builder clear() { 15513 23591 super.clear(); … … 15532 23610 return this; 15533 23611 } 15534 23612 15535 23613 public Builder clone() { 15536 23614 return create().mergeFrom(buildPartial()); 15537 23615 } 15538 23616 15539 23617 public com.google.protobuf.Descriptors.Descriptor 15540 23618 getDescriptorForType() { 15541 return com.google.protobuf.DescriptorProtos. UninterpretedOption.getDescriptor();15542 } 15543 23619 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_descriptor; 23620 } 23621 15544 23622 public com.google.protobuf.DescriptorProtos.UninterpretedOption getDefaultInstanceForType() { 15545 23623 return com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance(); 15546 23624 } 15547 23625 15548 23626 public com.google.protobuf.DescriptorProtos.UninterpretedOption build() { 15549 23627 com.google.protobuf.DescriptorProtos.UninterpretedOption result = buildPartial(); … … 15553 23631 return result; 15554 23632 } 15555 15556 private com.google.protobuf.DescriptorProtos.UninterpretedOption buildParsed() 15557 throws com.google.protobuf.InvalidProtocolBufferException { 15558 com.google.protobuf.DescriptorProtos.UninterpretedOption result = buildPartial(); 15559 if (!result.isInitialized()) { 15560 throw newUninitializedMessageException( 15561 result).asInvalidProtocolBufferException(); 15562 } 15563 return result; 15564 } 15565 23633 15566 23634 public com.google.protobuf.DescriptorProtos.UninterpretedOption buildPartial() { 15567 23635 com.google.protobuf.DescriptorProtos.UninterpretedOption result = new com.google.protobuf.DescriptorProtos.UninterpretedOption(this); … … 15605 23673 return result; 15606 23674 } 15607 23675 15608 23676 public Builder mergeFrom(com.google.protobuf.Message other) { 15609 23677 if (other instanceof com.google.protobuf.DescriptorProtos.UninterpretedOption) { … … 15614 23682 } 15615 23683 } 15616 23684 15617 23685 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.UninterpretedOption other) { 15618 23686 if (other == com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()) return this; … … 15644 23712 } 15645 23713 if (other.hasIdentifierValue()) { 15646 setIdentifierValue(other.getIdentifierValue()); 23714 bitField0_ |= 0x00000002; 23715 identifierValue_ = other.identifierValue_; 23716 onChanged(); 15647 23717 } 15648 23718 if (other.hasPositiveIntValue()) { … … 15659 23729 } 15660 23730 if (other.hasAggregateValue()) { 15661 setAggregateValue(other.getAggregateValue()); 23731 bitField0_ |= 0x00000040; 23732 aggregateValue_ = other.aggregateValue_; 23733 onChanged(); 15662 23734 } 15663 23735 this.mergeUnknownFields(other.getUnknownFields()); 15664 23736 return this; 15665 23737 } 15666 23738 15667 23739 public final boolean isInitialized() { 15668 23740 for (int i = 0; i < getNameCount(); i++) { … … 15674 23746 return true; 15675 23747 } 15676 23748 15677 23749 public Builder mergeFrom( 15678 23750 com.google.protobuf.CodedInputStream input, 15679 23751 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 15680 23752 throws java.io.IOException { 15681 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 15682 com.google.protobuf.UnknownFieldSet.newBuilder( 15683 this.getUnknownFields()); 15684 while (true) { 15685 int tag = input.readTag(); 15686 switch (tag) { 15687 case 0: 15688 this.setUnknownFields(unknownFields.build()); 15689 onChanged(); 15690 return this; 15691 default: { 15692 if (!parseUnknownField(input, unknownFields, 15693 extensionRegistry, tag)) { 15694 this.setUnknownFields(unknownFields.build()); 15695 onChanged(); 15696 return this; 15697 } 15698 break; 15699 } 15700 case 18: { 15701 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder subBuilder = com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.newBuilder(); 15702 input.readMessage(subBuilder, extensionRegistry); 15703 addName(subBuilder.buildPartial()); 15704 break; 15705 } 15706 case 26: { 15707 bitField0_ |= 0x00000002; 15708 identifierValue_ = input.readBytes(); 15709 break; 15710 } 15711 case 32: { 15712 bitField0_ |= 0x00000004; 15713 positiveIntValue_ = input.readUInt64(); 15714 break; 15715 } 15716 case 40: { 15717 bitField0_ |= 0x00000008; 15718 negativeIntValue_ = input.readInt64(); 15719 break; 15720 } 15721 case 49: { 15722 bitField0_ |= 0x00000010; 15723 doubleValue_ = input.readDouble(); 15724 break; 15725 } 15726 case 58: { 15727 bitField0_ |= 0x00000020; 15728 stringValue_ = input.readBytes(); 15729 break; 15730 } 15731 case 66: { 15732 bitField0_ |= 0x00000040; 15733 aggregateValue_ = input.readBytes(); 15734 break; 15735 } 23753 com.google.protobuf.DescriptorProtos.UninterpretedOption parsedMessage = null; 23754 try { 23755 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 23756 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 23757 parsedMessage = (com.google.protobuf.DescriptorProtos.UninterpretedOption) e.getUnfinishedMessage(); 23758 throw e; 23759 } finally { 23760 if (parsedMessage != null) { 23761 mergeFrom(parsedMessage); 15736 23762 } 15737 23763 } 15738 }15739 23764 return this; 23765 } 15740 23766 private int bitField0_; 15741 23767 15742 23768 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; 15743 23769 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> name_ = … … 15749 23775 } 15750 23776 } 15751 23777 15752 23778 private com.google.protobuf.RepeatedFieldBuilder< 15753 23779 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> nameBuilder_; 15754 23780 23781 /** 23782 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23783 */ 15755 23784 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> getNameList() { 15756 23785 if (nameBuilder_ == null) { … … 15760 23789 } 15761 23790 } 23791 /** 23792 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23793 */ 15762 23794 public int getNameCount() { 15763 23795 if (nameBuilder_ == null) { … … 15767 23799 } 15768 23800 } 23801 /** 23802 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23803 */ 15769 23804 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getName(int index) { 15770 23805 if (nameBuilder_ == null) { … … 15774 23809 } 15775 23810 } 23811 /** 23812 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23813 */ 15776 23814 public Builder setName( 15777 23815 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart value) { … … 15788 23826 return this; 15789 23827 } 23828 /** 23829 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23830 */ 15790 23831 public Builder setName( 15791 23832 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue) { … … 15799 23840 return this; 15800 23841 } 23842 /** 23843 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23844 */ 15801 23845 public Builder addName(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart value) { 15802 23846 if (nameBuilder_ == null) { … … 15812 23856 return this; 15813 23857 } 23858 /** 23859 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23860 */ 15814 23861 public Builder addName( 15815 23862 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart value) { … … 15826 23873 return this; 15827 23874 } 23875 /** 23876 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23877 */ 15828 23878 public Builder addName( 15829 23879 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue) { … … 15837 23887 return this; 15838 23888 } 23889 /** 23890 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23891 */ 15839 23892 public Builder addName( 15840 23893 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue) { … … 15848 23901 return this; 15849 23902 } 23903 /** 23904 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23905 */ 15850 23906 public Builder addAllName( 15851 23907 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> values) { … … 15859 23915 return this; 15860 23916 } 23917 /** 23918 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23919 */ 15861 23920 public Builder clearName() { 15862 23921 if (nameBuilder_ == null) { … … 15869 23928 return this; 15870 23929 } 23930 /** 23931 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23932 */ 15871 23933 public Builder removeName(int index) { 15872 23934 if (nameBuilder_ == null) { … … 15879 23941 return this; 15880 23942 } 23943 /** 23944 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23945 */ 15881 23946 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder getNameBuilder( 15882 23947 int index) { 15883 23948 return getNameFieldBuilder().getBuilder(index); 15884 23949 } 23950 /** 23951 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23952 */ 15885 23953 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder( 15886 23954 int index) { … … 15890 23958 } 15891 23959 } 23960 /** 23961 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23962 */ 15892 23963 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> 15893 23964 getNameOrBuilderList() { … … 15898 23969 } 15899 23970 } 23971 /** 23972 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23973 */ 15900 23974 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder addNameBuilder() { 15901 23975 return getNameFieldBuilder().addBuilder( 15902 23976 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.getDefaultInstance()); 15903 23977 } 23978 /** 23979 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23980 */ 15904 23981 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder addNameBuilder( 15905 23982 int index) { … … 15907 23984 index, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.getDefaultInstance()); 15908 23985 } 23986 /** 23987 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 23988 */ 15909 23989 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder> 15910 23990 getNameBuilderList() { … … 15925 24005 return nameBuilder_; 15926 24006 } 15927 24007 15928 24008 // optional string identifier_value = 3; 15929 24009 private java.lang.Object identifierValue_ = ""; 24010 /** 24011 * <code>optional string identifier_value = 3;</code> 24012 * 24013 * <pre> 24014 * The value of the uninterpreted option, in whatever type the tokenizer 24015 * identified it as during parsing. Exactly one of these should be set. 24016 * </pre> 24017 */ 15930 24018 public boolean hasIdentifierValue() { 15931 24019 return ((bitField0_ & 0x00000002) == 0x00000002); 15932 24020 } 15933 public String getIdentifierValue() { 24021 /** 24022 * <code>optional string identifier_value = 3;</code> 24023 * 24024 * <pre> 24025 * The value of the uninterpreted option, in whatever type the tokenizer 24026 * identified it as during parsing. Exactly one of these should be set. 24027 * </pre> 24028 */ 24029 public java.lang.String getIdentifierValue() { 15934 24030 java.lang.Object ref = identifierValue_; 15935 if (!(ref instanceof String)) { 15936 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 24031 if (!(ref instanceof java.lang.String)) { 24032 java.lang.String s = ((com.google.protobuf.ByteString) ref) 24033 .toStringUtf8(); 15937 24034 identifierValue_ = s; 15938 24035 return s; 15939 24036 } else { 15940 return (String) ref; 15941 } 15942 } 15943 public Builder setIdentifierValue(String value) { 24037 return (java.lang.String) ref; 24038 } 24039 } 24040 /** 24041 * <code>optional string identifier_value = 3;</code> 24042 * 24043 * <pre> 24044 * The value of the uninterpreted option, in whatever type the tokenizer 24045 * identified it as during parsing. Exactly one of these should be set. 24046 * </pre> 24047 */ 24048 public com.google.protobuf.ByteString 24049 getIdentifierValueBytes() { 24050 java.lang.Object ref = identifierValue_; 24051 if (ref instanceof String) { 24052 com.google.protobuf.ByteString b = 24053 com.google.protobuf.ByteString.copyFromUtf8( 24054 (java.lang.String) ref); 24055 identifierValue_ = b; 24056 return b; 24057 } else { 24058 return (com.google.protobuf.ByteString) ref; 24059 } 24060 } 24061 /** 24062 * <code>optional string identifier_value = 3;</code> 24063 * 24064 * <pre> 24065 * The value of the uninterpreted option, in whatever type the tokenizer 24066 * identified it as during parsing. Exactly one of these should be set. 24067 * </pre> 24068 */ 24069 public Builder setIdentifierValue( 24070 java.lang.String value) { 15944 24071 if (value == null) { 15945 24072 throw new NullPointerException(); … … 15950 24077 return this; 15951 24078 } 24079 /** 24080 * <code>optional string identifier_value = 3;</code> 24081 * 24082 * <pre> 24083 * The value of the uninterpreted option, in whatever type the tokenizer 24084 * identified it as during parsing. Exactly one of these should be set. 24085 * </pre> 24086 */ 15952 24087 public Builder clearIdentifierValue() { 15953 24088 bitField0_ = (bitField0_ & ~0x00000002); … … 15956 24091 return this; 15957 24092 } 15958 void setIdentifierValue(com.google.protobuf.ByteString value) { 15959 bitField0_ |= 0x00000002; 24093 /** 24094 * <code>optional string identifier_value = 3;</code> 24095 * 24096 * <pre> 24097 * The value of the uninterpreted option, in whatever type the tokenizer 24098 * identified it as during parsing. Exactly one of these should be set. 24099 * </pre> 24100 */ 24101 public Builder setIdentifierValueBytes( 24102 com.google.protobuf.ByteString value) { 24103 if (value == null) { 24104 throw new NullPointerException(); 24105 } 24106 bitField0_ |= 0x00000002; 15960 24107 identifierValue_ = value; 15961 24108 onChanged(); 15962 } 15963 24109 return this; 24110 } 24111 15964 24112 // optional uint64 positive_int_value = 4; 15965 24113 private long positiveIntValue_ ; 24114 /** 24115 * <code>optional uint64 positive_int_value = 4;</code> 24116 */ 15966 24117 public boolean hasPositiveIntValue() { 15967 24118 return ((bitField0_ & 0x00000004) == 0x00000004); 15968 24119 } 24120 /** 24121 * <code>optional uint64 positive_int_value = 4;</code> 24122 */ 15969 24123 public long getPositiveIntValue() { 15970 24124 return positiveIntValue_; 15971 24125 } 24126 /** 24127 * <code>optional uint64 positive_int_value = 4;</code> 24128 */ 15972 24129 public Builder setPositiveIntValue(long value) { 15973 24130 bitField0_ |= 0x00000004; … … 15976 24133 return this; 15977 24134 } 24135 /** 24136 * <code>optional uint64 positive_int_value = 4;</code> 24137 */ 15978 24138 public Builder clearPositiveIntValue() { 15979 24139 bitField0_ = (bitField0_ & ~0x00000004); … … 15982 24142 return this; 15983 24143 } 15984 24144 15985 24145 // optional int64 negative_int_value = 5; 15986 24146 private long negativeIntValue_ ; 24147 /** 24148 * <code>optional int64 negative_int_value = 5;</code> 24149 */ 15987 24150 public boolean hasNegativeIntValue() { 15988 24151 return ((bitField0_ & 0x00000008) == 0x00000008); 15989 24152 } 24153 /** 24154 * <code>optional int64 negative_int_value = 5;</code> 24155 */ 15990 24156 public long getNegativeIntValue() { 15991 24157 return negativeIntValue_; 15992 24158 } 24159 /** 24160 * <code>optional int64 negative_int_value = 5;</code> 24161 */ 15993 24162 public Builder setNegativeIntValue(long value) { 15994 24163 bitField0_ |= 0x00000008; … … 15997 24166 return this; 15998 24167 } 24168 /** 24169 * <code>optional int64 negative_int_value = 5;</code> 24170 */ 15999 24171 public Builder clearNegativeIntValue() { 16000 24172 bitField0_ = (bitField0_ & ~0x00000008); … … 16003 24175 return this; 16004 24176 } 16005 24177 16006 24178 // optional double double_value = 6; 16007 24179 private double doubleValue_ ; 24180 /** 24181 * <code>optional double double_value = 6;</code> 24182 */ 16008 24183 public boolean hasDoubleValue() { 16009 24184 return ((bitField0_ & 0x00000010) == 0x00000010); 16010 24185 } 24186 /** 24187 * <code>optional double double_value = 6;</code> 24188 */ 16011 24189 public double getDoubleValue() { 16012 24190 return doubleValue_; 16013 24191 } 24192 /** 24193 * <code>optional double double_value = 6;</code> 24194 */ 16014 24195 public Builder setDoubleValue(double value) { 16015 24196 bitField0_ |= 0x00000010; … … 16018 24199 return this; 16019 24200 } 24201 /** 24202 * <code>optional double double_value = 6;</code> 24203 */ 16020 24204 public Builder clearDoubleValue() { 16021 24205 bitField0_ = (bitField0_ & ~0x00000010); … … 16024 24208 return this; 16025 24209 } 16026 24210 16027 24211 // optional bytes string_value = 7; 16028 24212 private com.google.protobuf.ByteString stringValue_ = com.google.protobuf.ByteString.EMPTY; 24213 /** 24214 * <code>optional bytes string_value = 7;</code> 24215 */ 16029 24216 public boolean hasStringValue() { 16030 24217 return ((bitField0_ & 0x00000020) == 0x00000020); 16031 24218 } 24219 /** 24220 * <code>optional bytes string_value = 7;</code> 24221 */ 16032 24222 public com.google.protobuf.ByteString getStringValue() { 16033 24223 return stringValue_; 16034 24224 } 24225 /** 24226 * <code>optional bytes string_value = 7;</code> 24227 */ 16035 24228 public Builder setStringValue(com.google.protobuf.ByteString value) { 16036 24229 if (value == null) { … … 16042 24235 return this; 16043 24236 } 24237 /** 24238 * <code>optional bytes string_value = 7;</code> 24239 */ 16044 24240 public Builder clearStringValue() { 16045 24241 bitField0_ = (bitField0_ & ~0x00000020); … … 16048 24244 return this; 16049 24245 } 16050 24246 16051 24247 // optional string aggregate_value = 8; 16052 24248 private java.lang.Object aggregateValue_ = ""; 24249 /** 24250 * <code>optional string aggregate_value = 8;</code> 24251 */ 16053 24252 public boolean hasAggregateValue() { 16054 24253 return ((bitField0_ & 0x00000040) == 0x00000040); 16055 24254 } 16056 public String getAggregateValue() { 24255 /** 24256 * <code>optional string aggregate_value = 8;</code> 24257 */ 24258 public java.lang.String getAggregateValue() { 16057 24259 java.lang.Object ref = aggregateValue_; 16058 if (!(ref instanceof String)) { 16059 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 24260 if (!(ref instanceof java.lang.String)) { 24261 java.lang.String s = ((com.google.protobuf.ByteString) ref) 24262 .toStringUtf8(); 16060 24263 aggregateValue_ = s; 16061 24264 return s; 16062 24265 } else { 16063 return (String) ref; 16064 } 16065 } 16066 public Builder setAggregateValue(String value) { 24266 return (java.lang.String) ref; 24267 } 24268 } 24269 /** 24270 * <code>optional string aggregate_value = 8;</code> 24271 */ 24272 public com.google.protobuf.ByteString 24273 getAggregateValueBytes() { 24274 java.lang.Object ref = aggregateValue_; 24275 if (ref instanceof String) { 24276 com.google.protobuf.ByteString b = 24277 com.google.protobuf.ByteString.copyFromUtf8( 24278 (java.lang.String) ref); 24279 aggregateValue_ = b; 24280 return b; 24281 } else { 24282 return (com.google.protobuf.ByteString) ref; 24283 } 24284 } 24285 /** 24286 * <code>optional string aggregate_value = 8;</code> 24287 */ 24288 public Builder setAggregateValue( 24289 java.lang.String value) { 16067 24290 if (value == null) { 16068 24291 throw new NullPointerException(); … … 16073 24296 return this; 16074 24297 } 24298 /** 24299 * <code>optional string aggregate_value = 8;</code> 24300 */ 16075 24301 public Builder clearAggregateValue() { 16076 24302 bitField0_ = (bitField0_ & ~0x00000040); … … 16079 24305 return this; 16080 24306 } 16081 void setAggregateValue(com.google.protobuf.ByteString value) { 16082 bitField0_ |= 0x00000040; 24307 /** 24308 * <code>optional string aggregate_value = 8;</code> 24309 */ 24310 public Builder setAggregateValueBytes( 24311 com.google.protobuf.ByteString value) { 24312 if (value == null) { 24313 throw new NullPointerException(); 24314 } 24315 bitField0_ |= 0x00000040; 16083 24316 aggregateValue_ = value; 16084 24317 onChanged(); 16085 } 16086 24318 return this; 24319 } 24320 16087 24321 // @@protoc_insertion_point(builder_scope:google.protobuf.UninterpretedOption) 16088 24322 } 16089 24323 16090 24324 static { 16091 24325 defaultInstance = new UninterpretedOption(true); 16092 24326 defaultInstance.initFields(); 16093 24327 } 16094 24328 16095 24329 // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption) 16096 24330 } 16097 24331 16098 24332 public interface SourceCodeInfoOrBuilder 16099 24333 extends com.google.protobuf.MessageOrBuilder { 16100 24334 16101 24335 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; 24336 /** 24337 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 24338 * 24339 * <pre> 24340 * A Location identifies a piece of source code in a .proto file which 24341 * corresponds to a particular definition. This information is intended 24342 * to be useful to IDEs, code indexers, documentation generators, and similar 24343 * tools. 24344 * 24345 * For example, say we have a file like: 24346 * message Foo { 24347 * optional string foo = 1; 24348 * } 24349 * Let's look at just the field definition: 24350 * optional string foo = 1; 24351 * ^ ^^ ^^ ^ ^^^ 24352 * a bc de f ghi 24353 * We have the following locations: 24354 * span path represents 24355 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 24356 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 24357 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 24358 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 24359 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 24360 * 24361 * Notes: 24362 * - A location may refer to a repeated field itself (i.e. not to any 24363 * particular index within it). This is used whenever a set of elements are 24364 * logically enclosed in a single code segment. For example, an entire 24365 * extend block (possibly containing multiple extension definitions) will 24366 * have an outer location whose path refers to the "extensions" repeated 24367 * field without an index. 24368 * - Multiple locations may have the same path. This happens when a single 24369 * logical declaration is spread out across multiple places. The most 24370 * obvious example is the "extend" block again -- there may be multiple 24371 * extend blocks in the same scope, each of which will have the same path. 24372 * - A location's span is not always a subset of its parent's span. For 24373 * example, the "extendee" of an extension declaration appears at the 24374 * beginning of the "extend" block and is shared by all extensions within 24375 * the block. 24376 * - Just because a location's span is a subset of some other location's span 24377 * does not mean that it is a descendent. For example, a "group" defines 24378 * both a type and a field in a single declaration. Thus, the locations 24379 * corresponding to the type and field and their components will overlap. 24380 * - Code which tries to interpret locations should probably be designed to 24381 * ignore those that it doesn't understand, as more types of locations could 24382 * be recorded in the future. 24383 * </pre> 24384 */ 16102 24385 java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> 16103 24386 getLocationList(); 24387 /** 24388 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 24389 * 24390 * <pre> 24391 * A Location identifies a piece of source code in a .proto file which 24392 * corresponds to a particular definition. This information is intended 24393 * to be useful to IDEs, code indexers, documentation generators, and similar 24394 * tools. 24395 * 24396 * For example, say we have a file like: 24397 * message Foo { 24398 * optional string foo = 1; 24399 * } 24400 * Let's look at just the field definition: 24401 * optional string foo = 1; 24402 * ^ ^^ ^^ ^ ^^^ 24403 * a bc de f ghi 24404 * We have the following locations: 24405 * span path represents 24406 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 24407 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 24408 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 24409 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 24410 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 24411 * 24412 * Notes: 24413 * - A location may refer to a repeated field itself (i.e. not to any 24414 * particular index within it). This is used whenever a set of elements are 24415 * logically enclosed in a single code segment. For example, an entire 24416 * extend block (possibly containing multiple extension definitions) will 24417 * have an outer location whose path refers to the "extensions" repeated 24418 * field without an index. 24419 * - Multiple locations may have the same path. This happens when a single 24420 * logical declaration is spread out across multiple places. The most 24421 * obvious example is the "extend" block again -- there may be multiple 24422 * extend blocks in the same scope, each of which will have the same path. 24423 * - A location's span is not always a subset of its parent's span. For 24424 * example, the "extendee" of an extension declaration appears at the 24425 * beginning of the "extend" block and is shared by all extensions within 24426 * the block. 24427 * - Just because a location's span is a subset of some other location's span 24428 * does not mean that it is a descendent. For example, a "group" defines 24429 * both a type and a field in a single declaration. Thus, the locations 24430 * corresponding to the type and field and their components will overlap. 24431 * - Code which tries to interpret locations should probably be designed to 24432 * ignore those that it doesn't understand, as more types of locations could 24433 * be recorded in the future. 24434 * </pre> 24435 */ 16104 24436 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getLocation(int index); 24437 /** 24438 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 24439 * 24440 * <pre> 24441 * A Location identifies a piece of source code in a .proto file which 24442 * corresponds to a particular definition. This information is intended 24443 * to be useful to IDEs, code indexers, documentation generators, and similar 24444 * tools. 24445 * 24446 * For example, say we have a file like: 24447 * message Foo { 24448 * optional string foo = 1; 24449 * } 24450 * Let's look at just the field definition: 24451 * optional string foo = 1; 24452 * ^ ^^ ^^ ^ ^^^ 24453 * a bc de f ghi 24454 * We have the following locations: 24455 * span path represents 24456 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 24457 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 24458 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 24459 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 24460 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 24461 * 24462 * Notes: 24463 * - A location may refer to a repeated field itself (i.e. not to any 24464 * particular index within it). This is used whenever a set of elements are 24465 * logically enclosed in a single code segment. For example, an entire 24466 * extend block (possibly containing multiple extension definitions) will 24467 * have an outer location whose path refers to the "extensions" repeated 24468 * field without an index. 24469 * - Multiple locations may have the same path. This happens when a single 24470 * logical declaration is spread out across multiple places. The most 24471 * obvious example is the "extend" block again -- there may be multiple 24472 * extend blocks in the same scope, each of which will have the same path. 24473 * - A location's span is not always a subset of its parent's span. For 24474 * example, the "extendee" of an extension declaration appears at the 24475 * beginning of the "extend" block and is shared by all extensions within 24476 * the block. 24477 * - Just because a location's span is a subset of some other location's span 24478 * does not mean that it is a descendent. For example, a "group" defines 24479 * both a type and a field in a single declaration. Thus, the locations 24480 * corresponding to the type and field and their components will overlap. 24481 * - Code which tries to interpret locations should probably be designed to 24482 * ignore those that it doesn't understand, as more types of locations could 24483 * be recorded in the future. 24484 * </pre> 24485 */ 16105 24486 int getLocationCount(); 24487 /** 24488 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 24489 * 24490 * <pre> 24491 * A Location identifies a piece of source code in a .proto file which 24492 * corresponds to a particular definition. This information is intended 24493 * to be useful to IDEs, code indexers, documentation generators, and similar 24494 * tools. 24495 * 24496 * For example, say we have a file like: 24497 * message Foo { 24498 * optional string foo = 1; 24499 * } 24500 * Let's look at just the field definition: 24501 * optional string foo = 1; 24502 * ^ ^^ ^^ ^ ^^^ 24503 * a bc de f ghi 24504 * We have the following locations: 24505 * span path represents 24506 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 24507 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 24508 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 24509 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 24510 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 24511 * 24512 * Notes: 24513 * - A location may refer to a repeated field itself (i.e. not to any 24514 * particular index within it). This is used whenever a set of elements are 24515 * logically enclosed in a single code segment. For example, an entire 24516 * extend block (possibly containing multiple extension definitions) will 24517 * have an outer location whose path refers to the "extensions" repeated 24518 * field without an index. 24519 * - Multiple locations may have the same path. This happens when a single 24520 * logical declaration is spread out across multiple places. The most 24521 * obvious example is the "extend" block again -- there may be multiple 24522 * extend blocks in the same scope, each of which will have the same path. 24523 * - A location's span is not always a subset of its parent's span. For 24524 * example, the "extendee" of an extension declaration appears at the 24525 * beginning of the "extend" block and is shared by all extensions within 24526 * the block. 24527 * - Just because a location's span is a subset of some other location's span 24528 * does not mean that it is a descendent. For example, a "group" defines 24529 * both a type and a field in a single declaration. Thus, the locations 24530 * corresponding to the type and field and their components will overlap. 24531 * - Code which tries to interpret locations should probably be designed to 24532 * ignore those that it doesn't understand, as more types of locations could 24533 * be recorded in the future. 24534 * </pre> 24535 */ 16106 24536 java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> 16107 24537 getLocationOrBuilderList(); 24538 /** 24539 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 24540 * 24541 * <pre> 24542 * A Location identifies a piece of source code in a .proto file which 24543 * corresponds to a particular definition. This information is intended 24544 * to be useful to IDEs, code indexers, documentation generators, and similar 24545 * tools. 24546 * 24547 * For example, say we have a file like: 24548 * message Foo { 24549 * optional string foo = 1; 24550 * } 24551 * Let's look at just the field definition: 24552 * optional string foo = 1; 24553 * ^ ^^ ^^ ^ ^^^ 24554 * a bc de f ghi 24555 * We have the following locations: 24556 * span path represents 24557 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 24558 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 24559 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 24560 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 24561 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 24562 * 24563 * Notes: 24564 * - A location may refer to a repeated field itself (i.e. not to any 24565 * particular index within it). This is used whenever a set of elements are 24566 * logically enclosed in a single code segment. For example, an entire 24567 * extend block (possibly containing multiple extension definitions) will 24568 * have an outer location whose path refers to the "extensions" repeated 24569 * field without an index. 24570 * - Multiple locations may have the same path. This happens when a single 24571 * logical declaration is spread out across multiple places. The most 24572 * obvious example is the "extend" block again -- there may be multiple 24573 * extend blocks in the same scope, each of which will have the same path. 24574 * - A location's span is not always a subset of its parent's span. For 24575 * example, the "extendee" of an extension declaration appears at the 24576 * beginning of the "extend" block and is shared by all extensions within 24577 * the block. 24578 * - Just because a location's span is a subset of some other location's span 24579 * does not mean that it is a descendent. For example, a "group" defines 24580 * both a type and a field in a single declaration. Thus, the locations 24581 * corresponding to the type and field and their components will overlap. 24582 * - Code which tries to interpret locations should probably be designed to 24583 * ignore those that it doesn't understand, as more types of locations could 24584 * be recorded in the future. 24585 * </pre> 24586 */ 16108 24587 com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder getLocationOrBuilder( 16109 24588 int index); 16110 24589 } 24590 /** 24591 * Protobuf type {@code google.protobuf.SourceCodeInfo} 24592 * 24593 * <pre> 24594 * Encapsulates information about the original source file from which a 24595 * FileDescriptorProto was generated. 24596 * </pre> 24597 */ 16111 24598 public static final class SourceCodeInfo extends 16112 24599 com.google.protobuf.GeneratedMessage 16113 24600 implements SourceCodeInfoOrBuilder { 16114 24601 // Use SourceCodeInfo.newBuilder() to construct. 16115 private SourceCodeInfo( Builderbuilder) {24602 private SourceCodeInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 16116 24603 super(builder); 16117 } 16118 private SourceCodeInfo(boolean noInit) {} 16119 24604 this.unknownFields = builder.getUnknownFields(); 24605 } 24606 private SourceCodeInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 24607 16120 24608 private static final SourceCodeInfo defaultInstance; 16121 24609 public static SourceCodeInfo getDefaultInstance() { 16122 24610 return defaultInstance; 16123 24611 } 16124 24612 16125 24613 public SourceCodeInfo getDefaultInstanceForType() { 16126 24614 return defaultInstance; 16127 24615 } 16128 24616 24617 private final com.google.protobuf.UnknownFieldSet unknownFields; 24618 @java.lang.Override 24619 public final com.google.protobuf.UnknownFieldSet 24620 getUnknownFields() { 24621 return this.unknownFields; 24622 } 24623 private SourceCodeInfo( 24624 com.google.protobuf.CodedInputStream input, 24625 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 24626 throws com.google.protobuf.InvalidProtocolBufferException { 24627 initFields(); 24628 int mutable_bitField0_ = 0; 24629 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 24630 com.google.protobuf.UnknownFieldSet.newBuilder(); 24631 try { 24632 boolean done = false; 24633 while (!done) { 24634 int tag = input.readTag(); 24635 switch (tag) { 24636 case 0: 24637 done = true; 24638 break; 24639 default: { 24640 if (!parseUnknownField(input, unknownFields, 24641 extensionRegistry, tag)) { 24642 done = true; 24643 } 24644 break; 24645 } 24646 case 10: { 24647 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 24648 location_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location>(); 24649 mutable_bitField0_ |= 0x00000001; 24650 } 24651 location_.add(input.readMessage(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.PARSER, extensionRegistry)); 24652 break; 24653 } 24654 } 24655 } 24656 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 24657 throw e.setUnfinishedMessage(this); 24658 } catch (java.io.IOException e) { 24659 throw new com.google.protobuf.InvalidProtocolBufferException( 24660 e.getMessage()).setUnfinishedMessage(this); 24661 } finally { 24662 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 24663 location_ = java.util.Collections.unmodifiableList(location_); 24664 } 24665 this.unknownFields = unknownFields.build(); 24666 makeExtensionsImmutable(); 24667 } 24668 } 16129 24669 public static final com.google.protobuf.Descriptors.Descriptor 16130 24670 getDescriptor() { 16131 24671 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_descriptor; 16132 24672 } 16133 24673 16134 24674 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 16135 24675 internalGetFieldAccessorTable() { 16136 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable; 16137 } 16138 24676 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable 24677 .ensureFieldAccessorsInitialized( 24678 com.google.protobuf.DescriptorProtos.SourceCodeInfo.class, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder.class); 24679 } 24680 24681 public static com.google.protobuf.Parser<SourceCodeInfo> PARSER = 24682 new com.google.protobuf.AbstractParser<SourceCodeInfo>() { 24683 public SourceCodeInfo parsePartialFrom( 24684 com.google.protobuf.CodedInputStream input, 24685 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 24686 throws com.google.protobuf.InvalidProtocolBufferException { 24687 return new SourceCodeInfo(input, extensionRegistry); 24688 } 24689 }; 24690 24691 @java.lang.Override 24692 public com.google.protobuf.Parser<SourceCodeInfo> getParserForType() { 24693 return PARSER; 24694 } 24695 16139 24696 public interface LocationOrBuilder 16140 24697 extends com.google.protobuf.MessageOrBuilder { 16141 24698 16142 24699 // repeated int32 path = 1 [packed = true]; 24700 /** 24701 * <code>repeated int32 path = 1 [packed = true];</code> 24702 * 24703 * <pre> 24704 * Identifies which part of the FileDescriptorProto was defined at this 24705 * location. 24706 * 24707 * Each element is a field number or an index. They form a path from 24708 * the root FileDescriptorProto to the place where the definition. For 24709 * example, this path: 24710 * [ 4, 3, 2, 7, 1 ] 24711 * refers to: 24712 * file.message_type(3) // 4, 3 24713 * .field(7) // 2, 7 24714 * .name() // 1 24715 * This is because FileDescriptorProto.message_type has field number 4: 24716 * repeated DescriptorProto message_type = 4; 24717 * and DescriptorProto.field has field number 2: 24718 * repeated FieldDescriptorProto field = 2; 24719 * and FieldDescriptorProto.name has field number 1: 24720 * optional string name = 1; 24721 * 24722 * Thus, the above path gives the location of a field name. If we removed 24723 * the last element: 24724 * [ 4, 3, 2, 7 ] 24725 * this path refers to the whole field declaration (from the beginning 24726 * of the label to the terminating semicolon). 24727 * </pre> 24728 */ 16143 24729 java.util.List<java.lang.Integer> getPathList(); 24730 /** 24731 * <code>repeated int32 path = 1 [packed = true];</code> 24732 * 24733 * <pre> 24734 * Identifies which part of the FileDescriptorProto was defined at this 24735 * location. 24736 * 24737 * Each element is a field number or an index. They form a path from 24738 * the root FileDescriptorProto to the place where the definition. For 24739 * example, this path: 24740 * [ 4, 3, 2, 7, 1 ] 24741 * refers to: 24742 * file.message_type(3) // 4, 3 24743 * .field(7) // 2, 7 24744 * .name() // 1 24745 * This is because FileDescriptorProto.message_type has field number 4: 24746 * repeated DescriptorProto message_type = 4; 24747 * and DescriptorProto.field has field number 2: 24748 * repeated FieldDescriptorProto field = 2; 24749 * and FieldDescriptorProto.name has field number 1: 24750 * optional string name = 1; 24751 * 24752 * Thus, the above path gives the location of a field name. If we removed 24753 * the last element: 24754 * [ 4, 3, 2, 7 ] 24755 * this path refers to the whole field declaration (from the beginning 24756 * of the label to the terminating semicolon). 24757 * </pre> 24758 */ 16144 24759 int getPathCount(); 24760 /** 24761 * <code>repeated int32 path = 1 [packed = true];</code> 24762 * 24763 * <pre> 24764 * Identifies which part of the FileDescriptorProto was defined at this 24765 * location. 24766 * 24767 * Each element is a field number or an index. They form a path from 24768 * the root FileDescriptorProto to the place where the definition. For 24769 * example, this path: 24770 * [ 4, 3, 2, 7, 1 ] 24771 * refers to: 24772 * file.message_type(3) // 4, 3 24773 * .field(7) // 2, 7 24774 * .name() // 1 24775 * This is because FileDescriptorProto.message_type has field number 4: 24776 * repeated DescriptorProto message_type = 4; 24777 * and DescriptorProto.field has field number 2: 24778 * repeated FieldDescriptorProto field = 2; 24779 * and FieldDescriptorProto.name has field number 1: 24780 * optional string name = 1; 24781 * 24782 * Thus, the above path gives the location of a field name. If we removed 24783 * the last element: 24784 * [ 4, 3, 2, 7 ] 24785 * this path refers to the whole field declaration (from the beginning 24786 * of the label to the terminating semicolon). 24787 * </pre> 24788 */ 16145 24789 int getPath(int index); 16146 24790 16147 24791 // repeated int32 span = 2 [packed = true]; 24792 /** 24793 * <code>repeated int32 span = 2 [packed = true];</code> 24794 * 24795 * <pre> 24796 * Always has exactly three or four elements: start line, start column, 24797 * end line (optional, otherwise assumed same as start line), end column. 24798 * These are packed into a single field for efficiency. Note that line 24799 * and column numbers are zero-based -- typically you will want to add 24800 * 1 to each before displaying to a user. 24801 * </pre> 24802 */ 16148 24803 java.util.List<java.lang.Integer> getSpanList(); 24804 /** 24805 * <code>repeated int32 span = 2 [packed = true];</code> 24806 * 24807 * <pre> 24808 * Always has exactly three or four elements: start line, start column, 24809 * end line (optional, otherwise assumed same as start line), end column. 24810 * These are packed into a single field for efficiency. Note that line 24811 * and column numbers are zero-based -- typically you will want to add 24812 * 1 to each before displaying to a user. 24813 * </pre> 24814 */ 16149 24815 int getSpanCount(); 24816 /** 24817 * <code>repeated int32 span = 2 [packed = true];</code> 24818 * 24819 * <pre> 24820 * Always has exactly three or four elements: start line, start column, 24821 * end line (optional, otherwise assumed same as start line), end column. 24822 * These are packed into a single field for efficiency. Note that line 24823 * and column numbers are zero-based -- typically you will want to add 24824 * 1 to each before displaying to a user. 24825 * </pre> 24826 */ 16150 24827 int getSpan(int index); 16151 24828 16152 24829 // optional string leading_comments = 3; 24830 /** 24831 * <code>optional string leading_comments = 3;</code> 24832 * 24833 * <pre> 24834 * If this SourceCodeInfo represents a complete declaration, these are any 24835 * comments appearing before and after the declaration which appear to be 24836 * attached to the declaration. 24837 * 24838 * A series of line comments appearing on consecutive lines, with no other 24839 * tokens appearing on those lines, will be treated as a single comment. 24840 * 24841 * Only the comment content is provided; comment markers (e.g. //) are 24842 * stripped out. For block comments, leading whitespace and an asterisk 24843 * will be stripped from the beginning of each line other than the first. 24844 * Newlines are included in the output. 24845 * 24846 * Examples: 24847 * 24848 * optional int32 foo = 1; // Comment attached to foo. 24849 * // Comment attached to bar. 24850 * optional int32 bar = 2; 24851 * 24852 * optional string baz = 3; 24853 * // Comment attached to baz. 24854 * // Another line attached to baz. 24855 * 24856 * // Comment attached to qux. 24857 * // 24858 * // Another line attached to qux. 24859 * optional double qux = 4; 24860 * 24861 * optional string corge = 5; 24862 * /* Block comment attached 24863 * * to corge. Leading asterisks 24864 * * will be removed. */ 24865 * /* Block comment attached to 24866 * * grault. */ 24867 * optional int32 grault = 6; 24868 * </pre> 24869 */ 16153 24870 boolean hasLeadingComments(); 16154 String getLeadingComments(); 16155 24871 /** 24872 * <code>optional string leading_comments = 3;</code> 24873 * 24874 * <pre> 24875 * If this SourceCodeInfo represents a complete declaration, these are any 24876 * comments appearing before and after the declaration which appear to be 24877 * attached to the declaration. 24878 * 24879 * A series of line comments appearing on consecutive lines, with no other 24880 * tokens appearing on those lines, will be treated as a single comment. 24881 * 24882 * Only the comment content is provided; comment markers (e.g. //) are 24883 * stripped out. For block comments, leading whitespace and an asterisk 24884 * will be stripped from the beginning of each line other than the first. 24885 * Newlines are included in the output. 24886 * 24887 * Examples: 24888 * 24889 * optional int32 foo = 1; // Comment attached to foo. 24890 * // Comment attached to bar. 24891 * optional int32 bar = 2; 24892 * 24893 * optional string baz = 3; 24894 * // Comment attached to baz. 24895 * // Another line attached to baz. 24896 * 24897 * // Comment attached to qux. 24898 * // 24899 * // Another line attached to qux. 24900 * optional double qux = 4; 24901 * 24902 * optional string corge = 5; 24903 * /* Block comment attached 24904 * * to corge. Leading asterisks 24905 * * will be removed. */ 24906 * /* Block comment attached to 24907 * * grault. */ 24908 * optional int32 grault = 6; 24909 * </pre> 24910 */ 24911 java.lang.String getLeadingComments(); 24912 /** 24913 * <code>optional string leading_comments = 3;</code> 24914 * 24915 * <pre> 24916 * If this SourceCodeInfo represents a complete declaration, these are any 24917 * comments appearing before and after the declaration which appear to be 24918 * attached to the declaration. 24919 * 24920 * A series of line comments appearing on consecutive lines, with no other 24921 * tokens appearing on those lines, will be treated as a single comment. 24922 * 24923 * Only the comment content is provided; comment markers (e.g. //) are 24924 * stripped out. For block comments, leading whitespace and an asterisk 24925 * will be stripped from the beginning of each line other than the first. 24926 * Newlines are included in the output. 24927 * 24928 * Examples: 24929 * 24930 * optional int32 foo = 1; // Comment attached to foo. 24931 * // Comment attached to bar. 24932 * optional int32 bar = 2; 24933 * 24934 * optional string baz = 3; 24935 * // Comment attached to baz. 24936 * // Another line attached to baz. 24937 * 24938 * // Comment attached to qux. 24939 * // 24940 * // Another line attached to qux. 24941 * optional double qux = 4; 24942 * 24943 * optional string corge = 5; 24944 * /* Block comment attached 24945 * * to corge. Leading asterisks 24946 * * will be removed. */ 24947 * /* Block comment attached to 24948 * * grault. */ 24949 * optional int32 grault = 6; 24950 * </pre> 24951 */ 24952 com.google.protobuf.ByteString 24953 getLeadingCommentsBytes(); 24954 16156 24955 // optional string trailing_comments = 4; 24956 /** 24957 * <code>optional string trailing_comments = 4;</code> 24958 */ 16157 24959 boolean hasTrailingComments(); 16158 String getTrailingComments(); 16159 } 24960 /** 24961 * <code>optional string trailing_comments = 4;</code> 24962 */ 24963 java.lang.String getTrailingComments(); 24964 /** 24965 * <code>optional string trailing_comments = 4;</code> 24966 */ 24967 com.google.protobuf.ByteString 24968 getTrailingCommentsBytes(); 24969 } 24970 /** 24971 * Protobuf type {@code google.protobuf.SourceCodeInfo.Location} 24972 */ 16160 24973 public static final class Location extends 16161 24974 com.google.protobuf.GeneratedMessage 16162 24975 implements LocationOrBuilder { 16163 24976 // Use Location.newBuilder() to construct. 16164 private Location( Builderbuilder) {24977 private Location(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 16165 24978 super(builder); 16166 } 16167 private Location(boolean noInit) {} 16168 24979 this.unknownFields = builder.getUnknownFields(); 24980 } 24981 private Location(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 24982 16169 24983 private static final Location defaultInstance; 16170 24984 public static Location getDefaultInstance() { 16171 24985 return defaultInstance; 16172 24986 } 16173 24987 16174 24988 public Location getDefaultInstanceForType() { 16175 24989 return defaultInstance; 16176 24990 } 16177 24991 24992 private final com.google.protobuf.UnknownFieldSet unknownFields; 24993 @java.lang.Override 24994 public final com.google.protobuf.UnknownFieldSet 24995 getUnknownFields() { 24996 return this.unknownFields; 24997 } 24998 private Location( 24999 com.google.protobuf.CodedInputStream input, 25000 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 25001 throws com.google.protobuf.InvalidProtocolBufferException { 25002 initFields(); 25003 int mutable_bitField0_ = 0; 25004 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 25005 com.google.protobuf.UnknownFieldSet.newBuilder(); 25006 try { 25007 boolean done = false; 25008 while (!done) { 25009 int tag = input.readTag(); 25010 switch (tag) { 25011 case 0: 25012 done = true; 25013 break; 25014 default: { 25015 if (!parseUnknownField(input, unknownFields, 25016 extensionRegistry, tag)) { 25017 done = true; 25018 } 25019 break; 25020 } 25021 case 8: { 25022 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 25023 path_ = new java.util.ArrayList<java.lang.Integer>(); 25024 mutable_bitField0_ |= 0x00000001; 25025 } 25026 path_.add(input.readInt32()); 25027 break; 25028 } 25029 case 10: { 25030 int length = input.readRawVarint32(); 25031 int limit = input.pushLimit(length); 25032 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { 25033 path_ = new java.util.ArrayList<java.lang.Integer>(); 25034 mutable_bitField0_ |= 0x00000001; 25035 } 25036 while (input.getBytesUntilLimit() > 0) { 25037 path_.add(input.readInt32()); 25038 } 25039 input.popLimit(limit); 25040 break; 25041 } 25042 case 16: { 25043 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 25044 span_ = new java.util.ArrayList<java.lang.Integer>(); 25045 mutable_bitField0_ |= 0x00000002; 25046 } 25047 span_.add(input.readInt32()); 25048 break; 25049 } 25050 case 18: { 25051 int length = input.readRawVarint32(); 25052 int limit = input.pushLimit(length); 25053 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { 25054 span_ = new java.util.ArrayList<java.lang.Integer>(); 25055 mutable_bitField0_ |= 0x00000002; 25056 } 25057 while (input.getBytesUntilLimit() > 0) { 25058 span_.add(input.readInt32()); 25059 } 25060 input.popLimit(limit); 25061 break; 25062 } 25063 case 26: { 25064 bitField0_ |= 0x00000001; 25065 leadingComments_ = input.readBytes(); 25066 break; 25067 } 25068 case 34: { 25069 bitField0_ |= 0x00000002; 25070 trailingComments_ = input.readBytes(); 25071 break; 25072 } 25073 } 25074 } 25075 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 25076 throw e.setUnfinishedMessage(this); 25077 } catch (java.io.IOException e) { 25078 throw new com.google.protobuf.InvalidProtocolBufferException( 25079 e.getMessage()).setUnfinishedMessage(this); 25080 } finally { 25081 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 25082 path_ = java.util.Collections.unmodifiableList(path_); 25083 } 25084 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 25085 span_ = java.util.Collections.unmodifiableList(span_); 25086 } 25087 this.unknownFields = unknownFields.build(); 25088 makeExtensionsImmutable(); 25089 } 25090 } 16178 25091 public static final com.google.protobuf.Descriptors.Descriptor 16179 25092 getDescriptor() { 16180 25093 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_Location_descriptor; 16181 25094 } 16182 25095 16183 25096 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 16184 25097 internalGetFieldAccessorTable() { 16185 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable; 16186 } 16187 25098 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable 25099 .ensureFieldAccessorsInitialized( 25100 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.class, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder.class); 25101 } 25102 25103 public static com.google.protobuf.Parser<Location> PARSER = 25104 new com.google.protobuf.AbstractParser<Location>() { 25105 public Location parsePartialFrom( 25106 com.google.protobuf.CodedInputStream input, 25107 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 25108 throws com.google.protobuf.InvalidProtocolBufferException { 25109 return new Location(input, extensionRegistry); 25110 } 25111 }; 25112 25113 @java.lang.Override 25114 public com.google.protobuf.Parser<Location> getParserForType() { 25115 return PARSER; 25116 } 25117 16188 25118 private int bitField0_; 16189 25119 // repeated int32 path = 1 [packed = true]; 16190 25120 public static final int PATH_FIELD_NUMBER = 1; 16191 25121 private java.util.List<java.lang.Integer> path_; 25122 /** 25123 * <code>repeated int32 path = 1 [packed = true];</code> 25124 * 25125 * <pre> 25126 * Identifies which part of the FileDescriptorProto was defined at this 25127 * location. 25128 * 25129 * Each element is a field number or an index. They form a path from 25130 * the root FileDescriptorProto to the place where the definition. For 25131 * example, this path: 25132 * [ 4, 3, 2, 7, 1 ] 25133 * refers to: 25134 * file.message_type(3) // 4, 3 25135 * .field(7) // 2, 7 25136 * .name() // 1 25137 * This is because FileDescriptorProto.message_type has field number 4: 25138 * repeated DescriptorProto message_type = 4; 25139 * and DescriptorProto.field has field number 2: 25140 * repeated FieldDescriptorProto field = 2; 25141 * and FieldDescriptorProto.name has field number 1: 25142 * optional string name = 1; 25143 * 25144 * Thus, the above path gives the location of a field name. If we removed 25145 * the last element: 25146 * [ 4, 3, 2, 7 ] 25147 * this path refers to the whole field declaration (from the beginning 25148 * of the label to the terminating semicolon). 25149 * </pre> 25150 */ 16192 25151 public java.util.List<java.lang.Integer> 16193 25152 getPathList() { 16194 25153 return path_; 16195 25154 } 25155 /** 25156 * <code>repeated int32 path = 1 [packed = true];</code> 25157 * 25158 * <pre> 25159 * Identifies which part of the FileDescriptorProto was defined at this 25160 * location. 25161 * 25162 * Each element is a field number or an index. They form a path from 25163 * the root FileDescriptorProto to the place where the definition. For 25164 * example, this path: 25165 * [ 4, 3, 2, 7, 1 ] 25166 * refers to: 25167 * file.message_type(3) // 4, 3 25168 * .field(7) // 2, 7 25169 * .name() // 1 25170 * This is because FileDescriptorProto.message_type has field number 4: 25171 * repeated DescriptorProto message_type = 4; 25172 * and DescriptorProto.field has field number 2: 25173 * repeated FieldDescriptorProto field = 2; 25174 * and FieldDescriptorProto.name has field number 1: 25175 * optional string name = 1; 25176 * 25177 * Thus, the above path gives the location of a field name. If we removed 25178 * the last element: 25179 * [ 4, 3, 2, 7 ] 25180 * this path refers to the whole field declaration (from the beginning 25181 * of the label to the terminating semicolon). 25182 * </pre> 25183 */ 16196 25184 public int getPathCount() { 16197 25185 return path_.size(); 16198 25186 } 25187 /** 25188 * <code>repeated int32 path = 1 [packed = true];</code> 25189 * 25190 * <pre> 25191 * Identifies which part of the FileDescriptorProto was defined at this 25192 * location. 25193 * 25194 * Each element is a field number or an index. They form a path from 25195 * the root FileDescriptorProto to the place where the definition. For 25196 * example, this path: 25197 * [ 4, 3, 2, 7, 1 ] 25198 * refers to: 25199 * file.message_type(3) // 4, 3 25200 * .field(7) // 2, 7 25201 * .name() // 1 25202 * This is because FileDescriptorProto.message_type has field number 4: 25203 * repeated DescriptorProto message_type = 4; 25204 * and DescriptorProto.field has field number 2: 25205 * repeated FieldDescriptorProto field = 2; 25206 * and FieldDescriptorProto.name has field number 1: 25207 * optional string name = 1; 25208 * 25209 * Thus, the above path gives the location of a field name. If we removed 25210 * the last element: 25211 * [ 4, 3, 2, 7 ] 25212 * this path refers to the whole field declaration (from the beginning 25213 * of the label to the terminating semicolon). 25214 * </pre> 25215 */ 16199 25216 public int getPath(int index) { 16200 25217 return path_.get(index); 16201 25218 } 16202 25219 private int pathMemoizedSerializedSize = -1; 16203 25220 16204 25221 // repeated int32 span = 2 [packed = true]; 16205 25222 public static final int SPAN_FIELD_NUMBER = 2; 16206 25223 private java.util.List<java.lang.Integer> span_; 25224 /** 25225 * <code>repeated int32 span = 2 [packed = true];</code> 25226 * 25227 * <pre> 25228 * Always has exactly three or four elements: start line, start column, 25229 * end line (optional, otherwise assumed same as start line), end column. 25230 * These are packed into a single field for efficiency. Note that line 25231 * and column numbers are zero-based -- typically you will want to add 25232 * 1 to each before displaying to a user. 25233 * </pre> 25234 */ 16207 25235 public java.util.List<java.lang.Integer> 16208 25236 getSpanList() { 16209 25237 return span_; 16210 25238 } 25239 /** 25240 * <code>repeated int32 span = 2 [packed = true];</code> 25241 * 25242 * <pre> 25243 * Always has exactly three or four elements: start line, start column, 25244 * end line (optional, otherwise assumed same as start line), end column. 25245 * These are packed into a single field for efficiency. Note that line 25246 * and column numbers are zero-based -- typically you will want to add 25247 * 1 to each before displaying to a user. 25248 * </pre> 25249 */ 16211 25250 public int getSpanCount() { 16212 25251 return span_.size(); 16213 25252 } 25253 /** 25254 * <code>repeated int32 span = 2 [packed = true];</code> 25255 * 25256 * <pre> 25257 * Always has exactly three or four elements: start line, start column, 25258 * end line (optional, otherwise assumed same as start line), end column. 25259 * These are packed into a single field for efficiency. Note that line 25260 * and column numbers are zero-based -- typically you will want to add 25261 * 1 to each before displaying to a user. 25262 * </pre> 25263 */ 16214 25264 public int getSpan(int index) { 16215 25265 return span_.get(index); 16216 25266 } 16217 25267 private int spanMemoizedSerializedSize = -1; 16218 25268 16219 25269 // optional string leading_comments = 3; 16220 25270 public static final int LEADING_COMMENTS_FIELD_NUMBER = 3; 16221 25271 private java.lang.Object leadingComments_; 25272 /** 25273 * <code>optional string leading_comments = 3;</code> 25274 * 25275 * <pre> 25276 * If this SourceCodeInfo represents a complete declaration, these are any 25277 * comments appearing before and after the declaration which appear to be 25278 * attached to the declaration. 25279 * 25280 * A series of line comments appearing on consecutive lines, with no other 25281 * tokens appearing on those lines, will be treated as a single comment. 25282 * 25283 * Only the comment content is provided; comment markers (e.g. //) are 25284 * stripped out. For block comments, leading whitespace and an asterisk 25285 * will be stripped from the beginning of each line other than the first. 25286 * Newlines are included in the output. 25287 * 25288 * Examples: 25289 * 25290 * optional int32 foo = 1; // Comment attached to foo. 25291 * // Comment attached to bar. 25292 * optional int32 bar = 2; 25293 * 25294 * optional string baz = 3; 25295 * // Comment attached to baz. 25296 * // Another line attached to baz. 25297 * 25298 * // Comment attached to qux. 25299 * // 25300 * // Another line attached to qux. 25301 * optional double qux = 4; 25302 * 25303 * optional string corge = 5; 25304 * /* Block comment attached 25305 * * to corge. Leading asterisks 25306 * * will be removed. */ 25307 * /* Block comment attached to 25308 * * grault. */ 25309 * optional int32 grault = 6; 25310 * </pre> 25311 */ 16222 25312 public boolean hasLeadingComments() { 16223 25313 return ((bitField0_ & 0x00000001) == 0x00000001); 16224 25314 } 16225 public String getLeadingComments() { 25315 /** 25316 * <code>optional string leading_comments = 3;</code> 25317 * 25318 * <pre> 25319 * If this SourceCodeInfo represents a complete declaration, these are any 25320 * comments appearing before and after the declaration which appear to be 25321 * attached to the declaration. 25322 * 25323 * A series of line comments appearing on consecutive lines, with no other 25324 * tokens appearing on those lines, will be treated as a single comment. 25325 * 25326 * Only the comment content is provided; comment markers (e.g. //) are 25327 * stripped out. For block comments, leading whitespace and an asterisk 25328 * will be stripped from the beginning of each line other than the first. 25329 * Newlines are included in the output. 25330 * 25331 * Examples: 25332 * 25333 * optional int32 foo = 1; // Comment attached to foo. 25334 * // Comment attached to bar. 25335 * optional int32 bar = 2; 25336 * 25337 * optional string baz = 3; 25338 * // Comment attached to baz. 25339 * // Another line attached to baz. 25340 * 25341 * // Comment attached to qux. 25342 * // 25343 * // Another line attached to qux. 25344 * optional double qux = 4; 25345 * 25346 * optional string corge = 5; 25347 * /* Block comment attached 25348 * * to corge. Leading asterisks 25349 * * will be removed. */ 25350 * /* Block comment attached to 25351 * * grault. */ 25352 * optional int32 grault = 6; 25353 * </pre> 25354 */ 25355 public java.lang.String getLeadingComments() { 16226 25356 java.lang.Object ref = leadingComments_; 16227 if (ref instanceof String) {16228 return ( String) ref;25357 if (ref instanceof java.lang.String) { 25358 return (java.lang.String) ref; 16229 25359 } else { 16230 25360 com.google.protobuf.ByteString bs = 16231 25361 (com.google.protobuf.ByteString) ref; 16232 String s = bs.toStringUtf8();16233 if ( com.google.protobuf.Internal.isValidUtf8(bs)) {25362 java.lang.String s = bs.toStringUtf8(); 25363 if (bs.isValidUtf8()) { 16234 25364 leadingComments_ = s; 16235 25365 } … … 16237 25367 } 16238 25368 } 16239 private com.google.protobuf.ByteString getLeadingCommentsBytes() { 25369 /** 25370 * <code>optional string leading_comments = 3;</code> 25371 * 25372 * <pre> 25373 * If this SourceCodeInfo represents a complete declaration, these are any 25374 * comments appearing before and after the declaration which appear to be 25375 * attached to the declaration. 25376 * 25377 * A series of line comments appearing on consecutive lines, with no other 25378 * tokens appearing on those lines, will be treated as a single comment. 25379 * 25380 * Only the comment content is provided; comment markers (e.g. //) are 25381 * stripped out. For block comments, leading whitespace and an asterisk 25382 * will be stripped from the beginning of each line other than the first. 25383 * Newlines are included in the output. 25384 * 25385 * Examples: 25386 * 25387 * optional int32 foo = 1; // Comment attached to foo. 25388 * // Comment attached to bar. 25389 * optional int32 bar = 2; 25390 * 25391 * optional string baz = 3; 25392 * // Comment attached to baz. 25393 * // Another line attached to baz. 25394 * 25395 * // Comment attached to qux. 25396 * // 25397 * // Another line attached to qux. 25398 * optional double qux = 4; 25399 * 25400 * optional string corge = 5; 25401 * /* Block comment attached 25402 * * to corge. Leading asterisks 25403 * * will be removed. */ 25404 * /* Block comment attached to 25405 * * grault. */ 25406 * optional int32 grault = 6; 25407 * </pre> 25408 */ 25409 public com.google.protobuf.ByteString 25410 getLeadingCommentsBytes() { 16240 25411 java.lang.Object ref = leadingComments_; 16241 if (ref instanceof String) {25412 if (ref instanceof java.lang.String) { 16242 25413 com.google.protobuf.ByteString b = 16243 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 25414 com.google.protobuf.ByteString.copyFromUtf8( 25415 (java.lang.String) ref); 16244 25416 leadingComments_ = b; 16245 25417 return b; … … 16248 25420 } 16249 25421 } 16250 25422 16251 25423 // optional string trailing_comments = 4; 16252 25424 public static final int TRAILING_COMMENTS_FIELD_NUMBER = 4; 16253 25425 private java.lang.Object trailingComments_; 25426 /** 25427 * <code>optional string trailing_comments = 4;</code> 25428 */ 16254 25429 public boolean hasTrailingComments() { 16255 25430 return ((bitField0_ & 0x00000002) == 0x00000002); 16256 25431 } 16257 public String getTrailingComments() { 25432 /** 25433 * <code>optional string trailing_comments = 4;</code> 25434 */ 25435 public java.lang.String getTrailingComments() { 16258 25436 java.lang.Object ref = trailingComments_; 16259 if (ref instanceof String) {16260 return ( String) ref;25437 if (ref instanceof java.lang.String) { 25438 return (java.lang.String) ref; 16261 25439 } else { 16262 25440 com.google.protobuf.ByteString bs = 16263 25441 (com.google.protobuf.ByteString) ref; 16264 String s = bs.toStringUtf8();16265 if ( com.google.protobuf.Internal.isValidUtf8(bs)) {25442 java.lang.String s = bs.toStringUtf8(); 25443 if (bs.isValidUtf8()) { 16266 25444 trailingComments_ = s; 16267 25445 } … … 16269 25447 } 16270 25448 } 16271 private com.google.protobuf.ByteString getTrailingCommentsBytes() { 25449 /** 25450 * <code>optional string trailing_comments = 4;</code> 25451 */ 25452 public com.google.protobuf.ByteString 25453 getTrailingCommentsBytes() { 16272 25454 java.lang.Object ref = trailingComments_; 16273 if (ref instanceof String) {25455 if (ref instanceof java.lang.String) { 16274 25456 com.google.protobuf.ByteString b = 16275 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 25457 com.google.protobuf.ByteString.copyFromUtf8( 25458 (java.lang.String) ref); 16276 25459 trailingComments_ = b; 16277 25460 return b; … … 16280 25463 } 16281 25464 } 16282 25465 16283 25466 private void initFields() { 16284 path_ = java.util.Collections.emptyList(); ;16285 span_ = java.util.Collections.emptyList(); ;25467 path_ = java.util.Collections.emptyList(); 25468 span_ = java.util.Collections.emptyList(); 16286 25469 leadingComments_ = ""; 16287 25470 trailingComments_ = ""; … … 16291 25474 byte isInitialized = memoizedIsInitialized; 16292 25475 if (isInitialized != -1) return isInitialized == 1; 16293 25476 16294 25477 memoizedIsInitialized = 1; 16295 25478 return true; 16296 25479 } 16297 25480 16298 25481 public void writeTo(com.google.protobuf.CodedOutputStream output) 16299 25482 throws java.io.IOException { … … 16321 25504 getUnknownFields().writeTo(output); 16322 25505 } 16323 25506 16324 25507 private int memoizedSerializedSize = -1; 16325 25508 public int getSerializedSize() { 16326 25509 int size = memoizedSerializedSize; 16327 25510 if (size != -1) return size; 16328 25511 16329 25512 size = 0; 16330 25513 { … … 16368 25551 return size; 16369 25552 } 16370 25553 16371 25554 private static final long serialVersionUID = 0L; 16372 25555 @java.lang.Override … … 16375 25558 return super.writeReplace(); 16376 25559 } 16377 25560 16378 25561 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( 16379 25562 com.google.protobuf.ByteString data) 16380 25563 throws com.google.protobuf.InvalidProtocolBufferException { 16381 return newBuilder().mergeFrom(data).buildParsed();25564 return PARSER.parseFrom(data); 16382 25565 } 16383 25566 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( … … 16385 25568 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16386 25569 throws com.google.protobuf.InvalidProtocolBufferException { 16387 return newBuilder().mergeFrom(data, extensionRegistry) 16388 .buildParsed(); 25570 return PARSER.parseFrom(data, extensionRegistry); 16389 25571 } 16390 25572 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom(byte[] data) 16391 25573 throws com.google.protobuf.InvalidProtocolBufferException { 16392 return newBuilder().mergeFrom(data).buildParsed();25574 return PARSER.parseFrom(data); 16393 25575 } 16394 25576 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( … … 16396 25578 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16397 25579 throws com.google.protobuf.InvalidProtocolBufferException { 16398 return newBuilder().mergeFrom(data, extensionRegistry) 16399 .buildParsed(); 25580 return PARSER.parseFrom(data, extensionRegistry); 16400 25581 } 16401 25582 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom(java.io.InputStream input) 16402 25583 throws java.io.IOException { 16403 return newBuilder().mergeFrom(input).buildParsed();25584 return PARSER.parseFrom(input); 16404 25585 } 16405 25586 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( … … 16407 25588 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16408 25589 throws java.io.IOException { 16409 return newBuilder().mergeFrom(input, extensionRegistry) 16410 .buildParsed(); 25590 return PARSER.parseFrom(input, extensionRegistry); 16411 25591 } 16412 25592 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseDelimitedFrom(java.io.InputStream input) 16413 25593 throws java.io.IOException { 16414 Builder builder = newBuilder(); 16415 if (builder.mergeDelimitedFrom(input)) { 16416 return builder.buildParsed(); 16417 } else { 16418 return null; 16419 } 25594 return PARSER.parseDelimitedFrom(input); 16420 25595 } 16421 25596 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseDelimitedFrom( … … 16423 25598 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16424 25599 throws java.io.IOException { 16425 Builder builder = newBuilder(); 16426 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 16427 return builder.buildParsed(); 16428 } else { 16429 return null; 16430 } 25600 return PARSER.parseDelimitedFrom(input, extensionRegistry); 16431 25601 } 16432 25602 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( 16433 25603 com.google.protobuf.CodedInputStream input) 16434 25604 throws java.io.IOException { 16435 return newBuilder().mergeFrom(input).buildParsed();25605 return PARSER.parseFrom(input); 16436 25606 } 16437 25607 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( … … 16439 25609 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16440 25610 throws java.io.IOException { 16441 return newBuilder().mergeFrom(input, extensionRegistry) 16442 .buildParsed(); 16443 } 16444 25611 return PARSER.parseFrom(input, extensionRegistry); 25612 } 25613 16445 25614 public static Builder newBuilder() { return Builder.create(); } 16446 25615 public Builder newBuilderForType() { return newBuilder(); } … … 16449 25618 } 16450 25619 public Builder toBuilder() { return newBuilder(this); } 16451 25620 16452 25621 @java.lang.Override 16453 25622 protected Builder newBuilderForType( … … 16456 25625 return builder; 16457 25626 } 25627 /** 25628 * Protobuf type {@code google.protobuf.SourceCodeInfo.Location} 25629 */ 16458 25630 public static final class Builder extends 16459 25631 com.google.protobuf.GeneratedMessage.Builder<Builder> … … 16463 25635 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_Location_descriptor; 16464 25636 } 16465 25637 16466 25638 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 16467 25639 internalGetFieldAccessorTable() { 16468 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable; 16469 } 16470 25640 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable 25641 .ensureFieldAccessorsInitialized( 25642 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.class, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder.class); 25643 } 25644 16471 25645 // Construct using com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.newBuilder() 16472 25646 private Builder() { 16473 25647 maybeForceBuilderInitialization(); 16474 25648 } 16475 16476 private Builder(BuilderParent parent) { 25649 25650 private Builder( 25651 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 16477 25652 super(parent); 16478 25653 maybeForceBuilderInitialization(); … … 16485 25660 return new Builder(); 16486 25661 } 16487 25662 16488 25663 public Builder clear() { 16489 25664 super.clear(); 16490 path_ = java.util.Collections.emptyList(); ;25665 path_ = java.util.Collections.emptyList(); 16491 25666 bitField0_ = (bitField0_ & ~0x00000001); 16492 span_ = java.util.Collections.emptyList(); ;25667 span_ = java.util.Collections.emptyList(); 16493 25668 bitField0_ = (bitField0_ & ~0x00000002); 16494 25669 leadingComments_ = ""; … … 16498 25673 return this; 16499 25674 } 16500 25675 16501 25676 public Builder clone() { 16502 25677 return create().mergeFrom(buildPartial()); 16503 25678 } 16504 25679 16505 25680 public com.google.protobuf.Descriptors.Descriptor 16506 25681 getDescriptorForType() { 16507 return com.google.protobuf.DescriptorProtos. SourceCodeInfo.Location.getDescriptor();16508 } 16509 25682 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_Location_descriptor; 25683 } 25684 16510 25685 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getDefaultInstanceForType() { 16511 25686 return com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.getDefaultInstance(); 16512 25687 } 16513 25688 16514 25689 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location build() { 16515 25690 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location result = buildPartial(); … … 16519 25694 return result; 16520 25695 } 16521 16522 private com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location buildParsed() 16523 throws com.google.protobuf.InvalidProtocolBufferException { 16524 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location result = buildPartial(); 16525 if (!result.isInitialized()) { 16526 throw newUninitializedMessageException( 16527 result).asInvalidProtocolBufferException(); 16528 } 16529 return result; 16530 } 16531 25696 16532 25697 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location buildPartial() { 16533 25698 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location result = new com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location(this); … … 16556 25721 return result; 16557 25722 } 16558 25723 16559 25724 public Builder mergeFrom(com.google.protobuf.Message other) { 16560 25725 if (other instanceof com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location) { … … 16565 25730 } 16566 25731 } 16567 25732 16568 25733 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location other) { 16569 25734 if (other == com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.getDefaultInstance()) return this; … … 16589 25754 } 16590 25755 if (other.hasLeadingComments()) { 16591 setLeadingComments(other.getLeadingComments()); 25756 bitField0_ |= 0x00000004; 25757 leadingComments_ = other.leadingComments_; 25758 onChanged(); 16592 25759 } 16593 25760 if (other.hasTrailingComments()) { 16594 setTrailingComments(other.getTrailingComments()); 25761 bitField0_ |= 0x00000008; 25762 trailingComments_ = other.trailingComments_; 25763 onChanged(); 16595 25764 } 16596 25765 this.mergeUnknownFields(other.getUnknownFields()); 16597 25766 return this; 16598 25767 } 16599 25768 16600 25769 public final boolean isInitialized() { 16601 25770 return true; 16602 25771 } 16603 25772 16604 25773 public Builder mergeFrom( 16605 25774 com.google.protobuf.CodedInputStream input, 16606 25775 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16607 25776 throws java.io.IOException { 16608 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 16609 com.google.protobuf.UnknownFieldSet.newBuilder( 16610 this.getUnknownFields()); 16611 while (true) { 16612 int tag = input.readTag(); 16613 switch (tag) { 16614 case 0: 16615 this.setUnknownFields(unknownFields.build()); 16616 onChanged(); 16617 return this; 16618 default: { 16619 if (!parseUnknownField(input, unknownFields, 16620 extensionRegistry, tag)) { 16621 this.setUnknownFields(unknownFields.build()); 16622 onChanged(); 16623 return this; 16624 } 16625 break; 16626 } 16627 case 8: { 16628 ensurePathIsMutable(); 16629 path_.add(input.readInt32()); 16630 break; 16631 } 16632 case 10: { 16633 int length = input.readRawVarint32(); 16634 int limit = input.pushLimit(length); 16635 while (input.getBytesUntilLimit() > 0) { 16636 addPath(input.readInt32()); 16637 } 16638 input.popLimit(limit); 16639 break; 16640 } 16641 case 16: { 16642 ensureSpanIsMutable(); 16643 span_.add(input.readInt32()); 16644 break; 16645 } 16646 case 18: { 16647 int length = input.readRawVarint32(); 16648 int limit = input.pushLimit(length); 16649 while (input.getBytesUntilLimit() > 0) { 16650 addSpan(input.readInt32()); 16651 } 16652 input.popLimit(limit); 16653 break; 16654 } 16655 case 26: { 16656 bitField0_ |= 0x00000004; 16657 leadingComments_ = input.readBytes(); 16658 break; 16659 } 16660 case 34: { 16661 bitField0_ |= 0x00000008; 16662 trailingComments_ = input.readBytes(); 16663 break; 16664 } 25777 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parsedMessage = null; 25778 try { 25779 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 25780 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 25781 parsedMessage = (com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location) e.getUnfinishedMessage(); 25782 throw e; 25783 } finally { 25784 if (parsedMessage != null) { 25785 mergeFrom(parsedMessage); 16665 25786 } 16666 25787 } 16667 }16668 25788 return this; 25789 } 16669 25790 private int bitField0_; 16670 25791 16671 25792 // repeated int32 path = 1 [packed = true]; 16672 private java.util.List<java.lang.Integer> path_ = java.util.Collections.emptyList(); ;25793 private java.util.List<java.lang.Integer> path_ = java.util.Collections.emptyList(); 16673 25794 private void ensurePathIsMutable() { 16674 25795 if (!((bitField0_ & 0x00000001) == 0x00000001)) { … … 16677 25798 } 16678 25799 } 25800 /** 25801 * <code>repeated int32 path = 1 [packed = true];</code> 25802 * 25803 * <pre> 25804 * Identifies which part of the FileDescriptorProto was defined at this 25805 * location. 25806 * 25807 * Each element is a field number or an index. They form a path from 25808 * the root FileDescriptorProto to the place where the definition. For 25809 * example, this path: 25810 * [ 4, 3, 2, 7, 1 ] 25811 * refers to: 25812 * file.message_type(3) // 4, 3 25813 * .field(7) // 2, 7 25814 * .name() // 1 25815 * This is because FileDescriptorProto.message_type has field number 4: 25816 * repeated DescriptorProto message_type = 4; 25817 * and DescriptorProto.field has field number 2: 25818 * repeated FieldDescriptorProto field = 2; 25819 * and FieldDescriptorProto.name has field number 1: 25820 * optional string name = 1; 25821 * 25822 * Thus, the above path gives the location of a field name. If we removed 25823 * the last element: 25824 * [ 4, 3, 2, 7 ] 25825 * this path refers to the whole field declaration (from the beginning 25826 * of the label to the terminating semicolon). 25827 * </pre> 25828 */ 16679 25829 public java.util.List<java.lang.Integer> 16680 25830 getPathList() { 16681 25831 return java.util.Collections.unmodifiableList(path_); 16682 25832 } 25833 /** 25834 * <code>repeated int32 path = 1 [packed = true];</code> 25835 * 25836 * <pre> 25837 * Identifies which part of the FileDescriptorProto was defined at this 25838 * location. 25839 * 25840 * Each element is a field number or an index. They form a path from 25841 * the root FileDescriptorProto to the place where the definition. For 25842 * example, this path: 25843 * [ 4, 3, 2, 7, 1 ] 25844 * refers to: 25845 * file.message_type(3) // 4, 3 25846 * .field(7) // 2, 7 25847 * .name() // 1 25848 * This is because FileDescriptorProto.message_type has field number 4: 25849 * repeated DescriptorProto message_type = 4; 25850 * and DescriptorProto.field has field number 2: 25851 * repeated FieldDescriptorProto field = 2; 25852 * and FieldDescriptorProto.name has field number 1: 25853 * optional string name = 1; 25854 * 25855 * Thus, the above path gives the location of a field name. If we removed 25856 * the last element: 25857 * [ 4, 3, 2, 7 ] 25858 * this path refers to the whole field declaration (from the beginning 25859 * of the label to the terminating semicolon). 25860 * </pre> 25861 */ 16683 25862 public int getPathCount() { 16684 25863 return path_.size(); 16685 25864 } 25865 /** 25866 * <code>repeated int32 path = 1 [packed = true];</code> 25867 * 25868 * <pre> 25869 * Identifies which part of the FileDescriptorProto was defined at this 25870 * location. 25871 * 25872 * Each element is a field number or an index. They form a path from 25873 * the root FileDescriptorProto to the place where the definition. For 25874 * example, this path: 25875 * [ 4, 3, 2, 7, 1 ] 25876 * refers to: 25877 * file.message_type(3) // 4, 3 25878 * .field(7) // 2, 7 25879 * .name() // 1 25880 * This is because FileDescriptorProto.message_type has field number 4: 25881 * repeated DescriptorProto message_type = 4; 25882 * and DescriptorProto.field has field number 2: 25883 * repeated FieldDescriptorProto field = 2; 25884 * and FieldDescriptorProto.name has field number 1: 25885 * optional string name = 1; 25886 * 25887 * Thus, the above path gives the location of a field name. If we removed 25888 * the last element: 25889 * [ 4, 3, 2, 7 ] 25890 * this path refers to the whole field declaration (from the beginning 25891 * of the label to the terminating semicolon). 25892 * </pre> 25893 */ 16686 25894 public int getPath(int index) { 16687 25895 return path_.get(index); 16688 25896 } 25897 /** 25898 * <code>repeated int32 path = 1 [packed = true];</code> 25899 * 25900 * <pre> 25901 * Identifies which part of the FileDescriptorProto was defined at this 25902 * location. 25903 * 25904 * Each element is a field number or an index. They form a path from 25905 * the root FileDescriptorProto to the place where the definition. For 25906 * example, this path: 25907 * [ 4, 3, 2, 7, 1 ] 25908 * refers to: 25909 * file.message_type(3) // 4, 3 25910 * .field(7) // 2, 7 25911 * .name() // 1 25912 * This is because FileDescriptorProto.message_type has field number 4: 25913 * repeated DescriptorProto message_type = 4; 25914 * and DescriptorProto.field has field number 2: 25915 * repeated FieldDescriptorProto field = 2; 25916 * and FieldDescriptorProto.name has field number 1: 25917 * optional string name = 1; 25918 * 25919 * Thus, the above path gives the location of a field name. If we removed 25920 * the last element: 25921 * [ 4, 3, 2, 7 ] 25922 * this path refers to the whole field declaration (from the beginning 25923 * of the label to the terminating semicolon). 25924 * </pre> 25925 */ 16689 25926 public Builder setPath( 16690 25927 int index, int value) { … … 16694 25931 return this; 16695 25932 } 25933 /** 25934 * <code>repeated int32 path = 1 [packed = true];</code> 25935 * 25936 * <pre> 25937 * Identifies which part of the FileDescriptorProto was defined at this 25938 * location. 25939 * 25940 * Each element is a field number or an index. They form a path from 25941 * the root FileDescriptorProto to the place where the definition. For 25942 * example, this path: 25943 * [ 4, 3, 2, 7, 1 ] 25944 * refers to: 25945 * file.message_type(3) // 4, 3 25946 * .field(7) // 2, 7 25947 * .name() // 1 25948 * This is because FileDescriptorProto.message_type has field number 4: 25949 * repeated DescriptorProto message_type = 4; 25950 * and DescriptorProto.field has field number 2: 25951 * repeated FieldDescriptorProto field = 2; 25952 * and FieldDescriptorProto.name has field number 1: 25953 * optional string name = 1; 25954 * 25955 * Thus, the above path gives the location of a field name. If we removed 25956 * the last element: 25957 * [ 4, 3, 2, 7 ] 25958 * this path refers to the whole field declaration (from the beginning 25959 * of the label to the terminating semicolon). 25960 * </pre> 25961 */ 16696 25962 public Builder addPath(int value) { 16697 25963 ensurePathIsMutable(); … … 16700 25966 return this; 16701 25967 } 25968 /** 25969 * <code>repeated int32 path = 1 [packed = true];</code> 25970 * 25971 * <pre> 25972 * Identifies which part of the FileDescriptorProto was defined at this 25973 * location. 25974 * 25975 * Each element is a field number or an index. They form a path from 25976 * the root FileDescriptorProto to the place where the definition. For 25977 * example, this path: 25978 * [ 4, 3, 2, 7, 1 ] 25979 * refers to: 25980 * file.message_type(3) // 4, 3 25981 * .field(7) // 2, 7 25982 * .name() // 1 25983 * This is because FileDescriptorProto.message_type has field number 4: 25984 * repeated DescriptorProto message_type = 4; 25985 * and DescriptorProto.field has field number 2: 25986 * repeated FieldDescriptorProto field = 2; 25987 * and FieldDescriptorProto.name has field number 1: 25988 * optional string name = 1; 25989 * 25990 * Thus, the above path gives the location of a field name. If we removed 25991 * the last element: 25992 * [ 4, 3, 2, 7 ] 25993 * this path refers to the whole field declaration (from the beginning 25994 * of the label to the terminating semicolon). 25995 * </pre> 25996 */ 16702 25997 public Builder addAllPath( 16703 25998 java.lang.Iterable<? extends java.lang.Integer> values) { … … 16707 26002 return this; 16708 26003 } 26004 /** 26005 * <code>repeated int32 path = 1 [packed = true];</code> 26006 * 26007 * <pre> 26008 * Identifies which part of the FileDescriptorProto was defined at this 26009 * location. 26010 * 26011 * Each element is a field number or an index. They form a path from 26012 * the root FileDescriptorProto to the place where the definition. For 26013 * example, this path: 26014 * [ 4, 3, 2, 7, 1 ] 26015 * refers to: 26016 * file.message_type(3) // 4, 3 26017 * .field(7) // 2, 7 26018 * .name() // 1 26019 * This is because FileDescriptorProto.message_type has field number 4: 26020 * repeated DescriptorProto message_type = 4; 26021 * and DescriptorProto.field has field number 2: 26022 * repeated FieldDescriptorProto field = 2; 26023 * and FieldDescriptorProto.name has field number 1: 26024 * optional string name = 1; 26025 * 26026 * Thus, the above path gives the location of a field name. If we removed 26027 * the last element: 26028 * [ 4, 3, 2, 7 ] 26029 * this path refers to the whole field declaration (from the beginning 26030 * of the label to the terminating semicolon). 26031 * </pre> 26032 */ 16709 26033 public Builder clearPath() { 16710 path_ = java.util.Collections.emptyList(); ;26034 path_ = java.util.Collections.emptyList(); 16711 26035 bitField0_ = (bitField0_ & ~0x00000001); 16712 26036 onChanged(); 16713 26037 return this; 16714 26038 } 16715 26039 16716 26040 // repeated int32 span = 2 [packed = true]; 16717 private java.util.List<java.lang.Integer> span_ = java.util.Collections.emptyList(); ;26041 private java.util.List<java.lang.Integer> span_ = java.util.Collections.emptyList(); 16718 26042 private void ensureSpanIsMutable() { 16719 26043 if (!((bitField0_ & 0x00000002) == 0x00000002)) { … … 16722 26046 } 16723 26047 } 26048 /** 26049 * <code>repeated int32 span = 2 [packed = true];</code> 26050 * 26051 * <pre> 26052 * Always has exactly three or four elements: start line, start column, 26053 * end line (optional, otherwise assumed same as start line), end column. 26054 * These are packed into a single field for efficiency. Note that line 26055 * and column numbers are zero-based -- typically you will want to add 26056 * 1 to each before displaying to a user. 26057 * </pre> 26058 */ 16724 26059 public java.util.List<java.lang.Integer> 16725 26060 getSpanList() { 16726 26061 return java.util.Collections.unmodifiableList(span_); 16727 26062 } 26063 /** 26064 * <code>repeated int32 span = 2 [packed = true];</code> 26065 * 26066 * <pre> 26067 * Always has exactly three or four elements: start line, start column, 26068 * end line (optional, otherwise assumed same as start line), end column. 26069 * These are packed into a single field for efficiency. Note that line 26070 * and column numbers are zero-based -- typically you will want to add 26071 * 1 to each before displaying to a user. 26072 * </pre> 26073 */ 16728 26074 public int getSpanCount() { 16729 26075 return span_.size(); 16730 26076 } 26077 /** 26078 * <code>repeated int32 span = 2 [packed = true];</code> 26079 * 26080 * <pre> 26081 * Always has exactly three or four elements: start line, start column, 26082 * end line (optional, otherwise assumed same as start line), end column. 26083 * These are packed into a single field for efficiency. Note that line 26084 * and column numbers are zero-based -- typically you will want to add 26085 * 1 to each before displaying to a user. 26086 * </pre> 26087 */ 16731 26088 public int getSpan(int index) { 16732 26089 return span_.get(index); 16733 26090 } 26091 /** 26092 * <code>repeated int32 span = 2 [packed = true];</code> 26093 * 26094 * <pre> 26095 * Always has exactly three or four elements: start line, start column, 26096 * end line (optional, otherwise assumed same as start line), end column. 26097 * These are packed into a single field for efficiency. Note that line 26098 * and column numbers are zero-based -- typically you will want to add 26099 * 1 to each before displaying to a user. 26100 * </pre> 26101 */ 16734 26102 public Builder setSpan( 16735 26103 int index, int value) { … … 16739 26107 return this; 16740 26108 } 26109 /** 26110 * <code>repeated int32 span = 2 [packed = true];</code> 26111 * 26112 * <pre> 26113 * Always has exactly three or four elements: start line, start column, 26114 * end line (optional, otherwise assumed same as start line), end column. 26115 * These are packed into a single field for efficiency. Note that line 26116 * and column numbers are zero-based -- typically you will want to add 26117 * 1 to each before displaying to a user. 26118 * </pre> 26119 */ 16741 26120 public Builder addSpan(int value) { 16742 26121 ensureSpanIsMutable(); … … 16745 26124 return this; 16746 26125 } 26126 /** 26127 * <code>repeated int32 span = 2 [packed = true];</code> 26128 * 26129 * <pre> 26130 * Always has exactly three or four elements: start line, start column, 26131 * end line (optional, otherwise assumed same as start line), end column. 26132 * These are packed into a single field for efficiency. Note that line 26133 * and column numbers are zero-based -- typically you will want to add 26134 * 1 to each before displaying to a user. 26135 * </pre> 26136 */ 16747 26137 public Builder addAllSpan( 16748 26138 java.lang.Iterable<? extends java.lang.Integer> values) { … … 16752 26142 return this; 16753 26143 } 26144 /** 26145 * <code>repeated int32 span = 2 [packed = true];</code> 26146 * 26147 * <pre> 26148 * Always has exactly three or four elements: start line, start column, 26149 * end line (optional, otherwise assumed same as start line), end column. 26150 * These are packed into a single field for efficiency. Note that line 26151 * and column numbers are zero-based -- typically you will want to add 26152 * 1 to each before displaying to a user. 26153 * </pre> 26154 */ 16754 26155 public Builder clearSpan() { 16755 span_ = java.util.Collections.emptyList(); ;26156 span_ = java.util.Collections.emptyList(); 16756 26157 bitField0_ = (bitField0_ & ~0x00000002); 16757 26158 onChanged(); 16758 26159 return this; 16759 26160 } 16760 26161 16761 26162 // optional string leading_comments = 3; 16762 26163 private java.lang.Object leadingComments_ = ""; 26164 /** 26165 * <code>optional string leading_comments = 3;</code> 26166 * 26167 * <pre> 26168 * If this SourceCodeInfo represents a complete declaration, these are any 26169 * comments appearing before and after the declaration which appear to be 26170 * attached to the declaration. 26171 * 26172 * A series of line comments appearing on consecutive lines, with no other 26173 * tokens appearing on those lines, will be treated as a single comment. 26174 * 26175 * Only the comment content is provided; comment markers (e.g. //) are 26176 * stripped out. For block comments, leading whitespace and an asterisk 26177 * will be stripped from the beginning of each line other than the first. 26178 * Newlines are included in the output. 26179 * 26180 * Examples: 26181 * 26182 * optional int32 foo = 1; // Comment attached to foo. 26183 * // Comment attached to bar. 26184 * optional int32 bar = 2; 26185 * 26186 * optional string baz = 3; 26187 * // Comment attached to baz. 26188 * // Another line attached to baz. 26189 * 26190 * // Comment attached to qux. 26191 * // 26192 * // Another line attached to qux. 26193 * optional double qux = 4; 26194 * 26195 * optional string corge = 5; 26196 * /* Block comment attached 26197 * * to corge. Leading asterisks 26198 * * will be removed. */ 26199 * /* Block comment attached to 26200 * * grault. */ 26201 * optional int32 grault = 6; 26202 * </pre> 26203 */ 16763 26204 public boolean hasLeadingComments() { 16764 26205 return ((bitField0_ & 0x00000004) == 0x00000004); 16765 26206 } 16766 public String getLeadingComments() { 26207 /** 26208 * <code>optional string leading_comments = 3;</code> 26209 * 26210 * <pre> 26211 * If this SourceCodeInfo represents a complete declaration, these are any 26212 * comments appearing before and after the declaration which appear to be 26213 * attached to the declaration. 26214 * 26215 * A series of line comments appearing on consecutive lines, with no other 26216 * tokens appearing on those lines, will be treated as a single comment. 26217 * 26218 * Only the comment content is provided; comment markers (e.g. //) are 26219 * stripped out. For block comments, leading whitespace and an asterisk 26220 * will be stripped from the beginning of each line other than the first. 26221 * Newlines are included in the output. 26222 * 26223 * Examples: 26224 * 26225 * optional int32 foo = 1; // Comment attached to foo. 26226 * // Comment attached to bar. 26227 * optional int32 bar = 2; 26228 * 26229 * optional string baz = 3; 26230 * // Comment attached to baz. 26231 * // Another line attached to baz. 26232 * 26233 * // Comment attached to qux. 26234 * // 26235 * // Another line attached to qux. 26236 * optional double qux = 4; 26237 * 26238 * optional string corge = 5; 26239 * /* Block comment attached 26240 * * to corge. Leading asterisks 26241 * * will be removed. */ 26242 * /* Block comment attached to 26243 * * grault. */ 26244 * optional int32 grault = 6; 26245 * </pre> 26246 */ 26247 public java.lang.String getLeadingComments() { 16767 26248 java.lang.Object ref = leadingComments_; 16768 if (!(ref instanceof String)) { 16769 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 26249 if (!(ref instanceof java.lang.String)) { 26250 java.lang.String s = ((com.google.protobuf.ByteString) ref) 26251 .toStringUtf8(); 16770 26252 leadingComments_ = s; 16771 26253 return s; 16772 26254 } else { 16773 return ( String) ref;26255 return (java.lang.String) ref; 16774 26256 } 16775 26257 } 16776 public Builder setLeadingComments(String value) { 26258 /** 26259 * <code>optional string leading_comments = 3;</code> 26260 * 26261 * <pre> 26262 * If this SourceCodeInfo represents a complete declaration, these are any 26263 * comments appearing before and after the declaration which appear to be 26264 * attached to the declaration. 26265 * 26266 * A series of line comments appearing on consecutive lines, with no other 26267 * tokens appearing on those lines, will be treated as a single comment. 26268 * 26269 * Only the comment content is provided; comment markers (e.g. //) are 26270 * stripped out. For block comments, leading whitespace and an asterisk 26271 * will be stripped from the beginning of each line other than the first. 26272 * Newlines are included in the output. 26273 * 26274 * Examples: 26275 * 26276 * optional int32 foo = 1; // Comment attached to foo. 26277 * // Comment attached to bar. 26278 * optional int32 bar = 2; 26279 * 26280 * optional string baz = 3; 26281 * // Comment attached to baz. 26282 * // Another line attached to baz. 26283 * 26284 * // Comment attached to qux. 26285 * // 26286 * // Another line attached to qux. 26287 * optional double qux = 4; 26288 * 26289 * optional string corge = 5; 26290 * /* Block comment attached 26291 * * to corge. Leading asterisks 26292 * * will be removed. */ 26293 * /* Block comment attached to 26294 * * grault. */ 26295 * optional int32 grault = 6; 26296 * </pre> 26297 */ 26298 public com.google.protobuf.ByteString 26299 getLeadingCommentsBytes() { 26300 java.lang.Object ref = leadingComments_; 26301 if (ref instanceof String) { 26302 com.google.protobuf.ByteString b = 26303 com.google.protobuf.ByteString.copyFromUtf8( 26304 (java.lang.String) ref); 26305 leadingComments_ = b; 26306 return b; 26307 } else { 26308 return (com.google.protobuf.ByteString) ref; 26309 } 26310 } 26311 /** 26312 * <code>optional string leading_comments = 3;</code> 26313 * 26314 * <pre> 26315 * If this SourceCodeInfo represents a complete declaration, these are any 26316 * comments appearing before and after the declaration which appear to be 26317 * attached to the declaration. 26318 * 26319 * A series of line comments appearing on consecutive lines, with no other 26320 * tokens appearing on those lines, will be treated as a single comment. 26321 * 26322 * Only the comment content is provided; comment markers (e.g. //) are 26323 * stripped out. For block comments, leading whitespace and an asterisk 26324 * will be stripped from the beginning of each line other than the first. 26325 * Newlines are included in the output. 26326 * 26327 * Examples: 26328 * 26329 * optional int32 foo = 1; // Comment attached to foo. 26330 * // Comment attached to bar. 26331 * optional int32 bar = 2; 26332 * 26333 * optional string baz = 3; 26334 * // Comment attached to baz. 26335 * // Another line attached to baz. 26336 * 26337 * // Comment attached to qux. 26338 * // 26339 * // Another line attached to qux. 26340 * optional double qux = 4; 26341 * 26342 * optional string corge = 5; 26343 * /* Block comment attached 26344 * * to corge. Leading asterisks 26345 * * will be removed. */ 26346 * /* Block comment attached to 26347 * * grault. */ 26348 * optional int32 grault = 6; 26349 * </pre> 26350 */ 26351 public Builder setLeadingComments( 26352 java.lang.String value) { 16777 26353 if (value == null) { 16778 26354 throw new NullPointerException(); … … 16783 26359 return this; 16784 26360 } 26361 /** 26362 * <code>optional string leading_comments = 3;</code> 26363 * 26364 * <pre> 26365 * If this SourceCodeInfo represents a complete declaration, these are any 26366 * comments appearing before and after the declaration which appear to be 26367 * attached to the declaration. 26368 * 26369 * A series of line comments appearing on consecutive lines, with no other 26370 * tokens appearing on those lines, will be treated as a single comment. 26371 * 26372 * Only the comment content is provided; comment markers (e.g. //) are 26373 * stripped out. For block comments, leading whitespace and an asterisk 26374 * will be stripped from the beginning of each line other than the first. 26375 * Newlines are included in the output. 26376 * 26377 * Examples: 26378 * 26379 * optional int32 foo = 1; // Comment attached to foo. 26380 * // Comment attached to bar. 26381 * optional int32 bar = 2; 26382 * 26383 * optional string baz = 3; 26384 * // Comment attached to baz. 26385 * // Another line attached to baz. 26386 * 26387 * // Comment attached to qux. 26388 * // 26389 * // Another line attached to qux. 26390 * optional double qux = 4; 26391 * 26392 * optional string corge = 5; 26393 * /* Block comment attached 26394 * * to corge. Leading asterisks 26395 * * will be removed. */ 26396 * /* Block comment attached to 26397 * * grault. */ 26398 * optional int32 grault = 6; 26399 * </pre> 26400 */ 16785 26401 public Builder clearLeadingComments() { 16786 26402 bitField0_ = (bitField0_ & ~0x00000004); … … 16789 26405 return this; 16790 26406 } 16791 void setLeadingComments(com.google.protobuf.ByteString value) { 16792 bitField0_ |= 0x00000004; 26407 /** 26408 * <code>optional string leading_comments = 3;</code> 26409 * 26410 * <pre> 26411 * If this SourceCodeInfo represents a complete declaration, these are any 26412 * comments appearing before and after the declaration which appear to be 26413 * attached to the declaration. 26414 * 26415 * A series of line comments appearing on consecutive lines, with no other 26416 * tokens appearing on those lines, will be treated as a single comment. 26417 * 26418 * Only the comment content is provided; comment markers (e.g. //) are 26419 * stripped out. For block comments, leading whitespace and an asterisk 26420 * will be stripped from the beginning of each line other than the first. 26421 * Newlines are included in the output. 26422 * 26423 * Examples: 26424 * 26425 * optional int32 foo = 1; // Comment attached to foo. 26426 * // Comment attached to bar. 26427 * optional int32 bar = 2; 26428 * 26429 * optional string baz = 3; 26430 * // Comment attached to baz. 26431 * // Another line attached to baz. 26432 * 26433 * // Comment attached to qux. 26434 * // 26435 * // Another line attached to qux. 26436 * optional double qux = 4; 26437 * 26438 * optional string corge = 5; 26439 * /* Block comment attached 26440 * * to corge. Leading asterisks 26441 * * will be removed. */ 26442 * /* Block comment attached to 26443 * * grault. */ 26444 * optional int32 grault = 6; 26445 * </pre> 26446 */ 26447 public Builder setLeadingCommentsBytes( 26448 com.google.protobuf.ByteString value) { 26449 if (value == null) { 26450 throw new NullPointerException(); 26451 } 26452 bitField0_ |= 0x00000004; 16793 26453 leadingComments_ = value; 16794 26454 onChanged(); 16795 } 16796 26455 return this; 26456 } 26457 16797 26458 // optional string trailing_comments = 4; 16798 26459 private java.lang.Object trailingComments_ = ""; 26460 /** 26461 * <code>optional string trailing_comments = 4;</code> 26462 */ 16799 26463 public boolean hasTrailingComments() { 16800 26464 return ((bitField0_ & 0x00000008) == 0x00000008); 16801 26465 } 16802 public String getTrailingComments() { 26466 /** 26467 * <code>optional string trailing_comments = 4;</code> 26468 */ 26469 public java.lang.String getTrailingComments() { 16803 26470 java.lang.Object ref = trailingComments_; 16804 if (!(ref instanceof String)) { 16805 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 26471 if (!(ref instanceof java.lang.String)) { 26472 java.lang.String s = ((com.google.protobuf.ByteString) ref) 26473 .toStringUtf8(); 16806 26474 trailingComments_ = s; 16807 26475 return s; 16808 26476 } else { 16809 return ( String) ref;26477 return (java.lang.String) ref; 16810 26478 } 16811 26479 } 16812 public Builder setTrailingComments(String value) { 26480 /** 26481 * <code>optional string trailing_comments = 4;</code> 26482 */ 26483 public com.google.protobuf.ByteString 26484 getTrailingCommentsBytes() { 26485 java.lang.Object ref = trailingComments_; 26486 if (ref instanceof String) { 26487 com.google.protobuf.ByteString b = 26488 com.google.protobuf.ByteString.copyFromUtf8( 26489 (java.lang.String) ref); 26490 trailingComments_ = b; 26491 return b; 26492 } else { 26493 return (com.google.protobuf.ByteString) ref; 26494 } 26495 } 26496 /** 26497 * <code>optional string trailing_comments = 4;</code> 26498 */ 26499 public Builder setTrailingComments( 26500 java.lang.String value) { 16813 26501 if (value == null) { 16814 26502 throw new NullPointerException(); … … 16819 26507 return this; 16820 26508 } 26509 /** 26510 * <code>optional string trailing_comments = 4;</code> 26511 */ 16821 26512 public Builder clearTrailingComments() { 16822 26513 bitField0_ = (bitField0_ & ~0x00000008); … … 16825 26516 return this; 16826 26517 } 16827 void setTrailingComments(com.google.protobuf.ByteString value) { 16828 bitField0_ |= 0x00000008; 26518 /** 26519 * <code>optional string trailing_comments = 4;</code> 26520 */ 26521 public Builder setTrailingCommentsBytes( 26522 com.google.protobuf.ByteString value) { 26523 if (value == null) { 26524 throw new NullPointerException(); 26525 } 26526 bitField0_ |= 0x00000008; 16829 26527 trailingComments_ = value; 16830 26528 onChanged(); 16831 } 16832 26529 return this; 26530 } 26531 16833 26532 // @@protoc_insertion_point(builder_scope:google.protobuf.SourceCodeInfo.Location) 16834 26533 } 16835 26534 16836 26535 static { 16837 26536 defaultInstance = new Location(true); 16838 26537 defaultInstance.initFields(); 16839 26538 } 16840 26539 16841 26540 // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location) 16842 26541 } 16843 26542 16844 26543 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; 16845 26544 public static final int LOCATION_FIELD_NUMBER = 1; 16846 26545 private java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> location_; 26546 /** 26547 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 26548 * 26549 * <pre> 26550 * A Location identifies a piece of source code in a .proto file which 26551 * corresponds to a particular definition. This information is intended 26552 * to be useful to IDEs, code indexers, documentation generators, and similar 26553 * tools. 26554 * 26555 * For example, say we have a file like: 26556 * message Foo { 26557 * optional string foo = 1; 26558 * } 26559 * Let's look at just the field definition: 26560 * optional string foo = 1; 26561 * ^ ^^ ^^ ^ ^^^ 26562 * a bc de f ghi 26563 * We have the following locations: 26564 * span path represents 26565 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 26566 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 26567 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 26568 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 26569 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 26570 * 26571 * Notes: 26572 * - A location may refer to a repeated field itself (i.e. not to any 26573 * particular index within it). This is used whenever a set of elements are 26574 * logically enclosed in a single code segment. For example, an entire 26575 * extend block (possibly containing multiple extension definitions) will 26576 * have an outer location whose path refers to the "extensions" repeated 26577 * field without an index. 26578 * - Multiple locations may have the same path. This happens when a single 26579 * logical declaration is spread out across multiple places. The most 26580 * obvious example is the "extend" block again -- there may be multiple 26581 * extend blocks in the same scope, each of which will have the same path. 26582 * - A location's span is not always a subset of its parent's span. For 26583 * example, the "extendee" of an extension declaration appears at the 26584 * beginning of the "extend" block and is shared by all extensions within 26585 * the block. 26586 * - Just because a location's span is a subset of some other location's span 26587 * does not mean that it is a descendent. For example, a "group" defines 26588 * both a type and a field in a single declaration. Thus, the locations 26589 * corresponding to the type and field and their components will overlap. 26590 * - Code which tries to interpret locations should probably be designed to 26591 * ignore those that it doesn't understand, as more types of locations could 26592 * be recorded in the future. 26593 * </pre> 26594 */ 16847 26595 public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> getLocationList() { 16848 26596 return location_; 16849 26597 } 26598 /** 26599 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 26600 * 26601 * <pre> 26602 * A Location identifies a piece of source code in a .proto file which 26603 * corresponds to a particular definition. This information is intended 26604 * to be useful to IDEs, code indexers, documentation generators, and similar 26605 * tools. 26606 * 26607 * For example, say we have a file like: 26608 * message Foo { 26609 * optional string foo = 1; 26610 * } 26611 * Let's look at just the field definition: 26612 * optional string foo = 1; 26613 * ^ ^^ ^^ ^ ^^^ 26614 * a bc de f ghi 26615 * We have the following locations: 26616 * span path represents 26617 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 26618 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 26619 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 26620 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 26621 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 26622 * 26623 * Notes: 26624 * - A location may refer to a repeated field itself (i.e. not to any 26625 * particular index within it). This is used whenever a set of elements are 26626 * logically enclosed in a single code segment. For example, an entire 26627 * extend block (possibly containing multiple extension definitions) will 26628 * have an outer location whose path refers to the "extensions" repeated 26629 * field without an index. 26630 * - Multiple locations may have the same path. This happens when a single 26631 * logical declaration is spread out across multiple places. The most 26632 * obvious example is the "extend" block again -- there may be multiple 26633 * extend blocks in the same scope, each of which will have the same path. 26634 * - A location's span is not always a subset of its parent's span. For 26635 * example, the "extendee" of an extension declaration appears at the 26636 * beginning of the "extend" block and is shared by all extensions within 26637 * the block. 26638 * - Just because a location's span is a subset of some other location's span 26639 * does not mean that it is a descendent. For example, a "group" defines 26640 * both a type and a field in a single declaration. Thus, the locations 26641 * corresponding to the type and field and their components will overlap. 26642 * - Code which tries to interpret locations should probably be designed to 26643 * ignore those that it doesn't understand, as more types of locations could 26644 * be recorded in the future. 26645 * </pre> 26646 */ 16850 26647 public java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> 16851 26648 getLocationOrBuilderList() { 16852 26649 return location_; 16853 26650 } 26651 /** 26652 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 26653 * 26654 * <pre> 26655 * A Location identifies a piece of source code in a .proto file which 26656 * corresponds to a particular definition. This information is intended 26657 * to be useful to IDEs, code indexers, documentation generators, and similar 26658 * tools. 26659 * 26660 * For example, say we have a file like: 26661 * message Foo { 26662 * optional string foo = 1; 26663 * } 26664 * Let's look at just the field definition: 26665 * optional string foo = 1; 26666 * ^ ^^ ^^ ^ ^^^ 26667 * a bc de f ghi 26668 * We have the following locations: 26669 * span path represents 26670 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 26671 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 26672 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 26673 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 26674 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 26675 * 26676 * Notes: 26677 * - A location may refer to a repeated field itself (i.e. not to any 26678 * particular index within it). This is used whenever a set of elements are 26679 * logically enclosed in a single code segment. For example, an entire 26680 * extend block (possibly containing multiple extension definitions) will 26681 * have an outer location whose path refers to the "extensions" repeated 26682 * field without an index. 26683 * - Multiple locations may have the same path. This happens when a single 26684 * logical declaration is spread out across multiple places. The most 26685 * obvious example is the "extend" block again -- there may be multiple 26686 * extend blocks in the same scope, each of which will have the same path. 26687 * - A location's span is not always a subset of its parent's span. For 26688 * example, the "extendee" of an extension declaration appears at the 26689 * beginning of the "extend" block and is shared by all extensions within 26690 * the block. 26691 * - Just because a location's span is a subset of some other location's span 26692 * does not mean that it is a descendent. For example, a "group" defines 26693 * both a type and a field in a single declaration. Thus, the locations 26694 * corresponding to the type and field and their components will overlap. 26695 * - Code which tries to interpret locations should probably be designed to 26696 * ignore those that it doesn't understand, as more types of locations could 26697 * be recorded in the future. 26698 * </pre> 26699 */ 16854 26700 public int getLocationCount() { 16855 26701 return location_.size(); 16856 26702 } 26703 /** 26704 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 26705 * 26706 * <pre> 26707 * A Location identifies a piece of source code in a .proto file which 26708 * corresponds to a particular definition. This information is intended 26709 * to be useful to IDEs, code indexers, documentation generators, and similar 26710 * tools. 26711 * 26712 * For example, say we have a file like: 26713 * message Foo { 26714 * optional string foo = 1; 26715 * } 26716 * Let's look at just the field definition: 26717 * optional string foo = 1; 26718 * ^ ^^ ^^ ^ ^^^ 26719 * a bc de f ghi 26720 * We have the following locations: 26721 * span path represents 26722 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 26723 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 26724 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 26725 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 26726 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 26727 * 26728 * Notes: 26729 * - A location may refer to a repeated field itself (i.e. not to any 26730 * particular index within it). This is used whenever a set of elements are 26731 * logically enclosed in a single code segment. For example, an entire 26732 * extend block (possibly containing multiple extension definitions) will 26733 * have an outer location whose path refers to the "extensions" repeated 26734 * field without an index. 26735 * - Multiple locations may have the same path. This happens when a single 26736 * logical declaration is spread out across multiple places. The most 26737 * obvious example is the "extend" block again -- there may be multiple 26738 * extend blocks in the same scope, each of which will have the same path. 26739 * - A location's span is not always a subset of its parent's span. For 26740 * example, the "extendee" of an extension declaration appears at the 26741 * beginning of the "extend" block and is shared by all extensions within 26742 * the block. 26743 * - Just because a location's span is a subset of some other location's span 26744 * does not mean that it is a descendent. For example, a "group" defines 26745 * both a type and a field in a single declaration. Thus, the locations 26746 * corresponding to the type and field and their components will overlap. 26747 * - Code which tries to interpret locations should probably be designed to 26748 * ignore those that it doesn't understand, as more types of locations could 26749 * be recorded in the future. 26750 * </pre> 26751 */ 16857 26752 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getLocation(int index) { 16858 26753 return location_.get(index); 16859 26754 } 26755 /** 26756 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 26757 * 26758 * <pre> 26759 * A Location identifies a piece of source code in a .proto file which 26760 * corresponds to a particular definition. This information is intended 26761 * to be useful to IDEs, code indexers, documentation generators, and similar 26762 * tools. 26763 * 26764 * For example, say we have a file like: 26765 * message Foo { 26766 * optional string foo = 1; 26767 * } 26768 * Let's look at just the field definition: 26769 * optional string foo = 1; 26770 * ^ ^^ ^^ ^ ^^^ 26771 * a bc de f ghi 26772 * We have the following locations: 26773 * span path represents 26774 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 26775 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 26776 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 26777 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 26778 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 26779 * 26780 * Notes: 26781 * - A location may refer to a repeated field itself (i.e. not to any 26782 * particular index within it). This is used whenever a set of elements are 26783 * logically enclosed in a single code segment. For example, an entire 26784 * extend block (possibly containing multiple extension definitions) will 26785 * have an outer location whose path refers to the "extensions" repeated 26786 * field without an index. 26787 * - Multiple locations may have the same path. This happens when a single 26788 * logical declaration is spread out across multiple places. The most 26789 * obvious example is the "extend" block again -- there may be multiple 26790 * extend blocks in the same scope, each of which will have the same path. 26791 * - A location's span is not always a subset of its parent's span. For 26792 * example, the "extendee" of an extension declaration appears at the 26793 * beginning of the "extend" block and is shared by all extensions within 26794 * the block. 26795 * - Just because a location's span is a subset of some other location's span 26796 * does not mean that it is a descendent. For example, a "group" defines 26797 * both a type and a field in a single declaration. Thus, the locations 26798 * corresponding to the type and field and their components will overlap. 26799 * - Code which tries to interpret locations should probably be designed to 26800 * ignore those that it doesn't understand, as more types of locations could 26801 * be recorded in the future. 26802 * </pre> 26803 */ 16860 26804 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder getLocationOrBuilder( 16861 26805 int index) { 16862 26806 return location_.get(index); 16863 26807 } 16864 26808 16865 26809 private void initFields() { 16866 26810 location_ = java.util.Collections.emptyList(); … … 16870 26814 byte isInitialized = memoizedIsInitialized; 16871 26815 if (isInitialized != -1) return isInitialized == 1; 16872 26816 16873 26817 memoizedIsInitialized = 1; 16874 26818 return true; 16875 26819 } 16876 26820 16877 26821 public void writeTo(com.google.protobuf.CodedOutputStream output) 16878 26822 throws java.io.IOException { … … 16883 26827 getUnknownFields().writeTo(output); 16884 26828 } 16885 26829 16886 26830 private int memoizedSerializedSize = -1; 16887 26831 public int getSerializedSize() { 16888 26832 int size = memoizedSerializedSize; 16889 26833 if (size != -1) return size; 16890 26834 16891 26835 size = 0; 16892 26836 for (int i = 0; i < location_.size(); i++) { … … 16898 26842 return size; 16899 26843 } 16900 26844 16901 26845 private static final long serialVersionUID = 0L; 16902 26846 @java.lang.Override … … 16905 26849 return super.writeReplace(); 16906 26850 } 16907 26851 16908 26852 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( 16909 26853 com.google.protobuf.ByteString data) 16910 26854 throws com.google.protobuf.InvalidProtocolBufferException { 16911 return newBuilder().mergeFrom(data).buildParsed();26855 return PARSER.parseFrom(data); 16912 26856 } 16913 26857 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( … … 16915 26859 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16916 26860 throws com.google.protobuf.InvalidProtocolBufferException { 16917 return newBuilder().mergeFrom(data, extensionRegistry) 16918 .buildParsed(); 26861 return PARSER.parseFrom(data, extensionRegistry); 16919 26862 } 16920 26863 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom(byte[] data) 16921 26864 throws com.google.protobuf.InvalidProtocolBufferException { 16922 return newBuilder().mergeFrom(data).buildParsed();26865 return PARSER.parseFrom(data); 16923 26866 } 16924 26867 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( … … 16926 26869 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16927 26870 throws com.google.protobuf.InvalidProtocolBufferException { 16928 return newBuilder().mergeFrom(data, extensionRegistry) 16929 .buildParsed(); 26871 return PARSER.parseFrom(data, extensionRegistry); 16930 26872 } 16931 26873 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom(java.io.InputStream input) 16932 26874 throws java.io.IOException { 16933 return newBuilder().mergeFrom(input).buildParsed();26875 return PARSER.parseFrom(input); 16934 26876 } 16935 26877 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( … … 16937 26879 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16938 26880 throws java.io.IOException { 16939 return newBuilder().mergeFrom(input, extensionRegistry) 16940 .buildParsed(); 26881 return PARSER.parseFrom(input, extensionRegistry); 16941 26882 } 16942 26883 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseDelimitedFrom(java.io.InputStream input) 16943 26884 throws java.io.IOException { 16944 Builder builder = newBuilder(); 16945 if (builder.mergeDelimitedFrom(input)) { 16946 return builder.buildParsed(); 16947 } else { 16948 return null; 16949 } 26885 return PARSER.parseDelimitedFrom(input); 16950 26886 } 16951 26887 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseDelimitedFrom( … … 16953 26889 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16954 26890 throws java.io.IOException { 16955 Builder builder = newBuilder(); 16956 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 16957 return builder.buildParsed(); 16958 } else { 16959 return null; 16960 } 26891 return PARSER.parseDelimitedFrom(input, extensionRegistry); 16961 26892 } 16962 26893 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( 16963 26894 com.google.protobuf.CodedInputStream input) 16964 26895 throws java.io.IOException { 16965 return newBuilder().mergeFrom(input).buildParsed();26896 return PARSER.parseFrom(input); 16966 26897 } 16967 26898 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( … … 16969 26900 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16970 26901 throws java.io.IOException { 16971 return newBuilder().mergeFrom(input, extensionRegistry) 16972 .buildParsed(); 16973 } 16974 26902 return PARSER.parseFrom(input, extensionRegistry); 26903 } 26904 16975 26905 public static Builder newBuilder() { return Builder.create(); } 16976 26906 public Builder newBuilderForType() { return newBuilder(); } … … 16979 26909 } 16980 26910 public Builder toBuilder() { return newBuilder(this); } 16981 26911 16982 26912 @java.lang.Override 16983 26913 protected Builder newBuilderForType( … … 16986 26916 return builder; 16987 26917 } 26918 /** 26919 * Protobuf type {@code google.protobuf.SourceCodeInfo} 26920 * 26921 * <pre> 26922 * Encapsulates information about the original source file from which a 26923 * FileDescriptorProto was generated. 26924 * </pre> 26925 */ 16988 26926 public static final class Builder extends 16989 26927 com.google.protobuf.GeneratedMessage.Builder<Builder> … … 16993 26931 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_descriptor; 16994 26932 } 16995 26933 16996 26934 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 16997 26935 internalGetFieldAccessorTable() { 16998 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable; 16999 } 17000 26936 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable 26937 .ensureFieldAccessorsInitialized( 26938 com.google.protobuf.DescriptorProtos.SourceCodeInfo.class, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder.class); 26939 } 26940 17001 26941 // Construct using com.google.protobuf.DescriptorProtos.SourceCodeInfo.newBuilder() 17002 26942 private Builder() { 17003 26943 maybeForceBuilderInitialization(); 17004 26944 } 17005 17006 private Builder(BuilderParent parent) { 26945 26946 private Builder( 26947 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 17007 26948 super(parent); 17008 26949 maybeForceBuilderInitialization(); … … 17016 26957 return new Builder(); 17017 26958 } 17018 26959 17019 26960 public Builder clear() { 17020 26961 super.clear(); … … 17027 26968 return this; 17028 26969 } 17029 26970 17030 26971 public Builder clone() { 17031 26972 return create().mergeFrom(buildPartial()); 17032 26973 } 17033 26974 17034 26975 public com.google.protobuf.Descriptors.Descriptor 17035 26976 getDescriptorForType() { 17036 return com.google.protobuf.DescriptorProtos. SourceCodeInfo.getDescriptor();17037 } 17038 26977 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_descriptor; 26978 } 26979 17039 26980 public com.google.protobuf.DescriptorProtos.SourceCodeInfo getDefaultInstanceForType() { 17040 26981 return com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); 17041 26982 } 17042 26983 17043 26984 public com.google.protobuf.DescriptorProtos.SourceCodeInfo build() { 17044 26985 com.google.protobuf.DescriptorProtos.SourceCodeInfo result = buildPartial(); … … 17048 26989 return result; 17049 26990 } 17050 17051 private com.google.protobuf.DescriptorProtos.SourceCodeInfo buildParsed() 17052 throws com.google.protobuf.InvalidProtocolBufferException { 17053 com.google.protobuf.DescriptorProtos.SourceCodeInfo result = buildPartial(); 17054 if (!result.isInitialized()) { 17055 throw newUninitializedMessageException( 17056 result).asInvalidProtocolBufferException(); 17057 } 17058 return result; 17059 } 17060 26991 17061 26992 public com.google.protobuf.DescriptorProtos.SourceCodeInfo buildPartial() { 17062 26993 com.google.protobuf.DescriptorProtos.SourceCodeInfo result = new com.google.protobuf.DescriptorProtos.SourceCodeInfo(this); … … 17074 27005 return result; 17075 27006 } 17076 27007 17077 27008 public Builder mergeFrom(com.google.protobuf.Message other) { 17078 27009 if (other instanceof com.google.protobuf.DescriptorProtos.SourceCodeInfo) { … … 17083 27014 } 17084 27015 } 17085 27016 17086 27017 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.SourceCodeInfo other) { 17087 27018 if (other == com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance()) return this; … … 17115 27046 return this; 17116 27047 } 17117 27048 17118 27049 public final boolean isInitialized() { 17119 27050 return true; 17120 27051 } 17121 27052 17122 27053 public Builder mergeFrom( 17123 27054 com.google.protobuf.CodedInputStream input, 17124 27055 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 17125 27056 throws java.io.IOException { 17126 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 17127 com.google.protobuf.UnknownFieldSet.newBuilder( 17128 this.getUnknownFields()); 17129 while (true) { 17130 int tag = input.readTag(); 17131 switch (tag) { 17132 case 0: 17133 this.setUnknownFields(unknownFields.build()); 17134 onChanged(); 17135 return this; 17136 default: { 17137 if (!parseUnknownField(input, unknownFields, 17138 extensionRegistry, tag)) { 17139 this.setUnknownFields(unknownFields.build()); 17140 onChanged(); 17141 return this; 17142 } 17143 break; 17144 } 17145 case 10: { 17146 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder subBuilder = com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.newBuilder(); 17147 input.readMessage(subBuilder, extensionRegistry); 17148 addLocation(subBuilder.buildPartial()); 17149 break; 17150 } 27057 com.google.protobuf.DescriptorProtos.SourceCodeInfo parsedMessage = null; 27058 try { 27059 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 27060 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 27061 parsedMessage = (com.google.protobuf.DescriptorProtos.SourceCodeInfo) e.getUnfinishedMessage(); 27062 throw e; 27063 } finally { 27064 if (parsedMessage != null) { 27065 mergeFrom(parsedMessage); 17151 27066 } 17152 27067 } 17153 }17154 27068 return this; 27069 } 17155 27070 private int bitField0_; 17156 27071 17157 27072 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; 17158 27073 private java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> location_ = … … 17164 27079 } 17165 27080 } 17166 27081 17167 27082 private com.google.protobuf.RepeatedFieldBuilder< 17168 27083 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> locationBuilder_; 17169 27084 27085 /** 27086 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27087 * 27088 * <pre> 27089 * A Location identifies a piece of source code in a .proto file which 27090 * corresponds to a particular definition. This information is intended 27091 * to be useful to IDEs, code indexers, documentation generators, and similar 27092 * tools. 27093 * 27094 * For example, say we have a file like: 27095 * message Foo { 27096 * optional string foo = 1; 27097 * } 27098 * Let's look at just the field definition: 27099 * optional string foo = 1; 27100 * ^ ^^ ^^ ^ ^^^ 27101 * a bc de f ghi 27102 * We have the following locations: 27103 * span path represents 27104 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27105 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27106 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27107 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27108 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27109 * 27110 * Notes: 27111 * - A location may refer to a repeated field itself (i.e. not to any 27112 * particular index within it). This is used whenever a set of elements are 27113 * logically enclosed in a single code segment. For example, an entire 27114 * extend block (possibly containing multiple extension definitions) will 27115 * have an outer location whose path refers to the "extensions" repeated 27116 * field without an index. 27117 * - Multiple locations may have the same path. This happens when a single 27118 * logical declaration is spread out across multiple places. The most 27119 * obvious example is the "extend" block again -- there may be multiple 27120 * extend blocks in the same scope, each of which will have the same path. 27121 * - A location's span is not always a subset of its parent's span. For 27122 * example, the "extendee" of an extension declaration appears at the 27123 * beginning of the "extend" block and is shared by all extensions within 27124 * the block. 27125 * - Just because a location's span is a subset of some other location's span 27126 * does not mean that it is a descendent. For example, a "group" defines 27127 * both a type and a field in a single declaration. Thus, the locations 27128 * corresponding to the type and field and their components will overlap. 27129 * - Code which tries to interpret locations should probably be designed to 27130 * ignore those that it doesn't understand, as more types of locations could 27131 * be recorded in the future. 27132 * </pre> 27133 */ 17170 27134 public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> getLocationList() { 17171 27135 if (locationBuilder_ == null) { … … 17175 27139 } 17176 27140 } 27141 /** 27142 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27143 * 27144 * <pre> 27145 * A Location identifies a piece of source code in a .proto file which 27146 * corresponds to a particular definition. This information is intended 27147 * to be useful to IDEs, code indexers, documentation generators, and similar 27148 * tools. 27149 * 27150 * For example, say we have a file like: 27151 * message Foo { 27152 * optional string foo = 1; 27153 * } 27154 * Let's look at just the field definition: 27155 * optional string foo = 1; 27156 * ^ ^^ ^^ ^ ^^^ 27157 * a bc de f ghi 27158 * We have the following locations: 27159 * span path represents 27160 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27161 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27162 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27163 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27164 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27165 * 27166 * Notes: 27167 * - A location may refer to a repeated field itself (i.e. not to any 27168 * particular index within it). This is used whenever a set of elements are 27169 * logically enclosed in a single code segment. For example, an entire 27170 * extend block (possibly containing multiple extension definitions) will 27171 * have an outer location whose path refers to the "extensions" repeated 27172 * field without an index. 27173 * - Multiple locations may have the same path. This happens when a single 27174 * logical declaration is spread out across multiple places. The most 27175 * obvious example is the "extend" block again -- there may be multiple 27176 * extend blocks in the same scope, each of which will have the same path. 27177 * - A location's span is not always a subset of its parent's span. For 27178 * example, the "extendee" of an extension declaration appears at the 27179 * beginning of the "extend" block and is shared by all extensions within 27180 * the block. 27181 * - Just because a location's span is a subset of some other location's span 27182 * does not mean that it is a descendent. For example, a "group" defines 27183 * both a type and a field in a single declaration. Thus, the locations 27184 * corresponding to the type and field and their components will overlap. 27185 * - Code which tries to interpret locations should probably be designed to 27186 * ignore those that it doesn't understand, as more types of locations could 27187 * be recorded in the future. 27188 * </pre> 27189 */ 17177 27190 public int getLocationCount() { 17178 27191 if (locationBuilder_ == null) { … … 17182 27195 } 17183 27196 } 27197 /** 27198 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27199 * 27200 * <pre> 27201 * A Location identifies a piece of source code in a .proto file which 27202 * corresponds to a particular definition. This information is intended 27203 * to be useful to IDEs, code indexers, documentation generators, and similar 27204 * tools. 27205 * 27206 * For example, say we have a file like: 27207 * message Foo { 27208 * optional string foo = 1; 27209 * } 27210 * Let's look at just the field definition: 27211 * optional string foo = 1; 27212 * ^ ^^ ^^ ^ ^^^ 27213 * a bc de f ghi 27214 * We have the following locations: 27215 * span path represents 27216 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27217 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27218 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27219 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27220 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27221 * 27222 * Notes: 27223 * - A location may refer to a repeated field itself (i.e. not to any 27224 * particular index within it). This is used whenever a set of elements are 27225 * logically enclosed in a single code segment. For example, an entire 27226 * extend block (possibly containing multiple extension definitions) will 27227 * have an outer location whose path refers to the "extensions" repeated 27228 * field without an index. 27229 * - Multiple locations may have the same path. This happens when a single 27230 * logical declaration is spread out across multiple places. The most 27231 * obvious example is the "extend" block again -- there may be multiple 27232 * extend blocks in the same scope, each of which will have the same path. 27233 * - A location's span is not always a subset of its parent's span. For 27234 * example, the "extendee" of an extension declaration appears at the 27235 * beginning of the "extend" block and is shared by all extensions within 27236 * the block. 27237 * - Just because a location's span is a subset of some other location's span 27238 * does not mean that it is a descendent. For example, a "group" defines 27239 * both a type and a field in a single declaration. Thus, the locations 27240 * corresponding to the type and field and their components will overlap. 27241 * - Code which tries to interpret locations should probably be designed to 27242 * ignore those that it doesn't understand, as more types of locations could 27243 * be recorded in the future. 27244 * </pre> 27245 */ 17184 27246 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getLocation(int index) { 17185 27247 if (locationBuilder_ == null) { … … 17189 27251 } 17190 27252 } 27253 /** 27254 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27255 * 27256 * <pre> 27257 * A Location identifies a piece of source code in a .proto file which 27258 * corresponds to a particular definition. This information is intended 27259 * to be useful to IDEs, code indexers, documentation generators, and similar 27260 * tools. 27261 * 27262 * For example, say we have a file like: 27263 * message Foo { 27264 * optional string foo = 1; 27265 * } 27266 * Let's look at just the field definition: 27267 * optional string foo = 1; 27268 * ^ ^^ ^^ ^ ^^^ 27269 * a bc de f ghi 27270 * We have the following locations: 27271 * span path represents 27272 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27273 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27274 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27275 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27276 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27277 * 27278 * Notes: 27279 * - A location may refer to a repeated field itself (i.e. not to any 27280 * particular index within it). This is used whenever a set of elements are 27281 * logically enclosed in a single code segment. For example, an entire 27282 * extend block (possibly containing multiple extension definitions) will 27283 * have an outer location whose path refers to the "extensions" repeated 27284 * field without an index. 27285 * - Multiple locations may have the same path. This happens when a single 27286 * logical declaration is spread out across multiple places. The most 27287 * obvious example is the "extend" block again -- there may be multiple 27288 * extend blocks in the same scope, each of which will have the same path. 27289 * - A location's span is not always a subset of its parent's span. For 27290 * example, the "extendee" of an extension declaration appears at the 27291 * beginning of the "extend" block and is shared by all extensions within 27292 * the block. 27293 * - Just because a location's span is a subset of some other location's span 27294 * does not mean that it is a descendent. For example, a "group" defines 27295 * both a type and a field in a single declaration. Thus, the locations 27296 * corresponding to the type and field and their components will overlap. 27297 * - Code which tries to interpret locations should probably be designed to 27298 * ignore those that it doesn't understand, as more types of locations could 27299 * be recorded in the future. 27300 * </pre> 27301 */ 17191 27302 public Builder setLocation( 17192 27303 int index, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location value) { … … 17203 27314 return this; 17204 27315 } 27316 /** 27317 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27318 * 27319 * <pre> 27320 * A Location identifies a piece of source code in a .proto file which 27321 * corresponds to a particular definition. This information is intended 27322 * to be useful to IDEs, code indexers, documentation generators, and similar 27323 * tools. 27324 * 27325 * For example, say we have a file like: 27326 * message Foo { 27327 * optional string foo = 1; 27328 * } 27329 * Let's look at just the field definition: 27330 * optional string foo = 1; 27331 * ^ ^^ ^^ ^ ^^^ 27332 * a bc de f ghi 27333 * We have the following locations: 27334 * span path represents 27335 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27336 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27337 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27338 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27339 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27340 * 27341 * Notes: 27342 * - A location may refer to a repeated field itself (i.e. not to any 27343 * particular index within it). This is used whenever a set of elements are 27344 * logically enclosed in a single code segment. For example, an entire 27345 * extend block (possibly containing multiple extension definitions) will 27346 * have an outer location whose path refers to the "extensions" repeated 27347 * field without an index. 27348 * - Multiple locations may have the same path. This happens when a single 27349 * logical declaration is spread out across multiple places. The most 27350 * obvious example is the "extend" block again -- there may be multiple 27351 * extend blocks in the same scope, each of which will have the same path. 27352 * - A location's span is not always a subset of its parent's span. For 27353 * example, the "extendee" of an extension declaration appears at the 27354 * beginning of the "extend" block and is shared by all extensions within 27355 * the block. 27356 * - Just because a location's span is a subset of some other location's span 27357 * does not mean that it is a descendent. For example, a "group" defines 27358 * both a type and a field in a single declaration. Thus, the locations 27359 * corresponding to the type and field and their components will overlap. 27360 * - Code which tries to interpret locations should probably be designed to 27361 * ignore those that it doesn't understand, as more types of locations could 27362 * be recorded in the future. 27363 * </pre> 27364 */ 17205 27365 public Builder setLocation( 17206 27366 int index, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder builderForValue) { … … 17214 27374 return this; 17215 27375 } 27376 /** 27377 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27378 * 27379 * <pre> 27380 * A Location identifies a piece of source code in a .proto file which 27381 * corresponds to a particular definition. This information is intended 27382 * to be useful to IDEs, code indexers, documentation generators, and similar 27383 * tools. 27384 * 27385 * For example, say we have a file like: 27386 * message Foo { 27387 * optional string foo = 1; 27388 * } 27389 * Let's look at just the field definition: 27390 * optional string foo = 1; 27391 * ^ ^^ ^^ ^ ^^^ 27392 * a bc de f ghi 27393 * We have the following locations: 27394 * span path represents 27395 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27396 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27397 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27398 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27399 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27400 * 27401 * Notes: 27402 * - A location may refer to a repeated field itself (i.e. not to any 27403 * particular index within it). This is used whenever a set of elements are 27404 * logically enclosed in a single code segment. For example, an entire 27405 * extend block (possibly containing multiple extension definitions) will 27406 * have an outer location whose path refers to the "extensions" repeated 27407 * field without an index. 27408 * - Multiple locations may have the same path. This happens when a single 27409 * logical declaration is spread out across multiple places. The most 27410 * obvious example is the "extend" block again -- there may be multiple 27411 * extend blocks in the same scope, each of which will have the same path. 27412 * - A location's span is not always a subset of its parent's span. For 27413 * example, the "extendee" of an extension declaration appears at the 27414 * beginning of the "extend" block and is shared by all extensions within 27415 * the block. 27416 * - Just because a location's span is a subset of some other location's span 27417 * does not mean that it is a descendent. For example, a "group" defines 27418 * both a type and a field in a single declaration. Thus, the locations 27419 * corresponding to the type and field and their components will overlap. 27420 * - Code which tries to interpret locations should probably be designed to 27421 * ignore those that it doesn't understand, as more types of locations could 27422 * be recorded in the future. 27423 * </pre> 27424 */ 17216 27425 public Builder addLocation(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location value) { 17217 27426 if (locationBuilder_ == null) { … … 17227 27436 return this; 17228 27437 } 27438 /** 27439 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27440 * 27441 * <pre> 27442 * A Location identifies a piece of source code in a .proto file which 27443 * corresponds to a particular definition. This information is intended 27444 * to be useful to IDEs, code indexers, documentation generators, and similar 27445 * tools. 27446 * 27447 * For example, say we have a file like: 27448 * message Foo { 27449 * optional string foo = 1; 27450 * } 27451 * Let's look at just the field definition: 27452 * optional string foo = 1; 27453 * ^ ^^ ^^ ^ ^^^ 27454 * a bc de f ghi 27455 * We have the following locations: 27456 * span path represents 27457 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27458 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27459 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27460 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27461 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27462 * 27463 * Notes: 27464 * - A location may refer to a repeated field itself (i.e. not to any 27465 * particular index within it). This is used whenever a set of elements are 27466 * logically enclosed in a single code segment. For example, an entire 27467 * extend block (possibly containing multiple extension definitions) will 27468 * have an outer location whose path refers to the "extensions" repeated 27469 * field without an index. 27470 * - Multiple locations may have the same path. This happens when a single 27471 * logical declaration is spread out across multiple places. The most 27472 * obvious example is the "extend" block again -- there may be multiple 27473 * extend blocks in the same scope, each of which will have the same path. 27474 * - A location's span is not always a subset of its parent's span. For 27475 * example, the "extendee" of an extension declaration appears at the 27476 * beginning of the "extend" block and is shared by all extensions within 27477 * the block. 27478 * - Just because a location's span is a subset of some other location's span 27479 * does not mean that it is a descendent. For example, a "group" defines 27480 * both a type and a field in a single declaration. Thus, the locations 27481 * corresponding to the type and field and their components will overlap. 27482 * - Code which tries to interpret locations should probably be designed to 27483 * ignore those that it doesn't understand, as more types of locations could 27484 * be recorded in the future. 27485 * </pre> 27486 */ 17229 27487 public Builder addLocation( 17230 27488 int index, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location value) { … … 17241 27499 return this; 17242 27500 } 27501 /** 27502 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27503 * 27504 * <pre> 27505 * A Location identifies a piece of source code in a .proto file which 27506 * corresponds to a particular definition. This information is intended 27507 * to be useful to IDEs, code indexers, documentation generators, and similar 27508 * tools. 27509 * 27510 * For example, say we have a file like: 27511 * message Foo { 27512 * optional string foo = 1; 27513 * } 27514 * Let's look at just the field definition: 27515 * optional string foo = 1; 27516 * ^ ^^ ^^ ^ ^^^ 27517 * a bc de f ghi 27518 * We have the following locations: 27519 * span path represents 27520 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27521 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27522 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27523 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27524 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27525 * 27526 * Notes: 27527 * - A location may refer to a repeated field itself (i.e. not to any 27528 * particular index within it). This is used whenever a set of elements are 27529 * logically enclosed in a single code segment. For example, an entire 27530 * extend block (possibly containing multiple extension definitions) will 27531 * have an outer location whose path refers to the "extensions" repeated 27532 * field without an index. 27533 * - Multiple locations may have the same path. This happens when a single 27534 * logical declaration is spread out across multiple places. The most 27535 * obvious example is the "extend" block again -- there may be multiple 27536 * extend blocks in the same scope, each of which will have the same path. 27537 * - A location's span is not always a subset of its parent's span. For 27538 * example, the "extendee" of an extension declaration appears at the 27539 * beginning of the "extend" block and is shared by all extensions within 27540 * the block. 27541 * - Just because a location's span is a subset of some other location's span 27542 * does not mean that it is a descendent. For example, a "group" defines 27543 * both a type and a field in a single declaration. Thus, the locations 27544 * corresponding to the type and field and their components will overlap. 27545 * - Code which tries to interpret locations should probably be designed to 27546 * ignore those that it doesn't understand, as more types of locations could 27547 * be recorded in the future. 27548 * </pre> 27549 */ 17243 27550 public Builder addLocation( 17244 27551 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder builderForValue) { … … 17252 27559 return this; 17253 27560 } 27561 /** 27562 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27563 * 27564 * <pre> 27565 * A Location identifies a piece of source code in a .proto file which 27566 * corresponds to a particular definition. This information is intended 27567 * to be useful to IDEs, code indexers, documentation generators, and similar 27568 * tools. 27569 * 27570 * For example, say we have a file like: 27571 * message Foo { 27572 * optional string foo = 1; 27573 * } 27574 * Let's look at just the field definition: 27575 * optional string foo = 1; 27576 * ^ ^^ ^^ ^ ^^^ 27577 * a bc de f ghi 27578 * We have the following locations: 27579 * span path represents 27580 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27581 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27582 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27583 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27584 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27585 * 27586 * Notes: 27587 * - A location may refer to a repeated field itself (i.e. not to any 27588 * particular index within it). This is used whenever a set of elements are 27589 * logically enclosed in a single code segment. For example, an entire 27590 * extend block (possibly containing multiple extension definitions) will 27591 * have an outer location whose path refers to the "extensions" repeated 27592 * field without an index. 27593 * - Multiple locations may have the same path. This happens when a single 27594 * logical declaration is spread out across multiple places. The most 27595 * obvious example is the "extend" block again -- there may be multiple 27596 * extend blocks in the same scope, each of which will have the same path. 27597 * - A location's span is not always a subset of its parent's span. For 27598 * example, the "extendee" of an extension declaration appears at the 27599 * beginning of the "extend" block and is shared by all extensions within 27600 * the block. 27601 * - Just because a location's span is a subset of some other location's span 27602 * does not mean that it is a descendent. For example, a "group" defines 27603 * both a type and a field in a single declaration. Thus, the locations 27604 * corresponding to the type and field and their components will overlap. 27605 * - Code which tries to interpret locations should probably be designed to 27606 * ignore those that it doesn't understand, as more types of locations could 27607 * be recorded in the future. 27608 * </pre> 27609 */ 17254 27610 public Builder addLocation( 17255 27611 int index, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder builderForValue) { … … 17263 27619 return this; 17264 27620 } 27621 /** 27622 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27623 * 27624 * <pre> 27625 * A Location identifies a piece of source code in a .proto file which 27626 * corresponds to a particular definition. This information is intended 27627 * to be useful to IDEs, code indexers, documentation generators, and similar 27628 * tools. 27629 * 27630 * For example, say we have a file like: 27631 * message Foo { 27632 * optional string foo = 1; 27633 * } 27634 * Let's look at just the field definition: 27635 * optional string foo = 1; 27636 * ^ ^^ ^^ ^ ^^^ 27637 * a bc de f ghi 27638 * We have the following locations: 27639 * span path represents 27640 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27641 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27642 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27643 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27644 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27645 * 27646 * Notes: 27647 * - A location may refer to a repeated field itself (i.e. not to any 27648 * particular index within it). This is used whenever a set of elements are 27649 * logically enclosed in a single code segment. For example, an entire 27650 * extend block (possibly containing multiple extension definitions) will 27651 * have an outer location whose path refers to the "extensions" repeated 27652 * field without an index. 27653 * - Multiple locations may have the same path. This happens when a single 27654 * logical declaration is spread out across multiple places. The most 27655 * obvious example is the "extend" block again -- there may be multiple 27656 * extend blocks in the same scope, each of which will have the same path. 27657 * - A location's span is not always a subset of its parent's span. For 27658 * example, the "extendee" of an extension declaration appears at the 27659 * beginning of the "extend" block and is shared by all extensions within 27660 * the block. 27661 * - Just because a location's span is a subset of some other location's span 27662 * does not mean that it is a descendent. For example, a "group" defines 27663 * both a type and a field in a single declaration. Thus, the locations 27664 * corresponding to the type and field and their components will overlap. 27665 * - Code which tries to interpret locations should probably be designed to 27666 * ignore those that it doesn't understand, as more types of locations could 27667 * be recorded in the future. 27668 * </pre> 27669 */ 17265 27670 public Builder addAllLocation( 17266 27671 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> values) { … … 17274 27679 return this; 17275 27680 } 27681 /** 27682 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27683 * 27684 * <pre> 27685 * A Location identifies a piece of source code in a .proto file which 27686 * corresponds to a particular definition. This information is intended 27687 * to be useful to IDEs, code indexers, documentation generators, and similar 27688 * tools. 27689 * 27690 * For example, say we have a file like: 27691 * message Foo { 27692 * optional string foo = 1; 27693 * } 27694 * Let's look at just the field definition: 27695 * optional string foo = 1; 27696 * ^ ^^ ^^ ^ ^^^ 27697 * a bc de f ghi 27698 * We have the following locations: 27699 * span path represents 27700 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27701 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27702 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27703 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27704 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27705 * 27706 * Notes: 27707 * - A location may refer to a repeated field itself (i.e. not to any 27708 * particular index within it). This is used whenever a set of elements are 27709 * logically enclosed in a single code segment. For example, an entire 27710 * extend block (possibly containing multiple extension definitions) will 27711 * have an outer location whose path refers to the "extensions" repeated 27712 * field without an index. 27713 * - Multiple locations may have the same path. This happens when a single 27714 * logical declaration is spread out across multiple places. The most 27715 * obvious example is the "extend" block again -- there may be multiple 27716 * extend blocks in the same scope, each of which will have the same path. 27717 * - A location's span is not always a subset of its parent's span. For 27718 * example, the "extendee" of an extension declaration appears at the 27719 * beginning of the "extend" block and is shared by all extensions within 27720 * the block. 27721 * - Just because a location's span is a subset of some other location's span 27722 * does not mean that it is a descendent. For example, a "group" defines 27723 * both a type and a field in a single declaration. Thus, the locations 27724 * corresponding to the type and field and their components will overlap. 27725 * - Code which tries to interpret locations should probably be designed to 27726 * ignore those that it doesn't understand, as more types of locations could 27727 * be recorded in the future. 27728 * </pre> 27729 */ 17276 27730 public Builder clearLocation() { 17277 27731 if (locationBuilder_ == null) { … … 17284 27738 return this; 17285 27739 } 27740 /** 27741 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27742 * 27743 * <pre> 27744 * A Location identifies a piece of source code in a .proto file which 27745 * corresponds to a particular definition. This information is intended 27746 * to be useful to IDEs, code indexers, documentation generators, and similar 27747 * tools. 27748 * 27749 * For example, say we have a file like: 27750 * message Foo { 27751 * optional string foo = 1; 27752 * } 27753 * Let's look at just the field definition: 27754 * optional string foo = 1; 27755 * ^ ^^ ^^ ^ ^^^ 27756 * a bc de f ghi 27757 * We have the following locations: 27758 * span path represents 27759 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27760 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27761 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27762 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27763 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27764 * 27765 * Notes: 27766 * - A location may refer to a repeated field itself (i.e. not to any 27767 * particular index within it). This is used whenever a set of elements are 27768 * logically enclosed in a single code segment. For example, an entire 27769 * extend block (possibly containing multiple extension definitions) will 27770 * have an outer location whose path refers to the "extensions" repeated 27771 * field without an index. 27772 * - Multiple locations may have the same path. This happens when a single 27773 * logical declaration is spread out across multiple places. The most 27774 * obvious example is the "extend" block again -- there may be multiple 27775 * extend blocks in the same scope, each of which will have the same path. 27776 * - A location's span is not always a subset of its parent's span. For 27777 * example, the "extendee" of an extension declaration appears at the 27778 * beginning of the "extend" block and is shared by all extensions within 27779 * the block. 27780 * - Just because a location's span is a subset of some other location's span 27781 * does not mean that it is a descendent. For example, a "group" defines 27782 * both a type and a field in a single declaration. Thus, the locations 27783 * corresponding to the type and field and their components will overlap. 27784 * - Code which tries to interpret locations should probably be designed to 27785 * ignore those that it doesn't understand, as more types of locations could 27786 * be recorded in the future. 27787 * </pre> 27788 */ 17286 27789 public Builder removeLocation(int index) { 17287 27790 if (locationBuilder_ == null) { … … 17294 27797 return this; 17295 27798 } 27799 /** 27800 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27801 * 27802 * <pre> 27803 * A Location identifies a piece of source code in a .proto file which 27804 * corresponds to a particular definition. This information is intended 27805 * to be useful to IDEs, code indexers, documentation generators, and similar 27806 * tools. 27807 * 27808 * For example, say we have a file like: 27809 * message Foo { 27810 * optional string foo = 1; 27811 * } 27812 * Let's look at just the field definition: 27813 * optional string foo = 1; 27814 * ^ ^^ ^^ ^ ^^^ 27815 * a bc de f ghi 27816 * We have the following locations: 27817 * span path represents 27818 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27819 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27820 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27821 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27822 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27823 * 27824 * Notes: 27825 * - A location may refer to a repeated field itself (i.e. not to any 27826 * particular index within it). This is used whenever a set of elements are 27827 * logically enclosed in a single code segment. For example, an entire 27828 * extend block (possibly containing multiple extension definitions) will 27829 * have an outer location whose path refers to the "extensions" repeated 27830 * field without an index. 27831 * - Multiple locations may have the same path. This happens when a single 27832 * logical declaration is spread out across multiple places. The most 27833 * obvious example is the "extend" block again -- there may be multiple 27834 * extend blocks in the same scope, each of which will have the same path. 27835 * - A location's span is not always a subset of its parent's span. For 27836 * example, the "extendee" of an extension declaration appears at the 27837 * beginning of the "extend" block and is shared by all extensions within 27838 * the block. 27839 * - Just because a location's span is a subset of some other location's span 27840 * does not mean that it is a descendent. For example, a "group" defines 27841 * both a type and a field in a single declaration. Thus, the locations 27842 * corresponding to the type and field and their components will overlap. 27843 * - Code which tries to interpret locations should probably be designed to 27844 * ignore those that it doesn't understand, as more types of locations could 27845 * be recorded in the future. 27846 * </pre> 27847 */ 17296 27848 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder getLocationBuilder( 17297 27849 int index) { 17298 27850 return getLocationFieldBuilder().getBuilder(index); 17299 27851 } 27852 /** 27853 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27854 * 27855 * <pre> 27856 * A Location identifies a piece of source code in a .proto file which 27857 * corresponds to a particular definition. This information is intended 27858 * to be useful to IDEs, code indexers, documentation generators, and similar 27859 * tools. 27860 * 27861 * For example, say we have a file like: 27862 * message Foo { 27863 * optional string foo = 1; 27864 * } 27865 * Let's look at just the field definition: 27866 * optional string foo = 1; 27867 * ^ ^^ ^^ ^ ^^^ 27868 * a bc de f ghi 27869 * We have the following locations: 27870 * span path represents 27871 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27872 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27873 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27874 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27875 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27876 * 27877 * Notes: 27878 * - A location may refer to a repeated field itself (i.e. not to any 27879 * particular index within it). This is used whenever a set of elements are 27880 * logically enclosed in a single code segment. For example, an entire 27881 * extend block (possibly containing multiple extension definitions) will 27882 * have an outer location whose path refers to the "extensions" repeated 27883 * field without an index. 27884 * - Multiple locations may have the same path. This happens when a single 27885 * logical declaration is spread out across multiple places. The most 27886 * obvious example is the "extend" block again -- there may be multiple 27887 * extend blocks in the same scope, each of which will have the same path. 27888 * - A location's span is not always a subset of its parent's span. For 27889 * example, the "extendee" of an extension declaration appears at the 27890 * beginning of the "extend" block and is shared by all extensions within 27891 * the block. 27892 * - Just because a location's span is a subset of some other location's span 27893 * does not mean that it is a descendent. For example, a "group" defines 27894 * both a type and a field in a single declaration. Thus, the locations 27895 * corresponding to the type and field and their components will overlap. 27896 * - Code which tries to interpret locations should probably be designed to 27897 * ignore those that it doesn't understand, as more types of locations could 27898 * be recorded in the future. 27899 * </pre> 27900 */ 17300 27901 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder getLocationOrBuilder( 17301 27902 int index) { … … 17305 27906 } 17306 27907 } 27908 /** 27909 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27910 * 27911 * <pre> 27912 * A Location identifies a piece of source code in a .proto file which 27913 * corresponds to a particular definition. This information is intended 27914 * to be useful to IDEs, code indexers, documentation generators, and similar 27915 * tools. 27916 * 27917 * For example, say we have a file like: 27918 * message Foo { 27919 * optional string foo = 1; 27920 * } 27921 * Let's look at just the field definition: 27922 * optional string foo = 1; 27923 * ^ ^^ ^^ ^ ^^^ 27924 * a bc de f ghi 27925 * We have the following locations: 27926 * span path represents 27927 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27928 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27929 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27930 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27931 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27932 * 27933 * Notes: 27934 * - A location may refer to a repeated field itself (i.e. not to any 27935 * particular index within it). This is used whenever a set of elements are 27936 * logically enclosed in a single code segment. For example, an entire 27937 * extend block (possibly containing multiple extension definitions) will 27938 * have an outer location whose path refers to the "extensions" repeated 27939 * field without an index. 27940 * - Multiple locations may have the same path. This happens when a single 27941 * logical declaration is spread out across multiple places. The most 27942 * obvious example is the "extend" block again -- there may be multiple 27943 * extend blocks in the same scope, each of which will have the same path. 27944 * - A location's span is not always a subset of its parent's span. For 27945 * example, the "extendee" of an extension declaration appears at the 27946 * beginning of the "extend" block and is shared by all extensions within 27947 * the block. 27948 * - Just because a location's span is a subset of some other location's span 27949 * does not mean that it is a descendent. For example, a "group" defines 27950 * both a type and a field in a single declaration. Thus, the locations 27951 * corresponding to the type and field and their components will overlap. 27952 * - Code which tries to interpret locations should probably be designed to 27953 * ignore those that it doesn't understand, as more types of locations could 27954 * be recorded in the future. 27955 * </pre> 27956 */ 17307 27957 public java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> 17308 27958 getLocationOrBuilderList() { … … 17313 27963 } 17314 27964 } 27965 /** 27966 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27967 * 27968 * <pre> 27969 * A Location identifies a piece of source code in a .proto file which 27970 * corresponds to a particular definition. This information is intended 27971 * to be useful to IDEs, code indexers, documentation generators, and similar 27972 * tools. 27973 * 27974 * For example, say we have a file like: 27975 * message Foo { 27976 * optional string foo = 1; 27977 * } 27978 * Let's look at just the field definition: 27979 * optional string foo = 1; 27980 * ^ ^^ ^^ ^ ^^^ 27981 * a bc de f ghi 27982 * We have the following locations: 27983 * span path represents 27984 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 27985 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 27986 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 27987 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 27988 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 27989 * 27990 * Notes: 27991 * - A location may refer to a repeated field itself (i.e. not to any 27992 * particular index within it). This is used whenever a set of elements are 27993 * logically enclosed in a single code segment. For example, an entire 27994 * extend block (possibly containing multiple extension definitions) will 27995 * have an outer location whose path refers to the "extensions" repeated 27996 * field without an index. 27997 * - Multiple locations may have the same path. This happens when a single 27998 * logical declaration is spread out across multiple places. The most 27999 * obvious example is the "extend" block again -- there may be multiple 28000 * extend blocks in the same scope, each of which will have the same path. 28001 * - A location's span is not always a subset of its parent's span. For 28002 * example, the "extendee" of an extension declaration appears at the 28003 * beginning of the "extend" block and is shared by all extensions within 28004 * the block. 28005 * - Just because a location's span is a subset of some other location's span 28006 * does not mean that it is a descendent. For example, a "group" defines 28007 * both a type and a field in a single declaration. Thus, the locations 28008 * corresponding to the type and field and their components will overlap. 28009 * - Code which tries to interpret locations should probably be designed to 28010 * ignore those that it doesn't understand, as more types of locations could 28011 * be recorded in the future. 28012 * </pre> 28013 */ 17315 28014 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder addLocationBuilder() { 17316 28015 return getLocationFieldBuilder().addBuilder( 17317 28016 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.getDefaultInstance()); 17318 28017 } 28018 /** 28019 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 28020 * 28021 * <pre> 28022 * A Location identifies a piece of source code in a .proto file which 28023 * corresponds to a particular definition. This information is intended 28024 * to be useful to IDEs, code indexers, documentation generators, and similar 28025 * tools. 28026 * 28027 * For example, say we have a file like: 28028 * message Foo { 28029 * optional string foo = 1; 28030 * } 28031 * Let's look at just the field definition: 28032 * optional string foo = 1; 28033 * ^ ^^ ^^ ^ ^^^ 28034 * a bc de f ghi 28035 * We have the following locations: 28036 * span path represents 28037 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 28038 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 28039 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 28040 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 28041 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 28042 * 28043 * Notes: 28044 * - A location may refer to a repeated field itself (i.e. not to any 28045 * particular index within it). This is used whenever a set of elements are 28046 * logically enclosed in a single code segment. For example, an entire 28047 * extend block (possibly containing multiple extension definitions) will 28048 * have an outer location whose path refers to the "extensions" repeated 28049 * field without an index. 28050 * - Multiple locations may have the same path. This happens when a single 28051 * logical declaration is spread out across multiple places. The most 28052 * obvious example is the "extend" block again -- there may be multiple 28053 * extend blocks in the same scope, each of which will have the same path. 28054 * - A location's span is not always a subset of its parent's span. For 28055 * example, the "extendee" of an extension declaration appears at the 28056 * beginning of the "extend" block and is shared by all extensions within 28057 * the block. 28058 * - Just because a location's span is a subset of some other location's span 28059 * does not mean that it is a descendent. For example, a "group" defines 28060 * both a type and a field in a single declaration. Thus, the locations 28061 * corresponding to the type and field and their components will overlap. 28062 * - Code which tries to interpret locations should probably be designed to 28063 * ignore those that it doesn't understand, as more types of locations could 28064 * be recorded in the future. 28065 * </pre> 28066 */ 17319 28067 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder addLocationBuilder( 17320 28068 int index) { … … 17322 28070 index, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.getDefaultInstance()); 17323 28071 } 28072 /** 28073 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 28074 * 28075 * <pre> 28076 * A Location identifies a piece of source code in a .proto file which 28077 * corresponds to a particular definition. This information is intended 28078 * to be useful to IDEs, code indexers, documentation generators, and similar 28079 * tools. 28080 * 28081 * For example, say we have a file like: 28082 * message Foo { 28083 * optional string foo = 1; 28084 * } 28085 * Let's look at just the field definition: 28086 * optional string foo = 1; 28087 * ^ ^^ ^^ ^ ^^^ 28088 * a bc de f ghi 28089 * We have the following locations: 28090 * span path represents 28091 * [a,i) [ 4, 0, 2, 0 ] The whole field definition. 28092 * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 28093 * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 28094 * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 28095 * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 28096 * 28097 * Notes: 28098 * - A location may refer to a repeated field itself (i.e. not to any 28099 * particular index within it). This is used whenever a set of elements are 28100 * logically enclosed in a single code segment. For example, an entire 28101 * extend block (possibly containing multiple extension definitions) will 28102 * have an outer location whose path refers to the "extensions" repeated 28103 * field without an index. 28104 * - Multiple locations may have the same path. This happens when a single 28105 * logical declaration is spread out across multiple places. The most 28106 * obvious example is the "extend" block again -- there may be multiple 28107 * extend blocks in the same scope, each of which will have the same path. 28108 * - A location's span is not always a subset of its parent's span. For 28109 * example, the "extendee" of an extension declaration appears at the 28110 * beginning of the "extend" block and is shared by all extensions within 28111 * the block. 28112 * - Just because a location's span is a subset of some other location's span 28113 * does not mean that it is a descendent. For example, a "group" defines 28114 * both a type and a field in a single declaration. Thus, the locations 28115 * corresponding to the type and field and their components will overlap. 28116 * - Code which tries to interpret locations should probably be designed to 28117 * ignore those that it doesn't understand, as more types of locations could 28118 * be recorded in the future. 28119 * </pre> 28120 */ 17324 28121 public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder> 17325 28122 getLocationBuilderList() { … … 17340 28137 return locationBuilder_; 17341 28138 } 17342 28139 17343 28140 // @@protoc_insertion_point(builder_scope:google.protobuf.SourceCodeInfo) 17344 28141 } 17345 28142 17346 28143 static { 17347 28144 defaultInstance = new SourceCodeInfo(true); 17348 28145 defaultInstance.initFields(); 17349 28146 } 17350 28147 17351 28148 // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo) 17352 28149 } 17353 28150 17354 28151 private static com.google.protobuf.Descriptors.Descriptor 17355 28152 internal_static_google_protobuf_FileDescriptorSet_descriptor; … … 17452 28249 com.google.protobuf.GeneratedMessage.FieldAccessorTable 17453 28250 internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable; 17454 28251 17455 28252 public static com.google.protobuf.Descriptors.FileDescriptor 17456 28253 getDescriptor() { … … 17576 28373 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17577 28374 internal_static_google_protobuf_FileDescriptorSet_descriptor, 17578 new java.lang.String[] { "File", }, 17579 com.google.protobuf.DescriptorProtos.FileDescriptorSet.class, 17580 com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder.class); 28375 new java.lang.String[] { "File", }); 17581 28376 internal_static_google_protobuf_FileDescriptorProto_descriptor = 17582 28377 getDescriptor().getMessageTypes().get(1); … … 17584 28379 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17585 28380 internal_static_google_protobuf_FileDescriptorProto_descriptor, 17586 new java.lang.String[] { "Name", "Package", "Dependency", "PublicDependency", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInfo", }, 17587 com.google.protobuf.DescriptorProtos.FileDescriptorProto.class, 17588 com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder.class); 28381 new java.lang.String[] { "Name", "Package", "Dependency", "PublicDependency", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInfo", }); 17589 28382 internal_static_google_protobuf_DescriptorProto_descriptor = 17590 28383 getDescriptor().getMessageTypes().get(2); … … 17592 28385 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17593 28386 internal_static_google_protobuf_DescriptorProto_descriptor, 17594 new java.lang.String[] { "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "Options", }, 17595 com.google.protobuf.DescriptorProtos.DescriptorProto.class, 17596 com.google.protobuf.DescriptorProtos.DescriptorProto.Builder.class); 28387 new java.lang.String[] { "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "Options", }); 17597 28388 internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor = 17598 28389 internal_static_google_protobuf_DescriptorProto_descriptor.getNestedTypes().get(0); … … 17600 28391 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17601 28392 internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor, 17602 new java.lang.String[] { "Start", "End", }, 17603 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.class, 17604 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder.class); 28393 new java.lang.String[] { "Start", "End", }); 17605 28394 internal_static_google_protobuf_FieldDescriptorProto_descriptor = 17606 28395 getDescriptor().getMessageTypes().get(3); … … 17608 28397 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17609 28398 internal_static_google_protobuf_FieldDescriptorProto_descriptor, 17610 new java.lang.String[] { "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "Options", }, 17611 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.class, 17612 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder.class); 28399 new java.lang.String[] { "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "Options", }); 17613 28400 internal_static_google_protobuf_EnumDescriptorProto_descriptor = 17614 28401 getDescriptor().getMessageTypes().get(4); … … 17616 28403 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17617 28404 internal_static_google_protobuf_EnumDescriptorProto_descriptor, 17618 new java.lang.String[] { "Name", "Value", "Options", }, 17619 com.google.protobuf.DescriptorProtos.EnumDescriptorProto.class, 17620 com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder.class); 28405 new java.lang.String[] { "Name", "Value", "Options", }); 17621 28406 internal_static_google_protobuf_EnumValueDescriptorProto_descriptor = 17622 28407 getDescriptor().getMessageTypes().get(5); … … 17624 28409 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17625 28410 internal_static_google_protobuf_EnumValueDescriptorProto_descriptor, 17626 new java.lang.String[] { "Name", "Number", "Options", }, 17627 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.class, 17628 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder.class); 28411 new java.lang.String[] { "Name", "Number", "Options", }); 17629 28412 internal_static_google_protobuf_ServiceDescriptorProto_descriptor = 17630 28413 getDescriptor().getMessageTypes().get(6); … … 17632 28415 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17633 28416 internal_static_google_protobuf_ServiceDescriptorProto_descriptor, 17634 new java.lang.String[] { "Name", "Method", "Options", }, 17635 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.class, 17636 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder.class); 28417 new java.lang.String[] { "Name", "Method", "Options", }); 17637 28418 internal_static_google_protobuf_MethodDescriptorProto_descriptor = 17638 28419 getDescriptor().getMessageTypes().get(7); … … 17640 28421 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17641 28422 internal_static_google_protobuf_MethodDescriptorProto_descriptor, 17642 new java.lang.String[] { "Name", "InputType", "OutputType", "Options", }, 17643 com.google.protobuf.DescriptorProtos.MethodDescriptorProto.class, 17644 com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder.class); 28423 new java.lang.String[] { "Name", "InputType", "OutputType", "Options", }); 17645 28424 internal_static_google_protobuf_FileOptions_descriptor = 17646 28425 getDescriptor().getMessageTypes().get(8); … … 17648 28427 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17649 28428 internal_static_google_protobuf_FileOptions_descriptor, 17650 new java.lang.String[] { "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "UninterpretedOption", }, 17651 com.google.protobuf.DescriptorProtos.FileOptions.class, 17652 com.google.protobuf.DescriptorProtos.FileOptions.Builder.class); 28429 new java.lang.String[] { "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "UninterpretedOption", }); 17653 28430 internal_static_google_protobuf_MessageOptions_descriptor = 17654 28431 getDescriptor().getMessageTypes().get(9); … … 17656 28433 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17657 28434 internal_static_google_protobuf_MessageOptions_descriptor, 17658 new java.lang.String[] { "MessageSetWireFormat", "NoStandardDescriptorAccessor", "UninterpretedOption", }, 17659 com.google.protobuf.DescriptorProtos.MessageOptions.class, 17660 com.google.protobuf.DescriptorProtos.MessageOptions.Builder.class); 28435 new java.lang.String[] { "MessageSetWireFormat", "NoStandardDescriptorAccessor", "UninterpretedOption", }); 17661 28436 internal_static_google_protobuf_FieldOptions_descriptor = 17662 28437 getDescriptor().getMessageTypes().get(10); … … 17664 28439 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17665 28440 internal_static_google_protobuf_FieldOptions_descriptor, 17666 new java.lang.String[] { "Ctype", "Packed", "Lazy", "Deprecated", "ExperimentalMapKey", "Weak", "UninterpretedOption", }, 17667 com.google.protobuf.DescriptorProtos.FieldOptions.class, 17668 com.google.protobuf.DescriptorProtos.FieldOptions.Builder.class); 28441 new java.lang.String[] { "Ctype", "Packed", "Lazy", "Deprecated", "ExperimentalMapKey", "Weak", "UninterpretedOption", }); 17669 28442 internal_static_google_protobuf_EnumOptions_descriptor = 17670 28443 getDescriptor().getMessageTypes().get(11); … … 17672 28445 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17673 28446 internal_static_google_protobuf_EnumOptions_descriptor, 17674 new java.lang.String[] { "AllowAlias", "UninterpretedOption", }, 17675 com.google.protobuf.DescriptorProtos.EnumOptions.class, 17676 com.google.protobuf.DescriptorProtos.EnumOptions.Builder.class); 28447 new java.lang.String[] { "AllowAlias", "UninterpretedOption", }); 17677 28448 internal_static_google_protobuf_EnumValueOptions_descriptor = 17678 28449 getDescriptor().getMessageTypes().get(12); … … 17680 28451 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17681 28452 internal_static_google_protobuf_EnumValueOptions_descriptor, 17682 new java.lang.String[] { "UninterpretedOption", }, 17683 com.google.protobuf.DescriptorProtos.EnumValueOptions.class, 17684 com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder.class); 28453 new java.lang.String[] { "UninterpretedOption", }); 17685 28454 internal_static_google_protobuf_ServiceOptions_descriptor = 17686 28455 getDescriptor().getMessageTypes().get(13); … … 17688 28457 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17689 28458 internal_static_google_protobuf_ServiceOptions_descriptor, 17690 new java.lang.String[] { "UninterpretedOption", }, 17691 com.google.protobuf.DescriptorProtos.ServiceOptions.class, 17692 com.google.protobuf.DescriptorProtos.ServiceOptions.Builder.class); 28459 new java.lang.String[] { "UninterpretedOption", }); 17693 28460 internal_static_google_protobuf_MethodOptions_descriptor = 17694 28461 getDescriptor().getMessageTypes().get(14); … … 17696 28463 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17697 28464 internal_static_google_protobuf_MethodOptions_descriptor, 17698 new java.lang.String[] { "UninterpretedOption", }, 17699 com.google.protobuf.DescriptorProtos.MethodOptions.class, 17700 com.google.protobuf.DescriptorProtos.MethodOptions.Builder.class); 28465 new java.lang.String[] { "UninterpretedOption", }); 17701 28466 internal_static_google_protobuf_UninterpretedOption_descriptor = 17702 28467 getDescriptor().getMessageTypes().get(15); … … 17704 28469 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17705 28470 internal_static_google_protobuf_UninterpretedOption_descriptor, 17706 new java.lang.String[] { "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue", }, 17707 com.google.protobuf.DescriptorProtos.UninterpretedOption.class, 17708 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder.class); 28471 new java.lang.String[] { "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue", }); 17709 28472 internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor = 17710 28473 internal_static_google_protobuf_UninterpretedOption_descriptor.getNestedTypes().get(0); … … 17712 28475 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17713 28476 internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor, 17714 new java.lang.String[] { "NamePart", "IsExtension", }, 17715 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.class, 17716 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder.class); 28477 new java.lang.String[] { "NamePart", "IsExtension", }); 17717 28478 internal_static_google_protobuf_SourceCodeInfo_descriptor = 17718 28479 getDescriptor().getMessageTypes().get(16); … … 17720 28481 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17721 28482 internal_static_google_protobuf_SourceCodeInfo_descriptor, 17722 new java.lang.String[] { "Location", }, 17723 com.google.protobuf.DescriptorProtos.SourceCodeInfo.class, 17724 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder.class); 28483 new java.lang.String[] { "Location", }); 17725 28484 internal_static_google_protobuf_SourceCodeInfo_Location_descriptor = 17726 28485 internal_static_google_protobuf_SourceCodeInfo_descriptor.getNestedTypes().get(0); … … 17728 28487 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 17729 28488 internal_static_google_protobuf_SourceCodeInfo_Location_descriptor, 17730 new java.lang.String[] { "Path", "Span", "LeadingComments", "TrailingComments", }, 17731 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.class, 17732 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder.class); 28489 new java.lang.String[] { "Path", "Span", "LeadingComments", "TrailingComments", }); 17733 28490 return null; 17734 28491 } … … 17739 28496 }, assigner); 17740 28497 } 17741 28498 17742 28499 // @@protoc_insertion_point(outer_class_scope) 17743 28500 } -
applications/editors/josm/plugins/pbf/gen/crosby/binary/Fileformat.java
r26961 r30490 1 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: src/ fileformat.proto2 // source: src/crosby/binary/fileformat.proto 3 3 4 4 package crosby.binary; … … 11 11 public interface BlobOrBuilder 12 12 extends com.google.protobuf.MessageLiteOrBuilder { 13 13 14 14 // optional bytes raw = 1; 15 /** 16 * <code>optional bytes raw = 1;</code> 17 * 18 * <pre> 19 * No compression 20 * </pre> 21 */ 15 22 boolean hasRaw(); 23 /** 24 * <code>optional bytes raw = 1;</code> 25 * 26 * <pre> 27 * No compression 28 * </pre> 29 */ 16 30 com.google.protobuf.ByteString getRaw(); 17 31 18 32 // optional int32 raw_size = 2; 33 /** 34 * <code>optional int32 raw_size = 2;</code> 35 * 36 * <pre> 37 * When compressed, the uncompressed size 38 * </pre> 39 */ 19 40 boolean hasRawSize(); 41 /** 42 * <code>optional int32 raw_size = 2;</code> 43 * 44 * <pre> 45 * When compressed, the uncompressed size 46 * </pre> 47 */ 20 48 int getRawSize(); 21 49 22 50 // optional bytes zlib_data = 3; 51 /** 52 * <code>optional bytes zlib_data = 3;</code> 53 * 54 * <pre> 55 * Possible compressed versions of the data. 56 * </pre> 57 */ 23 58 boolean hasZlibData(); 59 /** 60 * <code>optional bytes zlib_data = 3;</code> 61 * 62 * <pre> 63 * Possible compressed versions of the data. 64 * </pre> 65 */ 24 66 com.google.protobuf.ByteString getZlibData(); 25 67 26 68 // optional bytes lzma_data = 4; 69 /** 70 * <code>optional bytes lzma_data = 4;</code> 71 * 72 * <pre> 73 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 74 * </pre> 75 */ 27 76 boolean hasLzmaData(); 77 /** 78 * <code>optional bytes lzma_data = 4;</code> 79 * 80 * <pre> 81 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 82 * </pre> 83 */ 28 84 com.google.protobuf.ByteString getLzmaData(); 29 85 30 86 // optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true]; 87 /** 88 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 89 * 90 * <pre> 91 * Formerly used for bzip2 compressed data. Depreciated in 2010. 92 * </pre> 93 */ 31 94 @java.lang.Deprecated boolean hasOBSOLETEBzip2Data(); 95 /** 96 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 97 * 98 * <pre> 99 * Formerly used for bzip2 compressed data. Depreciated in 2010. 100 * </pre> 101 */ 32 102 @java.lang.Deprecated com.google.protobuf.ByteString getOBSOLETEBzip2Data(); 33 103 } 104 /** 105 * Protobuf type {@code OSMPBF.Blob} 106 */ 34 107 public static final class Blob extends 35 108 com.google.protobuf.GeneratedMessageLite 36 109 implements BlobOrBuilder { 37 110 // Use Blob.newBuilder() to construct. 38 private Blob( Builder builder) {111 private Blob(com.google.protobuf.GeneratedMessageLite.Builder builder) { 39 112 super(builder); 113 40 114 } 41 115 private Blob(boolean noInit) {} 42 116 43 117 private static final Blob defaultInstance; 44 118 public static Blob getDefaultInstance() { 45 119 return defaultInstance; 46 120 } 47 121 48 122 public Blob getDefaultInstanceForType() { 49 123 return defaultInstance; 50 124 } 51 52 private int bitField0_; 53 // optional bytes raw = 1; 54 public static final int RAW_FIELD_NUMBER = 1; 55 private com.google.protobuf.ByteString raw_; 56 public boolean hasRaw() { 57 return ((bitField0_ & 0x00000001) == 0x00000001); 58 } 59 public com.google.protobuf.ByteString getRaw() { 60 return raw_; 61 } 62 63 // optional int32 raw_size = 2; 64 public static final int RAW_SIZE_FIELD_NUMBER = 2; 65 private int rawSize_; 66 public boolean hasRawSize() { 67 return ((bitField0_ & 0x00000002) == 0x00000002); 68 } 69 public int getRawSize() { 70 return rawSize_; 71 } 72 73 // optional bytes zlib_data = 3; 74 public static final int ZLIB_DATA_FIELD_NUMBER = 3; 75 private com.google.protobuf.ByteString zlibData_; 76 public boolean hasZlibData() { 77 return ((bitField0_ & 0x00000004) == 0x00000004); 78 } 79 public com.google.protobuf.ByteString getZlibData() { 80 return zlibData_; 81 } 82 83 // optional bytes lzma_data = 4; 84 public static final int LZMA_DATA_FIELD_NUMBER = 4; 85 private com.google.protobuf.ByteString lzmaData_; 86 public boolean hasLzmaData() { 87 return ((bitField0_ & 0x00000008) == 0x00000008); 88 } 89 public com.google.protobuf.ByteString getLzmaData() { 90 return lzmaData_; 91 } 92 93 // optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true]; 94 public static final int OBSOLETE_BZIP2_DATA_FIELD_NUMBER = 5; 95 private com.google.protobuf.ByteString oBSOLETEBzip2Data_; 96 @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() { 97 return ((bitField0_ & 0x00000010) == 0x00000010); 98 } 99 @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() { 100 return oBSOLETEBzip2Data_; 101 } 102 103 private void initFields() { 104 raw_ = com.google.protobuf.ByteString.EMPTY; 105 rawSize_ = 0; 106 zlibData_ = com.google.protobuf.ByteString.EMPTY; 107 lzmaData_ = com.google.protobuf.ByteString.EMPTY; 108 oBSOLETEBzip2Data_ = com.google.protobuf.ByteString.EMPTY; 109 } 110 private byte memoizedIsInitialized = -1; 111 public final boolean isInitialized() { 112 byte isInitialized = memoizedIsInitialized; 113 if (isInitialized != -1) return isInitialized == 1; 114 115 memoizedIsInitialized = 1; 116 return true; 117 } 118 119 public void writeTo(com.google.protobuf.CodedOutputStream output) 120 throws java.io.IOException { 121 getSerializedSize(); 122 if (((bitField0_ & 0x00000001) == 0x00000001)) { 123 output.writeBytes(1, raw_); 124 } 125 if (((bitField0_ & 0x00000002) == 0x00000002)) { 126 output.writeInt32(2, rawSize_); 127 } 128 if (((bitField0_ & 0x00000004) == 0x00000004)) { 129 output.writeBytes(3, zlibData_); 130 } 131 if (((bitField0_ & 0x00000008) == 0x00000008)) { 132 output.writeBytes(4, lzmaData_); 133 } 134 if (((bitField0_ & 0x00000010) == 0x00000010)) { 135 output.writeBytes(5, oBSOLETEBzip2Data_); 136 } 137 } 138 139 private int memoizedSerializedSize = -1; 140 public int getSerializedSize() { 141 int size = memoizedSerializedSize; 142 if (size != -1) return size; 143 144 size = 0; 145 if (((bitField0_ & 0x00000001) == 0x00000001)) { 146 size += com.google.protobuf.CodedOutputStream 147 .computeBytesSize(1, raw_); 148 } 149 if (((bitField0_ & 0x00000002) == 0x00000002)) { 150 size += com.google.protobuf.CodedOutputStream 151 .computeInt32Size(2, rawSize_); 152 } 153 if (((bitField0_ & 0x00000004) == 0x00000004)) { 154 size += com.google.protobuf.CodedOutputStream 155 .computeBytesSize(3, zlibData_); 156 } 157 if (((bitField0_ & 0x00000008) == 0x00000008)) { 158 size += com.google.protobuf.CodedOutputStream 159 .computeBytesSize(4, lzmaData_); 160 } 161 if (((bitField0_ & 0x00000010) == 0x00000010)) { 162 size += com.google.protobuf.CodedOutputStream 163 .computeBytesSize(5, oBSOLETEBzip2Data_); 164 } 165 memoizedSerializedSize = size; 166 return size; 167 } 168 169 private static final long serialVersionUID = 0L; 170 @java.lang.Override 171 protected java.lang.Object writeReplace() 172 throws java.io.ObjectStreamException { 173 return super.writeReplace(); 174 } 175 176 public static crosby.binary.Fileformat.Blob parseFrom( 177 com.google.protobuf.ByteString data) 178 throws com.google.protobuf.InvalidProtocolBufferException { 179 return newBuilder().mergeFrom(data).buildParsed(); 180 } 181 public static crosby.binary.Fileformat.Blob parseFrom( 182 com.google.protobuf.ByteString data, 125 126 private Blob( 127 com.google.protobuf.CodedInputStream input, 183 128 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 184 129 throws com.google.protobuf.InvalidProtocolBufferException { 185 return newBuilder().mergeFrom(data, extensionRegistry) 186 .buildParsed(); 187 } 188 public static crosby.binary.Fileformat.Blob parseFrom(byte[] data) 189 throws com.google.protobuf.InvalidProtocolBufferException { 190 return newBuilder().mergeFrom(data).buildParsed(); 191 } 192 public static crosby.binary.Fileformat.Blob parseFrom( 193 byte[] data, 194 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 195 throws com.google.protobuf.InvalidProtocolBufferException { 196 return newBuilder().mergeFrom(data, extensionRegistry) 197 .buildParsed(); 198 } 199 public static crosby.binary.Fileformat.Blob parseFrom(java.io.InputStream input) 200 throws java.io.IOException { 201 return newBuilder().mergeFrom(input).buildParsed(); 202 } 203 public static crosby.binary.Fileformat.Blob parseFrom( 204 java.io.InputStream input, 205 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 206 throws java.io.IOException { 207 return newBuilder().mergeFrom(input, extensionRegistry) 208 .buildParsed(); 209 } 210 public static crosby.binary.Fileformat.Blob parseDelimitedFrom(java.io.InputStream input) 211 throws java.io.IOException { 212 Builder builder = newBuilder(); 213 if (builder.mergeDelimitedFrom(input)) { 214 return builder.buildParsed(); 215 } else { 216 return null; 217 } 218 } 219 public static crosby.binary.Fileformat.Blob parseDelimitedFrom( 220 java.io.InputStream input, 221 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 222 throws java.io.IOException { 223 Builder builder = newBuilder(); 224 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 225 return builder.buildParsed(); 226 } else { 227 return null; 228 } 229 } 230 public static crosby.binary.Fileformat.Blob parseFrom( 231 com.google.protobuf.CodedInputStream input) 232 throws java.io.IOException { 233 return newBuilder().mergeFrom(input).buildParsed(); 234 } 235 public static crosby.binary.Fileformat.Blob parseFrom( 236 com.google.protobuf.CodedInputStream input, 237 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 238 throws java.io.IOException { 239 return newBuilder().mergeFrom(input, extensionRegistry) 240 .buildParsed(); 241 } 242 243 public static Builder newBuilder() { return Builder.create(); } 244 public Builder newBuilderForType() { return newBuilder(); } 245 public static Builder newBuilder(crosby.binary.Fileformat.Blob prototype) { 246 return newBuilder().mergeFrom(prototype); 247 } 248 public Builder toBuilder() { return newBuilder(this); } 249 250 public static final class Builder extends 251 com.google.protobuf.GeneratedMessageLite.Builder< 252 crosby.binary.Fileformat.Blob, Builder> 253 implements crosby.binary.Fileformat.BlobOrBuilder { 254 // Construct using crosby.binary.Fileformat.Blob.newBuilder() 255 private Builder() { 256 maybeForceBuilderInitialization(); 257 } 258 259 private void maybeForceBuilderInitialization() { 260 } 261 private static Builder create() { 262 return new Builder(); 263 } 264 265 public Builder clear() { 266 super.clear(); 267 raw_ = com.google.protobuf.ByteString.EMPTY; 268 bitField0_ = (bitField0_ & ~0x00000001); 269 rawSize_ = 0; 270 bitField0_ = (bitField0_ & ~0x00000002); 271 zlibData_ = com.google.protobuf.ByteString.EMPTY; 272 bitField0_ = (bitField0_ & ~0x00000004); 273 lzmaData_ = com.google.protobuf.ByteString.EMPTY; 274 bitField0_ = (bitField0_ & ~0x00000008); 275 oBSOLETEBzip2Data_ = com.google.protobuf.ByteString.EMPTY; 276 bitField0_ = (bitField0_ & ~0x00000010); 277 return this; 278 } 279 280 public Builder clone() { 281 return create().mergeFrom(buildPartial()); 282 } 283 284 public crosby.binary.Fileformat.Blob getDefaultInstanceForType() { 285 return crosby.binary.Fileformat.Blob.getDefaultInstance(); 286 } 287 288 public crosby.binary.Fileformat.Blob build() { 289 crosby.binary.Fileformat.Blob result = buildPartial(); 290 if (!result.isInitialized()) { 291 throw newUninitializedMessageException(result); 292 } 293 return result; 294 } 295 296 private crosby.binary.Fileformat.Blob buildParsed() 297 throws com.google.protobuf.InvalidProtocolBufferException { 298 crosby.binary.Fileformat.Blob result = buildPartial(); 299 if (!result.isInitialized()) { 300 throw newUninitializedMessageException( 301 result).asInvalidProtocolBufferException(); 302 } 303 return result; 304 } 305 306 public crosby.binary.Fileformat.Blob buildPartial() { 307 crosby.binary.Fileformat.Blob result = new crosby.binary.Fileformat.Blob(this); 308 int from_bitField0_ = bitField0_; 309 int to_bitField0_ = 0; 310 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 311 to_bitField0_ |= 0x00000001; 312 } 313 result.raw_ = raw_; 314 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 315 to_bitField0_ |= 0x00000002; 316 } 317 result.rawSize_ = rawSize_; 318 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 319 to_bitField0_ |= 0x00000004; 320 } 321 result.zlibData_ = zlibData_; 322 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 323 to_bitField0_ |= 0x00000008; 324 } 325 result.lzmaData_ = lzmaData_; 326 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 327 to_bitField0_ |= 0x00000010; 328 } 329 result.oBSOLETEBzip2Data_ = oBSOLETEBzip2Data_; 330 result.bitField0_ = to_bitField0_; 331 return result; 332 } 333 334 public Builder mergeFrom(crosby.binary.Fileformat.Blob other) { 335 if (other == crosby.binary.Fileformat.Blob.getDefaultInstance()) return this; 336 if (other.hasRaw()) { 337 setRaw(other.getRaw()); 338 } 339 if (other.hasRawSize()) { 340 setRawSize(other.getRawSize()); 341 } 342 if (other.hasZlibData()) { 343 setZlibData(other.getZlibData()); 344 } 345 if (other.hasLzmaData()) { 346 setLzmaData(other.getLzmaData()); 347 } 348 if (other.hasOBSOLETEBzip2Data()) { 349 setOBSOLETEBzip2Data(other.getOBSOLETEBzip2Data()); 350 } 351 return this; 352 } 353 354 public final boolean isInitialized() { 355 return true; 356 } 357 358 public Builder mergeFrom( 359 com.google.protobuf.CodedInputStream input, 360 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 361 throws java.io.IOException { 362 while (true) { 130 initFields(); 131 int mutable_bitField0_ = 0; 132 try { 133 boolean done = false; 134 while (!done) { 363 135 int tag = input.readTag(); 364 136 switch (tag) { 365 137 case 0: 366 367 return this;138 done = true; 139 break; 368 140 default: { 369 if (!parseUnknownField(input, extensionRegistry, tag)) {370 371 return this;141 if (!parseUnknownField(input, 142 extensionRegistry, tag)) { 143 done = true; 372 144 } 373 145 break; … … 400 172 } 401 173 } 402 } 403 174 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 175 throw e.setUnfinishedMessage(this); 176 } catch (java.io.IOException e) { 177 throw new com.google.protobuf.InvalidProtocolBufferException( 178 e.getMessage()).setUnfinishedMessage(this); 179 } finally { 180 makeExtensionsImmutable(); 181 } 182 } 183 public static com.google.protobuf.Parser<Blob> PARSER = 184 new com.google.protobuf.AbstractParser<Blob>() { 185 public Blob parsePartialFrom( 186 com.google.protobuf.CodedInputStream input, 187 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 188 throws com.google.protobuf.InvalidProtocolBufferException { 189 return new Blob(input, extensionRegistry); 190 } 191 }; 192 193 @java.lang.Override 194 public com.google.protobuf.Parser<Blob> getParserForType() { 195 return PARSER; 196 } 197 198 private int bitField0_; 199 // optional bytes raw = 1; 200 public static final int RAW_FIELD_NUMBER = 1; 201 private com.google.protobuf.ByteString raw_; 202 /** 203 * <code>optional bytes raw = 1;</code> 204 * 205 * <pre> 206 * No compression 207 * </pre> 208 */ 209 public boolean hasRaw() { 210 return ((bitField0_ & 0x00000001) == 0x00000001); 211 } 212 /** 213 * <code>optional bytes raw = 1;</code> 214 * 215 * <pre> 216 * No compression 217 * </pre> 218 */ 219 public com.google.protobuf.ByteString getRaw() { 220 return raw_; 221 } 222 223 // optional int32 raw_size = 2; 224 public static final int RAW_SIZE_FIELD_NUMBER = 2; 225 private int rawSize_; 226 /** 227 * <code>optional int32 raw_size = 2;</code> 228 * 229 * <pre> 230 * When compressed, the uncompressed size 231 * </pre> 232 */ 233 public boolean hasRawSize() { 234 return ((bitField0_ & 0x00000002) == 0x00000002); 235 } 236 /** 237 * <code>optional int32 raw_size = 2;</code> 238 * 239 * <pre> 240 * When compressed, the uncompressed size 241 * </pre> 242 */ 243 public int getRawSize() { 244 return rawSize_; 245 } 246 247 // optional bytes zlib_data = 3; 248 public static final int ZLIB_DATA_FIELD_NUMBER = 3; 249 private com.google.protobuf.ByteString zlibData_; 250 /** 251 * <code>optional bytes zlib_data = 3;</code> 252 * 253 * <pre> 254 * Possible compressed versions of the data. 255 * </pre> 256 */ 257 public boolean hasZlibData() { 258 return ((bitField0_ & 0x00000004) == 0x00000004); 259 } 260 /** 261 * <code>optional bytes zlib_data = 3;</code> 262 * 263 * <pre> 264 * Possible compressed versions of the data. 265 * </pre> 266 */ 267 public com.google.protobuf.ByteString getZlibData() { 268 return zlibData_; 269 } 270 271 // optional bytes lzma_data = 4; 272 public static final int LZMA_DATA_FIELD_NUMBER = 4; 273 private com.google.protobuf.ByteString lzmaData_; 274 /** 275 * <code>optional bytes lzma_data = 4;</code> 276 * 277 * <pre> 278 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 279 * </pre> 280 */ 281 public boolean hasLzmaData() { 282 return ((bitField0_ & 0x00000008) == 0x00000008); 283 } 284 /** 285 * <code>optional bytes lzma_data = 4;</code> 286 * 287 * <pre> 288 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 289 * </pre> 290 */ 291 public com.google.protobuf.ByteString getLzmaData() { 292 return lzmaData_; 293 } 294 295 // optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true]; 296 public static final int OBSOLETE_BZIP2_DATA_FIELD_NUMBER = 5; 297 private com.google.protobuf.ByteString oBSOLETEBzip2Data_; 298 /** 299 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 300 * 301 * <pre> 302 * Formerly used for bzip2 compressed data. Depreciated in 2010. 303 * </pre> 304 */ 305 @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() { 306 return ((bitField0_ & 0x00000010) == 0x00000010); 307 } 308 /** 309 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 310 * 311 * <pre> 312 * Formerly used for bzip2 compressed data. Depreciated in 2010. 313 * </pre> 314 */ 315 @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() { 316 return oBSOLETEBzip2Data_; 317 } 318 319 private void initFields() { 320 raw_ = com.google.protobuf.ByteString.EMPTY; 321 rawSize_ = 0; 322 zlibData_ = com.google.protobuf.ByteString.EMPTY; 323 lzmaData_ = com.google.protobuf.ByteString.EMPTY; 324 oBSOLETEBzip2Data_ = com.google.protobuf.ByteString.EMPTY; 325 } 326 private byte memoizedIsInitialized = -1; 327 public final boolean isInitialized() { 328 byte isInitialized = memoizedIsInitialized; 329 if (isInitialized != -1) return isInitialized == 1; 330 331 memoizedIsInitialized = 1; 332 return true; 333 } 334 335 public void writeTo(com.google.protobuf.CodedOutputStream output) 336 throws java.io.IOException { 337 getSerializedSize(); 338 if (((bitField0_ & 0x00000001) == 0x00000001)) { 339 output.writeBytes(1, raw_); 340 } 341 if (((bitField0_ & 0x00000002) == 0x00000002)) { 342 output.writeInt32(2, rawSize_); 343 } 344 if (((bitField0_ & 0x00000004) == 0x00000004)) { 345 output.writeBytes(3, zlibData_); 346 } 347 if (((bitField0_ & 0x00000008) == 0x00000008)) { 348 output.writeBytes(4, lzmaData_); 349 } 350 if (((bitField0_ & 0x00000010) == 0x00000010)) { 351 output.writeBytes(5, oBSOLETEBzip2Data_); 352 } 353 } 354 355 private int memoizedSerializedSize = -1; 356 public int getSerializedSize() { 357 int size = memoizedSerializedSize; 358 if (size != -1) return size; 359 360 size = 0; 361 if (((bitField0_ & 0x00000001) == 0x00000001)) { 362 size += com.google.protobuf.CodedOutputStream 363 .computeBytesSize(1, raw_); 364 } 365 if (((bitField0_ & 0x00000002) == 0x00000002)) { 366 size += com.google.protobuf.CodedOutputStream 367 .computeInt32Size(2, rawSize_); 368 } 369 if (((bitField0_ & 0x00000004) == 0x00000004)) { 370 size += com.google.protobuf.CodedOutputStream 371 .computeBytesSize(3, zlibData_); 372 } 373 if (((bitField0_ & 0x00000008) == 0x00000008)) { 374 size += com.google.protobuf.CodedOutputStream 375 .computeBytesSize(4, lzmaData_); 376 } 377 if (((bitField0_ & 0x00000010) == 0x00000010)) { 378 size += com.google.protobuf.CodedOutputStream 379 .computeBytesSize(5, oBSOLETEBzip2Data_); 380 } 381 memoizedSerializedSize = size; 382 return size; 383 } 384 385 private static final long serialVersionUID = 0L; 386 @java.lang.Override 387 protected java.lang.Object writeReplace() 388 throws java.io.ObjectStreamException { 389 return super.writeReplace(); 390 } 391 392 public static crosby.binary.Fileformat.Blob parseFrom( 393 com.google.protobuf.ByteString data) 394 throws com.google.protobuf.InvalidProtocolBufferException { 395 return PARSER.parseFrom(data); 396 } 397 public static crosby.binary.Fileformat.Blob parseFrom( 398 com.google.protobuf.ByteString data, 399 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 400 throws com.google.protobuf.InvalidProtocolBufferException { 401 return PARSER.parseFrom(data, extensionRegistry); 402 } 403 public static crosby.binary.Fileformat.Blob parseFrom(byte[] data) 404 throws com.google.protobuf.InvalidProtocolBufferException { 405 return PARSER.parseFrom(data); 406 } 407 public static crosby.binary.Fileformat.Blob parseFrom( 408 byte[] data, 409 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 410 throws com.google.protobuf.InvalidProtocolBufferException { 411 return PARSER.parseFrom(data, extensionRegistry); 412 } 413 public static crosby.binary.Fileformat.Blob parseFrom(java.io.InputStream input) 414 throws java.io.IOException { 415 return PARSER.parseFrom(input); 416 } 417 public static crosby.binary.Fileformat.Blob parseFrom( 418 java.io.InputStream input, 419 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 420 throws java.io.IOException { 421 return PARSER.parseFrom(input, extensionRegistry); 422 } 423 public static crosby.binary.Fileformat.Blob parseDelimitedFrom(java.io.InputStream input) 424 throws java.io.IOException { 425 return PARSER.parseDelimitedFrom(input); 426 } 427 public static crosby.binary.Fileformat.Blob parseDelimitedFrom( 428 java.io.InputStream input, 429 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 430 throws java.io.IOException { 431 return PARSER.parseDelimitedFrom(input, extensionRegistry); 432 } 433 public static crosby.binary.Fileformat.Blob parseFrom( 434 com.google.protobuf.CodedInputStream input) 435 throws java.io.IOException { 436 return PARSER.parseFrom(input); 437 } 438 public static crosby.binary.Fileformat.Blob parseFrom( 439 com.google.protobuf.CodedInputStream input, 440 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 441 throws java.io.IOException { 442 return PARSER.parseFrom(input, extensionRegistry); 443 } 444 445 public static Builder newBuilder() { return Builder.create(); } 446 public Builder newBuilderForType() { return newBuilder(); } 447 public static Builder newBuilder(crosby.binary.Fileformat.Blob prototype) { 448 return newBuilder().mergeFrom(prototype); 449 } 450 public Builder toBuilder() { return newBuilder(this); } 451 452 /** 453 * Protobuf type {@code OSMPBF.Blob} 454 */ 455 public static final class Builder extends 456 com.google.protobuf.GeneratedMessageLite.Builder< 457 crosby.binary.Fileformat.Blob, Builder> 458 implements crosby.binary.Fileformat.BlobOrBuilder { 459 // Construct using crosby.binary.Fileformat.Blob.newBuilder() 460 private Builder() { 461 maybeForceBuilderInitialization(); 462 } 463 464 private void maybeForceBuilderInitialization() { 465 } 466 private static Builder create() { 467 return new Builder(); 468 } 469 470 public Builder clear() { 471 super.clear(); 472 raw_ = com.google.protobuf.ByteString.EMPTY; 473 bitField0_ = (bitField0_ & ~0x00000001); 474 rawSize_ = 0; 475 bitField0_ = (bitField0_ & ~0x00000002); 476 zlibData_ = com.google.protobuf.ByteString.EMPTY; 477 bitField0_ = (bitField0_ & ~0x00000004); 478 lzmaData_ = com.google.protobuf.ByteString.EMPTY; 479 bitField0_ = (bitField0_ & ~0x00000008); 480 oBSOLETEBzip2Data_ = com.google.protobuf.ByteString.EMPTY; 481 bitField0_ = (bitField0_ & ~0x00000010); 482 return this; 483 } 484 485 public Builder clone() { 486 return create().mergeFrom(buildPartial()); 487 } 488 489 public crosby.binary.Fileformat.Blob getDefaultInstanceForType() { 490 return crosby.binary.Fileformat.Blob.getDefaultInstance(); 491 } 492 493 public crosby.binary.Fileformat.Blob build() { 494 crosby.binary.Fileformat.Blob result = buildPartial(); 495 if (!result.isInitialized()) { 496 throw newUninitializedMessageException(result); 497 } 498 return result; 499 } 500 501 public crosby.binary.Fileformat.Blob buildPartial() { 502 crosby.binary.Fileformat.Blob result = new crosby.binary.Fileformat.Blob(this); 503 int from_bitField0_ = bitField0_; 504 int to_bitField0_ = 0; 505 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 506 to_bitField0_ |= 0x00000001; 507 } 508 result.raw_ = raw_; 509 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 510 to_bitField0_ |= 0x00000002; 511 } 512 result.rawSize_ = rawSize_; 513 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 514 to_bitField0_ |= 0x00000004; 515 } 516 result.zlibData_ = zlibData_; 517 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 518 to_bitField0_ |= 0x00000008; 519 } 520 result.lzmaData_ = lzmaData_; 521 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 522 to_bitField0_ |= 0x00000010; 523 } 524 result.oBSOLETEBzip2Data_ = oBSOLETEBzip2Data_; 525 result.bitField0_ = to_bitField0_; 526 return result; 527 } 528 529 public Builder mergeFrom(crosby.binary.Fileformat.Blob other) { 530 if (other == crosby.binary.Fileformat.Blob.getDefaultInstance()) return this; 531 if (other.hasRaw()) { 532 setRaw(other.getRaw()); 533 } 534 if (other.hasRawSize()) { 535 setRawSize(other.getRawSize()); 536 } 537 if (other.hasZlibData()) { 538 setZlibData(other.getZlibData()); 539 } 540 if (other.hasLzmaData()) { 541 setLzmaData(other.getLzmaData()); 542 } 543 if (other.hasOBSOLETEBzip2Data()) { 544 setOBSOLETEBzip2Data(other.getOBSOLETEBzip2Data()); 545 } 546 return this; 547 } 548 549 public final boolean isInitialized() { 550 return true; 551 } 552 553 public Builder mergeFrom( 554 com.google.protobuf.CodedInputStream input, 555 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 556 throws java.io.IOException { 557 crosby.binary.Fileformat.Blob parsedMessage = null; 558 try { 559 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 560 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 561 parsedMessage = (crosby.binary.Fileformat.Blob) e.getUnfinishedMessage(); 562 throw e; 563 } finally { 564 if (parsedMessage != null) { 565 mergeFrom(parsedMessage); 566 } 567 } 568 return this; 569 } 404 570 private int bitField0_; 405 571 406 572 // optional bytes raw = 1; 407 573 private com.google.protobuf.ByteString raw_ = com.google.protobuf.ByteString.EMPTY; 574 /** 575 * <code>optional bytes raw = 1;</code> 576 * 577 * <pre> 578 * No compression 579 * </pre> 580 */ 408 581 public boolean hasRaw() { 409 582 return ((bitField0_ & 0x00000001) == 0x00000001); 410 583 } 584 /** 585 * <code>optional bytes raw = 1;</code> 586 * 587 * <pre> 588 * No compression 589 * </pre> 590 */ 411 591 public com.google.protobuf.ByteString getRaw() { 412 592 return raw_; 413 593 } 594 /** 595 * <code>optional bytes raw = 1;</code> 596 * 597 * <pre> 598 * No compression 599 * </pre> 600 */ 414 601 public Builder setRaw(com.google.protobuf.ByteString value) { 415 602 if (value == null) { … … 421 608 return this; 422 609 } 610 /** 611 * <code>optional bytes raw = 1;</code> 612 * 613 * <pre> 614 * No compression 615 * </pre> 616 */ 423 617 public Builder clearRaw() { 424 618 bitField0_ = (bitField0_ & ~0x00000001); … … 427 621 return this; 428 622 } 429 623 430 624 // optional int32 raw_size = 2; 431 625 private int rawSize_ ; 626 /** 627 * <code>optional int32 raw_size = 2;</code> 628 * 629 * <pre> 630 * When compressed, the uncompressed size 631 * </pre> 632 */ 432 633 public boolean hasRawSize() { 433 634 return ((bitField0_ & 0x00000002) == 0x00000002); 434 635 } 636 /** 637 * <code>optional int32 raw_size = 2;</code> 638 * 639 * <pre> 640 * When compressed, the uncompressed size 641 * </pre> 642 */ 435 643 public int getRawSize() { 436 644 return rawSize_; 437 645 } 646 /** 647 * <code>optional int32 raw_size = 2;</code> 648 * 649 * <pre> 650 * When compressed, the uncompressed size 651 * </pre> 652 */ 438 653 public Builder setRawSize(int value) { 439 654 bitField0_ |= 0x00000002; … … 442 657 return this; 443 658 } 659 /** 660 * <code>optional int32 raw_size = 2;</code> 661 * 662 * <pre> 663 * When compressed, the uncompressed size 664 * </pre> 665 */ 444 666 public Builder clearRawSize() { 445 667 bitField0_ = (bitField0_ & ~0x00000002); … … 448 670 return this; 449 671 } 450 672 451 673 // optional bytes zlib_data = 3; 452 674 private com.google.protobuf.ByteString zlibData_ = com.google.protobuf.ByteString.EMPTY; 675 /** 676 * <code>optional bytes zlib_data = 3;</code> 677 * 678 * <pre> 679 * Possible compressed versions of the data. 680 * </pre> 681 */ 453 682 public boolean hasZlibData() { 454 683 return ((bitField0_ & 0x00000004) == 0x00000004); 455 684 } 685 /** 686 * <code>optional bytes zlib_data = 3;</code> 687 * 688 * <pre> 689 * Possible compressed versions of the data. 690 * </pre> 691 */ 456 692 public com.google.protobuf.ByteString getZlibData() { 457 693 return zlibData_; 458 694 } 695 /** 696 * <code>optional bytes zlib_data = 3;</code> 697 * 698 * <pre> 699 * Possible compressed versions of the data. 700 * </pre> 701 */ 459 702 public Builder setZlibData(com.google.protobuf.ByteString value) { 460 703 if (value == null) { … … 466 709 return this; 467 710 } 711 /** 712 * <code>optional bytes zlib_data = 3;</code> 713 * 714 * <pre> 715 * Possible compressed versions of the data. 716 * </pre> 717 */ 468 718 public Builder clearZlibData() { 469 719 bitField0_ = (bitField0_ & ~0x00000004); … … 472 722 return this; 473 723 } 474 724 475 725 // optional bytes lzma_data = 4; 476 726 private com.google.protobuf.ByteString lzmaData_ = com.google.protobuf.ByteString.EMPTY; 727 /** 728 * <code>optional bytes lzma_data = 4;</code> 729 * 730 * <pre> 731 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 732 * </pre> 733 */ 477 734 public boolean hasLzmaData() { 478 735 return ((bitField0_ & 0x00000008) == 0x00000008); 479 736 } 737 /** 738 * <code>optional bytes lzma_data = 4;</code> 739 * 740 * <pre> 741 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 742 * </pre> 743 */ 480 744 public com.google.protobuf.ByteString getLzmaData() { 481 745 return lzmaData_; 482 746 } 747 /** 748 * <code>optional bytes lzma_data = 4;</code> 749 * 750 * <pre> 751 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 752 * </pre> 753 */ 483 754 public Builder setLzmaData(com.google.protobuf.ByteString value) { 484 755 if (value == null) { … … 490 761 return this; 491 762 } 763 /** 764 * <code>optional bytes lzma_data = 4;</code> 765 * 766 * <pre> 767 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 768 * </pre> 769 */ 492 770 public Builder clearLzmaData() { 493 771 bitField0_ = (bitField0_ & ~0x00000008); … … 496 774 return this; 497 775 } 498 776 499 777 // optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true]; 500 778 private com.google.protobuf.ByteString oBSOLETEBzip2Data_ = com.google.protobuf.ByteString.EMPTY; 779 /** 780 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 781 * 782 * <pre> 783 * Formerly used for bzip2 compressed data. Depreciated in 2010. 784 * </pre> 785 */ 501 786 @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() { 502 787 return ((bitField0_ & 0x00000010) == 0x00000010); 503 788 } 789 /** 790 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 791 * 792 * <pre> 793 * Formerly used for bzip2 compressed data. Depreciated in 2010. 794 * </pre> 795 */ 504 796 @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() { 505 797 return oBSOLETEBzip2Data_; 506 798 } 799 /** 800 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 801 * 802 * <pre> 803 * Formerly used for bzip2 compressed data. Depreciated in 2010. 804 * </pre> 805 */ 507 806 @java.lang.Deprecated public Builder setOBSOLETEBzip2Data(com.google.protobuf.ByteString value) { 508 807 if (value == null) { … … 514 813 return this; 515 814 } 815 /** 816 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 817 * 818 * <pre> 819 * Formerly used for bzip2 compressed data. Depreciated in 2010. 820 * </pre> 821 */ 516 822 @java.lang.Deprecated public Builder clearOBSOLETEBzip2Data() { 517 823 bitField0_ = (bitField0_ & ~0x00000010); … … 520 826 return this; 521 827 } 522 828 523 829 // @@protoc_insertion_point(builder_scope:OSMPBF.Blob) 524 830 } 525 831 526 832 static { 527 833 defaultInstance = new Blob(true); 528 834 defaultInstance.initFields(); 529 835 } 530 836 531 837 // @@protoc_insertion_point(class_scope:OSMPBF.Blob) 532 838 } 533 839 534 840 public interface BlobHeaderOrBuilder 535 841 extends com.google.protobuf.MessageLiteOrBuilder { 536 842 537 843 // required string type = 1; 844 /** 845 * <code>required string type = 1;</code> 846 */ 538 847 boolean hasType(); 539 String getType(); 540 848 /** 849 * <code>required string type = 1;</code> 850 */ 851 java.lang.String getType(); 852 /** 853 * <code>required string type = 1;</code> 854 */ 855 com.google.protobuf.ByteString 856 getTypeBytes(); 857 541 858 // optional bytes indexdata = 2; 859 /** 860 * <code>optional bytes indexdata = 2;</code> 861 */ 542 862 boolean hasIndexdata(); 863 /** 864 * <code>optional bytes indexdata = 2;</code> 865 */ 543 866 com.google.protobuf.ByteString getIndexdata(); 544 867 545 868 // required int32 datasize = 3; 869 /** 870 * <code>required int32 datasize = 3;</code> 871 */ 546 872 boolean hasDatasize(); 873 /** 874 * <code>required int32 datasize = 3;</code> 875 */ 547 876 int getDatasize(); 548 877 } 878 /** 879 * Protobuf type {@code OSMPBF.BlobHeader} 880 */ 549 881 public static final class BlobHeader extends 550 882 com.google.protobuf.GeneratedMessageLite 551 883 implements BlobHeaderOrBuilder { 552 884 // Use BlobHeader.newBuilder() to construct. 553 private BlobHeader( Builder builder) {885 private BlobHeader(com.google.protobuf.GeneratedMessageLite.Builder builder) { 554 886 super(builder); 887 555 888 } 556 889 private BlobHeader(boolean noInit) {} 557 890 558 891 private static final BlobHeader defaultInstance; 559 892 public static BlobHeader getDefaultInstance() { 560 893 return defaultInstance; 561 894 } 562 895 563 896 public BlobHeader getDefaultInstanceForType() { 564 897 return defaultInstance; 565 898 } 566 567 private int bitField0_; 568 // required string type = 1; 569 public static final int TYPE_FIELD_NUMBER = 1; 570 private java.lang.Object type_; 571 public boolean hasType() { 572 return ((bitField0_ & 0x00000001) == 0x00000001); 573 } 574 public String getType() { 575 java.lang.Object ref = type_; 576 if (ref instanceof String) { 577 return (String) ref; 578 } else { 579 com.google.protobuf.ByteString bs = 580 (com.google.protobuf.ByteString) ref; 581 String s = bs.toStringUtf8(); 582 if (com.google.protobuf.Internal.isValidUtf8(bs)) { 583 type_ = s; 584 } 585 return s; 586 } 587 } 588 private com.google.protobuf.ByteString getTypeBytes() { 589 java.lang.Object ref = type_; 590 if (ref instanceof String) { 591 com.google.protobuf.ByteString b = 592 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 593 type_ = b; 594 return b; 595 } else { 596 return (com.google.protobuf.ByteString) ref; 597 } 598 } 599 600 // optional bytes indexdata = 2; 601 public static final int INDEXDATA_FIELD_NUMBER = 2; 602 private com.google.protobuf.ByteString indexdata_; 603 public boolean hasIndexdata() { 604 return ((bitField0_ & 0x00000002) == 0x00000002); 605 } 606 public com.google.protobuf.ByteString getIndexdata() { 607 return indexdata_; 608 } 609 610 // required int32 datasize = 3; 611 public static final int DATASIZE_FIELD_NUMBER = 3; 612 private int datasize_; 613 public boolean hasDatasize() { 614 return ((bitField0_ & 0x00000004) == 0x00000004); 615 } 616 public int getDatasize() { 617 return datasize_; 618 } 619 620 private void initFields() { 621 type_ = ""; 622 indexdata_ = com.google.protobuf.ByteString.EMPTY; 623 datasize_ = 0; 624 } 625 private byte memoizedIsInitialized = -1; 626 public final boolean isInitialized() { 627 byte isInitialized = memoizedIsInitialized; 628 if (isInitialized != -1) return isInitialized == 1; 629 630 if (!hasType()) { 631 memoizedIsInitialized = 0; 632 return false; 633 } 634 if (!hasDatasize()) { 635 memoizedIsInitialized = 0; 636 return false; 637 } 638 memoizedIsInitialized = 1; 639 return true; 640 } 641 642 public void writeTo(com.google.protobuf.CodedOutputStream output) 643 throws java.io.IOException { 644 getSerializedSize(); 645 if (((bitField0_ & 0x00000001) == 0x00000001)) { 646 output.writeBytes(1, getTypeBytes()); 647 } 648 if (((bitField0_ & 0x00000002) == 0x00000002)) { 649 output.writeBytes(2, indexdata_); 650 } 651 if (((bitField0_ & 0x00000004) == 0x00000004)) { 652 output.writeInt32(3, datasize_); 653 } 654 } 655 656 private int memoizedSerializedSize = -1; 657 public int getSerializedSize() { 658 int size = memoizedSerializedSize; 659 if (size != -1) return size; 660 661 size = 0; 662 if (((bitField0_ & 0x00000001) == 0x00000001)) { 663 size += com.google.protobuf.CodedOutputStream 664 .computeBytesSize(1, getTypeBytes()); 665 } 666 if (((bitField0_ & 0x00000002) == 0x00000002)) { 667 size += com.google.protobuf.CodedOutputStream 668 .computeBytesSize(2, indexdata_); 669 } 670 if (((bitField0_ & 0x00000004) == 0x00000004)) { 671 size += com.google.protobuf.CodedOutputStream 672 .computeInt32Size(3, datasize_); 673 } 674 memoizedSerializedSize = size; 675 return size; 676 } 677 678 private static final long serialVersionUID = 0L; 679 @java.lang.Override 680 protected java.lang.Object writeReplace() 681 throws java.io.ObjectStreamException { 682 return super.writeReplace(); 683 } 684 685 public static crosby.binary.Fileformat.BlobHeader parseFrom( 686 com.google.protobuf.ByteString data) 687 throws com.google.protobuf.InvalidProtocolBufferException { 688 return newBuilder().mergeFrom(data).buildParsed(); 689 } 690 public static crosby.binary.Fileformat.BlobHeader parseFrom( 691 com.google.protobuf.ByteString data, 899 900 private BlobHeader( 901 com.google.protobuf.CodedInputStream input, 692 902 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 693 903 throws com.google.protobuf.InvalidProtocolBufferException { 694 return newBuilder().mergeFrom(data, extensionRegistry) 695 .buildParsed(); 696 } 697 public static crosby.binary.Fileformat.BlobHeader parseFrom(byte[] data) 698 throws com.google.protobuf.InvalidProtocolBufferException { 699 return newBuilder().mergeFrom(data).buildParsed(); 700 } 701 public static crosby.binary.Fileformat.BlobHeader parseFrom( 702 byte[] data, 703 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 704 throws com.google.protobuf.InvalidProtocolBufferException { 705 return newBuilder().mergeFrom(data, extensionRegistry) 706 .buildParsed(); 707 } 708 public static crosby.binary.Fileformat.BlobHeader parseFrom(java.io.InputStream input) 709 throws java.io.IOException { 710 return newBuilder().mergeFrom(input).buildParsed(); 711 } 712 public static crosby.binary.Fileformat.BlobHeader parseFrom( 713 java.io.InputStream input, 714 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 715 throws java.io.IOException { 716 return newBuilder().mergeFrom(input, extensionRegistry) 717 .buildParsed(); 718 } 719 public static crosby.binary.Fileformat.BlobHeader parseDelimitedFrom(java.io.InputStream input) 720 throws java.io.IOException { 721 Builder builder = newBuilder(); 722 if (builder.mergeDelimitedFrom(input)) { 723 return builder.buildParsed(); 724 } else { 725 return null; 726 } 727 } 728 public static crosby.binary.Fileformat.BlobHeader parseDelimitedFrom( 729 java.io.InputStream input, 730 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 731 throws java.io.IOException { 732 Builder builder = newBuilder(); 733 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 734 return builder.buildParsed(); 735 } else { 736 return null; 737 } 738 } 739 public static crosby.binary.Fileformat.BlobHeader parseFrom( 740 com.google.protobuf.CodedInputStream input) 741 throws java.io.IOException { 742 return newBuilder().mergeFrom(input).buildParsed(); 743 } 744 public static crosby.binary.Fileformat.BlobHeader parseFrom( 745 com.google.protobuf.CodedInputStream input, 746 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 747 throws java.io.IOException { 748 return newBuilder().mergeFrom(input, extensionRegistry) 749 .buildParsed(); 750 } 751 752 public static Builder newBuilder() { return Builder.create(); } 753 public Builder newBuilderForType() { return newBuilder(); } 754 public static Builder newBuilder(crosby.binary.Fileformat.BlobHeader prototype) { 755 return newBuilder().mergeFrom(prototype); 756 } 757 public Builder toBuilder() { return newBuilder(this); } 758 759 public static final class Builder extends 760 com.google.protobuf.GeneratedMessageLite.Builder< 761 crosby.binary.Fileformat.BlobHeader, Builder> 762 implements crosby.binary.Fileformat.BlobHeaderOrBuilder { 763 // Construct using crosby.binary.Fileformat.BlobHeader.newBuilder() 764 private Builder() { 765 maybeForceBuilderInitialization(); 766 } 767 768 private void maybeForceBuilderInitialization() { 769 } 770 private static Builder create() { 771 return new Builder(); 772 } 773 774 public Builder clear() { 775 super.clear(); 776 type_ = ""; 777 bitField0_ = (bitField0_ & ~0x00000001); 778 indexdata_ = com.google.protobuf.ByteString.EMPTY; 779 bitField0_ = (bitField0_ & ~0x00000002); 780 datasize_ = 0; 781 bitField0_ = (bitField0_ & ~0x00000004); 782 return this; 783 } 784 785 public Builder clone() { 786 return create().mergeFrom(buildPartial()); 787 } 788 789 public crosby.binary.Fileformat.BlobHeader getDefaultInstanceForType() { 790 return crosby.binary.Fileformat.BlobHeader.getDefaultInstance(); 791 } 792 793 public crosby.binary.Fileformat.BlobHeader build() { 794 crosby.binary.Fileformat.BlobHeader result = buildPartial(); 795 if (!result.isInitialized()) { 796 throw newUninitializedMessageException(result); 797 } 798 return result; 799 } 800 801 private crosby.binary.Fileformat.BlobHeader buildParsed() 802 throws com.google.protobuf.InvalidProtocolBufferException { 803 crosby.binary.Fileformat.BlobHeader result = buildPartial(); 804 if (!result.isInitialized()) { 805 throw newUninitializedMessageException( 806 result).asInvalidProtocolBufferException(); 807 } 808 return result; 809 } 810 811 public crosby.binary.Fileformat.BlobHeader buildPartial() { 812 crosby.binary.Fileformat.BlobHeader result = new crosby.binary.Fileformat.BlobHeader(this); 813 int from_bitField0_ = bitField0_; 814 int to_bitField0_ = 0; 815 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 816 to_bitField0_ |= 0x00000001; 817 } 818 result.type_ = type_; 819 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 820 to_bitField0_ |= 0x00000002; 821 } 822 result.indexdata_ = indexdata_; 823 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 824 to_bitField0_ |= 0x00000004; 825 } 826 result.datasize_ = datasize_; 827 result.bitField0_ = to_bitField0_; 828 return result; 829 } 830 831 public Builder mergeFrom(crosby.binary.Fileformat.BlobHeader other) { 832 if (other == crosby.binary.Fileformat.BlobHeader.getDefaultInstance()) return this; 833 if (other.hasType()) { 834 setType(other.getType()); 835 } 836 if (other.hasIndexdata()) { 837 setIndexdata(other.getIndexdata()); 838 } 839 if (other.hasDatasize()) { 840 setDatasize(other.getDatasize()); 841 } 842 return this; 843 } 844 845 public final boolean isInitialized() { 846 if (!hasType()) { 847 848 return false; 849 } 850 if (!hasDatasize()) { 851 852 return false; 853 } 854 return true; 855 } 856 857 public Builder mergeFrom( 858 com.google.protobuf.CodedInputStream input, 859 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 860 throws java.io.IOException { 861 while (true) { 904 initFields(); 905 int mutable_bitField0_ = 0; 906 try { 907 boolean done = false; 908 while (!done) { 862 909 int tag = input.readTag(); 863 910 switch (tag) { 864 911 case 0: 865 866 return this;912 done = true; 913 break; 867 914 default: { 868 if (!parseUnknownField(input, extensionRegistry, tag)) {869 870 return this;915 if (!parseUnknownField(input, 916 extensionRegistry, tag)) { 917 done = true; 871 918 } 872 919 break; … … 889 936 } 890 937 } 891 } 892 938 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 939 throw e.setUnfinishedMessage(this); 940 } catch (java.io.IOException e) { 941 throw new com.google.protobuf.InvalidProtocolBufferException( 942 e.getMessage()).setUnfinishedMessage(this); 943 } finally { 944 makeExtensionsImmutable(); 945 } 946 } 947 public static com.google.protobuf.Parser<BlobHeader> PARSER = 948 new com.google.protobuf.AbstractParser<BlobHeader>() { 949 public BlobHeader parsePartialFrom( 950 com.google.protobuf.CodedInputStream input, 951 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 952 throws com.google.protobuf.InvalidProtocolBufferException { 953 return new BlobHeader(input, extensionRegistry); 954 } 955 }; 956 957 @java.lang.Override 958 public com.google.protobuf.Parser<BlobHeader> getParserForType() { 959 return PARSER; 960 } 961 962 private int bitField0_; 963 // required string type = 1; 964 public static final int TYPE_FIELD_NUMBER = 1; 965 private java.lang.Object type_; 966 /** 967 * <code>required string type = 1;</code> 968 */ 969 public boolean hasType() { 970 return ((bitField0_ & 0x00000001) == 0x00000001); 971 } 972 /** 973 * <code>required string type = 1;</code> 974 */ 975 public java.lang.String getType() { 976 java.lang.Object ref = type_; 977 if (ref instanceof java.lang.String) { 978 return (java.lang.String) ref; 979 } else { 980 com.google.protobuf.ByteString bs = 981 (com.google.protobuf.ByteString) ref; 982 java.lang.String s = bs.toStringUtf8(); 983 if (bs.isValidUtf8()) { 984 type_ = s; 985 } 986 return s; 987 } 988 } 989 /** 990 * <code>required string type = 1;</code> 991 */ 992 public com.google.protobuf.ByteString 993 getTypeBytes() { 994 java.lang.Object ref = type_; 995 if (ref instanceof java.lang.String) { 996 com.google.protobuf.ByteString b = 997 com.google.protobuf.ByteString.copyFromUtf8( 998 (java.lang.String) ref); 999 type_ = b; 1000 return b; 1001 } else { 1002 return (com.google.protobuf.ByteString) ref; 1003 } 1004 } 1005 1006 // optional bytes indexdata = 2; 1007 public static final int INDEXDATA_FIELD_NUMBER = 2; 1008 private com.google.protobuf.ByteString indexdata_; 1009 /** 1010 * <code>optional bytes indexdata = 2;</code> 1011 */ 1012 public boolean hasIndexdata() { 1013 return ((bitField0_ & 0x00000002) == 0x00000002); 1014 } 1015 /** 1016 * <code>optional bytes indexdata = 2;</code> 1017 */ 1018 public com.google.protobuf.ByteString getIndexdata() { 1019 return indexdata_; 1020 } 1021 1022 // required int32 datasize = 3; 1023 public static final int DATASIZE_FIELD_NUMBER = 3; 1024 private int datasize_; 1025 /** 1026 * <code>required int32 datasize = 3;</code> 1027 */ 1028 public boolean hasDatasize() { 1029 return ((bitField0_ & 0x00000004) == 0x00000004); 1030 } 1031 /** 1032 * <code>required int32 datasize = 3;</code> 1033 */ 1034 public int getDatasize() { 1035 return datasize_; 1036 } 1037 1038 private void initFields() { 1039 type_ = ""; 1040 indexdata_ = com.google.protobuf.ByteString.EMPTY; 1041 datasize_ = 0; 1042 } 1043 private byte memoizedIsInitialized = -1; 1044 public final boolean isInitialized() { 1045 byte isInitialized = memoizedIsInitialized; 1046 if (isInitialized != -1) return isInitialized == 1; 1047 1048 if (!hasType()) { 1049 memoizedIsInitialized = 0; 1050 return false; 1051 } 1052 if (!hasDatasize()) { 1053 memoizedIsInitialized = 0; 1054 return false; 1055 } 1056 memoizedIsInitialized = 1; 1057 return true; 1058 } 1059 1060 public void writeTo(com.google.protobuf.CodedOutputStream output) 1061 throws java.io.IOException { 1062 getSerializedSize(); 1063 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1064 output.writeBytes(1, getTypeBytes()); 1065 } 1066 if (((bitField0_ & 0x00000002) == 0x00000002)) { 1067 output.writeBytes(2, indexdata_); 1068 } 1069 if (((bitField0_ & 0x00000004) == 0x00000004)) { 1070 output.writeInt32(3, datasize_); 1071 } 1072 } 1073 1074 private int memoizedSerializedSize = -1; 1075 public int getSerializedSize() { 1076 int size = memoizedSerializedSize; 1077 if (size != -1) return size; 1078 1079 size = 0; 1080 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1081 size += com.google.protobuf.CodedOutputStream 1082 .computeBytesSize(1, getTypeBytes()); 1083 } 1084 if (((bitField0_ & 0x00000002) == 0x00000002)) { 1085 size += com.google.protobuf.CodedOutputStream 1086 .computeBytesSize(2, indexdata_); 1087 } 1088 if (((bitField0_ & 0x00000004) == 0x00000004)) { 1089 size += com.google.protobuf.CodedOutputStream 1090 .computeInt32Size(3, datasize_); 1091 } 1092 memoizedSerializedSize = size; 1093 return size; 1094 } 1095 1096 private static final long serialVersionUID = 0L; 1097 @java.lang.Override 1098 protected java.lang.Object writeReplace() 1099 throws java.io.ObjectStreamException { 1100 return super.writeReplace(); 1101 } 1102 1103 public static crosby.binary.Fileformat.BlobHeader parseFrom( 1104 com.google.protobuf.ByteString data) 1105 throws com.google.protobuf.InvalidProtocolBufferException { 1106 return PARSER.parseFrom(data); 1107 } 1108 public static crosby.binary.Fileformat.BlobHeader parseFrom( 1109 com.google.protobuf.ByteString data, 1110 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1111 throws com.google.protobuf.InvalidProtocolBufferException { 1112 return PARSER.parseFrom(data, extensionRegistry); 1113 } 1114 public static crosby.binary.Fileformat.BlobHeader parseFrom(byte[] data) 1115 throws com.google.protobuf.InvalidProtocolBufferException { 1116 return PARSER.parseFrom(data); 1117 } 1118 public static crosby.binary.Fileformat.BlobHeader parseFrom( 1119 byte[] data, 1120 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1121 throws com.google.protobuf.InvalidProtocolBufferException { 1122 return PARSER.parseFrom(data, extensionRegistry); 1123 } 1124 public static crosby.binary.Fileformat.BlobHeader parseFrom(java.io.InputStream input) 1125 throws java.io.IOException { 1126 return PARSER.parseFrom(input); 1127 } 1128 public static crosby.binary.Fileformat.BlobHeader parseFrom( 1129 java.io.InputStream input, 1130 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1131 throws java.io.IOException { 1132 return PARSER.parseFrom(input, extensionRegistry); 1133 } 1134 public static crosby.binary.Fileformat.BlobHeader parseDelimitedFrom(java.io.InputStream input) 1135 throws java.io.IOException { 1136 return PARSER.parseDelimitedFrom(input); 1137 } 1138 public static crosby.binary.Fileformat.BlobHeader parseDelimitedFrom( 1139 java.io.InputStream input, 1140 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1141 throws java.io.IOException { 1142 return PARSER.parseDelimitedFrom(input, extensionRegistry); 1143 } 1144 public static crosby.binary.Fileformat.BlobHeader parseFrom( 1145 com.google.protobuf.CodedInputStream input) 1146 throws java.io.IOException { 1147 return PARSER.parseFrom(input); 1148 } 1149 public static crosby.binary.Fileformat.BlobHeader parseFrom( 1150 com.google.protobuf.CodedInputStream input, 1151 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1152 throws java.io.IOException { 1153 return PARSER.parseFrom(input, extensionRegistry); 1154 } 1155 1156 public static Builder newBuilder() { return Builder.create(); } 1157 public Builder newBuilderForType() { return newBuilder(); } 1158 public static Builder newBuilder(crosby.binary.Fileformat.BlobHeader prototype) { 1159 return newBuilder().mergeFrom(prototype); 1160 } 1161 public Builder toBuilder() { return newBuilder(this); } 1162 1163 /** 1164 * Protobuf type {@code OSMPBF.BlobHeader} 1165 */ 1166 public static final class Builder extends 1167 com.google.protobuf.GeneratedMessageLite.Builder< 1168 crosby.binary.Fileformat.BlobHeader, Builder> 1169 implements crosby.binary.Fileformat.BlobHeaderOrBuilder { 1170 // Construct using crosby.binary.Fileformat.BlobHeader.newBuilder() 1171 private Builder() { 1172 maybeForceBuilderInitialization(); 1173 } 1174 1175 private void maybeForceBuilderInitialization() { 1176 } 1177 private static Builder create() { 1178 return new Builder(); 1179 } 1180 1181 public Builder clear() { 1182 super.clear(); 1183 type_ = ""; 1184 bitField0_ = (bitField0_ & ~0x00000001); 1185 indexdata_ = com.google.protobuf.ByteString.EMPTY; 1186 bitField0_ = (bitField0_ & ~0x00000002); 1187 datasize_ = 0; 1188 bitField0_ = (bitField0_ & ~0x00000004); 1189 return this; 1190 } 1191 1192 public Builder clone() { 1193 return create().mergeFrom(buildPartial()); 1194 } 1195 1196 public crosby.binary.Fileformat.BlobHeader getDefaultInstanceForType() { 1197 return crosby.binary.Fileformat.BlobHeader.getDefaultInstance(); 1198 } 1199 1200 public crosby.binary.Fileformat.BlobHeader build() { 1201 crosby.binary.Fileformat.BlobHeader result = buildPartial(); 1202 if (!result.isInitialized()) { 1203 throw newUninitializedMessageException(result); 1204 } 1205 return result; 1206 } 1207 1208 public crosby.binary.Fileformat.BlobHeader buildPartial() { 1209 crosby.binary.Fileformat.BlobHeader result = new crosby.binary.Fileformat.BlobHeader(this); 1210 int from_bitField0_ = bitField0_; 1211 int to_bitField0_ = 0; 1212 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 1213 to_bitField0_ |= 0x00000001; 1214 } 1215 result.type_ = type_; 1216 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 1217 to_bitField0_ |= 0x00000002; 1218 } 1219 result.indexdata_ = indexdata_; 1220 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 1221 to_bitField0_ |= 0x00000004; 1222 } 1223 result.datasize_ = datasize_; 1224 result.bitField0_ = to_bitField0_; 1225 return result; 1226 } 1227 1228 public Builder mergeFrom(crosby.binary.Fileformat.BlobHeader other) { 1229 if (other == crosby.binary.Fileformat.BlobHeader.getDefaultInstance()) return this; 1230 if (other.hasType()) { 1231 bitField0_ |= 0x00000001; 1232 type_ = other.type_; 1233 1234 } 1235 if (other.hasIndexdata()) { 1236 setIndexdata(other.getIndexdata()); 1237 } 1238 if (other.hasDatasize()) { 1239 setDatasize(other.getDatasize()); 1240 } 1241 return this; 1242 } 1243 1244 public final boolean isInitialized() { 1245 if (!hasType()) { 1246 1247 return false; 1248 } 1249 if (!hasDatasize()) { 1250 1251 return false; 1252 } 1253 return true; 1254 } 1255 1256 public Builder mergeFrom( 1257 com.google.protobuf.CodedInputStream input, 1258 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1259 throws java.io.IOException { 1260 crosby.binary.Fileformat.BlobHeader parsedMessage = null; 1261 try { 1262 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 1263 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1264 parsedMessage = (crosby.binary.Fileformat.BlobHeader) e.getUnfinishedMessage(); 1265 throw e; 1266 } finally { 1267 if (parsedMessage != null) { 1268 mergeFrom(parsedMessage); 1269 } 1270 } 1271 return this; 1272 } 893 1273 private int bitField0_; 894 1274 895 1275 // required string type = 1; 896 1276 private java.lang.Object type_ = ""; 1277 /** 1278 * <code>required string type = 1;</code> 1279 */ 897 1280 public boolean hasType() { 898 1281 return ((bitField0_ & 0x00000001) == 0x00000001); 899 1282 } 900 public String getType() { 1283 /** 1284 * <code>required string type = 1;</code> 1285 */ 1286 public java.lang.String getType() { 901 1287 java.lang.Object ref = type_; 902 if (!(ref instanceof String)) { 903 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 1288 if (!(ref instanceof java.lang.String)) { 1289 java.lang.String s = ((com.google.protobuf.ByteString) ref) 1290 .toStringUtf8(); 904 1291 type_ = s; 905 1292 return s; 906 1293 } else { 907 return (String) ref; 908 } 909 } 910 public Builder setType(String value) { 1294 return (java.lang.String) ref; 1295 } 1296 } 1297 /** 1298 * <code>required string type = 1;</code> 1299 */ 1300 public com.google.protobuf.ByteString 1301 getTypeBytes() { 1302 java.lang.Object ref = type_; 1303 if (ref instanceof String) { 1304 com.google.protobuf.ByteString b = 1305 com.google.protobuf.ByteString.copyFromUtf8( 1306 (java.lang.String) ref); 1307 type_ = b; 1308 return b; 1309 } else { 1310 return (com.google.protobuf.ByteString) ref; 1311 } 1312 } 1313 /** 1314 * <code>required string type = 1;</code> 1315 */ 1316 public Builder setType( 1317 java.lang.String value) { 911 1318 if (value == null) { 912 1319 throw new NullPointerException(); … … 917 1324 return this; 918 1325 } 1326 /** 1327 * <code>required string type = 1;</code> 1328 */ 919 1329 public Builder clearType() { 920 1330 bitField0_ = (bitField0_ & ~0x00000001); … … 923 1333 return this; 924 1334 } 925 void setType(com.google.protobuf.ByteString value) { 926 bitField0_ |= 0x00000001; 1335 /** 1336 * <code>required string type = 1;</code> 1337 */ 1338 public Builder setTypeBytes( 1339 com.google.protobuf.ByteString value) { 1340 if (value == null) { 1341 throw new NullPointerException(); 1342 } 1343 bitField0_ |= 0x00000001; 927 1344 type_ = value; 928 1345 929 } 930 1346 return this; 1347 } 1348 931 1349 // optional bytes indexdata = 2; 932 1350 private com.google.protobuf.ByteString indexdata_ = com.google.protobuf.ByteString.EMPTY; 1351 /** 1352 * <code>optional bytes indexdata = 2;</code> 1353 */ 933 1354 public boolean hasIndexdata() { 934 1355 return ((bitField0_ & 0x00000002) == 0x00000002); 935 1356 } 1357 /** 1358 * <code>optional bytes indexdata = 2;</code> 1359 */ 936 1360 public com.google.protobuf.ByteString getIndexdata() { 937 1361 return indexdata_; 938 1362 } 1363 /** 1364 * <code>optional bytes indexdata = 2;</code> 1365 */ 939 1366 public Builder setIndexdata(com.google.protobuf.ByteString value) { 940 1367 if (value == null) { … … 946 1373 return this; 947 1374 } 1375 /** 1376 * <code>optional bytes indexdata = 2;</code> 1377 */ 948 1378 public Builder clearIndexdata() { 949 1379 bitField0_ = (bitField0_ & ~0x00000002); … … 952 1382 return this; 953 1383 } 954 1384 955 1385 // required int32 datasize = 3; 956 1386 private int datasize_ ; 1387 /** 1388 * <code>required int32 datasize = 3;</code> 1389 */ 957 1390 public boolean hasDatasize() { 958 1391 return ((bitField0_ & 0x00000004) == 0x00000004); 959 1392 } 1393 /** 1394 * <code>required int32 datasize = 3;</code> 1395 */ 960 1396 public int getDatasize() { 961 1397 return datasize_; 962 1398 } 1399 /** 1400 * <code>required int32 datasize = 3;</code> 1401 */ 963 1402 public Builder setDatasize(int value) { 964 1403 bitField0_ |= 0x00000004; … … 967 1406 return this; 968 1407 } 1408 /** 1409 * <code>required int32 datasize = 3;</code> 1410 */ 969 1411 public Builder clearDatasize() { 970 1412 bitField0_ = (bitField0_ & ~0x00000004); … … 973 1415 return this; 974 1416 } 975 1417 976 1418 // @@protoc_insertion_point(builder_scope:OSMPBF.BlobHeader) 977 1419 } 978 1420 979 1421 static { 980 1422 defaultInstance = new BlobHeader(true); 981 1423 defaultInstance.initFields(); 982 1424 } 983 1425 984 1426 // @@protoc_insertion_point(class_scope:OSMPBF.BlobHeader) 985 1427 } 986 987 1428 1429 988 1430 static { 989 1431 } 990 1432 991 1433 // @@protoc_insertion_point(outer_class_scope) 992 1434 } -
applications/editors/josm/plugins/pbf/gen/crosby/binary/Osmformat.java
r26961 r30490 1 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: src/ osmformat.proto2 // source: src/crosby/binary/osmformat.proto 3 3 4 4 package crosby.binary; … … 11 11 public interface HeaderBlockOrBuilder 12 12 extends com.google.protobuf.MessageLiteOrBuilder { 13 13 14 14 // optional .OSMPBF.HeaderBBox bbox = 1; 15 /** 16 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 17 */ 15 18 boolean hasBbox(); 19 /** 20 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 21 */ 16 22 crosby.binary.Osmformat.HeaderBBox getBbox(); 17 23 18 24 // repeated string required_features = 4; 19 java.util.List<String> getRequiredFeaturesList(); 25 /** 26 * <code>repeated string required_features = 4;</code> 27 * 28 * <pre> 29 * Additional tags to aid in parsing this dataset 30 * </pre> 31 */ 32 java.util.List<java.lang.String> 33 getRequiredFeaturesList(); 34 /** 35 * <code>repeated string required_features = 4;</code> 36 * 37 * <pre> 38 * Additional tags to aid in parsing this dataset 39 * </pre> 40 */ 20 41 int getRequiredFeaturesCount(); 21 String getRequiredFeatures(int index); 22 42 /** 43 * <code>repeated string required_features = 4;</code> 44 * 45 * <pre> 46 * Additional tags to aid in parsing this dataset 47 * </pre> 48 */ 49 java.lang.String getRequiredFeatures(int index); 50 /** 51 * <code>repeated string required_features = 4;</code> 52 * 53 * <pre> 54 * Additional tags to aid in parsing this dataset 55 * </pre> 56 */ 57 com.google.protobuf.ByteString 58 getRequiredFeaturesBytes(int index); 59 23 60 // repeated string optional_features = 5; 24 java.util.List<String> getOptionalFeaturesList(); 61 /** 62 * <code>repeated string optional_features = 5;</code> 63 */ 64 java.util.List<java.lang.String> 65 getOptionalFeaturesList(); 66 /** 67 * <code>repeated string optional_features = 5;</code> 68 */ 25 69 int getOptionalFeaturesCount(); 26 String getOptionalFeatures(int index); 27 70 /** 71 * <code>repeated string optional_features = 5;</code> 72 */ 73 java.lang.String getOptionalFeatures(int index); 74 /** 75 * <code>repeated string optional_features = 5;</code> 76 */ 77 com.google.protobuf.ByteString 78 getOptionalFeaturesBytes(int index); 79 28 80 // optional string writingprogram = 16; 81 /** 82 * <code>optional string writingprogram = 16;</code> 83 */ 29 84 boolean hasWritingprogram(); 30 String getWritingprogram(); 31 85 /** 86 * <code>optional string writingprogram = 16;</code> 87 */ 88 java.lang.String getWritingprogram(); 89 /** 90 * <code>optional string writingprogram = 16;</code> 91 */ 92 com.google.protobuf.ByteString 93 getWritingprogramBytes(); 94 32 95 // optional string source = 17; 96 /** 97 * <code>optional string source = 17;</code> 98 * 99 * <pre> 100 * From the bbox field. 101 * </pre> 102 */ 33 103 boolean hasSource(); 34 String getSource(); 104 /** 105 * <code>optional string source = 17;</code> 106 * 107 * <pre> 108 * From the bbox field. 109 * </pre> 110 */ 111 java.lang.String getSource(); 112 /** 113 * <code>optional string source = 17;</code> 114 * 115 * <pre> 116 * From the bbox field. 117 * </pre> 118 */ 119 com.google.protobuf.ByteString 120 getSourceBytes(); 121 122 // optional int64 osmosis_replication_timestamp = 32; 123 /** 124 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 125 * 126 * <pre> 127 * replication timestamp, expressed in seconds since the epoch, 128 * otherwise the same value as in the "timestamp=..." field 129 * in the state.txt file used by Osmosis 130 * </pre> 131 */ 132 boolean hasOsmosisReplicationTimestamp(); 133 /** 134 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 135 * 136 * <pre> 137 * replication timestamp, expressed in seconds since the epoch, 138 * otherwise the same value as in the "timestamp=..." field 139 * in the state.txt file used by Osmosis 140 * </pre> 141 */ 142 long getOsmosisReplicationTimestamp(); 143 144 // optional int64 osmosis_replication_sequence_number = 33; 145 /** 146 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 147 * 148 * <pre> 149 * replication sequence number (sequenceNumber in state.txt) 150 * </pre> 151 */ 152 boolean hasOsmosisReplicationSequenceNumber(); 153 /** 154 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 155 * 156 * <pre> 157 * replication sequence number (sequenceNumber in state.txt) 158 * </pre> 159 */ 160 long getOsmosisReplicationSequenceNumber(); 161 162 // optional string osmosis_replication_base_url = 34; 163 /** 164 * <code>optional string osmosis_replication_base_url = 34;</code> 165 * 166 * <pre> 167 * replication base URL (from Osmosis' configuration.txt file) 168 * </pre> 169 */ 170 boolean hasOsmosisReplicationBaseUrl(); 171 /** 172 * <code>optional string osmosis_replication_base_url = 34;</code> 173 * 174 * <pre> 175 * replication base URL (from Osmosis' configuration.txt file) 176 * </pre> 177 */ 178 java.lang.String getOsmosisReplicationBaseUrl(); 179 /** 180 * <code>optional string osmosis_replication_base_url = 34;</code> 181 * 182 * <pre> 183 * replication base URL (from Osmosis' configuration.txt file) 184 * </pre> 185 */ 186 com.google.protobuf.ByteString 187 getOsmosisReplicationBaseUrlBytes(); 35 188 } 189 /** 190 * Protobuf type {@code OSMPBF.HeaderBlock} 191 */ 36 192 public static final class HeaderBlock extends 37 193 com.google.protobuf.GeneratedMessageLite 38 194 implements HeaderBlockOrBuilder { 39 195 // Use HeaderBlock.newBuilder() to construct. 40 private HeaderBlock( Builder builder) {196 private HeaderBlock(com.google.protobuf.GeneratedMessageLite.Builder builder) { 41 197 super(builder); 198 42 199 } 43 200 private HeaderBlock(boolean noInit) {} 44 201 45 202 private static final HeaderBlock defaultInstance; 46 203 public static HeaderBlock getDefaultInstance() { 47 204 return defaultInstance; 48 205 } 49 206 50 207 public HeaderBlock getDefaultInstanceForType() { 51 208 return defaultInstance; 52 209 } 53 210 211 private HeaderBlock( 212 com.google.protobuf.CodedInputStream input, 213 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 214 throws com.google.protobuf.InvalidProtocolBufferException { 215 initFields(); 216 int mutable_bitField0_ = 0; 217 try { 218 boolean done = false; 219 while (!done) { 220 int tag = input.readTag(); 221 switch (tag) { 222 case 0: 223 done = true; 224 break; 225 default: { 226 if (!parseUnknownField(input, 227 extensionRegistry, tag)) { 228 done = true; 229 } 230 break; 231 } 232 case 10: { 233 crosby.binary.Osmformat.HeaderBBox.Builder subBuilder = null; 234 if (((bitField0_ & 0x00000001) == 0x00000001)) { 235 subBuilder = bbox_.toBuilder(); 236 } 237 bbox_ = input.readMessage(crosby.binary.Osmformat.HeaderBBox.PARSER, extensionRegistry); 238 if (subBuilder != null) { 239 subBuilder.mergeFrom(bbox_); 240 bbox_ = subBuilder.buildPartial(); 241 } 242 bitField0_ |= 0x00000001; 243 break; 244 } 245 case 34: { 246 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 247 requiredFeatures_ = new com.google.protobuf.LazyStringArrayList(); 248 mutable_bitField0_ |= 0x00000002; 249 } 250 requiredFeatures_.add(input.readBytes()); 251 break; 252 } 253 case 42: { 254 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 255 optionalFeatures_ = new com.google.protobuf.LazyStringArrayList(); 256 mutable_bitField0_ |= 0x00000004; 257 } 258 optionalFeatures_.add(input.readBytes()); 259 break; 260 } 261 case 130: { 262 bitField0_ |= 0x00000002; 263 writingprogram_ = input.readBytes(); 264 break; 265 } 266 case 138: { 267 bitField0_ |= 0x00000004; 268 source_ = input.readBytes(); 269 break; 270 } 271 case 256: { 272 bitField0_ |= 0x00000008; 273 osmosisReplicationTimestamp_ = input.readInt64(); 274 break; 275 } 276 case 264: { 277 bitField0_ |= 0x00000010; 278 osmosisReplicationSequenceNumber_ = input.readInt64(); 279 break; 280 } 281 case 274: { 282 bitField0_ |= 0x00000020; 283 osmosisReplicationBaseUrl_ = input.readBytes(); 284 break; 285 } 286 } 287 } 288 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 289 throw e.setUnfinishedMessage(this); 290 } catch (java.io.IOException e) { 291 throw new com.google.protobuf.InvalidProtocolBufferException( 292 e.getMessage()).setUnfinishedMessage(this); 293 } finally { 294 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 295 requiredFeatures_ = new com.google.protobuf.UnmodifiableLazyStringList(requiredFeatures_); 296 } 297 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 298 optionalFeatures_ = new com.google.protobuf.UnmodifiableLazyStringList(optionalFeatures_); 299 } 300 makeExtensionsImmutable(); 301 } 302 } 303 public static com.google.protobuf.Parser<HeaderBlock> PARSER = 304 new com.google.protobuf.AbstractParser<HeaderBlock>() { 305 public HeaderBlock parsePartialFrom( 306 com.google.protobuf.CodedInputStream input, 307 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 308 throws com.google.protobuf.InvalidProtocolBufferException { 309 return new HeaderBlock(input, extensionRegistry); 310 } 311 }; 312 313 @java.lang.Override 314 public com.google.protobuf.Parser<HeaderBlock> getParserForType() { 315 return PARSER; 316 } 317 54 318 private int bitField0_; 55 319 // optional .OSMPBF.HeaderBBox bbox = 1; 56 320 public static final int BBOX_FIELD_NUMBER = 1; 57 321 private crosby.binary.Osmformat.HeaderBBox bbox_; 322 /** 323 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 324 */ 58 325 public boolean hasBbox() { 59 326 return ((bitField0_ & 0x00000001) == 0x00000001); 60 327 } 328 /** 329 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 330 */ 61 331 public crosby.binary.Osmformat.HeaderBBox getBbox() { 62 332 return bbox_; 63 333 } 64 334 65 335 // repeated string required_features = 4; 66 336 public static final int REQUIRED_FEATURES_FIELD_NUMBER = 4; 67 337 private com.google.protobuf.LazyStringList requiredFeatures_; 68 public java.util.List<String> 338 /** 339 * <code>repeated string required_features = 4;</code> 340 * 341 * <pre> 342 * Additional tags to aid in parsing this dataset 343 * </pre> 344 */ 345 public java.util.List<java.lang.String> 69 346 getRequiredFeaturesList() { 70 347 return requiredFeatures_; 71 348 } 349 /** 350 * <code>repeated string required_features = 4;</code> 351 * 352 * <pre> 353 * Additional tags to aid in parsing this dataset 354 * </pre> 355 */ 72 356 public int getRequiredFeaturesCount() { 73 357 return requiredFeatures_.size(); 74 358 } 75 public String getRequiredFeatures(int index) { 359 /** 360 * <code>repeated string required_features = 4;</code> 361 * 362 * <pre> 363 * Additional tags to aid in parsing this dataset 364 * </pre> 365 */ 366 public java.lang.String getRequiredFeatures(int index) { 76 367 return requiredFeatures_.get(index); 77 368 } 78 369 /** 370 * <code>repeated string required_features = 4;</code> 371 * 372 * <pre> 373 * Additional tags to aid in parsing this dataset 374 * </pre> 375 */ 376 public com.google.protobuf.ByteString 377 getRequiredFeaturesBytes(int index) { 378 return requiredFeatures_.getByteString(index); 379 } 380 79 381 // repeated string optional_features = 5; 80 382 public static final int OPTIONAL_FEATURES_FIELD_NUMBER = 5; 81 383 private com.google.protobuf.LazyStringList optionalFeatures_; 82 public java.util.List<String> 384 /** 385 * <code>repeated string optional_features = 5;</code> 386 */ 387 public java.util.List<java.lang.String> 83 388 getOptionalFeaturesList() { 84 389 return optionalFeatures_; 85 390 } 391 /** 392 * <code>repeated string optional_features = 5;</code> 393 */ 86 394 public int getOptionalFeaturesCount() { 87 395 return optionalFeatures_.size(); 88 396 } 89 public String getOptionalFeatures(int index) { 397 /** 398 * <code>repeated string optional_features = 5;</code> 399 */ 400 public java.lang.String getOptionalFeatures(int index) { 90 401 return optionalFeatures_.get(index); 91 402 } 92 403 /** 404 * <code>repeated string optional_features = 5;</code> 405 */ 406 public com.google.protobuf.ByteString 407 getOptionalFeaturesBytes(int index) { 408 return optionalFeatures_.getByteString(index); 409 } 410 93 411 // optional string writingprogram = 16; 94 412 public static final int WRITINGPROGRAM_FIELD_NUMBER = 16; 95 413 private java.lang.Object writingprogram_; 414 /** 415 * <code>optional string writingprogram = 16;</code> 416 */ 96 417 public boolean hasWritingprogram() { 97 418 return ((bitField0_ & 0x00000002) == 0x00000002); 98 419 } 99 public String getWritingprogram() { 420 /** 421 * <code>optional string writingprogram = 16;</code> 422 */ 423 public java.lang.String getWritingprogram() { 100 424 java.lang.Object ref = writingprogram_; 101 if (ref instanceof String) {102 return ( String) ref;425 if (ref instanceof java.lang.String) { 426 return (java.lang.String) ref; 103 427 } else { 104 428 com.google.protobuf.ByteString bs = 105 429 (com.google.protobuf.ByteString) ref; 106 String s = bs.toStringUtf8();107 if ( com.google.protobuf.Internal.isValidUtf8(bs)) {430 java.lang.String s = bs.toStringUtf8(); 431 if (bs.isValidUtf8()) { 108 432 writingprogram_ = s; 109 433 } … … 111 435 } 112 436 } 113 private com.google.protobuf.ByteString getWritingprogramBytes() { 437 /** 438 * <code>optional string writingprogram = 16;</code> 439 */ 440 public com.google.protobuf.ByteString 441 getWritingprogramBytes() { 114 442 java.lang.Object ref = writingprogram_; 115 if (ref instanceof String) {443 if (ref instanceof java.lang.String) { 116 444 com.google.protobuf.ByteString b = 117 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 445 com.google.protobuf.ByteString.copyFromUtf8( 446 (java.lang.String) ref); 118 447 writingprogram_ = b; 119 448 return b; … … 122 451 } 123 452 } 124 453 125 454 // optional string source = 17; 126 455 public static final int SOURCE_FIELD_NUMBER = 17; 127 456 private java.lang.Object source_; 457 /** 458 * <code>optional string source = 17;</code> 459 * 460 * <pre> 461 * From the bbox field. 462 * </pre> 463 */ 128 464 public boolean hasSource() { 129 465 return ((bitField0_ & 0x00000004) == 0x00000004); 130 466 } 131 public String getSource() { 467 /** 468 * <code>optional string source = 17;</code> 469 * 470 * <pre> 471 * From the bbox field. 472 * </pre> 473 */ 474 public java.lang.String getSource() { 132 475 java.lang.Object ref = source_; 133 if (ref instanceof String) {134 return ( String) ref;476 if (ref instanceof java.lang.String) { 477 return (java.lang.String) ref; 135 478 } else { 136 479 com.google.protobuf.ByteString bs = 137 480 (com.google.protobuf.ByteString) ref; 138 String s = bs.toStringUtf8();139 if ( com.google.protobuf.Internal.isValidUtf8(bs)) {481 java.lang.String s = bs.toStringUtf8(); 482 if (bs.isValidUtf8()) { 140 483 source_ = s; 141 484 } … … 143 486 } 144 487 } 145 private com.google.protobuf.ByteString getSourceBytes() { 488 /** 489 * <code>optional string source = 17;</code> 490 * 491 * <pre> 492 * From the bbox field. 493 * </pre> 494 */ 495 public com.google.protobuf.ByteString 496 getSourceBytes() { 146 497 java.lang.Object ref = source_; 147 if (ref instanceof String) {498 if (ref instanceof java.lang.String) { 148 499 com.google.protobuf.ByteString b = 149 com.google.protobuf.ByteString.copyFromUtf8((String) ref); 500 com.google.protobuf.ByteString.copyFromUtf8( 501 (java.lang.String) ref); 150 502 source_ = b; 151 503 return b; … … 154 506 } 155 507 } 156 508 509 // optional int64 osmosis_replication_timestamp = 32; 510 public static final int OSMOSIS_REPLICATION_TIMESTAMP_FIELD_NUMBER = 32; 511 private long osmosisReplicationTimestamp_; 512 /** 513 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 514 * 515 * <pre> 516 * replication timestamp, expressed in seconds since the epoch, 517 * otherwise the same value as in the "timestamp=..." field 518 * in the state.txt file used by Osmosis 519 * </pre> 520 */ 521 public boolean hasOsmosisReplicationTimestamp() { 522 return ((bitField0_ & 0x00000008) == 0x00000008); 523 } 524 /** 525 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 526 * 527 * <pre> 528 * replication timestamp, expressed in seconds since the epoch, 529 * otherwise the same value as in the "timestamp=..." field 530 * in the state.txt file used by Osmosis 531 * </pre> 532 */ 533 public long getOsmosisReplicationTimestamp() { 534 return osmosisReplicationTimestamp_; 535 } 536 537 // optional int64 osmosis_replication_sequence_number = 33; 538 public static final int OSMOSIS_REPLICATION_SEQUENCE_NUMBER_FIELD_NUMBER = 33; 539 private long osmosisReplicationSequenceNumber_; 540 /** 541 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 542 * 543 * <pre> 544 * replication sequence number (sequenceNumber in state.txt) 545 * </pre> 546 */ 547 public boolean hasOsmosisReplicationSequenceNumber() { 548 return ((bitField0_ & 0x00000010) == 0x00000010); 549 } 550 /** 551 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 552 * 553 * <pre> 554 * replication sequence number (sequenceNumber in state.txt) 555 * </pre> 556 */ 557 public long getOsmosisReplicationSequenceNumber() { 558 return osmosisReplicationSequenceNumber_; 559 } 560 561 // optional string osmosis_replication_base_url = 34; 562 public static final int OSMOSIS_REPLICATION_BASE_URL_FIELD_NUMBER = 34; 563 private java.lang.Object osmosisReplicationBaseUrl_; 564 /** 565 * <code>optional string osmosis_replication_base_url = 34;</code> 566 * 567 * <pre> 568 * replication base URL (from Osmosis' configuration.txt file) 569 * </pre> 570 */ 571 public boolean hasOsmosisReplicationBaseUrl() { 572 return ((bitField0_ & 0x00000020) == 0x00000020); 573 } 574 /** 575 * <code>optional string osmosis_replication_base_url = 34;</code> 576 * 577 * <pre> 578 * replication base URL (from Osmosis' configuration.txt file) 579 * </pre> 580 */ 581 public java.lang.String getOsmosisReplicationBaseUrl() { 582 java.lang.Object ref = osmosisReplicationBaseUrl_; 583 if (ref instanceof java.lang.String) { 584 return (java.lang.String) ref; 585 } else { 586 com.google.protobuf.ByteString bs = 587 (com.google.protobuf.ByteString) ref; 588 java.lang.String s = bs.toStringUtf8(); 589 if (bs.isValidUtf8()) { 590 osmosisReplicationBaseUrl_ = s; 591 } 592 return s; 593 } 594 } 595 /** 596 * <code>optional string osmosis_replication_base_url = 34;</code> 597 * 598 * <pre> 599 * replication base URL (from Osmosis' configuration.txt file) 600 * </pre> 601 */ 602 public com.google.protobuf.ByteString 603 getOsmosisReplicationBaseUrlBytes() { 604 java.lang.Object ref = osmosisReplicationBaseUrl_; 605 if (ref instanceof java.lang.String) { 606 com.google.protobuf.ByteString b = 607 com.google.protobuf.ByteString.copyFromUtf8( 608 (java.lang.String) ref); 609 osmosisReplicationBaseUrl_ = b; 610 return b; 611 } else { 612 return (com.google.protobuf.ByteString) ref; 613 } 614 } 615 157 616 private void initFields() { 158 617 bbox_ = crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); … … 161 620 writingprogram_ = ""; 162 621 source_ = ""; 622 osmosisReplicationTimestamp_ = 0L; 623 osmosisReplicationSequenceNumber_ = 0L; 624 osmosisReplicationBaseUrl_ = ""; 163 625 } 164 626 private byte memoizedIsInitialized = -1; … … 166 628 byte isInitialized = memoizedIsInitialized; 167 629 if (isInitialized != -1) return isInitialized == 1; 168 630 169 631 if (hasBbox()) { 170 632 if (!getBbox().isInitialized()) { … … 176 638 return true; 177 639 } 178 640 179 641 public void writeTo(com.google.protobuf.CodedOutputStream output) 180 642 throws java.io.IOException { … … 195 657 output.writeBytes(17, getSourceBytes()); 196 658 } 197 } 198 659 if (((bitField0_ & 0x00000008) == 0x00000008)) { 660 output.writeInt64(32, osmosisReplicationTimestamp_); 661 } 662 if (((bitField0_ & 0x00000010) == 0x00000010)) { 663 output.writeInt64(33, osmosisReplicationSequenceNumber_); 664 } 665 if (((bitField0_ & 0x00000020) == 0x00000020)) { 666 output.writeBytes(34, getOsmosisReplicationBaseUrlBytes()); 667 } 668 } 669 199 670 private int memoizedSerializedSize = -1; 200 671 public int getSerializedSize() { 201 672 int size = memoizedSerializedSize; 202 673 if (size != -1) return size; 203 674 204 675 size = 0; 205 676 if (((bitField0_ & 0x00000001) == 0x00000001)) { … … 233 704 .computeBytesSize(17, getSourceBytes()); 234 705 } 706 if (((bitField0_ & 0x00000008) == 0x00000008)) { 707 size += com.google.protobuf.CodedOutputStream 708 .computeInt64Size(32, osmosisReplicationTimestamp_); 709 } 710 if (((bitField0_ & 0x00000010) == 0x00000010)) { 711 size += com.google.protobuf.CodedOutputStream 712 .computeInt64Size(33, osmosisReplicationSequenceNumber_); 713 } 714 if (((bitField0_ & 0x00000020) == 0x00000020)) { 715 size += com.google.protobuf.CodedOutputStream 716 .computeBytesSize(34, getOsmosisReplicationBaseUrlBytes()); 717 } 235 718 memoizedSerializedSize = size; 236 719 return size; 237 720 } 238 721 239 722 private static final long serialVersionUID = 0L; 240 723 @java.lang.Override … … 243 726 return super.writeReplace(); 244 727 } 245 728 246 729 public static crosby.binary.Osmformat.HeaderBlock parseFrom( 247 730 com.google.protobuf.ByteString data) 248 731 throws com.google.protobuf.InvalidProtocolBufferException { 249 return newBuilder().mergeFrom(data).buildParsed();732 return PARSER.parseFrom(data); 250 733 } 251 734 public static crosby.binary.Osmformat.HeaderBlock parseFrom( … … 253 736 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 254 737 throws com.google.protobuf.InvalidProtocolBufferException { 255 return newBuilder().mergeFrom(data, extensionRegistry) 256 .buildParsed(); 738 return PARSER.parseFrom(data, extensionRegistry); 257 739 } 258 740 public static crosby.binary.Osmformat.HeaderBlock parseFrom(byte[] data) 259 741 throws com.google.protobuf.InvalidProtocolBufferException { 260 return newBuilder().mergeFrom(data).buildParsed();742 return PARSER.parseFrom(data); 261 743 } 262 744 public static crosby.binary.Osmformat.HeaderBlock parseFrom( … … 264 746 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 265 747 throws com.google.protobuf.InvalidProtocolBufferException { 266 return newBuilder().mergeFrom(data, extensionRegistry) 267 .buildParsed(); 748 return PARSER.parseFrom(data, extensionRegistry); 268 749 } 269 750 public static crosby.binary.Osmformat.HeaderBlock parseFrom(java.io.InputStream input) 270 751 throws java.io.IOException { 271 return newBuilder().mergeFrom(input).buildParsed();752 return PARSER.parseFrom(input); 272 753 } 273 754 public static crosby.binary.Osmformat.HeaderBlock parseFrom( … … 275 756 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 276 757 throws java.io.IOException { 277 return newBuilder().mergeFrom(input, extensionRegistry) 278 .buildParsed(); 758 return PARSER.parseFrom(input, extensionRegistry); 279 759 } 280 760 public static crosby.binary.Osmformat.HeaderBlock parseDelimitedFrom(java.io.InputStream input) 281 761 throws java.io.IOException { 282 Builder builder = newBuilder(); 283 if (builder.mergeDelimitedFrom(input)) { 284 return builder.buildParsed(); 285 } else { 286 return null; 287 } 762 return PARSER.parseDelimitedFrom(input); 288 763 } 289 764 public static crosby.binary.Osmformat.HeaderBlock parseDelimitedFrom( … … 291 766 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 292 767 throws java.io.IOException { 293 Builder builder = newBuilder(); 294 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 295 return builder.buildParsed(); 296 } else { 297 return null; 298 } 768 return PARSER.parseDelimitedFrom(input, extensionRegistry); 299 769 } 300 770 public static crosby.binary.Osmformat.HeaderBlock parseFrom( 301 771 com.google.protobuf.CodedInputStream input) 302 772 throws java.io.IOException { 303 return newBuilder().mergeFrom(input).buildParsed();773 return PARSER.parseFrom(input); 304 774 } 305 775 public static crosby.binary.Osmformat.HeaderBlock parseFrom( … … 307 777 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 308 778 throws java.io.IOException { 309 return newBuilder().mergeFrom(input, extensionRegistry) 310 .buildParsed(); 311 } 312 779 return PARSER.parseFrom(input, extensionRegistry); 780 } 781 313 782 public static Builder newBuilder() { return Builder.create(); } 314 783 public Builder newBuilderForType() { return newBuilder(); } … … 317 786 } 318 787 public Builder toBuilder() { return newBuilder(this); } 319 788 789 /** 790 * Protobuf type {@code OSMPBF.HeaderBlock} 791 */ 320 792 public static final class Builder extends 321 793 com.google.protobuf.GeneratedMessageLite.Builder< … … 326 798 maybeForceBuilderInitialization(); 327 799 } 328 800 329 801 private void maybeForceBuilderInitialization() { 330 802 } … … 332 804 return new Builder(); 333 805 } 334 806 335 807 public Builder clear() { 336 808 super.clear(); … … 345 817 source_ = ""; 346 818 bitField0_ = (bitField0_ & ~0x00000010); 347 return this; 348 } 349 819 osmosisReplicationTimestamp_ = 0L; 820 bitField0_ = (bitField0_ & ~0x00000020); 821 osmosisReplicationSequenceNumber_ = 0L; 822 bitField0_ = (bitField0_ & ~0x00000040); 823 osmosisReplicationBaseUrl_ = ""; 824 bitField0_ = (bitField0_ & ~0x00000080); 825 return this; 826 } 827 350 828 public Builder clone() { 351 829 return create().mergeFrom(buildPartial()); 352 830 } 353 831 354 832 public crosby.binary.Osmformat.HeaderBlock getDefaultInstanceForType() { 355 833 return crosby.binary.Osmformat.HeaderBlock.getDefaultInstance(); 356 834 } 357 835 358 836 public crosby.binary.Osmformat.HeaderBlock build() { 359 837 crosby.binary.Osmformat.HeaderBlock result = buildPartial(); … … 363 841 return result; 364 842 } 365 366 private crosby.binary.Osmformat.HeaderBlock buildParsed() 367 throws com.google.protobuf.InvalidProtocolBufferException { 368 crosby.binary.Osmformat.HeaderBlock result = buildPartial(); 369 if (!result.isInitialized()) { 370 throw newUninitializedMessageException( 371 result).asInvalidProtocolBufferException(); 372 } 373 return result; 374 } 375 843 376 844 public crosby.binary.Osmformat.HeaderBlock buildPartial() { 377 845 crosby.binary.Osmformat.HeaderBlock result = new crosby.binary.Osmformat.HeaderBlock(this); … … 402 870 } 403 871 result.source_ = source_; 872 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 873 to_bitField0_ |= 0x00000008; 874 } 875 result.osmosisReplicationTimestamp_ = osmosisReplicationTimestamp_; 876 if (((from_bitField0_ & 0x00000040) == 0x00000040)) { 877 to_bitField0_ |= 0x00000010; 878 } 879 result.osmosisReplicationSequenceNumber_ = osmosisReplicationSequenceNumber_; 880 if (((from_bitField0_ & 0x00000080) == 0x00000080)) { 881 to_bitField0_ |= 0x00000020; 882 } 883 result.osmosisReplicationBaseUrl_ = osmosisReplicationBaseUrl_; 404 884 result.bitField0_ = to_bitField0_; 405 885 return result; 406 886 } 407 887 408 888 public Builder mergeFrom(crosby.binary.Osmformat.HeaderBlock other) { 409 889 if (other == crosby.binary.Osmformat.HeaderBlock.getDefaultInstance()) return this; … … 432 912 } 433 913 if (other.hasWritingprogram()) { 434 setWritingprogram(other.getWritingprogram()); 914 bitField0_ |= 0x00000008; 915 writingprogram_ = other.writingprogram_; 916 435 917 } 436 918 if (other.hasSource()) { 437 setSource(other.getSource()); 438 } 439 return this; 440 } 441 919 bitField0_ |= 0x00000010; 920 source_ = other.source_; 921 922 } 923 if (other.hasOsmosisReplicationTimestamp()) { 924 setOsmosisReplicationTimestamp(other.getOsmosisReplicationTimestamp()); 925 } 926 if (other.hasOsmosisReplicationSequenceNumber()) { 927 setOsmosisReplicationSequenceNumber(other.getOsmosisReplicationSequenceNumber()); 928 } 929 if (other.hasOsmosisReplicationBaseUrl()) { 930 bitField0_ |= 0x00000080; 931 osmosisReplicationBaseUrl_ = other.osmosisReplicationBaseUrl_; 932 933 } 934 return this; 935 } 936 442 937 public final boolean isInitialized() { 443 938 if (hasBbox()) { … … 449 944 return true; 450 945 } 451 946 452 947 public Builder mergeFrom( 453 948 com.google.protobuf.CodedInputStream input, 454 949 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 455 950 throws java.io.IOException { 456 while (true) { 457 int tag = input.readTag(); 458 switch (tag) { 459 case 0: 460 461 return this; 462 default: { 463 if (!parseUnknownField(input, extensionRegistry, tag)) { 464 465 return this; 466 } 467 break; 468 } 469 case 10: { 470 crosby.binary.Osmformat.HeaderBBox.Builder subBuilder = crosby.binary.Osmformat.HeaderBBox.newBuilder(); 471 if (hasBbox()) { 472 subBuilder.mergeFrom(getBbox()); 473 } 474 input.readMessage(subBuilder, extensionRegistry); 475 setBbox(subBuilder.buildPartial()); 476 break; 477 } 478 case 34: { 479 ensureRequiredFeaturesIsMutable(); 480 requiredFeatures_.add(input.readBytes()); 481 break; 482 } 483 case 42: { 484 ensureOptionalFeaturesIsMutable(); 485 optionalFeatures_.add(input.readBytes()); 486 break; 487 } 488 case 130: { 489 bitField0_ |= 0x00000008; 490 writingprogram_ = input.readBytes(); 491 break; 492 } 493 case 138: { 494 bitField0_ |= 0x00000010; 495 source_ = input.readBytes(); 496 break; 497 } 951 crosby.binary.Osmformat.HeaderBlock parsedMessage = null; 952 try { 953 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 954 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 955 parsedMessage = (crosby.binary.Osmformat.HeaderBlock) e.getUnfinishedMessage(); 956 throw e; 957 } finally { 958 if (parsedMessage != null) { 959 mergeFrom(parsedMessage); 498 960 } 499 961 } 500 }501 962 return this; 963 } 502 964 private int bitField0_; 503 965 504 966 // optional .OSMPBF.HeaderBBox bbox = 1; 505 967 private crosby.binary.Osmformat.HeaderBBox bbox_ = crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); 968 /** 969 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 970 */ 506 971 public boolean hasBbox() { 507 972 return ((bitField0_ & 0x00000001) == 0x00000001); 508 973 } 974 /** 975 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 976 */ 509 977 public crosby.binary.Osmformat.HeaderBBox getBbox() { 510 978 return bbox_; 511 979 } 980 /** 981 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 982 */ 512 983 public Builder setBbox(crosby.binary.Osmformat.HeaderBBox value) { 513 984 if (value == null) { … … 515 986 } 516 987 bbox_ = value; 517 988 518 989 bitField0_ |= 0x00000001; 519 990 return this; 520 991 } 992 /** 993 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 994 */ 521 995 public Builder setBbox( 522 996 crosby.binary.Osmformat.HeaderBBox.Builder builderForValue) { 523 997 bbox_ = builderForValue.build(); 524 998 525 999 bitField0_ |= 0x00000001; 526 1000 return this; 527 1001 } 1002 /** 1003 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 1004 */ 528 1005 public Builder mergeBbox(crosby.binary.Osmformat.HeaderBBox value) { 529 1006 if (((bitField0_ & 0x00000001) == 0x00000001) && … … 534 1011 bbox_ = value; 535 1012 } 536 1013 537 1014 bitField0_ |= 0x00000001; 538 1015 return this; 539 1016 } 1017 /** 1018 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 1019 */ 540 1020 public Builder clearBbox() { 541 1021 bbox_ = crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); 542 1022 543 1023 bitField0_ = (bitField0_ & ~0x00000001); 544 1024 return this; 545 1025 } 546 1026 547 1027 // repeated string required_features = 4; 548 1028 private com.google.protobuf.LazyStringList requiredFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; … … 553 1033 } 554 1034 } 555 public java.util.List<String> 1035 /** 1036 * <code>repeated string required_features = 4;</code> 1037 * 1038 * <pre> 1039 * Additional tags to aid in parsing this dataset 1040 * </pre> 1041 */ 1042 public java.util.List<java.lang.String> 556 1043 getRequiredFeaturesList() { 557 1044 return java.util.Collections.unmodifiableList(requiredFeatures_); 558 1045 } 1046 /** 1047 * <code>repeated string required_features = 4;</code> 1048 * 1049 * <pre> 1050 * Additional tags to aid in parsing this dataset 1051 * </pre> 1052 */ 559 1053 public int getRequiredFeaturesCount() { 560 1054 return requiredFeatures_.size(); 561 1055 } 562 public String getRequiredFeatures(int index) { 1056 /** 1057 * <code>repeated string required_features = 4;</code> 1058 * 1059 * <pre> 1060 * Additional tags to aid in parsing this dataset 1061 * </pre> 1062 */ 1063 public java.lang.String getRequiredFeatures(int index) { 563 1064 return requiredFeatures_.get(index); 564 1065 } 1066 /** 1067 * <code>repeated string required_features = 4;</code> 1068 * 1069 * <pre> 1070 * Additional tags to aid in parsing this dataset 1071 * </pre> 1072 */ 1073 public com.google.protobuf.ByteString 1074 getRequiredFeaturesBytes(int index) { 1075 return requiredFeatures_.getByteString(index); 1076 } 1077 /** 1078 * <code>repeated string required_features = 4;</code> 1079 * 1080 * <pre> 1081 * Additional tags to aid in parsing this dataset 1082 * </pre> 1083 */ 565 1084 public Builder setRequiredFeatures( 566 int index, String value) {1085 int index, java.lang.String value) { 567 1086 if (value == null) { 568 1087 throw new NullPointerException(); … … 573 1092 return this; 574 1093 } 575 public Builder addRequiredFeatures(String value) { 1094 /** 1095 * <code>repeated string required_features = 4;</code> 1096 * 1097 * <pre> 1098 * Additional tags to aid in parsing this dataset 1099 * </pre> 1100 */ 1101 public Builder addRequiredFeatures( 1102 java.lang.String value) { 576 1103 if (value == null) { 577 1104 throw new NullPointerException(); … … 582 1109 return this; 583 1110 } 1111 /** 1112 * <code>repeated string required_features = 4;</code> 1113 * 1114 * <pre> 1115 * Additional tags to aid in parsing this dataset 1116 * </pre> 1117 */ 584 1118 public Builder addAllRequiredFeatures( 585 java.lang.Iterable< String> values) {1119 java.lang.Iterable<java.lang.String> values) { 586 1120 ensureRequiredFeaturesIsMutable(); 587 1121 super.addAll(values, requiredFeatures_); … … 589 1123 return this; 590 1124 } 1125 /** 1126 * <code>repeated string required_features = 4;</code> 1127 * 1128 * <pre> 1129 * Additional tags to aid in parsing this dataset 1130 * </pre> 1131 */ 591 1132 public Builder clearRequiredFeatures() { 592 1133 requiredFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; … … 595 1136 return this; 596 1137 } 597 void addRequiredFeatures(com.google.protobuf.ByteString value) { 598 ensureRequiredFeaturesIsMutable(); 1138 /** 1139 * <code>repeated string required_features = 4;</code> 1140 * 1141 * <pre> 1142 * Additional tags to aid in parsing this dataset 1143 * </pre> 1144 */ 1145 public Builder addRequiredFeaturesBytes( 1146 com.google.protobuf.ByteString value) { 1147 if (value == null) { 1148 throw new NullPointerException(); 1149 } 1150 ensureRequiredFeaturesIsMutable(); 599 1151 requiredFeatures_.add(value); 600 1152 601 } 602 1153 return this; 1154 } 1155 603 1156 // repeated string optional_features = 5; 604 1157 private com.google.protobuf.LazyStringList optionalFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; … … 609 1162 } 610 1163 } 611 public java.util.List<String> 1164 /** 1165 * <code>repeated string optional_features = 5;</code> 1166 */ 1167 public java.util.List<java.lang.String> 612 1168 getOptionalFeaturesList() { 613 1169 return java.util.Collections.unmodifiableList(optionalFeatures_); 614 1170 } 1171 /** 1172 * <code>repeated string optional_features = 5;</code> 1173 */ 615 1174 public int getOptionalFeaturesCount() { 616 1175 return optionalFeatures_.size(); 617 1176 } 618 public String getOptionalFeatures(int index) { 1177 /** 1178 * <code>repeated string optional_features = 5;</code> 1179 */ 1180 public java.lang.String getOptionalFeatures(int index) { 619 1181 return optionalFeatures_.get(index); 620 1182 } 1183 /** 1184 * <code>repeated string optional_features = 5;</code> 1185 */ 1186 public com.google.protobuf.ByteString 1187 getOptionalFeaturesBytes(int index) { 1188 return optionalFeatures_.getByteString(index); 1189 } 1190 /** 1191 * <code>repeated string optional_features = 5;</code> 1192 */ 621 1193 public Builder setOptionalFeatures( 622 int index, String value) {1194 int index, java.lang.String value) { 623 1195 if (value == null) { 624 1196 throw new NullPointerException(); … … 629 1201 return this; 630 1202 } 631 public Builder addOptionalFeatures(String value) { 1203 /** 1204 * <code>repeated string optional_features = 5;</code> 1205 */ 1206 public Builder addOptionalFeatures( 1207 java.lang.String value) { 632 1208 if (value == null) { 633 1209 throw new NullPointerException(); … … 638 1214 return this; 639 1215 } 1216 /** 1217 * <code>repeated string optional_features = 5;</code> 1218 */ 640 1219 public Builder addAllOptionalFeatures( 641 java.lang.Iterable< String> values) {1220 java.lang.Iterable<java.lang.String> values) { 642 1221 ensureOptionalFeaturesIsMutable(); 643 1222 super.addAll(values, optionalFeatures_); … … 645 1224 return this; 646 1225 } 1226 /** 1227 * <code>repeated string optional_features = 5;</code> 1228 */ 647 1229 public Builder clearOptionalFeatures() { 648 1230 optionalFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; … … 651 1233 return this; 652 1234 } 653 void addOptionalFeatures(com.google.protobuf.ByteString value) { 654 ensureOptionalFeaturesIsMutable(); 1235 /** 1236 * <code>repeated string optional_features = 5;</code> 1237 */ 1238 public Builder addOptionalFeaturesBytes( 1239 com.google.protobuf.ByteString value) { 1240 if (value == null) { 1241 throw new NullPointerException(); 1242 } 1243 ensureOptionalFeaturesIsMutable(); 655 1244 optionalFeatures_.add(value); 656 1245 657 } 658 1246 return this; 1247 } 1248 659 1249 // optional string writingprogram = 16; 660 1250 private java.lang.Object writingprogram_ = ""; 1251 /** 1252 * <code>optional string writingprogram = 16;</code> 1253 */ 661 1254 public boolean hasWritingprogram() { 662 1255 return ((bitField0_ & 0x00000008) == 0x00000008); 663 1256 } 664 public String getWritingprogram() { 1257 /** 1258 * <code>optional string writingprogram = 16;</code> 1259 */ 1260 public java.lang.String getWritingprogram() { 665 1261 java.lang.Object ref = writingprogram_; 666 if (!(ref instanceof String)) { 667 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 1262 if (!(ref instanceof java.lang.String)) { 1263 java.lang.String s = ((com.google.protobuf.ByteString) ref) 1264 .toStringUtf8(); 668 1265 writingprogram_ = s; 669 1266 return s; 670 1267 } else { 671 return (String) ref; 672 } 673 } 674 public Builder setWritingprogram(String value) { 1268 return (java.lang.String) ref; 1269 } 1270 } 1271 /** 1272 * <code>optional string writingprogram = 16;</code> 1273 */ 1274 public com.google.protobuf.ByteString 1275 getWritingprogramBytes() { 1276 java.lang.Object ref = writingprogram_; 1277 if (ref instanceof String) { 1278 com.google.protobuf.ByteString b = 1279 com.google.protobuf.ByteString.copyFromUtf8( 1280 (java.lang.String) ref); 1281 writingprogram_ = b; 1282 return b; 1283 } else { 1284 return (com.google.protobuf.ByteString) ref; 1285 } 1286 } 1287 /** 1288 * <code>optional string writingprogram = 16;</code> 1289 */ 1290 public Builder setWritingprogram( 1291 java.lang.String value) { 675 1292 if (value == null) { 676 1293 throw new NullPointerException(); … … 681 1298 return this; 682 1299 } 1300 /** 1301 * <code>optional string writingprogram = 16;</code> 1302 */ 683 1303 public Builder clearWritingprogram() { 684 1304 bitField0_ = (bitField0_ & ~0x00000008); … … 687 1307 return this; 688 1308 } 689 void setWritingprogram(com.google.protobuf.ByteString value) { 690 bitField0_ |= 0x00000008; 1309 /** 1310 * <code>optional string writingprogram = 16;</code> 1311 */ 1312 public Builder setWritingprogramBytes( 1313 com.google.protobuf.ByteString value) { 1314 if (value == null) { 1315 throw new NullPointerException(); 1316 } 1317 bitField0_ |= 0x00000008; 691 1318 writingprogram_ = value; 692 1319 693 } 694 1320 return this; 1321 } 1322 695 1323 // optional string source = 17; 696 1324 private java.lang.Object source_ = ""; 1325 /** 1326 * <code>optional string source = 17;</code> 1327 * 1328 * <pre> 1329 * From the bbox field. 1330 * </pre> 1331 */ 697 1332 public boolean hasSource() { 698 1333 return ((bitField0_ & 0x00000010) == 0x00000010); 699 1334 } 700 public String getSource() { 1335 /** 1336 * <code>optional string source = 17;</code> 1337 * 1338 * <pre> 1339 * From the bbox field. 1340 * </pre> 1341 */ 1342 public java.lang.String getSource() { 701 1343 java.lang.Object ref = source_; 702 if (!(ref instanceof String)) { 703 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); 1344 if (!(ref instanceof java.lang.String)) { 1345 java.lang.String s = ((com.google.protobuf.ByteString) ref) 1346 .toStringUtf8(); 704 1347 source_ = s; 705 1348 return s; 706 1349 } else { 707 return (String) ref; 708 } 709 } 710 public Builder setSource(String value) { 1350 return (java.lang.String) ref; 1351 } 1352 } 1353 /** 1354 * <code>optional string source = 17;</code> 1355 * 1356 * <pre> 1357 * From the bbox field. 1358 * </pre> 1359 */ 1360 public com.google.protobuf.ByteString 1361 getSourceBytes() { 1362 java.lang.Object ref = source_; 1363 if (ref instanceof String) { 1364 com.google.protobuf.ByteString b = 1365 com.google.protobuf.ByteString.copyFromUtf8( 1366 (java.lang.String) ref); 1367 source_ = b; 1368 return b; 1369 } else { 1370 return (com.google.protobuf.ByteString) ref; 1371 } 1372 } 1373 /** 1374 * <code>optional string source = 17;</code> 1375 * 1376 * <pre> 1377 * From the bbox field. 1378 * </pre> 1379 */ 1380 public Builder setSource( 1381 java.lang.String value) { 711 1382 if (value == null) { 712 1383 throw new NullPointerException(); … … 717 1388 return this; 718 1389 } 1390 /** 1391 * <code>optional string source = 17;</code> 1392 * 1393 * <pre> 1394 * From the bbox field. 1395 * </pre> 1396 */ 719 1397 public Builder clearSource() { 720 1398 bitField0_ = (bitField0_ & ~0x00000010); … … 723 1401 return this; 724 1402 } 725 void setSource(com.google.protobuf.ByteString value) { 726 bitField0_ |= 0x00000010; 1403 /** 1404 * <code>optional string source = 17;</code> 1405 * 1406 * <pre> 1407 * From the bbox field. 1408 * </pre> 1409 */ 1410 public Builder setSourceBytes( 1411 com.google.protobuf.ByteString value) { 1412 if (value == null) { 1413 throw new NullPointerException(); 1414 } 1415 bitField0_ |= 0x00000010; 727 1416 source_ = value; 728 1417 729 } 730 1418 return this; 1419 } 1420 1421 // optional int64 osmosis_replication_timestamp = 32; 1422 private long osmosisReplicationTimestamp_ ; 1423 /** 1424 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1425 * 1426 * <pre> 1427 * replication timestamp, expressed in seconds since the epoch, 1428 * otherwise the same value as in the "timestamp=..." field 1429 * in the state.txt file used by Osmosis 1430 * </pre> 1431 */ 1432 public boolean hasOsmosisReplicationTimestamp() { 1433 return ((bitField0_ & 0x00000020) == 0x00000020); 1434 } 1435 /** 1436 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1437 * 1438 * <pre> 1439 * replication timestamp, expressed in seconds since the epoch, 1440 * otherwise the same value as in the "timestamp=..." field 1441 * in the state.txt file used by Osmosis 1442 * </pre> 1443 */ 1444 public long getOsmosisReplicationTimestamp() { 1445 return osmosisReplicationTimestamp_; 1446 } 1447 /** 1448 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1449 * 1450 * <pre> 1451 * replication timestamp, expressed in seconds since the epoch, 1452 * otherwise the same value as in the "timestamp=..." field 1453 * in the state.txt file used by Osmosis 1454 * </pre> 1455 */ 1456 public Builder setOsmosisReplicationTimestamp(long value) { 1457 bitField0_ |= 0x00000020; 1458 osmosisReplicationTimestamp_ = value; 1459 1460 return this; 1461 } 1462 /** 1463 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1464 * 1465 * <pre> 1466 * replication timestamp, expressed in seconds since the epoch, 1467 * otherwise the same value as in the "timestamp=..." field 1468 * in the state.txt file used by Osmosis 1469 * </pre> 1470 */ 1471 public Builder clearOsmosisReplicationTimestamp() { 1472 bitField0_ = (bitField0_ & ~0x00000020); 1473 osmosisReplicationTimestamp_ = 0L; 1474 1475 return this; 1476 } 1477 1478 // optional int64 osmosis_replication_sequence_number = 33; 1479 private long osmosisReplicationSequenceNumber_ ; 1480 /** 1481 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 1482 * 1483 * <pre> 1484 * replication sequence number (sequenceNumber in state.txt) 1485 * </pre> 1486 */ 1487 public boolean hasOsmosisReplicationSequenceNumber() { 1488 return ((bitField0_ & 0x00000040) == 0x00000040); 1489 } 1490 /** 1491 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 1492 * 1493 * <pre> 1494 * replication sequence number (sequenceNumber in state.txt) 1495 * </pre> 1496 */ 1497 public long getOsmosisReplicationSequenceNumber() { 1498 return osmosisReplicationSequenceNumber_; 1499 } 1500 /** 1501 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 1502 * 1503 * <pre> 1504 * replication sequence number (sequenceNumber in state.txt) 1505 * </pre> 1506 */ 1507 public Builder setOsmosisReplicationSequenceNumber(long value) { 1508 bitField0_ |= 0x00000040; 1509 osmosisReplicationSequenceNumber_ = value; 1510 1511 return this; 1512 } 1513 /** 1514 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 1515 * 1516 * <pre> 1517 * replication sequence number (sequenceNumber in state.txt) 1518 * </pre> 1519 */ 1520 public Builder clearOsmosisReplicationSequenceNumber() { 1521 bitField0_ = (bitField0_ & ~0x00000040); 1522 osmosisReplicationSequenceNumber_ = 0L; 1523 1524 return this; 1525 } 1526 1527 // optional string osmosis_replication_base_url = 34; 1528 private java.lang.Object osmosisReplicationBaseUrl_ = ""; 1529 /** 1530 * <code>optional string osmosis_replication_base_url = 34;</code> 1531 * 1532 * <pre> 1533 * replication base URL (from Osmosis' configuration.txt file) 1534 * </pre> 1535 */ 1536 public boolean hasOsmosisReplicationBaseUrl() { 1537 return ((bitField0_ & 0x00000080) == 0x00000080); 1538 } 1539 /** 1540 * <code>optional string osmosis_replication_base_url = 34;</code> 1541 * 1542 * <pre> 1543 * replication base URL (from Osmosis' configuration.txt file) 1544 * </pre> 1545 */ 1546 public java.lang.String getOsmosisReplicationBaseUrl() { 1547 java.lang.Object ref = osmosisReplicationBaseUrl_; 1548 if (!(ref instanceof java.lang.String)) { 1549 java.lang.String s = ((com.google.protobuf.ByteString) ref) 1550 .toStringUtf8(); 1551 osmosisReplicationBaseUrl_ = s; 1552 return s; 1553 } else { 1554 return (java.lang.String) ref; 1555 } 1556 } 1557 /** 1558 * <code>optional string osmosis_replication_base_url = 34;</code> 1559 * 1560 * <pre> 1561 * replication base URL (from Osmosis' configuration.txt file) 1562 * </pre> 1563 */ 1564 public com.google.protobuf.ByteString 1565 getOsmosisReplicationBaseUrlBytes() { 1566 java.lang.Object ref = osmosisReplicationBaseUrl_; 1567 if (ref instanceof String) { 1568 com.google.protobuf.ByteString b = 1569 com.google.protobuf.ByteString.copyFromUtf8( 1570 (java.lang.String) ref); 1571 osmosisReplicationBaseUrl_ = b; 1572 return b; 1573 } else { 1574 return (com.google.protobuf.ByteString) ref; 1575 } 1576 } 1577 /** 1578 * <code>optional string osmosis_replication_base_url = 34;</code> 1579 * 1580 * <pre> 1581 * replication base URL (from Osmosis' configuration.txt file) 1582 * </pre> 1583 */ 1584 public Builder setOsmosisReplicationBaseUrl( 1585 java.lang.String value) { 1586 if (value == null) { 1587 throw new NullPointerException(); 1588 } 1589 bitField0_ |= 0x00000080; 1590 osmosisReplicationBaseUrl_ = value; 1591 1592 return this; 1593 } 1594 /** 1595 * <code>optional string osmosis_replication_base_url = 34;</code> 1596 * 1597 * <pre> 1598 * replication base URL (from Osmosis' configuration.txt file) 1599 * </pre> 1600 */ 1601 public Builder clearOsmosisReplicationBaseUrl() { 1602 bitField0_ = (bitField0_ & ~0x00000080); 1603 osmosisReplicationBaseUrl_ = getDefaultInstance().getOsmosisReplicationBaseUrl(); 1604 1605 return this; 1606 } 1607 /** 1608 * <code>optional string osmosis_replication_base_url = 34;</code> 1609 * 1610 * <pre> 1611 * replication base URL (from Osmosis' configuration.txt file) 1612 * </pre> 1613 */ 1614 public Builder setOsmosisReplicationBaseUrlBytes( 1615 com.google.protobuf.ByteString value) { 1616 if (value == null) { 1617 throw new NullPointerException(); 1618 } 1619 bitField0_ |= 0x00000080; 1620 osmosisReplicationBaseUrl_ = value; 1621 1622 return this; 1623 } 1624 731 1625 // @@protoc_insertion_point(builder_scope:OSMPBF.HeaderBlock) 732 1626 } 733 1627 734 1628 static { 735 1629 defaultInstance = new HeaderBlock(true); 736 1630 defaultInstance.initFields(); 737 1631 } 738 1632 739 1633 // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBlock) 740 1634 } 741 1635 742 1636 public interface HeaderBBoxOrBuilder 743 1637 extends com.google.protobuf.MessageLiteOrBuilder { 744 1638 745 1639 // required sint64 left = 1; 1640 /** 1641 * <code>required sint64 left = 1;</code> 1642 */ 746 1643 boolean hasLeft(); 1644 /** 1645 * <code>required sint64 left = 1;</code> 1646 */ 747 1647 long getLeft(); 748 1648 749 1649 // required sint64 right = 2; 1650 /** 1651 * <code>required sint64 right = 2;</code> 1652 */ 750 1653 boolean hasRight(); 1654 /** 1655 * <code>required sint64 right = 2;</code> 1656 */ 751 1657 long getRight(); 752 1658 753 1659 // required sint64 top = 3; 1660 /** 1661 * <code>required sint64 top = 3;</code> 1662 */ 754 1663 boolean hasTop(); 1664 /** 1665 * <code>required sint64 top = 3;</code> 1666 */ 755 1667 long getTop(); 756 1668 757 1669 // required sint64 bottom = 4; 1670 /** 1671 * <code>required sint64 bottom = 4;</code> 1672 */ 758 1673 boolean hasBottom(); 1674 /** 1675 * <code>required sint64 bottom = 4;</code> 1676 */ 759 1677 long getBottom(); 760 1678 } 1679 /** 1680 * Protobuf type {@code OSMPBF.HeaderBBox} 1681 */ 761 1682 public static final class HeaderBBox extends 762 1683 com.google.protobuf.GeneratedMessageLite 763 1684 implements HeaderBBoxOrBuilder { 764 1685 // Use HeaderBBox.newBuilder() to construct. 765 private HeaderBBox( Builder builder) {1686 private HeaderBBox(com.google.protobuf.GeneratedMessageLite.Builder builder) { 766 1687 super(builder); 1688 767 1689 } 768 1690 private HeaderBBox(boolean noInit) {} 769 1691 770 1692 private static final HeaderBBox defaultInstance; 771 1693 public static HeaderBBox getDefaultInstance() { 772 1694 return defaultInstance; 773 1695 } 774 1696 775 1697 public HeaderBBox getDefaultInstanceForType() { 776 1698 return defaultInstance; 777 1699 } 778 779 private int bitField0_; 780 // required sint64 left = 1; 781 public static final int LEFT_FIELD_NUMBER = 1; 782 private long left_; 783 public boolean hasLeft() { 784 return ((bitField0_ & 0x00000001) == 0x00000001); 785 } 786 public long getLeft() { 787 return left_; 788 } 789 790 // required sint64 right = 2; 791 public static final int RIGHT_FIELD_NUMBER = 2; 792 private long right_; 793 public boolean hasRight() { 794 return ((bitField0_ & 0x00000002) == 0x00000002); 795 } 796 public long getRight() { 797 return right_; 798 } 799 800 // required sint64 top = 3; 801 public static final int TOP_FIELD_NUMBER = 3; 802 private long top_; 803 public boolean hasTop() { 804 return ((bitField0_ & 0x00000004) == 0x00000004); 805 } 806 public long getTop() { 807 return top_; 808 } 809 810 // required sint64 bottom = 4; 811 public static final int BOTTOM_FIELD_NUMBER = 4; 812 private long bottom_; 813 public boolean hasBottom() { 814 return ((bitField0_ & 0x00000008) == 0x00000008); 815 } 816 public long getBottom() { 817 return bottom_; 818 } 819 820 private void initFields() { 821 left_ = 0L; 822 right_ = 0L; 823 top_ = 0L; 824 bottom_ = 0L; 825 } 826 private byte memoizedIsInitialized = -1; 827 public final boolean isInitialized() { 828 byte isInitialized = memoizedIsInitialized; 829 if (isInitialized != -1) return isInitialized == 1; 830 831 if (!hasLeft()) { 832 memoizedIsInitialized = 0; 833 return false; 834 } 835 if (!hasRight()) { 836 memoizedIsInitialized = 0; 837 return false; 838 } 839 if (!hasTop()) { 840 memoizedIsInitialized = 0; 841 return false; 842 } 843 if (!hasBottom()) { 844 memoizedIsInitialized = 0; 845 return false; 846 } 847 memoizedIsInitialized = 1; 848 return true; 849 } 850 851 public void writeTo(com.google.protobuf.CodedOutputStream output) 852 throws java.io.IOException { 853 getSerializedSize(); 854 if (((bitField0_ & 0x00000001) == 0x00000001)) { 855 output.writeSInt64(1, left_); 856 } 857 if (((bitField0_ & 0x00000002) == 0x00000002)) { 858 output.writeSInt64(2, right_); 859 } 860 if (((bitField0_ & 0x00000004) == 0x00000004)) { 861 output.writeSInt64(3, top_); 862 } 863 if (((bitField0_ & 0x00000008) == 0x00000008)) { 864 output.writeSInt64(4, bottom_); 865 } 866 } 867 868 private int memoizedSerializedSize = -1; 869 public int getSerializedSize() { 870 int size = memoizedSerializedSize; 871 if (size != -1) return size; 872 873 size = 0; 874 if (((bitField0_ & 0x00000001) == 0x00000001)) { 875 size += com.google.protobuf.CodedOutputStream 876 .computeSInt64Size(1, left_); 877 } 878 if (((bitField0_ & 0x00000002) == 0x00000002)) { 879 size += com.google.protobuf.CodedOutputStream 880 .computeSInt64Size(2, right_); 881 } 882 if (((bitField0_ & 0x00000004) == 0x00000004)) { 883 size += com.google.protobuf.CodedOutputStream 884 .computeSInt64Size(3, top_); 885 } 886 if (((bitField0_ & 0x00000008) == 0x00000008)) { 887 size += com.google.protobuf.CodedOutputStream 888 .computeSInt64Size(4, bottom_); 889 } 890 memoizedSerializedSize = size; 891 return size; 892 } 893 894 private static final long serialVersionUID = 0L; 895 @java.lang.Override 896 protected java.lang.Object writeReplace() 897 throws java.io.ObjectStreamException { 898 return super.writeReplace(); 899 } 900 901 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 902 com.google.protobuf.ByteString data) 903 throws com.google.protobuf.InvalidProtocolBufferException { 904 return newBuilder().mergeFrom(data).buildParsed(); 905 } 906 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 907 com.google.protobuf.ByteString data, 1700 1701 private HeaderBBox( 1702 com.google.protobuf.CodedInputStream input, 908 1703 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 909 1704 throws com.google.protobuf.InvalidProtocolBufferException { 910 return newBuilder().mergeFrom(data, extensionRegistry) 911 .buildParsed(); 912 } 913 public static crosby.binary.Osmformat.HeaderBBox parseFrom(byte[] data) 914 throws com.google.protobuf.InvalidProtocolBufferException { 915 return newBuilder().mergeFrom(data).buildParsed(); 916 } 917 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 918 byte[] data, 919 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 920 throws com.google.protobuf.InvalidProtocolBufferException { 921 return newBuilder().mergeFrom(data, extensionRegistry) 922 .buildParsed(); 923 } 924 public static crosby.binary.Osmformat.HeaderBBox parseFrom(java.io.InputStream input) 925 throws java.io.IOException { 926 return newBuilder().mergeFrom(input).buildParsed(); 927 } 928 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 929 java.io.InputStream input, 930 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 931 throws java.io.IOException { 932 return newBuilder().mergeFrom(input, extensionRegistry) 933 .buildParsed(); 934 } 935 public static crosby.binary.Osmformat.HeaderBBox parseDelimitedFrom(java.io.InputStream input) 936 throws java.io.IOException { 937 Builder builder = newBuilder(); 938 if (builder.mergeDelimitedFrom(input)) { 939 return builder.buildParsed(); 940 } else { 941 return null; 942 } 943 } 944 public static crosby.binary.Osmformat.HeaderBBox parseDelimitedFrom( 945 java.io.InputStream input, 946 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 947 throws java.io.IOException { 948 Builder builder = newBuilder(); 949 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 950 return builder.buildParsed(); 951 } else { 952 return null; 953 } 954 } 955 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 956 com.google.protobuf.CodedInputStream input) 957 throws java.io.IOException { 958 return newBuilder().mergeFrom(input).buildParsed(); 959 } 960 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 961 com.google.protobuf.CodedInputStream input, 962 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 963 throws java.io.IOException { 964 return newBuilder().mergeFrom(input, extensionRegistry) 965 .buildParsed(); 966 } 967 968 public static Builder newBuilder() { return Builder.create(); } 969 public Builder newBuilderForType() { return newBuilder(); } 970 public static Builder newBuilder(crosby.binary.Osmformat.HeaderBBox prototype) { 971 return newBuilder().mergeFrom(prototype); 972 } 973 public Builder toBuilder() { return newBuilder(this); } 974 975 public static final class Builder extends 976 com.google.protobuf.GeneratedMessageLite.Builder< 977 crosby.binary.Osmformat.HeaderBBox, Builder> 978 implements crosby.binary.Osmformat.HeaderBBoxOrBuilder { 979 // Construct using crosby.binary.Osmformat.HeaderBBox.newBuilder() 980 private Builder() { 981 maybeForceBuilderInitialization(); 982 } 983 984 private void maybeForceBuilderInitialization() { 985 } 986 private static Builder create() { 987 return new Builder(); 988 } 989 990 public Builder clear() { 991 super.clear(); 992 left_ = 0L; 993 bitField0_ = (bitField0_ & ~0x00000001); 994 right_ = 0L; 995 bitField0_ = (bitField0_ & ~0x00000002); 996 top_ = 0L; 997 bitField0_ = (bitField0_ & ~0x00000004); 998 bottom_ = 0L; 999 bitField0_ = (bitField0_ & ~0x00000008); 1000 return this; 1001 } 1002 1003 public Builder clone() { 1004 return create().mergeFrom(buildPartial()); 1005 } 1006 1007 public crosby.binary.Osmformat.HeaderBBox getDefaultInstanceForType() { 1008 return crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); 1009 } 1010 1011 public crosby.binary.Osmformat.HeaderBBox build() { 1012 crosby.binary.Osmformat.HeaderBBox result = buildPartial(); 1013 if (!result.isInitialized()) { 1014 throw newUninitializedMessageException(result); 1015 } 1016 return result; 1017 } 1018 1019 private crosby.binary.Osmformat.HeaderBBox buildParsed() 1020 throws com.google.protobuf.InvalidProtocolBufferException { 1021 crosby.binary.Osmformat.HeaderBBox result = buildPartial(); 1022 if (!result.isInitialized()) { 1023 throw newUninitializedMessageException( 1024 result).asInvalidProtocolBufferException(); 1025 } 1026 return result; 1027 } 1028 1029 public crosby.binary.Osmformat.HeaderBBox buildPartial() { 1030 crosby.binary.Osmformat.HeaderBBox result = new crosby.binary.Osmformat.HeaderBBox(this); 1031 int from_bitField0_ = bitField0_; 1032 int to_bitField0_ = 0; 1033 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 1034 to_bitField0_ |= 0x00000001; 1035 } 1036 result.left_ = left_; 1037 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 1038 to_bitField0_ |= 0x00000002; 1039 } 1040 result.right_ = right_; 1041 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 1042 to_bitField0_ |= 0x00000004; 1043 } 1044 result.top_ = top_; 1045 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 1046 to_bitField0_ |= 0x00000008; 1047 } 1048 result.bottom_ = bottom_; 1049 result.bitField0_ = to_bitField0_; 1050 return result; 1051 } 1052 1053 public Builder mergeFrom(crosby.binary.Osmformat.HeaderBBox other) { 1054 if (other == crosby.binary.Osmformat.HeaderBBox.getDefaultInstance()) return this; 1055 if (other.hasLeft()) { 1056 setLeft(other.getLeft()); 1057 } 1058 if (other.hasRight()) { 1059 setRight(other.getRight()); 1060 } 1061 if (other.hasTop()) { 1062 setTop(other.getTop()); 1063 } 1064 if (other.hasBottom()) { 1065 setBottom(other.getBottom()); 1066 } 1067 return this; 1068 } 1069 1070 public final boolean isInitialized() { 1071 if (!hasLeft()) { 1072 1073 return false; 1074 } 1075 if (!hasRight()) { 1076 1077 return false; 1078 } 1079 if (!hasTop()) { 1080 1081 return false; 1082 } 1083 if (!hasBottom()) { 1084 1085 return false; 1086 } 1087 return true; 1088 } 1089 1090 public Builder mergeFrom( 1091 com.google.protobuf.CodedInputStream input, 1092 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1093 throws java.io.IOException { 1094 while (true) { 1705 initFields(); 1706 int mutable_bitField0_ = 0; 1707 try { 1708 boolean done = false; 1709 while (!done) { 1095 1710 int tag = input.readTag(); 1096 1711 switch (tag) { 1097 1712 case 0: 1098 1099 return this;1713 done = true; 1714 break; 1100 1715 default: { 1101 if (!parseUnknownField(input, extensionRegistry, tag)) {1102 1103 return this;1716 if (!parseUnknownField(input, 1717 extensionRegistry, tag)) { 1718 done = true; 1104 1719 } 1105 1720 break; … … 1127 1742 } 1128 1743 } 1129 } 1130 1744 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1745 throw e.setUnfinishedMessage(this); 1746 } catch (java.io.IOException e) { 1747 throw new com.google.protobuf.InvalidProtocolBufferException( 1748 e.getMessage()).setUnfinishedMessage(this); 1749 } finally { 1750 makeExtensionsImmutable(); 1751 } 1752 } 1753 public static com.google.protobuf.Parser<HeaderBBox> PARSER = 1754 new com.google.protobuf.AbstractParser<HeaderBBox>() { 1755 public HeaderBBox parsePartialFrom( 1756 com.google.protobuf.CodedInputStream input, 1757 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1758 throws com.google.protobuf.InvalidProtocolBufferException { 1759 return new HeaderBBox(input, extensionRegistry); 1760 } 1761 }; 1762 1763 @java.lang.Override 1764 public com.google.protobuf.Parser<HeaderBBox> getParserForType() { 1765 return PARSER; 1766 } 1767 1768 private int bitField0_; 1769 // required sint64 left = 1; 1770 public static final int LEFT_FIELD_NUMBER = 1; 1771 private long left_; 1772 /** 1773 * <code>required sint64 left = 1;</code> 1774 */ 1775 public boolean hasLeft() { 1776 return ((bitField0_ & 0x00000001) == 0x00000001); 1777 } 1778 /** 1779 * <code>required sint64 left = 1;</code> 1780 */ 1781 public long getLeft() { 1782 return left_; 1783 } 1784 1785 // required sint64 right = 2; 1786 public static final int RIGHT_FIELD_NUMBER = 2; 1787 private long right_; 1788 /** 1789 * <code>required sint64 right = 2;</code> 1790 */ 1791 public boolean hasRight() { 1792 return ((bitField0_ & 0x00000002) == 0x00000002); 1793 } 1794 /** 1795 * <code>required sint64 right = 2;</code> 1796 */ 1797 public long getRight() { 1798 return right_; 1799 } 1800 1801 // required sint64 top = 3; 1802 public static final int TOP_FIELD_NUMBER = 3; 1803 private long top_; 1804 /** 1805 * <code>required sint64 top = 3;</code> 1806 */ 1807 public boolean hasTop() { 1808 return ((bitField0_ & 0x00000004) == 0x00000004); 1809 } 1810 /** 1811 * <code>required sint64 top = 3;</code> 1812 */ 1813 public long getTop() { 1814 return top_; 1815 } 1816 1817 // required sint64 bottom = 4; 1818 public static final int BOTTOM_FIELD_NUMBER = 4; 1819 private long bottom_; 1820 /** 1821 * <code>required sint64 bottom = 4;</code> 1822 */ 1823 public boolean hasBottom() { 1824 return ((bitField0_ & 0x00000008) == 0x00000008); 1825 } 1826 /** 1827 * <code>required sint64 bottom = 4;</code> 1828 */ 1829 public long getBottom() { 1830 return bottom_; 1831 } 1832 1833 private void initFields() { 1834 left_ = 0L; 1835 right_ = 0L; 1836 top_ = 0L; 1837 bottom_ = 0L; 1838 } 1839 private byte memoizedIsInitialized = -1; 1840 public final boolean isInitialized() { 1841 byte isInitialized = memoizedIsInitialized; 1842 if (isInitialized != -1) return isInitialized == 1; 1843 1844 if (!hasLeft()) { 1845 memoizedIsInitialized = 0; 1846 return false; 1847 } 1848 if (!hasRight()) { 1849 memoizedIsInitialized = 0; 1850 return false; 1851 } 1852 if (!hasTop()) { 1853 memoizedIsInitialized = 0; 1854 return false; 1855 } 1856 if (!hasBottom()) { 1857 memoizedIsInitialized = 0; 1858 return false; 1859 } 1860 memoizedIsInitialized = 1; 1861 return true; 1862 } 1863 1864 public void writeTo(com.google.protobuf.CodedOutputStream output) 1865 throws java.io.IOException { 1866 getSerializedSize(); 1867 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1868 output.writeSInt64(1, left_); 1869 } 1870 if (((bitField0_ & 0x00000002) == 0x00000002)) { 1871 output.writeSInt64(2, right_); 1872 } 1873 if (((bitField0_ & 0x00000004) == 0x00000004)) { 1874 output.writeSInt64(3, top_); 1875 } 1876 if (((bitField0_ & 0x00000008) == 0x00000008)) { 1877 output.writeSInt64(4, bottom_); 1878 } 1879 } 1880 1881 private int memoizedSerializedSize = -1; 1882 public int getSerializedSize() { 1883 int size = memoizedSerializedSize; 1884 if (size != -1) return size; 1885 1886 size = 0; 1887 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1888 size += com.google.protobuf.CodedOutputStream 1889 .computeSInt64Size(1, left_); 1890 } 1891 if (((bitField0_ & 0x00000002) == 0x00000002)) { 1892 size += com.google.protobuf.CodedOutputStream 1893 .computeSInt64Size(2, right_); 1894 } 1895 if (((bitField0_ & 0x00000004) == 0x00000004)) { 1896 size += com.google.protobuf.CodedOutputStream 1897 .computeSInt64Size(3, top_); 1898 } 1899 if (((bitField0_ & 0x00000008) == 0x00000008)) { 1900 size += com.google.protobuf.CodedOutputStream 1901 .computeSInt64Size(4, bottom_); 1902 } 1903 memoizedSerializedSize = size; 1904 return size; 1905 } 1906 1907 private static final long serialVersionUID = 0L; 1908 @java.lang.Override 1909 protected java.lang.Object writeReplace() 1910 throws java.io.ObjectStreamException { 1911 return super.writeReplace(); 1912 } 1913 1914 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 1915 com.google.protobuf.ByteString data) 1916 throws com.google.protobuf.InvalidProtocolBufferException { 1917 return PARSER.parseFrom(data); 1918 } 1919 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 1920 com.google.protobuf.ByteString data, 1921 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1922 throws com.google.protobuf.InvalidProtocolBufferException { 1923 return PARSER.parseFrom(data, extensionRegistry); 1924 } 1925 public static crosby.binary.Osmformat.HeaderBBox parseFrom(byte[] data) 1926 throws com.google.protobuf.InvalidProtocolBufferException { 1927 return PARSER.parseFrom(data); 1928 } 1929 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 1930 byte[] data, 1931 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1932 throws com.google.protobuf.InvalidProtocolBufferException { 1933 return PARSER.parseFrom(data, extensionRegistry); 1934 } 1935 public static crosby.binary.Osmformat.HeaderBBox parseFrom(java.io.InputStream input) 1936 throws java.io.IOException { 1937 return PARSER.parseFrom(input); 1938 } 1939 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 1940 java.io.InputStream input, 1941 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1942 throws java.io.IOException { 1943 return PARSER.parseFrom(input, extensionRegistry); 1944 } 1945 public static crosby.binary.Osmformat.HeaderBBox parseDelimitedFrom(java.io.InputStream input) 1946 throws java.io.IOException { 1947 return PARSER.parseDelimitedFrom(input); 1948 } 1949 public static crosby.binary.Osmformat.HeaderBBox parseDelimitedFrom( 1950 java.io.InputStream input, 1951 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1952 throws java.io.IOException { 1953 return PARSER.parseDelimitedFrom(input, extensionRegistry); 1954 } 1955 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 1956 com.google.protobuf.CodedInputStream input) 1957 throws java.io.IOException { 1958 return PARSER.parseFrom(input); 1959 } 1960 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 1961 com.google.protobuf.CodedInputStream input, 1962 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1963 throws java.io.IOException { 1964 return PARSER.parseFrom(input, extensionRegistry); 1965 } 1966 1967 public static Builder newBuilder() { return Builder.create(); } 1968 public Builder newBuilderForType() { return newBuilder(); } 1969 public static Builder newBuilder(crosby.binary.Osmformat.HeaderBBox prototype) { 1970 return newBuilder().mergeFrom(prototype); 1971 } 1972 public Builder toBuilder() { return newBuilder(this); } 1973 1974 /** 1975 * Protobuf type {@code OSMPBF.HeaderBBox} 1976 */ 1977 public static final class Builder extends 1978 com.google.protobuf.GeneratedMessageLite.Builder< 1979 crosby.binary.Osmformat.HeaderBBox, Builder> 1980 implements crosby.binary.Osmformat.HeaderBBoxOrBuilder { 1981 // Construct using crosby.binary.Osmformat.HeaderBBox.newBuilder() 1982 private Builder() { 1983 maybeForceBuilderInitialization(); 1984 } 1985 1986 private void maybeForceBuilderInitialization() { 1987 } 1988 private static Builder create() { 1989 return new Builder(); 1990 } 1991 1992 public Builder clear() { 1993 super.clear(); 1994 left_ = 0L; 1995 bitField0_ = (bitField0_ & ~0x00000001); 1996 right_ = 0L; 1997 bitField0_ = (bitField0_ & ~0x00000002); 1998 top_ = 0L; 1999 bitField0_ = (bitField0_ & ~0x00000004); 2000 bottom_ = 0L; 2001 bitField0_ = (bitField0_ & ~0x00000008); 2002 return this; 2003 } 2004 2005 public Builder clone() { 2006 return create().mergeFrom(buildPartial()); 2007 } 2008 2009 public crosby.binary.Osmformat.HeaderBBox getDefaultInstanceForType() { 2010 return crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); 2011 } 2012 2013 public crosby.binary.Osmformat.HeaderBBox build() { 2014 crosby.binary.Osmformat.HeaderBBox result = buildPartial(); 2015 if (!result.isInitialized()) { 2016 throw newUninitializedMessageException(result); 2017 } 2018 return result; 2019 } 2020 2021 public crosby.binary.Osmformat.HeaderBBox buildPartial() { 2022 crosby.binary.Osmformat.HeaderBBox result = new crosby.binary.Osmformat.HeaderBBox(this); 2023 int from_bitField0_ = bitField0_; 2024 int to_bitField0_ = 0; 2025 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 2026 to_bitField0_ |= 0x00000001; 2027 } 2028 result.left_ = left_; 2029 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 2030 to_bitField0_ |= 0x00000002; 2031 } 2032 result.right_ = right_; 2033 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 2034 to_bitField0_ |= 0x00000004; 2035 } 2036 result.top_ = top_; 2037 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 2038 to_bitField0_ |= 0x00000008; 2039 } 2040 result.bottom_ = bottom_; 2041 result.bitField0_ = to_bitField0_; 2042 return result; 2043 } 2044 2045 public Builder mergeFrom(crosby.binary.Osmformat.HeaderBBox other) { 2046 if (other == crosby.binary.Osmformat.HeaderBBox.getDefaultInstance()) return this; 2047 if (other.hasLeft()) { 2048 setLeft(other.getLeft()); 2049 } 2050 if (other.hasRight()) { 2051 setRight(other.getRight()); 2052 } 2053 if (other.hasTop()) { 2054 setTop(other.getTop()); 2055 } 2056 if (other.hasBottom()) { 2057 setBottom(other.getBottom()); 2058 } 2059 return this; 2060 } 2061 2062 public final boolean isInitialized() { 2063 if (!hasLeft()) { 2064 2065 return false; 2066 } 2067 if (!hasRight()) { 2068 2069 return false; 2070 } 2071 if (!hasTop()) { 2072 2073 return false; 2074 } 2075 if (!hasBottom()) { 2076 2077 return false; 2078 } 2079 return true; 2080 } 2081 2082 public Builder mergeFrom( 2083 com.google.protobuf.CodedInputStream input, 2084 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2085 throws java.io.IOException { 2086 crosby.binary.Osmformat.HeaderBBox parsedMessage = null; 2087 try { 2088 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 2089 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2090 parsedMessage = (crosby.binary.Osmformat.HeaderBBox) e.getUnfinishedMessage(); 2091 throw e; 2092 } finally { 2093 if (parsedMessage != null) { 2094 mergeFrom(parsedMessage); 2095 } 2096 } 2097 return this; 2098 } 1131 2099 private int bitField0_; 1132 2100 1133 2101 // required sint64 left = 1; 1134 2102 private long left_ ; 2103 /** 2104 * <code>required sint64 left = 1;</code> 2105 */ 1135 2106 public boolean hasLeft() { 1136 2107 return ((bitField0_ & 0x00000001) == 0x00000001); 1137 2108 } 2109 /** 2110 * <code>required sint64 left = 1;</code> 2111 */ 1138 2112 public long getLeft() { 1139 2113 return left_; 1140 2114 } 2115 /** 2116 * <code>required sint64 left = 1;</code> 2117 */ 1141 2118 public Builder setLeft(long value) { 1142 2119 bitField0_ |= 0x00000001; … … 1145 2122 return this; 1146 2123 } 2124 /** 2125 * <code>required sint64 left = 1;</code> 2126 */ 1147 2127 public Builder clearLeft() { 1148 2128 bitField0_ = (bitField0_ & ~0x00000001); … … 1151 2131 return this; 1152 2132 } 1153 2133 1154 2134 // required sint64 right = 2; 1155 2135 private long right_ ; 2136 /** 2137 * <code>required sint64 right = 2;</code> 2138 */ 1156 2139 public boolean hasRight() { 1157 2140 return ((bitField0_ & 0x00000002) == 0x00000002); 1158 2141 } 2142 /** 2143 * <code>required sint64 right = 2;</code> 2144 */ 1159 2145 public long getRight() { 1160 2146 return right_; 1161 2147 } 2148 /** 2149 * <code>required sint64 right = 2;</code> 2150 */ 1162 2151 public Builder setRight(long value) { 1163 2152 bitField0_ |= 0x00000002; … … 1166 2155 return this; 1167 2156 } 2157 /** 2158 * <code>required sint64 right = 2;</code> 2159 */ 1168 2160 public Builder clearRight() { 1169 2161 bitField0_ = (bitField0_ & ~0x00000002); … … 1172 2164 return this; 1173 2165 } 1174 2166 1175 2167 // required sint64 top = 3; 1176 2168 private long top_ ; 2169 /** 2170 * <code>required sint64 top = 3;</code> 2171 */ 1177 2172 public boolean hasTop() { 1178 2173 return ((bitField0_ & 0x00000004) == 0x00000004); 1179 2174 } 2175 /** 2176 * <code>required sint64 top = 3;</code> 2177 */ 1180 2178 public long getTop() { 1181 2179 return top_; 1182 2180 } 2181 /** 2182 * <code>required sint64 top = 3;</code> 2183 */ 1183 2184 public Builder setTop(long value) { 1184 2185 bitField0_ |= 0x00000004; … … 1187 2188 return this; 1188 2189 } 2190 /** 2191 * <code>required sint64 top = 3;</code> 2192 */ 1189 2193 public Builder clearTop() { 1190 2194 bitField0_ = (bitField0_ & ~0x00000004); … … 1193 2197 return this; 1194 2198 } 1195 2199 1196 2200 // required sint64 bottom = 4; 1197 2201 private long bottom_ ; 2202 /** 2203 * <code>required sint64 bottom = 4;</code> 2204 */ 1198 2205 public boolean hasBottom() { 1199 2206 return ((bitField0_ & 0x00000008) == 0x00000008); 1200 2207 } 2208 /** 2209 * <code>required sint64 bottom = 4;</code> 2210 */ 1201 2211 public long getBottom() { 1202 2212 return bottom_; 1203 2213 } 2214 /** 2215 * <code>required sint64 bottom = 4;</code> 2216 */ 1204 2217 public Builder setBottom(long value) { 1205 2218 bitField0_ |= 0x00000008; … … 1208 2221 return this; 1209 2222 } 2223 /** 2224 * <code>required sint64 bottom = 4;</code> 2225 */ 1210 2226 public Builder clearBottom() { 1211 2227 bitField0_ = (bitField0_ & ~0x00000008); … … 1214 2230 return this; 1215 2231 } 1216 2232 1217 2233 // @@protoc_insertion_point(builder_scope:OSMPBF.HeaderBBox) 1218 2234 } 1219 2235 1220 2236 static { 1221 2237 defaultInstance = new HeaderBBox(true); 1222 2238 defaultInstance.initFields(); 1223 2239 } 1224 2240 1225 2241 // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBBox) 1226 2242 } 1227 2243 1228 2244 public interface PrimitiveBlockOrBuilder 1229 2245 extends com.google.protobuf.MessageLiteOrBuilder { 1230 2246 1231 2247 // required .OSMPBF.StringTable stringtable = 1; 2248 /** 2249 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2250 */ 1232 2251 boolean hasStringtable(); 2252 /** 2253 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2254 */ 1233 2255 crosby.binary.Osmformat.StringTable getStringtable(); 1234 2256 1235 2257 // repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; 2258 /** 2259 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2260 */ 1236 2261 java.util.List<crosby.binary.Osmformat.PrimitiveGroup> 1237 2262 getPrimitivegroupList(); 2263 /** 2264 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2265 */ 1238 2266 crosby.binary.Osmformat.PrimitiveGroup getPrimitivegroup(int index); 2267 /** 2268 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2269 */ 1239 2270 int getPrimitivegroupCount(); 1240 2271 1241 2272 // optional int32 granularity = 17 [default = 100]; 2273 /** 2274 * <code>optional int32 granularity = 17 [default = 100];</code> 2275 * 2276 * <pre> 2277 * Granularity, units of nanodegrees, used to store coordinates in this block 2278 * </pre> 2279 */ 1242 2280 boolean hasGranularity(); 2281 /** 2282 * <code>optional int32 granularity = 17 [default = 100];</code> 2283 * 2284 * <pre> 2285 * Granularity, units of nanodegrees, used to store coordinates in this block 2286 * </pre> 2287 */ 1243 2288 int getGranularity(); 1244 2289 1245 2290 // optional int64 lat_offset = 19 [default = 0]; 2291 /** 2292 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2293 * 2294 * <pre> 2295 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2296 * </pre> 2297 */ 1246 2298 boolean hasLatOffset(); 2299 /** 2300 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2301 * 2302 * <pre> 2303 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2304 * </pre> 2305 */ 1247 2306 long getLatOffset(); 1248 2307 1249 2308 // optional int64 lon_offset = 20 [default = 0]; 2309 /** 2310 * <code>optional int64 lon_offset = 20 [default = 0];</code> 2311 */ 1250 2312 boolean hasLonOffset(); 2313 /** 2314 * <code>optional int64 lon_offset = 20 [default = 0];</code> 2315 */ 1251 2316 long getLonOffset(); 1252 2317 1253 2318 // optional int32 date_granularity = 18 [default = 1000]; 2319 /** 2320 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2321 * 2322 * <pre> 2323 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2324 * </pre> 2325 */ 1254 2326 boolean hasDateGranularity(); 2327 /** 2328 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2329 * 2330 * <pre> 2331 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2332 * </pre> 2333 */ 1255 2334 int getDateGranularity(); 1256 2335 } 2336 /** 2337 * Protobuf type {@code OSMPBF.PrimitiveBlock} 2338 */ 1257 2339 public static final class PrimitiveBlock extends 1258 2340 com.google.protobuf.GeneratedMessageLite 1259 2341 implements PrimitiveBlockOrBuilder { 1260 2342 // Use PrimitiveBlock.newBuilder() to construct. 1261 private PrimitiveBlock( Builder builder) {2343 private PrimitiveBlock(com.google.protobuf.GeneratedMessageLite.Builder builder) { 1262 2344 super(builder); 2345 1263 2346 } 1264 2347 private PrimitiveBlock(boolean noInit) {} 1265 2348 1266 2349 private static final PrimitiveBlock defaultInstance; 1267 2350 public static PrimitiveBlock getDefaultInstance() { 1268 2351 return defaultInstance; 1269 2352 } 1270 2353 1271 2354 public PrimitiveBlock getDefaultInstanceForType() { 1272 2355 return defaultInstance; 1273 2356 } 1274 2357 2358 private PrimitiveBlock( 2359 com.google.protobuf.CodedInputStream input, 2360 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2361 throws com.google.protobuf.InvalidProtocolBufferException { 2362 initFields(); 2363 int mutable_bitField0_ = 0; 2364 try { 2365 boolean done = false; 2366 while (!done) { 2367 int tag = input.readTag(); 2368 switch (tag) { 2369 case 0: 2370 done = true; 2371 break; 2372 default: { 2373 if (!parseUnknownField(input, 2374 extensionRegistry, tag)) { 2375 done = true; 2376 } 2377 break; 2378 } 2379 case 10: { 2380 crosby.binary.Osmformat.StringTable.Builder subBuilder = null; 2381 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2382 subBuilder = stringtable_.toBuilder(); 2383 } 2384 stringtable_ = input.readMessage(crosby.binary.Osmformat.StringTable.PARSER, extensionRegistry); 2385 if (subBuilder != null) { 2386 subBuilder.mergeFrom(stringtable_); 2387 stringtable_ = subBuilder.buildPartial(); 2388 } 2389 bitField0_ |= 0x00000001; 2390 break; 2391 } 2392 case 18: { 2393 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 2394 primitivegroup_ = new java.util.ArrayList<crosby.binary.Osmformat.PrimitiveGroup>(); 2395 mutable_bitField0_ |= 0x00000002; 2396 } 2397 primitivegroup_.add(input.readMessage(crosby.binary.Osmformat.PrimitiveGroup.PARSER, extensionRegistry)); 2398 break; 2399 } 2400 case 136: { 2401 bitField0_ |= 0x00000002; 2402 granularity_ = input.readInt32(); 2403 break; 2404 } 2405 case 144: { 2406 bitField0_ |= 0x00000010; 2407 dateGranularity_ = input.readInt32(); 2408 break; 2409 } 2410 case 152: { 2411 bitField0_ |= 0x00000004; 2412 latOffset_ = input.readInt64(); 2413 break; 2414 } 2415 case 160: { 2416 bitField0_ |= 0x00000008; 2417 lonOffset_ = input.readInt64(); 2418 break; 2419 } 2420 } 2421 } 2422 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2423 throw e.setUnfinishedMessage(this); 2424 } catch (java.io.IOException e) { 2425 throw new com.google.protobuf.InvalidProtocolBufferException( 2426 e.getMessage()).setUnfinishedMessage(this); 2427 } finally { 2428 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 2429 primitivegroup_ = java.util.Collections.unmodifiableList(primitivegroup_); 2430 } 2431 makeExtensionsImmutable(); 2432 } 2433 } 2434 public static com.google.protobuf.Parser<PrimitiveBlock> PARSER = 2435 new com.google.protobuf.AbstractParser<PrimitiveBlock>() { 2436 public PrimitiveBlock parsePartialFrom( 2437 com.google.protobuf.CodedInputStream input, 2438 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2439 throws com.google.protobuf.InvalidProtocolBufferException { 2440 return new PrimitiveBlock(input, extensionRegistry); 2441 } 2442 }; 2443 2444 @java.lang.Override 2445 public com.google.protobuf.Parser<PrimitiveBlock> getParserForType() { 2446 return PARSER; 2447 } 2448 1275 2449 private int bitField0_; 1276 2450 // required .OSMPBF.StringTable stringtable = 1; 1277 2451 public static final int STRINGTABLE_FIELD_NUMBER = 1; 1278 2452 private crosby.binary.Osmformat.StringTable stringtable_; 2453 /** 2454 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2455 */ 1279 2456 public boolean hasStringtable() { 1280 2457 return ((bitField0_ & 0x00000001) == 0x00000001); 1281 2458 } 2459 /** 2460 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2461 */ 1282 2462 public crosby.binary.Osmformat.StringTable getStringtable() { 1283 2463 return stringtable_; 1284 2464 } 1285 2465 1286 2466 // repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; 1287 2467 public static final int PRIMITIVEGROUP_FIELD_NUMBER = 2; 1288 2468 private java.util.List<crosby.binary.Osmformat.PrimitiveGroup> primitivegroup_; 2469 /** 2470 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2471 */ 1289 2472 public java.util.List<crosby.binary.Osmformat.PrimitiveGroup> getPrimitivegroupList() { 1290 2473 return primitivegroup_; 1291 2474 } 2475 /** 2476 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2477 */ 1292 2478 public java.util.List<? extends crosby.binary.Osmformat.PrimitiveGroupOrBuilder> 1293 2479 getPrimitivegroupOrBuilderList() { 1294 2480 return primitivegroup_; 1295 2481 } 2482 /** 2483 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2484 */ 1296 2485 public int getPrimitivegroupCount() { 1297 2486 return primitivegroup_.size(); 1298 2487 } 2488 /** 2489 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2490 */ 1299 2491 public crosby.binary.Osmformat.PrimitiveGroup getPrimitivegroup(int index) { 1300 2492 return primitivegroup_.get(index); 1301 2493 } 2494 /** 2495 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2496 */ 1302 2497 public crosby.binary.Osmformat.PrimitiveGroupOrBuilder getPrimitivegroupOrBuilder( 1303 2498 int index) { 1304 2499 return primitivegroup_.get(index); 1305 2500 } 1306 2501 1307 2502 // optional int32 granularity = 17 [default = 100]; 1308 2503 public static final int GRANULARITY_FIELD_NUMBER = 17; 1309 2504 private int granularity_; 2505 /** 2506 * <code>optional int32 granularity = 17 [default = 100];</code> 2507 * 2508 * <pre> 2509 * Granularity, units of nanodegrees, used to store coordinates in this block 2510 * </pre> 2511 */ 1310 2512 public boolean hasGranularity() { 1311 2513 return ((bitField0_ & 0x00000002) == 0x00000002); 1312 2514 } 2515 /** 2516 * <code>optional int32 granularity = 17 [default = 100];</code> 2517 * 2518 * <pre> 2519 * Granularity, units of nanodegrees, used to store coordinates in this block 2520 * </pre> 2521 */ 1313 2522 public int getGranularity() { 1314 2523 return granularity_; 1315 2524 } 1316 2525 1317 2526 // optional int64 lat_offset = 19 [default = 0]; 1318 2527 public static final int LAT_OFFSET_FIELD_NUMBER = 19; 1319 2528 private long latOffset_; 2529 /** 2530 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2531 * 2532 * <pre> 2533 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2534 * </pre> 2535 */ 1320 2536 public boolean hasLatOffset() { 1321 2537 return ((bitField0_ & 0x00000004) == 0x00000004); 1322 2538 } 2539 /** 2540 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2541 * 2542 * <pre> 2543 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2544 * </pre> 2545 */ 1323 2546 public long getLatOffset() { 1324 2547 return latOffset_; 1325 2548 } 1326 2549 1327 2550 // optional int64 lon_offset = 20 [default = 0]; 1328 2551 public static final int LON_OFFSET_FIELD_NUMBER = 20; 1329 2552 private long lonOffset_; 2553 /** 2554 * <code>optional int64 lon_offset = 20 [default = 0];</code> 2555 */ 1330 2556 public boolean hasLonOffset() { 1331 2557 return ((bitField0_ & 0x00000008) == 0x00000008); 1332 2558 } 2559 /** 2560 * <code>optional int64 lon_offset = 20 [default = 0];</code> 2561 */ 1333 2562 public long getLonOffset() { 1334 2563 return lonOffset_; 1335 2564 } 1336 2565 1337 2566 // optional int32 date_granularity = 18 [default = 1000]; 1338 2567 public static final int DATE_GRANULARITY_FIELD_NUMBER = 18; 1339 2568 private int dateGranularity_; 2569 /** 2570 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2571 * 2572 * <pre> 2573 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2574 * </pre> 2575 */ 1340 2576 public boolean hasDateGranularity() { 1341 2577 return ((bitField0_ & 0x00000010) == 0x00000010); 1342 2578 } 2579 /** 2580 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2581 * 2582 * <pre> 2583 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2584 * </pre> 2585 */ 1343 2586 public int getDateGranularity() { 1344 2587 return dateGranularity_; 1345 2588 } 1346 2589 1347 2590 private void initFields() { 1348 2591 stringtable_ = crosby.binary.Osmformat.StringTable.getDefaultInstance(); … … 1357 2600 byte isInitialized = memoizedIsInitialized; 1358 2601 if (isInitialized != -1) return isInitialized == 1; 1359 2602 1360 2603 if (!hasStringtable()) { 1361 2604 memoizedIsInitialized = 0; … … 1371 2614 return true; 1372 2615 } 1373 2616 1374 2617 public void writeTo(com.google.protobuf.CodedOutputStream output) 1375 2618 throws java.io.IOException { … … 1394 2637 } 1395 2638 } 1396 2639 1397 2640 private int memoizedSerializedSize = -1; 1398 2641 public int getSerializedSize() { 1399 2642 int size = memoizedSerializedSize; 1400 2643 if (size != -1) return size; 1401 2644 1402 2645 size = 0; 1403 2646 if (((bitField0_ & 0x00000001) == 0x00000001)) { … … 1428 2671 return size; 1429 2672 } 1430 2673 1431 2674 private static final long serialVersionUID = 0L; 1432 2675 @java.lang.Override … … 1435 2678 return super.writeReplace(); 1436 2679 } 1437 2680 1438 2681 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( 1439 2682 com.google.protobuf.ByteString data) 1440 2683 throws com.google.protobuf.InvalidProtocolBufferException { 1441 return newBuilder().mergeFrom(data).buildParsed();2684 return PARSER.parseFrom(data); 1442 2685 } 1443 2686 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( … … 1445 2688 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1446 2689 throws com.google.protobuf.InvalidProtocolBufferException { 1447 return newBuilder().mergeFrom(data, extensionRegistry) 1448 .buildParsed(); 2690 return PARSER.parseFrom(data, extensionRegistry); 1449 2691 } 1450 2692 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(byte[] data) 1451 2693 throws com.google.protobuf.InvalidProtocolBufferException { 1452 return newBuilder().mergeFrom(data).buildParsed();2694 return PARSER.parseFrom(data); 1453 2695 } 1454 2696 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( … … 1456 2698 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1457 2699 throws com.google.protobuf.InvalidProtocolBufferException { 1458 return newBuilder().mergeFrom(data, extensionRegistry) 1459 .buildParsed(); 2700 return PARSER.parseFrom(data, extensionRegistry); 1460 2701 } 1461 2702 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(java.io.InputStream input) 1462 2703 throws java.io.IOException { 1463 return newBuilder().mergeFrom(input).buildParsed();2704 return PARSER.parseFrom(input); 1464 2705 } 1465 2706 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( … … 1467 2708 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1468 2709 throws java.io.IOException { 1469 return newBuilder().mergeFrom(input, extensionRegistry) 1470 .buildParsed(); 2710 return PARSER.parseFrom(input, extensionRegistry); 1471 2711 } 1472 2712 public static crosby.binary.Osmformat.PrimitiveBlock parseDelimitedFrom(java.io.InputStream input) 1473 2713 throws java.io.IOException { 1474 Builder builder = newBuilder(); 1475 if (builder.mergeDelimitedFrom(input)) { 1476 return builder.buildParsed(); 1477 } else { 1478 return null; 1479 } 2714 return PARSER.parseDelimitedFrom(input); 1480 2715 } 1481 2716 public static crosby.binary.Osmformat.PrimitiveBlock parseDelimitedFrom( … … 1483 2718 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1484 2719 throws java.io.IOException { 1485 Builder builder = newBuilder(); 1486 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 1487 return builder.buildParsed(); 1488 } else { 1489 return null; 1490 } 2720 return PARSER.parseDelimitedFrom(input, extensionRegistry); 1491 2721 } 1492 2722 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( 1493 2723 com.google.protobuf.CodedInputStream input) 1494 2724 throws java.io.IOException { 1495 return newBuilder().mergeFrom(input).buildParsed();2725 return PARSER.parseFrom(input); 1496 2726 } 1497 2727 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( … … 1499 2729 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1500 2730 throws java.io.IOException { 1501 return newBuilder().mergeFrom(input, extensionRegistry) 1502 .buildParsed(); 1503 } 1504 2731 return PARSER.parseFrom(input, extensionRegistry); 2732 } 2733 1505 2734 public static Builder newBuilder() { return Builder.create(); } 1506 2735 public Builder newBuilderForType() { return newBuilder(); } … … 1509 2738 } 1510 2739 public Builder toBuilder() { return newBuilder(this); } 1511 2740 2741 /** 2742 * Protobuf type {@code OSMPBF.PrimitiveBlock} 2743 */ 1512 2744 public static final class Builder extends 1513 2745 com.google.protobuf.GeneratedMessageLite.Builder< … … 1518 2750 maybeForceBuilderInitialization(); 1519 2751 } 1520 2752 1521 2753 private void maybeForceBuilderInitialization() { 1522 2754 } … … 1524 2756 return new Builder(); 1525 2757 } 1526 2758 1527 2759 public Builder clear() { 1528 2760 super.clear(); … … 1541 2773 return this; 1542 2774 } 1543 2775 1544 2776 public Builder clone() { 1545 2777 return create().mergeFrom(buildPartial()); 1546 2778 } 1547 2779 1548 2780 public crosby.binary.Osmformat.PrimitiveBlock getDefaultInstanceForType() { 1549 2781 return crosby.binary.Osmformat.PrimitiveBlock.getDefaultInstance(); 1550 2782 } 1551 2783 1552 2784 public crosby.binary.Osmformat.PrimitiveBlock build() { 1553 2785 crosby.binary.Osmformat.PrimitiveBlock result = buildPartial(); … … 1557 2789 return result; 1558 2790 } 1559 1560 private crosby.binary.Osmformat.PrimitiveBlock buildParsed() 1561 throws com.google.protobuf.InvalidProtocolBufferException { 1562 crosby.binary.Osmformat.PrimitiveBlock result = buildPartial(); 1563 if (!result.isInitialized()) { 1564 throw newUninitializedMessageException( 1565 result).asInvalidProtocolBufferException(); 1566 } 1567 return result; 1568 } 1569 2791 1570 2792 public crosby.binary.Osmformat.PrimitiveBlock buildPartial() { 1571 2793 crosby.binary.Osmformat.PrimitiveBlock result = new crosby.binary.Osmformat.PrimitiveBlock(this); … … 1600 2822 return result; 1601 2823 } 1602 2824 1603 2825 public Builder mergeFrom(crosby.binary.Osmformat.PrimitiveBlock other) { 1604 2826 if (other == crosby.binary.Osmformat.PrimitiveBlock.getDefaultInstance()) return this; … … 1630 2852 return this; 1631 2853 } 1632 2854 1633 2855 public final boolean isInitialized() { 1634 2856 if (!hasStringtable()) { … … 1644 2866 return true; 1645 2867 } 1646 2868 1647 2869 public Builder mergeFrom( 1648 2870 com.google.protobuf.CodedInputStream input, 1649 2871 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1650 2872 throws java.io.IOException { 1651 while (true) { 1652 int tag = input.readTag(); 1653 switch (tag) { 1654 case 0: 1655 1656 return this; 1657 default: { 1658 if (!parseUnknownField(input, extensionRegistry, tag)) { 1659 1660 return this; 1661 } 1662 break; 1663 } 1664 case 10: { 1665 crosby.binary.Osmformat.StringTable.Builder subBuilder = crosby.binary.Osmformat.StringTable.newBuilder(); 1666 if (hasStringtable()) { 1667 subBuilder.mergeFrom(getStringtable()); 1668 } 1669 input.readMessage(subBuilder, extensionRegistry); 1670 setStringtable(subBuilder.buildPartial()); 1671 break; 1672 } 1673 case 18: { 1674 crosby.binary.Osmformat.PrimitiveGroup.Builder subBuilder = crosby.binary.Osmformat.PrimitiveGroup.newBuilder(); 1675 input.readMessage(subBuilder, extensionRegistry); 1676 addPrimitivegroup(subBuilder.buildPartial()); 1677 break; 1678 } 1679 case 136: { 1680 bitField0_ |= 0x00000004; 1681 granularity_ = input.readInt32(); 1682 break; 1683 } 1684 case 144: { 1685 bitField0_ |= 0x00000020; 1686 dateGranularity_ = input.readInt32(); 1687 break; 1688 } 1689 case 152: { 1690 bitField0_ |= 0x00000008; 1691 latOffset_ = input.readInt64(); 1692 break; 1693 } 1694 case 160: { 1695 bitField0_ |= 0x00000010; 1696 lonOffset_ = input.readInt64(); 1697 break; 1698 } 2873 crosby.binary.Osmformat.PrimitiveBlock parsedMessage = null; 2874 try { 2875 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 2876 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2877 parsedMessage = (crosby.binary.Osmformat.PrimitiveBlock) e.getUnfinishedMessage(); 2878 throw e; 2879 } finally { 2880 if (parsedMessage != null) { 2881 mergeFrom(parsedMessage); 1699 2882 } 1700 2883 } 1701 }1702 2884 return this; 2885 } 1703 2886 private int bitField0_; 1704 2887 1705 2888 // required .OSMPBF.StringTable stringtable = 1; 1706 2889 private crosby.binary.Osmformat.StringTable stringtable_ = crosby.binary.Osmformat.StringTable.getDefaultInstance(); 2890 /** 2891 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2892 */ 1707 2893 public boolean hasStringtable() { 1708 2894 return ((bitField0_ & 0x00000001) == 0x00000001); 1709 2895 } 2896 /** 2897 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2898 */ 1710 2899 public crosby.binary.Osmformat.StringTable getStringtable() { 1711 2900 return stringtable_; 1712 2901 } 2902 /** 2903 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2904 */ 1713 2905 public Builder setStringtable(crosby.binary.Osmformat.StringTable value) { 1714 2906 if (value == null) { … … 1716 2908 } 1717 2909 stringtable_ = value; 1718 2910 1719 2911 bitField0_ |= 0x00000001; 1720 2912 return this; 1721 2913 } 2914 /** 2915 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2916 */ 1722 2917 public Builder setStringtable( 1723 2918 crosby.binary.Osmformat.StringTable.Builder builderForValue) { 1724 2919 stringtable_ = builderForValue.build(); 1725 2920 1726 2921 bitField0_ |= 0x00000001; 1727 2922 return this; 1728 2923 } 2924 /** 2925 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2926 */ 1729 2927 public Builder mergeStringtable(crosby.binary.Osmformat.StringTable value) { 1730 2928 if (((bitField0_ & 0x00000001) == 0x00000001) && … … 1735 2933 stringtable_ = value; 1736 2934 } 1737 2935 1738 2936 bitField0_ |= 0x00000001; 1739 2937 return this; 1740 2938 } 2939 /** 2940 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2941 */ 1741 2942 public Builder clearStringtable() { 1742 2943 stringtable_ = crosby.binary.Osmformat.StringTable.getDefaultInstance(); 1743 2944 1744 2945 bitField0_ = (bitField0_ & ~0x00000001); 1745 2946 return this; 1746 2947 } 1747 2948 1748 2949 // repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; 1749 2950 private java.util.List<crosby.binary.Osmformat.PrimitiveGroup> primitivegroup_ = … … 1755 2956 } 1756 2957 } 1757 2958 2959 /** 2960 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2961 */ 1758 2962 public java.util.List<crosby.binary.Osmformat.PrimitiveGroup> getPrimitivegroupList() { 1759 2963 return java.util.Collections.unmodifiableList(primitivegroup_); 1760 2964 } 2965 /** 2966 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2967 */ 1761 2968 public int getPrimitivegroupCount() { 1762 2969 return primitivegroup_.size(); 1763 2970 } 2971 /** 2972 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2973 */ 1764 2974 public crosby.binary.Osmformat.PrimitiveGroup getPrimitivegroup(int index) { 1765 2975 return primitivegroup_.get(index); 1766 2976 } 2977 /** 2978 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2979 */ 1767 2980 public Builder setPrimitivegroup( 1768 2981 int index, crosby.binary.Osmformat.PrimitiveGroup value) { … … 1772 2985 ensurePrimitivegroupIsMutable(); 1773 2986 primitivegroup_.set(index, value); 1774 1775 return this; 1776 } 2987 2988 return this; 2989 } 2990 /** 2991 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2992 */ 1777 2993 public Builder setPrimitivegroup( 1778 2994 int index, crosby.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { 1779 2995 ensurePrimitivegroupIsMutable(); 1780 2996 primitivegroup_.set(index, builderForValue.build()); 1781 1782 return this; 1783 } 2997 2998 return this; 2999 } 3000 /** 3001 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 3002 */ 1784 3003 public Builder addPrimitivegroup(crosby.binary.Osmformat.PrimitiveGroup value) { 1785 3004 if (value == null) { … … 1788 3007 ensurePrimitivegroupIsMutable(); 1789 3008 primitivegroup_.add(value); 1790 1791 return this; 1792 } 3009 3010 return this; 3011 } 3012 /** 3013 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 3014 */ 1793 3015 public Builder addPrimitivegroup( 1794 3016 int index, crosby.binary.Osmformat.PrimitiveGroup value) { … … 1798 3020 ensurePrimitivegroupIsMutable(); 1799 3021 primitivegroup_.add(index, value); 1800 1801 return this; 1802 } 3022 3023 return this; 3024 } 3025 /** 3026 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 3027 */ 1803 3028 public Builder addPrimitivegroup( 1804 3029 crosby.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { 1805 3030 ensurePrimitivegroupIsMutable(); 1806 3031 primitivegroup_.add(builderForValue.build()); 1807 1808 return this; 1809 } 3032 3033 return this; 3034 } 3035 /** 3036 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 3037 */ 1810 3038 public Builder addPrimitivegroup( 1811 3039 int index, crosby.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { 1812 3040 ensurePrimitivegroupIsMutable(); 1813 3041 primitivegroup_.add(index, builderForValue.build()); 1814 1815 return this; 1816 } 3042 3043 return this; 3044 } 3045 /** 3046 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 3047 */ 1817 3048 public Builder addAllPrimitivegroup( 1818 3049 java.lang.Iterable<? extends crosby.binary.Osmformat.PrimitiveGroup> values) { 1819 3050 ensurePrimitivegroupIsMutable(); 1820 3051 super.addAll(values, primitivegroup_); 1821 1822 return this; 1823 } 3052 3053 return this; 3054 } 3055 /** 3056 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 3057 */ 1824 3058 public Builder clearPrimitivegroup() { 1825 3059 primitivegroup_ = java.util.Collections.emptyList(); 1826 3060 bitField0_ = (bitField0_ & ~0x00000002); 1827 1828 return this; 1829 } 3061 3062 return this; 3063 } 3064 /** 3065 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 3066 */ 1830 3067 public Builder removePrimitivegroup(int index) { 1831 3068 ensurePrimitivegroupIsMutable(); 1832 3069 primitivegroup_.remove(index); 1833 1834 return this; 1835 } 1836 3070 3071 return this; 3072 } 3073 1837 3074 // optional int32 granularity = 17 [default = 100]; 1838 3075 private int granularity_ = 100; 3076 /** 3077 * <code>optional int32 granularity = 17 [default = 100];</code> 3078 * 3079 * <pre> 3080 * Granularity, units of nanodegrees, used to store coordinates in this block 3081 * </pre> 3082 */ 1839 3083 public boolean hasGranularity() { 1840 3084 return ((bitField0_ & 0x00000004) == 0x00000004); 1841 3085 } 3086 /** 3087 * <code>optional int32 granularity = 17 [default = 100];</code> 3088 * 3089 * <pre> 3090 * Granularity, units of nanodegrees, used to store coordinates in this block 3091 * </pre> 3092 */ 1842 3093 public int getGranularity() { 1843 3094 return granularity_; 1844 3095 } 3096 /** 3097 * <code>optional int32 granularity = 17 [default = 100];</code> 3098 * 3099 * <pre> 3100 * Granularity, units of nanodegrees, used to store coordinates in this block 3101 * </pre> 3102 */ 1845 3103 public Builder setGranularity(int value) { 1846 3104 bitField0_ |= 0x00000004; … … 1849 3107 return this; 1850 3108 } 3109 /** 3110 * <code>optional int32 granularity = 17 [default = 100];</code> 3111 * 3112 * <pre> 3113 * Granularity, units of nanodegrees, used to store coordinates in this block 3114 * </pre> 3115 */ 1851 3116 public Builder clearGranularity() { 1852 3117 bitField0_ = (bitField0_ & ~0x00000004); … … 1855 3120 return this; 1856 3121 } 1857 3122 1858 3123 // optional int64 lat_offset = 19 [default = 0]; 1859 3124 private long latOffset_ ; 3125 /** 3126 * <code>optional int64 lat_offset = 19 [default = 0];</code> 3127 * 3128 * <pre> 3129 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 3130 * </pre> 3131 */ 1860 3132 public boolean hasLatOffset() { 1861 3133 return ((bitField0_ & 0x00000008) == 0x00000008); 1862 3134 } 3135 /** 3136 * <code>optional int64 lat_offset = 19 [default = 0];</code> 3137 * 3138 * <pre> 3139 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 3140 * </pre> 3141 */ 1863 3142 public long getLatOffset() { 1864 3143 return latOffset_; 1865 3144 } 3145 /** 3146 * <code>optional int64 lat_offset = 19 [default = 0];</code> 3147 * 3148 * <pre> 3149 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 3150 * </pre> 3151 */ 1866 3152 public Builder setLatOffset(long value) { 1867 3153 bitField0_ |= 0x00000008; … … 1870 3156 return this; 1871 3157 } 3158 /** 3159 * <code>optional int64 lat_offset = 19 [default = 0];</code> 3160 * 3161 * <pre> 3162 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 3163 * </pre> 3164 */ 1872 3165 public Builder clearLatOffset() { 1873 3166 bitField0_ = (bitField0_ & ~0x00000008); … … 1876 3169 return this; 1877 3170 } 1878 3171 1879 3172 // optional int64 lon_offset = 20 [default = 0]; 1880 3173 private long lonOffset_ ; 3174 /** 3175 * <code>optional int64 lon_offset = 20 [default = 0];</code> 3176 */ 1881 3177 public boolean hasLonOffset() { 1882 3178 return ((bitField0_ & 0x00000010) == 0x00000010); 1883 3179 } 3180 /** 3181 * <code>optional int64 lon_offset = 20 [default = 0];</code> 3182 */ 1884 3183 public long getLonOffset() { 1885 3184 return lonOffset_; 1886 3185 } 3186 /** 3187 * <code>optional int64 lon_offset = 20 [default = 0];</code> 3188 */ 1887 3189 public Builder setLonOffset(long value) { 1888 3190 bitField0_ |= 0x00000010; … … 1891 3193 return this; 1892 3194 } 3195 /** 3196 * <code>optional int64 lon_offset = 20 [default = 0];</code> 3197 */ 1893 3198 public Builder clearLonOffset() { 1894 3199 bitField0_ = (bitField0_ & ~0x00000010); … … 1897 3202 return this; 1898 3203 } 1899 3204 1900 3205 // optional int32 date_granularity = 18 [default = 1000]; 1901 3206 private int dateGranularity_ = 1000; 3207 /** 3208 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 3209 * 3210 * <pre> 3211 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 3212 * </pre> 3213 */ 1902 3214 public boolean hasDateGranularity() { 1903 3215 return ((bitField0_ & 0x00000020) == 0x00000020); 1904 3216 } 3217 /** 3218 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 3219 * 3220 * <pre> 3221 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 3222 * </pre> 3223 */ 1905 3224 public int getDateGranularity() { 1906 3225 return dateGranularity_; 1907 3226 } 3227 /** 3228 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 3229 * 3230 * <pre> 3231 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 3232 * </pre> 3233 */ 1908 3234 public Builder setDateGranularity(int value) { 1909 3235 bitField0_ |= 0x00000020; … … 1912 3238 return this; 1913 3239 } 3240 /** 3241 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 3242 * 3243 * <pre> 3244 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 3245 * </pre> 3246 */ 1914 3247 public Builder clearDateGranularity() { 1915 3248 bitField0_ = (bitField0_ & ~0x00000020); … … 1918 3251 return this; 1919 3252 } 1920 3253 1921 3254 // @@protoc_insertion_point(builder_scope:OSMPBF.PrimitiveBlock) 1922 3255 } 1923 3256 1924 3257 static { 1925 3258 defaultInstance = new PrimitiveBlock(true); 1926 3259 defaultInstance.initFields(); 1927 3260 } 1928 3261 1929 3262 // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveBlock) 1930 3263 } 1931 3264 1932 3265 public interface PrimitiveGroupOrBuilder 1933 3266 extends com.google.protobuf.MessageLiteOrBuilder { 1934 3267 1935 3268 // repeated .OSMPBF.Node nodes = 1; 3269 /** 3270 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3271 */ 1936 3272 java.util.List<crosby.binary.Osmformat.Node> 1937 3273 getNodesList(); 3274 /** 3275 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3276 */ 1938 3277 crosby.binary.Osmformat.Node getNodes(int index); 3278 /** 3279 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3280 */ 1939 3281 int getNodesCount(); 1940 3282 1941 3283 // optional .OSMPBF.DenseNodes dense = 2; 3284 /** 3285 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3286 */ 1942 3287 boolean hasDense(); 3288 /** 3289 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3290 */ 1943 3291 crosby.binary.Osmformat.DenseNodes getDense(); 1944 3292 1945 3293 // repeated .OSMPBF.Way ways = 3; 3294 /** 3295 * <code>repeated .OSMPBF.Way ways = 3;</code> 3296 */ 1946 3297 java.util.List<crosby.binary.Osmformat.Way> 1947 3298 getWaysList(); 3299 /** 3300 * <code>repeated .OSMPBF.Way ways = 3;</code> 3301 */ 1948 3302 crosby.binary.Osmformat.Way getWays(int index); 3303 /** 3304 * <code>repeated .OSMPBF.Way ways = 3;</code> 3305 */ 1949 3306 int getWaysCount(); 1950 3307 1951 3308 // repeated .OSMPBF.Relation relations = 4; 3309 /** 3310 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3311 */ 1952 3312 java.util.List<crosby.binary.Osmformat.Relation> 1953 3313 getRelationsList(); 3314 /** 3315 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3316 */ 1954 3317 crosby.binary.Osmformat.Relation getRelations(int index); 3318 /** 3319 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3320 */ 1955 3321 int getRelationsCount(); 1956 3322 1957 3323 // repeated .OSMPBF.ChangeSet changesets = 5; 3324 /** 3325 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3326 */ 1958 3327 java.util.List<crosby.binary.Osmformat.ChangeSet> 1959 3328 getChangesetsList(); 3329 /** 3330 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3331 */ 1960 3332 crosby.binary.Osmformat.ChangeSet getChangesets(int index); 3333 /** 3334 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3335 */ 1961 3336 int getChangesetsCount(); 1962 3337 } 3338 /** 3339 * Protobuf type {@code OSMPBF.PrimitiveGroup} 3340 * 3341 * <pre> 3342 * Group of OSMPrimitives. All primitives in a group must be the same type. 3343 * </pre> 3344 */ 1963 3345 public static final class PrimitiveGroup extends 1964 3346 com.google.protobuf.GeneratedMessageLite 1965 3347 implements PrimitiveGroupOrBuilder { 1966 3348 // Use PrimitiveGroup.newBuilder() to construct. 1967 private PrimitiveGroup( Builder builder) {3349 private PrimitiveGroup(com.google.protobuf.GeneratedMessageLite.Builder builder) { 1968 3350 super(builder); 3351 1969 3352 } 1970 3353 private PrimitiveGroup(boolean noInit) {} 1971 3354 1972 3355 private static final PrimitiveGroup defaultInstance; 1973 3356 public static PrimitiveGroup getDefaultInstance() { 1974 3357 return defaultInstance; 1975 3358 } 1976 3359 1977 3360 public PrimitiveGroup getDefaultInstanceForType() { 1978 3361 return defaultInstance; 1979 3362 } 1980 3363 3364 private PrimitiveGroup( 3365 com.google.protobuf.CodedInputStream input, 3366 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3367 throws com.google.protobuf.InvalidProtocolBufferException { 3368 initFields(); 3369 int mutable_bitField0_ = 0; 3370 try { 3371 boolean done = false; 3372 while (!done) { 3373 int tag = input.readTag(); 3374 switch (tag) { 3375 case 0: 3376 done = true; 3377 break; 3378 default: { 3379 if (!parseUnknownField(input, 3380 extensionRegistry, tag)) { 3381 done = true; 3382 } 3383 break; 3384 } 3385 case 10: { 3386 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 3387 nodes_ = new java.util.ArrayList<crosby.binary.Osmformat.Node>(); 3388 mutable_bitField0_ |= 0x00000001; 3389 } 3390 nodes_.add(input.readMessage(crosby.binary.Osmformat.Node.PARSER, extensionRegistry)); 3391 break; 3392 } 3393 case 18: { 3394 crosby.binary.Osmformat.DenseNodes.Builder subBuilder = null; 3395 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3396 subBuilder = dense_.toBuilder(); 3397 } 3398 dense_ = input.readMessage(crosby.binary.Osmformat.DenseNodes.PARSER, extensionRegistry); 3399 if (subBuilder != null) { 3400 subBuilder.mergeFrom(dense_); 3401 dense_ = subBuilder.buildPartial(); 3402 } 3403 bitField0_ |= 0x00000001; 3404 break; 3405 } 3406 case 26: { 3407 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 3408 ways_ = new java.util.ArrayList<crosby.binary.Osmformat.Way>(); 3409 mutable_bitField0_ |= 0x00000004; 3410 } 3411 ways_.add(input.readMessage(crosby.binary.Osmformat.Way.PARSER, extensionRegistry)); 3412 break; 3413 } 3414 case 34: { 3415 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 3416 relations_ = new java.util.ArrayList<crosby.binary.Osmformat.Relation>(); 3417 mutable_bitField0_ |= 0x00000008; 3418 } 3419 relations_.add(input.readMessage(crosby.binary.Osmformat.Relation.PARSER, extensionRegistry)); 3420 break; 3421 } 3422 case 42: { 3423 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 3424 changesets_ = new java.util.ArrayList<crosby.binary.Osmformat.ChangeSet>(); 3425 mutable_bitField0_ |= 0x00000010; 3426 } 3427 changesets_.add(input.readMessage(crosby.binary.Osmformat.ChangeSet.PARSER, extensionRegistry)); 3428 break; 3429 } 3430 } 3431 } 3432 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3433 throw e.setUnfinishedMessage(this); 3434 } catch (java.io.IOException e) { 3435 throw new com.google.protobuf.InvalidProtocolBufferException( 3436 e.getMessage()).setUnfinishedMessage(this); 3437 } finally { 3438 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 3439 nodes_ = java.util.Collections.unmodifiableList(nodes_); 3440 } 3441 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 3442 ways_ = java.util.Collections.unmodifiableList(ways_); 3443 } 3444 if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 3445 relations_ = java.util.Collections.unmodifiableList(relations_); 3446 } 3447 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 3448 changesets_ = java.util.Collections.unmodifiableList(changesets_); 3449 } 3450 makeExtensionsImmutable(); 3451 } 3452 } 3453 public static com.google.protobuf.Parser<PrimitiveGroup> PARSER = 3454 new com.google.protobuf.AbstractParser<PrimitiveGroup>() { 3455 public PrimitiveGroup parsePartialFrom( 3456 com.google.protobuf.CodedInputStream input, 3457 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3458 throws com.google.protobuf.InvalidProtocolBufferException { 3459 return new PrimitiveGroup(input, extensionRegistry); 3460 } 3461 }; 3462 3463 @java.lang.Override 3464 public com.google.protobuf.Parser<PrimitiveGroup> getParserForType() { 3465 return PARSER; 3466 } 3467 1981 3468 private int bitField0_; 1982 3469 // repeated .OSMPBF.Node nodes = 1; 1983 3470 public static final int NODES_FIELD_NUMBER = 1; 1984 3471 private java.util.List<crosby.binary.Osmformat.Node> nodes_; 3472 /** 3473 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3474 */ 1985 3475 public java.util.List<crosby.binary.Osmformat.Node> getNodesList() { 1986 3476 return nodes_; 1987 3477 } 3478 /** 3479 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3480 */ 1988 3481 public java.util.List<? extends crosby.binary.Osmformat.NodeOrBuilder> 1989 3482 getNodesOrBuilderList() { 1990 3483 return nodes_; 1991 3484 } 3485 /** 3486 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3487 */ 1992 3488 public int getNodesCount() { 1993 3489 return nodes_.size(); 1994 3490 } 3491 /** 3492 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3493 */ 1995 3494 public crosby.binary.Osmformat.Node getNodes(int index) { 1996 3495 return nodes_.get(index); 1997 3496 } 3497 /** 3498 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3499 */ 1998 3500 public crosby.binary.Osmformat.NodeOrBuilder getNodesOrBuilder( 1999 3501 int index) { 2000 3502 return nodes_.get(index); 2001 3503 } 2002 3504 2003 3505 // optional .OSMPBF.DenseNodes dense = 2; 2004 3506 public static final int DENSE_FIELD_NUMBER = 2; 2005 3507 private crosby.binary.Osmformat.DenseNodes dense_; 3508 /** 3509 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3510 */ 2006 3511 public boolean hasDense() { 2007 3512 return ((bitField0_ & 0x00000001) == 0x00000001); 2008 3513 } 3514 /** 3515 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3516 */ 2009 3517 public crosby.binary.Osmformat.DenseNodes getDense() { 2010 3518 return dense_; 2011 3519 } 2012 3520 2013 3521 // repeated .OSMPBF.Way ways = 3; 2014 3522 public static final int WAYS_FIELD_NUMBER = 3; 2015 3523 private java.util.List<crosby.binary.Osmformat.Way> ways_; 3524 /** 3525 * <code>repeated .OSMPBF.Way ways = 3;</code> 3526 */ 2016 3527 public java.util.List<crosby.binary.Osmformat.Way> getWaysList() { 2017 3528 return ways_; 2018 3529 } 3530 /** 3531 * <code>repeated .OSMPBF.Way ways = 3;</code> 3532 */ 2019 3533 public java.util.List<? extends crosby.binary.Osmformat.WayOrBuilder> 2020 3534 getWaysOrBuilderList() { 2021 3535 return ways_; 2022 3536 } 3537 /** 3538 * <code>repeated .OSMPBF.Way ways = 3;</code> 3539 */ 2023 3540 public int getWaysCount() { 2024 3541 return ways_.size(); 2025 3542 } 3543 /** 3544 * <code>repeated .OSMPBF.Way ways = 3;</code> 3545 */ 2026 3546 public crosby.binary.Osmformat.Way getWays(int index) { 2027 3547 return ways_.get(index); 2028 3548 } 3549 /** 3550 * <code>repeated .OSMPBF.Way ways = 3;</code> 3551 */ 2029 3552 public crosby.binary.Osmformat.WayOrBuilder getWaysOrBuilder( 2030 3553 int index) { 2031 3554 return ways_.get(index); 2032 3555 } 2033 3556 2034 3557 // repeated .OSMPBF.Relation relations = 4; 2035 3558 public static final int RELATIONS_FIELD_NUMBER = 4; 2036 3559 private java.util.List<crosby.binary.Osmformat.Relation> relations_; 3560 /** 3561 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3562 */ 2037 3563 public java.util.List<crosby.binary.Osmformat.Relation> getRelationsList() { 2038 3564 return relations_; 2039 3565 } 3566 /** 3567 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3568 */ 2040 3569 public java.util.List<? extends crosby.binary.Osmformat.RelationOrBuilder> 2041 3570 getRelationsOrBuilderList() { 2042 3571 return relations_; 2043 3572 } 3573 /** 3574 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3575 */ 2044 3576 public int getRelationsCount() { 2045 3577 return relations_.size(); 2046 3578 } 3579 /** 3580 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3581 */ 2047 3582 public crosby.binary.Osmformat.Relation getRelations(int index) { 2048 3583 return relations_.get(index); 2049 3584 } 3585 /** 3586 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3587 */ 2050 3588 public crosby.binary.Osmformat.RelationOrBuilder getRelationsOrBuilder( 2051 3589 int index) { 2052 3590 return relations_.get(index); 2053 3591 } 2054 3592 2055 3593 // repeated .OSMPBF.ChangeSet changesets = 5; 2056 3594 public static final int CHANGESETS_FIELD_NUMBER = 5; 2057 3595 private java.util.List<crosby.binary.Osmformat.ChangeSet> changesets_; 3596 /** 3597 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3598 */ 2058 3599 public java.util.List<crosby.binary.Osmformat.ChangeSet> getChangesetsList() { 2059 3600 return changesets_; 2060 3601 } 3602 /** 3603 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3604 */ 2061 3605 public java.util.List<? extends crosby.binary.Osmformat.ChangeSetOrBuilder> 2062 3606 getChangesetsOrBuilderList() { 2063 3607 return changesets_; 2064 3608 } 3609 /** 3610 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3611 */ 2065 3612 public int getChangesetsCount() { 2066 3613 return changesets_.size(); 2067 3614 } 3615 /** 3616 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3617 */ 2068 3618 public crosby.binary.Osmformat.ChangeSet getChangesets(int index) { 2069 3619 return changesets_.get(index); 2070 3620 } 3621 /** 3622 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3623 */ 2071 3624 public crosby.binary.Osmformat.ChangeSetOrBuilder getChangesetsOrBuilder( 2072 3625 int index) { 2073 3626 return changesets_.get(index); 2074 3627 } 2075 3628 2076 3629 private void initFields() { 2077 3630 nodes_ = java.util.Collections.emptyList(); … … 2085 3638 byte isInitialized = memoizedIsInitialized; 2086 3639 if (isInitialized != -1) return isInitialized == 1; 2087 3640 2088 3641 for (int i = 0; i < getNodesCount(); i++) { 2089 3642 if (!getNodes(i).isInitialized()) { … … 2113 3666 return true; 2114 3667 } 2115 3668 2116 3669 public void writeTo(com.google.protobuf.CodedOutputStream output) 2117 3670 throws java.io.IOException { … … 2133 3686 } 2134 3687 } 2135 3688 2136 3689 private int memoizedSerializedSize = -1; 2137 3690 public int getSerializedSize() { 2138 3691 int size = memoizedSerializedSize; 2139 3692 if (size != -1) return size; 2140 3693 2141 3694 size = 0; 2142 3695 for (int i = 0; i < nodes_.size(); i++) { … … 2163 3716 return size; 2164 3717 } 2165 3718 2166 3719 private static final long serialVersionUID = 0L; 2167 3720 @java.lang.Override … … 2170 3723 return super.writeReplace(); 2171 3724 } 2172 3725 2173 3726 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( 2174 3727 com.google.protobuf.ByteString data) 2175 3728 throws com.google.protobuf.InvalidProtocolBufferException { 2176 return newBuilder().mergeFrom(data).buildParsed();3729 return PARSER.parseFrom(data); 2177 3730 } 2178 3731 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( … … 2180 3733 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2181 3734 throws com.google.protobuf.InvalidProtocolBufferException { 2182 return newBuilder().mergeFrom(data, extensionRegistry) 2183 .buildParsed(); 3735 return PARSER.parseFrom(data, extensionRegistry); 2184 3736 } 2185 3737 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(byte[] data) 2186 3738 throws com.google.protobuf.InvalidProtocolBufferException { 2187 return newBuilder().mergeFrom(data).buildParsed();3739 return PARSER.parseFrom(data); 2188 3740 } 2189 3741 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( … … 2191 3743 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2192 3744 throws com.google.protobuf.InvalidProtocolBufferException { 2193 return newBuilder().mergeFrom(data, extensionRegistry) 2194 .buildParsed(); 3745 return PARSER.parseFrom(data, extensionRegistry); 2195 3746 } 2196 3747 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(java.io.InputStream input) 2197 3748 throws java.io.IOException { 2198 return newBuilder().mergeFrom(input).buildParsed();3749 return PARSER.parseFrom(input); 2199 3750 } 2200 3751 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( … … 2202 3753 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2203 3754 throws java.io.IOException { 2204 return newBuilder().mergeFrom(input, extensionRegistry) 2205 .buildParsed(); 3755 return PARSER.parseFrom(input, extensionRegistry); 2206 3756 } 2207 3757 public static crosby.binary.Osmformat.PrimitiveGroup parseDelimitedFrom(java.io.InputStream input) 2208 3758 throws java.io.IOException { 2209 Builder builder = newBuilder(); 2210 if (builder.mergeDelimitedFrom(input)) { 2211 return builder.buildParsed(); 2212 } else { 2213 return null; 2214 } 3759 return PARSER.parseDelimitedFrom(input); 2215 3760 } 2216 3761 public static crosby.binary.Osmformat.PrimitiveGroup parseDelimitedFrom( … … 2218 3763 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2219 3764 throws java.io.IOException { 2220 Builder builder = newBuilder(); 2221 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 2222 return builder.buildParsed(); 2223 } else { 2224 return null; 2225 } 3765 return PARSER.parseDelimitedFrom(input, extensionRegistry); 2226 3766 } 2227 3767 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( 2228 3768 com.google.protobuf.CodedInputStream input) 2229 3769 throws java.io.IOException { 2230 return newBuilder().mergeFrom(input).buildParsed();3770 return PARSER.parseFrom(input); 2231 3771 } 2232 3772 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( … … 2234 3774 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2235 3775 throws java.io.IOException { 2236 return newBuilder().mergeFrom(input, extensionRegistry) 2237 .buildParsed(); 2238 } 2239 3776 return PARSER.parseFrom(input, extensionRegistry); 3777 } 3778 2240 3779 public static Builder newBuilder() { return Builder.create(); } 2241 3780 public Builder newBuilderForType() { return newBuilder(); } … … 2244 3783 } 2245 3784 public Builder toBuilder() { return newBuilder(this); } 2246 3785 3786 /** 3787 * Protobuf type {@code OSMPBF.PrimitiveGroup} 3788 * 3789 * <pre> 3790 * Group of OSMPrimitives. All primitives in a group must be the same type. 3791 * </pre> 3792 */ 2247 3793 public static final class Builder extends 2248 3794 com.google.protobuf.GeneratedMessageLite.Builder< … … 2253 3799 maybeForceBuilderInitialization(); 2254 3800 } 2255 3801 2256 3802 private void maybeForceBuilderInitialization() { 2257 3803 } … … 2259 3805 return new Builder(); 2260 3806 } 2261 3807 2262 3808 public Builder clear() { 2263 3809 super.clear(); … … 2274 3820 return this; 2275 3821 } 2276 3822 2277 3823 public Builder clone() { 2278 3824 return create().mergeFrom(buildPartial()); 2279 3825 } 2280 3826 2281 3827 public crosby.binary.Osmformat.PrimitiveGroup getDefaultInstanceForType() { 2282 3828 return crosby.binary.Osmformat.PrimitiveGroup.getDefaultInstance(); 2283 3829 } 2284 3830 2285 3831 public crosby.binary.Osmformat.PrimitiveGroup build() { 2286 3832 crosby.binary.Osmformat.PrimitiveGroup result = buildPartial(); … … 2290 3836 return result; 2291 3837 } 2292 2293 private crosby.binary.Osmformat.PrimitiveGroup buildParsed() 2294 throws com.google.protobuf.InvalidProtocolBufferException { 2295 crosby.binary.Osmformat.PrimitiveGroup result = buildPartial(); 2296 if (!result.isInitialized()) { 2297 throw newUninitializedMessageException( 2298 result).asInvalidProtocolBufferException(); 2299 } 2300 return result; 2301 } 2302 3838 2303 3839 public crosby.binary.Osmformat.PrimitiveGroup buildPartial() { 2304 3840 crosby.binary.Osmformat.PrimitiveGroup result = new crosby.binary.Osmformat.PrimitiveGroup(this); … … 2332 3868 return result; 2333 3869 } 2334 3870 2335 3871 public Builder mergeFrom(crosby.binary.Osmformat.PrimitiveGroup other) { 2336 3872 if (other == crosby.binary.Osmformat.PrimitiveGroup.getDefaultInstance()) return this; … … 2380 3916 return this; 2381 3917 } 2382 3918 2383 3919 public final boolean isInitialized() { 2384 3920 for (int i = 0; i < getNodesCount(); i++) { … … 2408 3944 return true; 2409 3945 } 2410 3946 2411 3947 public Builder mergeFrom( 2412 3948 com.google.protobuf.CodedInputStream input, 2413 3949 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2414 3950 throws java.io.IOException { 2415 while (true) { 2416 int tag = input.readTag(); 2417 switch (tag) { 2418 case 0: 2419 2420 return this; 2421 default: { 2422 if (!parseUnknownField(input, extensionRegistry, tag)) { 2423 2424 return this; 2425 } 2426 break; 2427 } 2428 case 10: { 2429 crosby.binary.Osmformat.Node.Builder subBuilder = crosby.binary.Osmformat.Node.newBuilder(); 2430 input.readMessage(subBuilder, extensionRegistry); 2431 addNodes(subBuilder.buildPartial()); 2432 break; 2433 } 2434 case 18: { 2435 crosby.binary.Osmformat.DenseNodes.Builder subBuilder = crosby.binary.Osmformat.DenseNodes.newBuilder(); 2436 if (hasDense()) { 2437 subBuilder.mergeFrom(getDense()); 2438 } 2439 input.readMessage(subBuilder, extensionRegistry); 2440 setDense(subBuilder.buildPartial()); 2441 break; 2442 } 2443 case 26: { 2444 crosby.binary.Osmformat.Way.Builder subBuilder = crosby.binary.Osmformat.Way.newBuilder(); 2445 input.readMessage(subBuilder, extensionRegistry); 2446 addWays(subBuilder.buildPartial()); 2447 break; 2448 } 2449 case 34: { 2450 crosby.binary.Osmformat.Relation.Builder subBuilder = crosby.binary.Osmformat.Relation.newBuilder(); 2451 input.readMessage(subBuilder, extensionRegistry); 2452 addRelations(subBuilder.buildPartial()); 2453 break; 2454 } 2455 case 42: { 2456 crosby.binary.Osmformat.ChangeSet.Builder subBuilder = crosby.binary.Osmformat.ChangeSet.newBuilder(); 2457 input.readMessage(subBuilder, extensionRegistry); 2458 addChangesets(subBuilder.buildPartial()); 2459 break; 2460 } 3951 crosby.binary.Osmformat.PrimitiveGroup parsedMessage = null; 3952 try { 3953 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 3954 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3955 parsedMessage = (crosby.binary.Osmformat.PrimitiveGroup) e.getUnfinishedMessage(); 3956 throw e; 3957 } finally { 3958 if (parsedMessage != null) { 3959 mergeFrom(parsedMessage); 2461 3960 } 2462 3961 } 2463 }2464 3962 return this; 3963 } 2465 3964 private int bitField0_; 2466 3965 2467 3966 // repeated .OSMPBF.Node nodes = 1; 2468 3967 private java.util.List<crosby.binary.Osmformat.Node> nodes_ = … … 2474 3973 } 2475 3974 } 2476 3975 3976 /** 3977 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3978 */ 2477 3979 public java.util.List<crosby.binary.Osmformat.Node> getNodesList() { 2478 3980 return java.util.Collections.unmodifiableList(nodes_); 2479 3981 } 3982 /** 3983 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3984 */ 2480 3985 public int getNodesCount() { 2481 3986 return nodes_.size(); 2482 3987 } 3988 /** 3989 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3990 */ 2483 3991 public crosby.binary.Osmformat.Node getNodes(int index) { 2484 3992 return nodes_.get(index); 2485 3993 } 3994 /** 3995 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3996 */ 2486 3997 public Builder setNodes( 2487 3998 int index, crosby.binary.Osmformat.Node value) { … … 2491 4002 ensureNodesIsMutable(); 2492 4003 nodes_.set(index, value); 2493 2494 return this; 2495 } 4004 4005 return this; 4006 } 4007 /** 4008 * <code>repeated .OSMPBF.Node nodes = 1;</code> 4009 */ 2496 4010 public Builder setNodes( 2497 4011 int index, crosby.binary.Osmformat.Node.Builder builderForValue) { 2498 4012 ensureNodesIsMutable(); 2499 4013 nodes_.set(index, builderForValue.build()); 2500 2501 return this; 2502 } 4014 4015 return this; 4016 } 4017 /** 4018 * <code>repeated .OSMPBF.Node nodes = 1;</code> 4019 */ 2503 4020 public Builder addNodes(crosby.binary.Osmformat.Node value) { 2504 4021 if (value == null) { … … 2507 4024 ensureNodesIsMutable(); 2508 4025 nodes_.add(value); 2509 2510 return this; 2511 } 4026 4027 return this; 4028 } 4029 /** 4030 * <code>repeated .OSMPBF.Node nodes = 1;</code> 4031 */ 2512 4032 public Builder addNodes( 2513 4033 int index, crosby.binary.Osmformat.Node value) { … … 2517 4037 ensureNodesIsMutable(); 2518 4038 nodes_.add(index, value); 2519 2520 return this; 2521 } 4039 4040 return this; 4041 } 4042 /** 4043 * <code>repeated .OSMPBF.Node nodes = 1;</code> 4044 */ 2522 4045 public Builder addNodes( 2523 4046 crosby.binary.Osmformat.Node.Builder builderForValue) { 2524 4047 ensureNodesIsMutable(); 2525 4048 nodes_.add(builderForValue.build()); 2526 2527 return this; 2528 } 4049 4050 return this; 4051 } 4052 /** 4053 * <code>repeated .OSMPBF.Node nodes = 1;</code> 4054 */ 2529 4055 public Builder addNodes( 2530 4056 int index, crosby.binary.Osmformat.Node.Builder builderForValue) { 2531 4057 ensureNodesIsMutable(); 2532 4058 nodes_.add(index, builderForValue.build()); 2533 2534 return this; 2535 } 4059 4060 return this; 4061 } 4062 /** 4063 * <code>repeated .OSMPBF.Node nodes = 1;</code> 4064 */ 2536 4065 public Builder addAllNodes( 2537 4066 java.lang.Iterable<? extends crosby.binary.Osmformat.Node> values) { 2538 4067 ensureNodesIsMutable(); 2539 4068 super.addAll(values, nodes_); 2540 2541 return this; 2542 } 4069 4070 return this; 4071 } 4072 /** 4073 * <code>repeated .OSMPBF.Node nodes = 1;</code> 4074 */ 2543 4075 public Builder clearNodes() { 2544 4076 nodes_ = java.util.Collections.emptyList(); 2545 4077 bitField0_ = (bitField0_ & ~0x00000001); 2546 2547 return this; 2548 } 4078 4079 return this; 4080 } 4081 /** 4082 * <code>repeated .OSMPBF.Node nodes = 1;</code> 4083 */ 2549 4084 public Builder removeNodes(int index) { 2550 4085 ensureNodesIsMutable(); 2551 4086 nodes_.remove(index); 2552 2553 return this; 2554 } 2555 4087 4088 return this; 4089 } 4090 2556 4091 // optional .OSMPBF.DenseNodes dense = 2; 2557 4092 private crosby.binary.Osmformat.DenseNodes dense_ = crosby.binary.Osmformat.DenseNodes.getDefaultInstance(); 4093 /** 4094 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 4095 */ 2558 4096 public boolean hasDense() { 2559 4097 return ((bitField0_ & 0x00000002) == 0x00000002); 2560 4098 } 4099 /** 4100 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 4101 */ 2561 4102 public crosby.binary.Osmformat.DenseNodes getDense() { 2562 4103 return dense_; 2563 4104 } 4105 /** 4106 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 4107 */ 2564 4108 public Builder setDense(crosby.binary.Osmformat.DenseNodes value) { 2565 4109 if (value == null) { … … 2567 4111 } 2568 4112 dense_ = value; 2569 4113 2570 4114 bitField0_ |= 0x00000002; 2571 4115 return this; 2572 4116 } 4117 /** 4118 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 4119 */ 2573 4120 public Builder setDense( 2574 4121 crosby.binary.Osmformat.DenseNodes.Builder builderForValue) { 2575 4122 dense_ = builderForValue.build(); 2576 4123 2577 4124 bitField0_ |= 0x00000002; 2578 4125 return this; 2579 4126 } 4127 /** 4128 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 4129 */ 2580 4130 public Builder mergeDense(crosby.binary.Osmformat.DenseNodes value) { 2581 4131 if (((bitField0_ & 0x00000002) == 0x00000002) && … … 2586 4136 dense_ = value; 2587 4137 } 2588 4138 2589 4139 bitField0_ |= 0x00000002; 2590 4140 return this; 2591 4141 } 4142 /** 4143 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 4144 */ 2592 4145 public Builder clearDense() { 2593 4146 dense_ = crosby.binary.Osmformat.DenseNodes.getDefaultInstance(); 2594 4147 2595 4148 bitField0_ = (bitField0_ & ~0x00000002); 2596 4149 return this; 2597 4150 } 2598 4151 2599 4152 // repeated .OSMPBF.Way ways = 3; 2600 4153 private java.util.List<crosby.binary.Osmformat.Way> ways_ = … … 2606 4159 } 2607 4160 } 2608 4161 4162 /** 4163 * <code>repeated .OSMPBF.Way ways = 3;</code> 4164 */ 2609 4165 public java.util.List<crosby.binary.Osmformat.Way> getWaysList() { 2610 4166 return java.util.Collections.unmodifiableList(ways_); 2611 4167 } 4168 /** 4169 * <code>repeated .OSMPBF.Way ways = 3;</code> 4170 */ 2612 4171 public int getWaysCount() { 2613 4172 return ways_.size(); 2614 4173 } 4174 /** 4175 * <code>repeated .OSMPBF.Way ways = 3;</code> 4176 */ 2615 4177 public crosby.binary.Osmformat.Way getWays(int index) { 2616 4178 return ways_.get(index); 2617 4179 } 4180 /** 4181 * <code>repeated .OSMPBF.Way ways = 3;</code> 4182 */ 2618 4183 public Builder setWays( 2619 4184 int index, crosby.binary.Osmformat.Way value) { … … 2623 4188 ensureWaysIsMutable(); 2624 4189 ways_.set(index, value); 2625 2626 return this; 2627 } 4190 4191 return this; 4192 } 4193 /** 4194 * <code>repeated .OSMPBF.Way ways = 3;</code> 4195 */ 2628 4196 public Builder setWays( 2629 4197 int index, crosby.binary.Osmformat.Way.Builder builderForValue) { 2630 4198 ensureWaysIsMutable(); 2631 4199 ways_.set(index, builderForValue.build()); 2632 2633 return this; 2634 } 4200 4201 return this; 4202 } 4203 /** 4204 * <code>repeated .OSMPBF.Way ways = 3;</code> 4205 */ 2635 4206 public Builder addWays(crosby.binary.Osmformat.Way value) { 2636 4207 if (value == null) { … … 2639 4210 ensureWaysIsMutable(); 2640 4211 ways_.add(value); 2641 2642 return this; 2643 } 4212 4213 return this; 4214 } 4215 /** 4216 * <code>repeated .OSMPBF.Way ways = 3;</code> 4217 */ 2644 4218 public Builder addWays( 2645 4219 int index, crosby.binary.Osmformat.Way value) { … … 2649 4223 ensureWaysIsMutable(); 2650 4224 ways_.add(index, value); 2651 2652 return this; 2653 } 4225 4226 return this; 4227 } 4228 /** 4229 * <code>repeated .OSMPBF.Way ways = 3;</code> 4230 */ 2654 4231 public Builder addWays( 2655 4232 crosby.binary.Osmformat.Way.Builder builderForValue) { 2656 4233 ensureWaysIsMutable(); 2657 4234 ways_.add(builderForValue.build()); 2658 2659 return this; 2660 } 4235 4236 return this; 4237 } 4238 /** 4239 * <code>repeated .OSMPBF.Way ways = 3;</code> 4240 */ 2661 4241 public Builder addWays( 2662 4242 int index, crosby.binary.Osmformat.Way.Builder builderForValue) { 2663 4243 ensureWaysIsMutable(); 2664 4244 ways_.add(index, builderForValue.build()); 2665 2666 return this; 2667 } 4245 4246 return this; 4247 } 4248 /** 4249 * <code>repeated .OSMPBF.Way ways = 3;</code> 4250 */ 2668 4251 public Builder addAllWays( 2669 4252 java.lang.Iterable<? extends crosby.binary.Osmformat.Way> values) { 2670 4253 ensureWaysIsMutable(); 2671 4254 super.addAll(values, ways_); 2672 2673 return this; 2674 } 4255 4256 return this; 4257 } 4258 /** 4259 * <code>repeated .OSMPBF.Way ways = 3;</code> 4260 */ 2675 4261 public Builder clearWays() { 2676 4262 ways_ = java.util.Collections.emptyList(); 2677 4263 bitField0_ = (bitField0_ & ~0x00000004); 2678 2679 return this; 2680 } 4264 4265 return this; 4266 } 4267 /** 4268 * <code>repeated .OSMPBF.Way ways = 3;</code> 4269 */ 2681 4270 public Builder removeWays(int index) { 2682 4271 ensureWaysIsMutable(); 2683 4272 ways_.remove(index); 2684 2685 return this; 2686 } 2687 4273 4274 return this; 4275 } 4276 2688 4277 // repeated .OSMPBF.Relation relations = 4; 2689 4278 private java.util.List<crosby.binary.Osmformat.Relation> relations_ = … … 2695 4284 } 2696 4285 } 2697 4286 4287 /** 4288 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4289 */ 2698 4290 public java.util.List<crosby.binary.Osmformat.Relation> getRelationsList() { 2699 4291 return java.util.Collections.unmodifiableList(relations_); 2700 4292 } 4293 /** 4294 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4295 */ 2701 4296 public int getRelationsCount() { 2702 4297 return relations_.size(); 2703 4298 } 4299 /** 4300 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4301 */ 2704 4302 public crosby.binary.Osmformat.Relation getRelations(int index) { 2705 4303 return relations_.get(index); 2706 4304 } 4305 /** 4306 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4307 */ 2707 4308 public Builder setRelations( 2708 4309 int index, crosby.binary.Osmformat.Relation value) { … … 2712 4313 ensureRelationsIsMutable(); 2713 4314 relations_.set(index, value); 2714 2715 return this; 2716 } 4315 4316 return this; 4317 } 4318 /** 4319 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4320 */ 2717 4321 public Builder setRelations( 2718 4322 int index, crosby.binary.Osmformat.Relation.Builder builderForValue) { 2719 4323 ensureRelationsIsMutable(); 2720 4324 relations_.set(index, builderForValue.build()); 2721 2722 return this; 2723 } 4325 4326 return this; 4327 } 4328 /** 4329 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4330 */ 2724 4331 public Builder addRelations(crosby.binary.Osmformat.Relation value) { 2725 4332 if (value == null) { … … 2728 4335 ensureRelationsIsMutable(); 2729 4336 relations_.add(value); 2730 2731 return this; 2732 } 4337 4338 return this; 4339 } 4340 /** 4341 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4342 */ 2733 4343 public Builder addRelations( 2734 4344 int index, crosby.binary.Osmformat.Relation value) { … … 2738 4348 ensureRelationsIsMutable(); 2739 4349 relations_.add(index, value); 2740 2741 return this; 2742 } 4350 4351 return this; 4352 } 4353 /** 4354 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4355 */ 2743 4356 public Builder addRelations( 2744 4357 crosby.binary.Osmformat.Relation.Builder builderForValue) { 2745 4358 ensureRelationsIsMutable(); 2746 4359 relations_.add(builderForValue.build()); 2747 2748 return this; 2749 } 4360 4361 return this; 4362 } 4363 /** 4364 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4365 */ 2750 4366 public Builder addRelations( 2751 4367 int index, crosby.binary.Osmformat.Relation.Builder builderForValue) { 2752 4368 ensureRelationsIsMutable(); 2753 4369 relations_.add(index, builderForValue.build()); 2754 2755 return this; 2756 } 4370 4371 return this; 4372 } 4373 /** 4374 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4375 */ 2757 4376 public Builder addAllRelations( 2758 4377 java.lang.Iterable<? extends crosby.binary.Osmformat.Relation> values) { 2759 4378 ensureRelationsIsMutable(); 2760 4379 super.addAll(values, relations_); 2761 2762 return this; 2763 } 4380 4381 return this; 4382 } 4383 /** 4384 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4385 */ 2764 4386 public Builder clearRelations() { 2765 4387 relations_ = java.util.Collections.emptyList(); 2766 4388 bitField0_ = (bitField0_ & ~0x00000008); 2767 2768 return this; 2769 } 4389 4390 return this; 4391 } 4392 /** 4393 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4394 */ 2770 4395 public Builder removeRelations(int index) { 2771 4396 ensureRelationsIsMutable(); 2772 4397 relations_.remove(index); 2773 2774 return this; 2775 } 2776 4398 4399 return this; 4400 } 4401 2777 4402 // repeated .OSMPBF.ChangeSet changesets = 5; 2778 4403 private java.util.List<crosby.binary.Osmformat.ChangeSet> changesets_ = … … 2784 4409 } 2785 4410 } 2786 4411 4412 /** 4413 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4414 */ 2787 4415 public java.util.List<crosby.binary.Osmformat.ChangeSet> getChangesetsList() { 2788 4416 return java.util.Collections.unmodifiableList(changesets_); 2789 4417 } 4418 /** 4419 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4420 */ 2790 4421 public int getChangesetsCount() { 2791 4422 return changesets_.size(); 2792 4423 } 4424 /** 4425 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4426 */ 2793 4427 public crosby.binary.Osmformat.ChangeSet getChangesets(int index) { 2794 4428 return changesets_.get(index); 2795 4429 } 4430 /** 4431 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4432 */ 2796 4433 public Builder setChangesets( 2797 4434 int index, crosby.binary.Osmformat.ChangeSet value) { … … 2801 4438 ensureChangesetsIsMutable(); 2802 4439 changesets_.set(index, value); 2803 2804 return this; 2805 } 4440 4441 return this; 4442 } 4443 /** 4444 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4445 */ 2806 4446 public Builder setChangesets( 2807 4447 int index, crosby.binary.Osmformat.ChangeSet.Builder builderForValue) { 2808 4448 ensureChangesetsIsMutable(); 2809 4449 changesets_.set(index, builderForValue.build()); 2810 2811 return this; 2812 } 4450 4451 return this; 4452 } 4453 /** 4454 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4455 */ 2813 4456 public Builder addChangesets(crosby.binary.Osmformat.ChangeSet value) { 2814 4457 if (value == null) { … … 2817 4460 ensureChangesetsIsMutable(); 2818 4461 changesets_.add(value); 2819 2820 return this; 2821 } 4462 4463 return this; 4464 } 4465 /** 4466 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4467 */ 2822 4468 public Builder addChangesets( 2823 4469 int index, crosby.binary.Osmformat.ChangeSet value) { … … 2827 4473 ensureChangesetsIsMutable(); 2828 4474 changesets_.add(index, value); 2829 2830 return this; 2831 } 4475 4476 return this; 4477 } 4478 /** 4479 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4480 */ 2832 4481 public Builder addChangesets( 2833 4482 crosby.binary.Osmformat.ChangeSet.Builder builderForValue) { 2834 4483 ensureChangesetsIsMutable(); 2835 4484 changesets_.add(builderForValue.build()); 2836 2837 return this; 2838 } 4485 4486 return this; 4487 } 4488 /** 4489 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4490 */ 2839 4491 public Builder addChangesets( 2840 4492 int index, crosby.binary.Osmformat.ChangeSet.Builder builderForValue) { 2841 4493 ensureChangesetsIsMutable(); 2842 4494 changesets_.add(index, builderForValue.build()); 2843 2844 return this; 2845 } 4495 4496 return this; 4497 } 4498 /** 4499 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4500 */ 2846 4501 public Builder addAllChangesets( 2847 4502 java.lang.Iterable<? extends crosby.binary.Osmformat.ChangeSet> values) { 2848 4503 ensureChangesetsIsMutable(); 2849 4504 super.addAll(values, changesets_); 2850 2851 return this; 2852 } 4505 4506 return this; 4507 } 4508 /** 4509 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4510 */ 2853 4511 public Builder clearChangesets() { 2854 4512 changesets_ = java.util.Collections.emptyList(); 2855 4513 bitField0_ = (bitField0_ & ~0x00000010); 2856 2857 return this; 2858 } 4514 4515 return this; 4516 } 4517 /** 4518 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4519 */ 2859 4520 public Builder removeChangesets(int index) { 2860 4521 ensureChangesetsIsMutable(); 2861 4522 changesets_.remove(index); 2862 2863 return this; 2864 } 2865 4523 4524 return this; 4525 } 4526 2866 4527 // @@protoc_insertion_point(builder_scope:OSMPBF.PrimitiveGroup) 2867 4528 } 2868 4529 2869 4530 static { 2870 4531 defaultInstance = new PrimitiveGroup(true); 2871 4532 defaultInstance.initFields(); 2872 4533 } 2873 4534 2874 4535 // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveGroup) 2875 4536 } 2876 4537 2877 4538 public interface StringTableOrBuilder 2878 4539 extends com.google.protobuf.MessageLiteOrBuilder { 2879 4540 2880 4541 // repeated bytes s = 1; 4542 /** 4543 * <code>repeated bytes s = 1;</code> 4544 */ 2881 4545 java.util.List<com.google.protobuf.ByteString> getSList(); 4546 /** 4547 * <code>repeated bytes s = 1;</code> 4548 */ 2882 4549 int getSCount(); 4550 /** 4551 * <code>repeated bytes s = 1;</code> 4552 */ 2883 4553 com.google.protobuf.ByteString getS(int index); 2884 4554 } 4555 /** 4556 * Protobuf type {@code OSMPBF.StringTable} 4557 * 4558 * <pre> 4559 ** String table, contains the common strings in each block. 4560 * 4561 *Note that we reserve index '0' as a delimiter, so the entry at that 4562 *index in the table is ALWAYS blank and unused. 4563 * </pre> 4564 */ 2885 4565 public static final class StringTable extends 2886 4566 com.google.protobuf.GeneratedMessageLite 2887 4567 implements StringTableOrBuilder { 2888 4568 // Use StringTable.newBuilder() to construct. 2889 private StringTable( Builder builder) {4569 private StringTable(com.google.protobuf.GeneratedMessageLite.Builder builder) { 2890 4570 super(builder); 4571 2891 4572 } 2892 4573 private StringTable(boolean noInit) {} 2893 4574 2894 4575 private static final StringTable defaultInstance; 2895 4576 public static StringTable getDefaultInstance() { 2896 4577 return defaultInstance; 2897 4578 } 2898 4579 2899 4580 public StringTable getDefaultInstanceForType() { 2900 4581 return defaultInstance; 2901 4582 } 2902 4583 4584 private StringTable( 4585 com.google.protobuf.CodedInputStream input, 4586 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4587 throws com.google.protobuf.InvalidProtocolBufferException { 4588 initFields(); 4589 int mutable_bitField0_ = 0; 4590 try { 4591 boolean done = false; 4592 while (!done) { 4593 int tag = input.readTag(); 4594 switch (tag) { 4595 case 0: 4596 done = true; 4597 break; 4598 default: { 4599 if (!parseUnknownField(input, 4600 extensionRegistry, tag)) { 4601 done = true; 4602 } 4603 break; 4604 } 4605 case 10: { 4606 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 4607 s_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); 4608 mutable_bitField0_ |= 0x00000001; 4609 } 4610 s_.add(input.readBytes()); 4611 break; 4612 } 4613 } 4614 } 4615 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4616 throw e.setUnfinishedMessage(this); 4617 } catch (java.io.IOException e) { 4618 throw new com.google.protobuf.InvalidProtocolBufferException( 4619 e.getMessage()).setUnfinishedMessage(this); 4620 } finally { 4621 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 4622 s_ = java.util.Collections.unmodifiableList(s_); 4623 } 4624 makeExtensionsImmutable(); 4625 } 4626 } 4627 public static com.google.protobuf.Parser<StringTable> PARSER = 4628 new com.google.protobuf.AbstractParser<StringTable>() { 4629 public StringTable parsePartialFrom( 4630 com.google.protobuf.CodedInputStream input, 4631 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4632 throws com.google.protobuf.InvalidProtocolBufferException { 4633 return new StringTable(input, extensionRegistry); 4634 } 4635 }; 4636 4637 @java.lang.Override 4638 public com.google.protobuf.Parser<StringTable> getParserForType() { 4639 return PARSER; 4640 } 4641 2903 4642 // repeated bytes s = 1; 2904 4643 public static final int S_FIELD_NUMBER = 1; 2905 4644 private java.util.List<com.google.protobuf.ByteString> s_; 4645 /** 4646 * <code>repeated bytes s = 1;</code> 4647 */ 2906 4648 public java.util.List<com.google.protobuf.ByteString> 2907 4649 getSList() { 2908 4650 return s_; 2909 4651 } 4652 /** 4653 * <code>repeated bytes s = 1;</code> 4654 */ 2910 4655 public int getSCount() { 2911 4656 return s_.size(); 2912 4657 } 4658 /** 4659 * <code>repeated bytes s = 1;</code> 4660 */ 2913 4661 public com.google.protobuf.ByteString getS(int index) { 2914 4662 return s_.get(index); 2915 4663 } 2916 4664 2917 4665 private void initFields() { 2918 s_ = java.util.Collections.emptyList(); ;4666 s_ = java.util.Collections.emptyList(); 2919 4667 } 2920 4668 private byte memoizedIsInitialized = -1; … … 2922 4670 byte isInitialized = memoizedIsInitialized; 2923 4671 if (isInitialized != -1) return isInitialized == 1; 2924 4672 2925 4673 memoizedIsInitialized = 1; 2926 4674 return true; 2927 4675 } 2928 4676 2929 4677 public void writeTo(com.google.protobuf.CodedOutputStream output) 2930 4678 throws java.io.IOException { … … 2934 4682 } 2935 4683 } 2936 4684 2937 4685 private int memoizedSerializedSize = -1; 2938 4686 public int getSerializedSize() { 2939 4687 int size = memoizedSerializedSize; 2940 4688 if (size != -1) return size; 2941 4689 2942 4690 size = 0; 2943 4691 { … … 2953 4701 return size; 2954 4702 } 2955 4703 2956 4704 private static final long serialVersionUID = 0L; 2957 4705 @java.lang.Override … … 2960 4708 return super.writeReplace(); 2961 4709 } 2962 4710 2963 4711 public static crosby.binary.Osmformat.StringTable parseFrom( 2964 4712 com.google.protobuf.ByteString data) 2965 4713 throws com.google.protobuf.InvalidProtocolBufferException { 2966 return newBuilder().mergeFrom(data).buildParsed();4714 return PARSER.parseFrom(data); 2967 4715 } 2968 4716 public static crosby.binary.Osmformat.StringTable parseFrom( … … 2970 4718 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2971 4719 throws com.google.protobuf.InvalidProtocolBufferException { 2972 return newBuilder().mergeFrom(data, extensionRegistry) 2973 .buildParsed(); 4720 return PARSER.parseFrom(data, extensionRegistry); 2974 4721 } 2975 4722 public static crosby.binary.Osmformat.StringTable parseFrom(byte[] data) 2976 4723 throws com.google.protobuf.InvalidProtocolBufferException { 2977 return newBuilder().mergeFrom(data).buildParsed();4724 return PARSER.parseFrom(data); 2978 4725 } 2979 4726 public static crosby.binary.Osmformat.StringTable parseFrom( … … 2981 4728 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2982 4729 throws com.google.protobuf.InvalidProtocolBufferException { 2983 return newBuilder().mergeFrom(data, extensionRegistry) 2984 .buildParsed(); 4730 return PARSER.parseFrom(data, extensionRegistry); 2985 4731 } 2986 4732 public static crosby.binary.Osmformat.StringTable parseFrom(java.io.InputStream input) 2987 4733 throws java.io.IOException { 2988 return newBuilder().mergeFrom(input).buildParsed();4734 return PARSER.parseFrom(input); 2989 4735 } 2990 4736 public static crosby.binary.Osmformat.StringTable parseFrom( … … 2992 4738 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2993 4739 throws java.io.IOException { 2994 return newBuilder().mergeFrom(input, extensionRegistry) 2995 .buildParsed(); 4740 return PARSER.parseFrom(input, extensionRegistry); 2996 4741 } 2997 4742 public static crosby.binary.Osmformat.StringTable parseDelimitedFrom(java.io.InputStream input) 2998 4743 throws java.io.IOException { 2999 Builder builder = newBuilder(); 3000 if (builder.mergeDelimitedFrom(input)) { 3001 return builder.buildParsed(); 3002 } else { 3003 return null; 3004 } 4744 return PARSER.parseDelimitedFrom(input); 3005 4745 } 3006 4746 public static crosby.binary.Osmformat.StringTable parseDelimitedFrom( … … 3008 4748 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3009 4749 throws java.io.IOException { 3010 Builder builder = newBuilder(); 3011 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 3012 return builder.buildParsed(); 3013 } else { 3014 return null; 3015 } 4750 return PARSER.parseDelimitedFrom(input, extensionRegistry); 3016 4751 } 3017 4752 public static crosby.binary.Osmformat.StringTable parseFrom( 3018 4753 com.google.protobuf.CodedInputStream input) 3019 4754 throws java.io.IOException { 3020 return newBuilder().mergeFrom(input).buildParsed();4755 return PARSER.parseFrom(input); 3021 4756 } 3022 4757 public static crosby.binary.Osmformat.StringTable parseFrom( … … 3024 4759 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3025 4760 throws java.io.IOException { 3026 return newBuilder().mergeFrom(input, extensionRegistry) 3027 .buildParsed(); 3028 } 3029 4761 return PARSER.parseFrom(input, extensionRegistry); 4762 } 4763 3030 4764 public static Builder newBuilder() { return Builder.create(); } 3031 4765 public Builder newBuilderForType() { return newBuilder(); } … … 3034 4768 } 3035 4769 public Builder toBuilder() { return newBuilder(this); } 3036 4770 4771 /** 4772 * Protobuf type {@code OSMPBF.StringTable} 4773 * 4774 * <pre> 4775 ** String table, contains the common strings in each block. 4776 * 4777 *Note that we reserve index '0' as a delimiter, so the entry at that 4778 *index in the table is ALWAYS blank and unused. 4779 * </pre> 4780 */ 3037 4781 public static final class Builder extends 3038 4782 com.google.protobuf.GeneratedMessageLite.Builder< … … 3043 4787 maybeForceBuilderInitialization(); 3044 4788 } 3045 4789 3046 4790 private void maybeForceBuilderInitialization() { 3047 4791 } … … 3049 4793 return new Builder(); 3050 4794 } 3051 4795 3052 4796 public Builder clear() { 3053 4797 super.clear(); 3054 s_ = java.util.Collections.emptyList(); ;4798 s_ = java.util.Collections.emptyList(); 3055 4799 bitField0_ = (bitField0_ & ~0x00000001); 3056 4800 return this; 3057 4801 } 3058 4802 3059 4803 public Builder clone() { 3060 4804 return create().mergeFrom(buildPartial()); 3061 4805 } 3062 4806 3063 4807 public crosby.binary.Osmformat.StringTable getDefaultInstanceForType() { 3064 4808 return crosby.binary.Osmformat.StringTable.getDefaultInstance(); 3065 4809 } 3066 4810 3067 4811 public crosby.binary.Osmformat.StringTable build() { 3068 4812 crosby.binary.Osmformat.StringTable result = buildPartial(); … … 3072 4816 return result; 3073 4817 } 3074 3075 private crosby.binary.Osmformat.StringTable buildParsed() 3076 throws com.google.protobuf.InvalidProtocolBufferException { 3077 crosby.binary.Osmformat.StringTable result = buildPartial(); 3078 if (!result.isInitialized()) { 3079 throw newUninitializedMessageException( 3080 result).asInvalidProtocolBufferException(); 3081 } 3082 return result; 3083 } 3084 4818 3085 4819 public crosby.binary.Osmformat.StringTable buildPartial() { 3086 4820 crosby.binary.Osmformat.StringTable result = new crosby.binary.Osmformat.StringTable(this); 3087 //int from_bitField0_ = bitField0_;4821 int from_bitField0_ = bitField0_; 3088 4822 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3089 4823 s_ = java.util.Collections.unmodifiableList(s_); … … 3093 4827 return result; 3094 4828 } 3095 4829 3096 4830 public Builder mergeFrom(crosby.binary.Osmformat.StringTable other) { 3097 4831 if (other == crosby.binary.Osmformat.StringTable.getDefaultInstance()) return this; … … 3108 4842 return this; 3109 4843 } 3110 4844 3111 4845 public final boolean isInitialized() { 3112 4846 return true; 3113 4847 } 3114 4848 3115 4849 public Builder mergeFrom( 3116 4850 com.google.protobuf.CodedInputStream input, 3117 4851 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3118 4852 throws java.io.IOException { 3119 while (true) { 3120 int tag = input.readTag(); 3121 switch (tag) { 3122 case 0: 3123 3124 return this; 3125 default: { 3126 if (!parseUnknownField(input, extensionRegistry, tag)) { 3127 3128 return this; 3129 } 3130 break; 3131 } 3132 case 10: { 3133 ensureSIsMutable(); 3134 s_.add(input.readBytes()); 3135 break; 3136 } 4853 crosby.binary.Osmformat.StringTable parsedMessage = null; 4854 try { 4855 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 4856 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4857 parsedMessage = (crosby.binary.Osmformat.StringTable) e.getUnfinishedMessage(); 4858 throw e; 4859 } finally { 4860 if (parsedMessage != null) { 4861 mergeFrom(parsedMessage); 3137 4862 } 3138 4863 } 3139 }3140 4864 return this; 4865 } 3141 4866 private int bitField0_; 3142 4867 3143 4868 // repeated bytes s = 1; 3144 private java.util.List<com.google.protobuf.ByteString> s_ = java.util.Collections.emptyList(); ;4869 private java.util.List<com.google.protobuf.ByteString> s_ = java.util.Collections.emptyList(); 3145 4870 private void ensureSIsMutable() { 3146 4871 if (!((bitField0_ & 0x00000001) == 0x00000001)) { … … 3149 4874 } 3150 4875 } 4876 /** 4877 * <code>repeated bytes s = 1;</code> 4878 */ 3151 4879 public java.util.List<com.google.protobuf.ByteString> 3152 4880 getSList() { 3153 4881 return java.util.Collections.unmodifiableList(s_); 3154 4882 } 4883 /** 4884 * <code>repeated bytes s = 1;</code> 4885 */ 3155 4886 public int getSCount() { 3156 4887 return s_.size(); 3157 4888 } 4889 /** 4890 * <code>repeated bytes s = 1;</code> 4891 */ 3158 4892 public com.google.protobuf.ByteString getS(int index) { 3159 4893 return s_.get(index); 3160 4894 } 4895 /** 4896 * <code>repeated bytes s = 1;</code> 4897 */ 3161 4898 public Builder setS( 3162 4899 int index, com.google.protobuf.ByteString value) { … … 3169 4906 return this; 3170 4907 } 4908 /** 4909 * <code>repeated bytes s = 1;</code> 4910 */ 3171 4911 public Builder addS(com.google.protobuf.ByteString value) { 3172 4912 if (value == null) { … … 3178 4918 return this; 3179 4919 } 4920 /** 4921 * <code>repeated bytes s = 1;</code> 4922 */ 3180 4923 public Builder addAllS( 3181 4924 java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { … … 3185 4928 return this; 3186 4929 } 4930 /** 4931 * <code>repeated bytes s = 1;</code> 4932 */ 3187 4933 public Builder clearS() { 3188 s_ = java.util.Collections.emptyList(); ;4934 s_ = java.util.Collections.emptyList(); 3189 4935 bitField0_ = (bitField0_ & ~0x00000001); 3190 4936 3191 4937 return this; 3192 4938 } 3193 4939 3194 4940 // @@protoc_insertion_point(builder_scope:OSMPBF.StringTable) 3195 4941 } 3196 4942 3197 4943 static { 3198 4944 defaultInstance = new StringTable(true); 3199 4945 defaultInstance.initFields(); 3200 4946 } 3201 4947 3202 4948 // @@protoc_insertion_point(class_scope:OSMPBF.StringTable) 3203 4949 } 3204 4950 3205 4951 public interface InfoOrBuilder 3206 4952 extends com.google.protobuf.MessageLiteOrBuilder { 3207 4953 3208 4954 // optional int32 version = 1 [default = -1]; 4955 /** 4956 * <code>optional int32 version = 1 [default = -1];</code> 4957 */ 3209 4958 boolean hasVersion(); 4959 /** 4960 * <code>optional int32 version = 1 [default = -1];</code> 4961 */ 3210 4962 int getVersion(); 3211 4963 3212 4964 // optional int64 timestamp = 2; 4965 /** 4966 * <code>optional int64 timestamp = 2;</code> 4967 */ 3213 4968 boolean hasTimestamp(); 4969 /** 4970 * <code>optional int64 timestamp = 2;</code> 4971 */ 3214 4972 long getTimestamp(); 3215 4973 3216 4974 // optional int64 changeset = 3; 4975 /** 4976 * <code>optional int64 changeset = 3;</code> 4977 */ 3217 4978 boolean hasChangeset(); 4979 /** 4980 * <code>optional int64 changeset = 3;</code> 4981 */ 3218 4982 long getChangeset(); 3219 4983 3220 4984 // optional int32 uid = 4; 4985 /** 4986 * <code>optional int32 uid = 4;</code> 4987 */ 3221 4988 boolean hasUid(); 4989 /** 4990 * <code>optional int32 uid = 4;</code> 4991 */ 3222 4992 int getUid(); 3223 4993 3224 4994 // optional uint32 user_sid = 5; 4995 /** 4996 * <code>optional uint32 user_sid = 5;</code> 4997 * 4998 * <pre> 4999 * String IDs 5000 * </pre> 5001 */ 3225 5002 boolean hasUserSid(); 5003 /** 5004 * <code>optional uint32 user_sid = 5;</code> 5005 * 5006 * <pre> 5007 * String IDs 5008 * </pre> 5009 */ 3226 5010 int getUserSid(); 5011 5012 // optional bool visible = 6; 5013 /** 5014 * <code>optional bool visible = 6;</code> 5015 * 5016 * <pre> 5017 * The visible flag is used to store history information. It indicates that 5018 * the current object version has been created by a delete operation on the 5019 * OSM API. 5020 * When a writer sets this flag, it MUST add a required_features tag with 5021 * value "HistoricalInformation" to the HeaderBlock. 5022 * If this flag is not available for some object it MUST be assumed to be 5023 * true if the file has the required_features tag "HistoricalInformation" 5024 * set. 5025 * </pre> 5026 */ 5027 boolean hasVisible(); 5028 /** 5029 * <code>optional bool visible = 6;</code> 5030 * 5031 * <pre> 5032 * The visible flag is used to store history information. It indicates that 5033 * the current object version has been created by a delete operation on the 5034 * OSM API. 5035 * When a writer sets this flag, it MUST add a required_features tag with 5036 * value "HistoricalInformation" to the HeaderBlock. 5037 * If this flag is not available for some object it MUST be assumed to be 5038 * true if the file has the required_features tag "HistoricalInformation" 5039 * set. 5040 * </pre> 5041 */ 5042 boolean getVisible(); 3227 5043 } 5044 /** 5045 * Protobuf type {@code OSMPBF.Info} 5046 * 5047 * <pre> 5048 * Optional metadata that may be included into each primitive. 5049 * </pre> 5050 */ 3228 5051 public static final class Info extends 3229 5052 com.google.protobuf.GeneratedMessageLite 3230 5053 implements InfoOrBuilder { 3231 5054 // Use Info.newBuilder() to construct. 3232 private Info( Builder builder) {5055 private Info(com.google.protobuf.GeneratedMessageLite.Builder builder) { 3233 5056 super(builder); 5057 3234 5058 } 3235 5059 private Info(boolean noInit) {} 3236 5060 3237 5061 private static final Info defaultInstance; 3238 5062 public static Info getDefaultInstance() { 3239 5063 return defaultInstance; 3240 5064 } 3241 5065 3242 5066 public Info getDefaultInstanceForType() { 3243 5067 return defaultInstance; 3244 5068 } 3245 3246 private int bitField0_; 3247 // optional int32 version = 1 [default = -1]; 3248 public static final int VERSION_FIELD_NUMBER = 1; 3249 private int version_; 3250 public boolean hasVersion() { 3251 return ((bitField0_ & 0x00000001) == 0x00000001); 3252 } 3253 public int getVersion() { 3254 return version_; 3255 } 3256 3257 // optional int64 timestamp = 2; 3258 public static final int TIMESTAMP_FIELD_NUMBER = 2; 3259 private long timestamp_; 3260 public boolean hasTimestamp() { 3261 return ((bitField0_ & 0x00000002) == 0x00000002); 3262 } 3263 public long getTimestamp() { 3264 return timestamp_; 3265 } 3266 3267 // optional int64 changeset = 3; 3268 public static final int CHANGESET_FIELD_NUMBER = 3; 3269 private long changeset_; 3270 public boolean hasChangeset() { 3271 return ((bitField0_ & 0x00000004) == 0x00000004); 3272 } 3273 public long getChangeset() { 3274 return changeset_; 3275 } 3276 3277 // optional int32 uid = 4; 3278 public static final int UID_FIELD_NUMBER = 4; 3279 private int uid_; 3280 public boolean hasUid() { 3281 return ((bitField0_ & 0x00000008) == 0x00000008); 3282 } 3283 public int getUid() { 3284 return uid_; 3285 } 3286 3287 // optional uint32 user_sid = 5; 3288 public static final int USER_SID_FIELD_NUMBER = 5; 3289 private int userSid_; 3290 public boolean hasUserSid() { 3291 return ((bitField0_ & 0x00000010) == 0x00000010); 3292 } 3293 public int getUserSid() { 3294 return userSid_; 3295 } 3296 3297 private void initFields() { 3298 version_ = -1; 3299 timestamp_ = 0L; 3300 changeset_ = 0L; 3301 uid_ = 0; 3302 userSid_ = 0; 3303 } 3304 private byte memoizedIsInitialized = -1; 3305 public final boolean isInitialized() { 3306 byte isInitialized = memoizedIsInitialized; 3307 if (isInitialized != -1) return isInitialized == 1; 3308 3309 memoizedIsInitialized = 1; 3310 return true; 3311 } 3312 3313 public void writeTo(com.google.protobuf.CodedOutputStream output) 3314 throws java.io.IOException { 3315 getSerializedSize(); 3316 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3317 output.writeInt32(1, version_); 3318 } 3319 if (((bitField0_ & 0x00000002) == 0x00000002)) { 3320 output.writeInt64(2, timestamp_); 3321 } 3322 if (((bitField0_ & 0x00000004) == 0x00000004)) { 3323 output.writeInt64(3, changeset_); 3324 } 3325 if (((bitField0_ & 0x00000008) == 0x00000008)) { 3326 output.writeInt32(4, uid_); 3327 } 3328 if (((bitField0_ & 0x00000010) == 0x00000010)) { 3329 output.writeUInt32(5, userSid_); 3330 } 3331 } 3332 3333 private int memoizedSerializedSize = -1; 3334 public int getSerializedSize() { 3335 int size = memoizedSerializedSize; 3336 if (size != -1) return size; 3337 3338 size = 0; 3339 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3340 size += com.google.protobuf.CodedOutputStream 3341 .computeInt32Size(1, version_); 3342 } 3343 if (((bitField0_ & 0x00000002) == 0x00000002)) { 3344 size += com.google.protobuf.CodedOutputStream 3345 .computeInt64Size(2, timestamp_); 3346 } 3347 if (((bitField0_ & 0x00000004) == 0x00000004)) { 3348 size += com.google.protobuf.CodedOutputStream 3349 .computeInt64Size(3, changeset_); 3350 } 3351 if (((bitField0_ & 0x00000008) == 0x00000008)) { 3352 size += com.google.protobuf.CodedOutputStream 3353 .computeInt32Size(4, uid_); 3354 } 3355 if (((bitField0_ & 0x00000010) == 0x00000010)) { 3356 size += com.google.protobuf.CodedOutputStream 3357 .computeUInt32Size(5, userSid_); 3358 } 3359 memoizedSerializedSize = size; 3360 return size; 3361 } 3362 3363 private static final long serialVersionUID = 0L; 3364 @java.lang.Override 3365 protected java.lang.Object writeReplace() 3366 throws java.io.ObjectStreamException { 3367 return super.writeReplace(); 3368 } 3369 3370 public static crosby.binary.Osmformat.Info parseFrom( 3371 com.google.protobuf.ByteString data) 3372 throws com.google.protobuf.InvalidProtocolBufferException { 3373 return newBuilder().mergeFrom(data).buildParsed(); 3374 } 3375 public static crosby.binary.Osmformat.Info parseFrom( 3376 com.google.protobuf.ByteString data, 5069 5070 private Info( 5071 com.google.protobuf.CodedInputStream input, 3377 5072 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3378 5073 throws com.google.protobuf.InvalidProtocolBufferException { 3379 return newBuilder().mergeFrom(data, extensionRegistry) 3380 .buildParsed(); 3381 } 3382 public static crosby.binary.Osmformat.Info parseFrom(byte[] data) 3383 throws com.google.protobuf.InvalidProtocolBufferException { 3384 return newBuilder().mergeFrom(data).buildParsed(); 3385 } 3386 public static crosby.binary.Osmformat.Info parseFrom( 3387 byte[] data, 3388 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3389 throws com.google.protobuf.InvalidProtocolBufferException { 3390 return newBuilder().mergeFrom(data, extensionRegistry) 3391 .buildParsed(); 3392 } 3393 public static crosby.binary.Osmformat.Info parseFrom(java.io.InputStream input) 3394 throws java.io.IOException { 3395 return newBuilder().mergeFrom(input).buildParsed(); 3396 } 3397 public static crosby.binary.Osmformat.Info parseFrom( 3398 java.io.InputStream input, 3399 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3400 throws java.io.IOException { 3401 return newBuilder().mergeFrom(input, extensionRegistry) 3402 .buildParsed(); 3403 } 3404 public static crosby.binary.Osmformat.Info parseDelimitedFrom(java.io.InputStream input) 3405 throws java.io.IOException { 3406 Builder builder = newBuilder(); 3407 if (builder.mergeDelimitedFrom(input)) { 3408 return builder.buildParsed(); 3409 } else { 3410 return null; 3411 } 3412 } 3413 public static crosby.binary.Osmformat.Info parseDelimitedFrom( 3414 java.io.InputStream input, 3415 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3416 throws java.io.IOException { 3417 Builder builder = newBuilder(); 3418 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 3419 return builder.buildParsed(); 3420 } else { 3421 return null; 3422 } 3423 } 3424 public static crosby.binary.Osmformat.Info parseFrom( 3425 com.google.protobuf.CodedInputStream input) 3426 throws java.io.IOException { 3427 return newBuilder().mergeFrom(input).buildParsed(); 3428 } 3429 public static crosby.binary.Osmformat.Info parseFrom( 3430 com.google.protobuf.CodedInputStream input, 3431 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3432 throws java.io.IOException { 3433 return newBuilder().mergeFrom(input, extensionRegistry) 3434 .buildParsed(); 3435 } 3436 3437 public static Builder newBuilder() { return Builder.create(); } 3438 public Builder newBuilderForType() { return newBuilder(); } 3439 public static Builder newBuilder(crosby.binary.Osmformat.Info prototype) { 3440 return newBuilder().mergeFrom(prototype); 3441 } 3442 public Builder toBuilder() { return newBuilder(this); } 3443 3444 public static final class Builder extends 3445 com.google.protobuf.GeneratedMessageLite.Builder< 3446 crosby.binary.Osmformat.Info, Builder> 3447 implements crosby.binary.Osmformat.InfoOrBuilder { 3448 // Construct using crosby.binary.Osmformat.Info.newBuilder() 3449 private Builder() { 3450 maybeForceBuilderInitialization(); 3451 } 3452 3453 private void maybeForceBuilderInitialization() { 3454 } 3455 private static Builder create() { 3456 return new Builder(); 3457 } 3458 3459 public Builder clear() { 3460 super.clear(); 3461 version_ = -1; 3462 bitField0_ = (bitField0_ & ~0x00000001); 3463 timestamp_ = 0L; 3464 bitField0_ = (bitField0_ & ~0x00000002); 3465 changeset_ = 0L; 3466 bitField0_ = (bitField0_ & ~0x00000004); 3467 uid_ = 0; 3468 bitField0_ = (bitField0_ & ~0x00000008); 3469 userSid_ = 0; 3470 bitField0_ = (bitField0_ & ~0x00000010); 3471 return this; 3472 } 3473 3474 public Builder clone() { 3475 return create().mergeFrom(buildPartial()); 3476 } 3477 3478 public crosby.binary.Osmformat.Info getDefaultInstanceForType() { 3479 return crosby.binary.Osmformat.Info.getDefaultInstance(); 3480 } 3481 3482 public crosby.binary.Osmformat.Info build() { 3483 crosby.binary.Osmformat.Info result = buildPartial(); 3484 if (!result.isInitialized()) { 3485 throw newUninitializedMessageException(result); 3486 } 3487 return result; 3488 } 3489 3490 private crosby.binary.Osmformat.Info buildParsed() 3491 throws com.google.protobuf.InvalidProtocolBufferException { 3492 crosby.binary.Osmformat.Info result = buildPartial(); 3493 if (!result.isInitialized()) { 3494 throw newUninitializedMessageException( 3495 result).asInvalidProtocolBufferException(); 3496 } 3497 return result; 3498 } 3499 3500 public crosby.binary.Osmformat.Info buildPartial() { 3501 crosby.binary.Osmformat.Info result = new crosby.binary.Osmformat.Info(this); 3502 int from_bitField0_ = bitField0_; 3503 int to_bitField0_ = 0; 3504 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 3505 to_bitField0_ |= 0x00000001; 3506 } 3507 result.version_ = version_; 3508 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 3509 to_bitField0_ |= 0x00000002; 3510 } 3511 result.timestamp_ = timestamp_; 3512 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 3513 to_bitField0_ |= 0x00000004; 3514 } 3515 result.changeset_ = changeset_; 3516 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 3517 to_bitField0_ |= 0x00000008; 3518 } 3519 result.uid_ = uid_; 3520 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 3521 to_bitField0_ |= 0x00000010; 3522 } 3523 result.userSid_ = userSid_; 3524 result.bitField0_ = to_bitField0_; 3525 return result; 3526 } 3527 3528 public Builder mergeFrom(crosby.binary.Osmformat.Info other) { 3529 if (other == crosby.binary.Osmformat.Info.getDefaultInstance()) return this; 3530 if (other.hasVersion()) { 3531 setVersion(other.getVersion()); 3532 } 3533 if (other.hasTimestamp()) { 3534 setTimestamp(other.getTimestamp()); 3535 } 3536 if (other.hasChangeset()) { 3537 setChangeset(other.getChangeset()); 3538 } 3539 if (other.hasUid()) { 3540 setUid(other.getUid()); 3541 } 3542 if (other.hasUserSid()) { 3543 setUserSid(other.getUserSid()); 3544 } 3545 return this; 3546 } 3547 3548 public final boolean isInitialized() { 3549 return true; 3550 } 3551 3552 public Builder mergeFrom( 3553 com.google.protobuf.CodedInputStream input, 3554 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3555 throws java.io.IOException { 3556 while (true) { 5074 initFields(); 5075 int mutable_bitField0_ = 0; 5076 try { 5077 boolean done = false; 5078 while (!done) { 3557 5079 int tag = input.readTag(); 3558 5080 switch (tag) { 3559 5081 case 0: 3560 3561 return this;5082 done = true; 5083 break; 3562 5084 default: { 3563 if (!parseUnknownField(input, extensionRegistry, tag)) {3564 3565 return this;5085 if (!parseUnknownField(input, 5086 extensionRegistry, tag)) { 5087 done = true; 3566 5088 } 3567 5089 break; … … 3592 5114 break; 3593 5115 } 5116 case 48: { 5117 bitField0_ |= 0x00000020; 5118 visible_ = input.readBool(); 5119 break; 5120 } 3594 5121 } 3595 5122 } 3596 } 3597 5123 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5124 throw e.setUnfinishedMessage(this); 5125 } catch (java.io.IOException e) { 5126 throw new com.google.protobuf.InvalidProtocolBufferException( 5127 e.getMessage()).setUnfinishedMessage(this); 5128 } finally { 5129 makeExtensionsImmutable(); 5130 } 5131 } 5132 public static com.google.protobuf.Parser<Info> PARSER = 5133 new com.google.protobuf.AbstractParser<Info>() { 5134 public Info parsePartialFrom( 5135 com.google.protobuf.CodedInputStream input, 5136 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5137 throws com.google.protobuf.InvalidProtocolBufferException { 5138 return new Info(input, extensionRegistry); 5139 } 5140 }; 5141 5142 @java.lang.Override 5143 public com.google.protobuf.Parser<Info> getParserForType() { 5144 return PARSER; 5145 } 5146 5147 private int bitField0_; 5148 // optional int32 version = 1 [default = -1]; 5149 public static final int VERSION_FIELD_NUMBER = 1; 5150 private int version_; 5151 /** 5152 * <code>optional int32 version = 1 [default = -1];</code> 5153 */ 5154 public boolean hasVersion() { 5155 return ((bitField0_ & 0x00000001) == 0x00000001); 5156 } 5157 /** 5158 * <code>optional int32 version = 1 [default = -1];</code> 5159 */ 5160 public int getVersion() { 5161 return version_; 5162 } 5163 5164 // optional int64 timestamp = 2; 5165 public static final int TIMESTAMP_FIELD_NUMBER = 2; 5166 private long timestamp_; 5167 /** 5168 * <code>optional int64 timestamp = 2;</code> 5169 */ 5170 public boolean hasTimestamp() { 5171 return ((bitField0_ & 0x00000002) == 0x00000002); 5172 } 5173 /** 5174 * <code>optional int64 timestamp = 2;</code> 5175 */ 5176 public long getTimestamp() { 5177 return timestamp_; 5178 } 5179 5180 // optional int64 changeset = 3; 5181 public static final int CHANGESET_FIELD_NUMBER = 3; 5182 private long changeset_; 5183 /** 5184 * <code>optional int64 changeset = 3;</code> 5185 */ 5186 public boolean hasChangeset() { 5187 return ((bitField0_ & 0x00000004) == 0x00000004); 5188 } 5189 /** 5190 * <code>optional int64 changeset = 3;</code> 5191 */ 5192 public long getChangeset() { 5193 return changeset_; 5194 } 5195 5196 // optional int32 uid = 4; 5197 public static final int UID_FIELD_NUMBER = 4; 5198 private int uid_; 5199 /** 5200 * <code>optional int32 uid = 4;</code> 5201 */ 5202 public boolean hasUid() { 5203 return ((bitField0_ & 0x00000008) == 0x00000008); 5204 } 5205 /** 5206 * <code>optional int32 uid = 4;</code> 5207 */ 5208 public int getUid() { 5209 return uid_; 5210 } 5211 5212 // optional uint32 user_sid = 5; 5213 public static final int USER_SID_FIELD_NUMBER = 5; 5214 private int userSid_; 5215 /** 5216 * <code>optional uint32 user_sid = 5;</code> 5217 * 5218 * <pre> 5219 * String IDs 5220 * </pre> 5221 */ 5222 public boolean hasUserSid() { 5223 return ((bitField0_ & 0x00000010) == 0x00000010); 5224 } 5225 /** 5226 * <code>optional uint32 user_sid = 5;</code> 5227 * 5228 * <pre> 5229 * String IDs 5230 * </pre> 5231 */ 5232 public int getUserSid() { 5233 return userSid_; 5234 } 5235 5236 // optional bool visible = 6; 5237 public static final int VISIBLE_FIELD_NUMBER = 6; 5238 private boolean visible_; 5239 /** 5240 * <code>optional bool visible = 6;</code> 5241 * 5242 * <pre> 5243 * The visible flag is used to store history information. It indicates that 5244 * the current object version has been created by a delete operation on the 5245 * OSM API. 5246 * When a writer sets this flag, it MUST add a required_features tag with 5247 * value "HistoricalInformation" to the HeaderBlock. 5248 * If this flag is not available for some object it MUST be assumed to be 5249 * true if the file has the required_features tag "HistoricalInformation" 5250 * set. 5251 * </pre> 5252 */ 5253 public boolean hasVisible() { 5254 return ((bitField0_ & 0x00000020) == 0x00000020); 5255 } 5256 /** 5257 * <code>optional bool visible = 6;</code> 5258 * 5259 * <pre> 5260 * The visible flag is used to store history information. It indicates that 5261 * the current object version has been created by a delete operation on the 5262 * OSM API. 5263 * When a writer sets this flag, it MUST add a required_features tag with 5264 * value "HistoricalInformation" to the HeaderBlock. 5265 * If this flag is not available for some object it MUST be assumed to be 5266 * true if the file has the required_features tag "HistoricalInformation" 5267 * set. 5268 * </pre> 5269 */ 5270 public boolean getVisible() { 5271 return visible_; 5272 } 5273 5274 private void initFields() { 5275 version_ = -1; 5276 timestamp_ = 0L; 5277 changeset_ = 0L; 5278 uid_ = 0; 5279 userSid_ = 0; 5280 visible_ = false; 5281 } 5282 private byte memoizedIsInitialized = -1; 5283 public final boolean isInitialized() { 5284 byte isInitialized = memoizedIsInitialized; 5285 if (isInitialized != -1) return isInitialized == 1; 5286 5287 memoizedIsInitialized = 1; 5288 return true; 5289 } 5290 5291 public void writeTo(com.google.protobuf.CodedOutputStream output) 5292 throws java.io.IOException { 5293 getSerializedSize(); 5294 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5295 output.writeInt32(1, version_); 5296 } 5297 if (((bitField0_ & 0x00000002) == 0x00000002)) { 5298 output.writeInt64(2, timestamp_); 5299 } 5300 if (((bitField0_ & 0x00000004) == 0x00000004)) { 5301 output.writeInt64(3, changeset_); 5302 } 5303 if (((bitField0_ & 0x00000008) == 0x00000008)) { 5304 output.writeInt32(4, uid_); 5305 } 5306 if (((bitField0_ & 0x00000010) == 0x00000010)) { 5307 output.writeUInt32(5, userSid_); 5308 } 5309 if (((bitField0_ & 0x00000020) == 0x00000020)) { 5310 output.writeBool(6, visible_); 5311 } 5312 } 5313 5314 private int memoizedSerializedSize = -1; 5315 public int getSerializedSize() { 5316 int size = memoizedSerializedSize; 5317 if (size != -1) return size; 5318 5319 size = 0; 5320 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5321 size += com.google.protobuf.CodedOutputStream 5322 .computeInt32Size(1, version_); 5323 } 5324 if (((bitField0_ & 0x00000002) == 0x00000002)) { 5325 size += com.google.protobuf.CodedOutputStream 5326 .computeInt64Size(2, timestamp_); 5327 } 5328 if (((bitField0_ & 0x00000004) == 0x00000004)) { 5329 size += com.google.protobuf.CodedOutputStream 5330 .computeInt64Size(3, changeset_); 5331 } 5332 if (((bitField0_ & 0x00000008) == 0x00000008)) { 5333 size += com.google.protobuf.CodedOutputStream 5334 .computeInt32Size(4, uid_); 5335 } 5336 if (((bitField0_ & 0x00000010) == 0x00000010)) { 5337 size += com.google.protobuf.CodedOutputStream 5338 .computeUInt32Size(5, userSid_); 5339 } 5340 if (((bitField0_ & 0x00000020) == 0x00000020)) { 5341 size += com.google.protobuf.CodedOutputStream 5342 .computeBoolSize(6, visible_); 5343 } 5344 memoizedSerializedSize = size; 5345 return size; 5346 } 5347 5348 private static final long serialVersionUID = 0L; 5349 @java.lang.Override 5350 protected java.lang.Object writeReplace() 5351 throws java.io.ObjectStreamException { 5352 return super.writeReplace(); 5353 } 5354 5355 public static crosby.binary.Osmformat.Info parseFrom( 5356 com.google.protobuf.ByteString data) 5357 throws com.google.protobuf.InvalidProtocolBufferException { 5358 return PARSER.parseFrom(data); 5359 } 5360 public static crosby.binary.Osmformat.Info parseFrom( 5361 com.google.protobuf.ByteString data, 5362 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5363 throws com.google.protobuf.InvalidProtocolBufferException { 5364 return PARSER.parseFrom(data, extensionRegistry); 5365 } 5366 public static crosby.binary.Osmformat.Info parseFrom(byte[] data) 5367 throws com.google.protobuf.InvalidProtocolBufferException { 5368 return PARSER.parseFrom(data); 5369 } 5370 public static crosby.binary.Osmformat.Info parseFrom( 5371 byte[] data, 5372 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5373 throws com.google.protobuf.InvalidProtocolBufferException { 5374 return PARSER.parseFrom(data, extensionRegistry); 5375 } 5376 public static crosby.binary.Osmformat.Info parseFrom(java.io.InputStream input) 5377 throws java.io.IOException { 5378 return PARSER.parseFrom(input); 5379 } 5380 public static crosby.binary.Osmformat.Info parseFrom( 5381 java.io.InputStream input, 5382 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5383 throws java.io.IOException { 5384 return PARSER.parseFrom(input, extensionRegistry); 5385 } 5386 public static crosby.binary.Osmformat.Info parseDelimitedFrom(java.io.InputStream input) 5387 throws java.io.IOException { 5388 return PARSER.parseDelimitedFrom(input); 5389 } 5390 public static crosby.binary.Osmformat.Info parseDelimitedFrom( 5391 java.io.InputStream input, 5392 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5393 throws java.io.IOException { 5394 return PARSER.parseDelimitedFrom(input, extensionRegistry); 5395 } 5396 public static crosby.binary.Osmformat.Info parseFrom( 5397 com.google.protobuf.CodedInputStream input) 5398 throws java.io.IOException { 5399 return PARSER.parseFrom(input); 5400 } 5401 public static crosby.binary.Osmformat.Info parseFrom( 5402 com.google.protobuf.CodedInputStream input, 5403 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5404 throws java.io.IOException { 5405 return PARSER.parseFrom(input, extensionRegistry); 5406 } 5407 5408 public static Builder newBuilder() { return Builder.create(); } 5409 public Builder newBuilderForType() { return newBuilder(); } 5410 public static Builder newBuilder(crosby.binary.Osmformat.Info prototype) { 5411 return newBuilder().mergeFrom(prototype); 5412 } 5413 public Builder toBuilder() { return newBuilder(this); } 5414 5415 /** 5416 * Protobuf type {@code OSMPBF.Info} 5417 * 5418 * <pre> 5419 * Optional metadata that may be included into each primitive. 5420 * </pre> 5421 */ 5422 public static final class Builder extends 5423 com.google.protobuf.GeneratedMessageLite.Builder< 5424 crosby.binary.Osmformat.Info, Builder> 5425 implements crosby.binary.Osmformat.InfoOrBuilder { 5426 // Construct using crosby.binary.Osmformat.Info.newBuilder() 5427 private Builder() { 5428 maybeForceBuilderInitialization(); 5429 } 5430 5431 private void maybeForceBuilderInitialization() { 5432 } 5433 private static Builder create() { 5434 return new Builder(); 5435 } 5436 5437 public Builder clear() { 5438 super.clear(); 5439 version_ = -1; 5440 bitField0_ = (bitField0_ & ~0x00000001); 5441 timestamp_ = 0L; 5442 bitField0_ = (bitField0_ & ~0x00000002); 5443 changeset_ = 0L; 5444 bitField0_ = (bitField0_ & ~0x00000004); 5445 uid_ = 0; 5446 bitField0_ = (bitField0_ & ~0x00000008); 5447 userSid_ = 0; 5448 bitField0_ = (bitField0_ & ~0x00000010); 5449 visible_ = false; 5450 bitField0_ = (bitField0_ & ~0x00000020); 5451 return this; 5452 } 5453 5454 public Builder clone() { 5455 return create().mergeFrom(buildPartial()); 5456 } 5457 5458 public crosby.binary.Osmformat.Info getDefaultInstanceForType() { 5459 return crosby.binary.Osmformat.Info.getDefaultInstance(); 5460 } 5461 5462 public crosby.binary.Osmformat.Info build() { 5463 crosby.binary.Osmformat.Info result = buildPartial(); 5464 if (!result.isInitialized()) { 5465 throw newUninitializedMessageException(result); 5466 } 5467 return result; 5468 } 5469 5470 public crosby.binary.Osmformat.Info buildPartial() { 5471 crosby.binary.Osmformat.Info result = new crosby.binary.Osmformat.Info(this); 5472 int from_bitField0_ = bitField0_; 5473 int to_bitField0_ = 0; 5474 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 5475 to_bitField0_ |= 0x00000001; 5476 } 5477 result.version_ = version_; 5478 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 5479 to_bitField0_ |= 0x00000002; 5480 } 5481 result.timestamp_ = timestamp_; 5482 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 5483 to_bitField0_ |= 0x00000004; 5484 } 5485 result.changeset_ = changeset_; 5486 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 5487 to_bitField0_ |= 0x00000008; 5488 } 5489 result.uid_ = uid_; 5490 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 5491 to_bitField0_ |= 0x00000010; 5492 } 5493 result.userSid_ = userSid_; 5494 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 5495 to_bitField0_ |= 0x00000020; 5496 } 5497 result.visible_ = visible_; 5498 result.bitField0_ = to_bitField0_; 5499 return result; 5500 } 5501 5502 public Builder mergeFrom(crosby.binary.Osmformat.Info other) { 5503 if (other == crosby.binary.Osmformat.Info.getDefaultInstance()) return this; 5504 if (other.hasVersion()) { 5505 setVersion(other.getVersion()); 5506 } 5507 if (other.hasTimestamp()) { 5508 setTimestamp(other.getTimestamp()); 5509 } 5510 if (other.hasChangeset()) { 5511 setChangeset(other.getChangeset()); 5512 } 5513 if (other.hasUid()) { 5514 setUid(other.getUid()); 5515 } 5516 if (other.hasUserSid()) { 5517 setUserSid(other.getUserSid()); 5518 } 5519 if (other.hasVisible()) { 5520 setVisible(other.getVisible()); 5521 } 5522 return this; 5523 } 5524 5525 public final boolean isInitialized() { 5526 return true; 5527 } 5528 5529 public Builder mergeFrom( 5530 com.google.protobuf.CodedInputStream input, 5531 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5532 throws java.io.IOException { 5533 crosby.binary.Osmformat.Info parsedMessage = null; 5534 try { 5535 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 5536 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5537 parsedMessage = (crosby.binary.Osmformat.Info) e.getUnfinishedMessage(); 5538 throw e; 5539 } finally { 5540 if (parsedMessage != null) { 5541 mergeFrom(parsedMessage); 5542 } 5543 } 5544 return this; 5545 } 3598 5546 private int bitField0_; 3599 5547 3600 5548 // optional int32 version = 1 [default = -1]; 3601 5549 private int version_ = -1; 5550 /** 5551 * <code>optional int32 version = 1 [default = -1];</code> 5552 */ 3602 5553 public boolean hasVersion() { 3603 5554 return ((bitField0_ & 0x00000001) == 0x00000001); 3604 5555 } 5556 /** 5557 * <code>optional int32 version = 1 [default = -1];</code> 5558 */ 3605 5559 public int getVersion() { 3606 5560 return version_; 3607 5561 } 5562 /** 5563 * <code>optional int32 version = 1 [default = -1];</code> 5564 */ 3608 5565 public Builder setVersion(int value) { 3609 5566 bitField0_ |= 0x00000001; … … 3612 5569 return this; 3613 5570 } 5571 /** 5572 * <code>optional int32 version = 1 [default = -1];</code> 5573 */ 3614 5574 public Builder clearVersion() { 3615 5575 bitField0_ = (bitField0_ & ~0x00000001); … … 3618 5578 return this; 3619 5579 } 3620 5580 3621 5581 // optional int64 timestamp = 2; 3622 5582 private long timestamp_ ; 5583 /** 5584 * <code>optional int64 timestamp = 2;</code> 5585 */ 3623 5586 public boolean hasTimestamp() { 3624 5587 return ((bitField0_ & 0x00000002) == 0x00000002); 3625 5588 } 5589 /** 5590 * <code>optional int64 timestamp = 2;</code> 5591 */ 3626 5592 public long getTimestamp() { 3627 5593 return timestamp_; 3628 5594 } 5595 /** 5596 * <code>optional int64 timestamp = 2;</code> 5597 */ 3629 5598 public Builder setTimestamp(long value) { 3630 5599 bitField0_ |= 0x00000002; … … 3633 5602 return this; 3634 5603 } 5604 /** 5605 * <code>optional int64 timestamp = 2;</code> 5606 */ 3635 5607 public Builder clearTimestamp() { 3636 5608 bitField0_ = (bitField0_ & ~0x00000002); … … 3639 5611 return this; 3640 5612 } 3641 5613 3642 5614 // optional int64 changeset = 3; 3643 5615 private long changeset_ ; 5616 /** 5617 * <code>optional int64 changeset = 3;</code> 5618 */ 3644 5619 public boolean hasChangeset() { 3645 5620 return ((bitField0_ & 0x00000004) == 0x00000004); 3646 5621 } 5622 /** 5623 * <code>optional int64 changeset = 3;</code> 5624 */ 3647 5625 public long getChangeset() { 3648 5626 return changeset_; 3649 5627 } 5628 /** 5629 * <code>optional int64 changeset = 3;</code> 5630 */ 3650 5631 public Builder setChangeset(long value) { 3651 5632 bitField0_ |= 0x00000004; … … 3654 5635 return this; 3655 5636 } 5637 /** 5638 * <code>optional int64 changeset = 3;</code> 5639 */ 3656 5640 public Builder clearChangeset() { 3657 5641 bitField0_ = (bitField0_ & ~0x00000004); … … 3660 5644 return this; 3661 5645 } 3662 5646 3663 5647 // optional int32 uid = 4; 3664 5648 private int uid_ ; 5649 /** 5650 * <code>optional int32 uid = 4;</code> 5651 */ 3665 5652 public boolean hasUid() { 3666 5653 return ((bitField0_ & 0x00000008) == 0x00000008); 3667 5654 } 5655 /** 5656 * <code>optional int32 uid = 4;</code> 5657 */ 3668 5658 public int getUid() { 3669 5659 return uid_; 3670 5660 } 5661 /** 5662 * <code>optional int32 uid = 4;</code> 5663 */ 3671 5664 public Builder setUid(int value) { 3672 5665 bitField0_ |= 0x00000008; … … 3675 5668 return this; 3676 5669 } 5670 /** 5671 * <code>optional int32 uid = 4;</code> 5672 */ 3677 5673 public Builder clearUid() { 3678 5674 bitField0_ = (bitField0_ & ~0x00000008); … … 3681 5677 return this; 3682 5678 } 3683 5679 3684 5680 // optional uint32 user_sid = 5; 3685 5681 private int userSid_ ; 5682 /** 5683 * <code>optional uint32 user_sid = 5;</code> 5684 * 5685 * <pre> 5686 * String IDs 5687 * </pre> 5688 */ 3686 5689 public boolean hasUserSid() { 3687 5690 return ((bitField0_ & 0x00000010) == 0x00000010); 3688 5691 } 5692 /** 5693 * <code>optional uint32 user_sid = 5;</code> 5694 * 5695 * <pre> 5696 * String IDs 5697 * </pre> 5698 */ 3689 5699 public int getUserSid() { 3690 5700 return userSid_; 3691 5701 } 5702 /** 5703 * <code>optional uint32 user_sid = 5;</code> 5704 * 5705 * <pre> 5706 * String IDs 5707 * </pre> 5708 */ 3692 5709 public Builder setUserSid(int value) { 3693 5710 bitField0_ |= 0x00000010; … … 3696 5713 return this; 3697 5714 } 5715 /** 5716 * <code>optional uint32 user_sid = 5;</code> 5717 * 5718 * <pre> 5719 * String IDs 5720 * </pre> 5721 */ 3698 5722 public Builder clearUserSid() { 3699 5723 bitField0_ = (bitField0_ & ~0x00000010); … … 3702 5726 return this; 3703 5727 } 3704 5728 5729 // optional bool visible = 6; 5730 private boolean visible_ ; 5731 /** 5732 * <code>optional bool visible = 6;</code> 5733 * 5734 * <pre> 5735 * The visible flag is used to store history information. It indicates that 5736 * the current object version has been created by a delete operation on the 5737 * OSM API. 5738 * When a writer sets this flag, it MUST add a required_features tag with 5739 * value "HistoricalInformation" to the HeaderBlock. 5740 * If this flag is not available for some object it MUST be assumed to be 5741 * true if the file has the required_features tag "HistoricalInformation" 5742 * set. 5743 * </pre> 5744 */ 5745 public boolean hasVisible() { 5746 return ((bitField0_ & 0x00000020) == 0x00000020); 5747 } 5748 /** 5749 * <code>optional bool visible = 6;</code> 5750 * 5751 * <pre> 5752 * The visible flag is used to store history information. It indicates that 5753 * the current object version has been created by a delete operation on the 5754 * OSM API. 5755 * When a writer sets this flag, it MUST add a required_features tag with 5756 * value "HistoricalInformation" to the HeaderBlock. 5757 * If this flag is not available for some object it MUST be assumed to be 5758 * true if the file has the required_features tag "HistoricalInformation" 5759 * set. 5760 * </pre> 5761 */ 5762 public boolean getVisible() { 5763 return visible_; 5764 } 5765 /** 5766 * <code>optional bool visible = 6;</code> 5767 * 5768 * <pre> 5769 * The visible flag is used to store history information. It indicates that 5770 * the current object version has been created by a delete operation on the 5771 * OSM API. 5772 * When a writer sets this flag, it MUST add a required_features tag with 5773 * value "HistoricalInformation" to the HeaderBlock. 5774 * If this flag is not available for some object it MUST be assumed to be 5775 * true if the file has the required_features tag "HistoricalInformation" 5776 * set. 5777 * </pre> 5778 */ 5779 public Builder setVisible(boolean value) { 5780 bitField0_ |= 0x00000020; 5781 visible_ = value; 5782 5783 return this; 5784 } 5785 /** 5786 * <code>optional bool visible = 6;</code> 5787 * 5788 * <pre> 5789 * The visible flag is used to store history information. It indicates that 5790 * the current object version has been created by a delete operation on the 5791 * OSM API. 5792 * When a writer sets this flag, it MUST add a required_features tag with 5793 * value "HistoricalInformation" to the HeaderBlock. 5794 * If this flag is not available for some object it MUST be assumed to be 5795 * true if the file has the required_features tag "HistoricalInformation" 5796 * set. 5797 * </pre> 5798 */ 5799 public Builder clearVisible() { 5800 bitField0_ = (bitField0_ & ~0x00000020); 5801 visible_ = false; 5802 5803 return this; 5804 } 5805 3705 5806 // @@protoc_insertion_point(builder_scope:OSMPBF.Info) 3706 5807 } 3707 5808 3708 5809 static { 3709 5810 defaultInstance = new Info(true); 3710 5811 defaultInstance.initFields(); 3711 5812 } 3712 5813 3713 5814 // @@protoc_insertion_point(class_scope:OSMPBF.Info) 3714 5815 } 3715 5816 3716 5817 public interface DenseInfoOrBuilder 3717 5818 extends com.google.protobuf.MessageLiteOrBuilder { 3718 5819 3719 5820 // repeated int32 version = 1 [packed = true]; 5821 /** 5822 * <code>repeated int32 version = 1 [packed = true];</code> 5823 */ 3720 5824 java.util.List<java.lang.Integer> getVersionList(); 5825 /** 5826 * <code>repeated int32 version = 1 [packed = true];</code> 5827 */ 3721 5828 int getVersionCount(); 5829 /** 5830 * <code>repeated int32 version = 1 [packed = true];</code> 5831 */ 3722 5832 int getVersion(int index); 3723 5833 3724 5834 // repeated sint64 timestamp = 2 [packed = true]; 5835 /** 5836 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 5837 * 5838 * <pre> 5839 * DELTA coded 5840 * </pre> 5841 */ 3725 5842 java.util.List<java.lang.Long> getTimestampList(); 5843 /** 5844 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 5845 * 5846 * <pre> 5847 * DELTA coded 5848 * </pre> 5849 */ 3726 5850 int getTimestampCount(); 5851 /** 5852 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 5853 * 5854 * <pre> 5855 * DELTA coded 5856 * </pre> 5857 */ 3727 5858 long getTimestamp(int index); 3728 5859 3729 5860 // repeated sint64 changeset = 3 [packed = true]; 5861 /** 5862 * <code>repeated sint64 changeset = 3 [packed = true];</code> 5863 * 5864 * <pre> 5865 * DELTA coded 5866 * </pre> 5867 */ 3730 5868 java.util.List<java.lang.Long> getChangesetList(); 5869 /** 5870 * <code>repeated sint64 changeset = 3 [packed = true];</code> 5871 * 5872 * <pre> 5873 * DELTA coded 5874 * </pre> 5875 */ 3731 5876 int getChangesetCount(); 5877 /** 5878 * <code>repeated sint64 changeset = 3 [packed = true];</code> 5879 * 5880 * <pre> 5881 * DELTA coded 5882 * </pre> 5883 */ 3732 5884 long getChangeset(int index); 3733 5885 3734 5886 // repeated sint32 uid = 4 [packed = true]; 5887 /** 5888 * <code>repeated sint32 uid = 4 [packed = true];</code> 5889 * 5890 * <pre> 5891 * DELTA coded 5892 * </pre> 5893 */ 3735 5894 java.util.List<java.lang.Integer> getUidList(); 5895 /** 5896 * <code>repeated sint32 uid = 4 [packed = true];</code> 5897 * 5898 * <pre> 5899 * DELTA coded 5900 * </pre> 5901 */ 3736 5902 int getUidCount(); 5903 /** 5904 * <code>repeated sint32 uid = 4 [packed = true];</code> 5905 * 5906 * <pre> 5907 * DELTA coded 5908 * </pre> 5909 */ 3737 5910 int getUid(int index); 3738 5911 3739 5912 // repeated sint32 user_sid = 5 [packed = true]; 5913 /** 5914 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 5915 * 5916 * <pre> 5917 * String IDs for usernames. DELTA coded 5918 * </pre> 5919 */ 3740 5920 java.util.List<java.lang.Integer> getUserSidList(); 5921 /** 5922 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 5923 * 5924 * <pre> 5925 * String IDs for usernames. DELTA coded 5926 * </pre> 5927 */ 3741 5928 int getUserSidCount(); 5929 /** 5930 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 5931 * 5932 * <pre> 5933 * String IDs for usernames. DELTA coded 5934 * </pre> 5935 */ 3742 5936 int getUserSid(int index); 5937 5938 // repeated bool visible = 6 [packed = true]; 5939 /** 5940 * <code>repeated bool visible = 6 [packed = true];</code> 5941 * 5942 * <pre> 5943 * The visible flag is used to store history information. It indicates that 5944 * the current object version has been created by a delete operation on the 5945 * OSM API. 5946 * When a writer sets this flag, it MUST add a required_features tag with 5947 * value "HistoricalInformation" to the HeaderBlock. 5948 * If this flag is not available for some object it MUST be assumed to be 5949 * true if the file has the required_features tag "HistoricalInformation" 5950 * set. 5951 * </pre> 5952 */ 5953 java.util.List<java.lang.Boolean> getVisibleList(); 5954 /** 5955 * <code>repeated bool visible = 6 [packed = true];</code> 5956 * 5957 * <pre> 5958 * The visible flag is used to store history information. It indicates that 5959 * the current object version has been created by a delete operation on the 5960 * OSM API. 5961 * When a writer sets this flag, it MUST add a required_features tag with 5962 * value "HistoricalInformation" to the HeaderBlock. 5963 * If this flag is not available for some object it MUST be assumed to be 5964 * true if the file has the required_features tag "HistoricalInformation" 5965 * set. 5966 * </pre> 5967 */ 5968 int getVisibleCount(); 5969 /** 5970 * <code>repeated bool visible = 6 [packed = true];</code> 5971 * 5972 * <pre> 5973 * The visible flag is used to store history information. It indicates that 5974 * the current object version has been created by a delete operation on the 5975 * OSM API. 5976 * When a writer sets this flag, it MUST add a required_features tag with 5977 * value "HistoricalInformation" to the HeaderBlock. 5978 * If this flag is not available for some object it MUST be assumed to be 5979 * true if the file has the required_features tag "HistoricalInformation" 5980 * set. 5981 * </pre> 5982 */ 5983 boolean getVisible(int index); 3743 5984 } 5985 /** 5986 * Protobuf type {@code OSMPBF.DenseInfo} 5987 * 5988 * <pre> 5989 ** Optional metadata that may be included into each primitive. Special dense format used in DenseNodes. 5990 * </pre> 5991 */ 3744 5992 public static final class DenseInfo extends 3745 5993 com.google.protobuf.GeneratedMessageLite 3746 5994 implements DenseInfoOrBuilder { 3747 5995 // Use DenseInfo.newBuilder() to construct. 3748 private DenseInfo( Builder builder) {5996 private DenseInfo(com.google.protobuf.GeneratedMessageLite.Builder builder) { 3749 5997 super(builder); 5998 3750 5999 } 3751 6000 private DenseInfo(boolean noInit) {} 3752 6001 3753 6002 private static final DenseInfo defaultInstance; 3754 6003 public static DenseInfo getDefaultInstance() { 3755 6004 return defaultInstance; 3756 6005 } 3757 6006 3758 6007 public DenseInfo getDefaultInstanceForType() { 3759 6008 return defaultInstance; 3760 6009 } 3761 6010 6011 private DenseInfo( 6012 com.google.protobuf.CodedInputStream input, 6013 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6014 throws com.google.protobuf.InvalidProtocolBufferException { 6015 initFields(); 6016 int mutable_bitField0_ = 0; 6017 try { 6018 boolean done = false; 6019 while (!done) { 6020 int tag = input.readTag(); 6021 switch (tag) { 6022 case 0: 6023 done = true; 6024 break; 6025 default: { 6026 if (!parseUnknownField(input, 6027 extensionRegistry, tag)) { 6028 done = true; 6029 } 6030 break; 6031 } 6032 case 8: { 6033 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 6034 version_ = new java.util.ArrayList<java.lang.Integer>(); 6035 mutable_bitField0_ |= 0x00000001; 6036 } 6037 version_.add(input.readInt32()); 6038 break; 6039 } 6040 case 10: { 6041 int length = input.readRawVarint32(); 6042 int limit = input.pushLimit(length); 6043 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { 6044 version_ = new java.util.ArrayList<java.lang.Integer>(); 6045 mutable_bitField0_ |= 0x00000001; 6046 } 6047 while (input.getBytesUntilLimit() > 0) { 6048 version_.add(input.readInt32()); 6049 } 6050 input.popLimit(limit); 6051 break; 6052 } 6053 case 16: { 6054 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 6055 timestamp_ = new java.util.ArrayList<java.lang.Long>(); 6056 mutable_bitField0_ |= 0x00000002; 6057 } 6058 timestamp_.add(input.readSInt64()); 6059 break; 6060 } 6061 case 18: { 6062 int length = input.readRawVarint32(); 6063 int limit = input.pushLimit(length); 6064 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { 6065 timestamp_ = new java.util.ArrayList<java.lang.Long>(); 6066 mutable_bitField0_ |= 0x00000002; 6067 } 6068 while (input.getBytesUntilLimit() > 0) { 6069 timestamp_.add(input.readSInt64()); 6070 } 6071 input.popLimit(limit); 6072 break; 6073 } 6074 case 24: { 6075 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 6076 changeset_ = new java.util.ArrayList<java.lang.Long>(); 6077 mutable_bitField0_ |= 0x00000004; 6078 } 6079 changeset_.add(input.readSInt64()); 6080 break; 6081 } 6082 case 26: { 6083 int length = input.readRawVarint32(); 6084 int limit = input.pushLimit(length); 6085 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { 6086 changeset_ = new java.util.ArrayList<java.lang.Long>(); 6087 mutable_bitField0_ |= 0x00000004; 6088 } 6089 while (input.getBytesUntilLimit() > 0) { 6090 changeset_.add(input.readSInt64()); 6091 } 6092 input.popLimit(limit); 6093 break; 6094 } 6095 case 32: { 6096 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 6097 uid_ = new java.util.ArrayList<java.lang.Integer>(); 6098 mutable_bitField0_ |= 0x00000008; 6099 } 6100 uid_.add(input.readSInt32()); 6101 break; 6102 } 6103 case 34: { 6104 int length = input.readRawVarint32(); 6105 int limit = input.pushLimit(length); 6106 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { 6107 uid_ = new java.util.ArrayList<java.lang.Integer>(); 6108 mutable_bitField0_ |= 0x00000008; 6109 } 6110 while (input.getBytesUntilLimit() > 0) { 6111 uid_.add(input.readSInt32()); 6112 } 6113 input.popLimit(limit); 6114 break; 6115 } 6116 case 40: { 6117 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 6118 userSid_ = new java.util.ArrayList<java.lang.Integer>(); 6119 mutable_bitField0_ |= 0x00000010; 6120 } 6121 userSid_.add(input.readSInt32()); 6122 break; 6123 } 6124 case 42: { 6125 int length = input.readRawVarint32(); 6126 int limit = input.pushLimit(length); 6127 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { 6128 userSid_ = new java.util.ArrayList<java.lang.Integer>(); 6129 mutable_bitField0_ |= 0x00000010; 6130 } 6131 while (input.getBytesUntilLimit() > 0) { 6132 userSid_.add(input.readSInt32()); 6133 } 6134 input.popLimit(limit); 6135 break; 6136 } 6137 case 48: { 6138 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 6139 visible_ = new java.util.ArrayList<java.lang.Boolean>(); 6140 mutable_bitField0_ |= 0x00000020; 6141 } 6142 visible_.add(input.readBool()); 6143 break; 6144 } 6145 case 50: { 6146 int length = input.readRawVarint32(); 6147 int limit = input.pushLimit(length); 6148 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { 6149 visible_ = new java.util.ArrayList<java.lang.Boolean>(); 6150 mutable_bitField0_ |= 0x00000020; 6151 } 6152 while (input.getBytesUntilLimit() > 0) { 6153 visible_.add(input.readBool()); 6154 } 6155 input.popLimit(limit); 6156 break; 6157 } 6158 } 6159 } 6160 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6161 throw e.setUnfinishedMessage(this); 6162 } catch (java.io.IOException e) { 6163 throw new com.google.protobuf.InvalidProtocolBufferException( 6164 e.getMessage()).setUnfinishedMessage(this); 6165 } finally { 6166 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 6167 version_ = java.util.Collections.unmodifiableList(version_); 6168 } 6169 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 6170 timestamp_ = java.util.Collections.unmodifiableList(timestamp_); 6171 } 6172 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 6173 changeset_ = java.util.Collections.unmodifiableList(changeset_); 6174 } 6175 if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 6176 uid_ = java.util.Collections.unmodifiableList(uid_); 6177 } 6178 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 6179 userSid_ = java.util.Collections.unmodifiableList(userSid_); 6180 } 6181 if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 6182 visible_ = java.util.Collections.unmodifiableList(visible_); 6183 } 6184 makeExtensionsImmutable(); 6185 } 6186 } 6187 public static com.google.protobuf.Parser<DenseInfo> PARSER = 6188 new com.google.protobuf.AbstractParser<DenseInfo>() { 6189 public DenseInfo parsePartialFrom( 6190 com.google.protobuf.CodedInputStream input, 6191 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6192 throws com.google.protobuf.InvalidProtocolBufferException { 6193 return new DenseInfo(input, extensionRegistry); 6194 } 6195 }; 6196 6197 @java.lang.Override 6198 public com.google.protobuf.Parser<DenseInfo> getParserForType() { 6199 return PARSER; 6200 } 6201 3762 6202 // repeated int32 version = 1 [packed = true]; 3763 6203 public static final int VERSION_FIELD_NUMBER = 1; 3764 6204 private java.util.List<java.lang.Integer> version_; 6205 /** 6206 * <code>repeated int32 version = 1 [packed = true];</code> 6207 */ 3765 6208 public java.util.List<java.lang.Integer> 3766 6209 getVersionList() { 3767 6210 return version_; 3768 6211 } 6212 /** 6213 * <code>repeated int32 version = 1 [packed = true];</code> 6214 */ 3769 6215 public int getVersionCount() { 3770 6216 return version_.size(); 3771 6217 } 6218 /** 6219 * <code>repeated int32 version = 1 [packed = true];</code> 6220 */ 3772 6221 public int getVersion(int index) { 3773 6222 return version_.get(index); 3774 6223 } 3775 6224 private int versionMemoizedSerializedSize = -1; 3776 6225 3777 6226 // repeated sint64 timestamp = 2 [packed = true]; 3778 6227 public static final int TIMESTAMP_FIELD_NUMBER = 2; 3779 6228 private java.util.List<java.lang.Long> timestamp_; 6229 /** 6230 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6231 * 6232 * <pre> 6233 * DELTA coded 6234 * </pre> 6235 */ 3780 6236 public java.util.List<java.lang.Long> 3781 6237 getTimestampList() { 3782 6238 return timestamp_; 3783 6239 } 6240 /** 6241 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6242 * 6243 * <pre> 6244 * DELTA coded 6245 * </pre> 6246 */ 3784 6247 public int getTimestampCount() { 3785 6248 return timestamp_.size(); 3786 6249 } 6250 /** 6251 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6252 * 6253 * <pre> 6254 * DELTA coded 6255 * </pre> 6256 */ 3787 6257 public long getTimestamp(int index) { 3788 6258 return timestamp_.get(index); 3789 6259 } 3790 6260 private int timestampMemoizedSerializedSize = -1; 3791 6261 3792 6262 // repeated sint64 changeset = 3 [packed = true]; 3793 6263 public static final int CHANGESET_FIELD_NUMBER = 3; 3794 6264 private java.util.List<java.lang.Long> changeset_; 6265 /** 6266 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6267 * 6268 * <pre> 6269 * DELTA coded 6270 * </pre> 6271 */ 3795 6272 public java.util.List<java.lang.Long> 3796 6273 getChangesetList() { 3797 6274 return changeset_; 3798 6275 } 6276 /** 6277 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6278 * 6279 * <pre> 6280 * DELTA coded 6281 * </pre> 6282 */ 3799 6283 public int getChangesetCount() { 3800 6284 return changeset_.size(); 3801 6285 } 6286 /** 6287 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6288 * 6289 * <pre> 6290 * DELTA coded 6291 * </pre> 6292 */ 3802 6293 public long getChangeset(int index) { 3803 6294 return changeset_.get(index); 3804 6295 } 3805 6296 private int changesetMemoizedSerializedSize = -1; 3806 6297 3807 6298 // repeated sint32 uid = 4 [packed = true]; 3808 6299 public static final int UID_FIELD_NUMBER = 4; 3809 6300 private java.util.List<java.lang.Integer> uid_; 6301 /** 6302 * <code>repeated sint32 uid = 4 [packed = true];</code> 6303 * 6304 * <pre> 6305 * DELTA coded 6306 * </pre> 6307 */ 3810 6308 public java.util.List<java.lang.Integer> 3811 6309 getUidList() { 3812 6310 return uid_; 3813 6311 } 6312 /** 6313 * <code>repeated sint32 uid = 4 [packed = true];</code> 6314 * 6315 * <pre> 6316 * DELTA coded 6317 * </pre> 6318 */ 3814 6319 public int getUidCount() { 3815 6320 return uid_.size(); 3816 6321 } 6322 /** 6323 * <code>repeated sint32 uid = 4 [packed = true];</code> 6324 * 6325 * <pre> 6326 * DELTA coded 6327 * </pre> 6328 */ 3817 6329 public int getUid(int index) { 3818 6330 return uid_.get(index); 3819 6331 } 3820 6332 private int uidMemoizedSerializedSize = -1; 3821 6333 3822 6334 // repeated sint32 user_sid = 5 [packed = true]; 3823 6335 public static final int USER_SID_FIELD_NUMBER = 5; 3824 6336 private java.util.List<java.lang.Integer> userSid_; 6337 /** 6338 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6339 * 6340 * <pre> 6341 * String IDs for usernames. DELTA coded 6342 * </pre> 6343 */ 3825 6344 public java.util.List<java.lang.Integer> 3826 6345 getUserSidList() { 3827 6346 return userSid_; 3828 6347 } 6348 /** 6349 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6350 * 6351 * <pre> 6352 * String IDs for usernames. DELTA coded 6353 * </pre> 6354 */ 3829 6355 public int getUserSidCount() { 3830 6356 return userSid_.size(); 3831 6357 } 6358 /** 6359 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6360 * 6361 * <pre> 6362 * String IDs for usernames. DELTA coded 6363 * </pre> 6364 */ 3832 6365 public int getUserSid(int index) { 3833 6366 return userSid_.get(index); 3834 6367 } 3835 6368 private int userSidMemoizedSerializedSize = -1; 3836 6369 6370 // repeated bool visible = 6 [packed = true]; 6371 public static final int VISIBLE_FIELD_NUMBER = 6; 6372 private java.util.List<java.lang.Boolean> visible_; 6373 /** 6374 * <code>repeated bool visible = 6 [packed = true];</code> 6375 * 6376 * <pre> 6377 * The visible flag is used to store history information. It indicates that 6378 * the current object version has been created by a delete operation on the 6379 * OSM API. 6380 * When a writer sets this flag, it MUST add a required_features tag with 6381 * value "HistoricalInformation" to the HeaderBlock. 6382 * If this flag is not available for some object it MUST be assumed to be 6383 * true if the file has the required_features tag "HistoricalInformation" 6384 * set. 6385 * </pre> 6386 */ 6387 public java.util.List<java.lang.Boolean> 6388 getVisibleList() { 6389 return visible_; 6390 } 6391 /** 6392 * <code>repeated bool visible = 6 [packed = true];</code> 6393 * 6394 * <pre> 6395 * The visible flag is used to store history information. It indicates that 6396 * the current object version has been created by a delete operation on the 6397 * OSM API. 6398 * When a writer sets this flag, it MUST add a required_features tag with 6399 * value "HistoricalInformation" to the HeaderBlock. 6400 * If this flag is not available for some object it MUST be assumed to be 6401 * true if the file has the required_features tag "HistoricalInformation" 6402 * set. 6403 * </pre> 6404 */ 6405 public int getVisibleCount() { 6406 return visible_.size(); 6407 } 6408 /** 6409 * <code>repeated bool visible = 6 [packed = true];</code> 6410 * 6411 * <pre> 6412 * The visible flag is used to store history information. It indicates that 6413 * the current object version has been created by a delete operation on the 6414 * OSM API. 6415 * When a writer sets this flag, it MUST add a required_features tag with 6416 * value "HistoricalInformation" to the HeaderBlock. 6417 * If this flag is not available for some object it MUST be assumed to be 6418 * true if the file has the required_features tag "HistoricalInformation" 6419 * set. 6420 * </pre> 6421 */ 6422 public boolean getVisible(int index) { 6423 return visible_.get(index); 6424 } 6425 private int visibleMemoizedSerializedSize = -1; 6426 3837 6427 private void initFields() { 3838 version_ = java.util.Collections.emptyList();; 3839 timestamp_ = java.util.Collections.emptyList();; 3840 changeset_ = java.util.Collections.emptyList();; 3841 uid_ = java.util.Collections.emptyList();; 3842 userSid_ = java.util.Collections.emptyList();; 6428 version_ = java.util.Collections.emptyList(); 6429 timestamp_ = java.util.Collections.emptyList(); 6430 changeset_ = java.util.Collections.emptyList(); 6431 uid_ = java.util.Collections.emptyList(); 6432 userSid_ = java.util.Collections.emptyList(); 6433 visible_ = java.util.Collections.emptyList(); 3843 6434 } 3844 6435 private byte memoizedIsInitialized = -1; … … 3846 6437 byte isInitialized = memoizedIsInitialized; 3847 6438 if (isInitialized != -1) return isInitialized == 1; 3848 6439 3849 6440 memoizedIsInitialized = 1; 3850 6441 return true; 3851 6442 } 3852 6443 3853 6444 public void writeTo(com.google.protobuf.CodedOutputStream output) 3854 6445 throws java.io.IOException { … … 3889 6480 output.writeSInt32NoTag(userSid_.get(i)); 3890 6481 } 3891 } 3892 6482 if (getVisibleList().size() > 0) { 6483 output.writeRawVarint32(50); 6484 output.writeRawVarint32(visibleMemoizedSerializedSize); 6485 } 6486 for (int i = 0; i < visible_.size(); i++) { 6487 output.writeBoolNoTag(visible_.get(i)); 6488 } 6489 } 6490 3893 6491 private int memoizedSerializedSize = -1; 3894 6492 public int getSerializedSize() { 3895 6493 int size = memoizedSerializedSize; 3896 6494 if (size != -1) return size; 3897 6495 3898 6496 size = 0; 3899 6497 { … … 3967 6565 userSidMemoizedSerializedSize = dataSize; 3968 6566 } 6567 { 6568 int dataSize = 0; 6569 dataSize = 1 * getVisibleList().size(); 6570 size += dataSize; 6571 if (!getVisibleList().isEmpty()) { 6572 size += 1; 6573 size += com.google.protobuf.CodedOutputStream 6574 .computeInt32SizeNoTag(dataSize); 6575 } 6576 visibleMemoizedSerializedSize = dataSize; 6577 } 3969 6578 memoizedSerializedSize = size; 3970 6579 return size; 3971 6580 } 3972 6581 3973 6582 private static final long serialVersionUID = 0L; 3974 6583 @java.lang.Override … … 3977 6586 return super.writeReplace(); 3978 6587 } 3979 6588 3980 6589 public static crosby.binary.Osmformat.DenseInfo parseFrom( 3981 6590 com.google.protobuf.ByteString data) 3982 6591 throws com.google.protobuf.InvalidProtocolBufferException { 3983 return newBuilder().mergeFrom(data).buildParsed();6592 return PARSER.parseFrom(data); 3984 6593 } 3985 6594 public static crosby.binary.Osmformat.DenseInfo parseFrom( … … 3987 6596 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3988 6597 throws com.google.protobuf.InvalidProtocolBufferException { 3989 return newBuilder().mergeFrom(data, extensionRegistry) 3990 .buildParsed(); 6598 return PARSER.parseFrom(data, extensionRegistry); 3991 6599 } 3992 6600 public static crosby.binary.Osmformat.DenseInfo parseFrom(byte[] data) 3993 6601 throws com.google.protobuf.InvalidProtocolBufferException { 3994 return newBuilder().mergeFrom(data).buildParsed();6602 return PARSER.parseFrom(data); 3995 6603 } 3996 6604 public static crosby.binary.Osmformat.DenseInfo parseFrom( … … 3998 6606 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3999 6607 throws com.google.protobuf.InvalidProtocolBufferException { 4000 return newBuilder().mergeFrom(data, extensionRegistry) 4001 .buildParsed(); 6608 return PARSER.parseFrom(data, extensionRegistry); 4002 6609 } 4003 6610 public static crosby.binary.Osmformat.DenseInfo parseFrom(java.io.InputStream input) 4004 6611 throws java.io.IOException { 4005 return newBuilder().mergeFrom(input).buildParsed();6612 return PARSER.parseFrom(input); 4006 6613 } 4007 6614 public static crosby.binary.Osmformat.DenseInfo parseFrom( … … 4009 6616 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4010 6617 throws java.io.IOException { 4011 return newBuilder().mergeFrom(input, extensionRegistry) 4012 .buildParsed(); 6618 return PARSER.parseFrom(input, extensionRegistry); 4013 6619 } 4014 6620 public static crosby.binary.Osmformat.DenseInfo parseDelimitedFrom(java.io.InputStream input) 4015 6621 throws java.io.IOException { 4016 Builder builder = newBuilder(); 4017 if (builder.mergeDelimitedFrom(input)) { 4018 return builder.buildParsed(); 4019 } else { 4020 return null; 4021 } 6622 return PARSER.parseDelimitedFrom(input); 4022 6623 } 4023 6624 public static crosby.binary.Osmformat.DenseInfo parseDelimitedFrom( … … 4025 6626 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4026 6627 throws java.io.IOException { 4027 Builder builder = newBuilder(); 4028 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 4029 return builder.buildParsed(); 4030 } else { 4031 return null; 4032 } 6628 return PARSER.parseDelimitedFrom(input, extensionRegistry); 4033 6629 } 4034 6630 public static crosby.binary.Osmformat.DenseInfo parseFrom( 4035 6631 com.google.protobuf.CodedInputStream input) 4036 6632 throws java.io.IOException { 4037 return newBuilder().mergeFrom(input).buildParsed();6633 return PARSER.parseFrom(input); 4038 6634 } 4039 6635 public static crosby.binary.Osmformat.DenseInfo parseFrom( … … 4041 6637 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4042 6638 throws java.io.IOException { 4043 return newBuilder().mergeFrom(input, extensionRegistry) 4044 .buildParsed(); 4045 } 4046 6639 return PARSER.parseFrom(input, extensionRegistry); 6640 } 6641 4047 6642 public static Builder newBuilder() { return Builder.create(); } 4048 6643 public Builder newBuilderForType() { return newBuilder(); } … … 4051 6646 } 4052 6647 public Builder toBuilder() { return newBuilder(this); } 4053 6648 6649 /** 6650 * Protobuf type {@code OSMPBF.DenseInfo} 6651 * 6652 * <pre> 6653 ** Optional metadata that may be included into each primitive. Special dense format used in DenseNodes. 6654 * </pre> 6655 */ 4054 6656 public static final class Builder extends 4055 6657 com.google.protobuf.GeneratedMessageLite.Builder< … … 4060 6662 maybeForceBuilderInitialization(); 4061 6663 } 4062 6664 4063 6665 private void maybeForceBuilderInitialization() { 4064 6666 } … … 4066 6668 return new Builder(); 4067 6669 } 4068 6670 4069 6671 public Builder clear() { 4070 6672 super.clear(); 4071 version_ = java.util.Collections.emptyList(); ;6673 version_ = java.util.Collections.emptyList(); 4072 6674 bitField0_ = (bitField0_ & ~0x00000001); 4073 timestamp_ = java.util.Collections.emptyList(); ;6675 timestamp_ = java.util.Collections.emptyList(); 4074 6676 bitField0_ = (bitField0_ & ~0x00000002); 4075 changeset_ = java.util.Collections.emptyList(); ;6677 changeset_ = java.util.Collections.emptyList(); 4076 6678 bitField0_ = (bitField0_ & ~0x00000004); 4077 uid_ = java.util.Collections.emptyList(); ;6679 uid_ = java.util.Collections.emptyList(); 4078 6680 bitField0_ = (bitField0_ & ~0x00000008); 4079 userSid_ = java.util.Collections.emptyList(); ;6681 userSid_ = java.util.Collections.emptyList(); 4080 6682 bitField0_ = (bitField0_ & ~0x00000010); 4081 return this; 4082 } 4083 6683 visible_ = java.util.Collections.emptyList(); 6684 bitField0_ = (bitField0_ & ~0x00000020); 6685 return this; 6686 } 6687 4084 6688 public Builder clone() { 4085 6689 return create().mergeFrom(buildPartial()); 4086 6690 } 4087 6691 4088 6692 public crosby.binary.Osmformat.DenseInfo getDefaultInstanceForType() { 4089 6693 return crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 4090 6694 } 4091 6695 4092 6696 public crosby.binary.Osmformat.DenseInfo build() { 4093 6697 crosby.binary.Osmformat.DenseInfo result = buildPartial(); … … 4097 6701 return result; 4098 6702 } 4099 4100 private crosby.binary.Osmformat.DenseInfo buildParsed() 4101 throws com.google.protobuf.InvalidProtocolBufferException { 4102 crosby.binary.Osmformat.DenseInfo result = buildPartial(); 4103 if (!result.isInitialized()) { 4104 throw newUninitializedMessageException( 4105 result).asInvalidProtocolBufferException(); 4106 } 4107 return result; 4108 } 4109 6703 4110 6704 public crosby.binary.Osmformat.DenseInfo buildPartial() { 4111 6705 crosby.binary.Osmformat.DenseInfo result = new crosby.binary.Osmformat.DenseInfo(this); 4112 //int from_bitField0_ = bitField0_;6706 int from_bitField0_ = bitField0_; 4113 6707 if (((bitField0_ & 0x00000001) == 0x00000001)) { 4114 6708 version_ = java.util.Collections.unmodifiableList(version_); … … 4136 6730 } 4137 6731 result.userSid_ = userSid_; 6732 if (((bitField0_ & 0x00000020) == 0x00000020)) { 6733 visible_ = java.util.Collections.unmodifiableList(visible_); 6734 bitField0_ = (bitField0_ & ~0x00000020); 6735 } 6736 result.visible_ = visible_; 4138 6737 return result; 4139 6738 } 4140 6739 4141 6740 public Builder mergeFrom(crosby.binary.Osmformat.DenseInfo other) { 4142 6741 if (other == crosby.binary.Osmformat.DenseInfo.getDefaultInstance()) return this; … … 4191 6790 4192 6791 } 4193 return this; 4194 } 4195 6792 if (!other.visible_.isEmpty()) { 6793 if (visible_.isEmpty()) { 6794 visible_ = other.visible_; 6795 bitField0_ = (bitField0_ & ~0x00000020); 6796 } else { 6797 ensureVisibleIsMutable(); 6798 visible_.addAll(other.visible_); 6799 } 6800 6801 } 6802 return this; 6803 } 6804 4196 6805 public final boolean isInitialized() { 4197 6806 return true; 4198 6807 } 4199 6808 4200 6809 public Builder mergeFrom( 4201 6810 com.google.protobuf.CodedInputStream input, 4202 6811 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4203 6812 throws java.io.IOException { 4204 while (true) { 4205 int tag = input.readTag(); 4206 switch (tag) { 4207 case 0: 4208 4209 return this; 4210 default: { 4211 if (!parseUnknownField(input, extensionRegistry, tag)) { 4212 4213 return this; 4214 } 4215 break; 4216 } 4217 case 8: { 4218 ensureVersionIsMutable(); 4219 version_.add(input.readInt32()); 4220 break; 4221 } 4222 case 10: { 4223 int length = input.readRawVarint32(); 4224 int limit = input.pushLimit(length); 4225 while (input.getBytesUntilLimit() > 0) { 4226 addVersion(input.readInt32()); 4227 } 4228 input.popLimit(limit); 4229 break; 4230 } 4231 case 16: { 4232 ensureTimestampIsMutable(); 4233 timestamp_.add(input.readSInt64()); 4234 break; 4235 } 4236 case 18: { 4237 int length = input.readRawVarint32(); 4238 int limit = input.pushLimit(length); 4239 while (input.getBytesUntilLimit() > 0) { 4240 addTimestamp(input.readSInt64()); 4241 } 4242 input.popLimit(limit); 4243 break; 4244 } 4245 case 24: { 4246 ensureChangesetIsMutable(); 4247 changeset_.add(input.readSInt64()); 4248 break; 4249 } 4250 case 26: { 4251 int length = input.readRawVarint32(); 4252 int limit = input.pushLimit(length); 4253 while (input.getBytesUntilLimit() > 0) { 4254 addChangeset(input.readSInt64()); 4255 } 4256 input.popLimit(limit); 4257 break; 4258 } 4259 case 32: { 4260 ensureUidIsMutable(); 4261 uid_.add(input.readSInt32()); 4262 break; 4263 } 4264 case 34: { 4265 int length = input.readRawVarint32(); 4266 int limit = input.pushLimit(length); 4267 while (input.getBytesUntilLimit() > 0) { 4268 addUid(input.readSInt32()); 4269 } 4270 input.popLimit(limit); 4271 break; 4272 } 4273 case 40: { 4274 ensureUserSidIsMutable(); 4275 userSid_.add(input.readSInt32()); 4276 break; 4277 } 4278 case 42: { 4279 int length = input.readRawVarint32(); 4280 int limit = input.pushLimit(length); 4281 while (input.getBytesUntilLimit() > 0) { 4282 addUserSid(input.readSInt32()); 4283 } 4284 input.popLimit(limit); 4285 break; 4286 } 6813 crosby.binary.Osmformat.DenseInfo parsedMessage = null; 6814 try { 6815 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 6816 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6817 parsedMessage = (crosby.binary.Osmformat.DenseInfo) e.getUnfinishedMessage(); 6818 throw e; 6819 } finally { 6820 if (parsedMessage != null) { 6821 mergeFrom(parsedMessage); 4287 6822 } 4288 6823 } 4289 }4290 6824 return this; 6825 } 4291 6826 private int bitField0_; 4292 6827 4293 6828 // repeated int32 version = 1 [packed = true]; 4294 private java.util.List<java.lang.Integer> version_ = java.util.Collections.emptyList(); ;6829 private java.util.List<java.lang.Integer> version_ = java.util.Collections.emptyList(); 4295 6830 private void ensureVersionIsMutable() { 4296 6831 if (!((bitField0_ & 0x00000001) == 0x00000001)) { … … 4299 6834 } 4300 6835 } 6836 /** 6837 * <code>repeated int32 version = 1 [packed = true];</code> 6838 */ 4301 6839 public java.util.List<java.lang.Integer> 4302 6840 getVersionList() { 4303 6841 return java.util.Collections.unmodifiableList(version_); 4304 6842 } 6843 /** 6844 * <code>repeated int32 version = 1 [packed = true];</code> 6845 */ 4305 6846 public int getVersionCount() { 4306 6847 return version_.size(); 4307 6848 } 6849 /** 6850 * <code>repeated int32 version = 1 [packed = true];</code> 6851 */ 4308 6852 public int getVersion(int index) { 4309 6853 return version_.get(index); 4310 6854 } 6855 /** 6856 * <code>repeated int32 version = 1 [packed = true];</code> 6857 */ 4311 6858 public Builder setVersion( 4312 6859 int index, int value) { … … 4316 6863 return this; 4317 6864 } 6865 /** 6866 * <code>repeated int32 version = 1 [packed = true];</code> 6867 */ 4318 6868 public Builder addVersion(int value) { 4319 6869 ensureVersionIsMutable(); … … 4322 6872 return this; 4323 6873 } 6874 /** 6875 * <code>repeated int32 version = 1 [packed = true];</code> 6876 */ 4324 6877 public Builder addAllVersion( 4325 6878 java.lang.Iterable<? extends java.lang.Integer> values) { … … 4329 6882 return this; 4330 6883 } 6884 /** 6885 * <code>repeated int32 version = 1 [packed = true];</code> 6886 */ 4331 6887 public Builder clearVersion() { 4332 version_ = java.util.Collections.emptyList(); ;6888 version_ = java.util.Collections.emptyList(); 4333 6889 bitField0_ = (bitField0_ & ~0x00000001); 4334 6890 4335 6891 return this; 4336 6892 } 4337 6893 4338 6894 // repeated sint64 timestamp = 2 [packed = true]; 4339 private java.util.List<java.lang.Long> timestamp_ = java.util.Collections.emptyList(); ;6895 private java.util.List<java.lang.Long> timestamp_ = java.util.Collections.emptyList(); 4340 6896 private void ensureTimestampIsMutable() { 4341 6897 if (!((bitField0_ & 0x00000002) == 0x00000002)) { … … 4344 6900 } 4345 6901 } 6902 /** 6903 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6904 * 6905 * <pre> 6906 * DELTA coded 6907 * </pre> 6908 */ 4346 6909 public java.util.List<java.lang.Long> 4347 6910 getTimestampList() { 4348 6911 return java.util.Collections.unmodifiableList(timestamp_); 4349 6912 } 6913 /** 6914 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6915 * 6916 * <pre> 6917 * DELTA coded 6918 * </pre> 6919 */ 4350 6920 public int getTimestampCount() { 4351 6921 return timestamp_.size(); 4352 6922 } 6923 /** 6924 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6925 * 6926 * <pre> 6927 * DELTA coded 6928 * </pre> 6929 */ 4353 6930 public long getTimestamp(int index) { 4354 6931 return timestamp_.get(index); 4355 6932 } 6933 /** 6934 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6935 * 6936 * <pre> 6937 * DELTA coded 6938 * </pre> 6939 */ 4356 6940 public Builder setTimestamp( 4357 6941 int index, long value) { … … 4361 6945 return this; 4362 6946 } 6947 /** 6948 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6949 * 6950 * <pre> 6951 * DELTA coded 6952 * </pre> 6953 */ 4363 6954 public Builder addTimestamp(long value) { 4364 6955 ensureTimestampIsMutable(); … … 4367 6958 return this; 4368 6959 } 6960 /** 6961 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6962 * 6963 * <pre> 6964 * DELTA coded 6965 * </pre> 6966 */ 4369 6967 public Builder addAllTimestamp( 4370 6968 java.lang.Iterable<? extends java.lang.Long> values) { … … 4374 6972 return this; 4375 6973 } 6974 /** 6975 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6976 * 6977 * <pre> 6978 * DELTA coded 6979 * </pre> 6980 */ 4376 6981 public Builder clearTimestamp() { 4377 timestamp_ = java.util.Collections.emptyList(); ;6982 timestamp_ = java.util.Collections.emptyList(); 4378 6983 bitField0_ = (bitField0_ & ~0x00000002); 4379 6984 4380 6985 return this; 4381 6986 } 4382 6987 4383 6988 // repeated sint64 changeset = 3 [packed = true]; 4384 private java.util.List<java.lang.Long> changeset_ = java.util.Collections.emptyList(); ;6989 private java.util.List<java.lang.Long> changeset_ = java.util.Collections.emptyList(); 4385 6990 private void ensureChangesetIsMutable() { 4386 6991 if (!((bitField0_ & 0x00000004) == 0x00000004)) { … … 4389 6994 } 4390 6995 } 6996 /** 6997 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6998 * 6999 * <pre> 7000 * DELTA coded 7001 * </pre> 7002 */ 4391 7003 public java.util.List<java.lang.Long> 4392 7004 getChangesetList() { 4393 7005 return java.util.Collections.unmodifiableList(changeset_); 4394 7006 } 7007 /** 7008 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7009 * 7010 * <pre> 7011 * DELTA coded 7012 * </pre> 7013 */ 4395 7014 public int getChangesetCount() { 4396 7015 return changeset_.size(); 4397 7016 } 7017 /** 7018 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7019 * 7020 * <pre> 7021 * DELTA coded 7022 * </pre> 7023 */ 4398 7024 public long getChangeset(int index) { 4399 7025 return changeset_.get(index); 4400 7026 } 7027 /** 7028 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7029 * 7030 * <pre> 7031 * DELTA coded 7032 * </pre> 7033 */ 4401 7034 public Builder setChangeset( 4402 7035 int index, long value) { … … 4406 7039 return this; 4407 7040 } 7041 /** 7042 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7043 * 7044 * <pre> 7045 * DELTA coded 7046 * </pre> 7047 */ 4408 7048 public Builder addChangeset(long value) { 4409 7049 ensureChangesetIsMutable(); … … 4412 7052 return this; 4413 7053 } 7054 /** 7055 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7056 * 7057 * <pre> 7058 * DELTA coded 7059 * </pre> 7060 */ 4414 7061 public Builder addAllChangeset( 4415 7062 java.lang.Iterable<? extends java.lang.Long> values) { … … 4419 7066 return this; 4420 7067 } 7068 /** 7069 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7070 * 7071 * <pre> 7072 * DELTA coded 7073 * </pre> 7074 */ 4421 7075 public Builder clearChangeset() { 4422 changeset_ = java.util.Collections.emptyList(); ;7076 changeset_ = java.util.Collections.emptyList(); 4423 7077 bitField0_ = (bitField0_ & ~0x00000004); 4424 7078 4425 7079 return this; 4426 7080 } 4427 7081 4428 7082 // repeated sint32 uid = 4 [packed = true]; 4429 private java.util.List<java.lang.Integer> uid_ = java.util.Collections.emptyList(); ;7083 private java.util.List<java.lang.Integer> uid_ = java.util.Collections.emptyList(); 4430 7084 private void ensureUidIsMutable() { 4431 7085 if (!((bitField0_ & 0x00000008) == 0x00000008)) { … … 4434 7088 } 4435 7089 } 7090 /** 7091 * <code>repeated sint32 uid = 4 [packed = true];</code> 7092 * 7093 * <pre> 7094 * DELTA coded 7095 * </pre> 7096 */ 4436 7097 public java.util.List<java.lang.Integer> 4437 7098 getUidList() { 4438 7099 return java.util.Collections.unmodifiableList(uid_); 4439 7100 } 7101 /** 7102 * <code>repeated sint32 uid = 4 [packed = true];</code> 7103 * 7104 * <pre> 7105 * DELTA coded 7106 * </pre> 7107 */ 4440 7108 public int getUidCount() { 4441 7109 return uid_.size(); 4442 7110 } 7111 /** 7112 * <code>repeated sint32 uid = 4 [packed = true];</code> 7113 * 7114 * <pre> 7115 * DELTA coded 7116 * </pre> 7117 */ 4443 7118 public int getUid(int index) { 4444 7119 return uid_.get(index); 4445 7120 } 7121 /** 7122 * <code>repeated sint32 uid = 4 [packed = true];</code> 7123 * 7124 * <pre> 7125 * DELTA coded 7126 * </pre> 7127 */ 4446 7128 public Builder setUid( 4447 7129 int index, int value) { … … 4451 7133 return this; 4452 7134 } 7135 /** 7136 * <code>repeated sint32 uid = 4 [packed = true];</code> 7137 * 7138 * <pre> 7139 * DELTA coded 7140 * </pre> 7141 */ 4453 7142 public Builder addUid(int value) { 4454 7143 ensureUidIsMutable(); … … 4457 7146 return this; 4458 7147 } 7148 /** 7149 * <code>repeated sint32 uid = 4 [packed = true];</code> 7150 * 7151 * <pre> 7152 * DELTA coded 7153 * </pre> 7154 */ 4459 7155 public Builder addAllUid( 4460 7156 java.lang.Iterable<? extends java.lang.Integer> values) { … … 4464 7160 return this; 4465 7161 } 7162 /** 7163 * <code>repeated sint32 uid = 4 [packed = true];</code> 7164 * 7165 * <pre> 7166 * DELTA coded 7167 * </pre> 7168 */ 4466 7169 public Builder clearUid() { 4467 uid_ = java.util.Collections.emptyList(); ;7170 uid_ = java.util.Collections.emptyList(); 4468 7171 bitField0_ = (bitField0_ & ~0x00000008); 4469 7172 4470 7173 return this; 4471 7174 } 4472 7175 4473 7176 // repeated sint32 user_sid = 5 [packed = true]; 4474 private java.util.List<java.lang.Integer> userSid_ = java.util.Collections.emptyList(); ;7177 private java.util.List<java.lang.Integer> userSid_ = java.util.Collections.emptyList(); 4475 7178 private void ensureUserSidIsMutable() { 4476 7179 if (!((bitField0_ & 0x00000010) == 0x00000010)) { … … 4479 7182 } 4480 7183 } 7184 /** 7185 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7186 * 7187 * <pre> 7188 * String IDs for usernames. DELTA coded 7189 * </pre> 7190 */ 4481 7191 public java.util.List<java.lang.Integer> 4482 7192 getUserSidList() { 4483 7193 return java.util.Collections.unmodifiableList(userSid_); 4484 7194 } 7195 /** 7196 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7197 * 7198 * <pre> 7199 * String IDs for usernames. DELTA coded 7200 * </pre> 7201 */ 4485 7202 public int getUserSidCount() { 4486 7203 return userSid_.size(); 4487 7204 } 7205 /** 7206 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7207 * 7208 * <pre> 7209 * String IDs for usernames. DELTA coded 7210 * </pre> 7211 */ 4488 7212 public int getUserSid(int index) { 4489 7213 return userSid_.get(index); 4490 7214 } 7215 /** 7216 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7217 * 7218 * <pre> 7219 * String IDs for usernames. DELTA coded 7220 * </pre> 7221 */ 4491 7222 public Builder setUserSid( 4492 7223 int index, int value) { … … 4496 7227 return this; 4497 7228 } 7229 /** 7230 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7231 * 7232 * <pre> 7233 * String IDs for usernames. DELTA coded 7234 * </pre> 7235 */ 4498 7236 public Builder addUserSid(int value) { 4499 7237 ensureUserSidIsMutable(); … … 4502 7240 return this; 4503 7241 } 7242 /** 7243 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7244 * 7245 * <pre> 7246 * String IDs for usernames. DELTA coded 7247 * </pre> 7248 */ 4504 7249 public Builder addAllUserSid( 4505 7250 java.lang.Iterable<? extends java.lang.Integer> values) { … … 4509 7254 return this; 4510 7255 } 7256 /** 7257 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7258 * 7259 * <pre> 7260 * String IDs for usernames. DELTA coded 7261 * </pre> 7262 */ 4511 7263 public Builder clearUserSid() { 4512 userSid_ = java.util.Collections.emptyList(); ;7264 userSid_ = java.util.Collections.emptyList(); 4513 7265 bitField0_ = (bitField0_ & ~0x00000010); 4514 7266 4515 7267 return this; 4516 7268 } 4517 7269 7270 // repeated bool visible = 6 [packed = true]; 7271 private java.util.List<java.lang.Boolean> visible_ = java.util.Collections.emptyList(); 7272 private void ensureVisibleIsMutable() { 7273 if (!((bitField0_ & 0x00000020) == 0x00000020)) { 7274 visible_ = new java.util.ArrayList<java.lang.Boolean>(visible_); 7275 bitField0_ |= 0x00000020; 7276 } 7277 } 7278 /** 7279 * <code>repeated bool visible = 6 [packed = true];</code> 7280 * 7281 * <pre> 7282 * The visible flag is used to store history information. It indicates that 7283 * the current object version has been created by a delete operation on the 7284 * OSM API. 7285 * When a writer sets this flag, it MUST add a required_features tag with 7286 * value "HistoricalInformation" to the HeaderBlock. 7287 * If this flag is not available for some object it MUST be assumed to be 7288 * true if the file has the required_features tag "HistoricalInformation" 7289 * set. 7290 * </pre> 7291 */ 7292 public java.util.List<java.lang.Boolean> 7293 getVisibleList() { 7294 return java.util.Collections.unmodifiableList(visible_); 7295 } 7296 /** 7297 * <code>repeated bool visible = 6 [packed = true];</code> 7298 * 7299 * <pre> 7300 * The visible flag is used to store history information. It indicates that 7301 * the current object version has been created by a delete operation on the 7302 * OSM API. 7303 * When a writer sets this flag, it MUST add a required_features tag with 7304 * value "HistoricalInformation" to the HeaderBlock. 7305 * If this flag is not available for some object it MUST be assumed to be 7306 * true if the file has the required_features tag "HistoricalInformation" 7307 * set. 7308 * </pre> 7309 */ 7310 public int getVisibleCount() { 7311 return visible_.size(); 7312 } 7313 /** 7314 * <code>repeated bool visible = 6 [packed = true];</code> 7315 * 7316 * <pre> 7317 * The visible flag is used to store history information. It indicates that 7318 * the current object version has been created by a delete operation on the 7319 * OSM API. 7320 * When a writer sets this flag, it MUST add a required_features tag with 7321 * value "HistoricalInformation" to the HeaderBlock. 7322 * If this flag is not available for some object it MUST be assumed to be 7323 * true if the file has the required_features tag "HistoricalInformation" 7324 * set. 7325 * </pre> 7326 */ 7327 public boolean getVisible(int index) { 7328 return visible_.get(index); 7329 } 7330 /** 7331 * <code>repeated bool visible = 6 [packed = true];</code> 7332 * 7333 * <pre> 7334 * The visible flag is used to store history information. It indicates that 7335 * the current object version has been created by a delete operation on the 7336 * OSM API. 7337 * When a writer sets this flag, it MUST add a required_features tag with 7338 * value "HistoricalInformation" to the HeaderBlock. 7339 * If this flag is not available for some object it MUST be assumed to be 7340 * true if the file has the required_features tag "HistoricalInformation" 7341 * set. 7342 * </pre> 7343 */ 7344 public Builder setVisible( 7345 int index, boolean value) { 7346 ensureVisibleIsMutable(); 7347 visible_.set(index, value); 7348 7349 return this; 7350 } 7351 /** 7352 * <code>repeated bool visible = 6 [packed = true];</code> 7353 * 7354 * <pre> 7355 * The visible flag is used to store history information. It indicates that 7356 * the current object version has been created by a delete operation on the 7357 * OSM API. 7358 * When a writer sets this flag, it MUST add a required_features tag with 7359 * value "HistoricalInformation" to the HeaderBlock. 7360 * If this flag is not available for some object it MUST be assumed to be 7361 * true if the file has the required_features tag "HistoricalInformation" 7362 * set. 7363 * </pre> 7364 */ 7365 public Builder addVisible(boolean value) { 7366 ensureVisibleIsMutable(); 7367 visible_.add(value); 7368 7369 return this; 7370 } 7371 /** 7372 * <code>repeated bool visible = 6 [packed = true];</code> 7373 * 7374 * <pre> 7375 * The visible flag is used to store history information. It indicates that 7376 * the current object version has been created by a delete operation on the 7377 * OSM API. 7378 * When a writer sets this flag, it MUST add a required_features tag with 7379 * value "HistoricalInformation" to the HeaderBlock. 7380 * If this flag is not available for some object it MUST be assumed to be 7381 * true if the file has the required_features tag "HistoricalInformation" 7382 * set. 7383 * </pre> 7384 */ 7385 public Builder addAllVisible( 7386 java.lang.Iterable<? extends java.lang.Boolean> values) { 7387 ensureVisibleIsMutable(); 7388 super.addAll(values, visible_); 7389 7390 return this; 7391 } 7392 /** 7393 * <code>repeated bool visible = 6 [packed = true];</code> 7394 * 7395 * <pre> 7396 * The visible flag is used to store history information. It indicates that 7397 * the current object version has been created by a delete operation on the 7398 * OSM API. 7399 * When a writer sets this flag, it MUST add a required_features tag with 7400 * value "HistoricalInformation" to the HeaderBlock. 7401 * If this flag is not available for some object it MUST be assumed to be 7402 * true if the file has the required_features tag "HistoricalInformation" 7403 * set. 7404 * </pre> 7405 */ 7406 public Builder clearVisible() { 7407 visible_ = java.util.Collections.emptyList(); 7408 bitField0_ = (bitField0_ & ~0x00000020); 7409 7410 return this; 7411 } 7412 4518 7413 // @@protoc_insertion_point(builder_scope:OSMPBF.DenseInfo) 4519 7414 } 4520 7415 4521 7416 static { 4522 7417 defaultInstance = new DenseInfo(true); 4523 7418 defaultInstance.initFields(); 4524 7419 } 4525 7420 4526 7421 // @@protoc_insertion_point(class_scope:OSMPBF.DenseInfo) 4527 7422 } 4528 7423 4529 7424 public interface ChangeSetOrBuilder 4530 7425 extends com.google.protobuf.MessageLiteOrBuilder { 4531 7426 4532 7427 // required int64 id = 1; 7428 /** 7429 * <code>required int64 id = 1;</code> 7430 * 7431 * <pre> 7432 * 7433 * // Parallel arrays. 7434 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7435 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7436 * 7437 * optional Info info = 4; 7438 * </pre> 7439 */ 4533 7440 boolean hasId(); 7441 /** 7442 * <code>required int64 id = 1;</code> 7443 * 7444 * <pre> 7445 * 7446 * // Parallel arrays. 7447 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7448 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7449 * 7450 * optional Info info = 4; 7451 * </pre> 7452 */ 4534 7453 long getId(); 4535 7454 } 7455 /** 7456 * Protobuf type {@code OSMPBF.ChangeSet} 7457 * 7458 * <pre> 7459 * THIS IS STUB DESIGN FOR CHANGESETS. NOT USED RIGHT NOW. 7460 * TODO: REMOVE THIS? 7461 * </pre> 7462 */ 4536 7463 public static final class ChangeSet extends 4537 7464 com.google.protobuf.GeneratedMessageLite 4538 7465 implements ChangeSetOrBuilder { 4539 7466 // Use ChangeSet.newBuilder() to construct. 4540 private ChangeSet( Builder builder) {7467 private ChangeSet(com.google.protobuf.GeneratedMessageLite.Builder builder) { 4541 7468 super(builder); 7469 4542 7470 } 4543 7471 private ChangeSet(boolean noInit) {} 4544 7472 4545 7473 private static final ChangeSet defaultInstance; 4546 7474 public static ChangeSet getDefaultInstance() { 4547 7475 return defaultInstance; 4548 7476 } 4549 7477 4550 7478 public ChangeSet getDefaultInstanceForType() { 4551 7479 return defaultInstance; 4552 7480 } 4553 4554 private int bitField0_; 4555 // required int64 id = 1; 4556 public static final int ID_FIELD_NUMBER = 1; 4557 private long id_; 4558 public boolean hasId() { 4559 return ((bitField0_ & 0x00000001) == 0x00000001); 4560 } 4561 public long getId() { 4562 return id_; 4563 } 4564 4565 private void initFields() { 4566 id_ = 0L; 4567 } 4568 private byte memoizedIsInitialized = -1; 4569 public final boolean isInitialized() { 4570 byte isInitialized = memoizedIsInitialized; 4571 if (isInitialized != -1) return isInitialized == 1; 4572 4573 if (!hasId()) { 4574 memoizedIsInitialized = 0; 4575 return false; 4576 } 4577 memoizedIsInitialized = 1; 4578 return true; 4579 } 4580 4581 public void writeTo(com.google.protobuf.CodedOutputStream output) 4582 throws java.io.IOException { 4583 getSerializedSize(); 4584 if (((bitField0_ & 0x00000001) == 0x00000001)) { 4585 output.writeInt64(1, id_); 4586 } 4587 } 4588 4589 private int memoizedSerializedSize = -1; 4590 public int getSerializedSize() { 4591 int size = memoizedSerializedSize; 4592 if (size != -1) return size; 4593 4594 size = 0; 4595 if (((bitField0_ & 0x00000001) == 0x00000001)) { 4596 size += com.google.protobuf.CodedOutputStream 4597 .computeInt64Size(1, id_); 4598 } 4599 memoizedSerializedSize = size; 4600 return size; 4601 } 4602 4603 private static final long serialVersionUID = 0L; 4604 @java.lang.Override 4605 protected java.lang.Object writeReplace() 4606 throws java.io.ObjectStreamException { 4607 return super.writeReplace(); 4608 } 4609 4610 public static crosby.binary.Osmformat.ChangeSet parseFrom( 4611 com.google.protobuf.ByteString data) 4612 throws com.google.protobuf.InvalidProtocolBufferException { 4613 return newBuilder().mergeFrom(data).buildParsed(); 4614 } 4615 public static crosby.binary.Osmformat.ChangeSet parseFrom( 4616 com.google.protobuf.ByteString data, 7481 7482 private ChangeSet( 7483 com.google.protobuf.CodedInputStream input, 4617 7484 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4618 7485 throws com.google.protobuf.InvalidProtocolBufferException { 4619 return newBuilder().mergeFrom(data, extensionRegistry) 4620 .buildParsed(); 4621 } 4622 public static crosby.binary.Osmformat.ChangeSet parseFrom(byte[] data) 4623 throws com.google.protobuf.InvalidProtocolBufferException { 4624 return newBuilder().mergeFrom(data).buildParsed(); 4625 } 4626 public static crosby.binary.Osmformat.ChangeSet parseFrom( 4627 byte[] data, 4628 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4629 throws com.google.protobuf.InvalidProtocolBufferException { 4630 return newBuilder().mergeFrom(data, extensionRegistry) 4631 .buildParsed(); 4632 } 4633 public static crosby.binary.Osmformat.ChangeSet parseFrom(java.io.InputStream input) 4634 throws java.io.IOException { 4635 return newBuilder().mergeFrom(input).buildParsed(); 4636 } 4637 public static crosby.binary.Osmformat.ChangeSet parseFrom( 4638 java.io.InputStream input, 4639 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4640 throws java.io.IOException { 4641 return newBuilder().mergeFrom(input, extensionRegistry) 4642 .buildParsed(); 4643 } 4644 public static crosby.binary.Osmformat.ChangeSet parseDelimitedFrom(java.io.InputStream input) 4645 throws java.io.IOException { 4646 Builder builder = newBuilder(); 4647 if (builder.mergeDelimitedFrom(input)) { 4648 return builder.buildParsed(); 4649 } else { 4650 return null; 4651 } 4652 } 4653 public static crosby.binary.Osmformat.ChangeSet parseDelimitedFrom( 4654 java.io.InputStream input, 4655 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4656 throws java.io.IOException { 4657 Builder builder = newBuilder(); 4658 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 4659 return builder.buildParsed(); 4660 } else { 4661 return null; 4662 } 4663 } 4664 public static crosby.binary.Osmformat.ChangeSet parseFrom( 4665 com.google.protobuf.CodedInputStream input) 4666 throws java.io.IOException { 4667 return newBuilder().mergeFrom(input).buildParsed(); 4668 } 4669 public static crosby.binary.Osmformat.ChangeSet parseFrom( 4670 com.google.protobuf.CodedInputStream input, 4671 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4672 throws java.io.IOException { 4673 return newBuilder().mergeFrom(input, extensionRegistry) 4674 .buildParsed(); 4675 } 4676 4677 public static Builder newBuilder() { return Builder.create(); } 4678 public Builder newBuilderForType() { return newBuilder(); } 4679 public static Builder newBuilder(crosby.binary.Osmformat.ChangeSet prototype) { 4680 return newBuilder().mergeFrom(prototype); 4681 } 4682 public Builder toBuilder() { return newBuilder(this); } 4683 4684 public static final class Builder extends 4685 com.google.protobuf.GeneratedMessageLite.Builder< 4686 crosby.binary.Osmformat.ChangeSet, Builder> 4687 implements crosby.binary.Osmformat.ChangeSetOrBuilder { 4688 // Construct using crosby.binary.Osmformat.ChangeSet.newBuilder() 4689 private Builder() { 4690 maybeForceBuilderInitialization(); 4691 } 4692 4693 private void maybeForceBuilderInitialization() { 4694 } 4695 private static Builder create() { 4696 return new Builder(); 4697 } 4698 4699 public Builder clear() { 4700 super.clear(); 4701 id_ = 0L; 4702 bitField0_ = (bitField0_ & ~0x00000001); 4703 return this; 4704 } 4705 4706 public Builder clone() { 4707 return create().mergeFrom(buildPartial()); 4708 } 4709 4710 public crosby.binary.Osmformat.ChangeSet getDefaultInstanceForType() { 4711 return crosby.binary.Osmformat.ChangeSet.getDefaultInstance(); 4712 } 4713 4714 public crosby.binary.Osmformat.ChangeSet build() { 4715 crosby.binary.Osmformat.ChangeSet result = buildPartial(); 4716 if (!result.isInitialized()) { 4717 throw newUninitializedMessageException(result); 4718 } 4719 return result; 4720 } 4721 4722 private crosby.binary.Osmformat.ChangeSet buildParsed() 4723 throws com.google.protobuf.InvalidProtocolBufferException { 4724 crosby.binary.Osmformat.ChangeSet result = buildPartial(); 4725 if (!result.isInitialized()) { 4726 throw newUninitializedMessageException( 4727 result).asInvalidProtocolBufferException(); 4728 } 4729 return result; 4730 } 4731 4732 public crosby.binary.Osmformat.ChangeSet buildPartial() { 4733 crosby.binary.Osmformat.ChangeSet result = new crosby.binary.Osmformat.ChangeSet(this); 4734 int from_bitField0_ = bitField0_; 4735 int to_bitField0_ = 0; 4736 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 4737 to_bitField0_ |= 0x00000001; 4738 } 4739 result.id_ = id_; 4740 result.bitField0_ = to_bitField0_; 4741 return result; 4742 } 4743 4744 public Builder mergeFrom(crosby.binary.Osmformat.ChangeSet other) { 4745 if (other == crosby.binary.Osmformat.ChangeSet.getDefaultInstance()) return this; 4746 if (other.hasId()) { 4747 setId(other.getId()); 4748 } 4749 return this; 4750 } 4751 4752 public final boolean isInitialized() { 4753 if (!hasId()) { 4754 4755 return false; 4756 } 4757 return true; 4758 } 4759 4760 public Builder mergeFrom( 4761 com.google.protobuf.CodedInputStream input, 4762 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4763 throws java.io.IOException { 4764 while (true) { 7486 initFields(); 7487 int mutable_bitField0_ = 0; 7488 try { 7489 boolean done = false; 7490 while (!done) { 4765 7491 int tag = input.readTag(); 4766 7492 switch (tag) { 4767 7493 case 0: 4768 4769 return this;7494 done = true; 7495 break; 4770 7496 default: { 4771 if (!parseUnknownField(input, extensionRegistry, tag)) {4772 4773 return this;7497 if (!parseUnknownField(input, 7498 extensionRegistry, tag)) { 7499 done = true; 4774 7500 } 4775 7501 break; … … 4782 7508 } 4783 7509 } 4784 } 4785 7510 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7511 throw e.setUnfinishedMessage(this); 7512 } catch (java.io.IOException e) { 7513 throw new com.google.protobuf.InvalidProtocolBufferException( 7514 e.getMessage()).setUnfinishedMessage(this); 7515 } finally { 7516 makeExtensionsImmutable(); 7517 } 7518 } 7519 public static com.google.protobuf.Parser<ChangeSet> PARSER = 7520 new com.google.protobuf.AbstractParser<ChangeSet>() { 7521 public ChangeSet parsePartialFrom( 7522 com.google.protobuf.CodedInputStream input, 7523 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7524 throws com.google.protobuf.InvalidProtocolBufferException { 7525 return new ChangeSet(input, extensionRegistry); 7526 } 7527 }; 7528 7529 @java.lang.Override 7530 public com.google.protobuf.Parser<ChangeSet> getParserForType() { 7531 return PARSER; 7532 } 7533 7534 private int bitField0_; 7535 // required int64 id = 1; 7536 public static final int ID_FIELD_NUMBER = 1; 7537 private long id_; 7538 /** 7539 * <code>required int64 id = 1;</code> 7540 * 7541 * <pre> 7542 * 7543 * // Parallel arrays. 7544 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7545 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7546 * 7547 * optional Info info = 4; 7548 * </pre> 7549 */ 7550 public boolean hasId() { 7551 return ((bitField0_ & 0x00000001) == 0x00000001); 7552 } 7553 /** 7554 * <code>required int64 id = 1;</code> 7555 * 7556 * <pre> 7557 * 7558 * // Parallel arrays. 7559 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7560 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7561 * 7562 * optional Info info = 4; 7563 * </pre> 7564 */ 7565 public long getId() { 7566 return id_; 7567 } 7568 7569 private void initFields() { 7570 id_ = 0L; 7571 } 7572 private byte memoizedIsInitialized = -1; 7573 public final boolean isInitialized() { 7574 byte isInitialized = memoizedIsInitialized; 7575 if (isInitialized != -1) return isInitialized == 1; 7576 7577 if (!hasId()) { 7578 memoizedIsInitialized = 0; 7579 return false; 7580 } 7581 memoizedIsInitialized = 1; 7582 return true; 7583 } 7584 7585 public void writeTo(com.google.protobuf.CodedOutputStream output) 7586 throws java.io.IOException { 7587 getSerializedSize(); 7588 if (((bitField0_ & 0x00000001) == 0x00000001)) { 7589 output.writeInt64(1, id_); 7590 } 7591 } 7592 7593 private int memoizedSerializedSize = -1; 7594 public int getSerializedSize() { 7595 int size = memoizedSerializedSize; 7596 if (size != -1) return size; 7597 7598 size = 0; 7599 if (((bitField0_ & 0x00000001) == 0x00000001)) { 7600 size += com.google.protobuf.CodedOutputStream 7601 .computeInt64Size(1, id_); 7602 } 7603 memoizedSerializedSize = size; 7604 return size; 7605 } 7606 7607 private static final long serialVersionUID = 0L; 7608 @java.lang.Override 7609 protected java.lang.Object writeReplace() 7610 throws java.io.ObjectStreamException { 7611 return super.writeReplace(); 7612 } 7613 7614 public static crosby.binary.Osmformat.ChangeSet parseFrom( 7615 com.google.protobuf.ByteString data) 7616 throws com.google.protobuf.InvalidProtocolBufferException { 7617 return PARSER.parseFrom(data); 7618 } 7619 public static crosby.binary.Osmformat.ChangeSet parseFrom( 7620 com.google.protobuf.ByteString data, 7621 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7622 throws com.google.protobuf.InvalidProtocolBufferException { 7623 return PARSER.parseFrom(data, extensionRegistry); 7624 } 7625 public static crosby.binary.Osmformat.ChangeSet parseFrom(byte[] data) 7626 throws com.google.protobuf.InvalidProtocolBufferException { 7627 return PARSER.parseFrom(data); 7628 } 7629 public static crosby.binary.Osmformat.ChangeSet parseFrom( 7630 byte[] data, 7631 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7632 throws com.google.protobuf.InvalidProtocolBufferException { 7633 return PARSER.parseFrom(data, extensionRegistry); 7634 } 7635 public static crosby.binary.Osmformat.ChangeSet parseFrom(java.io.InputStream input) 7636 throws java.io.IOException { 7637 return PARSER.parseFrom(input); 7638 } 7639 public static crosby.binary.Osmformat.ChangeSet parseFrom( 7640 java.io.InputStream input, 7641 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7642 throws java.io.IOException { 7643 return PARSER.parseFrom(input, extensionRegistry); 7644 } 7645 public static crosby.binary.Osmformat.ChangeSet parseDelimitedFrom(java.io.InputStream input) 7646 throws java.io.IOException { 7647 return PARSER.parseDelimitedFrom(input); 7648 } 7649 public static crosby.binary.Osmformat.ChangeSet parseDelimitedFrom( 7650 java.io.InputStream input, 7651 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7652 throws java.io.IOException { 7653 return PARSER.parseDelimitedFrom(input, extensionRegistry); 7654 } 7655 public static crosby.binary.Osmformat.ChangeSet parseFrom( 7656 com.google.protobuf.CodedInputStream input) 7657 throws java.io.IOException { 7658 return PARSER.parseFrom(input); 7659 } 7660 public static crosby.binary.Osmformat.ChangeSet parseFrom( 7661 com.google.protobuf.CodedInputStream input, 7662 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7663 throws java.io.IOException { 7664 return PARSER.parseFrom(input, extensionRegistry); 7665 } 7666 7667 public static Builder newBuilder() { return Builder.create(); } 7668 public Builder newBuilderForType() { return newBuilder(); } 7669 public static Builder newBuilder(crosby.binary.Osmformat.ChangeSet prototype) { 7670 return newBuilder().mergeFrom(prototype); 7671 } 7672 public Builder toBuilder() { return newBuilder(this); } 7673 7674 /** 7675 * Protobuf type {@code OSMPBF.ChangeSet} 7676 * 7677 * <pre> 7678 * THIS IS STUB DESIGN FOR CHANGESETS. NOT USED RIGHT NOW. 7679 * TODO: REMOVE THIS? 7680 * </pre> 7681 */ 7682 public static final class Builder extends 7683 com.google.protobuf.GeneratedMessageLite.Builder< 7684 crosby.binary.Osmformat.ChangeSet, Builder> 7685 implements crosby.binary.Osmformat.ChangeSetOrBuilder { 7686 // Construct using crosby.binary.Osmformat.ChangeSet.newBuilder() 7687 private Builder() { 7688 maybeForceBuilderInitialization(); 7689 } 7690 7691 private void maybeForceBuilderInitialization() { 7692 } 7693 private static Builder create() { 7694 return new Builder(); 7695 } 7696 7697 public Builder clear() { 7698 super.clear(); 7699 id_ = 0L; 7700 bitField0_ = (bitField0_ & ~0x00000001); 7701 return this; 7702 } 7703 7704 public Builder clone() { 7705 return create().mergeFrom(buildPartial()); 7706 } 7707 7708 public crosby.binary.Osmformat.ChangeSet getDefaultInstanceForType() { 7709 return crosby.binary.Osmformat.ChangeSet.getDefaultInstance(); 7710 } 7711 7712 public crosby.binary.Osmformat.ChangeSet build() { 7713 crosby.binary.Osmformat.ChangeSet result = buildPartial(); 7714 if (!result.isInitialized()) { 7715 throw newUninitializedMessageException(result); 7716 } 7717 return result; 7718 } 7719 7720 public crosby.binary.Osmformat.ChangeSet buildPartial() { 7721 crosby.binary.Osmformat.ChangeSet result = new crosby.binary.Osmformat.ChangeSet(this); 7722 int from_bitField0_ = bitField0_; 7723 int to_bitField0_ = 0; 7724 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 7725 to_bitField0_ |= 0x00000001; 7726 } 7727 result.id_ = id_; 7728 result.bitField0_ = to_bitField0_; 7729 return result; 7730 } 7731 7732 public Builder mergeFrom(crosby.binary.Osmformat.ChangeSet other) { 7733 if (other == crosby.binary.Osmformat.ChangeSet.getDefaultInstance()) return this; 7734 if (other.hasId()) { 7735 setId(other.getId()); 7736 } 7737 return this; 7738 } 7739 7740 public final boolean isInitialized() { 7741 if (!hasId()) { 7742 7743 return false; 7744 } 7745 return true; 7746 } 7747 7748 public Builder mergeFrom( 7749 com.google.protobuf.CodedInputStream input, 7750 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7751 throws java.io.IOException { 7752 crosby.binary.Osmformat.ChangeSet parsedMessage = null; 7753 try { 7754 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 7755 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7756 parsedMessage = (crosby.binary.Osmformat.ChangeSet) e.getUnfinishedMessage(); 7757 throw e; 7758 } finally { 7759 if (parsedMessage != null) { 7760 mergeFrom(parsedMessage); 7761 } 7762 } 7763 return this; 7764 } 4786 7765 private int bitField0_; 4787 7766 4788 7767 // required int64 id = 1; 4789 7768 private long id_ ; 7769 /** 7770 * <code>required int64 id = 1;</code> 7771 * 7772 * <pre> 7773 * 7774 * // Parallel arrays. 7775 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7776 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7777 * 7778 * optional Info info = 4; 7779 * </pre> 7780 */ 4790 7781 public boolean hasId() { 4791 7782 return ((bitField0_ & 0x00000001) == 0x00000001); 4792 7783 } 7784 /** 7785 * <code>required int64 id = 1;</code> 7786 * 7787 * <pre> 7788 * 7789 * // Parallel arrays. 7790 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7791 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7792 * 7793 * optional Info info = 4; 7794 * </pre> 7795 */ 4793 7796 public long getId() { 4794 7797 return id_; 4795 7798 } 7799 /** 7800 * <code>required int64 id = 1;</code> 7801 * 7802 * <pre> 7803 * 7804 * // Parallel arrays. 7805 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7806 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7807 * 7808 * optional Info info = 4; 7809 * </pre> 7810 */ 4796 7811 public Builder setId(long value) { 4797 7812 bitField0_ |= 0x00000001; … … 4800 7815 return this; 4801 7816 } 7817 /** 7818 * <code>required int64 id = 1;</code> 7819 * 7820 * <pre> 7821 * 7822 * // Parallel arrays. 7823 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7824 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7825 * 7826 * optional Info info = 4; 7827 * </pre> 7828 */ 4802 7829 public Builder clearId() { 4803 7830 bitField0_ = (bitField0_ & ~0x00000001); … … 4806 7833 return this; 4807 7834 } 4808 7835 4809 7836 // @@protoc_insertion_point(builder_scope:OSMPBF.ChangeSet) 4810 7837 } 4811 7838 4812 7839 static { 4813 7840 defaultInstance = new ChangeSet(true); 4814 7841 defaultInstance.initFields(); 4815 7842 } 4816 7843 4817 7844 // @@protoc_insertion_point(class_scope:OSMPBF.ChangeSet) 4818 7845 } 4819 7846 4820 7847 public interface NodeOrBuilder 4821 7848 extends com.google.protobuf.MessageLiteOrBuilder { 4822 7849 4823 7850 // required sint64 id = 1; 7851 /** 7852 * <code>required sint64 id = 1;</code> 7853 */ 4824 7854 boolean hasId(); 7855 /** 7856 * <code>required sint64 id = 1;</code> 7857 */ 4825 7858 long getId(); 4826 7859 4827 7860 // repeated uint32 keys = 2 [packed = true]; 7861 /** 7862 * <code>repeated uint32 keys = 2 [packed = true];</code> 7863 * 7864 * <pre> 7865 * Parallel arrays. 7866 * </pre> 7867 */ 4828 7868 java.util.List<java.lang.Integer> getKeysList(); 7869 /** 7870 * <code>repeated uint32 keys = 2 [packed = true];</code> 7871 * 7872 * <pre> 7873 * Parallel arrays. 7874 * </pre> 7875 */ 4829 7876 int getKeysCount(); 7877 /** 7878 * <code>repeated uint32 keys = 2 [packed = true];</code> 7879 * 7880 * <pre> 7881 * Parallel arrays. 7882 * </pre> 7883 */ 4830 7884 int getKeys(int index); 4831 7885 4832 7886 // repeated uint32 vals = 3 [packed = true]; 7887 /** 7888 * <code>repeated uint32 vals = 3 [packed = true];</code> 7889 * 7890 * <pre> 7891 * String IDs. 7892 * </pre> 7893 */ 4833 7894 java.util.List<java.lang.Integer> getValsList(); 7895 /** 7896 * <code>repeated uint32 vals = 3 [packed = true];</code> 7897 * 7898 * <pre> 7899 * String IDs. 7900 * </pre> 7901 */ 4834 7902 int getValsCount(); 7903 /** 7904 * <code>repeated uint32 vals = 3 [packed = true];</code> 7905 * 7906 * <pre> 7907 * String IDs. 7908 * </pre> 7909 */ 4835 7910 int getVals(int index); 4836 7911 4837 7912 // optional .OSMPBF.Info info = 4; 7913 /** 7914 * <code>optional .OSMPBF.Info info = 4;</code> 7915 * 7916 * <pre> 7917 * May be omitted in omitmeta 7918 * </pre> 7919 */ 4838 7920 boolean hasInfo(); 7921 /** 7922 * <code>optional .OSMPBF.Info info = 4;</code> 7923 * 7924 * <pre> 7925 * May be omitted in omitmeta 7926 * </pre> 7927 */ 4839 7928 crosby.binary.Osmformat.Info getInfo(); 4840 7929 4841 7930 // required sint64 lat = 8; 7931 /** 7932 * <code>required sint64 lat = 8;</code> 7933 */ 4842 7934 boolean hasLat(); 7935 /** 7936 * <code>required sint64 lat = 8;</code> 7937 */ 4843 7938 long getLat(); 4844 7939 4845 7940 // required sint64 lon = 9; 7941 /** 7942 * <code>required sint64 lon = 9;</code> 7943 */ 4846 7944 boolean hasLon(); 7945 /** 7946 * <code>required sint64 lon = 9;</code> 7947 */ 4847 7948 long getLon(); 4848 7949 } 7950 /** 7951 * Protobuf type {@code OSMPBF.Node} 7952 */ 4849 7953 public static final class Node extends 4850 7954 com.google.protobuf.GeneratedMessageLite 4851 7955 implements NodeOrBuilder { 4852 7956 // Use Node.newBuilder() to construct. 4853 private Node( Builder builder) {7957 private Node(com.google.protobuf.GeneratedMessageLite.Builder builder) { 4854 7958 super(builder); 7959 4855 7960 } 4856 7961 private Node(boolean noInit) {} 4857 7962 4858 7963 private static final Node defaultInstance; 4859 7964 public static Node getDefaultInstance() { 4860 7965 return defaultInstance; 4861 7966 } 4862 7967 4863 7968 public Node getDefaultInstanceForType() { 4864 7969 return defaultInstance; 4865 7970 } 4866 7971 7972 private Node( 7973 com.google.protobuf.CodedInputStream input, 7974 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7975 throws com.google.protobuf.InvalidProtocolBufferException { 7976 initFields(); 7977 int mutable_bitField0_ = 0; 7978 try { 7979 boolean done = false; 7980 while (!done) { 7981 int tag = input.readTag(); 7982 switch (tag) { 7983 case 0: 7984 done = true; 7985 break; 7986 default: { 7987 if (!parseUnknownField(input, 7988 extensionRegistry, tag)) { 7989 done = true; 7990 } 7991 break; 7992 } 7993 case 8: { 7994 bitField0_ |= 0x00000001; 7995 id_ = input.readSInt64(); 7996 break; 7997 } 7998 case 16: { 7999 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 8000 keys_ = new java.util.ArrayList<java.lang.Integer>(); 8001 mutable_bitField0_ |= 0x00000002; 8002 } 8003 keys_.add(input.readUInt32()); 8004 break; 8005 } 8006 case 18: { 8007 int length = input.readRawVarint32(); 8008 int limit = input.pushLimit(length); 8009 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { 8010 keys_ = new java.util.ArrayList<java.lang.Integer>(); 8011 mutable_bitField0_ |= 0x00000002; 8012 } 8013 while (input.getBytesUntilLimit() > 0) { 8014 keys_.add(input.readUInt32()); 8015 } 8016 input.popLimit(limit); 8017 break; 8018 } 8019 case 24: { 8020 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 8021 vals_ = new java.util.ArrayList<java.lang.Integer>(); 8022 mutable_bitField0_ |= 0x00000004; 8023 } 8024 vals_.add(input.readUInt32()); 8025 break; 8026 } 8027 case 26: { 8028 int length = input.readRawVarint32(); 8029 int limit = input.pushLimit(length); 8030 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { 8031 vals_ = new java.util.ArrayList<java.lang.Integer>(); 8032 mutable_bitField0_ |= 0x00000004; 8033 } 8034 while (input.getBytesUntilLimit() > 0) { 8035 vals_.add(input.readUInt32()); 8036 } 8037 input.popLimit(limit); 8038 break; 8039 } 8040 case 34: { 8041 crosby.binary.Osmformat.Info.Builder subBuilder = null; 8042 if (((bitField0_ & 0x00000002) == 0x00000002)) { 8043 subBuilder = info_.toBuilder(); 8044 } 8045 info_ = input.readMessage(crosby.binary.Osmformat.Info.PARSER, extensionRegistry); 8046 if (subBuilder != null) { 8047 subBuilder.mergeFrom(info_); 8048 info_ = subBuilder.buildPartial(); 8049 } 8050 bitField0_ |= 0x00000002; 8051 break; 8052 } 8053 case 64: { 8054 bitField0_ |= 0x00000004; 8055 lat_ = input.readSInt64(); 8056 break; 8057 } 8058 case 72: { 8059 bitField0_ |= 0x00000008; 8060 lon_ = input.readSInt64(); 8061 break; 8062 } 8063 } 8064 } 8065 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8066 throw e.setUnfinishedMessage(this); 8067 } catch (java.io.IOException e) { 8068 throw new com.google.protobuf.InvalidProtocolBufferException( 8069 e.getMessage()).setUnfinishedMessage(this); 8070 } finally { 8071 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 8072 keys_ = java.util.Collections.unmodifiableList(keys_); 8073 } 8074 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 8075 vals_ = java.util.Collections.unmodifiableList(vals_); 8076 } 8077 makeExtensionsImmutable(); 8078 } 8079 } 8080 public static com.google.protobuf.Parser<Node> PARSER = 8081 new com.google.protobuf.AbstractParser<Node>() { 8082 public Node parsePartialFrom( 8083 com.google.protobuf.CodedInputStream input, 8084 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8085 throws com.google.protobuf.InvalidProtocolBufferException { 8086 return new Node(input, extensionRegistry); 8087 } 8088 }; 8089 8090 @java.lang.Override 8091 public com.google.protobuf.Parser<Node> getParserForType() { 8092 return PARSER; 8093 } 8094 4867 8095 private int bitField0_; 4868 8096 // required sint64 id = 1; 4869 8097 public static final int ID_FIELD_NUMBER = 1; 4870 8098 private long id_; 8099 /** 8100 * <code>required sint64 id = 1;</code> 8101 */ 4871 8102 public boolean hasId() { 4872 8103 return ((bitField0_ & 0x00000001) == 0x00000001); 4873 8104 } 8105 /** 8106 * <code>required sint64 id = 1;</code> 8107 */ 4874 8108 public long getId() { 4875 8109 return id_; 4876 8110 } 4877 8111 4878 8112 // repeated uint32 keys = 2 [packed = true]; 4879 8113 public static final int KEYS_FIELD_NUMBER = 2; 4880 8114 private java.util.List<java.lang.Integer> keys_; 8115 /** 8116 * <code>repeated uint32 keys = 2 [packed = true];</code> 8117 * 8118 * <pre> 8119 * Parallel arrays. 8120 * </pre> 8121 */ 4881 8122 public java.util.List<java.lang.Integer> 4882 8123 getKeysList() { 4883 8124 return keys_; 4884 8125 } 8126 /** 8127 * <code>repeated uint32 keys = 2 [packed = true];</code> 8128 * 8129 * <pre> 8130 * Parallel arrays. 8131 * </pre> 8132 */ 4885 8133 public int getKeysCount() { 4886 8134 return keys_.size(); 4887 8135 } 8136 /** 8137 * <code>repeated uint32 keys = 2 [packed = true];</code> 8138 * 8139 * <pre> 8140 * Parallel arrays. 8141 * </pre> 8142 */ 4888 8143 public int getKeys(int index) { 4889 8144 return keys_.get(index); 4890 8145 } 4891 8146 private int keysMemoizedSerializedSize = -1; 4892 8147 4893 8148 // repeated uint32 vals = 3 [packed = true]; 4894 8149 public static final int VALS_FIELD_NUMBER = 3; 4895 8150 private java.util.List<java.lang.Integer> vals_; 8151 /** 8152 * <code>repeated uint32 vals = 3 [packed = true];</code> 8153 * 8154 * <pre> 8155 * String IDs. 8156 * </pre> 8157 */ 4896 8158 public java.util.List<java.lang.Integer> 4897 8159 getValsList() { 4898 8160 return vals_; 4899 8161 } 8162 /** 8163 * <code>repeated uint32 vals = 3 [packed = true];</code> 8164 * 8165 * <pre> 8166 * String IDs. 8167 * </pre> 8168 */ 4900 8169 public int getValsCount() { 4901 8170 return vals_.size(); 4902 8171 } 8172 /** 8173 * <code>repeated uint32 vals = 3 [packed = true];</code> 8174 * 8175 * <pre> 8176 * String IDs. 8177 * </pre> 8178 */ 4903 8179 public int getVals(int index) { 4904 8180 return vals_.get(index); 4905 8181 } 4906 8182 private int valsMemoizedSerializedSize = -1; 4907 8183 4908 8184 // optional .OSMPBF.Info info = 4; 4909 8185 public static final int INFO_FIELD_NUMBER = 4; 4910 8186 private crosby.binary.Osmformat.Info info_; 8187 /** 8188 * <code>optional .OSMPBF.Info info = 4;</code> 8189 * 8190 * <pre> 8191 * May be omitted in omitmeta 8192 * </pre> 8193 */ 4911 8194 public boolean hasInfo() { 4912 8195 return ((bitField0_ & 0x00000002) == 0x00000002); 4913 8196 } 8197 /** 8198 * <code>optional .OSMPBF.Info info = 4;</code> 8199 * 8200 * <pre> 8201 * May be omitted in omitmeta 8202 * </pre> 8203 */ 4914 8204 public crosby.binary.Osmformat.Info getInfo() { 4915 8205 return info_; 4916 8206 } 4917 8207 4918 8208 // required sint64 lat = 8; 4919 8209 public static final int LAT_FIELD_NUMBER = 8; 4920 8210 private long lat_; 8211 /** 8212 * <code>required sint64 lat = 8;</code> 8213 */ 4921 8214 public boolean hasLat() { 4922 8215 return ((bitField0_ & 0x00000004) == 0x00000004); 4923 8216 } 8217 /** 8218 * <code>required sint64 lat = 8;</code> 8219 */ 4924 8220 public long getLat() { 4925 8221 return lat_; 4926 8222 } 4927 8223 4928 8224 // required sint64 lon = 9; 4929 8225 public static final int LON_FIELD_NUMBER = 9; 4930 8226 private long lon_; 8227 /** 8228 * <code>required sint64 lon = 9;</code> 8229 */ 4931 8230 public boolean hasLon() { 4932 8231 return ((bitField0_ & 0x00000008) == 0x00000008); 4933 8232 } 8233 /** 8234 * <code>required sint64 lon = 9;</code> 8235 */ 4934 8236 public long getLon() { 4935 8237 return lon_; 4936 8238 } 4937 8239 4938 8240 private void initFields() { 4939 8241 id_ = 0L; 4940 keys_ = java.util.Collections.emptyList(); ;4941 vals_ = java.util.Collections.emptyList(); ;8242 keys_ = java.util.Collections.emptyList(); 8243 vals_ = java.util.Collections.emptyList(); 4942 8244 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 4943 8245 lat_ = 0L; … … 4948 8250 byte isInitialized = memoizedIsInitialized; 4949 8251 if (isInitialized != -1) return isInitialized == 1; 4950 8252 4951 8253 if (!hasId()) { 4952 8254 memoizedIsInitialized = 0; … … 4964 8266 return true; 4965 8267 } 4966 8268 4967 8269 public void writeTo(com.google.protobuf.CodedOutputStream output) 4968 8270 throws java.io.IOException { … … 4995 8297 } 4996 8298 } 4997 8299 4998 8300 private int memoizedSerializedSize = -1; 4999 8301 public int getSerializedSize() { 5000 8302 int size = memoizedSerializedSize; 5001 8303 if (size != -1) return size; 5002 8304 5003 8305 size = 0; 5004 8306 if (((bitField0_ & 0x00000001) == 0x00000001)) { … … 5049 8351 return size; 5050 8352 } 5051 8353 5052 8354 private static final long serialVersionUID = 0L; 5053 8355 @java.lang.Override … … 5056 8358 return super.writeReplace(); 5057 8359 } 5058 8360 5059 8361 public static crosby.binary.Osmformat.Node parseFrom( 5060 8362 com.google.protobuf.ByteString data) 5061 8363 throws com.google.protobuf.InvalidProtocolBufferException { 5062 return newBuilder().mergeFrom(data).buildParsed();8364 return PARSER.parseFrom(data); 5063 8365 } 5064 8366 public static crosby.binary.Osmformat.Node parseFrom( … … 5066 8368 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5067 8369 throws com.google.protobuf.InvalidProtocolBufferException { 5068 return newBuilder().mergeFrom(data, extensionRegistry) 5069 .buildParsed(); 8370 return PARSER.parseFrom(data, extensionRegistry); 5070 8371 } 5071 8372 public static crosby.binary.Osmformat.Node parseFrom(byte[] data) 5072 8373 throws com.google.protobuf.InvalidProtocolBufferException { 5073 return newBuilder().mergeFrom(data).buildParsed();8374 return PARSER.parseFrom(data); 5074 8375 } 5075 8376 public static crosby.binary.Osmformat.Node parseFrom( … … 5077 8378 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5078 8379 throws com.google.protobuf.InvalidProtocolBufferException { 5079 return newBuilder().mergeFrom(data, extensionRegistry) 5080 .buildParsed(); 8380 return PARSER.parseFrom(data, extensionRegistry); 5081 8381 } 5082 8382 public static crosby.binary.Osmformat.Node parseFrom(java.io.InputStream input) 5083 8383 throws java.io.IOException { 5084 return newBuilder().mergeFrom(input).buildParsed();8384 return PARSER.parseFrom(input); 5085 8385 } 5086 8386 public static crosby.binary.Osmformat.Node parseFrom( … … 5088 8388 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5089 8389 throws java.io.IOException { 5090 return newBuilder().mergeFrom(input, extensionRegistry) 5091 .buildParsed(); 8390 return PARSER.parseFrom(input, extensionRegistry); 5092 8391 } 5093 8392 public static crosby.binary.Osmformat.Node parseDelimitedFrom(java.io.InputStream input) 5094 8393 throws java.io.IOException { 5095 Builder builder = newBuilder(); 5096 if (builder.mergeDelimitedFrom(input)) { 5097 return builder.buildParsed(); 5098 } else { 5099 return null; 5100 } 8394 return PARSER.parseDelimitedFrom(input); 5101 8395 } 5102 8396 public static crosby.binary.Osmformat.Node parseDelimitedFrom( … … 5104 8398 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5105 8399 throws java.io.IOException { 5106 Builder builder = newBuilder(); 5107 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 5108 return builder.buildParsed(); 5109 } else { 5110 return null; 5111 } 8400 return PARSER.parseDelimitedFrom(input, extensionRegistry); 5112 8401 } 5113 8402 public static crosby.binary.Osmformat.Node parseFrom( 5114 8403 com.google.protobuf.CodedInputStream input) 5115 8404 throws java.io.IOException { 5116 return newBuilder().mergeFrom(input).buildParsed();8405 return PARSER.parseFrom(input); 5117 8406 } 5118 8407 public static crosby.binary.Osmformat.Node parseFrom( … … 5120 8409 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5121 8410 throws java.io.IOException { 5122 return newBuilder().mergeFrom(input, extensionRegistry) 5123 .buildParsed(); 5124 } 5125 8411 return PARSER.parseFrom(input, extensionRegistry); 8412 } 8413 5126 8414 public static Builder newBuilder() { return Builder.create(); } 5127 8415 public Builder newBuilderForType() { return newBuilder(); } … … 5130 8418 } 5131 8419 public Builder toBuilder() { return newBuilder(this); } 5132 8420 8421 /** 8422 * Protobuf type {@code OSMPBF.Node} 8423 */ 5133 8424 public static final class Builder extends 5134 8425 com.google.protobuf.GeneratedMessageLite.Builder< … … 5139 8430 maybeForceBuilderInitialization(); 5140 8431 } 5141 8432 5142 8433 private void maybeForceBuilderInitialization() { 5143 8434 } … … 5145 8436 return new Builder(); 5146 8437 } 5147 8438 5148 8439 public Builder clear() { 5149 8440 super.clear(); 5150 8441 id_ = 0L; 5151 8442 bitField0_ = (bitField0_ & ~0x00000001); 5152 keys_ = java.util.Collections.emptyList(); ;8443 keys_ = java.util.Collections.emptyList(); 5153 8444 bitField0_ = (bitField0_ & ~0x00000002); 5154 vals_ = java.util.Collections.emptyList(); ;8445 vals_ = java.util.Collections.emptyList(); 5155 8446 bitField0_ = (bitField0_ & ~0x00000004); 5156 8447 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); … … 5162 8453 return this; 5163 8454 } 5164 8455 5165 8456 public Builder clone() { 5166 8457 return create().mergeFrom(buildPartial()); 5167 8458 } 5168 8459 5169 8460 public crosby.binary.Osmformat.Node getDefaultInstanceForType() { 5170 8461 return crosby.binary.Osmformat.Node.getDefaultInstance(); 5171 8462 } 5172 8463 5173 8464 public crosby.binary.Osmformat.Node build() { 5174 8465 crosby.binary.Osmformat.Node result = buildPartial(); … … 5178 8469 return result; 5179 8470 } 5180 5181 private crosby.binary.Osmformat.Node buildParsed() 5182 throws com.google.protobuf.InvalidProtocolBufferException { 5183 crosby.binary.Osmformat.Node result = buildPartial(); 5184 if (!result.isInitialized()) { 5185 throw newUninitializedMessageException( 5186 result).asInvalidProtocolBufferException(); 5187 } 5188 return result; 5189 } 5190 8471 5191 8472 public crosby.binary.Osmformat.Node buildPartial() { 5192 8473 crosby.binary.Osmformat.Node result = new crosby.binary.Osmformat.Node(this); … … 5222 8503 return result; 5223 8504 } 5224 8505 5225 8506 public Builder mergeFrom(crosby.binary.Osmformat.Node other) { 5226 8507 if (other == crosby.binary.Osmformat.Node.getDefaultInstance()) return this; … … 5259 8540 return this; 5260 8541 } 5261 8542 5262 8543 public final boolean isInitialized() { 5263 8544 if (!hasId()) { … … 5275 8556 return true; 5276 8557 } 5277 8558 5278 8559 public Builder mergeFrom( 5279 8560 com.google.protobuf.CodedInputStream input, 5280 8561 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5281 8562 throws java.io.IOException { 5282 while (true) { 5283 int tag = input.readTag(); 5284 switch (tag) { 5285 case 0: 5286 5287 return this; 5288 default: { 5289 if (!parseUnknownField(input, extensionRegistry, tag)) { 5290 5291 return this; 5292 } 5293 break; 5294 } 5295 case 8: { 5296 bitField0_ |= 0x00000001; 5297 id_ = input.readSInt64(); 5298 break; 5299 } 5300 case 16: { 5301 ensureKeysIsMutable(); 5302 keys_.add(input.readUInt32()); 5303 break; 5304 } 5305 case 18: { 5306 int length = input.readRawVarint32(); 5307 int limit = input.pushLimit(length); 5308 while (input.getBytesUntilLimit() > 0) { 5309 addKeys(input.readUInt32()); 5310 } 5311 input.popLimit(limit); 5312 break; 5313 } 5314 case 24: { 5315 ensureValsIsMutable(); 5316 vals_.add(input.readUInt32()); 5317 break; 5318 } 5319 case 26: { 5320 int length = input.readRawVarint32(); 5321 int limit = input.pushLimit(length); 5322 while (input.getBytesUntilLimit() > 0) { 5323 addVals(input.readUInt32()); 5324 } 5325 input.popLimit(limit); 5326 break; 5327 } 5328 case 34: { 5329 crosby.binary.Osmformat.Info.Builder subBuilder = crosby.binary.Osmformat.Info.newBuilder(); 5330 if (hasInfo()) { 5331 subBuilder.mergeFrom(getInfo()); 5332 } 5333 input.readMessage(subBuilder, extensionRegistry); 5334 setInfo(subBuilder.buildPartial()); 5335 break; 5336 } 5337 case 64: { 5338 bitField0_ |= 0x00000010; 5339 lat_ = input.readSInt64(); 5340 break; 5341 } 5342 case 72: { 5343 bitField0_ |= 0x00000020; 5344 lon_ = input.readSInt64(); 5345 break; 5346 } 8563 crosby.binary.Osmformat.Node parsedMessage = null; 8564 try { 8565 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 8566 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8567 parsedMessage = (crosby.binary.Osmformat.Node) e.getUnfinishedMessage(); 8568 throw e; 8569 } finally { 8570 if (parsedMessage != null) { 8571 mergeFrom(parsedMessage); 5347 8572 } 5348 8573 } 5349 }5350 8574 return this; 8575 } 5351 8576 private int bitField0_; 5352 8577 5353 8578 // required sint64 id = 1; 5354 8579 private long id_ ; 8580 /** 8581 * <code>required sint64 id = 1;</code> 8582 */ 5355 8583 public boolean hasId() { 5356 8584 return ((bitField0_ & 0x00000001) == 0x00000001); 5357 8585 } 8586 /** 8587 * <code>required sint64 id = 1;</code> 8588 */ 5358 8589 public long getId() { 5359 8590 return id_; 5360 8591 } 8592 /** 8593 * <code>required sint64 id = 1;</code> 8594 */ 5361 8595 public Builder setId(long value) { 5362 8596 bitField0_ |= 0x00000001; … … 5365 8599 return this; 5366 8600 } 8601 /** 8602 * <code>required sint64 id = 1;</code> 8603 */ 5367 8604 public Builder clearId() { 5368 8605 bitField0_ = (bitField0_ & ~0x00000001); … … 5371 8608 return this; 5372 8609 } 5373 8610 5374 8611 // repeated uint32 keys = 2 [packed = true]; 5375 private java.util.List<java.lang.Integer> keys_ = java.util.Collections.emptyList(); ;8612 private java.util.List<java.lang.Integer> keys_ = java.util.Collections.emptyList(); 5376 8613 private void ensureKeysIsMutable() { 5377 8614 if (!((bitField0_ & 0x00000002) == 0x00000002)) { … … 5380 8617 } 5381 8618 } 8619 /** 8620 * <code>repeated uint32 keys = 2 [packed = true];</code> 8621 * 8622 * <pre> 8623 * Parallel arrays. 8624 * </pre> 8625 */ 5382 8626 public java.util.List<java.lang.Integer> 5383 8627 getKeysList() { 5384 8628 return java.util.Collections.unmodifiableList(keys_); 5385 8629 } 8630 /** 8631 * <code>repeated uint32 keys = 2 [packed = true];</code> 8632 * 8633 * <pre> 8634 * Parallel arrays. 8635 * </pre> 8636 */ 5386 8637 public int getKeysCount() { 5387 8638 return keys_.size(); 5388 8639 } 8640 /** 8641 * <code>repeated uint32 keys = 2 [packed = true];</code> 8642 * 8643 * <pre> 8644 * Parallel arrays. 8645 * </pre> 8646 */ 5389 8647 public int getKeys(int index) { 5390 8648 return keys_.get(index); 5391 8649 } 8650 /** 8651 * <code>repeated uint32 keys = 2 [packed = true];</code> 8652 * 8653 * <pre> 8654 * Parallel arrays. 8655 * </pre> 8656 */ 5392 8657 public Builder setKeys( 5393 8658 int index, int value) { … … 5397 8662 return this; 5398 8663 } 8664 /** 8665 * <code>repeated uint32 keys = 2 [packed = true];</code> 8666 * 8667 * <pre> 8668 * Parallel arrays. 8669 * </pre> 8670 */ 5399 8671 public Builder addKeys(int value) { 5400 8672 ensureKeysIsMutable(); … … 5403 8675 return this; 5404 8676 } 8677 /** 8678 * <code>repeated uint32 keys = 2 [packed = true];</code> 8679 * 8680 * <pre> 8681 * Parallel arrays. 8682 * </pre> 8683 */ 5405 8684 public Builder addAllKeys( 5406 8685 java.lang.Iterable<? extends java.lang.Integer> values) { … … 5410 8689 return this; 5411 8690 } 8691 /** 8692 * <code>repeated uint32 keys = 2 [packed = true];</code> 8693 * 8694 * <pre> 8695 * Parallel arrays. 8696 * </pre> 8697 */ 5412 8698 public Builder clearKeys() { 5413 keys_ = java.util.Collections.emptyList(); ;8699 keys_ = java.util.Collections.emptyList(); 5414 8700 bitField0_ = (bitField0_ & ~0x00000002); 5415 8701 5416 8702 return this; 5417 8703 } 5418 8704 5419 8705 // repeated uint32 vals = 3 [packed = true]; 5420 private java.util.List<java.lang.Integer> vals_ = java.util.Collections.emptyList(); ;8706 private java.util.List<java.lang.Integer> vals_ = java.util.Collections.emptyList(); 5421 8707 private void ensureValsIsMutable() { 5422 8708 if (!((bitField0_ & 0x00000004) == 0x00000004)) { … … 5425 8711 } 5426 8712 } 8713 /** 8714 * <code>repeated uint32 vals = 3 [packed = true];</code> 8715 * 8716 * <pre> 8717 * String IDs. 8718 * </pre> 8719 */ 5427 8720 public java.util.List<java.lang.Integer> 5428 8721 getValsList() { 5429 8722 return java.util.Collections.unmodifiableList(vals_); 5430 8723 } 8724 /** 8725 * <code>repeated uint32 vals = 3 [packed = true];</code> 8726 * 8727 * <pre> 8728 * String IDs. 8729 * </pre> 8730 */ 5431 8731 public int getValsCount() { 5432 8732 return vals_.size(); 5433 8733 } 8734 /** 8735 * <code>repeated uint32 vals = 3 [packed = true];</code> 8736 * 8737 * <pre> 8738 * String IDs. 8739 * </pre> 8740 */ 5434 8741 public int getVals(int index) { 5435 8742 return vals_.get(index); 5436 8743 } 8744 /** 8745 * <code>repeated uint32 vals = 3 [packed = true];</code> 8746 * 8747 * <pre> 8748 * String IDs. 8749 * </pre> 8750 */ 5437 8751 public Builder setVals( 5438 8752 int index, int value) { … … 5442 8756 return this; 5443 8757 } 8758 /** 8759 * <code>repeated uint32 vals = 3 [packed = true];</code> 8760 * 8761 * <pre> 8762 * String IDs. 8763 * </pre> 8764 */ 5444 8765 public Builder addVals(int value) { 5445 8766 ensureValsIsMutable(); … … 5448 8769 return this; 5449 8770 } 8771 /** 8772 * <code>repeated uint32 vals = 3 [packed = true];</code> 8773 * 8774 * <pre> 8775 * String IDs. 8776 * </pre> 8777 */ 5450 8778 public Builder addAllVals( 5451 8779 java.lang.Iterable<? extends java.lang.Integer> values) { … … 5455 8783 return this; 5456 8784 } 8785 /** 8786 * <code>repeated uint32 vals = 3 [packed = true];</code> 8787 * 8788 * <pre> 8789 * String IDs. 8790 * </pre> 8791 */ 5457 8792 public Builder clearVals() { 5458 vals_ = java.util.Collections.emptyList(); ;8793 vals_ = java.util.Collections.emptyList(); 5459 8794 bitField0_ = (bitField0_ & ~0x00000004); 5460 8795 5461 8796 return this; 5462 8797 } 5463 8798 5464 8799 // optional .OSMPBF.Info info = 4; 5465 8800 private crosby.binary.Osmformat.Info info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 8801 /** 8802 * <code>optional .OSMPBF.Info info = 4;</code> 8803 * 8804 * <pre> 8805 * May be omitted in omitmeta 8806 * </pre> 8807 */ 5466 8808 public boolean hasInfo() { 5467 8809 return ((bitField0_ & 0x00000008) == 0x00000008); 5468 8810 } 8811 /** 8812 * <code>optional .OSMPBF.Info info = 4;</code> 8813 * 8814 * <pre> 8815 * May be omitted in omitmeta 8816 * </pre> 8817 */ 5469 8818 public crosby.binary.Osmformat.Info getInfo() { 5470 8819 return info_; 5471 8820 } 8821 /** 8822 * <code>optional .OSMPBF.Info info = 4;</code> 8823 * 8824 * <pre> 8825 * May be omitted in omitmeta 8826 * </pre> 8827 */ 5472 8828 public Builder setInfo(crosby.binary.Osmformat.Info value) { 5473 8829 if (value == null) { … … 5475 8831 } 5476 8832 info_ = value; 5477 8833 5478 8834 bitField0_ |= 0x00000008; 5479 8835 return this; 5480 8836 } 8837 /** 8838 * <code>optional .OSMPBF.Info info = 4;</code> 8839 * 8840 * <pre> 8841 * May be omitted in omitmeta 8842 * </pre> 8843 */ 5481 8844 public Builder setInfo( 5482 8845 crosby.binary.Osmformat.Info.Builder builderForValue) { 5483 8846 info_ = builderForValue.build(); 5484 8847 5485 8848 bitField0_ |= 0x00000008; 5486 8849 return this; 5487 8850 } 8851 /** 8852 * <code>optional .OSMPBF.Info info = 4;</code> 8853 * 8854 * <pre> 8855 * May be omitted in omitmeta 8856 * </pre> 8857 */ 5488 8858 public Builder mergeInfo(crosby.binary.Osmformat.Info value) { 5489 8859 if (((bitField0_ & 0x00000008) == 0x00000008) && … … 5494 8864 info_ = value; 5495 8865 } 5496 8866 5497 8867 bitField0_ |= 0x00000008; 5498 8868 return this; 5499 8869 } 8870 /** 8871 * <code>optional .OSMPBF.Info info = 4;</code> 8872 * 8873 * <pre> 8874 * May be omitted in omitmeta 8875 * </pre> 8876 */ 5500 8877 public Builder clearInfo() { 5501 8878 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 5502 8879 5503 8880 bitField0_ = (bitField0_ & ~0x00000008); 5504 8881 return this; 5505 8882 } 5506 8883 5507 8884 // required sint64 lat = 8; 5508 8885 private long lat_ ; 8886 /** 8887 * <code>required sint64 lat = 8;</code> 8888 */ 5509 8889 public boolean hasLat() { 5510 8890 return ((bitField0_ & 0x00000010) == 0x00000010); 5511 8891 } 8892 /** 8893 * <code>required sint64 lat = 8;</code> 8894 */ 5512 8895 public long getLat() { 5513 8896 return lat_; 5514 8897 } 8898 /** 8899 * <code>required sint64 lat = 8;</code> 8900 */ 5515 8901 public Builder setLat(long value) { 5516 8902 bitField0_ |= 0x00000010; … … 5519 8905 return this; 5520 8906 } 8907 /** 8908 * <code>required sint64 lat = 8;</code> 8909 */ 5521 8910 public Builder clearLat() { 5522 8911 bitField0_ = (bitField0_ & ~0x00000010); … … 5525 8914 return this; 5526 8915 } 5527 8916 5528 8917 // required sint64 lon = 9; 5529 8918 private long lon_ ; 8919 /** 8920 * <code>required sint64 lon = 9;</code> 8921 */ 5530 8922 public boolean hasLon() { 5531 8923 return ((bitField0_ & 0x00000020) == 0x00000020); 5532 8924 } 8925 /** 8926 * <code>required sint64 lon = 9;</code> 8927 */ 5533 8928 public long getLon() { 5534 8929 return lon_; 5535 8930 } 8931 /** 8932 * <code>required sint64 lon = 9;</code> 8933 */ 5536 8934 public Builder setLon(long value) { 5537 8935 bitField0_ |= 0x00000020; … … 5540 8938 return this; 5541 8939 } 8940 /** 8941 * <code>required sint64 lon = 9;</code> 8942 */ 5542 8943 public Builder clearLon() { 5543 8944 bitField0_ = (bitField0_ & ~0x00000020); … … 5546 8947 return this; 5547 8948 } 5548 8949 5549 8950 // @@protoc_insertion_point(builder_scope:OSMPBF.Node) 5550 8951 } 5551 8952 5552 8953 static { 5553 8954 defaultInstance = new Node(true); 5554 8955 defaultInstance.initFields(); 5555 8956 } 5556 8957 5557 8958 // @@protoc_insertion_point(class_scope:OSMPBF.Node) 5558 8959 } 5559 8960 5560 8961 public interface DenseNodesOrBuilder 5561 8962 extends com.google.protobuf.MessageLiteOrBuilder { 5562 8963 5563 8964 // repeated sint64 id = 1 [packed = true]; 8965 /** 8966 * <code>repeated sint64 id = 1 [packed = true];</code> 8967 * 8968 * <pre> 8969 * DELTA coded 8970 * </pre> 8971 */ 5564 8972 java.util.List<java.lang.Long> getIdList(); 8973 /** 8974 * <code>repeated sint64 id = 1 [packed = true];</code> 8975 * 8976 * <pre> 8977 * DELTA coded 8978 * </pre> 8979 */ 5565 8980 int getIdCount(); 8981 /** 8982 * <code>repeated sint64 id = 1 [packed = true];</code> 8983 * 8984 * <pre> 8985 * DELTA coded 8986 * </pre> 8987 */ 5566 8988 long getId(int index); 5567 8989 5568 8990 // optional .OSMPBF.DenseInfo denseinfo = 5; 8991 /** 8992 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 8993 * 8994 * <pre> 8995 *repeated Info info = 4; 8996 * </pre> 8997 */ 5569 8998 boolean hasDenseinfo(); 8999 /** 9000 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9001 * 9002 * <pre> 9003 *repeated Info info = 4; 9004 * </pre> 9005 */ 5570 9006 crosby.binary.Osmformat.DenseInfo getDenseinfo(); 5571 9007 5572 9008 // repeated sint64 lat = 8 [packed = true]; 9009 /** 9010 * <code>repeated sint64 lat = 8 [packed = true];</code> 9011 * 9012 * <pre> 9013 * DELTA coded 9014 * </pre> 9015 */ 5573 9016 java.util.List<java.lang.Long> getLatList(); 9017 /** 9018 * <code>repeated sint64 lat = 8 [packed = true];</code> 9019 * 9020 * <pre> 9021 * DELTA coded 9022 * </pre> 9023 */ 5574 9024 int getLatCount(); 9025 /** 9026 * <code>repeated sint64 lat = 8 [packed = true];</code> 9027 * 9028 * <pre> 9029 * DELTA coded 9030 * </pre> 9031 */ 5575 9032 long getLat(int index); 5576 9033 5577 9034 // repeated sint64 lon = 9 [packed = true]; 9035 /** 9036 * <code>repeated sint64 lon = 9 [packed = true];</code> 9037 * 9038 * <pre> 9039 * DELTA coded 9040 * </pre> 9041 */ 5578 9042 java.util.List<java.lang.Long> getLonList(); 9043 /** 9044 * <code>repeated sint64 lon = 9 [packed = true];</code> 9045 * 9046 * <pre> 9047 * DELTA coded 9048 * </pre> 9049 */ 5579 9050 int getLonCount(); 9051 /** 9052 * <code>repeated sint64 lon = 9 [packed = true];</code> 9053 * 9054 * <pre> 9055 * DELTA coded 9056 * </pre> 9057 */ 5580 9058 long getLon(int index); 5581 9059 5582 9060 // repeated int32 keys_vals = 10 [packed = true]; 9061 /** 9062 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9063 * 9064 * <pre> 9065 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9066 * </pre> 9067 */ 5583 9068 java.util.List<java.lang.Integer> getKeysValsList(); 9069 /** 9070 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9071 * 9072 * <pre> 9073 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9074 * </pre> 9075 */ 5584 9076 int getKeysValsCount(); 9077 /** 9078 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9079 * 9080 * <pre> 9081 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9082 * </pre> 9083 */ 5585 9084 int getKeysVals(int index); 5586 9085 } 9086 /** 9087 * Protobuf type {@code OSMPBF.DenseNodes} 9088 */ 5587 9089 public static final class DenseNodes extends 5588 9090 com.google.protobuf.GeneratedMessageLite 5589 9091 implements DenseNodesOrBuilder { 5590 9092 // Use DenseNodes.newBuilder() to construct. 5591 private DenseNodes( Builder builder) {9093 private DenseNodes(com.google.protobuf.GeneratedMessageLite.Builder builder) { 5592 9094 super(builder); 9095 5593 9096 } 5594 9097 private DenseNodes(boolean noInit) {} 5595 9098 5596 9099 private static final DenseNodes defaultInstance; 5597 9100 public static DenseNodes getDefaultInstance() { 5598 9101 return defaultInstance; 5599 9102 } 5600 9103 5601 9104 public DenseNodes getDefaultInstanceForType() { 5602 9105 return defaultInstance; 5603 9106 } 5604 9107 9108 private DenseNodes( 9109 com.google.protobuf.CodedInputStream input, 9110 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9111 throws com.google.protobuf.InvalidProtocolBufferException { 9112 initFields(); 9113 int mutable_bitField0_ = 0; 9114 try { 9115 boolean done = false; 9116 while (!done) { 9117 int tag = input.readTag(); 9118 switch (tag) { 9119 case 0: 9120 done = true; 9121 break; 9122 default: { 9123 if (!parseUnknownField(input, 9124 extensionRegistry, tag)) { 9125 done = true; 9126 } 9127 break; 9128 } 9129 case 8: { 9130 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 9131 id_ = new java.util.ArrayList<java.lang.Long>(); 9132 mutable_bitField0_ |= 0x00000001; 9133 } 9134 id_.add(input.readSInt64()); 9135 break; 9136 } 9137 case 10: { 9138 int length = input.readRawVarint32(); 9139 int limit = input.pushLimit(length); 9140 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { 9141 id_ = new java.util.ArrayList<java.lang.Long>(); 9142 mutable_bitField0_ |= 0x00000001; 9143 } 9144 while (input.getBytesUntilLimit() > 0) { 9145 id_.add(input.readSInt64()); 9146 } 9147 input.popLimit(limit); 9148 break; 9149 } 9150 case 42: { 9151 crosby.binary.Osmformat.DenseInfo.Builder subBuilder = null; 9152 if (((bitField0_ & 0x00000001) == 0x00000001)) { 9153 subBuilder = denseinfo_.toBuilder(); 9154 } 9155 denseinfo_ = input.readMessage(crosby.binary.Osmformat.DenseInfo.PARSER, extensionRegistry); 9156 if (subBuilder != null) { 9157 subBuilder.mergeFrom(denseinfo_); 9158 denseinfo_ = subBuilder.buildPartial(); 9159 } 9160 bitField0_ |= 0x00000001; 9161 break; 9162 } 9163 case 64: { 9164 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 9165 lat_ = new java.util.ArrayList<java.lang.Long>(); 9166 mutable_bitField0_ |= 0x00000004; 9167 } 9168 lat_.add(input.readSInt64()); 9169 break; 9170 } 9171 case 66: { 9172 int length = input.readRawVarint32(); 9173 int limit = input.pushLimit(length); 9174 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { 9175 lat_ = new java.util.ArrayList<java.lang.Long>(); 9176 mutable_bitField0_ |= 0x00000004; 9177 } 9178 while (input.getBytesUntilLimit() > 0) { 9179 lat_.add(input.readSInt64()); 9180 } 9181 input.popLimit(limit); 9182 break; 9183 } 9184 case 72: { 9185 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 9186 lon_ = new java.util.ArrayList<java.lang.Long>(); 9187 mutable_bitField0_ |= 0x00000008; 9188 } 9189 lon_.add(input.readSInt64()); 9190 break; 9191 } 9192 case 74: { 9193 int length = input.readRawVarint32(); 9194 int limit = input.pushLimit(length); 9195 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { 9196 lon_ = new java.util.ArrayList<java.lang.Long>(); 9197 mutable_bitField0_ |= 0x00000008; 9198 } 9199 while (input.getBytesUntilLimit() > 0) { 9200 lon_.add(input.readSInt64()); 9201 } 9202 input.popLimit(limit); 9203 break; 9204 } 9205 case 80: { 9206 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 9207 keysVals_ = new java.util.ArrayList<java.lang.Integer>(); 9208 mutable_bitField0_ |= 0x00000010; 9209 } 9210 keysVals_.add(input.readInt32()); 9211 break; 9212 } 9213 case 82: { 9214 int length = input.readRawVarint32(); 9215 int limit = input.pushLimit(length); 9216 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { 9217 keysVals_ = new java.util.ArrayList<java.lang.Integer>(); 9218 mutable_bitField0_ |= 0x00000010; 9219 } 9220 while (input.getBytesUntilLimit() > 0) { 9221 keysVals_.add(input.readInt32()); 9222 } 9223 input.popLimit(limit); 9224 break; 9225 } 9226 } 9227 } 9228 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9229 throw e.setUnfinishedMessage(this); 9230 } catch (java.io.IOException e) { 9231 throw new com.google.protobuf.InvalidProtocolBufferException( 9232 e.getMessage()).setUnfinishedMessage(this); 9233 } finally { 9234 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 9235 id_ = java.util.Collections.unmodifiableList(id_); 9236 } 9237 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 9238 lat_ = java.util.Collections.unmodifiableList(lat_); 9239 } 9240 if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 9241 lon_ = java.util.Collections.unmodifiableList(lon_); 9242 } 9243 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 9244 keysVals_ = java.util.Collections.unmodifiableList(keysVals_); 9245 } 9246 makeExtensionsImmutable(); 9247 } 9248 } 9249 public static com.google.protobuf.Parser<DenseNodes> PARSER = 9250 new com.google.protobuf.AbstractParser<DenseNodes>() { 9251 public DenseNodes parsePartialFrom( 9252 com.google.protobuf.CodedInputStream input, 9253 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9254 throws com.google.protobuf.InvalidProtocolBufferException { 9255 return new DenseNodes(input, extensionRegistry); 9256 } 9257 }; 9258 9259 @java.lang.Override 9260 public com.google.protobuf.Parser<DenseNodes> getParserForType() { 9261 return PARSER; 9262 } 9263 5605 9264 private int bitField0_; 5606 9265 // repeated sint64 id = 1 [packed = true]; 5607 9266 public static final int ID_FIELD_NUMBER = 1; 5608 9267 private java.util.List<java.lang.Long> id_; 9268 /** 9269 * <code>repeated sint64 id = 1 [packed = true];</code> 9270 * 9271 * <pre> 9272 * DELTA coded 9273 * </pre> 9274 */ 5609 9275 public java.util.List<java.lang.Long> 5610 9276 getIdList() { 5611 9277 return id_; 5612 9278 } 9279 /** 9280 * <code>repeated sint64 id = 1 [packed = true];</code> 9281 * 9282 * <pre> 9283 * DELTA coded 9284 * </pre> 9285 */ 5613 9286 public int getIdCount() { 5614 9287 return id_.size(); 5615 9288 } 9289 /** 9290 * <code>repeated sint64 id = 1 [packed = true];</code> 9291 * 9292 * <pre> 9293 * DELTA coded 9294 * </pre> 9295 */ 5616 9296 public long getId(int index) { 5617 9297 return id_.get(index); 5618 9298 } 5619 9299 private int idMemoizedSerializedSize = -1; 5620 9300 5621 9301 // optional .OSMPBF.DenseInfo denseinfo = 5; 5622 9302 public static final int DENSEINFO_FIELD_NUMBER = 5; 5623 9303 private crosby.binary.Osmformat.DenseInfo denseinfo_; 9304 /** 9305 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9306 * 9307 * <pre> 9308 *repeated Info info = 4; 9309 * </pre> 9310 */ 5624 9311 public boolean hasDenseinfo() { 5625 9312 return ((bitField0_ & 0x00000001) == 0x00000001); 5626 9313 } 9314 /** 9315 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9316 * 9317 * <pre> 9318 *repeated Info info = 4; 9319 * </pre> 9320 */ 5627 9321 public crosby.binary.Osmformat.DenseInfo getDenseinfo() { 5628 9322 return denseinfo_; 5629 9323 } 5630 9324 5631 9325 // repeated sint64 lat = 8 [packed = true]; 5632 9326 public static final int LAT_FIELD_NUMBER = 8; 5633 9327 private java.util.List<java.lang.Long> lat_; 9328 /** 9329 * <code>repeated sint64 lat = 8 [packed = true];</code> 9330 * 9331 * <pre> 9332 * DELTA coded 9333 * </pre> 9334 */ 5634 9335 public java.util.List<java.lang.Long> 5635 9336 getLatList() { 5636 9337 return lat_; 5637 9338 } 9339 /** 9340 * <code>repeated sint64 lat = 8 [packed = true];</code> 9341 * 9342 * <pre> 9343 * DELTA coded 9344 * </pre> 9345 */ 5638 9346 public int getLatCount() { 5639 9347 return lat_.size(); 5640 9348 } 9349 /** 9350 * <code>repeated sint64 lat = 8 [packed = true];</code> 9351 * 9352 * <pre> 9353 * DELTA coded 9354 * </pre> 9355 */ 5641 9356 public long getLat(int index) { 5642 9357 return lat_.get(index); 5643 9358 } 5644 9359 private int latMemoizedSerializedSize = -1; 5645 9360 5646 9361 // repeated sint64 lon = 9 [packed = true]; 5647 9362 public static final int LON_FIELD_NUMBER = 9; 5648 9363 private java.util.List<java.lang.Long> lon_; 9364 /** 9365 * <code>repeated sint64 lon = 9 [packed = true];</code> 9366 * 9367 * <pre> 9368 * DELTA coded 9369 * </pre> 9370 */ 5649 9371 public java.util.List<java.lang.Long> 5650 9372 getLonList() { 5651 9373 return lon_; 5652 9374 } 9375 /** 9376 * <code>repeated sint64 lon = 9 [packed = true];</code> 9377 * 9378 * <pre> 9379 * DELTA coded 9380 * </pre> 9381 */ 5653 9382 public int getLonCount() { 5654 9383 return lon_.size(); 5655 9384 } 9385 /** 9386 * <code>repeated sint64 lon = 9 [packed = true];</code> 9387 * 9388 * <pre> 9389 * DELTA coded 9390 * </pre> 9391 */ 5656 9392 public long getLon(int index) { 5657 9393 return lon_.get(index); 5658 9394 } 5659 9395 private int lonMemoizedSerializedSize = -1; 5660 9396 5661 9397 // repeated int32 keys_vals = 10 [packed = true]; 5662 9398 public static final int KEYS_VALS_FIELD_NUMBER = 10; 5663 9399 private java.util.List<java.lang.Integer> keysVals_; 9400 /** 9401 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9402 * 9403 * <pre> 9404 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9405 * </pre> 9406 */ 5664 9407 public java.util.List<java.lang.Integer> 5665 9408 getKeysValsList() { 5666 9409 return keysVals_; 5667 9410 } 9411 /** 9412 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9413 * 9414 * <pre> 9415 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9416 * </pre> 9417 */ 5668 9418 public int getKeysValsCount() { 5669 9419 return keysVals_.size(); 5670 9420 } 9421 /** 9422 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9423 * 9424 * <pre> 9425 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9426 * </pre> 9427 */ 5671 9428 public int getKeysVals(int index) { 5672 9429 return keysVals_.get(index); 5673 9430 } 5674 9431 private int keysValsMemoizedSerializedSize = -1; 5675 9432 5676 9433 private void initFields() { 5677 id_ = java.util.Collections.emptyList(); ;9434 id_ = java.util.Collections.emptyList(); 5678 9435 denseinfo_ = crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 5679 lat_ = java.util.Collections.emptyList(); ;5680 lon_ = java.util.Collections.emptyList(); ;5681 keysVals_ = java.util.Collections.emptyList(); ;9436 lat_ = java.util.Collections.emptyList(); 9437 lon_ = java.util.Collections.emptyList(); 9438 keysVals_ = java.util.Collections.emptyList(); 5682 9439 } 5683 9440 private byte memoizedIsInitialized = -1; … … 5685 9442 byte isInitialized = memoizedIsInitialized; 5686 9443 if (isInitialized != -1) return isInitialized == 1; 5687 9444 5688 9445 memoizedIsInitialized = 1; 5689 9446 return true; 5690 9447 } 5691 9448 5692 9449 public void writeTo(com.google.protobuf.CodedOutputStream output) 5693 9450 throws java.io.IOException { … … 5725 9482 } 5726 9483 } 5727 9484 5728 9485 private int memoizedSerializedSize = -1; 5729 9486 public int getSerializedSize() { 5730 9487 int size = memoizedSerializedSize; 5731 9488 if (size != -1) return size; 5732 9489 5733 9490 size = 0; 5734 9491 { … … 5795 9552 return size; 5796 9553 } 5797 9554 5798 9555 private static final long serialVersionUID = 0L; 5799 9556 @java.lang.Override … … 5802 9559 return super.writeReplace(); 5803 9560 } 5804 9561 5805 9562 public static crosby.binary.Osmformat.DenseNodes parseFrom( 5806 9563 com.google.protobuf.ByteString data) 5807 9564 throws com.google.protobuf.InvalidProtocolBufferException { 5808 return newBuilder().mergeFrom(data).buildParsed();9565 return PARSER.parseFrom(data); 5809 9566 } 5810 9567 public static crosby.binary.Osmformat.DenseNodes parseFrom( … … 5812 9569 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5813 9570 throws com.google.protobuf.InvalidProtocolBufferException { 5814 return newBuilder().mergeFrom(data, extensionRegistry) 5815 .buildParsed(); 9571 return PARSER.parseFrom(data, extensionRegistry); 5816 9572 } 5817 9573 public static crosby.binary.Osmformat.DenseNodes parseFrom(byte[] data) 5818 9574 throws com.google.protobuf.InvalidProtocolBufferException { 5819 return newBuilder().mergeFrom(data).buildParsed();9575 return PARSER.parseFrom(data); 5820 9576 } 5821 9577 public static crosby.binary.Osmformat.DenseNodes parseFrom( … … 5823 9579 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5824 9580 throws com.google.protobuf.InvalidProtocolBufferException { 5825 return newBuilder().mergeFrom(data, extensionRegistry) 5826 .buildParsed(); 9581 return PARSER.parseFrom(data, extensionRegistry); 5827 9582 } 5828 9583 public static crosby.binary.Osmformat.DenseNodes parseFrom(java.io.InputStream input) 5829 9584 throws java.io.IOException { 5830 return newBuilder().mergeFrom(input).buildParsed();9585 return PARSER.parseFrom(input); 5831 9586 } 5832 9587 public static crosby.binary.Osmformat.DenseNodes parseFrom( … … 5834 9589 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5835 9590 throws java.io.IOException { 5836 return newBuilder().mergeFrom(input, extensionRegistry) 5837 .buildParsed(); 9591 return PARSER.parseFrom(input, extensionRegistry); 5838 9592 } 5839 9593 public static crosby.binary.Osmformat.DenseNodes parseDelimitedFrom(java.io.InputStream input) 5840 9594 throws java.io.IOException { 5841 Builder builder = newBuilder(); 5842 if (builder.mergeDelimitedFrom(input)) { 5843 return builder.buildParsed(); 5844 } else { 5845 return null; 5846 } 9595 return PARSER.parseDelimitedFrom(input); 5847 9596 } 5848 9597 public static crosby.binary.Osmformat.DenseNodes parseDelimitedFrom( … … 5850 9599 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5851 9600 throws java.io.IOException { 5852 Builder builder = newBuilder(); 5853 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 5854 return builder.buildParsed(); 5855 } else { 5856 return null; 5857 } 9601 return PARSER.parseDelimitedFrom(input, extensionRegistry); 5858 9602 } 5859 9603 public static crosby.binary.Osmformat.DenseNodes parseFrom( 5860 9604 com.google.protobuf.CodedInputStream input) 5861 9605 throws java.io.IOException { 5862 return newBuilder().mergeFrom(input).buildParsed();9606 return PARSER.parseFrom(input); 5863 9607 } 5864 9608 public static crosby.binary.Osmformat.DenseNodes parseFrom( … … 5866 9610 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5867 9611 throws java.io.IOException { 5868 return newBuilder().mergeFrom(input, extensionRegistry) 5869 .buildParsed(); 5870 } 5871 9612 return PARSER.parseFrom(input, extensionRegistry); 9613 } 9614 5872 9615 public static Builder newBuilder() { return Builder.create(); } 5873 9616 public Builder newBuilderForType() { return newBuilder(); } … … 5876 9619 } 5877 9620 public Builder toBuilder() { return newBuilder(this); } 5878 9621 9622 /** 9623 * Protobuf type {@code OSMPBF.DenseNodes} 9624 */ 5879 9625 public static final class Builder extends 5880 9626 com.google.protobuf.GeneratedMessageLite.Builder< … … 5885 9631 maybeForceBuilderInitialization(); 5886 9632 } 5887 9633 5888 9634 private void maybeForceBuilderInitialization() { 5889 9635 } … … 5891 9637 return new Builder(); 5892 9638 } 5893 9639 5894 9640 public Builder clear() { 5895 9641 super.clear(); 5896 id_ = java.util.Collections.emptyList(); ;9642 id_ = java.util.Collections.emptyList(); 5897 9643 bitField0_ = (bitField0_ & ~0x00000001); 5898 9644 denseinfo_ = crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 5899 9645 bitField0_ = (bitField0_ & ~0x00000002); 5900 lat_ = java.util.Collections.emptyList(); ;9646 lat_ = java.util.Collections.emptyList(); 5901 9647 bitField0_ = (bitField0_ & ~0x00000004); 5902 lon_ = java.util.Collections.emptyList(); ;9648 lon_ = java.util.Collections.emptyList(); 5903 9649 bitField0_ = (bitField0_ & ~0x00000008); 5904 keysVals_ = java.util.Collections.emptyList(); ;9650 keysVals_ = java.util.Collections.emptyList(); 5905 9651 bitField0_ = (bitField0_ & ~0x00000010); 5906 9652 return this; 5907 9653 } 5908 9654 5909 9655 public Builder clone() { 5910 9656 return create().mergeFrom(buildPartial()); 5911 9657 } 5912 9658 5913 9659 public crosby.binary.Osmformat.DenseNodes getDefaultInstanceForType() { 5914 9660 return crosby.binary.Osmformat.DenseNodes.getDefaultInstance(); 5915 9661 } 5916 9662 5917 9663 public crosby.binary.Osmformat.DenseNodes build() { 5918 9664 crosby.binary.Osmformat.DenseNodes result = buildPartial(); … … 5922 9668 return result; 5923 9669 } 5924 5925 private crosby.binary.Osmformat.DenseNodes buildParsed() 5926 throws com.google.protobuf.InvalidProtocolBufferException { 5927 crosby.binary.Osmformat.DenseNodes result = buildPartial(); 5928 if (!result.isInitialized()) { 5929 throw newUninitializedMessageException( 5930 result).asInvalidProtocolBufferException(); 5931 } 5932 return result; 5933 } 5934 9670 5935 9671 public crosby.binary.Osmformat.DenseNodes buildPartial() { 5936 9672 crosby.binary.Osmformat.DenseNodes result = new crosby.binary.Osmformat.DenseNodes(this); … … 5964 9700 return result; 5965 9701 } 5966 9702 5967 9703 public Builder mergeFrom(crosby.binary.Osmformat.DenseNodes other) { 5968 9704 if (other == crosby.binary.Osmformat.DenseNodes.getDefaultInstance()) return this; … … 6012 9748 return this; 6013 9749 } 6014 9750 6015 9751 public final boolean isInitialized() { 6016 9752 return true; 6017 9753 } 6018 9754 6019 9755 public Builder mergeFrom( 6020 9756 com.google.protobuf.CodedInputStream input, 6021 9757 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6022 9758 throws java.io.IOException { 6023 while (true) { 6024 int tag = input.readTag(); 6025 switch (tag) { 6026 case 0: 6027 6028 return this; 6029 default: { 6030 if (!parseUnknownField(input, extensionRegistry, tag)) { 6031 6032 return this; 6033 } 6034 break; 6035 } 6036 case 8: { 6037 ensureIdIsMutable(); 6038 id_.add(input.readSInt64()); 6039 break; 6040 } 6041 case 10: { 6042 int length = input.readRawVarint32(); 6043 int limit = input.pushLimit(length); 6044 while (input.getBytesUntilLimit() > 0) { 6045 addId(input.readSInt64()); 6046 } 6047 input.popLimit(limit); 6048 break; 6049 } 6050 case 42: { 6051 crosby.binary.Osmformat.DenseInfo.Builder subBuilder = crosby.binary.Osmformat.DenseInfo.newBuilder(); 6052 if (hasDenseinfo()) { 6053 subBuilder.mergeFrom(getDenseinfo()); 6054 } 6055 input.readMessage(subBuilder, extensionRegistry); 6056 setDenseinfo(subBuilder.buildPartial()); 6057 break; 6058 } 6059 case 64: { 6060 ensureLatIsMutable(); 6061 lat_.add(input.readSInt64()); 6062 break; 6063 } 6064 case 66: { 6065 int length = input.readRawVarint32(); 6066 int limit = input.pushLimit(length); 6067 while (input.getBytesUntilLimit() > 0) { 6068 addLat(input.readSInt64()); 6069 } 6070 input.popLimit(limit); 6071 break; 6072 } 6073 case 72: { 6074 ensureLonIsMutable(); 6075 lon_.add(input.readSInt64()); 6076 break; 6077 } 6078 case 74: { 6079 int length = input.readRawVarint32(); 6080 int limit = input.pushLimit(length); 6081 while (input.getBytesUntilLimit() > 0) { 6082 addLon(input.readSInt64()); 6083 } 6084 input.popLimit(limit); 6085 break; 6086 } 6087 case 80: { 6088 ensureKeysValsIsMutable(); 6089 keysVals_.add(input.readInt32()); 6090 break; 6091 } 6092 case 82: { 6093 int length = input.readRawVarint32(); 6094 int limit = input.pushLimit(length); 6095 while (input.getBytesUntilLimit() > 0) { 6096 addKeysVals(input.readInt32()); 6097 } 6098 input.popLimit(limit); 6099 break; 6100 } 9759 crosby.binary.Osmformat.DenseNodes parsedMessage = null; 9760 try { 9761 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 9762 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9763 parsedMessage = (crosby.binary.Osmformat.DenseNodes) e.getUnfinishedMessage(); 9764 throw e; 9765 } finally { 9766 if (parsedMessage != null) { 9767 mergeFrom(parsedMessage); 6101 9768 } 6102 9769 } 6103 }6104 9770 return this; 9771 } 6105 9772 private int bitField0_; 6106 9773 6107 9774 // repeated sint64 id = 1 [packed = true]; 6108 private java.util.List<java.lang.Long> id_ = java.util.Collections.emptyList(); ;9775 private java.util.List<java.lang.Long> id_ = java.util.Collections.emptyList(); 6109 9776 private void ensureIdIsMutable() { 6110 9777 if (!((bitField0_ & 0x00000001) == 0x00000001)) { … … 6113 9780 } 6114 9781 } 9782 /** 9783 * <code>repeated sint64 id = 1 [packed = true];</code> 9784 * 9785 * <pre> 9786 * DELTA coded 9787 * </pre> 9788 */ 6115 9789 public java.util.List<java.lang.Long> 6116 9790 getIdList() { 6117 9791 return java.util.Collections.unmodifiableList(id_); 6118 9792 } 9793 /** 9794 * <code>repeated sint64 id = 1 [packed = true];</code> 9795 * 9796 * <pre> 9797 * DELTA coded 9798 * </pre> 9799 */ 6119 9800 public int getIdCount() { 6120 9801 return id_.size(); 6121 9802 } 9803 /** 9804 * <code>repeated sint64 id = 1 [packed = true];</code> 9805 * 9806 * <pre> 9807 * DELTA coded 9808 * </pre> 9809 */ 6122 9810 public long getId(int index) { 6123 9811 return id_.get(index); 6124 9812 } 9813 /** 9814 * <code>repeated sint64 id = 1 [packed = true];</code> 9815 * 9816 * <pre> 9817 * DELTA coded 9818 * </pre> 9819 */ 6125 9820 public Builder setId( 6126 9821 int index, long value) { … … 6130 9825 return this; 6131 9826 } 9827 /** 9828 * <code>repeated sint64 id = 1 [packed = true];</code> 9829 * 9830 * <pre> 9831 * DELTA coded 9832 * </pre> 9833 */ 6132 9834 public Builder addId(long value) { 6133 9835 ensureIdIsMutable(); … … 6136 9838 return this; 6137 9839 } 9840 /** 9841 * <code>repeated sint64 id = 1 [packed = true];</code> 9842 * 9843 * <pre> 9844 * DELTA coded 9845 * </pre> 9846 */ 6138 9847 public Builder addAllId( 6139 9848 java.lang.Iterable<? extends java.lang.Long> values) { … … 6143 9852 return this; 6144 9853 } 9854 /** 9855 * <code>repeated sint64 id = 1 [packed = true];</code> 9856 * 9857 * <pre> 9858 * DELTA coded 9859 * </pre> 9860 */ 6145 9861 public Builder clearId() { 6146 id_ = java.util.Collections.emptyList(); ;9862 id_ = java.util.Collections.emptyList(); 6147 9863 bitField0_ = (bitField0_ & ~0x00000001); 6148 9864 6149 9865 return this; 6150 9866 } 6151 9867 6152 9868 // optional .OSMPBF.DenseInfo denseinfo = 5; 6153 9869 private crosby.binary.Osmformat.DenseInfo denseinfo_ = crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 9870 /** 9871 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9872 * 9873 * <pre> 9874 *repeated Info info = 4; 9875 * </pre> 9876 */ 6154 9877 public boolean hasDenseinfo() { 6155 9878 return ((bitField0_ & 0x00000002) == 0x00000002); 6156 9879 } 9880 /** 9881 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9882 * 9883 * <pre> 9884 *repeated Info info = 4; 9885 * </pre> 9886 */ 6157 9887 public crosby.binary.Osmformat.DenseInfo getDenseinfo() { 6158 9888 return denseinfo_; 6159 9889 } 9890 /** 9891 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9892 * 9893 * <pre> 9894 *repeated Info info = 4; 9895 * </pre> 9896 */ 6160 9897 public Builder setDenseinfo(crosby.binary.Osmformat.DenseInfo value) { 6161 9898 if (value == null) { … … 6163 9900 } 6164 9901 denseinfo_ = value; 6165 9902 6166 9903 bitField0_ |= 0x00000002; 6167 9904 return this; 6168 9905 } 9906 /** 9907 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9908 * 9909 * <pre> 9910 *repeated Info info = 4; 9911 * </pre> 9912 */ 6169 9913 public Builder setDenseinfo( 6170 9914 crosby.binary.Osmformat.DenseInfo.Builder builderForValue) { 6171 9915 denseinfo_ = builderForValue.build(); 6172 9916 6173 9917 bitField0_ |= 0x00000002; 6174 9918 return this; 6175 9919 } 9920 /** 9921 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9922 * 9923 * <pre> 9924 *repeated Info info = 4; 9925 * </pre> 9926 */ 6176 9927 public Builder mergeDenseinfo(crosby.binary.Osmformat.DenseInfo value) { 6177 9928 if (((bitField0_ & 0x00000002) == 0x00000002) && … … 6182 9933 denseinfo_ = value; 6183 9934 } 6184 9935 6185 9936 bitField0_ |= 0x00000002; 6186 9937 return this; 6187 9938 } 9939 /** 9940 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9941 * 9942 * <pre> 9943 *repeated Info info = 4; 9944 * </pre> 9945 */ 6188 9946 public Builder clearDenseinfo() { 6189 9947 denseinfo_ = crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 6190 9948 6191 9949 bitField0_ = (bitField0_ & ~0x00000002); 6192 9950 return this; 6193 9951 } 6194 9952 6195 9953 // repeated sint64 lat = 8 [packed = true]; 6196 private java.util.List<java.lang.Long> lat_ = java.util.Collections.emptyList(); ;9954 private java.util.List<java.lang.Long> lat_ = java.util.Collections.emptyList(); 6197 9955 private void ensureLatIsMutable() { 6198 9956 if (!((bitField0_ & 0x00000004) == 0x00000004)) { … … 6201 9959 } 6202 9960 } 9961 /** 9962 * <code>repeated sint64 lat = 8 [packed = true];</code> 9963 * 9964 * <pre> 9965 * DELTA coded 9966 * </pre> 9967 */ 6203 9968 public java.util.List<java.lang.Long> 6204 9969 getLatList() { 6205 9970 return java.util.Collections.unmodifiableList(lat_); 6206 9971 } 9972 /** 9973 * <code>repeated sint64 lat = 8 [packed = true];</code> 9974 * 9975 * <pre> 9976 * DELTA coded 9977 * </pre> 9978 */ 6207 9979 public int getLatCount() { 6208 9980 return lat_.size(); 6209 9981 } 9982 /** 9983 * <code>repeated sint64 lat = 8 [packed = true];</code> 9984 * 9985 * <pre> 9986 * DELTA coded 9987 * </pre> 9988 */ 6210 9989 public long getLat(int index) { 6211 9990 return lat_.get(index); 6212 9991 } 9992 /** 9993 * <code>repeated sint64 lat = 8 [packed = true];</code> 9994 * 9995 * <pre> 9996 * DELTA coded 9997 * </pre> 9998 */ 6213 9999 public Builder setLat( 6214 10000 int index, long value) { … … 6218 10004 return this; 6219 10005 } 10006 /** 10007 * <code>repeated sint64 lat = 8 [packed = true];</code> 10008 * 10009 * <pre> 10010 * DELTA coded 10011 * </pre> 10012 */ 6220 10013 public Builder addLat(long value) { 6221 10014 ensureLatIsMutable(); … … 6224 10017 return this; 6225 10018 } 10019 /** 10020 * <code>repeated sint64 lat = 8 [packed = true];</code> 10021 * 10022 * <pre> 10023 * DELTA coded 10024 * </pre> 10025 */ 6226 10026 public Builder addAllLat( 6227 10027 java.lang.Iterable<? extends java.lang.Long> values) { … … 6231 10031 return this; 6232 10032 } 10033 /** 10034 * <code>repeated sint64 lat = 8 [packed = true];</code> 10035 * 10036 * <pre> 10037 * DELTA coded 10038 * </pre> 10039 */ 6233 10040 public Builder clearLat() { 6234 lat_ = java.util.Collections.emptyList(); ;10041 lat_ = java.util.Collections.emptyList(); 6235 10042 bitField0_ = (bitField0_ & ~0x00000004); 6236 10043 6237 10044 return this; 6238 10045 } 6239 10046 6240 10047 // repeated sint64 lon = 9 [packed = true]; 6241 private java.util.List<java.lang.Long> lon_ = java.util.Collections.emptyList(); ;10048 private java.util.List<java.lang.Long> lon_ = java.util.Collections.emptyList(); 6242 10049 private void ensureLonIsMutable() { 6243 10050 if (!((bitField0_ & 0x00000008) == 0x00000008)) { … … 6246 10053 } 6247 10054 } 10055 /** 10056 * <code>repeated sint64 lon = 9 [packed = true];</code> 10057 * 10058 * <pre> 10059 * DELTA coded 10060 * </pre> 10061 */ 6248 10062 public java.util.List<java.lang.Long> 6249 10063 getLonList() { 6250 10064 return java.util.Collections.unmodifiableList(lon_); 6251 10065 } 10066 /** 10067 * <code>repeated sint64 lon = 9 [packed = true];</code> 10068 * 10069 * <pre> 10070 * DELTA coded 10071 * </pre> 10072 */ 6252 10073 public int getLonCount() { 6253 10074 return lon_.size(); 6254 10075 } 10076 /** 10077 * <code>repeated sint64 lon = 9 [packed = true];</code> 10078 * 10079 * <pre> 10080 * DELTA coded 10081 * </pre> 10082 */ 6255 10083 public long getLon(int index) { 6256 10084 return lon_.get(index); 6257 10085 } 10086 /** 10087 * <code>repeated sint64 lon = 9 [packed = true];</code> 10088 * 10089 * <pre> 10090 * DELTA coded 10091 * </pre> 10092 */ 6258 10093 public Builder setLon( 6259 10094 int index, long value) { … … 6263 10098 return this; 6264 10099 } 10100 /** 10101 * <code>repeated sint64 lon = 9 [packed = true];</code> 10102 * 10103 * <pre> 10104 * DELTA coded 10105 * </pre> 10106 */ 6265 10107 public Builder addLon(long value) { 6266 10108 ensureLonIsMutable(); … … 6269 10111 return this; 6270 10112 } 10113 /** 10114 * <code>repeated sint64 lon = 9 [packed = true];</code> 10115 * 10116 * <pre> 10117 * DELTA coded 10118 * </pre> 10119 */ 6271 10120 public Builder addAllLon( 6272 10121 java.lang.Iterable<? extends java.lang.Long> values) { … … 6276 10125 return this; 6277 10126 } 10127 /** 10128 * <code>repeated sint64 lon = 9 [packed = true];</code> 10129 * 10130 * <pre> 10131 * DELTA coded 10132 * </pre> 10133 */ 6278 10134 public Builder clearLon() { 6279 lon_ = java.util.Collections.emptyList(); ;10135 lon_ = java.util.Collections.emptyList(); 6280 10136 bitField0_ = (bitField0_ & ~0x00000008); 6281 10137 6282 10138 return this; 6283 10139 } 6284 10140 6285 10141 // repeated int32 keys_vals = 10 [packed = true]; 6286 private java.util.List<java.lang.Integer> keysVals_ = java.util.Collections.emptyList(); ;10142 private java.util.List<java.lang.Integer> keysVals_ = java.util.Collections.emptyList(); 6287 10143 private void ensureKeysValsIsMutable() { 6288 10144 if (!((bitField0_ & 0x00000010) == 0x00000010)) { … … 6291 10147 } 6292 10148 } 10149 /** 10150 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10151 * 10152 * <pre> 10153 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10154 * </pre> 10155 */ 6293 10156 public java.util.List<java.lang.Integer> 6294 10157 getKeysValsList() { 6295 10158 return java.util.Collections.unmodifiableList(keysVals_); 6296 10159 } 10160 /** 10161 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10162 * 10163 * <pre> 10164 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10165 * </pre> 10166 */ 6297 10167 public int getKeysValsCount() { 6298 10168 return keysVals_.size(); 6299 10169 } 10170 /** 10171 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10172 * 10173 * <pre> 10174 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10175 * </pre> 10176 */ 6300 10177 public int getKeysVals(int index) { 6301 10178 return keysVals_.get(index); 6302 10179 } 10180 /** 10181 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10182 * 10183 * <pre> 10184 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10185 * </pre> 10186 */ 6303 10187 public Builder setKeysVals( 6304 10188 int index, int value) { … … 6308 10192 return this; 6309 10193 } 10194 /** 10195 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10196 * 10197 * <pre> 10198 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10199 * </pre> 10200 */ 6310 10201 public Builder addKeysVals(int value) { 6311 10202 ensureKeysValsIsMutable(); … … 6314 10205 return this; 6315 10206 } 10207 /** 10208 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10209 * 10210 * <pre> 10211 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10212 * </pre> 10213 */ 6316 10214 public Builder addAllKeysVals( 6317 10215 java.lang.Iterable<? extends java.lang.Integer> values) { … … 6321 10219 return this; 6322 10220 } 10221 /** 10222 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10223 * 10224 * <pre> 10225 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10226 * </pre> 10227 */ 6323 10228 public Builder clearKeysVals() { 6324 keysVals_ = java.util.Collections.emptyList(); ;10229 keysVals_ = java.util.Collections.emptyList(); 6325 10230 bitField0_ = (bitField0_ & ~0x00000010); 6326 10231 6327 10232 return this; 6328 10233 } 6329 10234 6330 10235 // @@protoc_insertion_point(builder_scope:OSMPBF.DenseNodes) 6331 10236 } 6332 10237 6333 10238 static { 6334 10239 defaultInstance = new DenseNodes(true); 6335 10240 defaultInstance.initFields(); 6336 10241 } 6337 10242 6338 10243 // @@protoc_insertion_point(class_scope:OSMPBF.DenseNodes) 6339 10244 } 6340 10245 6341 10246 public interface WayOrBuilder 6342 10247 extends com.google.protobuf.MessageLiteOrBuilder { 6343 10248 6344 10249 // required int64 id = 1; 10250 /** 10251 * <code>required int64 id = 1;</code> 10252 */ 6345 10253 boolean hasId(); 10254 /** 10255 * <code>required int64 id = 1;</code> 10256 */ 6346 10257 long getId(); 6347 10258 6348 10259 // repeated uint32 keys = 2 [packed = true]; 10260 /** 10261 * <code>repeated uint32 keys = 2 [packed = true];</code> 10262 * 10263 * <pre> 10264 * Parallel arrays. 10265 * </pre> 10266 */ 6349 10267 java.util.List<java.lang.Integer> getKeysList(); 10268 /** 10269 * <code>repeated uint32 keys = 2 [packed = true];</code> 10270 * 10271 * <pre> 10272 * Parallel arrays. 10273 * </pre> 10274 */ 6350 10275 int getKeysCount(); 10276 /** 10277 * <code>repeated uint32 keys = 2 [packed = true];</code> 10278 * 10279 * <pre> 10280 * Parallel arrays. 10281 * </pre> 10282 */ 6351 10283 int getKeys(int index); 6352 10284 6353 10285 // repeated uint32 vals = 3 [packed = true]; 10286 /** 10287 * <code>repeated uint32 vals = 3 [packed = true];</code> 10288 */ 6354 10289 java.util.List<java.lang.Integer> getValsList(); 10290 /** 10291 * <code>repeated uint32 vals = 3 [packed = true];</code> 10292 */ 6355 10293 int getValsCount(); 10294 /** 10295 * <code>repeated uint32 vals = 3 [packed = true];</code> 10296 */ 6356 10297 int getVals(int index); 6357 10298 6358 10299 // optional .OSMPBF.Info info = 4; 10300 /** 10301 * <code>optional .OSMPBF.Info info = 4;</code> 10302 */ 6359 10303 boolean hasInfo(); 10304 /** 10305 * <code>optional .OSMPBF.Info info = 4;</code> 10306 */ 6360 10307 crosby.binary.Osmformat.Info getInfo(); 6361 10308 6362 10309 // repeated sint64 refs = 8 [packed = true]; 10310 /** 10311 * <code>repeated sint64 refs = 8 [packed = true];</code> 10312 * 10313 * <pre> 10314 * DELTA coded 10315 * </pre> 10316 */ 6363 10317 java.util.List<java.lang.Long> getRefsList(); 10318 /** 10319 * <code>repeated sint64 refs = 8 [packed = true];</code> 10320 * 10321 * <pre> 10322 * DELTA coded 10323 * </pre> 10324 */ 6364 10325 int getRefsCount(); 10326 /** 10327 * <code>repeated sint64 refs = 8 [packed = true];</code> 10328 * 10329 * <pre> 10330 * DELTA coded 10331 * </pre> 10332 */ 6365 10333 long getRefs(int index); 6366 10334 } 10335 /** 10336 * Protobuf type {@code OSMPBF.Way} 10337 */ 6367 10338 public static final class Way extends 6368 10339 com.google.protobuf.GeneratedMessageLite 6369 10340 implements WayOrBuilder { 6370 10341 // Use Way.newBuilder() to construct. 6371 private Way( Builder builder) {10342 private Way(com.google.protobuf.GeneratedMessageLite.Builder builder) { 6372 10343 super(builder); 10344 6373 10345 } 6374 10346 private Way(boolean noInit) {} 6375 10347 6376 10348 private static final Way defaultInstance; 6377 10349 public static Way getDefaultInstance() { 6378 10350 return defaultInstance; 6379 10351 } 6380 10352 6381 10353 public Way getDefaultInstanceForType() { 6382 10354 return defaultInstance; 6383 10355 } 6384 10356 10357 private Way( 10358 com.google.protobuf.CodedInputStream input, 10359 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10360 throws com.google.protobuf.InvalidProtocolBufferException { 10361 initFields(); 10362 int mutable_bitField0_ = 0; 10363 try { 10364 boolean done = false; 10365 while (!done) { 10366 int tag = input.readTag(); 10367 switch (tag) { 10368 case 0: 10369 done = true; 10370 break; 10371 default: { 10372 if (!parseUnknownField(input, 10373 extensionRegistry, tag)) { 10374 done = true; 10375 } 10376 break; 10377 } 10378 case 8: { 10379 bitField0_ |= 0x00000001; 10380 id_ = input.readInt64(); 10381 break; 10382 } 10383 case 16: { 10384 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 10385 keys_ = new java.util.ArrayList<java.lang.Integer>(); 10386 mutable_bitField0_ |= 0x00000002; 10387 } 10388 keys_.add(input.readUInt32()); 10389 break; 10390 } 10391 case 18: { 10392 int length = input.readRawVarint32(); 10393 int limit = input.pushLimit(length); 10394 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { 10395 keys_ = new java.util.ArrayList<java.lang.Integer>(); 10396 mutable_bitField0_ |= 0x00000002; 10397 } 10398 while (input.getBytesUntilLimit() > 0) { 10399 keys_.add(input.readUInt32()); 10400 } 10401 input.popLimit(limit); 10402 break; 10403 } 10404 case 24: { 10405 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 10406 vals_ = new java.util.ArrayList<java.lang.Integer>(); 10407 mutable_bitField0_ |= 0x00000004; 10408 } 10409 vals_.add(input.readUInt32()); 10410 break; 10411 } 10412 case 26: { 10413 int length = input.readRawVarint32(); 10414 int limit = input.pushLimit(length); 10415 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { 10416 vals_ = new java.util.ArrayList<java.lang.Integer>(); 10417 mutable_bitField0_ |= 0x00000004; 10418 } 10419 while (input.getBytesUntilLimit() > 0) { 10420 vals_.add(input.readUInt32()); 10421 } 10422 input.popLimit(limit); 10423 break; 10424 } 10425 case 34: { 10426 crosby.binary.Osmformat.Info.Builder subBuilder = null; 10427 if (((bitField0_ & 0x00000002) == 0x00000002)) { 10428 subBuilder = info_.toBuilder(); 10429 } 10430 info_ = input.readMessage(crosby.binary.Osmformat.Info.PARSER, extensionRegistry); 10431 if (subBuilder != null) { 10432 subBuilder.mergeFrom(info_); 10433 info_ = subBuilder.buildPartial(); 10434 } 10435 bitField0_ |= 0x00000002; 10436 break; 10437 } 10438 case 64: { 10439 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 10440 refs_ = new java.util.ArrayList<java.lang.Long>(); 10441 mutable_bitField0_ |= 0x00000010; 10442 } 10443 refs_.add(input.readSInt64()); 10444 break; 10445 } 10446 case 66: { 10447 int length = input.readRawVarint32(); 10448 int limit = input.pushLimit(length); 10449 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { 10450 refs_ = new java.util.ArrayList<java.lang.Long>(); 10451 mutable_bitField0_ |= 0x00000010; 10452 } 10453 while (input.getBytesUntilLimit() > 0) { 10454 refs_.add(input.readSInt64()); 10455 } 10456 input.popLimit(limit); 10457 break; 10458 } 10459 } 10460 } 10461 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 10462 throw e.setUnfinishedMessage(this); 10463 } catch (java.io.IOException e) { 10464 throw new com.google.protobuf.InvalidProtocolBufferException( 10465 e.getMessage()).setUnfinishedMessage(this); 10466 } finally { 10467 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 10468 keys_ = java.util.Collections.unmodifiableList(keys_); 10469 } 10470 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 10471 vals_ = java.util.Collections.unmodifiableList(vals_); 10472 } 10473 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 10474 refs_ = java.util.Collections.unmodifiableList(refs_); 10475 } 10476 makeExtensionsImmutable(); 10477 } 10478 } 10479 public static com.google.protobuf.Parser<Way> PARSER = 10480 new com.google.protobuf.AbstractParser<Way>() { 10481 public Way parsePartialFrom( 10482 com.google.protobuf.CodedInputStream input, 10483 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10484 throws com.google.protobuf.InvalidProtocolBufferException { 10485 return new Way(input, extensionRegistry); 10486 } 10487 }; 10488 10489 @java.lang.Override 10490 public com.google.protobuf.Parser<Way> getParserForType() { 10491 return PARSER; 10492 } 10493 6385 10494 private int bitField0_; 6386 10495 // required int64 id = 1; 6387 10496 public static final int ID_FIELD_NUMBER = 1; 6388 10497 private long id_; 10498 /** 10499 * <code>required int64 id = 1;</code> 10500 */ 6389 10501 public boolean hasId() { 6390 10502 return ((bitField0_ & 0x00000001) == 0x00000001); 6391 10503 } 10504 /** 10505 * <code>required int64 id = 1;</code> 10506 */ 6392 10507 public long getId() { 6393 10508 return id_; 6394 10509 } 6395 10510 6396 10511 // repeated uint32 keys = 2 [packed = true]; 6397 10512 public static final int KEYS_FIELD_NUMBER = 2; 6398 10513 private java.util.List<java.lang.Integer> keys_; 10514 /** 10515 * <code>repeated uint32 keys = 2 [packed = true];</code> 10516 * 10517 * <pre> 10518 * Parallel arrays. 10519 * </pre> 10520 */ 6399 10521 public java.util.List<java.lang.Integer> 6400 10522 getKeysList() { 6401 10523 return keys_; 6402 10524 } 10525 /** 10526 * <code>repeated uint32 keys = 2 [packed = true];</code> 10527 * 10528 * <pre> 10529 * Parallel arrays. 10530 * </pre> 10531 */ 6403 10532 public int getKeysCount() { 6404 10533 return keys_.size(); 6405 10534 } 10535 /** 10536 * <code>repeated uint32 keys = 2 [packed = true];</code> 10537 * 10538 * <pre> 10539 * Parallel arrays. 10540 * </pre> 10541 */ 6406 10542 public int getKeys(int index) { 6407 10543 return keys_.get(index); 6408 10544 } 6409 10545 private int keysMemoizedSerializedSize = -1; 6410 10546 6411 10547 // repeated uint32 vals = 3 [packed = true]; 6412 10548 public static final int VALS_FIELD_NUMBER = 3; 6413 10549 private java.util.List<java.lang.Integer> vals_; 10550 /** 10551 * <code>repeated uint32 vals = 3 [packed = true];</code> 10552 */ 6414 10553 public java.util.List<java.lang.Integer> 6415 10554 getValsList() { 6416 10555 return vals_; 6417 10556 } 10557 /** 10558 * <code>repeated uint32 vals = 3 [packed = true];</code> 10559 */ 6418 10560 public int getValsCount() { 6419 10561 return vals_.size(); 6420 10562 } 10563 /** 10564 * <code>repeated uint32 vals = 3 [packed = true];</code> 10565 */ 6421 10566 public int getVals(int index) { 6422 10567 return vals_.get(index); 6423 10568 } 6424 10569 private int valsMemoizedSerializedSize = -1; 6425 10570 6426 10571 // optional .OSMPBF.Info info = 4; 6427 10572 public static final int INFO_FIELD_NUMBER = 4; 6428 10573 private crosby.binary.Osmformat.Info info_; 10574 /** 10575 * <code>optional .OSMPBF.Info info = 4;</code> 10576 */ 6429 10577 public boolean hasInfo() { 6430 10578 return ((bitField0_ & 0x00000002) == 0x00000002); 6431 10579 } 10580 /** 10581 * <code>optional .OSMPBF.Info info = 4;</code> 10582 */ 6432 10583 public crosby.binary.Osmformat.Info getInfo() { 6433 10584 return info_; 6434 10585 } 6435 10586 6436 10587 // repeated sint64 refs = 8 [packed = true]; 6437 10588 public static final int REFS_FIELD_NUMBER = 8; 6438 10589 private java.util.List<java.lang.Long> refs_; 10590 /** 10591 * <code>repeated sint64 refs = 8 [packed = true];</code> 10592 * 10593 * <pre> 10594 * DELTA coded 10595 * </pre> 10596 */ 6439 10597 public java.util.List<java.lang.Long> 6440 10598 getRefsList() { 6441 10599 return refs_; 6442 10600 } 10601 /** 10602 * <code>repeated sint64 refs = 8 [packed = true];</code> 10603 * 10604 * <pre> 10605 * DELTA coded 10606 * </pre> 10607 */ 6443 10608 public int getRefsCount() { 6444 10609 return refs_.size(); 6445 10610 } 10611 /** 10612 * <code>repeated sint64 refs = 8 [packed = true];</code> 10613 * 10614 * <pre> 10615 * DELTA coded 10616 * </pre> 10617 */ 6446 10618 public long getRefs(int index) { 6447 10619 return refs_.get(index); 6448 10620 } 6449 10621 private int refsMemoizedSerializedSize = -1; 6450 10622 6451 10623 private void initFields() { 6452 10624 id_ = 0L; 6453 keys_ = java.util.Collections.emptyList(); ;6454 vals_ = java.util.Collections.emptyList(); ;10625 keys_ = java.util.Collections.emptyList(); 10626 vals_ = java.util.Collections.emptyList(); 6455 10627 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 6456 refs_ = java.util.Collections.emptyList(); ;10628 refs_ = java.util.Collections.emptyList(); 6457 10629 } 6458 10630 private byte memoizedIsInitialized = -1; … … 6460 10632 byte isInitialized = memoizedIsInitialized; 6461 10633 if (isInitialized != -1) return isInitialized == 1; 6462 10634 6463 10635 if (!hasId()) { 6464 10636 memoizedIsInitialized = 0; … … 6468 10640 return true; 6469 10641 } 6470 10642 6471 10643 public void writeTo(com.google.protobuf.CodedOutputStream output) 6472 10644 throws java.io.IOException { … … 6500 10672 } 6501 10673 } 6502 10674 6503 10675 private int memoizedSerializedSize = -1; 6504 10676 public int getSerializedSize() { 6505 10677 int size = memoizedSerializedSize; 6506 10678 if (size != -1) return size; 6507 10679 6508 10680 size = 0; 6509 10681 if (((bitField0_ & 0x00000001) == 0x00000001)) { … … 6560 10732 return size; 6561 10733 } 6562 10734 6563 10735 private static final long serialVersionUID = 0L; 6564 10736 @java.lang.Override … … 6567 10739 return super.writeReplace(); 6568 10740 } 6569 10741 6570 10742 public static crosby.binary.Osmformat.Way parseFrom( 6571 10743 com.google.protobuf.ByteString data) 6572 10744 throws com.google.protobuf.InvalidProtocolBufferException { 6573 return newBuilder().mergeFrom(data).buildParsed();10745 return PARSER.parseFrom(data); 6574 10746 } 6575 10747 public static crosby.binary.Osmformat.Way parseFrom( … … 6577 10749 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6578 10750 throws com.google.protobuf.InvalidProtocolBufferException { 6579 return newBuilder().mergeFrom(data, extensionRegistry) 6580 .buildParsed(); 10751 return PARSER.parseFrom(data, extensionRegistry); 6581 10752 } 6582 10753 public static crosby.binary.Osmformat.Way parseFrom(byte[] data) 6583 10754 throws com.google.protobuf.InvalidProtocolBufferException { 6584 return newBuilder().mergeFrom(data).buildParsed();10755 return PARSER.parseFrom(data); 6585 10756 } 6586 10757 public static crosby.binary.Osmformat.Way parseFrom( … … 6588 10759 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6589 10760 throws com.google.protobuf.InvalidProtocolBufferException { 6590 return newBuilder().mergeFrom(data, extensionRegistry) 6591 .buildParsed(); 10761 return PARSER.parseFrom(data, extensionRegistry); 6592 10762 } 6593 10763 public static crosby.binary.Osmformat.Way parseFrom(java.io.InputStream input) 6594 10764 throws java.io.IOException { 6595 return newBuilder().mergeFrom(input).buildParsed();10765 return PARSER.parseFrom(input); 6596 10766 } 6597 10767 public static crosby.binary.Osmformat.Way parseFrom( … … 6599 10769 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6600 10770 throws java.io.IOException { 6601 return newBuilder().mergeFrom(input, extensionRegistry) 6602 .buildParsed(); 10771 return PARSER.parseFrom(input, extensionRegistry); 6603 10772 } 6604 10773 public static crosby.binary.Osmformat.Way parseDelimitedFrom(java.io.InputStream input) 6605 10774 throws java.io.IOException { 6606 Builder builder = newBuilder(); 6607 if (builder.mergeDelimitedFrom(input)) { 6608 return builder.buildParsed(); 6609 } else { 6610 return null; 6611 } 10775 return PARSER.parseDelimitedFrom(input); 6612 10776 } 6613 10777 public static crosby.binary.Osmformat.Way parseDelimitedFrom( … … 6615 10779 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6616 10780 throws java.io.IOException { 6617 Builder builder = newBuilder(); 6618 if (builder.mergeDelimitedFrom(input, extensionRegistry)) { 6619 return builder.buildParsed(); 6620 } else { 6621 return null; 6622 } 10781 return PARSER.parseDelimitedFrom(input, extensionRegistry); 6623 10782 } 6624 10783 public static crosby.binary.Osmformat.Way parseFrom( 6625 10784 com.google.protobuf.CodedInputStream input) 6626 10785 throws java.io.IOException { 6627 return newBuilder().mergeFrom(input).buildParsed();10786 return PARSER.parseFrom(input); 6628 10787 } 6629 10788 public static crosby.binary.Osmformat.Way parseFrom( … … 6631 10790 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6632 10791 throws java.io.IOException { 6633 return newBuilder().mergeFrom(input, extensionRegistry) 6634 .buildParsed(); 6635 } 6636 10792 return PARSER.parseFrom(input, extensionRegistry); 10793 } 10794 6637 10795 public static Builder newBuilder() { return Builder.create(); } 6638 10796 public Builder newBuilderForType() { return newBuilder(); } … … 6641 10799 } 6642 10800 public Builder toBuilder() { return newBuilder(this); } 6643 10801 10802 /** 10803 * Protobuf type {@code OSMPBF.Way} 10804 */ 6644 10805 public static final class Builder extends 6645 10806 com.google.protobuf.GeneratedMessageLite.Builder< … … 6650 10811 maybeForceBuilderInitialization(); 6651 10812 } 6652 10813 6653 10814 private void maybeForceBuilderInitialization() { 6654 10815 } … … 6656 10817 return new Builder(); 6657 10818 } 6658 10819 6659 10820 public Builder clear() { 6660 10821 super.clear(); 6661 10822 id_ = 0L; 6662 10823 bitField0_ = (bitField0_ & ~0x00000001); 6663 keys_ = java.util.Collections.emptyList(); ;10824 keys_ = java.util.Collections.emptyList(); 6664 10825 bitField0_ = (bitField0_ & ~0x00000002); 6665 vals_ = java.util.Collections.emptyList(); ;10826 vals_ = java.util.Collections.emptyList(); 6666 10827 bitField0_ = (bitField0_ & ~0x00000004); 6667 10828 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 6668 10829 bitField0_ = (bitField0_ & ~0x00000008); 6669 refs_ = java.util.Collections.emptyList(); ;10830 refs_ = java.util.Collections.emptyList(); 6670 10831 bitField0_ = (bitField0_ & ~0x00000010); 6671 10832 return this; 6672 10833 } 6673 10834 6674 10835 public Builder clone() { 6675 10836 return create().mergeFrom(buildPartial()); 6676 10837 } 6677 10838 6678 10839 public crosby.binary.Osmformat.Way getDefaultInstanceForType() { 6679 10840 return crosby.binary.Osmformat.Way.getDefaultInstance(); 6680 10841 } 6681 10842 6682 10843 public crosby.binary.Osmformat.Way build() { 6683 10844 crosby.binary.Osmformat.Way result = buildPartial(); … … 6687 10848 return result; 6688 10849 } 6689 6690 private crosby.binary.Osmformat.Way buildParsed() 6691 throws com.google.protobuf.InvalidProtocolBufferException { 6692 crosby.binary.Osmformat.Way result = buildPartial(); 6693 if (!result.isInitialized()) { 6694 throw newUninitializedMessageException( 6695 result).asInvalidProtocolBufferException(); 6696 } 6697 return result; 6698 } 6699 10850 6700 10851 public crosby.binary.Osmformat.Way buildPartial() { 6701 10852 crosby.binary.Osmformat.Way result = new crosby.binary.Osmformat.Way(this); … … 6728 10879 return result; 6729 10880 } 6730 10881 6731 10882 public Builder mergeFrom(crosby.binary.Osmformat.Way other) { 6732 10883 if (other == crosby.binary.Osmformat.Way.getDefaultInstance()) return this; … … 6769 10920 return this; 6770 10921 } 6771 10922 6772 10923 public final boolean isInitialized() { 6773 10924 if (!hasId()) { … … 6777 10928 return true; 6778 10929 } 6779 10930 6780 10931 public Builder mergeFrom( 6781 10932 com.google.protobuf.CodedInputStream input, 6782 10933 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6783 10934 throws java.io.IOException { 6784 while (true) { 10935 crosby.binary.Osmformat.Way parsedMessage = null; 10936 try { 10937 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 10938 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 10939 parsedMessage = (crosby.binary.Osmformat.Way) e.getUnfinishedMessage(); 10940 throw e; 10941 } finally { 10942 if (parsedMessage != null) { 10943 mergeFrom(parsedMessage); 10944 } 10945 } 10946 return this; 10947 } 10948 private int bitField0_; 10949 10950 // required int64 id = 1; 10951 private long id_ ; 10952 /** 10953 * <code>required int64 id = 1;</code> 10954 */ 10955 public boolean hasId() { 10956 return ((bitField0_ & 0x00000001) == 0x00000001); 10957 } 10958 /** 10959 * <code>required int64 id = 1;</code> 10960 */ 10961 public long getId() { 10962 return id_; 10963 } 10964 /** 10965 * <code>required int64 id = 1;</code> 10966 */ 10967 public Builder setId(long value) { 10968 bitField0_ |= 0x00000001; 10969 id_ = value; 10970 10971 return this; 10972 } 10973 /** 10974 * <code>required int64 id = 1;</code> 10975 */ 10976 public Builder clearId() { 10977 bitField0_ = (bitField0_ & ~0x00000001); 10978 id_ = 0L; 10979 10980 return this; 10981 } 10982 10983 // repeated uint32 keys = 2 [packed = true]; 10984 private java.util.List<java.lang.Integer> keys_ = java.util.Collections.emptyList(); 10985 private void ensureKeysIsMutable() { 10986 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 10987 keys_ = new java.util.ArrayList<java.lang.Integer>(keys_); 10988 bitField0_ |= 0x00000002; 10989 } 10990 } 10991 /** 10992 * <code>repeated uint32 keys = 2 [packed = true];</code> 10993 * 10994 * <pre> 10995 * Parallel arrays. 10996 * </pre> 10997 */ 10998 public java.util.List<java.lang.Integer> 10999 getKeysList() { 11000 return java.util.Collections.unmodifiableList(keys_); 11001 } 11002 /** 11003 * <code>repeated uint32 keys = 2 [packed = true];</code> 11004 * 11005 * <pre> 11006 * Parallel arrays. 11007 * </pre> 11008 */ 11009 public int getKeysCount() { 11010 return keys_.size(); 11011 } 11012 /** 11013 * <code>repeated uint32 keys = 2 [packed = true];</code> 11014 * 11015 * <pre> 11016 * Parallel arrays. 11017 * </pre> 11018 */ 11019 public int getKeys(int index) { 11020 return keys_.get(index); 11021 } 11022 /** 11023 * <code>repeated uint32 keys = 2 [packed = true];</code> 11024 * 11025 * <pre> 11026 * Parallel arrays. 11027 * </pre> 11028 */ 11029 public Builder setKeys( 11030 int index, int value) { 11031 ensureKeysIsMutable(); 11032 keys_.set(index, value); 11033 11034 return this; 11035 } 11036 /** 11037 * <code>repeated uint32 keys = 2 [packed = true];</code> 11038 * 11039 * <pre> 11040 * Parallel arrays. 11041 * </pre> 11042 */ 11043 public Builder addKeys(int value) { 11044 ensureKeysIsMutable(); 11045 keys_.add(value); 11046 11047 return this; 11048 } 11049 /** 11050 * <code>repeated uint32 keys = 2 [packed = true];</code> 11051 * 11052 * <pre> 11053 * Parallel arrays. 11054 * </pre> 11055 */ 11056 public Builder addAllKeys( 11057 java.lang.Iterable<? extends java.lang.Integer> values) { 11058 ensureKeysIsMutable(); 11059 super.addAll(values, keys_); 11060 11061 return this; 11062 } 11063 /** 11064 * <code>repeated uint32 keys = 2 [packed = true];</code> 11065 * 11066 * <pre> 11067 * Parallel arrays. 11068 * </pre> 11069 */ 11070 public Builder clearKeys() { 11071 keys_ = java.util.Collections.emptyList(); 11072 bitField0_ = (bitField0_ & ~0x00000002); 11073 11074 return this; 11075 } 11076 11077 // repeated uint32 vals = 3 [packed = true]; 11078 private java.util.List<java.lang.Integer> vals_ = java.util.Collections.emptyList(); 11079 private void ensureValsIsMutable() { 11080 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 11081 vals_ = new java.util.ArrayList<java.lang.Integer>(vals_); 11082 bitField0_ |= 0x00000004; 11083 } 11084 } 11085 /** 11086 * <code>repeated uint32 vals = 3 [packed = true];</code> 11087 */ 11088 public java.util.List<java.lang.Integer> 11089 getValsList() { 11090 return java.util.Collections.unmodifiableList(vals_); 11091 } 11092 /** 11093 * <code>repeated uint32 vals = 3 [packed = true];</code> 11094 */ 11095 public int getValsCount() { 11096 return vals_.size(); 11097 } 11098 /** 11099 * <code>repeated uint32 vals = 3 [packed = true];</code> 11100 */ 11101 public int getVals(int index) { 11102 return vals_.get(index); 11103 } 11104 /** 11105 * <code>repeated uint32 vals = 3 [packed = true];</code> 11106 */ 11107 public Builder setVals( 11108 int index, int value) { 11109 ensureValsIsMutable(); 11110 vals_.set(index, value); 11111 11112 return this; 11113 } 11114 /** 11115 * <code>repeated uint32 vals = 3 [packed = true];</code> 11116 */ 11117 public Builder addVals(int value) { 11118 ensureValsIsMutable(); 11119 vals_.add(value); 11120 11121 return this; 11122 } 11123 /** 11124 * <code>repeated uint32 vals = 3 [packed = true];</code> 11125 */ 11126 public Builder addAllVals( 11127 java.lang.Iterable<? extends java.lang.Integer> values) { 11128 ensureValsIsMutable(); 11129 super.addAll(values, vals_); 11130 11131 return this; 11132 } 11133 /** 11134 * <code>repeated uint32 vals = 3 [packed = true];</code> 11135 */ 11136 public Builder clearVals() { 11137 vals_ = java.util.Collections.emptyList(); 11138 bitField0_ = (bitField0_ & ~0x00000004); 11139 11140 return this; 11141 } 11142 11143 // optional .OSMPBF.Info info = 4; 11144 private crosby.binary.Osmformat.Info info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 11145 /** 11146 * <code>optional .OSMPBF.Info info = 4;</code> 11147 */ 11148 public boolean hasInfo() { 11149 return ((bitField0_ & 0x00000008) == 0x00000008); 11150 } 11151 /** 11152 * <code>optional .OSMPBF.Info info = 4;</code> 11153 */ 11154 public crosby.binary.Osmformat.Info getInfo() { 11155 return info_; 11156 } 11157 /** 11158 * <code>optional .OSMPBF.Info info = 4;</code> 11159 */ 11160 public Builder setInfo(crosby.binary.Osmformat.Info value) { 11161 if (value == null) { 11162 throw new NullPointerException(); 11163 } 11164 info_ = value; 11165 11166 bitField0_ |= 0x00000008; 11167 return this; 11168 } 11169 /** 11170 * <code>optional .OSMPBF.Info info = 4;</code> 11171 */ 11172 public Builder setInfo( 11173 crosby.binary.Osmformat.Info.Builder builderForValue) { 11174 info_ = builderForValue.build(); 11175 11176 bitField0_ |= 0x00000008; 11177 return this; 11178 } 11179 /** 11180 * <code>optional .OSMPBF.Info info = 4;</code> 11181 */ 11182 public Builder mergeInfo(crosby.binary.Osmformat.Info value) { 11183 if (((bitField0_ & 0x00000008) == 0x00000008) && 11184 info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) { 11185 info_ = 11186 crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial(); 11187 } else { 11188 info_ = value; 11189 } 11190 11191 bitField0_ |= 0x00000008; 11192 return this; 11193 } 11194 /** 11195 * <code>optional .OSMPBF.Info info = 4;</code> 11196 */ 11197 public Builder clearInfo() { 11198 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 11199 11200 bitField0_ = (bitField0_ & ~0x00000008); 11201 return this; 11202 } 11203 11204 // repeated sint64 refs = 8 [packed = true]; 11205 private java.util.List<java.lang.Long> refs_ = java.util.Collections.emptyList(); 11206 private void ensureRefsIsMutable() { 11207 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 11208 refs_ = new java.util.ArrayList<java.lang.Long>(refs_); 11209 bitField0_ |= 0x00000010; 11210 } 11211 } 11212 /** 11213 * <code>repeated sint64 refs = 8 [packed = true];</code> 11214 * 11215 * <pre> 11216 * DELTA coded 11217 * </pre> 11218 */ 11219 public java.util.List<java.lang.Long> 11220 getRefsList() { 11221 return java.util.Collections.unmodifiableList(refs_); 11222 } 11223 /** 11224 * <code>repeated sint64 refs = 8 [packed = true];</code> 11225 * 11226 * <pre> 11227 * DELTA coded 11228 * </pre> 11229 */ 11230 public int getRefsCount() { 11231 return refs_.size(); 11232 } 11233 /** 11234 * <code>repeated sint64 refs = 8 [packed = true];</code> 11235 * 11236 * <pre> 11237 * DELTA coded 11238 * </pre> 11239 */ 11240 public long getRefs(int index) { 11241 return refs_.get(index); 11242 } 11243 /** 11244 * <code>repeated sint64 refs = 8 [packed = true];</code> 11245 * 11246 * <pre> 11247 * DELTA coded 11248 * </pre> 11249 */ 11250 public Builder setRefs( 11251 int index, long value) { 11252 ensureRefsIsMutable(); 11253 refs_.set(index, value); 11254 11255 return this; 11256 } 11257 /** 11258 * <code>repeated sint64 refs = 8 [packed = true];</code> 11259 * 11260 * <pre> 11261 * DELTA coded 11262 * </pre> 11263 */ 11264 public Builder addRefs(long value) { 11265 ensureRefsIsMutable(); 11266 refs_.add(value); 11267 11268 return this; 11269 } 11270 /** 11271 * <code>repeated sint64 refs = 8 [packed = true];</code> 11272 * 11273 * <pre> 11274 * DELTA coded 11275 * </pre> 11276 */ 11277 public Builder addAllRefs( 11278 java.lang.Iterable<? extends java.lang.Long> values) { 11279 ensureRefsIsMutable(); 11280 super.addAll(values, refs_); 11281 11282 return this; 11283 } 11284 /** 11285 * <code>repeated sint64 refs = 8 [packed = true];</code> 11286 * 11287 * <pre> 11288 * DELTA coded 11289 * </pre> 11290 */ 11291 public Builder clearRefs() { 11292 refs_ = java.util.Collections.emptyList(); 11293 bitField0_ = (bitField0_ & ~0x00000010); 11294 11295 return this; 11296 } 11297 11298 // @@protoc_insertion_point(builder_scope:OSMPBF.Way) 11299 } 11300 11301 static { 11302 defaultInstance = new Way(true); 11303 defaultInstance.initFields(); 11304 } 11305 11306 // @@protoc_insertion_point(class_scope:OSMPBF.Way) 11307 } 11308 11309 public interface RelationOrBuilder 11310 extends com.google.protobuf.MessageLiteOrBuilder { 11311 11312 // required int64 id = 1; 11313 /** 11314 * <code>required int64 id = 1;</code> 11315 */ 11316 boolean hasId(); 11317 /** 11318 * <code>required int64 id = 1;</code> 11319 */ 11320 long getId(); 11321 11322 // repeated uint32 keys = 2 [packed = true]; 11323 /** 11324 * <code>repeated uint32 keys = 2 [packed = true];</code> 11325 * 11326 * <pre> 11327 * Parallel arrays. 11328 * </pre> 11329 */ 11330 java.util.List<java.lang.Integer> getKeysList(); 11331 /** 11332 * <code>repeated uint32 keys = 2 [packed = true];</code> 11333 * 11334 * <pre> 11335 * Parallel arrays. 11336 * </pre> 11337 */ 11338 int getKeysCount(); 11339 /** 11340 * <code>repeated uint32 keys = 2 [packed = true];</code> 11341 * 11342 * <pre> 11343 * Parallel arrays. 11344 * </pre> 11345 */ 11346 int getKeys(int index); 11347 11348 // repeated uint32 vals = 3 [packed = true]; 11349 /** 11350 * <code>repeated uint32 vals = 3 [packed = true];</code> 11351 */ 11352 java.util.List<java.lang.Integer> getValsList(); 11353 /** 11354 * <code>repeated uint32 vals = 3 [packed = true];</code> 11355 */ 11356 int getValsCount(); 11357 /** 11358 * <code>repeated uint32 vals = 3 [packed = true];</code> 11359 */ 11360 int getVals(int index); 11361 11362 // optional .OSMPBF.Info info = 4; 11363 /** 11364 * <code>optional .OSMPBF.Info info = 4;</code> 11365 */ 11366 boolean hasInfo(); 11367 /** 11368 * <code>optional .OSMPBF.Info info = 4;</code> 11369 */ 11370 crosby.binary.Osmformat.Info getInfo(); 11371 11372 // repeated int32 roles_sid = 8 [packed = true]; 11373 /** 11374 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 11375 * 11376 * <pre> 11377 * Parallel arrays 11378 * </pre> 11379 */ 11380 java.util.List<java.lang.Integer> getRolesSidList(); 11381 /** 11382 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 11383 * 11384 * <pre> 11385 * Parallel arrays 11386 * </pre> 11387 */ 11388 int getRolesSidCount(); 11389 /** 11390 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 11391 * 11392 * <pre> 11393 * Parallel arrays 11394 * </pre> 11395 */ 11396 int getRolesSid(int index); 11397 11398 // repeated sint64 memids = 9 [packed = true]; 11399 /** 11400 * <code>repeated sint64 memids = 9 [packed = true];</code> 11401 * 11402 * <pre> 11403 * DELTA encoded 11404 * </pre> 11405 */ 11406 java.util.List<java.lang.Long> getMemidsList(); 11407 /** 11408 * <code>repeated sint64 memids = 9 [packed = true];</code> 11409 * 11410 * <pre> 11411 * DELTA encoded 11412 * </pre> 11413 */ 11414 int getMemidsCount(); 11415 /** 11416 * <code>repeated sint64 memids = 9 [packed = true];</code> 11417 * 11418 * <pre> 11419 * DELTA encoded 11420 * </pre> 11421 */ 11422 long getMemids(int index); 11423 11424 // repeated .OSMPBF.Relation.MemberType types = 10 [packed = true]; 11425 /** 11426 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 11427 */ 11428 java.util.List<crosby.binary.Osmformat.Relation.MemberType> getTypesList(); 11429 /** 11430 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 11431 */ 11432 int getTypesCount(); 11433 /** 11434 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 11435 */ 11436 crosby.binary.Osmformat.Relation.MemberType getTypes(int index); 11437 } 11438 /** 11439 * Protobuf type {@code OSMPBF.Relation} 11440 */ 11441 public static final class Relation extends 11442 com.google.protobuf.GeneratedMessageLite 11443 implements RelationOrBuilder { 11444 // Use Relation.newBuilder() to construct. 11445 private Relation(com.google.protobuf.GeneratedMessageLite.Builder builder) { 11446 super(builder); 11447 11448 } 11449 private Relation(boolean noInit) {} 11450 11451 private static final Relation defaultInstance; 11452 public static Relation getDefaultInstance() { 11453 return defaultInstance; 11454 } 11455 11456 public Relation getDefaultInstanceForType() { 11457 return defaultInstance; 11458 } 11459 11460 private Relation( 11461 com.google.protobuf.CodedInputStream input, 11462 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11463 throws com.google.protobuf.InvalidProtocolBufferException { 11464 initFields(); 11465 int mutable_bitField0_ = 0; 11466 try { 11467 boolean done = false; 11468 while (!done) { 6785 11469 int tag = input.readTag(); 6786 11470 switch (tag) { 6787 11471 case 0: 6788 6789 return this;11472 done = true; 11473 break; 6790 11474 default: { 6791 if (!parseUnknownField(input, extensionRegistry, tag)) {6792 6793 return this;11475 if (!parseUnknownField(input, 11476 extensionRegistry, tag)) { 11477 done = true; 6794 11478 } 6795 11479 break; … … 6801 11485 } 6802 11486 case 16: { 6803 ensureKeysIsMutable(); 11487 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 11488 keys_ = new java.util.ArrayList<java.lang.Integer>(); 11489 mutable_bitField0_ |= 0x00000002; 11490 } 6804 11491 keys_.add(input.readUInt32()); 6805 11492 break; … … 6808 11495 int length = input.readRawVarint32(); 6809 11496 int limit = input.pushLimit(length); 11497 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { 11498 keys_ = new java.util.ArrayList<java.lang.Integer>(); 11499 mutable_bitField0_ |= 0x00000002; 11500 } 6810 11501 while (input.getBytesUntilLimit() > 0) { 6811 addKeys(input.readUInt32());11502 keys_.add(input.readUInt32()); 6812 11503 } 6813 11504 input.popLimit(limit); … … 6815 11506 } 6816 11507 case 24: { 6817 ensureValsIsMutable(); 11508 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 11509 vals_ = new java.util.ArrayList<java.lang.Integer>(); 11510 mutable_bitField0_ |= 0x00000004; 11511 } 6818 11512 vals_.add(input.readUInt32()); 6819 11513 break; … … 6822 11516 int length = input.readRawVarint32(); 6823 11517 int limit = input.pushLimit(length); 11518 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { 11519 vals_ = new java.util.ArrayList<java.lang.Integer>(); 11520 mutable_bitField0_ |= 0x00000004; 11521 } 6824 11522 while (input.getBytesUntilLimit() > 0) { 6825 addVals(input.readUInt32());11523 vals_.add(input.readUInt32()); 6826 11524 } 6827 11525 input.popLimit(limit); … … 6829 11527 } 6830 11528 case 34: { 6831 crosby.binary.Osmformat.Info.Builder subBuilder = crosby.binary.Osmformat.Info.newBuilder();6832 if ( hasInfo()) {6833 subBuilder .mergeFrom(getInfo());11529 crosby.binary.Osmformat.Info.Builder subBuilder = null; 11530 if (((bitField0_ & 0x00000002) == 0x00000002)) { 11531 subBuilder = info_.toBuilder(); 6834 11532 } 6835 input.readMessage(subBuilder, extensionRegistry); 6836 setInfo(subBuilder.buildPartial()); 11533 info_ = input.readMessage(crosby.binary.Osmformat.Info.PARSER, extensionRegistry); 11534 if (subBuilder != null) { 11535 subBuilder.mergeFrom(info_); 11536 info_ = subBuilder.buildPartial(); 11537 } 11538 bitField0_ |= 0x00000002; 6837 11539 break; 6838 11540 } 6839 11541 case 64: { 6840 ensureRefsIsMutable(); 6841 refs_.add(input.readSInt64()); 6842 break; 6843 } 6844 case 66: { 6845 int length = input.readRawVarint32(); 6846 int limit = input.pushLimit(length); 6847 while (input.getBytesUntilLimit() > 0) { 6848 addRefs(input.readSInt64()); 11542 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 11543 rolesSid_ = new java.util.ArrayList<java.lang.Integer>(); 11544 mutable_bitField0_ |= 0x00000010; 6849 11545 } 6850 input.popLimit(limit);6851 break;6852 }6853 }6854 }6855 }6856 6857 private int bitField0_;6858 6859 // required int64 id = 1;6860 private long id_ ;6861 public boolean hasId() {6862 return ((bitField0_ & 0x00000001) == 0x00000001);6863 }6864 public long getId() {6865 return id_;6866 }6867 public Builder setId(long value) {6868 bitField0_ |= 0x00000001;6869 id_ = value;6870 6871 return this;6872 }6873 public Builder clearId() {6874 bitField0_ = (bitField0_ & ~0x00000001);6875 id_ = 0L;6876 6877 return this;6878 }6879 6880 // repeated uint32 keys = 2 [packed = true];6881 private java.util.List<java.lang.Integer> keys_ = java.util.Collections.emptyList();;6882 private void ensureKeysIsMutable() {6883 if (!((bitField0_ & 0x00000002) == 0x00000002)) {6884 keys_ = new java.util.ArrayList<java.lang.Integer>(keys_);6885 bitField0_ |= 0x00000002;6886 }6887 }6888 public java.util.List<java.lang.Integer>6889 getKeysList() {6890 return java.util.Collections.unmodifiableList(keys_);6891 }6892 public int getKeysCount() {6893 return keys_.size();6894 }6895 public int getKeys(int index) {6896 return keys_.get(index);6897 }6898 public Builder setKeys(6899 int index, int value) {6900 ensureKeysIsMutable();6901 keys_.set(index, value);6902 6903 return this;6904 }6905 public Builder addKeys(int value) {6906 ensureKeysIsMutable();6907 keys_.add(value);6908 6909 return this;6910 }6911 public Builder addAllKeys(6912 java.lang.Iterable<? extends java.lang.Integer> values) {6913 ensureKeysIsMutable();6914 super.addAll(values, keys_);6915 6916 return this;6917 }6918 public Builder clearKeys() {6919 keys_ = java.util.Collections.emptyList();;6920 bitField0_ = (bitField0_ & ~0x00000002);6921 6922 return this;6923 }6924 6925 // repeated uint32 vals = 3 [packed = true];6926 private java.util.List<java.lang.Integer> vals_ = java.util.Collections.emptyList();;6927 private void ensureValsIsMutable() {6928 if (!((bitField0_ & 0x00000004) == 0x00000004)) {6929 vals_ = new java.util.ArrayList<java.lang.Integer>(vals_);6930 bitField0_ |= 0x00000004;6931 }6932 }6933 public java.util.List<java.lang.Integer>6934 getValsList() {6935 return java.util.Collections.unmodifiableList(vals_);6936 }6937 public int getValsCount() {6938 return vals_.size();6939 }6940 public int getVals(int index) {6941 return vals_.get(index);6942 }6943 public Builder setVals(6944 int index, int value) {6945 ensureValsIsMutable();6946 vals_.set(index, value);6947 6948 return this;6949 }6950 public Builder addVals(int value) {6951 ensureValsIsMutable();6952 vals_.add(value);6953 6954 return this;6955 }6956 public Builder addAllVals(6957 java.lang.Iterable<? extends java.lang.Integer> values) {6958 ensureValsIsMutable();6959 super.addAll(values, vals_);6960 6961 return this;6962 }6963 public Builder clearVals() {6964 vals_ = java.util.Collections.emptyList();;6965 bitField0_ = (bitField0_ & ~0x00000004);6966 6967 return this;6968 }6969 6970 // optional .OSMPBF.Info info = 4;6971 private crosby.binary.Osmformat.Info info_ = crosby.binary.Osmformat.Info.getDefaultInstance();6972 public boolean hasInfo() {6973 return ((bitField0_ & 0x00000008) == 0x00000008);6974 }6975 public crosby.binary.Osmformat.Info getInfo() {6976 return info_;6977 }6978 public Builder setInfo(crosby.binary.Osmformat.Info value) {6979 if (value == null) {6980 throw new NullPointerException();6981 }6982 info_ = value;6983 6984 bitField0_ |= 0x00000008;6985 return this;6986 }6987 public Builder setInfo(6988 crosby.binary.Osmformat.Info.Builder builderForValue) {6989 info_ = builderForValue.build();6990 6991 bitField0_ |= 0x00000008;6992 return this;6993 }6994 public Builder mergeInfo(crosby.binary.Osmformat.Info value) {6995 if (((bitField0_ & 0x00000008) == 0x00000008) &&6996 info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) {6997 info_ =6998 crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial();6999 } else {7000 info_ = value;7001 }7002 7003 bitField0_ |= 0x00000008;7004 return this;7005 }7006 public Builder clearInfo() {7007 info_ = crosby.binary.Osmformat.Info.getDefaultInstance();7008 7009 bitField0_ = (bitField0_ & ~0x00000008);7010 return this;7011 }7012 7013 // repeated sint64 refs = 8 [packed = true];7014 private java.util.List<java.lang.Long> refs_ = java.util.Collections.emptyList();;7015 private void ensureRefsIsMutable() {7016 if (!((bitField0_ & 0x00000010) == 0x00000010)) {7017 refs_ = new java.util.ArrayList<java.lang.Long>(refs_);7018 bitField0_ |= 0x00000010;7019 }7020 }7021 public java.util.List<java.lang.Long>7022 getRefsList() {7023 return java.util.Collections.unmodifiableList(refs_);7024 }7025 public int getRefsCount() {7026 return refs_.size();7027 }7028 public long getRefs(int index) {7029 return refs_.get(index);7030 }7031 public Builder setRefs(7032 int index, long value) {7033 ensureRefsIsMutable();7034 refs_.set(index, value);7035 7036 return this;7037 }7038 public Builder addRefs(long value) {7039 ensureRefsIsMutable();7040 refs_.add(value);7041 7042 return this;7043 }7044 public Builder addAllRefs(7045 java.lang.Iterable<? extends java.lang.Long> values) {7046 ensureRefsIsMutable();7047 super.addAll(values, refs_);7048 7049 return this;7050 }7051 public Builder clearRefs() {7052 refs_ = java.util.Collections.emptyList();;7053 bitField0_ = (bitField0_ & ~0x00000010);7054 7055 return this;7056 }7057 7058 // @@protoc_insertion_point(builder_scope:OSMPBF.Way)7059 }7060 7061 static {7062 defaultInstance = new Way(true);7063 defaultInstance.initFields();7064 }7065 7066 // @@protoc_insertion_point(class_scope:OSMPBF.Way)7067 }7068 7069 public interface RelationOrBuilder7070 extends com.google.protobuf.MessageLiteOrBuilder {7071 7072 // required int64 id = 1;7073 boolean hasId();7074 long getId();7075 7076 // repeated uint32 keys = 2 [packed = true];7077 java.util.List<java.lang.Integer> getKeysList();7078 int getKeysCount();7079 int getKeys(int index);7080 7081 // repeated uint32 vals = 3 [packed = true];7082 java.util.List<java.lang.Integer> getValsList();7083 int getValsCount();7084 int getVals(int index);7085 7086 // optional .OSMPBF.Info info = 4;7087 boolean hasInfo();7088 crosby.binary.Osmformat.Info getInfo();7089 7090 // repeated int32 roles_sid = 8 [packed = true];7091 java.util.List<java.lang.Integer> getRolesSidList();7092 int getRolesSidCount();7093 int getRolesSid(int index);7094 7095 // repeated sint64 memids = 9 [packed = true];7096 java.util.List<java.lang.Long> getMemidsList();7097 int getMemidsCount();7098 long getMemids(int index);7099 7100 // repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];7101 java.util.List<crosby.binary.Osmformat.Relation.MemberType> getTypesList();7102 int getTypesCount();7103 crosby.binary.Osmformat.Relation.MemberType getTypes(int index);7104 }7105 public static final class Relation extends7106 com.google.protobuf.GeneratedMessageLite7107 implements RelationOrBuilder {7108 // Use Relation.newBuilder() to construct.7109 private Relation(Builder builder) {7110 super(builder);7111 }7112 private Relation(boolean noInit) {}7113 7114 private static final Relation defaultInstance;7115 public static Relation getDefaultInstance() {7116 return defaultInstance;7117 }7118 7119 public Relation getDefaultInstanceForType() {7120 return defaultInstance;7121 }7122 7123 public enum MemberType7124 implements com.google.protobuf.Internal.EnumLite {7125 NODE(0, 0),7126 WAY(1, 1),7127 RELATION(2, 2),7128 ;7129 7130 public static final int NODE_VALUE = 0;7131 public static final int WAY_VALUE = 1;7132 public static final int RELATION_VALUE = 2;7133 7134 7135 public final int getNumber() { return value; }7136 7137 public static MemberType valueOf(int value) {7138 switch (value) {7139 case 0: return NODE;7140 case 1: return WAY;7141 case 2: return RELATION;7142 default: return null;7143 }7144 }7145 7146 public static com.google.protobuf.Internal.EnumLiteMap<MemberType>7147 internalGetValueMap() {7148 return internalValueMap;7149 }7150 private static com.google.protobuf.Internal.EnumLiteMap<MemberType>7151 internalValueMap =7152 new com.google.protobuf.Internal.EnumLiteMap<MemberType>() {7153 public MemberType findValueByNumber(int number) {7154 return MemberType.valueOf(number);7155 }7156 };7157 7158 private final int value;7159 7160 private MemberType(int index, int value) {7161 this.value = value;7162 }7163 7164 // @@protoc_insertion_point(enum_scope:OSMPBF.Relation.MemberType)7165 }7166 7167 private int bitField0_;7168 // required int64 id = 1;7169 public static final int ID_FIELD_NUMBER = 1;7170 private long id_;7171 public boolean hasId() {7172 return ((bitField0_ & 0x00000001) == 0x00000001);7173 }7174 public long getId() {7175 return id_;7176 }7177 7178 // repeated uint32 keys = 2 [packed = true];7179 public static final int KEYS_FIELD_NUMBER = 2;7180 private java.util.List<java.lang.Integer> keys_;7181 public java.util.List<java.lang.Integer>7182 getKeysList() {7183 return keys_;7184 }7185 public int getKeysCount() {7186 return keys_.size();7187 }7188 public int getKeys(int index) {7189 return keys_.get(index);7190 }7191 private int keysMemoizedSerializedSize = -1;7192 7193 // repeated uint32 vals = 3 [packed = true];7194 public static final int VALS_FIELD_NUMBER = 3;7195 private java.util.List<java.lang.Integer> vals_;7196 public java.util.List<java.lang.Integer>7197 getValsList() {7198 return vals_;7199 }7200 public int getValsCount() {7201 return vals_.size();7202 }7203 public int getVals(int index) {7204 return vals_.get(index);7205 }7206 private int valsMemoizedSerializedSize = -1;7207 7208 // optional .OSMPBF.Info info = 4;7209 public static final int INFO_FIELD_NUMBER = 4;7210 private crosby.binary.Osmformat.Info info_;7211 public boolean hasInfo() {7212 return ((bitField0_ & 0x00000002) == 0x00000002);7213 }7214 public crosby.binary.Osmformat.Info getInfo() {7215 return info_;7216 }7217 7218 // repeated int32 roles_sid = 8 [packed = true];7219 public static final int ROLES_SID_FIELD_NUMBER = 8;7220 private java.util.List<java.lang.Integer> rolesSid_;7221 public java.util.List<java.lang.Integer>7222 getRolesSidList() {7223 return rolesSid_;7224 }7225 public int getRolesSidCount() {7226 return rolesSid_.size();7227 }7228 public int getRolesSid(int index) {7229 return rolesSid_.get(index);7230 }7231 private int rolesSidMemoizedSerializedSize = -1;7232 7233 // repeated sint64 memids = 9 [packed = true];7234 public static final int MEMIDS_FIELD_NUMBER = 9;7235 private java.util.List<java.lang.Long> memids_;7236 public java.util.List<java.lang.Long>7237 getMemidsList() {7238 return memids_;7239 }7240 public int getMemidsCount() {7241 return memids_.size();7242 }7243 public long getMemids(int index) {7244 return memids_.get(index);7245 }7246 private int memidsMemoizedSerializedSize = -1;7247 7248 // repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];7249 public static final int TYPES_FIELD_NUMBER = 10;7250 private java.util.List<crosby.binary.Osmformat.Relation.MemberType> types_;7251 public java.util.List<crosby.binary.Osmformat.Relation.MemberType> getTypesList() {7252 return types_;7253 }7254 public int getTypesCount() {7255 return types_.size();7256 }7257 public crosby.binary.Osmformat.Relation.MemberType getTypes(int index) {7258 return types_.get(index);7259 }7260 private int typesMemoizedSerializedSize;7261 7262 private void initFields() {7263 id_ = 0L;7264 keys_ = java.util.Collections.emptyList();;7265 vals_ = java.util.Collections.emptyList();;7266 info_ = crosby.binary.Osmformat.Info.getDefaultInstance();7267 rolesSid_ = java.util.Collections.emptyList();;7268 memids_ = java.util.Collections.emptyList();;7269 types_ = java.util.Collections.emptyList();7270 }7271 private byte memoizedIsInitialized = -1;7272 public final boolean isInitialized() {7273 byte isInitialized = memoizedIsInitialized;7274 if (isInitialized != -1) return isInitialized == 1;7275 7276 if (!hasId()) {7277 memoizedIsInitialized = 0;7278 return false;7279 }7280 memoizedIsInitialized = 1;7281 return true;7282 }7283 7284 public void writeTo(com.google.protobuf.CodedOutputStream output)7285 throws java.io.IOException {7286 getSerializedSize();7287 if (((bitField0_ & 0x00000001) == 0x00000001)) {7288 output.writeInt64(1, id_);7289 }7290 if (getKeysList().size() > 0) {7291 output.writeRawVarint32(18);7292 output.writeRawVarint32(keysMemoizedSerializedSize);7293 }7294 for (int i = 0; i < keys_.size(); i++) {7295 output.writeUInt32NoTag(keys_.get(i));7296 }7297 if (getValsList().size() > 0) {7298 output.writeRawVarint32(26);7299 output.writeRawVarint32(valsMemoizedSerializedSize);7300 }7301 for (int i = 0; i < vals_.size(); i++) {7302 output.writeUInt32NoTag(vals_.get(i));7303 }7304 if (((bitField0_ & 0x00000002) == 0x00000002)) {7305 output.writeMessage(4, info_);7306 }7307 if (getRolesSidList().size() > 0) {7308 output.writeRawVarint32(66);7309 output.writeRawVarint32(rolesSidMemoizedSerializedSize);7310 }7311 for (int i = 0; i < rolesSid_.size(); i++) {7312 output.writeInt32NoTag(rolesSid_.get(i));7313 }7314 if (getMemidsList().size() > 0) {7315 output.writeRawVarint32(74);7316 output.writeRawVarint32(memidsMemoizedSerializedSize);7317 }7318 for (int i = 0; i < memids_.size(); i++) {7319 output.writeSInt64NoTag(memids_.get(i));7320 }7321 if (getTypesList().size() > 0) {7322 output.writeRawVarint32(82);7323 output.writeRawVarint32(typesMemoizedSerializedSize);7324 }7325 for (int i = 0; i < types_.size(); i++) {7326 output.writeEnumNoTag(types_.get(i).getNumber());7327 }7328 }7329 7330 private int memoizedSerializedSize = -1;7331 public int getSerializedSize() {7332 int size = memoizedSerializedSize;7333 if (size != -1) return size;7334 7335 size = 0;7336 if (((bitField0_ & 0x00000001) == 0x00000001)) {7337 size += com.google.protobuf.CodedOutputStream7338 .computeInt64Size(1, id_);7339 }7340 {7341 int dataSize = 0;7342 for (int i = 0; i < keys_.size(); i++) {7343 dataSize += com.google.protobuf.CodedOutputStream7344 .computeUInt32SizeNoTag(keys_.get(i));7345 }7346 size += dataSize;7347 if (!getKeysList().isEmpty()) {7348 size += 1;7349 size += com.google.protobuf.CodedOutputStream7350 .computeInt32SizeNoTag(dataSize);7351 }7352 keysMemoizedSerializedSize = dataSize;7353 }7354 {7355 int dataSize = 0;7356 for (int i = 0; i < vals_.size(); i++) {7357 dataSize += com.google.protobuf.CodedOutputStream7358 .computeUInt32SizeNoTag(vals_.get(i));7359 }7360 size += dataSize;7361 if (!getValsList().isEmpty()) {7362 size += 1;7363 size += com.google.protobuf.CodedOutputStream7364 .computeInt32SizeNoTag(dataSize);7365 }7366 valsMemoizedSerializedSize = dataSize;7367 }7368 if (((bitField0_ & 0x00000002) == 0x00000002)) {7369 size += com.google.protobuf.CodedOutputStream7370 .computeMessageSize(4, info_);7371 }7372 {7373 int dataSize = 0;7374 for (int i = 0; i < rolesSid_.size(); i++) {7375 dataSize += com.google.protobuf.CodedOutputStream7376 .computeInt32SizeNoTag(rolesSid_.get(i));7377 }7378 size += dataSize;7379 if (!getRolesSidList().isEmpty()) {7380 size += 1;7381 size += com.google.protobuf.CodedOutputStream7382 .computeInt32SizeNoTag(dataSize);7383 }7384 rolesSidMemoizedSerializedSize = dataSize;7385 }7386 {7387 int dataSize = 0;7388 for (int i = 0; i < memids_.size(); i++) {7389 dataSize += com.google.protobuf.CodedOutputStream7390 .computeSInt64SizeNoTag(memids_.get(i));7391 }7392 size += dataSize;7393 if (!getMemidsList().isEmpty()) {7394 size += 1;7395 size += com.google.protobuf.CodedOutputStream7396 .computeInt32SizeNoTag(dataSize);7397 }7398 memidsMemoizedSerializedSize = dataSize;7399 }7400 {7401 int dataSize = 0;7402 for (int i = 0; i < types_.size(); i++) {7403 dataSize += com.google.protobuf.CodedOutputStream7404 .computeEnumSizeNoTag(types_.get(i).getNumber());7405 }7406 size += dataSize;7407 if (!getTypesList().isEmpty()) { size += 1;7408 size += com.google.protobuf.CodedOutputStream7409 .computeRawVarint32Size(dataSize);7410 }typesMemoizedSerializedSize = dataSize;7411 }7412 memoizedSerializedSize = size;7413 return size;7414 }7415 7416 private static final long serialVersionUID = 0L;7417 @java.lang.Override7418 protected java.lang.Object writeReplace()7419 throws java.io.ObjectStreamException {7420 return super.writeReplace();7421 }7422 7423 public static crosby.binary.Osmformat.Relation parseFrom(7424 com.google.protobuf.ByteString data)7425 throws com.google.protobuf.InvalidProtocolBufferException {7426 return newBuilder().mergeFrom(data).buildParsed();7427 }7428 public static crosby.binary.Osmformat.Relation parseFrom(7429 com.google.protobuf.ByteString data,7430 com.google.protobuf.ExtensionRegistryLite extensionRegistry)7431 throws com.google.protobuf.InvalidProtocolBufferException {7432 return newBuilder().mergeFrom(data, extensionRegistry)7433 .buildParsed();7434 }7435 public static crosby.binary.Osmformat.Relation parseFrom(byte[] data)7436 throws com.google.protobuf.InvalidProtocolBufferException {7437 return newBuilder().mergeFrom(data).buildParsed();7438 }7439 public static crosby.binary.Osmformat.Relation parseFrom(7440 byte[] data,7441 com.google.protobuf.ExtensionRegistryLite extensionRegistry)7442 throws com.google.protobuf.InvalidProtocolBufferException {7443 return newBuilder().mergeFrom(data, extensionRegistry)7444 .buildParsed();7445 }7446 public static crosby.binary.Osmformat.Relation parseFrom(java.io.InputStream input)7447 throws java.io.IOException {7448 return newBuilder().mergeFrom(input).buildParsed();7449 }7450 public static crosby.binary.Osmformat.Relation parseFrom(7451 java.io.InputStream input,7452 com.google.protobuf.ExtensionRegistryLite extensionRegistry)7453 throws java.io.IOException {7454 return newBuilder().mergeFrom(input, extensionRegistry)7455 .buildParsed();7456 }7457 public static crosby.binary.Osmformat.Relation parseDelimitedFrom(java.io.InputStream input)7458 throws java.io.IOException {7459 Builder builder = newBuilder();7460 if (builder.mergeDelimitedFrom(input)) {7461 return builder.buildParsed();7462 } else {7463 return null;7464 }7465 }7466 public static crosby.binary.Osmformat.Relation parseDelimitedFrom(7467 java.io.InputStream input,7468 com.google.protobuf.ExtensionRegistryLite extensionRegistry)7469 throws java.io.IOException {7470 Builder builder = newBuilder();7471 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {7472 return builder.buildParsed();7473 } else {7474 return null;7475 }7476 }7477 public static crosby.binary.Osmformat.Relation parseFrom(7478 com.google.protobuf.CodedInputStream input)7479 throws java.io.IOException {7480 return newBuilder().mergeFrom(input).buildParsed();7481 }7482 public static crosby.binary.Osmformat.Relation parseFrom(7483 com.google.protobuf.CodedInputStream input,7484 com.google.protobuf.ExtensionRegistryLite extensionRegistry)7485 throws java.io.IOException {7486 return newBuilder().mergeFrom(input, extensionRegistry)7487 .buildParsed();7488 }7489 7490 public static Builder newBuilder() { return Builder.create(); }7491 public Builder newBuilderForType() { return newBuilder(); }7492 public static Builder newBuilder(crosby.binary.Osmformat.Relation prototype) {7493 return newBuilder().mergeFrom(prototype);7494 }7495 public Builder toBuilder() { return newBuilder(this); }7496 7497 public static final class Builder extends7498 com.google.protobuf.GeneratedMessageLite.Builder<7499 crosby.binary.Osmformat.Relation, Builder>7500 implements crosby.binary.Osmformat.RelationOrBuilder {7501 // Construct using crosby.binary.Osmformat.Relation.newBuilder()7502 private Builder() {7503 maybeForceBuilderInitialization();7504 }7505 7506 private void maybeForceBuilderInitialization() {7507 }7508 private static Builder create() {7509 return new Builder();7510 }7511 7512 public Builder clear() {7513 super.clear();7514 id_ = 0L;7515 bitField0_ = (bitField0_ & ~0x00000001);7516 keys_ = java.util.Collections.emptyList();;7517 bitField0_ = (bitField0_ & ~0x00000002);7518 vals_ = java.util.Collections.emptyList();;7519 bitField0_ = (bitField0_ & ~0x00000004);7520 info_ = crosby.binary.Osmformat.Info.getDefaultInstance();7521 bitField0_ = (bitField0_ & ~0x00000008);7522 rolesSid_ = java.util.Collections.emptyList();;7523 bitField0_ = (bitField0_ & ~0x00000010);7524 memids_ = java.util.Collections.emptyList();;7525 bitField0_ = (bitField0_ & ~0x00000020);7526 types_ = java.util.Collections.emptyList();7527 bitField0_ = (bitField0_ & ~0x00000040);7528 return this;7529 }7530 7531 public Builder clone() {7532 return create().mergeFrom(buildPartial());7533 }7534 7535 public crosby.binary.Osmformat.Relation getDefaultInstanceForType() {7536 return crosby.binary.Osmformat.Relation.getDefaultInstance();7537 }7538 7539 public crosby.binary.Osmformat.Relation build() {7540 crosby.binary.Osmformat.Relation result = buildPartial();7541 if (!result.isInitialized()) {7542 throw newUninitializedMessageException(result);7543 }7544 return result;7545 }7546 7547 private crosby.binary.Osmformat.Relation buildParsed()7548 throws com.google.protobuf.InvalidProtocolBufferException {7549 crosby.binary.Osmformat.Relation result = buildPartial();7550 if (!result.isInitialized()) {7551 throw newUninitializedMessageException(7552 result).asInvalidProtocolBufferException();7553 }7554 return result;7555 }7556 7557 public crosby.binary.Osmformat.Relation buildPartial() {7558 crosby.binary.Osmformat.Relation result = new crosby.binary.Osmformat.Relation(this);7559 int from_bitField0_ = bitField0_;7560 int to_bitField0_ = 0;7561 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {7562 to_bitField0_ |= 0x00000001;7563 }7564 result.id_ = id_;7565 if (((bitField0_ & 0x00000002) == 0x00000002)) {7566 keys_ = java.util.Collections.unmodifiableList(keys_);7567 bitField0_ = (bitField0_ & ~0x00000002);7568 }7569 result.keys_ = keys_;7570 if (((bitField0_ & 0x00000004) == 0x00000004)) {7571 vals_ = java.util.Collections.unmodifiableList(vals_);7572 bitField0_ = (bitField0_ & ~0x00000004);7573 }7574 result.vals_ = vals_;7575 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {7576 to_bitField0_ |= 0x00000002;7577 }7578 result.info_ = info_;7579 if (((bitField0_ & 0x00000010) == 0x00000010)) {7580 rolesSid_ = java.util.Collections.unmodifiableList(rolesSid_);7581 bitField0_ = (bitField0_ & ~0x00000010);7582 }7583 result.rolesSid_ = rolesSid_;7584 if (((bitField0_ & 0x00000020) == 0x00000020)) {7585 memids_ = java.util.Collections.unmodifiableList(memids_);7586 bitField0_ = (bitField0_ & ~0x00000020);7587 }7588 result.memids_ = memids_;7589 if (((bitField0_ & 0x00000040) == 0x00000040)) {7590 types_ = java.util.Collections.unmodifiableList(types_);7591 bitField0_ = (bitField0_ & ~0x00000040);7592 }7593 result.types_ = types_;7594 result.bitField0_ = to_bitField0_;7595 return result;7596 }7597 7598 public Builder mergeFrom(crosby.binary.Osmformat.Relation other) {7599 if (other == crosby.binary.Osmformat.Relation.getDefaultInstance()) return this;7600 if (other.hasId()) {7601 setId(other.getId());7602 }7603 if (!other.keys_.isEmpty()) {7604 if (keys_.isEmpty()) {7605 keys_ = other.keys_;7606 bitField0_ = (bitField0_ & ~0x00000002);7607 } else {7608 ensureKeysIsMutable();7609 keys_.addAll(other.keys_);7610 }7611 7612 }7613 if (!other.vals_.isEmpty()) {7614 if (vals_.isEmpty()) {7615 vals_ = other.vals_;7616 bitField0_ = (bitField0_ & ~0x00000004);7617 } else {7618 ensureValsIsMutable();7619 vals_.addAll(other.vals_);7620 }7621 7622 }7623 if (other.hasInfo()) {7624 mergeInfo(other.getInfo());7625 }7626 if (!other.rolesSid_.isEmpty()) {7627 if (rolesSid_.isEmpty()) {7628 rolesSid_ = other.rolesSid_;7629 bitField0_ = (bitField0_ & ~0x00000010);7630 } else {7631 ensureRolesSidIsMutable();7632 rolesSid_.addAll(other.rolesSid_);7633 }7634 7635 }7636 if (!other.memids_.isEmpty()) {7637 if (memids_.isEmpty()) {7638 memids_ = other.memids_;7639 bitField0_ = (bitField0_ & ~0x00000020);7640 } else {7641 ensureMemidsIsMutable();7642 memids_.addAll(other.memids_);7643 }7644 7645 }7646 if (!other.types_.isEmpty()) {7647 if (types_.isEmpty()) {7648 types_ = other.types_;7649 bitField0_ = (bitField0_ & ~0x00000040);7650 } else {7651 ensureTypesIsMutable();7652 types_.addAll(other.types_);7653 }7654 7655 }7656 return this;7657 }7658 7659 public final boolean isInitialized() {7660 if (!hasId()) {7661 7662 return false;7663 }7664 return true;7665 }7666 7667 public Builder mergeFrom(7668 com.google.protobuf.CodedInputStream input,7669 com.google.protobuf.ExtensionRegistryLite extensionRegistry)7670 throws java.io.IOException {7671 while (true) {7672 int tag = input.readTag();7673 switch (tag) {7674 case 0:7675 7676 return this;7677 default: {7678 if (!parseUnknownField(input, extensionRegistry, tag)) {7679 7680 return this;7681 }7682 break;7683 }7684 case 8: {7685 bitField0_ |= 0x00000001;7686 id_ = input.readInt64();7687 break;7688 }7689 case 16: {7690 ensureKeysIsMutable();7691 keys_.add(input.readUInt32());7692 break;7693 }7694 case 18: {7695 int length = input.readRawVarint32();7696 int limit = input.pushLimit(length);7697 while (input.getBytesUntilLimit() > 0) {7698 addKeys(input.readUInt32());7699 }7700 input.popLimit(limit);7701 break;7702 }7703 case 24: {7704 ensureValsIsMutable();7705 vals_.add(input.readUInt32());7706 break;7707 }7708 case 26: {7709 int length = input.readRawVarint32();7710 int limit = input.pushLimit(length);7711 while (input.getBytesUntilLimit() > 0) {7712 addVals(input.readUInt32());7713 }7714 input.popLimit(limit);7715 break;7716 }7717 case 34: {7718 crosby.binary.Osmformat.Info.Builder subBuilder = crosby.binary.Osmformat.Info.newBuilder();7719 if (hasInfo()) {7720 subBuilder.mergeFrom(getInfo());7721 }7722 input.readMessage(subBuilder, extensionRegistry);7723 setInfo(subBuilder.buildPartial());7724 break;7725 }7726 case 64: {7727 ensureRolesSidIsMutable();7728 11546 rolesSid_.add(input.readInt32()); 7729 11547 break; … … 7732 11550 int length = input.readRawVarint32(); 7733 11551 int limit = input.pushLimit(length); 11552 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { 11553 rolesSid_ = new java.util.ArrayList<java.lang.Integer>(); 11554 mutable_bitField0_ |= 0x00000010; 11555 } 7734 11556 while (input.getBytesUntilLimit() > 0) { 7735 addRolesSid(input.readInt32());11557 rolesSid_.add(input.readInt32()); 7736 11558 } 7737 11559 input.popLimit(limit); … … 7739 11561 } 7740 11562 case 72: { 7741 ensureMemidsIsMutable(); 11563 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 11564 memids_ = new java.util.ArrayList<java.lang.Long>(); 11565 mutable_bitField0_ |= 0x00000020; 11566 } 7742 11567 memids_.add(input.readSInt64()); 7743 11568 break; … … 7746 11571 int length = input.readRawVarint32(); 7747 11572 int limit = input.pushLimit(length); 11573 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { 11574 memids_ = new java.util.ArrayList<java.lang.Long>(); 11575 mutable_bitField0_ |= 0x00000020; 11576 } 7748 11577 while (input.getBytesUntilLimit() > 0) { 7749 addMemids(input.readSInt64());11578 memids_.add(input.readSInt64()); 7750 11579 } 7751 11580 input.popLimit(limit); … … 7756 11585 crosby.binary.Osmformat.Relation.MemberType value = crosby.binary.Osmformat.Relation.MemberType.valueOf(rawValue); 7757 11586 if (value != null) { 7758 addTypes(value); 11587 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 11588 types_ = new java.util.ArrayList<crosby.binary.Osmformat.Relation.MemberType>(); 11589 mutable_bitField0_ |= 0x00000040; 11590 } 11591 types_.add(value); 7759 11592 } 7760 11593 break; … … 7767 11600 crosby.binary.Osmformat.Relation.MemberType value = crosby.binary.Osmformat.Relation.MemberType.valueOf(rawValue); 7768 11601 if (value != null) { 7769 addTypes(value); 11602 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 11603 types_ = new java.util.ArrayList<crosby.binary.Osmformat.Relation.MemberType>(); 11604 mutable_bitField0_ |= 0x00000040; 11605 } 11606 types_.add(value); 7770 11607 } 7771 11608 } … … 7775 11612 } 7776 11613 } 7777 } 7778 11614 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 11615 throw e.setUnfinishedMessage(this); 11616 } catch (java.io.IOException e) { 11617 throw new com.google.protobuf.InvalidProtocolBufferException( 11618 e.getMessage()).setUnfinishedMessage(this); 11619 } finally { 11620 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 11621 keys_ = java.util.Collections.unmodifiableList(keys_); 11622 } 11623 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 11624 vals_ = java.util.Collections.unmodifiableList(vals_); 11625 } 11626 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 11627 rolesSid_ = java.util.Collections.unmodifiableList(rolesSid_); 11628 } 11629 if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 11630 memids_ = java.util.Collections.unmodifiableList(memids_); 11631 } 11632 if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 11633 types_ = java.util.Collections.unmodifiableList(types_); 11634 } 11635 makeExtensionsImmutable(); 11636 } 11637 } 11638 public static com.google.protobuf.Parser<Relation> PARSER = 11639 new com.google.protobuf.AbstractParser<Relation>() { 11640 public Relation parsePartialFrom( 11641 com.google.protobuf.CodedInputStream input, 11642 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11643 throws com.google.protobuf.InvalidProtocolBufferException { 11644 return new Relation(input, extensionRegistry); 11645 } 11646 }; 11647 11648 @java.lang.Override 11649 public com.google.protobuf.Parser<Relation> getParserForType() { 11650 return PARSER; 11651 } 11652 11653 /** 11654 * Protobuf enum {@code OSMPBF.Relation.MemberType} 11655 */ 11656 public enum MemberType 11657 implements com.google.protobuf.Internal.EnumLite { 11658 /** 11659 * <code>NODE = 0;</code> 11660 */ 11661 NODE(0, 0), 11662 /** 11663 * <code>WAY = 1;</code> 11664 */ 11665 WAY(1, 1), 11666 /** 11667 * <code>RELATION = 2;</code> 11668 */ 11669 RELATION(2, 2), 11670 ; 11671 11672 /** 11673 * <code>NODE = 0;</code> 11674 */ 11675 public static final int NODE_VALUE = 0; 11676 /** 11677 * <code>WAY = 1;</code> 11678 */ 11679 public static final int WAY_VALUE = 1; 11680 /** 11681 * <code>RELATION = 2;</code> 11682 */ 11683 public static final int RELATION_VALUE = 2; 11684 11685 11686 public final int getNumber() { return value; } 11687 11688 public static MemberType valueOf(int value) { 11689 switch (value) { 11690 case 0: return NODE; 11691 case 1: return WAY; 11692 case 2: return RELATION; 11693 default: return null; 11694 } 11695 } 11696 11697 public static com.google.protobuf.Internal.EnumLiteMap<MemberType> 11698 internalGetValueMap() { 11699 return internalValueMap; 11700 } 11701 private static com.google.protobuf.Internal.EnumLiteMap<MemberType> 11702 internalValueMap = 11703 new com.google.protobuf.Internal.EnumLiteMap<MemberType>() { 11704 public MemberType findValueByNumber(int number) { 11705 return MemberType.valueOf(number); 11706 } 11707 }; 11708 11709 private final int value; 11710 11711 private MemberType(int index, int value) { 11712 this.value = value; 11713 } 11714 11715 // @@protoc_insertion_point(enum_scope:OSMPBF.Relation.MemberType) 11716 } 11717 11718 private int bitField0_; 11719 // required int64 id = 1; 11720 public static final int ID_FIELD_NUMBER = 1; 11721 private long id_; 11722 /** 11723 * <code>required int64 id = 1;</code> 11724 */ 11725 public boolean hasId() { 11726 return ((bitField0_ & 0x00000001) == 0x00000001); 11727 } 11728 /** 11729 * <code>required int64 id = 1;</code> 11730 */ 11731 public long getId() { 11732 return id_; 11733 } 11734 11735 // repeated uint32 keys = 2 [packed = true]; 11736 public static final int KEYS_FIELD_NUMBER = 2; 11737 private java.util.List<java.lang.Integer> keys_; 11738 /** 11739 * <code>repeated uint32 keys = 2 [packed = true];</code> 11740 * 11741 * <pre> 11742 * Parallel arrays. 11743 * </pre> 11744 */ 11745 public java.util.List<java.lang.Integer> 11746 getKeysList() { 11747 return keys_; 11748 } 11749 /** 11750 * <code>repeated uint32 keys = 2 [packed = true];</code> 11751 * 11752 * <pre> 11753 * Parallel arrays. 11754 * </pre> 11755 */ 11756 public int getKeysCount() { 11757 return keys_.size(); 11758 } 11759 /** 11760 * <code>repeated uint32 keys = 2 [packed = true];</code> 11761 * 11762 * <pre> 11763 * Parallel arrays. 11764 * </pre> 11765 */ 11766 public int getKeys(int index) { 11767 return keys_.get(index); 11768 } 11769 private int keysMemoizedSerializedSize = -1; 11770 11771 // repeated uint32 vals = 3 [packed = true]; 11772 public static final int VALS_FIELD_NUMBER = 3; 11773 private java.util.List<java.lang.Integer> vals_; 11774 /** 11775 * <code>repeated uint32 vals = 3 [packed = true];</code> 11776 */ 11777 public java.util.List<java.lang.Integer> 11778 getValsList() { 11779 return vals_; 11780 } 11781 /** 11782 * <code>repeated uint32 vals = 3 [packed = true];</code> 11783 */ 11784 public int getValsCount() { 11785 return vals_.size(); 11786 } 11787 /** 11788 * <code>repeated uint32 vals = 3 [packed = true];</code> 11789 */ 11790 public int getVals(int index) { 11791 return vals_.get(index); 11792 } 11793 private int valsMemoizedSerializedSize = -1; 11794 11795 // optional .OSMPBF.Info info = 4; 11796 public static final int INFO_FIELD_NUMBER = 4; 11797 private crosby.binary.Osmformat.Info info_; 11798 /** 11799 * <code>optional .OSMPBF.Info info = 4;</code> 11800 */ 11801 public boolean hasInfo() { 11802 return ((bitField0_ & 0x00000002) == 0x00000002); 11803 } 11804 /** 11805 * <code>optional .OSMPBF.Info info = 4;</code> 11806 */ 11807 public crosby.binary.Osmformat.Info getInfo() { 11808 return info_; 11809 } 11810 11811 // repeated int32 roles_sid = 8 [packed = true]; 11812 public static final int ROLES_SID_FIELD_NUMBER = 8; 11813 private java.util.List<java.lang.Integer> rolesSid_; 11814 /** 11815 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 11816 * 11817 * <pre> 11818 * Parallel arrays 11819 * </pre> 11820 */ 11821 public java.util.List<java.lang.Integer> 11822 getRolesSidList() { 11823 return rolesSid_; 11824 } 11825 /** 11826 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 11827 * 11828 * <pre> 11829 * Parallel arrays 11830 * </pre> 11831 */ 11832 public int getRolesSidCount() { 11833 return rolesSid_.size(); 11834 } 11835 /** 11836 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 11837 * 11838 * <pre> 11839 * Parallel arrays 11840 * </pre> 11841 */ 11842 public int getRolesSid(int index) { 11843 return rolesSid_.get(index); 11844 } 11845 private int rolesSidMemoizedSerializedSize = -1; 11846 11847 // repeated sint64 memids = 9 [packed = true]; 11848 public static final int MEMIDS_FIELD_NUMBER = 9; 11849 private java.util.List<java.lang.Long> memids_; 11850 /** 11851 * <code>repeated sint64 memids = 9 [packed = true];</code> 11852 * 11853 * <pre> 11854 * DELTA encoded 11855 * </pre> 11856 */ 11857 public java.util.List<java.lang.Long> 11858 getMemidsList() { 11859 return memids_; 11860 } 11861 /** 11862 * <code>repeated sint64 memids = 9 [packed = true];</code> 11863 * 11864 * <pre> 11865 * DELTA encoded 11866 * </pre> 11867 */ 11868 public int getMemidsCount() { 11869 return memids_.size(); 11870 } 11871 /** 11872 * <code>repeated sint64 memids = 9 [packed = true];</code> 11873 * 11874 * <pre> 11875 * DELTA encoded 11876 * </pre> 11877 */ 11878 public long getMemids(int index) { 11879 return memids_.get(index); 11880 } 11881 private int memidsMemoizedSerializedSize = -1; 11882 11883 // repeated .OSMPBF.Relation.MemberType types = 10 [packed = true]; 11884 public static final int TYPES_FIELD_NUMBER = 10; 11885 private java.util.List<crosby.binary.Osmformat.Relation.MemberType> types_; 11886 /** 11887 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 11888 */ 11889 public java.util.List<crosby.binary.Osmformat.Relation.MemberType> getTypesList() { 11890 return types_; 11891 } 11892 /** 11893 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 11894 */ 11895 public int getTypesCount() { 11896 return types_.size(); 11897 } 11898 /** 11899 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 11900 */ 11901 public crosby.binary.Osmformat.Relation.MemberType getTypes(int index) { 11902 return types_.get(index); 11903 } 11904 private int typesMemoizedSerializedSize; 11905 11906 private void initFields() { 11907 id_ = 0L; 11908 keys_ = java.util.Collections.emptyList(); 11909 vals_ = java.util.Collections.emptyList(); 11910 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 11911 rolesSid_ = java.util.Collections.emptyList(); 11912 memids_ = java.util.Collections.emptyList(); 11913 types_ = java.util.Collections.emptyList(); 11914 } 11915 private byte memoizedIsInitialized = -1; 11916 public final boolean isInitialized() { 11917 byte isInitialized = memoizedIsInitialized; 11918 if (isInitialized != -1) return isInitialized == 1; 11919 11920 if (!hasId()) { 11921 memoizedIsInitialized = 0; 11922 return false; 11923 } 11924 memoizedIsInitialized = 1; 11925 return true; 11926 } 11927 11928 public void writeTo(com.google.protobuf.CodedOutputStream output) 11929 throws java.io.IOException { 11930 getSerializedSize(); 11931 if (((bitField0_ & 0x00000001) == 0x00000001)) { 11932 output.writeInt64(1, id_); 11933 } 11934 if (getKeysList().size() > 0) { 11935 output.writeRawVarint32(18); 11936 output.writeRawVarint32(keysMemoizedSerializedSize); 11937 } 11938 for (int i = 0; i < keys_.size(); i++) { 11939 output.writeUInt32NoTag(keys_.get(i)); 11940 } 11941 if (getValsList().size() > 0) { 11942 output.writeRawVarint32(26); 11943 output.writeRawVarint32(valsMemoizedSerializedSize); 11944 } 11945 for (int i = 0; i < vals_.size(); i++) { 11946 output.writeUInt32NoTag(vals_.get(i)); 11947 } 11948 if (((bitField0_ & 0x00000002) == 0x00000002)) { 11949 output.writeMessage(4, info_); 11950 } 11951 if (getRolesSidList().size() > 0) { 11952 output.writeRawVarint32(66); 11953 output.writeRawVarint32(rolesSidMemoizedSerializedSize); 11954 } 11955 for (int i = 0; i < rolesSid_.size(); i++) { 11956 output.writeInt32NoTag(rolesSid_.get(i)); 11957 } 11958 if (getMemidsList().size() > 0) { 11959 output.writeRawVarint32(74); 11960 output.writeRawVarint32(memidsMemoizedSerializedSize); 11961 } 11962 for (int i = 0; i < memids_.size(); i++) { 11963 output.writeSInt64NoTag(memids_.get(i)); 11964 } 11965 if (getTypesList().size() > 0) { 11966 output.writeRawVarint32(82); 11967 output.writeRawVarint32(typesMemoizedSerializedSize); 11968 } 11969 for (int i = 0; i < types_.size(); i++) { 11970 output.writeEnumNoTag(types_.get(i).getNumber()); 11971 } 11972 } 11973 11974 private int memoizedSerializedSize = -1; 11975 public int getSerializedSize() { 11976 int size = memoizedSerializedSize; 11977 if (size != -1) return size; 11978 11979 size = 0; 11980 if (((bitField0_ & 0x00000001) == 0x00000001)) { 11981 size += com.google.protobuf.CodedOutputStream 11982 .computeInt64Size(1, id_); 11983 } 11984 { 11985 int dataSize = 0; 11986 for (int i = 0; i < keys_.size(); i++) { 11987 dataSize += com.google.protobuf.CodedOutputStream 11988 .computeUInt32SizeNoTag(keys_.get(i)); 11989 } 11990 size += dataSize; 11991 if (!getKeysList().isEmpty()) { 11992 size += 1; 11993 size += com.google.protobuf.CodedOutputStream 11994 .computeInt32SizeNoTag(dataSize); 11995 } 11996 keysMemoizedSerializedSize = dataSize; 11997 } 11998 { 11999 int dataSize = 0; 12000 for (int i = 0; i < vals_.size(); i++) { 12001 dataSize += com.google.protobuf.CodedOutputStream 12002 .computeUInt32SizeNoTag(vals_.get(i)); 12003 } 12004 size += dataSize; 12005 if (!getValsList().isEmpty()) { 12006 size += 1; 12007 size += com.google.protobuf.CodedOutputStream 12008 .computeInt32SizeNoTag(dataSize); 12009 } 12010 valsMemoizedSerializedSize = dataSize; 12011 } 12012 if (((bitField0_ & 0x00000002) == 0x00000002)) { 12013 size += com.google.protobuf.CodedOutputStream 12014 .computeMessageSize(4, info_); 12015 } 12016 { 12017 int dataSize = 0; 12018 for (int i = 0; i < rolesSid_.size(); i++) { 12019 dataSize += com.google.protobuf.CodedOutputStream 12020 .computeInt32SizeNoTag(rolesSid_.get(i)); 12021 } 12022 size += dataSize; 12023 if (!getRolesSidList().isEmpty()) { 12024 size += 1; 12025 size += com.google.protobuf.CodedOutputStream 12026 .computeInt32SizeNoTag(dataSize); 12027 } 12028 rolesSidMemoizedSerializedSize = dataSize; 12029 } 12030 { 12031 int dataSize = 0; 12032 for (int i = 0; i < memids_.size(); i++) { 12033 dataSize += com.google.protobuf.CodedOutputStream 12034 .computeSInt64SizeNoTag(memids_.get(i)); 12035 } 12036 size += dataSize; 12037 if (!getMemidsList().isEmpty()) { 12038 size += 1; 12039 size += com.google.protobuf.CodedOutputStream 12040 .computeInt32SizeNoTag(dataSize); 12041 } 12042 memidsMemoizedSerializedSize = dataSize; 12043 } 12044 { 12045 int dataSize = 0; 12046 for (int i = 0; i < types_.size(); i++) { 12047 dataSize += com.google.protobuf.CodedOutputStream 12048 .computeEnumSizeNoTag(types_.get(i).getNumber()); 12049 } 12050 size += dataSize; 12051 if (!getTypesList().isEmpty()) { size += 1; 12052 size += com.google.protobuf.CodedOutputStream 12053 .computeRawVarint32Size(dataSize); 12054 }typesMemoizedSerializedSize = dataSize; 12055 } 12056 memoizedSerializedSize = size; 12057 return size; 12058 } 12059 12060 private static final long serialVersionUID = 0L; 12061 @java.lang.Override 12062 protected java.lang.Object writeReplace() 12063 throws java.io.ObjectStreamException { 12064 return super.writeReplace(); 12065 } 12066 12067 public static crosby.binary.Osmformat.Relation parseFrom( 12068 com.google.protobuf.ByteString data) 12069 throws com.google.protobuf.InvalidProtocolBufferException { 12070 return PARSER.parseFrom(data); 12071 } 12072 public static crosby.binary.Osmformat.Relation parseFrom( 12073 com.google.protobuf.ByteString data, 12074 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12075 throws com.google.protobuf.InvalidProtocolBufferException { 12076 return PARSER.parseFrom(data, extensionRegistry); 12077 } 12078 public static crosby.binary.Osmformat.Relation parseFrom(byte[] data) 12079 throws com.google.protobuf.InvalidProtocolBufferException { 12080 return PARSER.parseFrom(data); 12081 } 12082 public static crosby.binary.Osmformat.Relation parseFrom( 12083 byte[] data, 12084 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12085 throws com.google.protobuf.InvalidProtocolBufferException { 12086 return PARSER.parseFrom(data, extensionRegistry); 12087 } 12088 public static crosby.binary.Osmformat.Relation parseFrom(java.io.InputStream input) 12089 throws java.io.IOException { 12090 return PARSER.parseFrom(input); 12091 } 12092 public static crosby.binary.Osmformat.Relation parseFrom( 12093 java.io.InputStream input, 12094 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12095 throws java.io.IOException { 12096 return PARSER.parseFrom(input, extensionRegistry); 12097 } 12098 public static crosby.binary.Osmformat.Relation parseDelimitedFrom(java.io.InputStream input) 12099 throws java.io.IOException { 12100 return PARSER.parseDelimitedFrom(input); 12101 } 12102 public static crosby.binary.Osmformat.Relation parseDelimitedFrom( 12103 java.io.InputStream input, 12104 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12105 throws java.io.IOException { 12106 return PARSER.parseDelimitedFrom(input, extensionRegistry); 12107 } 12108 public static crosby.binary.Osmformat.Relation parseFrom( 12109 com.google.protobuf.CodedInputStream input) 12110 throws java.io.IOException { 12111 return PARSER.parseFrom(input); 12112 } 12113 public static crosby.binary.Osmformat.Relation parseFrom( 12114 com.google.protobuf.CodedInputStream input, 12115 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12116 throws java.io.IOException { 12117 return PARSER.parseFrom(input, extensionRegistry); 12118 } 12119 12120 public static Builder newBuilder() { return Builder.create(); } 12121 public Builder newBuilderForType() { return newBuilder(); } 12122 public static Builder newBuilder(crosby.binary.Osmformat.Relation prototype) { 12123 return newBuilder().mergeFrom(prototype); 12124 } 12125 public Builder toBuilder() { return newBuilder(this); } 12126 12127 /** 12128 * Protobuf type {@code OSMPBF.Relation} 12129 */ 12130 public static final class Builder extends 12131 com.google.protobuf.GeneratedMessageLite.Builder< 12132 crosby.binary.Osmformat.Relation, Builder> 12133 implements crosby.binary.Osmformat.RelationOrBuilder { 12134 // Construct using crosby.binary.Osmformat.Relation.newBuilder() 12135 private Builder() { 12136 maybeForceBuilderInitialization(); 12137 } 12138 12139 private void maybeForceBuilderInitialization() { 12140 } 12141 private static Builder create() { 12142 return new Builder(); 12143 } 12144 12145 public Builder clear() { 12146 super.clear(); 12147 id_ = 0L; 12148 bitField0_ = (bitField0_ & ~0x00000001); 12149 keys_ = java.util.Collections.emptyList(); 12150 bitField0_ = (bitField0_ & ~0x00000002); 12151 vals_ = java.util.Collections.emptyList(); 12152 bitField0_ = (bitField0_ & ~0x00000004); 12153 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 12154 bitField0_ = (bitField0_ & ~0x00000008); 12155 rolesSid_ = java.util.Collections.emptyList(); 12156 bitField0_ = (bitField0_ & ~0x00000010); 12157 memids_ = java.util.Collections.emptyList(); 12158 bitField0_ = (bitField0_ & ~0x00000020); 12159 types_ = java.util.Collections.emptyList(); 12160 bitField0_ = (bitField0_ & ~0x00000040); 12161 return this; 12162 } 12163 12164 public Builder clone() { 12165 return create().mergeFrom(buildPartial()); 12166 } 12167 12168 public crosby.binary.Osmformat.Relation getDefaultInstanceForType() { 12169 return crosby.binary.Osmformat.Relation.getDefaultInstance(); 12170 } 12171 12172 public crosby.binary.Osmformat.Relation build() { 12173 crosby.binary.Osmformat.Relation result = buildPartial(); 12174 if (!result.isInitialized()) { 12175 throw newUninitializedMessageException(result); 12176 } 12177 return result; 12178 } 12179 12180 public crosby.binary.Osmformat.Relation buildPartial() { 12181 crosby.binary.Osmformat.Relation result = new crosby.binary.Osmformat.Relation(this); 12182 int from_bitField0_ = bitField0_; 12183 int to_bitField0_ = 0; 12184 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 12185 to_bitField0_ |= 0x00000001; 12186 } 12187 result.id_ = id_; 12188 if (((bitField0_ & 0x00000002) == 0x00000002)) { 12189 keys_ = java.util.Collections.unmodifiableList(keys_); 12190 bitField0_ = (bitField0_ & ~0x00000002); 12191 } 12192 result.keys_ = keys_; 12193 if (((bitField0_ & 0x00000004) == 0x00000004)) { 12194 vals_ = java.util.Collections.unmodifiableList(vals_); 12195 bitField0_ = (bitField0_ & ~0x00000004); 12196 } 12197 result.vals_ = vals_; 12198 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 12199 to_bitField0_ |= 0x00000002; 12200 } 12201 result.info_ = info_; 12202 if (((bitField0_ & 0x00000010) == 0x00000010)) { 12203 rolesSid_ = java.util.Collections.unmodifiableList(rolesSid_); 12204 bitField0_ = (bitField0_ & ~0x00000010); 12205 } 12206 result.rolesSid_ = rolesSid_; 12207 if (((bitField0_ & 0x00000020) == 0x00000020)) { 12208 memids_ = java.util.Collections.unmodifiableList(memids_); 12209 bitField0_ = (bitField0_ & ~0x00000020); 12210 } 12211 result.memids_ = memids_; 12212 if (((bitField0_ & 0x00000040) == 0x00000040)) { 12213 types_ = java.util.Collections.unmodifiableList(types_); 12214 bitField0_ = (bitField0_ & ~0x00000040); 12215 } 12216 result.types_ = types_; 12217 result.bitField0_ = to_bitField0_; 12218 return result; 12219 } 12220 12221 public Builder mergeFrom(crosby.binary.Osmformat.Relation other) { 12222 if (other == crosby.binary.Osmformat.Relation.getDefaultInstance()) return this; 12223 if (other.hasId()) { 12224 setId(other.getId()); 12225 } 12226 if (!other.keys_.isEmpty()) { 12227 if (keys_.isEmpty()) { 12228 keys_ = other.keys_; 12229 bitField0_ = (bitField0_ & ~0x00000002); 12230 } else { 12231 ensureKeysIsMutable(); 12232 keys_.addAll(other.keys_); 12233 } 12234 12235 } 12236 if (!other.vals_.isEmpty()) { 12237 if (vals_.isEmpty()) { 12238 vals_ = other.vals_; 12239 bitField0_ = (bitField0_ & ~0x00000004); 12240 } else { 12241 ensureValsIsMutable(); 12242 vals_.addAll(other.vals_); 12243 } 12244 12245 } 12246 if (other.hasInfo()) { 12247 mergeInfo(other.getInfo()); 12248 } 12249 if (!other.rolesSid_.isEmpty()) { 12250 if (rolesSid_.isEmpty()) { 12251 rolesSid_ = other.rolesSid_; 12252 bitField0_ = (bitField0_ & ~0x00000010); 12253 } else { 12254 ensureRolesSidIsMutable(); 12255 rolesSid_.addAll(other.rolesSid_); 12256 } 12257 12258 } 12259 if (!other.memids_.isEmpty()) { 12260 if (memids_.isEmpty()) { 12261 memids_ = other.memids_; 12262 bitField0_ = (bitField0_ & ~0x00000020); 12263 } else { 12264 ensureMemidsIsMutable(); 12265 memids_.addAll(other.memids_); 12266 } 12267 12268 } 12269 if (!other.types_.isEmpty()) { 12270 if (types_.isEmpty()) { 12271 types_ = other.types_; 12272 bitField0_ = (bitField0_ & ~0x00000040); 12273 } else { 12274 ensureTypesIsMutable(); 12275 types_.addAll(other.types_); 12276 } 12277 12278 } 12279 return this; 12280 } 12281 12282 public final boolean isInitialized() { 12283 if (!hasId()) { 12284 12285 return false; 12286 } 12287 return true; 12288 } 12289 12290 public Builder mergeFrom( 12291 com.google.protobuf.CodedInputStream input, 12292 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12293 throws java.io.IOException { 12294 crosby.binary.Osmformat.Relation parsedMessage = null; 12295 try { 12296 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 12297 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 12298 parsedMessage = (crosby.binary.Osmformat.Relation) e.getUnfinishedMessage(); 12299 throw e; 12300 } finally { 12301 if (parsedMessage != null) { 12302 mergeFrom(parsedMessage); 12303 } 12304 } 12305 return this; 12306 } 7779 12307 private int bitField0_; 7780 12308 7781 12309 // required int64 id = 1; 7782 12310 private long id_ ; 12311 /** 12312 * <code>required int64 id = 1;</code> 12313 */ 7783 12314 public boolean hasId() { 7784 12315 return ((bitField0_ & 0x00000001) == 0x00000001); 7785 12316 } 12317 /** 12318 * <code>required int64 id = 1;</code> 12319 */ 7786 12320 public long getId() { 7787 12321 return id_; 7788 12322 } 12323 /** 12324 * <code>required int64 id = 1;</code> 12325 */ 7789 12326 public Builder setId(long value) { 7790 12327 bitField0_ |= 0x00000001; … … 7793 12330 return this; 7794 12331 } 12332 /** 12333 * <code>required int64 id = 1;</code> 12334 */ 7795 12335 public Builder clearId() { 7796 12336 bitField0_ = (bitField0_ & ~0x00000001); … … 7799 12339 return this; 7800 12340 } 7801 12341 7802 12342 // repeated uint32 keys = 2 [packed = true]; 7803 private java.util.List<java.lang.Integer> keys_ = java.util.Collections.emptyList(); ;12343 private java.util.List<java.lang.Integer> keys_ = java.util.Collections.emptyList(); 7804 12344 private void ensureKeysIsMutable() { 7805 12345 if (!((bitField0_ & 0x00000002) == 0x00000002)) { … … 7808 12348 } 7809 12349 } 12350 /** 12351 * <code>repeated uint32 keys = 2 [packed = true];</code> 12352 * 12353 * <pre> 12354 * Parallel arrays. 12355 * </pre> 12356 */ 7810 12357 public java.util.List<java.lang.Integer> 7811 12358 getKeysList() { 7812 12359 return java.util.Collections.unmodifiableList(keys_); 7813 12360 } 12361 /** 12362 * <code>repeated uint32 keys = 2 [packed = true];</code> 12363 * 12364 * <pre> 12365 * Parallel arrays. 12366 * </pre> 12367 */ 7814 12368 public int getKeysCount() { 7815 12369 return keys_.size(); 7816 12370 } 12371 /** 12372 * <code>repeated uint32 keys = 2 [packed = true];</code> 12373 * 12374 * <pre> 12375 * Parallel arrays. 12376 * </pre> 12377 */ 7817 12378 public int getKeys(int index) { 7818 12379 return keys_.get(index); 7819 12380 } 12381 /** 12382 * <code>repeated uint32 keys = 2 [packed = true];</code> 12383 * 12384 * <pre> 12385 * Parallel arrays. 12386 * </pre> 12387 */ 7820 12388 public Builder setKeys( 7821 12389 int index, int value) { … … 7825 12393 return this; 7826 12394 } 12395 /** 12396 * <code>repeated uint32 keys = 2 [packed = true];</code> 12397 * 12398 * <pre> 12399 * Parallel arrays. 12400 * </pre> 12401 */ 7827 12402 public Builder addKeys(int value) { 7828 12403 ensureKeysIsMutable(); … … 7831 12406 return this; 7832 12407 } 12408 /** 12409 * <code>repeated uint32 keys = 2 [packed = true];</code> 12410 * 12411 * <pre> 12412 * Parallel arrays. 12413 * </pre> 12414 */ 7833 12415 public Builder addAllKeys( 7834 12416 java.lang.Iterable<? extends java.lang.Integer> values) { … … 7838 12420 return this; 7839 12421 } 12422 /** 12423 * <code>repeated uint32 keys = 2 [packed = true];</code> 12424 * 12425 * <pre> 12426 * Parallel arrays. 12427 * </pre> 12428 */ 7840 12429 public Builder clearKeys() { 7841 keys_ = java.util.Collections.emptyList(); ;12430 keys_ = java.util.Collections.emptyList(); 7842 12431 bitField0_ = (bitField0_ & ~0x00000002); 7843 12432 7844 12433 return this; 7845 12434 } 7846 12435 7847 12436 // repeated uint32 vals = 3 [packed = true]; 7848 private java.util.List<java.lang.Integer> vals_ = java.util.Collections.emptyList(); ;12437 private java.util.List<java.lang.Integer> vals_ = java.util.Collections.emptyList(); 7849 12438 private void ensureValsIsMutable() { 7850 12439 if (!((bitField0_ & 0x00000004) == 0x00000004)) { … … 7853 12442 } 7854 12443 } 12444 /** 12445 * <code>repeated uint32 vals = 3 [packed = true];</code> 12446 */ 7855 12447 public java.util.List<java.lang.Integer> 7856 12448 getValsList() { 7857 12449 return java.util.Collections.unmodifiableList(vals_); 7858 12450 } 12451 /** 12452 * <code>repeated uint32 vals = 3 [packed = true];</code> 12453 */ 7859 12454 public int getValsCount() { 7860 12455 return vals_.size(); 7861 12456 } 12457 /** 12458 * <code>repeated uint32 vals = 3 [packed = true];</code> 12459 */ 7862 12460 public int getVals(int index) { 7863 12461 return vals_.get(index); 7864 12462 } 12463 /** 12464 * <code>repeated uint32 vals = 3 [packed = true];</code> 12465 */ 7865 12466 public Builder setVals( 7866 12467 int index, int value) { … … 7870 12471 return this; 7871 12472 } 12473 /** 12474 * <code>repeated uint32 vals = 3 [packed = true];</code> 12475 */ 7872 12476 public Builder addVals(int value) { 7873 12477 ensureValsIsMutable(); … … 7876 12480 return this; 7877 12481 } 12482 /** 12483 * <code>repeated uint32 vals = 3 [packed = true];</code> 12484 */ 7878 12485 public Builder addAllVals( 7879 12486 java.lang.Iterable<? extends java.lang.Integer> values) { … … 7883 12490 return this; 7884 12491 } 12492 /** 12493 * <code>repeated uint32 vals = 3 [packed = true];</code> 12494 */ 7885 12495 public Builder clearVals() { 7886 vals_ = java.util.Collections.emptyList(); ;12496 vals_ = java.util.Collections.emptyList(); 7887 12497 bitField0_ = (bitField0_ & ~0x00000004); 7888 12498 7889 12499 return this; 7890 12500 } 7891 12501 7892 12502 // optional .OSMPBF.Info info = 4; 7893 12503 private crosby.binary.Osmformat.Info info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 12504 /** 12505 * <code>optional .OSMPBF.Info info = 4;</code> 12506 */ 7894 12507 public boolean hasInfo() { 7895 12508 return ((bitField0_ & 0x00000008) == 0x00000008); 7896 12509 } 12510 /** 12511 * <code>optional .OSMPBF.Info info = 4;</code> 12512 */ 7897 12513 public crosby.binary.Osmformat.Info getInfo() { 7898 12514 return info_; 7899 12515 } 12516 /** 12517 * <code>optional .OSMPBF.Info info = 4;</code> 12518 */ 7900 12519 public Builder setInfo(crosby.binary.Osmformat.Info value) { 7901 12520 if (value == null) { … … 7903 12522 } 7904 12523 info_ = value; 7905 12524 7906 12525 bitField0_ |= 0x00000008; 7907 12526 return this; 7908 12527 } 12528 /** 12529 * <code>optional .OSMPBF.Info info = 4;</code> 12530 */ 7909 12531 public Builder setInfo( 7910 12532 crosby.binary.Osmformat.Info.Builder builderForValue) { 7911 12533 info_ = builderForValue.build(); 7912 12534 7913 12535 bitField0_ |= 0x00000008; 7914 12536 return this; 7915 12537 } 12538 /** 12539 * <code>optional .OSMPBF.Info info = 4;</code> 12540 */ 7916 12541 public Builder mergeInfo(crosby.binary.Osmformat.Info value) { 7917 12542 if (((bitField0_ & 0x00000008) == 0x00000008) && … … 7922 12547 info_ = value; 7923 12548 } 7924 12549 7925 12550 bitField0_ |= 0x00000008; 7926 12551 return this; 7927 12552 } 12553 /** 12554 * <code>optional .OSMPBF.Info info = 4;</code> 12555 */ 7928 12556 public Builder clearInfo() { 7929 12557 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 7930 12558 7931 12559 bitField0_ = (bitField0_ & ~0x00000008); 7932 12560 return this; 7933 12561 } 7934 12562 7935 12563 // repeated int32 roles_sid = 8 [packed = true]; 7936 private java.util.List<java.lang.Integer> rolesSid_ = java.util.Collections.emptyList(); ;12564 private java.util.List<java.lang.Integer> rolesSid_ = java.util.Collections.emptyList(); 7937 12565 private void ensureRolesSidIsMutable() { 7938 12566 if (!((bitField0_ & 0x00000010) == 0x00000010)) { … … 7941 12569 } 7942 12570 } 12571 /** 12572 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12573 * 12574 * <pre> 12575 * Parallel arrays 12576 * </pre> 12577 */ 7943 12578 public java.util.List<java.lang.Integer> 7944 12579 getRolesSidList() { 7945 12580 return java.util.Collections.unmodifiableList(rolesSid_); 7946 12581 } 12582 /** 12583 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12584 * 12585 * <pre> 12586 * Parallel arrays 12587 * </pre> 12588 */ 7947 12589 public int getRolesSidCount() { 7948 12590 return rolesSid_.size(); 7949 12591 } 12592 /** 12593 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12594 * 12595 * <pre> 12596 * Parallel arrays 12597 * </pre> 12598 */ 7950 12599 public int getRolesSid(int index) { 7951 12600 return rolesSid_.get(index); 7952 12601 } 12602 /** 12603 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12604 * 12605 * <pre> 12606 * Parallel arrays 12607 * </pre> 12608 */ 7953 12609 public Builder setRolesSid( 7954 12610 int index, int value) { … … 7958 12614 return this; 7959 12615 } 12616 /** 12617 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12618 * 12619 * <pre> 12620 * Parallel arrays 12621 * </pre> 12622 */ 7960 12623 public Builder addRolesSid(int value) { 7961 12624 ensureRolesSidIsMutable(); … … 7964 12627 return this; 7965 12628 } 12629 /** 12630 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12631 * 12632 * <pre> 12633 * Parallel arrays 12634 * </pre> 12635 */ 7966 12636 public Builder addAllRolesSid( 7967 12637 java.lang.Iterable<? extends java.lang.Integer> values) { … … 7971 12641 return this; 7972 12642 } 12643 /** 12644 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12645 * 12646 * <pre> 12647 * Parallel arrays 12648 * </pre> 12649 */ 7973 12650 public Builder clearRolesSid() { 7974 rolesSid_ = java.util.Collections.emptyList(); ;12651 rolesSid_ = java.util.Collections.emptyList(); 7975 12652 bitField0_ = (bitField0_ & ~0x00000010); 7976 12653 7977 12654 return this; 7978 12655 } 7979 12656 7980 12657 // repeated sint64 memids = 9 [packed = true]; 7981 private java.util.List<java.lang.Long> memids_ = java.util.Collections.emptyList(); ;12658 private java.util.List<java.lang.Long> memids_ = java.util.Collections.emptyList(); 7982 12659 private void ensureMemidsIsMutable() { 7983 12660 if (!((bitField0_ & 0x00000020) == 0x00000020)) { … … 7986 12663 } 7987 12664 } 12665 /** 12666 * <code>repeated sint64 memids = 9 [packed = true];</code> 12667 * 12668 * <pre> 12669 * DELTA encoded 12670 * </pre> 12671 */ 7988 12672 public java.util.List<java.lang.Long> 7989 12673 getMemidsList() { 7990 12674 return java.util.Collections.unmodifiableList(memids_); 7991 12675 } 12676 /** 12677 * <code>repeated sint64 memids = 9 [packed = true];</code> 12678 * 12679 * <pre> 12680 * DELTA encoded 12681 * </pre> 12682 */ 7992 12683 public int getMemidsCount() { 7993 12684 return memids_.size(); 7994 12685 } 12686 /** 12687 * <code>repeated sint64 memids = 9 [packed = true];</code> 12688 * 12689 * <pre> 12690 * DELTA encoded 12691 * </pre> 12692 */ 7995 12693 public long getMemids(int index) { 7996 12694 return memids_.get(index); 7997 12695 } 12696 /** 12697 * <code>repeated sint64 memids = 9 [packed = true];</code> 12698 * 12699 * <pre> 12700 * DELTA encoded 12701 * </pre> 12702 */ 7998 12703 public Builder setMemids( 7999 12704 int index, long value) { … … 8003 12708 return this; 8004 12709 } 12710 /** 12711 * <code>repeated sint64 memids = 9 [packed = true];</code> 12712 * 12713 * <pre> 12714 * DELTA encoded 12715 * </pre> 12716 */ 8005 12717 public Builder addMemids(long value) { 8006 12718 ensureMemidsIsMutable(); … … 8009 12721 return this; 8010 12722 } 12723 /** 12724 * <code>repeated sint64 memids = 9 [packed = true];</code> 12725 * 12726 * <pre> 12727 * DELTA encoded 12728 * </pre> 12729 */ 8011 12730 public Builder addAllMemids( 8012 12731 java.lang.Iterable<? extends java.lang.Long> values) { … … 8016 12735 return this; 8017 12736 } 12737 /** 12738 * <code>repeated sint64 memids = 9 [packed = true];</code> 12739 * 12740 * <pre> 12741 * DELTA encoded 12742 * </pre> 12743 */ 8018 12744 public Builder clearMemids() { 8019 memids_ = java.util.Collections.emptyList(); ;12745 memids_ = java.util.Collections.emptyList(); 8020 12746 bitField0_ = (bitField0_ & ~0x00000020); 8021 12747 8022 12748 return this; 8023 12749 } 8024 12750 8025 12751 // repeated .OSMPBF.Relation.MemberType types = 10 [packed = true]; 8026 12752 private java.util.List<crosby.binary.Osmformat.Relation.MemberType> types_ = … … 8032 12758 } 8033 12759 } 12760 /** 12761 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12762 */ 8034 12763 public java.util.List<crosby.binary.Osmformat.Relation.MemberType> getTypesList() { 8035 12764 return java.util.Collections.unmodifiableList(types_); 8036 12765 } 12766 /** 12767 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12768 */ 8037 12769 public int getTypesCount() { 8038 12770 return types_.size(); 8039 12771 } 12772 /** 12773 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12774 */ 8040 12775 public crosby.binary.Osmformat.Relation.MemberType getTypes(int index) { 8041 12776 return types_.get(index); 8042 12777 } 12778 /** 12779 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12780 */ 8043 12781 public Builder setTypes( 8044 12782 int index, crosby.binary.Osmformat.Relation.MemberType value) { … … 8051 12789 return this; 8052 12790 } 12791 /** 12792 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12793 */ 8053 12794 public Builder addTypes(crosby.binary.Osmformat.Relation.MemberType value) { 8054 12795 if (value == null) { … … 8060 12801 return this; 8061 12802 } 12803 /** 12804 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12805 */ 8062 12806 public Builder addAllTypes( 8063 12807 java.lang.Iterable<? extends crosby.binary.Osmformat.Relation.MemberType> values) { … … 8067 12811 return this; 8068 12812 } 12813 /** 12814 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12815 */ 8069 12816 public Builder clearTypes() { 8070 12817 types_ = java.util.Collections.emptyList(); … … 8073 12820 return this; 8074 12821 } 8075 12822 8076 12823 // @@protoc_insertion_point(builder_scope:OSMPBF.Relation) 8077 12824 } 8078 12825 8079 12826 static { 8080 12827 defaultInstance = new Relation(true); 8081 12828 defaultInstance.initFields(); 8082 12829 } 8083 12830 8084 12831 // @@protoc_insertion_point(class_scope:OSMPBF.Relation) 8085 12832 } 8086 8087 12833 12834 8088 12835 static { 8089 12836 } 8090 12837 8091 12838 // @@protoc_insertion_point(outer_class_scope) 8092 12839 } -
applications/editors/josm/plugins/pbf/src/crosby/binary/BinaryParser.java
r26961 r30490 55 55 } 56 56 57 //@Override57 @Override 58 58 public void handleBlock(FileBlock message) { 59 59 // TODO Auto-generated method stub … … 77 77 78 78 79 //@Override79 @Override 80 80 public boolean skipBlock(FileBlockPosition block) { 81 81 // System.out.println("Seeing block of type: "+block.getType()); -
applications/editors/josm/plugins/pbf/src/crosby/binary/StringTable.java
r26961 r30490 2 2 3 3 This program is free software: you can redistribute it and/or modify 4 it under the terms of the GNU Lesser General Public License as 5 published by the Free Software Foundation, either version 3 of the 4 it under the terms of the GNU Lesser General Public License as 5 published by the Free Software Foundation, either version 3 of the 6 6 License, or (at your option) any later version. 7 7 … … 46 46 47 47 /** After the stringtable has been built, return the offset of a string in it. 48 * 48 * 49 49 * Note, value '0' is reserved for use as a delimiter and will not be returned. 50 50 * @param s … … 57 57 public void finish() { 58 58 Comparator<String> comparator = new Comparator<String>() { 59 //@Override59 @Override 60 60 public int compare(final String s1, String s2) { 61 61 int diff = counts.get(s2) - counts.get(s1); … … 63 63 } 64 64 }; 65 66 /* Sort the stringtable */ 67 68 /* 69 When a string is referenced, strings in the stringtable with indices: 70 0 : Is reserved (used as a delimiter in tags 71 A: 1 to 127 : Uses can be represented with 1 byte 72 B: 128 to 128**2-1 : Uses can be represented with 2 bytes, 73 C: 128*128 to X : Uses can be represented with 3 bytes in the unlikely case we have >16k strings in a block. No block will contain enough strings that we'll need 4 bytes. 74 75 There are goals that will improve compression: 76 1. I want to use 1 bytes for the most frequently occurring strings, then 2 bytes, then 3 bytes. 77 2. I want to use low integers as frequently as possible (for better 78 entropy encoding out of deflate) 79 3. I want the stringtable to compress as small as possible. 80 81 Condition 1 is obvious. Condition 2 makes deflate compress stringtable references more effectively. 82 When compressing entities, delta coding causes small positive integers to occur more frequently 83 than larger integers. Even though a stringtable references to indices of 1 and 127 both use one 84 byte in a decompressed file, the small integer bias causes deflate to use fewer bits to represent 85 the smaller index when compressed. Condition 3 is most effective when adjacent strings in the 86 stringtable have a lot of common substrings. 87 88 So, when I decide on the master stringtable to use, I put the 127 most frequently occurring 89 strings into A (accomplishing goal 1), and sort them by frequency (to accomplish goal 2), but 90 for B and C, which contain the less progressively less frequently encountered strings, I sort 91 them lexiconographically, to maximize goal 3 and ignoring goal 2. 92 93 Goal 1 is the most important. Goal 2 helped enough to be worth it, and goal 3 was pretty minor, 94 but all should be re-benchmarked. 95 96 97 */ 98 99 65 100 66 101 set = counts.keySet().toArray(new String[0]); … … 71 106 // sorted lexiconographically. 72 107 // to maximize deflate compression. 73 108 74 109 // Don't sort the first array. There's not likely to be much benefit, and we want frequent values to be small. 75 110 //Arrays.sort(set, Math.min(0, set.length-1), Math.min(1 << 7, set.length-1)); 76 111 77 112 Arrays.sort(set, Math.min(1 << 7, set.length-1), Math.min(1 << 14, 78 113 set.length-1));
Note:
See TracChangeset
for help on using the changeset viewer.